From fec481aaeb023dc939ff532e2aba7cc80de26120 Mon Sep 17 00:00:00 2001 From: Akshay Kumar Date: Tue, 27 Sep 2022 19:21:40 -0700 Subject: [PATCH 1/2] Bumping oci-go-sdk to v65 for SKE node controller changes --- controllers/nativepodnetwork_controller.go | 6 +- .../nativepodnetwork_controller_test.go | 13 +- go.mod | 9 +- go.sum | 1139 +--- pkg/cloudprovider/providers/oci/ccm.go | 4 +- .../providers/oci/config/config.go | 4 +- pkg/cloudprovider/providers/oci/instances.go | 2 +- .../providers/oci/instances_test.go | 8 +- .../providers/oci/load_balancer.go | 2 +- .../oci/load_balancer_security_lists.go | 4 +- .../oci/load_balancer_security_lists_test.go | 4 +- .../providers/oci/load_balancer_spec.go | 2 +- .../providers/oci/load_balancer_spec_test.go | 2 +- .../providers/oci/load_balancer_test.go | 4 +- .../providers/oci/load_balancer_util.go | 2 +- .../providers/oci/load_balancer_util_test.go | 2 +- .../providers/oci/node_info_controller.go | 2 +- .../oci/node_info_controller_test.go | 4 +- pkg/cloudprovider/providers/oci/zones.go | 2 +- pkg/csi/driver/controller.go | 2 +- pkg/csi/driver/controller_test.go | 10 +- pkg/flexvolume/block/driver.go | 2 +- pkg/metrics/pusher.go | 6 +- pkg/oci/client/block_storage.go | 2 +- pkg/oci/client/client.go | 12 +- pkg/oci/client/client_test.go | 4 +- pkg/oci/client/compute.go | 2 +- pkg/oci/client/errors.go | 2 +- pkg/oci/client/errors_test.go | 2 +- pkg/oci/client/file_storage.go | 2 +- pkg/oci/client/identity.go | 2 +- pkg/oci/client/load_balancer.go | 4 +- pkg/oci/client/metrics.go | 2 +- pkg/oci/client/network_load_balancer.go | 4 +- pkg/oci/client/networking.go | 2 +- pkg/oci/client/utils.go | 2 +- pkg/oci/client/volume_attachment.go | 2 +- pkg/volume/provisioner/block/block.go | 6 +- pkg/volume/provisioner/block/block_test.go | 8 +- pkg/volume/provisioner/core/utils.go | 2 +- pkg/volume/provisioner/fss/fss.go | 4 +- pkg/volume/provisioner/fss/fss_test.go | 8 +- pkg/volume/provisioner/plugin/plugin.go | 2 +- test/e2e/cloud-provider-oci/setup.go | 2 +- test/e2e/framework/backup_util.go | 2 +- .../e2e/framework/cloud_provider_framework.go | 6 +- test/e2e/framework/cluster.go | 4 +- test/e2e/framework/framework.go | 8 +- test/e2e/framework/node.go | 2 +- test/e2e/framework/nodepool.go | 4 +- test/e2e/framework/oad.go | 2 +- test/e2e/framework/pvc_util.go | 2 +- test/e2e/framework/seclist_util.go | 2 +- test/e2e/framework/serviceerror.go | 2 +- test/e2e/framework/util.go | 2 +- test/e2e/framework/validation.go | 4 +- .../configuration_provider.go | 2 +- .../oke/oke-common/resourceprincipals/jwt.go | 2 +- .../types/nodepools/nodepools.pb.go | 16 + .../types/nodepools/nodepools_v3.go | 5 +- vendor/github.com/gofrs/flock/.gitignore | 24 + vendor/github.com/gofrs/flock/.travis.yml | 10 + vendor/github.com/gofrs/flock/LICENSE | 27 + vendor/github.com/gofrs/flock/README.md | 41 + vendor/github.com/gofrs/flock/appveyor.yml | 25 + vendor/github.com/gofrs/flock/flock.go | 144 + vendor/github.com/gofrs/flock/flock_aix.go | 281 + vendor/github.com/gofrs/flock/flock_unix.go | 197 + vendor/github.com/gofrs/flock/flock_winapi.go | 76 + .../github.com/gofrs/flock/flock_windows.go | 142 + .../v49/common/auth/configuration.go | 123 - .../auth/resouce_principal_key_provider.go | 232 - .../oci-go-sdk/v49/common/circuit_breaker.go | 234 - .../oci-go-sdk/v49/common/configuration.go | 659 --- .../oracle/oci-go-sdk/v49/common/errors.go | 136 - .../oracle/oci-go-sdk/v49/common/regions.go | 201 - .../oracle/oci-go-sdk/v49/common/regions.json | 260 - .../v49/containerengine/add_on_options.go | 30 - .../admission_controller_options.go | 27 - .../oci-go-sdk/v49/containerengine/cluster.go | 80 - .../containerengine/cluster_create_options.go | 40 - .../cluster_endpoint_config.go | 33 - .../v49/containerengine/cluster_endpoints.go | 33 - .../cluster_lifecycle_state.go | 43 - .../cluster_migrate_to_native_vcn_details.go | 30 - .../cluster_migrate_to_native_vcn_status.go | 59 - .../v49/containerengine/cluster_options.go | 27 - .../v49/containerengine/cluster_summary.go | 98 - .../containerengine/containerengine_client.go | 1165 ---- .../containerengine/create_cluster_details.go | 61 - .../create_cluster_endpoint_config_details.go | 33 - ...eate_cluster_kubeconfig_content_details.go | 58 - .../create_image_policy_config_details.go | 30 - .../create_node_pool_details.go | 158 - .../create_node_pool_node_config_details.go | 53 - .../create_node_shape_config_details.go | 31 - .../delete_node_pool_request_response.go | 74 - .../get_work_request_request_response.go | 76 - .../containerengine/image_policy_config.go | 30 - .../v49/containerengine/key_details.go | 27 - .../v49/containerengine/key_value.go | 30 - .../kubernetes_network_config.go | 30 - .../list_clusters_request_response.go | 143 - .../list_node_pools_request_response.go | 143 - ...st_work_request_errors_request_response.go | 73 - ...list_work_request_logs_request_response.go | 73 - .../list_work_requests_request_response.go | 178 - .../oci-go-sdk/v49/containerengine/node.go | 107 - .../v49/containerengine/node_error.go | 36 - .../v49/containerengine/node_pool.go | 194 - .../node_pool_node_config_details.go | 53 - .../node_pool_placement_config_details.go | 31 - .../v49/containerengine/node_pool_summary.go | 179 - .../v49/containerengine/node_shape_config.go | 31 - .../containerengine/node_source_details.go | 64 - .../v49/containerengine/node_source_type.go | 33 - .../service_lb_config_details.go | 34 - .../v49/containerengine/sort_order.go | 35 - .../update_cluster_endpoint_config_details.go | 30 - .../update_cluster_options_details.go | 31 - .../update_image_policy_config_details.go | 30 - .../update_node_pool_details.go | 143 - .../update_node_pool_node_config_details.go | 53 - .../update_node_pool_request_response.go | 77 - .../update_node_shape_config_details.go | 31 - .../v49/containerengine/work_request.go | 48 - .../v49/containerengine/work_request_error.go | 33 - .../containerengine/work_request_log_entry.go | 30 - .../work_request_operation_type.go | 47 - .../containerengine/work_request_resource.go | 73 - .../containerengine/work_request_status.go | 43 - .../containerengine/work_request_summary.go | 92 - .../accept_local_peering_token_details.go | 29 - .../add_additional_route_rules_details.go | 29 - ...rg_route_distribution_statement_details.go | 95 - ...g_route_distribution_statements_details.go | 29 - .../v49/core/add_drg_route_rule_details.go | 63 - .../v49/core/add_drg_route_rules_details.go | 29 - ...image_shape_compatibility_entry_details.go | 29 - ...k_security_group_security_rules_details.go | 29 - .../add_public_ip_pool_capacity_details.go | 33 - .../v49/core/add_security_rule_details.go | 172 - .../v49/core/add_vcn_cidr_details.go | 29 - .../v49/core/added_additional_route_rules.go | 29 - ...d_network_security_group_security_rules.go | 29 - .../v49/core/additional_route_rule.go | 88 - .../v49/core/allowed_ike_ip_sec_parameters.go | 33 - .../v49/core/allowed_phase_one_parameters.go | 35 - .../v49/core/allowed_phase_two_parameters.go | 35 - ...ilan_bm_launch_instance_platform_config.go | 96 - .../v49/core/amd_milan_bm_platform_config.go | 96 - ...rome_bm_launch_instance_platform_config.go | 65 - .../v49/core/amd_rome_bm_platform_config.go | 65 - .../amd_vm_launch_instance_platform_config.go | 65 - .../v49/core/amd_vm_platform_config.go | 65 - .../v49/core/app_catalog_listing.go | 52 - .../app_catalog_listing_resource_version.go | 89 - ...log_listing_resource_version_agreements.go | 45 - ...atalog_listing_resource_version_summary.go | 39 - .../v49/core/app_catalog_listing_summary.go | 39 - .../v49/core/app_catalog_subscription.go | 52 - .../core/app_catalog_subscription_summary.go | 52 - .../v49/core/attach_boot_volume_details.go | 40 - .../oci-go-sdk/v49/core/attach_dav_details.go | 29 - .../core/attach_emulated_volume_details.go | 94 - .../v49/core/attach_i_scsi_volume_details.go | 101 - .../attach_instance_pool_instance_details.go | 29 - .../v49/core/attach_load_balancer_details.go | 40 - .../attach_paravirtualized_volume_details.go | 97 - ...ttach_service_determined_volume_details.go | 94 - .../v49/core/attach_vnic_details.go | 42 - ...h_vnic_to_destination_smart_nic_details.go | 41 - .../v49/core/attach_vnic_worker_details.go | 29 - .../v49/core/attach_volume_details.go | 143 - .../oracle/oci-go-sdk/v49/core/backfill.go | 29 - .../oci-go-sdk/v49/core/backfill_details.go | 35 - .../v49/core/base64_ssl_cert_details.go | 44 - .../oci-go-sdk/v49/core/bgp_session_info.go | 129 - .../v49/core/block_volume_replica.go | 112 - .../v49/core/block_volume_replica_details.go | 34 - .../v49/core/block_volume_replica_info.go | 37 - ...lean_image_capability_schema_descriptor.go | 51 - .../oracle/oci-go-sdk/v49/core/boot_volume.go | 222 - .../v49/core/boot_volume_attachment.go | 89 - .../oci-go-sdk/v49/core/boot_volume_backup.go | 183 - .../v49/core/boot_volume_kms_key.go | 29 - .../v49/core/boot_volume_replica.go | 115 - .../v49/core/boot_volume_replica_details.go | 34 - .../v49/core/boot_volume_replica_info.go | 37 - .../v49/core/boot_volume_source_details.go | 74 - ..._source_from_boot_volume_backup_details.go | 44 - ..._volume_source_from_boot_volume_details.go | 44 - ...source_from_boot_volume_replica_details.go | 46 - ...virtual_circuit_public_prefixes_details.go | 29 - ...virtual_circuit_public_prefixes_details.go | 29 - .../oci-go-sdk/v49/core/bulk_migration.go | 44 - .../v49/core/bulk_migration_details.go | 29 - .../core/byoip_allocated_range_collection.go | 29 - .../v49/core/byoip_allocated_range_summary.go | 32 - .../oracle/oci-go-sdk/v49/core/byoip_range.go | 141 - .../v49/core/byoip_range_collection.go | 29 - .../v49/core/byoip_range_summary.go | 59 - .../capacity_reservation_instance_summary.go | 45 - .../core/capture_console_history_details.go | 43 - .../oci-go-sdk/v49/core/capture_filter.go | 89 - .../v49/core/capture_filter_rule_details.go | 97 - .../oci-go-sdk/v49/core/cfm_metadata.go | 32 - ..._boot_volume_backup_compartment_details.go | 29 - .../change_boot_volume_compartment_details.go | 29 - .../change_byoip_range_compartment_details.go | 29 - ...ange_capture_filter_compartment_details.go | 30 - .../change_client_vpn_compartment_details.go | 30 - ...nge_cluster_network_compartment_details.go | 30 - ...apacity_reservation_compartment_details.go | 30 - ...nge_compute_cluster_compartment_details.go | 29 - ...e_capability_schema_compartment_details.go | 30 - .../core/change_cpe_compartment_details.go | 30 - ...hange_cross_connect_compartment_details.go | 30 - ...cross_connect_group_compartment_details.go | 30 - ...e_dedicated_vm_host_compartment_details.go | 30 - ...change_dhcp_options_compartment_details.go | 30 - ...ange_drg_attachment_compartment_details.go | 30 - .../core/change_drg_compartment_details.go | 30 - .../core/change_image_compartment_details.go | 29 - .../change_instance_compartment_details.go | 29 - ...tance_configuration_compartment_details.go | 30 - ...hange_instance_pool_compartment_details.go | 30 - ...change_internal_drg_compartment_details.go | 30 - ...nal_generic_gateway_compartment_details.go | 29 - ...ge_internet_gateway_compartment_details.go | 30 - ...e_ip_sec_connection_compartment_details.go | 30 - ...cal_peering_gateway_compartment_details.go | 30 - .../change_nat_gateway_compartment_details.go | 29 - ...work_security_group_compartment_details.go | 30 - ...ge_private_endpoint_compartment_details.go | 30 - .../change_public_ip_compartment_details.go | 30 - ...ange_public_ip_pool_compartment_details.go | 29 - ..._peering_connection_compartment_details.go | 30 - .../change_route_table_compartment_details.go | 30 - ...hange_security_list_compartment_details.go | 30 - ...nge_service_gateway_compartment_details.go | 30 - .../core/change_subnet_compartment_details.go | 30 - .../core/change_vcn_compartment_details.go | 30 - ...nge_virtual_circuit_compartment_details.go | 30 - .../core/change_vlan_compartment_details.go | 29 - ...ge_vnic_attachments_compartment_request.go | 40 - ...hange_volume_backup_compartment_details.go | 29 - .../core/change_volume_compartment_details.go | 29 - ...volume_group_backup_compartment_details.go | 29 - ...change_volume_group_compartment_details.go | 29 - .../core/change_vtap_compartment_details.go | 29 - .../oracle/oci-go-sdk/v49/core/client_vpn.go | 171 - .../v49/core/client_vpn_active_user.go | 35 - .../oci-go-sdk/v49/core/client_vpn_status.go | 68 - .../oci-go-sdk/v49/core/client_vpn_summary.go | 129 - .../v49/core/client_vpn_summary_collection.go | 29 - .../oci-go-sdk/v49/core/client_vpn_user.go | 72 - .../v49/core/client_vpn_user_summary.go | 39 - .../client_vpn_user_summary_collection.go | 29 - .../oci-go-sdk/v49/core/cluster_network.go | 100 - ...network_placement_configuration_details.go | 37 - .../v49/core/cluster_network_summary.go | 96 - .../v49/core/compute_capacity_reservation.go | 114 - ...city_reservation_instance_shape_summary.go | 32 - .../compute_capacity_reservation_summary.go | 72 - .../oci-go-sdk/v49/core/compute_cluster.go | 81 - .../v49/core/compute_cluster_collection.go | 29 - .../v49/core/compute_cluster_summary.go | 58 - .../compute_global_image_capability_schema.go | 54 - ..._global_image_capability_schema_summary.go | 54 - ...image_capability_schema_version_summary.go | 40 - .../v49/core/compute_instance_details.go | 46 - ...nnect_local_peering_connections_details.go | 29 - .../connect_local_peering_gateways_details.go | 29 - ...nect_remote_peering_connections_details.go | 33 - .../oci-go-sdk/v49/core/console_history.go | 91 - .../core/copy_boot_volume_backup_details.go | 43 - .../v49/core/copy_volume_backup_details.go | 44 - .../core/copy_volume_group_backup_details.go | 44 - .../v49/core/cpe_device_config_answer.go | 35 - .../v49/core/cpe_device_config_question.go | 38 - .../oci-go-sdk/v49/core/cpe_device_info.go | 32 - .../v49/core/cpe_device_shape_detail.go | 48 - .../v49/core/cpe_device_shape_summary.go | 33 - ...create_app_catalog_subscription_details.go | 48 - .../core/create_boot_volume_backup_details.go | 72 - .../v49/core/create_boot_volume_details.go | 136 - .../v49/core/create_byoip_range_details.go | 47 - .../v49/core/create_capture_filter_details.go | 49 - .../v49/core/create_client_vpn_details.go | 197 - .../core/create_client_vpn_user_details.go | 35 - .../core/create_cluster_network_details.go | 50 - ...e_cluster_network_instance_pool_details.go | 47 - .../core/create_compute_cluster_details.go | 47 - ...create_compute_cluster_request_response.go | 80 - .../create_cross_connect_group_details.go | 49 - .../oci-go-sdk/v49/core/create_dav_details.go | 79 - .../v49/core/create_dhcp_details.go | 123 - .../v49/core/create_drg_attachment_details.go | 109 - .../oci-go-sdk/v49/core/create_drg_details.go | 43 - .../create_drg_route_distribution_details.go | 67 - .../core/create_drg_route_table_details.go | 51 - ...eate_flow_log_config_attachment_details.go | 61 - .../core/create_flow_log_config_details.go | 111 - .../v49/core/create_image_details.go | 127 - .../create_instance_configuration_base.go | 139 - ...ate_instance_console_connection_details.go | 43 - ...ce_pool_placement_configuration_details.go | 48 - .../create_internal_dns_record_details.go | 70 - .../create_internal_drg_attachment_details.go | 51 - .../v49/core/create_internal_drg_details.go | 55 - ...create_internal_generic_gateway_details.go | 86 - .../core/create_internal_public_ip_details.go | 105 - ...create_internal_vnic_attachment_details.go | 1795 ------ .../v49/core/create_internal_vnic_details.go | 1970 ------- .../core/create_internet_gateway_details.go | 49 - .../core/create_ip_sec_connection_details.go | 105 - ...create_ip_sec_connection_tunnel_details.go | 154 - ...ip_sec_tunnel_encryption_domain_details.go | 34 - .../v49/core/create_ipv6_details.go | 51 - ...create_local_peering_connection_details.go | 36 - .../oci-go-sdk/v49/core/create_macsec_key.go | 34 - .../v49/core/create_macsec_properties.go | 34 - .../v49/core/create_nat_gateway_details.go | 86 - .../create_network_security_group_details.go | 48 - .../create_private_access_gateway_details.go | 46 - .../create_private_ip_next_hop_details.go | 36 - .../v49/core/create_public_ip_details.go | 83 - .../v49/core/create_public_ip_pool_details.go | 43 - ...reate_remote_peering_connection_details.go | 46 - .../v49/core/create_route_table_details.go | 52 - .../v49/core/create_scan_proxy_details.go | 39 - .../v49/core/create_security_list_details.go | 52 - .../oci-go-sdk/v49/core/create_vcn_details.go | 74 - .../core/create_virtual_circuit_details.go | 159 - ...e_virtual_circuit_public_prefix_details.go | 30 - .../v49/core/create_vnic_worker_details.go | 52 - .../v49/core/create_volume_backup_details.go | 72 - ...volume_backup_policy_assignment_details.go | 32 - .../v49/core/create_volume_details.go | 152 - .../create_volume_group_backup_details.go | 74 - .../v49/core/create_vtap_details.go | 121 - .../oci-go-sdk/v49/core/cross_connect.go | 115 - .../v49/core/cross_connect_group.go | 98 - .../v49/core/cross_connect_location.go | 33 - .../v49/core/cross_connect_mapping_details.go | 136 - ...ross_connect_mapping_details_collection.go | 29 - .../core/cross_connect_port_speed_shape.go | 34 - .../v49/core/cross_connect_status.go | 138 - .../oracle/oci-go-sdk/v49/core/dav.go | 132 - .../oci-go-sdk/v49/core/dedicated_vm_host.go | 113 - ...edicated_vm_host_instance_shape_summary.go | 32 - .../dedicated_vm_host_instance_summary.go | 43 - .../core/dedicated_vm_host_shape_summary.go | 33 - .../v49/core/dedicated_vm_host_summary.go | 101 - .../v49/core/default_drg_route_tables.go | 46 - .../v49/core/default_phase_one_parameters.go | 35 - .../v49/core/default_phase_two_parameters.go | 35 - .../delete_scan_proxy_request_response.go | 75 - ...e_virtual_circuit_public_prefix_details.go | 29 - .../v49/core/delete_vtap_request_response.go | 72 - .../detach_instance_pool_instance_details.go | 38 - .../v49/core/detach_load_balancer_details.go | 32 - ...vnic_from_destination_smart_nic_details.go | 29 - ...tach_vnic_from_source_smart_nic_details.go | 29 - .../oracle/oci-go-sdk/v49/core/device.go | 32 - .../oci-go-sdk/v49/core/dhcp_dns_option.go | 87 - .../oracle/oci-go-sdk/v49/core/dhcp_option.go | 74 - .../oci-go-sdk/v49/core/dhcp_options.go | 179 - .../v49/core/dhcp_search_domain_option.go | 55 - .../oci-go-sdk/v49/core/dns_config_details.go | 32 - .../oracle/oci-go-sdk/v49/core/dpd_config.go | 55 - .../oracle/oci-go-sdk/v49/core/drg.go | 92 - .../v49/core/drg_attached_network.go | 35 - .../v49/core/drg_attached_network_info.go | 38 - .../oci-go-sdk/v49/core/drg_attachment.go | 175 - ...d_drg_route_distribution_match_criteria.go | 44 - .../v49/core/drg_attachment_info.go | 29 - .../drg_attachment_network_create_details.go | 121 - .../core/drg_attachment_network_details.go | 121 - .../drg_attachment_network_update_details.go | 99 - ...e_drg_route_distribution_match_criteria.go | 73 - .../oci-go-sdk/v49/core/drg_migration.go | 38 - .../v49/core/drg_migration_count_region.go | 35 - .../v49/core/drg_migration_count_tenancy.go | 35 - .../v49/core/drg_migration_details.go | 38 - .../v49/core/drg_redundancy_status.go | 68 - .../v49/core/drg_route_distribution.go | 121 - .../drg_route_distribution_match_criteria.go | 94 - .../core/drg_route_distribution_statement.go | 103 - .../oci-go-sdk/v49/core/drg_route_rule.go | 145 - .../oci-go-sdk/v49/core/drg_route_table.go | 102 - .../oci-go-sdk/v49/core/drg_upgrade_state.go | 54 - .../v49/core/drg_validation_status.go | 32 - .../v49/core/egress_security_rule.go | 90 - .../v49/core/emulated_volume_attachment.go | 160 - .../enable_reverse_connections_details.go | 169 - .../v49/core/encryption_domain_config.go | 32 - .../v49/core/encryption_in_transit_type.go | 37 - .../oci-go-sdk/v49/core/endpoint_service.go | 134 - .../v49/core/endpoint_service_ip_details.go | 29 - .../v49/core/endpoint_service_next_hop.go | 38 - .../v49/core/endpoint_service_summary.go | 38 - ...num_integer_image_capability_descriptor.go | 54 - ...ring_image_capability_schema_descriptor.go | 54 - .../v49/core/exclusion_filter_details.go | 29 - .../v49/core/export_image_details.go | 122 - ..._image_via_object_storage_tuple_details.go | 65 - ...rt_image_via_object_storage_uri_details.go | 62 - .../v49/core/fast_connect_provider_service.go | 238 - .../core/fast_connect_provider_service_key.go | 42 - .../oci-go-sdk/v49/core/floating_ip_info.go | 38 - .../oci-go-sdk/v49/core/flow_log_config.go | 172 - .../v49/core/flow_log_config_attachment.go | 105 - .../v49/core/flow_log_destination.go | 87 - .../flow_log_object_storage_destination.go | 47 - .../oci-go-sdk/v49/core/gateway_route_data.go | 30 - ...et_all_drg_attachments_request_response.go | 121 - .../get_compute_cluster_request_response.go | 73 - ...reate_reverse_connection_nat_ip_details.go | 29 - ...l_generic_gateway_by_gateway_id_details.go | 29 - ...et_networking_topology_request_response.go | 121 - .../get_public_ip_by_ip_address_details.go | 30 - .../get_public_ip_by_private_ip_id_details.go | 29 - .../get_subnet_topology_request_response.go | 124 - .../core/get_vcn_topology_request_response.go | 124 - .../v49/core/i_scsi_volume_attachment.go | 190 - .../oci-go-sdk/v49/core/icmp_options.go | 40 - .../oracle/oci-go-sdk/v49/core/image.go | 180 - .../image_capability_schema_descriptor.go | 105 - .../v49/core/image_memory_constraints.go | 32 - .../v49/core/image_ocpu_constraints.go | 32 - .../core/image_shape_compatibility_entry.go | 36 - .../core/image_shape_compatibility_summary.go | 36 - .../v49/core/image_source_details.go | 121 - ...source_via_object_storage_tuple_details.go | 73 - ...e_source_via_object_storage_uri_details.go | 67 - .../v49/core/ingress_security_rule.go | 89 - .../oracle/oci-go-sdk/v49/core/instance.go | 377 -- .../core/instance_action_request_response.go | 123 - .../v49/core/instance_agent_features.go | 32 - .../instance_agent_plugin_config_details.go | 60 - .../v49/core/instance_availability_config.go | 60 - ...ilan_bm_launch_instance_platform_config.go | 96 - ...rome_bm_launch_instance_platform_config.go | 65 - ..._amd_vm_launch_instance_platform_config.go | 65 - ...tance_configuration_attach_vnic_details.go | 38 - ...nce_configuration_attach_volume_details.go | 114 - ...tance_configuration_availability_config.go | 60 - ...ance_configuration_block_volume_details.go | 63 - ...figuration_block_volume_replica_details.go | 34 - ...nce_configuration_create_volume_details.go | 137 - ...instance_configuration_instance_details.go | 66 - ...instance_configuration_instance_options.go | 31 - ...e_configuration_instance_source_details.go | 70 - ...instance_source_via_boot_volume_details.go | 44 - ...ation_instance_source_via_image_details.go | 51 - ...lake_bm_launch_instance_platform_config.go | 65 - ...ntel_vm_launch_instance_platform_config.go | 65 - ...nfiguration_iscsi_attach_volume_details.go | 80 - ...uration_launch_instance_platform_config.go | 146 - ...on_launch_instance_shape_config_details.go | 71 - .../instance_configuration_launch_options.go | 174 - ...n_paravirtualized_attach_volume_details.go | 80 - .../core/instance_configuration_summary.go | 50 - ...nce_configuration_volume_source_details.go | 70 - ...olume_source_from_volume_backup_details.go | 44 - ...ation_volume_source_from_volume_details.go | 44 - .../v49/core/instance_console_connection.go | 92 - .../v49/core/instance_credentials.go | 32 - .../oci-go-sdk/v49/core/instance_options.go | 31 - .../oci-go-sdk/v49/core/instance_pool.go | 116 - .../v49/core/instance_pool_instance.go | 95 - ...nce_pool_instance_load_balancer_backend.go | 65 - .../instance_pool_load_balancer_attachment.go | 76 - .../instance_pool_placement_configuration.go | 48 - ...ce_pool_placement_secondary_vnic_subnet.go | 33 - .../v49/core/instance_pool_summary.go | 101 - .../v49/core/instance_reservation_config.go | 44 - .../instance_reservation_config_details.go | 47 - ...stance_reservation_shape_config_details.go | 39 - .../v49/core/instance_shape_config.go | 93 - .../v49/core/instance_source_details.go | 70 - ...instance_source_via_boot_volume_details.go | 44 - .../core/instance_source_via_image_details.go | 50 - .../oci-go-sdk/v49/core/instance_summary.go | 63 - ...lake_bm_launch_instance_platform_config.go | 65 - .../core/intel_skylake_bm_platform_config.go | 65 - ...ntel_vm_launch_instance_platform_config.go | 65 - .../v49/core/intel_vm_platform_config.go | 65 - .../v49/core/internal_dns_record.go | 103 - .../oci-go-sdk/v49/core/internal_drg.go | 128 - .../v49/core/internal_drg_attachment.go | 86 - .../v49/core/internal_generic_gateway.go | 131 - .../oci-go-sdk/v49/core/internal_public_ip.go | 218 - .../v49/core/internal_vnic_attachment.go | 1818 ------ ...t_drg_attachment_network_create_details.go | 55 - ...internet_drg_attachment_network_details.go | 56 - ...t_drg_attachment_network_update_details.go | 48 - .../oci-go-sdk/v49/core/internet_gateway.go | 92 - .../oci-go-sdk/v49/core/ip_sec_connection.go | 155 - .../core/ip_sec_connection_device_config.go | 40 - .../core/ip_sec_connection_device_status.go | 40 - .../ip_sec_connection_migration_status.go | 71 - .../v49/core/ip_sec_connection_tunnel.go | 202 - .../ip_sec_connection_tunnel_error_details.go | 44 - .../ip_sec_connection_tunnel_shared_secret.go | 29 - ...l_drg_attachment_network_create_details.go | 58 - ...c_tunnel_drg_attachment_network_details.go | 72 - .../oracle/oci-go-sdk/v49/core/ipv6.go | 98 - ...ch_instance_availability_config_details.go | 61 - .../core/launch_instance_platform_config.go | 146 - .../launch_instance_shape_config_details.go | 70 - .../oci-go-sdk/v49/core/launch_options.go | 174 - .../v49/core/ldap_config_details.go | 119 - .../v49/core/letter_of_authority.go | 72 - ...ting_resource_versions_request_response.go | 113 - ...t_app_catalog_listings_request_response.go | 119 - ..._catalog_subscriptions_request_response.go | 148 - ..._block_volume_replicas_request_response.go | 155 - ...st_boot_volume_backups_request_response.go | 158 - ...t_boot_volume_replicas_request_response.go | 155 - .../list_byoip_ranges_request_response.go | 151 - ...ist_c3_drg_attachments_request_response.go | 196 - .../list_capture_filters_request_response.go | 152 - .../list_client_vpn_users_request_response.go | 151 - .../core/list_client_vpns_request_response.go | 148 - ...ster_network_instances_request_response.go | 151 - .../list_cluster_networks_request_response.go | 152 - ...vation_instance_shapes_request_response.go | 152 - ..._reservation_instances_request_response.go | 152 - ..._capacity_reservations_request_response.go | 155 - .../list_compute_clusters_request_response.go | 148 - ...bility_schema_versions_request_response.go | 148 - ...age_capability_schemas_request_response.go | 148 - ...age_capability_schemas_request_response.go | 151 - ...list_console_histories_request_response.go | 156 - ...t_cross_connect_groups_request_response.go | 152 - .../list_cross_connects_request_response.go | 155 - ...ated_vm_host_instances_request_response.go | 152 - ...ist_dedicated_vm_hosts_request_response.go | 195 - .../list_dhcp_options_request_response.go | 155 - .../list_drg_attachments_request_response.go | 196 - ...istribution_statements_request_response.go | 137 - ...rg_route_distributions_request_response.go | 152 - .../list_drg_route_rules_request_response.go | 113 - .../list_drg_route_tables_request_response.go | 155 - .../list_drgs_by_states_request_response.go | 148 - ...list_endpoint_services_request_response.go | 148 - ...log_config_attachments_request_response.go | 113 - .../list_flow_log_configs_request_response.go | 148 - .../v49/core/list_images_request_response.go | 163 - ...nstance_configurations_request_response.go | 145 - .../list_instance_devices_request_response.go | 151 - ...nstance_pool_instances_request_response.go | 151 - .../list_instance_pools_request_response.go | 152 - .../core/list_instances_request_response.go | 159 - ...st_internal_public_ips_request_response.go | 149 - .../list_internal_vnics_request_response.go | 154 - ...list_internet_gateways_request_response.go | 155 - .../list_nat_gateways_request_response.go | 155 - ...y_group_security_rules_request_response.go | 164 - ...k_security_group_vnics_request_response.go | 137 - ...etwork_security_groups_request_response.go | 158 - ...rivate_access_gateways_request_response.go | 148 - ..._endpoint_associations_request_response.go | 145 - ...list_private_endpoints_request_response.go | 148 - .../list_public_ip_pools_request_response.go | 151 - .../core/list_public_ips_request_response.go | 152 - ...rse_connection_nat_ips_request_response.go | 152 - .../list_route_tables_request_response.go | 155 - .../list_scan_proxies_request_response.go | 145 - .../list_security_lists_request_response.go | 155 - .../list_service_gateways_request_response.go | 152 - .../v49/core/list_shapes_request_response.go | 93 - .../v49/core/list_subnets_request_response.go | 155 - ...st_vcn_drg_attachments_request_response.go | 196 - .../v49/core/list_vcns_request_response.go | 152 - ...ircuit_public_prefixes_request_response.go | 75 - .../list_virtual_circuits_request_response.go | 152 - .../v49/core/list_vlans_request_response.go | 155 - .../list_volume_backups_request_response.go | 158 - ...t_volume_group_backups_request_response.go | 151 - ..._volume_group_replicas_request_response.go | 155 - .../list_volume_groups_request_response.go | 156 - .../v49/core/list_volumes_request_response.go | 159 - .../v49/core/list_vtaps_request_response.go | 169 - .../v49/core/local_peering_connection.go | 118 - .../v49/core/local_peering_gateway.go | 152 - .../v49/core/local_peering_token_details.go | 29 - .../v49/core/macsec_encryption_cipher.go | 41 - .../oracle/oci-go-sdk/v49/core/macsec_key.go | 38 - .../oci-go-sdk/v49/core/macsec_properties.go | 34 - .../oci-go-sdk/v49/core/macsec_state.go | 37 - .../v49/core/measured_boot_entry.go | 36 - .../v49/core/measured_boot_report.go | 31 - .../core/measured_boot_report_measurements.go | 32 - .../v49/core/migrate_drg_details.go | 61 - .../oci-go-sdk/v49/core/migration_info.go | 42 - .../modify_reverse_connections_details.go | 78 - .../v49/core/modify_vcn_cidr_details.go | 32 - .../oci-go-sdk/v49/core/multipath_device.go | 39 - .../oracle/oci-go-sdk/v49/core/nat_gateway.go | 110 - .../v49/core/network_security_group.go | 110 - .../v49/core/network_security_group_vnic.go | 38 - .../core/peer_region_for_remote_peering.go | 31 - .../v49/core/phase_one_config_details.go | 121 - .../v49/core/phase_two_config_details.go | 126 - .../oci-go-sdk/v49/core/platform_config.go | 141 - .../oracle/oci-go-sdk/v49/core/port_range.go | 33 - .../preemptible_instance_config_details.go | 52 - .../oci-go-sdk/v49/core/preemption_action.go | 87 - .../v49/core/private_access_gateway.go | 95 - .../core/private_access_gateway_summary.go | 34 - .../v49/core/private_endpoint_association.go | 48 - .../v49/core/private_endpoint_summary.go | 37 - .../v49/core/private_ip_next_hop.go | 36 - .../core/private_ip_next_hop_protocol_port.go | 57 - .../v49/core/private_ip_next_hop_target.go | 63 - .../oracle/oci-go-sdk/v49/core/public_ip.go | 217 - .../oci-go-sdk/v49/core/public_ip_pool.go | 85 - .../v49/core/public_ip_pool_collection.go | 29 - .../v49/core/public_ip_pool_summary.go | 53 - .../v49/core/radius_config_details.go | 66 - .../v49/core/radius_server_details.go | 38 - .../v49/core/remote_peering_connection.go | 138 - ...n_drg_attachment_network_create_details.go | 60 - ...nnection_drg_attachment_network_details.go | 69 - .../remove_additional_route_rules_details.go | 38 - ...g_route_distribution_statements_details.go | 29 - .../core/remove_drg_route_rules_details.go | 29 - ...k_security_group_security_rules_details.go | 29 - .../remove_public_ip_pool_capacity_details.go | 30 - .../v49/core/remove_vcn_cidr_details.go | 29 - .../core/reverse_connection_configuration.go | 200 - .../v49/core/reverse_connection_nat_ip.go | 74 - .../reverse_connection_nat_ip_cidr_summary.go | 29 - .../reverse_connections_source_ip_details.go | 31 - .../v49/core/rollback_drg_migration.go | 38 - .../core/rollback_drg_migration_details.go | 38 - .../route_destination_route_target_details.go | 32 - .../oracle/oci-go-sdk/v49/core/route_rule.go | 86 - .../oracle/oci-go-sdk/v49/core/route_table.go | 94 - .../oci-go-sdk/v49/core/scan_listener_info.go | 36 - .../oracle/oci-go-sdk/v49/core/scan_proxy.go | 136 - .../oci-go-sdk/v49/core/scan_proxy_summary.go | 51 - .../oci-go-sdk/v49/core/security_list.go | 103 - .../oci-go-sdk/v49/core/security_rule.go | 187 - .../oracle/oci-go-sdk/v49/core/service.go | 53 - .../oci-go-sdk/v49/core/service_gateway.go | 110 - .../v49/core/service_id_request_details.go | 29 - .../v49/core/service_id_response_details.go | 32 - .../set_drg_peering_connection_details.go | 35 - .../oracle/oci-go-sdk/v49/core/shape.go | 125 - .../core/shape_max_vnic_attachment_options.go | 36 - .../v49/core/shape_measured_boot_options.go | 32 - .../v49/core/shape_memory_options.go | 42 - .../shape_networking_bandwidth_options.go | 36 - ..._numa_nodes_per_socket_platform_options.go | 59 - .../oci-go-sdk/v49/core/shape_ocpu_options.go | 33 - .../v49/core/shape_platform_config_options.go | 66 - .../v49/core/shape_secure_boot_options.go | 32 - .../shape_trusted_platform_module_options.go | 32 - .../core/smart_nic_vnic_attachment_info.go | 41 - .../oci-go-sdk/v49/core/ssl_cert_details.go | 87 - .../oci-go-sdk/v49/core/subnet_topology.go | 107 - .../oracle/oci-go-sdk/v49/core/tcp_options.go | 30 - .../v49/core/terminate_preemption_action.go | 44 - .../oracle/oci-go-sdk/v49/core/topology.go | 129 - ...ogy_associated_with_entity_relationship.go | 62 - ...gy_associated_with_relationship_details.go | 29 - .../topology_contains_entity_relationship.go | 60 - .../v49/core/topology_entity_relationship.go | 119 - .../topology_routes_to_entity_relationship.go | 61 - ...topology_routes_to_relationship_details.go | 63 - .../oci-go-sdk/v49/core/tunnel_config.go | 39 - .../v49/core/tunnel_cpe_device_config.go | 35 - .../v49/core/tunnel_phase_one_details.go | 57 - .../v49/core/tunnel_phase_two_details.go | 66 - .../v49/core/tunnel_route_summary.go | 64 - .../tunnel_security_association_summary.go | 72 - .../oci-go-sdk/v49/core/tunnel_status.go | 68 - .../oracle/oci-go-sdk/v49/core/udp_options.go | 30 - .../core/update_boot_volume_backup_details.go | 40 - .../v49/core/update_boot_volume_details.go | 58 - .../update_boot_volume_kms_key_details.go | 31 - .../v49/core/update_byoip_range_details.go | 40 - .../v49/core/update_capture_filter_details.go | 43 - .../v49/core/update_client_vpn_details.go | 145 - .../core/update_client_vpn_user_details.go | 32 - .../core/update_cluster_network_details.go | 43 - ...e_cluster_network_instance_pool_details.go | 46 - ...te_compute_capacity_reservation_details.go | 49 - .../core/update_compute_cluster_details.go | 40 - .../core/update_console_history_details.go | 40 - .../oci-go-sdk/v49/core/update_cpe_details.go | 51 - .../v49/core/update_cross_connect_details.go | 51 - .../update_cross_connect_group_details.go | 45 - .../oci-go-sdk/v49/core/update_dav_details.go | 43 - .../core/update_dedicated_vm_host_details.go | 40 - .../v49/core/update_dhcp_details.go | 110 - .../oci-go-sdk/v49/core/update_drg_details.go | 42 - .../update_drg_route_distribution_details.go | 41 - ...rg_route_distribution_statement_details.go | 70 - ...g_route_distribution_statements_details.go | 29 - .../v49/core/update_drg_route_rule_details.go | 65 - .../core/update_drg_route_rules_details.go | 29 - .../core/update_drg_route_table_details.go | 49 - ...pdate_endpoint_service_next_hop_details.go | 32 - ...date_flow_log_config_attachment_details.go | 30 - .../core/update_flow_log_config_details.go | 40 - .../v49/core/update_image_details.go | 48 - ...te_instance_availability_config_details.go | 61 - .../update_instance_configuration_details.go | 40 - ...ate_instance_console_connection_details.go | 36 - .../v49/core/update_instance_details.go | 130 - ...ce_pool_placement_configuration_details.go | 48 - .../update_instance_shape_config_details.go | 71 - .../update_internal_dns_record_details.go | 34 - .../update_internal_drg_attachment_details.go | 33 - .../v49/core/update_internal_drg_details.go | 40 - ...update_internal_generic_gateway_details.go | 43 - .../core/update_internal_public_ip_details.go | 45 - .../update_internal_vnic_metadata_details.go | 32 - .../core/update_internet_gateway_details.go | 43 - .../core/update_ip_sec_connection_details.go | 85 - ...update_ip_sec_connection_tunnel_details.go | 148 - ...connection_tunnel_shared_secret_details.go | 30 - ...ip_sec_tunnel_encryption_domain_details.go | 34 - .../v49/core/update_ipv6_details.go | 44 - .../v49/core/update_launch_options.go | 108 - ...update_local_peering_connection_details.go | 30 - .../update_local_peering_gateway_details.go | 45 - .../oci-go-sdk/v49/core/update_macsec_key.go | 38 - .../v49/core/update_macsec_properties.go | 34 - .../v49/core/update_nat_gateway_details.go | 50 - .../update_network_security_group_details.go | 40 - ...k_security_group_security_rules_details.go | 29 - .../update_private_access_gateway_details.go | 40 - .../v49/core/update_private_ip_details.go | 55 - .../update_private_ip_next_hop_details.go | 37 - .../v49/core/update_public_ip_details.go | 47 - .../v49/core/update_public_ip_pool_details.go | 40 - ...pdate_remote_peering_connection_details.go | 40 - .../v49/core/update_route_table_details.go | 46 - .../v49/core/update_scan_proxy_details.go | 39 - .../v49/core/update_security_list_details.go | 46 - .../v49/core/update_security_rule_details.go | 176 - ...update_tunnel_cpe_device_config_details.go | 29 - .../oci-go-sdk/v49/core/update_vcn_details.go | 54 - .../core/update_virtual_circuit_details.go | 148 - .../v49/core/update_vnic_shape_details.go | 1745 ------ .../v49/core/update_vnic_worker_details.go | 33 - .../core/update_volume_attachment_details.go | 63 - .../v49/core/update_volume_backup_details.go | 40 - .../v49/core/update_volume_details.go | 59 - .../update_volume_group_backup_details.go | 40 - .../v49/core/update_volume_group_details.go | 47 - .../v49/core/update_volume_kms_key_details.go | 31 - .../v49/core/update_vtap_details.go | 89 - .../v49/core/update_vtap_request_response.go | 81 - ...d_network_security_group_security_rules.go | 29 - .../oci-go-sdk/v49/core/upgrade_status.go | 60 - .../validate_drg_routes_request_response.go | 77 - .../v49/core/validation_status_info.go | 29 - .../oracle/oci-go-sdk/v49/core/vcn.go | 125 - .../v49/core/vcn_dns_resolver_association.go | 62 - ...n_drg_attachment_network_create_details.go | 57 - .../vcn_drg_attachment_network_details.go | 55 - ...n_drg_attachment_network_update_details.go | 47 - .../oci-go-sdk/v49/core/virtual_circuit.go | 362 -- .../core/virtual_circuit_bandwidth_shape.go | 34 - ...t_drg_attachment_network_create_details.go | 62 - ..._circuit_drg_attachment_network_details.go | 74 - ...t_drg_attachment_network_update_details.go | 55 - .../v49/core/virtual_circuit_ip_mtu.go | 37 - .../v49/core/virtual_circuit_public_prefix.go | 63 - .../oracle/oci-go-sdk/v49/core/vlan.go | 115 - .../oci-go-sdk/v49/core/vnic_attachment.go | 108 - .../oracle/oci-go-sdk/v49/core/vnic_worker.go | 96 - .../v49/core/vnic_worker_ip_config.go | 35 - .../oracle/oci-go-sdk/v49/core/volume.go | 216 - .../oci-go-sdk/v49/core/volume_attachment.go | 287 - .../oci-go-sdk/v49/core/volume_backup.go | 188 - .../v49/core/volume_backup_policy.go | 84 - .../core/volume_backup_policy_assignment.go | 41 - .../v49/core/volume_backup_schedule.go | 248 - .../oci-go-sdk/v49/core/volume_group.go | 175 - .../v49/core/volume_group_backup.go | 180 - .../v49/core/volume_group_replica.go | 105 - .../v49/core/volume_group_replica_details.go | 34 - .../v49/core/volume_group_replica_info.go | 37 - .../v49/core/volume_group_source_details.go | 78 - ...source_from_volume_group_backup_details.go | 44 - ..._group_source_from_volume_group_details.go | 44 - ...ource_from_volume_group_replica_details.go | 46 - ...olume_group_source_from_volumes_details.go | 44 - .../oci-go-sdk/v49/core/volume_kms_key.go | 29 - .../v49/core/volume_source_details.go | 76 - ...ource_from_block_volume_replica_details.go | 46 - ...olume_source_from_volume_backup_details.go | 44 - .../core/volume_source_from_volume_details.go | 44 - .../oracle/oci-go-sdk/v49/core/vtap.go | 188 - .../oracle/oci-go-sdk/v49/core/wallet_info.go | 34 - .../change_file_system_compartment_details.go | 25 - ...change_mount_target_compartment_details.go | 25 - ..._outbound_connector_compartment_details.go | 25 - .../change_replication_compartment_details.go | 25 - ..._replication_target_compartment_details.go | 26 - .../v49/filestorage/client_options.go | 139 - .../v49/filestorage/create_export_details.go | 83 - .../filestorage/create_file_system_details.go | 52 - .../filestorage/create_kerberos_details.go | 28 - .../create_ldap_bind_account_details.go | 95 - .../filestorage/create_ldap_idmap_details.go | 67 - .../filestorage/create_replication_details.go | 51 - .../create_replication_target_details.go | 49 - .../filestorage/create_snapshot_details.go | 43 - .../delete_replication_request_response.go | 107 - .../oci-go-sdk/v49/filestorage/endpoint.go | 28 - .../oci-go-sdk/v49/filestorage/export.go | 149 - .../oci-go-sdk/v49/filestorage/export_set.go | 100 - .../v49/filestorage/export_set_summary.go | 76 - .../v49/filestorage/export_summary.go | 101 - .../oci-go-sdk/v49/filestorage/file_system.go | 127 - .../v49/filestorage/file_system_summary.go | 108 - .../v49/filestorage/filestorage_client.go | 3196 ----------- .../oci-go-sdk/v49/filestorage/kerberos.go | 31 - .../v49/filestorage/kerberos_keytab_entry.go | 67 - .../v49/filestorage/ldap_bind_account.go | 118 - .../oci-go-sdk/v49/filestorage/ldap_idmap.go | 67 - .../list_export_sets_request_response.go | 193 - .../list_exports_request_response.go | 191 - .../list_file_systems_request_response.go | 199 - .../list_mount_targets_request_response.go | 196 - ...st_outbound_connectors_request_response.go | 193 - ...st_replication_targets_request_response.go | 193 - .../list_replications_request_response.go | 196 - .../list_snapshots_request_response.go | 185 - .../modify_rootdir_attributes_details.go | 31 - .../v49/filestorage/mount_target.go | 139 - .../v49/filestorage/mount_target_summary.go | 108 - .../v49/filestorage/outbound_connector.go | 203 - .../filestorage/outbound_connector_summary.go | 180 - .../outbound_connector_test_results.go | 56 - .../v49/filestorage/reconciliation_details.go | 25 - .../oci-go-sdk/v49/filestorage/replication.go | 145 - .../replication_fail_request_response.go | 112 - ...lication_status_update_request_response.go | 109 - .../v49/filestorage/replication_summary.go | 97 - .../v49/filestorage/replication_target.go | 148 - ...n_target_status_update_request_response.go | 168 - .../filestorage/replication_target_summary.go | 92 - .../filestorage/reserve_target_num_details.go | 28 - .../oci-go-sdk/v49/filestorage/snapshot.go | 130 - .../v49/filestorage/snapshot_summary.go | 128 - .../v49/filestorage/source_details.go | 30 - .../oci-go-sdk/v49/filestorage/tagslug.go | 41 - .../test_outbound_connector_details.go | 25 - .../test_outbound_connector_result.go | 59 - .../v49/filestorage/update_export_details.go | 57 - .../filestorage/update_export_set_details.go | 49 - .../filestorage/update_file_system_details.go | 45 - .../filestorage/update_kerberos_details.go | 28 - .../filestorage/update_ldap_idmap_details.go | 67 - .../update_mount_target_details.go | 51 - .../update_outbound_connector_details.go | 38 - .../filestorage/update_replication_details.go | 42 - .../update_replication_target_details.go | 36 - .../filestorage/update_snapshot_details.go | 33 - .../oracle/oci-go-sdk/v49/identity/account.go | 37 - .../v49/identity/add_user_to_group_details.go | 28 - .../allowed_domain_license_type_summary.go | 33 - .../oracle/oci-go-sdk/v49/identity/api_key.go | 81 - .../oci-go-sdk/v49/identity/auth_token.go | 86 - .../v49/identity/authentication_policy.go | 28 - .../v49/identity/availability_domain.go | 33 - .../identity/base_tag_definition_validator.go | 97 - .../v49/identity/bulk_action_resource.go | 52 - .../v49/identity/bulk_action_resource_type.go | 29 - .../bulk_action_resource_type_collection.go | 25 - .../identity/bulk_delete_resources_details.go | 25 - .../v49/identity/bulk_delete_tags_details.go | 25 - .../identity/bulk_edit_operation_details.go | 62 - .../v49/identity/bulk_edit_resource.go | 31 - .../v49/identity/bulk_edit_tags_details.go | 31 - .../identity/bulk_edit_tags_resource_type.go | 32 - ...bulk_edit_tags_resource_type_collection.go | 25 - .../bulk_import_standard_tags_details.go | 28 - ...k_import_standard_tags_request_response.go | 77 - .../identity/bulk_move_resources_details.go | 29 - .../change_domain_compartment_details.go | 26 - .../change_domain_license_type_details.go | 25 - ...change_tag_namespace_compartment_detail.go | 25 - .../change_tas_domain_license_type_details.go | 25 - .../oci-go-sdk/v49/identity/compartment.go | 108 - .../v49/identity/create_api_key_details.go | 25 - .../v49/identity/create_auth_token_details.go | 25 - .../create_customer_secret_key_details.go | 25 - .../identity/create_db_credential_details.go | 28 - .../v49/identity/create_domain_details.go | 77 - .../identity/create_dynamic_group_details.go | 46 - .../v49/identity/create_group_details.go | 42 - .../create_identity_provider_details.go | 178 - .../create_idp_group_mapping_details.go | 29 - ...reate_o_auth2_client_credential_details.go | 31 - .../create_region_subscription_details.go | 27 - .../create_smtp_credential_details.go | 25 - .../identity/create_swift_password_details.go | 25 - .../identity/create_tag_default_details.go | 39 - .../identity/create_tag_namespace_details.go | 41 - .../v49/identity/create_user_details.go | 45 - .../v49/identity/customer_secret_key.go | 83 - .../identity/customer_secret_key_summary.go | 77 - .../oci-go-sdk/v49/identity/db_credential.go | 72 - .../v49/identity/db_credential_summary.go | 46 - .../default_tag_definition_validator.go | 39 - .../oracle/oci-go-sdk/v49/identity/domain.go | 154 - .../v49/identity/domain_replication.go | 31 - .../v49/identity/domain_replication_states.go | 31 - .../oci-go-sdk/v49/identity/domain_summary.go | 101 - .../oci-go-sdk/v49/identity/dynamic_group.go | 98 - .../enable_replication_to_region_details.go | 28 - .../identity/enum_tag_definition_validator.go | 42 - .../oci-go-sdk/v49/identity/fault_domain.go | 36 - .../v49/identity/fully_qualified_scope.go | 28 - .../get_compartment_request_response.go | 97 - .../get_work_request_request_response.go | 73 - .../oracle/oci-go-sdk/v49/identity/group.go | 97 - .../v49/identity/iam_work_request.go | 118 - .../iam_work_request_error_summary.go | 31 - .../identity/iam_work_request_log_summary.go | 29 - .../v49/identity/iam_work_request_resource.go | 66 - .../v49/identity/iam_work_request_summary.go | 118 - .../identity_provider_group_summary.go | 45 - .../v49/identity/idp_group_mapping.go | 85 - ...d_domain_license_types_request_response.go | 143 - ..._action_resource_types_request_response.go | 104 - .../list_compartments_request_response.go | 208 - .../list_db_credentials_request_response.go | 146 - .../identity/list_domains_request_response.go | 161 - .../list_dynamic_groups_request_response.go | 146 - .../identity/list_groups_request_response.go | 146 - ...am_work_request_errors_request_response.go | 108 - ..._iam_work_request_logs_request_response.go | 111 - ...ist_identity_providers_request_response.go | 170 - .../list_mfa_totp_devices_request_response.go | 140 - .../list_network_sources_request_response.go | 146 - .../list_policies_request_response.go | 146 - .../identity/list_users_request_response.go | 152 - .../list_work_requests_request_response.go | 84 - .../v49/identity/mfa_totp_device.go | 89 - .../v49/identity/mfa_totp_device_summary.go | 80 - .../oci-go-sdk/v49/identity/mfa_totp_token.go | 25 - .../v49/identity/move_compartment_details.go | 26 - .../oci-go-sdk/v49/identity/network_policy.go | 25 - .../v49/identity/network_sources.go | 99 - .../network_sources_virtual_source_list.go | 25 - .../v49/identity/o_auth2_client_credential.go | 85 - .../o_auth2_client_credential_summary.go | 82 - .../v49/identity/password_policy.go | 40 - .../oracle/oci-go-sdk/v49/identity/policy.go | 104 - .../oracle/oci-go-sdk/v49/identity/region.go | 37 - .../v49/identity/region_subscription.go | 65 - .../v49/identity/replicated_region_details.go | 62 - .../v49/identity/scim_client_credentials.go | 28 - .../v49/identity/smtp_credential.go | 87 - .../v49/identity/smtp_credential_summary.go | 81 - .../standard_tag_definition_template.go | 88 - .../standard_tag_namespace_template.go | 34 - ...standard_tag_namespace_template_summary.go | 34 - .../oci-go-sdk/v49/identity/swift_password.go | 85 - .../oci-go-sdk/v49/identity/tag_default.go | 85 - .../v49/identity/tag_default_summary.go | 76 - .../oci-go-sdk/v49/identity/tag_namespace.go | 85 - .../v49/identity/tag_namespace_summary.go | 55 - .../oci-go-sdk/v49/identity/tag_rule.go | 92 - .../oci-go-sdk/v49/identity/tag_summary.go | 59 - .../v49/identity/tagging_work_request.go | 115 - .../tagging_work_request_error_summary.go | 32 - .../tagging_work_request_log_summary.go | 29 - .../identity/tagging_work_request_summary.go | 114 - .../oci-go-sdk/v49/identity/ui_password.go | 70 - .../v49/identity/ui_password_information.go | 64 - .../v49/identity/update_auth_token_details.go | 25 - .../update_authentication_policy_details.go | 25 - .../identity/update_compartment_details.go | 39 - .../update_customer_secret_key_details.go | 25 - .../v49/identity/update_domain_details.go | 41 - .../identity/update_dynamic_group_details.go | 39 - .../v49/identity/update_group_details.go | 35 - .../update_identity_provider_details.go | 118 - .../update_idp_group_mapping_details.go | 28 - .../identity/update_network_source_details.go | 46 - ...pdate_o_auth2_client_credential_details.go | 31 - .../v49/identity/update_policy_details.go | 45 - .../update_smtp_credential_details.go | 25 - .../v49/identity/update_state_details.go | 25 - .../identity/update_swift_password_details.go | 25 - .../identity/update_tag_default_details.go | 33 - .../identity/update_tag_namespace_details.go | 39 - .../v49/identity/update_tag_rule_details.go | 41 - .../update_user_capabilities_details.go | 43 - .../v49/identity/update_user_details.go | 41 - .../oracle/oci-go-sdk/v49/identity/user.go | 146 - .../v49/identity/user_capabilities.go | 43 - .../v49/identity/user_group_membership.go | 75 - .../oci-go-sdk/v49/identity/work_request.go | 113 - .../v49/identity/work_request_error.go | 32 - .../v49/identity/work_request_log_entry.go | 29 - .../v49/identity/work_request_resource.go | 65 - .../v49/identity/work_request_summary.go | 109 - .../oci-go-sdk/v49/loadbalancer/action.go | 84 - .../oci-go-sdk/v49/loadbalancer/backend.go | 60 - .../v49/loadbalancer/backend_details.go | 55 - .../v49/loadbalancer/backend_health.go | 60 - .../v49/loadbalancer/backend_set.go | 50 - .../v49/loadbalancer/backend_set_details.go | 43 - .../v49/loadbalancer/backend_set_health.go | 80 - ...hange_load_balancer_compartment_details.go | 27 - ...d_balancer_compartment_request_response.go | 86 - .../v49/loadbalancer/cidr_blocks.go | 37 - .../v49/loadbalancer/cidr_blocks_details.go | 37 - .../loadbalancer/connection_configuration.go | 59 - .../loadbalancer/create_backend_details.go | 57 - .../create_backend_request_response.go | 100 - .../create_backend_set_details.go | 50 - .../create_backend_set_request_response.go | 96 - .../create_cidr_blocks_details.go | 37 - .../create_cidr_blocks_request_response.go | 80 - .../loadbalancer/create_hostname_details.go | 34 - .../loadbalancer/create_listener_details.go | 66 - .../create_listener_request_response.go | 96 - .../create_path_route_set_details.go | 32 - .../create_routing_policy_details.go | 56 - .../create_rule_set_request_response.go | 80 - ...ate_s_s_l_cipher_suite_request_response.go | 80 - .../delete_backend_request_response.go | 87 - .../delete_backend_set_request_response.go | 90 - .../delete_certificate_request_response.go | 82 - .../delete_cidr_blocks_request_response.go | 74 - .../delete_hostname_request_response.go | 81 - .../delete_listener_request_response.go | 90 - .../delete_load_balancer_request_response.go | 77 - .../delete_path_route_set_request_response.go | 81 - .../delete_routing_policy_request_response.go | 81 - .../delete_rule_set_request_response.go | 74 - ...ete_s_s_l_cipher_suite_request_response.go | 74 - .../loadbalancer/forward_to_backend_set.go | 42 - .../get_backend_health_request_response.go | 78 - .../get_backend_request_response.go | 84 - ...get_backend_set_health_request_response.go | 83 - .../get_backend_set_request_response.go | 83 - .../get_cidr_blocks_request_response.go | 72 - .../get_health_checker_request_response.go | 80 - .../get_hostname_request_response.go | 80 - ...t_load_balancer_health_request_response.go | 70 - .../get_load_balancer_request_response.go | 79 - .../get_path_route_set_request_response.go | 80 - .../get_routing_policy_request_response.go | 80 - .../get_rule_set_request_response.go | 87 - ...get_s_s_l_cipher_suite_request_response.go | 74 - .../get_work_request_request_response.go | 79 - .../v49/loadbalancer/health_check_result.go | 73 - .../v49/loadbalancer/health_checker.go | 60 - .../loadbalancer/health_checker_details.go | 58 - .../oci-go-sdk/v49/loadbalancer/hostname.go | 34 - .../v49/loadbalancer/hostname_details.go | 32 - .../oci-go-sdk/v49/loadbalancer/ip_address.go | 34 - .../list_backend_sets_request_response.go | 84 - .../list_backends_request_response.go | 80 - .../list_certificates_request_response.go | 77 - .../list_cidr_blocks_request_response.go | 71 - .../list_hostnames_request_response.go | 86 - .../list_listener_rules_request_response.go | 73 - .../list_load_balancers_request_response.go | 149 - .../list_path_route_sets_request_response.go | 77 - .../list_policies_request_response.go | 84 - .../list_routing_policies_request_response.go | 90 - .../list_rule_sets_request_response.go | 85 - ...st_s_s_l_cipher_suites_request_response.go | 70 - .../list_shapes_request_response.go | 84 - .../list_work_requests_request_response.go | 84 - .../oci-go-sdk/v49/loadbalancer/listener.go | 64 - .../v49/loadbalancer/listener_details.go | 58 - .../v49/loadbalancer/load_balancer_health.go | 84 - .../load_balancer_health_summary.go | 66 - .../v49/loadbalancer/load_balancer_policy.go | 29 - .../loadbalancer/load_balancer_protocol.go | 27 - .../v49/loadbalancer/load_balancer_shape.go | 30 - .../v49/loadbalancer/path_match_condition.go | 80 - .../v49/loadbalancer/path_match_type.go | 61 - .../oci-go-sdk/v49/loadbalancer/path_route.go | 38 - .../v49/loadbalancer/path_route_set.go | 32 - .../loadbalancer/path_route_set_details.go | 26 - .../v49/loadbalancer/reserved_ip.go | 24 - .../v49/loadbalancer/routing_policy.go | 55 - .../loadbalancer/routing_policy_details.go | 27 - .../oci-go-sdk/v49/loadbalancer/rule.go | 138 - .../v49/loadbalancer/rule_condition.go | 108 - .../v49/loadbalancer/rule_set_details.go | 54 - .../v49/loadbalancer/shape_details.go | 35 - .../source_ip_address_condition.go | 79 - .../loadbalancer/update_backend_details.go | 47 - .../update_backend_request_response.go | 95 - .../update_backend_set_details.go | 44 - .../update_backend_set_request_response.go | 91 - .../update_cidr_blocks_details.go | 28 - .../update_cidr_blocks_request_response.go | 84 - .../update_health_checker_details.go | 57 - .../update_health_checker_request_response.go | 91 - .../loadbalancer/update_hostname_details.go | 30 - .../update_hostname_request_response.go | 85 - .../loadbalancer/update_listener_details.go | 58 - .../update_listener_request_response.go | 91 - .../update_load_balancer_shape_details.go | 36 - ...te_load_balancer_shape_request_response.go | 86 - .../update_network_security_groups_details.go | 35 - ...etwork_security_groups_request_response.go | 87 - .../update_path_route_set_details.go | 26 - .../update_routing_policy_details.go | 50 - .../loadbalancer/update_rule_set_details.go | 54 - .../update_rule_set_request_response.go | 84 - ...ate_s_s_l_cipher_suite_request_response.go | 84 - .../v49/loadbalancer/work_request.go | 89 - .../v49/loadbalancer/work_request_error.go | 50 - .../v49/monitoring/aggregated_datapoint.go | 32 - .../oracle/oci-go-sdk/v49/monitoring/alarm.go | 232 - .../monitoring/alarm_history_collection.go | 34 - .../v49/monitoring/alarm_status_summary.go | 106 - .../change_alarm_compartment_details.go | 27 - .../oci-go-sdk/v49/monitoring/datapoint.go | 36 - .../v49/monitoring/failed_metric_record.go | 30 - .../get_alarm_history_request_response.go | 120 - .../list_alarms_request_response.go | 155 - .../list_alarms_status_request_response.go | 152 - .../v49/monitoring/list_metrics_details.go | 108 - .../monitoring/post_metric_data_details.go | 59 - .../post_metric_data_response_details.go | 31 - .../v49/networkloadbalancer/action_type.go | 39 - .../v49/networkloadbalancer/backend.go | 62 - .../networkloadbalancer/backend_collection.go | 25 - .../networkloadbalancer/backend_details.go | 61 - .../v49/networkloadbalancer/backend_health.go | 61 - .../v49/networkloadbalancer/backend_set.go | 48 - .../backend_set_collection.go | 25 - .../backend_set_details.go | 41 - .../networkloadbalancer/backend_set_health.go | 79 - .../backend_set_summary.go | 48 - .../networkloadbalancer/backend_summary.go | 62 - ...twork_load_balancer_compartment_details.go | 26 - .../create_backend_details.go | 62 - .../create_backend_request_response.go | 91 - .../create_backend_set_details.go | 48 - .../create_backend_set_request_response.go | 87 - .../create_listener_details.go | 47 - .../create_listener_request_response.go | 90 - .../delete_backend_request_response.go | 88 - .../delete_backend_set_request_response.go | 81 - .../delete_listener_request_response.go | 84 - .../get_backend_health_request_response.go | 81 - .../get_backend_request_response.go | 90 - ...get_backend_set_health_request_response.go | 77 - .../get_backend_set_request_response.go | 83 - .../get_health_checker_request_response.go | 90 - .../get_work_request_request_response.go | 73 - .../hcs_infra_ip_version.go | 33 - .../health_check_protocols.go | 37 - .../health_check_result.go | 60 - .../v49/networkloadbalancer/health_checker.go | 65 - .../health_checker_details.go | 65 - .../v49/networkloadbalancer/ip_address.go | 36 - .../v49/networkloadbalancer/ip_version.go | 33 - .../networkloadbalancer/lifecycle_state.go | 41 - .../list_backend_sets_request_response.go | 143 - .../list_backends_request_response.go | 147 - .../list_listeners_request_response.go | 143 - ..._load_balancer_healths_request_response.go | 137 - ...oad_balancers_policies_request_response.go | 134 - ...ad_balancers_protocols_request_response.go | 134 - ...network_load_balancers_request_response.go | 174 - ...st_work_request_errors_request_response.go | 87 - ...list_work_request_logs_request_response.go | 87 - .../list_work_requests_request_response.go | 84 - .../v49/networkloadbalancer/listener.go | 47 - .../listener_collection.go | 25 - .../networkloadbalancer/listener_details.go | 47 - .../networkloadbalancer/listener_protocols.go | 35 - .../networkloadbalancer/listener_summary.go | 47 - .../network_load_balancer_collection.go | 25 - .../network_load_balancer_health.go | 83 - ...network_load_balancer_health_collection.go | 25 - .../network_load_balancer_health_summary.go | 65 - ...etwork_load_balancers_policy_collection.go | 25 - .../network_load_balancers_policy_summary.go | 35 - ...work_load_balancers_protocol_collection.go | 25 - ...network_load_balancers_protocol_summary.go | 35 - .../network_load_balancing_policy.go | 35 - .../networkloadbalancer_client.go | 1874 ------- .../v49/networkloadbalancer/nlb_ip_version.go | 33 - .../networkloadbalancer/operation_status.go | 41 - .../v49/networkloadbalancer/operation_type.go | 63 - .../v49/networkloadbalancer/reserved_ip.go | 30 - .../v49/networkloadbalancer/sort_order.go | 33 - .../update_backend_details.go | 45 - .../update_backend_request_response.go | 98 - .../update_backend_set_details.go | 43 - .../update_backend_set_request_response.go | 91 - .../update_health_checker_details.go | 63 - .../update_health_checker_request_response.go | 91 - .../update_listener_details.go | 43 - .../update_listener_request_response.go | 91 - .../update_network_load_balancer_details.go | 45 - .../update_network_security_groups_details.go | 34 - ...etwork_security_groups_request_response.go | 87 - .../v49/networkloadbalancer/work_request.go | 54 - .../work_request_collection.go | 25 - .../networkloadbalancer/work_request_error.go | 32 - .../work_request_error_collection.go | 25 - .../work_request_log_entry.go | 28 - .../work_request_log_entry_collection.go | 25 - .../work_request_resource.go | 37 - .../work_request_summary.go | 54 - .../oci-go-sdk/{v49 => v65}/LICENSE.txt | 0 .../oracle/oci-go-sdk/{v49 => v65}/NOTICE.txt | 0 .../common/auth/certificate_retriever.go | 4 +- .../v65/common/auth/configuration.go | 127 + .../common/auth/dispatcher_modifier.go | 4 +- .../common/auth/federation_client.go | 22 +- ...nce_principal_delegation_token_provider.go | 21 +- .../auth/instance_principal_key_provider.go | 29 +- .../{v49 => v65}/common/auth/jwt.go | 4 +- .../auth/resouce_principal_key_provider.go | 260 + .../resource_principal_token_path_provider.go | 2 +- .../common/auth/resource_principals_v1.go | 10 +- .../common/auth/service_principal.go | 4 +- .../{v49 => v65}/common/auth/utils.go | 4 +- .../oci-go-sdk/v65/common/circuit_breaker.go | 383 ++ .../oci-go-sdk/{v49 => v65}/common/client.go | 80 +- .../oci-go-sdk/{v49 => v65}/common/common.go | 48 +- .../oci-go-sdk/v65/common/configuration.go | 699 +++ .../oracle/oci-go-sdk/v65/common/errors.go | 299 + .../v65/common/eventual_consistency.go | 466 ++ .../oci-go-sdk/{v49 => v65}/common/helpers.go | 2 +- .../oci-go-sdk/{v49 => v65}/common/http.go | 10 +- .../{v49 => v65}/common/http_signer.go | 2 +- .../oci-go-sdk/{v49 => v65}/common/log.go | 31 +- .../oracle/oci-go-sdk/v65/common/regions.go | 271 + .../oracle/oci-go-sdk/v65/common/regions.json | 350 ++ .../oci-go-sdk/{v49 => v65}/common/retry.go | 71 +- .../oci-go-sdk/{v49 => v65}/common/version.go | 6 +- .../v65/containerengine/addon_options.go | 44 + .../admission_controller_options.go | 41 + .../oci-go-sdk/v65/containerengine/cluster.go | 182 + .../containerengine/cluster_create_options.go | 54 + .../cluster_endpoint_config.go | 47 + .../v65/containerengine/cluster_endpoints.go | 51 + .../cluster_lifecycle_state.go | 74 + .../containerengine/cluster_metadata.go | 18 +- .../cluster_migrate_to_native_vcn_details.go | 44 + ..._migrate_to_native_vcn_request_response.go | 21 +- .../cluster_migrate_to_native_vcn_status.go | 101 + .../v65/containerengine/cluster_options.go | 78 + .../cluster_pod_network_option_details.go | 125 + .../v65/containerengine/cluster_summary.go | 197 + .../containerengine/containerengine_client.go | 1837 ++++++ .../containerengine/create_cluster_details.go | 136 + .../create_cluster_endpoint_config_details.go | 47 + ...eate_cluster_kubeconfig_content_details.go | 100 + .../create_cluster_request_response.go | 21 +- .../create_image_policy_config_details.go | 44 + .../create_kubeconfig_request_response.go | 21 +- .../create_node_pool_details.go | 177 + .../create_node_pool_node_config_details.go | 122 + .../create_node_pool_request_response.go | 21 +- .../create_node_shape_config_details.go | 45 + .../create_virtual_node_pool_details.go | 78 + ...eate_virtual_node_pool_request_response.go | 90 + .../delete_cluster_request_response.go | 21 +- .../delete_node_pool_request_response.go | 98 + .../delete_node_request_response.go | 104 + ...lete_virtual_node_pool_request_response.go | 98 + .../delete_virtual_node_request_response.go | 104 + .../delete_work_request_request_response.go | 21 +- ...rlay_cluster_pod_network_option_details.go | 53 + ...ay_node_pool_pod_network_option_details.go | 53 + ...e_to_native_vcn_status_request_response.go | 21 +- .../get_cluster_options_request_response.go | 21 +- .../get_cluster_request_response.go | 21 +- .../get_node_pool_options_request_response.go | 21 +- .../get_node_pool_request_response.go | 21 +- .../get_virtual_node_pool_request_response.go | 90 + .../get_virtual_node_request_response.go | 93 + .../get_work_request_request_response.go | 93 + .../containerengine/image_policy_config.go | 44 + .../initial_virtual_node_label.go | 44 + .../v65/containerengine/key_details.go | 41 + .../v65/containerengine/key_value.go | 44 + .../kubernetes_network_config.go | 44 + .../list_clusters_request_response.go | 212 + .../list_node_pools_request_response.go | 215 + .../list_pod_shapes_request_response.go | 206 + ...ist_virtual_node_pools_request_response.go | 215 + .../list_virtual_nodes_request_response.go | 203 + ...st_work_request_errors_request_response.go | 90 + ...list_work_request_logs_request_response.go | 90 + .../list_work_requests_request_response.go | 269 + .../oci-go-sdk/v65/containerengine/node.go | 153 + .../v65/containerengine/node_error.go | 50 + .../node_eviction_node_pool_settings.go | 45 + .../v65/containerengine/node_pool.go | 228 + .../node_pool_lifecycle_state.go | 82 + .../node_pool_node_config_details.go | 122 + .../containerengine/node_pool_options.go | 18 +- .../node_pool_placement_config_details.go | 51 + .../node_pool_pod_network_option_details.go | 125 + .../v65/containerengine/node_pool_summary.go | 213 + .../v65/containerengine/node_shape_config.go | 45 + .../containerengine/node_source_details.go | 79 + .../containerengine/node_source_option.go | 19 +- .../v65/containerengine/node_source_type.go | 54 + .../node_source_via_image_details.go | 18 +- .../node_source_via_image_option.go | 18 +- ...tive_cluster_pod_network_option_details.go | 53 + ...ve_node_pool_pod_network_option_details.go | 62 + .../persistent_volume_config_details.go | 18 +- .../placement_configuration.go | 48 + .../v65/containerengine/pod_configuration.go | 47 + .../v65/containerengine/pod_shape.go | 53 + .../v65/containerengine/pod_shape_summary.go | 53 + .../service_lb_config_details.go | 48 + .../containerengine/shape_memory_options.go | 53 + .../shape_network_bandwidth_options.go | 47 + .../v65/containerengine/shape_ocpu_options.go | 44 + .../v65/containerengine/sort_order.go | 58 + .../oci-go-sdk/v65/containerengine/taint.go | 47 + .../containerengine/update_cluster_details.go | 18 +- .../update_cluster_endpoint_config_details.go | 44 + ...luster_endpoint_config_request_response.go | 21 +- .../update_cluster_options_details.go | 45 + .../update_cluster_request_response.go | 21 +- .../update_image_policy_config_details.go | 44 + .../update_node_pool_details.go | 162 + .../update_node_pool_node_config_details.go | 122 + .../update_node_pool_request_response.go | 101 + .../update_node_shape_config_details.go | 45 + .../update_virtual_node_details.go | 44 + .../update_virtual_node_pool_details.go | 72 + ...date_virtual_node_pool_request_response.go | 94 + .../update_virtual_node_request_response.go | 101 + .../v65/containerengine/virtual_node.go | 94 + .../virtual_node_lifecycle_state.go | 78 + .../v65/containerengine/virtual_node_pool.go | 100 + .../virtual_node_pool_lifecycle_state.go | 78 + .../virtual_node_pool_summary.go | 100 + .../containerengine/virtual_node_summary.go | 94 + .../v65/containerengine/work_request.go | 68 + .../v65/containerengine/work_request_error.go | 47 + .../containerengine/work_request_log_entry.go | 44 + .../work_request_operation_type.go | 94 + .../containerengine/work_request_resource.go | 123 + .../containerengine/work_request_status.go | 74 + .../containerengine/work_request_summary.go | 115 + .../accept_local_peering_token_details.go | 43 + ...pt_local_peering_token_request_response.go | 23 +- ...elded_integrity_policy_request_response.go | 21 +- .../add_additional_route_rules_details.go | 43 + ...additional_route_rules_request_response.go | 23 +- ...rg_route_distribution_statement_details.go | 128 + ...g_route_distribution_statements_details.go | 43 + ...istribution_statements_request_response.go | 21 +- .../v65/core/add_drg_route_rule_details.go | 97 + .../v65/core/add_drg_route_rules_details.go | 43 + .../add_drg_route_rules_request_response.go | 21 +- ...image_shape_compatibility_entry_details.go | 43 + ...pe_compatibility_entry_request_response.go | 21 +- .../add_ipv6_subnet_cidr_request_response.go | 107 + .../add_ipv6_vcn_cidr_request_response.go | 27 +- ...k_security_group_security_rules_details.go | 43 + ...y_group_security_rules_request_response.go | 21 +- .../add_public_ip_pool_capacity_details.go | 47 + ...ublic_ip_pool_capacity_request_response.go | 21 +- .../v65/core/add_security_rule_details.go | 256 + .../v65/core/add_subnet_ipv6_cidr_details.go | 46 + .../v65/core/add_vcn_cidr_details.go | 43 + .../core/add_vcn_cidr_request_response.go | 24 +- .../v65/core/add_vcn_ipv6_cidr_details.go | 50 + .../v65/core/added_additional_route_rules.go | 43 + ...d_network_security_group_security_rules.go | 43 + .../v65/core/additional_route_rule.go | 172 + .../advertise_byoip_range_request_response.go | 21 +- .../v65/core/allowed_ike_ip_sec_parameters.go | 47 + .../v65/core/allowed_phase_one_parameters.go | 49 + .../v65/core/allowed_phase_two_parameters.go | 49 + ...ilan_bm_launch_instance_platform_config.go | 171 + .../v65/core/amd_milan_bm_platform_config.go | 171 + ..._bm_gpu_launch_instance_platform_config.go | 163 + .../core/amd_rome_bm_gpu_platform_config.go | 163 + ...rome_bm_launch_instance_platform_config.go | 171 + .../v65/core/amd_rome_bm_platform_config.go | 170 + .../amd_vm_launch_instance_platform_config.go | 87 + .../v65/core/amd_vm_platform_config.go | 87 + .../v65/core/app_catalog_listing.go | 66 + .../app_catalog_listing_resource_version.go | 138 + ...log_listing_resource_version_agreements.go | 59 + ...atalog_listing_resource_version_summary.go | 53 + .../v65/core/app_catalog_listing_summary.go | 53 + .../v65/core/app_catalog_subscription.go | 66 + .../core/app_catalog_subscription_summary.go | 66 + .../v65/core/attach_boot_volume_details.go | 57 + .../attach_boot_volume_request_response.go | 21 +- .../oci-go-sdk/v65/core/attach_dav_details.go | 43 + .../core/attach_dav_request_response.go | 21 +- .../core/attach_emulated_volume_details.go | 127 + .../v65/core/attach_i_scsi_volume_details.go | 140 + .../attach_instance_pool_instance_details.go | 43 + ...instance_pool_instance_request_response.go | 24 +- .../v65/core/attach_load_balancer_details.go | 54 + .../attach_load_balancer_request_response.go | 21 +- .../attach_paravirtualized_volume_details.go | 130 + ...ttach_service_determined_volume_details.go | 127 + .../attach_service_id_request_response.go | 21 +- .../v65/core/attach_vnic_details.go | 56 + .../core/attach_vnic_request_response.go | 21 +- ...h_vnic_to_destination_smart_nic_details.go | 55 + ..._destination_smart_nic_request_response.go | 23 +- .../v65/core/attach_vnic_worker_details.go | 43 + .../attach_vnic_worker_request_response.go | 23 +- .../v65/core/attach_volume_details.go | 181 + .../core/attach_volume_request_response.go | 21 +- .../oci-go-sdk/v65/core/autotune_policy.go | 127 + .../oracle/oci-go-sdk/v65/core/backfill.go | 43 + .../oci-go-sdk/v65/core/backfill_details.go | 49 + .../core/backfill_request_response.go | 21 +- .../v65/core/base64_ssl_cert_details.go | 58 + .../oci-go-sdk/v65/core/bgp_session_info.go | 187 + .../v65/core/block_volume_replica.go | 156 + .../v65/core/block_volume_replica_details.go | 48 + .../v65/core/block_volume_replica_info.go | 51 + ...lean_image_capability_schema_descriptor.go | 68 + .../oracle/oci-go-sdk/v65/core/boot_volume.go | 286 + .../v65/core/boot_volume_attachment.go | 132 + .../oci-go-sdk/v65/core/boot_volume_backup.go | 271 + .../core/boot_volume_backup_source_details.go | 67 + .../v65/core/boot_volume_kms_key.go | 43 + .../v65/core/boot_volume_replica.go | 159 + .../v65/core/boot_volume_replica_details.go | 48 + .../v65/core/boot_volume_replica_info.go | 51 + .../v65/core/boot_volume_source_details.go | 89 + ..._source_from_boot_volume_backup_details.go | 58 + ..._volume_source_from_boot_volume_details.go | 58 + ...source_from_boot_volume_replica_details.go | 60 + ...virtual_circuit_public_prefixes_details.go | 43 + ...ircuit_public_prefixes_request_response.go | 23 +- ...virtual_circuit_public_prefixes_details.go | 43 + ...ircuit_public_prefixes_request_response.go | 23 +- .../oci-go-sdk/v65/core/bulk_migration.go | 58 + .../v65/core/bulk_migration_details.go | 43 + .../core/bulk_migration_request_response.go | 21 +- .../core/byoip_allocated_range_collection.go | 43 + .../v65/core/byoip_allocated_range_summary.go | 46 + .../oracle/oci-go-sdk/v65/core/byoip_range.go | 227 + .../v65/core/byoip_range_collection.go | 43 + .../core/byoip_range_lock_request_response.go | 92 + .../v65/core/byoip_range_response.go | 201 + .../v65/core/byoip_range_summary.go | 87 + .../byoip_range_unlock_request_response.go | 92 + ...byoip_range_vcn_ipv6_allocation_summary.go | 53 + .../v65/core/byoipv6_cidr_details.go | 51 + .../capacity_report_instance_shape_config.go | 49 + .../capacity_report_shape_availability.go | 108 + .../capacity_reservation_instance_summary.go | 59 + .../core/capture_console_history_details.go | 57 + ...apture_console_history_request_response.go | 21 +- .../oci-go-sdk/v65/core/capture_filter.go | 172 + .../oci-go-sdk/v65/core/cfm_metadata.go | 46 + ..._boot_volume_backup_compartment_details.go | 43 + ...ume_backup_compartment_request_response.go | 21 +- .../change_boot_volume_compartment_details.go | 43 + ...oot_volume_compartment_request_response.go | 21 +- .../change_byoip_range_compartment_details.go | 43 + ...yoip_range_compartment_request_response.go | 21 +- ...nge_c3_drg_compartment_request_response.go | 26 +- ...ange_capture_filter_compartment_details.go | 44 + ...ure_filter_compartment_request_response.go | 26 +- .../change_client_vpn_compartment_details.go | 44 + ...client_vpn_compartment_request_response.go | 23 +- ...nge_cluster_network_compartment_details.go | 44 + ...er_network_compartment_request_response.go | 21 +- ...apacity_reservation_compartment_details.go | 44 + ...eservation_compartment_request_response.go | 24 +- ...nge_compute_cluster_compartment_details.go | 43 + ...te_cluster_compartment_request_response.go | 25 +- ...e_capability_schema_compartment_details.go | 44 + ...ity_schema_compartment_request_response.go | 21 +- .../core/change_cpe_compartment_details.go | 44 + ...change_cpe_compartment_request_response.go | 23 +- ...hange_cross_connect_compartment_details.go | 44 + ...ss_connect_compartment_request_response.go | 23 +- ...cross_connect_group_compartment_details.go | 44 + ...nect_group_compartment_request_response.go | 23 +- ...e_dedicated_vm_host_compartment_details.go | 44 + ...ed_vm_host_compartment_request_response.go | 24 +- ...change_dhcp_options_compartment_details.go | 44 + ...cp_options_compartment_request_response.go | 23 +- ...ange_drg_attachment_compartment_details.go | 44 + ...attachment_compartment_request_response.go | 21 +- .../core/change_drg_compartment_details.go | 44 + ...change_drg_compartment_request_response.go | 26 +- ...connection_compartment_request_response.go | 23 +- .../core/change_image_compartment_details.go | 43 + ...ange_image_compartment_request_response.go | 21 +- .../change_instance_compartment_details.go | 43 + ...e_instance_compartment_request_response.go | 24 +- ...tance_configuration_compartment_details.go | 44 + ...figuration_compartment_request_response.go | 21 +- ...hange_instance_pool_compartment_details.go | 44 + ...tance_pool_compartment_request_response.go | 21 +- ...change_internal_drg_compartment_details.go | 44 + ...ternal_drg_compartment_request_response.go | 21 +- ...nal_generic_gateway_compartment_details.go | 43 + ...ic_gateway_compartment_request_response.go | 21 +- ...ge_internet_gateway_compartment_details.go | 44 + ...et_gateway_compartment_request_response.go | 23 +- ...e_ip_sec_connection_compartment_details.go | 44 + ...cal_peering_gateway_compartment_details.go | 44 + ...ng_gateway_compartment_request_response.go | 23 +- .../change_nat_gateway_compartment_details.go | 43 + ...at_gateway_compartment_request_response.go | 21 +- ...work_security_group_compartment_details.go | 44 + ...rity_group_compartment_request_response.go | 21 +- ...ge_private_endpoint_compartment_details.go | 44 + ...e_endpoint_compartment_request_response.go | 24 +- .../change_public_ip_compartment_details.go | 44 + ..._public_ip_compartment_request_response.go | 23 +- ...ange_public_ip_pool_compartment_details.go | 43 + ...ic_ip_pool_compartment_request_response.go | 21 +- ..._peering_connection_compartment_details.go | 44 + ...connection_compartment_request_response.go | 23 +- .../change_route_table_compartment_details.go | 44 + ...oute_table_compartment_request_response.go | 23 +- ...hange_security_list_compartment_details.go | 44 + ...urity_list_compartment_request_response.go | 23 +- ...nge_service_gateway_compartment_details.go | 44 + ...ce_gateway_compartment_request_response.go | 21 +- .../core/change_subnet_compartment_details.go | 44 + ...nge_subnet_compartment_request_response.go | 26 +- .../core/change_vcn_compartment_details.go | 44 + ...change_vcn_compartment_request_response.go | 24 +- ...ge_vcn_drg_compartment_request_response.go | 26 +- ...nge_virtual_circuit_compartment_details.go | 44 + ...al_circuit_compartment_request_response.go | 23 +- .../core/change_vlan_compartment_details.go | 43 + ...hange_vlan_compartment_request_response.go | 24 +- ...ge_vnic_attachments_compartment_request.go | 54 + ...ts_compartment_request_request_response.go | 24 +- ...hange_volume_backup_compartment_details.go | 43 + ...ume_backup_compartment_request_response.go | 21 +- .../core/change_volume_compartment_details.go | 43 + ...nge_volume_compartment_request_response.go | 21 +- ...volume_group_backup_compartment_details.go | 43 + ...oup_backup_compartment_request_response.go | 21 +- ...change_volume_group_compartment_details.go | 43 + ...lume_group_compartment_request_response.go | 21 +- .../core/change_vtap_compartment_details.go | 43 + ...hange_vtap_compartment_request_response.go | 26 +- .../oracle/oci-go-sdk/v65/core/client_vpn.go | 263 + .../v65/core/client_vpn_active_user.go | 49 + .../oci-go-sdk/v65/core/client_vpn_status.go | 114 + .../oci-go-sdk/v65/core/client_vpn_summary.go | 192 + .../v65/core/client_vpn_summary_collection.go | 43 + .../oci-go-sdk/v65/core/client_vpn_user.go | 118 + .../v65/core/client_vpn_user_summary.go | 56 + .../client_vpn_user_summary_collection.go | 43 + .../oci-go-sdk/v65/core/cluster_network.go | 148 + ...network_placement_configuration_details.go | 51 + .../v65/core/cluster_network_summary.go | 144 + .../v65/core/compartment_internal.go | 43 + .../complete_promotion_request_response.go | 23 +- .../complete_unpromotion_request_response.go | 23 +- .../v65/core/compute_capacity_report.go | 55 + .../v65/core/compute_capacity_reservation.go | 158 + ...city_reservation_instance_shape_summary.go | 46 + .../compute_capacity_reservation_summary.go | 89 + .../oci-go-sdk/v65/core/compute_cluster.go | 122 + .../v65/core/compute_cluster_collection.go | 43 + .../v65/core/compute_cluster_summary.go | 75 + .../compute_global_image_capability_schema.go | 68 + ..._global_image_capability_schema_summary.go | 68 + ..._global_image_capability_schema_version.go | 26 +- ...image_capability_schema_version_summary.go | 54 + .../core/compute_image_capability_schema.go | 26 +- ...compute_image_capability_schema_summary.go | 26 +- .../v65/core/compute_instance_details.go | 60 + ...nnect_local_peering_connections_details.go | 43 + ...al_peering_connections_request_response.go | 25 +- .../connect_local_peering_gateways_details.go | 43 + ...local_peering_gateways_request_response.go | 25 +- ...nect_remote_peering_connections_details.go | 47 + ...te_peering_connections_request_response.go | 23 +- .../oci-go-sdk/v65/core/console_history.go | 131 + .../core/copy_boot_volume_backup_details.go | 57 + ...opy_boot_volume_backup_request_response.go | 24 +- .../v65/core/copy_volume_backup_details.go | 58 + .../copy_volume_backup_request_response.go | 24 +- .../core/copy_volume_group_backup_details.go | 58 + ...py_volume_group_backup_request_response.go | 21 +- .../core/core_blockstorage_client.go | 153 +- .../{v49 => v65}/core/core_compute_client.go | 564 +- .../core/core_computemanagement_client.go | 83 +- .../v65/core/core_vcnipinternal_client.go | 198 + .../core/core_virtualnetwork_client.go | 1676 +++++- .../oci-go-sdk/{v49 => v65}/core/cpe.go | 26 +- .../v65/core/cpe_device_config_answer.go | 49 + .../v65/core/cpe_device_config_question.go | 52 + .../oci-go-sdk/v65/core/cpe_device_info.go | 46 + .../v65/core/cpe_device_shape_detail.go | 62 + .../v65/core/cpe_device_shape_summary.go | 47 + ...create_app_catalog_subscription_details.go | 62 + ...p_catalog_subscription_request_response.go | 21 +- .../core/create_boot_volume_backup_details.go | 108 + ...ate_boot_volume_backup_request_response.go | 21 +- .../v65/core/create_boot_volume_details.go | 170 + .../create_boot_volume_request_response.go | 21 +- .../v65/core/create_byoip_range_details.go | 64 + .../create_byoip_range_request_response.go | 21 +- ...eate_c3_drg_attachment_request_response.go | 21 +- .../core/create_c3_drg_request_response.go | 21 +- ...acity_report_shape_availability_details.go | 53 + .../v65/core/create_capture_filter_details.go | 104 + .../create_capture_filter_request_response.go | 21 +- .../v65/core/create_client_vpn_details.go | 257 + .../create_client_vpn_request_response.go | 21 +- .../core/create_client_vpn_user_details.go | 49 + ...create_client_vpn_user_request_response.go | 23 +- .../core/create_cluster_network_details.go | 64 + ...e_cluster_network_instance_pool_details.go | 61 + ...create_cluster_network_request_response.go | 24 +- .../create_compute_capacity_report_details.go | 51 + ...ompute_capacity_report_request_response.go | 94 + ...te_compute_capacity_reservation_details.go | 26 +- ...e_capacity_reservation_request_response.go | 24 +- .../core/create_compute_cluster_details.go | 67 + ...create_compute_cluster_request_response.go | 103 + ...compute_image_capability_schema_details.go | 26 +- ...mage_capability_schema_request_response.go | 21 +- .../{v49 => v65}/core/create_cpe_details.go | 26 +- .../core/create_cpe_request_response.go | 21 +- .../core/create_cross_connect_details.go | 26 +- .../create_cross_connect_group_details.go | 63 + ...te_cross_connect_group_request_response.go | 21 +- .../create_cross_connect_request_response.go | 21 +- .../oci-go-sdk/v65/core/create_dav_details.go | 113 + .../core/create_dav_request_response.go | 24 +- .../core/create_dedicated_vm_host_details.go | 26 +- ...eate_dedicated_vm_host_request_response.go | 24 +- .../v65/core/create_dhcp_details.go | 161 + .../create_dhcp_options_request_response.go | 21 +- .../v65/core/create_drg_attachment_details.go | 123 + .../create_drg_attachment_request_response.go | 21 +- .../oci-go-sdk/v65/core/create_drg_details.go | 57 + .../core/create_drg_request_response.go | 21 +- .../create_drg_route_distribution_details.go | 101 + ...drg_route_distribution_request_response.go | 21 +- .../core/create_drg_route_table_details.go | 65 + ...create_drg_route_table_request_response.go | 21 +- .../core/create_endpoint_service_details.go | 26 +- ...reate_endpoint_service_request_response.go | 24 +- ...eate_flow_log_config_attachment_details.go | 51 + ..._log_config_attachment_request_response.go | 21 +- .../core/create_flow_log_config_details.go | 145 + ...create_flow_log_config_request_response.go | 21 +- ...ate_i_p_sec_connection_request_response.go | 21 +- .../v65/core/create_image_details.go | 174 + .../core/create_image_request_response.go | 24 +- .../create_instance_configuration_base.go | 173 + .../create_instance_configuration_details.go | 26 +- ...nce_configuration_from_instance_details.go | 26 +- ...instance_configuration_request_response.go | 21 +- ...ate_instance_console_connection_details.go | 57 + ...nce_console_connection_request_response.go | 21 +- .../core/create_instance_pool_details.go | 26 +- ...ce_pool_placement_configuration_details.go | 62 + .../create_instance_pool_request_response.go | 21 +- ...te_instance_screenshot_request_response.go | 102 + .../create_internal_dns_record_details.go | 104 + ...te_internal_dns_record_request_response.go | 21 +- .../create_internal_drg_attachment_details.go | 65 + ...nternal_drg_attachment_request_response.go | 21 +- .../v65/core/create_internal_drg_details.go | 69 + .../create_internal_drg_request_response.go | 21 +- ...create_internal_drg_route_table_details.go | 49 + ...ternal_drg_route_table_request_response.go | 91 + ...create_internal_generic_gateway_details.go | 124 + ...ternal_generic_gateway_request_response.go | 21 +- .../core/create_internal_public_ip_details.go | 163 + ...ate_internal_public_ip_request_response.go | 21 +- ...create_internal_vnic_attachment_details.go | 4350 +++++++++++++++ ...ternal_vnic_attachment_request_response.go | 23 +- .../v65/core/create_internal_vnic_details.go | 4524 +++++++++++++++ .../create_internal_vnic_request_response.go | 21 +- .../core/create_internet_gateway_details.go | 66 + ...reate_internet_gateway_request_response.go | 21 +- .../core/create_ip_sec_connection_details.go | 141 + ...create_ip_sec_connection_tunnel_details.go | 265 + ...reate_ip_sec_tunnel_bgp_session_details.go | 26 +- ...ip_sec_tunnel_encryption_domain_details.go | 48 + .../v65/core/create_ipv6_details.go | 68 + .../core/create_ipv6_request_response.go | 21 +- ...create_local_peering_connection_details.go | 50 + ...cal_peering_connection_request_response.go | 21 +- .../create_local_peering_gateway_details.go | 26 +- ..._local_peering_gateway_request_response.go | 21 +- .../oci-go-sdk/v65/core/create_macsec_key.go | 48 + .../v65/core/create_macsec_properties.go | 54 + .../v65/core/create_nat_gateway_details.go | 122 + .../create_nat_gateway_request_response.go | 21 +- .../create_network_security_group_details.go | 62 + ...network_security_group_request_response.go | 21 +- .../create_private_access_gateway_details.go | 60 + ...private_access_gateway_request_response.go | 24 +- .../core/create_private_endpoint_details.go | 26 +- ...reate_private_endpoint_request_response.go | 24 +- .../core/create_private_ip_details.go | 26 +- .../create_private_ip_next_hop_details.go | 50 + ...te_private_ip_next_hop_request_response.go | 23 +- .../create_private_ip_request_response.go | 21 +- .../v65/core/create_public_ip_details.go | 119 + .../v65/core/create_public_ip_pool_details.go | 57 + .../create_public_ip_pool_request_response.go | 21 +- .../core/create_public_ip_request_response.go | 21 +- ...reate_remote_peering_connection_details.go | 60 + ...ote_peering_connection_request_response.go | 21 +- .../v65/core/create_route_table_details.go | 66 + .../create_route_table_request_response.go | 21 +- .../v65/core/create_scan_proxy_details.go | 65 + .../create_scan_proxy_request_response.go | 24 +- .../v65/core/create_security_list_details.go | 66 + .../create_security_list_request_response.go | 21 +- .../core/create_service_gateway_details.go | 26 +- ...create_service_gateway_request_response.go | 21 +- .../core/create_subnet_details.go | 34 +- .../core/create_subnet_request_response.go | 21 +- .../oci-go-sdk/v65/core/create_vcn_details.go | 103 + ...ate_vcn_drg_attachment_request_response.go | 21 +- .../core/create_vcn_drg_request_response.go | 21 +- .../core/create_vcn_request_response.go | 21 +- .../core/create_virtual_circuit_details.go | 278 + ...e_virtual_circuit_public_prefix_details.go | 44 + ...create_virtual_circuit_request_response.go | 21 +- .../{v49 => v65}/core/create_vlan_details.go | 26 +- .../core/create_vlan_request_response.go | 21 +- .../{v49 => v65}/core/create_vnic_details.go | 26 +- .../v65/core/create_vnic_worker_details.go | 66 + .../create_vnic_worker_request_response.go | 21 +- .../v65/core/create_volume_backup_details.go | 108 + ...volume_backup_policy_assignment_details.go | 46 + ...ckup_policy_assignment_request_response.go | 21 +- .../create_volume_backup_policy_details.go | 26 +- ...e_volume_backup_policy_request_response.go | 21 +- .../create_volume_backup_request_response.go | 21 +- .../v65/core/create_volume_details.go | 199 + .../create_volume_group_backup_details.go | 110 + ...te_volume_group_backup_request_response.go | 21 +- .../core/create_volume_group_details.go | 26 +- .../create_volume_group_request_response.go | 21 +- .../core/create_volume_request_response.go | 21 +- .../v65/core/create_vtap_details.go | 297 + .../core/create_vtap_request_response.go | 21 +- .../oci-go-sdk/v65/core/cross_connect.go | 166 + .../v65/core/cross_connect_group.go | 147 + .../v65/core/cross_connect_location.go | 47 + .../core/cross_connect_mapping.go | 26 +- .../v65/core/cross_connect_mapping_details.go | 197 + ...ross_connect_mapping_details_collection.go | 43 + .../core/cross_connect_port_speed_shape.go | 48 + .../v65/core/cross_connect_status.go | 230 + .../core/data_volume_backup_source_details.go | 71 + .../oracle/oci-go-sdk/v65/core/dav.go | 194 + .../oci-go-sdk/v65/core/dedicated_vm_host.go | 157 + ...edicated_vm_host_instance_shape_summary.go | 46 + .../dedicated_vm_host_instance_summary.go | 57 + .../core/dedicated_vm_host_shape_summary.go | 47 + .../v65/core/dedicated_vm_host_summary.go | 145 + .../v65/core/default_drg_route_tables.go | 60 + .../v65/core/default_phase_one_parameters.go | 49 + .../v65/core/default_phase_two_parameters.go | 49 + ...p_catalog_subscription_request_response.go | 21 +- ...ete_boot_volume_backup_request_response.go | 21 +- ...te_boot_volume_kms_key_request_response.go | 21 +- .../delete_boot_volume_request_response.go | 21 +- .../delete_byoip_range_request_response.go | 24 +- ...lete_c3_drg_attachment_request_response.go | 21 +- .../core/delete_c3_drg_request_response.go | 23 +- .../delete_capture_filter_request_response.go | 23 +- .../delete_client_vpn_request_response.go | 23 +- ...delete_client_vpn_user_request_response.go | 23 +- ...e_capacity_reservation_request_response.go | 24 +- ...delete_compute_cluster_request_response.go | 25 +- ...mage_capability_schema_request_response.go | 21 +- ...delete_console_history_request_response.go | 21 +- .../core/delete_cpe_request_response.go | 23 +- ...te_cross_connect_group_request_response.go | 23 +- .../delete_cross_connect_request_response.go | 23 +- .../core/delete_dav_request_response.go | 21 +- ...lete_dedicated_vm_host_request_response.go | 24 +- .../delete_dhcp_options_request_response.go | 23 +- .../delete_drg_attachment_request_response.go | 21 +- .../core/delete_drg_request_response.go | 23 +- ...drg_route_distribution_request_response.go | 21 +- ...delete_drg_route_table_request_response.go | 21 +- ...elete_endpoint_service_request_response.go | 24 +- ..._log_config_attachment_request_response.go | 21 +- ...delete_flow_log_config_request_response.go | 21 +- ...ete_i_p_sec_connection_request_response.go | 23 +- .../core/delete_image_request_response.go | 21 +- ...instance_configuration_request_response.go | 21 +- ...nce_console_connection_request_response.go | 21 +- ...te_internal_dns_record_request_response.go | 21 +- ...nternal_drg_attachment_request_response.go | 21 +- .../delete_internal_drg_request_response.go | 21 +- ...ternal_generic_gateway_request_response.go | 21 +- ...ete_internal_public_ip_request_response.go | 23 +- ...ternal_vnic_attachment_request_response.go | 23 +- .../delete_internal_vnic_request_response.go | 23 +- ...elete_internet_gateway_request_response.go | 23 +- .../core/delete_ipv6_request_response.go | 21 +- ...cal_peering_connection_request_response.go | 23 +- ..._local_peering_gateway_request_response.go | 23 +- .../delete_nat_gateway_request_response.go | 21 +- ...network_security_group_request_response.go | 21 +- ...private_access_gateway_request_response.go | 24 +- ...elete_private_endpoint_request_response.go | 24 +- ...te_private_ip_next_hop_request_response.go | 23 +- .../delete_private_ip_request_response.go | 23 +- .../delete_public_ip_pool_request_response.go | 21 +- .../core/delete_public_ip_request_response.go | 23 +- ...ote_peering_connection_request_response.go | 23 +- ...erse_connection_nat_ip_request_response.go | 21 +- .../delete_route_table_request_response.go | 23 +- .../delete_scan_proxy_request_response.go | 100 + .../delete_security_list_request_response.go | 23 +- ...delete_service_gateway_request_response.go | 21 +- .../core/delete_subnet_request_response.go | 23 +- ...ete_vcn_drg_attachment_request_response.go | 21 +- .../core/delete_vcn_drg_request_response.go | 23 +- .../core/delete_vcn_request_response.go | 21 +- ...e_virtual_circuit_public_prefix_details.go | 43 + ...delete_virtual_circuit_request_response.go | 23 +- .../core/delete_vlan_request_response.go | 21 +- .../delete_vnic_worker_request_response.go | 23 +- ...ckup_policy_assignment_request_response.go | 21 +- ...e_volume_backup_policy_request_response.go | 21 +- .../delete_volume_backup_request_response.go | 21 +- ...te_volume_group_backup_request_response.go | 21 +- .../delete_volume_group_request_response.go | 21 +- .../delete_volume_kms_key_request_response.go | 21 +- .../core/delete_volume_request_response.go | 21 +- .../v65/core/delete_vtap_request_response.go | 94 + .../detach_boot_volume_request_response.go | 21 +- .../core/detach_dav_request_response.go | 21 +- .../detach_instance_pool_instance_details.go | 52 + ...instance_pool_instance_request_response.go | 24 +- .../v65/core/detach_load_balancer_details.go | 46 + .../detach_load_balancer_request_response.go | 21 +- .../detach_service_id_request_response.go | 21 +- ...vnic_from_destination_smart_nic_details.go | 43 + ..._destination_smart_nic_request_response.go | 23 +- ...tach_vnic_from_source_smart_nic_details.go | 43 + ..._from_source_smart_nic_request_response.go | 23 +- .../core/detach_vnic_request_response.go | 21 +- .../detach_vnic_worker_request_response.go | 23 +- .../core/detach_volume_request_response.go | 21 +- .../core/detached_volume_autotune_policy.go | 55 + .../oracle/oci-go-sdk/v65/core/device.go | 46 + .../oci-go-sdk/v65/core/dhcp_dns_option.go | 125 + .../oracle/oci-go-sdk/v65/core/dhcp_option.go | 89 + .../oci-go-sdk/v65/core/dhcp_options.go | 243 + .../v65/core/dhcp_search_domain_option.go | 69 + ...le_reverse_connections_request_response.go | 24 +- .../disable_vnic_worker_request_response.go | 23 +- .../oci-go-sdk/v65/core/dns_config_details.go | 46 + .../oracle/oci-go-sdk/v65/core/dpd_config.go | 91 + .../drain_vnic_worker_request_response.go | 23 +- .../oracle/oci-go-sdk/v65/core/drg.go | 132 + .../v65/core/drg_attached_network.go | 49 + .../v65/core/drg_attached_network_info.go | 52 + .../oci-go-sdk/v65/core/drg_attachment.go | 215 + ...d_drg_route_distribution_match_criteria.go | 58 + .../v65/core/drg_attachment_info.go | 43 + ...l_drg_route_distribution_match_criteria.go | 55 + .../drg_attachment_network_create_details.go | 169 + .../core/drg_attachment_network_details.go | 169 + .../drg_attachment_network_update_details.go | 151 + ...e_drg_route_distribution_match_criteria.go | 113 + .../oci-go-sdk/v65/core/drg_migration.go | 52 + .../v65/core/drg_migration_count_region.go | 49 + .../v65/core/drg_migration_count_tenancy.go | 49 + .../v65/core/drg_migration_details.go | 52 + .../core/drg_migration_request_response.go | 21 +- .../v65/core/drg_redundancy_status.go | 116 + .../v65/core/drg_route_distribution.go | 183 + .../drg_route_distribution_match_criteria.go | 136 + .../core/drg_route_distribution_statement.go | 137 + .../oci-go-sdk/v65/core/drg_route_rule.go | 229 + .../oci-go-sdk/v65/core/drg_route_table.go | 142 + .../oci-go-sdk/v65/core/drg_upgrade_state.go | 92 + .../oci-go-sdk/v65/core/drg_urt_route_rule.go | 115 + .../v65/core/drg_urt_route_rule_details.go | 57 + .../v65/core/drg_validation_status.go | 46 + .../v65/core/egress_security_rule.go | 126 + .../v65/core/emulated_volume_attachment.go | 180 + .../enable_reverse_connections_details.go | 252 + ...le_reverse_connections_request_response.go | 24 +- .../enable_vnic_worker_request_response.go | 23 +- .../v65/core/encryption_domain_config.go | 46 + .../v65/core/encryption_in_transit_type.go | 60 + .../oci-go-sdk/v65/core/endpoint_service.go | 178 + .../v65/core/endpoint_service_ip_details.go | 43 + .../v65/core/endpoint_service_next_hop.go | 52 + .../v65/core/endpoint_service_summary.go | 52 + ...num_integer_image_capability_descriptor.go | 71 + ...ring_image_capability_schema_descriptor.go | 71 + .../v65/core/export_image_details.go | 165 + .../core/export_image_request_response.go | 24 +- ..._image_via_object_storage_tuple_details.go | 82 + ...rt_image_via_object_storage_uri_details.go | 79 + .../v65/core/fast_connect_provider_service.go | 419 ++ .../core/fast_connect_provider_service_key.go | 56 + .../oci-go-sdk/v65/core/floating_ip_info.go | 52 + .../oci-go-sdk/v65/core/flow_log_config.go | 232 + .../v65/core/flow_log_config_attachment.go | 165 + .../v65/core/flow_log_destination.go | 119 + .../flow_log_object_storage_destination.go | 61 + .../oci-go-sdk/v65/core/gateway_route_data.go | 44 + ...te_local_peering_token_request_response.go | 23 +- ...et_all_drg_attachments_request_response.go | 166 + ...ike_i_p_sec_parameters_request_response.go | 21 +- ...log_listing_agreements_request_response.go | 21 +- ...et_app_catalog_listing_request_response.go | 21 +- ...sting_resource_version_request_response.go | 21 +- ...t_block_volume_replica_request_response.go | 21 +- ...boot_volume_attachment_request_response.go | 21 +- ...get_boot_volume_backup_request_response.go | 21 +- ...et_boot_volume_kms_key_request_response.go | 21 +- ...et_boot_volume_replica_request_response.go | 21 +- .../core/get_boot_volume_request_response.go | 21 +- .../core/get_byoip_range_request_response.go | 21 +- .../get_c3_drg_attachment_request_response.go | 21 +- .../core/get_c3_drg_request_response.go | 23 +- .../get_capture_filter_request_response.go | 23 +- ...get_client_vpn_profile_request_response.go | 23 +- .../core/get_client_vpn_request_response.go | 23 +- .../get_client_vpn_status_request_response.go | 23 +- ...lient_vpn_user_profile_request_response.go | 23 +- .../get_client_vpn_user_request_response.go | 23 +- .../get_cluster_network_request_response.go | 21 +- ...e_capacity_reservation_request_response.go | 21 +- .../get_compute_cluster_request_response.go | 92 + ...mage_capability_schema_request_response.go | 21 +- ...ability_schema_version_request_response.go | 21 +- ...mage_capability_schema_request_response.go | 21 +- ...onsole_history_content_request_response.go | 21 +- .../get_console_history_request_response.go | 21 +- ..._device_config_content_request_response.go | 23 +- .../get_cpe_device_shape_request_response.go | 21 +- .../core/get_cpe_request_response.go | 23 +- ...reate_reverse_connection_nat_ip_details.go | 43 + ...erse_connection_nat_ip_request_response.go | 21 +- ...et_cross_connect_group_request_response.go | 23 +- ...ct_letter_of_authority_request_response.go | 23 +- .../get_cross_connect_request_response.go | 23 +- ...t_cross_connect_status_request_response.go | 23 +- .../core/get_dav_request_response.go | 21 +- .../get_dedicated_vm_host_request_response.go | 21 +- .../core/get_dhcp_options_request_response.go | 23 +- ..._attached_network_info_request_response.go | 23 +- .../get_drg_attachment_request_response.go | 21 +- ...migration_count_region_request_response.go | 21 +- ...igration_count_tenancy_request_response.go | 23 +- ..._drg_redundancy_status_request_response.go | 23 +- .../core/get_drg_request_response.go | 23 +- ...drg_route_distribution_request_response.go | 21 +- .../get_drg_route_table_request_response.go | 21 +- ...point_service_next_hop_request_response.go | 21 +- .../get_endpoint_service_request_response.go | 21 +- ...t_provider_service_key_request_response.go | 23 +- ...nnect_provider_service_request_response.go | 23 +- ..._log_config_attachment_request_response.go | 21 +- .../get_flow_log_config_request_response.go | 21 +- ...nnection_device_config_request_response.go | 23 +- ...nnection_device_status_request_response.go | 23 +- ...ction_migration_status_request_response.go | 23 +- ...get_i_p_sec_connection_request_response.go | 23 +- ...onnection_tunnel_error_request_response.go | 23 +- ..._sec_connection_tunnel_request_response.go | 23 +- ...n_tunnel_shared_secret_request_response.go | 23 +- .../core/get_image_request_response.go | 21 +- ...pe_compatibility_entry_request_response.go | 21 +- ...instance_configuration_request_response.go | 21 +- ...nce_console_connection_request_response.go | 21 +- ...nce_maintenance_reboot_request_response.go | 87 + ...instance_pool_instance_request_response.go | 21 +- ...ad_balancer_attachment_request_response.go | 21 +- .../get_instance_pool_request_response.go | 21 +- .../core/get_instance_request_response.go | 21 +- ...nce_screenshot_content_request_response.go | 91 + ...et_instance_screenshot_request_response.go | 93 + ...et_internal_dns_record_request_response.go | 21 +- ...nternal_drg_attachment_request_response.go | 21 +- .../core/get_internal_drg_request_response.go | 21 +- ...l_generic_gateway_by_gateway_id_details.go | 43 + ..._gateway_by_gateway_id_request_response.go | 21 +- ...ternal_generic_gateway_request_response.go | 21 +- ...get_internal_public_ip_request_response.go | 23 +- .../get_internal_subnet_request_response.go | 23 +- ...ternal_vnic_attachment_request_response.go | 23 +- .../get_internal_vnic_request_response.go | 23 +- .../get_internet_gateway_request_response.go | 23 +- ..._device_config_content_request_response.go | 23 +- .../core/get_ipv6_request_response.go | 21 +- ...cal_peering_connection_request_response.go | 23 +- ..._local_peering_gateway_request_response.go | 23 +- ...t_measured_boot_report_request_response.go | 21 +- .../core/get_nat_gateway_request_response.go | 21 +- ...network_security_group_request_response.go | 21 +- ...et_networking_topology_request_response.go | 160 + ...private_access_gateway_request_response.go | 21 +- ...e_endpoint_association_request_response.go | 21 +- .../get_private_endpoint_request_response.go | 21 +- ...et_private_ip_next_hop_request_response.go | 23 +- .../core/get_private_ip_request_response.go | 23 +- .../get_public_ip_by_ip_address_details.go | 44 + ...ublic_ip_by_ip_address_request_response.go | 21 +- .../get_public_ip_by_private_ip_id_details.go | 43 + ...ic_ip_by_private_ip_id_request_response.go | 21 +- .../get_public_ip_pool_request_response.go | 21 +- .../core/get_public_ip_request_response.go | 23 +- ...ote_peering_connection_request_response.go | 23 +- ...erse_connection_nat_ip_request_response.go | 21 +- .../core/get_route_table_request_response.go | 23 +- .../core/get_scan_proxy_request_response.go | 21 +- .../get_security_list_request_response.go | 23 +- .../get_service_gateway_request_response.go | 21 +- .../core/get_service_request_response.go | 21 +- .../core/get_subnet_request_response.go | 23 +- .../get_subnet_topology_request_response.go | 163 + ..._device_config_content_request_response.go | 23 +- ...nnel_cpe_device_config_request_response.go | 23 +- .../get_upgrade_status_request_response.go | 23 +- ...s_resolver_association_request_response.go | 21 +- ...get_vcn_drg_attachment_request_response.go | 21 +- .../core/get_vcn_drg_request_response.go | 23 +- .../core/get_vcn_request_response.go | 21 +- .../core/get_vcn_topology_request_response.go | 163 + .../get_virtual_circuit_request_response.go | 23 +- .../core/get_vlan_request_response.go | 21 +- .../get_vnic_attachment_request_response.go | 21 +- .../core/get_vnic_request_response.go | 23 +- .../core/get_vnic_worker_request_response.go | 23 +- .../get_volume_attachment_request_response.go | 21 +- ...olicy_asset_assignment_request_response.go | 21 +- ...ckup_policy_assignment_request_response.go | 21 +- ...t_volume_backup_policy_request_response.go | 21 +- .../get_volume_backup_request_response.go | 21 +- ...et_volume_group_backup_request_response.go | 21 +- ...t_volume_group_replica_request_response.go | 21 +- .../core/get_volume_group_request_response.go | 21 +- .../get_volume_kms_key_request_response.go | 21 +- .../core/get_volume_request_response.go | 21 +- .../core/get_vtap_request_response.go | 23 +- ...ce_initial_credentials_request_response.go | 21 +- .../v65/core/i_scsi_volume_attachment.go | 216 + .../oci-go-sdk/v65/core/icmp_options.go | 54 + .../oracle/oci-go-sdk/v65/core/image.go | 274 + .../image_capability_schema_descriptor.go | 142 + .../v65/core/image_memory_constraints.go | 46 + .../v65/core/image_ocpu_constraints.go | 46 + .../core/image_shape_compatibility_entry.go | 50 + .../core/image_shape_compatibility_summary.go | 50 + .../v65/core/image_source_details.go | 162 + ...source_via_object_storage_tuple_details.go | 90 + ...e_source_via_object_storage_uri_details.go | 84 + .../image_source_via_volume_backup_details.go | 85 + .../oci-go-sdk/v65/core/image_volume.go | 51 + .../v65/core/image_volume_details.go | 44 + .../v65/core/ingress_security_rule.go | 125 + .../oracle/oci-go-sdk/v65/core/instance.go | 488 ++ .../core/instance_action_request_response.go | 189 + .../core/instance_agent_config.go | 26 +- .../v65/core/instance_agent_features.go | 46 + .../instance_agent_plugin_config_details.go | 96 + .../v65/core/instance_availability_config.go | 96 + .../core/instance_configuration.go | 26 +- ...ilan_bm_launch_instance_platform_config.go | 171 + ..._bm_gpu_launch_instance_platform_config.go | 163 + ...rome_bm_launch_instance_platform_config.go | 171 + ..._amd_vm_launch_instance_platform_config.go | 87 + ...tance_configuration_attach_vnic_details.go | 52 + ...nce_configuration_attach_volume_details.go | 143 + .../instance_configuration_autotune_policy.go | 127 + ...tance_configuration_availability_config.go | 96 + ...ance_configuration_block_volume_details.go | 77 + ...figuration_block_volume_replica_details.go | 48 + ...tance_configuration_create_vnic_details.go | 26 +- ...nce_configuration_create_volume_details.go | 182 + ...uration_detached_volume_autotune_policy.go | 55 + ...instance_configuration_instance_details.go | 81 + ...instance_configuration_instance_options.go | 45 + ...e_configuration_instance_source_details.go | 85 + ...instance_source_via_boot_volume_details.go | 58 + ...ation_instance_source_via_image_details.go | 75 + ...lake_bm_launch_instance_platform_config.go | 155 + ...lake_bm_launch_instance_platform_config.go | 88 + ...ntel_vm_launch_instance_platform_config.go | 87 + ...nfiguration_iscsi_attach_volume_details.go | 106 + ...on_launch_instance_agent_config_details.go | 26 +- ...e_configuration_launch_instance_details.go | 82 +- ...uration_launch_instance_platform_config.go | 212 + ...on_launch_instance_shape_config_details.go | 112 + .../instance_configuration_launch_options.go | 290 + ...n_paravirtualized_attach_volume_details.go | 106 + ...ation_performance_based_autotune_policy.go | 62 + .../core/instance_configuration_summary.go | 64 + ...nce_configuration_volume_source_details.go | 85 + ...olume_source_from_volume_backup_details.go | 58 + ...ation_volume_source_from_volume_details.go | 58 + .../v65/core/instance_console_connection.go | 134 + .../v65/core/instance_credentials.go | 46 + .../v65/core/instance_maintenance_reboot.go | 46 + .../oci-go-sdk/v65/core/instance_options.go | 45 + .../oci-go-sdk/v65/core/instance_pool.go | 164 + .../v65/core/instance_pool_instance.go | 133 + ...nce_pool_instance_load_balancer_backend.go | 105 + .../instance_pool_load_balancer_attachment.go | 116 + .../instance_pool_placement_configuration.go | 62 + ...ce_pool_placement_secondary_vnic_subnet.go | 47 + .../v65/core/instance_pool_summary.go | 149 + .../v65/core/instance_power_action_details.go | 89 + .../v65/core/instance_reservation_config.go | 58 + .../instance_reservation_config_details.go | 61 + ...stance_reservation_shape_config_details.go | 53 + .../v65/core/instance_screenshot.go | 111 + .../v65/core/instance_screenshot_summary.go | 56 + .../v65/core/instance_shape_config.go | 131 + .../v65/core/instance_source_details.go | 85 + ...instance_source_via_boot_volume_details.go | 58 + .../core/instance_source_via_image_details.go | 74 + .../oci-go-sdk/v65/core/instance_summary.go | 77 + ...lake_bm_launch_instance_platform_config.go | 155 + .../core/intel_icelake_bm_platform_config.go | 155 + ...lake_bm_launch_instance_platform_config.go | 88 + .../core/intel_skylake_bm_platform_config.go | 88 + ...ntel_vm_launch_instance_platform_config.go | 87 + .../v65/core/intel_vm_platform_config.go | 87 + .../v65/core/internal_dns_record.go | 163 + .../oci-go-sdk/v65/core/internal_drg.go | 190 + .../v65/core/internal_drg_attachment.go | 126 + .../v65/core/internal_drg_route_rule.go | 103 + .../v65/core/internal_drg_route_table.go | 50 + .../v65/core/internal_generic_gateway.go | 203 + .../oci-go-sdk/v65/core/internal_public_ip.go | 332 ++ .../{v49 => v65}/core/internal_subnet.go | 66 +- .../{v49 => v65}/core/internal_vnic.go | 63 +- .../v65/core/internal_vnic_attachment.go | 4350 +++++++++++++++ ...t_drg_attachment_network_create_details.go | 69 + ...internet_drg_attachment_network_details.go | 70 + ...t_drg_attachment_network_update_details.go | 62 + .../oci-go-sdk/v65/core/internet_gateway.go | 135 + .../oci-go-sdk/v65/core/ip_sec_connection.go | 220 + .../core/ip_sec_connection_device_config.go | 54 + .../core/ip_sec_connection_device_status.go | 54 + .../ip_sec_connection_migration_status.go | 123 + .../v65/core/ip_sec_connection_tunnel.go | 448 ++ .../ip_sec_connection_tunnel_error_details.go | 58 + .../ip_sec_connection_tunnel_shared_secret.go | 43 + ...l_drg_attachment_network_create_details.go | 75 + ...c_tunnel_drg_attachment_network_details.go | 89 + ...l_drg_attachment_network_update_details.go | 58 + .../oracle/oci-go-sdk/v65/core/ipv6.go | 138 + .../launch_instance_agent_config_details.go | 26 +- ...ch_instance_availability_config_details.go | 97 + ...instance_configuration_request_response.go | 24 +- .../core/launch_instance_details.go | 67 +- .../core/launch_instance_platform_config.go | 216 + .../core/launch_instance_request_response.go | 27 +- .../launch_instance_shape_config_details.go | 111 + .../oci-go-sdk/v65/core/launch_options.go | 290 + .../v65/core/ldap_config_details.go | 181 + .../v65/core/letter_of_authority.go | 108 + ...additional_route_rules_request_response.go | 23 +- ...ons_for_remote_peering_request_response.go | 21 +- ...ting_resource_versions_request_response.go | 152 + ...t_app_catalog_listings_request_response.go | 158 + ..._catalog_subscriptions_request_response.go | 209 + ..._block_volume_replicas_request_response.go | 222 + ...oot_volume_attachments_request_response.go | 21 +- ...st_boot_volume_backups_request_response.go | 222 + ...t_boot_volume_replicas_request_response.go | 222 + .../list_boot_volumes_request_response.go | 25 +- ...byoip_allocated_ranges_request_response.go | 21 +- .../list_byoip_ranges_request_response.go | 212 + ...ist_c3_drg_attachments_request_response.go | 288 + .../core/list_c3_drgs_request_response.go | 21 +- .../list_capture_filters_request_response.go | 216 + .../list_client_vpn_users_request_response.go | 212 + .../core/list_client_vpns_request_response.go | 209 + ...ster_network_instances_request_response.go | 212 + .../list_cluster_networks_request_response.go | 216 + ...vation_instance_shapes_request_response.go | 213 + ..._reservation_instances_request_response.go | 213 + ..._capacity_reservations_request_response.go | 219 + .../list_compute_clusters_request_response.go | 213 + ...bility_schema_versions_request_response.go | 209 + ...age_capability_schemas_request_response.go | 209 + ...age_capability_schemas_request_response.go | 212 + ...list_console_histories_request_response.go | 220 + ...list_cpe_device_shapes_request_response.go | 21 +- .../core/list_cpes_request_response.go | 21 +- ...t_cross_connect_groups_request_response.go | 216 + ...ross_connect_locations_request_response.go | 21 +- ...cross_connect_mappings_request_response.go | 23 +- .../list_cross_connects_request_response.go | 219 + ...nect_port_speed_shapes_request_response.go | 21 +- .../core/list_davs_request_response.go | 21 +- ...m_host_instance_shapes_request_response.go | 21 +- ...ated_vm_host_instances_request_response.go | 213 + ...dicated_vm_host_shapes_request_response.go | 21 +- ...ist_dedicated_vm_hosts_request_response.go | 286 + .../list_dhcp_options_request_response.go | 219 + .../list_drg_attachments_request_response.go | 288 + ...istribution_statements_request_response.go | 196 + ...rg_route_distributions_request_response.go | 216 + .../list_drg_route_rules_request_response.go | 152 + .../list_drg_route_tables_request_response.go | 219 + ...st_drg_urt_route_rules_request_response.go | 92 + .../list_drgs_by_states_request_response.go | 212 + .../core/list_drgs_request_response.go | 21 +- ...list_endpoint_services_request_response.go | 209 + ...nect_provider_services_request_response.go | 21 +- ...rcuit_bandwidth_shapes_request_response.go | 23 +- ...log_config_attachments_request_response.go | 150 + .../list_flow_log_configs_request_response.go | 209 + ...nnection_tunnel_routes_request_response.go | 32 +- ..._security_associations_request_response.go | 23 +- ...sec_connection_tunnels_request_response.go | 23 +- ...st_i_p_sec_connections_request_response.go | 23 +- ..._compatibility_entries_request_response.go | 21 +- .../v65/core/list_images_request_response.go | 227 + ...nstance_configurations_request_response.go | 206 + ...ce_console_connections_request_response.go | 21 +- .../list_instance_devices_request_response.go | 212 + ...nstance_pool_instances_request_response.go | 212 + .../list_instance_pools_request_response.go | 216 + ...t_instance_screenshots_request_response.go | 213 + .../core/list_instances_request_response.go | 228 + ...t_internal_dns_records_request_response.go | 23 +- ...ternal_drg_attachments_request_response.go | 21 +- .../list_internal_drgs_request_response.go | 24 +- ...ernal_generic_gateways_request_response.go | 21 +- ...st_internal_public_ips_request_response.go | 210 + ...ernal_vnic_attachments_request_response.go | 21 +- .../list_internal_vnics_request_response.go | 218 + ...list_internet_gateways_request_response.go | 219 + .../core/list_ipv6s_request_response.go | 23 +- ...al_peering_connections_request_response.go | 21 +- ...local_peering_gateways_request_response.go | 21 +- .../list_nat_gateways_request_response.go | 219 + ...y_group_security_rules_request_response.go | 245 + ...k_security_group_vnics_request_response.go | 196 + ...etwork_security_groups_request_response.go | 222 + .../core/list_next_hops_request_response.go | 21 +- ...rivate_access_gateways_request_response.go | 209 + ..._endpoint_associations_request_response.go | 206 + ...list_private_endpoints_request_response.go | 209 + .../core/list_private_ips_request_response.go | 23 +- .../list_public_ip_pools_request_response.go | 212 + .../core/list_public_ips_request_response.go | 213 + ...te_peering_connections_request_response.go | 21 +- ...onnection_nat_ip_cidrs_request_response.go | 21 +- ...rse_connection_nat_ips_request_response.go | 216 + .../list_route_tables_request_response.go | 219 + .../list_scan_proxies_request_response.go | 206 + .../list_security_lists_request_response.go | 219 + .../list_service_gateways_request_response.go | 216 + .../core/list_services_request_response.go | 21 +- .../v65/core/list_shapes_request_response.go | 110 + .../v65/core/list_subnets_request_response.go | 219 + ...st_vcn_drg_attachments_request_response.go | 288 + .../core/list_vcn_drgs_request_response.go | 21 +- .../v65/core/list_vcns_request_response.go | 216 + ...rcuit_bandwidth_shapes_request_response.go | 21 +- ...ircuit_public_prefixes_request_response.go | 95 + .../list_virtual_circuits_request_response.go | 216 + .../v65/core/list_vlans_request_response.go | 219 + .../list_vnic_attachments_request_response.go | 21 +- .../list_vnic_workers_request_response.go | 23 +- ...ist_volume_attachments_request_response.go | 21 +- ...volume_backup_policies_request_response.go | 21 +- .../list_volume_backups_request_response.go | 222 + ...t_volume_group_backups_request_response.go | 212 + ..._volume_group_replicas_request_response.go | 219 + .../list_volume_groups_request_response.go | 220 + .../v65/core/list_volumes_request_response.go | 227 + .../v65/core/list_vtaps_request_response.go | 233 + .../v65/core/local_peering_connection.go | 186 + .../v65/core/local_peering_gateway.go | 220 + .../v65/core/local_peering_token_details.go | 43 + ...k_drg_attachment_network_create_details.go | 69 + ...oop_back_drg_attachment_network_details.go | 80 + ...k_drg_attachment_network_update_details.go | 58 + .../v65/core/macsec_encryption_cipher.go | 68 + .../oracle/oci-go-sdk/v65/core/macsec_key.go | 52 + .../oci-go-sdk/v65/core/macsec_properties.go | 54 + .../oci-go-sdk/v65/core/macsec_state.go | 60 + .../v65/core/measured_boot_entry.go | 50 + .../v65/core/measured_boot_report.go | 45 + .../core/measured_boot_report_measurements.go | 46 + .../oci-go-sdk/v65/core/member_replica.go | 95 + .../v65/core/migrate_drg_details.go | 97 + .../core/migrate_drg_request_response.go | 21 +- ...ate_i_p_sec_connection_request_response.go | 23 +- .../oci-go-sdk/v65/core/migration_info.go | 56 + .../modify_reverse_connections_details.go | 114 + ...fy_reverse_connections_request_response.go | 24 +- .../v65/core/modify_vcn_cidr_details.go | 46 + .../core/modify_vcn_cidr_request_response.go | 24 +- .../oci-go-sdk/v65/core/multipath_device.go | 53 + .../oracle/oci-go-sdk/v65/core/nat_gateway.go | 150 + .../v65/core/network_security_group.go | 150 + .../v65/core/network_security_group_vnic.go | 52 + .../{v49 => v65}/core/networking_topology.go | 26 +- .../core/paravirtualized_volume_attachment.go | 36 +- .../core/peer_region_for_remote_peering.go | 45 + .../percentage_of_cores_enabled_options.go | 49 + .../core/performance_based_autotune_policy.go | 62 + .../v65/core/phase_one_config_details.go | 214 + .../v65/core/phase_two_config_details.go | 225 + .../oci-go-sdk/v65/core/platform_config.go | 207 + .../oracle/oci-go-sdk/v65/core/port_range.go | 47 + .../preemptible_instance_config_details.go | 66 + .../oci-go-sdk/v65/core/preemption_action.go | 119 + .../v65/core/private_access_gateway.go | 139 + .../core/private_access_gateway_summary.go | 48 + .../{v49 => v65}/core/private_endpoint.go | 60 +- .../v65/core/private_endpoint_association.go | 62 + .../v65/core/private_endpoint_summary.go | 51 + .../{v49 => v65}/core/private_ip.go | 48 +- .../v65/core/private_ip_next_hop.go | 50 + .../core/private_ip_next_hop_protocol_port.go | 95 + .../v65/core/private_ip_next_hop_target.go | 99 + .../oracle/oci-go-sdk/v65/core/public_ip.go | 331 ++ .../oci-go-sdk/v65/core/public_ip_pool.go | 127 + .../v65/core/public_ip_pool_collection.go | 43 + .../v65/core/public_ip_pool_summary.go | 70 + .../v65/core/radius_config_details.go | 104 + .../v65/core/radius_server_details.go | 52 + .../v65/core/reboot_migrate_action_details.go | 65 + .../v65/core/remote_peering_connection.go | 206 + ...n_drg_attachment_network_create_details.go | 74 + ...nnection_drg_attachment_network_details.go | 86 + .../remove_additional_route_rules_details.go | 52 + ...additional_route_rules_request_response.go | 23 +- ...drg_peering_connection_request_response.go | 21 +- ...g_route_distribution_statements_details.go | 43 + ...istribution_statements_request_response.go | 21 +- .../core/remove_drg_route_rules_details.go | 43 + ...remove_drg_route_rules_request_response.go | 21 +- ...drg_route_distribution_request_response.go | 21 +- ...pe_compatibility_entry_request_response.go | 21 +- ...drg_route_distribution_request_response.go | 21 +- ...emove_ipv6_subnet_cidr_request_response.go | 107 + .../remove_ipv6_vcn_cidr_request_response.go | 107 + ...k_security_group_security_rules_details.go | 43 + ...y_group_security_rules_request_response.go | 21 +- .../remove_public_ip_pool_capacity_details.go | 44 + ...ublic_ip_pool_capacity_request_response.go | 21 +- .../core/remove_subnet_ipv6_cidr_details.go | 46 + .../v65/core/remove_vcn_cidr_details.go | 43 + .../core/remove_vcn_cidr_request_response.go | 24 +- .../v65/core/remove_vcn_ipv6_cidr_details.go | 46 + .../v65/core/reset_action_details.go | 67 + .../reset_instance_pool_request_response.go | 21 +- .../core/reverse_connection_configuration.go | 313 ++ .../v65/core/reverse_connection_nat_ip.go | 114 + .../reverse_connection_nat_ip_cidr_summary.go | 43 + .../reverse_connections_source_ip_details.go | 45 + .../v65/core/rollback_drg_migration.go | 52 + .../core/rollback_drg_migration_details.go | 52 + ...rollback_drg_migration_request_response.go | 21 +- ...ack_i_p_sec_connection_request_response.go | 23 +- .../rollback_upgrade_drg_request_response.go | 26 +- .../route_destination_route_target_details.go | 46 + .../oracle/oci-go-sdk/v65/core/route_rule.go | 170 + .../oracle/oci-go-sdk/v65/core/route_table.go | 134 + ...raffic_to_destination_smart_nic_details.go | 43 + ..._destination_smart_nic_request_response.go | 105 + .../oci-go-sdk/v65/core/scan_listener_info.go | 50 + .../oracle/oci-go-sdk/v65/core/scan_proxy.go | 276 + .../oci-go-sdk/v65/core/scan_proxy_summary.go | 84 + .../oci-go-sdk/v65/core/security_list.go | 143 + .../oci-go-sdk/v65/core/security_rule.go | 271 + .../oracle/oci-go-sdk/v65/core/service.go | 67 + .../oci-go-sdk/v65/core/service_gateway.go | 150 + .../v65/core/service_id_request_details.go | 43 + .../v65/core/service_id_response_details.go | 46 + .../set_drg_peering_connection_details.go | 52 + ...drg_peering_connection_request_response.go | 21 +- .../oracle/oci-go-sdk/v65/core/shape.go | 240 + ...ontrol_service_enabled_platform_options.go | 46 + .../v65/core/shape_alternative_object.go | 43 + ...anagement_unit_enabled_platform_options.go | 46 + .../core/shape_max_vnic_attachment_options.go | 50 + .../v65/core/shape_measured_boot_options.go | 46 + .../core/shape_memory_encryption_options.go | 46 + .../v65/core/shape_memory_options.go | 56 + .../shape_networking_bandwidth_options.go | 50 + ..._numa_nodes_per_socket_platform_options.go | 102 + .../oci-go-sdk/v65/core/shape_ocpu_options.go | 47 + .../v65/core/shape_platform_config_options.go | 128 + .../v65/core/shape_secure_boot_options.go | 46 + ...ulti_threading_enabled_platform_options.go | 46 + .../shape_trusted_platform_module_options.go | 46 + ...l_instructions_enabled_platform_options.go | 46 + .../core/smart_nic_vnic_attachment_info.go | 55 + .../v65/core/soft_reset_action_details.go | 67 + ...oftreset_instance_pool_request_response.go | 21 +- ...softstop_instance_pool_request_response.go | 21 +- .../oci-go-sdk/v65/core/ssl_cert_details.go | 119 + .../start_instance_pool_request_response.go | 21 +- .../stop_instance_pool_request_response.go | 21 +- .../oci-go-sdk/{v49 => v65}/core/subnet.go | 61 +- .../oci-go-sdk/v65/core/subnet_topology.go | 121 + .../oracle/oci-go-sdk/v65/core/tcp_options.go | 44 + ...minate_cluster_network_request_response.go | 24 +- ...erminate_instance_pool_request_response.go | 21 +- .../terminate_instance_request_response.go | 21 +- .../v65/core/terminate_preemption_action.go | 58 + .../oracle/oci-go-sdk/v65/core/topology.go | 169 + ...ogy_associated_with_entity_relationship.go | 76 + ...gy_associated_with_relationship_details.go | 43 + .../topology_contains_entity_relationship.go | 74 + .../v65/core/topology_entity_relationship.go | 155 + .../topology_routes_to_entity_relationship.go | 75 + ...topology_routes_to_relationship_details.go | 99 + .../oci-go-sdk/v65/core/tunnel_config.go | 53 + .../v65/core/tunnel_cpe_device_config.go | 49 + .../v65/core/tunnel_phase_one_details.go | 75 + .../v65/core/tunnel_phase_two_details.go | 78 + .../v65/core/tunnel_route_summary.go | 100 + .../tunnel_security_association_summary.go | 116 + .../oci-go-sdk/v65/core/tunnel_status.go | 108 + .../oracle/oci-go-sdk/v65/core/udp_options.go | 44 + .../undrain_vnic_worker_request_response.go | 23 +- .../core/update_boot_volume_backup_details.go | 54 + ...ate_boot_volume_backup_request_response.go | 21 +- .../v65/core/update_boot_volume_details.go | 130 + .../update_boot_volume_kms_key_details.go | 45 + ...te_boot_volume_kms_key_request_response.go | 23 +- .../update_boot_volume_request_response.go | 21 +- .../v65/core/update_byoip_range_details.go | 54 + .../update_byoip_range_request_response.go | 21 +- ...date_c3_drg_attachment_request_response.go | 21 +- .../core/update_c3_drg_request_response.go | 23 +- .../v65/core/update_capture_filter_details.go | 57 + .../update_capture_filter_request_response.go | 23 +- .../v65/core/update_client_vpn_details.go | 181 + .../update_client_vpn_request_response.go | 23 +- .../core/update_client_vpn_user_details.go | 46 + ...update_client_vpn_user_request_response.go | 23 +- .../core/update_cluster_network_details.go | 57 + ...e_cluster_network_instance_pool_details.go | 63 + ...update_cluster_network_request_response.go | 21 +- ...te_compute_capacity_reservation_details.go | 63 + ...e_capacity_reservation_request_response.go | 24 +- .../core/update_compute_cluster_details.go | 54 + ...update_compute_cluster_request_response.go | 27 +- ...compute_image_capability_schema_details.go | 26 +- ...mage_capability_schema_request_response.go | 21 +- .../core/update_console_history_details.go | 54 + ...update_console_history_request_response.go | 21 +- .../oci-go-sdk/v65/core/update_cpe_details.go | 65 + .../core/update_cpe_request_response.go | 23 +- .../v65/core/update_cross_connect_details.go | 65 + .../update_cross_connect_group_details.go | 59 + ...te_cross_connect_group_request_response.go | 23 +- .../update_cross_connect_request_response.go | 23 +- .../oci-go-sdk/v65/core/update_dav_details.go | 57 + .../core/update_dav_request_response.go | 24 +- .../core/update_dedicated_vm_host_details.go | 54 + ...date_dedicated_vm_host_request_response.go | 21 +- .../v65/core/update_dhcp_details.go | 148 + .../update_dhcp_options_request_response.go | 23 +- .../core/update_drg_attachment_details.go | 30 +- .../update_drg_attachment_request_response.go | 21 +- .../oci-go-sdk/v65/core/update_drg_details.go | 56 + .../core/update_drg_request_response.go | 23 +- .../update_drg_route_distribution_details.go | 55 + ...drg_route_distribution_request_response.go | 21 +- ...rg_route_distribution_statement_details.go | 83 + ...g_route_distribution_statements_details.go | 43 + ...istribution_statements_request_response.go | 21 +- .../v65/core/update_drg_route_rule_details.go | 99 + .../core/update_drg_route_rules_details.go | 43 + ...update_drg_route_rules_request_response.go | 21 +- .../core/update_drg_route_table_details.go | 63 + ...update_drg_route_table_request_response.go | 21 +- .../core/update_endpoint_service_details.go | 26 +- ...pdate_endpoint_service_next_hop_details.go | 46 + ...point_service_next_hop_request_response.go | 21 +- ...pdate_endpoint_service_request_response.go | 24 +- ...date_flow_log_config_attachment_details.go | 44 + ..._log_config_attachment_request_response.go | 21 +- .../core/update_flow_log_config_details.go | 54 + ...update_flow_log_config_request_response.go | 21 +- ...ate_i_p_sec_connection_request_response.go | 23 +- ..._sec_connection_tunnel_request_response.go | 23 +- ...n_tunnel_shared_secret_request_response.go | 23 +- .../v65/core/update_image_details.go | 64 + .../core/update_image_request_response.go | 21 +- .../v65/core/update_image_volume.go | 46 + .../v65/core/update_image_volume_details.go | 43 + .../update_instance_agent_config_details.go | 26 +- ...te_instance_availability_config_details.go | 97 + .../update_instance_configuration_details.go | 54 + ...instance_configuration_request_response.go | 21 +- ...ate_instance_console_connection_details.go | 50 + ...nce_console_connection_request_response.go | 21 +- .../v65/core/update_instance_details.go | 252 + .../core/update_instance_pool_details.go | 26 +- ...ce_pool_placement_configuration_details.go | 62 + .../update_instance_pool_request_response.go | 21 +- .../core/update_instance_request_response.go | 24 +- .../update_instance_shape_config_details.go | 112 + .../core/update_instance_source_details.go | 105 + ...instance_source_via_boot_volume_details.go | 74 + ...pdate_instance_source_via_image_details.go | 80 + .../update_internal_dns_record_details.go | 48 + ...te_internal_dns_record_request_response.go | 21 +- .../update_internal_drg_attachment_details.go | 47 + ...nternal_drg_attachment_request_response.go | 21 +- .../v65/core/update_internal_drg_details.go | 54 + .../update_internal_drg_request_response.go | 21 +- ...update_internal_generic_gateway_details.go | 57 + ...ternal_generic_gateway_request_response.go | 21 +- .../core/update_internal_public_ip_details.go | 59 + ...ate_internal_public_ip_request_response.go | 23 +- .../core/update_internal_vnic_details.go | 26 +- .../update_internal_vnic_metadata_details.go | 46 + ...internal_vnic_metadata_request_response.go | 24 +- .../update_internal_vnic_request_response.go | 23 +- .../core/update_internet_gateway_details.go | 60 + ...pdate_internet_gateway_request_response.go | 23 +- .../core/update_ip_sec_connection_details.go | 121 + ...update_ip_sec_connection_tunnel_details.go | 259 + ...connection_tunnel_shared_secret_details.go | 44 + ...pdate_ip_sec_tunnel_bgp_session_details.go | 26 +- ...ip_sec_tunnel_encryption_domain_details.go | 48 + .../v65/core/update_ipv6_details.go | 58 + .../core/update_ipv6_request_response.go | 21 +- .../v65/core/update_launch_options.go | 166 + ...update_local_peering_connection_details.go | 44 + ...cal_peering_connection_request_response.go | 23 +- .../update_local_peering_gateway_details.go | 59 + ..._local_peering_gateway_request_response.go | 23 +- .../oci-go-sdk/v65/core/update_macsec_key.go | 52 + .../v65/core/update_macsec_properties.go | 54 + .../v65/core/update_nat_gateway_details.go | 64 + .../update_nat_gateway_request_response.go | 21 +- .../update_network_security_group_details.go | 54 + ...network_security_group_request_response.go | 21 +- ...k_security_group_security_rules_details.go | 43 + ...y_group_security_rules_request_response.go | 21 +- .../update_private_access_gateway_details.go | 54 + ...private_access_gateway_request_response.go | 24 +- .../core/update_private_endpoint_details.go | 26 +- ...pdate_private_endpoint_request_response.go | 24 +- .../v65/core/update_private_ip_details.go | 69 + .../update_private_ip_next_hop_details.go | 51 + ...te_private_ip_next_hop_request_response.go | 23 +- .../update_private_ip_request_response.go | 23 +- .../v65/core/update_public_ip_details.go | 61 + .../v65/core/update_public_ip_pool_details.go | 54 + .../update_public_ip_pool_request_response.go | 21 +- .../core/update_public_ip_request_response.go | 23 +- ...pdate_remote_peering_connection_details.go | 54 + ...ote_peering_connection_request_response.go | 23 +- .../v65/core/update_resource_pool_details.go | 46 + .../update_resource_pool_request_response.go | 104 + .../v65/core/update_route_table_details.go | 60 + .../update_route_table_request_response.go | 23 +- .../v65/core/update_scan_proxy_details.go | 59 + .../update_scan_proxy_request_response.go | 24 +- .../v65/core/update_security_list_details.go | 60 + .../update_security_list_request_response.go | 23 +- .../v65/core/update_security_rule_details.go | 260 + .../core/update_service_gateway_details.go | 26 +- ...update_service_gateway_request_response.go | 21 +- ...tp_port_action_unblock_request_response.go | 101 + .../core/update_subnet_details.go | 32 +- .../core/update_subnet_request_response.go | 23 +- ...update_tunnel_cpe_device_config_details.go | 43 + ...nnel_cpe_device_config_request_response.go | 23 +- .../oci-go-sdk/v65/core/update_vcn_details.go | 68 + ...ate_vcn_drg_attachment_request_response.go | 21 +- .../core/update_vcn_drg_request_response.go | 23 +- .../core/update_vcn_request_response.go | 21 +- .../core/update_virtual_circuit_details.go | 267 + ...update_virtual_circuit_request_response.go | 23 +- .../{v49 => v65}/core/update_vlan_details.go | 26 +- .../core/update_vlan_request_response.go | 21 +- .../{v49 => v65}/core/update_vnic_details.go | 26 +- .../core/update_vnic_request_response.go | 23 +- .../v65/core/update_vnic_shape_details.go | 4251 ++++++++++++++ .../update_vnic_shape_request_response.go | 24 +- .../v65/core/update_vnic_worker_details.go | 47 + .../update_vnic_worker_request_response.go | 23 +- .../core/update_volume_attachment_details.go | 109 + ...date_volume_attachment_request_response.go | 21 +- .../v65/core/update_volume_backup_details.go | 54 + .../update_volume_backup_policy_details.go | 26 +- ...e_volume_backup_policy_request_response.go | 21 +- .../update_volume_backup_request_response.go | 21 +- .../v65/core/update_volume_details.go | 131 + .../update_volume_group_backup_details.go | 54 + ...te_volume_group_backup_request_response.go | 21 +- .../v65/core/update_volume_group_details.go | 61 + .../update_volume_group_request_response.go | 21 +- .../v65/core/update_volume_kms_key_details.go | 45 + .../update_volume_kms_key_request_response.go | 23 +- .../core/update_volume_request_response.go | 21 +- .../v65/core/update_vtap_details.go | 291 + .../v65/core/update_vtap_request_response.go | 103 + ...d_network_security_group_security_rules.go | 43 + .../core/upgrade_drg_request_response.go | 26 +- .../oci-go-sdk/v65/core/upgrade_status.go | 98 + .../validate_byoip_range_request_response.go | 24 +- ...validate_create_and_attach_vnic_request.go | 43 + ...nd_attach_vnic_request_request_response.go | 85 + .../validate_drg_routes_request_response.go | 98 + .../v65/core/validation_status_info.go | 43 + .../oracle/oci-go-sdk/v65/core/vcn.go | 173 + .../v65/core/vcn_dns_resolver_association.go | 102 + ...n_drg_attachment_network_create_details.go | 78 + .../vcn_drg_attachment_network_details.go | 118 + ...n_drg_attachment_network_update_details.go | 68 + .../{v49 => v65}/core/vcn_topology.go | 26 +- .../oci-go-sdk/v65/core/virtual_circuit.go | 629 +++ .../core/virtual_circuit_bandwidth_shape.go | 48 + ...t_drg_attachment_network_create_details.go | 80 + ..._circuit_drg_attachment_network_details.go | 92 + ...t_drg_attachment_network_update_details.go | 73 + .../v65/core/virtual_circuit_ip_mtu.go | 60 + .../v65/core/virtual_circuit_public_prefix.go | 101 + .../oracle/oci-go-sdk/v65/core/vlan.go | 157 + .../oci-go-sdk/{v49 => v65}/core/vnic.go | 56 +- .../oci-go-sdk/v65/core/vnic_attachment.go | 148 + .../oracle/oci-go-sdk/v65/core/vnic_worker.go | 136 + .../v65/core/vnic_worker_ip_config.go | 49 + .../oracle/oci-go-sdk/v65/core/volume.go | 331 ++ .../oci-go-sdk/v65/core/volume_attachment.go | 360 ++ .../oci-go-sdk/v65/core/volume_backup.go | 276 + .../v65/core/volume_backup_policy.go | 74 + .../core/volume_backup_policy_assignment.go | 55 + .../v65/core/volume_backup_schedule.go | 430 ++ .../v65/core/volume_backup_source_details.go | 140 + .../oci-go-sdk/v65/core/volume_group.go | 221 + .../v65/core/volume_group_backup.go | 270 + .../v65/core/volume_group_replica.go | 149 + .../v65/core/volume_group_replica_details.go | 48 + .../v65/core/volume_group_replica_info.go | 51 + .../v65/core/volume_group_source_details.go | 93 + ...source_from_volume_group_backup_details.go | 58 + ..._group_source_from_volume_group_details.go | 58 + ...ource_from_volume_group_replica_details.go | 60 + ...olume_group_source_from_volumes_details.go | 58 + .../oci-go-sdk/v65/core/volume_kms_key.go | 43 + .../v65/core/volume_source_details.go | 91 + ...ource_from_block_volume_replica_details.go | 60 + ...olume_source_from_volume_backup_details.go | 58 + .../core/volume_source_from_volume_details.go | 58 + .../oracle/oci-go-sdk/v65/core/vtap.go | 414 ++ .../core/vtap_capture_filter_rule_details.go | 155 + .../oracle/oci-go-sdk/v65/core/wallet_info.go | 48 + .../withdraw_byoip_range_request_response.go | 21 +- .../change_file_system_compartment_details.go | 40 + ...ile_system_compartment_request_response.go | 21 +- ...tem_snapshot_policy_compartment_details.go | 40 + ...hot_policy_compartment_request_response.go | 93 + ...change_mount_target_compartment_details.go | 40 + ...unt_target_compartment_request_response.go | 21 +- ..._outbound_connector_compartment_details.go | 40 + ..._connector_compartment_request_response.go | 21 +- .../change_replication_compartment_details.go | 40 + ...eplication_compartment_request_response.go | 21 +- ..._replication_target_compartment_details.go | 41 + ...ion_target_compartment_request_response.go | 21 +- .../check_reconciliation_request_response.go | 33 +- .../v65/filestorage/client_options.go | 231 + .../v65/filestorage/client_share_options.go | 107 + .../v65/filestorage/create_export_details.go | 71 + .../create_export_request_response.go | 21 +- .../filestorage/create_file_system_details.go | 72 + .../create_file_system_request_response.go | 21 +- ...eate_filesystem_snapshot_policy_details.go | 68 + ...system_snapshot_policy_request_response.go | 98 + .../filestorage/create_kerberos_details.go | 56 + .../create_ldap_bind_account_details.go | 116 + .../filestorage/create_ldap_idmap_details.go | 102 + .../create_mount_target_details.go | 24 +- .../create_mount_target_request_response.go | 21 +- .../create_outbound_connector_details.go | 22 +- ...ate_outbound_connector_request_response.go | 21 +- .../filestorage/create_replication_details.go | 66 + .../create_replication_request_response.go | 21 +- .../create_replication_target_details.go | 64 + ...ate_replication_target_request_response.go | 21 +- .../v65/filestorage/create_share_details.go | 82 + .../create_share_request_response.go | 98 + .../filestorage/create_share_set_details.go | 83 + .../create_share_set_request_response.go | 98 + .../filestorage/create_snapshot_details.go | 61 + .../create_snapshot_request_response.go | 21 +- .../delete_export_request_response.go | 21 +- .../delete_file_system_request_response.go | 21 +- ...system_snapshot_policy_request_response.go | 92 + .../delete_mount_target_request_response.go | 21 +- ...ete_outbound_connector_request_response.go | 21 +- .../delete_replication_request_response.go | 147 + ...ete_replication_target_request_response.go | 21 +- .../delete_share_request_response.go | 92 + .../delete_share_set_request_response.go | 92 + .../delete_snapshot_request_response.go | 21 +- ...iscard_kerberos_keytab_request_response.go | 21 +- .../oci-go-sdk/v65/filestorage/endpoint.go | 43 + .../estimate_replication_request_response.go | 101 + .../oci-go-sdk/v65/filestorage/export.go | 162 + .../oci-go-sdk/v65/filestorage/export_set.go | 140 + .../v65/filestorage/export_set_summary.go | 117 + .../v65/filestorage/export_summary.go | 115 + .../failover_mount_target_request_response.go | 90 + .../oci-go-sdk/v65/filestorage/file_system.go | 174 + .../v65/filestorage/file_system_summary.go | 153 + .../v65/filestorage/filestorage_client.go | 4911 +++++++++++++++++ .../filestorage/filesystem_snapshot_policy.go | 142 + .../filesystem_snapshot_policy_summary.go | 137 + .../get_export_request_response.go | 21 +- .../get_export_set_request_response.go | 21 +- .../get_file_system_request_response.go | 21 +- ...system_snapshot_policy_request_response.go | 91 + .../get_mount_target_request_response.go | 21 +- ...get_outbound_connector_request_response.go | 21 +- .../get_replication_request_response.go | 21 +- ...cation_target_progress_request_response.go | 98 + ...get_replication_target_request_response.go | 21 +- .../filestorage/get_share_request_response.go | 91 + .../get_share_set_request_response.go | 91 + .../get_snapshot_request_response.go | 21 +- .../get_tag_slug_request_response.go | 21 +- .../oci-go-sdk/v65/filestorage/kerberos.go | 56 + .../v65/filestorage/kerberos_keytab_entry.go | 103 + .../v65/filestorage/key_tab_secret_details.go | 46 + .../v65/filestorage/ldap_bind_account.go | 142 + .../filestorage/ldap_bind_account_summary.go | 24 +- .../oci-go-sdk/v65/filestorage/ldap_idmap.go | 102 + .../list_export_sets_request_response.go | 282 + .../list_exports_request_response.go | 280 + .../list_file_systems_request_response.go | 292 + ...stem_snapshot_policies_request_response.go | 282 + .../list_mount_targets_request_response.go | 288 + ...st_outbound_connectors_request_response.go | 282 + ...st_replication_targets_request_response.go | 282 + .../list_replications_request_response.go | 285 + .../list_share_sets_request_response.go | 241 + .../list_shares_request_response.go | 230 + .../list_snapshots_request_response.go | 281 + .../modify_rootdir_attributes_details.go | 46 + ...ify_rootdir_attributes_request_response.go | 21 +- .../v65/filestorage/mount_target.go | 207 + .../v65/filestorage/mount_target_summary.go | 158 + .../filestorage/oci_service_logging_config.go | 116 + .../v65/filestorage/outbound_connector.go | 261 + .../filestorage/outbound_connector_summary.go | 222 + .../outbound_connector_test_results.go | 95 + ...system_snapshot_policy_request_response.go | 90 + .../oci-go-sdk/v65/filestorage/replication.go | 228 + .../v65/filestorage/replication_estimate.go | 52 + .../replication_fail_request_response.go | 95 + ...lication_status_update_request_response.go | 166 + .../v65/filestorage/replication_summary.go | 140 + .../v65/filestorage/replication_target.go | 232 + ...lication_target_delete_request_response.go | 26 +- ...eplication_target_fail_request_response.go | 26 +- ...target_file_system_get_request_response.go | 21 +- ...replication_target_get_request_response.go | 91 + .../replication_target_progress.go | 55 + ...n_target_status_update_request_response.go | 181 + .../filestorage/replication_target_summary.go | 135 + .../filestorage/reserve_target_num_details.go | 43 + .../reserve_target_num_request_response.go | 33 +- .../restart_stuck_delta_request_response.go | 92 + .../oci-go-sdk/v65/filestorage/share.go | 169 + .../oci-go-sdk/v65/filestorage/share_set.go | 165 + .../share_set_join_domain_details.go | 49 + .../share_set_join_domain_request_response.go | 93 + .../v65/filestorage/share_set_summary.go | 110 + .../v65/filestorage/share_summary.go | 78 + .../oci-go-sdk/v65/filestorage/snapshot.go | 202 + .../v65/filestorage/snapshot_schedule.go | 326 ++ .../v65/filestorage/snapshot_summary.go | 195 + .../v65/filestorage/source_details.go | 45 + ...ource_triggered_delete_request_response.go | 26 +- .../start_logging_mt_request_response.go | 98 + .../stop_logging_mt_request_response.go | 108 + ...unt_target_rebalancing_request_response.go | 84 + .../oci-go-sdk/v65/filestorage/tagslug.go | 56 + ...target_file_system_get_request_response.go | 21 +- .../test_outbound_connector_details.go | 40 + ...est_outbound_connector_request_response.go | 21 +- .../test_outbound_connector_result.go | 98 + ...system_snapshot_policy_request_response.go | 90 + .../v65/filestorage/update_export_details.go | 45 + .../update_export_request_response.go | 21 +- .../filestorage/update_export_set_details.go | 64 + .../update_export_set_request_response.go | 21 +- .../filestorage/update_file_system_details.go | 65 + .../update_file_system_request_response.go | 21 +- ...date_filesystem_snapshot_policy_details.go | 61 + ...system_snapshot_policy_request_response.go | 101 + .../filestorage/update_kerberos_details.go | 56 + .../filestorage/update_ldap_idmap_details.go | 102 + .../update_logging_mt_request_response.go | 105 + .../update_mount_target_details.go | 69 + .../update_mount_target_request_response.go | 21 +- .../update_outbound_connector_details.go | 53 + ...ate_outbound_connector_request_response.go | 21 +- .../filestorage/update_replication_details.go | 57 + .../update_replication_request_response.go | 21 +- .../update_replication_target_details.go | 51 + ...ate_replication_target_request_response.go | 21 +- .../v65/filestorage/update_share_details.go | 63 + .../update_share_request_response.go | 101 + .../filestorage/update_share_set_details.go | 80 + .../update_share_set_request_response.go | 101 + .../filestorage/update_snapshot_details.go | 52 + .../update_snapshot_request_response.go | 21 +- ...upload_kerberos_keytab_request_response.go | 17 +- .../filestorage/validate_key_tabs_details.go | 42 + .../validate_key_tabs_request_response.go | 86 + .../validate_key_tabs_response_details.go | 43 + .../oracle/oci-go-sdk/v65/identity/account.go | 51 + .../activate_domain_request_response.go | 23 +- ...tivate_mfa_totp_device_request_response.go | 21 +- .../v65/identity/add_lock_details.go | 94 + .../add_tag_default_lock_request_response.go | 102 + ...add_tag_namespace_lock_request_response.go | 102 + .../v65/identity/add_user_to_group_details.go | 42 + .../add_user_to_group_request_response.go | 21 +- .../allowed_domain_license_type_summary.go | 47 + .../oracle/oci-go-sdk/v65/identity/api_key.go | 123 + ...mble_effective_tag_set_request_response.go | 24 +- .../oci-go-sdk/v65/identity/auth_token.go | 129 + .../v65/identity/authentication_policy.go | 42 + .../v65/identity/availability_domain.go | 47 + .../identity/base_tag_definition_validator.go | 131 + .../v65/identity/bulk_action_resource.go | 66 + .../v65/identity/bulk_action_resource_type.go | 43 + .../bulk_action_resource_type_collection.go | 39 + .../identity/bulk_delete_resources_details.go | 39 + .../bulk_delete_resources_request_response.go | 21 +- .../v65/identity/bulk_delete_tags_details.go | 39 + .../bulk_delete_tags_request_response.go | 24 +- .../identity/bulk_edit_operation_details.go | 102 + .../v65/identity/bulk_edit_resource.go | 45 + .../v65/identity/bulk_edit_tags_details.go | 45 + .../bulk_edit_tags_request_response.go | 21 +- .../identity/bulk_edit_tags_resource_type.go | 46 + ...bulk_edit_tags_resource_type_collection.go | 39 + .../identity/bulk_move_resources_details.go | 43 + .../bulk_move_resources_request_response.go | 21 +- ...e_delete_tag_namespace_request_response.go | 24 +- .../change_domain_compartment_details.go | 40 + ...nge_domain_compartment_request_response.go | 25 +- .../change_domain_license_type_details.go | 39 + ...ge_domain_license_type_request_response.go | 25 +- ...change_tag_namespace_compartment_detail.go | 39 + ..._namespace_compartment_request_response.go | 24 +- .../change_tas_domain_license_type_details.go | 39 + .../oci-go-sdk/v65/identity/compartment.go | 150 + .../v65/identity/create_api_key_details.go | 39 + .../v65/identity/create_auth_token_details.go | 40 + .../create_auth_token_request_response.go | 21 +- .../identity/create_compartment_details.go | 20 +- .../create_compartment_request_response.go | 21 +- .../create_customer_secret_key_details.go | 39 + ...te_customer_secret_key_request_response.go | 21 +- .../identity/create_db_credential_details.go | 43 + .../create_db_credential_request_response.go | 21 +- .../v65/identity/create_domain_details.go | 85 + .../create_domain_request_response.go | 23 +- .../identity/create_dynamic_group_details.go | 61 + .../create_dynamic_group_request_response.go | 21 +- .../v65/identity/create_group_details.go | 57 + .../identity/create_group_request_response.go | 21 +- .../create_identity_provider_details.go | 234 + ...eate_identity_provider_request_response.go | 21 +- .../create_idp_group_mapping_details.go | 43 + ...eate_idp_group_mapping_request_response.go | 21 +- .../create_managed_compartment_details.go | 20 +- ...te_managed_compartment_request_response.go | 21 +- ...create_mfa_totp_device_request_response.go | 21 +- .../identity/create_network_source_details.go | 24 +- .../create_network_source_request_response.go | 21 +- ...reate_o_auth2_client_credential_details.go | 45 + ...auth_client_credential_request_response.go | 21 +- ..._or_reset_u_i_password_request_response.go | 21 +- .../identity/create_policy_details.go | 24 +- .../create_policy_request_response.go | 21 +- .../create_region_subscription_details.go | 41 + ...te_region_subscription_request_response.go | 21 +- .../create_saml2_identity_provider_details.go | 23 +- .../create_smtp_credential_details.go | 40 + ...create_smtp_credential_request_response.go | 21 +- .../identity/create_swift_password_details.go | 40 + .../create_swift_password_request_response.go | 21 +- .../identity/create_tag_default_details.go | 56 + .../create_tag_default_request_response.go | 21 +- .../identity/create_tag_details.go | 20 +- .../identity/create_tag_namespace_details.go | 58 + .../create_tag_namespace_request_response.go | 21 +- .../identity/create_tag_request_response.go | 24 +- .../identity/create_tag_rule_details.go | 20 +- .../create_tag_rule_request_response.go | 21 +- .../v65/identity/create_user_details.go | 61 + .../identity/create_user_request_response.go | 21 +- .../v65/identity/customer_secret_key.go | 125 + .../identity/customer_secret_key_summary.go | 119 + .../oci-go-sdk/v65/identity/db_credential.go | 112 + .../v65/identity/db_credential_summary.go | 64 + .../deactivate_domain_request_response.go | 23 +- .../default_tag_definition_validator.go | 53 + .../delete_api_key_request_response.go | 21 +- .../delete_auth_token_request_response.go | 21 +- .../delete_compartment_request_response.go | 24 +- ...te_customer_secret_key_request_response.go | 23 +- .../delete_db_credential_request_response.go | 21 +- .../delete_domain_request_response.go | 23 +- .../delete_dynamic_group_request_response.go | 21 +- .../identity/delete_group_request_response.go | 21 +- ...lete_identity_provider_request_response.go | 21 +- ...lete_idp_group_mapping_request_response.go | 21 +- ...delete_mfa_totp_device_request_response.go | 21 +- .../delete_network_source_request_response.go | 21 +- ...auth_client_credential_request_response.go | 21 +- .../delete_policy_request_response.go | 21 +- ...delete_smtp_credential_request_response.go | 21 +- .../delete_swift_password_request_response.go | 21 +- .../delete_tag_default_request_response.go | 24 +- .../delete_tag_namespace_request_response.go | 24 +- .../identity/delete_tag_request_response.go | 24 +- .../delete_tag_rule_request_response.go | 21 +- .../identity/delete_user_request_response.go | 21 +- .../oracle/oci-go-sdk/v65/identity/domain.go | 239 + .../v65/identity/domain_replication.go | 45 + .../v65/identity/domain_replication_states.go | 48 + .../oci-go-sdk/v65/identity/domain_summary.go | 144 + .../oci-go-sdk/v65/identity/dynamic_group.go | 141 + .../enable_replication_to_region_details.go | 42 + ..._replication_to_region_request_response.go | 25 +- .../identity/enum_tag_definition_validator.go | 56 + .../oci-go-sdk/v65/identity/fault_domain.go | 50 + .../v65/identity/fully_qualified_scope.go | 42 + .../generate_totp_seed_request_response.go | 21 +- ...ount_by_entitlement_id_request_response.go | 21 +- ..._authentication_policy_request_response.go | 21 +- .../get_compartment_request_response.go | 134 + .../identity/get_domain_request_response.go | 23 +- .../get_dynamic_group_request_response.go | 21 +- .../identity/get_group_request_response.go | 21 +- .../get_iam_work_request_request_response.go | 21 +- .../get_identity_provider_request_response.go | 21 +- .../get_idp_group_mapping_request_response.go | 21 +- .../get_mfa_totp_device_request_response.go | 21 +- .../get_network_source_request_response.go | 21 +- .../identity/get_policy_request_response.go | 21 +- ..._standard_tag_template_request_response.go | 24 +- .../get_tag_default_request_response.go | 21 +- .../get_tag_namespace_request_response.go | 21 +- .../identity/get_tag_request_response.go | 21 +- .../identity/get_tag_rule_request_response.go | 21 +- ...t_tagging_work_request_request_response.go | 21 +- .../identity/get_tenancy_request_response.go | 21 +- ..._user_group_membership_request_response.go | 21 +- .../identity/get_user_request_response.go | 21 +- ...i_password_information_request_response.go | 21 +- .../get_work_request_request_response.go | 90 + .../oracle/oci-go-sdk/v65/identity/group.go | 140 + .../v65/identity/iam_work_request.go | 196 + .../iam_work_request_error_summary.go | 45 + .../identity/iam_work_request_log_summary.go | 43 + .../v65/identity/iam_work_request_resource.go | 108 + .../v65/identity/iam_work_request_summary.go | 196 + .../{v49 => v65}/identity/identity_client.go | 1569 ++++-- .../identity/identity_provider.go | 55 +- .../identity_provider_group_summary.go | 59 + .../v65/identity/idp_group_mapping.go | 127 + .../identity/import_standard_tags_details.go | 42 + .../import_standard_tags_request_response.go | 94 + ...d_domain_license_types_request_response.go | 92 + .../list_api_keys_request_response.go | 21 +- .../list_auth_tokens_request_response.go | 21 +- ...t_availability_domains_request_response.go | 21 +- ..._action_resource_types_request_response.go | 143 + ...it_tags_resource_types_request_response.go | 21 +- .../list_compartments_request_response.go | 314 ++ ...ist_cost_tracking_tags_request_response.go | 21 +- ...t_customer_secret_keys_request_response.go | 21 +- .../list_db_credentials_request_response.go | 210 + .../identity/list_domains_request_response.go | 228 + .../list_dynamic_groups_request_response.go | 210 + .../list_fault_domains_request_response.go | 23 +- .../identity/list_groups_request_response.go | 210 + ...am_work_request_errors_request_response.go | 147 + ..._iam_work_request_logs_request_response.go | 150 + ...list_iam_work_requests_request_response.go | 21 +- ...entity_provider_groups_request_response.go | 24 +- ...ist_identity_providers_request_response.go | 254 + ...ist_idp_group_mappings_request_response.go | 21 +- ...t_managed_compartments_request_response.go | 21 +- .../list_mfa_totp_devices_request_response.go | 201 + .../list_network_sources_request_response.go | 210 + ...uth_client_credentials_request_response.go | 24 +- .../list_policies_request_response.go | 210 + ...t_region_subscriptions_request_response.go | 21 +- .../identity/list_regions_request_response.go | 21 +- .../list_smtp_credentials_request_response.go | 21 +- ...tandard_tag_namespaces_request_response.go | 21 +- .../list_swift_passwords_request_response.go | 21 +- .../list_tag_defaults_request_response.go | 24 +- .../list_tag_namespaces_request_response.go | 24 +- .../list_tag_rules_request_response.go | 21 +- ...ng_work_request_errors_request_response.go | 21 +- ...ging_work_request_logs_request_response.go | 21 +- ..._tagging_work_requests_request_response.go | 21 +- .../identity/list_tags_request_response.go | 24 +- .../list_tenancies_request_response.go | 21 +- ...user_group_memberships_request_response.go | 21 +- .../identity/list_users_request_response.go | 216 + .../list_work_requests_request_response.go | 101 + .../v65/identity/mfa_totp_device.go | 131 + .../v65/identity/mfa_totp_device_summary.go | 122 + .../oci-go-sdk/v65/identity/mfa_totp_token.go | 39 + .../v65/identity/move_compartment_details.go | 40 + .../move_compartment_request_response.go | 21 +- .../oci-go-sdk/v65/identity/network_policy.go | 39 + .../v65/identity/network_sources.go | 139 + .../identity/network_sources_summary.go | 23 +- .../network_sources_virtual_source_list.go | 39 + .../v65/identity/o_auth2_client_credential.go | 127 + .../o_auth2_client_credential_summary.go | 124 + .../v65/identity/password_policy.go | 54 + .../oracle/oci-go-sdk/v65/identity/policy.go | 146 + .../recover_compartment_request_response.go | 21 +- .../oracle/oci-go-sdk/v65/identity/region.go | 51 + .../v65/identity/region_subscription.go | 101 + .../v65/identity/remove_lock_details.go | 87 + ...emove_tag_default_lock_request_response.go | 102 + ...ove_tag_namespace_lock_request_response.go | 102 + ...remove_user_from_group_request_response.go | 21 +- .../v65/identity/replicated_region_details.go | 104 + .../reset_idp_scim_client_request_response.go | 21 +- .../oci-go-sdk/v65/identity/resource_lock.go | 102 + .../identity/saml2_identity_provider.go | 23 +- .../v65/identity/scim_client_credentials.go | 42 + .../set_governance_from_child_details.go | 39 + ..._governance_from_child_request_response.go | 95 + .../set_governance_from_parent_details.go | 39 + ...governance_from_parent_request_response.go | 95 + .../v65/identity/smtp_credential.go | 130 + .../v65/identity/smtp_credential_summary.go | 124 + .../standard_tag_definition_template.go | 148 + .../standard_tag_namespace_template.go | 48 + ...standard_tag_namespace_template_summary.go | 45 + .../oci-go-sdk/v65/identity/swift_password.go | 127 + .../oci-go-sdk/{v49 => v65}/identity/tag.go | 52 +- .../oci-go-sdk/v65/identity/tag_default.go | 122 + .../v65/identity/tag_default_summary.go | 113 + .../oci-go-sdk/v65/identity/tag_namespace.go | 128 + .../v65/identity/tag_namespace_summary.go | 75 + .../oci-go-sdk/v65/identity/tag_rule.go | 134 + .../oci-go-sdk/v65/identity/tag_summary.go | 76 + .../v65/identity/tagging_work_request.go | 189 + .../tagging_work_request_error_summary.go | 46 + .../tagging_work_request_log_summary.go | 43 + .../identity/tagging_work_request_summary.go | 188 + .../{v49 => v65}/identity/tenancy.go | 22 +- .../oci-go-sdk/v65/identity/ui_password.go | 112 + .../v65/identity/ui_password_information.go | 106 + .../unset_governance_from_child_details.go | 39 + ..._governance_from_child_request_response.go | 95 + .../unset_governance_from_parent_details.go | 39 + ...governance_from_parent_request_response.go | 95 + .../v65/identity/update_auth_token_details.go | 40 + .../update_auth_token_request_response.go | 21 +- .../update_authentication_policy_details.go | 39 + ..._authentication_policy_request_response.go | 21 +- .../identity/update_compartment_details.go | 57 + .../update_compartment_request_response.go | 21 +- .../update_customer_secret_key_details.go | 40 + ...te_customer_secret_key_request_response.go | 23 +- .../v65/identity/update_domain_details.go | 55 + .../update_domain_request_response.go | 25 +- .../identity/update_dynamic_group_details.go | 54 + .../update_dynamic_group_request_response.go | 21 +- .../v65/identity/update_group_details.go | 50 + .../identity/update_group_request_response.go | 21 +- .../update_identity_provider_details.go | 150 + ...date_identity_provider_request_response.go | 21 +- .../update_idp_group_mapping_details.go | 42 + ...date_idp_group_mapping_request_response.go | 21 +- .../identity/update_network_source_details.go | 59 + .../update_network_source_request_response.go | 21 +- ...pdate_o_auth2_client_credential_details.go | 45 + ...auth_client_credential_request_response.go | 21 +- .../v65/identity/update_policy_details.go | 59 + .../update_policy_request_response.go | 21 +- .../update_saml2_identity_provider_details.go | 20 +- .../update_smtp_credential_details.go | 40 + ...update_smtp_credential_request_response.go | 21 +- .../v65/identity/update_state_details.go | 39 + .../identity/update_swift_password_details.go | 40 + .../update_swift_password_request_response.go | 21 +- .../identity/update_tag_default_details.go | 47 + .../update_tag_default_request_response.go | 24 +- .../identity/update_tag_details.go | 22 +- .../identity/update_tag_namespace_details.go | 53 + .../update_tag_namespace_request_response.go | 24 +- .../identity/update_tag_request_response.go | 24 +- .../v65/identity/update_tag_rule_details.go | 55 + .../update_tag_rule_request_response.go | 21 +- .../update_user_capabilities_details.go | 57 + ...date_user_capabilities_request_response.go | 21 +- .../v65/identity/update_user_details.go | 57 + .../identity/update_user_request_response.go | 21 +- .../update_user_state_request_response.go | 21 +- .../upload_api_key_request_response.go | 21 +- .../oracle/oci-go-sdk/v65/identity/user.go | 190 + .../v65/identity/user_capabilities.go | 57 + .../v65/identity/user_group_membership.go | 117 + .../oci-go-sdk/v65/identity/work_request.go | 179 + .../v65/identity/work_request_error.go | 46 + .../v65/identity/work_request_log_entry.go | 43 + .../v65/identity/work_request_resource.go | 109 + .../v65/identity/work_request_summary.go | 175 + .../oci-go-sdk/v65/loadbalancer/action.go | 116 + .../add_http_request_header_rule.go | 18 +- .../add_http_response_header_rule.go | 18 +- .../{v49 => v65}/loadbalancer/allow_rule.go | 18 +- .../oci-go-sdk/v65/loadbalancer/backend.go | 74 + .../v65/loadbalancer/backend_details.go | 69 + .../v65/loadbalancer/backend_health.go | 100 + .../v65/loadbalancer/backend_set.go | 64 + .../v65/loadbalancer/backend_set_details.go | 57 + .../v65/loadbalancer/backend_set_health.go | 120 + .../{v49 => v65}/loadbalancer/certificate.go | 18 +- .../loadbalancer/certificate_details.go | 18 +- ...hange_load_balancer_compartment_details.go | 41 + ...d_balancer_compartment_request_response.go | 106 + .../v65/loadbalancer/cidr_blocks.go | 51 + .../v65/loadbalancer/cidr_blocks_details.go | 51 + .../loadbalancer/connection_configuration.go | 96 + .../control_access_using_http_methods_rule.go | 18 +- .../loadbalancer/create_backend_details.go | 71 + .../create_backend_request_response.go | 110 + .../create_backend_set_details.go | 64 + .../create_backend_set_request_response.go | 106 + .../create_certificate_details.go | 18 +- .../create_certificate_request_response.go | 42 +- .../create_cidr_blocks_details.go | 51 + .../create_cidr_blocks_request_response.go | 106 + .../loadbalancer/create_hostname_details.go | 48 + .../create_hostname_request_response.go | 33 +- .../loadbalancer/create_listener_details.go | 80 + .../create_listener_request_response.go | 106 + .../create_load_balancer_details.go | 48 +- .../create_load_balancer_request_response.go | 25 +- .../create_path_route_set_details.go | 46 + .../create_path_route_set_request_response.go | 33 +- .../create_routing_policy_details.go | 90 + .../create_routing_policy_request_response.go | 33 +- .../loadbalancer/create_rule_set_details.go | 18 +- .../create_rule_set_request_response.go | 106 + ...ate_s_s_l_cipher_suite_request_response.go | 106 + .../create_ssl_cipher_suite_details.go | 18 +- .../delete_backend_request_response.go | 104 + .../delete_backend_set_request_response.go | 100 + .../delete_certificate_request_response.go | 101 + .../delete_cidr_blocks_request_response.go | 100 + .../delete_hostname_request_response.go | 100 + .../delete_listener_request_response.go | 100 + .../delete_load_balancer_request_response.go | 96 + .../delete_path_route_set_request_response.go | 100 + .../delete_routing_policy_request_response.go | 100 + .../delete_rule_set_request_response.go | 100 + ...ete_s_s_l_cipher_suite_request_response.go | 100 + .../extend_http_request_header_value_rule.go | 18 +- .../extend_http_response_header_value_rule.go | 18 +- .../loadbalancer/forward_to_backend_set.go | 56 + .../get_backend_health_request_response.go | 110 + .../get_backend_request_response.go | 110 + ...get_backend_set_health_request_response.go | 106 + .../get_backend_set_request_response.go | 106 + .../get_cidr_blocks_request_response.go | 106 + .../get_health_checker_request_response.go | 106 + .../get_hostname_request_response.go | 106 + ...t_load_balancer_health_request_response.go | 102 + .../get_load_balancer_request_response.go | 102 + .../get_path_route_set_request_response.go | 106 + .../get_routing_policy_request_response.go | 106 + .../get_rule_set_request_response.go | 106 + ...get_s_s_l_cipher_suite_request_response.go | 106 + .../get_work_request_request_response.go | 87 + .../v65/loadbalancer/health_check_result.go | 121 + .../v65/loadbalancer/health_checker.go | 80 + .../loadbalancer/health_checker_details.go | 78 + .../oci-go-sdk/v65/loadbalancer/hostname.go | 48 + .../v65/loadbalancer/hostname_details.go | 46 + .../loadbalancer/http_header_rule.go | 18 +- .../oci-go-sdk/v65/loadbalancer/ip_address.go | 48 + ...ssion_persistence_configuration_details.go | 18 +- .../list_backend_sets_request_response.go | 102 + .../list_backends_request_response.go | 106 + .../list_certificates_request_response.go | 103 + .../list_cidr_blocks_request_response.go | 103 + .../list_hostnames_request_response.go | 103 + .../list_listener_rules_request_response.go | 105 + ..._load_balancer_healths_request_response.go | 30 +- .../list_load_balancers_request_response.go | 214 + .../list_path_route_sets_request_response.go | 103 + .../list_policies_request_response.go | 102 + .../list_protocols_request_response.go | 30 +- .../list_routing_policies_request_response.go | 117 + .../list_rule_sets_request_response.go | 102 + ...st_s_s_l_cipher_suites_request_response.go | 102 + .../list_shapes_request_response.go | 102 + .../list_work_requests_request_response.go | 102 + .../oci-go-sdk/v65/loadbalancer/listener.go | 78 + .../v65/loadbalancer/listener_details.go | 72 + .../loadbalancer/listener_rule_summary.go | 18 +- .../loadbalancer/load_balancer.go | 50 +- .../v65/loadbalancer/load_balancer_health.go | 124 + .../load_balancer_health_summary.go | 106 + .../v65/loadbalancer/load_balancer_policy.go | 43 + .../loadbalancer/load_balancer_protocol.go | 41 + .../v65/loadbalancer/load_balancer_shape.go | 44 + .../loadbalancer/loadbalancer_client.go | 158 +- .../v65/loadbalancer/path_match_condition.go | 120 + .../v65/loadbalancer/path_match_type.go | 101 + .../oci-go-sdk/v65/loadbalancer/path_route.go | 52 + .../v65/loadbalancer/path_route_set.go | 46 + .../loadbalancer/path_route_set_details.go | 40 + .../loadbalancer/real_ip_address_condition.go | 18 +- .../loadbalancer/redirect_rule.go | 18 +- .../{v49 => v65}/loadbalancer/redirect_uri.go | 18 +- .../remove_http_request_header_rule.go | 18 +- .../remove_http_response_header_rule.go | 18 +- .../v65/loadbalancer/reserved_ip.go | 38 + .../v65/loadbalancer/routing_policy.go | 89 + .../loadbalancer/routing_policy_details.go | 41 + .../{v49 => v65}/loadbalancer/routing_rule.go | 18 +- .../oci-go-sdk/v65/loadbalancer/rule.go | 188 + .../v65/loadbalancer/rule_condition.go | 148 + .../{v49 => v65}/loadbalancer/rule_set.go | 18 +- .../v65/loadbalancer/rule_set_details.go | 68 + ...ssion_persistence_configuration_details.go | 18 +- .../v65/loadbalancer/shape_details.go | 49 + .../source_ip_address_condition.go | 115 + .../loadbalancer/source_vcn_id_condition.go | 18 +- .../source_vcn_ip_address_condition.go | 18 +- .../loadbalancer/ssl_cipher_suite.go | 18 +- .../loadbalancer/ssl_cipher_suite_details.go | 18 +- .../loadbalancer/ssl_configuration.go | 44 +- .../loadbalancer/ssl_configuration_details.go | 44 +- .../loadbalancer/update_backend_details.go | 61 + .../update_backend_request_response.go | 114 + .../update_backend_set_details.go | 58 + .../update_backend_set_request_response.go | 110 + .../update_cidr_blocks_details.go | 42 + .../update_cidr_blocks_request_response.go | 110 + .../update_health_checker_details.go | 78 + .../update_health_checker_request_response.go | 110 + .../loadbalancer/update_hostname_details.go | 44 + .../update_hostname_request_response.go | 111 + .../loadbalancer/update_listener_details.go | 72 + .../update_listener_request_response.go | 110 + .../update_load_balancer_details.go | 18 +- .../update_load_balancer_request_response.go | 42 +- .../update_load_balancer_shape_details.go | 52 + ...te_load_balancer_shape_request_response.go | 106 + .../update_network_security_groups_details.go | 49 + ...etwork_security_groups_request_response.go | 106 + .../update_path_route_set_details.go | 40 + .../update_path_route_set_request_response.go | 33 +- .../update_routing_policy_details.go | 84 + .../update_routing_policy_request_response.go | 33 +- .../loadbalancer/update_rule_set_details.go | 68 + .../update_rule_set_request_response.go | 110 + ...ate_s_s_l_cipher_suite_request_response.go | 110 + .../update_ssl_cipher_suite_details.go | 18 +- .../v65/loadbalancer/work_request.go | 129 + .../v65/loadbalancer/work_request_error.go | 86 + .../v65/monitoring/aggregated_datapoint.go | 46 + .../oracle/oci-go-sdk/v65/monitoring/alarm.go | 324 ++ .../alarm_dimension_states_collection.go | 52 + .../alarm_dimension_states_entry.go | 94 + .../monitoring/alarm_history_collection.go | 48 + .../monitoring/alarm_history_entry.go | 18 +- .../v65/monitoring/alarm_status_summary.go | 173 + .../{v49 => v65}/monitoring/alarm_summary.go | 51 +- .../change_alarm_compartment_details.go | 41 + ...ange_alarm_compartment_request_response.go | 21 +- .../monitoring/create_alarm_details.go | 53 +- .../create_alarm_request_response.go | 21 +- .../oci-go-sdk/v65/monitoring/datapoint.go | 50 + .../delete_alarm_request_response.go | 21 +- .../v65/monitoring/failed_metric_record.go | 44 + .../get_alarm_history_request_response.go | 159 + .../monitoring/get_alarm_request_response.go | 21 +- .../list_alarms_request_response.go | 219 + .../list_alarms_status_request_response.go | 213 + .../v65/monitoring/list_metrics_details.go | 168 + .../list_metrics_request_response.go | 21 +- .../{v49 => v65}/monitoring/metric.go | 18 +- .../{v49 => v65}/monitoring/metric_data.go | 20 +- .../monitoring/metric_data_details.go | 22 +- .../monitoring/monitoring_client.go | 101 +- .../monitoring/post_metric_data_details.go | 95 + .../post_metric_data_request_response.go | 24 +- .../post_metric_data_response_details.go | 45 + ...move_alarm_suppression_request_response.go | 21 +- .../retrieve_dimension_states_details.go | 51 + ...rieve_dimension_states_request_response.go | 104 + .../summarize_metrics_data_details.go | 18 +- ...summarize_metrics_data_request_response.go | 21 +- .../{v49 => v65}/monitoring/suppression.go | 18 +- .../monitoring/update_alarm_details.go | 53 +- .../update_alarm_request_response.go | 21 +- .../v65/networkloadbalancer/action_type.go | 68 + .../attach_nlb_to_pod_details.go | 55 + .../attach_nlb_to_pod_request_response.go | 104 + .../v65/networkloadbalancer/backend.go | 82 + .../networkloadbalancer/backend_collection.go | 39 + .../networkloadbalancer/backend_details.go | 81 + .../v65/networkloadbalancer/backend_health.go | 101 + .../v65/networkloadbalancer/backend_set.go | 68 + .../backend_set_collection.go | 39 + .../backend_set_details.go | 61 + .../networkloadbalancer/backend_set_health.go | 119 + .../backend_set_summary.go | 68 + .../networkloadbalancer/backend_summary.go | 82 + ...twork_load_balancer_compartment_details.go | 40 + ...d_balancer_compartment_request_response.go | 21 +- .../create_backend_details.go | 82 + .../create_backend_request_response.go | 108 + .../create_backend_set_details.go | 68 + .../create_backend_set_request_response.go | 104 + .../create_listener_details.go | 73 + .../create_listener_request_response.go | 107 + .../create_network_load_balancer_details.go | 29 +- ..._network_load_balancer_request_response.go | 21 +- .../delete_backend_request_response.go | 105 + .../delete_backend_set_request_response.go | 98 + ..._service_infra_dp_host_request_response.go | 103 + .../delete_listener_request_response.go | 101 + ..._network_load_balancer_request_response.go | 21 +- ...b_from_destination_pod_request_response.go | 101 + ...ch_nlb_from_source_pod_request_response.go | 101 + .../v65/networkloadbalancer/dp_host.go | 72 + .../get_backend_health_request_response.go | 98 + .../get_backend_request_response.go | 107 + ...get_backend_set_health_request_response.go | 94 + .../get_backend_set_request_response.go | 100 + ..._service_infra_dp_host_request_response.go | 99 + .../get_health_checker_request_response.go | 107 + .../get_listener_request_response.go | 21 +- .../get_live_migration_request_response.go | 95 + ...k_load_balancer_health_request_response.go | 21 +- ..._network_load_balancer_request_response.go | 21 +- .../get_work_request_request_response.go | 90 + .../hcs_infra_ip_version.go | 56 + .../health_check_protocols.go | 64 + .../health_check_result.go | 104 + .../v65/networkloadbalancer/health_checker.go | 82 + .../health_checker_details.go | 82 + .../v65/networkloadbalancer/ip_address.go | 53 + .../v65/networkloadbalancer/ip_version.go | 56 + .../networkloadbalancer/lifecycle_state.go | 72 + .../list_backend_sets_request_response.go | 204 + .../list_backends_request_response.go | 208 + .../list_listeners_request_response.go | 204 + .../list_live_migrations_request_response.go | 198 + ..._load_balancer_healths_request_response.go | 198 + ...oad_balancers_policies_request_response.go | 195 + ...ad_balancers_protocols_request_response.go | 195 + ...network_load_balancers_request_response.go | 265 + ...st_work_request_errors_request_response.go | 104 + ...list_work_request_logs_request_response.go | 104 + .../list_work_requests_request_response.go | 101 + .../v65/networkloadbalancer/listener.go | 73 + .../listener_collection.go | 39 + .../networkloadbalancer/listener_details.go | 73 + .../networkloadbalancer/listener_protocols.go | 64 + .../networkloadbalancer/listener_summary.go | 73 + .../v65/networkloadbalancer/live_migration.go | 207 + .../live_migration_collection.go | 39 + .../live_migration_details.go | 55 + .../live_migration_request_response.go | 104 + .../live_migration_summary.go | 207 + .../networkloadbalancer/metadata_options.go | 64 + .../network_load_balancer.go | 24 +- .../network_load_balancer_collection.go | 39 + .../network_load_balancer_health.go | 123 + ...network_load_balancer_health_collection.go | 39 + .../network_load_balancer_health_summary.go | 105 + .../network_load_balancer_summary.go | 24 +- ...etwork_load_balancers_policy_collection.go | 39 + .../network_load_balancers_policy_summary.go | 60 + ...work_load_balancers_protocol_collection.go | 40 + ...network_load_balancers_protocol_summary.go | 64 + .../network_load_balancing_policy.go | 60 + .../networkloadbalancer_client.go | 2324 ++++++++ ...balancer_healthcheckserviceinfra_client.go | 145 + ...er_healthcheckserviceinfradphost_client.go | 312 ++ .../v65/networkloadbalancer/nlb_ip_version.go | 56 + .../networkloadbalancer/operation_status.go | 72 + .../v65/networkloadbalancer/operation_type.go | 120 + .../post_heart_beat_details.go | 48 + .../post_heart_beat_request_response.go | 101 + ...lth_check_service_infra_dp_host_details.go | 60 + ..._service_infra_dp_host_request_response.go | 101 + .../v65/networkloadbalancer/reserved_ip.go | 44 + .../v65/networkloadbalancer/sort_order.go | 56 + .../update_backend_details.go | 59 + .../update_backend_request_response.go | 115 + .../update_backend_set_details.go | 60 + .../update_backend_set_request_response.go | 108 + ...lth_check_service_infra_dp_host_details.go | 56 + ..._service_infra_dp_host_request_response.go | 107 + .../update_health_checker_details.go | 80 + .../update_health_checker_request_response.go | 108 + .../update_listener_details.go | 69 + .../update_listener_request_response.go | 108 + .../update_network_load_balancer_details.go | 62 + ..._network_load_balancer_request_response.go | 21 +- .../update_network_security_groups_details.go | 48 + ...etwork_security_groups_request_response.go | 104 + .../v65/networkloadbalancer/work_request.go | 74 + .../work_request_collection.go | 39 + .../networkloadbalancer/work_request_error.go | 46 + .../work_request_error_collection.go | 39 + .../work_request_log_entry.go | 42 + .../work_request_log_entry_collection.go | 39 + .../work_request_resource.go | 54 + .../work_request_summary.go | 74 + vendor/github.com/sony/gobreaker/.travis.yml | 15 - vendor/github.com/sony/gobreaker/README.md | 8 +- vendor/github.com/sony/gobreaker/gobreaker.go | 6 +- vendor/modules.txt | 29 +- 3468 files changed, 188663 insertions(+), 101909 deletions(-) create mode 100644 vendor/github.com/gofrs/flock/.gitignore create mode 100644 vendor/github.com/gofrs/flock/.travis.yml create mode 100644 vendor/github.com/gofrs/flock/LICENSE create mode 100644 vendor/github.com/gofrs/flock/README.md create mode 100644 vendor/github.com/gofrs/flock/appveyor.yml create mode 100644 vendor/github.com/gofrs/flock/flock.go create mode 100644 vendor/github.com/gofrs/flock/flock_aix.go create mode 100644 vendor/github.com/gofrs/flock/flock_unix.go create mode 100644 vendor/github.com/gofrs/flock/flock_winapi.go create mode 100644 vendor/github.com/gofrs/flock/flock_windows.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/auth/configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resouce_principal_key_provider.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/circuit_breaker.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/errors.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/regions.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/common/regions.json delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/add_on_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/admission_controller_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_create_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoint_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoints.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_lifecycle_state.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/containerengine_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_endpoint_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_kubeconfig_content_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_image_policy_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_node_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_shape_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_node_pool_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_work_request_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/image_policy_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_value.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/kubernetes_network_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_clusters_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_node_pools_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_errors_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_logs_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_requests_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_error.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_node_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_placement_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_shape_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/service_lb_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/sort_order.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_options_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_image_policy_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_node_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_shape_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_error.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_log_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_operation_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statement_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rule_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_security_rule_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/added_additional_route_rules.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/added_network_security_group_security_rules.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/additional_route_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_ike_ip_sec_parameters.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_one_parameters.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_two_parameters.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_agreements.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_emulated_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_i_scsi_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_paravirtualized_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_determined_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/backfill.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/base64_ssl_cert_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/bgp_session_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boolean_image_capability_schema_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_backup.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_kms_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/capacity_reservation_instance_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter_rule_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cfm_metadata.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_ip_sec_connection_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_active_user.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_placement_configuration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_instance_shape_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/compute_instance_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/console_history.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_answer.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_question.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_detail.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_instance_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_base.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_placement_configuration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_tunnel_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_encryption_domain_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_properties.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_public_prefix_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_group.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_location.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_port_speed_shape.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dav.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_shape_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_shape_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/default_drg_route_tables.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_one_parameters.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_two_parameters.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/delete_scan_proxy_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_public_prefix_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vtap_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/device.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_dns_option.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_option.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_search_domain_option.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dns_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/dpd_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_id_drg_route_distribution_match_criteria.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_create_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_update_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_type_drg_route_distribution_match_criteria.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_region.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_tenancy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_redundancy_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_match_criteria.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_statement.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_table.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_upgrade_state.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/drg_validation_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/egress_security_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/emulated_volume_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_domain_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_in_transit_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_next_hop.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/enum_integer_image_capability_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/enum_string_image_capability_schema_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/exclusion_filter_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_tuple_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_uri_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/floating_ip_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_destination.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_object_storage_destination.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/gateway_route_data.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_all_drg_attachments_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_cluster_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_networking_topology_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_topology_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_topology_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/i_scsi_volume_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/icmp_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_capability_schema_descriptor.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_memory_constraints.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_ocpu_constraints.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_tuple_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_uri_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ingress_security_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_action_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_features.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_plugin_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_availability_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_vm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_vnic_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_availability_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_boot_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_image_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_vm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_iscsi_attach_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_shape_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_paravirtualized_attach_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_console_connection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_credentials.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance_load_balancer_backend.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_load_balancer_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_secondary_vnic_subnet.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_shape_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_shape_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_boot_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_image_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/instance_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internal_dns_record.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internal_generic_gateway.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internal_public_ip.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_create_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_update_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/internet_gateway.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_migration_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_error_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_shared_secret.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_create_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ipv6.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_availability_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_shape_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/launch_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ldap_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/letter_of_authority.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listing_resource_versions_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listings_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_subscriptions_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_block_volume_replicas_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_backups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_replicas_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_ranges_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drg_attachments_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_capture_filters_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpn_users_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpns_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_network_instances_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_networks_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instance_shapes_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instances_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservations_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_clusters_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schema_versions_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schemas_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_image_capability_schemas_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_console_histories_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connects_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instances_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_hosts_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_dhcp_options_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_attachments_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distribution_statements_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distributions_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_rules_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_tables_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_by_states_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_endpoint_services_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_config_attachments_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_configs_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_images_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_configurations_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_devices_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pool_instances_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pools_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_instances_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_public_ips_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnics_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_internet_gateways_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_nat_gateways_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_security_rules_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_vnics_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_access_gateways_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoint_associations_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoints_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ip_pools_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ips_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ips_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_route_tables_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_scan_proxies_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_security_lists_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_service_gateways_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_shapes_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_subnets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drg_attachments_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcns_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_public_prefixes_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuits_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_vlans_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_backups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_replicas_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_volumes_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/list_vtaps_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_connection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_gateway.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_token_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_encryption_cipher.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_properties.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_state.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report_measurements.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/migration_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/multipath_device.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/nat_gateway.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group_vnic.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/peer_region_for_remote_peering.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/phase_one_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/phase_two_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/platform_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/port_range.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/preemptible_instance_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/preemption_action.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_association.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_protocol_port.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_target.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/radius_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/radius_server_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_create_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip_cidr_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connections_source_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/route_destination_route_target_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/route_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/route_table.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/scan_listener_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/security_list.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/security_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/service.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/service_gateway.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_request_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_response_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_max_vnic_attachment_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_measured_boot_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_memory_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_networking_bandwidth_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_numa_nodes_per_socket_platform_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_ocpu_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_platform_config_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_secure_boot_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/shape_trusted_platform_module_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/smart_nic_vnic_attachment_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/ssl_cert_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/subnet_topology.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tcp_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_preemption_action.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_entity_relationship.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_relationship_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology_contains_entity_relationship.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology_entity_relationship.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_entity_relationship.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_relationship_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_cpe_device_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_one_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_two_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_route_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_security_association_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/udp_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_instance_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statement_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rule_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_availability_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_placement_configuration_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_shape_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_shared_secret_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_encryption_domain_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_launch_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_properties.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_rule_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/updated_network_security_group_security_rules.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/validate_drg_routes_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/validation_status_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vcn.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_dns_resolver_association.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_create_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_update_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_bandwidth_shape.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_create_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_update_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_ip_mtu.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_public_prefix.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vlan.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker_ip_config.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_attachment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy_assignment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_schedule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_backup.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volumes_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_kms_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_block_volume_replica_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_backup_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/vtap.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/core/wallet_info.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/client_options.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_kerberos_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_bind_account_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_idmap_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/endpoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/filestorage_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos_keytab_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_idmap.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_export_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_exports_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_file_systems_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_mount_targets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_outbound_connectors_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replication_targets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replications_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_snapshots_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_test_results.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reconciliation_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_fail_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_status_update_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_status_update_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/tagslug.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_result.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_kerberos_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_ldap_idmap_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/account.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/allowed_domain_license_type_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/api_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/auth_token.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/authentication_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/availability_domain.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/base_tag_definition_validator.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_operation_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_detail.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tas_domain_license_type_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/compartment.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_api_key_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth2_client_credential_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/default_tag_definition_validator.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/domain.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication_states.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/dynamic_group.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/enum_tag_definition_validator.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/fault_domain.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/fully_qualified_scope.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/get_compartment_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/get_work_request_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/group.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_error_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_log_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider_group_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/idp_group_mapping.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_allowed_domain_license_types_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_action_resource_types_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_compartments_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_db_credentials_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_domains_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_dynamic_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_errors_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_logs_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_providers_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_mfa_totp_devices_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_network_sources_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_policies_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_users_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/list_work_requests_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_token.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/network_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_virtual_source_list.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/password_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/region.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/region_subscription.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/replicated_region_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/scim_client_credentials.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_definition_template.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/swift_password.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_error_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_log_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password_information.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth2_client_credential_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_state_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/user.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/user_capabilities.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/user_group_membership.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_error.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_log_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/action.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_health.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_health.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/connection_configuration.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_s_s_l_cipher_suite_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_certificate_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_cidr_blocks_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_hostname_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_listener_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_load_balancer_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_path_route_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_routing_policy_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_rule_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_s_s_l_cipher_suite_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/forward_to_backend_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_health_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_health_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_cidr_blocks_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_health_checker_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_hostname_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_health_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_path_route_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_routing_policy_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_rule_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_s_s_l_cipher_suite_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_work_request_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_check_result.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ip_address.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backend_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backends_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_certificates_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_cidr_blocks_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_hostnames_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_listener_rules_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancers_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_path_route_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_policies_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_routing_policies_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_rule_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_s_s_l_cipher_suites_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_shapes_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_work_requests_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_protocol.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_shape.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_condition.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/reserved_ip.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_condition.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/shape_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_ip_address_condition.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_s_s_l_cipher_suite_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request_error.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/aggregated_datapoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_status_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/datapoint.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/failed_metric_record.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_history_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_status_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_response_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/action_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_health.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_health.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_listener_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_health_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_health_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_health_checker_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_work_request_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/hcs_infra_ip_version.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_protocols.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_result.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_address.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_version.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/lifecycle_state.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backend_sets_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backends_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_listeners_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancer_healths_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_policies_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_protocols_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_errors_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_logs_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_requests_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_protocols.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_summary.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancing_policy.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/networkloadbalancer_client.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/nlb_ip_version.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_status.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_type.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/reserved_ip.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/sort_order.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_details.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_request_response.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry_collection.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_resource.go delete mode 100644 vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/LICENSE.txt (100%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/NOTICE.txt (100%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/certificate_retriever.go (98%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/auth/configuration.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/dispatcher_modifier.go (93%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/federation_client.go (97%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/instance_principal_delegation_token_provider.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/instance_principal_key_provider.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/jwt.go (94%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resouce_principal_key_provider.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/resource_principal_token_path_provider.go (98%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/resource_principals_v1.go (98%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/service_principal.go (98%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/auth/utils.go (96%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/circuit_breaker.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/client.go (88%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/common.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/errors.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/eventual_consistency.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/helpers.go (99%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/http.go (99%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/http_signer.go (99%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/log.go (88%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/retry.go (94%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/common/version.go (95%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/admission_controller_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_create_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoint_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoints.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_lifecycle_state.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/cluster_metadata.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/cluster_migrate_to_native_vcn_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_pod_network_option_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_endpoint_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_kubeconfig_content_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/create_cluster_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_image_policy_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/create_kubeconfig_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_node_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/create_node_pool_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_shape_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/delete_cluster_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/delete_work_request_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_cluster_pod_network_option_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_node_pool_pod_network_option_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/get_cluster_options_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/get_cluster_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/get_node_pool_options_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/get_node_pool_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_work_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image_policy_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/initial_virtual_node_label.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_value.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_network_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_clusters_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_node_pools_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_pod_shapes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_node_pools_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_nodes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_errors_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_logs_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_requests_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_error.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_node_pool_settings.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_lifecycle_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_node_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/node_pool_options.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_placement_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_pod_network_option_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_shape_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/node_source_option.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_type.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/node_source_via_image_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/node_source_via_image_option.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_cluster_pod_network_option_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_node_pool_pod_network_option_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/persistent_volume_config_details.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/placement_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/service_lb_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_memory_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_network_bandwidth_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_ocpu_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/sort_order.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/taint.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/update_cluster_details.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/update_cluster_endpoint_config_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_options_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/containerengine/update_cluster_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_image_policy_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_node_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_shape_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_lifecycle_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_lifecycle_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_error.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_log_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_operation_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/accept_local_peering_token_request_response.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/accept_shielded_integrity_policy_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_additional_route_rules_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statement_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_drg_route_distribution_statements_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_drg_route_rules_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_image_shape_compatibility_entry_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_subnet_cidr_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_ipv6_vcn_cidr_request_response.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_network_security_group_security_rules_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_public_ip_pool_capacity_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_security_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_subnet_ipv6_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/add_vcn_cidr_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_ipv6_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/added_additional_route_rules.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/added_network_security_group_security_rules.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/additional_route_rule.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/advertise_byoip_range_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_ike_ip_sec_parameters.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_one_parameters.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_two_parameters.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_agreements.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_boot_volume_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_dav_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_emulated_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_i_scsi_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_instance_pool_instance_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_load_balancer_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_paravirtualized_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_determined_volume_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_service_id_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_vnic_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_vnic_to_destination_smart_nic_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_vnic_worker_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/attach_volume_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/autotune_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/backfill.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/backfill_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/base64_ssl_cert_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/bgp_session_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boolean_image_capability_schema_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_kms_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_replica_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/bulk_add_virtual_circuit_public_prefixes_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/bulk_migration_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_lock_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_unlock_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_vcn_ipv6_allocation_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/byoipv6_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_instance_shape_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_shape_availability.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_reservation_instance_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/capture_console_history_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/capture_filter.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cfm_metadata.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_boot_volume_backup_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_boot_volume_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_byoip_range_compartment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_c3_drg_compartment_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_capture_filter_compartment_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_client_vpn_compartment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_cluster_network_compartment_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_compute_capacity_reservation_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_compute_cluster_compartment_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_compute_image_capability_schema_compartment_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_cpe_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_cross_connect_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_cross_connect_group_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_dedicated_vm_host_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_dhcp_options_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_drg_attachment_compartment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_drg_compartment_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_i_p_sec_connection_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_image_compartment_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_instance_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_instance_configuration_compartment_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_instance_pool_compartment_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_internal_drg_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_internal_generic_gateway_compartment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_internet_gateway_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_ip_sec_connection_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_local_peering_gateway_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_nat_gateway_compartment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_network_security_group_compartment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_private_endpoint_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_public_ip_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_public_ip_pool_compartment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_remote_peering_connection_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_route_table_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_security_list_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_service_gateway_compartment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_subnet_compartment_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_vcn_compartment_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_vcn_drg_compartment_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_virtual_circuit_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_vlan_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_vnic_attachments_compartment_request_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_volume_backup_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_volume_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_volume_group_backup_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_volume_group_compartment_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/change_vtap_compartment_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_active_user.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_placement_configuration_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compartment_internal.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/complete_promotion_request_response.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/complete_unpromotion_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_report.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_instance_shape_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/compute_global_image_capability_schema_version.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/compute_image_capability_schema.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/compute_image_capability_schema_summary.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/connect_local_peering_connections_request_response.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/connect_local_peering_gateways_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/connect_remote_peering_connections_request_response.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/console_history.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/copy_boot_volume_backup_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/copy_volume_backup_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/copy_volume_group_backup_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/core_blockstorage_client.go (90%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/core_compute_client.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/core_computemanagement_client.go (90%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/core_vcnipinternal_client.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/core_virtualnetwork_client.go (88%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/cpe.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_answer.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_question.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_detail.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_app_catalog_subscription_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_boot_volume_backup_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_boot_volume_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_byoip_range_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_c3_drg_attachment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_c3_drg_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_report_shape_availability_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_capture_filter_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_client_vpn_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_client_vpn_user_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_instance_pool_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_cluster_network_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_compute_capacity_reservation_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_compute_capacity_reservation_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_compute_image_capability_schema_details.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_compute_image_capability_schema_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_cpe_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_cpe_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_cross_connect_details.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_cross_connect_group_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_cross_connect_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_dav_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_dedicated_vm_host_details.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_dedicated_vm_host_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_dhcp_options_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_drg_attachment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_drg_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_drg_route_distribution_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_drg_route_table_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_endpoint_service_details.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_endpoint_service_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_flow_log_config_attachment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_flow_log_config_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_i_p_sec_connection_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_image_request_response.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_base.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_instance_configuration_details.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_instance_configuration_from_instance_details.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_instance_configuration_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_instance_console_connection_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_instance_pool_details.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_placement_configuration_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_instance_pool_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_screenshot_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_dns_record_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_drg_attachment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_drg_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_generic_gateway_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_public_ip_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_vnic_attachment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internal_vnic_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_internet_gateway_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_tunnel_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_ip_sec_tunnel_bgp_session_details.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_encryption_domain_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_ipv6_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_local_peering_connection_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_local_peering_gateway_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_local_peering_gateway_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_properties.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_nat_gateway_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_network_security_group_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_private_access_gateway_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_private_endpoint_details.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_private_endpoint_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_private_ip_details.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_private_ip_next_hop_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_private_ip_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_public_ip_pool_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_public_ip_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_remote_peering_connection_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_route_table_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_scan_proxy_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_security_list_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_service_gateway_details.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_service_gateway_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_subnet_details.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_subnet_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vcn_drg_attachment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vcn_drg_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vcn_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_public_prefix_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_virtual_circuit_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vlan_details.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vlan_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vnic_details.go (89%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vnic_worker_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_backup_policy_assignment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_backup_policy_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_backup_policy_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_backup_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_group_backup_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_group_details.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_group_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_volume_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/create_vtap_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_location.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/cross_connect_mapping.go (87%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_port_speed_shape.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/data_volume_backup_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dav.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_shape_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_shape_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/default_drg_route_tables.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_one_parameters.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_two_parameters.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_app_catalog_subscription_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_boot_volume_backup_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_boot_volume_kms_key_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_boot_volume_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_byoip_range_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_c3_drg_attachment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_c3_drg_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_capture_filter_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_client_vpn_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_client_vpn_user_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_compute_capacity_reservation_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_compute_cluster_request_response.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_compute_image_capability_schema_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_console_history_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_cpe_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_cross_connect_group_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_cross_connect_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_dav_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_dedicated_vm_host_request_response.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_dhcp_options_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_drg_attachment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_drg_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_drg_route_distribution_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_drg_route_table_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_endpoint_service_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_flow_log_config_attachment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_flow_log_config_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_i_p_sec_connection_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_image_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_instance_configuration_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_instance_console_connection_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_dns_record_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_drg_attachment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_drg_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_generic_gateway_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_public_ip_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_vnic_attachment_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internal_vnic_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_internet_gateway_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_ipv6_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_local_peering_connection_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_local_peering_gateway_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_nat_gateway_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_network_security_group_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_private_access_gateway_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_private_endpoint_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_private_ip_next_hop_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_private_ip_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_public_ip_pool_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_public_ip_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_remote_peering_connection_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_reverse_connection_nat_ip_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_route_table_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/delete_scan_proxy_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_security_list_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_service_gateway_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_subnet_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_vcn_drg_attachment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_vcn_drg_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_vcn_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_public_prefix_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_virtual_circuit_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_vlan_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_vnic_worker_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_backup_policy_assignment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_backup_policy_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_backup_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_group_backup_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_group_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_kms_key_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/delete_volume_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vtap_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_boot_volume_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_dav_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_instance_pool_instance_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_load_balancer_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_service_id_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_vnic_from_destination_smart_nic_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_vnic_from_source_smart_nic_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_vnic_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_vnic_worker_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/detach_volume_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/detached_volume_autotune_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/device.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_dns_option.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_option.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_search_domain_option.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/disable_reverse_connections_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/disable_vnic_worker_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dns_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/dpd_config.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/drain_vnic_worker_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_id_drg_route_distribution_match_criteria.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_match_all_drg_route_distribution_match_criteria.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_update_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_type_drg_route_distribution_match_criteria.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_region.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_tenancy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/drg_migration_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_redundancy_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_match_criteria.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_statement.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_table.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_upgrade_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/drg_validation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/egress_security_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/emulated_volume_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/enable_reverse_connections_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/enable_vnic_worker_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_domain_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_in_transit_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_next_hop.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/enum_integer_image_capability_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/enum_string_image_capability_schema_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/export_image_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_tuple_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_uri_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/floating_ip_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_destination.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_object_storage_destination.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/gateway_route_data.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/generate_local_peering_token_request_response.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_all_drg_attachments_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_allowed_ike_i_p_sec_parameters_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_app_catalog_listing_agreements_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_app_catalog_listing_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_app_catalog_listing_resource_version_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_block_volume_replica_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_boot_volume_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_boot_volume_backup_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_boot_volume_kms_key_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_boot_volume_replica_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_boot_volume_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_byoip_range_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_c3_drg_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_c3_drg_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_capture_filter_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_client_vpn_profile_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_client_vpn_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_client_vpn_status_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_client_vpn_user_profile_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_client_vpn_user_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cluster_network_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_compute_capacity_reservation_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_cluster_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_compute_global_image_capability_schema_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_compute_global_image_capability_schema_version_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_compute_image_capability_schema_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_console_history_content_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_console_history_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cpe_device_config_content_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cpe_device_shape_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cpe_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_create_reverse_connection_nat_ip_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cross_connect_group_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cross_connect_letter_of_authority_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cross_connect_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_cross_connect_status_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_dav_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_dedicated_vm_host_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_dhcp_options_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_attached_network_info_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_migration_count_region_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_migration_count_tenancy_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_redundancy_status_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_route_distribution_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_drg_route_table_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_endpoint_service_next_hop_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_endpoint_service_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_fast_connect_provider_service_key_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_fast_connect_provider_service_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_flow_log_config_attachment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_flow_log_config_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_device_config_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_device_status_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_migration_status_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_tunnel_error_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_tunnel_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_image_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_image_shape_compatibility_entry_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_instance_configuration_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_instance_console_connection_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_reboot_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_instance_pool_instance_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_instance_pool_load_balancer_attachment_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_instance_pool_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_instance_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_content_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_dns_record_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_drg_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_drg_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_generic_gateway_by_gateway_id_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_generic_gateway_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_public_ip_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_subnet_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_vnic_attachment_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internal_vnic_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_internet_gateway_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_ipsec_cpe_device_config_content_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_ipv6_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_local_peering_connection_request_response.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_local_peering_gateway_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_measured_boot_report_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_nat_gateway_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_network_security_group_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_networking_topology_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_private_access_gateway_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_private_endpoint_association_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_private_endpoint_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_private_ip_next_hop_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_private_ip_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_public_ip_by_ip_address_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_public_ip_by_private_ip_id_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_public_ip_pool_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_public_ip_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_remote_peering_connection_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_reverse_connection_nat_ip_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_route_table_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_scan_proxy_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_security_list_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_service_gateway_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_service_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_subnet_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_topology_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_tunnel_cpe_device_config_content_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_tunnel_cpe_device_config_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_upgrade_status_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vcn_dns_resolver_association_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vcn_drg_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vcn_drg_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vcn_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_topology_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_virtual_circuit_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vlan_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vnic_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vnic_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vnic_worker_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_attachment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_backup_policy_asset_assignment_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_backup_policy_assignment_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_backup_policy_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_backup_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_group_backup_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_group_replica_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_group_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_kms_key_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_volume_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_vtap_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/get_windows_instance_initial_credentials_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/i_scsi_volume_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/icmp_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_capability_schema_descriptor.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_memory_constraints.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_ocpu_constraints.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_tuple_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_uri_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_volume_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ingress_security_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_action_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/instance_agent_config.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_features.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_plugin_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_availability_config.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/instance_configuration.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_gpu_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_vm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_vnic_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_autotune_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_availability_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_replica_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/instance_configuration_create_vnic_details.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_detached_volume_autotune_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_boot_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_image_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_icelake_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_vm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_iscsi_attach_volume_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/instance_configuration_launch_instance_agent_config_details.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/instance_configuration_launch_instance_details.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_shape_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_paravirtualized_attach_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_performance_based_autotune_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_console_connection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_credentials.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_reboot.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance_load_balancer_backend.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_load_balancer_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_secondary_vnic_subnet.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_power_action_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_shape_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_shape_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_boot_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_image_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/instance_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_launch_instance_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_dns_record.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_table.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_generic_gateway.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_public_ip.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/internal_subnet.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/internal_vnic.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_update_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/internet_gateway.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_migration_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_error_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_shared_secret.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_update_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/launch_instance_agent_config_details.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_availability_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/launch_instance_configuration_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/launch_instance_details.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_platform_config.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/launch_instance_request_response.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_shape_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/launch_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ldap_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/letter_of_authority.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_additional_route_rules_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_allowed_peer_regions_for_remote_peering_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listing_resource_versions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listings_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_subscriptions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_block_volume_replicas_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_boot_volume_attachments_request_response.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_backups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_replicas_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_boot_volumes_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_byoip_allocated_ranges_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_ranges_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drg_attachments_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_c3_drgs_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_capture_filters_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpn_users_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpns_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_network_instances_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_networks_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instance_shapes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instances_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservations_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_clusters_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schema_versions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schemas_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_image_capability_schemas_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_console_histories_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_cpe_device_shapes_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_cpes_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_groups_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_cross_connect_locations_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_cross_connect_mappings_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connects_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_crossconnect_port_speed_shapes_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_davs_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_dedicated_vm_host_instance_shapes_request_response.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instances_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_dedicated_vm_host_shapes_request_response.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_hosts_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_dhcp_options_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_attachments_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distribution_statements_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distributions_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_rules_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_tables_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_urt_route_rules_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_by_states_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_drgs_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_endpoint_services_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_fast_connect_provider_services_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_config_attachments_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_configs_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_i_p_sec_connection_tunnel_routes_request_response.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_i_p_sec_connection_tunnels_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_i_p_sec_connections_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_image_shape_compatibility_entries_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_images_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_configurations_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_instance_console_connections_request_response.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_devices_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pool_instances_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pools_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_screenshots_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_instances_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_internal_dns_records_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_internal_drg_attachments_request_response.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_internal_drgs_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_internal_generic_gateways_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_public_ips_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_internal_vnic_attachments_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnics_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_internet_gateways_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_ipv6s_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_local_peering_connections_request_response.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_local_peering_gateways_request_response.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_nat_gateways_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_security_rules_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_vnics_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_groups_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_next_hops_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_access_gateways_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoint_associations_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoints_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_private_ips_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ip_pools_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ips_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_remote_peering_connections_request_response.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_reverse_connection_nat_ip_cidrs_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ips_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_route_tables_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_scan_proxies_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_security_lists_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_service_gateways_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_services_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_shapes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_subnets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drg_attachments_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_vcn_drgs_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcns_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_virtual_circuit_bandwidth_shapes_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_public_prefixes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuits_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_vlans_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_vnic_attachments_request_response.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_vnic_workers_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_volume_attachments_request_response.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/list_volume_backup_policies_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_backups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_replicas_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_groups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_volumes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/list_vtaps_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_connection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_gateway.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_token_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/loopback_drg_attachment_network_update_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_encryption_cipher.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_properties.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report_measurements.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/member_replica.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/migrate_drg_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/migrate_i_p_sec_connection_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/migration_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/modify_reverse_connections_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/modify_vcn_cidr_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/multipath_device.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/nat_gateway.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group_vnic.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/networking_topology.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/paravirtualized_volume_attachment.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/peer_region_for_remote_peering.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/percentage_of_cores_enabled_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/performance_based_autotune_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/phase_one_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/phase_two_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/platform_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/port_range.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/preemptible_instance_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/preemption_action.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/private_endpoint.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_association.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/private_ip.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_protocol_port.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_target.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/radius_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/radius_server_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/reboot_migrate_action_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_additional_route_rules_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_drg_peering_connection_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_drg_route_distribution_statements_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_drg_route_rules_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_export_drg_route_distribution_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_image_shape_compatibility_entry_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_import_drg_route_distribution_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_subnet_cidr_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_vcn_cidr_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_network_security_group_security_rules_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_public_ip_pool_capacity_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_subnet_ipv6_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/remove_vcn_cidr_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_ipv6_cidr_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/reset_action_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/reset_instance_pool_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_configuration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip_cidr_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connections_source_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/rollback_drg_migration_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/rollback_i_p_sec_connection_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/rollback_upgrade_drg_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/route_destination_route_target_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/route_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/route_table.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/scan_listener_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/security_list.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/security_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/service.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/service_gateway.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_request_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_response_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/set_drg_peering_connection_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_access_control_service_enabled_platform_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_alternative_object.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_input_output_memory_management_unit_enabled_platform_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_max_vnic_attachment_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_measured_boot_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_encryption_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_networking_bandwidth_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_numa_nodes_per_socket_platform_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_ocpu_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_platform_config_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_secure_boot_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_symmetric_multi_threading_enabled_platform_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_trusted_platform_module_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/shape_virtual_instructions_enabled_platform_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/smart_nic_vnic_attachment_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/soft_reset_action_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/softreset_instance_pool_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/softstop_instance_pool_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/ssl_cert_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/start_instance_pool_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/stop_instance_pool_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/subnet.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/subnet_topology.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tcp_options.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/terminate_cluster_network_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/terminate_instance_pool_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/terminate_instance_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_preemption_action.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_entity_relationship.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_relationship_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology_contains_entity_relationship.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology_entity_relationship.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_entity_relationship.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_relationship_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_cpe_device_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_one_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_two_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_route_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_security_association_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/udp_options.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/undrain_vnic_worker_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_boot_volume_backup_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_boot_volume_kms_key_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_boot_volume_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_byoip_range_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_c3_drg_attachment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_c3_drg_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_capture_filter_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_client_vpn_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_client_vpn_user_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_instance_pool_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_cluster_network_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_compute_capacity_reservation_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_compute_cluster_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_compute_image_capability_schema_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_compute_image_capability_schema_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_console_history_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_cpe_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_cross_connect_group_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_cross_connect_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_dav_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_dedicated_vm_host_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_dhcp_options_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_attachment_details.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_attachment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_route_distribution_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statement_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_route_distribution_statements_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_route_rules_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_drg_route_table_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_endpoint_service_details.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_endpoint_service_next_hop_request_response.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_endpoint_service_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_flow_log_config_attachment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_flow_log_config_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_i_p_sec_connection_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_i_p_sec_connection_tunnel_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_image_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_instance_agent_config_details.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_availability_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_instance_configuration_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_instance_console_connection_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_instance_pool_details.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_placement_configuration_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_instance_pool_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_instance_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_shape_config_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_boot_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_image_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_dns_record_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_drg_attachment_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_drg_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_generic_gateway_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_public_ip_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_vnic_details.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_vnic_metadata_request_response.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internal_vnic_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_internet_gateway_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_shared_secret_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_ip_sec_tunnel_bgp_session_details.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_encryption_domain_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_ipv6_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_launch_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_local_peering_connection_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_local_peering_gateway_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_properties.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_nat_gateway_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_network_security_group_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_network_security_group_security_rules_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_private_access_gateway_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_private_endpoint_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_private_endpoint_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_private_ip_next_hop_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_private_ip_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_public_ip_pool_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_public_ip_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_remote_peering_connection_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_route_table_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_scan_proxy_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_security_list_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_rule_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_service_gateway_details.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_service_gateway_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_smtp_port_action_unblock_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_subnet_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_subnet_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_tunnel_cpe_device_config_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vcn_drg_attachment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vcn_drg_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vcn_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_virtual_circuit_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vlan_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vlan_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vnic_details.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vnic_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vnic_shape_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_vnic_worker_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_attachment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_backup_policy_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_backup_policy_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_backup_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_group_backup_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_group_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_kms_key_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/update_volume_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/updated_network_security_group_security_rules.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/upgrade_drg_request_response.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_status.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/validate_byoip_range_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/validate_drg_routes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/validation_status_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_dns_resolver_association.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_update_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/vcn_topology.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_bandwidth_shape.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_create_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_update_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_ip_mtu.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_public_prefix.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vlan.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/vnic.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker_ip_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_attachment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy_assignment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_schedule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_backup.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_info.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_replica_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volumes_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_kms_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_block_volume_replica_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vtap.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/vtap_capture_filter_rule_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/core/wallet_info.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/core/withdraw_byoip_range_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/change_file_system_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/change_mount_target_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/change_outbound_connector_compartment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/change_replication_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/change_replication_target_compartment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/check_reconciliation_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_share_options.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_export_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_file_system_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_kerberos_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_idmap_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_mount_target_details.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_mount_target_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_outbound_connector_details.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_outbound_connector_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_replication_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_replication_target_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/create_snapshot_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/delete_export_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/delete_file_system_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/delete_mount_target_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/delete_outbound_connector_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/delete_replication_target_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_set_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/delete_snapshot_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/discard_kerberos_keytab_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/endpoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/estimate_replication_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/failover_mount_target_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_export_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_export_set_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_file_system_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_filesystem_snapshot_policy_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_mount_target_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_outbound_connector_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_replication_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_progress_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_replication_target_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_set_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_snapshot_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/get_tag_slug_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos_keytab_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/key_tab_secret_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/ldap_bind_account_summary.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_idmap.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_filesystem_snapshot_policies_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_share_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_shares_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/modify_rootdir_attributes_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/oci_service_logging_config.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_test_results.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_estimate.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_fail_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_status_update_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/replication_target_delete_request_response.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/replication_target_fail_request_response.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/replication_target_file_system_get_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_get_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_progress.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_status_update_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/reserve_target_num_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/restart_stuck_delta_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/source_triggered_delete_request_response.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/start_logging_mt_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_logging_mt_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_mount_target_rebalancing_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/tagslug.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/target_file_system_get_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/test_outbound_connector_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_export_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_export_set_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_file_system_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_kerberos_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_ldap_idmap_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_logging_mt_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_mount_target_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_outbound_connector_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_replication_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_replication_target_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/update_snapshot_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/filestorage/upload_kerberos_keytab_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_response_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/account.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/activate_domain_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/activate_mfa_totp_device_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_default_lock_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_namespace_lock_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/add_user_to_group_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/assemble_effective_tag_set_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/bulk_delete_resources_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/bulk_delete_tags_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/bulk_edit_tags_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/bulk_move_resources_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/cascade_delete_tag_namespace_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/change_domain_compartment_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/change_domain_license_type_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/change_tag_namespace_compartment_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_auth_token_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_compartment_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_compartment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_customer_secret_key_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_db_credential_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_domain_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_dynamic_group_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_group_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_identity_provider_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_idp_group_mapping_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_managed_compartment_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_managed_compartment_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_mfa_totp_device_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_network_source_details.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_network_source_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_o_auth_client_credential_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_or_reset_u_i_password_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_policy_details.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_policy_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_region_subscription_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_saml2_identity_provider_details.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_smtp_credential_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_swift_password_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_tag_default_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_tag_details.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_tag_namespace_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_tag_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_tag_rule_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_tag_rule_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/create_user_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/deactivate_domain_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_api_key_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_auth_token_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_compartment_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_customer_secret_key_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_db_credential_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_domain_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_dynamic_group_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_group_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_identity_provider_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_idp_group_mapping_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_mfa_totp_device_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_network_source_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_o_auth_client_credential_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_policy_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_smtp_credential_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_swift_password_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_tag_default_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_tag_namespace_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_tag_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_tag_rule_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/delete_user_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/enable_replication_to_region_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/generate_totp_seed_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_account_by_entitlement_id_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_authentication_policy_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/get_compartment_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_domain_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_dynamic_group_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_group_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_iam_work_request_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_identity_provider_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_idp_group_mapping_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_mfa_totp_device_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_network_source_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_policy_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_standard_tag_template_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_tag_default_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_tag_namespace_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_tag_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_tag_rule_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_tagging_work_request_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_tenancy_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_user_group_membership_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_user_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/get_user_u_i_password_information_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/get_work_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/identity_client.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/identity_provider.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_allowed_domain_license_types_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_api_keys_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_auth_tokens_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_availability_domains_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_action_resource_types_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_bulk_edit_tags_resource_types_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_compartments_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_cost_tracking_tags_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_customer_secret_keys_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_db_credentials_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_domains_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_dynamic_groups_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_fault_domains_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_groups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_errors_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_logs_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_iam_work_requests_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_identity_provider_groups_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_providers_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_idp_group_mappings_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_managed_compartments_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_mfa_totp_devices_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_network_sources_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_o_auth_client_credentials_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_policies_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_region_subscriptions_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_regions_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_smtp_credentials_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_standard_tag_namespaces_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_swift_passwords_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tag_defaults_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tag_namespaces_request_response.go (79%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tag_rules_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tagging_work_request_errors_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tagging_work_request_logs_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tagging_work_requests_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tags_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_tenancies_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/list_user_group_memberships_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_users_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/list_work_requests_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/move_compartment_request_response.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/network_sources_summary.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/recover_compartment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_default_lock_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_namespace_lock_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/remove_user_from_group_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/reset_idp_scim_client_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/saml2_identity_provider.go (87%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/tag.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/tenancy.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_auth_token_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_authentication_policy_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_compartment_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_customer_secret_key_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_domain_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_dynamic_group_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_group_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_identity_provider_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_idp_group_mapping_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_network_source_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_o_auth_client_credential_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_policy_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_saml2_identity_provider_details.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_smtp_credential_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_swift_password_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_tag_default_request_response.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_tag_details.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_tag_namespace_request_response.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_tag_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_tag_rule_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_user_capabilities_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_user_request_response.go (82%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/update_user_state_request_response.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/identity/upload_api_key_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/action.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/add_http_request_header_rule.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/add_http_response_header_rule.go (80%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/allow_rule.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_health.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_health.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/certificate.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/certificate_details.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/connection_configuration.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/control_access_using_http_methods_rule.go (85%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_certificate_details.go (86%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_certificate_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_hostname_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_load_balancer_details.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_load_balancer_request_response.go (81%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_path_route_set_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_routing_policy_request_response.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_rule_set_details.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_s_s_l_cipher_suite_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/create_ssl_cipher_suite_details.go (95%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_certificate_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_cidr_blocks_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_hostname_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_listener_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_load_balancer_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_path_route_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_routing_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_rule_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_s_s_l_cipher_suite_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/extend_http_request_header_value_rule.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/extend_http_response_header_value_rule.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/forward_to_backend_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_health_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_health_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_cidr_blocks_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_health_checker_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_hostname_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_health_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_path_route_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_routing_policy_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_rule_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_s_s_l_cipher_suite_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_work_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_check_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/http_header_rule.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_address.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/lb_cookie_session_persistence_configuration_details.go (93%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backend_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backends_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_certificates_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_cidr_blocks_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_hostnames_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_listener_rules_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/list_load_balancer_healths_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancers_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_path_route_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_policies_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/list_protocols_request_response.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_routing_policies_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_rule_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_s_s_l_cipher_suites_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_shapes_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_work_requests_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/listener_rule_summary.go (75%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/load_balancer.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_protocol.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_shape.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/loadbalancer_client.go (91%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_condition.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/real_ip_address_condition.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/redirect_rule.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/redirect_uri.go (93%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/remove_http_request_header_rule.go (83%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/remove_http_response_header_rule.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/reserved_ip.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/routing_rule.go (79%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_condition.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/rule_set.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/session_persistence_configuration_details.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/shape_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_ip_address_condition.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/source_vcn_id_condition.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/source_vcn_ip_address_condition.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/ssl_cipher_suite.go (95%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/ssl_cipher_suite_details.go (95%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/ssl_configuration.go (76%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/ssl_configuration_details.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/update_load_balancer_details.go (77%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/update_load_balancer_request_response.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/update_path_route_set_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/update_routing_policy_request_response.go (77%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_s_s_l_cipher_suite_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/loadbalancer/update_ssl_cipher_suite_details.go (89%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request_error.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/aggregated_datapoint.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_collection.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/alarm_history_entry.go (78%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_status_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/alarm_summary.go (76%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/change_alarm_compartment_request_response.go (85%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/create_alarm_details.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/create_alarm_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/datapoint.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/delete_alarm_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/failed_metric_record.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_history_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/get_alarm_request_response.go (80%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_status_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/list_metrics_request_response.go (87%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/metric.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/metric_data.go (88%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/metric_data_details.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/monitoring_client.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/post_metric_data_request_response.go (75%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_response_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/remove_alarm_suppression_request_response.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/summarize_metrics_data_details.go (88%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/summarize_metrics_data_request_response.go (84%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/suppression.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/update_alarm_details.go (78%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/monitoring/update_alarm_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/action_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_health.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_health.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/change_network_load_balancer_compartment_request_response.go (86%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/create_network_load_balancer_details.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/create_network_load_balancer_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_health_check_service_infra_dp_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_listener_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/delete_network_load_balancer_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_destination_pod_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_source_pod_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dp_host.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_health_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_health_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_check_service_infra_dp_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_checker_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/get_listener_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_live_migration_request_response.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/get_network_load_balancer_health_request_response.go (81%) rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/get_network_load_balancer_request_response.go (83%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_work_request_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/hcs_infra_ip_version.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_protocols.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_result.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_address.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_version.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/lifecycle_state.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backend_sets_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backends_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_listeners_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_live_migrations_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancer_healths_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_policies_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_protocols_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_errors_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_logs_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_requests_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/metadata_options.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/network_load_balancer.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_summary.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/network_load_balancer_summary.go (82%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancing_policy.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfra_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfradphost_client.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/nlb_ip_version.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_status.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_type.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/reserved_ip.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/sort_order.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_details.go rename vendor/github.com/oracle/oci-go-sdk/{v49 => v65}/networkloadbalancer/update_network_load_balancer_request_response.go (84%) create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_details.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_request_response.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry_collection.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_resource.go create mode 100644 vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_summary.go delete mode 100644 vendor/github.com/sony/gobreaker/.travis.yml diff --git a/controllers/nativepodnetwork_controller.go b/controllers/nativepodnetwork_controller.go index 38260886e0..dfc50bcccf 100644 --- a/controllers/nativepodnetwork_controller.go +++ b/controllers/nativepodnetwork_controller.go @@ -40,7 +40,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/metrics" ociclient "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/util" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" ) const ( @@ -544,10 +544,6 @@ func filterPrivateIp(privateIps []core.PrivateIp) []core.PrivateIp { if *ip.IsPrimary { continue } - // ignore IPs which are terminating or terminated - if ip.LifecycleState == core.PrivateIpLifecycleStateTerminating || ip.LifecycleState == core.PrivateIpLifecycleStateTerminated { - continue - } secondaryIps = append(secondaryIps, ip) } return secondaryIps diff --git a/controllers/nativepodnetwork_controller_test.go b/controllers/nativepodnetwork_controller_test.go index 5d73e58b17..80f2967c82 100644 --- a/controllers/nativepodnetwork_controller_test.go +++ b/controllers/nativepodnetwork_controller_test.go @@ -23,7 +23,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/api/v1beta1" "github.com/oracle/oci-cloud-controller-manager/pkg/util" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" ) func TestComputeAveragesByReturnCode(t *testing.T) { @@ -144,17 +144,6 @@ func TestFilterPrivateIp(t *testing.T) { {IsPrimary: &falseVal, IpAddress: &testAddress1}, }, }, - { - name: "only termiated/termiatinging ips", - ips: []core.PrivateIp{ - {IsPrimary: &falseVal, IpAddress: &testAddress1, LifecycleState: core.PrivateIpLifecycleStateTerminating}, - {IsPrimary: &falseVal, IpAddress: &testAddress1, LifecycleState: core.PrivateIpLifecycleStateTerminated}, - {IsPrimary: &falseVal, IpAddress: &testAddress1}, - }, - expected: []core.PrivateIp{ - {IsPrimary: &falseVal, IpAddress: &testAddress1}, - }, - }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { diff --git a/go.mod b/go.mod index 97e0324b08..8b19361d48 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.18 replace ( github.com/docker/docker => github.com/docker/engine v0.0.0-20181106193140-f5749085e9cb - github.com/oracle/oci-go-sdk/v49 => bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v49 v49.2.0-p + github.com/oracle/oci-go-sdk/v65 => bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v65 v65.18.1-p.0.20220831194506-202dd70b5937 github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.11.0 google.golang.org/grpc => google.golang.org/grpc v1.38.0 k8s.io/api => k8s.io/api v0.24.1 @@ -44,7 +44,7 @@ replace ( ) require ( - bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20211021080439-0f28edfc51d4 + bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20220429183118-f0129d710185 github.com/container-storage-interface/spec v1.6.0 github.com/go-logr/zapr v1.2.0 github.com/golang/protobuf v1.5.2 @@ -55,7 +55,7 @@ require ( github.com/kubernetes-csi/external-snapshotter/client/v6 v6.0.1 github.com/onsi/ginkgo v1.16.5 github.com/onsi/gomega v1.17.0 - github.com/oracle/oci-go-sdk/v49 v49.0.0-00010101000000-000000000000 + github.com/oracle/oci-go-sdk/v65 v65.2.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.12.1 github.com/spf13/cobra v1.4.0 @@ -109,6 +109,7 @@ require ( github.com/go-openapi/jsonpointer v0.19.5 // indirect github.com/go-openapi/jsonreference v0.19.6 // indirect github.com/go-openapi/swag v0.21.1 // indirect + github.com/gofrs/flock v0.8.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/google/gnostic v0.6.8 // indirect @@ -143,7 +144,7 @@ require ( github.com/prometheus/common v0.33.0 // indirect github.com/prometheus/procfs v0.7.3 // indirect github.com/sirupsen/logrus v1.8.1 // indirect - github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b // indirect + github.com/sony/gobreaker v0.5.0 // indirect github.com/spf13/afero v1.6.0 // indirect github.com/spf13/cast v1.3.1 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect diff --git a/go.sum b/go.sum index edbf79ac46..7c4b2e0e52 100644 --- a/go.sum +++ b/go.sum @@ -1,491 +1,95 @@ -bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= bitbucket.oci.oraclecorp.com/GOPLEX/tagging v0.0.0-20190321202046-20a2e48911da h1:nZa2pDAMXjXO8lzZaFi49NLvZF6LZ1hZuOXpdDlx6rs= bitbucket.oci.oraclecorp.com/GOPLEX/tagging v0.0.0-20190321202046-20a2e48911da/go.mod h1:zViK3CanICeUISIJLcmXLu8vV5gWZ78c+12hsmb9i58= -bitbucket.oci.oraclecorp.com/faas/ocimtls.git v1.2.0/go.mod h1:uIRAMkVfNv4425VQIBIFruCryoRGNjeqZscoLCT0wPU= -bitbucket.oci.oraclecorp.com/goiam/httpiam v0.0.0-20190319165730-973dbb679788/go.mod h1:64T+eIS2DcOl0TKiafrDTBKiU6dLMAhZPhJ/ABAavFU= bitbucket.oci.oraclecorp.com/goiam/httpsigner v0.0.0-20190320175442-e8cb27ebf440 h1:kyDncMt7uPz4SJ91k3tmivOVYIfEvuMwHRfkZWbb3j8= bitbucket.oci.oraclecorp.com/goiam/httpsigner v0.0.0-20190320175442-e8cb27ebf440/go.mod h1:J3D6IDrNzKb3HGZxGTS0RDCAdWbOdJUpE8v56+VuZfE= bitbucket.oci.oraclecorp.com/goiam/ociauthz v0.0.0-20200515161105-5b1e37d2dc95 h1:sm/zXP6mpJjufxJ4+DQiszsyvUC6471K8fjckTDl9mQ= bitbucket.oci.oraclecorp.com/goiam/ociauthz v0.0.0-20200515161105-5b1e37d2dc95/go.mod h1:NVqpQseh+5U+aZrCoTdFWnMSzDVMuD328Ib1cZq7DAw= -bitbucket.oci.oraclecorp.com/goiam/ocihttpiam v0.0.0-20201112171351-7818abc80432/go.mod h1:SlQBZtLrkyNR5QA8Ph7FkiEQ4FhVEpVQ8bRD7zjBp8I= bitbucket.oci.oraclecorp.com/oke/bmc-go-sdk v0.0.0-20180119173458-fe578152e621 h1:M1WcJxHwJnkbsSHqVW+Qvt4am3JTAzsXBpOV9Z6v4+M= bitbucket.oci.oraclecorp.com/oke/bmc-go-sdk v0.0.0-20180119173458-fe578152e621/go.mod h1:QsX8wOl/1qYr+wRFQzl1AunrURQLg56MhPu3aMzyXas= -bitbucket.oci.oraclecorp.com/oke/oci-go-common v1.0.4-0.20200706161333-eb59f40527dd/go.mod h1:vV+DBk4RXaIh/Fw9q5BIy7Z/oqPWb/jVeVHt6NkykKY= -bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20211021080439-0f28edfc51d4 h1:v3HieWV3Ybh7875EwgYFi0qjIHndVyKQMhVMaya4Jtw= -bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20211021080439-0f28edfc51d4/go.mod h1:t5vJIMH69dU/00n48ENnZykcCnL9JpBuGuXesdSxHsU= -bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v49 v49.2.0-p h1:4NXrlZ2Vz1D4jFgmbBQv9LTM7+L1uzuCBHBsjjoSZKo= -bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v49 v49.2.0-p/go.mod h1:E8q2DXmXnSozLdXHUFF+o3L2gzcWbiFIPFYOYWdqOfc= -bitbucket.org/bertimus9/systemstat v0.0.0-20180207000608-0eeff89b0690/go.mod h1:Ulb78X89vxKYgdL24HMTiXYHlyHEvruOj1ZPlqeNEZM= -cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= -cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= -cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= -cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= -cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= -cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= -cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= -cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= -cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= -cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= -cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= -cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= -cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= -cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= -cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= -cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= -cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= -cloud.google.com/go v0.81.0 h1:at8Tk2zUz63cLPR0JPWm5vp77pEZmzxEQBEfRKn1VV8= -cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= -cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= -cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= -cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= -cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= -cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= -cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= -cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= -cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= -cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= -cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= -cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= -cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= -cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= -cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= -cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= -cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= -cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Azure/azure-sdk-for-go v55.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20220429183118-f0129d710185 h1:ce+1Z2Bvv+gqbmC1n+RUZ8dMG9QGEMoW95PA6G1p11U= +bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20220429183118-f0129d710185/go.mod h1:UZ8NMW2U4h4NVbHaP6TYLjRKkvUBuSAtEspw23Um2WI= +bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v65 v65.18.1-p.0.20220831194506-202dd70b5937 h1:JBgy3VPvCw5HTVlDCUBcOzSPzlvgUlFVWMeePGcfK/c= +bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v65 v65.18.1-p.0.20220831194506-202dd70b5937/go.mod h1:oyMrMa1vOzzKTmPN+kqrTR9y9kPA2tU1igN3NUSNTIE= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8= github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= -github.com/Azure/go-autorest/autorest v0.11.18/go.mod h1:dSiJPy22c3u0OtOKDNttNgqpNFY/GeWa7GH/Pz56QRA= -github.com/Azure/go-autorest/autorest/adal v0.9.13/go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M= -github.com/Azure/go-autorest/autorest/date v0.3.0/go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74= -github.com/Azure/go-autorest/autorest/mocks v0.4.1/go.mod h1:LTp+uSrOhSkaKrUy935gNZuuIPPVsHlr9DSOxSayd+k= -github.com/Azure/go-autorest/autorest/to v0.4.0/go.mod h1:fE8iZBn7LQR7zH/9XU2NcPR4o9jEImooCeWJcYV/zLE= -github.com/Azure/go-autorest/autorest/validation v0.1.0/go.mod h1:Ha3z/SqBeaalWQvokg3NZAlQTalVMtOIAs1aGK7G6u8= -github.com/Azure/go-autorest/logger v0.2.1/go.mod h1:T9E3cAhj2VqvPOtCYAvby9aBXkZmbF5NWuPV8+WeEW8= -github.com/Azure/go-autorest/tracing v0.6.0/go.mod h1:+vhtPC754Xsa23ID7GlGsrdKBpUA79WCAKPPZVC2DeU= -github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/GoogleCloudPlatform/k8s-cloud-provider v1.16.1-0.20210702024009-ea6160c1d0e3/go.mod h1:8XasY4ymP2V/tn2OOV9ZadmiTE1FIB/h3W+yNlPttKw= -github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab/go.mod h1:3VYc5hodBMJ5+l/7J4xAyMeuM2PNuepvHlGs8yilUCA= -github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd/go.mod h1:64YHyfSL2R96J44Nlwm39UHepQbyR5q10x7iYa1ks2E= -github.com/Microsoft/go-winio v0.4.15/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw= -github.com/Microsoft/go-winio v0.4.17/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= -github.com/Microsoft/hcsshim v0.8.22/go.mod h1:91uVCVzvX2QD16sMCenoxxXo6L1wJnLMX2PSufFMtF0= -github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= github.com/NYTimes/gziphandler v1.1.1 h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I= github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= -github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= -github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= -github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= -github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= -github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= -github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210826220005-b48c857c3a0e/go.mod h1:F7bn7fEU90QkQ3tnmaTx3LTKLEDqnwWODIYppRQ5hnY= -github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= -github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= -github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= -github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio= -github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/auth0/go-jwt-middleware v1.0.1/go.mod h1:YSeUX3z6+TF2H+7padiEqNJ73Zy9vXW72U//IgN0BIM= -github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= -github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= -github.com/aws/aws-sdk-go v1.35.24/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k= -github.com/aws/aws-sdk-go v1.38.49/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= -github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= -github.com/benbjohnson/clock v1.0.3/go.mod h1:bGMdMPoPVvcYyt1gHDf4J2KE153Yf9BuiUKYMaxlTDM= -github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= -github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= -github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84= -github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= -github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM= github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ= -github.com/boltdb/bolt v1.3.1/go.mod h1:clJnj/oiGkjum5o1McbSZDSLxVThjynRyGBgiAx27Ps= -github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA= -github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0= -github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= -github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= -github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= -github.com/certifi/gocertifi v0.0.0-20191021191039-0944d244cd40/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/certifi/gocertifi v0.0.0-20200922220541-2c3bb06c6054/go.mod h1:sGbDF6GwGcLpkNXPUTkMRoywsNa/ol15pxFe6ERfguA= -github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/chai2010/gettext-go v0.0.0-20160711120539-c6fed771bfd5/go.mod h1:/iP1qXHoty45bqomnu2LM+VVyAEdWN+vtSHGlQgyxbw= -github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= -github.com/cilium/ebpf v0.4.0/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs= -github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= -github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= -github.com/clusterhq/flocker-go v0.0.0-20160920122132-2b8b7259d313/go.mod h1:P1wt9Z3DP8O6W3rvwCt0REIlshg1InHImaLW0t3ObY0= -github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= -github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= -github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo= -github.com/cockroachdb/errors v1.2.4/go.mod h1:rQD95gz6FARkaKkQXUksEje/d9a6wBJoCr5oaCLELYA= -github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= -github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= -github.com/container-storage-interface/spec v1.3.0/go.mod h1:6URME8mwIBbpVyZV93Ce5St17xBiQJQY67NDsuohiy4= -github.com/container-storage-interface/spec v1.5.0/go.mod h1:8K96oQNkJ7pFcC2R9Z1ynGGBB1I93kcS6PGg3SsOk8s= github.com/container-storage-interface/spec v1.6.0 h1:vwN9uCciKygX/a0toYryoYD5+qI9ZFeAMuhEEKO+JBA= github.com/container-storage-interface/spec v1.6.0/go.mod h1:8K96oQNkJ7pFcC2R9Z1ynGGBB1I93kcS6PGg3SsOk8s= -github.com/containerd/cgroups v1.0.1/go.mod h1:0SJrPIenamHDcZhEcJMNBB85rHcUsw4f25ZfBiPYRkU= -github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4qcS3XoQ5xkw= -github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= -github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= -github.com/containerd/containerd v1.4.9/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/containerd v1.4.12/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA= -github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= -github.com/containerd/fifo v1.0.0/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= -github.com/containerd/go-runc v1.0.0/go.mod h1:cNU0ZbCgCQVZK4lgG3P+9tn9/PaJNmoDXPpoJhDR+Ok= -github.com/containerd/ttrpc v1.0.2/go.mod h1:UAxOpgT9ziI0gJrmKvgcZivgxOp8iFPSk8httJEt98Y= -github.com/containerd/typeurl v1.0.2/go.mod h1:9trJWW2sRlGub4wZJRTW83VtbOLS6hwcDZXTn6oPz9s= -github.com/coredns/caddy v1.1.0/go.mod h1:A6ntJQlAWuQfFlsd9hvigKbo2WS0VUs2l1e2F+BawD4= -github.com/coredns/corefile-migration v1.0.14/go.mod h1:XnhgULOEouimnzgn0t4WPuFDN2/PJQcTxdWKC5eXNGE= -github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk= -github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= -github.com/coreos/go-oidc v2.1.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= -github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd/v22 v22.1.0/go.mod h1:xO0FLkIi5MaZafQlIrOotqXZ90ih+1atmu1JpKERPPk= github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= -github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw= -github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/daviddengcn/go-colortext v0.0.0-20160507010035-511bcaf42ccd/go.mod h1:dv4zxwHi5C/8AeI+4gX4dCWOIvNi7I6JCSX0HvlKPgE= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= -github.com/dnaeon/go-vcr v1.0.1/go.mod h1:aBB1+wY4s93YsC3HHjMBMrwTj2R9FHDzUr9KyGc8n1E= -github.com/docker/distribution v2.8.0+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= github.com/docker/distribution v2.8.1+incompatible h1:Q50tZOPR6T/hjNsyc9g8/syEs6bk8XXApsHjKukMl68= github.com/docker/distribution v2.8.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w= -github.com/docker/engine v0.0.0-20181106193140-f5749085e9cb/go.mod h1:3CPr2caMgTHxxIAZgEMd3uLYPDlRvPqCpyeRf6ncPcY= -github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= -github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo= -github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= -github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= -github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= -github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= -github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153 h1:yUdfgN0XgIJw7foRItutHYUIhlcKzcSf5vDpdhQAKTc= -github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= -github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/emicklei/go-restful v2.9.5+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= github.com/emicklei/go-restful v2.15.0+incompatible h1:8KpYO/Xl/ZudZs5RNOEhWMBY4hmzlZhhRd9cu+jrZP4= github.com/emicklei/go-restful v2.15.0+incompatible/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= -github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= -github.com/euank/go-kmsg-parser v2.0.0+incompatible/go.mod h1:MhmAMZ8V4CYH4ybgdRwPr2TU5ThnS43puaKEMpja1uw= -github.com/evanphx/json-patch v0.5.2/go.mod h1:ZWS5hhDbVDyob71nXKNL0+PWn6ToqBHMikGIFbs31qQ= -github.com/evanphx/json-patch v4.11.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch v5.6.0+incompatible h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U= github.com/evanphx/json-patch v5.6.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= -github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d/go.mod h1:ZZMPRZwes7CROmyNKgQzC3XPs6L/G2EJLHddWejkmf4= -github.com/fatih/camelcase v1.0.0/go.mod h1:yN2Sb0lFhZJUdVvtELVWefmrXpuZESvPmqwoZc+/fpc= -github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/flowstack/go-jsonschema v0.1.1/go.mod h1:yL7fNggx1o8rm9RlgXv7hTBWxdBM0rVwpMwimd3F3N0= -github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc= -github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible h1:7ZaBxOI7TMoYBfyA3cQHErNNyAWIKUMIwqxEtgHOs5c= -github.com/form3tech-oss/jwt-go v3.2.3+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= -github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= -github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= -github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI= github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU= -github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0= -github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg= -github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= -github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= github.com/go-kit/kit v0.10.0 h1:dXFJfIHVvUcpSgDOV+Ne6t7jXri8Tfv2uOLHUZ2XNuo= github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= -github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= -github.com/go-kit/log v0.2.0/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= -github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= -github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= -github.com/go-logfmt/logfmt v0.5.1/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= -github.com/go-logr/logr v0.1.0/go.mod h1:ixOQHD9gLJUVQQ2ZOR7zLEifBX6tGkNJF4QyIY7sIas= -github.com/go-logr/logr v0.2.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-logr/logr v0.4.0/go.mod h1:z6/tIYblkpsD+a4lm/fGIIU9mZ+XfAiaFtq7xTgseGU= -github.com/go-logr/logr v1.2.0/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.3 h1:2DntVwHkVopvECVRSlL5PSo9eG+cAkDCuckLubN+rq0= github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/zapr v1.2.0 h1:n4JnPI1T3Qq1SFEi/F8rwLrZERp2bso19PJZDB9dayk= github.com/go-logr/zapr v1.2.0/go.mod h1:Qa4Bsj2Vb+FAVeAKsLD8RLQ+YRJB8YDmOAKxaBQf7Ro= -github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= github.com/go-openapi/jsonreference v0.19.6 h1:UBIxjkht+AWIgYzCDSv2GN+E/togfwXUJFRTWhl2Jjs= github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= -github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.21.1 h1:wm0rhTb5z7qpJRHBdPOMuY4QjVUMbF6/kwoYeRAOrKU= github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-ozzo/ozzo-validation v3.5.0+incompatible/go.mod h1:gsEKFIVnabGBt6mXmxK0MoFy+cZoTJY6mu5Ll3LVLBU= -github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= -github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/godbus/dbus/v5 v5.0.3/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= -github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= -github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gofrs/flock v0.8.1 h1:+gYjHKf32LDeiEEFhQaotPbLuUXjY5ZqxKgXy7n59aw= +github.com/gofrs/flock v0.8.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= -github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= -github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= -github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= -github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= -github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= -github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= -github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= -github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= -github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golangplus/testing v0.0.0-20180327235837-af21d9c3145e/go.mod h1:0AA//k/eakGydO4jKRoRL2j92ZKSzTgj9tclaCrvXHk= -github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= -github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= -github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= -github.com/google/cadvisor v0.44.1/go.mod h1:GQ9KQfz0iNHQk3D6ftzJWK4TXabfIgM10Oy3FkR+Gzg= -github.com/google/cel-go v0.10.1/go.mod h1:U7ayypeSkw23szu4GaQTPJGx66c20mx8JklMSxrmI1w= -github.com/google/cel-spec v0.6.0/go.mod h1:Nwjgxy5CbjlPrtCWjeDjUyKMl8w41YBYGjsyDdqk0xA= -github.com/google/gnostic v0.5.7-v3refs/go.mod h1:73MKFl6jIHelAJNaBGFzt3SPtZULs9dYrGFt8OiIsHQ= github.com/google/gnostic v0.6.8 h1:bT56GPYBWh1tvBuBEd94qcS3+60b+y0HQur0ITkGuCk= github.com/google/gnostic v0.6.8/go.mod h1:Nm8234We1lq6iB9OmlgNv3nH91XLLVZHCDayfA3xq+E= -github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o= github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gofuzz v1.1.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= -github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= -github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= -github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= -github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= -github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= -github.com/googleapis/gnostic v0.5.1/go.mod h1:6U4PtQXGIEt/Z3h5MAT7FNofLnw9vXk2cUuW7uA/OeU= -github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8= -github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00 h1:l5lAOZEym3oK3SQ2HBHWsJUfbNBiTXJDeW2QDxw9AQ0= -github.com/gopherjs/gopherjs v0.0.0-20200217142428-fce0ec30dd00/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= -github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= -github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= -github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= -github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc= -github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= -github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= -github.com/grpc-ecosystem/go-grpc-middleware v1.2.0/go.mod h1:mJzapYve32yjrKlk9GbyCZHuPgZsrbyIbyKhSzOpg6s= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 h1:+9834+KizmvFV7pXQGSXQTsaWhq2GjuNUt0aUU0YBYw= github.com/grpc-ecosystem/go-grpc-middleware v1.3.0/go.mod h1:z0ButlSOZa5vEBq9m2m2hlwIgKw+rp3sdCBRoJY+30Y= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= -github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= -github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= -github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= -github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= -github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= -github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= -github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= -github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= -github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= -github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= -github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= -github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= -github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= -github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= -github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= -github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= -github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= -github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/heketi/heketi v10.3.0+incompatible/go.mod h1:bB9ly3RchcQqsQ9CpyaQwvva7RS5ytVoSoholZQON6o= -github.com/heketi/tests v0.0.0-20151005000721-f3775cbcefd6/go.mod h1:xGMAM8JLi7UkZt1i4FQeQy0R2T8GLUwQhOP5M1gBhy4= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= -github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= -github.com/imdario/mergo v0.3.5/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA= github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/ishidawataru/sctp v0.0.0-20190723014705-7c296d48a2b5/go.mod h1:DM4VvS+hD/kDi1U1QsX2fnZowwBhqD0Dk3bRPKF/Oc8= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= -github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= -github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= -github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= -github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= -github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= -github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= -github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo= -github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= -github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= -github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk= -github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= -github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= -github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= -github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kubernetes-csi/csi-lib-utils v0.11.0 h1:FHWOBtAZBA/hVk7v/qaXgG9Sxv0/n06DebPFuDwumqg= github.com/kubernetes-csi/csi-lib-utils v0.11.0/go.mod h1:BmGZZB16L18+9+Lgg9YWwBKfNEHIDdgGfAyuW6p2NV0= -github.com/kubernetes-csi/csi-test/v4 v4.0.2 h1:MNj94SFHOGK6lOy+yDgxI+zlFWaPcgByqBH3JZZGyZI= -github.com/kubernetes-csi/csi-test/v4 v4.0.2/go.mod h1:z3FYigjLFAuzmFzKdHQr8gUPm5Xr4Du2twKcxfys0eI= github.com/kubernetes-csi/external-attacher v0.0.0-20220607140055-8d337281e065 h1:7qzsVksxpD1byTKl6J3DMvC8lFShfBxLKjBZzFSP0Z4= github.com/kubernetes-csi/external-attacher v0.0.0-20220607140055-8d337281e065/go.mod h1:AMqjRKBOiII0WRcHh7Vk/TP09uuAZgIipWf0EpqZzNc= github.com/kubernetes-csi/external-provisioner v0.0.0-20220610061345-7f08effe3de5 h1:SfJt8VA7Wqa9kVyR+1rNNp50rmRg+eb3fwqQWDYohig= @@ -494,301 +98,76 @@ github.com/kubernetes-csi/external-resizer v0.0.0-20220615155319-a76b4d2afe86 h1 github.com/kubernetes-csi/external-resizer v0.0.0-20220615155319-a76b4d2afe86/go.mod h1:w7XFY/6CvGGz7VmlFRstJx8WDx/0WKxg5cHIUM2YK9k= github.com/kubernetes-csi/external-snapshotter/client/v6 v6.0.1 h1:OqBS3UAo3eGWplYXoMLaWnx/7Zj5Ogh0VO/FuVOL+/o= github.com/kubernetes-csi/external-snapshotter/client/v6 v6.0.1/go.mod h1:tnHiLn3P10N95fjn7O40QH5ovN0EFGAxqdTpUMrX6bU= -github.com/libopenstorage/openstorage v1.0.0/go.mod h1:Sp1sIObHjat1BeXhfMqLZ14wnOzEhNx2YQedreMcUyc= -github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= -github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= -github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= -github.com/lithammer/dedent v1.1.0/go.mod h1:jrXYCQtgg0nJiN+StA2KgR7w6CiQNv9Fd/Z9BP0jIOc= -github.com/lpabon/godbc v0.1.1/go.mod h1:Jo9QV0cf3U6jZABgiJ2skINAXb9j8m51r07g4KI92ZA= -github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= -github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= -github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.29/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM= github.com/miekg/dns v1.1.48 h1:Ucfr7IIVyMBz4lRE8qmGUuZ4Wt3/ZGu9hmcMT3Uu4tQ= github.com/miekg/dns v1.1.48/go.mod h1:e3IlAVfNqAllflbibAZEWOXOQ+Ynzk/dDozDxY7XnME= -github.com/mindprince/gonvml v0.0.0-20190828220739-9ebdce4bb989/go.mod h1:2eu9pRWp8mo84xCg6KswZ+USQHjwgRhNp06sozOdsTY= -github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible/go.mod h1:8AuVvqP/mXw1px98n46wfvcGfQ4ci2FwoAjKYxuo3Z4= -github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= -github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= -github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= -github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= -github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= -github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.2.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/moby/ipvs v1.0.1/go.mod h1:2pngiyseZbIKXNv7hsKj3O9UEz30c53MT9005gt2hxQ= github.com/moby/spdystream v0.2.0 h1:cjW1zVyyoiM0T7b6UoySUFqzXMoqRckQtXwGPiBhOM8= github.com/moby/spdystream v0.2.0/go.mod h1:f7i0iNDQJ059oMTcWxx8MA/zKFIuD/lY+0GqbN2Wy8c= -github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= -github.com/moby/sys/mountinfo v0.6.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6 h1:dcztxKSvZ4Id8iPpHERQBbIJfabdt4wUm5qy3wOL2Zc= github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6/go.mod h1:E2VnQOmVuvZB6UYnnDB0qG5Nq/1tD9acaOpo6xmt0Kw= -github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= -github.com/mohae/deepcopy v0.0.0-20170603005431-491d3605edfb/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8= -github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00/go.mod h1:Pm3mSP3c5uWn86xMLZ5Sa7JB9GsEZySvHYXCTK4E9q4= -github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= -github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= -github.com/munnerz/goautoneg v0.0.0-20120707110453-a547fc61f48d/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA= github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ= -github.com/mvdan/xurls v1.1.0/go.mod h1:tQlNn3BED8bE/15hnSL2HLkDeLWpNPAwtw7wkEq44oU= -github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= -github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= -github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= -github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= -github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= -github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= -github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= -github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= -github.com/olekukonko/tablewriter v0.0.4/go.mod h1:zq6QwlOf5SlnkVbMSr5EoBv3636FWnp+qbPhuoO21uA= -github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.10.3/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= -github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.17.0 h1:9Luw4uT5HTjHTN8+aNcSThgH1vdXnmdJ8xIfZ4wyTRE= github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= -github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= -github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= -github.com/opencontainers/runc v1.1.0/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= -github.com/opencontainers/runc v1.1.1/go.mod h1:Tj1hFw6eFWp/o33uxGf5yF2BX5yz2Z6iptFpuvbbKqc= -github.com/opencontainers/runtime-spec v1.0.2/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20200929063507-e6143ca7d51d/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= -github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU= github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= -github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= -github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= -github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= -github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= -github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= -github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= -github.com/oracle/oci-go-sdk/v35 v35.3.0/go.mod h1:ahd0WhBivqXhNoeMIGThzpk9Ic7CpQiB9krgh0WEfRg= -github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= -github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= -github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= -github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= -github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= -github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= -github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= -github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= -github.com/pquerna/cachecontrol v0.0.0-20171018203845-0dec1b30a021/go.mod h1:prYjPmNq4d1NPVmpShWobRqXY3q7Vp+80DqgxxUrUIA= github.com/prometheus/client_golang v1.11.0 h1:HNkLOAEQMIDv/K+04rukrLx6ch7msSRwf3/SASFAGtQ= github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= -github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/prometheus/client_model v0.2.0 h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M= github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= -github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= -github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= -github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= -github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= github.com/prometheus/common v0.33.0 h1:rHgav/0a6+uYgGdNt3jwz8FNSesO/Hsang3O0T9A5SE= github.com/prometheus/common v0.33.0/go.mod h1:gB3sOl7P0TvJabZpLY5uQMpUqRCPPCyRLCZYc7JZTNE= -github.com/prometheus/procfs v0.0.0-20190522114515-bc1a522cf7b1/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= -github.com/prometheus/procfs v0.0.11/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= -github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= -github.com/quobyte/api v0.1.8/go.mod h1:jL7lIHrmqQ7yh05OJ+eEEdHr0u/kmT1Ff9iHd+4H6VI= -github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/remyoudompheng/bigfft v0.0.0-20170806203942-52369c62f446/go.mod h1:uYEyJGbgTkfkS4+E/PavXkNJcbFIpEtjt2B0KDQ5+9M= -github.com/robertkrimen/otto v0.0.0-20191219234010-c382bd3c16ff/go.mod h1:xvqspoSXJTIpemEonrMDFq6XzwHYYgToXWj5eRX1OtY= -github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro= -github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= -github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= -github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto= -github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= -github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= -github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/seccomp/libseccomp-golang v0.9.2-0.20210429002308-3879420cc921/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= -github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= -github.com/sirupsen/logrus v1.5.0/go.mod h1:+F7Ogzej0PZc/94MaYx/nvG9jOFMD2osvC3s+Squfpo= -github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE= github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= -github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= -github.com/smartystreets/assertions v1.1.0 h1:MkTeG1DMwsrdH7QtLXy5W+fUxWq+vmb6cLmyJ7aRtF0= -github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s= -github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= -github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= -github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= -github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b h1:br+bPNZsJWKicw/5rALEo67QHs5weyD5tf8WST+4sJ0= -github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= -github.com/spf13/afero v1.2.2/go.mod h1:9ZxEEn6pIJ8Rxe320qSDBk6AsU0r9pR7Q4OcevTdifk= +github.com/sony/gobreaker v0.5.0 h1:dRCvqm0P490vZPmy7ppEk2qCnCieBooFJ+YoXGYB+yg= +github.com/sony/gobreaker v0.5.0/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY= github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= -github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= -github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE= -github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo= -github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= -github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= -github.com/spf13/pflag v0.0.0-20170130214245-9ff6c6923cff/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= -github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= -github.com/spf13/viper v1.6.3/go.mod h1:jUMtyi0/lB5yZH/FjyGAoH7IMNrIhlBf6pXZmbMDvzw= -github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/spf13/viper v1.8.1 h1:Kq1fyeebqsBfbjZj4EL7gj2IO0mMaiyjYUWcUsl2O44= github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= -github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= -github.com/storageos/go-api v2.2.0+incompatible/go.mod h1:ZrLn+e0ZuF3Y65PNF6dIwbJPZqfmtCXxFm9ckv0agOY= -github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= -github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= -github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= -github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= -github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= -github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= -github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= -github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/vmware/govmomi v0.20.3/go.mod h1:URlwyTFZX72RmxtxuaFL2Uj3fD1JTvZdx59bHWk6aFU= -github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= -github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= -github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= -github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca/go.mod h1:ce1O1j6UtZfjr22oyGxGLbauSBp2YVXpARAosm7dHBg= -github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= -github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU= -go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738 h1:VcrIfasaLFkyjk6KNlXQSzO+B0fZcnECiDrKJsfxka0= -go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/api/v3 v3.5.1 h1:v28cktvBq+7vGyJXF8G+rWJmj+1XUmMtqcLnH8hDocM= go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= -go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/pkg/v3 v3.5.1 h1:XIQcHCFSG53bJETYeRJtIxdLv2EWRGxcfzR8lSnTH4E= go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= -go.etcd.io/etcd/client/v2 v2.305.0 h1:ftQ0nOOHMcbMS3KIaDQ0g5Qcd6bhaBrQT6b89DfwLTs= -go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.etcd.io/etcd/client/v3 v3.5.0/go.mod h1:AIKXXVX/DQXtfTEqBryiLTUXwON+GuvO6Z7lLS/oTh0= go.etcd.io/etcd/client/v3 v3.5.1 h1:oImGuV5LGKjCqXdjkMHCyWa5OO1gYKCnC/1sgdfj1Uk= go.etcd.io/etcd/client/v3 v3.5.1/go.mod h1:OnjH4M8OnAotwaB2l9bVgZzRFKru7/ZMoS46OtKyd3Q= -go.etcd.io/etcd/pkg/v3 v3.5.0 h1:ntrg6vvKRW26JRmHTE0iNlDgYK6JX3hg/4cD62X0ixk= -go.etcd.io/etcd/pkg/v3 v3.5.0/go.mod h1:UzJGatBQ1lXChBkQF0AuAtkRQMYnHubxAEYIrC3MSsE= -go.etcd.io/etcd/raft/v3 v3.5.0 h1:kw2TmO3yFTgE+F0mdKkG7xMxkit2duBDa2Hu6D/HMlw= -go.etcd.io/etcd/raft/v3 v3.5.0/go.mod h1:UFOHSIvO/nKwd4lhkwabrTD3cqW5yVyYYf/KlD00Szc= -go.etcd.io/etcd/server/v3 v3.5.0 h1:jk8D/lwGEDlQU9kZXUFMSANkE22Sg5+mW27ip8xcF9E= -go.etcd.io/etcd/server/v3 v3.5.0/go.mod h1:3Ah5ruV+M+7RZr0+Y/5mNLwC+eQlni+mQmOVdCRJoS4= -go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= -go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= -go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= -go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= -go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= -go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= go.opentelemetry.io/contrib v0.20.0 h1:ubFQUn0VCZ0gPwIoJfBJVpeBlyRMxu8Mm/huKWYd9p0= go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc= go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 h1:sO4WKdPAudZGKPcpZT4MJn6JaDmpyLrMPDGGyA1SttE= @@ -801,8 +180,6 @@ go.opentelemetry.io/otel/exporters/otlp v0.20.0 h1:PTNgq9MRmQqqJY0REVbZFvwkYOA85 go.opentelemetry.io/otel/exporters/otlp v0.20.0/go.mod h1:YIieizyaN77rtLJra0buKiNBOm9XQfkPEKBeuhoMwAM= go.opentelemetry.io/otel/metric v0.20.0 h1:4kzhXFP+btKm4jwxpjIqjs41A7MakRFUS86bqLHTIw8= go.opentelemetry.io/otel/metric v0.20.0/go.mod h1:598I5tYlH1vzBjn+BTuhzTCSb/9debfNp6R3s7Pr1eU= -go.opentelemetry.io/otel/oteltest v0.20.0 h1:HiITxCawalo5vQzdHfKeZurV8x7ljcqAgiWzF6Vaeaw= -go.opentelemetry.io/otel/oteltest v0.20.0/go.mod h1:L7bgKf9ZB7qCwT9Up7i9/pn0PWIa9FqQ2IQ8LoxiGnw= go.opentelemetry.io/otel/sdk v0.20.0 h1:JsxtGXd06J8jrnya7fdI/U/MR6yXA5DtbZy+qoHQlr8= go.opentelemetry.io/otel/sdk v0.20.0/go.mod h1:g/IcepuwNsoiX5Byy2nNV0ySUF1em498m7hBWC279Yc= go.opentelemetry.io/otel/sdk/export/metric v0.20.0 h1:c5VRjxCXdQlx1HjzwGdQHzZaVI82b5EbBgOu2ljD92g= @@ -813,516 +190,56 @@ go.opentelemetry.io/otel/trace v0.20.0 h1:1DL6EXUdcg95gukhuRRvLDO/4X5THh/5dIV52l go.opentelemetry.io/otel/trace v0.20.0/go.mod h1:6GjCW8zgDjwGHGa6GkyeB8+/5vjT16gUEi0Nf1iBdgw= go.opentelemetry.io/proto/otlp v0.7.0 h1:rwOQPCuKAKmwGKq2aVNnYIibI6wnV7EvzgfTCzcdGg8= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5/go.mod h1:nmDLcffg48OtT/PSW0Hg7FvpRQsQh5OSqIylirxKC7o= -go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= -go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= -go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.1.11-0.20210813005559-691160354723/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ= -go.uber.org/goleak v1.1.12 h1:gZAh5/EyT/HQwlpkCy6wTpqfH9H8Lz8zbm3dZh+OyzA= -go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= -go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= -go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= -go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= -go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= -go.uber.org/zap v1.19.0/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= go.uber.org/zap v1.19.1 h1:ue41HOKd1vGURxrmeKIgELGb3jPW9DMUDGtsinblHwI= go.uber.org/zap v1.19.1/go.mod h1:j3DNczoxDZroyBnOT1L/Q79cfUMGZxlv/9dzN7SM1rI= -golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190211182817-74369b46fc67/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200420201142-3c4aac89819a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= -golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20190312203227-4b39c73a6495/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= -golang.org/x/exp v0.0.0-20190731235908-ec7cb31e5a56/go.mod h1:JhuoJpWY28nO4Vef9tZUw9qufEGTyX1+7lmHxV5q5G4= -golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= -golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= -golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= -golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= -golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= -golang.org/x/exp v0.0.0-20210220032938-85be41e4509f/go.mod h1:I6l2HNBLBZEcrOoCpyKLdY2lHoRZ8lI4x60KMCQDft4= -golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= -golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= -golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= -golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= -golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= -golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= -golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= -golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= -golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f/go.mod h1:skQtrUTUwhdJvXM/2KKJzY8pDgNr9I/FOMqDVRPBUS4= -golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= -golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= -golang.org/x/mod v0.1.1-0.20191209134235-331c550502dd/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.3.1-0.20200828183125-ce943fd02449/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= -golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191112182307-2180aed22343/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= -golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= -golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= -golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210520170846-37e1c6afe023/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220403103023-749bd193bc2b h1:vI32FkLJNAWtGD4BwkThwEy6XS7ZLLMHkSkYfF8M0W0= golang.org/x/net v0.0.0-20220403103023-749bd193bc2b/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= -golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a h1:qfl7ob3DIEs3Ml9oLuPwY2N04gymzAW04WsUQHIClgM= golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190209173611-3b5209105503/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191002063906-3421d5a6bb1c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191022100944-742c48ecaeb7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191113165036-4c7a9d0fe056/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200120151820-655fe14d7479/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200217220822-9197077df867/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200916030750-2334cc1a136f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200923182605-d9f96fdee20d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210503080704-8803ae5d1324/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12 h1:QyVthZKMsyaQwBTJE04jdNN0Pp5Fn9Qga0mrgxyERQM= golang.org/x/sys v0.0.0-20220406163625-3f8b81556e12/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/time v0.0.0-20220210224613-90d013bbcef8/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 h1:M73Iuj3xbbb9Uk1DYhzydthsj6oOd6l9bpuFcNoUvTs= golang.org/x/time v0.0.0-20220224211638-0e9765cccd65/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= -golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= -golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= -golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117012304-6edc0a871e69/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= -golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= -golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= -golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200505023115-26f46d2f7ef8/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= -golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= -golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.6-0.20210726203631-07bc1bf47fb2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= -golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.2.0 h1:4pT439QV83L+G9FkcCriY6EkpcK6r6bK+A5FBUMI7qY= gomodules.xyz/jsonpatch/v2 v2.2.0/go.mod h1:WXp+iVDkoLQqPudfQ9GBlwB2eZ5DKOnjQZCYdOS8GPY= -gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= -gonum.org/v1/gonum v0.0.0-20190331200053-3d26580ed485/go.mod h1:2ltnJ7xHfj0zHS40VVPYEAAMTa3ZGguvHGBSJeRWqE0= -gonum.org/v1/gonum v0.6.2/go.mod h1:9mxDZsDKxgMAuccQkewq682L+0eCu4dCN2yonUJTCLU= -gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= -gonum.org/v1/netlib v0.0.0-20190331212654-76723241ea4e/go.mod h1:kS+toOQn6AQKjmKJ7gzohV1XkqsFehRA2FbsbkopSuQ= -gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= -google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= -google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= -google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= -google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= -google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= -google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= -google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= -google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= -google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= -google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= -google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= -google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= -google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= -google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= -google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= -google.golang.org/api v0.46.0/go.mod h1:ceL4oozhkAiTID8XMmJBsIxID/9wMXJVVFXPg4ylg3I= -google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= -google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= -google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= -google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= -google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= -google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= -google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191114150713-6bbd007550de/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200117163144-32f20d992d24/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= -google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= -google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= -google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= -google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= -google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201019141844-1ed22bb0c154/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201102152239-715cce707fb0/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= -google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= -google.golang.org/genproto v0.0.0-20210429181445-86c259c2b4ab/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= -google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= -google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= -google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf h1:JTjwKJX9erVpsw17w+OIPP7iAgEkN/r8urhWSunEDTs= google.golang.org/genproto v0.0.0-20220405205423-9d709892a2bf/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= google.golang.org/grpc v1.38.0 h1:/9BgsAsa5nWe26HqOlvlgJnqBuktYOLCgjCPqsa56W0= google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= -google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= -gopkg.in/gcfg.v1 v1.2.0/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= -gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/ini.v1 v1.55.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU= gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0-20170531160350-a96e63847dc3/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= -gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= -gopkg.in/sourcemap.v1 v1.0.5/go.mod h1:2RlvNNSMglmRrcvhfuzp4hQHwOtjxlbjX7UPY/GXb78= -gopkg.in/square/go-jose.v2 v2.2.2/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/warnings.v0 v0.1.1/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= -gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk= -gotest.tools/v3 v3.0.3 h1:4AuOwCGf4lLR9u3YOe2awrHygurzhO/HeQ6laiA6Sx0= -gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8= -honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= -honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= -honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= k8s.io/api v0.24.1 h1:BjCMRDcyEYz03joa3K1+rbshwh1Ay6oB53+iUx2H8UY= k8s.io/api v0.24.1/go.mod h1:JhoOvNiLXKTPQ60zh2g0ewpA+bnEYf5q44Flhquh4vQ= k8s.io/apiextensions-apiserver v0.24.1 h1:5yBh9+ueTq/kfnHQZa0MAo6uNcPrtxPMpNQgorBaKS0= @@ -1331,40 +248,24 @@ k8s.io/apimachinery v0.24.1 h1:ShD4aDxTQKN5zNf8K1RQ2u98ELLdIW7jEnlO9uAMX/I= k8s.io/apimachinery v0.24.1/go.mod h1:82Bi4sCzVBdpYjyI4jY6aHX+YCUchUIrZrXKedjd2UM= k8s.io/apiserver v0.24.1 h1:LAA5UpPOeaREEtFAQRUQOI3eE5So/j5J3zeQJjeLdz4= k8s.io/apiserver v0.24.1/go.mod h1:dQWNMx15S8NqJMp0gpYfssyvhYnkilc1LpExd/dkLh0= -k8s.io/cli-runtime v0.24.1/go.mod h1:14aVvCTqkA7dNXY51N/6hRY3GUjchyWDOwW84qmR3bs= k8s.io/client-go v0.24.1 h1:w1hNdI9PFrzu3OlovVeTnf4oHDt+FJLd9Ndluvnb42E= k8s.io/client-go v0.24.1/go.mod h1:f1kIDqcEYmwXS/vTbbhopMUbhKp2JhOeVTfxgaCIlF8= k8s.io/cloud-provider v0.24.1 h1:SaQNq2Ax+epdY9wFngwN9GWpOVnM72hUqr2qy20cOvg= k8s.io/cloud-provider v0.24.1/go.mod h1:h5m/KIiwiQ76hpUBsgrwm/rxteIfJG9kJQ/+/w1as2M= -k8s.io/cluster-bootstrap v0.24.1/go.mod h1:uq2PiYfKh8ZLb6DBU/3/2Z1DkMqXkTOHLemalC4tOgE= -k8s.io/code-generator v0.24.1/go.mod h1:dpVhs00hTuTdTY6jvVxvTFCk6gSMrtfRydbhZwHI15w= k8s.io/component-base v0.24.1 h1:APv6W/YmfOWZfo+XJ1mZwep/f7g7Tpwvdbo9CQLDuts= k8s.io/component-base v0.24.1/go.mod h1:DW5vQGYVCog8WYpNob3PMmmsY8A3L9QZNg4j/dV3s38= k8s.io/component-helpers v0.24.1 h1:pk68RSRhkGX75nhtAkilguKbq/0MyXbQqmrZoQu4nbs= k8s.io/component-helpers v0.24.1/go.mod h1:q5Z1pWV/QfX9ThuNeywxasiwkLw9KsR4Q9TAOdb/Y3s= k8s.io/controller-manager v0.24.1 h1:h3lGBf9/yeaYQ3TeODFL1soPv43HX1HOUYZ7Pq+iiQw= k8s.io/controller-manager v0.24.1/go.mod h1:g105ENexD6A2holEq7Bl6ae+69LJHiLnoEEm7wkE6sc= -k8s.io/cri-api v0.24.1/go.mod h1:t3tImFtGeStN+ES69bQUX9sFg67ek38BM9YIJhMmuig= k8s.io/csi-translation-lib v0.24.1 h1:fY5m3Nojju8mOfxF88BEQfj1cMnWwX+zZGRq0PHazfo= k8s.io/csi-translation-lib v0.24.1/go.mod h1:16nY6xx3XR4+TASMfTtake2ouK1IPz0t/baNmngzR4I= -k8s.io/gengo v0.0.0-20200413195148-3a45101e95ac/go.mod h1:ezvh/TsK7cY6rbqRK0oQQ8IAqLxYwwyPxAX1Pzy0ii0= -k8s.io/gengo v0.0.0-20210813121822-485abfe95c7c/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= -k8s.io/gengo v0.0.0-20211129171323-c02415ce4185/go.mod h1:FiNAH4ZV3gBg2Kwh89tzAEV2be7d5xI0vBa/VySYy3E= k8s.io/klog v1.0.0 h1:Pt+yjF5aB1xDSVbau4VsWe+dQNzA0qv1LlXdC2dF6Q8= k8s.io/klog v1.0.0/go.mod h1:4Bi6QPql/J/LkTDqv7R/cd3hPo4k2DG6Ptcz060Ez5I= -k8s.io/klog/v2 v2.0.0/go.mod h1:PBfzABfn139FHAV07az/IF9Wp1bkk3vpT2XSJ76fSDE= -k8s.io/klog/v2 v2.2.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.4.0/go.mod h1:Od+F08eJP+W3HUb4pSrPpgp9DGU4GzlpG/TmITuYh/Y= -k8s.io/klog/v2 v2.9.0/go.mod h1:hy9LJ/NvuK+iVyP4Ehqva4HxZG/oXyIS3n3Jmire4Ec= k8s.io/klog/v2 v2.60.1 h1:VW25q3bZx9uE3vvdL6M8ezOX79vA2Aq1nEWLqNQclHc= k8s.io/klog/v2 v2.60.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0= -k8s.io/kube-aggregator v0.24.1/go.mod h1:vZvRALCO32hrIuREhkYwLq5Crc0zh6SxzJDAKrQM1+k= -k8s.io/kube-controller-manager v0.24.1/go.mod h1:IlXY8FozezzIBNcfA6TV1//fjz9gNy3LGbigDnX7Q3A= -k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e/go.mod h1:vHXdDvt9+2spS2Rx9ql3I8tycm3H9FDfdUoIuKCefvw= -k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42/go.mod h1:Z/45zLw8lUo4wdiUkI+v/ImEGAvu3WatcZl3lPMR4Rk= k8s.io/kube-openapi v0.0.0-20220401212409-b28bf2818661 h1:nqYOUleKLC/0P1zbU29F5q6aoezM6MOAVz+iyfQbZ5M= k8s.io/kube-openapi v0.0.0-20220401212409-b28bf2818661/go.mod h1:daOouuuwd9JXpv1L7Y34iV3yf6nxzipkKMWWlqlvK9M= -k8s.io/kube-proxy v0.24.1/go.mod h1:Q19uL+muS7Q0rxIXlddcanbGcogbDcX5I86GROhrwOM= k8s.io/kube-scheduler v0.24.1 h1:9IZVhj7Gb09go4vP35cSgvoyVHmxjU1u400VM4YJZ/g= k8s.io/kube-scheduler v0.24.1/go.mod h1:mxSsC5sg710qdrN9oY+OSkHRSgYOv6qA2vEEt1t6Ax4= k8s.io/kubectl v0.24.1 h1:gxcjHrnwntV1c+G/BHWVv4Mtk8CQJ0WTraElLBG+ddk= @@ -1373,43 +274,19 @@ k8s.io/kubelet v0.24.1 h1:CLgXZ9kKDQoNQFSwKk6vUE5gXNaX1/s8VM8Oq/P5S+o= k8s.io/kubelet v0.24.1/go.mod h1:LShXfjNO1or7ktsorODSOu8+Kd5dHzWF3DtVLXeP3JE= k8s.io/kubernetes v1.24.1 h1:cfRZCNrJN9hR49SBSGLHhn+IdAcfx6OVXadGvWuvYaM= k8s.io/kubernetes v1.24.1/go.mod h1:8e8maMiZzBR2/8Po5Uulx+MXZUYJuN3vtKwD4Ct1Xi0= -k8s.io/legacy-cloud-providers v0.24.1/go.mod h1:OeDg+OJ5uzmJQyh6vpCkwGY8tVegaiokWErGr7YlSaI= -k8s.io/metrics v0.24.1/go.mod h1:vMs5xpcOyY9D+/XVwlaw8oUHYCo6JTGBCZfyXOOkAhE= k8s.io/mount-utils v0.24.1 h1:juKCvkiP4sWklb72OIk/qW7UhDns41ldcR/EHu/T1uA= k8s.io/mount-utils v0.24.1/go.mod h1:XrSqB3a2e8sq+aU+rlbcBtQ3EgcuDk5RP9ZsGxjoDrI= -k8s.io/pod-security-admission v0.24.1/go.mod h1:ZH6e17BuFFdiYHFxn9X6d7iaPj3JyuqBOw/MRytVWp8= -k8s.io/sample-apiserver v0.24.1/go.mod h1:5L12FaHPjpJzr0s/ClAx61Ig5uBjDCvthtmTIORu7F8= -k8s.io/system-validators v1.7.0/go.mod h1:gP1Ky+R9wtrSiFbrpEPwWMeYz9yqyy1S/KOh0Vci7WI= -k8s.io/utils v0.0.0-20210802155522-efc7438f0176/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -k8s.io/utils v0.0.0-20211116205334-6203023598ed/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 h1:HNSDgDCrr/6Ly3WEGKZftiE7IY19Vz2GdbOCyI4qqhc= k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA= -modernc.org/cc v1.0.0/go.mod h1:1Sk4//wdnYJiUIxnW8ddKpaOJCF37yAdqYnkxUpaYxw= -modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk= -modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k= -modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs= -modernc.org/xc v1.0.0/go.mod h1:mRNCo0bvLjGhHO9WsyuKVU4q0ceiDDDoEeWDJHrNx8I= -rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= -rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= -rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= -rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.30 h1:dUk62HQ3ZFhD48Qr8MIXCiKA8wInBQCtuE4QGfFW7yA= sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.30/go.mod h1:fEO7lRTdivWO2qYVCVG7dEADOMo/MLDCVr8So2g88Uw= sigs.k8s.io/controller-runtime v0.11.2 h1:H5GTxQl0Mc9UjRJhORusqfJCIjBO8UtUxGggCwL1rLA= sigs.k8s.io/controller-runtime v0.11.2/go.mod h1:P6QCzrEjLaZGqHsfd+os7JQ+WFZhvB8MRFsn4dWF7O4= sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 h1:kDi4JBNAsJWfz1aEXhO8Jg87JJaPNLh5tIzYHgStQ9Y= sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2/go.mod h1:B+TnT182UBxE84DiCz4CVE26eOSDAeYCpfDnC2kdKMY= -sigs.k8s.io/kustomize/api v0.11.4/go.mod h1:k+8RsqYbgpkIrJ4p9jcdPqe8DprLxFUUO0yNOq8C+xI= -sigs.k8s.io/kustomize/cmd/config v0.10.6/go.mod h1:/S4A4nUANUa4bZJ/Edt7ZQTyKOY9WCER0uBS1SW2Rco= -sigs.k8s.io/kustomize/kustomize/v4 v4.5.4/go.mod h1:Zo/Xc5FKD6sHl0lilbrieeGeZHVYCA4BzxeAaLI05Bg= -sigs.k8s.io/kustomize/kyaml v0.13.6/go.mod h1:yHP031rn1QX1lr/Xd934Ri/xdVNG8BE2ECa78Ht/kEg= sigs.k8s.io/sig-storage-lib-external-provisioner/v8 v8.0.0-20220531195724-a4ce2c1d2e52 h1:qPr8XXzH1BI3SZMQWW5tIcqq204bTNzYOw9xfhMpC/U= sigs.k8s.io/sig-storage-lib-external-provisioner/v8 v8.0.0-20220531195724-a4ce2c1d2e52/go.mod h1:Ybdr2Czs50F8sTnePvolPpDxS2cDA3vR4gHMYp2yRTs= -sigs.k8s.io/structured-merge-diff/v4 v4.0.2/go.mod h1:bJZC9H9iH24zzfZ/41RGcq60oK1F7G282QMXDPYydCw= sigs.k8s.io/structured-merge-diff/v4 v4.2.1 h1:bKCqE9GvQ5tiVHn5rfn1r+yao3aLQEaLzkkmAkf+A6Y= sigs.k8s.io/structured-merge-diff/v4 v4.2.1/go.mod h1:j/nl6xW8vLS49O8YvXW1ocPhZawJtm+Yrr7PPRQ0Vg4= -sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= -sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc= sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo= sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8= -sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/pkg/cloudprovider/providers/oci/ccm.go b/pkg/cloudprovider/providers/oci/ccm.go index 22f3f1e5fa..e5dbc1ba34 100644 --- a/pkg/cloudprovider/providers/oci/ccm.go +++ b/pkg/cloudprovider/providers/oci/ccm.go @@ -44,8 +44,8 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/metrics" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/instance/metadata" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" ) const ( diff --git a/pkg/cloudprovider/providers/oci/config/config.go b/pkg/cloudprovider/providers/oci/config/config.go index e5835f46d8..070804c402 100644 --- a/pkg/cloudprovider/providers/oci/config/config.go +++ b/pkg/cloudprovider/providers/oci/config/config.go @@ -22,8 +22,8 @@ import ( "bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/instance/metadata" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "github.com/pkg/errors" "github.com/spf13/viper" "go.uber.org/zap" diff --git a/pkg/cloudprovider/providers/oci/instances.go b/pkg/cloudprovider/providers/oci/instances.go index 6d6f7939b2..e99207f2d9 100644 --- a/pkg/cloudprovider/providers/oci/instances.go +++ b/pkg/cloudprovider/providers/oci/instances.go @@ -19,7 +19,7 @@ import ( "fmt" "net" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "k8s.io/apimachinery/pkg/labels" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" diff --git a/pkg/cloudprovider/providers/oci/instances_test.go b/pkg/cloudprovider/providers/oci/instances_test.go index 1cfc4b1ace..55240faa3d 100644 --- a/pkg/cloudprovider/providers/oci/instances_test.go +++ b/pkg/cloudprovider/providers/oci/instances_test.go @@ -25,10 +25,10 @@ import ( providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/filestorage" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/filestorage" + "github.com/oracle/oci-go-sdk/v65/identity" "go.uber.org/zap" v1 "k8s.io/api/core/v1" v1discovery "k8s.io/api/discovery/v1" diff --git a/pkg/cloudprovider/providers/oci/load_balancer.go b/pkg/cloudprovider/providers/oci/load_balancer.go index 7f14eaa99c..b7fbc92a8c 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer.go +++ b/pkg/cloudprovider/providers/oci/load_balancer.go @@ -32,7 +32,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/metrics" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/util" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" ) diff --git a/pkg/cloudprovider/providers/oci/load_balancer_security_lists.go b/pkg/cloudprovider/providers/oci/load_balancer_security_lists.go index ddb65f270f..52dc937336 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_security_lists.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_security_lists.go @@ -21,8 +21,8 @@ import ( "sort" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" "go.uber.org/zap" api "k8s.io/api/core/v1" diff --git a/pkg/cloudprovider/providers/oci/load_balancer_security_lists_test.go b/pkg/cloudprovider/providers/oci/load_balancer_security_lists_test.go index 5d6f6b4b1f..a772e0029e 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_security_lists_test.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_security_lists_test.go @@ -18,8 +18,8 @@ import ( "reflect" "testing" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" "go.uber.org/zap" v1 "k8s.io/api/core/v1" diff --git a/pkg/cloudprovider/providers/oci/load_balancer_spec.go b/pkg/cloudprovider/providers/oci/load_balancer_spec.go index b7d3a0a5b2..c7b831f81e 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_spec.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_spec.go @@ -29,7 +29,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/pkg/errors" ) diff --git a/pkg/cloudprovider/providers/oci/load_balancer_spec_test.go b/pkg/cloudprovider/providers/oci/load_balancer_spec_test.go index 354afdc4ef..46aa065438 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_spec_test.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_spec_test.go @@ -29,7 +29,7 @@ import ( providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) var ( diff --git a/pkg/cloudprovider/providers/oci/load_balancer_test.go b/pkg/cloudprovider/providers/oci/load_balancer_test.go index 2e16435c7f..1d33412bd4 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_test.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_test.go @@ -27,8 +27,8 @@ import ( providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" ) func newNodeObj(name string, labels map[string]string) *v1.Node { diff --git a/pkg/cloudprovider/providers/oci/load_balancer_util.go b/pkg/cloudprovider/providers/oci/load_balancer_util.go index 3ec3673dd8..93f79bd83b 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_util.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_util.go @@ -30,7 +30,7 @@ import ( "k8s.io/apimachinery/pkg/util/sets" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/loadbalancer" + "github.com/oracle/oci-go-sdk/v65/loadbalancer" ) const ( diff --git a/pkg/cloudprovider/providers/oci/load_balancer_util_test.go b/pkg/cloudprovider/providers/oci/load_balancer_util_test.go index d9bc83e1fe..4e173cc502 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_util_test.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_util_test.go @@ -26,7 +26,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) func TestSortAndCombineActions(t *testing.T) { diff --git a/pkg/cloudprovider/providers/oci/node_info_controller.go b/pkg/cloudprovider/providers/oci/node_info_controller.go index cd1c87b0ee..03fae4e1b9 100644 --- a/pkg/cloudprovider/providers/oci/node_info_controller.go +++ b/pkg/cloudprovider/providers/oci/node_info_controller.go @@ -36,7 +36,7 @@ import ( "k8s.io/klog" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" ) // metadata labeling for placement info diff --git a/pkg/cloudprovider/providers/oci/node_info_controller_test.go b/pkg/cloudprovider/providers/oci/node_info_controller_test.go index 2299ac326c..d98be0d718 100644 --- a/pkg/cloudprovider/providers/oci/node_info_controller_test.go +++ b/pkg/cloudprovider/providers/oci/node_info_controller_test.go @@ -4,11 +4,11 @@ import ( "reflect" "testing" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "go.uber.org/zap" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/pkg/cloudprovider/providers/oci/zones.go b/pkg/cloudprovider/providers/oci/zones.go index 51b42cdcc4..4e2a7868dc 100644 --- a/pkg/cloudprovider/providers/oci/zones.go +++ b/pkg/cloudprovider/providers/oci/zones.go @@ -18,7 +18,7 @@ import ( "context" "strings" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/types" diff --git a/pkg/csi/driver/controller.go b/pkg/csi/driver/controller.go index a052b70feb..630bb4788c 100644 --- a/pkg/csi/driver/controller.go +++ b/pkg/csi/driver/controller.go @@ -21,7 +21,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/util" "github.com/oracle/oci-cloud-controller-manager/pkg/util/disk" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" ) const ( diff --git a/pkg/csi/driver/controller_test.go b/pkg/csi/driver/controller_test.go index 636701c0a7..0fe0a83640 100644 --- a/pkg/csi/driver/controller_test.go +++ b/pkg/csi/driver/controller_test.go @@ -15,11 +15,11 @@ import ( providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/filestorage" - "github.com/oracle/oci-go-sdk/v49/identity" - "github.com/oracle/oci-go-sdk/v49/loadbalancer" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/filestorage" + "github.com/oracle/oci-go-sdk/v65/identity" + "github.com/oracle/oci-go-sdk/v65/loadbalancer" ) const ( diff --git a/pkg/flexvolume/block/driver.go b/pkg/flexvolume/block/driver.go index c6cf026410..2f7e77de18 100644 --- a/pkg/flexvolume/block/driver.go +++ b/pkg/flexvolume/block/driver.go @@ -36,7 +36,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/util" "github.com/oracle/oci-cloud-controller-manager/pkg/util/disk" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" ) const ( diff --git a/pkg/metrics/pusher.go b/pkg/metrics/pusher.go index ba81c2a7b6..a312bd8477 100644 --- a/pkg/metrics/pusher.go +++ b/pkg/metrics/pusher.go @@ -9,9 +9,9 @@ import ( "github.com/pkg/errors" "go.uber.org/zap" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" - "github.com/oracle/oci-go-sdk/v49/monitoring" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "github.com/oracle/oci-go-sdk/v65/monitoring" providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" ociclient "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" diff --git a/pkg/oci/client/block_storage.go b/pkg/oci/client/block_storage.go index bbb0c88857..7e5ce4502e 100644 --- a/pkg/oci/client/block_storage.go +++ b/pkg/oci/client/block_storage.go @@ -18,7 +18,7 @@ import ( "context" "time" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/util/wait" ) diff --git a/pkg/oci/client/client.go b/pkg/oci/client/client.go index 326df856e6..8ff3edc64c 100644 --- a/pkg/oci/client/client.go +++ b/pkg/oci/client/client.go @@ -19,12 +19,12 @@ import ( "net/http" "time" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/filestorage" - "github.com/oracle/oci-go-sdk/v49/identity" - "github.com/oracle/oci-go-sdk/v49/loadbalancer" - "github.com/oracle/oci-go-sdk/v49/networkloadbalancer" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/filestorage" + "github.com/oracle/oci-go-sdk/v65/identity" + "github.com/oracle/oci-go-sdk/v65/loadbalancer" + "github.com/oracle/oci-go-sdk/v65/networkloadbalancer" "github.com/pkg/errors" "go.uber.org/zap" "k8s.io/client-go/tools/cache" diff --git a/pkg/oci/client/client_test.go b/pkg/oci/client/client_test.go index 127e8929da..592fd0c22c 100644 --- a/pkg/oci/client/client_test.go +++ b/pkg/oci/client/client_test.go @@ -19,8 +19,8 @@ import ( "reflect" "testing" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/loadbalancer" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/loadbalancer" "k8s.io/client-go/util/flowcontrol" ) diff --git a/pkg/oci/client/compute.go b/pkg/oci/client/compute.go index bd3dbedbd7..ba5e626351 100644 --- a/pkg/oci/client/compute.go +++ b/pkg/oci/client/compute.go @@ -18,7 +18,7 @@ import ( "context" "strings" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" ) diff --git a/pkg/oci/client/errors.go b/pkg/oci/client/errors.go index da2e7575b9..dda27c82f3 100644 --- a/pkg/oci/client/errors.go +++ b/pkg/oci/client/errors.go @@ -19,7 +19,7 @@ import ( "net/http" "time" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/pkg/errors" ) diff --git a/pkg/oci/client/errors_test.go b/pkg/oci/client/errors_test.go index c51211ad87..e2a13fccb2 100644 --- a/pkg/oci/client/errors_test.go +++ b/pkg/oci/client/errors_test.go @@ -4,7 +4,7 @@ import ( "net/http" "testing" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) type mockServiceError struct { diff --git a/pkg/oci/client/file_storage.go b/pkg/oci/client/file_storage.go index bf5db55fbb..9bdcbf51b7 100644 --- a/pkg/oci/client/file_storage.go +++ b/pkg/oci/client/file_storage.go @@ -19,7 +19,7 @@ import ( "fmt" "time" - fss "github.com/oracle/oci-go-sdk/v49/filestorage" + fss "github.com/oracle/oci-go-sdk/v65/filestorage" "github.com/pkg/errors" "go.uber.org/zap" "k8s.io/apimachinery/pkg/util/wait" diff --git a/pkg/oci/client/identity.go b/pkg/oci/client/identity.go index 55a3967c48..d9dd47df61 100644 --- a/pkg/oci/client/identity.go +++ b/pkg/oci/client/identity.go @@ -19,7 +19,7 @@ import ( "fmt" "strings" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/identity" "github.com/pkg/errors" ) diff --git a/pkg/oci/client/load_balancer.go b/pkg/oci/client/load_balancer.go index 01d43b1c65..421b4216eb 100644 --- a/pkg/oci/client/load_balancer.go +++ b/pkg/oci/client/load_balancer.go @@ -20,8 +20,8 @@ import ( "k8s.io/apimachinery/pkg/util/wait" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/loadbalancer" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/loadbalancer" "github.com/pkg/errors" ) diff --git a/pkg/oci/client/metrics.go b/pkg/oci/client/metrics.go index 21d80a40bf..88b1334c0f 100644 --- a/pkg/oci/client/metrics.go +++ b/pkg/oci/client/metrics.go @@ -17,7 +17,7 @@ package client import ( "strconv" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/prometheus/client_golang/prometheus" ) diff --git a/pkg/oci/client/network_load_balancer.go b/pkg/oci/client/network_load_balancer.go index f3b3b40761..d3312ec652 100644 --- a/pkg/oci/client/network_load_balancer.go +++ b/pkg/oci/client/network_load_balancer.go @@ -19,8 +19,8 @@ import ( "k8s.io/apimachinery/pkg/util/wait" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/networkloadbalancer" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/networkloadbalancer" "github.com/pkg/errors" ) diff --git a/pkg/oci/client/networking.go b/pkg/oci/client/networking.go index 6945f16fed..7d74b7b64e 100644 --- a/pkg/oci/client/networking.go +++ b/pkg/oci/client/networking.go @@ -19,7 +19,7 @@ import ( "fmt" "net" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" ) diff --git a/pkg/oci/client/utils.go b/pkg/oci/client/utils.go index 6552f2142d..bffa9ba38a 100644 --- a/pkg/oci/client/utils.go +++ b/pkg/oci/client/utils.go @@ -24,7 +24,7 @@ import ( "k8s.io/client-go/util/flowcontrol" providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) const ( diff --git a/pkg/oci/client/volume_attachment.go b/pkg/oci/client/volume_attachment.go index 885080c8a6..19e96b8185 100644 --- a/pkg/oci/client/volume_attachment.go +++ b/pkg/oci/client/volume_attachment.go @@ -18,7 +18,7 @@ import ( "context" "time" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" "k8s.io/apimachinery/pkg/util/wait" ) diff --git a/pkg/volume/provisioner/block/block.go b/pkg/volume/provisioner/block/block.go index df6003caa0..1b564fa8aa 100644 --- a/pkg/volume/provisioner/block/block.go +++ b/pkg/volume/provisioner/block/block.go @@ -32,9 +32,9 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/util" "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner/plugin" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/identity" ) const ( diff --git a/pkg/volume/provisioner/block/block_test.go b/pkg/volume/provisioner/block/block_test.go index d69ea7012f..136fe09492 100644 --- a/pkg/volume/provisioner/block/block_test.go +++ b/pkg/volume/provisioner/block/block_test.go @@ -21,10 +21,10 @@ import ( "time" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/filestorage" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/filestorage" + "github.com/oracle/oci-go-sdk/v65/identity" "go.uber.org/zap" v1 "k8s.io/api/core/v1" v12 "k8s.io/api/storage/v1" diff --git a/pkg/volume/provisioner/core/utils.go b/pkg/volume/provisioner/core/utils.go index 2f33debc80..4eee610d6a 100644 --- a/pkg/volume/provisioner/core/utils.go +++ b/pkg/volume/provisioner/core/utils.go @@ -18,7 +18,7 @@ import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/identity" "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/util/sets" diff --git a/pkg/volume/provisioner/fss/fss.go b/pkg/volume/provisioner/fss/fss.go index dd21580064..0020943c4a 100644 --- a/pkg/volume/provisioner/fss/fss.go +++ b/pkg/volume/provisioner/fss/fss.go @@ -23,8 +23,8 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner" "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner/plugin" - fss "github.com/oracle/oci-go-sdk/v49/filestorage" - "github.com/oracle/oci-go-sdk/v49/identity" + fss "github.com/oracle/oci-go-sdk/v65/filestorage" + "github.com/oracle/oci-go-sdk/v65/identity" "github.com/pkg/errors" "go.uber.org/zap" v1 "k8s.io/api/core/v1" diff --git a/pkg/volume/provisioner/fss/fss_test.go b/pkg/volume/provisioner/fss/fss_test.go index 2900cd072a..4edf92cb3e 100644 --- a/pkg/volume/provisioner/fss/fss_test.go +++ b/pkg/volume/provisioner/fss/fss_test.go @@ -22,10 +22,10 @@ import ( v12 "k8s.io/api/storage/v1" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/filestorage" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/filestorage" + "github.com/oracle/oci-go-sdk/v65/identity" "go.uber.org/zap" "go.uber.org/zap/zaptest" v1 "k8s.io/api/core/v1" diff --git a/pkg/volume/provisioner/plugin/plugin.go b/pkg/volume/provisioner/plugin/plugin.go index 56b7debd64..81f407d9f5 100644 --- a/pkg/volume/provisioner/plugin/plugin.go +++ b/pkg/volume/provisioner/plugin/plugin.go @@ -15,7 +15,7 @@ package plugin import ( - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/identity" "k8s.io/api/core/v1" "sigs.k8s.io/sig-storage-lib-external-provisioner/v8/controller" ) diff --git a/test/e2e/cloud-provider-oci/setup.go b/test/e2e/cloud-provider-oci/setup.go index 8f3b19b32d..4e1f91cc8e 100644 --- a/test/e2e/cloud-provider-oci/setup.go +++ b/test/e2e/cloud-provider-oci/setup.go @@ -4,7 +4,7 @@ import ( "github.com/onsi/ginkgo" . "github.com/onsi/gomega" sharedfw "github.com/oracle/oci-cloud-controller-manager/test/e2e/framework" - oke "github.com/oracle/oci-go-sdk/v49/containerengine" + oke "github.com/oracle/oci-go-sdk/v65/containerengine" ) var setupF *sharedfw.Framework diff --git a/test/e2e/framework/backup_util.go b/test/e2e/framework/backup_util.go index 5f3c1d0498..4cf3ebbed3 100644 --- a/test/e2e/framework/backup_util.go +++ b/test/e2e/framework/backup_util.go @@ -21,7 +21,7 @@ import ( . "github.com/onsi/ginkgo" "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner/block" - ocicore "github.com/oracle/oci-go-sdk/v49/core" + ocicore "github.com/oracle/oci-go-sdk/v65/core" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/wait" diff --git a/test/e2e/framework/cloud_provider_framework.go b/test/e2e/framework/cloud_provider_framework.go index 0c23b65473..8f8ae3b727 100644 --- a/test/e2e/framework/cloud_provider_framework.go +++ b/test/e2e/framework/cloud_provider_framework.go @@ -23,7 +23,7 @@ import ( "strings" "time" - ocicore "github.com/oracle/oci-go-sdk/v49/core" + ocicore "github.com/oracle/oci-go-sdk/v65/core" utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/client-go/informers" "k8s.io/client-go/tools/cache" @@ -33,8 +33,8 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci" // register oci cloud provider providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" "go.uber.org/zap" v1 "k8s.io/api/core/v1" diff --git a/test/e2e/framework/cluster.go b/test/e2e/framework/cluster.go index cdf0a584d8..8f5cbe991d 100644 --- a/test/e2e/framework/cluster.go +++ b/test/e2e/framework/cluster.go @@ -9,8 +9,8 @@ import ( "time" . "github.com/onsi/gomega" - "github.com/oracle/oci-go-sdk/v49/common" - oke "github.com/oracle/oci-go-sdk/v49/containerengine" + "github.com/oracle/oci-go-sdk/v65/common" + oke "github.com/oracle/oci-go-sdk/v65/containerengine" ) // GetClusterOptions requires a clusterOptionId as input (must be "all" right now) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 92a1b3a8eb..a8348c5b3e 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -14,10 +14,10 @@ import ( imageutils "k8s.io/kubernetes/test/utils/image" . "github.com/onsi/gomega" - "github.com/oracle/oci-go-sdk/v49/common" - oke "github.com/oracle/oci-go-sdk/v49/containerengine" - "github.com/oracle/oci-go-sdk/v49/core" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/common" + oke "github.com/oracle/oci-go-sdk/v65/containerengine" + "github.com/oracle/oci-go-sdk/v65/core" + "github.com/oracle/oci-go-sdk/v65/identity" "gopkg.in/yaml.v2" ) diff --git a/test/e2e/framework/node.go b/test/e2e/framework/node.go index ba2091fa8c..1a0ddf3ef1 100644 --- a/test/e2e/framework/node.go +++ b/test/e2e/framework/node.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/gomega" - "github.com/oracle/oci-go-sdk/v49/core" + "github.com/oracle/oci-go-sdk/v65/core" ) // GetInstance return the specified instance from OCI compute. diff --git a/test/e2e/framework/nodepool.go b/test/e2e/framework/nodepool.go index 049a8d3a31..37dd98b635 100644 --- a/test/e2e/framework/nodepool.go +++ b/test/e2e/framework/nodepool.go @@ -10,8 +10,8 @@ import ( . "github.com/onsi/gomega" - "github.com/oracle/oci-go-sdk/v49/common" - oke "github.com/oracle/oci-go-sdk/v49/containerengine" + "github.com/oracle/oci-go-sdk/v65/common" + oke "github.com/oracle/oci-go-sdk/v65/containerengine" ) var ( diff --git a/test/e2e/framework/oad.go b/test/e2e/framework/oad.go index 43c137c13c..a448588697 100644 --- a/test/e2e/framework/oad.go +++ b/test/e2e/framework/oad.go @@ -3,7 +3,7 @@ package framework import ( "context" - "github.com/oracle/oci-go-sdk/v49/identity" + "github.com/oracle/oci-go-sdk/v65/identity" . "github.com/onsi/gomega" ) diff --git a/test/e2e/framework/pvc_util.go b/test/e2e/framework/pvc_util.go index 7bcea643d3..7de6d6b2ab 100644 --- a/test/e2e/framework/pvc_util.go +++ b/test/e2e/framework/pvc_util.go @@ -39,7 +39,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/csi/driver" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner/plugin" - ocicore "github.com/oracle/oci-go-sdk/v49/core" + ocicore "github.com/oracle/oci-go-sdk/v65/core" ) const ( diff --git a/test/e2e/framework/seclist_util.go b/test/e2e/framework/seclist_util.go index e8dad92445..3aa6ff013f 100644 --- a/test/e2e/framework/seclist_util.go +++ b/test/e2e/framework/seclist_util.go @@ -21,7 +21,7 @@ import ( "time" client "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - core "github.com/oracle/oci-go-sdk/v49/core" + core "github.com/oracle/oci-go-sdk/v65/core" ) // CountSinglePortSecListRules counts the number of 'single port' diff --git a/test/e2e/framework/serviceerror.go b/test/e2e/framework/serviceerror.go index 29a0477a40..9f9e65d7f6 100644 --- a/test/e2e/framework/serviceerror.go +++ b/test/e2e/framework/serviceerror.go @@ -3,7 +3,7 @@ package framework import ( "fmt" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) type serviceerror struct { diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index b255480937..8cf4a484b5 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) func nowStamp() string { diff --git a/test/e2e/framework/validation.go b/test/e2e/framework/validation.go index 7e18665027..5212bf1fdc 100644 --- a/test/e2e/framework/validation.go +++ b/test/e2e/framework/validation.go @@ -6,8 +6,8 @@ import ( . "github.com/onsi/gomega" - oke "github.com/oracle/oci-go-sdk/v49/containerengine" - "github.com/oracle/oci-go-sdk/v49/core" + oke "github.com/oracle/oci-go-sdk/v65/containerengine" + "github.com/oracle/oci-go-sdk/v65/core" ) // CrossValidateCluster checks a Cluster is consistent internally, and diff --git a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/configuration_provider.go b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/configuration_provider.go index 827e8450ca..c73fd3bddd 100644 --- a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/configuration_provider.go +++ b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/configuration_provider.go @@ -8,7 +8,7 @@ import ( "sync" "time" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "github.com/pkg/errors" log "github.com/sirupsen/logrus" "k8s.io/apimachinery/pkg/util/wait" diff --git a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/jwt.go b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/jwt.go index ebb262fa9a..84ce45cc47 100644 --- a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/jwt.go +++ b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals/jwt.go @@ -10,7 +10,7 @@ import ( "strings" "time" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) type securityToken interface { diff --git a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools.pb.go b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools.pb.go index 8feed55492..d06155003a 100644 --- a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools.pb.go +++ b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools.pb.go @@ -305,6 +305,8 @@ type SubnetInfo struct { ID string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"` AD string `protobuf:"bytes,2,opt,name=AD" json:"AD,omitempty"` ProhibitPublicIpOnVnic bool `protobuf:"varint,3,opt,name=ProhibitPublicIpOnVnic" json:"ProhibitPublicIpOnVnic,omitempty"` + CapacityReservationId string `protobuf:"bytes,4,opt,name=CapacityReservationId" json:"CapacityReservationId,omitempty"` + FaultDomains []string `protobuf:"bytes,5,opt,name=FaultDomains" json:"FaultDomains,omitempty"` } func (m *SubnetInfo) Reset() { *m = SubnetInfo{} } @@ -333,6 +335,20 @@ func (m *SubnetInfo) GetProhibitPublicIpOnVnic() bool { return false } +func (m *SubnetInfo) GetCapacityReservationId() string { + if m != nil { + return m.CapacityReservationId + } + return "" +} + +func (m *SubnetInfo) GetFaultDomains() []string { + if m != nil { + return m.FaultDomains + } + return nil +} + type NewRequest struct { ClusterID string `protobuf:"bytes,2,opt,name=ClusterID" json:"ClusterID,omitempty"` CompartmentID string `protobuf:"bytes,3,opt,name=CompartmentID" json:"CompartmentID,omitempty"` diff --git a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools_v3.go b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools_v3.go index da8e70f0f1..9d4bb8093c 100644 --- a/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools_v3.go +++ b/vendor/bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodepools/nodepools_v3.go @@ -3,12 +3,11 @@ package nodepools import ( "encoding/json" "fmt" + "github.com/golang/protobuf/ptypes/wrappers" + "github.com/oracle/oci-go-sdk/v65/common" "sort" "strings" - "github.com/golang/protobuf/ptypes/wrappers" - "github.com/oracle/oci-go-sdk/v49/common" - "bitbucket.oci.oraclecorp.com/oke/oke-common/protobuf" nodes "bitbucket.oci.oraclecorp.com/oke/oke-common/types/nodes" ) diff --git a/vendor/github.com/gofrs/flock/.gitignore b/vendor/github.com/gofrs/flock/.gitignore new file mode 100644 index 0000000000..daf913b1b3 --- /dev/null +++ b/vendor/github.com/gofrs/flock/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/vendor/github.com/gofrs/flock/.travis.yml b/vendor/github.com/gofrs/flock/.travis.yml new file mode 100644 index 0000000000..b16d040fa8 --- /dev/null +++ b/vendor/github.com/gofrs/flock/.travis.yml @@ -0,0 +1,10 @@ +language: go +go: + - 1.14.x + - 1.15.x +script: go test -v -check.vv -race ./... +sudo: false +notifications: + email: + on_success: never + on_failure: always diff --git a/vendor/github.com/gofrs/flock/LICENSE b/vendor/github.com/gofrs/flock/LICENSE new file mode 100644 index 0000000000..8b8ff36fe4 --- /dev/null +++ b/vendor/github.com/gofrs/flock/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2015-2020, Tim Heckman +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of gofrs nor the names of its contributors may be used + to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/gofrs/flock/README.md b/vendor/github.com/gofrs/flock/README.md new file mode 100644 index 0000000000..71ce63692e --- /dev/null +++ b/vendor/github.com/gofrs/flock/README.md @@ -0,0 +1,41 @@ +# flock +[![TravisCI Build Status](https://img.shields.io/travis/gofrs/flock/master.svg?style=flat)](https://travis-ci.org/gofrs/flock) +[![GoDoc](https://img.shields.io/badge/godoc-flock-blue.svg?style=flat)](https://godoc.org/github.com/gofrs/flock) +[![License](https://img.shields.io/badge/license-BSD_3--Clause-brightgreen.svg?style=flat)](https://github.com/gofrs/flock/blob/master/LICENSE) +[![Go Report Card](https://goreportcard.com/badge/github.com/gofrs/flock)](https://goreportcard.com/report/github.com/gofrs/flock) + +`flock` implements a thread-safe sync.Locker interface for file locking. It also +includes a non-blocking TryLock() function to allow locking without blocking execution. + +## License +`flock` is released under the BSD 3-Clause License. See the `LICENSE` file for more details. + +## Go Compatibility +This package makes use of the `context` package that was introduced in Go 1.7. As such, this +package has an implicit dependency on Go 1.7+. + +## Installation +``` +go get -u github.com/gofrs/flock +``` + +## Usage +```Go +import "github.com/gofrs/flock" + +fileLock := flock.New("/var/lock/go-lock.lock") + +locked, err := fileLock.TryLock() + +if err != nil { + // handle locking error +} + +if locked { + // do work + fileLock.Unlock() +} +``` + +For more detailed usage information take a look at the package API docs on +[GoDoc](https://godoc.org/github.com/gofrs/flock). diff --git a/vendor/github.com/gofrs/flock/appveyor.yml b/vendor/github.com/gofrs/flock/appveyor.yml new file mode 100644 index 0000000000..909b4bf7cb --- /dev/null +++ b/vendor/github.com/gofrs/flock/appveyor.yml @@ -0,0 +1,25 @@ +version: '{build}' + +build: false +deploy: false + +clone_folder: 'c:\gopath\src\github.com\gofrs\flock' + +environment: + GOPATH: 'c:\gopath' + GOVERSION: '1.15' + +init: + - git config --global core.autocrlf input + +install: + - rmdir c:\go /s /q + - appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi + - msiexec /i go%GOVERSION%.windows-amd64.msi /q + - set Path=c:\go\bin;c:\gopath\bin;%Path% + - go version + - go env + +test_script: + - go get -t ./... + - go test -race -v ./... diff --git a/vendor/github.com/gofrs/flock/flock.go b/vendor/github.com/gofrs/flock/flock.go new file mode 100644 index 0000000000..95c784ca50 --- /dev/null +++ b/vendor/github.com/gofrs/flock/flock.go @@ -0,0 +1,144 @@ +// Copyright 2015 Tim Heckman. All rights reserved. +// Use of this source code is governed by the BSD 3-Clause +// license that can be found in the LICENSE file. + +// Package flock implements a thread-safe interface for file locking. +// It also includes a non-blocking TryLock() function to allow locking +// without blocking execution. +// +// Package flock is released under the BSD 3-Clause License. See the LICENSE file +// for more details. +// +// While using this library, remember that the locking behaviors are not +// guaranteed to be the same on each platform. For example, some UNIX-like +// operating systems will transparently convert a shared lock to an exclusive +// lock. If you Unlock() the flock from a location where you believe that you +// have the shared lock, you may accidentally drop the exclusive lock. +package flock + +import ( + "context" + "os" + "runtime" + "sync" + "time" +) + +// Flock is the struct type to handle file locking. All fields are unexported, +// with access to some of the fields provided by getter methods (Path() and Locked()). +type Flock struct { + path string + m sync.RWMutex + fh *os.File + l bool + r bool +} + +// New returns a new instance of *Flock. The only parameter +// it takes is the path to the desired lockfile. +func New(path string) *Flock { + return &Flock{path: path} +} + +// NewFlock returns a new instance of *Flock. The only parameter +// it takes is the path to the desired lockfile. +// +// Deprecated: Use New instead. +func NewFlock(path string) *Flock { + return New(path) +} + +// Close is equivalent to calling Unlock. +// +// This will release the lock and close the underlying file descriptor. +// It will not remove the file from disk, that's up to your application. +func (f *Flock) Close() error { + return f.Unlock() +} + +// Path returns the path as provided in NewFlock(). +func (f *Flock) Path() string { + return f.path +} + +// Locked returns the lock state (locked: true, unlocked: false). +// +// Warning: by the time you use the returned value, the state may have changed. +func (f *Flock) Locked() bool { + f.m.RLock() + defer f.m.RUnlock() + return f.l +} + +// RLocked returns the read lock state (locked: true, unlocked: false). +// +// Warning: by the time you use the returned value, the state may have changed. +func (f *Flock) RLocked() bool { + f.m.RLock() + defer f.m.RUnlock() + return f.r +} + +func (f *Flock) String() string { + return f.path +} + +// TryLockContext repeatedly tries to take an exclusive lock until one of the +// conditions is met: TryLock succeeds, TryLock fails with error, or Context +// Done channel is closed. +func (f *Flock) TryLockContext(ctx context.Context, retryDelay time.Duration) (bool, error) { + return tryCtx(ctx, f.TryLock, retryDelay) +} + +// TryRLockContext repeatedly tries to take a shared lock until one of the +// conditions is met: TryRLock succeeds, TryRLock fails with error, or Context +// Done channel is closed. +func (f *Flock) TryRLockContext(ctx context.Context, retryDelay time.Duration) (bool, error) { + return tryCtx(ctx, f.TryRLock, retryDelay) +} + +func tryCtx(ctx context.Context, fn func() (bool, error), retryDelay time.Duration) (bool, error) { + if ctx.Err() != nil { + return false, ctx.Err() + } + for { + if ok, err := fn(); ok || err != nil { + return ok, err + } + select { + case <-ctx.Done(): + return false, ctx.Err() + case <-time.After(retryDelay): + // try again + } + } +} + +func (f *Flock) setFh() error { + // open a new os.File instance + // create it if it doesn't exist, and open the file read-only. + flags := os.O_CREATE + if runtime.GOOS == "aix" { + // AIX cannot preform write-lock (ie exclusive) on a + // read-only file. + flags |= os.O_RDWR + } else { + flags |= os.O_RDONLY + } + fh, err := os.OpenFile(f.path, flags, os.FileMode(0600)) + if err != nil { + return err + } + + // set the filehandle on the struct + f.fh = fh + return nil +} + +// ensure the file handle is closed if no lock is held +func (f *Flock) ensureFhState() { + if !f.l && !f.r && f.fh != nil { + f.fh.Close() + f.fh = nil + } +} diff --git a/vendor/github.com/gofrs/flock/flock_aix.go b/vendor/github.com/gofrs/flock/flock_aix.go new file mode 100644 index 0000000000..7277c1b6b2 --- /dev/null +++ b/vendor/github.com/gofrs/flock/flock_aix.go @@ -0,0 +1,281 @@ +// Copyright 2019 Tim Heckman. All rights reserved. Use of this source code is +// governed by the BSD 3-Clause license that can be found in the LICENSE file. + +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// This code implements the filelock API using POSIX 'fcntl' locks, which attach +// to an (inode, process) pair rather than a file descriptor. To avoid unlocking +// files prematurely when the same file is opened through different descriptors, +// we allow only one read-lock at a time. +// +// This code is adapted from the Go package: +// cmd/go/internal/lockedfile/internal/filelock + +//+build aix + +package flock + +import ( + "errors" + "io" + "os" + "sync" + "syscall" + + "golang.org/x/sys/unix" +) + +type lockType int16 + +const ( + readLock lockType = unix.F_RDLCK + writeLock lockType = unix.F_WRLCK +) + +type cmdType int + +const ( + tryLock cmdType = unix.F_SETLK + waitLock cmdType = unix.F_SETLKW +) + +type inode = uint64 + +type inodeLock struct { + owner *Flock + queue []<-chan *Flock +} + +var ( + mu sync.Mutex + inodes = map[*Flock]inode{} + locks = map[inode]inodeLock{} +) + +// Lock is a blocking call to try and take an exclusive file lock. It will wait +// until it is able to obtain the exclusive file lock. It's recommended that +// TryLock() be used over this function. This function may block the ability to +// query the current Locked() or RLocked() status due to a RW-mutex lock. +// +// If we are already exclusive-locked, this function short-circuits and returns +// immediately assuming it can take the mutex lock. +// +// If the *Flock has a shared lock (RLock), this may transparently replace the +// shared lock with an exclusive lock on some UNIX-like operating systems. Be +// careful when using exclusive locks in conjunction with shared locks +// (RLock()), because calling Unlock() may accidentally release the exclusive +// lock that was once a shared lock. +func (f *Flock) Lock() error { + return f.lock(&f.l, writeLock) +} + +// RLock is a blocking call to try and take a shared file lock. It will wait +// until it is able to obtain the shared file lock. It's recommended that +// TryRLock() be used over this function. This function may block the ability to +// query the current Locked() or RLocked() status due to a RW-mutex lock. +// +// If we are already shared-locked, this function short-circuits and returns +// immediately assuming it can take the mutex lock. +func (f *Flock) RLock() error { + return f.lock(&f.r, readLock) +} + +func (f *Flock) lock(locked *bool, flag lockType) error { + f.m.Lock() + defer f.m.Unlock() + + if *locked { + return nil + } + + if f.fh == nil { + if err := f.setFh(); err != nil { + return err + } + defer f.ensureFhState() + } + + if _, err := f.doLock(waitLock, flag, true); err != nil { + return err + } + + *locked = true + return nil +} + +func (f *Flock) doLock(cmd cmdType, lt lockType, blocking bool) (bool, error) { + // POSIX locks apply per inode and process, and the lock for an inode is + // released when *any* descriptor for that inode is closed. So we need to + // synchronize access to each inode internally, and must serialize lock and + // unlock calls that refer to the same inode through different descriptors. + fi, err := f.fh.Stat() + if err != nil { + return false, err + } + ino := inode(fi.Sys().(*syscall.Stat_t).Ino) + + mu.Lock() + if i, dup := inodes[f]; dup && i != ino { + mu.Unlock() + return false, &os.PathError{ + Path: f.Path(), + Err: errors.New("inode for file changed since last Lock or RLock"), + } + } + + inodes[f] = ino + + var wait chan *Flock + l := locks[ino] + if l.owner == f { + // This file already owns the lock, but the call may change its lock type. + } else if l.owner == nil { + // No owner: it's ours now. + l.owner = f + } else if !blocking { + // Already owned: cannot take the lock. + mu.Unlock() + return false, nil + } else { + // Already owned: add a channel to wait on. + wait = make(chan *Flock) + l.queue = append(l.queue, wait) + } + locks[ino] = l + mu.Unlock() + + if wait != nil { + wait <- f + } + + err = setlkw(f.fh.Fd(), cmd, lt) + + if err != nil { + f.doUnlock() + if cmd == tryLock && err == unix.EACCES { + return false, nil + } + return false, err + } + + return true, nil +} + +func (f *Flock) Unlock() error { + f.m.Lock() + defer f.m.Unlock() + + // if we aren't locked or if the lockfile instance is nil + // just return a nil error because we are unlocked + if (!f.l && !f.r) || f.fh == nil { + return nil + } + + if err := f.doUnlock(); err != nil { + return err + } + + f.fh.Close() + + f.l = false + f.r = false + f.fh = nil + + return nil +} + +func (f *Flock) doUnlock() (err error) { + var owner *Flock + mu.Lock() + ino, ok := inodes[f] + if ok { + owner = locks[ino].owner + } + mu.Unlock() + + if owner == f { + err = setlkw(f.fh.Fd(), waitLock, unix.F_UNLCK) + } + + mu.Lock() + l := locks[ino] + if len(l.queue) == 0 { + // No waiters: remove the map entry. + delete(locks, ino) + } else { + // The first waiter is sending us their file now. + // Receive it and update the queue. + l.owner = <-l.queue[0] + l.queue = l.queue[1:] + locks[ino] = l + } + delete(inodes, f) + mu.Unlock() + + return err +} + +// TryLock is the preferred function for taking an exclusive file lock. This +// function takes an RW-mutex lock before it tries to lock the file, so there is +// the possibility that this function may block for a short time if another +// goroutine is trying to take any action. +// +// The actual file lock is non-blocking. If we are unable to get the exclusive +// file lock, the function will return false instead of waiting for the lock. If +// we get the lock, we also set the *Flock instance as being exclusive-locked. +func (f *Flock) TryLock() (bool, error) { + return f.try(&f.l, writeLock) +} + +// TryRLock is the preferred function for taking a shared file lock. This +// function takes an RW-mutex lock before it tries to lock the file, so there is +// the possibility that this function may block for a short time if another +// goroutine is trying to take any action. +// +// The actual file lock is non-blocking. If we are unable to get the shared file +// lock, the function will return false instead of waiting for the lock. If we +// get the lock, we also set the *Flock instance as being share-locked. +func (f *Flock) TryRLock() (bool, error) { + return f.try(&f.r, readLock) +} + +func (f *Flock) try(locked *bool, flag lockType) (bool, error) { + f.m.Lock() + defer f.m.Unlock() + + if *locked { + return true, nil + } + + if f.fh == nil { + if err := f.setFh(); err != nil { + return false, err + } + defer f.ensureFhState() + } + + haslock, err := f.doLock(tryLock, flag, false) + if err != nil { + return false, err + } + + *locked = haslock + return haslock, nil +} + +// setlkw calls FcntlFlock with cmd for the entire file indicated by fd. +func setlkw(fd uintptr, cmd cmdType, lt lockType) error { + for { + err := unix.FcntlFlock(fd, int(cmd), &unix.Flock_t{ + Type: int16(lt), + Whence: io.SeekStart, + Start: 0, + Len: 0, // All bytes. + }) + if err != unix.EINTR { + return err + } + } +} diff --git a/vendor/github.com/gofrs/flock/flock_unix.go b/vendor/github.com/gofrs/flock/flock_unix.go new file mode 100644 index 0000000000..c315a3e290 --- /dev/null +++ b/vendor/github.com/gofrs/flock/flock_unix.go @@ -0,0 +1,197 @@ +// Copyright 2015 Tim Heckman. All rights reserved. +// Use of this source code is governed by the BSD 3-Clause +// license that can be found in the LICENSE file. + +// +build !aix,!windows + +package flock + +import ( + "os" + "syscall" +) + +// Lock is a blocking call to try and take an exclusive file lock. It will wait +// until it is able to obtain the exclusive file lock. It's recommended that +// TryLock() be used over this function. This function may block the ability to +// query the current Locked() or RLocked() status due to a RW-mutex lock. +// +// If we are already exclusive-locked, this function short-circuits and returns +// immediately assuming it can take the mutex lock. +// +// If the *Flock has a shared lock (RLock), this may transparently replace the +// shared lock with an exclusive lock on some UNIX-like operating systems. Be +// careful when using exclusive locks in conjunction with shared locks +// (RLock()), because calling Unlock() may accidentally release the exclusive +// lock that was once a shared lock. +func (f *Flock) Lock() error { + return f.lock(&f.l, syscall.LOCK_EX) +} + +// RLock is a blocking call to try and take a shared file lock. It will wait +// until it is able to obtain the shared file lock. It's recommended that +// TryRLock() be used over this function. This function may block the ability to +// query the current Locked() or RLocked() status due to a RW-mutex lock. +// +// If we are already shared-locked, this function short-circuits and returns +// immediately assuming it can take the mutex lock. +func (f *Flock) RLock() error { + return f.lock(&f.r, syscall.LOCK_SH) +} + +func (f *Flock) lock(locked *bool, flag int) error { + f.m.Lock() + defer f.m.Unlock() + + if *locked { + return nil + } + + if f.fh == nil { + if err := f.setFh(); err != nil { + return err + } + defer f.ensureFhState() + } + + if err := syscall.Flock(int(f.fh.Fd()), flag); err != nil { + shouldRetry, reopenErr := f.reopenFDOnError(err) + if reopenErr != nil { + return reopenErr + } + + if !shouldRetry { + return err + } + + if err = syscall.Flock(int(f.fh.Fd()), flag); err != nil { + return err + } + } + + *locked = true + return nil +} + +// Unlock is a function to unlock the file. This file takes a RW-mutex lock, so +// while it is running the Locked() and RLocked() functions will be blocked. +// +// This function short-circuits if we are unlocked already. If not, it calls +// syscall.LOCK_UN on the file and closes the file descriptor. It does not +// remove the file from disk. It's up to your application to do. +// +// Please note, if your shared lock became an exclusive lock this may +// unintentionally drop the exclusive lock if called by the consumer that +// believes they have a shared lock. Please see Lock() for more details. +func (f *Flock) Unlock() error { + f.m.Lock() + defer f.m.Unlock() + + // if we aren't locked or if the lockfile instance is nil + // just return a nil error because we are unlocked + if (!f.l && !f.r) || f.fh == nil { + return nil + } + + // mark the file as unlocked + if err := syscall.Flock(int(f.fh.Fd()), syscall.LOCK_UN); err != nil { + return err + } + + f.fh.Close() + + f.l = false + f.r = false + f.fh = nil + + return nil +} + +// TryLock is the preferred function for taking an exclusive file lock. This +// function takes an RW-mutex lock before it tries to lock the file, so there is +// the possibility that this function may block for a short time if another +// goroutine is trying to take any action. +// +// The actual file lock is non-blocking. If we are unable to get the exclusive +// file lock, the function will return false instead of waiting for the lock. If +// we get the lock, we also set the *Flock instance as being exclusive-locked. +func (f *Flock) TryLock() (bool, error) { + return f.try(&f.l, syscall.LOCK_EX) +} + +// TryRLock is the preferred function for taking a shared file lock. This +// function takes an RW-mutex lock before it tries to lock the file, so there is +// the possibility that this function may block for a short time if another +// goroutine is trying to take any action. +// +// The actual file lock is non-blocking. If we are unable to get the shared file +// lock, the function will return false instead of waiting for the lock. If we +// get the lock, we also set the *Flock instance as being share-locked. +func (f *Flock) TryRLock() (bool, error) { + return f.try(&f.r, syscall.LOCK_SH) +} + +func (f *Flock) try(locked *bool, flag int) (bool, error) { + f.m.Lock() + defer f.m.Unlock() + + if *locked { + return true, nil + } + + if f.fh == nil { + if err := f.setFh(); err != nil { + return false, err + } + defer f.ensureFhState() + } + + var retried bool +retry: + err := syscall.Flock(int(f.fh.Fd()), flag|syscall.LOCK_NB) + + switch err { + case syscall.EWOULDBLOCK: + return false, nil + case nil: + *locked = true + return true, nil + } + if !retried { + if shouldRetry, reopenErr := f.reopenFDOnError(err); reopenErr != nil { + return false, reopenErr + } else if shouldRetry { + retried = true + goto retry + } + } + + return false, err +} + +// reopenFDOnError determines whether we should reopen the file handle +// in readwrite mode and try again. This comes from util-linux/sys-utils/flock.c: +// Since Linux 3.4 (commit 55725513) +// Probably NFSv4 where flock() is emulated by fcntl(). +func (f *Flock) reopenFDOnError(err error) (bool, error) { + if err != syscall.EIO && err != syscall.EBADF { + return false, nil + } + if st, err := f.fh.Stat(); err == nil { + // if the file is able to be read and written + if st.Mode()&0600 == 0600 { + f.fh.Close() + f.fh = nil + + // reopen in read-write mode and set the filehandle + fh, err := os.OpenFile(f.path, os.O_CREATE|os.O_RDWR, os.FileMode(0600)) + if err != nil { + return false, err + } + f.fh = fh + return true, nil + } + } + + return false, nil +} diff --git a/vendor/github.com/gofrs/flock/flock_winapi.go b/vendor/github.com/gofrs/flock/flock_winapi.go new file mode 100644 index 0000000000..fe405a255a --- /dev/null +++ b/vendor/github.com/gofrs/flock/flock_winapi.go @@ -0,0 +1,76 @@ +// Copyright 2015 Tim Heckman. All rights reserved. +// Use of this source code is governed by the BSD 3-Clause +// license that can be found in the LICENSE file. + +// +build windows + +package flock + +import ( + "syscall" + "unsafe" +) + +var ( + kernel32, _ = syscall.LoadLibrary("kernel32.dll") + procLockFileEx, _ = syscall.GetProcAddress(kernel32, "LockFileEx") + procUnlockFileEx, _ = syscall.GetProcAddress(kernel32, "UnlockFileEx") +) + +const ( + winLockfileFailImmediately = 0x00000001 + winLockfileExclusiveLock = 0x00000002 + winLockfileSharedLock = 0x00000000 +) + +// Use of 0x00000000 for the shared lock is a guess based on some the MS Windows +// `LockFileEX` docs, which document the `LOCKFILE_EXCLUSIVE_LOCK` flag as: +// +// > The function requests an exclusive lock. Otherwise, it requests a shared +// > lock. +// +// https://msdn.microsoft.com/en-us/library/windows/desktop/aa365203(v=vs.85).aspx + +func lockFileEx(handle syscall.Handle, flags uint32, reserved uint32, numberOfBytesToLockLow uint32, numberOfBytesToLockHigh uint32, offset *syscall.Overlapped) (bool, syscall.Errno) { + r1, _, errNo := syscall.Syscall6( + uintptr(procLockFileEx), + 6, + uintptr(handle), + uintptr(flags), + uintptr(reserved), + uintptr(numberOfBytesToLockLow), + uintptr(numberOfBytesToLockHigh), + uintptr(unsafe.Pointer(offset))) + + if r1 != 1 { + if errNo == 0 { + return false, syscall.EINVAL + } + + return false, errNo + } + + return true, 0 +} + +func unlockFileEx(handle syscall.Handle, reserved uint32, numberOfBytesToLockLow uint32, numberOfBytesToLockHigh uint32, offset *syscall.Overlapped) (bool, syscall.Errno) { + r1, _, errNo := syscall.Syscall6( + uintptr(procUnlockFileEx), + 5, + uintptr(handle), + uintptr(reserved), + uintptr(numberOfBytesToLockLow), + uintptr(numberOfBytesToLockHigh), + uintptr(unsafe.Pointer(offset)), + 0) + + if r1 != 1 { + if errNo == 0 { + return false, syscall.EINVAL + } + + return false, errNo + } + + return true, 0 +} diff --git a/vendor/github.com/gofrs/flock/flock_windows.go b/vendor/github.com/gofrs/flock/flock_windows.go new file mode 100644 index 0000000000..ddb534ccef --- /dev/null +++ b/vendor/github.com/gofrs/flock/flock_windows.go @@ -0,0 +1,142 @@ +// Copyright 2015 Tim Heckman. All rights reserved. +// Use of this source code is governed by the BSD 3-Clause +// license that can be found in the LICENSE file. + +package flock + +import ( + "syscall" +) + +// ErrorLockViolation is the error code returned from the Windows syscall when a +// lock would block and you ask to fail immediately. +const ErrorLockViolation syscall.Errno = 0x21 // 33 + +// Lock is a blocking call to try and take an exclusive file lock. It will wait +// until it is able to obtain the exclusive file lock. It's recommended that +// TryLock() be used over this function. This function may block the ability to +// query the current Locked() or RLocked() status due to a RW-mutex lock. +// +// If we are already locked, this function short-circuits and returns +// immediately assuming it can take the mutex lock. +func (f *Flock) Lock() error { + return f.lock(&f.l, winLockfileExclusiveLock) +} + +// RLock is a blocking call to try and take a shared file lock. It will wait +// until it is able to obtain the shared file lock. It's recommended that +// TryRLock() be used over this function. This function may block the ability to +// query the current Locked() or RLocked() status due to a RW-mutex lock. +// +// If we are already locked, this function short-circuits and returns +// immediately assuming it can take the mutex lock. +func (f *Flock) RLock() error { + return f.lock(&f.r, winLockfileSharedLock) +} + +func (f *Flock) lock(locked *bool, flag uint32) error { + f.m.Lock() + defer f.m.Unlock() + + if *locked { + return nil + } + + if f.fh == nil { + if err := f.setFh(); err != nil { + return err + } + defer f.ensureFhState() + } + + if _, errNo := lockFileEx(syscall.Handle(f.fh.Fd()), flag, 0, 1, 0, &syscall.Overlapped{}); errNo > 0 { + return errNo + } + + *locked = true + return nil +} + +// Unlock is a function to unlock the file. This file takes a RW-mutex lock, so +// while it is running the Locked() and RLocked() functions will be blocked. +// +// This function short-circuits if we are unlocked already. If not, it calls +// UnlockFileEx() on the file and closes the file descriptor. It does not remove +// the file from disk. It's up to your application to do. +func (f *Flock) Unlock() error { + f.m.Lock() + defer f.m.Unlock() + + // if we aren't locked or if the lockfile instance is nil + // just return a nil error because we are unlocked + if (!f.l && !f.r) || f.fh == nil { + return nil + } + + // mark the file as unlocked + if _, errNo := unlockFileEx(syscall.Handle(f.fh.Fd()), 0, 1, 0, &syscall.Overlapped{}); errNo > 0 { + return errNo + } + + f.fh.Close() + + f.l = false + f.r = false + f.fh = nil + + return nil +} + +// TryLock is the preferred function for taking an exclusive file lock. This +// function does take a RW-mutex lock before it tries to lock the file, so there +// is the possibility that this function may block for a short time if another +// goroutine is trying to take any action. +// +// The actual file lock is non-blocking. If we are unable to get the exclusive +// file lock, the function will return false instead of waiting for the lock. If +// we get the lock, we also set the *Flock instance as being exclusive-locked. +func (f *Flock) TryLock() (bool, error) { + return f.try(&f.l, winLockfileExclusiveLock) +} + +// TryRLock is the preferred function for taking a shared file lock. This +// function does take a RW-mutex lock before it tries to lock the file, so there +// is the possibility that this function may block for a short time if another +// goroutine is trying to take any action. +// +// The actual file lock is non-blocking. If we are unable to get the shared file +// lock, the function will return false instead of waiting for the lock. If we +// get the lock, we also set the *Flock instance as being shared-locked. +func (f *Flock) TryRLock() (bool, error) { + return f.try(&f.r, winLockfileSharedLock) +} + +func (f *Flock) try(locked *bool, flag uint32) (bool, error) { + f.m.Lock() + defer f.m.Unlock() + + if *locked { + return true, nil + } + + if f.fh == nil { + if err := f.setFh(); err != nil { + return false, err + } + defer f.ensureFhState() + } + + _, errNo := lockFileEx(syscall.Handle(f.fh.Fd()), flag|winLockfileFailImmediately, 0, 1, 0, &syscall.Overlapped{}) + + if errNo > 0 { + if errNo == ErrorLockViolation || errNo == syscall.ERROR_IO_PENDING { + return false, nil + } + + return false, errNo + } + + *locked = true + + return true, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/configuration.go b/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/configuration.go deleted file mode 100644 index 2759310fad..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/configuration.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -package auth - -import ( - "crypto/rsa" - "fmt" - "github.com/oracle/oci-go-sdk/v49/common" -) - -type instancePrincipalConfigurationProvider struct { - keyProvider instancePrincipalKeyProvider - region *common.Region -} - -//defaultTokenPurpose used by the instance principal configuration provider when requesting instance principal tokens -const defaultTokenPurpose = "DEFAULT" - -//servicePrincipalTokenPurpose used by the instance principal configuration provider when requesting service principals tokens -const servicePrincipalTokenPurpose = "SERVICE_PRINCIPAL" - -//InstancePrincipalConfigurationProvider returns a configuration for instance principals -func InstancePrincipalConfigurationProvider() (common.ConfigurationProvider, error) { - return newInstancePrincipalConfigurationProvider("", defaultTokenPurpose, nil) -} - -//InstancePrincipalConfigurationProviderForRegion returns a configuration for instance principals with a given region -func InstancePrincipalConfigurationProviderForRegion(region common.Region) (common.ConfigurationProvider, error) { - return newInstancePrincipalConfigurationProvider(region, defaultTokenPurpose, nil) -} - -//InstancePrincipalConfigurationProviderWithCustomClient returns a configuration for instance principals using a modifier function to modify the HTTPRequestDispatcher -func InstancePrincipalConfigurationProviderWithCustomClient(modifier func(common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { - return newInstancePrincipalConfigurationProvider("", defaultTokenPurpose, modifier) -} - -//InstancePrincipalConfigurationForRegionWithCustomClient returns a configuration for instance principals with a given region using a modifier function to modify the HTTPRequestDispatcher -func InstancePrincipalConfigurationForRegionWithCustomClient(region common.Region, modifier func(common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { - return newInstancePrincipalConfigurationProvider(region, defaultTokenPurpose, modifier) -} - -func newInstancePrincipalConfigurationProvider(region common.Region, tokenPurpose string, modifier func(common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { - var err error - var keyProvider *instancePrincipalKeyProvider - if keyProvider, err = newInstancePrincipalKeyProvider(modifier, tokenPurpose); err != nil { - return nil, fmt.Errorf("failed to create a new key provider for instance principal: %s", err.Error()) - } - if len(region) > 0 { - return instancePrincipalConfigurationProvider{keyProvider: *keyProvider, region: ®ion}, nil - } - return instancePrincipalConfigurationProvider{keyProvider: *keyProvider, region: nil}, nil -} - -//InstancePrincipalConfigurationWithCerts returns a configuration for instance principals with a given region and hardcoded certificates in lieu of metadata service certs -func InstancePrincipalConfigurationWithCerts(region common.Region, leafCertificate, leafPassphrase, leafPrivateKey []byte, intermediateCertificates [][]byte) (common.ConfigurationProvider, error) { - return instancePrincipalConfigurationWithCertsAndPurpose(region, leafCertificate, leafPassphrase, leafPrivateKey, intermediateCertificates, defaultTokenPurpose, nil) -} - -//instancePrincipalConfigurationWithCertsAndPurpose returns a configuration for instance principals with a given region and hardcoded certificates in lieu of metadata service certs -func instancePrincipalConfigurationWithCertsAndPurpose(region common.Region, leafCertificate, leafPassphrase, leafPrivateKey []byte, - intermediateCertificates [][]byte, purpose string, modifier func(dispatcher common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { - leafCertificateRetriever := staticCertificateRetriever{Passphrase: leafPassphrase, CertificatePem: leafCertificate, PrivateKeyPem: leafPrivateKey} - - //The .Refresh() call actually reads the certificates from the inputs - err := leafCertificateRetriever.Refresh() - if err != nil { - return nil, err - } - - certificate := leafCertificateRetriever.Certificate() - - tenancyID := extractTenancyIDFromCertificate(certificate) - fedClient, err := newX509FederationClientWithCerts(region, tenancyID, leafCertificate, leafPassphrase, leafPrivateKey, - intermediateCertificates, *newDispatcherModifier(modifier), purpose) - if err != nil { - return nil, err - } - - provider := instancePrincipalConfigurationProvider{ - keyProvider: instancePrincipalKeyProvider{ - Region: region, - FederationClient: fedClient, - TenancyID: tenancyID, - }, - region: ®ion, - } - return provider, nil - -} - -func (p instancePrincipalConfigurationProvider) PrivateRSAKey() (*rsa.PrivateKey, error) { - return p.keyProvider.PrivateRSAKey() -} - -func (p instancePrincipalConfigurationProvider) KeyID() (string, error) { - return p.keyProvider.KeyID() -} - -func (p instancePrincipalConfigurationProvider) TenancyOCID() (string, error) { - return p.keyProvider.TenancyOCID() -} - -func (p instancePrincipalConfigurationProvider) UserOCID() (string, error) { - return "", nil -} - -func (p instancePrincipalConfigurationProvider) KeyFingerprint() (string, error) { - return "", nil -} - -func (p instancePrincipalConfigurationProvider) Region() (string, error) { - if p.region == nil { - region := p.keyProvider.RegionForFederationClient() - common.Debugf("Region in instance principal configuration provider is nil. Returning federation clients region: %s", region) - return string(region), nil - } - return string(*p.region), nil -} - -func (p instancePrincipalConfigurationProvider) AuthType() (common.AuthConfig, error) { - return common.AuthConfig{common.InstancePrincipal, false, nil}, fmt.Errorf("unsupported, keep the interface") -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resouce_principal_key_provider.go b/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resouce_principal_key_provider.go deleted file mode 100644 index 9114aef1a5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resouce_principal_key_provider.go +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -package auth - -import ( - "crypto/rsa" - "errors" - "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "os" - "path" -) - -const ( - //ResourcePrincipalVersion2_2 is a supported version for resource principals - ResourcePrincipalVersion2_2 = "2.2" - //ResourcePrincipalVersionEnvVar environment var name for version - ResourcePrincipalVersionEnvVar = "OCI_RESOURCE_PRINCIPAL_VERSION" - //ResourcePrincipalRPSTEnvVar environment var name holding the token or a path to the token - ResourcePrincipalRPSTEnvVar = "OCI_RESOURCE_PRINCIPAL_RPST" - //ResourcePrincipalPrivatePEMEnvVar environment var holding a rsa private key in pem format or a path to one - ResourcePrincipalPrivatePEMEnvVar = "OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM" - //ResourcePrincipalPrivatePEMPassphraseEnvVar environment var holding the passphrase to a key or a path to one - ResourcePrincipalPrivatePEMPassphraseEnvVar = "OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM_PASSPHRASE" - //ResourcePrincipalRegionEnvVar environment variable holding a region - ResourcePrincipalRegionEnvVar = "OCI_RESOURCE_PRINCIPAL_REGION" - - //ResourcePrincipalVersion1_1 is a supported version for resource principals - ResourcePrincipalVersion1_1 = "1.1" - //ResourcePrincipalSessionTokenEndpoint endpoint for retrieving the Resource Principal Session Token - ResourcePrincipalSessionTokenEndpoint = "OCI_RESOURCE_PRINCIPAL_RPST_ENDPOINT" - //ResourcePrincipalTokenEndpoint endpoint for retrieving the Resource Principal Token - ResourcePrincipalTokenEndpoint = "OCI_RESOURCE_PRINCIPAL_RPT_ENDPOINT" - - // TenancyOCIDClaimKey is the key used to look up the resource tenancy in an RPST - TenancyOCIDClaimKey = "res_tenant" - // CompartmentOCIDClaimKey is the key used to look up the resource compartment in an RPST - CompartmentOCIDClaimKey = "res_compartment" -) - -// ConfigurationProviderWithClaimAccess mixes in a method to access the claims held on the underlying security token -type ConfigurationProviderWithClaimAccess interface { - common.ConfigurationProvider - ClaimHolder -} - -// ResourcePrincipalConfigurationProvider returns a resource principal configuration provider using well known -// environment variables to look up token information. The environment variables can either paths or contain the material value -// of the keys. However in the case of the keys and tokens paths and values can not be mixed -func ResourcePrincipalConfigurationProvider() (ConfigurationProviderWithClaimAccess, error) { - var version string - var ok bool - if version, ok = os.LookupEnv(ResourcePrincipalVersionEnvVar); !ok { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) - } - - switch version { - case ResourcePrincipalVersion2_2: - rpst := requireEnv(ResourcePrincipalRPSTEnvVar) - if rpst == nil { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalRPSTEnvVar) - } - private := requireEnv(ResourcePrincipalPrivatePEMEnvVar) - if private == nil { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalPrivatePEMEnvVar) - } - passphrase := requireEnv(ResourcePrincipalPrivatePEMPassphraseEnvVar) - region := requireEnv(ResourcePrincipalRegionEnvVar) - if region == nil { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalRegionEnvVar) - } - return newResourcePrincipalKeyProvider22( - *rpst, *private, passphrase, *region) - case ResourcePrincipalVersion1_1: - return newResourcePrincipalKeyProvider11(DefaultRptPathProvider{}) - default: - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, must be valid", ResourcePrincipalVersionEnvVar) - } -} - -// ResourcePrincipalConfigurationProviderWithPathProvider returns a resource principal configuration provider using path provider. -func ResourcePrincipalConfigurationProviderWithPathProvider(pathProvider PathProvider) (ConfigurationProviderWithClaimAccess, error) { - var version string - var ok bool - if version, ok = os.LookupEnv(ResourcePrincipalVersionEnvVar); !ok { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) - } else if version != ResourcePrincipalVersion1_1 { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, must be %s", ResourcePrincipalVersionEnvVar, ResourcePrincipalVersion1_1) - } - return newResourcePrincipalKeyProvider11(pathProvider) -} - -func newResourcePrincipalKeyProvider11(pathProvider PathProvider) (ConfigurationProviderWithClaimAccess, error) { - rptEndpoint := requireEnv(ResourcePrincipalTokenEndpoint) - if rptEndpoint == nil { - return nil, fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalTokenEndpoint) - } - rptPath, err := pathProvider.Path() - if err != nil { - return nil, fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) - } - resourceID, err := pathProvider.ResourceID() - if err != nil { - return nil, fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) - } - rp, err := resourcePrincipalConfigurationProviderV1(*rptEndpoint+*rptPath, *resourceID) - if err != nil { - return nil, fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) - } - return rp, nil -} - -func requireEnv(key string) *string { - if val, ok := os.LookupEnv(key); ok { - return &val - } - return nil -} - -// resourcePrincipalKeyProvider22 is key provider that reads from specified the specified environment variables -// the environment variables can host the material keys/passphrases or they can be paths to files that need to be read -type resourcePrincipalKeyProvider struct { - FederationClient federationClient - KeyProviderRegion common.Region -} - -func newResourcePrincipalKeyProvider22(sessionTokenLocation, privatePemLocation string, - passphraseLocation *string, region string) (*resourcePrincipalKeyProvider, error) { - - //Check both the the passphrase and the key are paths - if passphraseLocation != nil && (!isPath(privatePemLocation) && isPath(*passphraseLocation) || - isPath(privatePemLocation) && !isPath(*passphraseLocation)) { - return nil, fmt.Errorf("cant not create resource principal: both key and passphrase need to be path or none needs to be path") - } - - var supplier sessionKeySupplier - var err error - - //File based case - if isPath(privatePemLocation) { - supplier, err = newFileBasedKeySessionSupplier(privatePemLocation, passphraseLocation) - if err != nil { - return nil, fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) - } - } else { - //else the content is in the env vars - var passphrase []byte - if passphraseLocation != nil { - passphrase = []byte(*passphraseLocation) - } - supplier, err = newStaticKeySessionSupplier([]byte(privatePemLocation), passphrase) - if err != nil { - return nil, fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) - } - } - - var fd federationClient - if isPath(sessionTokenLocation) { - fd, _ = newFileBasedFederationClient(sessionTokenLocation, supplier) - } else { - fd, err = newStaticFederationClient(sessionTokenLocation, supplier) - if err != nil { - return nil, fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) - } - } - - rs := resourcePrincipalKeyProvider{ - FederationClient: fd, - KeyProviderRegion: common.StringToRegion(region), - } - return &rs, nil -} - -func (p *resourcePrincipalKeyProvider) PrivateRSAKey() (privateKey *rsa.PrivateKey, err error) { - if privateKey, err = p.FederationClient.PrivateKey(); err != nil { - err = fmt.Errorf("failed to get private key: %s", err.Error()) - return nil, err - } - return privateKey, nil -} - -func (p *resourcePrincipalKeyProvider) KeyID() (string, error) { - var securityToken string - var err error - if securityToken, err = p.FederationClient.SecurityToken(); err != nil { - return "", fmt.Errorf("failed to get security token: %s", err.Error()) - } - return fmt.Sprintf("ST$%s", securityToken), nil -} - -func (p *resourcePrincipalKeyProvider) Region() (string, error) { - return string(p.KeyProviderRegion), nil -} - -var ( - // ErrNonStringClaim is returned if the token has a claim for a key, but it's not a string value - ErrNonStringClaim = errors.New("claim does not have a string value") -) - -func (p *resourcePrincipalKeyProvider) TenancyOCID() (string, error) { - if claim, err := p.GetClaim(TenancyOCIDClaimKey); err != nil { - return "", err - } else if tenancy, ok := claim.(string); ok { - return tenancy, nil - } else { - return "", ErrNonStringClaim - } -} - -func (p *resourcePrincipalKeyProvider) GetClaim(claim string) (interface{}, error) { - return p.FederationClient.GetClaim(claim) -} - -func (p *resourcePrincipalKeyProvider) KeyFingerprint() (string, error) { - return "", nil -} - -func (p *resourcePrincipalKeyProvider) UserOCID() (string, error) { - return "", nil -} - -func (p *resourcePrincipalKeyProvider) AuthType() (common.AuthConfig, error) { - return common.AuthConfig{common.UnknownAuthenticationType, false, nil}, - fmt.Errorf("unsupported, keep the interface") -} - -// By contract for the the content of a resource principal to be considered path, it needs to be -// an absolute path. -func isPath(str string) bool { - return path.IsAbs(str) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/circuit_breaker.go b/vendor/github.com/oracle/oci-go-sdk/v49/common/circuit_breaker.go deleted file mode 100644 index bfb04fe6fd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/circuit_breaker.go +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -package common - -import ( - "fmt" - "github.com/sony/gobreaker" - "time" -) - -const ( - // CircuitBreakerDefaultFailureRateThreshold is the requests failure rate which calculates in at most 120 seconds, once reaches to this rate, the circuit breaker state changes from closed to open - CircuitBreakerDefaultFailureRateThreshold float64 = 0.80 - // CircuitBreakerDefaultClosedWindow is the default value of closeStateWindow, which is the cyclic period of the closed state - CircuitBreakerDefaultClosedWindow time.Duration = 120 * time.Second - // CircuitBreakerDefaultResetTimeout is the default value of openStateWindow, which is the wait time before setting the breaker to halfOpen state from open state - CircuitBreakerDefaultResetTimeout time.Duration = 30 * time.Second - // CircuitBreakerDefaultVolumeThreshold is the default value of minimumRequests in closed status - CircuitBreakerDefaultVolumeThreshold uint32 = 10 - // DefaultCircuitBreakerName is the name of the circuit breaker - DefaultCircuitBreakerName string = "DefaultCircuitBreaker" -) - -// CircuitBreakerSetting wraps all exposed configurable params of circuit breaker -type CircuitBreakerSetting struct { - // Name is the Circuit Breaker's identifier - name string - // isEnabled is the switch of the circuit breaker, used for disable circuit breaker - isEnabled bool - // closeStateWindow is the cyclic period of the closed state, the default value is 120 seconds - closeStateWindow time.Duration - // openStateWindow is the wait time before setting the breaker to halfOpen state from open state, the default value is 30 seconds - openStateWindow time.Duration - // failureRateThreshold is the failure rate which calculates in at most closeStateWindow seconds, once reaches to this rate, the circuit breaker state changes from closed to open - // the circuit will transition from closed to open, the default value is 80% - failureRateThreshold float64 - // minimumRequests is the minimum number of counted requests in closed state, the default value is 10 requests - minimumRequests uint32 - // successStatCodeMap is the error(s) of StatusCode returned from service, which should be considered as the success or failure accounted by circuit breaker - // successStatCodeMap and successStatErrCodeMap are combined to use, if both StatusCode and ErrorCode are required, no need to add it to successStatCodeMap, - // the default value is [429, 500, 502, 503, 504] - successStatCodeMap map[int]bool - // successStatErrCodeMap is the error(s) of StatusCode and ErrorCode returned from service, which should be considered - // as the success or failure accounted by circuit breaker - // the default value is {409, "IncorrectState"} - successStatErrCodeMap map[StatErrCode]bool -} - -// Convert CircuitBreakerSetting to human-readable string representation -func (cbst CircuitBreakerSetting) String() string { - return fmt.Sprintf("{name=%v, isEnabled=%v, closeStateWindow=%v, openStateWindow=%v, failureRateThreshold=%v, minimumRequests=%v, successStatCodeMap=%v, successStatErrCodeMap=%v}", - cbst.name, cbst.isEnabled, cbst.closeStateWindow, cbst.openStateWindow, cbst.failureRateThreshold, cbst.minimumRequests, cbst.successStatCodeMap, cbst.successStatErrCodeMap) -} - -// CircuitBreakerOption is the type of the options for NewCircuitBreakerWithOptions. -type CircuitBreakerOption func(cbst *CircuitBreakerSetting) - -// NewGoCircuitBreaker is a function to initialize a CircuitBreaker object with the specified configuration -// Add the interface, to allow the user directly use the 3P gobreaker.Setting's params. -func NewGoCircuitBreaker(st gobreaker.Settings) *gobreaker.CircuitBreaker { - return gobreaker.NewCircuitBreaker(st) -} - -// DefaultCircuitBreakerSetting is used for set circuit breaker with default config -func DefaultCircuitBreakerSetting() *CircuitBreakerSetting { - successStatErrCodeMap := map[StatErrCode]bool{ - {409, "IncorrectState"}: false, - } - successStatCodeMap := map[int]bool{ - 429: false, - 500: false, - 502: false, - 503: false, - 504: false, - } - return newCircuitBreakerSetting( - WithName(DefaultCircuitBreakerName), - WithIsEnabled(true), - WithCloseStateWindow(CircuitBreakerDefaultClosedWindow), - WithOpenStateWindow(CircuitBreakerDefaultResetTimeout), - WithFailureRateThreshold(CircuitBreakerDefaultFailureRateThreshold), - WithMinimumRequests(CircuitBreakerDefaultVolumeThreshold), - WithSuccessStatErrCodeMap(successStatErrCodeMap), - WithSuccessStatCodeMap(successStatCodeMap)) -} - -// NoCircuitBreakerSetting is used for disable Circuit Breaker -func NoCircuitBreakerSetting() *CircuitBreakerSetting { - return NewCircuitBreakerSettingWithOptions(WithIsEnabled(false)) -} - -// NewCircuitBreakerSettingWithOptions is a helper method to assemble a CircuitBreakerSetting object. -// It starts out with the values returned by defaultCircuitBreakerSetting(). -func NewCircuitBreakerSettingWithOptions(opts ...CircuitBreakerOption) *CircuitBreakerSetting { - cbst := DefaultCircuitBreakerSetting() - // allow changing values - for _, opt := range opts { - opt(cbst) - } - if defaultLogger.LogLevel() == verboseLogging { - Debugf("Circuit Breaker setting: %s\n", cbst.String()) - } - - return cbst -} - -// NewCircuitBreaker is used for initialing specified circuit breaker configuration with base client -func NewCircuitBreaker(cbst *CircuitBreakerSetting) *gobreaker.CircuitBreaker { - if !cbst.isEnabled { - return nil - } - st := gobreaker.Settings{} - customizeGoBreakerSetting(&st, cbst) - return gobreaker.NewCircuitBreaker(st) -} - -func newCircuitBreakerSetting(opts ...CircuitBreakerOption) *CircuitBreakerSetting { - cbSetting := CircuitBreakerSetting{} - - // allow changing values - for _, opt := range opts { - opt(&cbSetting) - } - return &cbSetting -} - -// customizeGoBreakerSetting is used for converting CircuitBreakerSetting to 3P gobreaker's setting type -func customizeGoBreakerSetting(st *gobreaker.Settings, cbst *CircuitBreakerSetting) { - st.Name = cbst.name - st.Timeout = cbst.openStateWindow - st.Interval = cbst.closeStateWindow - st.ReadyToTrip = func(counts gobreaker.Counts) bool { - failureRatio := float64(counts.TotalFailures) / float64(counts.Requests) - return counts.Requests >= cbst.minimumRequests && failureRatio >= cbst.failureRateThreshold - } - st.IsSuccessful = func(err error) bool { - if serviceErr, ok := IsServiceError(err); ok { - if isSuccessful, ok := cbst.successStatCodeMap[serviceErr.GetHTTPStatusCode()]; ok { - return isSuccessful - } - if isSuccessful, ok := cbst.successStatErrCodeMap[StatErrCode{serviceErr.GetHTTPStatusCode(), serviceErr.GetCode()}]; ok { - return isSuccessful - } - } - return true - } -} - -// WithName is the option for NewCircuitBreaker that sets the Name. -func WithName(name string) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.name = name - } -} - -// WithIsEnabled is the option for NewCircuitBreaker that sets the isEnabled. -func WithIsEnabled(isEnabled bool) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.isEnabled = isEnabled - } -} - -// WithCloseStateWindow is the option for NewCircuitBreaker that sets the closeStateWindow. -func WithCloseStateWindow(window time.Duration) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.closeStateWindow = window - } -} - -// WithOpenStateWindow is the option for NewCircuitBreaker that sets the openStateWindow. -func WithOpenStateWindow(window time.Duration) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.openStateWindow = window - } -} - -// WithFailureRateThreshold is the option for NewCircuitBreaker that sets the failureRateThreshold. -func WithFailureRateThreshold(threshold float64) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.failureRateThreshold = threshold - } -} - -// WithMinimumRequests is the option for NewCircuitBreaker that sets the minimumRequests. -func WithMinimumRequests(num uint32) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.minimumRequests = num - } -} - -// WithSuccessStatCodeMap is the option for NewCircuitBreaker that sets the successStatCodeMap. -func WithSuccessStatCodeMap(successStatCodeMap map[int]bool) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.successStatCodeMap = successStatCodeMap - } -} - -// WithSuccessStatErrCodeMap is the option for NewCircuitBreaker that sets the successStatErrCodeMap. -func WithSuccessStatErrCodeMap(successStatErrCodeMap map[StatErrCode]bool) CircuitBreakerOption { - // this is the CircuitBreakerOption function type - return func(cbst *CircuitBreakerSetting) { - cbst.successStatErrCodeMap = successStatErrCodeMap - } -} - -// GlobalCircuitBreakerSetting is global level circuit breaker setting, it would impact all services, the precedence is lower -// than client level circuit breaker -var GlobalCircuitBreakerSetting *CircuitBreakerSetting = nil - -// ConfigCircuitBreakerFromEnvVar is used for checking the circuit breaker environment variable setting, default value is nil -func ConfigCircuitBreakerFromEnvVar(baseClient *BaseClient) { - if IsEnvVarTrue(isDefaultCircuitBreakerEnabled) { - baseClient.Configuration.CircuitBreaker = NewCircuitBreaker(DefaultCircuitBreakerSetting()) - return - } - if IsEnvVarFalse(isDefaultCircuitBreakerEnabled) { - baseClient.Configuration.CircuitBreaker = nil - } -} - -// ConfigCircuitBreakerFromGlobalVar is used for checking if global circuitBreakerSetting is configured, the priority is higher than cb env var -func ConfigCircuitBreakerFromGlobalVar(baseClient *BaseClient) { - if GlobalCircuitBreakerSetting != nil { - baseClient.Configuration.CircuitBreaker = NewCircuitBreaker(GlobalCircuitBreakerSetting) - } -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/configuration.go b/vendor/github.com/oracle/oci-go-sdk/v49/common/configuration.go deleted file mode 100644 index 56ee98fc16..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/configuration.go +++ /dev/null @@ -1,659 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -package common - -import ( - "crypto/rsa" - "errors" - "fmt" - "io/ioutil" - "os" - "path" - "regexp" - "strings" -) - -// AuthenticationType for auth -type AuthenticationType string - -const ( - // UserPrincipal is default auth type - UserPrincipal AuthenticationType = "user_principal" - // InstancePrincipal is used for instance principle auth type - InstancePrincipal AuthenticationType = "instance_principal" - // InstancePrincipalDelegationToken is used for instance principle delegation token auth type - InstancePrincipalDelegationToken AuthenticationType = "instance_principle_delegation_token" - // UnknownAuthenticationType is used for none meaningful auth type - UnknownAuthenticationType AuthenticationType = "unknown_auth_type" -) - -// AuthConfig is used for getting auth related paras in config file -type AuthConfig struct { - AuthType AuthenticationType - // IsFromConfigFile is used to point out the if the AuthConfig is from configuration file - IsFromConfigFile bool - OboToken *string -} - -// ConfigurationProvider wraps information about the account owner -type ConfigurationProvider interface { - KeyProvider - TenancyOCID() (string, error) - UserOCID() (string, error) - KeyFingerprint() (string, error) - Region() (string, error) - // AuthType() is used for specify the needed auth type, like UserPrincipal, InstancePrincipal, etc. - AuthType() (AuthConfig, error) -} - -// IsConfigurationProviderValid Tests all parts of the configuration provider do not return an error, this method will -// not check AuthType(), since authType() is not required to be there. -func IsConfigurationProviderValid(conf ConfigurationProvider) (ok bool, err error) { - baseFn := []func() (string, error){conf.TenancyOCID, conf.UserOCID, conf.KeyFingerprint, conf.Region, conf.KeyID} - for _, fn := range baseFn { - _, err = fn() - ok = err == nil - if err != nil { - return - } - } - - _, err = conf.PrivateRSAKey() - ok = err == nil - if err != nil { - return - } - return true, nil -} - -// rawConfigurationProvider allows a user to simply construct a configuration provider from raw values. -type rawConfigurationProvider struct { - tenancy string - user string - region string - fingerprint string - privateKey string - privateKeyPassphrase *string -} - -// NewRawConfigurationProvider will create a rawConfigurationProvider -func NewRawConfigurationProvider(tenancy, user, region, fingerprint, privateKey string, privateKeyPassphrase *string) ConfigurationProvider { - return rawConfigurationProvider{tenancy, user, region, fingerprint, privateKey, privateKeyPassphrase} -} - -func (p rawConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) { - return PrivateKeyFromBytes([]byte(p.privateKey), p.privateKeyPassphrase) -} - -func (p rawConfigurationProvider) KeyID() (keyID string, err error) { - tenancy, err := p.TenancyOCID() - if err != nil { - return - } - - user, err := p.UserOCID() - if err != nil { - return - } - - fingerprint, err := p.KeyFingerprint() - if err != nil { - return - } - - return fmt.Sprintf("%s/%s/%s", tenancy, user, fingerprint), nil -} - -func (p rawConfigurationProvider) TenancyOCID() (string, error) { - if p.tenancy == "" { - return "", fmt.Errorf("tenancy OCID can not be empty") - } - return p.tenancy, nil -} - -func (p rawConfigurationProvider) UserOCID() (string, error) { - if p.user == "" { - return "", fmt.Errorf("user OCID can not be empty") - } - return p.user, nil -} - -func (p rawConfigurationProvider) KeyFingerprint() (string, error) { - if p.fingerprint == "" { - return "", fmt.Errorf("fingerprint can not be empty") - } - return p.fingerprint, nil -} - -func (p rawConfigurationProvider) Region() (string, error) { - return canStringBeRegion(p.region) -} - -func (p rawConfigurationProvider) AuthType() (AuthConfig, error) { - return AuthConfig{UnknownAuthenticationType, false, nil}, - fmt.Errorf("unsupported, keep the interface") -} - -// environmentConfigurationProvider reads configuration from environment variables -type environmentConfigurationProvider struct { - PrivateKeyPassword string - EnvironmentVariablePrefix string -} - -// ConfigurationProviderEnvironmentVariables creates a ConfigurationProvider from a uniform set of environment variables starting with a prefix -// The env variables should look like: [prefix]_private_key_path, [prefix]_tenancy_ocid, [prefix]_user_ocid, [prefix]_fingerprint -// [prefix]_region -func ConfigurationProviderEnvironmentVariables(environmentVariablePrefix, privateKeyPassword string) ConfigurationProvider { - return environmentConfigurationProvider{EnvironmentVariablePrefix: environmentVariablePrefix, - PrivateKeyPassword: privateKeyPassword} -} - -func (p environmentConfigurationProvider) String() string { - return fmt.Sprintf("Configuration provided by environment variables prefixed with: %s", p.EnvironmentVariablePrefix) -} - -func (p environmentConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) { - environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "private_key_path") - var ok bool - var value string - if value, ok = os.LookupEnv(environmentVariable); !ok { - return nil, fmt.Errorf("can not read PrivateKey from env variable: %s", environmentVariable) - } - - expandedPath := expandPath(value) - pemFileContent, err := ioutil.ReadFile(expandedPath) - if err != nil { - Debugln("Can not read PrivateKey location from environment variable: " + environmentVariable) - return - } - - key, err = PrivateKeyFromBytes(pemFileContent, &p.PrivateKeyPassword) - return -} - -func (p environmentConfigurationProvider) KeyID() (keyID string, err error) { - ocid, err := p.TenancyOCID() - if err != nil { - return - } - - userocid, err := p.UserOCID() - if err != nil { - return - } - - fingerprint, err := p.KeyFingerprint() - if err != nil { - return - } - - return fmt.Sprintf("%s/%s/%s", ocid, userocid, fingerprint), nil -} - -func (p environmentConfigurationProvider) TenancyOCID() (value string, err error) { - environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "tenancy_ocid") - var ok bool - if value, ok = os.LookupEnv(environmentVariable); !ok { - err = fmt.Errorf("can not read Tenancy from environment variable %s", environmentVariable) - } - return -} - -func (p environmentConfigurationProvider) UserOCID() (value string, err error) { - environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "user_ocid") - var ok bool - if value, ok = os.LookupEnv(environmentVariable); !ok { - err = fmt.Errorf("can not read user id from environment variable %s", environmentVariable) - } - return -} - -func (p environmentConfigurationProvider) KeyFingerprint() (value string, err error) { - environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "fingerprint") - var ok bool - if value, ok = os.LookupEnv(environmentVariable); !ok { - err = fmt.Errorf("can not read fingerprint from environment variable %s", environmentVariable) - } - return -} - -func (p environmentConfigurationProvider) Region() (value string, err error) { - environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "region") - var ok bool - if value, ok = os.LookupEnv(environmentVariable); !ok { - err = fmt.Errorf("can not read region from environment variable %s", environmentVariable) - return value, err - } - - return canStringBeRegion(value) -} - -func (p environmentConfigurationProvider) AuthType() (AuthConfig, error) { - return AuthConfig{UnknownAuthenticationType, false, nil}, - fmt.Errorf("unsupported, keep the interface") -} - -// fileConfigurationProvider. reads configuration information from a file -type fileConfigurationProvider struct { - //The path to the configuration file - ConfigPath string - - //The password for the private key - PrivateKeyPassword string - - //The profile for the configuration - Profile string - - //ConfigFileInfo - FileInfo *configFileInfo -} - -// ConfigurationProviderFromFile creates a configuration provider from a configuration file -// by reading the "DEFAULT" profile -func ConfigurationProviderFromFile(configFilePath, privateKeyPassword string) (ConfigurationProvider, error) { - if configFilePath == "" { - return nil, fmt.Errorf("config file path can not be empty") - } - - return fileConfigurationProvider{ - ConfigPath: configFilePath, - PrivateKeyPassword: privateKeyPassword, - Profile: "DEFAULT"}, nil -} - -// ConfigurationProviderFromFileWithProfile creates a configuration provider from a configuration file -// and the given profile -func ConfigurationProviderFromFileWithProfile(configFilePath, profile, privateKeyPassword string) (ConfigurationProvider, error) { - if configFilePath == "" { - return nil, fmt.Errorf("config file path can not be empty") - } - - return fileConfigurationProvider{ - ConfigPath: configFilePath, - PrivateKeyPassword: privateKeyPassword, - Profile: profile}, nil -} - -type configFileInfo struct { - UserOcid, Fingerprint, KeyFilePath, TenancyOcid, Region, Passphrase, SecurityTokenFilePath, DelegationTokenFilePath, - AuthenticationType string - PresentConfiguration rune -} - -const ( - hasTenancy = 1 << iota - hasUser - hasFingerprint - hasRegion - hasKeyFile - hasPassphrase - hasSecurityTokenFile - hasDelegationTokenFile - hasAuthenticationType - none -) - -var profileRegex = regexp.MustCompile(`^\[(.*)\]`) - -func parseConfigFile(data []byte, profile string) (info *configFileInfo, err error) { - - if len(data) == 0 { - return nil, fmt.Errorf("configuration file content is empty") - } - - content := string(data) - splitContent := strings.Split(content, "\n") - - //Look for profile - for i, line := range splitContent { - if match := profileRegex.FindStringSubmatch(line); match != nil && len(match) > 1 && match[1] == profile { - start := i + 1 - return parseConfigAtLine(start, splitContent) - } - } - - return nil, fmt.Errorf("configuration file did not contain profile: %s", profile) -} - -func parseConfigAtLine(start int, content []string) (info *configFileInfo, err error) { - var configurationPresent rune - info = &configFileInfo{} - for i := start; i < len(content); i++ { - line := content[i] - if profileRegex.MatchString(line) { - break - } - - if !strings.Contains(line, "=") { - continue - } - - splits := strings.Split(line, "=") - switch key, value := strings.TrimSpace(splits[0]), strings.TrimSpace(splits[1]); strings.ToLower(key) { - case "passphrase", "pass_phrase": - configurationPresent = configurationPresent | hasPassphrase - info.Passphrase = value - case "user": - configurationPresent = configurationPresent | hasUser - info.UserOcid = value - case "fingerprint": - configurationPresent = configurationPresent | hasFingerprint - info.Fingerprint = value - case "key_file": - configurationPresent = configurationPresent | hasKeyFile - info.KeyFilePath = value - case "tenancy": - configurationPresent = configurationPresent | hasTenancy - info.TenancyOcid = value - case "region": - configurationPresent = configurationPresent | hasRegion - info.Region = value - case "security_token_file": - configurationPresent = configurationPresent | hasSecurityTokenFile - info.SecurityTokenFilePath = value - case "delegation_token_file": - configurationPresent = configurationPresent | hasDelegationTokenFile - info.DelegationTokenFilePath = value - case "authentication_type": - configurationPresent = configurationPresent | hasAuthenticationType - info.AuthenticationType = value - } - } - info.PresentConfiguration = configurationPresent - return - -} - -// cleans and expands the path if it contains a tilde , returns the expanded path or the input path as is if not expansion -// was performed -func expandPath(filepath string) (expandedPath string) { - cleanedPath := path.Clean(filepath) - expandedPath = cleanedPath - if strings.HasPrefix(cleanedPath, "~") { - rest := cleanedPath[2:] - expandedPath = path.Join(getHomeFolder(), rest) - } - return -} - -func openConfigFile(configFilePath string) (data []byte, err error) { - expandedPath := expandPath(configFilePath) - data, err = ioutil.ReadFile(expandedPath) - if err != nil { - err = fmt.Errorf("can not read config file: %s due to: %s", configFilePath, err.Error()) - } - - return -} - -func (p fileConfigurationProvider) String() string { - return fmt.Sprintf("Configuration provided by file: %s", p.ConfigPath) -} - -func (p fileConfigurationProvider) readAndParseConfigFile() (info *configFileInfo, err error) { - if p.FileInfo != nil { - return p.FileInfo, nil - } - - if p.ConfigPath == "" { - return nil, fmt.Errorf("configuration path can not be empty") - } - - data, err := openConfigFile(p.ConfigPath) - if err != nil { - err = fmt.Errorf("error while parsing config file: %s. Due to: %s", p.ConfigPath, err.Error()) - return - } - - p.FileInfo, err = parseConfigFile(data, p.Profile) - return p.FileInfo, err -} - -func presentOrError(value string, expectedConf, presentConf rune, confMissing string) (string, error) { - if presentConf&expectedConf == expectedConf { - return value, nil - } - return "", errors.New(confMissing + " configuration is missing from file") -} - -func (p fileConfigurationProvider) TenancyOCID() (value string, err error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) - return - } - - value, err = presentOrError(info.TenancyOcid, hasTenancy, info.PresentConfiguration, "tenancy") - return -} - -func (p fileConfigurationProvider) UserOCID() (value string, err error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) - return - } - - if value, err = presentOrError(info.UserOcid, hasUser, info.PresentConfiguration, "user"); err != nil { - // need to check if securityTokenPath is provided, if security token is provided, userOCID can be "". - if _, stErr := presentOrError(info.SecurityTokenFilePath, hasSecurityTokenFile, info.PresentConfiguration, - "securityTokenPath"); stErr == nil { - err = nil - } - } - return -} - -func (p fileConfigurationProvider) KeyFingerprint() (value string, err error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) - return - } - value, err = presentOrError(info.Fingerprint, hasFingerprint, info.PresentConfiguration, "fingerprint") - return -} - -func (p fileConfigurationProvider) KeyID() (keyID string, err error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) - return - } - if info.PresentConfiguration&hasUser == hasUser { - return fmt.Sprintf("%s/%s/%s", info.TenancyOcid, info.UserOcid, info.Fingerprint), nil - } - if filePath, err := presentOrError(info.SecurityTokenFilePath, hasSecurityTokenFile, info.PresentConfiguration, "securityTokenFilePath"); err == nil { - rawString, err := getTokenContent(filePath) - if err != nil { - return "", err - } - return "ST$" + rawString, nil - } - err = fmt.Errorf("can not read SecurityTokenFilePath from configuration file due to: %s", err.Error()) - return -} - -func (p fileConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) - return - } - - filePath, err := presentOrError(info.KeyFilePath, hasKeyFile, info.PresentConfiguration, "key file path") - if err != nil { - return - } - - expandedPath := expandPath(filePath) - pemFileContent, err := ioutil.ReadFile(expandedPath) - if err != nil { - err = fmt.Errorf("can not read PrivateKey from configuration file due to: %s", err.Error()) - return - } - - password := p.PrivateKeyPassword - - if password == "" && ((info.PresentConfiguration & hasPassphrase) == hasPassphrase) { - password = info.Passphrase - } - - key, err = PrivateKeyFromBytes(pemFileContent, &password) - return -} - -func (p fileConfigurationProvider) Region() (value string, err error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read region configuration due to: %s", err.Error()) - return - } - - value, err = presentOrError(info.Region, hasRegion, info.PresentConfiguration, "region") - if err != nil { - val, error := getRegionFromEnvVar() - if error != nil { - err = fmt.Errorf("region configuration is missing from file, nor for OCI_REGION env var") - return - } - value = val - } - - return canStringBeRegion(value) -} - -func (p fileConfigurationProvider) AuthType() (AuthConfig, error) { - info, err := p.readAndParseConfigFile() - if err != nil { - err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) - return AuthConfig{UnknownAuthenticationType, true, nil}, err - } - val, err := presentOrError(info.AuthenticationType, hasAuthenticationType, info.PresentConfiguration, "authentication_type") - - if val == "instance_principal" { - if filePath, err := presentOrError(info.DelegationTokenFilePath, hasDelegationTokenFile, info.PresentConfiguration, "delegationTokenFilePath"); err == nil { - if delegationToken, err := getTokenContent(filePath); err == nil && delegationToken != "" { - Debugf("delegation token content is %s, and error is %s ", delegationToken, err) - return AuthConfig{InstancePrincipalDelegationToken, true, &delegationToken}, nil - } - return AuthConfig{UnknownAuthenticationType, true, nil}, err - } - // normal instance principle - return AuthConfig{InstancePrincipal, true, nil}, nil - } - - // by default, if no "authentication_type" is provided, just treated as user principle type, and will not return error - return AuthConfig{UserPrincipal, true, nil}, nil -} - -func getTokenContent(filePath string) (string, error) { - expandedPath := expandPath(filePath) - tokenFileContent, err := ioutil.ReadFile(expandedPath) - if err != nil { - err = fmt.Errorf("can not read token content from configuration file due to: %s", err.Error()) - return "", err - } - return fmt.Sprintf("%s", tokenFileContent), nil -} - -// A configuration provider that look for information in multiple configuration providers -type composingConfigurationProvider struct { - Providers []ConfigurationProvider -} - -// ComposingConfigurationProvider creates a composing configuration provider with the given slice of configuration providers -// A composing provider will return the configuration of the first provider that has the required property -// if no provider has the property it will return an error. -func ComposingConfigurationProvider(providers []ConfigurationProvider) (ConfigurationProvider, error) { - if len(providers) == 0 { - return nil, fmt.Errorf("providers can not be an empty slice") - } - - for i, p := range providers { - if p == nil { - return nil, fmt.Errorf("provider in position: %d is nil. ComposingConfiurationProvider does not support nil values", i) - } - } - return composingConfigurationProvider{Providers: providers}, nil -} - -func (c composingConfigurationProvider) TenancyOCID() (string, error) { - for _, p := range c.Providers { - val, err := p.TenancyOCID() - if err == nil { - return val, nil - } - } - return "", fmt.Errorf("did not find a proper configuration for tenancy") -} - -func (c composingConfigurationProvider) UserOCID() (string, error) { - for _, p := range c.Providers { - val, err := p.UserOCID() - if err == nil { - return val, nil - } - } - return "", fmt.Errorf("did not find a proper configuration for user") -} - -func (c composingConfigurationProvider) KeyFingerprint() (string, error) { - for _, p := range c.Providers { - val, err := p.KeyFingerprint() - if err == nil { - return val, nil - } - } - return "", fmt.Errorf("did not find a proper configuration for keyFingerprint") -} -func (c composingConfigurationProvider) Region() (string, error) { - for _, p := range c.Providers { - val, err := p.Region() - if err == nil { - return val, nil - } - } - if val, err := getRegionFromEnvVar(); err == nil { - return val, nil - } - return "", fmt.Errorf("did not find a proper configuration for region, nor for OCI_REGION env var") -} - -func (c composingConfigurationProvider) KeyID() (string, error) { - for _, p := range c.Providers { - val, err := p.KeyID() - if err == nil { - return val, nil - } - } - return "", fmt.Errorf("did not find a proper configuration for key id") -} - -func (c composingConfigurationProvider) PrivateRSAKey() (*rsa.PrivateKey, error) { - for _, p := range c.Providers { - val, err := p.PrivateRSAKey() - if err == nil { - return val, nil - } - } - return nil, fmt.Errorf("did not find a proper configuration for private key") -} - -func (c composingConfigurationProvider) AuthType() (AuthConfig, error) { - // only check the first default fileConfigProvider - authConfig, err := c.Providers[0].AuthType() - if err == nil && authConfig.AuthType != UnknownAuthenticationType { - return authConfig, nil - } - return AuthConfig{UnknownAuthenticationType, false, nil}, fmt.Errorf("did not find a proper configuration for auth type") -} - -func getRegionFromEnvVar() (string, error) { - regionEnvVar := "OCI_REGION" - if region, existed := os.LookupEnv(regionEnvVar); existed { - return region, nil - } - return "", fmt.Errorf("did not find OCI_REGION env var") -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/errors.go b/vendor/github.com/oracle/oci-go-sdk/v49/common/errors.go deleted file mode 100644 index 0b358b74bf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/errors.go +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -package common - -import ( - "encoding/json" - "fmt" - "github.com/sony/gobreaker" - "io/ioutil" - "net" - "net/http" -) - -// ServiceError models all potential errors generated the service call -type ServiceError interface { - // The http status code of the error - GetHTTPStatusCode() int - - // The human-readable error string as sent by the service - GetMessage() string - - // A short error code that defines the error, meant for programmatic parsing. - // See https://docs.cloud.oracle.com/Content/API/References/apierrors.htm - GetCode() string - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - GetOpcRequestID() string -} - -type servicefailure struct { - StatusCode int - Code string `json:"code,omitempty"` - Message string `json:"message,omitempty"` - OpcRequestID string `json:"opc-request-id"` -} - -func newServiceFailureFromResponse(response *http.Response) error { - var err error - - se := servicefailure{ - StatusCode: response.StatusCode, - Code: "BadErrorResponse", - OpcRequestID: response.Header.Get("opc-request-id")} - - //If there is an error consume the body, entirely - body, err := ioutil.ReadAll(response.Body) - if err != nil { - se.Message = fmt.Sprintf("The body of the response was not readable, due to :%s", err.Error()) - return se - } - - err = json.Unmarshal(body, &se) - if err != nil { - Debugf("Error response could not be parsed due to: %s", err.Error()) - se.Message = fmt.Sprintf("Failed to parse json from response body due to: %s. With response body %s.", err.Error(), string(body[:])) - return se - } - return se -} - -func (se servicefailure) Error() string { - return fmt.Sprintf("Service error:%s. %s. http status code: %d. Opc request id: %s", - se.Code, se.Message, se.StatusCode, se.OpcRequestID) -} - -func (se servicefailure) GetHTTPStatusCode() int { - return se.StatusCode - -} - -func (se servicefailure) GetMessage() string { - return se.Message -} - -func (se servicefailure) GetCode() string { - return se.Code -} - -func (se servicefailure) GetOpcRequestID() string { - return se.OpcRequestID -} - -// IsServiceError returns false if the error is not service side, otherwise true -// additionally it returns an interface representing the ServiceError -func IsServiceError(err error) (failure ServiceError, ok bool) { - failure, ok = err.(servicefailure) - return -} - -type deadlineExceededByBackoffError struct{} - -func (deadlineExceededByBackoffError) Error() string { - return "now() + computed backoff duration exceeds request deadline" -} - -// DeadlineExceededByBackoff is the error returned by Call() when GetNextDuration() returns a time.Duration that would -// force the user to wait past the request deadline before re-issuing a request. This enables us to exit early, since -// we cannot succeed based on the configured retry policy. -var DeadlineExceededByBackoff error = deadlineExceededByBackoffError{} - -// NonSeekableRequestRetryFailure is the error returned when the request is with binary request body, and is configured -// retry, but the request body is not retryable -type NonSeekableRequestRetryFailure struct { - err error -} - -func (ne NonSeekableRequestRetryFailure) Error() string { - if ne.err == nil { - return fmt.Sprintf("Unable to perform Retry on this request body type, which did not implement seek() interface") - } - return fmt.Sprintf("%s. Unable to perform Retry on this request body type, which did not implement seek() interface", ne.err.Error()) -} - -// IsNetworkError validates if an error is a net.Error and check if it's temporary or timeout -func IsNetworkError(err error) bool { - if r, ok := err.(net.Error); ok && (r.Temporary() || r.Timeout()) { - return true - } - return false -} - -// IsCircuitBreakerError validates if an error's text is Open state ErrOpenState or HalfOpen state ErrTooManyRequests -func IsCircuitBreakerError(err error) bool { - if err.Error() == gobreaker.ErrOpenState.Error() || err.Error() == gobreaker.ErrTooManyRequests.Error() { - return true - } - return false -} - -// StatErrCode is a type which wraps error's statusCode and errorCode from service end -type StatErrCode struct { - statusCode int - errorCode string -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/regions.go b/vendor/github.com/oracle/oci-go-sdk/v49/common/regions.go deleted file mode 100644 index 8d93b6e185..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/regions.go +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. - -package common - -const ( - //RegionAPChuncheon1 region Chuncheon - RegionAPChuncheon1 Region = "ap-chuncheon-1" - //RegionAPHyderabad1 region Hyderabad - RegionAPHyderabad1 Region = "ap-hyderabad-1" - //RegionAPMelbourne1 region Melbourne - RegionAPMelbourne1 Region = "ap-melbourne-1" - //RegionAPMumbai1 region Mumbai - RegionAPMumbai1 Region = "ap-mumbai-1" - //RegionAPOsaka1 region Osaka - RegionAPOsaka1 Region = "ap-osaka-1" - //RegionAPSeoul1 region Seoul - RegionAPSeoul1 Region = "ap-seoul-1" - //RegionAPSydney1 region Sydney - RegionAPSydney1 Region = "ap-sydney-1" - //RegionAPTokyo1 region Tokyo - RegionAPTokyo1 Region = "ap-tokyo-1" - //RegionAPSingapore1 region Singapore - RegionAPSingapore1 Region = "ap-singapore-1" - //RegionCAMontreal1 region Montreal - RegionCAMontreal1 Region = "ca-montreal-1" - //RegionCAToronto1 region Toronto - RegionCAToronto1 Region = "ca-toronto-1" - //RegionEUAmsterdam1 region Amsterdam - RegionEUAmsterdam1 Region = "eu-amsterdam-1" - //RegionFRA region Frankfurt - RegionFRA Region = "eu-frankfurt-1" - //RegionEUZurich1 region Zurich - RegionEUZurich1 Region = "eu-zurich-1" - //RegionMEJeddah1 region Jeddah - RegionMEJeddah1 Region = "me-jeddah-1" - //RegionMEDubai1 region Dubai - RegionMEDubai1 Region = "me-dubai-1" - //RegionSASaopaulo1 region Saopaulo - RegionSASaopaulo1 Region = "sa-saopaulo-1" - //RegionUKCardiff1 region Cardiff - RegionUKCardiff1 Region = "uk-cardiff-1" - //RegionLHR region London - RegionLHR Region = "uk-london-1" - //RegionIAD region Ashburn - RegionIAD Region = "us-ashburn-1" - //RegionPHX region Phoenix - RegionPHX Region = "us-phoenix-1" - //RegionSJC1 region Sanjose - RegionSJC1 Region = "us-sanjose-1" - //RegionMEAbudhabi1 region Abudhabi - RegionMEAbudhabi1 Region = "me-abudhabi-1" - //RegionSAVinhedo1 region Vinhedo - RegionSAVinhedo1 Region = "sa-vinhedo-1" - //RegionSASantiago1 region Santiago - RegionSASantiago1 Region = "sa-santiago-1" - //RegionEUMarseille1 region Marseille - RegionEUMarseille1 Region = "eu-marseille-1" - //RegionILJerusalem1 region Jerusalem - RegionILJerusalem1 Region = "il-jerusalem-1" - //RegionEUStockholm1 region Stockholm - RegionEUStockholm1 Region = "eu-stockholm-1" - //RegionEUMilan1 region Milan - RegionEUMilan1 Region = "eu-milan-1" - //RegionAFJohannesburg1 region Johannesburg - RegionAFJohannesburg1 Region = "af-johannesburg-1" - //RegionEUParis1 region Paris - RegionEUParis1 Region = "eu-paris-1" - //RegionMXQueretaro1 region Queretaro - RegionMXQueretaro1 Region = "mx-queretaro-1" - //RegionUSLangley1 region Langley - RegionUSLangley1 Region = "us-langley-1" - //RegionUSLuke1 region Luke - RegionUSLuke1 Region = "us-luke-1" - //RegionUSGovAshburn1 gov region Ashburn - RegionUSGovAshburn1 Region = "us-gov-ashburn-1" - //RegionUSGovChicago1 gov region Chicago - RegionUSGovChicago1 Region = "us-gov-chicago-1" - //RegionUSGovPhoenix1 gov region Phoenix - RegionUSGovPhoenix1 Region = "us-gov-phoenix-1" - //RegionUKGovLondon1 gov region London - RegionUKGovLondon1 Region = "uk-gov-london-1" - //RegionUKGovCardiff1 gov region Cardiff - RegionUKGovCardiff1 Region = "uk-gov-cardiff-1" - //RegionAPChiyoda1 region Chiyoda - RegionAPChiyoda1 Region = "ap-chiyoda-1" - //RegionAPIbaraki1 region Ibaraki - RegionAPIbaraki1 Region = "ap-ibaraki-1" - //RegionMEDccMuscat1 region Muscat - RegionMEDccMuscat1 Region = "me-dcc-muscat-1" - //RegionAPDccCanberra1 region Canberra - RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" -) - -var shortNameRegion = map[string]Region{ - "yny": RegionAPChuncheon1, - "hyd": RegionAPHyderabad1, - "mel": RegionAPMelbourne1, - "bom": RegionAPMumbai1, - "kix": RegionAPOsaka1, - "icn": RegionAPSeoul1, - "syd": RegionAPSydney1, - "nrt": RegionAPTokyo1, - "sin": RegionAPSingapore1, - "yul": RegionCAMontreal1, - "yyz": RegionCAToronto1, - "ams": RegionEUAmsterdam1, - "fra": RegionFRA, - "zrh": RegionEUZurich1, - "jed": RegionMEJeddah1, - "dxb": RegionMEDubai1, - "gru": RegionSASaopaulo1, - "cwl": RegionUKCardiff1, - "lhr": RegionLHR, - "iad": RegionIAD, - "phx": RegionPHX, - "sjc": RegionSJC1, - "auh": RegionMEAbudhabi1, - "vcp": RegionSAVinhedo1, - "scl": RegionSASantiago1, - "mrs": RegionEUMarseille1, - "mtz": RegionILJerusalem1, - "arn": RegionEUStockholm1, - "lin": RegionEUMilan1, - "jnb": RegionAFJohannesburg1, - "cdg": RegionEUParis1, - "qro": RegionMXQueretaro1, - "lfi": RegionUSLangley1, - "luf": RegionUSLuke1, - "ric": RegionUSGovAshburn1, - "pia": RegionUSGovChicago1, - "tus": RegionUSGovPhoenix1, - "ltn": RegionUKGovLondon1, - "brs": RegionUKGovCardiff1, - "nja": RegionAPChiyoda1, - "ukb": RegionAPIbaraki1, - "mct": RegionMEDccMuscat1, - "wga": RegionAPDccCanberra1, -} - -var realm = map[string]string{ - "oc1": "oraclecloud.com", - "oc2": "oraclegovcloud.com", - "oc3": "oraclegovcloud.com", - "oc4": "oraclegovcloud.uk", - "oc8": "oraclecloud8.com", - "oc9": "oraclecloud9.com", - "oc10": "oraclecloud10.com", -} - -var regionRealm = map[Region]string{ - RegionAPChuncheon1: "oc1", - RegionAPHyderabad1: "oc1", - RegionAPMelbourne1: "oc1", - RegionAPMumbai1: "oc1", - RegionAPOsaka1: "oc1", - RegionAPSeoul1: "oc1", - RegionAPSydney1: "oc1", - RegionAPTokyo1: "oc1", - RegionAPSingapore1: "oc1", - RegionCAMontreal1: "oc1", - RegionCAToronto1: "oc1", - RegionEUAmsterdam1: "oc1", - RegionFRA: "oc1", - RegionEUZurich1: "oc1", - RegionMEJeddah1: "oc1", - RegionMEDubai1: "oc1", - RegionSASaopaulo1: "oc1", - RegionUKCardiff1: "oc1", - RegionLHR: "oc1", - RegionIAD: "oc1", - RegionPHX: "oc1", - RegionSJC1: "oc1", - RegionMEAbudhabi1: "oc1", - RegionSAVinhedo1: "oc1", - RegionSASantiago1: "oc1", - RegionEUMarseille1: "oc1", - RegionILJerusalem1: "oc1", - RegionEUStockholm1: "oc1", - RegionEUMilan1: "oc1", - RegionAFJohannesburg1: "oc1", - RegionEUParis1: "oc1", - RegionMXQueretaro1: "oc1", - - RegionUSLangley1: "oc2", - RegionUSLuke1: "oc2", - - RegionUSGovAshburn1: "oc3", - RegionUSGovChicago1: "oc3", - RegionUSGovPhoenix1: "oc3", - - RegionUKGovLondon1: "oc4", - RegionUKGovCardiff1: "oc4", - - RegionAPChiyoda1: "oc8", - RegionAPIbaraki1: "oc8", - - RegionMEDccMuscat1: "oc9", - - RegionAPDccCanberra1: "oc10", -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/regions.json b/vendor/github.com/oracle/oci-go-sdk/v49/common/regions.json deleted file mode 100644 index ac0ea1e8eb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/regions.json +++ /dev/null @@ -1,260 +0,0 @@ -[ - { - "regionKey": "yny", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-chuncheon-1", - "realmKey": "oc1" - }, - { - "regionKey": "hyd", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-hyderabad-1", - "realmKey": "oc1" - }, - { - "regionKey": "mel", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-melbourne-1", - "realmKey": "oc1" - }, - { - "regionKey": "bom", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-mumbai-1", - "realmKey": "oc1" - }, - { - "regionKey": "kix", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-osaka-1", - "realmKey": "oc1" - }, - { - "regionKey": "icn", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-seoul-1", - "realmKey": "oc1" - }, - { - "regionKey": "syd", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-sydney-1", - "realmKey": "oc1" - }, - { - "regionKey": "nrt", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-tokyo-1", - "realmKey": "oc1" - }, - { - "regionKey": "sin", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ap-singapore-1", - "realmKey": "oc1" - }, - { - "regionKey": "yul", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ca-montreal-1", - "realmKey": "oc1" - }, - { - "regionKey": "yyz", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "ca-toronto-1", - "realmKey": "oc1" - }, - { - "regionKey": "ams", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-amsterdam-1", - "realmKey": "oc1" - }, - { - "regionKey": "fra", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-frankfurt-1", - "realmKey": "oc1" - }, - { - "regionKey": "zrh", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-zurich-1", - "realmKey": "oc1" - }, - { - "regionKey": "jed", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "me-jeddah-1", - "realmKey": "oc1" - }, - { - "regionKey": "dxb", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "me-dubai-1", - "realmKey": "oc1" - }, - { - "regionKey": "gru", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "sa-saopaulo-1", - "realmKey": "oc1" - }, - { - "regionKey": "cwl", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "uk-cardiff-1", - "realmKey": "oc1" - }, - { - "regionKey": "lhr", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "uk-london-1", - "realmKey": "oc1" - }, - { - "regionKey": "iad", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "us-ashburn-1", - "realmKey": "oc1" - }, - { - "regionKey": "phx", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "us-phoenix-1", - "realmKey": "oc1" - }, - { - "regionKey": "sjc", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "us-sanjose-1", - "realmKey": "oc1" - }, - { - "regionKey": "auh", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "me-abudhabi-1", - "realmKey": "oc1" - }, - { - "regionKey": "vcp", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "sa-vinhedo-1", - "realmKey": "oc1" - }, - { - "regionKey": "scl", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "sa-santiago-1", - "realmKey": "oc1" - }, - { - "regionKey": "mrs", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-marseille-1", - "realmKey": "oc1" - }, - { - "regionKey": "mtz", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "il-jerusalem-1", - "realmKey": "oc1" - }, - { - "regionKey": "arn", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-stockholm-1", - "realmKey": "oc1" - }, - { - "regionKey": "lin", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-milan-1", - "realmKey": "oc1" - }, - { - "regionKey": "jnb", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "af-johannesburg-1", - "realmKey": "oc1" - }, - { - "regionKey": "cdg", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "eu-paris-1", - "realmKey": "oc1" - }, - { - "regionKey": "lfi", - "realmDomainComponent": "oraclegovcloud.com", - "regionIdentifier": "us-langley-1", - "realmKey": "oc2" - }, - { - "regionKey": "luf", - "realmDomainComponent": "oraclegovcloud.com", - "regionIdentifier": "us-luke-1", - "realmKey": "oc2" - }, - { - "regionKey": "ric", - "realmDomainComponent": "oraclegovcloud.com", - "regionIdentifier": "us-gov-ashburn-1", - "realmKey": "oc3" - }, - { - "regionKey": "pia", - "realmDomainComponent": "oraclegovcloud.com", - "regionIdentifier": "us-gov-chicago-1", - "realmKey": "oc3" - }, - { - "regionKey": "tus", - "realmDomainComponent": "oraclegovcloud.com", - "regionIdentifier": "us-gov-phoenix-1", - "realmKey": "oc3" - }, - { - "regionKey": "ltn", - "realmDomainComponent": "oraclegovcloud.uk", - "regionIdentifier": "uk-gov-london-1", - "realmKey": "oc4" - }, - { - "regionKey": "brs", - "realmDomainComponent": "oraclegovcloud.uk", - "regionIdentifier": "uk-gov-cardiff-1", - "realmKey": "oc4" - }, - { - "regionKey": "nja", - "realmDomainComponent": "oraclecloud8.com", - "regionIdentifier": "ap-chiyoda-1", - "realmKey": "oc8" - }, - { - "regionKey": "ukb", - "realmDomainComponent": "oraclecloud8.com", - "regionIdentifier": "ap-ibaraki-1", - "realmKey": "oc8" - }, - { - "regionKey": "mct", - "realmDomainComponent": "oraclecloud9.com", - "regionIdentifier": "me-dcc-muscat-1", - "realmKey": "oc9" - }, - { - "regionKey": "wga", - "realmDomainComponent": "oraclecloud10.com", - "regionIdentifier": "ap-dcc-canberra-1", - "realmKey": "oc10" - }, - { - "regionKey": "qro", - "realmDomainComponent": "oraclecloud.com", - "regionIdentifier": "mx-queretaro-1", - "realmKey": "oc1" - } -] \ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/add_on_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/add_on_options.go deleted file mode 100644 index 0c7d9cf6f8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/add_on_options.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddOnOptions The properties that define options for supported add-ons. -type AddOnOptions struct { - - // Whether or not to enable the Kubernetes Dashboard add-on. - IsKubernetesDashboardEnabled *bool `mandatory:"false" json:"isKubernetesDashboardEnabled"` - - // Whether or not to enable the Tiller add-on. - IsTillerEnabled *bool `mandatory:"false" json:"isTillerEnabled"` -} - -func (m AddOnOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/admission_controller_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/admission_controller_options.go deleted file mode 100644 index 255fcf248f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/admission_controller_options.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AdmissionControllerOptions The properties that define supported admission controllers. -type AdmissionControllerOptions struct { - - // Whether or not to enable the Pod Security Policy admission controller. - IsPodSecurityPolicyEnabled *bool `mandatory:"false" json:"isPodSecurityPolicyEnabled"` -} - -func (m AdmissionControllerOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster.go deleted file mode 100644 index 20f2ae0b71..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Cluster A Kubernetes cluster. Avoid entering confidential information. -type Cluster struct { - - // The OCID of the cluster. - Id *string `mandatory:"false" json:"id"` - - // The name of the cluster. - Name *string `mandatory:"false" json:"name"` - - // The OCID of the compartment in which the cluster exists. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The network configuration for access to the Cluster control plane. - EndpointConfig *ClusterEndpointConfig `mandatory:"false" json:"endpointConfig"` - - // The OCID of the virtual cloud network (VCN) in which the cluster exists. - VcnId *string `mandatory:"false" json:"vcnId"` - - // The version of Kubernetes running on the cluster masters. - KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` - - // The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Usage of system tag keys. These predefined keys are scoped to namespaces. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // Optional attributes for the cluster. - Options *ClusterCreateOptions `mandatory:"false" json:"options"` - - // Metadata about the cluster. - Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` - - // The state of the cluster masters. - LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Details about the state of the cluster masters. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Endpoints served up by the cluster masters. - Endpoints *ClusterEndpoints `mandatory:"false" json:"endpoints"` - - // Available Kubernetes versions to which the clusters masters may be upgraded. - AvailableKubernetesUpgrades []string `mandatory:"false" json:"availableKubernetesUpgrades"` - - // The image verification policy for signature validation. - ImagePolicyConfig *ImagePolicyConfig `mandatory:"false" json:"imagePolicyConfig"` -} - -func (m Cluster) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_create_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_create_options.go deleted file mode 100644 index 57d1c3deb2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_create_options.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterCreateOptions The properties that define extra options for a cluster. -type ClusterCreateOptions struct { - - // The OCIDs of the subnets used for Kubernetes services load balancers. - ServiceLbSubnetIds []string `mandatory:"false" json:"serviceLbSubnetIds"` - - // Network configuration for Kubernetes. - KubernetesNetworkConfig *KubernetesNetworkConfig `mandatory:"false" json:"kubernetesNetworkConfig"` - - // Configurable cluster add-ons - AddOns *AddOnOptions `mandatory:"false" json:"addOns"` - - // Configurable cluster admission controllers - AdmissionControllerOptions *AdmissionControllerOptions `mandatory:"false" json:"admissionControllerOptions"` - - PersistentVolumeConfig *PersistentVolumeConfigDetails `mandatory:"false" json:"persistentVolumeConfig"` - - ServiceLbConfig *ServiceLbConfigDetails `mandatory:"false" json:"serviceLbConfig"` -} - -func (m ClusterCreateOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoint_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoint_config.go deleted file mode 100644 index 0b0b144788..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoint_config.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterEndpointConfig The properties that define the network configuration for the Cluster endpoint. -type ClusterEndpointConfig struct { - - // The OCID of the regional subnet in which to place the Cluster endpoint. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // A list of the OCIDs of the network security groups (NSGs) to apply to the cluster endpoint. For more information about NSGs, see NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Whether the cluster should be assigned a public IP address. Defaults to false. If set to true on a private subnet, the cluster provisioning will fail. - IsPublicIpEnabled *bool `mandatory:"false" json:"isPublicIpEnabled"` -} - -func (m ClusterEndpointConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoints.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoints.go deleted file mode 100644 index ab3da5917f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_endpoints.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterEndpoints The properties that define endpoints for a cluster. -type ClusterEndpoints struct { - - // The non-native networking Kubernetes API server endpoint. - Kubernetes *string `mandatory:"false" json:"kubernetes"` - - // The public native networking Kubernetes API server endpoint, if one was requested. - PublicEndpoint *string `mandatory:"false" json:"publicEndpoint"` - - // The private native networking Kubernetes API server endpoint. - PrivateEndpoint *string `mandatory:"false" json:"privateEndpoint"` -} - -func (m ClusterEndpoints) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_lifecycle_state.go deleted file mode 100644 index 977af2eec5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_lifecycle_state.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -// ClusterLifecycleStateEnum Enum with underlying type: string -type ClusterLifecycleStateEnum string - -// Set of constants representing the allowable values for ClusterLifecycleStateEnum -const ( - ClusterLifecycleStateCreating ClusterLifecycleStateEnum = "CREATING" - ClusterLifecycleStateActive ClusterLifecycleStateEnum = "ACTIVE" - ClusterLifecycleStateFailed ClusterLifecycleStateEnum = "FAILED" - ClusterLifecycleStateDeleting ClusterLifecycleStateEnum = "DELETING" - ClusterLifecycleStateDeleted ClusterLifecycleStateEnum = "DELETED" - ClusterLifecycleStateUpdating ClusterLifecycleStateEnum = "UPDATING" -) - -var mappingClusterLifecycleState = map[string]ClusterLifecycleStateEnum{ - "CREATING": ClusterLifecycleStateCreating, - "ACTIVE": ClusterLifecycleStateActive, - "FAILED": ClusterLifecycleStateFailed, - "DELETING": ClusterLifecycleStateDeleting, - "DELETED": ClusterLifecycleStateDeleted, - "UPDATING": ClusterLifecycleStateUpdating, -} - -// GetClusterLifecycleStateEnumValues Enumerates the set of values for ClusterLifecycleStateEnum -func GetClusterLifecycleStateEnumValues() []ClusterLifecycleStateEnum { - values := make([]ClusterLifecycleStateEnum, 0) - for _, v := range mappingClusterLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_details.go deleted file mode 100644 index 6ad1037288..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterMigrateToNativeVcnDetails The properties that define a request to migrate a cluster to Native VCN. -type ClusterMigrateToNativeVcnDetails struct { - - // The network configuration for access to the Cluster control plane. - EndpointConfig *ClusterEndpointConfig `mandatory:"true" json:"endpointConfig"` - - // The optional override of the non-native endpoint decommission time after migration is complete. Defaults to 30 days. - DecommissionDelayDuration *string `mandatory:"false" json:"decommissionDelayDuration"` -} - -func (m ClusterMigrateToNativeVcnDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_status.go deleted file mode 100644 index 51b8697a79..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_status.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterMigrateToNativeVcnStatus Information regarding a cluster's move to Native VCN. -type ClusterMigrateToNativeVcnStatus struct { - - // The current migration status of the cluster. - State ClusterMigrateToNativeVcnStatusStateEnum `mandatory:"true" json:"state"` - - // The date and time the non-native VCN is due to be decommissioned. - TimeDecommissionScheduled *common.SDKTime `mandatory:"false" json:"timeDecommissionScheduled"` -} - -func (m ClusterMigrateToNativeVcnStatus) String() string { - return common.PointerString(m) -} - -// ClusterMigrateToNativeVcnStatusStateEnum Enum with underlying type: string -type ClusterMigrateToNativeVcnStatusStateEnum string - -// Set of constants representing the allowable values for ClusterMigrateToNativeVcnStatusStateEnum -const ( - ClusterMigrateToNativeVcnStatusStateNotStarted ClusterMigrateToNativeVcnStatusStateEnum = "NOT_STARTED" - ClusterMigrateToNativeVcnStatusStateRequested ClusterMigrateToNativeVcnStatusStateEnum = "REQUESTED" - ClusterMigrateToNativeVcnStatusStateInProgress ClusterMigrateToNativeVcnStatusStateEnum = "IN_PROGRESS" - ClusterMigrateToNativeVcnStatusStatePendingDecommission ClusterMigrateToNativeVcnStatusStateEnum = "PENDING_DECOMMISSION" - ClusterMigrateToNativeVcnStatusStateCompleted ClusterMigrateToNativeVcnStatusStateEnum = "COMPLETED" -) - -var mappingClusterMigrateToNativeVcnStatusState = map[string]ClusterMigrateToNativeVcnStatusStateEnum{ - "NOT_STARTED": ClusterMigrateToNativeVcnStatusStateNotStarted, - "REQUESTED": ClusterMigrateToNativeVcnStatusStateRequested, - "IN_PROGRESS": ClusterMigrateToNativeVcnStatusStateInProgress, - "PENDING_DECOMMISSION": ClusterMigrateToNativeVcnStatusStatePendingDecommission, - "COMPLETED": ClusterMigrateToNativeVcnStatusStateCompleted, -} - -// GetClusterMigrateToNativeVcnStatusStateEnumValues Enumerates the set of values for ClusterMigrateToNativeVcnStatusStateEnum -func GetClusterMigrateToNativeVcnStatusStateEnumValues() []ClusterMigrateToNativeVcnStatusStateEnum { - values := make([]ClusterMigrateToNativeVcnStatusStateEnum, 0) - for _, v := range mappingClusterMigrateToNativeVcnStatusState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_options.go deleted file mode 100644 index 2e49583cf9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_options.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterOptions Options for creating or updating clusters. -type ClusterOptions struct { - - // Available Kubernetes versions. - KubernetesVersions []string `mandatory:"false" json:"kubernetesVersions"` -} - -func (m ClusterOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_summary.go deleted file mode 100644 index 166eb2064c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_summary.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterSummary The properties that define a cluster summary. -type ClusterSummary struct { - - // The OCID of the cluster. - Id *string `mandatory:"false" json:"id"` - - // The name of the cluster. - Name *string `mandatory:"false" json:"name"` - - // The OCID of the compartment in which the cluster exists. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The network configuration for access to the Cluster control plane. - EndpointConfig *ClusterEndpointConfig `mandatory:"false" json:"endpointConfig"` - - // The OCID of the virtual cloud network (VCN) in which the cluster exists - VcnId *string `mandatory:"false" json:"vcnId"` - - // The version of Kubernetes running on the cluster masters. - KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Usage of system tag keys. These predefined keys are scoped to namespaces. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // Optional attributes for the cluster. - Options *ClusterCreateOptions `mandatory:"false" json:"options"` - - // Metadata about the cluster. - Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` - - // The state of the cluster masters. - LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Details about the state of the cluster masters. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Endpoints served up by the cluster masters. - Endpoints *ClusterEndpoints `mandatory:"false" json:"endpoints"` - - // Available Kubernetes versions to which the clusters masters may be upgraded. - AvailableKubernetesUpgrades []string `mandatory:"false" json:"availableKubernetesUpgrades"` - - // The image verification policy for signature validation. - ImagePolicyConfig *ImagePolicyConfig `mandatory:"false" json:"imagePolicyConfig"` -} - -func (m ClusterSummary) String() string { - return common.PointerString(m) -} - -// ClusterSummaryLifecycleStateEnum is an alias to type: ClusterLifecycleStateEnum -// Consider using ClusterLifecycleStateEnum instead -// Deprecated -type ClusterSummaryLifecycleStateEnum = ClusterLifecycleStateEnum - -// Set of constants representing the allowable values for ClusterLifecycleStateEnum -// Deprecated -const ( - ClusterSummaryLifecycleStateCreating ClusterLifecycleStateEnum = "CREATING" - ClusterSummaryLifecycleStateActive ClusterLifecycleStateEnum = "ACTIVE" - ClusterSummaryLifecycleStateFailed ClusterLifecycleStateEnum = "FAILED" - ClusterSummaryLifecycleStateDeleting ClusterLifecycleStateEnum = "DELETING" - ClusterSummaryLifecycleStateDeleted ClusterLifecycleStateEnum = "DELETED" - ClusterSummaryLifecycleStateUpdating ClusterLifecycleStateEnum = "UPDATING" -) - -// GetClusterSummaryLifecycleStateEnumValues Enumerates the set of values for ClusterLifecycleStateEnum -// Consider using GetClusterLifecycleStateEnumValue -// Deprecated -var GetClusterSummaryLifecycleStateEnumValues = GetClusterLifecycleStateEnumValues diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/containerengine_client.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/containerengine_client.go deleted file mode 100644 index 3a35ec29f6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/containerengine_client.go +++ /dev/null @@ -1,1165 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" - "net/http" -) - -//ContainerEngineClient a client for ContainerEngine -type ContainerEngineClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewContainerEngineClientWithConfigurationProvider Creates a new default ContainerEngine client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewContainerEngineClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ContainerEngineClient, err error) { - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newContainerEngineClientFromBaseClient(baseClient, provider) -} - -// NewContainerEngineClientWithOboToken Creates a new default ContainerEngine client with the given configuration provider. -// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer -// as well as reading the region -func NewContainerEngineClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ContainerEngineClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newContainerEngineClientFromBaseClient(baseClient, configProvider) -} - -func newContainerEngineClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ContainerEngineClient, err error) { - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = ContainerEngineClient{BaseClient: baseClient} - client.BasePath = "20180222" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *ContainerEngineClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("containerengine", "https://containerengine.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *ContainerEngineClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.SetRegion(region) - client.config = &configProvider - return nil -} - -// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set -func (client *ContainerEngineClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// ClusterMigrateToNativeVcn Initiates cluster migration to use native VCN. -func (client ContainerEngineClient) ClusterMigrateToNativeVcn(ctx context.Context, request ClusterMigrateToNativeVcnRequest) (response ClusterMigrateToNativeVcnResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.clusterMigrateToNativeVcn, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ClusterMigrateToNativeVcnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ClusterMigrateToNativeVcnResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ClusterMigrateToNativeVcnResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ClusterMigrateToNativeVcnResponse") - } - return -} - -// clusterMigrateToNativeVcn implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/migrateToNativeVcn", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ClusterMigrateToNativeVcnResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateCluster Create a new cluster. -func (client ContainerEngineClient) CreateCluster(ctx context.Context, request CreateClusterRequest) (response CreateClusterResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createCluster, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateClusterResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateClusterResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateClusterResponse") - } - return -} - -// createCluster implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) createCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateClusterResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateKubeconfig Create the Kubeconfig YAML for a cluster. -func (client ContainerEngineClient) CreateKubeconfig(ctx context.Context, request CreateKubeconfigRequest) (response CreateKubeconfigResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.createKubeconfig, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateKubeconfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateKubeconfigResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateKubeconfigResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateKubeconfigResponse") - } - return -} - -// createKubeconfig implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) createKubeconfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/kubeconfig/content", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateKubeconfigResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateNodePool Create a new node pool. -func (client ContainerEngineClient) CreateNodePool(ctx context.Context, request CreateNodePoolRequest) (response CreateNodePoolResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createNodePool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateNodePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateNodePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateNodePoolResponse") - } - return -} - -// createNodePool implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) createNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/nodePools", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateNodePoolResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteCluster Delete a cluster. -func (client ContainerEngineClient) DeleteCluster(ctx context.Context, request DeleteClusterRequest) (response DeleteClusterResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteCluster, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteClusterResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteClusterResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteClusterResponse") - } - return -} - -// deleteCluster implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) deleteCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/clusters/{clusterId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteClusterResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteNodePool Delete a node pool. -func (client ContainerEngineClient) DeleteNodePool(ctx context.Context, request DeleteNodePoolRequest) (response DeleteNodePoolResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteNodePool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteNodePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteNodePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteNodePoolResponse") - } - return -} - -// deleteNodePool implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) deleteNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/nodePools/{nodePoolId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteNodePoolResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteWorkRequest Cancel a work request that has not started. -func (client ContainerEngineClient) DeleteWorkRequest(ctx context.Context, request DeleteWorkRequestRequest) (response DeleteWorkRequestResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteWorkRequest, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteWorkRequestResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteWorkRequestResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteWorkRequestResponse") - } - return -} - -// deleteWorkRequest implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) deleteWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteWorkRequestResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetCluster Get the details of a cluster. -func (client ContainerEngineClient) GetCluster(ctx context.Context, request GetClusterRequest) (response GetClusterResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getCluster, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetClusterResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetClusterResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetClusterResponse") - } - return -} - -// getCluster implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetClusterResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetClusterMigrateToNativeVcnStatus Get details on a cluster's migration to native VCN. -func (client ContainerEngineClient) GetClusterMigrateToNativeVcnStatus(ctx context.Context, request GetClusterMigrateToNativeVcnStatusRequest) (response GetClusterMigrateToNativeVcnStatusResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getClusterMigrateToNativeVcnStatus, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetClusterMigrateToNativeVcnStatusResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetClusterMigrateToNativeVcnStatusResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetClusterMigrateToNativeVcnStatusResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetClusterMigrateToNativeVcnStatusResponse") - } - return -} - -// getClusterMigrateToNativeVcnStatus implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getClusterMigrateToNativeVcnStatus(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}/migrateToNativeVcnStatus", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetClusterMigrateToNativeVcnStatusResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetClusterOptions Get options available for clusters. -func (client ContainerEngineClient) GetClusterOptions(ctx context.Context, request GetClusterOptionsRequest) (response GetClusterOptionsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getClusterOptions, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetClusterOptionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetClusterOptionsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetClusterOptionsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetClusterOptionsResponse") - } - return -} - -// getClusterOptions implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getClusterOptions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusterOptions/{clusterOptionId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetClusterOptionsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetNodePool Get the details of a node pool. -func (client ContainerEngineClient) GetNodePool(ctx context.Context, request GetNodePoolRequest) (response GetNodePoolResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getNodePool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetNodePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetNodePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetNodePoolResponse") - } - return -} - -// getNodePool implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/nodePools/{nodePoolId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetNodePoolResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetNodePoolOptions Get options available for node pools. -func (client ContainerEngineClient) GetNodePoolOptions(ctx context.Context, request GetNodePoolOptionsRequest) (response GetNodePoolOptionsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getNodePoolOptions, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetNodePoolOptionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetNodePoolOptionsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetNodePoolOptionsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetNodePoolOptionsResponse") - } - return -} - -// getNodePoolOptions implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getNodePoolOptions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/nodePoolOptions/{nodePoolOptionId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetNodePoolOptionsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetWorkRequest Get the details of a work request. -func (client ContainerEngineClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetWorkRequestResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") - } - return -} - -// getWorkRequest implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetWorkRequestResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListClusters List all the cluster objects in a compartment. -func (client ContainerEngineClient) ListClusters(ctx context.Context, request ListClustersRequest) (response ListClustersResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listClusters, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListClustersResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListClustersResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListClustersResponse") - } - return -} - -// listClusters implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) listClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListClustersResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListNodePools List all the node pools in a compartment, and optionally filter by cluster. -func (client ContainerEngineClient) ListNodePools(ctx context.Context, request ListNodePoolsRequest) (response ListNodePoolsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listNodePools, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListNodePoolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListNodePoolsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListNodePoolsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListNodePoolsResponse") - } - return -} - -// listNodePools implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) listNodePools(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/nodePools", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListNodePoolsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListWorkRequestErrors Get the errors of a work request. -func (client ContainerEngineClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListWorkRequestErrorsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") - } - return -} - -// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListWorkRequestErrorsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListWorkRequestLogs Get the logs of a work request. -func (client ContainerEngineClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListWorkRequestLogsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") - } - return -} - -// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListWorkRequestLogsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListWorkRequests List all work requests in a compartment. -func (client ContainerEngineClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListWorkRequestsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") - } - return -} - -// listWorkRequests implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListWorkRequestsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateCluster Update the details of a cluster. -func (client ContainerEngineClient) UpdateCluster(ctx context.Context, request UpdateClusterRequest) (response UpdateClusterResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateCluster, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateClusterResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateClusterResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateClusterResponse") - } - return -} - -// updateCluster implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) updateCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/clusters/{clusterId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateClusterResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateClusterEndpointConfig Update the details of the cluster endpoint configuration. -func (client ContainerEngineClient) UpdateClusterEndpointConfig(ctx context.Context, request UpdateClusterEndpointConfigRequest) (response UpdateClusterEndpointConfigResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateClusterEndpointConfig, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateClusterEndpointConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateClusterEndpointConfigResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateClusterEndpointConfigResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateClusterEndpointConfigResponse") - } - return -} - -// updateClusterEndpointConfig implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) updateClusterEndpointConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/updateEndpointConfig", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateClusterEndpointConfigResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateNodePool Update the details of a node pool. -func (client ContainerEngineClient) UpdateNodePool(ctx context.Context, request UpdateNodePoolRequest) (response UpdateNodePoolResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateNodePool, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateNodePoolResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateNodePoolResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateNodePoolResponse") - } - return -} - -// updateNodePool implements the OCIOperation interface (enables retrying operations) -func (client ContainerEngineClient) updateNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/nodePools/{nodePoolId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateNodePoolResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_details.go deleted file mode 100644 index 7b32780604..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_details.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClusterDetails The properties that define a request to create a cluster. -type CreateClusterDetails struct { - - // The name of the cluster. Avoid entering confidential information. - Name *string `mandatory:"true" json:"name"` - - // The OCID of the compartment in which to create the cluster. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the virtual cloud network (VCN) in which to create the cluster. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The version of Kubernetes to install into the cluster masters. - KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` - - // The network configuration for access to the Cluster control plane. - EndpointConfig *CreateClusterEndpointConfigDetails `mandatory:"false" json:"endpointConfig"` - - // The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption. - // When used, `kubernetesVersion` must be at least `v1.13.0`. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Optional attributes for the cluster. - Options *ClusterCreateOptions `mandatory:"false" json:"options"` - - // The image verification policy for signature validation. Once a policy is created and enabled with - // one or more kms keys, the policy will ensure all images deployed has been signed with the key(s) - // attached to the policy. - ImagePolicyConfig *CreateImagePolicyConfigDetails `mandatory:"false" json:"imagePolicyConfig"` -} - -func (m CreateClusterDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_endpoint_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_endpoint_config_details.go deleted file mode 100644 index da6550c18c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_endpoint_config_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClusterEndpointConfigDetails The properties that define the network configuration for the Cluster endpoint. -type CreateClusterEndpointConfigDetails struct { - - // The OCID of the regional subnet in which to place the Cluster endpoint. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // A list of the OCIDs of the network security groups (NSGs) to apply to the cluster endpoint. For more information about NSGs, see NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Whether the cluster should be assigned a public IP address. Defaults to false. If set to true on a private subnet, the cluster provisioning will fail. - IsPublicIpEnabled *bool `mandatory:"false" json:"isPublicIpEnabled"` -} - -func (m CreateClusterEndpointConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_kubeconfig_content_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_kubeconfig_content_details.go deleted file mode 100644 index 6238ba0d6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_kubeconfig_content_details.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClusterKubeconfigContentDetails The properties that define a request to create a cluster kubeconfig. -type CreateClusterKubeconfigContentDetails struct { - - // The version of the kubeconfig token. Supported value 2.0.0 - TokenVersion *string `mandatory:"false" json:"tokenVersion"` - - // Deprecated. This field is no longer used. - Expiration *int `mandatory:"false" json:"expiration"` - - // The endpoint to target. A cluster may have multiple endpoints exposed but the kubeconfig can only target one at a time. - Endpoint CreateClusterKubeconfigContentDetailsEndpointEnum `mandatory:"false" json:"endpoint,omitempty"` -} - -func (m CreateClusterKubeconfigContentDetails) String() string { - return common.PointerString(m) -} - -// CreateClusterKubeconfigContentDetailsEndpointEnum Enum with underlying type: string -type CreateClusterKubeconfigContentDetailsEndpointEnum string - -// Set of constants representing the allowable values for CreateClusterKubeconfigContentDetailsEndpointEnum -const ( - CreateClusterKubeconfigContentDetailsEndpointLegacyKubernetes CreateClusterKubeconfigContentDetailsEndpointEnum = "LEGACY_KUBERNETES" - CreateClusterKubeconfigContentDetailsEndpointPublicEndpoint CreateClusterKubeconfigContentDetailsEndpointEnum = "PUBLIC_ENDPOINT" - CreateClusterKubeconfigContentDetailsEndpointPrivateEndpoint CreateClusterKubeconfigContentDetailsEndpointEnum = "PRIVATE_ENDPOINT" -) - -var mappingCreateClusterKubeconfigContentDetailsEndpoint = map[string]CreateClusterKubeconfigContentDetailsEndpointEnum{ - "LEGACY_KUBERNETES": CreateClusterKubeconfigContentDetailsEndpointLegacyKubernetes, - "PUBLIC_ENDPOINT": CreateClusterKubeconfigContentDetailsEndpointPublicEndpoint, - "PRIVATE_ENDPOINT": CreateClusterKubeconfigContentDetailsEndpointPrivateEndpoint, -} - -// GetCreateClusterKubeconfigContentDetailsEndpointEnumValues Enumerates the set of values for CreateClusterKubeconfigContentDetailsEndpointEnum -func GetCreateClusterKubeconfigContentDetailsEndpointEnumValues() []CreateClusterKubeconfigContentDetailsEndpointEnum { - values := make([]CreateClusterKubeconfigContentDetailsEndpointEnum, 0) - for _, v := range mappingCreateClusterKubeconfigContentDetailsEndpoint { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_image_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_image_policy_config_details.go deleted file mode 100644 index 09c4e71721..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_image_policy_config_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateImagePolicyConfigDetails The properties that define a image verification policy. -type CreateImagePolicyConfigDetails struct { - - // Whether the image verification policy is enabled. Defaults to false. If set to true, the images will be verified against the policy at runtime. - IsPolicyEnabled *bool `mandatory:"false" json:"isPolicyEnabled"` - - // A list of KMS key details. - KeyDetails []KeyDetails `mandatory:"false" json:"keyDetails"` -} - -func (m CreateImagePolicyConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_details.go deleted file mode 100644 index 09d18ed44c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_details.go +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateNodePoolDetails The properties that define a request to create a node pool. -type CreateNodePoolDetails struct { - - // The OCID of the compartment in which the node pool exists. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the cluster to which this node pool is attached. - ClusterId *string `mandatory:"true" json:"clusterId"` - - // The name of the node pool. Avoid entering confidential information. - Name *string `mandatory:"true" json:"name"` - - // The version of Kubernetes to install on the nodes in the node pool. - KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` - - // The name of the node shape of the nodes in the node pool. - NodeShape *string `mandatory:"true" json:"nodeShape"` - - // A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. - NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"` - - // Deprecated. Use `nodeSourceDetails` instead. - // If you specify values for both, this value is ignored. - // The name of the image running on the nodes in the node pool. - NodeImageName *string `mandatory:"false" json:"nodeImageName"` - - // Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source. - NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` - - // Specify the configuration of the shape to launch nodes in the node pool. - NodeShapeConfig *CreateNodeShapeConfigDetails `mandatory:"false" json:"nodeShapeConfig"` - - // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. - InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` - - // The SSH public key on each node in the node pool on launch. - SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` - - // Optional, default to 1. The number of nodes to create in each subnet specified in subnetIds property. - // When used, subnetIds is required. This property is deprecated, use nodeConfigDetails instead. - QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` - - // The OCIDs of the subnets in which to place nodes for this node pool. When used, quantityPerSubnet - // can be provided. This property is deprecated, use nodeConfigDetails. Exactly one of the - // subnetIds or nodeConfigDetails properties must be specified. - SubnetIds []string `mandatory:"false" json:"subnetIds"` - - // The configuration of nodes in the node pool. Exactly one of the - // subnetIds or nodeConfigDetails properties must be specified. - NodeConfigDetails *CreateNodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateNodePoolDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateNodePoolDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - NodeMetadata map[string]string `json:"nodeMetadata"` - NodeImageName *string `json:"nodeImageName"` - NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` - NodeShapeConfig *CreateNodeShapeConfigDetails `json:"nodeShapeConfig"` - InitialNodeLabels []KeyValue `json:"initialNodeLabels"` - SshPublicKey *string `json:"sshPublicKey"` - QuantityPerSubnet *int `json:"quantityPerSubnet"` - SubnetIds []string `json:"subnetIds"` - NodeConfigDetails *CreateNodePoolNodeConfigDetails `json:"nodeConfigDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - CompartmentId *string `json:"compartmentId"` - ClusterId *string `json:"clusterId"` - Name *string `json:"name"` - KubernetesVersion *string `json:"kubernetesVersion"` - NodeShape *string `json:"nodeShape"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.NodeMetadata = model.NodeMetadata - - m.NodeImageName = model.NodeImageName - - nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.NodeSourceDetails = nn.(NodeSourceDetails) - } else { - m.NodeSourceDetails = nil - } - - m.NodeShapeConfig = model.NodeShapeConfig - - m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) - for i, n := range model.InitialNodeLabels { - m.InitialNodeLabels[i] = n - } - - m.SshPublicKey = model.SshPublicKey - - m.QuantityPerSubnet = model.QuantityPerSubnet - - m.SubnetIds = make([]string, len(model.SubnetIds)) - for i, n := range model.SubnetIds { - m.SubnetIds[i] = n - } - - m.NodeConfigDetails = model.NodeConfigDetails - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.CompartmentId = model.CompartmentId - - m.ClusterId = model.ClusterId - - m.Name = model.Name - - m.KubernetesVersion = model.KubernetesVersion - - m.NodeShape = model.NodeShape - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_node_config_details.go deleted file mode 100644 index 8b42c1a1a0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_node_config_details.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateNodePoolNodeConfigDetails The size and placement configuration of nodes in the node pool. -type CreateNodePoolNodeConfigDetails struct { - - // The number of nodes that should be in the node pool. - Size *int `mandatory:"true" json:"size"` - - // The placement configurations for the node pool. Provide one placement - // configuration for each availability domain in which you intend to launch a node. - // To use the node pool with a regional subnet, provide a placement configuration for - // each availability domain, and include the regional subnet in each placement - // configuration. - PlacementConfigs []NodePoolPlacementConfigDetails `mandatory:"true" json:"placementConfigs"` - - // The OCIDs of the Network Security Group(s) to associate nodes for this node pool with. For more information about NSGs, see NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // The OCID of the Key Management Service key assigned to the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateNodePoolNodeConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_shape_config_details.go deleted file mode 100644 index b5bfa6a66a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_shape_config_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateNodeShapeConfigDetails The shape configuration of the nodes. -type CreateNodeShapeConfigDetails struct { - - // The total number of OCPUs available to each node in the node pool. - // See here (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to each node, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` -} - -func (m CreateNodeShapeConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_node_pool_request_response.go deleted file mode 100644 index 56339a969a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_node_pool_request_response.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteNodePoolRequest wrapper for the DeleteNodePool operation -type DeleteNodePoolRequest struct { - - // The OCID of the node pool. - NodePoolId *string `mandatory:"true" contributesTo:"path" name:"nodePoolId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the etag from a previous GET or POST response for that resource. The resource - // will be updated or deleted only if the etag you provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteNodePoolRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteNodePoolRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteNodePoolResponse wrapper for the DeleteNodePool operation -type DeleteNodePoolResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID of the work request handling the operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteNodePoolResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteNodePoolResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_work_request_request_response.go deleted file mode 100644 index fd2b3f0eee..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_work_request_request_response.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetWorkRequestRequest wrapper for the GetWorkRequest operation -type GetWorkRequestRequest struct { - - // The OCID of the work request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetWorkRequestRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetWorkRequestResponse wrapper for the GetWorkRequest operation -type GetWorkRequestResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The WorkRequest instance - WorkRequest `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // the number of seconds to should wait before polling this endpoint again - RetryAfter *int `presentIn:"header" name:"retry-after"` -} - -func (response GetWorkRequestResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetWorkRequestResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/image_policy_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/image_policy_config.go deleted file mode 100644 index 832686d897..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/image_policy_config.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImagePolicyConfig The properties that define a image verification policy. -type ImagePolicyConfig struct { - - // Whether the image verification policy is enabled. Defaults to false. If set to true, the images will be verified against the policy at runtime. - IsPolicyEnabled *bool `mandatory:"false" json:"isPolicyEnabled"` - - // A list of KMS key details. - KeyDetails []KeyDetails `mandatory:"false" json:"keyDetails"` -} - -func (m ImagePolicyConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_details.go deleted file mode 100644 index f8b28a8404..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_details.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// KeyDetails The properties that define the kms keys used by OKE for Image Signature verification. -type KeyDetails struct { - - // The OCIDs of the KMS key that will be used to verify whether the images are signed by an approved source. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m KeyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_value.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_value.go deleted file mode 100644 index 059443cc27..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/key_value.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// KeyValue The properties that define a key value pair. -type KeyValue struct { - - // The key of the pair. - Key *string `mandatory:"false" json:"key"` - - // The value of the pair. - Value *string `mandatory:"false" json:"value"` -} - -func (m KeyValue) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/kubernetes_network_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/kubernetes_network_config.go deleted file mode 100644 index 4c3158f235..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/kubernetes_network_config.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// KubernetesNetworkConfig The properties that define the network configuration for Kubernetes. -type KubernetesNetworkConfig struct { - - // The CIDR block for Kubernetes pods. Optional, defaults to 10.244.0.0/16. - PodsCidr *string `mandatory:"false" json:"podsCidr"` - - // The CIDR block for Kubernetes services. Optional, defaults to 10.96.0.0/16. - ServicesCidr *string `mandatory:"false" json:"servicesCidr"` -} - -func (m KubernetesNetworkConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_clusters_request_response.go deleted file mode 100644 index e9bdf0d8a0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_clusters_request_response.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListClustersRequest wrapper for the ListClusters operation -type ListClustersRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A cluster lifecycle state to filter on. Can have multiple parameters of this name. - LifecycleState []ClusterLifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` - - // The name to filter on. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The optional order in which to sort the results. - SortOrder ListClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The optional field to sort the results by. - SortBy ListClustersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListClustersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListClustersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListClustersResponse wrapper for the ListClusters operation -type ListClustersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ClusterSummary instances - Items []ClusterSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListClustersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListClustersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListClustersSortOrderEnum Enum with underlying type: string -type ListClustersSortOrderEnum string - -// Set of constants representing the allowable values for ListClustersSortOrderEnum -const ( - ListClustersSortOrderAsc ListClustersSortOrderEnum = "ASC" - ListClustersSortOrderDesc ListClustersSortOrderEnum = "DESC" -) - -var mappingListClustersSortOrder = map[string]ListClustersSortOrderEnum{ - "ASC": ListClustersSortOrderAsc, - "DESC": ListClustersSortOrderDesc, -} - -// GetListClustersSortOrderEnumValues Enumerates the set of values for ListClustersSortOrderEnum -func GetListClustersSortOrderEnumValues() []ListClustersSortOrderEnum { - values := make([]ListClustersSortOrderEnum, 0) - for _, v := range mappingListClustersSortOrder { - values = append(values, v) - } - return values -} - -// ListClustersSortByEnum Enum with underlying type: string -type ListClustersSortByEnum string - -// Set of constants representing the allowable values for ListClustersSortByEnum -const ( - ListClustersSortById ListClustersSortByEnum = "ID" - ListClustersSortByName ListClustersSortByEnum = "NAME" - ListClustersSortByTimeCreated ListClustersSortByEnum = "TIME_CREATED" -) - -var mappingListClustersSortBy = map[string]ListClustersSortByEnum{ - "ID": ListClustersSortById, - "NAME": ListClustersSortByName, - "TIME_CREATED": ListClustersSortByTimeCreated, -} - -// GetListClustersSortByEnumValues Enumerates the set of values for ListClustersSortByEnum -func GetListClustersSortByEnumValues() []ListClustersSortByEnum { - values := make([]ListClustersSortByEnum, 0) - for _, v := range mappingListClustersSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_node_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_node_pools_request_response.go deleted file mode 100644 index 5e650b54ca..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_node_pools_request_response.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNodePoolsRequest wrapper for the ListNodePools operation -type ListNodePoolsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the cluster. - ClusterId *string `mandatory:"false" contributesTo:"query" name:"clusterId"` - - // The name to filter on. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The optional order in which to sort the results. - SortOrder ListNodePoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The optional field to sort the results by. - SortBy ListNodePoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNodePoolsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNodePoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNodePoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNodePoolsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNodePoolsResponse wrapper for the ListNodePools operation -type ListNodePoolsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []NodePoolSummary instances - Items []NodePoolSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNodePoolsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNodePoolsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNodePoolsSortOrderEnum Enum with underlying type: string -type ListNodePoolsSortOrderEnum string - -// Set of constants representing the allowable values for ListNodePoolsSortOrderEnum -const ( - ListNodePoolsSortOrderAsc ListNodePoolsSortOrderEnum = "ASC" - ListNodePoolsSortOrderDesc ListNodePoolsSortOrderEnum = "DESC" -) - -var mappingListNodePoolsSortOrder = map[string]ListNodePoolsSortOrderEnum{ - "ASC": ListNodePoolsSortOrderAsc, - "DESC": ListNodePoolsSortOrderDesc, -} - -// GetListNodePoolsSortOrderEnumValues Enumerates the set of values for ListNodePoolsSortOrderEnum -func GetListNodePoolsSortOrderEnumValues() []ListNodePoolsSortOrderEnum { - values := make([]ListNodePoolsSortOrderEnum, 0) - for _, v := range mappingListNodePoolsSortOrder { - values = append(values, v) - } - return values -} - -// ListNodePoolsSortByEnum Enum with underlying type: string -type ListNodePoolsSortByEnum string - -// Set of constants representing the allowable values for ListNodePoolsSortByEnum -const ( - ListNodePoolsSortById ListNodePoolsSortByEnum = "ID" - ListNodePoolsSortByName ListNodePoolsSortByEnum = "NAME" - ListNodePoolsSortByTimeCreated ListNodePoolsSortByEnum = "TIME_CREATED" -) - -var mappingListNodePoolsSortBy = map[string]ListNodePoolsSortByEnum{ - "ID": ListNodePoolsSortById, - "NAME": ListNodePoolsSortByName, - "TIME_CREATED": ListNodePoolsSortByTimeCreated, -} - -// GetListNodePoolsSortByEnumValues Enumerates the set of values for ListNodePoolsSortByEnum -func GetListNodePoolsSortByEnumValues() []ListNodePoolsSortByEnum { - values := make([]ListNodePoolsSortByEnum, 0) - for _, v := range mappingListNodePoolsSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_errors_request_response.go deleted file mode 100644 index f5a98bccc2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_errors_request_response.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation -type ListWorkRequestErrorsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the work request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestErrorsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation -type ListWorkRequestErrorsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []WorkRequestError instance - Items []WorkRequestError `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestErrorsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_logs_request_response.go deleted file mode 100644 index cda4aa6058..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_request_logs_request_response.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation -type ListWorkRequestLogsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the work request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestLogsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation -type ListWorkRequestLogsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []WorkRequestLogEntry instance - Items []WorkRequestLogEntry `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestLogsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_requests_request_response.go deleted file mode 100644 index 6a842dcc5e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/list_work_requests_request_response.go +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestsRequest wrapper for the ListWorkRequests operation -type ListWorkRequestsRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the cluster. - ClusterId *string `mandatory:"false" contributesTo:"query" name:"clusterId"` - - // The OCID of the resource associated with a work request - ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` - - // Type of the resource associated with a work request - ResourceType ListWorkRequestsResourceTypeEnum `mandatory:"false" contributesTo:"query" name:"resourceType" omitEmpty:"true"` - - // A work request status to filter on. Can have multiple parameters of this name. - Status []string `contributesTo:"query" name:"status" collectionFormat:"multi"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The optional order in which to sort the results. - SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The optional field to sort the results by. - SortBy ListWorkRequestsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestsResponse wrapper for the ListWorkRequests operation -type ListWorkRequestsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []WorkRequestSummary instances - Items []WorkRequestSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListWorkRequestsResourceTypeEnum Enum with underlying type: string -type ListWorkRequestsResourceTypeEnum string - -// Set of constants representing the allowable values for ListWorkRequestsResourceTypeEnum -const ( - ListWorkRequestsResourceTypeCluster ListWorkRequestsResourceTypeEnum = "CLUSTER" - ListWorkRequestsResourceTypeNodepool ListWorkRequestsResourceTypeEnum = "NODEPOOL" -) - -var mappingListWorkRequestsResourceType = map[string]ListWorkRequestsResourceTypeEnum{ - "CLUSTER": ListWorkRequestsResourceTypeCluster, - "NODEPOOL": ListWorkRequestsResourceTypeNodepool, -} - -// GetListWorkRequestsResourceTypeEnumValues Enumerates the set of values for ListWorkRequestsResourceTypeEnum -func GetListWorkRequestsResourceTypeEnumValues() []ListWorkRequestsResourceTypeEnum { - values := make([]ListWorkRequestsResourceTypeEnum, 0) - for _, v := range mappingListWorkRequestsResourceType { - values = append(values, v) - } - return values -} - -// ListWorkRequestsSortOrderEnum Enum with underlying type: string -type ListWorkRequestsSortOrderEnum string - -// Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum -const ( - ListWorkRequestsSortOrderAsc ListWorkRequestsSortOrderEnum = "ASC" - ListWorkRequestsSortOrderDesc ListWorkRequestsSortOrderEnum = "DESC" -) - -var mappingListWorkRequestsSortOrder = map[string]ListWorkRequestsSortOrderEnum{ - "ASC": ListWorkRequestsSortOrderAsc, - "DESC": ListWorkRequestsSortOrderDesc, -} - -// GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum -func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum { - values := make([]ListWorkRequestsSortOrderEnum, 0) - for _, v := range mappingListWorkRequestsSortOrder { - values = append(values, v) - } - return values -} - -// ListWorkRequestsSortByEnum Enum with underlying type: string -type ListWorkRequestsSortByEnum string - -// Set of constants representing the allowable values for ListWorkRequestsSortByEnum -const ( - ListWorkRequestsSortById ListWorkRequestsSortByEnum = "ID" - ListWorkRequestsSortByOperationType ListWorkRequestsSortByEnum = "OPERATION_TYPE" - ListWorkRequestsSortByStatus ListWorkRequestsSortByEnum = "STATUS" - ListWorkRequestsSortByTimeAccepted ListWorkRequestsSortByEnum = "TIME_ACCEPTED" - ListWorkRequestsSortByTimeStarted ListWorkRequestsSortByEnum = "TIME_STARTED" - ListWorkRequestsSortByTimeFinished ListWorkRequestsSortByEnum = "TIME_FINISHED" -) - -var mappingListWorkRequestsSortBy = map[string]ListWorkRequestsSortByEnum{ - "ID": ListWorkRequestsSortById, - "OPERATION_TYPE": ListWorkRequestsSortByOperationType, - "STATUS": ListWorkRequestsSortByStatus, - "TIME_ACCEPTED": ListWorkRequestsSortByTimeAccepted, - "TIME_STARTED": ListWorkRequestsSortByTimeStarted, - "TIME_FINISHED": ListWorkRequestsSortByTimeFinished, -} - -// GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum -func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum { - values := make([]ListWorkRequestsSortByEnum, 0) - for _, v := range mappingListWorkRequestsSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node.go deleted file mode 100644 index 5deab67523..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Node The properties that define a node. -type Node struct { - - // The OCID of the compute instance backing this node. - Id *string `mandatory:"false" json:"id"` - - // The name of the node. - Name *string `mandatory:"false" json:"name"` - - // The version of Kubernetes this node is running. - KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` - - // The name of the availability domain in which this node is placed. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID of the subnet in which this node is placed. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // The OCID of the node pool to which this node belongs. - NodePoolId *string `mandatory:"false" json:"nodePoolId"` - - // The fault domain of this node. - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - // The private IP address of this node. - PrivateIp *string `mandatory:"false" json:"privateIp"` - - // The public IP address of this node. - PublicIp *string `mandatory:"false" json:"publicIp"` - - // An error that may be associated with the node. - NodeError *NodeError `mandatory:"false" json:"nodeError"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Usage of system tag keys. These predefined keys are scoped to namespaces. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // The state of the node. - LifecycleState NodeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Details about the state of the node. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` -} - -func (m Node) String() string { - return common.PointerString(m) -} - -// NodeLifecycleStateEnum Enum with underlying type: string -type NodeLifecycleStateEnum string - -// Set of constants representing the allowable values for NodeLifecycleStateEnum -const ( - NodeLifecycleStateCreating NodeLifecycleStateEnum = "CREATING" - NodeLifecycleStateActive NodeLifecycleStateEnum = "ACTIVE" - NodeLifecycleStateUpdating NodeLifecycleStateEnum = "UPDATING" - NodeLifecycleStateDeleting NodeLifecycleStateEnum = "DELETING" - NodeLifecycleStateDeleted NodeLifecycleStateEnum = "DELETED" - NodeLifecycleStateFailing NodeLifecycleStateEnum = "FAILING" - NodeLifecycleStateInactive NodeLifecycleStateEnum = "INACTIVE" -) - -var mappingNodeLifecycleState = map[string]NodeLifecycleStateEnum{ - "CREATING": NodeLifecycleStateCreating, - "ACTIVE": NodeLifecycleStateActive, - "UPDATING": NodeLifecycleStateUpdating, - "DELETING": NodeLifecycleStateDeleting, - "DELETED": NodeLifecycleStateDeleted, - "FAILING": NodeLifecycleStateFailing, - "INACTIVE": NodeLifecycleStateInactive, -} - -// GetNodeLifecycleStateEnumValues Enumerates the set of values for NodeLifecycleStateEnum -func GetNodeLifecycleStateEnumValues() []NodeLifecycleStateEnum { - values := make([]NodeLifecycleStateEnum, 0) - for _, v := range mappingNodeLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_error.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_error.go deleted file mode 100644 index d5531e69d1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_error.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodeError The properties that define an upstream error while managing a node. -type NodeError struct { - - // A short error code that defines the upstream error, meant for programmatic parsing. See API Errors (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). - Code *string `mandatory:"true" json:"code"` - - // A human-readable error string of the upstream error. - Message *string `mandatory:"true" json:"message"` - - // The status of the HTTP response encountered in the upstream error. - Status *string `mandatory:"false" json:"status"` - - // Unique Oracle-assigned identifier for the upstream request. If you need to contact Oracle about a particular upstream request, please provide the request ID. - OpcRequestId *string `mandatory:"false" json:"opc-request-id"` -} - -func (m NodeError) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool.go deleted file mode 100644 index e67a7956aa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool.go +++ /dev/null @@ -1,194 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodePool A pool of compute nodes attached to a cluster. Avoid entering confidential information. -type NodePool struct { - - // The OCID of the node pool. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the compartment in which the node pool exists. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID of the cluster to which this node pool is attached. - ClusterId *string `mandatory:"false" json:"clusterId"` - - // The name of the node pool. - Name *string `mandatory:"false" json:"name"` - - // The version of Kubernetes running on the nodes in the node pool. - KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` - - // A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. - NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"` - - // Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. - NodeImageId *string `mandatory:"false" json:"nodeImageId"` - - // Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. - NodeImageName *string `mandatory:"false" json:"nodeImageName"` - - // The shape configuration of the nodes. - NodeShapeConfig *NodeShapeConfig `mandatory:"false" json:"nodeShapeConfig"` - - // Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. - NodeSource NodeSourceOption `mandatory:"false" json:"nodeSource"` - - // Source running on the nodes in the node pool. - NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` - - // The name of the node shape of the nodes in the node pool. - NodeShape *string `mandatory:"false" json:"nodeShape"` - - // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. - InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` - - // The SSH public key on each node in the node pool on launch. - SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` - - // The number of nodes in each subnet. - QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` - - // The OCIDs of the subnets in which to place nodes for this node pool. - SubnetIds []string `mandatory:"false" json:"subnetIds"` - - // The nodes in the node pool. - Nodes []Node `mandatory:"false" json:"nodes"` - - // The configuration of nodes in the node pool. - NodeConfigDetails *NodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Usage of system tag keys. These predefined keys are scoped to namespaces. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m NodePool) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *NodePool) UnmarshalJSON(data []byte) (e error) { - model := struct { - Id *string `json:"id"` - CompartmentId *string `json:"compartmentId"` - ClusterId *string `json:"clusterId"` - Name *string `json:"name"` - KubernetesVersion *string `json:"kubernetesVersion"` - NodeMetadata map[string]string `json:"nodeMetadata"` - NodeImageId *string `json:"nodeImageId"` - NodeImageName *string `json:"nodeImageName"` - NodeShapeConfig *NodeShapeConfig `json:"nodeShapeConfig"` - NodeSource nodesourceoption `json:"nodeSource"` - NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` - NodeShape *string `json:"nodeShape"` - InitialNodeLabels []KeyValue `json:"initialNodeLabels"` - SshPublicKey *string `json:"sshPublicKey"` - QuantityPerSubnet *int `json:"quantityPerSubnet"` - SubnetIds []string `json:"subnetIds"` - Nodes []Node `json:"nodes"` - NodeConfigDetails *NodePoolNodeConfigDetails `json:"nodeConfigDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Id = model.Id - - m.CompartmentId = model.CompartmentId - - m.ClusterId = model.ClusterId - - m.Name = model.Name - - m.KubernetesVersion = model.KubernetesVersion - - m.NodeMetadata = model.NodeMetadata - - m.NodeImageId = model.NodeImageId - - m.NodeImageName = model.NodeImageName - - m.NodeShapeConfig = model.NodeShapeConfig - - nn, e = model.NodeSource.UnmarshalPolymorphicJSON(model.NodeSource.JsonData) - if e != nil { - return - } - if nn != nil { - m.NodeSource = nn.(NodeSourceOption) - } else { - m.NodeSource = nil - } - - nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.NodeSourceDetails = nn.(NodeSourceDetails) - } else { - m.NodeSourceDetails = nil - } - - m.NodeShape = model.NodeShape - - m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) - for i, n := range model.InitialNodeLabels { - m.InitialNodeLabels[i] = n - } - - m.SshPublicKey = model.SshPublicKey - - m.QuantityPerSubnet = model.QuantityPerSubnet - - m.SubnetIds = make([]string, len(model.SubnetIds)) - for i, n := range model.SubnetIds { - m.SubnetIds[i] = n - } - - m.Nodes = make([]Node, len(model.Nodes)) - for i, n := range model.Nodes { - m.Nodes[i] = n - } - - m.NodeConfigDetails = model.NodeConfigDetails - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_node_config_details.go deleted file mode 100644 index d2f72cb443..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_node_config_details.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodePoolNodeConfigDetails The size and placement configuration of nodes in the node pool. -type NodePoolNodeConfigDetails struct { - - // The number of nodes in the node pool. - Size *int `mandatory:"false" json:"size"` - - // The OCIDs of the Network Security Group(s) to associate nodes for this node pool with. For more information about NSGs, see NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // The OCID of the Key Management Service key assigned to the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The placement configurations for the node pool. Provide one placement - // configuration for each availability domain in which you intend to launch a node. - // To use the node pool with a regional subnet, provide a placement configuration for - // each availability domain, and include the regional subnet in each placement - // configuration. - PlacementConfigs []NodePoolPlacementConfigDetails `mandatory:"false" json:"placementConfigs"` -} - -func (m NodePoolNodeConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_placement_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_placement_config_details.go deleted file mode 100644 index 5dac2a22a2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_placement_config_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodePoolPlacementConfigDetails The location where a node pool will place nodes. -type NodePoolPlacementConfigDetails struct { - - // The availability domain in which to place nodes. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the subnet in which to place nodes. - SubnetId *string `mandatory:"true" json:"subnetId"` -} - -func (m NodePoolPlacementConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_summary.go deleted file mode 100644 index 818979a31c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_summary.go +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodePoolSummary The properties that define a node pool summary. -type NodePoolSummary struct { - - // The OCID of the node pool. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the compartment in which the node pool exists. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID of the cluster to which this node pool is attached. - ClusterId *string `mandatory:"false" json:"clusterId"` - - // The name of the node pool. - Name *string `mandatory:"false" json:"name"` - - // The version of Kubernetes running on the nodes in the node pool. - KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` - - // Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. - NodeImageId *string `mandatory:"false" json:"nodeImageId"` - - // Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. - NodeImageName *string `mandatory:"false" json:"nodeImageName"` - - // The shape configuration of the nodes. - NodeShapeConfig *NodeShapeConfig `mandatory:"false" json:"nodeShapeConfig"` - - // Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. - NodeSource NodeSourceOption `mandatory:"false" json:"nodeSource"` - - // Source running on the nodes in the node pool. - NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` - - // The name of the node shape of the nodes in the node pool. - NodeShape *string `mandatory:"false" json:"nodeShape"` - - // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. - InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` - - // The SSH public key on each node in the node pool on launch. - SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` - - // The number of nodes in each subnet. - QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` - - // The OCIDs of the subnets in which to place nodes for this node pool. - SubnetIds []string `mandatory:"false" json:"subnetIds"` - - // The configuration of nodes in the node pool. - NodeConfigDetails *NodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Usage of system tag keys. These predefined keys are scoped to namespaces. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` -} - -func (m NodePoolSummary) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *NodePoolSummary) UnmarshalJSON(data []byte) (e error) { - model := struct { - Id *string `json:"id"` - CompartmentId *string `json:"compartmentId"` - ClusterId *string `json:"clusterId"` - Name *string `json:"name"` - KubernetesVersion *string `json:"kubernetesVersion"` - NodeImageId *string `json:"nodeImageId"` - NodeImageName *string `json:"nodeImageName"` - NodeShapeConfig *NodeShapeConfig `json:"nodeShapeConfig"` - NodeSource nodesourceoption `json:"nodeSource"` - NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` - NodeShape *string `json:"nodeShape"` - InitialNodeLabels []KeyValue `json:"initialNodeLabels"` - SshPublicKey *string `json:"sshPublicKey"` - QuantityPerSubnet *int `json:"quantityPerSubnet"` - SubnetIds []string `json:"subnetIds"` - NodeConfigDetails *NodePoolNodeConfigDetails `json:"nodeConfigDetails"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Id = model.Id - - m.CompartmentId = model.CompartmentId - - m.ClusterId = model.ClusterId - - m.Name = model.Name - - m.KubernetesVersion = model.KubernetesVersion - - m.NodeImageId = model.NodeImageId - - m.NodeImageName = model.NodeImageName - - m.NodeShapeConfig = model.NodeShapeConfig - - nn, e = model.NodeSource.UnmarshalPolymorphicJSON(model.NodeSource.JsonData) - if e != nil { - return - } - if nn != nil { - m.NodeSource = nn.(NodeSourceOption) - } else { - m.NodeSource = nil - } - - nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.NodeSourceDetails = nn.(NodeSourceDetails) - } else { - m.NodeSourceDetails = nil - } - - m.NodeShape = model.NodeShape - - m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) - for i, n := range model.InitialNodeLabels { - m.InitialNodeLabels[i] = n - } - - m.SshPublicKey = model.SshPublicKey - - m.QuantityPerSubnet = model.QuantityPerSubnet - - m.SubnetIds = make([]string, len(model.SubnetIds)) - for i, n := range model.SubnetIds { - m.SubnetIds[i] = n - } - - m.NodeConfigDetails = model.NodeConfigDetails - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_shape_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_shape_config.go deleted file mode 100644 index 119c0a4664..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_shape_config.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodeShapeConfig The shape configuration of the nodes. -type NodeShapeConfig struct { - - // The total number of OCPUs available to each node in the node pool. - // See here (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to each node, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` -} - -func (m NodeShapeConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_details.go deleted file mode 100644 index dc075a0ce7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_details.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NodeSourceDetails The details of the node's source. -type NodeSourceDetails interface { -} - -type nodesourcedetails struct { - JsonData []byte - SourceType string `json:"sourceType"` -} - -// UnmarshalJSON unmarshals json -func (m *nodesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalernodesourcedetails nodesourcedetails - s := struct { - Model Unmarshalernodesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SourceType = s.Model.SourceType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *nodesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.SourceType { - case "IMAGE": - mm := NodeSourceViaImageDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m nodesourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_type.go deleted file mode 100644 index b4d906e86e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_type.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -// NodeSourceTypeEnum Enum with underlying type: string -type NodeSourceTypeEnum string - -// Set of constants representing the allowable values for NodeSourceTypeEnum -const ( - NodeSourceTypeImage NodeSourceTypeEnum = "IMAGE" -) - -var mappingNodeSourceType = map[string]NodeSourceTypeEnum{ - "IMAGE": NodeSourceTypeImage, -} - -// GetNodeSourceTypeEnumValues Enumerates the set of values for NodeSourceTypeEnum -func GetNodeSourceTypeEnumValues() []NodeSourceTypeEnum { - values := make([]NodeSourceTypeEnum, 0) - for _, v := range mappingNodeSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/service_lb_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/service_lb_config_details.go deleted file mode 100644 index 69eb64d1c3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/service_lb_config_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ServiceLbConfigDetails Configuration to be applied to load balancers created by Kubernetes services -type ServiceLbConfigDetails struct { - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m ServiceLbConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/sort_order.go deleted file mode 100644 index caf61b06ac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/sort_order.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -// SortOrderEnum Enum with underlying type: string -type SortOrderEnum string - -// Set of constants representing the allowable values for SortOrderEnum -const ( - SortOrderAsc SortOrderEnum = "ASC" - SortOrderDesc SortOrderEnum = "DESC" -) - -var mappingSortOrder = map[string]SortOrderEnum{ - "ASC": SortOrderAsc, - "DESC": SortOrderDesc, -} - -// GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum -func GetSortOrderEnumValues() []SortOrderEnum { - values := make([]SortOrderEnum, 0) - for _, v := range mappingSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_details.go deleted file mode 100644 index 6efa865e32..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateClusterEndpointConfigDetails The properties that define a request to update a cluster endpoint config. -type UpdateClusterEndpointConfigDetails struct { - - // A list of the OCIDs of the network security groups (NSGs) to apply to the cluster endpoint. For more information about NSGs, see NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Whether the cluster should be assigned a public IP address. Defaults to false. If set to true on a private subnet, the cluster update will fail. - IsPublicIpEnabled *bool `mandatory:"false" json:"isPublicIpEnabled"` -} - -func (m UpdateClusterEndpointConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_options_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_options_details.go deleted file mode 100644 index 9175d33398..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_options_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateClusterOptionsDetails The properties that define extra options updating a cluster. -type UpdateClusterOptionsDetails struct { - - // Configurable cluster admission controllers - AdmissionControllerOptions *AdmissionControllerOptions `mandatory:"false" json:"admissionControllerOptions"` - - PersistentVolumeConfig *PersistentVolumeConfigDetails `mandatory:"false" json:"persistentVolumeConfig"` - - ServiceLbConfig *ServiceLbConfigDetails `mandatory:"false" json:"serviceLbConfig"` -} - -func (m UpdateClusterOptionsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_image_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_image_policy_config_details.go deleted file mode 100644 index 8181da31cc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_image_policy_config_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateImagePolicyConfigDetails The properties that define a image verification policy. -type UpdateImagePolicyConfigDetails struct { - - // Whether the image verification policy is enabled. Defaults to false. If set to true, the images will be verified against the policy at runtime. - IsPolicyEnabled *bool `mandatory:"false" json:"isPolicyEnabled"` - - // A list of KMS key details. - KeyDetails []KeyDetails `mandatory:"false" json:"keyDetails"` -} - -func (m UpdateImagePolicyConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_details.go deleted file mode 100644 index f76c072d04..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_details.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNodePoolDetails The properties that define a request to update a node pool. -type UpdateNodePoolDetails struct { - - // The new name for the cluster. Avoid entering confidential information. - Name *string `mandatory:"false" json:"name"` - - // The version of Kubernetes to which the nodes in the node pool should be upgraded. - KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` - - // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. - InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` - - // The number of nodes to have in each subnet specified in the subnetIds property. This property is deprecated, - // use nodeConfigDetails instead. If the current value of quantityPerSubnet is greater than 0, you can only - // use quantityPerSubnet to scale the node pool. If the current value of quantityPerSubnet is equal to 0 and - // the current value of size in nodeConfigDetails is greater than 0, before you can use quantityPerSubnet, - // you must first scale the node pool to 0 nodes using nodeConfigDetails. - QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` - - // The OCIDs of the subnets in which to place nodes for this node pool. This property is deprecated, - // use nodeConfigDetails instead. Only one of the subnetIds or nodeConfigDetails - // properties can be specified. - SubnetIds []string `mandatory:"false" json:"subnetIds"` - - // The configuration of nodes in the node pool. Only one of the subnetIds or nodeConfigDetails - // properties should be specified. If the current value of quantityPerSubnet is greater than 0, the node - // pool may still be scaled using quantityPerSubnet. Before you can use nodeConfigDetails, - // you must first scale the node pool to 0 nodes using quantityPerSubnet. - NodeConfigDetails *UpdateNodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` - - // A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. - NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"` - - // Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source. - NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` - - // The SSH public key to add to each node in the node pool on launch. - SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` - - // The name of the node shape of the nodes in the node pool used on launch. - NodeShape *string `mandatory:"false" json:"nodeShape"` - - // Specify the configuration of the shape to launch nodes in the node pool. - NodeShapeConfig *UpdateNodeShapeConfigDetails `mandatory:"false" json:"nodeShapeConfig"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateNodePoolDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *UpdateNodePoolDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - Name *string `json:"name"` - KubernetesVersion *string `json:"kubernetesVersion"` - InitialNodeLabels []KeyValue `json:"initialNodeLabels"` - QuantityPerSubnet *int `json:"quantityPerSubnet"` - SubnetIds []string `json:"subnetIds"` - NodeConfigDetails *UpdateNodePoolNodeConfigDetails `json:"nodeConfigDetails"` - NodeMetadata map[string]string `json:"nodeMetadata"` - NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` - SshPublicKey *string `json:"sshPublicKey"` - NodeShape *string `json:"nodeShape"` - NodeShapeConfig *UpdateNodeShapeConfigDetails `json:"nodeShapeConfig"` - FreeformTags map[string]string `json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Name = model.Name - - m.KubernetesVersion = model.KubernetesVersion - - m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) - for i, n := range model.InitialNodeLabels { - m.InitialNodeLabels[i] = n - } - - m.QuantityPerSubnet = model.QuantityPerSubnet - - m.SubnetIds = make([]string, len(model.SubnetIds)) - for i, n := range model.SubnetIds { - m.SubnetIds[i] = n - } - - m.NodeConfigDetails = model.NodeConfigDetails - - m.NodeMetadata = model.NodeMetadata - - nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.NodeSourceDetails = nn.(NodeSourceDetails) - } else { - m.NodeSourceDetails = nil - } - - m.SshPublicKey = model.SshPublicKey - - m.NodeShape = model.NodeShape - - m.NodeShapeConfig = model.NodeShapeConfig - - m.FreeformTags = model.FreeformTags - - m.DefinedTags = model.DefinedTags - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_node_config_details.go deleted file mode 100644 index dbca462c2a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_node_config_details.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNodePoolNodeConfigDetails The size and placement configuration of nodes in the node pool. -type UpdateNodePoolNodeConfigDetails struct { - - // The number of nodes in the node pool. - Size *int `mandatory:"false" json:"size"` - - // The OCIDs of the Network Security Group(s) to associate nodes for this node pool with. For more information about NSGs, see NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // The OCID of the Key Management Service key assigned to the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The placement configurations for the node pool. Provide one placement - // configuration for each availability domain in which you intend to launch a node. - // To use the node pool with a regional subnet, provide a placement configuration for - // each availability domain, and include the regional subnet in each placement - // configuration. - PlacementConfigs []NodePoolPlacementConfigDetails `mandatory:"false" json:"placementConfigs"` -} - -func (m UpdateNodePoolNodeConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_request_response.go deleted file mode 100644 index 7d64d50f02..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_pool_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateNodePoolRequest wrapper for the UpdateNodePool operation -type UpdateNodePoolRequest struct { - - // The OCID of the node pool. - NodePoolId *string `mandatory:"true" contributesTo:"path" name:"nodePoolId"` - - // The fields to update in a node pool. - UpdateNodePoolDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the etag from a previous GET or POST response for that resource. The resource - // will be updated or deleted only if the etag you provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateNodePoolRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateNodePoolRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateNodePoolResponse wrapper for the UpdateNodePool operation -type UpdateNodePoolResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID of the work request handling the operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateNodePoolResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateNodePoolResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_shape_config_details.go deleted file mode 100644 index db869b5167..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_node_shape_config_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNodeShapeConfigDetails The shape configuration of the nodes. -type UpdateNodeShapeConfigDetails struct { - - // The total number of OCPUs available to each node in the node pool. - // See here (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to each node, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` -} - -func (m UpdateNodeShapeConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request.go deleted file mode 100644 index b56fc9e55b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequest An asynchronous work request. -type WorkRequest struct { - - // The OCID of the work request. - Id *string `mandatory:"false" json:"id"` - - // The type of work the work request is doing. - OperationType WorkRequestOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` - - // The current status of the work request. - Status WorkRequestStatusEnum `mandatory:"false" json:"status,omitempty"` - - // The OCID of the compartment in which the work request exists. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []WorkRequestResource `mandatory:"false" json:"resources"` - - // The time the work request was accepted. - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // The time the work request was started. - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The time the work request was finished. - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m WorkRequest) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_error.go deleted file mode 100644 index 8df4f4bbfc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_error.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestError Errors related to a specific work request. -type WorkRequestError struct { - - // A short error code that defines the error, meant for programmatic parsing. See API Errors (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). - Code *string `mandatory:"true" json:"code"` - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // The date and time the error occurred. - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` -} - -func (m WorkRequestError) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_log_entry.go deleted file mode 100644 index 6da527228f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_log_entry.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestLogEntry Log entries related to a specific work request. -type WorkRequestLogEntry struct { - - // The description of an action that occurred. - Message *string `mandatory:"false" json:"message"` - - // The date and time the log entry occurred. - Timestamp *string `mandatory:"false" json:"timestamp"` -} - -func (m WorkRequestLogEntry) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_operation_type.go deleted file mode 100644 index 6aafed4912..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_operation_type.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -// WorkRequestOperationTypeEnum Enum with underlying type: string -type WorkRequestOperationTypeEnum string - -// Set of constants representing the allowable values for WorkRequestOperationTypeEnum -const ( - WorkRequestOperationTypeClusterCreate WorkRequestOperationTypeEnum = "CLUSTER_CREATE" - WorkRequestOperationTypeClusterUpdate WorkRequestOperationTypeEnum = "CLUSTER_UPDATE" - WorkRequestOperationTypeClusterDelete WorkRequestOperationTypeEnum = "CLUSTER_DELETE" - WorkRequestOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" - WorkRequestOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" - WorkRequestOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" - WorkRequestOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" - WorkRequestOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" -) - -var mappingWorkRequestOperationType = map[string]WorkRequestOperationTypeEnum{ - "CLUSTER_CREATE": WorkRequestOperationTypeClusterCreate, - "CLUSTER_UPDATE": WorkRequestOperationTypeClusterUpdate, - "CLUSTER_DELETE": WorkRequestOperationTypeClusterDelete, - "NODEPOOL_CREATE": WorkRequestOperationTypeNodepoolCreate, - "NODEPOOL_UPDATE": WorkRequestOperationTypeNodepoolUpdate, - "NODEPOOL_DELETE": WorkRequestOperationTypeNodepoolDelete, - "NODEPOOL_RECONCILE": WorkRequestOperationTypeNodepoolReconcile, - "WORKREQUEST_CANCEL": WorkRequestOperationTypeWorkrequestCancel, -} - -// GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum -func GetWorkRequestOperationTypeEnumValues() []WorkRequestOperationTypeEnum { - values := make([]WorkRequestOperationTypeEnum, 0) - for _, v := range mappingWorkRequestOperationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_resource.go deleted file mode 100644 index 1e9f45199b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_resource.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestResource The properties that define a work request resource. -type WorkRequestResource struct { - - // The way in which this resource was affected by the work tracked by the work request. - ActionType WorkRequestResourceActionTypeEnum `mandatory:"false" json:"actionType,omitempty"` - - // The resource type the work request affects. - EntityType *string `mandatory:"false" json:"entityType"` - - // The OCID of the resource the work request affects. - Identifier *string `mandatory:"false" json:"identifier"` - - // The URI path on which the user can issue a GET request to access the resource metadata. - EntityUri *string `mandatory:"false" json:"entityUri"` -} - -func (m WorkRequestResource) String() string { - return common.PointerString(m) -} - -// WorkRequestResourceActionTypeEnum Enum with underlying type: string -type WorkRequestResourceActionTypeEnum string - -// Set of constants representing the allowable values for WorkRequestResourceActionTypeEnum -const ( - WorkRequestResourceActionTypeCreated WorkRequestResourceActionTypeEnum = "CREATED" - WorkRequestResourceActionTypeUpdated WorkRequestResourceActionTypeEnum = "UPDATED" - WorkRequestResourceActionTypeDeleted WorkRequestResourceActionTypeEnum = "DELETED" - WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" - WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" - WorkRequestResourceActionTypeFailed WorkRequestResourceActionTypeEnum = "FAILED" - WorkRequestResourceActionTypeCanceledCreate WorkRequestResourceActionTypeEnum = "CANCELED_CREATE" - WorkRequestResourceActionTypeCanceledUpdate WorkRequestResourceActionTypeEnum = "CANCELED_UPDATE" - WorkRequestResourceActionTypeCanceledDelete WorkRequestResourceActionTypeEnum = "CANCELED_DELETE" -) - -var mappingWorkRequestResourceActionType = map[string]WorkRequestResourceActionTypeEnum{ - "CREATED": WorkRequestResourceActionTypeCreated, - "UPDATED": WorkRequestResourceActionTypeUpdated, - "DELETED": WorkRequestResourceActionTypeDeleted, - "RELATED": WorkRequestResourceActionTypeRelated, - "IN_PROGRESS": WorkRequestResourceActionTypeInProgress, - "FAILED": WorkRequestResourceActionTypeFailed, - "CANCELED_CREATE": WorkRequestResourceActionTypeCanceledCreate, - "CANCELED_UPDATE": WorkRequestResourceActionTypeCanceledUpdate, - "CANCELED_DELETE": WorkRequestResourceActionTypeCanceledDelete, -} - -// GetWorkRequestResourceActionTypeEnumValues Enumerates the set of values for WorkRequestResourceActionTypeEnum -func GetWorkRequestResourceActionTypeEnumValues() []WorkRequestResourceActionTypeEnum { - values := make([]WorkRequestResourceActionTypeEnum, 0) - for _, v := range mappingWorkRequestResourceActionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_status.go deleted file mode 100644 index 30839a044b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_status.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -// WorkRequestStatusEnum Enum with underlying type: string -type WorkRequestStatusEnum string - -// Set of constants representing the allowable values for WorkRequestStatusEnum -const ( - WorkRequestStatusAccepted WorkRequestStatusEnum = "ACCEPTED" - WorkRequestStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" - WorkRequestStatusFailed WorkRequestStatusEnum = "FAILED" - WorkRequestStatusSucceeded WorkRequestStatusEnum = "SUCCEEDED" - WorkRequestStatusCanceling WorkRequestStatusEnum = "CANCELING" - WorkRequestStatusCanceled WorkRequestStatusEnum = "CANCELED" -) - -var mappingWorkRequestStatus = map[string]WorkRequestStatusEnum{ - "ACCEPTED": WorkRequestStatusAccepted, - "IN_PROGRESS": WorkRequestStatusInProgress, - "FAILED": WorkRequestStatusFailed, - "SUCCEEDED": WorkRequestStatusSucceeded, - "CANCELING": WorkRequestStatusCanceling, - "CANCELED": WorkRequestStatusCanceled, -} - -// GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum -func GetWorkRequestStatusEnumValues() []WorkRequestStatusEnum { - values := make([]WorkRequestStatusEnum, 0) - for _, v := range mappingWorkRequestStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_summary.go deleted file mode 100644 index 6390194193..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/work_request_summary.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Container Engine for Kubernetes API -// -// API for the Container Engine for Kubernetes service. Use this API to build, deploy, -// and manage cloud-native applications. For more information, see -// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). -// - -package containerengine - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestSummary The properties that define a work request summary. -type WorkRequestSummary struct { - - // The OCID of the work request. - Id *string `mandatory:"false" json:"id"` - - // The type of work the work request is doing. - OperationType WorkRequestOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` - - // The current status of the work request. - Status WorkRequestStatusEnum `mandatory:"false" json:"status,omitempty"` - - // The OCID of the compartment in which the work request exists. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []WorkRequestResource `mandatory:"false" json:"resources"` - - // The time the work request was accepted. - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // The time the work request was started. - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The time the work request was finished. - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m WorkRequestSummary) String() string { - return common.PointerString(m) -} - -// WorkRequestSummaryOperationTypeEnum is an alias to type: WorkRequestOperationTypeEnum -// Consider using WorkRequestOperationTypeEnum instead -// Deprecated -type WorkRequestSummaryOperationTypeEnum = WorkRequestOperationTypeEnum - -// Set of constants representing the allowable values for WorkRequestOperationTypeEnum -// Deprecated -const ( - WorkRequestSummaryOperationTypeClusterCreate WorkRequestOperationTypeEnum = "CLUSTER_CREATE" - WorkRequestSummaryOperationTypeClusterUpdate WorkRequestOperationTypeEnum = "CLUSTER_UPDATE" - WorkRequestSummaryOperationTypeClusterDelete WorkRequestOperationTypeEnum = "CLUSTER_DELETE" - WorkRequestSummaryOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" - WorkRequestSummaryOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" - WorkRequestSummaryOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" - WorkRequestSummaryOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" - WorkRequestSummaryOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" -) - -// GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum -// Consider using GetWorkRequestOperationTypeEnumValue -// Deprecated -var GetWorkRequestSummaryOperationTypeEnumValues = GetWorkRequestOperationTypeEnumValues - -// WorkRequestSummaryStatusEnum is an alias to type: WorkRequestStatusEnum -// Consider using WorkRequestStatusEnum instead -// Deprecated -type WorkRequestSummaryStatusEnum = WorkRequestStatusEnum - -// Set of constants representing the allowable values for WorkRequestStatusEnum -// Deprecated -const ( - WorkRequestSummaryStatusAccepted WorkRequestStatusEnum = "ACCEPTED" - WorkRequestSummaryStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" - WorkRequestSummaryStatusFailed WorkRequestStatusEnum = "FAILED" - WorkRequestSummaryStatusSucceeded WorkRequestStatusEnum = "SUCCEEDED" - WorkRequestSummaryStatusCanceling WorkRequestStatusEnum = "CANCELING" - WorkRequestSummaryStatusCanceled WorkRequestStatusEnum = "CANCELED" -) - -// GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum -// Consider using GetWorkRequestStatusEnumValue -// Deprecated -var GetWorkRequestSummaryStatusEnumValues = GetWorkRequestStatusEnumValues diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_details.go deleted file mode 100644 index e534e0856a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AcceptLocalPeeringTokenDetails Contains a peering token generated by a peer. By accepting a peering token, you are facilitating a peering handshake. Once both sides accept peering tokens, a peering is established. -type AcceptLocalPeeringTokenDetails struct { - - // An opaque token obtained from a peer. - TokenFromPeer *string `mandatory:"true" json:"tokenFromPeer"` -} - -func (m AcceptLocalPeeringTokenDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_details.go deleted file mode 100644 index 67d9cf3ee7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddAdditionalRouteRulesDetails The configuration details for the add rules operation. -type AddAdditionalRouteRulesDetails struct { - - // The collection of rules used for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"false" json:"routeRules"` -} - -func (m AddAdditionalRouteRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statement_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statement_details.go deleted file mode 100644 index 7394eba4e9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statement_details.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddDrgRouteDistributionStatementDetails Details used to add a route distribution statement. -type AddDrgRouteDistributionStatementDetails struct { - - // The action is applied only if all of the match criteria is met. - // If there are no match criteria in a statement, match ALL is implied. - MatchCriteria []DrgRouteDistributionMatchCriteria `mandatory:"true" json:"matchCriteria"` - - // Accept: import/export the route "as is" - Action AddDrgRouteDistributionStatementDetailsActionEnum `mandatory:"true" json:"action"` - - // This field is used to specify the priority of each statement in a route distribution. - // The priority will be represented as a number between 0 and 65535 where a lower number - // indicates a higher priority. When a route is processed, statements are applied in the order - // defined by their priority. The first matching rule dictates the action that will be taken - // on the route. - Priority *int `mandatory:"true" json:"priority"` -} - -func (m AddDrgRouteDistributionStatementDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *AddDrgRouteDistributionStatementDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - MatchCriteria []drgroutedistributionmatchcriteria `json:"matchCriteria"` - Action AddDrgRouteDistributionStatementDetailsActionEnum `json:"action"` - Priority *int `json:"priority"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.MatchCriteria = make([]DrgRouteDistributionMatchCriteria, len(model.MatchCriteria)) - for i, n := range model.MatchCriteria { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.MatchCriteria[i] = nn.(DrgRouteDistributionMatchCriteria) - } else { - m.MatchCriteria[i] = nil - } - } - - m.Action = model.Action - - m.Priority = model.Priority - - return -} - -// AddDrgRouteDistributionStatementDetailsActionEnum Enum with underlying type: string -type AddDrgRouteDistributionStatementDetailsActionEnum string - -// Set of constants representing the allowable values for AddDrgRouteDistributionStatementDetailsActionEnum -const ( - AddDrgRouteDistributionStatementDetailsActionAccept AddDrgRouteDistributionStatementDetailsActionEnum = "ACCEPT" -) - -var mappingAddDrgRouteDistributionStatementDetailsAction = map[string]AddDrgRouteDistributionStatementDetailsActionEnum{ - "ACCEPT": AddDrgRouteDistributionStatementDetailsActionAccept, -} - -// GetAddDrgRouteDistributionStatementDetailsActionEnumValues Enumerates the set of values for AddDrgRouteDistributionStatementDetailsActionEnum -func GetAddDrgRouteDistributionStatementDetailsActionEnumValues() []AddDrgRouteDistributionStatementDetailsActionEnum { - values := make([]AddDrgRouteDistributionStatementDetailsActionEnum, 0) - for _, v := range mappingAddDrgRouteDistributionStatementDetailsAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_details.go deleted file mode 100644 index 9c38f95598..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddDrgRouteDistributionStatementsDetails Details request to add statements to a route distribution. -type AddDrgRouteDistributionStatementsDetails struct { - - // The collection of route distribution statements to insert into the route distribution. - Statements []AddDrgRouteDistributionStatementDetails `mandatory:"true" json:"statements"` -} - -func (m AddDrgRouteDistributionStatementsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rule_details.go deleted file mode 100644 index 3f3f072758..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rule_details.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddDrgRouteRuleDetails Details needed when adding a DRG route rule. -type AddDrgRouteRuleDetails struct { - - // Type of destination for the rule. Required if `direction` = `EGRESS`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - DestinationType AddDrgRouteRuleDetailsDestinationTypeEnum `mandatory:"true" json:"destinationType"` - - // This is the range of IP addresses used for matching when routing - // traffic. Only CIDR_BLOCK values are allowed. - // Potential values: - // * IP address range in CIDR notation. This can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` - // or `2001:0db8:0123:45::/56`. - Destination *string `mandatory:"true" json:"destination"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the next hop DRG attachment. The next hop DRG attachment is responsible - // for reaching the network destination. - NextHopDrgAttachmentId *string `mandatory:"true" json:"nextHopDrgAttachmentId"` -} - -func (m AddDrgRouteRuleDetails) String() string { - return common.PointerString(m) -} - -// AddDrgRouteRuleDetailsDestinationTypeEnum Enum with underlying type: string -type AddDrgRouteRuleDetailsDestinationTypeEnum string - -// Set of constants representing the allowable values for AddDrgRouteRuleDetailsDestinationTypeEnum -const ( - AddDrgRouteRuleDetailsDestinationTypeCidrBlock AddDrgRouteRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" -) - -var mappingAddDrgRouteRuleDetailsDestinationType = map[string]AddDrgRouteRuleDetailsDestinationTypeEnum{ - "CIDR_BLOCK": AddDrgRouteRuleDetailsDestinationTypeCidrBlock, -} - -// GetAddDrgRouteRuleDetailsDestinationTypeEnumValues Enumerates the set of values for AddDrgRouteRuleDetailsDestinationTypeEnum -func GetAddDrgRouteRuleDetailsDestinationTypeEnumValues() []AddDrgRouteRuleDetailsDestinationTypeEnum { - values := make([]AddDrgRouteRuleDetailsDestinationTypeEnum, 0) - for _, v := range mappingAddDrgRouteRuleDetailsDestinationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_details.go deleted file mode 100644 index 5cbf019c14..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddDrgRouteRulesDetails Details used in a request to add static routes to a DRG route table. -type AddDrgRouteRulesDetails struct { - - // The collection of static rules used to insert routes into the DRG route table. - RouteRules []AddDrgRouteRuleDetails `mandatory:"false" json:"routeRules"` -} - -func (m AddDrgRouteRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_details.go deleted file mode 100644 index 90661a107b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddImageShapeCompatibilityEntryDetails Image shape compatibility details. -type AddImageShapeCompatibilityEntryDetails struct { - MemoryConstraints *ImageMemoryConstraints `mandatory:"false" json:"memoryConstraints"` - - OcpuConstraints *ImageOcpuConstraints `mandatory:"false" json:"ocpuConstraints"` -} - -func (m AddImageShapeCompatibilityEntryDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_details.go deleted file mode 100644 index d3850e2f90..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddNetworkSecurityGroupSecurityRulesDetails The representation of AddNetworkSecurityGroupSecurityRulesDetails -type AddNetworkSecurityGroupSecurityRulesDetails struct { - - // The NSG security rules to add. - SecurityRules []AddSecurityRuleDetails `mandatory:"false" json:"securityRules"` -} - -func (m AddNetworkSecurityGroupSecurityRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_details.go deleted file mode 100644 index d661f4c8f1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddPublicIpPoolCapacityDetails The information used to add capacity to an IP pool. -type AddPublicIpPoolCapacityDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource to which the CIDR block belongs. - ByoipRangeId *string `mandatory:"true" json:"byoipRangeId"` - - // The CIDR block to add to the public IP pool. It could be all of the CIDR block identified in `byoipRangeId`, or a subrange. - // Example: `10.0.1.0/24` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` -} - -func (m AddPublicIpPoolCapacityDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_security_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_security_rule_details.go deleted file mode 100644 index 7b318bdd50..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_security_rule_details.go +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddSecurityRuleDetails A rule for allowing inbound (INGRESS) or outbound (EGRESS) IP packets. -type AddSecurityRuleDetails struct { - - // Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, - // or `INGRESS` for rules to allow inbound IP packets. - Direction AddSecurityRuleDetailsDirectionEnum `mandatory:"true" json:"direction"` - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). - Protocol *string `mandatory:"true" json:"protocol"` - - // An optional description of your choice for the rule. Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Conceptually, this is the range of IP addresses that a packet originating from the instance - // can go to. - // Allowed values: - // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // IPv6 addressing is supported for all commercial and government regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security rule for traffic destined for a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same - // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control - // traffic between VNICs in the same NSG. - Destination *string `mandatory:"false" json:"destination"` - - // Type of destination for the rule. Required if `direction` = `EGRESS`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a - // NetworkSecurityGroup. - DestinationType AddSecurityRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if egress traffic allows TCP destination port 80, there should be an ingress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - // Conceptually, this is the range of IP addresses that a packet coming into the instance - // can come from. - // Allowed values: - // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // IPv6 addressing is supported for all commercial and government regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security rule for traffic coming from a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same - // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control - // traffic between VNICs in the same NSG. - Source *string `mandatory:"false" json:"source"` - - // Type of source for the rule. Required if `direction` = `INGRESS`. - // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a - // Service (the rule is for traffic coming from a - // particular `Service` through a service gateway). - // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a - // NetworkSecurityGroup. - SourceType AddSecurityRuleDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` -} - -func (m AddSecurityRuleDetails) String() string { - return common.PointerString(m) -} - -// AddSecurityRuleDetailsDestinationTypeEnum Enum with underlying type: string -type AddSecurityRuleDetailsDestinationTypeEnum string - -// Set of constants representing the allowable values for AddSecurityRuleDetailsDestinationTypeEnum -const ( - AddSecurityRuleDetailsDestinationTypeCidrBlock AddSecurityRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" - AddSecurityRuleDetailsDestinationTypeServiceCidrBlock AddSecurityRuleDetailsDestinationTypeEnum = "SERVICE_CIDR_BLOCK" - AddSecurityRuleDetailsDestinationTypeNetworkSecurityGroup AddSecurityRuleDetailsDestinationTypeEnum = "NETWORK_SECURITY_GROUP" -) - -var mappingAddSecurityRuleDetailsDestinationType = map[string]AddSecurityRuleDetailsDestinationTypeEnum{ - "CIDR_BLOCK": AddSecurityRuleDetailsDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": AddSecurityRuleDetailsDestinationTypeServiceCidrBlock, - "NETWORK_SECURITY_GROUP": AddSecurityRuleDetailsDestinationTypeNetworkSecurityGroup, -} - -// GetAddSecurityRuleDetailsDestinationTypeEnumValues Enumerates the set of values for AddSecurityRuleDetailsDestinationTypeEnum -func GetAddSecurityRuleDetailsDestinationTypeEnumValues() []AddSecurityRuleDetailsDestinationTypeEnum { - values := make([]AddSecurityRuleDetailsDestinationTypeEnum, 0) - for _, v := range mappingAddSecurityRuleDetailsDestinationType { - values = append(values, v) - } - return values -} - -// AddSecurityRuleDetailsDirectionEnum Enum with underlying type: string -type AddSecurityRuleDetailsDirectionEnum string - -// Set of constants representing the allowable values for AddSecurityRuleDetailsDirectionEnum -const ( - AddSecurityRuleDetailsDirectionEgress AddSecurityRuleDetailsDirectionEnum = "EGRESS" - AddSecurityRuleDetailsDirectionIngress AddSecurityRuleDetailsDirectionEnum = "INGRESS" -) - -var mappingAddSecurityRuleDetailsDirection = map[string]AddSecurityRuleDetailsDirectionEnum{ - "EGRESS": AddSecurityRuleDetailsDirectionEgress, - "INGRESS": AddSecurityRuleDetailsDirectionIngress, -} - -// GetAddSecurityRuleDetailsDirectionEnumValues Enumerates the set of values for AddSecurityRuleDetailsDirectionEnum -func GetAddSecurityRuleDetailsDirectionEnumValues() []AddSecurityRuleDetailsDirectionEnum { - values := make([]AddSecurityRuleDetailsDirectionEnum, 0) - for _, v := range mappingAddSecurityRuleDetailsDirection { - values = append(values, v) - } - return values -} - -// AddSecurityRuleDetailsSourceTypeEnum Enum with underlying type: string -type AddSecurityRuleDetailsSourceTypeEnum string - -// Set of constants representing the allowable values for AddSecurityRuleDetailsSourceTypeEnum -const ( - AddSecurityRuleDetailsSourceTypeCidrBlock AddSecurityRuleDetailsSourceTypeEnum = "CIDR_BLOCK" - AddSecurityRuleDetailsSourceTypeServiceCidrBlock AddSecurityRuleDetailsSourceTypeEnum = "SERVICE_CIDR_BLOCK" - AddSecurityRuleDetailsSourceTypeNetworkSecurityGroup AddSecurityRuleDetailsSourceTypeEnum = "NETWORK_SECURITY_GROUP" -) - -var mappingAddSecurityRuleDetailsSourceType = map[string]AddSecurityRuleDetailsSourceTypeEnum{ - "CIDR_BLOCK": AddSecurityRuleDetailsSourceTypeCidrBlock, - "SERVICE_CIDR_BLOCK": AddSecurityRuleDetailsSourceTypeServiceCidrBlock, - "NETWORK_SECURITY_GROUP": AddSecurityRuleDetailsSourceTypeNetworkSecurityGroup, -} - -// GetAddSecurityRuleDetailsSourceTypeEnumValues Enumerates the set of values for AddSecurityRuleDetailsSourceTypeEnum -func GetAddSecurityRuleDetailsSourceTypeEnumValues() []AddSecurityRuleDetailsSourceTypeEnum { - values := make([]AddSecurityRuleDetailsSourceTypeEnum, 0) - for _, v := range mappingAddSecurityRuleDetailsSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_details.go deleted file mode 100644 index 10b52476dc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddVcnCidrDetails Details for adding a CIDR block to a VCN. -type AddVcnCidrDetails struct { - - // The CIDR block to add. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` -} - -func (m AddVcnCidrDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/added_additional_route_rules.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/added_additional_route_rules.go deleted file mode 100644 index 6b1de73fbf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/added_additional_route_rules.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddedAdditionalRouteRules The route rules that were added. -type AddedAdditionalRouteRules struct { - - // List of route rules that were added. - RouteRules []AdditionalRouteRule `mandatory:"true" json:"routeRules"` -} - -func (m AddedAdditionalRouteRules) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/added_network_security_group_security_rules.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/added_network_security_group_security_rules.go deleted file mode 100644 index 3d93b2c764..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/added_network_security_group_security_rules.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddedNetworkSecurityGroupSecurityRules The representation of AddedNetworkSecurityGroupSecurityRules -type AddedNetworkSecurityGroupSecurityRules struct { - - // The NSG security rules that were added. - SecurityRules []SecurityRule `mandatory:"false" json:"securityRules"` -} - -func (m AddedNetworkSecurityGroupSecurityRules) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/additional_route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/additional_route_rule.go deleted file mode 100644 index 9348e4a56b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/additional_route_rule.go +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AdditionalRouteRule A mapping between a destination IP address range and a virtual device to route matching -// packets to (a target). This is used only by a large route table. -type AdditionalRouteRule struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the route rule's target. For information about the type of - // targets you can specify, see - // Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). - NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` - - // An identifier for the route rule. You specify this identifier when you want to delete the rule. - Id *string `mandatory:"true" json:"id"` - - // Deprecated. Instead use `destination` and `destinationType`. Requests that include both - // `cidrBlock` and `destination` will be rejected. - // A destination IP address range in CIDR notation. Matching packets will - // be routed to the indicated network entity (the target). - // Cannot be an IPv6 CIDR. - // Example: `0.0.0.0/0` - CidrBlock *string `mandatory:"false" json:"cidrBlock"` - - // Conceptually, this is the range of IP addresses used for matching when routing - // traffic. Required if you provide a `destinationType`. - // Allowed values: - // * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` - // or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target - // can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a route rule for traffic destined for a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - Destination *string `mandatory:"false" json:"destination"` - - // Type of destination for the rule. Required if you provide a `destination`. - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - DestinationType AdditionalRouteRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - // An optional description of your choice for the rule. - Description *string `mandatory:"false" json:"description"` -} - -func (m AdditionalRouteRule) String() string { - return common.PointerString(m) -} - -// AdditionalRouteRuleDestinationTypeEnum Enum with underlying type: string -type AdditionalRouteRuleDestinationTypeEnum string - -// Set of constants representing the allowable values for AdditionalRouteRuleDestinationTypeEnum -const ( - AdditionalRouteRuleDestinationTypeCidrBlock AdditionalRouteRuleDestinationTypeEnum = "CIDR_BLOCK" - AdditionalRouteRuleDestinationTypeServiceCidrBlock AdditionalRouteRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" -) - -var mappingAdditionalRouteRuleDestinationType = map[string]AdditionalRouteRuleDestinationTypeEnum{ - "CIDR_BLOCK": AdditionalRouteRuleDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": AdditionalRouteRuleDestinationTypeServiceCidrBlock, -} - -// GetAdditionalRouteRuleDestinationTypeEnumValues Enumerates the set of values for AdditionalRouteRuleDestinationTypeEnum -func GetAdditionalRouteRuleDestinationTypeEnumValues() []AdditionalRouteRuleDestinationTypeEnum { - values := make([]AdditionalRouteRuleDestinationTypeEnum, 0) - for _, v := range mappingAdditionalRouteRuleDestinationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_ike_ip_sec_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_ike_ip_sec_parameters.go deleted file mode 100644 index e5d7263e8f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_ike_ip_sec_parameters.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AllowedIkeIpSecParameters Allowed IKE IPSec Parameters -type AllowedIkeIpSecParameters struct { - AllowedPhaseOneParameters *AllowedPhaseOneParameters `mandatory:"true" json:"allowedPhaseOneParameters"` - - AllowedPhaseTwoParameters *AllowedPhaseTwoParameters `mandatory:"true" json:"allowedPhaseTwoParameters"` - - DefaultPhaseOneParameters *DefaultPhaseOneParameters `mandatory:"true" json:"defaultPhaseOneParameters"` - - DefaultPhaseTwoParameters *DefaultPhaseTwoParameters `mandatory:"true" json:"defaultPhaseTwoParameters"` -} - -func (m AllowedIkeIpSecParameters) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_one_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_one_parameters.go deleted file mode 100644 index af1dd54205..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_one_parameters.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AllowedPhaseOneParameters Phase One Parameters -type AllowedPhaseOneParameters struct { - - // Phase One Encryption Algorithms - EncryptionAlgorithms []string `mandatory:"false" json:"encryptionAlgorithms"` - - // Phase One Authentication Algorithms - AuthenticationAlgorithms []string `mandatory:"false" json:"authenticationAlgorithms"` - - // DH Groups - DhGroups []string `mandatory:"false" json:"dhGroups"` -} - -func (m AllowedPhaseOneParameters) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_two_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_two_parameters.go deleted file mode 100644 index e943606c65..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/allowed_phase_two_parameters.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AllowedPhaseTwoParameters Phase Two Parameters -type AllowedPhaseTwoParameters struct { - - // Phase Two Encryption Algorithms - EncryptionAlgorithms []string `mandatory:"false" json:"encryptionAlgorithms"` - - // Phase Two Authentication Algorithms - AuthenticationAlgorithms []string `mandatory:"false" json:"authenticationAlgorithms"` - - // PFS DH Groups - PfsDhGroups []string `mandatory:"false" json:"pfsDhGroups"` -} - -func (m AllowedPhaseTwoParameters) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_launch_instance_platform_config.go deleted file mode 100644 index 742f8b0b7a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_launch_instance_platform_config.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AmdMilanBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with an E4 shape -// (the AMD Milan platform). -type AmdMilanBmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` - - // The number of NUMA nodes per socket (NPS). - NumaNodesPerSocket AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m AmdMilanBmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AmdMilanBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAmdMilanBmLaunchInstancePlatformConfig AmdMilanBmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAmdMilanBmLaunchInstancePlatformConfig - }{ - "AMD_MILAN_BM", - (MarshalTypeAmdMilanBmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} - -// AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string -type AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string - -// Set of constants representing the allowable values for AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum -const ( - AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" - AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" - AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" - AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" -) - -var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocket = map[string]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ - "NPS0": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, - "NPS1": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, - "NPS2": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, - "NPS4": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, -} - -// GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum -func GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { - values := make([]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) - for _, v := range mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocket { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_platform_config.go deleted file mode 100644 index 7049a87eb0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_milan_bm_platform_config.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AmdMilanBmPlatformConfig The platform configuration of a bare metal instance that uses an E4 shape -// (the AMD Milan platform). -type AmdMilanBmPlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` - - // The number of NUMA nodes per socket (NPS). - NumaNodesPerSocket AmdMilanBmPlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m AmdMilanBmPlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m AmdMilanBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m AmdMilanBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m AmdMilanBmPlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AmdMilanBmPlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAmdMilanBmPlatformConfig AmdMilanBmPlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAmdMilanBmPlatformConfig - }{ - "AMD_MILAN_BM", - (MarshalTypeAmdMilanBmPlatformConfig)(m), - } - - return json.Marshal(&s) -} - -// AmdMilanBmPlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string -type AmdMilanBmPlatformConfigNumaNodesPerSocketEnum string - -// Set of constants representing the allowable values for AmdMilanBmPlatformConfigNumaNodesPerSocketEnum -const ( - AmdMilanBmPlatformConfigNumaNodesPerSocketNps0 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS0" - AmdMilanBmPlatformConfigNumaNodesPerSocketNps1 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" - AmdMilanBmPlatformConfigNumaNodesPerSocketNps2 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" - AmdMilanBmPlatformConfigNumaNodesPerSocketNps4 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS4" -) - -var mappingAmdMilanBmPlatformConfigNumaNodesPerSocket = map[string]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum{ - "NPS0": AmdMilanBmPlatformConfigNumaNodesPerSocketNps0, - "NPS1": AmdMilanBmPlatformConfigNumaNodesPerSocketNps1, - "NPS2": AmdMilanBmPlatformConfigNumaNodesPerSocketNps2, - "NPS4": AmdMilanBmPlatformConfigNumaNodesPerSocketNps4, -} - -// GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmPlatformConfigNumaNodesPerSocketEnum -func GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumValues() []AmdMilanBmPlatformConfigNumaNodesPerSocketEnum { - values := make([]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum, 0) - for _, v := range mappingAmdMilanBmPlatformConfigNumaNodesPerSocket { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_launch_instance_platform_config.go deleted file mode 100644 index c9c95532b0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AmdRomeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the AMD Rome platform. -type AmdRomeBmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m AmdRomeBmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AmdRomeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAmdRomeBmLaunchInstancePlatformConfig AmdRomeBmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAmdRomeBmLaunchInstancePlatformConfig - }{ - "AMD_ROME_BM", - (MarshalTypeAmdRomeBmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_platform_config.go deleted file mode 100644 index c6d2930534..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_rome_bm_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AmdRomeBmPlatformConfig The platform configuration of a bare metal instance that uses the AMD Rome platform. -type AmdRomeBmPlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m AmdRomeBmPlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m AmdRomeBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m AmdRomeBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m AmdRomeBmPlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AmdRomeBmPlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAmdRomeBmPlatformConfig AmdRomeBmPlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAmdRomeBmPlatformConfig - }{ - "AMD_ROME_BM", - (MarshalTypeAmdRomeBmPlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_launch_instance_platform_config.go deleted file mode 100644 index 61c6f7b4bb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AmdVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the AMD platform. -type AmdVmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m AmdVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m AmdVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m AmdVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m AmdVmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AmdVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAmdVmLaunchInstancePlatformConfig AmdVmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAmdVmLaunchInstancePlatformConfig - }{ - "AMD_VM", - (MarshalTypeAmdVmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_platform_config.go deleted file mode 100644 index 039db37505..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/amd_vm_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AmdVmPlatformConfig The platform configuration of a virtual machine instance that uses the AMD platform. -type AmdVmPlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m AmdVmPlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m AmdVmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m AmdVmPlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m AmdVmPlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AmdVmPlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAmdVmPlatformConfig AmdVmPlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAmdVmPlatformConfig - }{ - "AMD_VM", - (MarshalTypeAmdVmPlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing.go deleted file mode 100644 index c0f514c62a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogListing Listing details. -type AppCatalogListing struct { - - // Listing's contact URL. - ContactUrl *string `mandatory:"false" json:"contactUrl"` - - // Description of the listing. - Description *string `mandatory:"false" json:"description"` - - // The OCID of the listing. - ListingId *string `mandatory:"false" json:"listingId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Date and time the listing was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` - - // Publisher's logo URL. - PublisherLogoUrl *string `mandatory:"false" json:"publisherLogoUrl"` - - // Name of the publisher who published this listing. - PublisherName *string `mandatory:"false" json:"publisherName"` - - // Summary of the listing. - Summary *string `mandatory:"false" json:"summary"` -} - -func (m AppCatalogListing) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version.go deleted file mode 100644 index bb78d00ecc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogListingResourceVersion Listing Resource Version -type AppCatalogListingResourceVersion struct { - - // The OCID of the listing this resource version belongs to. - ListingId *string `mandatory:"false" json:"listingId"` - - // Date and time the listing resource version was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` - - // OCID of the listing resource. - ListingResourceId *string `mandatory:"false" json:"listingResourceId"` - - // Resource Version. - ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` - - // List of regions that this listing resource version is available. - // For information about Regions, see - // Regions (https://docs.cloud.oracle.comGeneral/Concepts/regions.htm). - // Example: `["us-ashburn-1", "us-phoenix-1"]` - AvailableRegions []string `mandatory:"false" json:"availableRegions"` - - // Array of shapes compatible with this resource. - // You may enumerate all available shapes by calling listShapes. - // Example: `["VM.Standard1.1", "VM.Standard1.2"]` - CompatibleShapes []string `mandatory:"false" json:"compatibleShapes"` - - // List of accessible ports for instances launched with this listing resource version. - AccessiblePorts []int `mandatory:"false" json:"accessiblePorts"` - - // Allowed actions for the listing resource. - AllowedActions []AppCatalogListingResourceVersionAllowedActionsEnum `mandatory:"false" json:"allowedActions,omitempty"` -} - -func (m AppCatalogListingResourceVersion) String() string { - return common.PointerString(m) -} - -// AppCatalogListingResourceVersionAllowedActionsEnum Enum with underlying type: string -type AppCatalogListingResourceVersionAllowedActionsEnum string - -// Set of constants representing the allowable values for AppCatalogListingResourceVersionAllowedActionsEnum -const ( - AppCatalogListingResourceVersionAllowedActionsSnapshot AppCatalogListingResourceVersionAllowedActionsEnum = "SNAPSHOT" - AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_VOLUME_DETACH" - AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "PRESERVE_BOOT_VOLUME" - AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess AppCatalogListingResourceVersionAllowedActionsEnum = "SERIAL_CONSOLE_ACCESS" - AppCatalogListingResourceVersionAllowedActionsBootRecovery AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_RECOVERY" - AppCatalogListingResourceVersionAllowedActionsBackupBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "BACKUP_BOOT_VOLUME" - AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory AppCatalogListingResourceVersionAllowedActionsEnum = "CAPTURE_CONSOLE_HISTORY" -) - -var mappingAppCatalogListingResourceVersionAllowedActions = map[string]AppCatalogListingResourceVersionAllowedActionsEnum{ - "SNAPSHOT": AppCatalogListingResourceVersionAllowedActionsSnapshot, - "BOOT_VOLUME_DETACH": AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach, - "PRESERVE_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume, - "SERIAL_CONSOLE_ACCESS": AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess, - "BOOT_RECOVERY": AppCatalogListingResourceVersionAllowedActionsBootRecovery, - "BACKUP_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsBackupBootVolume, - "CAPTURE_CONSOLE_HISTORY": AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory, -} - -// GetAppCatalogListingResourceVersionAllowedActionsEnumValues Enumerates the set of values for AppCatalogListingResourceVersionAllowedActionsEnum -func GetAppCatalogListingResourceVersionAllowedActionsEnumValues() []AppCatalogListingResourceVersionAllowedActionsEnum { - values := make([]AppCatalogListingResourceVersionAllowedActionsEnum, 0) - for _, v := range mappingAppCatalogListingResourceVersionAllowedActions { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_agreements.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_agreements.go deleted file mode 100644 index f9274eb887..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_agreements.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogListingResourceVersionAgreements Agreements for a listing resource version. -type AppCatalogListingResourceVersionAgreements struct { - - // The OCID of the listing associated with these agreements. - ListingId *string `mandatory:"false" json:"listingId"` - - // Listing resource version associated with these agreements. - ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` - - // Oracle TOU link - OracleTermsOfUseLink *string `mandatory:"false" json:"oracleTermsOfUseLink"` - - // EULA link - EulaLink *string `mandatory:"false" json:"eulaLink"` - - // Date and time the agreements were retrieved, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimeRetrieved *common.SDKTime `mandatory:"false" json:"timeRetrieved"` - - // A generated signature for this agreement retrieval operation which should be used in the create subscription call. - Signature *string `mandatory:"false" json:"signature"` -} - -func (m AppCatalogListingResourceVersionAgreements) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_summary.go deleted file mode 100644 index 7ccbd429ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_resource_version_summary.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogListingResourceVersionSummary Listing Resource Version summary -type AppCatalogListingResourceVersionSummary struct { - - // The OCID of the listing this resource version belongs to. - ListingId *string `mandatory:"false" json:"listingId"` - - // Date and time the listing resource version was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` - - // OCID of the listing resource. - ListingResourceId *string `mandatory:"false" json:"listingResourceId"` - - // Resource Version. - ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` -} - -func (m AppCatalogListingResourceVersionSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_summary.go deleted file mode 100644 index 84dedfc24c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_listing_summary.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogListingSummary A summary of a listing. -type AppCatalogListingSummary struct { - - // the region free ocid of the listing resource. - ListingId *string `mandatory:"false" json:"listingId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The short summary for the listing. - Summary *string `mandatory:"false" json:"summary"` - - // The name of the publisher who published this listing. - PublisherName *string `mandatory:"false" json:"publisherName"` -} - -func (m AppCatalogListingSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription.go deleted file mode 100644 index b952cb5cdf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogSubscription a subscription for a listing resource version. -type AppCatalogSubscription struct { - - // Name of the publisher who published this listing. - PublisherName *string `mandatory:"false" json:"publisherName"` - - // The ocid of the listing resource. - ListingId *string `mandatory:"false" json:"listingId"` - - // Listing resource version. - ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` - - // Listing resource id. - ListingResourceId *string `mandatory:"false" json:"listingResourceId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The short summary to the listing. - Summary *string `mandatory:"false" json:"summary"` - - // The compartmentID of the subscription. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Date and time at which the subscription was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m AppCatalogSubscription) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription_summary.go deleted file mode 100644 index 98610a96b1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/app_catalog_subscription_summary.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AppCatalogSubscriptionSummary a subscription summary for a listing resource version. -type AppCatalogSubscriptionSummary struct { - - // Name of the publisher who published this listing. - PublisherName *string `mandatory:"false" json:"publisherName"` - - // The ocid of the listing resource. - ListingId *string `mandatory:"false" json:"listingId"` - - // Listing resource version. - ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` - - // Listing resource id. - ListingResourceId *string `mandatory:"false" json:"listingResourceId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The short summary to the listing. - Summary *string `mandatory:"false" json:"summary"` - - // The compartmentID of the subscription. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Date and time at which the subscription was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m AppCatalogSubscriptionSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_details.go deleted file mode 100644 index 163c998d8f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachBootVolumeDetails The representation of AttachBootVolumeDetails -type AttachBootVolumeDetails struct { - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` - - // The OCID of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Refer the top-level definition of encryptionInTransitType. - // The default value is NONE. - EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` -} - -func (m AttachBootVolumeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_details.go deleted file mode 100644 index 7a0804ce2e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachDavDetails Details to attach a Direct Attached Vnic to an instance. -type AttachDavDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the host instance. - HostInstanceId *string `mandatory:"true" json:"hostInstanceId"` -} - -func (m AttachDavDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_emulated_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_emulated_volume_details.go deleted file mode 100644 index 323ced648f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_emulated_volume_details.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachEmulatedVolumeDetails The representation of AttachEmulatedVolumeDetails -type AttachEmulatedVolumeDetails struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. - Device *string `mandatory:"false" json:"device"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the instance. For AttachVolume operation, this is a required field for the request, - // see AttachVolume. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Whether the attachment was created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` -} - -//GetDevice returns Device -func (m AttachEmulatedVolumeDetails) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m AttachEmulatedVolumeDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetInstanceId returns InstanceId -func (m AttachEmulatedVolumeDetails) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m AttachEmulatedVolumeDetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m AttachEmulatedVolumeDetails) GetIsShareable() *bool { - return m.IsShareable -} - -//GetVolumeId returns VolumeId -func (m AttachEmulatedVolumeDetails) GetVolumeId() *string { - return m.VolumeId -} - -func (m AttachEmulatedVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AttachEmulatedVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAttachEmulatedVolumeDetails AttachEmulatedVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAttachEmulatedVolumeDetails - }{ - "emulated", - (MarshalTypeAttachEmulatedVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_i_scsi_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_i_scsi_volume_details.go deleted file mode 100644 index c5c519d24c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_i_scsi_volume_details.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachIScsiVolumeDetails The representation of AttachIScsiVolumeDetails -type AttachIScsiVolumeDetails struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. - Device *string `mandatory:"false" json:"device"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the instance. For AttachVolume operation, this is a required field for the request, - // see AttachVolume. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Whether the attachment was created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` - - // Whether to use CHAP authentication for the volume attachment. Defaults to false. - UseChap *bool `mandatory:"false" json:"useChap"` - - // Refer the top-level definition of encryptionInTransitType. - // The default value is NONE. - EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` -} - -//GetDevice returns Device -func (m AttachIScsiVolumeDetails) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m AttachIScsiVolumeDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetInstanceId returns InstanceId -func (m AttachIScsiVolumeDetails) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m AttachIScsiVolumeDetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m AttachIScsiVolumeDetails) GetIsShareable() *bool { - return m.IsShareable -} - -//GetVolumeId returns VolumeId -func (m AttachIScsiVolumeDetails) GetVolumeId() *string { - return m.VolumeId -} - -func (m AttachIScsiVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AttachIScsiVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAttachIScsiVolumeDetails AttachIScsiVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAttachIScsiVolumeDetails - }{ - "iscsi", - (MarshalTypeAttachIScsiVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_details.go deleted file mode 100644 index d9be5cd03f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachInstancePoolInstanceDetails An instance that is to be attached to an instance pool. -type AttachInstancePoolInstanceDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` -} - -func (m AttachInstancePoolInstanceDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_details.go deleted file mode 100644 index b67f5ffeb4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachLoadBalancerDetails Represents a load balancer that is to be attached to an instance pool. -type AttachLoadBalancerDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to attach to the instance pool. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The name of the backend set on the load balancer to add instances to. - BackendSetName *string `mandatory:"true" json:"backendSetName"` - - // The port value to use when creating the backend set. - Port *int `mandatory:"true" json:"port"` - - // Indicates which VNIC on each instance in the pool should be used to associate with the load balancer. - // Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration - // that is associated with the instance pool. - VnicSelection *string `mandatory:"true" json:"vnicSelection"` -} - -func (m AttachLoadBalancerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_paravirtualized_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_paravirtualized_volume_details.go deleted file mode 100644 index 0ee34541b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_paravirtualized_volume_details.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachParavirtualizedVolumeDetails The representation of AttachParavirtualizedVolumeDetails -type AttachParavirtualizedVolumeDetails struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. - Device *string `mandatory:"false" json:"device"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the instance. For AttachVolume operation, this is a required field for the request, - // see AttachVolume. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Whether the attachment was created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` - - // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` -} - -//GetDevice returns Device -func (m AttachParavirtualizedVolumeDetails) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m AttachParavirtualizedVolumeDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetInstanceId returns InstanceId -func (m AttachParavirtualizedVolumeDetails) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m AttachParavirtualizedVolumeDetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m AttachParavirtualizedVolumeDetails) GetIsShareable() *bool { - return m.IsShareable -} - -//GetVolumeId returns VolumeId -func (m AttachParavirtualizedVolumeDetails) GetVolumeId() *string { - return m.VolumeId -} - -func (m AttachParavirtualizedVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AttachParavirtualizedVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAttachParavirtualizedVolumeDetails AttachParavirtualizedVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAttachParavirtualizedVolumeDetails - }{ - "paravirtualized", - (MarshalTypeAttachParavirtualizedVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_determined_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_determined_volume_details.go deleted file mode 100644 index 6a800dff77..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_determined_volume_details.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachServiceDeterminedVolumeDetails The representation of AttachServiceDeterminedVolumeDetails -type AttachServiceDeterminedVolumeDetails struct { - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. - Device *string `mandatory:"false" json:"device"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the instance. For AttachVolume operation, this is a required field for the request, - // see AttachVolume. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Whether the attachment was created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` -} - -//GetDevice returns Device -func (m AttachServiceDeterminedVolumeDetails) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m AttachServiceDeterminedVolumeDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetInstanceId returns InstanceId -func (m AttachServiceDeterminedVolumeDetails) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m AttachServiceDeterminedVolumeDetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m AttachServiceDeterminedVolumeDetails) GetIsShareable() *bool { - return m.IsShareable -} - -//GetVolumeId returns VolumeId -func (m AttachServiceDeterminedVolumeDetails) GetVolumeId() *string { - return m.VolumeId -} - -func (m AttachServiceDeterminedVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m AttachServiceDeterminedVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeAttachServiceDeterminedVolumeDetails AttachServiceDeterminedVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeAttachServiceDeterminedVolumeDetails - }{ - "service_determined", - (MarshalTypeAttachServiceDeterminedVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_details.go deleted file mode 100644 index 018ae78827..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_details.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachVnicDetails The representation of AttachVnicDetails -type AttachVnicDetails struct { - CreateVnicDetails *CreateVnicDetails `mandatory:"true" json:"createVnicDetails"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the instance. For AttachVnic operation, this is a required field for the request, - // see AttachVnic. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Which physical network interface card (NIC) the VNIC will use. Defaults to 0. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a secondary VNIC to one of these instances, you can specify which NIC - // the VNIC will use. For more information, see - // Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). - NicIndex *int `mandatory:"false" json:"nicIndex"` -} - -func (m AttachVnicDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_details.go deleted file mode 100644 index a35fd20f78..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachVnicToDestinationSmartNicDetails This structure is used when attaching VNIC to destination smartNIC. -type AttachVnicToDestinationSmartNicDetails struct { - - // Live migration session ID - MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` - - // Destination smart NIC's substrate IP address - DestinationSubstrateIp *string `mandatory:"true" json:"destinationSubstrateIp"` - - // Index of NIC that VNIC is attaching to - DestinationNicIndex *int `mandatory:"true" json:"destinationNicIndex"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on source hypervisor that will be used for hypervisor - VCN DP communication. - SourceHypervisorVnicId *string `mandatory:"false" json:"sourceHypervisorVnicId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on destination hypervisor that will be used for hypervisor - VCN DP communication. - DestinationHypervisorVnicId *string `mandatory:"false" json:"destinationHypervisorVnicId"` -} - -func (m AttachVnicToDestinationSmartNicDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_details.go deleted file mode 100644 index 3b966ba884..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachVnicWorkerDetails the data to attach a vnicWorker to a VM instance -type AttachVnicWorkerDetails struct { - - // The instance where vnicWorker needs to be attached. - WorkerInstanceId *string `mandatory:"true" json:"workerInstanceId"` -} - -func (m AttachVnicWorkerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_details.go deleted file mode 100644 index 6382faf6e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_details.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AttachVolumeDetails The representation of AttachVolumeDetails -type AttachVolumeDetails interface { - - // The OCID of the volume. - GetVolumeId() *string - - // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. - GetDevice() *string - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - GetDisplayName() *string - - // The OCID of the instance. For AttachVolume operation, this is a required field for the request, - // see AttachVolume. - GetInstanceId() *string - - // Whether the attachment was created in read-only mode. - GetIsReadOnly() *bool - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - GetIsShareable() *bool -} - -type attachvolumedetails struct { - JsonData []byte - VolumeId *string `mandatory:"true" json:"volumeId"` - Device *string `mandatory:"false" json:"device"` - DisplayName *string `mandatory:"false" json:"displayName"` - InstanceId *string `mandatory:"false" json:"instanceId"` - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - IsShareable *bool `mandatory:"false" json:"isShareable"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *attachvolumedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerattachvolumedetails attachvolumedetails - s := struct { - Model Unmarshalerattachvolumedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.VolumeId = s.Model.VolumeId - m.Device = s.Model.Device - m.DisplayName = s.Model.DisplayName - m.InstanceId = s.Model.InstanceId - m.IsReadOnly = s.Model.IsReadOnly - m.IsShareable = s.Model.IsShareable - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "service_determined": - mm := AttachServiceDeterminedVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "emulated": - mm := AttachEmulatedVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "iscsi": - mm := AttachIScsiVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "paravirtualized": - mm := AttachParavirtualizedVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetVolumeId returns VolumeId -func (m attachvolumedetails) GetVolumeId() *string { - return m.VolumeId -} - -//GetDevice returns Device -func (m attachvolumedetails) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m attachvolumedetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetInstanceId returns InstanceId -func (m attachvolumedetails) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m attachvolumedetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m attachvolumedetails) GetIsShareable() *bool { - return m.IsShareable -} - -func (m attachvolumedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill.go deleted file mode 100644 index 76267ab885..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Backfill Response of DRG Backfill -type Backfill struct { - - // The number of successfully mirrored drgs from the given batch - SuccessCount *int `mandatory:"true" json:"successCount"` -} - -func (m Backfill) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_details.go deleted file mode 100644 index c75e052746..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_details.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackfillDetails Request details for DRG backfill from VCN to EP-DB -type BackfillDetails struct { - - // The tenancy OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of drgs to be backfilled - TenancyId *string `mandatory:"false" json:"tenancyId"` - - // The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of drgs to be backfilled - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a specific drg to be mirrored - DrgId *string `mandatory:"false" json:"drgId"` -} - -func (m BackfillDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/base64_ssl_cert_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/base64_ssl_cert_details.go deleted file mode 100644 index 74694dc8c5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/base64_ssl_cert_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Base64SslCertDetails The 64-based encoded SslCert. -type Base64SslCertDetails struct { - - // The base 64 encoded string for the Ssl Certificate. - CertContent *string `mandatory:"false" json:"certContent"` -} - -func (m Base64SslCertDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m Base64SslCertDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeBase64SslCertDetails Base64SslCertDetails - s := struct { - DiscriminatorParam string `json:"contentType"` - MarshalTypeBase64SslCertDetails - }{ - "BASE64ENCODED", - (MarshalTypeBase64SslCertDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bgp_session_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/bgp_session_info.go deleted file mode 100644 index 1837fcf06d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bgp_session_info.go +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BgpSessionInfo Information for establishing a BGP session for the IPSec tunnel. -type BgpSessionInfo struct { - - // The IP address for the Oracle end of the inside tunnel interface. - // If the tunnel's `routing` attribute is set to `BGP` - // (see IPSecConnectionTunnel), this IP address - // is required and used for the tunnel's BGP session. - // If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP - // address so you can troubleshoot or monitor the tunnel. - // The value must be a /30 or /31. - // Example: `10.0.0.4/31` - OracleInterfaceIp *string `mandatory:"false" json:"oracleInterfaceIp"` - - // The IP address for the CPE end of the inside tunnel interface. - // If the tunnel's `routing` attribute is set to `BGP` - // (see IPSecConnectionTunnel), this IP address - // is required and used for the tunnel's BGP session. - // If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP - // address so you can troubleshoot or monitor the tunnel. - // The value must be a /30 or /31. - // Example: `10.0.0.5/31` - CustomerInterfaceIp *string `mandatory:"false" json:"customerInterfaceIp"` - - // The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional. - // If the tunnel's `routing` attribute is set to `BGP` - // (see IPSecConnectionTunnel), this IP address - // is used for the tunnel's BGP session. - // If `routing` is instead set to `STATIC`, you can set this IP - // address to troubleshoot or monitor the tunnel. - // Only subnet masks from /64 up to /127 are allowed. - // Example: `2001:db8::1/64` - OracleInterfaceIpv6 *string `mandatory:"false" json:"oracleInterfaceIpv6"` - - // The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional. - // If the tunnel's `routing` attribute is set to `BGP` - // (see IPSecConnectionTunnel), this IP address - // is used for the tunnel's BGP session. - // If `routing` is instead set to `STATIC`, you can set this IP - // address to troubleshoot or monitor the tunnel. - // Only subnet masks from /64 up to /127 are allowed. - // Example: `2001:db8::1/64` - CustomerInterfaceIpv6 *string `mandatory:"false" json:"customerInterfaceIpv6"` - - // The Oracle BGP ASN. - OracleBgpAsn *string `mandatory:"false" json:"oracleBgpAsn"` - - // If the tunnel's `routing` attribute is set to `BGP` - // (see IPSecConnectionTunnel), this ASN - // is required and used for the tunnel's BGP session. This is the ASN of the network on the - // CPE end of the BGP session. Can be a 2-byte or 4-byte ASN. Uses "asplain" format. - // If the tunnel uses static routing, the `customerBgpAsn` must be null. - // Example: `12345` (2-byte) or `1587232876` (4-byte) - CustomerBgpAsn *string `mandatory:"false" json:"customerBgpAsn"` - - // The state of the BGP session. - BgpState BgpSessionInfoBgpStateEnum `mandatory:"false" json:"bgpState,omitempty"` - - // The state of the BGP IPv6 session. - BgpIpv6State BgpSessionInfoBgpIpv6StateEnum `mandatory:"false" json:"bgpIpv6State,omitempty"` -} - -func (m BgpSessionInfo) String() string { - return common.PointerString(m) -} - -// BgpSessionInfoBgpStateEnum Enum with underlying type: string -type BgpSessionInfoBgpStateEnum string - -// Set of constants representing the allowable values for BgpSessionInfoBgpStateEnum -const ( - BgpSessionInfoBgpStateUp BgpSessionInfoBgpStateEnum = "UP" - BgpSessionInfoBgpStateDown BgpSessionInfoBgpStateEnum = "DOWN" -) - -var mappingBgpSessionInfoBgpState = map[string]BgpSessionInfoBgpStateEnum{ - "UP": BgpSessionInfoBgpStateUp, - "DOWN": BgpSessionInfoBgpStateDown, -} - -// GetBgpSessionInfoBgpStateEnumValues Enumerates the set of values for BgpSessionInfoBgpStateEnum -func GetBgpSessionInfoBgpStateEnumValues() []BgpSessionInfoBgpStateEnum { - values := make([]BgpSessionInfoBgpStateEnum, 0) - for _, v := range mappingBgpSessionInfoBgpState { - values = append(values, v) - } - return values -} - -// BgpSessionInfoBgpIpv6StateEnum Enum with underlying type: string -type BgpSessionInfoBgpIpv6StateEnum string - -// Set of constants representing the allowable values for BgpSessionInfoBgpIpv6StateEnum -const ( - BgpSessionInfoBgpIpv6StateUp BgpSessionInfoBgpIpv6StateEnum = "UP" - BgpSessionInfoBgpIpv6StateDown BgpSessionInfoBgpIpv6StateEnum = "DOWN" -) - -var mappingBgpSessionInfoBgpIpv6State = map[string]BgpSessionInfoBgpIpv6StateEnum{ - "UP": BgpSessionInfoBgpIpv6StateUp, - "DOWN": BgpSessionInfoBgpIpv6StateDown, -} - -// GetBgpSessionInfoBgpIpv6StateEnumValues Enumerates the set of values for BgpSessionInfoBgpIpv6StateEnum -func GetBgpSessionInfoBgpIpv6StateEnumValues() []BgpSessionInfoBgpIpv6StateEnum { - values := make([]BgpSessionInfoBgpIpv6StateEnum, 0) - for _, v := range mappingBgpSessionInfoBgpIpv6State { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica.go deleted file mode 100644 index 4225a2dc55..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica.go +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BlockVolumeReplica An asynchronous replica of a block volume that can then be used to create -// a new block volume or recover a block volume. For more information, see Overview -// of Cross-Region Volume Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumereplication.htm) -// To use any of the API operations, you must be authorized in an IAM policy. -// If you're not authorized, talk to an administrator. If you're an administrator -// who needs to write policies to give users access, see Getting Started with -// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type BlockVolumeReplica struct { - - // The availability domain of the block volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the block volume replica. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The block volume replica's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The current state of a block volume replica. - LifecycleState BlockVolumeReplicaLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The size of the source block volume, in GBs. - SizeInGBs *int64 `mandatory:"true" json:"sizeInGBs"` - - // The date and time the block volume replica was created. Format defined - // by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the block volume replica was last synced from the source block volume. - // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeLastSynced *common.SDKTime `mandatory:"true" json:"timeLastSynced"` - - // The OCID of the source block volume. - BlockVolumeId *string `mandatory:"true" json:"blockVolumeId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The total size of the data transferred from the source block volume to the block volume replica, in GBs. - TotalDataTransferredInGBs *int64 `mandatory:"false" json:"totalDataTransferredInGBs"` - - // The OCID of the volume group replica. - VolumeGroupReplicaId *string `mandatory:"false" json:"volumeGroupReplicaId"` -} - -func (m BlockVolumeReplica) String() string { - return common.PointerString(m) -} - -// BlockVolumeReplicaLifecycleStateEnum Enum with underlying type: string -type BlockVolumeReplicaLifecycleStateEnum string - -// Set of constants representing the allowable values for BlockVolumeReplicaLifecycleStateEnum -const ( - BlockVolumeReplicaLifecycleStateProvisioning BlockVolumeReplicaLifecycleStateEnum = "PROVISIONING" - BlockVolumeReplicaLifecycleStateAvailable BlockVolumeReplicaLifecycleStateEnum = "AVAILABLE" - BlockVolumeReplicaLifecycleStateActivating BlockVolumeReplicaLifecycleStateEnum = "ACTIVATING" - BlockVolumeReplicaLifecycleStateTerminating BlockVolumeReplicaLifecycleStateEnum = "TERMINATING" - BlockVolumeReplicaLifecycleStateTerminated BlockVolumeReplicaLifecycleStateEnum = "TERMINATED" - BlockVolumeReplicaLifecycleStateFaulty BlockVolumeReplicaLifecycleStateEnum = "FAULTY" -) - -var mappingBlockVolumeReplicaLifecycleState = map[string]BlockVolumeReplicaLifecycleStateEnum{ - "PROVISIONING": BlockVolumeReplicaLifecycleStateProvisioning, - "AVAILABLE": BlockVolumeReplicaLifecycleStateAvailable, - "ACTIVATING": BlockVolumeReplicaLifecycleStateActivating, - "TERMINATING": BlockVolumeReplicaLifecycleStateTerminating, - "TERMINATED": BlockVolumeReplicaLifecycleStateTerminated, - "FAULTY": BlockVolumeReplicaLifecycleStateFaulty, -} - -// GetBlockVolumeReplicaLifecycleStateEnumValues Enumerates the set of values for BlockVolumeReplicaLifecycleStateEnum -func GetBlockVolumeReplicaLifecycleStateEnumValues() []BlockVolumeReplicaLifecycleStateEnum { - values := make([]BlockVolumeReplicaLifecycleStateEnum, 0) - for _, v := range mappingBlockVolumeReplicaLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_details.go deleted file mode 100644 index 629363304a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BlockVolumeReplicaDetails Contains the details for the block volume replica -type BlockVolumeReplicaDetails struct { - - // The availability domain of the block volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m BlockVolumeReplicaDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_info.go deleted file mode 100644 index 4071e75f9e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/block_volume_replica_info.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BlockVolumeReplicaInfo Information about the block volume replica in the destination availability domain. -type BlockVolumeReplicaInfo struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The block volume replica's Oracle ID (OCID). - BlockVolumeReplicaId *string `mandatory:"true" json:"blockVolumeReplicaId"` - - // The availability domain of the block volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` -} - -func (m BlockVolumeReplicaInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boolean_image_capability_schema_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boolean_image_capability_schema_descriptor.go deleted file mode 100644 index 0e682bd4ac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boolean_image_capability_schema_descriptor.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BooleanImageCapabilitySchemaDescriptor Boolean type ImageCapabilitySchemaDescriptor -type BooleanImageCapabilitySchemaDescriptor struct { - - // the default value - DefaultValue *bool `mandatory:"false" json:"defaultValue"` - - Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` -} - -//GetSource returns Source -func (m BooleanImageCapabilitySchemaDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { - return m.Source -} - -func (m BooleanImageCapabilitySchemaDescriptor) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m BooleanImageCapabilitySchemaDescriptor) MarshalJSON() (buff []byte, e error) { - type MarshalTypeBooleanImageCapabilitySchemaDescriptor BooleanImageCapabilitySchemaDescriptor - s := struct { - DiscriminatorParam string `json:"descriptorType"` - MarshalTypeBooleanImageCapabilitySchemaDescriptor - }{ - "boolean", - (MarshalTypeBooleanImageCapabilitySchemaDescriptor)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume.go deleted file mode 100644 index f8c6bda031..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume.go +++ /dev/null @@ -1,222 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolume A detachable boot volume device that contains the image used to boot a Compute instance. For more information, see -// Overview of Boot Volumes (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumes.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type BootVolume struct { - - // The availability domain of the boot volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the boot volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The boot volume's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The current state of a boot volume. - LifecycleState BootVolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The size of the volume in MBs. The value must be a multiple of 1024. - // This field is deprecated. Please use sizeInGBs. - SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` - - // The date and time the boot volume was created. Format defined - // by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The image OCID used to create the boot volume. - ImageId *string `mandatory:"false" json:"imageId"` - - // Specifies whether the boot volume's data has finished copying - // from the source boot volume or boot volume backup. - IsHydrated *bool `mandatory:"false" json:"isHydrated"` - - // The number of volume performance units (VPUs) that will be applied to this boot volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // The size of the boot volume in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - SourceDetails BootVolumeSourceDetails `mandatory:"false" json:"sourceDetails"` - - // The OCID of the source volume group. - VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` - - // The OCID of the Key Management master encryption key assigned to the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // Specifies whether the auto-tune performance is enabled for this boot volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The number of Volume Performance Units per GB that this boot volume is effectively tuned to when it's idle. - AutoTunedVpusPerGB *int64 `mandatory:"false" json:"autoTunedVpusPerGB"` - - // The list of boot volume replicas of this boot volume - BootVolumeReplicas []BootVolumeReplicaInfo `mandatory:"false" json:"bootVolumeReplicas"` -} - -func (m BootVolume) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *BootVolume) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - ImageId *string `json:"imageId"` - IsHydrated *bool `json:"isHydrated"` - VpusPerGB *int64 `json:"vpusPerGB"` - SizeInGBs *int64 `json:"sizeInGBs"` - SourceDetails bootvolumesourcedetails `json:"sourceDetails"` - VolumeGroupId *string `json:"volumeGroupId"` - KmsKeyId *string `json:"kmsKeyId"` - IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` - AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB"` - BootVolumeReplicas []BootVolumeReplicaInfo `json:"bootVolumeReplicas"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - Id *string `json:"id"` - LifecycleState BootVolumeLifecycleStateEnum `json:"lifecycleState"` - SizeInMBs *int64 `json:"sizeInMBs"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.SystemTags = model.SystemTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.ImageId = model.ImageId - - m.IsHydrated = model.IsHydrated - - m.VpusPerGB = model.VpusPerGB - - m.SizeInGBs = model.SizeInGBs - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(BootVolumeSourceDetails) - } else { - m.SourceDetails = nil - } - - m.VolumeGroupId = model.VolumeGroupId - - m.KmsKeyId = model.KmsKeyId - - m.IsAutoTuneEnabled = model.IsAutoTuneEnabled - - m.AutoTunedVpusPerGB = model.AutoTunedVpusPerGB - - m.BootVolumeReplicas = make([]BootVolumeReplicaInfo, len(model.BootVolumeReplicas)) - for i, n := range model.BootVolumeReplicas { - m.BootVolumeReplicas[i] = n - } - - m.AvailabilityDomain = model.AvailabilityDomain - - m.CompartmentId = model.CompartmentId - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - m.SizeInMBs = model.SizeInMBs - - m.TimeCreated = model.TimeCreated - - return -} - -// BootVolumeLifecycleStateEnum Enum with underlying type: string -type BootVolumeLifecycleStateEnum string - -// Set of constants representing the allowable values for BootVolumeLifecycleStateEnum -const ( - BootVolumeLifecycleStateProvisioning BootVolumeLifecycleStateEnum = "PROVISIONING" - BootVolumeLifecycleStateRestoring BootVolumeLifecycleStateEnum = "RESTORING" - BootVolumeLifecycleStateAvailable BootVolumeLifecycleStateEnum = "AVAILABLE" - BootVolumeLifecycleStateTerminating BootVolumeLifecycleStateEnum = "TERMINATING" - BootVolumeLifecycleStateTerminated BootVolumeLifecycleStateEnum = "TERMINATED" - BootVolumeLifecycleStateFaulty BootVolumeLifecycleStateEnum = "FAULTY" -) - -var mappingBootVolumeLifecycleState = map[string]BootVolumeLifecycleStateEnum{ - "PROVISIONING": BootVolumeLifecycleStateProvisioning, - "RESTORING": BootVolumeLifecycleStateRestoring, - "AVAILABLE": BootVolumeLifecycleStateAvailable, - "TERMINATING": BootVolumeLifecycleStateTerminating, - "TERMINATED": BootVolumeLifecycleStateTerminated, - "FAULTY": BootVolumeLifecycleStateFaulty, -} - -// GetBootVolumeLifecycleStateEnumValues Enumerates the set of values for BootVolumeLifecycleStateEnum -func GetBootVolumeLifecycleStateEnumValues() []BootVolumeLifecycleStateEnum { - values := make([]BootVolumeLifecycleStateEnum, 0) - for _, v := range mappingBootVolumeLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_attachment.go deleted file mode 100644 index c17e26774b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_attachment.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeAttachment Represents an attachment between a boot volume and an instance. -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type BootVolumeAttachment struct { - - // The availability domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the boot volume attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance the boot volume is attached to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The current state of the boot volume attachment. - LifecycleState BootVolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the boot volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether in-transit encryption for the boot volume's paravirtualized attachment is enabled or not. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Refer the top-level definition of encryptionInTransitType. - // The default value is NONE. - EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` -} - -func (m BootVolumeAttachment) String() string { - return common.PointerString(m) -} - -// BootVolumeAttachmentLifecycleStateEnum Enum with underlying type: string -type BootVolumeAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for BootVolumeAttachmentLifecycleStateEnum -const ( - BootVolumeAttachmentLifecycleStateAttaching BootVolumeAttachmentLifecycleStateEnum = "ATTACHING" - BootVolumeAttachmentLifecycleStateAttached BootVolumeAttachmentLifecycleStateEnum = "ATTACHED" - BootVolumeAttachmentLifecycleStateDetaching BootVolumeAttachmentLifecycleStateEnum = "DETACHING" - BootVolumeAttachmentLifecycleStateDetached BootVolumeAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingBootVolumeAttachmentLifecycleState = map[string]BootVolumeAttachmentLifecycleStateEnum{ - "ATTACHING": BootVolumeAttachmentLifecycleStateAttaching, - "ATTACHED": BootVolumeAttachmentLifecycleStateAttached, - "DETACHING": BootVolumeAttachmentLifecycleStateDetaching, - "DETACHED": BootVolumeAttachmentLifecycleStateDetached, -} - -// GetBootVolumeAttachmentLifecycleStateEnumValues Enumerates the set of values for BootVolumeAttachmentLifecycleStateEnum -func GetBootVolumeAttachmentLifecycleStateEnumValues() []BootVolumeAttachmentLifecycleStateEnum { - values := make([]BootVolumeAttachmentLifecycleStateEnum, 0) - for _, v := range mappingBootVolumeAttachmentLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_backup.go deleted file mode 100644 index 4e44ea1671..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_backup.go +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeBackup A point-in-time copy of a boot volume that can then be used to create -// a new boot volume or recover a boot volume. For more information, see Overview -// of Boot Volume Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumebackups.htm) -// To use any of the API operations, you must be authorized in an IAM policy. -// If you're not authorized, talk to an administrator. If you're an administrator -// who needs to write policies to give users access, see Getting Started with -// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type BootVolumeBackup struct { - - // The OCID of the compartment that contains the boot volume backup. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the boot volume backup. - Id *string `mandatory:"true" json:"id"` - - // The current state of a boot volume backup. - LifecycleState BootVolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the boot volume backup was created. This is the time the actual point-in-time image - // of the volume data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"false" json:"bootVolumeId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // The date and time the volume backup will expire and be automatically deleted. - // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for backups that - // were created automatically by a scheduled-backup policy. For manually created backups, - // it will be absent, signifying that there is no expiration time and the backup will - // last forever until manually deleted. - ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The image OCID used to create the boot volume the backup is taken from. - ImageId *string `mandatory:"false" json:"imageId"` - - // The OCID of the Key Management master encryption assigned to the boot volume backup. - // For more information about the Key Management service and encryption keys, see - // Overview of Key Management (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and - // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The size of the boot volume, in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // The OCID of the source boot volume backup. - SourceBootVolumeBackupId *string `mandatory:"false" json:"sourceBootVolumeBackupId"` - - // Specifies whether the backup was created manually, or via scheduled backup policy. - SourceType BootVolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - // The date and time the request to create the boot volume backup was received. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` - - // The type of a volume backup. - Type BootVolumeBackupTypeEnum `mandatory:"false" json:"type,omitempty"` - - // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space - // consumed on the boot volume and whether the backup is full or incremental. - UniqueSizeInGBs *int64 `mandatory:"false" json:"uniqueSizeInGBs"` - - // The percentage complete of the operation to create the boot volume backup, based on the boot volume backup size. - BackupProgress *int `mandatory:"false" json:"backupProgress"` -} - -func (m BootVolumeBackup) String() string { - return common.PointerString(m) -} - -// BootVolumeBackupLifecycleStateEnum Enum with underlying type: string -type BootVolumeBackupLifecycleStateEnum string - -// Set of constants representing the allowable values for BootVolumeBackupLifecycleStateEnum -const ( - BootVolumeBackupLifecycleStateCreating BootVolumeBackupLifecycleStateEnum = "CREATING" - BootVolumeBackupLifecycleStateAvailable BootVolumeBackupLifecycleStateEnum = "AVAILABLE" - BootVolumeBackupLifecycleStateTerminating BootVolumeBackupLifecycleStateEnum = "TERMINATING" - BootVolumeBackupLifecycleStateTerminated BootVolumeBackupLifecycleStateEnum = "TERMINATED" - BootVolumeBackupLifecycleStateFaulty BootVolumeBackupLifecycleStateEnum = "FAULTY" - BootVolumeBackupLifecycleStateRequestReceived BootVolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" -) - -var mappingBootVolumeBackupLifecycleState = map[string]BootVolumeBackupLifecycleStateEnum{ - "CREATING": BootVolumeBackupLifecycleStateCreating, - "AVAILABLE": BootVolumeBackupLifecycleStateAvailable, - "TERMINATING": BootVolumeBackupLifecycleStateTerminating, - "TERMINATED": BootVolumeBackupLifecycleStateTerminated, - "FAULTY": BootVolumeBackupLifecycleStateFaulty, - "REQUEST_RECEIVED": BootVolumeBackupLifecycleStateRequestReceived, -} - -// GetBootVolumeBackupLifecycleStateEnumValues Enumerates the set of values for BootVolumeBackupLifecycleStateEnum -func GetBootVolumeBackupLifecycleStateEnumValues() []BootVolumeBackupLifecycleStateEnum { - values := make([]BootVolumeBackupLifecycleStateEnum, 0) - for _, v := range mappingBootVolumeBackupLifecycleState { - values = append(values, v) - } - return values -} - -// BootVolumeBackupSourceTypeEnum Enum with underlying type: string -type BootVolumeBackupSourceTypeEnum string - -// Set of constants representing the allowable values for BootVolumeBackupSourceTypeEnum -const ( - BootVolumeBackupSourceTypeManual BootVolumeBackupSourceTypeEnum = "MANUAL" - BootVolumeBackupSourceTypeScheduled BootVolumeBackupSourceTypeEnum = "SCHEDULED" -) - -var mappingBootVolumeBackupSourceType = map[string]BootVolumeBackupSourceTypeEnum{ - "MANUAL": BootVolumeBackupSourceTypeManual, - "SCHEDULED": BootVolumeBackupSourceTypeScheduled, -} - -// GetBootVolumeBackupSourceTypeEnumValues Enumerates the set of values for BootVolumeBackupSourceTypeEnum -func GetBootVolumeBackupSourceTypeEnumValues() []BootVolumeBackupSourceTypeEnum { - values := make([]BootVolumeBackupSourceTypeEnum, 0) - for _, v := range mappingBootVolumeBackupSourceType { - values = append(values, v) - } - return values -} - -// BootVolumeBackupTypeEnum Enum with underlying type: string -type BootVolumeBackupTypeEnum string - -// Set of constants representing the allowable values for BootVolumeBackupTypeEnum -const ( - BootVolumeBackupTypeFull BootVolumeBackupTypeEnum = "FULL" - BootVolumeBackupTypeIncremental BootVolumeBackupTypeEnum = "INCREMENTAL" -) - -var mappingBootVolumeBackupType = map[string]BootVolumeBackupTypeEnum{ - "FULL": BootVolumeBackupTypeFull, - "INCREMENTAL": BootVolumeBackupTypeIncremental, -} - -// GetBootVolumeBackupTypeEnumValues Enumerates the set of values for BootVolumeBackupTypeEnum -func GetBootVolumeBackupTypeEnumValues() []BootVolumeBackupTypeEnum { - values := make([]BootVolumeBackupTypeEnum, 0) - for _, v := range mappingBootVolumeBackupType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_kms_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_kms_key.go deleted file mode 100644 index 376c421a55..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_kms_key.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeKmsKey The Key Management master encryption key associated with this volume. -type BootVolumeKmsKey struct { - - // The OCID of the Key Management key assigned to this volume. If the volume is not using Key Management, then the `kmsKeyId` will be a null string. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m BootVolumeKmsKey) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica.go deleted file mode 100644 index 7ca37ef7f5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica.go +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeReplica An asynchronous replica of a boot volume that can then be used to create -// a new boot volume or recover a boot volume. For more information, see Overview -// of Cross-Region Volume Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumereplication.htm) -// To use any of the API operations, you must be authorized in an IAM policy. -// If you're not authorized, talk to an administrator. If you're an administrator -// who needs to write policies to give users access, see Getting Started with -// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type BootVolumeReplica struct { - - // The availability domain of the boot volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the boot volume replica. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The boot volume replica's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The current state of a boot volume replica. - LifecycleState BootVolumeReplicaLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The size of the source boot volume, in GBs. - SizeInGBs *int64 `mandatory:"true" json:"sizeInGBs"` - - // The date and time the boot volume replica was created. Format defined - // by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the boot volume replica was last synced from the source boot volume. - // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeLastSynced *common.SDKTime `mandatory:"true" json:"timeLastSynced"` - - // The OCID of the source boot volume. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The image OCID used to create the boot volume the replica is replicated from. - ImageId *string `mandatory:"false" json:"imageId"` - - // The total size of the data transferred from the source boot volume to the boot volume replica, in GBs. - TotalDataTransferredInGBs *int64 `mandatory:"false" json:"totalDataTransferredInGBs"` - - // The OCID of the volume group replica. - VolumeGroupReplicaId *string `mandatory:"false" json:"volumeGroupReplicaId"` -} - -func (m BootVolumeReplica) String() string { - return common.PointerString(m) -} - -// BootVolumeReplicaLifecycleStateEnum Enum with underlying type: string -type BootVolumeReplicaLifecycleStateEnum string - -// Set of constants representing the allowable values for BootVolumeReplicaLifecycleStateEnum -const ( - BootVolumeReplicaLifecycleStateProvisioning BootVolumeReplicaLifecycleStateEnum = "PROVISIONING" - BootVolumeReplicaLifecycleStateAvailable BootVolumeReplicaLifecycleStateEnum = "AVAILABLE" - BootVolumeReplicaLifecycleStateActivating BootVolumeReplicaLifecycleStateEnum = "ACTIVATING" - BootVolumeReplicaLifecycleStateTerminating BootVolumeReplicaLifecycleStateEnum = "TERMINATING" - BootVolumeReplicaLifecycleStateTerminated BootVolumeReplicaLifecycleStateEnum = "TERMINATED" - BootVolumeReplicaLifecycleStateFaulty BootVolumeReplicaLifecycleStateEnum = "FAULTY" -) - -var mappingBootVolumeReplicaLifecycleState = map[string]BootVolumeReplicaLifecycleStateEnum{ - "PROVISIONING": BootVolumeReplicaLifecycleStateProvisioning, - "AVAILABLE": BootVolumeReplicaLifecycleStateAvailable, - "ACTIVATING": BootVolumeReplicaLifecycleStateActivating, - "TERMINATING": BootVolumeReplicaLifecycleStateTerminating, - "TERMINATED": BootVolumeReplicaLifecycleStateTerminated, - "FAULTY": BootVolumeReplicaLifecycleStateFaulty, -} - -// GetBootVolumeReplicaLifecycleStateEnumValues Enumerates the set of values for BootVolumeReplicaLifecycleStateEnum -func GetBootVolumeReplicaLifecycleStateEnumValues() []BootVolumeReplicaLifecycleStateEnum { - values := make([]BootVolumeReplicaLifecycleStateEnum, 0) - for _, v := range mappingBootVolumeReplicaLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_details.go deleted file mode 100644 index 186dee4624..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeReplicaDetails Contains the details for the boot volume replica -type BootVolumeReplicaDetails struct { - - // The availability domain of the boot volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m BootVolumeReplicaDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_info.go deleted file mode 100644 index 361950ef04..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_replica_info.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeReplicaInfo Information about the boot volume replica in the destination availability domain. -type BootVolumeReplicaInfo struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The boot volume replica's Oracle ID (OCID). - BootVolumeReplicaId *string `mandatory:"true" json:"bootVolumeReplicaId"` - - // The availability domain of the boot volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` -} - -func (m BootVolumeReplicaInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_details.go deleted file mode 100644 index 0a75a85e03..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_details.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeSourceDetails The representation of BootVolumeSourceDetails -type BootVolumeSourceDetails interface { -} - -type bootvolumesourcedetails struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *bootvolumesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerbootvolumesourcedetails bootvolumesourcedetails - s := struct { - Model Unmarshalerbootvolumesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *bootvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "bootVolumeBackup": - mm := BootVolumeSourceFromBootVolumeBackupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "bootVolume": - mm := BootVolumeSourceFromBootVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "bootVolumeReplica": - mm := BootVolumeSourceFromBootVolumeReplicaDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m bootvolumesourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_backup_details.go deleted file mode 100644 index 583b7fef87..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_backup_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeSourceFromBootVolumeBackupDetails Specifies the boot volume backup. -type BootVolumeSourceFromBootVolumeBackupDetails struct { - - // The OCID of the boot volume backup. - Id *string `mandatory:"true" json:"id"` -} - -func (m BootVolumeSourceFromBootVolumeBackupDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m BootVolumeSourceFromBootVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeBootVolumeSourceFromBootVolumeBackupDetails BootVolumeSourceFromBootVolumeBackupDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeBootVolumeSourceFromBootVolumeBackupDetails - }{ - "bootVolumeBackup", - (MarshalTypeBootVolumeSourceFromBootVolumeBackupDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_details.go deleted file mode 100644 index c35aba6be7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeSourceFromBootVolumeDetails Specifies the source boot volume. -type BootVolumeSourceFromBootVolumeDetails struct { - - // The OCID of the boot volume. - Id *string `mandatory:"true" json:"id"` -} - -func (m BootVolumeSourceFromBootVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m BootVolumeSourceFromBootVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeBootVolumeSourceFromBootVolumeDetails BootVolumeSourceFromBootVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeBootVolumeSourceFromBootVolumeDetails - }{ - "bootVolume", - (MarshalTypeBootVolumeSourceFromBootVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_replica_details.go deleted file mode 100644 index 522c043c7c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/boot_volume_source_from_boot_volume_replica_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BootVolumeSourceFromBootVolumeReplicaDetails Specifies the source boot volume replica which the boot volume will be created from. -// The boot volume replica shoulbe be in the same availability domain as the boot volume. -// Only one volume can be created from a replica at the same time. -type BootVolumeSourceFromBootVolumeReplicaDetails struct { - - // The OCID of the boot volume replica. - Id *string `mandatory:"true" json:"id"` -} - -func (m BootVolumeSourceFromBootVolumeReplicaDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m BootVolumeSourceFromBootVolumeReplicaDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeBootVolumeSourceFromBootVolumeReplicaDetails BootVolumeSourceFromBootVolumeReplicaDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeBootVolumeSourceFromBootVolumeReplicaDetails - }{ - "bootVolumeReplica", - (MarshalTypeBootVolumeSourceFromBootVolumeReplicaDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_details.go deleted file mode 100644 index 1208548cf3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkAddVirtualCircuitPublicPrefixesDetails The representation of BulkAddVirtualCircuitPublicPrefixesDetails -type BulkAddVirtualCircuitPublicPrefixesDetails struct { - - // The public IP prefixes (CIDRs) to add to the public virtual circuit. - PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` -} - -func (m BulkAddVirtualCircuitPublicPrefixesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_details.go deleted file mode 100644 index bddf8abcd8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkDeleteVirtualCircuitPublicPrefixesDetails The representation of BulkDeleteVirtualCircuitPublicPrefixesDetails -type BulkDeleteVirtualCircuitPublicPrefixesDetails struct { - - // The public IP prefixes (CIDRs) to remove from the public virtual circuit. - PublicPrefixes []DeleteVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` -} - -func (m BulkDeleteVirtualCircuitPublicPrefixesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration.go deleted file mode 100644 index 2ed4b182a0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkMigration Response from Bulk Migration API -type BulkMigration struct { - - // The count of succesfully migrated DRGS from the batch. - SuccessCount *int `mandatory:"true" json:"successCount"` - - // The count of failed during DRGS during migration from the batch. - FailureCount *int `mandatory:"true" json:"failureCount"` - - // The OCIDs of the drgs which were successfully backfilled. - SuccessfulBackfills []string `mandatory:"false" json:"successfulBackfills"` - - // The OCIDs of the drgs which were failed during backfill. - FailedBackfills []string `mandatory:"false" json:"failedBackfills"` - - // The OCIDs of the drgs which were successfully migrated. - SuccessfulMigrations []string `mandatory:"false" json:"successfulMigrations"` - - // The OCIDs of the drgs which were failed during migration. - FailedMigrations []string `mandatory:"false" json:"failedMigrations"` -} - -func (m BulkMigration) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_details.go deleted file mode 100644 index 85fd8ffa23..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkMigrationDetails Request object to Bulk Migration API -type BulkMigrationDetails struct { - - // The size of migration batch. - BatchSize *int `mandatory:"true" json:"batchSize"` -} - -func (m BulkMigrationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_collection.go deleted file mode 100644 index 5a2dcdae39..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ByoipAllocatedRangeCollection Results of a `ListByoipAllocatedRanges` operation. -type ByoipAllocatedRangeCollection struct { - - // A list of subranges of a BYOIP CIDR block allocated to an IP pool. - Items []ByoipAllocatedRangeSummary `mandatory:"true" json:"items"` -} - -func (m ByoipAllocatedRangeCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_summary.go deleted file mode 100644 index ca2c22e857..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_allocated_range_summary.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ByoipAllocatedRangeSummary A summary of CIDR block subranges that are currently allocated to an IP pool. -type ByoipAllocatedRangeSummary struct { - - // The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block. - CidrBlock *string `mandatory:"false" json:"cidrBlock"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IP pool containing the CIDR block. - PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` -} - -func (m ByoipAllocatedRangeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range.go deleted file mode 100644 index ca0a1972ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range.go +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ByoipRange Oracle offers the ability to Bring Your Own IP (BYOIP), importing public IP addresses that you currently own to Oracle Cloud Infrastructure. A `ByoipRange` resource is a record of the imported address block (a BYOIP CIDR block) and also some associated metadata. -// The process used to Bring Your Own IP (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm) is explained in the documentation. -type ByoipRange struct { - - // The public IPv4 CIDR block being imported from on-premises to the Oracle cloud. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOIP CIDR block. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource. - Id *string `mandatory:"true" json:"id"` - - // The `ByoipRange` resource's current state. - LifecycleState ByoipRangeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the `ByoipRange` resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The validation token is an internally-generated ASCII string used in the validation process. See Importing a CIDR block (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details. - ValidationToken *string `mandatory:"true" json:"validationToken"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The `ByoipRange` resource's current status. - LifecycleDetails ByoipRangeLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` - - // The date and time the `ByoipRange` resource was validated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeValidated *common.SDKTime `mandatory:"false" json:"timeValidated"` - - // The date and time the `ByoipRange` resource was advertised to the internet by BGP, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeAdvertised *common.SDKTime `mandatory:"false" json:"timeAdvertised"` - - // The date and time the `ByoipRange` resource was withdrawn from advertisement by BGP to the internet, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeWithdrawn *common.SDKTime `mandatory:"false" json:"timeWithdrawn"` -} - -func (m ByoipRange) String() string { - return common.PointerString(m) -} - -// ByoipRangeLifecycleDetailsEnum Enum with underlying type: string -type ByoipRangeLifecycleDetailsEnum string - -// Set of constants representing the allowable values for ByoipRangeLifecycleDetailsEnum -const ( - ByoipRangeLifecycleDetailsCreating ByoipRangeLifecycleDetailsEnum = "CREATING" - ByoipRangeLifecycleDetailsValidating ByoipRangeLifecycleDetailsEnum = "VALIDATING" - ByoipRangeLifecycleDetailsProvisioned ByoipRangeLifecycleDetailsEnum = "PROVISIONED" - ByoipRangeLifecycleDetailsActive ByoipRangeLifecycleDetailsEnum = "ACTIVE" - ByoipRangeLifecycleDetailsFailed ByoipRangeLifecycleDetailsEnum = "FAILED" - ByoipRangeLifecycleDetailsDeleting ByoipRangeLifecycleDetailsEnum = "DELETING" - ByoipRangeLifecycleDetailsDeleted ByoipRangeLifecycleDetailsEnum = "DELETED" - ByoipRangeLifecycleDetailsAdvertising ByoipRangeLifecycleDetailsEnum = "ADVERTISING" - ByoipRangeLifecycleDetailsWithdrawing ByoipRangeLifecycleDetailsEnum = "WITHDRAWING" -) - -var mappingByoipRangeLifecycleDetails = map[string]ByoipRangeLifecycleDetailsEnum{ - "CREATING": ByoipRangeLifecycleDetailsCreating, - "VALIDATING": ByoipRangeLifecycleDetailsValidating, - "PROVISIONED": ByoipRangeLifecycleDetailsProvisioned, - "ACTIVE": ByoipRangeLifecycleDetailsActive, - "FAILED": ByoipRangeLifecycleDetailsFailed, - "DELETING": ByoipRangeLifecycleDetailsDeleting, - "DELETED": ByoipRangeLifecycleDetailsDeleted, - "ADVERTISING": ByoipRangeLifecycleDetailsAdvertising, - "WITHDRAWING": ByoipRangeLifecycleDetailsWithdrawing, -} - -// GetByoipRangeLifecycleDetailsEnumValues Enumerates the set of values for ByoipRangeLifecycleDetailsEnum -func GetByoipRangeLifecycleDetailsEnumValues() []ByoipRangeLifecycleDetailsEnum { - values := make([]ByoipRangeLifecycleDetailsEnum, 0) - for _, v := range mappingByoipRangeLifecycleDetails { - values = append(values, v) - } - return values -} - -// ByoipRangeLifecycleStateEnum Enum with underlying type: string -type ByoipRangeLifecycleStateEnum string - -// Set of constants representing the allowable values for ByoipRangeLifecycleStateEnum -const ( - ByoipRangeLifecycleStateInactive ByoipRangeLifecycleStateEnum = "INACTIVE" - ByoipRangeLifecycleStateUpdating ByoipRangeLifecycleStateEnum = "UPDATING" - ByoipRangeLifecycleStateActive ByoipRangeLifecycleStateEnum = "ACTIVE" - ByoipRangeLifecycleStateDeleting ByoipRangeLifecycleStateEnum = "DELETING" - ByoipRangeLifecycleStateDeleted ByoipRangeLifecycleStateEnum = "DELETED" -) - -var mappingByoipRangeLifecycleState = map[string]ByoipRangeLifecycleStateEnum{ - "INACTIVE": ByoipRangeLifecycleStateInactive, - "UPDATING": ByoipRangeLifecycleStateUpdating, - "ACTIVE": ByoipRangeLifecycleStateActive, - "DELETING": ByoipRangeLifecycleStateDeleting, - "DELETED": ByoipRangeLifecycleStateDeleted, -} - -// GetByoipRangeLifecycleStateEnumValues Enumerates the set of values for ByoipRangeLifecycleStateEnum -func GetByoipRangeLifecycleStateEnumValues() []ByoipRangeLifecycleStateEnum { - values := make([]ByoipRangeLifecycleStateEnum, 0) - for _, v := range mappingByoipRangeLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_collection.go deleted file mode 100644 index f064365fac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ByoipRangeCollection The results returned by a `ListByoipRange` operation. -type ByoipRangeCollection struct { - - // A list of `ByoipRange` resource summaries. - Items []ByoipRangeSummary `mandatory:"true" json:"items"` -} - -func (m ByoipRangeCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_summary.go deleted file mode 100644 index f656a3d60e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/byoip_range_summary.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ByoipRangeSummary Information about a `ByoipRange` resource. -type ByoipRangeSummary struct { - - // The public IPv4 address range you are importing to the Oracle cloud. - CidrBlock *string `mandatory:"false" json:"cidrBlock"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `ByoipRange` resource. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource. - Id *string `mandatory:"false" json:"id"` - - // The `ByoipRange` resource's current state. - LifecycleState ByoipRangeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The Byoip Range's current lifeCycle substate. - LifecycleDetails ByoipRangeLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` - - // The date and time the `ByoipRange` resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m ByoipRangeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/capacity_reservation_instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/capacity_reservation_instance_summary.go deleted file mode 100644 index 0e5e435b7f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/capacity_reservation_instance_summary.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CapacityReservationInstanceSummary Condensed instance data when listing instances in a compute capacity reservation. -type CapacityReservationInstanceSummary struct { - - // The OCID of the instance. - Id *string `mandatory:"true" json:"id"` - - // The availability domain the instance is running in. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the instance. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The shape of the instance. The shape determines the number of CPUs, amount of memory, - // and other resources allocated to the instance. - // You can enumerate all available shapes by calling ListComputeCapacityReservationInstanceShapes. - Shape *string `mandatory:"true" json:"shape"` - - // The fault domain the instance is running in. - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - ShapeConfig *InstanceReservationShapeConfigDetails `mandatory:"false" json:"shapeConfig"` -} - -func (m CapacityReservationInstanceSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_details.go deleted file mode 100644 index 727905d091..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CaptureConsoleHistoryDetails The representation of CaptureConsoleHistoryDetails -type CaptureConsoleHistoryDetails struct { - - // The OCID of the instance to get the console history from. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CaptureConsoleHistoryDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter.go deleted file mode 100644 index d479f72b44..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CaptureFilter A capture filter contains a set of *CaptureFilterRuleDetails* governing what traffic a *Vtap* mirrors. -// The capture filter is created with no rules defined, and it must have at least one rule for the VTAP to start mirroring traffic. -type CaptureFilter struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the capture filter. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN containing the capture filter. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The capture filter's current administrative state. - LifecycleState CaptureFilterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The date and time the capture filter was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2021-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The set of rules governing what traffic a VTAP mirrors. - CaptureFilterRules []CaptureFilterRuleDetails `mandatory:"false" json:"captureFilterRules"` -} - -func (m CaptureFilter) String() string { - return common.PointerString(m) -} - -// CaptureFilterLifecycleStateEnum Enum with underlying type: string -type CaptureFilterLifecycleStateEnum string - -// Set of constants representing the allowable values for CaptureFilterLifecycleStateEnum -const ( - CaptureFilterLifecycleStateProvisioning CaptureFilterLifecycleStateEnum = "PROVISIONING" - CaptureFilterLifecycleStateAvailable CaptureFilterLifecycleStateEnum = "AVAILABLE" - CaptureFilterLifecycleStateUpdating CaptureFilterLifecycleStateEnum = "UPDATING" - CaptureFilterLifecycleStateTerminating CaptureFilterLifecycleStateEnum = "TERMINATING" - CaptureFilterLifecycleStateTerminated CaptureFilterLifecycleStateEnum = "TERMINATED" -) - -var mappingCaptureFilterLifecycleState = map[string]CaptureFilterLifecycleStateEnum{ - "PROVISIONING": CaptureFilterLifecycleStateProvisioning, - "AVAILABLE": CaptureFilterLifecycleStateAvailable, - "UPDATING": CaptureFilterLifecycleStateUpdating, - "TERMINATING": CaptureFilterLifecycleStateTerminating, - "TERMINATED": CaptureFilterLifecycleStateTerminated, -} - -// GetCaptureFilterLifecycleStateEnumValues Enumerates the set of values for CaptureFilterLifecycleStateEnum -func GetCaptureFilterLifecycleStateEnumValues() []CaptureFilterLifecycleStateEnum { - values := make([]CaptureFilterLifecycleStateEnum, 0) - for _, v := range mappingCaptureFilterLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter_rule_details.go deleted file mode 100644 index 05d30e402e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_filter_rule_details.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CaptureFilterRuleDetails This resource contains the rules governing what traffic a VTAP mirrors. -type CaptureFilterRuleDetails struct { - - // The traffic direction the VTAP is configured to mirror. - TrafficDirection CaptureFilterRuleDetailsTrafficDirectionEnum `mandatory:"true" json:"trafficDirection"` - - // Include or exclude packets meeting this definition from mirrored traffic. - RuleAction CaptureFilterRuleDetailsRuleActionEnum `mandatory:"false" json:"ruleAction,omitempty"` - - // Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target. - SourceCidr *string `mandatory:"false" json:"sourceCidr"` - - // Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target. - DestinationCidr *string `mandatory:"false" json:"destinationCidr"` - - // The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. - // Supported options are: - // * 1 = ICMP - // * 6 = TCP - // * 17 = UDP - Protocol *string `mandatory:"false" json:"protocol"` - - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` -} - -func (m CaptureFilterRuleDetails) String() string { - return common.PointerString(m) -} - -// CaptureFilterRuleDetailsTrafficDirectionEnum Enum with underlying type: string -type CaptureFilterRuleDetailsTrafficDirectionEnum string - -// Set of constants representing the allowable values for CaptureFilterRuleDetailsTrafficDirectionEnum -const ( - CaptureFilterRuleDetailsTrafficDirectionIngress CaptureFilterRuleDetailsTrafficDirectionEnum = "INGRESS" - CaptureFilterRuleDetailsTrafficDirectionEgress CaptureFilterRuleDetailsTrafficDirectionEnum = "EGRESS" -) - -var mappingCaptureFilterRuleDetailsTrafficDirection = map[string]CaptureFilterRuleDetailsTrafficDirectionEnum{ - "INGRESS": CaptureFilterRuleDetailsTrafficDirectionIngress, - "EGRESS": CaptureFilterRuleDetailsTrafficDirectionEgress, -} - -// GetCaptureFilterRuleDetailsTrafficDirectionEnumValues Enumerates the set of values for CaptureFilterRuleDetailsTrafficDirectionEnum -func GetCaptureFilterRuleDetailsTrafficDirectionEnumValues() []CaptureFilterRuleDetailsTrafficDirectionEnum { - values := make([]CaptureFilterRuleDetailsTrafficDirectionEnum, 0) - for _, v := range mappingCaptureFilterRuleDetailsTrafficDirection { - values = append(values, v) - } - return values -} - -// CaptureFilterRuleDetailsRuleActionEnum Enum with underlying type: string -type CaptureFilterRuleDetailsRuleActionEnum string - -// Set of constants representing the allowable values for CaptureFilterRuleDetailsRuleActionEnum -const ( - CaptureFilterRuleDetailsRuleActionInclude CaptureFilterRuleDetailsRuleActionEnum = "INCLUDE" - CaptureFilterRuleDetailsRuleActionExclude CaptureFilterRuleDetailsRuleActionEnum = "EXCLUDE" -) - -var mappingCaptureFilterRuleDetailsRuleAction = map[string]CaptureFilterRuleDetailsRuleActionEnum{ - "INCLUDE": CaptureFilterRuleDetailsRuleActionInclude, - "EXCLUDE": CaptureFilterRuleDetailsRuleActionExclude, -} - -// GetCaptureFilterRuleDetailsRuleActionEnumValues Enumerates the set of values for CaptureFilterRuleDetailsRuleActionEnum -func GetCaptureFilterRuleDetailsRuleActionEnumValues() []CaptureFilterRuleDetailsRuleActionEnum { - values := make([]CaptureFilterRuleDetailsRuleActionEnum, 0) - for _, v := range mappingCaptureFilterRuleDetailsRuleAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cfm_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cfm_metadata.go deleted file mode 100644 index c7f15a4a53..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cfm_metadata.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CfmMetadata Customer facing metrics metadata in association with a Service VNIC. Each metadata item takes the form of a key-value pair. Arbitrary limit for the number of key-value pairs is 30. -type CfmMetadata struct { - - // Metadata entry key. Key comprises of namespace, resource_id, resource_name etc. - Key *string `mandatory:"false" json:"key"` - - // Corresponding value for the key - Value *string `mandatory:"false" json:"value"` -} - -func (m CfmMetadata) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_details.go deleted file mode 100644 index 17854e0ad2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeBootVolumeBackupCompartmentDetails Contains the details for the compartment to move the boot volume backup to. -type ChangeBootVolumeBackupCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the boot volume backup to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeBootVolumeBackupCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_details.go deleted file mode 100644 index f15e08a3e4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeBootVolumeCompartmentDetails Contains the details for the compartment to move the boot volume to. -type ChangeBootVolumeCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the boot volume to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeBootVolumeCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_details.go deleted file mode 100644 index de9c112328..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeByoipRangeCompartmentDetails The configuration details for the move operation. -type ChangeByoipRangeCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the BYOIP CIDR block move. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeByoipRangeCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_details.go deleted file mode 100644 index 49fe235496..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeCaptureFilterCompartmentDetails These configuration details are used in the move operation when changing the compartment containing a virtual test access point (VTAP) capture filter. -type ChangeCaptureFilterCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the VTAP - // capture filter move. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeCaptureFilterCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_details.go deleted file mode 100644 index f7498baf41..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeClientVpnCompartmentDetails The configuration details for the move operation. -type ChangeClientVpnCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // remote peering connection to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeClientVpnCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_details.go deleted file mode 100644 index f8b6b584ef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeClusterNetworkCompartmentDetails The configuration details for the move operation. -type ChangeClusterNetworkCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // into which the resource should be moved. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeClusterNetworkCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_details.go deleted file mode 100644 index 002322551e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeComputeCapacityReservationCompartmentDetails Specifies the compartment to move the compute capacity reservation to. -type ChangeComputeCapacityReservationCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // to move the compute capacity reservation to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeComputeCapacityReservationCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_details.go deleted file mode 100644 index 9705a9437e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeComputeClusterCompartmentDetails The configuration details for the move operation. -type ChangeComputeClusterCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the compute cluster to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeComputeClusterCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_details.go deleted file mode 100644 index a68fd16627..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeComputeImageCapabilitySchemaCompartmentDetails The configuration details for the move operation. -type ChangeComputeImageCapabilitySchemaCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to - // move the instance configuration to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeComputeImageCapabilitySchemaCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_details.go deleted file mode 100644 index d7679a509a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeCpeCompartmentDetails The configuration details for the move operation. -type ChangeCpeCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // CPE object to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeCpeCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_details.go deleted file mode 100644 index a117b61c86..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeCrossConnectCompartmentDetails The configuration details for the move operation. -type ChangeCrossConnectCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // cross-connect to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeCrossConnectCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_details.go deleted file mode 100644 index cda836b24b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeCrossConnectGroupCompartmentDetails The configuration details for the move operation. -type ChangeCrossConnectGroupCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // cross-connect group to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeCrossConnectGroupCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_details.go deleted file mode 100644 index 675b0b3e03..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeDedicatedVmHostCompartmentDetails Specifies the compartment to move the dedicated virtual machine host to. -type ChangeDedicatedVmHostCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // to move the dedicated virtual machine host to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeDedicatedVmHostCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_details.go deleted file mode 100644 index cd97e5272b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeDhcpOptionsCompartmentDetails The configuration details for the move operation. -type ChangeDhcpOptionsCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // set of DHCP options to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeDhcpOptionsCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_details.go deleted file mode 100644 index 92ecc910bf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeDrgAttachmentCompartmentDetails The configuration details for the move operation. -type ChangeDrgAttachmentCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // DRG attachment to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeDrgAttachmentCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_details.go deleted file mode 100644 index 9883fe94b7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeDrgCompartmentDetails The configuration details for the move operation. -type ChangeDrgCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // DRG to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeDrgCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_details.go deleted file mode 100644 index b8c7be2f5e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeImageCompartmentDetails The configuration details for the move operation. -type ChangeImageCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the image to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeImageCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_details.go deleted file mode 100644 index addf91bd5e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeInstanceCompartmentDetails The configuration details for the move operation. -type ChangeInstanceCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the instance to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeInstanceCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_details.go deleted file mode 100644 index 0c17349760..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeInstanceConfigurationCompartmentDetails The configuration details for the move operation. -type ChangeInstanceConfigurationCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to - // move the instance configuration to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeInstanceConfigurationCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_details.go deleted file mode 100644 index ee8e704216..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeInstancePoolCompartmentDetails The configuration details for the move operation. -type ChangeInstancePoolCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to - // move the instance pool to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeInstancePoolCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_details.go deleted file mode 100644 index 66694f996c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeInternalDrgCompartmentDetails The configuration details for the changing the compartment. -type ChangeInternalDrgCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // DRG to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeInternalDrgCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_details.go deleted file mode 100644 index 43283349cc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeInternalGenericGatewayCompartmentDetails Contains details indicating which compartment the resource should move to -type ChangeInternalGenericGatewayCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the new compartment - DestinationCompartmentId *string `mandatory:"true" json:"destinationCompartmentId"` -} - -func (m ChangeInternalGenericGatewayCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_details.go deleted file mode 100644 index 2103dd9a09..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeInternetGatewayCompartmentDetails The configuration details for the move operation. -type ChangeInternetGatewayCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // internet gateway to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeInternetGatewayCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_ip_sec_connection_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_ip_sec_connection_compartment_details.go deleted file mode 100644 index a2e88bdd36..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_ip_sec_connection_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeIpSecConnectionCompartmentDetails The configuration details for the move operation. -type ChangeIpSecConnectionCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // IPSec connection to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeIpSecConnectionCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_details.go deleted file mode 100644 index 51f58ca9e5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeLocalPeeringGatewayCompartmentDetails The configuration details for the move operation. -type ChangeLocalPeeringGatewayCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // local peering gateway to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeLocalPeeringGatewayCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_details.go deleted file mode 100644 index 96c513c218..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeNatGatewayCompartmentDetails The configuration details for the move operation. -type ChangeNatGatewayCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the NAT gateway to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeNatGatewayCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_details.go deleted file mode 100644 index 215d489abb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeNetworkSecurityGroupCompartmentDetails The representation of ChangeNetworkSecurityGroupCompartmentDetails -type ChangeNetworkSecurityGroupCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the network - // security group to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeNetworkSecurityGroupCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_details.go deleted file mode 100644 index 966c9953f5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangePrivateEndpointCompartmentDetails The configuration details for the move operation. -type ChangePrivateEndpointCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // into which the private endpoint should be moved. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangePrivateEndpointCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_details.go deleted file mode 100644 index 1dc5ed5c15..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangePublicIpCompartmentDetails The configuration details for the move operation. -type ChangePublicIpCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // public IP to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangePublicIpCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_details.go deleted file mode 100644 index 44608d3bff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangePublicIpPoolCompartmentDetails The configuration details for the move operation. -type ChangePublicIpPoolCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the public IP pool move. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangePublicIpPoolCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_details.go deleted file mode 100644 index ac9dc1a0de..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeRemotePeeringConnectionCompartmentDetails The configuration details for the move operation. -type ChangeRemotePeeringConnectionCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // remote peering connection to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeRemotePeeringConnectionCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_details.go deleted file mode 100644 index 9027423f46..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeRouteTableCompartmentDetails The configuration details for the move operation. -type ChangeRouteTableCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // route table to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeRouteTableCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_details.go deleted file mode 100644 index 0d07af99e7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeSecurityListCompartmentDetails The configuration details for the move operation. -type ChangeSecurityListCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // security list to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeSecurityListCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_details.go deleted file mode 100644 index bb28c0a8f3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeServiceGatewayCompartmentDetails The configuration details for the move operation. -type ChangeServiceGatewayCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // service gateway to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeServiceGatewayCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_details.go deleted file mode 100644 index 304292e7fe..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeSubnetCompartmentDetails The configuration details for the move operation. -type ChangeSubnetCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // subnet to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeSubnetCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_details.go deleted file mode 100644 index f71b324633..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVcnCompartmentDetails The configuration details for the move operation. -type ChangeVcnCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // VCN to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVcnCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_details.go deleted file mode 100644 index 686233ef35..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVirtualCircuitCompartmentDetails The configuration details for the move operation. -type ChangeVirtualCircuitCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the - // virtual circuit to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVirtualCircuitCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_details.go deleted file mode 100644 index e2717e19aa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVlanCompartmentDetails The configuration details for the move operation. -type ChangeVlanCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the VLAN to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVlanCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request.go deleted file mode 100644 index 2ef938b581..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVnicAttachmentsCompartmentRequest This structure is used when changing vnic attachment compartment. -type ChangeVnicAttachmentsCompartmentRequest struct { - - // List of VNICs whose attachments need to move to the destination compartment - VnicIds []string `mandatory:"false" json:"vnicIds"` - - // The ID of the parent resource that these VNICs are attached to - ParentResourceId *string `mandatory:"false" json:"parentResourceId"` - - // The destination compartment ID - DestinationCompartmentId *string `mandatory:"false" json:"destinationCompartmentId"` - - // The compartment ID to create the work request in. This is NOT the customer's compartment - // but one that belongs to the calling service. Typically this is not the same as the destination - // compartment ID - WorkRequestCompartmentId *string `mandatory:"false" json:"workRequestCompartmentId"` -} - -func (m ChangeVnicAttachmentsCompartmentRequest) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_details.go deleted file mode 100644 index 6f84166f8b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVolumeBackupCompartmentDetails Contains the details for the compartment to move the volume backup to. -type ChangeVolumeBackupCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume backup to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVolumeBackupCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_details.go deleted file mode 100644 index 8d5932907c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVolumeCompartmentDetails Contains the details for the compartment to move the volume to. -type ChangeVolumeCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVolumeCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_details.go deleted file mode 100644 index 58b0c5f718..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVolumeGroupBackupCompartmentDetails Contains the details for the compartment to move the volume group backup to. -type ChangeVolumeGroupBackupCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume group backup to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVolumeGroupBackupCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_details.go deleted file mode 100644 index de2d024691..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVolumeGroupCompartmentDetails Contains the details for the compartment to move the volume group to. -type ChangeVolumeGroupCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume group to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVolumeGroupCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_details.go deleted file mode 100644 index 33bf80e9c7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeVtapCompartmentDetails These configuration details are used in the move operation when changing the compartment containing a virtual test access point (VTAP). -type ChangeVtapCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the VTAP move. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeVtapCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn.go deleted file mode 100644 index cf84b63c93..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn.go +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpn The ClientVPNEnpoint is a server endpoint that allow customer get access to openVPN service. -type ClientVpn struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that user sent request. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of clientVPNEndpoint. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attachedSubnet (VNIC) in customer tenancy. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The IP address in attached subnet. - IpAddressInAttachedSubnet *string `mandatory:"true" json:"ipAddressInAttachedSubnet"` - - // Whether re-route Internet traffic or not. - IsRerouteEnabled *bool `mandatory:"true" json:"isRerouteEnabled"` - - // A list of accessible subnets from this clientVPNEndpoint. - AccessibleSubnetCidrs []string `mandatory:"true" json:"accessibleSubnetCidrs"` - - DnsConfig *DnsConfigDetails `mandatory:"true" json:"dnsConfig"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The current state of the ClientVPNenpoint. - LifecycleState ClientVpnLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // A limit that allows the maximum number of VPN concurrent connections. - MaxConnections *int `mandatory:"false" json:"maxConnections"` - - // A subnet for openVPN clients to access servers. - ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` - - // Allowed values: - // * `NAT`: NAT mode supports the one-way access. In NAT mode, client can access the Internet from server endpoint - // but server endpoint cannot access the Internet from client. - // * `ROUTING`: ROUTING mode supports the two-way access. In ROUTING mode, client and server endpoint can access the - // Internet to each other. - AddressingMode ClientVpnAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` - - // Allowed values: - // * `LOCAL`: Local authentication mode that applies users and password to get authentication through the server. - // * `RADIUS`: RADIUS authentication mode applies users and password to get authentication through the RADIUS server. - // * `LDAP`: LDAP authentication mode that applies users and passwords to get authentication through the LDAP server. - AuthenticationMode ClientVpnAuthenticationModeEnum `mandatory:"false" json:"authenticationMode,omitempty"` - - // The time ClientVpn was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - RadiusConfig *RadiusConfigDetails `mandatory:"false" json:"radiusConfig"` - - LdapConfig *LdapConfigDetails `mandatory:"false" json:"ldapConfig"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ClientVpn) String() string { - return common.PointerString(m) -} - -// ClientVpnLifecycleStateEnum Enum with underlying type: string -type ClientVpnLifecycleStateEnum string - -// Set of constants representing the allowable values for ClientVpnLifecycleStateEnum -const ( - ClientVpnLifecycleStateCreating ClientVpnLifecycleStateEnum = "CREATING" - ClientVpnLifecycleStateActive ClientVpnLifecycleStateEnum = "ACTIVE" - ClientVpnLifecycleStateInactive ClientVpnLifecycleStateEnum = "INACTIVE" - ClientVpnLifecycleStateFailed ClientVpnLifecycleStateEnum = "FAILED" - ClientVpnLifecycleStateDeleted ClientVpnLifecycleStateEnum = "DELETED" - ClientVpnLifecycleStateDeleting ClientVpnLifecycleStateEnum = "DELETING" - ClientVpnLifecycleStateUpdating ClientVpnLifecycleStateEnum = "UPDATING" -) - -var mappingClientVpnLifecycleState = map[string]ClientVpnLifecycleStateEnum{ - "CREATING": ClientVpnLifecycleStateCreating, - "ACTIVE": ClientVpnLifecycleStateActive, - "INACTIVE": ClientVpnLifecycleStateInactive, - "FAILED": ClientVpnLifecycleStateFailed, - "DELETED": ClientVpnLifecycleStateDeleted, - "DELETING": ClientVpnLifecycleStateDeleting, - "UPDATING": ClientVpnLifecycleStateUpdating, -} - -// GetClientVpnLifecycleStateEnumValues Enumerates the set of values for ClientVpnLifecycleStateEnum -func GetClientVpnLifecycleStateEnumValues() []ClientVpnLifecycleStateEnum { - values := make([]ClientVpnLifecycleStateEnum, 0) - for _, v := range mappingClientVpnLifecycleState { - values = append(values, v) - } - return values -} - -// ClientVpnAddressingModeEnum Enum with underlying type: string -type ClientVpnAddressingModeEnum string - -// Set of constants representing the allowable values for ClientVpnAddressingModeEnum -const ( - ClientVpnAddressingModeNat ClientVpnAddressingModeEnum = "NAT" - ClientVpnAddressingModeRouting ClientVpnAddressingModeEnum = "ROUTING" -) - -var mappingClientVpnAddressingMode = map[string]ClientVpnAddressingModeEnum{ - "NAT": ClientVpnAddressingModeNat, - "ROUTING": ClientVpnAddressingModeRouting, -} - -// GetClientVpnAddressingModeEnumValues Enumerates the set of values for ClientVpnAddressingModeEnum -func GetClientVpnAddressingModeEnumValues() []ClientVpnAddressingModeEnum { - values := make([]ClientVpnAddressingModeEnum, 0) - for _, v := range mappingClientVpnAddressingMode { - values = append(values, v) - } - return values -} - -// ClientVpnAuthenticationModeEnum Enum with underlying type: string -type ClientVpnAuthenticationModeEnum string - -// Set of constants representing the allowable values for ClientVpnAuthenticationModeEnum -const ( - ClientVpnAuthenticationModeLocal ClientVpnAuthenticationModeEnum = "LOCAL" - ClientVpnAuthenticationModeRadius ClientVpnAuthenticationModeEnum = "RADIUS" - ClientVpnAuthenticationModeLdap ClientVpnAuthenticationModeEnum = "LDAP" -) - -var mappingClientVpnAuthenticationMode = map[string]ClientVpnAuthenticationModeEnum{ - "LOCAL": ClientVpnAuthenticationModeLocal, - "RADIUS": ClientVpnAuthenticationModeRadius, - "LDAP": ClientVpnAuthenticationModeLdap, -} - -// GetClientVpnAuthenticationModeEnumValues Enumerates the set of values for ClientVpnAuthenticationModeEnum -func GetClientVpnAuthenticationModeEnumValues() []ClientVpnAuthenticationModeEnum { - values := make([]ClientVpnAuthenticationModeEnum, 0) - for _, v := range mappingClientVpnAuthenticationMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_active_user.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_active_user.go deleted file mode 100644 index b4764b0783..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_active_user.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnActiveUser An active user on an endpoint. -type ClientVpnActiveUser struct { - - // The common username of a user. - UserName *string `mandatory:"false" json:"userName"` - - // The originating IP address of a user. - RealIp *string `mandatory:"false" json:"realIp"` - - // The duration of the user's connection. - ConnectionDuration *string `mandatory:"false" json:"connectionDuration"` -} - -func (m ClientVpnActiveUser) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_status.go deleted file mode 100644 index efc53c4c51..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_status.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnStatus The status of ClientVpn. -type ClientVpnStatus struct { - - // The number of current connections on given clientVpn. - CurrentConnections *int `mandatory:"true" json:"currentConnections"` - - // The list of active users. - ActiveUsers []ClientVpnActiveUser `mandatory:"true" json:"activeUsers"` - - // The current state of the ClientVPNendpoint. - LifecycleState ClientVpnStatusLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` -} - -func (m ClientVpnStatus) String() string { - return common.PointerString(m) -} - -// ClientVpnStatusLifecycleStateEnum Enum with underlying type: string -type ClientVpnStatusLifecycleStateEnum string - -// Set of constants representing the allowable values for ClientVpnStatusLifecycleStateEnum -const ( - ClientVpnStatusLifecycleStateCreating ClientVpnStatusLifecycleStateEnum = "CREATING" - ClientVpnStatusLifecycleStateActive ClientVpnStatusLifecycleStateEnum = "ACTIVE" - ClientVpnStatusLifecycleStateInactive ClientVpnStatusLifecycleStateEnum = "INACTIVE" - ClientVpnStatusLifecycleStateFailed ClientVpnStatusLifecycleStateEnum = "FAILED" - ClientVpnStatusLifecycleStateDeleted ClientVpnStatusLifecycleStateEnum = "DELETED" - ClientVpnStatusLifecycleStateDeleting ClientVpnStatusLifecycleStateEnum = "DELETING" - ClientVpnStatusLifecycleStateUpdating ClientVpnStatusLifecycleStateEnum = "UPDATING" -) - -var mappingClientVpnStatusLifecycleState = map[string]ClientVpnStatusLifecycleStateEnum{ - "CREATING": ClientVpnStatusLifecycleStateCreating, - "ACTIVE": ClientVpnStatusLifecycleStateActive, - "INACTIVE": ClientVpnStatusLifecycleStateInactive, - "FAILED": ClientVpnStatusLifecycleStateFailed, - "DELETED": ClientVpnStatusLifecycleStateDeleted, - "DELETING": ClientVpnStatusLifecycleStateDeleting, - "UPDATING": ClientVpnStatusLifecycleStateUpdating, -} - -// GetClientVpnStatusLifecycleStateEnumValues Enumerates the set of values for ClientVpnStatusLifecycleStateEnum -func GetClientVpnStatusLifecycleStateEnumValues() []ClientVpnStatusLifecycleStateEnum { - values := make([]ClientVpnStatusLifecycleStateEnum, 0) - for _, v := range mappingClientVpnStatusLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary.go deleted file mode 100644 index 8387e92f51..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary.go +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnSummary a summary of ClientVpn. -type ClientVpnSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that user sent request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of clientVPNEndpoint. - Id *string `mandatory:"false" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A limit that allows the maximum number of VPN concurrent connections. - MaxConnections *int `mandatory:"false" json:"maxConnections"` - - // The current state of the ClientVpn. - LifecycleState ClientVpnLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // A subnet for openVPN clients to access servers. - ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attachedSubnet (VNIC) in customer tenancy. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // The IP address in attached subnet. - IpAddressInAttachedSubnet *string `mandatory:"false" json:"ipAddressInAttachedSubnet"` - - // Whether re-route Internet traffic or not. - IsRerouteEnabled *bool `mandatory:"false" json:"isRerouteEnabled"` - - // The date and time the ClientVpn was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Allowed values: - // * `NAT`: NAT mode supports the one-way access. In NAT mode, client can access the Internet from server endpoint - // but server endpoint cannot access the Internet from client. - // * `ROUTING`: ROUTING mode supports the two-way access. In ROUTING mode, client and server endpoint can access the - // Internet to each other. - AddressingMode ClientVpnSummaryAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` - - // Allowed values: - // * `LOCAL`: Local authentication mode that applies users and password to get authentication through the server. - // * `RADIUS`: RADIUS authentication mode applies users and password to get authentication through the RADIUS server. - // * `LDAP`: LDAP authentication mode that applies users and passwords to get authentication through the LDAP server. - AuthenticationMode ClientVpnSummaryAuthenticationModeEnum `mandatory:"false" json:"authenticationMode,omitempty"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ClientVpnSummary) String() string { - return common.PointerString(m) -} - -// ClientVpnSummaryAddressingModeEnum Enum with underlying type: string -type ClientVpnSummaryAddressingModeEnum string - -// Set of constants representing the allowable values for ClientVpnSummaryAddressingModeEnum -const ( - ClientVpnSummaryAddressingModeNat ClientVpnSummaryAddressingModeEnum = "NAT" - ClientVpnSummaryAddressingModeRouting ClientVpnSummaryAddressingModeEnum = "ROUTING" -) - -var mappingClientVpnSummaryAddressingMode = map[string]ClientVpnSummaryAddressingModeEnum{ - "NAT": ClientVpnSummaryAddressingModeNat, - "ROUTING": ClientVpnSummaryAddressingModeRouting, -} - -// GetClientVpnSummaryAddressingModeEnumValues Enumerates the set of values for ClientVpnSummaryAddressingModeEnum -func GetClientVpnSummaryAddressingModeEnumValues() []ClientVpnSummaryAddressingModeEnum { - values := make([]ClientVpnSummaryAddressingModeEnum, 0) - for _, v := range mappingClientVpnSummaryAddressingMode { - values = append(values, v) - } - return values -} - -// ClientVpnSummaryAuthenticationModeEnum Enum with underlying type: string -type ClientVpnSummaryAuthenticationModeEnum string - -// Set of constants representing the allowable values for ClientVpnSummaryAuthenticationModeEnum -const ( - ClientVpnSummaryAuthenticationModeLocal ClientVpnSummaryAuthenticationModeEnum = "LOCAL" - ClientVpnSummaryAuthenticationModeRadius ClientVpnSummaryAuthenticationModeEnum = "RADIUS" - ClientVpnSummaryAuthenticationModeLdap ClientVpnSummaryAuthenticationModeEnum = "LDAP" -) - -var mappingClientVpnSummaryAuthenticationMode = map[string]ClientVpnSummaryAuthenticationModeEnum{ - "LOCAL": ClientVpnSummaryAuthenticationModeLocal, - "RADIUS": ClientVpnSummaryAuthenticationModeRadius, - "LDAP": ClientVpnSummaryAuthenticationModeLdap, -} - -// GetClientVpnSummaryAuthenticationModeEnumValues Enumerates the set of values for ClientVpnSummaryAuthenticationModeEnum -func GetClientVpnSummaryAuthenticationModeEnumValues() []ClientVpnSummaryAuthenticationModeEnum { - values := make([]ClientVpnSummaryAuthenticationModeEnum, 0) - for _, v := range mappingClientVpnSummaryAuthenticationMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary_collection.go deleted file mode 100644 index 319bb861c1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_summary_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnSummaryCollection Result of list of ClientVpn. -type ClientVpnSummaryCollection struct { - - // List of ClientVpns. - Items []ClientVpnSummary `mandatory:"true" json:"items"` -} - -func (m ClientVpnSummaryCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user.go deleted file mode 100644 index 58932ce7eb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnUser The user of a certain clientVpn. -type ClientVpnUser struct { - - // The unique username of the user want to create. - UserName *string `mandatory:"true" json:"userName"` - - // The current state of the ClientVPNendpointUser. - LifecycleState ClientVpnUserLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Whether to log in the user by cert-authentication only or not. - IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` - - // The time ClientVpnUser was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m ClientVpnUser) String() string { - return common.PointerString(m) -} - -// ClientVpnUserLifecycleStateEnum Enum with underlying type: string -type ClientVpnUserLifecycleStateEnum string - -// Set of constants representing the allowable values for ClientVpnUserLifecycleStateEnum -const ( - ClientVpnUserLifecycleStateCreating ClientVpnUserLifecycleStateEnum = "CREATING" - ClientVpnUserLifecycleStateActive ClientVpnUserLifecycleStateEnum = "ACTIVE" - ClientVpnUserLifecycleStateInactive ClientVpnUserLifecycleStateEnum = "INACTIVE" - ClientVpnUserLifecycleStateFailed ClientVpnUserLifecycleStateEnum = "FAILED" - ClientVpnUserLifecycleStateDeleted ClientVpnUserLifecycleStateEnum = "DELETED" - ClientVpnUserLifecycleStateDeleting ClientVpnUserLifecycleStateEnum = "DELETING" - ClientVpnUserLifecycleStateUpdating ClientVpnUserLifecycleStateEnum = "UPDATING" -) - -var mappingClientVpnUserLifecycleState = map[string]ClientVpnUserLifecycleStateEnum{ - "CREATING": ClientVpnUserLifecycleStateCreating, - "ACTIVE": ClientVpnUserLifecycleStateActive, - "INACTIVE": ClientVpnUserLifecycleStateInactive, - "FAILED": ClientVpnUserLifecycleStateFailed, - "DELETED": ClientVpnUserLifecycleStateDeleted, - "DELETING": ClientVpnUserLifecycleStateDeleting, - "UPDATING": ClientVpnUserLifecycleStateUpdating, -} - -// GetClientVpnUserLifecycleStateEnumValues Enumerates the set of values for ClientVpnUserLifecycleStateEnum -func GetClientVpnUserLifecycleStateEnumValues() []ClientVpnUserLifecycleStateEnum { - values := make([]ClientVpnUserLifecycleStateEnum, 0) - for _, v := range mappingClientVpnUserLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary.go deleted file mode 100644 index fd54b48a3c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnUserSummary a summary of clientVpn. -type ClientVpnUserSummary struct { - - // The unique username of the user want to create. - UserName *string `mandatory:"false" json:"userName"` - - // The current state of the ClientVpnUser. - LifecycleState ClientVpnUserLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Whether to log in the user by cert-authentication only or not. - IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` - - // The date and time the ClientVpnUser was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m ClientVpnUserSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary_collection.go deleted file mode 100644 index fccd6f0685..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/client_vpn_user_summary_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientVpnUserSummaryCollection Result of list of ClientVpnUser. -type ClientVpnUserSummaryCollection struct { - - // List of ClientVpnUsers. - Items []ClientVpnUserSummary `mandatory:"true" json:"items"` -} - -func (m ClientVpnUserSummaryCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network.go deleted file mode 100644 index 2ce219fa6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterNetwork A cluster network is a group of high performance computing (HPC) bare metal instances that are connected -// with an ultra low latency network. For more information about cluster networks, see -// Managing Cluster Networks (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). -type ClusterNetwork struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cluster network. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The current state of the cluster network. - LifecycleState ClusterNetworkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the resource was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The instance pools in the cluster network. - // Each cluster network can have one instance pool. - InstancePools []InstancePool `mandatory:"false" json:"instancePools"` - - PlacementConfiguration *ClusterNetworkPlacementConfigurationDetails `mandatory:"false" json:"placementConfiguration"` -} - -func (m ClusterNetwork) String() string { - return common.PointerString(m) -} - -// ClusterNetworkLifecycleStateEnum Enum with underlying type: string -type ClusterNetworkLifecycleStateEnum string - -// Set of constants representing the allowable values for ClusterNetworkLifecycleStateEnum -const ( - ClusterNetworkLifecycleStateProvisioning ClusterNetworkLifecycleStateEnum = "PROVISIONING" - ClusterNetworkLifecycleStateScaling ClusterNetworkLifecycleStateEnum = "SCALING" - ClusterNetworkLifecycleStateStarting ClusterNetworkLifecycleStateEnum = "STARTING" - ClusterNetworkLifecycleStateStopping ClusterNetworkLifecycleStateEnum = "STOPPING" - ClusterNetworkLifecycleStateTerminating ClusterNetworkLifecycleStateEnum = "TERMINATING" - ClusterNetworkLifecycleStateStopped ClusterNetworkLifecycleStateEnum = "STOPPED" - ClusterNetworkLifecycleStateTerminated ClusterNetworkLifecycleStateEnum = "TERMINATED" - ClusterNetworkLifecycleStateRunning ClusterNetworkLifecycleStateEnum = "RUNNING" -) - -var mappingClusterNetworkLifecycleState = map[string]ClusterNetworkLifecycleStateEnum{ - "PROVISIONING": ClusterNetworkLifecycleStateProvisioning, - "SCALING": ClusterNetworkLifecycleStateScaling, - "STARTING": ClusterNetworkLifecycleStateStarting, - "STOPPING": ClusterNetworkLifecycleStateStopping, - "TERMINATING": ClusterNetworkLifecycleStateTerminating, - "STOPPED": ClusterNetworkLifecycleStateStopped, - "TERMINATED": ClusterNetworkLifecycleStateTerminated, - "RUNNING": ClusterNetworkLifecycleStateRunning, -} - -// GetClusterNetworkLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkLifecycleStateEnum -func GetClusterNetworkLifecycleStateEnumValues() []ClusterNetworkLifecycleStateEnum { - values := make([]ClusterNetworkLifecycleStateEnum, 0) - for _, v := range mappingClusterNetworkLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_placement_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_placement_configuration_details.go deleted file mode 100644 index 09a2fab2dd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_placement_configuration_details.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterNetworkPlacementConfigurationDetails The location for where the instance pools in a cluster network will place instances. -type ClusterNetworkPlacementConfigurationDetails struct { - - // The availability domain to place instances. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place - // instances. - PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` - - // The set of secondary VNIC data for instances in the pool. - SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` -} - -func (m ClusterNetworkPlacementConfigurationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_summary.go deleted file mode 100644 index 3253525ce0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cluster_network_summary.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClusterNetworkSummary Summary information for a cluster network. -type ClusterNetworkSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the - // cluster netowrk. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The current state of the cluster network. - LifecycleState ClusterNetworkSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the resource was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The instance pools in the cluster network. - InstancePools []InstancePoolSummary `mandatory:"false" json:"instancePools"` -} - -func (m ClusterNetworkSummary) String() string { - return common.PointerString(m) -} - -// ClusterNetworkSummaryLifecycleStateEnum Enum with underlying type: string -type ClusterNetworkSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ClusterNetworkSummaryLifecycleStateEnum -const ( - ClusterNetworkSummaryLifecycleStateProvisioning ClusterNetworkSummaryLifecycleStateEnum = "PROVISIONING" - ClusterNetworkSummaryLifecycleStateScaling ClusterNetworkSummaryLifecycleStateEnum = "SCALING" - ClusterNetworkSummaryLifecycleStateStarting ClusterNetworkSummaryLifecycleStateEnum = "STARTING" - ClusterNetworkSummaryLifecycleStateStopping ClusterNetworkSummaryLifecycleStateEnum = "STOPPING" - ClusterNetworkSummaryLifecycleStateTerminating ClusterNetworkSummaryLifecycleStateEnum = "TERMINATING" - ClusterNetworkSummaryLifecycleStateStopped ClusterNetworkSummaryLifecycleStateEnum = "STOPPED" - ClusterNetworkSummaryLifecycleStateTerminated ClusterNetworkSummaryLifecycleStateEnum = "TERMINATED" - ClusterNetworkSummaryLifecycleStateRunning ClusterNetworkSummaryLifecycleStateEnum = "RUNNING" -) - -var mappingClusterNetworkSummaryLifecycleState = map[string]ClusterNetworkSummaryLifecycleStateEnum{ - "PROVISIONING": ClusterNetworkSummaryLifecycleStateProvisioning, - "SCALING": ClusterNetworkSummaryLifecycleStateScaling, - "STARTING": ClusterNetworkSummaryLifecycleStateStarting, - "STOPPING": ClusterNetworkSummaryLifecycleStateStopping, - "TERMINATING": ClusterNetworkSummaryLifecycleStateTerminating, - "STOPPED": ClusterNetworkSummaryLifecycleStateStopped, - "TERMINATED": ClusterNetworkSummaryLifecycleStateTerminated, - "RUNNING": ClusterNetworkSummaryLifecycleStateRunning, -} - -// GetClusterNetworkSummaryLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkSummaryLifecycleStateEnum -func GetClusterNetworkSummaryLifecycleStateEnumValues() []ClusterNetworkSummaryLifecycleStateEnum { - values := make([]ClusterNetworkSummaryLifecycleStateEnum, 0) - for _, v := range mappingClusterNetworkSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation.go deleted file mode 100644 index f04ebab062..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeCapacityReservation A template that defines the settings to use when creating compute capacity reservations. -type ComputeCapacityReservation struct { - - // The availability domain of the compute capacity reservation. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // containing the compute capacity reservation. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity reservation. - Id *string `mandatory:"true" json:"id"` - - // The current state of the compute capacity reservation. - LifecycleState ComputeCapacityReservationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the compute capacity reservation was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether this capacity reservation is the default. - // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). - IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` - - // The capacity configurations for the capacity reservation. - // To use the reservation for the desired shape, specify the shape, count, and - // optionally the fault domain where you want this configuration. - InstanceReservationConfigs []InstanceReservationConfig `mandatory:"false" json:"instanceReservationConfigs"` - - // The number of instances for which capacity will be held with this - // compute capacity reservation. This number is the sum of the values of the `reservedCount` fields - // for all of the instance capacity configurations under this reservation. - // The purpose of this field is to calculate the percentage usage of the reservation. - ReservedInstanceCount *int64 `mandatory:"false" json:"reservedInstanceCount"` - - // The date and time the compute capacity reservation was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` - - // The total number of instances currently consuming space in - // this compute capacity reservation. This number is the sum of the values of the `usedCount` fields - // for all of the instance capacity configurations under this reservation. - // The purpose of this field is to calculate the percentage usage of the reservation. - UsedInstanceCount *int64 `mandatory:"false" json:"usedInstanceCount"` -} - -func (m ComputeCapacityReservation) String() string { - return common.PointerString(m) -} - -// ComputeCapacityReservationLifecycleStateEnum Enum with underlying type: string -type ComputeCapacityReservationLifecycleStateEnum string - -// Set of constants representing the allowable values for ComputeCapacityReservationLifecycleStateEnum -const ( - ComputeCapacityReservationLifecycleStateActive ComputeCapacityReservationLifecycleStateEnum = "ACTIVE" - ComputeCapacityReservationLifecycleStateCreating ComputeCapacityReservationLifecycleStateEnum = "CREATING" - ComputeCapacityReservationLifecycleStateUpdating ComputeCapacityReservationLifecycleStateEnum = "UPDATING" - ComputeCapacityReservationLifecycleStateMoving ComputeCapacityReservationLifecycleStateEnum = "MOVING" - ComputeCapacityReservationLifecycleStateDeleted ComputeCapacityReservationLifecycleStateEnum = "DELETED" - ComputeCapacityReservationLifecycleStateDeleting ComputeCapacityReservationLifecycleStateEnum = "DELETING" -) - -var mappingComputeCapacityReservationLifecycleState = map[string]ComputeCapacityReservationLifecycleStateEnum{ - "ACTIVE": ComputeCapacityReservationLifecycleStateActive, - "CREATING": ComputeCapacityReservationLifecycleStateCreating, - "UPDATING": ComputeCapacityReservationLifecycleStateUpdating, - "MOVING": ComputeCapacityReservationLifecycleStateMoving, - "DELETED": ComputeCapacityReservationLifecycleStateDeleted, - "DELETING": ComputeCapacityReservationLifecycleStateDeleting, -} - -// GetComputeCapacityReservationLifecycleStateEnumValues Enumerates the set of values for ComputeCapacityReservationLifecycleStateEnum -func GetComputeCapacityReservationLifecycleStateEnumValues() []ComputeCapacityReservationLifecycleStateEnum { - values := make([]ComputeCapacityReservationLifecycleStateEnum, 0) - for _, v := range mappingComputeCapacityReservationLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_instance_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_instance_shape_summary.go deleted file mode 100644 index efe55ba1db..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_instance_shape_summary.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeCapacityReservationInstanceShapeSummary An available shape used to launch instances in a compute capacity reservation. -type ComputeCapacityReservationInstanceShapeSummary struct { - - // The shape's availability domain. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The name of the available shape used to launch instances in a compute capacity reservation. - InstanceShape *string `mandatory:"true" json:"instanceShape"` -} - -func (m ComputeCapacityReservationInstanceShapeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_summary.go deleted file mode 100644 index 6eed121c2e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_capacity_reservation_summary.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeCapacityReservationSummary Summary information for a compute capacity reservation. -type ComputeCapacityReservationSummary struct { - - // The OCID of the instance reservation configuration. - Id *string `mandatory:"true" json:"id"` - - // The availability domain of the capacity reservation. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The date and time the capacity reservation was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The current state of the capacity reservation. - LifecycleState ComputeCapacityReservationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The number of instances for which capacity will be held in this - // compute capacity reservation. This number is the sum of the values of the `reservedCount` fields - // for all of the instance capacity configurations under this reservation. - // The purpose of this field is to calculate the percentage usage of the reservation. - ReservedInstanceCount *int64 `mandatory:"false" json:"reservedInstanceCount"` - - // The total number of instances currently consuming space in - // this compute capacity reservation. This number is the sum of the values of the `usedCount` fields - // for all of the instance capacity configurations under this reservation. - // The purpose of this field is to calculate the percentage usage of the reservation. - UsedInstanceCount *int64 `mandatory:"false" json:"usedInstanceCount"` - - // Whether this capacity reservation is the default. - // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). - IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` -} - -func (m ComputeCapacityReservationSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster.go deleted file mode 100644 index a11f1cccec..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeCluster A compute cluster. -type ComputeCluster struct { - - // The availability domain the compute cluster is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment having this compute cluster. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of this compute cluster. - Id *string `mandatory:"true" json:"id"` - - // The current state of the compute cluster. - LifecycleState ComputeClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the compute cluster was created, - // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ComputeCluster) String() string { - return common.PointerString(m) -} - -// ComputeClusterLifecycleStateEnum Enum with underlying type: string -type ComputeClusterLifecycleStateEnum string - -// Set of constants representing the allowable values for ComputeClusterLifecycleStateEnum -const ( - ComputeClusterLifecycleStateActive ComputeClusterLifecycleStateEnum = "ACTIVE" - ComputeClusterLifecycleStateDeleted ComputeClusterLifecycleStateEnum = "DELETED" -) - -var mappingComputeClusterLifecycleState = map[string]ComputeClusterLifecycleStateEnum{ - "ACTIVE": ComputeClusterLifecycleStateActive, - "DELETED": ComputeClusterLifecycleStateDeleted, -} - -// GetComputeClusterLifecycleStateEnumValues Enumerates the set of values for ComputeClusterLifecycleStateEnum -func GetComputeClusterLifecycleStateEnumValues() []ComputeClusterLifecycleStateEnum { - values := make([]ComputeClusterLifecycleStateEnum, 0) - for _, v := range mappingComputeClusterLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_collection.go deleted file mode 100644 index 5c05115d74..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeClusterCollection Results of a compute cluster search. -type ComputeClusterCollection struct { - - // List of compute clusters. - Items []ComputeClusterSummary `mandatory:"true" json:"items"` -} - -func (m ComputeClusterCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_summary.go deleted file mode 100644 index 9410de098d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_cluster_summary.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeClusterSummary The summary data for a compute cluster. -type ComputeClusterSummary struct { - - // The availability domain the compute cluster is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment having this compute cluster. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of this compute cluster. - Id *string `mandatory:"true" json:"id"` - - // The current state of the compute cluster. - LifecycleState ComputeClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the compute cluster was created, - // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ComputeClusterSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema.go deleted file mode 100644 index 93632dfac5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeGlobalImageCapabilitySchema Compute Global Image Capability Schema is a container for a set of compute global image capability schema versions -type ComputeGlobalImageCapabilitySchema struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the compute global image capability schema was created, in the format defined by - // RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the compartment that contains the resource. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the global capabilities version resource that is considered the current version. - CurrentVersionName *string `mandatory:"false" json:"currentVersionName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ComputeGlobalImageCapabilitySchema) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_summary.go deleted file mode 100644 index 115f9a1fbb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_summary.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeGlobalImageCapabilitySchemaSummary Summary information for a compute global image capability schema -type ComputeGlobalImageCapabilitySchemaSummary struct { - - // The compute global image capability schema OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the compute global image capability schema was created, in the format defined by - // RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the compartment containing the compute global image capability schema - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the global capabilities version resource that is considered the current version. - CurrentVersionName *string `mandatory:"false" json:"currentVersionName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ComputeGlobalImageCapabilitySchemaSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version_summary.go deleted file mode 100644 index c07b39ca42..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version_summary.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeGlobalImageCapabilitySchemaVersionSummary Summary information for a compute global image capability schema -type ComputeGlobalImageCapabilitySchemaVersionSummary struct { - - // The compute global image capability schema version name - Name *string `mandatory:"true" json:"name"` - - // The OCID of the compute global image capability schema - ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaId"` - - // The date and time the compute global image capability schema version was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m ComputeGlobalImageCapabilitySchemaVersionSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_instance_details.go deleted file mode 100644 index 7d45c37bd4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_instance_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ComputeInstanceDetails Compute Instance Configuration instance details. -type ComputeInstanceDetails struct { - BlockVolumes []InstanceConfigurationBlockVolumeDetails `mandatory:"false" json:"blockVolumes"` - - LaunchDetails *InstanceConfigurationLaunchInstanceDetails `mandatory:"false" json:"launchDetails"` - - SecondaryVnics []InstanceConfigurationAttachVnicDetails `mandatory:"false" json:"secondaryVnics"` -} - -func (m ComputeInstanceDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m ComputeInstanceDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeComputeInstanceDetails ComputeInstanceDetails - s := struct { - DiscriminatorParam string `json:"instanceType"` - MarshalTypeComputeInstanceDetails - }{ - "compute", - (MarshalTypeComputeInstanceDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_details.go deleted file mode 100644 index 1db478c77f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ConnectLocalPeeringConnectionsDetails Contains details indicating the local peering connection with which you wish to establish a peering relationship. -type ConnectLocalPeeringConnectionsDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other local peering connection. - PeerId *string `mandatory:"true" json:"peerId"` -} - -func (m ConnectLocalPeeringConnectionsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_details.go deleted file mode 100644 index c379fd5d0a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ConnectLocalPeeringGatewaysDetails Information about the other local peering gateway (LPG). -type ConnectLocalPeeringGatewaysDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LPG you want to peer with. - PeerId *string `mandatory:"true" json:"peerId"` -} - -func (m ConnectLocalPeeringGatewaysDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_details.go deleted file mode 100644 index 16656fdf1b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ConnectRemotePeeringConnectionsDetails Information about the other remote peering connection (RPC). -type ConnectRemotePeeringConnectionsDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the RPC you want to peer with. - PeerId *string `mandatory:"true" json:"peerId"` - - // The name of the region that contains the RPC you want to peer with. - // Example: `us-ashburn-1` - PeerRegionName *string `mandatory:"true" json:"peerRegionName"` -} - -func (m ConnectRemotePeeringConnectionsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/console_history.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/console_history.go deleted file mode 100644 index ea47444d26..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/console_history.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ConsoleHistory An instance's serial console data. It includes configuration messages that occur when the -// instance boots, such as kernel and BIOS messages, and is useful for checking the status of -// the instance or diagnosing problems. The console data is minimally formatted ASCII text. -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type ConsoleHistory struct { - - // The availability domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the console history metadata object. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance this console history was fetched from. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The current state of the console history. - LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the history was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m ConsoleHistory) String() string { - return common.PointerString(m) -} - -// ConsoleHistoryLifecycleStateEnum Enum with underlying type: string -type ConsoleHistoryLifecycleStateEnum string - -// Set of constants representing the allowable values for ConsoleHistoryLifecycleStateEnum -const ( - ConsoleHistoryLifecycleStateRequested ConsoleHistoryLifecycleStateEnum = "REQUESTED" - ConsoleHistoryLifecycleStateGettingHistory ConsoleHistoryLifecycleStateEnum = "GETTING-HISTORY" - ConsoleHistoryLifecycleStateSucceeded ConsoleHistoryLifecycleStateEnum = "SUCCEEDED" - ConsoleHistoryLifecycleStateFailed ConsoleHistoryLifecycleStateEnum = "FAILED" -) - -var mappingConsoleHistoryLifecycleState = map[string]ConsoleHistoryLifecycleStateEnum{ - "REQUESTED": ConsoleHistoryLifecycleStateRequested, - "GETTING-HISTORY": ConsoleHistoryLifecycleStateGettingHistory, - "SUCCEEDED": ConsoleHistoryLifecycleStateSucceeded, - "FAILED": ConsoleHistoryLifecycleStateFailed, -} - -// GetConsoleHistoryLifecycleStateEnumValues Enumerates the set of values for ConsoleHistoryLifecycleStateEnum -func GetConsoleHistoryLifecycleStateEnumValues() []ConsoleHistoryLifecycleStateEnum { - values := make([]ConsoleHistoryLifecycleStateEnum, 0) - for _, v := range mappingConsoleHistoryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_details.go deleted file mode 100644 index 71467fff64..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CopyBootVolumeBackupDetails The representation of CopyBootVolumeBackupDetails -type CopyBootVolumeBackupDetails struct { - - // The name of the destination region. - // Example: `us-ashburn-1` - DestinationRegion *string `mandatory:"true" json:"destinationRegion"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the Key Management key in the destination region which will be the master encryption key - // for the copied boot volume backup. If you do not specify this attribute the boot volume backup - // will be encrypted with the Oracle-provided encryption key when it is copied to the destination region. - // - // For more information about the Key Management service and encryption keys, see - // Overview of Key Management (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and - // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m CopyBootVolumeBackupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_details.go deleted file mode 100644 index 55588b03c1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CopyVolumeBackupDetails The representation of CopyVolumeBackupDetails -type CopyVolumeBackupDetails struct { - - // The name of the destination region. - // Example: `us-ashburn-1` - DestinationRegion *string `mandatory:"true" json:"destinationRegion"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the Key Management key in the destination region which will be the master encryption key - // for the copied volume backup. - // If you do not specify this attribute the volume backup will be encrypted with the Oracle-provided encryption - // key when it is copied to the destination region. - // - // For more information about the Key Management service and encryption keys, see - // Overview of Key Management (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and - // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m CopyVolumeBackupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_details.go deleted file mode 100644 index 0d06bedc15..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CopyVolumeGroupBackupDetails The representation of CopyVolumeGroupBackupDetails -type CopyVolumeGroupBackupDetails struct { - - // The name of the destination region. - // Example: `us-ashburn-1` - DestinationRegion *string `mandatory:"true" json:"destinationRegion"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID of the Key Management key in the destination region which will be the master encryption key - // for the copied volume group backup. - // If you do not specify this attribute the volume group backup will be encrypted with the Oracle-provided encryption - // key when it is copied to the destination region. - // - // For more information about the Key Management service and encryption keys, see - // Overview of Key Management (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm) and - // Using Keys (https://docs.cloud.oracle.com/Content/KeyManagement/Tasks/usingkeys.htm). - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m CopyVolumeGroupBackupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_answer.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_answer.go deleted file mode 100644 index 45589a4241..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_answer.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CpeDeviceConfigAnswer An individual answer to a CPE device question. -// The answers correlate to the questions that are specific to the CPE device type (see the -// `parameters` attribute of CpeDeviceShapeDetail). -type CpeDeviceConfigAnswer struct { - - // A string that identifies the question to be answered. See the `key` attribute in - // CpeDeviceConfigQuestion. - Key *string `mandatory:"false" json:"key"` - - // The answer to the question. - Value *string `mandatory:"false" json:"value"` -} - -func (m CpeDeviceConfigAnswer) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_question.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_question.go deleted file mode 100644 index 134c768fd4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_config_question.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CpeDeviceConfigQuestion An individual question that the customer can answer about the CPE device. -// The customer provides answers to these questions in -// UpdateTunnelCpeDeviceConfig. -type CpeDeviceConfigQuestion struct { - - // A string that identifies the question. - Key *string `mandatory:"false" json:"key"` - - // A descriptive label for the question (for example, to display in a form in a graphical interface). - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A description or explanation of the question, to help the customer answer accurately. - Explanation *string `mandatory:"false" json:"explanation"` -} - -func (m CpeDeviceConfigQuestion) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_info.go deleted file mode 100644 index ce23e3f430..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_info.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CpeDeviceInfo Basic information about a particular CPE device type. -type CpeDeviceInfo struct { - - // The vendor that makes the CPE device. - Vendor *string `mandatory:"false" json:"vendor"` - - // The platform or software version of the CPE device. - PlatformSoftwareVersion *string `mandatory:"false" json:"platformSoftwareVersion"` -} - -func (m CpeDeviceInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_detail.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_detail.go deleted file mode 100644 index b359128211..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_detail.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CpeDeviceShapeDetail The detailed information about a particular CPE device type. Compare with -// CpeDeviceShapeSummary. -type CpeDeviceShapeDetail struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. - // This value uniquely identifies the type of CPE device. - CpeDeviceShapeId *string `mandatory:"false" json:"cpeDeviceShapeId"` - - CpeDeviceInfo *CpeDeviceInfo `mandatory:"false" json:"cpeDeviceInfo"` - - // For certain CPE devices types, the customer can provide answers to - // questions that are specific to the device type. This attribute contains - // a list of those questions. The Networking service merges the answers with - // other information and renders a set of CPE configuration content. To - // provide the answers, use - // UpdateTunnelCpeDeviceConfig. - Parameters []CpeDeviceConfigQuestion `mandatory:"false" json:"parameters"` - - // A template of CPE device configuration information that will be merged with the customer's - // answers to the questions to render the final CPE device configuration content. Also see: - // * GetCpeDeviceConfigContent - // * GetIpsecCpeDeviceConfigContent - // * GetTunnelCpeDeviceConfigContent - Template *string `mandatory:"false" json:"template"` -} - -func (m CpeDeviceShapeDetail) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_summary.go deleted file mode 100644 index 568bbac192..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe_device_shape_summary.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CpeDeviceShapeSummary A summary of information about a particular CPE device type. Compare with -// CpeDeviceShapeDetail. -type CpeDeviceShapeSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. - // This value uniquely identifies the type of CPE device. - Id *string `mandatory:"false" json:"id"` - - CpeDeviceInfo *CpeDeviceInfo `mandatory:"false" json:"cpeDeviceInfo"` -} - -func (m CpeDeviceShapeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_details.go deleted file mode 100644 index e2ed876ec6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateAppCatalogSubscriptionDetails details for creating a subscription for a listing resource version. -type CreateAppCatalogSubscriptionDetails struct { - - // The compartmentID for the subscription. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the listing. - ListingId *string `mandatory:"true" json:"listingId"` - - // Listing resource version. - ListingResourceVersion *string `mandatory:"true" json:"listingResourceVersion"` - - // Oracle TOU link - OracleTermsOfUseLink *string `mandatory:"true" json:"oracleTermsOfUseLink"` - - // Date and time the agreements were retrieved, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. - // Example: `2018-03-20T12:32:53.532Z` - TimeRetrieved *common.SDKTime `mandatory:"true" json:"timeRetrieved"` - - // A generated signature for this listing resource version retrieved the agreements API. - Signature *string `mandatory:"true" json:"signature"` - - // EULA link - EulaLink *string `mandatory:"false" json:"eulaLink"` -} - -func (m CreateAppCatalogSubscriptionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_details.go deleted file mode 100644 index 7c5200d769..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_details.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateBootVolumeBackupDetails The representation of CreateBootVolumeBackupDetails -type CreateBootVolumeBackupDetails struct { - - // The OCID of the boot volume that needs to be backed up. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The type of backup to create. If omitted, defaults to incremental. - Type CreateBootVolumeBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` -} - -func (m CreateBootVolumeBackupDetails) String() string { - return common.PointerString(m) -} - -// CreateBootVolumeBackupDetailsTypeEnum Enum with underlying type: string -type CreateBootVolumeBackupDetailsTypeEnum string - -// Set of constants representing the allowable values for CreateBootVolumeBackupDetailsTypeEnum -const ( - CreateBootVolumeBackupDetailsTypeFull CreateBootVolumeBackupDetailsTypeEnum = "FULL" - CreateBootVolumeBackupDetailsTypeIncremental CreateBootVolumeBackupDetailsTypeEnum = "INCREMENTAL" -) - -var mappingCreateBootVolumeBackupDetailsType = map[string]CreateBootVolumeBackupDetailsTypeEnum{ - "FULL": CreateBootVolumeBackupDetailsTypeFull, - "INCREMENTAL": CreateBootVolumeBackupDetailsTypeIncremental, -} - -// GetCreateBootVolumeBackupDetailsTypeEnumValues Enumerates the set of values for CreateBootVolumeBackupDetailsTypeEnum -func GetCreateBootVolumeBackupDetailsTypeEnumValues() []CreateBootVolumeBackupDetailsTypeEnum { - values := make([]CreateBootVolumeBackupDetailsTypeEnum, 0) - for _, v := range mappingCreateBootVolumeBackupDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_details.go deleted file mode 100644 index ddbb3e9045..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_details.go +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateBootVolumeDetails The representation of CreateBootVolumeDetails -type CreateBootVolumeDetails struct { - - // The OCID of the compartment that contains the boot volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - SourceDetails BootVolumeSourceDetails `mandatory:"true" json:"sourceDetails"` - - // The availability domain of the volume. Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // If provided, specifies the ID of the boot volume backup policy to assign to the newly - // created boot volume. If omitted, no policy will be assigned. - BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID of the Key Management key to assign as the master encryption key - // for the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The size of the volume in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // The number of volume performance units (VPUs) that will be applied to this volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // Specifies whether the auto-tune performance is enabled for this boot volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The list of boot volume replicas to be enabled for this boot volume - // in the specified destination availability domains. - BootVolumeReplicas []BootVolumeReplicaDetails `mandatory:"false" json:"bootVolumeReplicas"` -} - -func (m CreateBootVolumeDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - AvailabilityDomain *string `json:"availabilityDomain"` - BackupPolicyId *string `json:"backupPolicyId"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - KmsKeyId *string `json:"kmsKeyId"` - SizeInGBs *int64 `json:"sizeInGBs"` - VpusPerGB *int64 `json:"vpusPerGB"` - IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` - BootVolumeReplicas []BootVolumeReplicaDetails `json:"bootVolumeReplicas"` - CompartmentId *string `json:"compartmentId"` - SourceDetails bootvolumesourcedetails `json:"sourceDetails"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.AvailabilityDomain = model.AvailabilityDomain - - m.BackupPolicyId = model.BackupPolicyId - - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.KmsKeyId = model.KmsKeyId - - m.SizeInGBs = model.SizeInGBs - - m.VpusPerGB = model.VpusPerGB - - m.IsAutoTuneEnabled = model.IsAutoTuneEnabled - - m.BootVolumeReplicas = make([]BootVolumeReplicaDetails, len(model.BootVolumeReplicas)) - for i, n := range model.BootVolumeReplicas { - m.BootVolumeReplicas[i] = n - } - - m.CompartmentId = model.CompartmentId - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(BootVolumeSourceDetails) - } else { - m.SourceDetails = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_details.go deleted file mode 100644 index aac5519414..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateByoipRangeDetails The information used to create a `ByoipRange` resource. -type CreateByoipRangeDetails struct { - - // The BYOIP CIDR block. You can assign some or all of it to a public IP pool after it is validated. - // Example: `10.0.1.0/24` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOIP CIDR block. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateByoipRangeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_details.go deleted file mode 100644 index ef5a1d5f35..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateCaptureFilterDetails A capture filter contains a set of rules governing what traffic a VTAP mirrors. -type CreateCaptureFilterDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the capture filter. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN containing the capture filter. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The set of rules governing what traffic a VTAP mirrors. - CaptureFilterRules []CaptureFilterRuleDetails `mandatory:"false" json:"captureFilterRules"` -} - -func (m CreateCaptureFilterDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_details.go deleted file mode 100644 index 2113e0da23..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_details.go +++ /dev/null @@ -1,197 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClientVpnDetails A request to create clientVpn. -type CreateClientVpnDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that user sent request. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attachedSubnet (VNIC) in customer tenancy. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // A list of accessible subnets from this clientVpnEnpoint. - AccessibleSubnetCidrs []string `mandatory:"true" json:"accessibleSubnetCidrs"` - - DnsConfig *DnsConfigDetails `mandatory:"true" json:"dnsConfig"` - - // Whether re-route Internet traffic or not. - IsRerouteEnabled *bool `mandatory:"true" json:"isRerouteEnabled"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A limit that allows the maximum number of VPN concurrent connections. - MaxConnections *int `mandatory:"false" json:"maxConnections"` - - // A subnet for openVPN clients to access servers. Default is 172.27.224.0/20 - ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` - - // Allowed values: - // * `NAT`: NAT mode supports the one-way access. In NAT mode, client can access the Internet from server endpoint - // but server endpoint cannot access the Internet from client. - // * `ROUTING`: ROUTING mode supports the two-way access. In ROUTING mode, client and server endpoint can access the - // Internet to each other. - AddressingMode CreateClientVpnDetailsAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` - - // Allowed values: - // * `LOCAL`: Local authentication mode that applies users and password to get authentication through the server. - // * `RADIUS`: RADIUS authentication mode applies users and password to get authentication through the RADIUS server. - // * `LDAP`: LDAP authentication mode that applies users and passwords to get authentication through the LDAP server. - AuthenticationMode CreateClientVpnDetailsAuthenticationModeEnum `mandatory:"false" json:"authenticationMode,omitempty"` - - RadiusConfig *RadiusConfigDetails `mandatory:"false" json:"radiusConfig"` - - LdapConfig *LdapConfigDetails `mandatory:"false" json:"ldapConfig"` - - SslCert SslCertDetails `mandatory:"false" json:"sslCert"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateClientVpnDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateClientVpnDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - MaxConnections *int `json:"maxConnections"` - ClientSubnetCidr *string `json:"clientSubnetCidr"` - AddressingMode CreateClientVpnDetailsAddressingModeEnum `json:"addressingMode"` - AuthenticationMode CreateClientVpnDetailsAuthenticationModeEnum `json:"authenticationMode"` - RadiusConfig *RadiusConfigDetails `json:"radiusConfig"` - LdapConfig *LdapConfigDetails `json:"ldapConfig"` - SslCert sslcertdetails `json:"sslCert"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - CompartmentId *string `json:"compartmentId"` - SubnetId *string `json:"subnetId"` - AccessibleSubnetCidrs []string `json:"accessibleSubnetCidrs"` - DnsConfig *DnsConfigDetails `json:"dnsConfig"` - IsRerouteEnabled *bool `json:"isRerouteEnabled"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.MaxConnections = model.MaxConnections - - m.ClientSubnetCidr = model.ClientSubnetCidr - - m.AddressingMode = model.AddressingMode - - m.AuthenticationMode = model.AuthenticationMode - - m.RadiusConfig = model.RadiusConfig - - m.LdapConfig = model.LdapConfig - - nn, e = model.SslCert.UnmarshalPolymorphicJSON(model.SslCert.JsonData) - if e != nil { - return - } - if nn != nil { - m.SslCert = nn.(SslCertDetails) - } else { - m.SslCert = nil - } - - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - m.CompartmentId = model.CompartmentId - - m.SubnetId = model.SubnetId - - m.AccessibleSubnetCidrs = make([]string, len(model.AccessibleSubnetCidrs)) - for i, n := range model.AccessibleSubnetCidrs { - m.AccessibleSubnetCidrs[i] = n - } - - m.DnsConfig = model.DnsConfig - - m.IsRerouteEnabled = model.IsRerouteEnabled - - return -} - -// CreateClientVpnDetailsAddressingModeEnum Enum with underlying type: string -type CreateClientVpnDetailsAddressingModeEnum string - -// Set of constants representing the allowable values for CreateClientVpnDetailsAddressingModeEnum -const ( - CreateClientVpnDetailsAddressingModeNat CreateClientVpnDetailsAddressingModeEnum = "NAT" - CreateClientVpnDetailsAddressingModeRouting CreateClientVpnDetailsAddressingModeEnum = "ROUTING" -) - -var mappingCreateClientVpnDetailsAddressingMode = map[string]CreateClientVpnDetailsAddressingModeEnum{ - "NAT": CreateClientVpnDetailsAddressingModeNat, - "ROUTING": CreateClientVpnDetailsAddressingModeRouting, -} - -// GetCreateClientVpnDetailsAddressingModeEnumValues Enumerates the set of values for CreateClientVpnDetailsAddressingModeEnum -func GetCreateClientVpnDetailsAddressingModeEnumValues() []CreateClientVpnDetailsAddressingModeEnum { - values := make([]CreateClientVpnDetailsAddressingModeEnum, 0) - for _, v := range mappingCreateClientVpnDetailsAddressingMode { - values = append(values, v) - } - return values -} - -// CreateClientVpnDetailsAuthenticationModeEnum Enum with underlying type: string -type CreateClientVpnDetailsAuthenticationModeEnum string - -// Set of constants representing the allowable values for CreateClientVpnDetailsAuthenticationModeEnum -const ( - CreateClientVpnDetailsAuthenticationModeLocal CreateClientVpnDetailsAuthenticationModeEnum = "LOCAL" - CreateClientVpnDetailsAuthenticationModeRadius CreateClientVpnDetailsAuthenticationModeEnum = "RADIUS" - CreateClientVpnDetailsAuthenticationModeLdap CreateClientVpnDetailsAuthenticationModeEnum = "LDAP" -) - -var mappingCreateClientVpnDetailsAuthenticationMode = map[string]CreateClientVpnDetailsAuthenticationModeEnum{ - "LOCAL": CreateClientVpnDetailsAuthenticationModeLocal, - "RADIUS": CreateClientVpnDetailsAuthenticationModeRadius, - "LDAP": CreateClientVpnDetailsAuthenticationModeLdap, -} - -// GetCreateClientVpnDetailsAuthenticationModeEnumValues Enumerates the set of values for CreateClientVpnDetailsAuthenticationModeEnum -func GetCreateClientVpnDetailsAuthenticationModeEnumValues() []CreateClientVpnDetailsAuthenticationModeEnum { - values := make([]CreateClientVpnDetailsAuthenticationModeEnum, 0) - for _, v := range mappingCreateClientVpnDetailsAuthenticationMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_details.go deleted file mode 100644 index 4d06dc29f1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_details.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClientVpnUserDetails The request to create clientVpnUser. -type CreateClientVpnUserDetails struct { - - // The username of the user want to create. - UserName *string `mandatory:"true" json:"userName"` - - // The password of the user want to create. - Password *string `mandatory:"false" json:"password"` - - // Whether to log in the user by certificate-authentication only or not. - IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` -} - -func (m CreateClientVpnUserDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_details.go deleted file mode 100644 index 08612869f9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_details.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClusterNetworkDetails The data to create a cluster network. -type CreateClusterNetworkDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // containing the cluster network. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The data to create the instance pools in the cluster network. - // Each cluster network can have one instance pool. - InstancePools []CreateClusterNetworkInstancePoolDetails `mandatory:"true" json:"instancePools"` - - PlacementConfiguration *ClusterNetworkPlacementConfigurationDetails `mandatory:"true" json:"placementConfiguration"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateClusterNetworkDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_instance_pool_details.go deleted file mode 100644 index cc2814d534..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_instance_pool_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateClusterNetworkInstancePoolDetails The data to create an instance pool in a cluster network. -type CreateClusterNetworkInstancePoolDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration - // associated with the instance pool. - InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` - - // The number of instances that should be in the instance pool. - Size *int `mandatory:"true" json:"size"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateClusterNetworkInstancePoolDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_details.go deleted file mode 100644 index 62dafd4ec0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateComputeClusterDetails The data to create a compute cluster. -type CreateComputeClusterDetails struct { - - // The availability domain the compute cluster is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment having this compute cluster. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateComputeClusterDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_request_response.go deleted file mode 100644 index 1e537b53f2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_cluster_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateComputeClusterRequest wrapper for the CreateComputeCluster operation -type CreateComputeClusterRequest struct { - - // Compute cluster creation details - CreateComputeClusterDetails `contributesTo:"body"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateComputeClusterRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateComputeClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateComputeClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateComputeClusterRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateComputeClusterResponse wrapper for the CreateComputeCluster operation -type CreateComputeClusterResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ComputeCluster instance - ComputeCluster `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateComputeClusterResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateComputeClusterResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_details.go deleted file mode 100644 index 01a71f84bd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateCrossConnectGroupDetails The representation of CreateCrossConnectGroupDetails -type CreateCrossConnectGroupDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the cross-connect group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A reference name or identifier for the physical fiber connection that this cross-connect - // group uses. - CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - MacsecProperties *CreateMacsecProperties `mandatory:"false" json:"macsecProperties"` -} - -func (m CreateCrossConnectGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_details.go deleted file mode 100644 index 04be7bd691..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_details.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDavDetails Details to create a Direct Attached Vnic. -type CreateDavDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Direct Attached Vnic's compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Index of NIC for Direct Attached Vnic. - NicIndex *int `mandatory:"true" json:"nicIndex"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Substrate IP address of the remote endpoint. This is a required property if - // vcnxAttachmentIds property is not defined. - RemoteEndpointSubstrateIp *string `mandatory:"false" json:"remoteEndpointSubstrateIp"` - - // The label type for Direct Attached Vnic. This is used to determine the - // label forwarding to be used by the Direct Attached Vnic. - LabelType CreateDavDetailsLabelTypeEnum `mandatory:"false" json:"labelType,omitempty"` - - // List of VCNx Attachments to a DRG. This is a required property - // if remoteEndpointSubstrateIp property is not defined. - VcnxAttachmentIds []string `mandatory:"false" json:"vcnxAttachmentIds"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateDavDetails) String() string { - return common.PointerString(m) -} - -// CreateDavDetailsLabelTypeEnum Enum with underlying type: string -type CreateDavDetailsLabelTypeEnum string - -// Set of constants representing the allowable values for CreateDavDetailsLabelTypeEnum -const ( - CreateDavDetailsLabelTypeMpls CreateDavDetailsLabelTypeEnum = "MPLS" -) - -var mappingCreateDavDetailsLabelType = map[string]CreateDavDetailsLabelTypeEnum{ - "MPLS": CreateDavDetailsLabelTypeMpls, -} - -// GetCreateDavDetailsLabelTypeEnumValues Enumerates the set of values for CreateDavDetailsLabelTypeEnum -func GetCreateDavDetailsLabelTypeEnumValues() []CreateDavDetailsLabelTypeEnum { - values := make([]CreateDavDetailsLabelTypeEnum, 0) - for _, v := range mappingCreateDavDetailsLabelType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_details.go deleted file mode 100644 index db793cc93d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_details.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDhcpDetails The representation of CreateDhcpDetails -type CreateDhcpDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the set of DHCP options. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A set of DHCP options. - Options []DhcpOption `mandatory:"true" json:"options"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the set of DHCP options belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The search domain name type of DHCP options - DomainNameType CreateDhcpDetailsDomainNameTypeEnum `mandatory:"false" json:"domainNameType,omitempty"` -} - -func (m CreateDhcpDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - DomainNameType CreateDhcpDetailsDomainNameTypeEnum `json:"domainNameType"` - CompartmentId *string `json:"compartmentId"` - Options []dhcpoption `json:"options"` - VcnId *string `json:"vcnId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.DomainNameType = model.DomainNameType - - m.CompartmentId = model.CompartmentId - - m.Options = make([]DhcpOption, len(model.Options)) - for i, n := range model.Options { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Options[i] = nn.(DhcpOption) - } else { - m.Options[i] = nil - } - } - - m.VcnId = model.VcnId - - return -} - -// CreateDhcpDetailsDomainNameTypeEnum Enum with underlying type: string -type CreateDhcpDetailsDomainNameTypeEnum string - -// Set of constants representing the allowable values for CreateDhcpDetailsDomainNameTypeEnum -const ( - CreateDhcpDetailsDomainNameTypeSubnetDomain CreateDhcpDetailsDomainNameTypeEnum = "SUBNET_DOMAIN" - CreateDhcpDetailsDomainNameTypeVcnDomain CreateDhcpDetailsDomainNameTypeEnum = "VCN_DOMAIN" - CreateDhcpDetailsDomainNameTypeCustomDomain CreateDhcpDetailsDomainNameTypeEnum = "CUSTOM_DOMAIN" -) - -var mappingCreateDhcpDetailsDomainNameType = map[string]CreateDhcpDetailsDomainNameTypeEnum{ - "SUBNET_DOMAIN": CreateDhcpDetailsDomainNameTypeSubnetDomain, - "VCN_DOMAIN": CreateDhcpDetailsDomainNameTypeVcnDomain, - "CUSTOM_DOMAIN": CreateDhcpDetailsDomainNameTypeCustomDomain, -} - -// GetCreateDhcpDetailsDomainNameTypeEnumValues Enumerates the set of values for CreateDhcpDetailsDomainNameTypeEnum -func GetCreateDhcpDetailsDomainNameTypeEnumValues() []CreateDhcpDetailsDomainNameTypeEnum { - values := make([]CreateDhcpDetailsDomainNameTypeEnum, 0) - for _, v := range mappingCreateDhcpDetailsDomainNameType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_details.go deleted file mode 100644 index 5d7f3ffde5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_details.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDrgAttachmentDetails The representation of CreateDrgAttachmentDetails -type CreateDrgAttachmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG route table that is assigned to this attachment. - // The DRG route table manages traffic inside the DRG. - DrgRouteTableId *string `mandatory:"false" json:"drgRouteTableId"` - - NetworkDetails DrgAttachmentNetworkCreateDetails `mandatory:"false" json:"networkDetails"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table used by the DRG attachment. - // If you don't specify a route table here, the DRG attachment is created without an associated route - // table. The Networking service does NOT automatically associate the attached VCN's default route table - // with the DRG attachment. - // For information about why you would associate a route table with a DRG attachment, see: - // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) - // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) - // This field is deprecated. Instead, use the networkDetails field to specify the VCN route table for this attachment. - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN. - // This field is deprecated. Instead, use the `networkDetails` field to specify the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the attached resource. - VcnId *string `mandatory:"false" json:"vcnId"` -} - -func (m CreateDrgAttachmentDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateDrgAttachmentDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - DrgRouteTableId *string `json:"drgRouteTableId"` - NetworkDetails drgattachmentnetworkcreatedetails `json:"networkDetails"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - RouteTableId *string `json:"routeTableId"` - VcnId *string `json:"vcnId"` - DrgId *string `json:"drgId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.DrgRouteTableId = model.DrgRouteTableId - - nn, e = model.NetworkDetails.UnmarshalPolymorphicJSON(model.NetworkDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.NetworkDetails = nn.(DrgAttachmentNetworkCreateDetails) - } else { - m.NetworkDetails = nil - } - - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - m.RouteTableId = model.RouteTableId - - m.VcnId = model.VcnId - - m.DrgId = model.DrgId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_details.go deleted file mode 100644 index ad1f584abf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDrgDetails The representation of CreateDrgDetails -type CreateDrgDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateDrgDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_details.go deleted file mode 100644 index b6524f745c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_details.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDrgRouteDistributionDetails Details used to create a route distribution. -type CreateDrgRouteDistributionDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the DRG route table belongs to. - DrgId *string `mandatory:"true" json:"drgId"` - - // Whether this distribution defines how routes get imported into route tables or exported through DRG Attachments - DistributionType CreateDrgRouteDistributionDetailsDistributionTypeEnum `mandatory:"true" json:"distributionType"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateDrgRouteDistributionDetails) String() string { - return common.PointerString(m) -} - -// CreateDrgRouteDistributionDetailsDistributionTypeEnum Enum with underlying type: string -type CreateDrgRouteDistributionDetailsDistributionTypeEnum string - -// Set of constants representing the allowable values for CreateDrgRouteDistributionDetailsDistributionTypeEnum -const ( - CreateDrgRouteDistributionDetailsDistributionTypeImport CreateDrgRouteDistributionDetailsDistributionTypeEnum = "IMPORT" -) - -var mappingCreateDrgRouteDistributionDetailsDistributionType = map[string]CreateDrgRouteDistributionDetailsDistributionTypeEnum{ - "IMPORT": CreateDrgRouteDistributionDetailsDistributionTypeImport, -} - -// GetCreateDrgRouteDistributionDetailsDistributionTypeEnumValues Enumerates the set of values for CreateDrgRouteDistributionDetailsDistributionTypeEnum -func GetCreateDrgRouteDistributionDetailsDistributionTypeEnumValues() []CreateDrgRouteDistributionDetailsDistributionTypeEnum { - values := make([]CreateDrgRouteDistributionDetailsDistributionTypeEnum, 0) - for _, v := range mappingCreateDrgRouteDistributionDetailsDistributionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_details.go deleted file mode 100644 index d201201381..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDrgRouteTableDetails Details used in a request to create a DRG route table. -type CreateDrgRouteTableDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the DRG route table belongs to. - DrgId *string `mandatory:"true" json:"drgId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the import route distribution used to specify how incoming route advertisements through - // referenced attachments are inserted into the DRG route table. - ImportDrgRouteDistributionId *string `mandatory:"false" json:"importDrgRouteDistributionId"` - - // If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to - // your on-premises networks, enable ECMP on the DRG route table. - IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` -} - -func (m CreateDrgRouteTableDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_details.go deleted file mode 100644 index d07801755b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_details.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateFlowLogConfigAttachmentDetails The representation of CreateFlowLogConfigAttachmentDetails -type CreateFlowLogConfigAttachmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource to attach the - // flow log configuration to. Attaching the configuration enables flow logs for the resource. - TargetEntityId *string `mandatory:"true" json:"targetEntityId"` - - // The type of resource to attach the flow log configuration to. - TargetEntityType CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum `mandatory:"true" json:"targetEntityType"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the flow log configuration to attach. - FlowLogConfigId *string `mandatory:"true" json:"flowLogConfigId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateFlowLogConfigAttachmentDetails) String() string { - return common.PointerString(m) -} - -// CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum Enum with underlying type: string -type CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum string - -// Set of constants representing the allowable values for CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum -const ( - CreateFlowLogConfigAttachmentDetailsTargetEntityTypeSubnet CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum = "SUBNET" -) - -var mappingCreateFlowLogConfigAttachmentDetailsTargetEntityType = map[string]CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum{ - "SUBNET": CreateFlowLogConfigAttachmentDetailsTargetEntityTypeSubnet, -} - -// GetCreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnumValues Enumerates the set of values for CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum -func GetCreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnumValues() []CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum { - values := make([]CreateFlowLogConfigAttachmentDetailsTargetEntityTypeEnum, 0) - for _, v := range mappingCreateFlowLogConfigAttachmentDetailsTargetEntityType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_details.go deleted file mode 100644 index 79e01498e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_details.go +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateFlowLogConfigDetails The representation of CreateFlowLogConfigDetails -type CreateFlowLogConfigDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the - // flow log configuration. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Type or types of flow logs to store. `ALL` includes records for both accepted traffic and - // rejected traffic. - FlowLogType CreateFlowLogConfigDetailsFlowLogTypeEnum `mandatory:"true" json:"flowLogType"` - - Destination FlowLogDestination `mandatory:"true" json:"destination"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateFlowLogConfigDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateFlowLogConfigDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - CompartmentId *string `json:"compartmentId"` - FlowLogType CreateFlowLogConfigDetailsFlowLogTypeEnum `json:"flowLogType"` - Destination flowlogdestination `json:"destination"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.CompartmentId = model.CompartmentId - - m.FlowLogType = model.FlowLogType - - nn, e = model.Destination.UnmarshalPolymorphicJSON(model.Destination.JsonData) - if e != nil { - return - } - if nn != nil { - m.Destination = nn.(FlowLogDestination) - } else { - m.Destination = nil - } - - return -} - -// CreateFlowLogConfigDetailsFlowLogTypeEnum Enum with underlying type: string -type CreateFlowLogConfigDetailsFlowLogTypeEnum string - -// Set of constants representing the allowable values for CreateFlowLogConfigDetailsFlowLogTypeEnum -const ( - CreateFlowLogConfigDetailsFlowLogTypeAll CreateFlowLogConfigDetailsFlowLogTypeEnum = "ALL" -) - -var mappingCreateFlowLogConfigDetailsFlowLogType = map[string]CreateFlowLogConfigDetailsFlowLogTypeEnum{ - "ALL": CreateFlowLogConfigDetailsFlowLogTypeAll, -} - -// GetCreateFlowLogConfigDetailsFlowLogTypeEnumValues Enumerates the set of values for CreateFlowLogConfigDetailsFlowLogTypeEnum -func GetCreateFlowLogConfigDetailsFlowLogTypeEnumValues() []CreateFlowLogConfigDetailsFlowLogTypeEnum { - values := make([]CreateFlowLogConfigDetailsFlowLogTypeEnum, 0) - for _, v := range mappingCreateFlowLogConfigDetailsFlowLogType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_details.go deleted file mode 100644 index 56f3365984..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_details.go +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateImageDetails Either instanceId or imageSourceDetails must be provided in addition to other required parameters. -type CreateImageDetails struct { - - // The OCID of the compartment you want the image to be created in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name for the image. It does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // You cannot use a platform image name as a custom image name. - // Example: `My Oracle Linux image` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - ImageSourceDetails ImageSourceDetails `mandatory:"false" json:"imageSourceDetails"` - - // The OCID of the instance you want to use as the basis for the image. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: - // * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for platform images. - // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. - // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. - // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. - LaunchMode CreateImageDetailsLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` -} - -func (m CreateImageDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateImageDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - ImageSourceDetails imagesourcedetails `json:"imageSourceDetails"` - InstanceId *string `json:"instanceId"` - LaunchMode CreateImageDetailsLaunchModeEnum `json:"launchMode"` - CompartmentId *string `json:"compartmentId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - nn, e = model.ImageSourceDetails.UnmarshalPolymorphicJSON(model.ImageSourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.ImageSourceDetails = nn.(ImageSourceDetails) - } else { - m.ImageSourceDetails = nil - } - - m.InstanceId = model.InstanceId - - m.LaunchMode = model.LaunchMode - - m.CompartmentId = model.CompartmentId - - return -} - -// CreateImageDetailsLaunchModeEnum Enum with underlying type: string -type CreateImageDetailsLaunchModeEnum string - -// Set of constants representing the allowable values for CreateImageDetailsLaunchModeEnum -const ( - CreateImageDetailsLaunchModeNative CreateImageDetailsLaunchModeEnum = "NATIVE" - CreateImageDetailsLaunchModeEmulated CreateImageDetailsLaunchModeEnum = "EMULATED" - CreateImageDetailsLaunchModeParavirtualized CreateImageDetailsLaunchModeEnum = "PARAVIRTUALIZED" - CreateImageDetailsLaunchModeCustom CreateImageDetailsLaunchModeEnum = "CUSTOM" -) - -var mappingCreateImageDetailsLaunchMode = map[string]CreateImageDetailsLaunchModeEnum{ - "NATIVE": CreateImageDetailsLaunchModeNative, - "EMULATED": CreateImageDetailsLaunchModeEmulated, - "PARAVIRTUALIZED": CreateImageDetailsLaunchModeParavirtualized, - "CUSTOM": CreateImageDetailsLaunchModeCustom, -} - -// GetCreateImageDetailsLaunchModeEnumValues Enumerates the set of values for CreateImageDetailsLaunchModeEnum -func GetCreateImageDetailsLaunchModeEnumValues() []CreateImageDetailsLaunchModeEnum { - values := make([]CreateImageDetailsLaunchModeEnum, 0) - for _, v := range mappingCreateImageDetailsLaunchMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_base.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_base.go deleted file mode 100644 index e7c9c01c6c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_base.go +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInstanceConfigurationBase Creation details for an instance configuration. -type CreateInstanceConfigurationBase interface { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment - // containing the instance configuration. - GetCompartmentId() *string - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - GetDefinedTags() map[string]map[string]interface{} - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - GetDisplayName() *string - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - GetFreeformTags() map[string]string -} - -type createinstanceconfigurationbase struct { - JsonData []byte - CompartmentId *string `mandatory:"true" json:"compartmentId"` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - DisplayName *string `mandatory:"false" json:"displayName"` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - Source string `json:"source"` -} - -// UnmarshalJSON unmarshals json -func (m *createinstanceconfigurationbase) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalercreateinstanceconfigurationbase createinstanceconfigurationbase - s := struct { - Model Unmarshalercreateinstanceconfigurationbase - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.CompartmentId = s.Model.CompartmentId - m.DefinedTags = s.Model.DefinedTags - m.DisplayName = s.Model.DisplayName - m.FreeformTags = s.Model.FreeformTags - m.Source = s.Model.Source - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *createinstanceconfigurationbase) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Source { - case "NONE": - mm := CreateInstanceConfigurationDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INSTANCE": - mm := CreateInstanceConfigurationFromInstanceDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetCompartmentId returns CompartmentId -func (m createinstanceconfigurationbase) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetDefinedTags returns DefinedTags -func (m createinstanceconfigurationbase) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -//GetDisplayName returns DisplayName -func (m createinstanceconfigurationbase) GetDisplayName() *string { - return m.DisplayName -} - -//GetFreeformTags returns FreeformTags -func (m createinstanceconfigurationbase) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -func (m createinstanceconfigurationbase) String() string { - return common.PointerString(m) -} - -// CreateInstanceConfigurationBaseSourceEnum Enum with underlying type: string -type CreateInstanceConfigurationBaseSourceEnum string - -// Set of constants representing the allowable values for CreateInstanceConfigurationBaseSourceEnum -const ( - CreateInstanceConfigurationBaseSourceNone CreateInstanceConfigurationBaseSourceEnum = "NONE" - CreateInstanceConfigurationBaseSourceInstance CreateInstanceConfigurationBaseSourceEnum = "INSTANCE" -) - -var mappingCreateInstanceConfigurationBaseSource = map[string]CreateInstanceConfigurationBaseSourceEnum{ - "NONE": CreateInstanceConfigurationBaseSourceNone, - "INSTANCE": CreateInstanceConfigurationBaseSourceInstance, -} - -// GetCreateInstanceConfigurationBaseSourceEnumValues Enumerates the set of values for CreateInstanceConfigurationBaseSourceEnum -func GetCreateInstanceConfigurationBaseSourceEnumValues() []CreateInstanceConfigurationBaseSourceEnum { - values := make([]CreateInstanceConfigurationBaseSourceEnum, 0) - for _, v := range mappingCreateInstanceConfigurationBaseSource { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_details.go deleted file mode 100644 index 96afc2ade8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInstanceConsoleConnectionDetails The details for creating a instance console connection. -// The instance console connection is created in the same compartment as the instance. -type CreateInstanceConsoleConnectionDetails struct { - - // The OCID of the instance to create the console connection to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The SSH public key used to authenticate the console connection. - PublicKey *string `mandatory:"true" json:"publicKey"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateInstanceConsoleConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_placement_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_placement_configuration_details.go deleted file mode 100644 index 5b156ca283..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_placement_configuration_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInstancePoolPlacementConfigurationDetails The location for where an instance pool will place instances. -type CreateInstancePoolPlacementConfigurationDetails struct { - - // The availability domain to place instances. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place instances. - PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` - - // The fault domains to place instances. - // If you don't provide any values, the system makes a best effort to distribute - // instances across all fault domains based on capacity. - // To distribute the instances evenly across selected fault domains, provide a - // set of fault domains. For example, you might want instances to be evenly - // distributed if your applications require high availability. - // To get a list of fault domains, use the - // ListFaultDomains operation - // in the Identity and Access Management Service API. - // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` - FaultDomains []string `mandatory:"false" json:"faultDomains"` - - // The set of secondary VNIC data for instances in the pool. - SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` -} - -func (m CreateInstancePoolPlacementConfigurationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_details.go deleted file mode 100644 index 58518fbe2d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_details.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalDnsRecordDetails This structure is used when creating DnsRecord for internal clients. -type CreateInternalDnsRecordDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DnsRecord. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Internal Hosted Zone the DnsRecord belongs to. - InternalHostedZoneId *string `mandatory:"true" json:"internalHostedZoneId"` - - // Name of the DnsRecord. - // -*A:* Partially Qualified DNS Name that will be mapped to the IPv4 address - Name *string `mandatory:"true" json:"name"` - - // Type of Dns Record according to RFC 1035 (https://tools.ietf.org/html/rfc1035). - // Currently supported list of types are the following. - // -*A:* Type 1, a hostname to IPv4 address - Type CreateInternalDnsRecordDetailsTypeEnum `mandatory:"true" json:"type"` - - // Value for the DnsRecord. - // -*A:* One or more IPv4 addresses. Comma separated. - Value *string `mandatory:"true" json:"value"` - - // Time to live value in seconds for the DnsRecord, according to RFC 1035 (https://tools.ietf.org/html/rfc1035). - // Defaults to 86400. - Ttl *int `mandatory:"false" json:"ttl"` -} - -func (m CreateInternalDnsRecordDetails) String() string { - return common.PointerString(m) -} - -// CreateInternalDnsRecordDetailsTypeEnum Enum with underlying type: string -type CreateInternalDnsRecordDetailsTypeEnum string - -// Set of constants representing the allowable values for CreateInternalDnsRecordDetailsTypeEnum -const ( - CreateInternalDnsRecordDetailsTypeA CreateInternalDnsRecordDetailsTypeEnum = "A" -) - -var mappingCreateInternalDnsRecordDetailsType = map[string]CreateInternalDnsRecordDetailsTypeEnum{ - "A": CreateInternalDnsRecordDetailsTypeA, -} - -// GetCreateInternalDnsRecordDetailsTypeEnumValues Enumerates the set of values for CreateInternalDnsRecordDetailsTypeEnum -func GetCreateInternalDnsRecordDetailsTypeEnumValues() []CreateInternalDnsRecordDetailsTypeEnum { - values := make([]CreateInternalDnsRecordDetailsTypeEnum, 0) - for _, v := range mappingCreateInternalDnsRecordDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_details.go deleted file mode 100644 index 1a0bf50f31..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalDrgAttachmentDetails The request to create a new InternalDrgAttachment. -type CreateInternalDrgAttachmentDetails struct { - - // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"true" json:"vcnId"` - - // NextHop target's MPLS label. - MplsLabel *string `mandatory:"true" json:"mplsLabel"` - - // The string in the form ASN:mplsLabel. - RouteTarget *string `mandatory:"true" json:"routeTarget"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // This is the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. - // If you don't specify a route table here, the DRG attachment is created without an associated route - // table. The Networking service does NOT automatically associate the attached VCN's default route table - // with the DRG attachment. - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m CreateInternalDrgAttachmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_details.go deleted file mode 100644 index 9a6db52dd5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalDrgDetails The request to create a new InternalDrg. -type CreateInternalDrgDetails struct { - - // The DRG's Oracle ID (OCID). - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Anycast IP of the El Paso fleet handling the ingress traffic. - IngressIP *string `mandatory:"true" json:"ingressIP"` - - // Anycast IP of the El Paso fleet handling the egress traffic. - EgressIP *string `mandatory:"true" json:"egressIP"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Route data for the Drg. - RouteData *string `mandatory:"false" json:"routeData"` -} - -func (m CreateInternalDrgDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_details.go deleted file mode 100644 index 937fd82dec..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_details.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalGenericGatewayDetails Details to create an internal generic gateway. -type CreateInternalGenericGatewayDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the gateway's compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Information required to fill headers of packets to be sent to the gateway. - GatewayHeaderData *int64 `mandatory:"true" json:"gatewayHeaderData"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway represents. - GatewayId *string `mandatory:"true" json:"gatewayId"` - - // The type of the gateway. - GatewayType CreateInternalGenericGatewayDetailsGatewayTypeEnum `mandatory:"true" json:"gatewayType"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the generic gateway belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // IP address of the gateway. - GatewayIpAddresses []string `mandatory:"false" json:"gatewayIpAddresses"` - - // Tuples, mapping AD and regional identifiers to the corresponding routing data - GatewayRouteMap []GatewayRouteData `mandatory:"false" json:"gatewayRouteMap"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table associated with the gateway - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see - // Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateInternalGenericGatewayDetails) String() string { - return common.PointerString(m) -} - -// CreateInternalGenericGatewayDetailsGatewayTypeEnum Enum with underlying type: string -type CreateInternalGenericGatewayDetailsGatewayTypeEnum string - -// Set of constants representing the allowable values for CreateInternalGenericGatewayDetailsGatewayTypeEnum -const ( - CreateInternalGenericGatewayDetailsGatewayTypeServicegateway CreateInternalGenericGatewayDetailsGatewayTypeEnum = "SERVICEGATEWAY" - CreateInternalGenericGatewayDetailsGatewayTypeNatgateway CreateInternalGenericGatewayDetailsGatewayTypeEnum = "NATGATEWAY" - CreateInternalGenericGatewayDetailsGatewayTypePrivateaccessgateway CreateInternalGenericGatewayDetailsGatewayTypeEnum = "PRIVATEACCESSGATEWAY" -) - -var mappingCreateInternalGenericGatewayDetailsGatewayType = map[string]CreateInternalGenericGatewayDetailsGatewayTypeEnum{ - "SERVICEGATEWAY": CreateInternalGenericGatewayDetailsGatewayTypeServicegateway, - "NATGATEWAY": CreateInternalGenericGatewayDetailsGatewayTypeNatgateway, - "PRIVATEACCESSGATEWAY": CreateInternalGenericGatewayDetailsGatewayTypePrivateaccessgateway, -} - -// GetCreateInternalGenericGatewayDetailsGatewayTypeEnumValues Enumerates the set of values for CreateInternalGenericGatewayDetailsGatewayTypeEnum -func GetCreateInternalGenericGatewayDetailsGatewayTypeEnumValues() []CreateInternalGenericGatewayDetailsGatewayTypeEnum { - values := make([]CreateInternalGenericGatewayDetailsGatewayTypeEnum, 0) - for _, v := range mappingCreateInternalGenericGatewayDetailsGatewayType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_details.go deleted file mode 100644 index d1faac8ea9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_details.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalPublicIpDetails This structure is used when creating publicIps for internal clients. -type CreateInternalPublicIpDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the public IP. For ephemeral public IPs, - // you must set this to the private IP's - // compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defines when the public IP is deleted and released back to the Oracle Cloud - // Infrastructure public IP pool. For more information, see - // Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). - Lifetime CreateInternalPublicIpDetailsLifetimeEnum `mandatory:"true" json:"lifetime"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity to assign the public IP to. - AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created by the current tenancy - PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` - - // Only provided when no publicIpPoolId is specified. - InternalPoolName CreateInternalPublicIpDetailsInternalPoolNameEnum `mandatory:"false" json:"internalPoolName,omitempty"` -} - -func (m CreateInternalPublicIpDetails) String() string { - return common.PointerString(m) -} - -// CreateInternalPublicIpDetailsLifetimeEnum Enum with underlying type: string -type CreateInternalPublicIpDetailsLifetimeEnum string - -// Set of constants representing the allowable values for CreateInternalPublicIpDetailsLifetimeEnum -const ( - CreateInternalPublicIpDetailsLifetimeEphemeral CreateInternalPublicIpDetailsLifetimeEnum = "EPHEMERAL" - CreateInternalPublicIpDetailsLifetimeReserved CreateInternalPublicIpDetailsLifetimeEnum = "RESERVED" -) - -var mappingCreateInternalPublicIpDetailsLifetime = map[string]CreateInternalPublicIpDetailsLifetimeEnum{ - "EPHEMERAL": CreateInternalPublicIpDetailsLifetimeEphemeral, - "RESERVED": CreateInternalPublicIpDetailsLifetimeReserved, -} - -// GetCreateInternalPublicIpDetailsLifetimeEnumValues Enumerates the set of values for CreateInternalPublicIpDetailsLifetimeEnum -func GetCreateInternalPublicIpDetailsLifetimeEnumValues() []CreateInternalPublicIpDetailsLifetimeEnum { - values := make([]CreateInternalPublicIpDetailsLifetimeEnum, 0) - for _, v := range mappingCreateInternalPublicIpDetailsLifetime { - values = append(values, v) - } - return values -} - -// CreateInternalPublicIpDetailsInternalPoolNameEnum Enum with underlying type: string -type CreateInternalPublicIpDetailsInternalPoolNameEnum string - -// Set of constants representing the allowable values for CreateInternalPublicIpDetailsInternalPoolNameEnum -const ( - CreateInternalPublicIpDetailsInternalPoolNameExternal CreateInternalPublicIpDetailsInternalPoolNameEnum = "EXTERNAL" - CreateInternalPublicIpDetailsInternalPoolNameSociEgress CreateInternalPublicIpDetailsInternalPoolNameEnum = "SOCI_EGRESS" -) - -var mappingCreateInternalPublicIpDetailsInternalPoolName = map[string]CreateInternalPublicIpDetailsInternalPoolNameEnum{ - "EXTERNAL": CreateInternalPublicIpDetailsInternalPoolNameExternal, - "SOCI_EGRESS": CreateInternalPublicIpDetailsInternalPoolNameSociEgress, -} - -// GetCreateInternalPublicIpDetailsInternalPoolNameEnumValues Enumerates the set of values for CreateInternalPublicIpDetailsInternalPoolNameEnum -func GetCreateInternalPublicIpDetailsInternalPoolNameEnumValues() []CreateInternalPublicIpDetailsInternalPoolNameEnum { - values := make([]CreateInternalPublicIpDetailsInternalPoolNameEnum, 0) - for _, v := range mappingCreateInternalPublicIpDetailsInternalPoolName { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_details.go deleted file mode 100644 index 05376c49fb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_details.go +++ /dev/null @@ -1,1795 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalVnicAttachmentDetails Details for attaching a service VNIC to VNICaaS fleet. -type CreateInternalVnicAttachmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the VNIC attachment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A private IP address of your choice to assign to the VNIC. Must be an - // available IP address within the subnet's CIDR. If you don't specify a - // value, Oracle automatically assigns a private IP address from the subnet. - // This is the VNIC's *primary* private IP address. The value appears in - // the Vnic object and also the - // PrivateIp object returned by - // ListPrivateIps and - // GetPrivateIp. - // Example: `10.0.3.3` - PrivateIp *string `mandatory:"false" json:"privateIp"` - - // The compute instance id - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Id for a group of vnics sharing same resource pool, e.g. a group id could be a site/gateway id for - // Ambassador SVNICs under the same site/gateway. - GroupId *string `mandatory:"false" json:"groupId"` - - // The compute instance id of the resource pool to be used for the vnic - InstanceIdForResourcePool *string `mandatory:"false" json:"instanceIdForResourcePool"` - - // The availability domain of the VNIC attachment - InternalAvailabilityDomain *string `mandatory:"false" json:"internalAvailabilityDomain"` - - // The overlay MAC address of the instance - MacAddress *string `mandatory:"false" json:"macAddress"` - - // index of NIC that VNIC is attaching to (OS boot order) - NicIndex *int `mandatory:"false" json:"nicIndex"` - - // The tag used internally to identify the sending VNIC. It can be specified in scenarios where a specific - // tag needs to be assigned. Examples of such scenarios include reboot migration and VMware support. - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // Shape of VNIC that is used to allocate resource in the data plane. - VnicShape CreateInternalVnicAttachmentDetailsVnicShapeEnum `mandatory:"false" json:"vnicShape,omitempty"` - - // The substrate IP address of the instance - SubstrateIp *string `mandatory:"false" json:"substrateIp"` - - // Indicates if vlanTag 0 can be assigned to this vnic or not. - IsSkipVlanTag0 *bool `mandatory:"false" json:"isSkipVlanTag0"` - - // Specifies the shard to attach the VNIC to - ShardId *string `mandatory:"false" json:"shardId"` - - // Property describing customer facing metrics - MetadataList []CfmMetadata `mandatory:"false" json:"metadataList"` -} - -func (m CreateInternalVnicAttachmentDetails) String() string { - return common.PointerString(m) -} - -// CreateInternalVnicAttachmentDetailsVnicShapeEnum Enum with underlying type: string -type CreateInternalVnicAttachmentDetailsVnicShapeEnum string - -// Set of constants representing the allowable values for CreateInternalVnicAttachmentDetailsVnicShapeEnum -const ( - CreateInternalVnicAttachmentDetailsVnicShapeDynamic CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0060 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0060" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0060Psm CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0060_PSM" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0100 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0120 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0120" - CreateInternalVnicAttachmentDetailsVnicShapeFixed01202x CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0120_2X" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0200 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0240 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0240" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0480 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0480" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehost CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST" - CreateInternalVnicAttachmentDetailsVnicShapeDynamic25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed004025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed010025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed020025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed040025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed080025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed160025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed240025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_25G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehost25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_25G" - CreateInternalVnicAttachmentDetailsVnicShapeDynamicE125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0070E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0070_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0140E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0140_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0280E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0280_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0560E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0560_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1120E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1120_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1680E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1680_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeDynamicB125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0060B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0060_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0120B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0120_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0240B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0240_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0480B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0480_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0960B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0960_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehostB125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_B1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0048E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeMicroLbFixed0001E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0200 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FIXED0200" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0400 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FIXED0400" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0700 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FIXED0700" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved10g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_TELESIS_25G" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis10g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_TELESIS_10G" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasAmbassadorFixed0100 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasPrivatedns CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_PRIVATEDNS" - CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFwaas CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FWAAS" - CreateInternalVnicAttachmentDetailsVnicShapeDynamicE350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeDynamicE450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "MICRO_VM_FIXED0050_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0090X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0270X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0630X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0810X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0990X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1170X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1530X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1710X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1890X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2070X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2430X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2610X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2790X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2970X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3330X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3510X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3690X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3870X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4230X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4410X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4590X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4770X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeDynamicA150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3100_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3300_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3400_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3500_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3700_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3800_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3900_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed4000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehostA150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_A1_50G" - CreateInternalVnicAttachmentDetailsVnicShapeDynamicX950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0040X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed0800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed1600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed2800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeFixed4000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed4000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" - CreateInternalVnicAttachmentDetailsVnicShapeEntirehostX950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_X9_50G" -) - -var mappingCreateInternalVnicAttachmentDetailsVnicShape = map[string]CreateInternalVnicAttachmentDetailsVnicShapeEnum{ - "DYNAMIC": CreateInternalVnicAttachmentDetailsVnicShapeDynamic, - "FIXED0040": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040, - "FIXED0060": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060, - "FIXED0060_PSM": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060Psm, - "FIXED0100": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100, - "FIXED0120": CreateInternalVnicAttachmentDetailsVnicShapeFixed0120, - "FIXED0120_2X": CreateInternalVnicAttachmentDetailsVnicShapeFixed01202x, - "FIXED0200": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200, - "FIXED0240": CreateInternalVnicAttachmentDetailsVnicShapeFixed0240, - "FIXED0480": CreateInternalVnicAttachmentDetailsVnicShapeFixed0480, - "ENTIREHOST": CreateInternalVnicAttachmentDetailsVnicShapeEntirehost, - "DYNAMIC_25G": CreateInternalVnicAttachmentDetailsVnicShapeDynamic25g, - "FIXED0040_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed004025g, - "FIXED0100_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed010025g, - "FIXED0200_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed020025g, - "FIXED0400_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed040025g, - "FIXED0800_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed080025g, - "FIXED1600_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed160025g, - "FIXED2400_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed240025g, - "ENTIREHOST_25G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehost25g, - "DYNAMIC_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE125g, - "FIXED0040_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E125g, - "FIXED0070_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0070E125g, - "FIXED0140_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0140E125g, - "FIXED0280_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0280E125g, - "FIXED0560_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0560E125g, - "FIXED1120_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1120E125g, - "FIXED1680_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1680E125g, - "ENTIREHOST_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE125g, - "DYNAMIC_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicB125g, - "FIXED0040_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040B125g, - "FIXED0060_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060B125g, - "FIXED0120_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0120B125g, - "FIXED0240_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0240B125g, - "FIXED0480_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0480B125g, - "FIXED0960_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0960B125g, - "ENTIREHOST_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostB125g, - "MICRO_VM_FIXED0048_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0048E125g, - "MICRO_LB_FIXED0001_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeMicroLbFixed0001E125g, - "VNICAAS_FIXED0200": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0200, - "VNICAAS_FIXED0400": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0400, - "VNICAAS_FIXED0700": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0700, - "VNICAAS_NLB_APPROVED_10G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved10g, - "VNICAAS_NLB_APPROVED_25G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved25g, - "VNICAAS_TELESIS_25G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis25g, - "VNICAAS_TELESIS_10G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis10g, - "VNICAAS_AMBASSADOR_FIXED0100": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasAmbassadorFixed0100, - "VNICAAS_PRIVATEDNS": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasPrivatedns, - "VNICAAS_FWAAS": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFwaas, - "DYNAMIC_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE350g, - "FIXED0040_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E350g, - "FIXED0100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E350g, - "FIXED0200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E350g, - "FIXED0300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E350g, - "FIXED0400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E350g, - "FIXED0500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E350g, - "FIXED0600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E350g, - "FIXED0700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E350g, - "FIXED0800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E350g, - "FIXED0900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E350g, - "FIXED1000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E350g, - "FIXED1100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E350g, - "FIXED1200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E350g, - "FIXED1300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E350g, - "FIXED1400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E350g, - "FIXED1500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E350g, - "FIXED1600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E350g, - "FIXED1700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E350g, - "FIXED1800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E350g, - "FIXED1900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E350g, - "FIXED2000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E350g, - "FIXED2100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E350g, - "FIXED2200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E350g, - "FIXED2300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E350g, - "FIXED2400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E350g, - "FIXED2500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E350g, - "FIXED2600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E350g, - "FIXED2700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E350g, - "FIXED2800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E350g, - "FIXED2900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E350g, - "FIXED3000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E350g, - "FIXED3100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E350g, - "FIXED3200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E350g, - "FIXED3300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E350g, - "FIXED3400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E350g, - "FIXED3500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E350g, - "FIXED3600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E350g, - "FIXED3700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E350g, - "FIXED3800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E350g, - "FIXED3900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E350g, - "FIXED4000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E350g, - "ENTIREHOST_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE350g, - "DYNAMIC_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE450g, - "FIXED0040_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E450g, - "FIXED0100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E450g, - "FIXED0200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E450g, - "FIXED0300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E450g, - "FIXED0400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E450g, - "FIXED0500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E450g, - "FIXED0600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E450g, - "FIXED0700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E450g, - "FIXED0800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E450g, - "FIXED0900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E450g, - "FIXED1000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E450g, - "FIXED1100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E450g, - "FIXED1200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E450g, - "FIXED1300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E450g, - "FIXED1400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E450g, - "FIXED1500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E450g, - "FIXED1600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E450g, - "FIXED1700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E450g, - "FIXED1800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E450g, - "FIXED1900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E450g, - "FIXED2000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E450g, - "FIXED2100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E450g, - "FIXED2200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E450g, - "FIXED2300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E450g, - "FIXED2400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E450g, - "FIXED2500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E450g, - "FIXED2600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E450g, - "FIXED2700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E450g, - "FIXED2800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E450g, - "FIXED2900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E450g, - "FIXED3000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E450g, - "FIXED3100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E450g, - "FIXED3200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E450g, - "FIXED3300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E450g, - "FIXED3400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E450g, - "FIXED3500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E450g, - "FIXED3600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E450g, - "FIXED3700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E450g, - "FIXED3800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E450g, - "FIXED3900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E450g, - "FIXED4000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E450g, - "ENTIREHOST_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE450g, - "MICRO_VM_FIXED0050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E350g, - "SUBCORE_VM_FIXED0025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E350g, - "SUBCORE_VM_FIXED0050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E350g, - "SUBCORE_VM_FIXED0075_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E350g, - "SUBCORE_VM_FIXED0100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E350g, - "SUBCORE_VM_FIXED0125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E350g, - "SUBCORE_VM_FIXED0150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E350g, - "SUBCORE_VM_FIXED0175_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E350g, - "SUBCORE_VM_FIXED0200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E350g, - "SUBCORE_VM_FIXED0225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E350g, - "SUBCORE_VM_FIXED0250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E350g, - "SUBCORE_VM_FIXED0275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E350g, - "SUBCORE_VM_FIXED0300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E350g, - "SUBCORE_VM_FIXED0325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E350g, - "SUBCORE_VM_FIXED0350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E350g, - "SUBCORE_VM_FIXED0375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E350g, - "SUBCORE_VM_FIXED0400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E350g, - "SUBCORE_VM_FIXED0425_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E350g, - "SUBCORE_VM_FIXED0450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E350g, - "SUBCORE_VM_FIXED0475_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E350g, - "SUBCORE_VM_FIXED0500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E350g, - "SUBCORE_VM_FIXED0525_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E350g, - "SUBCORE_VM_FIXED0550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E350g, - "SUBCORE_VM_FIXED0575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E350g, - "SUBCORE_VM_FIXED0600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E350g, - "SUBCORE_VM_FIXED0625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E350g, - "SUBCORE_VM_FIXED0650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E350g, - "SUBCORE_VM_FIXED0675_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E350g, - "SUBCORE_VM_FIXED0700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E350g, - "SUBCORE_VM_FIXED0725_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E350g, - "SUBCORE_VM_FIXED0750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E350g, - "SUBCORE_VM_FIXED0775_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E350g, - "SUBCORE_VM_FIXED0800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E350g, - "SUBCORE_VM_FIXED0825_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E350g, - "SUBCORE_VM_FIXED0850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E350g, - "SUBCORE_VM_FIXED0875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E350g, - "SUBCORE_VM_FIXED0900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E350g, - "SUBCORE_VM_FIXED0925_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E350g, - "SUBCORE_VM_FIXED0950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E350g, - "SUBCORE_VM_FIXED0975_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E350g, - "SUBCORE_VM_FIXED1000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E350g, - "SUBCORE_VM_FIXED1025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E350g, - "SUBCORE_VM_FIXED1050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E350g, - "SUBCORE_VM_FIXED1075_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E350g, - "SUBCORE_VM_FIXED1100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E350g, - "SUBCORE_VM_FIXED1125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E350g, - "SUBCORE_VM_FIXED1150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E350g, - "SUBCORE_VM_FIXED1175_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E350g, - "SUBCORE_VM_FIXED1200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E350g, - "SUBCORE_VM_FIXED1225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E350g, - "SUBCORE_VM_FIXED1250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E350g, - "SUBCORE_VM_FIXED1275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E350g, - "SUBCORE_VM_FIXED1300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E350g, - "SUBCORE_VM_FIXED1325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E350g, - "SUBCORE_VM_FIXED1350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E350g, - "SUBCORE_VM_FIXED1375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E350g, - "SUBCORE_VM_FIXED1400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E350g, - "SUBCORE_VM_FIXED1425_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E350g, - "SUBCORE_VM_FIXED1450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E350g, - "SUBCORE_VM_FIXED1475_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E350g, - "SUBCORE_VM_FIXED1500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E350g, - "SUBCORE_VM_FIXED1525_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E350g, - "SUBCORE_VM_FIXED1550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E350g, - "SUBCORE_VM_FIXED1575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E350g, - "SUBCORE_VM_FIXED1600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E350g, - "SUBCORE_VM_FIXED1625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E350g, - "SUBCORE_VM_FIXED1650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E350g, - "SUBCORE_VM_FIXED1700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E350g, - "SUBCORE_VM_FIXED1725_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E350g, - "SUBCORE_VM_FIXED1750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E350g, - "SUBCORE_VM_FIXED1800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E350g, - "SUBCORE_VM_FIXED1850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E350g, - "SUBCORE_VM_FIXED1875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E350g, - "SUBCORE_VM_FIXED1900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E350g, - "SUBCORE_VM_FIXED1925_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E350g, - "SUBCORE_VM_FIXED1950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E350g, - "SUBCORE_VM_FIXED2000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E350g, - "SUBCORE_VM_FIXED2025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E350g, - "SUBCORE_VM_FIXED2050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E350g, - "SUBCORE_VM_FIXED2100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E350g, - "SUBCORE_VM_FIXED2125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E350g, - "SUBCORE_VM_FIXED2150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E350g, - "SUBCORE_VM_FIXED2175_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E350g, - "SUBCORE_VM_FIXED2200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E350g, - "SUBCORE_VM_FIXED2250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E350g, - "SUBCORE_VM_FIXED2275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E350g, - "SUBCORE_VM_FIXED2300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E350g, - "SUBCORE_VM_FIXED2325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E350g, - "SUBCORE_VM_FIXED2350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E350g, - "SUBCORE_VM_FIXED2375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E350g, - "SUBCORE_VM_FIXED2400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E350g, - "SUBCORE_VM_FIXED2450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E350g, - "SUBCORE_VM_FIXED2475_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E350g, - "SUBCORE_VM_FIXED2500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E350g, - "SUBCORE_VM_FIXED2550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E350g, - "SUBCORE_VM_FIXED2600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E350g, - "SUBCORE_VM_FIXED2625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E350g, - "SUBCORE_VM_FIXED2650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E350g, - "SUBCORE_VM_FIXED2700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E350g, - "SUBCORE_VM_FIXED2750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E350g, - "SUBCORE_VM_FIXED2775_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E350g, - "SUBCORE_VM_FIXED2800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E350g, - "SUBCORE_VM_FIXED2850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E350g, - "SUBCORE_VM_FIXED2875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E350g, - "SUBCORE_VM_FIXED2900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E350g, - "SUBCORE_VM_FIXED2925_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E350g, - "SUBCORE_VM_FIXED2950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E350g, - "SUBCORE_VM_FIXED2975_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E350g, - "SUBCORE_VM_FIXED3000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E350g, - "SUBCORE_VM_FIXED3025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E350g, - "SUBCORE_VM_FIXED3050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E350g, - "SUBCORE_VM_FIXED3075_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E350g, - "SUBCORE_VM_FIXED3100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E350g, - "SUBCORE_VM_FIXED3125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E350g, - "SUBCORE_VM_FIXED3150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E350g, - "SUBCORE_VM_FIXED3200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E350g, - "SUBCORE_VM_FIXED3225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E350g, - "SUBCORE_VM_FIXED3250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E350g, - "SUBCORE_VM_FIXED3300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E350g, - "SUBCORE_VM_FIXED3325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E350g, - "SUBCORE_VM_FIXED3375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E350g, - "SUBCORE_VM_FIXED3400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E350g, - "SUBCORE_VM_FIXED3450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E350g, - "SUBCORE_VM_FIXED3500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E350g, - "SUBCORE_VM_FIXED3525_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E350g, - "SUBCORE_VM_FIXED3575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E350g, - "SUBCORE_VM_FIXED3600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E350g, - "SUBCORE_VM_FIXED3625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E350g, - "SUBCORE_VM_FIXED3675_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E350g, - "SUBCORE_VM_FIXED3700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E350g, - "SUBCORE_VM_FIXED3750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E350g, - "SUBCORE_VM_FIXED3800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E350g, - "SUBCORE_VM_FIXED3825_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E350g, - "SUBCORE_VM_FIXED3850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E350g, - "SUBCORE_VM_FIXED3875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E350g, - "SUBCORE_VM_FIXED3900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E350g, - "SUBCORE_VM_FIXED3975_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E350g, - "SUBCORE_VM_FIXED4000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E350g, - "SUBCORE_VM_FIXED4025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E350g, - "SUBCORE_VM_FIXED4050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E350g, - "SUBCORE_VM_FIXED4100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E350g, - "SUBCORE_VM_FIXED4125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E350g, - "SUBCORE_VM_FIXED4200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E350g, - "SUBCORE_VM_FIXED4225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E350g, - "SUBCORE_VM_FIXED4250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E350g, - "SUBCORE_VM_FIXED4275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E350g, - "SUBCORE_VM_FIXED4300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E350g, - "SUBCORE_VM_FIXED4350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E350g, - "SUBCORE_VM_FIXED4375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E350g, - "SUBCORE_VM_FIXED4400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E350g, - "SUBCORE_VM_FIXED4425_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E350g, - "SUBCORE_VM_FIXED4500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E350g, - "SUBCORE_VM_FIXED4550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E350g, - "SUBCORE_VM_FIXED4575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E350g, - "SUBCORE_VM_FIXED4600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E350g, - "SUBCORE_VM_FIXED4625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E350g, - "SUBCORE_VM_FIXED4650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E350g, - "SUBCORE_VM_FIXED4675_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E350g, - "SUBCORE_VM_FIXED4700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E350g, - "SUBCORE_VM_FIXED4725_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E350g, - "SUBCORE_VM_FIXED4750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E350g, - "SUBCORE_VM_FIXED4800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E350g, - "SUBCORE_VM_FIXED4875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E350g, - "SUBCORE_VM_FIXED4900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E350g, - "SUBCORE_VM_FIXED4950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E350g, - "SUBCORE_VM_FIXED5000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E350g, - "SUBCORE_VM_FIXED0025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E450g, - "SUBCORE_VM_FIXED0050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E450g, - "SUBCORE_VM_FIXED0075_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E450g, - "SUBCORE_VM_FIXED0100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E450g, - "SUBCORE_VM_FIXED0125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E450g, - "SUBCORE_VM_FIXED0150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E450g, - "SUBCORE_VM_FIXED0175_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E450g, - "SUBCORE_VM_FIXED0200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E450g, - "SUBCORE_VM_FIXED0225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E450g, - "SUBCORE_VM_FIXED0250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E450g, - "SUBCORE_VM_FIXED0275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E450g, - "SUBCORE_VM_FIXED0300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E450g, - "SUBCORE_VM_FIXED0325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E450g, - "SUBCORE_VM_FIXED0350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E450g, - "SUBCORE_VM_FIXED0375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E450g, - "SUBCORE_VM_FIXED0400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E450g, - "SUBCORE_VM_FIXED0425_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E450g, - "SUBCORE_VM_FIXED0450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E450g, - "SUBCORE_VM_FIXED0475_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E450g, - "SUBCORE_VM_FIXED0500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E450g, - "SUBCORE_VM_FIXED0525_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E450g, - "SUBCORE_VM_FIXED0550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E450g, - "SUBCORE_VM_FIXED0575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E450g, - "SUBCORE_VM_FIXED0600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E450g, - "SUBCORE_VM_FIXED0625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E450g, - "SUBCORE_VM_FIXED0650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E450g, - "SUBCORE_VM_FIXED0675_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E450g, - "SUBCORE_VM_FIXED0700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E450g, - "SUBCORE_VM_FIXED0725_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E450g, - "SUBCORE_VM_FIXED0750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E450g, - "SUBCORE_VM_FIXED0775_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E450g, - "SUBCORE_VM_FIXED0800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E450g, - "SUBCORE_VM_FIXED0825_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E450g, - "SUBCORE_VM_FIXED0850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E450g, - "SUBCORE_VM_FIXED0875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E450g, - "SUBCORE_VM_FIXED0900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E450g, - "SUBCORE_VM_FIXED0925_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E450g, - "SUBCORE_VM_FIXED0950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E450g, - "SUBCORE_VM_FIXED0975_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E450g, - "SUBCORE_VM_FIXED1000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E450g, - "SUBCORE_VM_FIXED1025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E450g, - "SUBCORE_VM_FIXED1050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E450g, - "SUBCORE_VM_FIXED1075_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E450g, - "SUBCORE_VM_FIXED1100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E450g, - "SUBCORE_VM_FIXED1125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E450g, - "SUBCORE_VM_FIXED1150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E450g, - "SUBCORE_VM_FIXED1175_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E450g, - "SUBCORE_VM_FIXED1200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E450g, - "SUBCORE_VM_FIXED1225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E450g, - "SUBCORE_VM_FIXED1250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E450g, - "SUBCORE_VM_FIXED1275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E450g, - "SUBCORE_VM_FIXED1300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E450g, - "SUBCORE_VM_FIXED1325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E450g, - "SUBCORE_VM_FIXED1350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E450g, - "SUBCORE_VM_FIXED1375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E450g, - "SUBCORE_VM_FIXED1400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E450g, - "SUBCORE_VM_FIXED1425_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E450g, - "SUBCORE_VM_FIXED1450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E450g, - "SUBCORE_VM_FIXED1475_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E450g, - "SUBCORE_VM_FIXED1500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E450g, - "SUBCORE_VM_FIXED1525_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E450g, - "SUBCORE_VM_FIXED1550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E450g, - "SUBCORE_VM_FIXED1575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E450g, - "SUBCORE_VM_FIXED1600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E450g, - "SUBCORE_VM_FIXED1625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E450g, - "SUBCORE_VM_FIXED1650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E450g, - "SUBCORE_VM_FIXED1700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E450g, - "SUBCORE_VM_FIXED1725_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E450g, - "SUBCORE_VM_FIXED1750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E450g, - "SUBCORE_VM_FIXED1800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E450g, - "SUBCORE_VM_FIXED1850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E450g, - "SUBCORE_VM_FIXED1875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E450g, - "SUBCORE_VM_FIXED1900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E450g, - "SUBCORE_VM_FIXED1925_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E450g, - "SUBCORE_VM_FIXED1950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E450g, - "SUBCORE_VM_FIXED2000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E450g, - "SUBCORE_VM_FIXED2025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E450g, - "SUBCORE_VM_FIXED2050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E450g, - "SUBCORE_VM_FIXED2100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E450g, - "SUBCORE_VM_FIXED2125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E450g, - "SUBCORE_VM_FIXED2150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E450g, - "SUBCORE_VM_FIXED2175_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E450g, - "SUBCORE_VM_FIXED2200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E450g, - "SUBCORE_VM_FIXED2250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E450g, - "SUBCORE_VM_FIXED2275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E450g, - "SUBCORE_VM_FIXED2300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E450g, - "SUBCORE_VM_FIXED2325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E450g, - "SUBCORE_VM_FIXED2350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E450g, - "SUBCORE_VM_FIXED2375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E450g, - "SUBCORE_VM_FIXED2400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E450g, - "SUBCORE_VM_FIXED2450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E450g, - "SUBCORE_VM_FIXED2475_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E450g, - "SUBCORE_VM_FIXED2500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E450g, - "SUBCORE_VM_FIXED2550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E450g, - "SUBCORE_VM_FIXED2600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E450g, - "SUBCORE_VM_FIXED2625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E450g, - "SUBCORE_VM_FIXED2650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E450g, - "SUBCORE_VM_FIXED2700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E450g, - "SUBCORE_VM_FIXED2750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E450g, - "SUBCORE_VM_FIXED2775_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E450g, - "SUBCORE_VM_FIXED2800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E450g, - "SUBCORE_VM_FIXED2850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E450g, - "SUBCORE_VM_FIXED2875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E450g, - "SUBCORE_VM_FIXED2900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E450g, - "SUBCORE_VM_FIXED2925_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E450g, - "SUBCORE_VM_FIXED2950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E450g, - "SUBCORE_VM_FIXED2975_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E450g, - "SUBCORE_VM_FIXED3000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E450g, - "SUBCORE_VM_FIXED3025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E450g, - "SUBCORE_VM_FIXED3050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E450g, - "SUBCORE_VM_FIXED3075_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E450g, - "SUBCORE_VM_FIXED3100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E450g, - "SUBCORE_VM_FIXED3125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E450g, - "SUBCORE_VM_FIXED3150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E450g, - "SUBCORE_VM_FIXED3200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E450g, - "SUBCORE_VM_FIXED3225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E450g, - "SUBCORE_VM_FIXED3250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E450g, - "SUBCORE_VM_FIXED3300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E450g, - "SUBCORE_VM_FIXED3325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E450g, - "SUBCORE_VM_FIXED3375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E450g, - "SUBCORE_VM_FIXED3400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E450g, - "SUBCORE_VM_FIXED3450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E450g, - "SUBCORE_VM_FIXED3500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E450g, - "SUBCORE_VM_FIXED3525_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E450g, - "SUBCORE_VM_FIXED3575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E450g, - "SUBCORE_VM_FIXED3600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E450g, - "SUBCORE_VM_FIXED3625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E450g, - "SUBCORE_VM_FIXED3675_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E450g, - "SUBCORE_VM_FIXED3700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E450g, - "SUBCORE_VM_FIXED3750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E450g, - "SUBCORE_VM_FIXED3800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E450g, - "SUBCORE_VM_FIXED3825_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E450g, - "SUBCORE_VM_FIXED3850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E450g, - "SUBCORE_VM_FIXED3875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E450g, - "SUBCORE_VM_FIXED3900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E450g, - "SUBCORE_VM_FIXED3975_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E450g, - "SUBCORE_VM_FIXED4000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E450g, - "SUBCORE_VM_FIXED4025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E450g, - "SUBCORE_VM_FIXED4050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E450g, - "SUBCORE_VM_FIXED4100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E450g, - "SUBCORE_VM_FIXED4125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E450g, - "SUBCORE_VM_FIXED4200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E450g, - "SUBCORE_VM_FIXED4225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E450g, - "SUBCORE_VM_FIXED4250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E450g, - "SUBCORE_VM_FIXED4275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E450g, - "SUBCORE_VM_FIXED4300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E450g, - "SUBCORE_VM_FIXED4350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E450g, - "SUBCORE_VM_FIXED4375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E450g, - "SUBCORE_VM_FIXED4400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E450g, - "SUBCORE_VM_FIXED4425_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E450g, - "SUBCORE_VM_FIXED4500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E450g, - "SUBCORE_VM_FIXED4550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E450g, - "SUBCORE_VM_FIXED4575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E450g, - "SUBCORE_VM_FIXED4600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E450g, - "SUBCORE_VM_FIXED4625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E450g, - "SUBCORE_VM_FIXED4650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E450g, - "SUBCORE_VM_FIXED4675_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E450g, - "SUBCORE_VM_FIXED4700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E450g, - "SUBCORE_VM_FIXED4725_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E450g, - "SUBCORE_VM_FIXED4750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E450g, - "SUBCORE_VM_FIXED4800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E450g, - "SUBCORE_VM_FIXED4875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E450g, - "SUBCORE_VM_FIXED4900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E450g, - "SUBCORE_VM_FIXED4950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E450g, - "SUBCORE_VM_FIXED5000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E450g, - "SUBCORE_VM_FIXED0020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0020A150g, - "SUBCORE_VM_FIXED0040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0040A150g, - "SUBCORE_VM_FIXED0060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0060A150g, - "SUBCORE_VM_FIXED0080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0080A150g, - "SUBCORE_VM_FIXED0100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100A150g, - "SUBCORE_VM_FIXED0120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0120A150g, - "SUBCORE_VM_FIXED0140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0140A150g, - "SUBCORE_VM_FIXED0160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0160A150g, - "SUBCORE_VM_FIXED0180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180A150g, - "SUBCORE_VM_FIXED0200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200A150g, - "SUBCORE_VM_FIXED0220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0220A150g, - "SUBCORE_VM_FIXED0240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0240A150g, - "SUBCORE_VM_FIXED0260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0260A150g, - "SUBCORE_VM_FIXED0280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0280A150g, - "SUBCORE_VM_FIXED0300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300A150g, - "SUBCORE_VM_FIXED0320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0320A150g, - "SUBCORE_VM_FIXED0340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0340A150g, - "SUBCORE_VM_FIXED0360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360A150g, - "SUBCORE_VM_FIXED0380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0380A150g, - "SUBCORE_VM_FIXED0400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400A150g, - "SUBCORE_VM_FIXED0420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0420A150g, - "SUBCORE_VM_FIXED0440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0440A150g, - "SUBCORE_VM_FIXED0460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0460A150g, - "SUBCORE_VM_FIXED0480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0480A150g, - "SUBCORE_VM_FIXED0500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500A150g, - "SUBCORE_VM_FIXED0520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0520A150g, - "SUBCORE_VM_FIXED0540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540A150g, - "SUBCORE_VM_FIXED0560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0560A150g, - "SUBCORE_VM_FIXED0580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0580A150g, - "SUBCORE_VM_FIXED0600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600A150g, - "SUBCORE_VM_FIXED0620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0620A150g, - "SUBCORE_VM_FIXED0640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0640A150g, - "SUBCORE_VM_FIXED0660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0660A150g, - "SUBCORE_VM_FIXED0680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0680A150g, - "SUBCORE_VM_FIXED0700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700A150g, - "SUBCORE_VM_FIXED0720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720A150g, - "SUBCORE_VM_FIXED0740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0740A150g, - "SUBCORE_VM_FIXED0760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0760A150g, - "SUBCORE_VM_FIXED0780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0780A150g, - "SUBCORE_VM_FIXED0800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800A150g, - "SUBCORE_VM_FIXED0820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0820A150g, - "SUBCORE_VM_FIXED0840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0840A150g, - "SUBCORE_VM_FIXED0860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0860A150g, - "SUBCORE_VM_FIXED0880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0880A150g, - "SUBCORE_VM_FIXED0900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900A150g, - "SUBCORE_VM_FIXED0920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0920A150g, - "SUBCORE_VM_FIXED0940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0940A150g, - "SUBCORE_VM_FIXED0960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0960A150g, - "SUBCORE_VM_FIXED0980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0980A150g, - "SUBCORE_VM_FIXED1000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000A150g, - "SUBCORE_VM_FIXED1020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1020A150g, - "SUBCORE_VM_FIXED1040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1040A150g, - "SUBCORE_VM_FIXED1060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1060A150g, - "SUBCORE_VM_FIXED1080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080A150g, - "SUBCORE_VM_FIXED1100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100A150g, - "SUBCORE_VM_FIXED1120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1120A150g, - "SUBCORE_VM_FIXED1140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1140A150g, - "SUBCORE_VM_FIXED1160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1160A150g, - "SUBCORE_VM_FIXED1180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1180A150g, - "SUBCORE_VM_FIXED1200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200A150g, - "SUBCORE_VM_FIXED1220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1220A150g, - "SUBCORE_VM_FIXED1240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1240A150g, - "SUBCORE_VM_FIXED1260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260A150g, - "SUBCORE_VM_FIXED1280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1280A150g, - "SUBCORE_VM_FIXED1300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300A150g, - "SUBCORE_VM_FIXED1320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1320A150g, - "SUBCORE_VM_FIXED1340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1340A150g, - "SUBCORE_VM_FIXED1360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1360A150g, - "SUBCORE_VM_FIXED1380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1380A150g, - "SUBCORE_VM_FIXED1400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400A150g, - "SUBCORE_VM_FIXED1420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1420A150g, - "SUBCORE_VM_FIXED1440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440A150g, - "SUBCORE_VM_FIXED1460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1460A150g, - "SUBCORE_VM_FIXED1480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1480A150g, - "SUBCORE_VM_FIXED1500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500A150g, - "SUBCORE_VM_FIXED1520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1520A150g, - "SUBCORE_VM_FIXED1540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1540A150g, - "SUBCORE_VM_FIXED1560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1560A150g, - "SUBCORE_VM_FIXED1580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1580A150g, - "SUBCORE_VM_FIXED1600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600A150g, - "SUBCORE_VM_FIXED1620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620A150g, - "SUBCORE_VM_FIXED1640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1640A150g, - "SUBCORE_VM_FIXED1660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1660A150g, - "SUBCORE_VM_FIXED1680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1680A150g, - "SUBCORE_VM_FIXED1700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700A150g, - "SUBCORE_VM_FIXED1720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1720A150g, - "SUBCORE_VM_FIXED1740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1740A150g, - "SUBCORE_VM_FIXED1760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1760A150g, - "SUBCORE_VM_FIXED1780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1780A150g, - "SUBCORE_VM_FIXED1800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800A150g, - "SUBCORE_VM_FIXED1820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1820A150g, - "SUBCORE_VM_FIXED1840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1840A150g, - "SUBCORE_VM_FIXED1860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1860A150g, - "SUBCORE_VM_FIXED1880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1880A150g, - "SUBCORE_VM_FIXED1900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900A150g, - "SUBCORE_VM_FIXED1920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1920A150g, - "SUBCORE_VM_FIXED1940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1940A150g, - "SUBCORE_VM_FIXED1960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1960A150g, - "SUBCORE_VM_FIXED1980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980A150g, - "SUBCORE_VM_FIXED2000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000A150g, - "SUBCORE_VM_FIXED2020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2020A150g, - "SUBCORE_VM_FIXED2040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2040A150g, - "SUBCORE_VM_FIXED2060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2060A150g, - "SUBCORE_VM_FIXED2080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2080A150g, - "SUBCORE_VM_FIXED2100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100A150g, - "SUBCORE_VM_FIXED2120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2120A150g, - "SUBCORE_VM_FIXED2140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2140A150g, - "SUBCORE_VM_FIXED2160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160A150g, - "SUBCORE_VM_FIXED2180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2180A150g, - "SUBCORE_VM_FIXED2200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200A150g, - "SUBCORE_VM_FIXED2220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2220A150g, - "SUBCORE_VM_FIXED2240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2240A150g, - "SUBCORE_VM_FIXED2260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2260A150g, - "SUBCORE_VM_FIXED2280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2280A150g, - "SUBCORE_VM_FIXED2300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300A150g, - "SUBCORE_VM_FIXED2320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2320A150g, - "SUBCORE_VM_FIXED2340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340A150g, - "SUBCORE_VM_FIXED2360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2360A150g, - "SUBCORE_VM_FIXED2380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2380A150g, - "SUBCORE_VM_FIXED2400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400A150g, - "SUBCORE_VM_FIXED2420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2420A150g, - "SUBCORE_VM_FIXED2440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2440A150g, - "SUBCORE_VM_FIXED2460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2460A150g, - "SUBCORE_VM_FIXED2480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2480A150g, - "SUBCORE_VM_FIXED2500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500A150g, - "SUBCORE_VM_FIXED2520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520A150g, - "SUBCORE_VM_FIXED2540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2540A150g, - "SUBCORE_VM_FIXED2560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2560A150g, - "SUBCORE_VM_FIXED2580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2580A150g, - "SUBCORE_VM_FIXED2600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600A150g, - "SUBCORE_VM_FIXED2620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2620A150g, - "SUBCORE_VM_FIXED2640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2640A150g, - "SUBCORE_VM_FIXED2660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2660A150g, - "SUBCORE_VM_FIXED2680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2680A150g, - "SUBCORE_VM_FIXED2700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700A150g, - "SUBCORE_VM_FIXED2720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2720A150g, - "SUBCORE_VM_FIXED2740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2740A150g, - "SUBCORE_VM_FIXED2760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2760A150g, - "SUBCORE_VM_FIXED2780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2780A150g, - "SUBCORE_VM_FIXED2800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800A150g, - "SUBCORE_VM_FIXED2820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2820A150g, - "SUBCORE_VM_FIXED2840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2840A150g, - "SUBCORE_VM_FIXED2860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2860A150g, - "SUBCORE_VM_FIXED2880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880A150g, - "SUBCORE_VM_FIXED2900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900A150g, - "SUBCORE_VM_FIXED2920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2920A150g, - "SUBCORE_VM_FIXED2940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2940A150g, - "SUBCORE_VM_FIXED2960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2960A150g, - "SUBCORE_VM_FIXED2980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2980A150g, - "SUBCORE_VM_FIXED3000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000A150g, - "SUBCORE_VM_FIXED3020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3020A150g, - "SUBCORE_VM_FIXED3040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3040A150g, - "SUBCORE_VM_FIXED3060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060A150g, - "SUBCORE_VM_FIXED3080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3080A150g, - "SUBCORE_VM_FIXED3100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100A150g, - "SUBCORE_VM_FIXED3120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3120A150g, - "SUBCORE_VM_FIXED3140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3140A150g, - "SUBCORE_VM_FIXED3160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3160A150g, - "SUBCORE_VM_FIXED3180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3180A150g, - "SUBCORE_VM_FIXED3200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200A150g, - "SUBCORE_VM_FIXED3220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3220A150g, - "SUBCORE_VM_FIXED3240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240A150g, - "SUBCORE_VM_FIXED3260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3260A150g, - "SUBCORE_VM_FIXED3280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3280A150g, - "SUBCORE_VM_FIXED3300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300A150g, - "SUBCORE_VM_FIXED3320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3320A150g, - "SUBCORE_VM_FIXED3340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3340A150g, - "SUBCORE_VM_FIXED3360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3360A150g, - "SUBCORE_VM_FIXED3380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3380A150g, - "SUBCORE_VM_FIXED3400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400A150g, - "SUBCORE_VM_FIXED3420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420A150g, - "SUBCORE_VM_FIXED3440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3440A150g, - "SUBCORE_VM_FIXED3460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3460A150g, - "SUBCORE_VM_FIXED3480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3480A150g, - "SUBCORE_VM_FIXED3500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500A150g, - "SUBCORE_VM_FIXED3520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3520A150g, - "SUBCORE_VM_FIXED3540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3540A150g, - "SUBCORE_VM_FIXED3560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3560A150g, - "SUBCORE_VM_FIXED3580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3580A150g, - "SUBCORE_VM_FIXED3600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600A150g, - "SUBCORE_VM_FIXED3620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3620A150g, - "SUBCORE_VM_FIXED3640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3640A150g, - "SUBCORE_VM_FIXED3660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3660A150g, - "SUBCORE_VM_FIXED3680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3680A150g, - "SUBCORE_VM_FIXED3700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700A150g, - "SUBCORE_VM_FIXED3720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3720A150g, - "SUBCORE_VM_FIXED3740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3740A150g, - "SUBCORE_VM_FIXED3760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3760A150g, - "SUBCORE_VM_FIXED3780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780A150g, - "SUBCORE_VM_FIXED3800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800A150g, - "SUBCORE_VM_FIXED3820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3820A150g, - "SUBCORE_VM_FIXED3840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3840A150g, - "SUBCORE_VM_FIXED3860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3860A150g, - "SUBCORE_VM_FIXED3880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3880A150g, - "SUBCORE_VM_FIXED3900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900A150g, - "SUBCORE_VM_FIXED3920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3920A150g, - "SUBCORE_VM_FIXED3940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3940A150g, - "SUBCORE_VM_FIXED3960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960A150g, - "SUBCORE_VM_FIXED3980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3980A150g, - "SUBCORE_VM_FIXED4000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000A150g, - "SUBCORE_VM_FIXED4020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4020A150g, - "SUBCORE_VM_FIXED4040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4040A150g, - "SUBCORE_VM_FIXED4060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4060A150g, - "SUBCORE_VM_FIXED4080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4080A150g, - "SUBCORE_VM_FIXED4100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100A150g, - "SUBCORE_VM_FIXED4120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4120A150g, - "SUBCORE_VM_FIXED4140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140A150g, - "SUBCORE_VM_FIXED4160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4160A150g, - "SUBCORE_VM_FIXED4180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4180A150g, - "SUBCORE_VM_FIXED4200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200A150g, - "SUBCORE_VM_FIXED4220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4220A150g, - "SUBCORE_VM_FIXED4240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4240A150g, - "SUBCORE_VM_FIXED4260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4260A150g, - "SUBCORE_VM_FIXED4280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4280A150g, - "SUBCORE_VM_FIXED4300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300A150g, - "SUBCORE_VM_FIXED4320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320A150g, - "SUBCORE_VM_FIXED4340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4340A150g, - "SUBCORE_VM_FIXED4360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4360A150g, - "SUBCORE_VM_FIXED4380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4380A150g, - "SUBCORE_VM_FIXED4400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400A150g, - "SUBCORE_VM_FIXED4420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4420A150g, - "SUBCORE_VM_FIXED4440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4440A150g, - "SUBCORE_VM_FIXED4460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4460A150g, - "SUBCORE_VM_FIXED4480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4480A150g, - "SUBCORE_VM_FIXED4500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500A150g, - "SUBCORE_VM_FIXED4520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4520A150g, - "SUBCORE_VM_FIXED4540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4540A150g, - "SUBCORE_VM_FIXED4560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4560A150g, - "SUBCORE_VM_FIXED4580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4580A150g, - "SUBCORE_VM_FIXED4600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600A150g, - "SUBCORE_VM_FIXED4620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4620A150g, - "SUBCORE_VM_FIXED4640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4640A150g, - "SUBCORE_VM_FIXED4660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4660A150g, - "SUBCORE_VM_FIXED4680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680A150g, - "SUBCORE_VM_FIXED4700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700A150g, - "SUBCORE_VM_FIXED4720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4720A150g, - "SUBCORE_VM_FIXED4740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4740A150g, - "SUBCORE_VM_FIXED4760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4760A150g, - "SUBCORE_VM_FIXED4780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4780A150g, - "SUBCORE_VM_FIXED4800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800A150g, - "SUBCORE_VM_FIXED4820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4820A150g, - "SUBCORE_VM_FIXED4840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4840A150g, - "SUBCORE_VM_FIXED4860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860A150g, - "SUBCORE_VM_FIXED4880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4880A150g, - "SUBCORE_VM_FIXED4900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900A150g, - "SUBCORE_VM_FIXED4920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4920A150g, - "SUBCORE_VM_FIXED4940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4940A150g, - "SUBCORE_VM_FIXED4960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4960A150g, - "SUBCORE_VM_FIXED4980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4980A150g, - "SUBCORE_VM_FIXED5000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000A150g, - "SUBCORE_VM_FIXED0090_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0090X950g, - "SUBCORE_VM_FIXED0180_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180X950g, - "SUBCORE_VM_FIXED0270_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0270X950g, - "SUBCORE_VM_FIXED0360_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360X950g, - "SUBCORE_VM_FIXED0450_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450X950g, - "SUBCORE_VM_FIXED0540_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540X950g, - "SUBCORE_VM_FIXED0630_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0630X950g, - "SUBCORE_VM_FIXED0720_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720X950g, - "SUBCORE_VM_FIXED0810_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0810X950g, - "SUBCORE_VM_FIXED0900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900X950g, - "SUBCORE_VM_FIXED0990_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0990X950g, - "SUBCORE_VM_FIXED1080_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080X950g, - "SUBCORE_VM_FIXED1170_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1170X950g, - "SUBCORE_VM_FIXED1260_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260X950g, - "SUBCORE_VM_FIXED1350_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350X950g, - "SUBCORE_VM_FIXED1440_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440X950g, - "SUBCORE_VM_FIXED1530_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1530X950g, - "SUBCORE_VM_FIXED1620_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620X950g, - "SUBCORE_VM_FIXED1710_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1710X950g, - "SUBCORE_VM_FIXED1800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800X950g, - "SUBCORE_VM_FIXED1890_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1890X950g, - "SUBCORE_VM_FIXED1980_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980X950g, - "SUBCORE_VM_FIXED2070_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2070X950g, - "SUBCORE_VM_FIXED2160_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160X950g, - "SUBCORE_VM_FIXED2250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250X950g, - "SUBCORE_VM_FIXED2340_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340X950g, - "SUBCORE_VM_FIXED2430_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2430X950g, - "SUBCORE_VM_FIXED2520_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520X950g, - "SUBCORE_VM_FIXED2610_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2610X950g, - "SUBCORE_VM_FIXED2700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700X950g, - "SUBCORE_VM_FIXED2790_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2790X950g, - "SUBCORE_VM_FIXED2880_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880X950g, - "SUBCORE_VM_FIXED2970_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2970X950g, - "SUBCORE_VM_FIXED3060_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060X950g, - "SUBCORE_VM_FIXED3150_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150X950g, - "SUBCORE_VM_FIXED3240_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240X950g, - "SUBCORE_VM_FIXED3330_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3330X950g, - "SUBCORE_VM_FIXED3420_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420X950g, - "SUBCORE_VM_FIXED3510_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3510X950g, - "SUBCORE_VM_FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600X950g, - "SUBCORE_VM_FIXED3690_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3690X950g, - "SUBCORE_VM_FIXED3780_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780X950g, - "SUBCORE_VM_FIXED3870_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3870X950g, - "SUBCORE_VM_FIXED3960_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960X950g, - "SUBCORE_VM_FIXED4050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050X950g, - "SUBCORE_VM_FIXED4140_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140X950g, - "SUBCORE_VM_FIXED4230_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4230X950g, - "SUBCORE_VM_FIXED4320_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320X950g, - "SUBCORE_VM_FIXED4410_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4410X950g, - "SUBCORE_VM_FIXED4500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500X950g, - "SUBCORE_VM_FIXED4590_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4590X950g, - "SUBCORE_VM_FIXED4680_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680X950g, - "SUBCORE_VM_FIXED4770_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4770X950g, - "SUBCORE_VM_FIXED4860_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860X950g, - "SUBCORE_VM_FIXED4950_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950X950g, - "DYNAMIC_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicA150g, - "FIXED0040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040A150g, - "FIXED0100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100A150g, - "FIXED0200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200A150g, - "FIXED0300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300A150g, - "FIXED0400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400A150g, - "FIXED0500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500A150g, - "FIXED0600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600A150g, - "FIXED0700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700A150g, - "FIXED0800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800A150g, - "FIXED0900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900A150g, - "FIXED1000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000A150g, - "FIXED1100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100A150g, - "FIXED1200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200A150g, - "FIXED1300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300A150g, - "FIXED1400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400A150g, - "FIXED1500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500A150g, - "FIXED1600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600A150g, - "FIXED1700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700A150g, - "FIXED1800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800A150g, - "FIXED1900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900A150g, - "FIXED2000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000A150g, - "FIXED2100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100A150g, - "FIXED2200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200A150g, - "FIXED2300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300A150g, - "FIXED2400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400A150g, - "FIXED2500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500A150g, - "FIXED2600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600A150g, - "FIXED2700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700A150g, - "FIXED2800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800A150g, - "FIXED2900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900A150g, - "FIXED3000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000A150g, - "FIXED3100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100A150g, - "FIXED3200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200A150g, - "FIXED3300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300A150g, - "FIXED3400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400A150g, - "FIXED3500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500A150g, - "FIXED3600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600A150g, - "FIXED3700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700A150g, - "FIXED3800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800A150g, - "FIXED3900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900A150g, - "FIXED4000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000A150g, - "ENTIREHOST_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostA150g, - "DYNAMIC_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicX950g, - "FIXED0040_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040X950g, - "FIXED0400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400X950g, - "FIXED0800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800X950g, - "FIXED1200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200X950g, - "FIXED1600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600X950g, - "FIXED2000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000X950g, - "FIXED2400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400X950g, - "FIXED2800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800X950g, - "FIXED3200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200X950g, - "FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600X950g, - "FIXED4000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000X950g, - "STANDARD_VM_FIXED0200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0200X950g, - "STANDARD_VM_FIXED0400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0400X950g, - "STANDARD_VM_FIXED0600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0600X950g, - "STANDARD_VM_FIXED0800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0800X950g, - "STANDARD_VM_FIXED1000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1000X950g, - "STANDARD_VM_FIXED1200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1200X950g, - "STANDARD_VM_FIXED1400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1400X950g, - "STANDARD_VM_FIXED1600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1600X950g, - "STANDARD_VM_FIXED1800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1800X950g, - "STANDARD_VM_FIXED2000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2000X950g, - "STANDARD_VM_FIXED2200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2200X950g, - "STANDARD_VM_FIXED2400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2400X950g, - "STANDARD_VM_FIXED2600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2600X950g, - "STANDARD_VM_FIXED2800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2800X950g, - "STANDARD_VM_FIXED3000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3000X950g, - "STANDARD_VM_FIXED3200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3200X950g, - "STANDARD_VM_FIXED3400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3400X950g, - "STANDARD_VM_FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3600X950g, - "STANDARD_VM_FIXED3800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3800X950g, - "STANDARD_VM_FIXED4000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed4000X950g, - "ENTIREHOST_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostX950g, -} - -// GetCreateInternalVnicAttachmentDetailsVnicShapeEnumValues Enumerates the set of values for CreateInternalVnicAttachmentDetailsVnicShapeEnum -func GetCreateInternalVnicAttachmentDetailsVnicShapeEnumValues() []CreateInternalVnicAttachmentDetailsVnicShapeEnum { - values := make([]CreateInternalVnicAttachmentDetailsVnicShapeEnum, 0) - for _, v := range mappingCreateInternalVnicAttachmentDetailsVnicShape { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_details.go deleted file mode 100644 index 125ad4e02e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_details.go +++ /dev/null @@ -1,1970 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternalVnicDetails This structure is used when creating vnic for internal clients. -// For more information about VNICs, see -// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). -type CreateInternalVnicDetails struct { - - // Whether the VNIC should be assigned a public IP address. Defaults to whether - // the subnet is public or private. If not set and the VNIC is being created - // in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the - // Subnet), then no public IP address is assigned. - // If not set and the subnet is public (`prohibitPublicIpOnVnic` = false), then - // a public IP address is assigned. If set to true and - // `prohibitPublicIpOnVnic` = true, an error is returned. - // **Note:** This public IP address is associated with the primary private IP - // on the VNIC. For more information, see - // IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). - // **Note:** There's a limit to the number of PublicIp - // a VNIC or instance can have. If you try to create a secondary VNIC - // with an assigned public IP for an instance that has already - // reached its public IP limit, an error is returned. For information - // about the public IP limits, see - // Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). - // Example: `false` - AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"` - - // The availability domain of the instance. - // Availability domain can not be provided if isServiceVnic is true, it is required otherwise. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Not for general use! - // Contact sic_vcn_us_grp@oracle.com before setting this flag. - // Indicates that the Cavium should not enforce Internet ingress/egress throttling. - // Defaults to `false`, in which case we do enforce that throttling. - // At least one of subnetId OR the vlanId are required - BypassInternetThrottle *bool `mandatory:"false" json:"bypassInternetThrottle"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname - // portion of the primary private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // RFC 952 (https://tools.ietf.org/html/rfc952) and - // RFC 1123 (https://tools.ietf.org/html/rfc1123). - // The value appears in the Vnic object and also the - // PrivateIp object returned by - // ListPrivateIps and - // GetPrivateIp. - // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // When launching an instance, use this `hostnameLabel` instead - // of the deprecated `hostnameLabel` in - // LaunchInstanceDetails. - // If you provide both, the values must match. - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // Indicates if the VNIC is associated with (and will be attached to) a BM instance. - IsBmVnic *bool `mandatory:"false" json:"isBmVnic"` - - // Indicates if the VNIC is bridge which means cavium will ARP for its MAC address. - IsBridgeVnic *bool `mandatory:"false" json:"isBridgeVnic"` - - // Indicates if this VNIC can issue GARP requests. False by default. - IsGarpEnabled *bool `mandatory:"false" json:"isGarpEnabled"` - - // Indicates if MAC learning is enabled for the VNIC. The default is `false`. - // When this flag is enabled, then VCN CP does not allocate MAC address, - // hence MAC address will be set as null as part of the VNIC that is returned. - IsMacLearningEnabled *bool `mandatory:"false" json:"isMacLearningEnabled"` - - // Indicates if the VNIC is managed by a internal partner team. And customer is not allowed - // the perform update/delete operations on it directly. - // Defaults to `False` - IsManaged *bool `mandatory:"false" json:"isManaged"` - - // Indicates if the VNIC is primary which means it cannot be detached. - IsPrimary *bool `mandatory:"false" json:"isPrimary"` - - // Indicates if the VNIC is a service vnic. - IsServiceVnic *bool `mandatory:"false" json:"isServiceVnic"` - - // Only provided when no publicIpPoolId is specified. - InternalPoolName CreateInternalVnicDetailsInternalPoolNameEnum `mandatory:"false" json:"internalPoolName,omitempty"` - - // The overlay MAC address of the instance - MacAddress *string `mandatory:"false" json:"macAddress"` - - // A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more - // information about NSGs, see - // NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // ID of the entity owning the VNIC. This is passed in the create vnic call. - // If none is passed and if there is an attachment then the attached instanceId is the ownerId. - OwnerId *string `mandatory:"false" json:"ownerId"` - - // A private IP address of your choice to assign to the VNIC. Must be an - // available IP address within the subnet's CIDR. If you don't specify a - // value, Oracle automatically assigns a private IP address from the subnet. - // This is the VNIC's *primary* private IP address. The value appears in - // the Vnic object and also the - // PrivateIp object returned by - // ListPrivateIps and - // GetPrivateIp. - // Example: `10.0.3.3` - PrivateIp *string `mandatory:"false" json:"privateIp"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created by the current tenancy - PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` - - // ID of the customer visible upstream resource that the VNIC is associated with. This property is - // exposed to customers as part of API to list members of a network security group. - // For example, if the VNIC is associated with a loadbalancer or dbsystem instance, then it needs - // to be set to corresponding customer visible loadbalancer or dbsystem instance OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - // Note that the partner team creating/managing the VNIC is owner of this metadata. - ResourceId *string `mandatory:"false" json:"resourceId"` - - // Type of the customer visible upstream resource that the VNIC is associated with. This property can be - // exposed to customers as part of API to list members of a network security group. - // For example, it can be set as, - // - `loadbalancer` if corresponding resourceId is a loadbalancer instance's OCID - // - `dbsystem` if corresponding resourceId is a dbsystem instance's OCID - // Note that the partner team creating/managing the VNIC is owner of this metadata. - ResourceType *string `mandatory:"false" json:"resourceType"` - - // Whether the source/destination check is disabled on the VNIC. - // Defaults to `false`, which means the check is performed. For information - // about why you would skip the source/destination check, see - // Using a Private IP as a Route Target (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). - // Example: `true` - SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet to create the VNIC in. When launching an instance, - // use this `subnetId` instead of the deprecated `subnetId` in - // LaunchInstanceDetails. - // At least one of them is required; if you provide both, the values must match. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // Usage of system tag keys. These predefined keys are scoped to namespaces. - // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN that the VNIC belongs to - VlanId *string `mandatory:"false" json:"vlanId"` - - // ID of the compartment - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Indicates if generation of NAT IP should be skipped if the associated VNIC has this flag set to true. - IsNatIpAllocationDisabled *bool `mandatory:"false" json:"isNatIpAllocationDisabled"` - - // Indicates if private IP creation should be blocked for external customers. Default to false. - // For example, Exadata team can create private IP through internal api. External customers who call public api - // are prohibited to add private IP to Exadata node. - IsPrivateIpCreationBlocked *bool `mandatory:"false" json:"isPrivateIpCreationBlocked"` - - // Indicates if the VNIC should get a public IP. - HasPublicIp *bool `mandatory:"false" json:"hasPublicIp"` - - // Indicates if the VNIC is connected to VNIC as a Service. Defaults to `False`. - IsVnicServiceVnic *bool `mandatory:"false" json:"isVnicServiceVnic"` - - // MPLS label to be used with a VNIC connected to VNIC as a Service. Required if isVnicServiceVnic is `True`. - ServiceMplsLabel *int `mandatory:"false" json:"serviceMplsLabel"` - - // Type of service VNIC. Feature or use case that is creating this service VNIC. Used for forecasting, resource limits enforcement, and capacity management. - ServiceVnicType CreateInternalVnicDetailsServiceVnicTypeEnum `mandatory:"false" json:"serviceVnicType,omitempty"` - - // Shape of VNIC that will be used to allocate resource in the data plane once the VNIC is attached - VnicShape CreateInternalVnicDetailsVnicShapeEnum `mandatory:"false" json:"vnicShape,omitempty"` -} - -func (m CreateInternalVnicDetails) String() string { - return common.PointerString(m) -} - -// CreateInternalVnicDetailsInternalPoolNameEnum Enum with underlying type: string -type CreateInternalVnicDetailsInternalPoolNameEnum string - -// Set of constants representing the allowable values for CreateInternalVnicDetailsInternalPoolNameEnum -const ( - CreateInternalVnicDetailsInternalPoolNameExternal CreateInternalVnicDetailsInternalPoolNameEnum = "EXTERNAL" - CreateInternalVnicDetailsInternalPoolNameSociEgress CreateInternalVnicDetailsInternalPoolNameEnum = "SOCI_EGRESS" -) - -var mappingCreateInternalVnicDetailsInternalPoolName = map[string]CreateInternalVnicDetailsInternalPoolNameEnum{ - "EXTERNAL": CreateInternalVnicDetailsInternalPoolNameExternal, - "SOCI_EGRESS": CreateInternalVnicDetailsInternalPoolNameSociEgress, -} - -// GetCreateInternalVnicDetailsInternalPoolNameEnumValues Enumerates the set of values for CreateInternalVnicDetailsInternalPoolNameEnum -func GetCreateInternalVnicDetailsInternalPoolNameEnumValues() []CreateInternalVnicDetailsInternalPoolNameEnum { - values := make([]CreateInternalVnicDetailsInternalPoolNameEnum, 0) - for _, v := range mappingCreateInternalVnicDetailsInternalPoolName { - values = append(values, v) - } - return values -} - -// CreateInternalVnicDetailsServiceVnicTypeEnum Enum with underlying type: string -type CreateInternalVnicDetailsServiceVnicTypeEnum string - -// Set of constants representing the allowable values for CreateInternalVnicDetailsServiceVnicTypeEnum -const ( - CreateInternalVnicDetailsServiceVnicTypePrivateEndpoint CreateInternalVnicDetailsServiceVnicTypeEnum = "PRIVATE_ENDPOINT" - CreateInternalVnicDetailsServiceVnicTypeReverseConnectionEndpoint CreateInternalVnicDetailsServiceVnicTypeEnum = "REVERSE_CONNECTION_ENDPOINT" - CreateInternalVnicDetailsServiceVnicTypeRealVirtualRouter CreateInternalVnicDetailsServiceVnicTypeEnum = "REAL_VIRTUAL_ROUTER" - CreateInternalVnicDetailsServiceVnicTypePrivateDnsEndpoint CreateInternalVnicDetailsServiceVnicTypeEnum = "PRIVATE_DNS_ENDPOINT" -) - -var mappingCreateInternalVnicDetailsServiceVnicType = map[string]CreateInternalVnicDetailsServiceVnicTypeEnum{ - "PRIVATE_ENDPOINT": CreateInternalVnicDetailsServiceVnicTypePrivateEndpoint, - "REVERSE_CONNECTION_ENDPOINT": CreateInternalVnicDetailsServiceVnicTypeReverseConnectionEndpoint, - "REAL_VIRTUAL_ROUTER": CreateInternalVnicDetailsServiceVnicTypeRealVirtualRouter, - "PRIVATE_DNS_ENDPOINT": CreateInternalVnicDetailsServiceVnicTypePrivateDnsEndpoint, -} - -// GetCreateInternalVnicDetailsServiceVnicTypeEnumValues Enumerates the set of values for CreateInternalVnicDetailsServiceVnicTypeEnum -func GetCreateInternalVnicDetailsServiceVnicTypeEnumValues() []CreateInternalVnicDetailsServiceVnicTypeEnum { - values := make([]CreateInternalVnicDetailsServiceVnicTypeEnum, 0) - for _, v := range mappingCreateInternalVnicDetailsServiceVnicType { - values = append(values, v) - } - return values -} - -// CreateInternalVnicDetailsVnicShapeEnum Enum with underlying type: string -type CreateInternalVnicDetailsVnicShapeEnum string - -// Set of constants representing the allowable values for CreateInternalVnicDetailsVnicShapeEnum -const ( - CreateInternalVnicDetailsVnicShapeDynamic CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC" - CreateInternalVnicDetailsVnicShapeFixed0040 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040" - CreateInternalVnicDetailsVnicShapeFixed0060 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0060" - CreateInternalVnicDetailsVnicShapeFixed0060Psm CreateInternalVnicDetailsVnicShapeEnum = "FIXED0060_PSM" - CreateInternalVnicDetailsVnicShapeFixed0100 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100" - CreateInternalVnicDetailsVnicShapeFixed0120 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0120" - CreateInternalVnicDetailsVnicShapeFixed01202x CreateInternalVnicDetailsVnicShapeEnum = "FIXED0120_2X" - CreateInternalVnicDetailsVnicShapeFixed0200 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200" - CreateInternalVnicDetailsVnicShapeFixed0240 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0240" - CreateInternalVnicDetailsVnicShapeFixed0480 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0480" - CreateInternalVnicDetailsVnicShapeEntirehost CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST" - CreateInternalVnicDetailsVnicShapeDynamic25g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_25G" - CreateInternalVnicDetailsVnicShapeFixed004025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_25G" - CreateInternalVnicDetailsVnicShapeFixed010025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_25G" - CreateInternalVnicDetailsVnicShapeFixed020025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_25G" - CreateInternalVnicDetailsVnicShapeFixed040025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_25G" - CreateInternalVnicDetailsVnicShapeFixed080025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_25G" - CreateInternalVnicDetailsVnicShapeFixed160025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_25G" - CreateInternalVnicDetailsVnicShapeFixed240025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_25G" - CreateInternalVnicDetailsVnicShapeEntirehost25g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_25G" - CreateInternalVnicDetailsVnicShapeDynamicE125g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed0040E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed0070E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0070_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed0140E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0140_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed0280E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0280_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed0560E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0560_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed1120E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1120_E1_25G" - CreateInternalVnicDetailsVnicShapeFixed1680E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1680_E1_25G" - CreateInternalVnicDetailsVnicShapeEntirehostE125g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_E1_25G" - CreateInternalVnicDetailsVnicShapeDynamicB125g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_B1_25G" - CreateInternalVnicDetailsVnicShapeFixed0040B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_B1_25G" - CreateInternalVnicDetailsVnicShapeFixed0060B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0060_B1_25G" - CreateInternalVnicDetailsVnicShapeFixed0120B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0120_B1_25G" - CreateInternalVnicDetailsVnicShapeFixed0240B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0240_B1_25G" - CreateInternalVnicDetailsVnicShapeFixed0480B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0480_B1_25G" - CreateInternalVnicDetailsVnicShapeFixed0960B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0960_B1_25G" - CreateInternalVnicDetailsVnicShapeEntirehostB125g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_B1_25G" - CreateInternalVnicDetailsVnicShapeMicroVmFixed0048E125g CreateInternalVnicDetailsVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" - CreateInternalVnicDetailsVnicShapeMicroLbFixed0001E125g CreateInternalVnicDetailsVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" - CreateInternalVnicDetailsVnicShapeVnicaasFixed0200 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FIXED0200" - CreateInternalVnicDetailsVnicShapeVnicaasFixed0400 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FIXED0400" - CreateInternalVnicDetailsVnicShapeVnicaasFixed0700 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FIXED0700" - CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved10g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" - CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved25g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" - CreateInternalVnicDetailsVnicShapeVnicaasTelesis25g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_TELESIS_25G" - CreateInternalVnicDetailsVnicShapeVnicaasTelesis10g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_TELESIS_10G" - CreateInternalVnicDetailsVnicShapeVnicaasAmbassadorFixed0100 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" - CreateInternalVnicDetailsVnicShapeVnicaasPrivatedns CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_PRIVATEDNS" - CreateInternalVnicDetailsVnicShapeVnicaasFwaas CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FWAAS" - CreateInternalVnicDetailsVnicShapeDynamicE350g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0040E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0300_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0500_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0600_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0700_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed0900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0900_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1000_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1100_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1300_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1400_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1500_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1700_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1800_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed1900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1900_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2100_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2200_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2300_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2500_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2600_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2700_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed2900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2900_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3000_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3100_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3300_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3400_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3500_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3700_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3800_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed3900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3900_E3_50G" - CreateInternalVnicDetailsVnicShapeFixed4000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_E3_50G" - CreateInternalVnicDetailsVnicShapeEntirehostE350g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_E3_50G" - CreateInternalVnicDetailsVnicShapeDynamicE450g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0040E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0300_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0500_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0600_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0700_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed0900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0900_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1000_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1100_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1300_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1400_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1500_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1700_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1800_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed1900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1900_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2100_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2200_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2300_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2500_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2600_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2700_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed2900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2900_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3000_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3100_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3300_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3400_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3500_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3700_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3800_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed3900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3900_E4_50G" - CreateInternalVnicDetailsVnicShapeFixed4000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_E4_50G" - CreateInternalVnicDetailsVnicShapeEntirehostE450g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_E4_50G" - CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E350g CreateInternalVnicDetailsVnicShapeEnum = "MICRO_VM_FIXED0050_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0090X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0270X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0630X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0810X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0990X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1170X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1530X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1710X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1890X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2070X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2430X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2610X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2790X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2970X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3330X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3510X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3690X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3870X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4230X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4410X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4590X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4770X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" - CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" - CreateInternalVnicDetailsVnicShapeDynamicA150g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0040A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0300_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0500_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0600_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0700_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed0900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0900_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1000_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1100_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1300_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1400_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1500_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1700_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1800_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed1900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1900_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2100_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2200_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2300_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2500_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2600_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2700_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed2900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2900_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3000_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3100_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3300_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3400_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3500_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3700_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3800_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed3900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3900_A1_50G" - CreateInternalVnicDetailsVnicShapeFixed4000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_A1_50G" - CreateInternalVnicDetailsVnicShapeEntirehostA150g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_A1_50G" - CreateInternalVnicDetailsVnicShapeDynamicX950g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed0040X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed0400X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed0800X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed1200X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed1600X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed2000X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed2400X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed2800X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed3200X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_X9_50G" - CreateInternalVnicDetailsVnicShapeFixed4000X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed0200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed0400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed0600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed0800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed1000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed1200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed1400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed1600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed1800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed2000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed2200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed2400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed2600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed2800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed3000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed3200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed3400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed3800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" - CreateInternalVnicDetailsVnicShapeStandardVmFixed4000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" - CreateInternalVnicDetailsVnicShapeEntirehostX950g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_X9_50G" -) - -var mappingCreateInternalVnicDetailsVnicShape = map[string]CreateInternalVnicDetailsVnicShapeEnum{ - "DYNAMIC": CreateInternalVnicDetailsVnicShapeDynamic, - "FIXED0040": CreateInternalVnicDetailsVnicShapeFixed0040, - "FIXED0060": CreateInternalVnicDetailsVnicShapeFixed0060, - "FIXED0060_PSM": CreateInternalVnicDetailsVnicShapeFixed0060Psm, - "FIXED0100": CreateInternalVnicDetailsVnicShapeFixed0100, - "FIXED0120": CreateInternalVnicDetailsVnicShapeFixed0120, - "FIXED0120_2X": CreateInternalVnicDetailsVnicShapeFixed01202x, - "FIXED0200": CreateInternalVnicDetailsVnicShapeFixed0200, - "FIXED0240": CreateInternalVnicDetailsVnicShapeFixed0240, - "FIXED0480": CreateInternalVnicDetailsVnicShapeFixed0480, - "ENTIREHOST": CreateInternalVnicDetailsVnicShapeEntirehost, - "DYNAMIC_25G": CreateInternalVnicDetailsVnicShapeDynamic25g, - "FIXED0040_25G": CreateInternalVnicDetailsVnicShapeFixed004025g, - "FIXED0100_25G": CreateInternalVnicDetailsVnicShapeFixed010025g, - "FIXED0200_25G": CreateInternalVnicDetailsVnicShapeFixed020025g, - "FIXED0400_25G": CreateInternalVnicDetailsVnicShapeFixed040025g, - "FIXED0800_25G": CreateInternalVnicDetailsVnicShapeFixed080025g, - "FIXED1600_25G": CreateInternalVnicDetailsVnicShapeFixed160025g, - "FIXED2400_25G": CreateInternalVnicDetailsVnicShapeFixed240025g, - "ENTIREHOST_25G": CreateInternalVnicDetailsVnicShapeEntirehost25g, - "DYNAMIC_E1_25G": CreateInternalVnicDetailsVnicShapeDynamicE125g, - "FIXED0040_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0040E125g, - "FIXED0070_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0070E125g, - "FIXED0140_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0140E125g, - "FIXED0280_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0280E125g, - "FIXED0560_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0560E125g, - "FIXED1120_E1_25G": CreateInternalVnicDetailsVnicShapeFixed1120E125g, - "FIXED1680_E1_25G": CreateInternalVnicDetailsVnicShapeFixed1680E125g, - "ENTIREHOST_E1_25G": CreateInternalVnicDetailsVnicShapeEntirehostE125g, - "DYNAMIC_B1_25G": CreateInternalVnicDetailsVnicShapeDynamicB125g, - "FIXED0040_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0040B125g, - "FIXED0060_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0060B125g, - "FIXED0120_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0120B125g, - "FIXED0240_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0240B125g, - "FIXED0480_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0480B125g, - "FIXED0960_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0960B125g, - "ENTIREHOST_B1_25G": CreateInternalVnicDetailsVnicShapeEntirehostB125g, - "MICRO_VM_FIXED0048_E1_25G": CreateInternalVnicDetailsVnicShapeMicroVmFixed0048E125g, - "MICRO_LB_FIXED0001_E1_25G": CreateInternalVnicDetailsVnicShapeMicroLbFixed0001E125g, - "VNICAAS_FIXED0200": CreateInternalVnicDetailsVnicShapeVnicaasFixed0200, - "VNICAAS_FIXED0400": CreateInternalVnicDetailsVnicShapeVnicaasFixed0400, - "VNICAAS_FIXED0700": CreateInternalVnicDetailsVnicShapeVnicaasFixed0700, - "VNICAAS_NLB_APPROVED_10G": CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved10g, - "VNICAAS_NLB_APPROVED_25G": CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved25g, - "VNICAAS_TELESIS_25G": CreateInternalVnicDetailsVnicShapeVnicaasTelesis25g, - "VNICAAS_TELESIS_10G": CreateInternalVnicDetailsVnicShapeVnicaasTelesis10g, - "VNICAAS_AMBASSADOR_FIXED0100": CreateInternalVnicDetailsVnicShapeVnicaasAmbassadorFixed0100, - "VNICAAS_PRIVATEDNS": CreateInternalVnicDetailsVnicShapeVnicaasPrivatedns, - "VNICAAS_FWAAS": CreateInternalVnicDetailsVnicShapeVnicaasFwaas, - "DYNAMIC_E3_50G": CreateInternalVnicDetailsVnicShapeDynamicE350g, - "FIXED0040_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0040E350g, - "FIXED0100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0100E350g, - "FIXED0200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0200E350g, - "FIXED0300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0300E350g, - "FIXED0400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0400E350g, - "FIXED0500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0500E350g, - "FIXED0600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0600E350g, - "FIXED0700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0700E350g, - "FIXED0800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0800E350g, - "FIXED0900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0900E350g, - "FIXED1000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1000E350g, - "FIXED1100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1100E350g, - "FIXED1200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1200E350g, - "FIXED1300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1300E350g, - "FIXED1400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1400E350g, - "FIXED1500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1500E350g, - "FIXED1600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1600E350g, - "FIXED1700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1700E350g, - "FIXED1800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1800E350g, - "FIXED1900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1900E350g, - "FIXED2000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2000E350g, - "FIXED2100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2100E350g, - "FIXED2200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2200E350g, - "FIXED2300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2300E350g, - "FIXED2400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2400E350g, - "FIXED2500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2500E350g, - "FIXED2600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2600E350g, - "FIXED2700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2700E350g, - "FIXED2800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2800E350g, - "FIXED2900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2900E350g, - "FIXED3000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3000E350g, - "FIXED3100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3100E350g, - "FIXED3200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3200E350g, - "FIXED3300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3300E350g, - "FIXED3400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3400E350g, - "FIXED3500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3500E350g, - "FIXED3600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3600E350g, - "FIXED3700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3700E350g, - "FIXED3800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3800E350g, - "FIXED3900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3900E350g, - "FIXED4000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed4000E350g, - "ENTIREHOST_E3_50G": CreateInternalVnicDetailsVnicShapeEntirehostE350g, - "DYNAMIC_E4_50G": CreateInternalVnicDetailsVnicShapeDynamicE450g, - "FIXED0040_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0040E450g, - "FIXED0100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0100E450g, - "FIXED0200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0200E450g, - "FIXED0300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0300E450g, - "FIXED0400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0400E450g, - "FIXED0500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0500E450g, - "FIXED0600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0600E450g, - "FIXED0700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0700E450g, - "FIXED0800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0800E450g, - "FIXED0900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0900E450g, - "FIXED1000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1000E450g, - "FIXED1100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1100E450g, - "FIXED1200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1200E450g, - "FIXED1300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1300E450g, - "FIXED1400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1400E450g, - "FIXED1500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1500E450g, - "FIXED1600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1600E450g, - "FIXED1700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1700E450g, - "FIXED1800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1800E450g, - "FIXED1900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1900E450g, - "FIXED2000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2000E450g, - "FIXED2100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2100E450g, - "FIXED2200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2200E450g, - "FIXED2300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2300E450g, - "FIXED2400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2400E450g, - "FIXED2500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2500E450g, - "FIXED2600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2600E450g, - "FIXED2700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2700E450g, - "FIXED2800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2800E450g, - "FIXED2900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2900E450g, - "FIXED3000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3000E450g, - "FIXED3100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3100E450g, - "FIXED3200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3200E450g, - "FIXED3300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3300E450g, - "FIXED3400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3400E450g, - "FIXED3500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3500E450g, - "FIXED3600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3600E450g, - "FIXED3700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3700E450g, - "FIXED3800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3800E450g, - "FIXED3900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3900E450g, - "FIXED4000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed4000E450g, - "ENTIREHOST_E4_50G": CreateInternalVnicDetailsVnicShapeEntirehostE450g, - "MICRO_VM_FIXED0050_E3_50G": CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E350g, - "SUBCORE_VM_FIXED0025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E350g, - "SUBCORE_VM_FIXED0050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E350g, - "SUBCORE_VM_FIXED0075_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E350g, - "SUBCORE_VM_FIXED0100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E350g, - "SUBCORE_VM_FIXED0125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E350g, - "SUBCORE_VM_FIXED0150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E350g, - "SUBCORE_VM_FIXED0175_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E350g, - "SUBCORE_VM_FIXED0200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E350g, - "SUBCORE_VM_FIXED0225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E350g, - "SUBCORE_VM_FIXED0250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E350g, - "SUBCORE_VM_FIXED0275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E350g, - "SUBCORE_VM_FIXED0300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E350g, - "SUBCORE_VM_FIXED0325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E350g, - "SUBCORE_VM_FIXED0350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E350g, - "SUBCORE_VM_FIXED0375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E350g, - "SUBCORE_VM_FIXED0400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E350g, - "SUBCORE_VM_FIXED0425_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E350g, - "SUBCORE_VM_FIXED0450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E350g, - "SUBCORE_VM_FIXED0475_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E350g, - "SUBCORE_VM_FIXED0500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E350g, - "SUBCORE_VM_FIXED0525_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E350g, - "SUBCORE_VM_FIXED0550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E350g, - "SUBCORE_VM_FIXED0575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E350g, - "SUBCORE_VM_FIXED0600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E350g, - "SUBCORE_VM_FIXED0625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E350g, - "SUBCORE_VM_FIXED0650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E350g, - "SUBCORE_VM_FIXED0675_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E350g, - "SUBCORE_VM_FIXED0700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E350g, - "SUBCORE_VM_FIXED0725_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E350g, - "SUBCORE_VM_FIXED0750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E350g, - "SUBCORE_VM_FIXED0775_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E350g, - "SUBCORE_VM_FIXED0800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E350g, - "SUBCORE_VM_FIXED0825_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E350g, - "SUBCORE_VM_FIXED0850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E350g, - "SUBCORE_VM_FIXED0875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E350g, - "SUBCORE_VM_FIXED0900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E350g, - "SUBCORE_VM_FIXED0925_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E350g, - "SUBCORE_VM_FIXED0950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E350g, - "SUBCORE_VM_FIXED0975_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E350g, - "SUBCORE_VM_FIXED1000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E350g, - "SUBCORE_VM_FIXED1025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E350g, - "SUBCORE_VM_FIXED1050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E350g, - "SUBCORE_VM_FIXED1075_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E350g, - "SUBCORE_VM_FIXED1100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E350g, - "SUBCORE_VM_FIXED1125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E350g, - "SUBCORE_VM_FIXED1150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E350g, - "SUBCORE_VM_FIXED1175_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E350g, - "SUBCORE_VM_FIXED1200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E350g, - "SUBCORE_VM_FIXED1225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E350g, - "SUBCORE_VM_FIXED1250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E350g, - "SUBCORE_VM_FIXED1275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E350g, - "SUBCORE_VM_FIXED1300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E350g, - "SUBCORE_VM_FIXED1325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E350g, - "SUBCORE_VM_FIXED1350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E350g, - "SUBCORE_VM_FIXED1375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E350g, - "SUBCORE_VM_FIXED1400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E350g, - "SUBCORE_VM_FIXED1425_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E350g, - "SUBCORE_VM_FIXED1450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E350g, - "SUBCORE_VM_FIXED1475_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E350g, - "SUBCORE_VM_FIXED1500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E350g, - "SUBCORE_VM_FIXED1525_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E350g, - "SUBCORE_VM_FIXED1550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E350g, - "SUBCORE_VM_FIXED1575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E350g, - "SUBCORE_VM_FIXED1600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E350g, - "SUBCORE_VM_FIXED1625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E350g, - "SUBCORE_VM_FIXED1650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E350g, - "SUBCORE_VM_FIXED1700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E350g, - "SUBCORE_VM_FIXED1725_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E350g, - "SUBCORE_VM_FIXED1750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E350g, - "SUBCORE_VM_FIXED1800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E350g, - "SUBCORE_VM_FIXED1850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E350g, - "SUBCORE_VM_FIXED1875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E350g, - "SUBCORE_VM_FIXED1900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E350g, - "SUBCORE_VM_FIXED1925_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E350g, - "SUBCORE_VM_FIXED1950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E350g, - "SUBCORE_VM_FIXED2000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E350g, - "SUBCORE_VM_FIXED2025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E350g, - "SUBCORE_VM_FIXED2050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E350g, - "SUBCORE_VM_FIXED2100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E350g, - "SUBCORE_VM_FIXED2125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E350g, - "SUBCORE_VM_FIXED2150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E350g, - "SUBCORE_VM_FIXED2175_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E350g, - "SUBCORE_VM_FIXED2200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E350g, - "SUBCORE_VM_FIXED2250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E350g, - "SUBCORE_VM_FIXED2275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E350g, - "SUBCORE_VM_FIXED2300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E350g, - "SUBCORE_VM_FIXED2325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E350g, - "SUBCORE_VM_FIXED2350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E350g, - "SUBCORE_VM_FIXED2375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E350g, - "SUBCORE_VM_FIXED2400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E350g, - "SUBCORE_VM_FIXED2450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E350g, - "SUBCORE_VM_FIXED2475_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E350g, - "SUBCORE_VM_FIXED2500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E350g, - "SUBCORE_VM_FIXED2550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E350g, - "SUBCORE_VM_FIXED2600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E350g, - "SUBCORE_VM_FIXED2625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E350g, - "SUBCORE_VM_FIXED2650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E350g, - "SUBCORE_VM_FIXED2700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E350g, - "SUBCORE_VM_FIXED2750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E350g, - "SUBCORE_VM_FIXED2775_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E350g, - "SUBCORE_VM_FIXED2800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E350g, - "SUBCORE_VM_FIXED2850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E350g, - "SUBCORE_VM_FIXED2875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E350g, - "SUBCORE_VM_FIXED2900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E350g, - "SUBCORE_VM_FIXED2925_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E350g, - "SUBCORE_VM_FIXED2950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E350g, - "SUBCORE_VM_FIXED2975_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E350g, - "SUBCORE_VM_FIXED3000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E350g, - "SUBCORE_VM_FIXED3025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E350g, - "SUBCORE_VM_FIXED3050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E350g, - "SUBCORE_VM_FIXED3075_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E350g, - "SUBCORE_VM_FIXED3100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E350g, - "SUBCORE_VM_FIXED3125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E350g, - "SUBCORE_VM_FIXED3150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E350g, - "SUBCORE_VM_FIXED3200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E350g, - "SUBCORE_VM_FIXED3225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E350g, - "SUBCORE_VM_FIXED3250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E350g, - "SUBCORE_VM_FIXED3300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E350g, - "SUBCORE_VM_FIXED3325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E350g, - "SUBCORE_VM_FIXED3375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E350g, - "SUBCORE_VM_FIXED3400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E350g, - "SUBCORE_VM_FIXED3450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E350g, - "SUBCORE_VM_FIXED3500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E350g, - "SUBCORE_VM_FIXED3525_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E350g, - "SUBCORE_VM_FIXED3575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E350g, - "SUBCORE_VM_FIXED3600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E350g, - "SUBCORE_VM_FIXED3625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E350g, - "SUBCORE_VM_FIXED3675_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E350g, - "SUBCORE_VM_FIXED3700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E350g, - "SUBCORE_VM_FIXED3750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E350g, - "SUBCORE_VM_FIXED3800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E350g, - "SUBCORE_VM_FIXED3825_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E350g, - "SUBCORE_VM_FIXED3850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E350g, - "SUBCORE_VM_FIXED3875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E350g, - "SUBCORE_VM_FIXED3900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E350g, - "SUBCORE_VM_FIXED3975_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E350g, - "SUBCORE_VM_FIXED4000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E350g, - "SUBCORE_VM_FIXED4025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E350g, - "SUBCORE_VM_FIXED4050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E350g, - "SUBCORE_VM_FIXED4100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E350g, - "SUBCORE_VM_FIXED4125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E350g, - "SUBCORE_VM_FIXED4200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E350g, - "SUBCORE_VM_FIXED4225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E350g, - "SUBCORE_VM_FIXED4250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E350g, - "SUBCORE_VM_FIXED4275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E350g, - "SUBCORE_VM_FIXED4300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E350g, - "SUBCORE_VM_FIXED4350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E350g, - "SUBCORE_VM_FIXED4375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E350g, - "SUBCORE_VM_FIXED4400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E350g, - "SUBCORE_VM_FIXED4425_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E350g, - "SUBCORE_VM_FIXED4500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E350g, - "SUBCORE_VM_FIXED4550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E350g, - "SUBCORE_VM_FIXED4575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E350g, - "SUBCORE_VM_FIXED4600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E350g, - "SUBCORE_VM_FIXED4625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E350g, - "SUBCORE_VM_FIXED4650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E350g, - "SUBCORE_VM_FIXED4675_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E350g, - "SUBCORE_VM_FIXED4700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E350g, - "SUBCORE_VM_FIXED4725_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E350g, - "SUBCORE_VM_FIXED4750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E350g, - "SUBCORE_VM_FIXED4800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E350g, - "SUBCORE_VM_FIXED4875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E350g, - "SUBCORE_VM_FIXED4900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E350g, - "SUBCORE_VM_FIXED4950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E350g, - "SUBCORE_VM_FIXED5000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E350g, - "SUBCORE_VM_FIXED0025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E450g, - "SUBCORE_VM_FIXED0050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E450g, - "SUBCORE_VM_FIXED0075_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E450g, - "SUBCORE_VM_FIXED0100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E450g, - "SUBCORE_VM_FIXED0125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E450g, - "SUBCORE_VM_FIXED0150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E450g, - "SUBCORE_VM_FIXED0175_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E450g, - "SUBCORE_VM_FIXED0200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E450g, - "SUBCORE_VM_FIXED0225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E450g, - "SUBCORE_VM_FIXED0250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E450g, - "SUBCORE_VM_FIXED0275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E450g, - "SUBCORE_VM_FIXED0300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E450g, - "SUBCORE_VM_FIXED0325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E450g, - "SUBCORE_VM_FIXED0350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E450g, - "SUBCORE_VM_FIXED0375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E450g, - "SUBCORE_VM_FIXED0400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E450g, - "SUBCORE_VM_FIXED0425_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E450g, - "SUBCORE_VM_FIXED0450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E450g, - "SUBCORE_VM_FIXED0475_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E450g, - "SUBCORE_VM_FIXED0500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E450g, - "SUBCORE_VM_FIXED0525_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E450g, - "SUBCORE_VM_FIXED0550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E450g, - "SUBCORE_VM_FIXED0575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E450g, - "SUBCORE_VM_FIXED0600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E450g, - "SUBCORE_VM_FIXED0625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E450g, - "SUBCORE_VM_FIXED0650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E450g, - "SUBCORE_VM_FIXED0675_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E450g, - "SUBCORE_VM_FIXED0700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E450g, - "SUBCORE_VM_FIXED0725_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E450g, - "SUBCORE_VM_FIXED0750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E450g, - "SUBCORE_VM_FIXED0775_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E450g, - "SUBCORE_VM_FIXED0800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E450g, - "SUBCORE_VM_FIXED0825_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E450g, - "SUBCORE_VM_FIXED0850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E450g, - "SUBCORE_VM_FIXED0875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E450g, - "SUBCORE_VM_FIXED0900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E450g, - "SUBCORE_VM_FIXED0925_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E450g, - "SUBCORE_VM_FIXED0950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E450g, - "SUBCORE_VM_FIXED0975_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E450g, - "SUBCORE_VM_FIXED1000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E450g, - "SUBCORE_VM_FIXED1025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E450g, - "SUBCORE_VM_FIXED1050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E450g, - "SUBCORE_VM_FIXED1075_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E450g, - "SUBCORE_VM_FIXED1100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E450g, - "SUBCORE_VM_FIXED1125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E450g, - "SUBCORE_VM_FIXED1150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E450g, - "SUBCORE_VM_FIXED1175_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E450g, - "SUBCORE_VM_FIXED1200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E450g, - "SUBCORE_VM_FIXED1225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E450g, - "SUBCORE_VM_FIXED1250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E450g, - "SUBCORE_VM_FIXED1275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E450g, - "SUBCORE_VM_FIXED1300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E450g, - "SUBCORE_VM_FIXED1325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E450g, - "SUBCORE_VM_FIXED1350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E450g, - "SUBCORE_VM_FIXED1375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E450g, - "SUBCORE_VM_FIXED1400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E450g, - "SUBCORE_VM_FIXED1425_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E450g, - "SUBCORE_VM_FIXED1450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E450g, - "SUBCORE_VM_FIXED1475_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E450g, - "SUBCORE_VM_FIXED1500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E450g, - "SUBCORE_VM_FIXED1525_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E450g, - "SUBCORE_VM_FIXED1550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E450g, - "SUBCORE_VM_FIXED1575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E450g, - "SUBCORE_VM_FIXED1600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E450g, - "SUBCORE_VM_FIXED1625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E450g, - "SUBCORE_VM_FIXED1650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E450g, - "SUBCORE_VM_FIXED1700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E450g, - "SUBCORE_VM_FIXED1725_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E450g, - "SUBCORE_VM_FIXED1750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E450g, - "SUBCORE_VM_FIXED1800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E450g, - "SUBCORE_VM_FIXED1850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E450g, - "SUBCORE_VM_FIXED1875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E450g, - "SUBCORE_VM_FIXED1900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E450g, - "SUBCORE_VM_FIXED1925_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E450g, - "SUBCORE_VM_FIXED1950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E450g, - "SUBCORE_VM_FIXED2000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E450g, - "SUBCORE_VM_FIXED2025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E450g, - "SUBCORE_VM_FIXED2050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E450g, - "SUBCORE_VM_FIXED2100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E450g, - "SUBCORE_VM_FIXED2125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E450g, - "SUBCORE_VM_FIXED2150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E450g, - "SUBCORE_VM_FIXED2175_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E450g, - "SUBCORE_VM_FIXED2200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E450g, - "SUBCORE_VM_FIXED2250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E450g, - "SUBCORE_VM_FIXED2275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E450g, - "SUBCORE_VM_FIXED2300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E450g, - "SUBCORE_VM_FIXED2325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E450g, - "SUBCORE_VM_FIXED2350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E450g, - "SUBCORE_VM_FIXED2375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E450g, - "SUBCORE_VM_FIXED2400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E450g, - "SUBCORE_VM_FIXED2450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E450g, - "SUBCORE_VM_FIXED2475_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E450g, - "SUBCORE_VM_FIXED2500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E450g, - "SUBCORE_VM_FIXED2550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E450g, - "SUBCORE_VM_FIXED2600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E450g, - "SUBCORE_VM_FIXED2625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E450g, - "SUBCORE_VM_FIXED2650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E450g, - "SUBCORE_VM_FIXED2700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E450g, - "SUBCORE_VM_FIXED2750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E450g, - "SUBCORE_VM_FIXED2775_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E450g, - "SUBCORE_VM_FIXED2800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E450g, - "SUBCORE_VM_FIXED2850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E450g, - "SUBCORE_VM_FIXED2875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E450g, - "SUBCORE_VM_FIXED2900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E450g, - "SUBCORE_VM_FIXED2925_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E450g, - "SUBCORE_VM_FIXED2950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E450g, - "SUBCORE_VM_FIXED2975_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E450g, - "SUBCORE_VM_FIXED3000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E450g, - "SUBCORE_VM_FIXED3025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E450g, - "SUBCORE_VM_FIXED3050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E450g, - "SUBCORE_VM_FIXED3075_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E450g, - "SUBCORE_VM_FIXED3100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E450g, - "SUBCORE_VM_FIXED3125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E450g, - "SUBCORE_VM_FIXED3150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E450g, - "SUBCORE_VM_FIXED3200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E450g, - "SUBCORE_VM_FIXED3225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E450g, - "SUBCORE_VM_FIXED3250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E450g, - "SUBCORE_VM_FIXED3300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E450g, - "SUBCORE_VM_FIXED3325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E450g, - "SUBCORE_VM_FIXED3375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E450g, - "SUBCORE_VM_FIXED3400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E450g, - "SUBCORE_VM_FIXED3450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E450g, - "SUBCORE_VM_FIXED3500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E450g, - "SUBCORE_VM_FIXED3525_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E450g, - "SUBCORE_VM_FIXED3575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E450g, - "SUBCORE_VM_FIXED3600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E450g, - "SUBCORE_VM_FIXED3625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E450g, - "SUBCORE_VM_FIXED3675_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E450g, - "SUBCORE_VM_FIXED3700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E450g, - "SUBCORE_VM_FIXED3750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E450g, - "SUBCORE_VM_FIXED3800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E450g, - "SUBCORE_VM_FIXED3825_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E450g, - "SUBCORE_VM_FIXED3850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E450g, - "SUBCORE_VM_FIXED3875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E450g, - "SUBCORE_VM_FIXED3900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E450g, - "SUBCORE_VM_FIXED3975_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E450g, - "SUBCORE_VM_FIXED4000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E450g, - "SUBCORE_VM_FIXED4025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E450g, - "SUBCORE_VM_FIXED4050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E450g, - "SUBCORE_VM_FIXED4100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E450g, - "SUBCORE_VM_FIXED4125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E450g, - "SUBCORE_VM_FIXED4200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E450g, - "SUBCORE_VM_FIXED4225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E450g, - "SUBCORE_VM_FIXED4250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E450g, - "SUBCORE_VM_FIXED4275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E450g, - "SUBCORE_VM_FIXED4300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E450g, - "SUBCORE_VM_FIXED4350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E450g, - "SUBCORE_VM_FIXED4375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E450g, - "SUBCORE_VM_FIXED4400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E450g, - "SUBCORE_VM_FIXED4425_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E450g, - "SUBCORE_VM_FIXED4500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E450g, - "SUBCORE_VM_FIXED4550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E450g, - "SUBCORE_VM_FIXED4575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E450g, - "SUBCORE_VM_FIXED4600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E450g, - "SUBCORE_VM_FIXED4625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E450g, - "SUBCORE_VM_FIXED4650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E450g, - "SUBCORE_VM_FIXED4675_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E450g, - "SUBCORE_VM_FIXED4700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E450g, - "SUBCORE_VM_FIXED4725_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E450g, - "SUBCORE_VM_FIXED4750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E450g, - "SUBCORE_VM_FIXED4800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E450g, - "SUBCORE_VM_FIXED4875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E450g, - "SUBCORE_VM_FIXED4900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E450g, - "SUBCORE_VM_FIXED4950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E450g, - "SUBCORE_VM_FIXED5000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E450g, - "SUBCORE_VM_FIXED0020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0020A150g, - "SUBCORE_VM_FIXED0040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0040A150g, - "SUBCORE_VM_FIXED0060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0060A150g, - "SUBCORE_VM_FIXED0080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0080A150g, - "SUBCORE_VM_FIXED0100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100A150g, - "SUBCORE_VM_FIXED0120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0120A150g, - "SUBCORE_VM_FIXED0140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0140A150g, - "SUBCORE_VM_FIXED0160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0160A150g, - "SUBCORE_VM_FIXED0180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180A150g, - "SUBCORE_VM_FIXED0200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200A150g, - "SUBCORE_VM_FIXED0220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0220A150g, - "SUBCORE_VM_FIXED0240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0240A150g, - "SUBCORE_VM_FIXED0260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0260A150g, - "SUBCORE_VM_FIXED0280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0280A150g, - "SUBCORE_VM_FIXED0300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300A150g, - "SUBCORE_VM_FIXED0320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0320A150g, - "SUBCORE_VM_FIXED0340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0340A150g, - "SUBCORE_VM_FIXED0360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360A150g, - "SUBCORE_VM_FIXED0380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0380A150g, - "SUBCORE_VM_FIXED0400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400A150g, - "SUBCORE_VM_FIXED0420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0420A150g, - "SUBCORE_VM_FIXED0440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0440A150g, - "SUBCORE_VM_FIXED0460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0460A150g, - "SUBCORE_VM_FIXED0480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0480A150g, - "SUBCORE_VM_FIXED0500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500A150g, - "SUBCORE_VM_FIXED0520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0520A150g, - "SUBCORE_VM_FIXED0540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540A150g, - "SUBCORE_VM_FIXED0560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0560A150g, - "SUBCORE_VM_FIXED0580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0580A150g, - "SUBCORE_VM_FIXED0600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600A150g, - "SUBCORE_VM_FIXED0620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0620A150g, - "SUBCORE_VM_FIXED0640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0640A150g, - "SUBCORE_VM_FIXED0660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0660A150g, - "SUBCORE_VM_FIXED0680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0680A150g, - "SUBCORE_VM_FIXED0700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700A150g, - "SUBCORE_VM_FIXED0720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720A150g, - "SUBCORE_VM_FIXED0740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0740A150g, - "SUBCORE_VM_FIXED0760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0760A150g, - "SUBCORE_VM_FIXED0780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0780A150g, - "SUBCORE_VM_FIXED0800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800A150g, - "SUBCORE_VM_FIXED0820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0820A150g, - "SUBCORE_VM_FIXED0840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0840A150g, - "SUBCORE_VM_FIXED0860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0860A150g, - "SUBCORE_VM_FIXED0880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0880A150g, - "SUBCORE_VM_FIXED0900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900A150g, - "SUBCORE_VM_FIXED0920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0920A150g, - "SUBCORE_VM_FIXED0940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0940A150g, - "SUBCORE_VM_FIXED0960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0960A150g, - "SUBCORE_VM_FIXED0980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0980A150g, - "SUBCORE_VM_FIXED1000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000A150g, - "SUBCORE_VM_FIXED1020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1020A150g, - "SUBCORE_VM_FIXED1040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1040A150g, - "SUBCORE_VM_FIXED1060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1060A150g, - "SUBCORE_VM_FIXED1080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080A150g, - "SUBCORE_VM_FIXED1100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100A150g, - "SUBCORE_VM_FIXED1120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1120A150g, - "SUBCORE_VM_FIXED1140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1140A150g, - "SUBCORE_VM_FIXED1160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1160A150g, - "SUBCORE_VM_FIXED1180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1180A150g, - "SUBCORE_VM_FIXED1200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200A150g, - "SUBCORE_VM_FIXED1220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1220A150g, - "SUBCORE_VM_FIXED1240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1240A150g, - "SUBCORE_VM_FIXED1260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260A150g, - "SUBCORE_VM_FIXED1280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1280A150g, - "SUBCORE_VM_FIXED1300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300A150g, - "SUBCORE_VM_FIXED1320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1320A150g, - "SUBCORE_VM_FIXED1340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1340A150g, - "SUBCORE_VM_FIXED1360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1360A150g, - "SUBCORE_VM_FIXED1380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1380A150g, - "SUBCORE_VM_FIXED1400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400A150g, - "SUBCORE_VM_FIXED1420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1420A150g, - "SUBCORE_VM_FIXED1440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440A150g, - "SUBCORE_VM_FIXED1460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1460A150g, - "SUBCORE_VM_FIXED1480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1480A150g, - "SUBCORE_VM_FIXED1500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500A150g, - "SUBCORE_VM_FIXED1520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1520A150g, - "SUBCORE_VM_FIXED1540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1540A150g, - "SUBCORE_VM_FIXED1560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1560A150g, - "SUBCORE_VM_FIXED1580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1580A150g, - "SUBCORE_VM_FIXED1600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600A150g, - "SUBCORE_VM_FIXED1620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620A150g, - "SUBCORE_VM_FIXED1640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1640A150g, - "SUBCORE_VM_FIXED1660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1660A150g, - "SUBCORE_VM_FIXED1680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1680A150g, - "SUBCORE_VM_FIXED1700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700A150g, - "SUBCORE_VM_FIXED1720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1720A150g, - "SUBCORE_VM_FIXED1740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1740A150g, - "SUBCORE_VM_FIXED1760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1760A150g, - "SUBCORE_VM_FIXED1780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1780A150g, - "SUBCORE_VM_FIXED1800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800A150g, - "SUBCORE_VM_FIXED1820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1820A150g, - "SUBCORE_VM_FIXED1840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1840A150g, - "SUBCORE_VM_FIXED1860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1860A150g, - "SUBCORE_VM_FIXED1880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1880A150g, - "SUBCORE_VM_FIXED1900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900A150g, - "SUBCORE_VM_FIXED1920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1920A150g, - "SUBCORE_VM_FIXED1940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1940A150g, - "SUBCORE_VM_FIXED1960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1960A150g, - "SUBCORE_VM_FIXED1980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980A150g, - "SUBCORE_VM_FIXED2000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000A150g, - "SUBCORE_VM_FIXED2020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2020A150g, - "SUBCORE_VM_FIXED2040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2040A150g, - "SUBCORE_VM_FIXED2060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2060A150g, - "SUBCORE_VM_FIXED2080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2080A150g, - "SUBCORE_VM_FIXED2100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100A150g, - "SUBCORE_VM_FIXED2120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2120A150g, - "SUBCORE_VM_FIXED2140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2140A150g, - "SUBCORE_VM_FIXED2160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160A150g, - "SUBCORE_VM_FIXED2180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2180A150g, - "SUBCORE_VM_FIXED2200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200A150g, - "SUBCORE_VM_FIXED2220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2220A150g, - "SUBCORE_VM_FIXED2240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2240A150g, - "SUBCORE_VM_FIXED2260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2260A150g, - "SUBCORE_VM_FIXED2280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2280A150g, - "SUBCORE_VM_FIXED2300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300A150g, - "SUBCORE_VM_FIXED2320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2320A150g, - "SUBCORE_VM_FIXED2340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340A150g, - "SUBCORE_VM_FIXED2360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2360A150g, - "SUBCORE_VM_FIXED2380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2380A150g, - "SUBCORE_VM_FIXED2400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400A150g, - "SUBCORE_VM_FIXED2420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2420A150g, - "SUBCORE_VM_FIXED2440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2440A150g, - "SUBCORE_VM_FIXED2460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2460A150g, - "SUBCORE_VM_FIXED2480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2480A150g, - "SUBCORE_VM_FIXED2500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500A150g, - "SUBCORE_VM_FIXED2520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520A150g, - "SUBCORE_VM_FIXED2540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2540A150g, - "SUBCORE_VM_FIXED2560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2560A150g, - "SUBCORE_VM_FIXED2580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2580A150g, - "SUBCORE_VM_FIXED2600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600A150g, - "SUBCORE_VM_FIXED2620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2620A150g, - "SUBCORE_VM_FIXED2640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2640A150g, - "SUBCORE_VM_FIXED2660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2660A150g, - "SUBCORE_VM_FIXED2680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2680A150g, - "SUBCORE_VM_FIXED2700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700A150g, - "SUBCORE_VM_FIXED2720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2720A150g, - "SUBCORE_VM_FIXED2740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2740A150g, - "SUBCORE_VM_FIXED2760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2760A150g, - "SUBCORE_VM_FIXED2780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2780A150g, - "SUBCORE_VM_FIXED2800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800A150g, - "SUBCORE_VM_FIXED2820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2820A150g, - "SUBCORE_VM_FIXED2840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2840A150g, - "SUBCORE_VM_FIXED2860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2860A150g, - "SUBCORE_VM_FIXED2880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880A150g, - "SUBCORE_VM_FIXED2900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900A150g, - "SUBCORE_VM_FIXED2920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2920A150g, - "SUBCORE_VM_FIXED2940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2940A150g, - "SUBCORE_VM_FIXED2960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2960A150g, - "SUBCORE_VM_FIXED2980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2980A150g, - "SUBCORE_VM_FIXED3000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000A150g, - "SUBCORE_VM_FIXED3020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3020A150g, - "SUBCORE_VM_FIXED3040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3040A150g, - "SUBCORE_VM_FIXED3060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060A150g, - "SUBCORE_VM_FIXED3080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3080A150g, - "SUBCORE_VM_FIXED3100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100A150g, - "SUBCORE_VM_FIXED3120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3120A150g, - "SUBCORE_VM_FIXED3140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3140A150g, - "SUBCORE_VM_FIXED3160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3160A150g, - "SUBCORE_VM_FIXED3180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3180A150g, - "SUBCORE_VM_FIXED3200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200A150g, - "SUBCORE_VM_FIXED3220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3220A150g, - "SUBCORE_VM_FIXED3240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240A150g, - "SUBCORE_VM_FIXED3260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3260A150g, - "SUBCORE_VM_FIXED3280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3280A150g, - "SUBCORE_VM_FIXED3300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300A150g, - "SUBCORE_VM_FIXED3320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3320A150g, - "SUBCORE_VM_FIXED3340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3340A150g, - "SUBCORE_VM_FIXED3360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3360A150g, - "SUBCORE_VM_FIXED3380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3380A150g, - "SUBCORE_VM_FIXED3400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400A150g, - "SUBCORE_VM_FIXED3420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420A150g, - "SUBCORE_VM_FIXED3440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3440A150g, - "SUBCORE_VM_FIXED3460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3460A150g, - "SUBCORE_VM_FIXED3480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3480A150g, - "SUBCORE_VM_FIXED3500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500A150g, - "SUBCORE_VM_FIXED3520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3520A150g, - "SUBCORE_VM_FIXED3540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3540A150g, - "SUBCORE_VM_FIXED3560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3560A150g, - "SUBCORE_VM_FIXED3580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3580A150g, - "SUBCORE_VM_FIXED3600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600A150g, - "SUBCORE_VM_FIXED3620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3620A150g, - "SUBCORE_VM_FIXED3640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3640A150g, - "SUBCORE_VM_FIXED3660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3660A150g, - "SUBCORE_VM_FIXED3680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3680A150g, - "SUBCORE_VM_FIXED3700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700A150g, - "SUBCORE_VM_FIXED3720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3720A150g, - "SUBCORE_VM_FIXED3740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3740A150g, - "SUBCORE_VM_FIXED3760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3760A150g, - "SUBCORE_VM_FIXED3780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780A150g, - "SUBCORE_VM_FIXED3800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800A150g, - "SUBCORE_VM_FIXED3820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3820A150g, - "SUBCORE_VM_FIXED3840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3840A150g, - "SUBCORE_VM_FIXED3860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3860A150g, - "SUBCORE_VM_FIXED3880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3880A150g, - "SUBCORE_VM_FIXED3900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900A150g, - "SUBCORE_VM_FIXED3920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3920A150g, - "SUBCORE_VM_FIXED3940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3940A150g, - "SUBCORE_VM_FIXED3960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960A150g, - "SUBCORE_VM_FIXED3980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3980A150g, - "SUBCORE_VM_FIXED4000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000A150g, - "SUBCORE_VM_FIXED4020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4020A150g, - "SUBCORE_VM_FIXED4040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4040A150g, - "SUBCORE_VM_FIXED4060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4060A150g, - "SUBCORE_VM_FIXED4080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4080A150g, - "SUBCORE_VM_FIXED4100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100A150g, - "SUBCORE_VM_FIXED4120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4120A150g, - "SUBCORE_VM_FIXED4140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140A150g, - "SUBCORE_VM_FIXED4160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4160A150g, - "SUBCORE_VM_FIXED4180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4180A150g, - "SUBCORE_VM_FIXED4200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200A150g, - "SUBCORE_VM_FIXED4220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4220A150g, - "SUBCORE_VM_FIXED4240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4240A150g, - "SUBCORE_VM_FIXED4260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4260A150g, - "SUBCORE_VM_FIXED4280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4280A150g, - "SUBCORE_VM_FIXED4300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300A150g, - "SUBCORE_VM_FIXED4320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320A150g, - "SUBCORE_VM_FIXED4340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4340A150g, - "SUBCORE_VM_FIXED4360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4360A150g, - "SUBCORE_VM_FIXED4380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4380A150g, - "SUBCORE_VM_FIXED4400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400A150g, - "SUBCORE_VM_FIXED4420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4420A150g, - "SUBCORE_VM_FIXED4440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4440A150g, - "SUBCORE_VM_FIXED4460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4460A150g, - "SUBCORE_VM_FIXED4480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4480A150g, - "SUBCORE_VM_FIXED4500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500A150g, - "SUBCORE_VM_FIXED4520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4520A150g, - "SUBCORE_VM_FIXED4540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4540A150g, - "SUBCORE_VM_FIXED4560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4560A150g, - "SUBCORE_VM_FIXED4580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4580A150g, - "SUBCORE_VM_FIXED4600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600A150g, - "SUBCORE_VM_FIXED4620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4620A150g, - "SUBCORE_VM_FIXED4640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4640A150g, - "SUBCORE_VM_FIXED4660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4660A150g, - "SUBCORE_VM_FIXED4680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680A150g, - "SUBCORE_VM_FIXED4700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700A150g, - "SUBCORE_VM_FIXED4720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4720A150g, - "SUBCORE_VM_FIXED4740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4740A150g, - "SUBCORE_VM_FIXED4760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4760A150g, - "SUBCORE_VM_FIXED4780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4780A150g, - "SUBCORE_VM_FIXED4800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800A150g, - "SUBCORE_VM_FIXED4820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4820A150g, - "SUBCORE_VM_FIXED4840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4840A150g, - "SUBCORE_VM_FIXED4860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860A150g, - "SUBCORE_VM_FIXED4880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4880A150g, - "SUBCORE_VM_FIXED4900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900A150g, - "SUBCORE_VM_FIXED4920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4920A150g, - "SUBCORE_VM_FIXED4940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4940A150g, - "SUBCORE_VM_FIXED4960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4960A150g, - "SUBCORE_VM_FIXED4980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4980A150g, - "SUBCORE_VM_FIXED5000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000A150g, - "SUBCORE_VM_FIXED0090_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0090X950g, - "SUBCORE_VM_FIXED0180_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180X950g, - "SUBCORE_VM_FIXED0270_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0270X950g, - "SUBCORE_VM_FIXED0360_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360X950g, - "SUBCORE_VM_FIXED0450_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450X950g, - "SUBCORE_VM_FIXED0540_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540X950g, - "SUBCORE_VM_FIXED0630_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0630X950g, - "SUBCORE_VM_FIXED0720_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720X950g, - "SUBCORE_VM_FIXED0810_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0810X950g, - "SUBCORE_VM_FIXED0900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900X950g, - "SUBCORE_VM_FIXED0990_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0990X950g, - "SUBCORE_VM_FIXED1080_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080X950g, - "SUBCORE_VM_FIXED1170_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1170X950g, - "SUBCORE_VM_FIXED1260_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260X950g, - "SUBCORE_VM_FIXED1350_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350X950g, - "SUBCORE_VM_FIXED1440_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440X950g, - "SUBCORE_VM_FIXED1530_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1530X950g, - "SUBCORE_VM_FIXED1620_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620X950g, - "SUBCORE_VM_FIXED1710_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1710X950g, - "SUBCORE_VM_FIXED1800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800X950g, - "SUBCORE_VM_FIXED1890_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1890X950g, - "SUBCORE_VM_FIXED1980_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980X950g, - "SUBCORE_VM_FIXED2070_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2070X950g, - "SUBCORE_VM_FIXED2160_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160X950g, - "SUBCORE_VM_FIXED2250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250X950g, - "SUBCORE_VM_FIXED2340_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340X950g, - "SUBCORE_VM_FIXED2430_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2430X950g, - "SUBCORE_VM_FIXED2520_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520X950g, - "SUBCORE_VM_FIXED2610_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2610X950g, - "SUBCORE_VM_FIXED2700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700X950g, - "SUBCORE_VM_FIXED2790_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2790X950g, - "SUBCORE_VM_FIXED2880_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880X950g, - "SUBCORE_VM_FIXED2970_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2970X950g, - "SUBCORE_VM_FIXED3060_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060X950g, - "SUBCORE_VM_FIXED3150_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150X950g, - "SUBCORE_VM_FIXED3240_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240X950g, - "SUBCORE_VM_FIXED3330_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3330X950g, - "SUBCORE_VM_FIXED3420_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420X950g, - "SUBCORE_VM_FIXED3510_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3510X950g, - "SUBCORE_VM_FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600X950g, - "SUBCORE_VM_FIXED3690_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3690X950g, - "SUBCORE_VM_FIXED3780_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780X950g, - "SUBCORE_VM_FIXED3870_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3870X950g, - "SUBCORE_VM_FIXED3960_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960X950g, - "SUBCORE_VM_FIXED4050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050X950g, - "SUBCORE_VM_FIXED4140_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140X950g, - "SUBCORE_VM_FIXED4230_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4230X950g, - "SUBCORE_VM_FIXED4320_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320X950g, - "SUBCORE_VM_FIXED4410_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4410X950g, - "SUBCORE_VM_FIXED4500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500X950g, - "SUBCORE_VM_FIXED4590_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4590X950g, - "SUBCORE_VM_FIXED4680_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680X950g, - "SUBCORE_VM_FIXED4770_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4770X950g, - "SUBCORE_VM_FIXED4860_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860X950g, - "SUBCORE_VM_FIXED4950_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950X950g, - "DYNAMIC_A1_50G": CreateInternalVnicDetailsVnicShapeDynamicA150g, - "FIXED0040_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0040A150g, - "FIXED0100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0100A150g, - "FIXED0200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0200A150g, - "FIXED0300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0300A150g, - "FIXED0400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0400A150g, - "FIXED0500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0500A150g, - "FIXED0600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0600A150g, - "FIXED0700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0700A150g, - "FIXED0800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0800A150g, - "FIXED0900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0900A150g, - "FIXED1000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1000A150g, - "FIXED1100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1100A150g, - "FIXED1200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1200A150g, - "FIXED1300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1300A150g, - "FIXED1400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1400A150g, - "FIXED1500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1500A150g, - "FIXED1600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1600A150g, - "FIXED1700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1700A150g, - "FIXED1800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1800A150g, - "FIXED1900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1900A150g, - "FIXED2000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2000A150g, - "FIXED2100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2100A150g, - "FIXED2200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2200A150g, - "FIXED2300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2300A150g, - "FIXED2400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2400A150g, - "FIXED2500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2500A150g, - "FIXED2600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2600A150g, - "FIXED2700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2700A150g, - "FIXED2800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2800A150g, - "FIXED2900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2900A150g, - "FIXED3000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3000A150g, - "FIXED3100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3100A150g, - "FIXED3200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3200A150g, - "FIXED3300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3300A150g, - "FIXED3400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3400A150g, - "FIXED3500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3500A150g, - "FIXED3600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3600A150g, - "FIXED3700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3700A150g, - "FIXED3800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3800A150g, - "FIXED3900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3900A150g, - "FIXED4000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed4000A150g, - "ENTIREHOST_A1_50G": CreateInternalVnicDetailsVnicShapeEntirehostA150g, - "DYNAMIC_X9_50G": CreateInternalVnicDetailsVnicShapeDynamicX950g, - "FIXED0040_X9_50G": CreateInternalVnicDetailsVnicShapeFixed0040X950g, - "FIXED0400_X9_50G": CreateInternalVnicDetailsVnicShapeFixed0400X950g, - "FIXED0800_X9_50G": CreateInternalVnicDetailsVnicShapeFixed0800X950g, - "FIXED1200_X9_50G": CreateInternalVnicDetailsVnicShapeFixed1200X950g, - "FIXED1600_X9_50G": CreateInternalVnicDetailsVnicShapeFixed1600X950g, - "FIXED2000_X9_50G": CreateInternalVnicDetailsVnicShapeFixed2000X950g, - "FIXED2400_X9_50G": CreateInternalVnicDetailsVnicShapeFixed2400X950g, - "FIXED2800_X9_50G": CreateInternalVnicDetailsVnicShapeFixed2800X950g, - "FIXED3200_X9_50G": CreateInternalVnicDetailsVnicShapeFixed3200X950g, - "FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeFixed3600X950g, - "FIXED4000_X9_50G": CreateInternalVnicDetailsVnicShapeFixed4000X950g, - "STANDARD_VM_FIXED0200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0200X950g, - "STANDARD_VM_FIXED0400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0400X950g, - "STANDARD_VM_FIXED0600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0600X950g, - "STANDARD_VM_FIXED0800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0800X950g, - "STANDARD_VM_FIXED1000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1000X950g, - "STANDARD_VM_FIXED1200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1200X950g, - "STANDARD_VM_FIXED1400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1400X950g, - "STANDARD_VM_FIXED1600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1600X950g, - "STANDARD_VM_FIXED1800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1800X950g, - "STANDARD_VM_FIXED2000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2000X950g, - "STANDARD_VM_FIXED2200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2200X950g, - "STANDARD_VM_FIXED2400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2400X950g, - "STANDARD_VM_FIXED2600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2600X950g, - "STANDARD_VM_FIXED2800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2800X950g, - "STANDARD_VM_FIXED3000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3000X950g, - "STANDARD_VM_FIXED3200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3200X950g, - "STANDARD_VM_FIXED3400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3400X950g, - "STANDARD_VM_FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3600X950g, - "STANDARD_VM_FIXED3800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3800X950g, - "STANDARD_VM_FIXED4000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed4000X950g, - "ENTIREHOST_X9_50G": CreateInternalVnicDetailsVnicShapeEntirehostX950g, -} - -// GetCreateInternalVnicDetailsVnicShapeEnumValues Enumerates the set of values for CreateInternalVnicDetailsVnicShapeEnum -func GetCreateInternalVnicDetailsVnicShapeEnumValues() []CreateInternalVnicDetailsVnicShapeEnum { - values := make([]CreateInternalVnicDetailsVnicShapeEnum, 0) - for _, v := range mappingCreateInternalVnicDetailsVnicShape { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_details.go deleted file mode 100644 index 192f702eff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateInternetGatewayDetails The representation of CreateInternetGatewayDetails -type CreateInternetGatewayDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the internet gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Whether the gateway is enabled upon creation. - IsEnabled *bool `mandatory:"true" json:"isEnabled"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the internet gateway is attached to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateInternetGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_details.go deleted file mode 100644 index d4c80b586c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_details.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateIpSecConnectionDetails The representation of CreateIpSecConnectionDetails -type CreateIpSecConnectionDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cpe object. - CpeId *string `mandatory:"true" json:"cpeId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // Static routes to the CPE. A static route's CIDR must not be a - // multicast address or class E address. - // Used for routing a given IPSec tunnel's traffic only if the tunnel - // is using static routing. If you configure at least one tunnel to use static routing, then - // you must provide at least one valid static route. If you configure both - // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. - // For more information, see the important note in IPSecConnection. - // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // Example: `10.0.1.0/24` - // Example: `2001:db8::/32` - StaticRoutes []string `mandatory:"true" json:"staticRoutes"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the - // fully qualified domain name (FQDN)). The type of identifier you provide here must correspond - // to the value for `cpeLocalIdentifierType`. - // If you don't provide a value, the `ipAddress` attribute for the Cpe - // object specified by `cpeId` is used as the `cpeLocalIdentifier`. - // For information about why you'd provide this value, see - // If Your CPE Is Behind a NAT Device (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm#nat). - // Example IP address: `10.0.3.3` - // Example hostname: `cpe.example.com` - CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"` - - // The type of identifier for your CPE device. The value you provide here must correspond to the value - // for `cpeLocalIdentifier`. - CpeLocalIdentifierType CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` - - // Information for creating the individual tunnels in the IPSec connection. You can provide a - // maximum of 2 `tunnelConfiguration` objects in the array (one for each of the - // two tunnels). - TunnelConfiguration []CreateIpSecConnectionTunnelDetails `mandatory:"false" json:"tunnelConfiguration"` -} - -func (m CreateIpSecConnectionDetails) String() string { - return common.PointerString(m) -} - -// CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum Enum with underlying type: string -type CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum string - -// Set of constants representing the allowable values for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum -const ( - CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "IP_ADDRESS" - CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "HOSTNAME" -) - -var mappingCreateIpSecConnectionDetailsCpeLocalIdentifierType = map[string]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{ - "IP_ADDRESS": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress, - "HOSTNAME": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname, -} - -// GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues Enumerates the set of values for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum -func GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues() []CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum { - values := make([]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, 0) - for _, v := range mappingCreateIpSecConnectionDetailsCpeLocalIdentifierType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_tunnel_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_tunnel_details.go deleted file mode 100644 index 6f020bba2e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_connection_tunnel_details.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateIpSecConnectionTunnelDetails The representation of CreateIpSecConnectionTunnelDetails -type CreateIpSecConnectionTunnelDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The type of routing to use for this tunnel (either BGP dynamic routing or static routing). - Routing CreateIpSecConnectionTunnelDetailsRoutingEnum `mandatory:"false" json:"routing,omitempty"` - - // Internet Key Exchange protocol version. - IkeVersion CreateIpSecConnectionTunnelDetailsIkeVersionEnum `mandatory:"false" json:"ikeVersion,omitempty"` - - // The shared secret (pre-shared key) to use for the IPSec tunnel. Only numbers, letters, and - // spaces are allowed. If you don't provide a value, - // Oracle generates a value for you. You can specify your own shared secret later if - // you like with UpdateIPSecConnectionTunnelSharedSecret. - SharedSecret *string `mandatory:"false" json:"sharedSecret"` - - BgpSessionConfig *CreateIpSecTunnelBgpSessionDetails `mandatory:"false" json:"bgpSessionConfig"` - - // Whether Oracle side is the initiator for negotiation. - OracleInitiation CreateIpSecConnectionTunnelDetailsOracleInitiationEnum `mandatory:"false" json:"oracleInitiation,omitempty"` - - // Whether NAT-T Enabled on the tunnel - NatTranslationEnabled CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum `mandatory:"false" json:"natTranslationEnabled,omitempty"` - - PhaseOneConfig *PhaseOneConfigDetails `mandatory:"false" json:"phaseOneConfig"` - - PhaseTwoConfig *PhaseTwoConfigDetails `mandatory:"false" json:"phaseTwoConfig"` - - DpdConfig *DpdConfig `mandatory:"false" json:"dpdConfig"` - - EncryptionDomainConfig *CreateIpSecTunnelEncryptionDomainDetails `mandatory:"false" json:"encryptionDomainConfig"` -} - -func (m CreateIpSecConnectionTunnelDetails) String() string { - return common.PointerString(m) -} - -// CreateIpSecConnectionTunnelDetailsRoutingEnum Enum with underlying type: string -type CreateIpSecConnectionTunnelDetailsRoutingEnum string - -// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsRoutingEnum -const ( - CreateIpSecConnectionTunnelDetailsRoutingBgp CreateIpSecConnectionTunnelDetailsRoutingEnum = "BGP" - CreateIpSecConnectionTunnelDetailsRoutingStatic CreateIpSecConnectionTunnelDetailsRoutingEnum = "STATIC" - CreateIpSecConnectionTunnelDetailsRoutingPolicy CreateIpSecConnectionTunnelDetailsRoutingEnum = "POLICY" -) - -var mappingCreateIpSecConnectionTunnelDetailsRouting = map[string]CreateIpSecConnectionTunnelDetailsRoutingEnum{ - "BGP": CreateIpSecConnectionTunnelDetailsRoutingBgp, - "STATIC": CreateIpSecConnectionTunnelDetailsRoutingStatic, - "POLICY": CreateIpSecConnectionTunnelDetailsRoutingPolicy, -} - -// GetCreateIpSecConnectionTunnelDetailsRoutingEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsRoutingEnum -func GetCreateIpSecConnectionTunnelDetailsRoutingEnumValues() []CreateIpSecConnectionTunnelDetailsRoutingEnum { - values := make([]CreateIpSecConnectionTunnelDetailsRoutingEnum, 0) - for _, v := range mappingCreateIpSecConnectionTunnelDetailsRouting { - values = append(values, v) - } - return values -} - -// CreateIpSecConnectionTunnelDetailsIkeVersionEnum Enum with underlying type: string -type CreateIpSecConnectionTunnelDetailsIkeVersionEnum string - -// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsIkeVersionEnum -const ( - CreateIpSecConnectionTunnelDetailsIkeVersionV1 CreateIpSecConnectionTunnelDetailsIkeVersionEnum = "V1" - CreateIpSecConnectionTunnelDetailsIkeVersionV2 CreateIpSecConnectionTunnelDetailsIkeVersionEnum = "V2" -) - -var mappingCreateIpSecConnectionTunnelDetailsIkeVersion = map[string]CreateIpSecConnectionTunnelDetailsIkeVersionEnum{ - "V1": CreateIpSecConnectionTunnelDetailsIkeVersionV1, - "V2": CreateIpSecConnectionTunnelDetailsIkeVersionV2, -} - -// GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsIkeVersionEnum -func GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumValues() []CreateIpSecConnectionTunnelDetailsIkeVersionEnum { - values := make([]CreateIpSecConnectionTunnelDetailsIkeVersionEnum, 0) - for _, v := range mappingCreateIpSecConnectionTunnelDetailsIkeVersion { - values = append(values, v) - } - return values -} - -// CreateIpSecConnectionTunnelDetailsOracleInitiationEnum Enum with underlying type: string -type CreateIpSecConnectionTunnelDetailsOracleInitiationEnum string - -// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsOracleInitiationEnum -const ( - CreateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder CreateIpSecConnectionTunnelDetailsOracleInitiationEnum = "INITIATOR_OR_RESPONDER" - CreateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly CreateIpSecConnectionTunnelDetailsOracleInitiationEnum = "RESPONDER_ONLY" -) - -var mappingCreateIpSecConnectionTunnelDetailsOracleInitiation = map[string]CreateIpSecConnectionTunnelDetailsOracleInitiationEnum{ - "INITIATOR_OR_RESPONDER": CreateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder, - "RESPONDER_ONLY": CreateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly, -} - -// GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsOracleInitiationEnum -func GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumValues() []CreateIpSecConnectionTunnelDetailsOracleInitiationEnum { - values := make([]CreateIpSecConnectionTunnelDetailsOracleInitiationEnum, 0) - for _, v := range mappingCreateIpSecConnectionTunnelDetailsOracleInitiation { - values = append(values, v) - } - return values -} - -// CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum Enum with underlying type: string -type CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum string - -// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum -const ( - CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "ENABLED" - CreateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "DISABLED" - CreateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "AUTO" -) - -var mappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabled = map[string]CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum{ - "ENABLED": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled, - "DISABLED": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled, - "AUTO": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto, -} - -// GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum -func GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues() []CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum { - values := make([]CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum, 0) - for _, v := range mappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabled { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_encryption_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_encryption_domain_details.go deleted file mode 100644 index dc84f487fa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_encryption_domain_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateIpSecTunnelEncryptionDomainDetails Request to enable a multi-encryption domain policy on the IPSec tunnel. -// There can't be more than 50 security associations in use at one time. See Encryption domain for policy-based -// tunnels (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/ipsecencryptiondomains.htm#spi_policy_based_tunnel) for more. -type CreateIpSecTunnelEncryptionDomainDetails struct { - - // Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. - OracleTrafficSelector []string `mandatory:"false" json:"oracleTrafficSelector"` - - // Lists IPv4 or IPv6-enabled subnets in your on-premises network. - CpeTrafficSelector []string `mandatory:"false" json:"cpeTrafficSelector"` -} - -func (m CreateIpSecTunnelEncryptionDomainDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_details.go deleted file mode 100644 index 252b205631..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateIpv6Details The representation of CreateIpv6Details -type CreateIpv6Details struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the IPv6 to. The - // IPv6 will be in the VNIC's subnet. - VnicId *string `mandatory:"true" json:"vnicId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // An IPv6 address of your choice. Must be an available IP address within - // the subnet's CIDR. If you don't specify a value, Oracle automatically - // assigns an IPv6 address from the subnet. The subnet is the one that - // contains the VNIC you specify in `vnicId`. - // Example: `2001:DB8::` - IpAddress *string `mandatory:"false" json:"ipAddress"` -} - -func (m CreateIpv6Details) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_details.go deleted file mode 100644 index 2bfa2b84da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_details.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateLocalPeeringConnectionDetails The representation of CreateLocalPeeringConnectionDetails -type CreateLocalPeeringConnectionDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the local peering connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the local peering connection belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m CreateLocalPeeringConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_key.go deleted file mode 100644 index 405e0fa951..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_key.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateMacsecKey Defines the secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s held in Vault that represent the MACSEC key. -type CreateMacsecKey struct { - - // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity association Key Name (CKN) of this MACSEC key. - // NOTE: Only the latest secret version will be used. - ConnectivityAssociationNameSecretId *string `mandatory:"true" json:"connectivityAssociationNameSecretId"` - - // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key (CAK) of this MACSEC key. - // NOTE: Only the latest secret version will be used. - ConnectivityAssociationKeySecretId *string `mandatory:"true" json:"connectivityAssociationKeySecretId"` -} - -func (m CreateMacsecKey) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_properties.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_properties.go deleted file mode 100644 index ecd3f31d98..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_macsec_properties.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateMacsecProperties Properties used to configure MACSEC (if capable). -type CreateMacsecProperties struct { - - // Indicates whether or not MACSEC is enabled. - State MacsecStateEnum `mandatory:"true" json:"state"` - - PrimaryKey *CreateMacsecKey `mandatory:"false" json:"primaryKey"` - - // Type of encryption cipher suite to use for the MACSEC connection. - EncryptionCipher MacsecEncryptionCipherEnum `mandatory:"false" json:"encryptionCipher,omitempty"` -} - -func (m CreateMacsecProperties) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_details.go deleted file mode 100644 index 28732c80e6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_details.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateNatGatewayDetails The representation of CreateNatGatewayDetails -type CreateNatGatewayDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the - // NAT gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the gateway belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether the NAT gateway blocks traffic through it. The default is `false`. - // Example: `true` - BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP address associated with the NAT gateway. - PublicIpId *string `mandatory:"false" json:"publicIpId"` - - // The name of the Oracle managed public IP Pool from which the IP address associated with the NAT gateway is allocated. - InternalPublicIpPoolName CreateNatGatewayDetailsInternalPublicIpPoolNameEnum `mandatory:"false" json:"internalPublicIpPoolName,omitempty"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the NAT Gateway will use. - // If you don't specify a route table here, the NAT Gateway is created without an associated route - // table. The Networking service does NOT automatically associate the attached VCN's default route table - // with the NAT Gateway. - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m CreateNatGatewayDetails) String() string { - return common.PointerString(m) -} - -// CreateNatGatewayDetailsInternalPublicIpPoolNameEnum Enum with underlying type: string -type CreateNatGatewayDetailsInternalPublicIpPoolNameEnum string - -// Set of constants representing the allowable values for CreateNatGatewayDetailsInternalPublicIpPoolNameEnum -const ( - CreateNatGatewayDetailsInternalPublicIpPoolNameExternal CreateNatGatewayDetailsInternalPublicIpPoolNameEnum = "EXTERNAL" - CreateNatGatewayDetailsInternalPublicIpPoolNameSociEgress CreateNatGatewayDetailsInternalPublicIpPoolNameEnum = "SOCI_EGRESS" -) - -var mappingCreateNatGatewayDetailsInternalPublicIpPoolName = map[string]CreateNatGatewayDetailsInternalPublicIpPoolNameEnum{ - "EXTERNAL": CreateNatGatewayDetailsInternalPublicIpPoolNameExternal, - "SOCI_EGRESS": CreateNatGatewayDetailsInternalPublicIpPoolNameSociEgress, -} - -// GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumValues Enumerates the set of values for CreateNatGatewayDetailsInternalPublicIpPoolNameEnum -func GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumValues() []CreateNatGatewayDetailsInternalPublicIpPoolNameEnum { - values := make([]CreateNatGatewayDetailsInternalPublicIpPoolNameEnum, 0) - for _, v := range mappingCreateNatGatewayDetailsInternalPublicIpPoolName { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_details.go deleted file mode 100644 index bb2561260c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateNetworkSecurityGroupDetails The representation of CreateNetworkSecurityGroupDetails -type CreateNetworkSecurityGroupDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the - // network security group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN to create the network - // security group in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateNetworkSecurityGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_details.go deleted file mode 100644 index bf328e0302..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreatePrivateAccessGatewayDetails Details to create a private access gateway (PAG). -type CreatePrivateAccessGatewayDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the PAG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the PAG belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreatePrivateAccessGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_details.go deleted file mode 100644 index 044273710b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_details.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreatePrivateIpNextHopDetails The data to create private IP's nextHop configuration. -type CreatePrivateIpNextHopDetails struct { - - // Details of nextHop targets. - Targets []PrivateIpNextHopTarget `mandatory:"true" json:"targets"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // VNICaaS will flow-hash traffic that matches the service protocol and port. - ServiceProtocolPorts []PrivateIpNextHopProtocolPort `mandatory:"false" json:"serviceProtocolPorts"` -} - -func (m CreatePrivateIpNextHopDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_details.go deleted file mode 100644 index ed39d5f233..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_details.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreatePublicIpDetails The representation of CreatePublicIpDetails -type CreatePublicIpDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the public IP. For ephemeral public IPs, - // you must set this to the private IP's compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defines when the public IP is deleted and released back to the Oracle Cloud - // Infrastructure public IP pool. For more information, see - // Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). - Lifetime CreatePublicIpDetailsLifetimeEnum `mandatory:"true" json:"lifetime"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP to assign the public IP to. - // Required for an ephemeral public IP because it must always be assigned to a private IP - // (specifically a *primary* private IP). - // Optional for a reserved public IP. If you don't provide it, the public IP is created but not - // assigned to a private IP. You can later assign the public IP with - // UpdatePublicIp. - PrivateIpId *string `mandatory:"false" json:"privateIpId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. - PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` -} - -func (m CreatePublicIpDetails) String() string { - return common.PointerString(m) -} - -// CreatePublicIpDetailsLifetimeEnum Enum with underlying type: string -type CreatePublicIpDetailsLifetimeEnum string - -// Set of constants representing the allowable values for CreatePublicIpDetailsLifetimeEnum -const ( - CreatePublicIpDetailsLifetimeEphemeral CreatePublicIpDetailsLifetimeEnum = "EPHEMERAL" - CreatePublicIpDetailsLifetimeReserved CreatePublicIpDetailsLifetimeEnum = "RESERVED" -) - -var mappingCreatePublicIpDetailsLifetime = map[string]CreatePublicIpDetailsLifetimeEnum{ - "EPHEMERAL": CreatePublicIpDetailsLifetimeEphemeral, - "RESERVED": CreatePublicIpDetailsLifetimeReserved, -} - -// GetCreatePublicIpDetailsLifetimeEnumValues Enumerates the set of values for CreatePublicIpDetailsLifetimeEnum -func GetCreatePublicIpDetailsLifetimeEnumValues() []CreatePublicIpDetailsLifetimeEnum { - values := make([]CreatePublicIpDetailsLifetimeEnum, 0) - for _, v := range mappingCreatePublicIpDetailsLifetime { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_details.go deleted file mode 100644 index 251ae32900..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreatePublicIpPoolDetails The information used to create a public IP pool. -type CreatePublicIpPoolDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP pool. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreatePublicIpPoolDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_details.go deleted file mode 100644 index 25c19620fe..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateRemotePeeringConnectionDetails The representation of CreateRemotePeeringConnectionDetails -type CreateRemotePeeringConnectionDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the RPC. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the RPC belongs to. - DrgId *string `mandatory:"true" json:"drgId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateRemotePeeringConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_details.go deleted file mode 100644 index a90e55a0de..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateRouteTableDetails The representation of CreateRouteTableDetails -type CreateRouteTableDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the route table. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The collection of rules used for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"true" json:"routeRules"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the route table belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Indicates whether ECMP is enabled or not on the route table. - IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` -} - -func (m CreateRouteTableDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_details.go deleted file mode 100644 index 7a59b84f2e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateScanProxyDetails Details for adding a RAC's scan listener information. -type CreateScanProxyDetails struct { - - // Type indicating whether Scan listener is specified by its FQDN or list of IPs - ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"true" json:"scanListenerType"` - - // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN - // listeners. - ScanListenerInfo []ScanListenerInfo `mandatory:"true" json:"scanListenerInfo"` - - // The protocol to be used for communication between client, scanProxy and RAC's scan - // listeners - Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` - - ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` -} - -func (m CreateScanProxyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_details.go deleted file mode 100644 index 52010acb4d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateSecurityListDetails The representation of CreateSecurityListDetails -type CreateSecurityListDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the security list. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Rules for allowing egress IP packets. - EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` - - // Rules for allowing ingress IP packets. - IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the security list belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m CreateSecurityListDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_details.go deleted file mode 100644 index 6c27361f6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_details.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVcnDetails The representation of CreateVcnDetails -type CreateVcnDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the VCN. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // **Deprecated.** Do *not* set this value. Use `cidrBlocks` instead. - // Example: `10.0.0.0/16` - CidrBlock *string `mandatory:"false" json:"cidrBlock"` - - // The list of one or more IPv4 CIDR blocks for the VCN that meet the following criteria: - // - The CIDR blocks must be valid. - // - They must not overlap with each other or with the on-premises network CIDR block. - // - The number of CIDR blocks must not exceed the limit of CIDR blocks allowed per VCN. - // **Important:** Do *not* specify a value for `cidrBlock`. Use this parameter instead. - CidrBlocks []string `mandatory:"false" json:"cidrBlocks"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the VCN, used in conjunction with the VNIC's hostname and - // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Not required to be unique, but it's a best practice to set unique DNS labels - // for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. - // The value cannot be changed. - // You must set this value if you want instances to be able to use hostnames to - // resolve other instances in the VCN. Otherwise the Internet and VCN Resolver - // will not work. - // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // Example: `vcn1` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether IPv6 is enabled for the VCN. Default is `false`. - // If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block. - // For important details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // Example: `true` - IsIpv6Enabled *bool `mandatory:"false" json:"isIpv6Enabled"` -} - -func (m CreateVcnDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_details.go deleted file mode 100644 index 27eb2177bc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_details.go +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVirtualCircuitDetails The representation of CreateVirtualCircuitDetails -type CreateVirtualCircuitDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the virtual circuit. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The type of IP addresses used in this virtual circuit. PRIVATE - // means RFC 1918 (https://tools.ietf.org/html/rfc1918) addresses - // (10.0.0.0/8, 172.16/12, and 192.168/16). - Type CreateVirtualCircuitDetailsTypeEnum `mandatory:"true" json:"type"` - - // The provisioned data rate of the connection. To get a list of the - // available bandwidth levels (that is, shapes), see - // ListFastConnectProviderVirtualCircuitBandwidthShapes. - // Example: `10 Gbps` - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // Create a `CrossConnectMapping` for each cross-connect or cross-connect - // group this virtual circuit will run on. - CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` - - // The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. - // Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`. - // See Route Filtering (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. - // By default, routing information is shared for all routes in the same market. - RoutingPolicy []CreateVirtualCircuitDetailsRoutingPolicyEnum `mandatory:"false" json:"routingPolicy,omitempty"` - - // Deprecated. Instead use `customerAsn`. - // If you specify values for both, the request will be rejected. - CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` - - // Your BGP ASN (either public or private). Provide this value only if - // there's a BGP session that goes from your edge router to Oracle. - // Otherwise, leave this empty or null. - // Can be a 2-byte or 4-byte ASN. Uses "asplain" format. - // Example: `12345` (2-byte) or `1587232876` (4-byte) - CustomerAsn *int64 `mandatory:"false" json:"customerAsn"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // For private virtual circuits only. The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Drg - // that this virtual circuit uses. - GatewayId *string `mandatory:"false" json:"gatewayId"` - - // Deprecated. Instead use `providerServiceId`. - // To get a list of the provider names, see - // ListFastConnectProviderServices. - ProviderName *string `mandatory:"false" json:"providerName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if you're connecting - // via a provider). To get a list of the available service offerings, see - // ListFastConnectProviderServices. - ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` - - // The service key name offered by the provider (if the customer is connecting via a provider). - ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"` - - // Deprecated. Instead use `providerServiceId`. - // To get a list of the provider names, see - // ListFastConnectProviderServices. - ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` - - // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to - // advertise across the connection. - PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"false" json:"publicPrefixes"` - - // The Oracle Cloud Infrastructure region where this virtual - // circuit is located. - // Example: `phx` - Region *string `mandatory:"false" json:"region"` - - // The layer 3 IP MTU to use with this virtual circuit. - IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` -} - -func (m CreateVirtualCircuitDetails) String() string { - return common.PointerString(m) -} - -// CreateVirtualCircuitDetailsRoutingPolicyEnum Enum with underlying type: string -type CreateVirtualCircuitDetailsRoutingPolicyEnum string - -// Set of constants representing the allowable values for CreateVirtualCircuitDetailsRoutingPolicyEnum -const ( - CreateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork CreateVirtualCircuitDetailsRoutingPolicyEnum = "ORACLE_SERVICE_NETWORK" - CreateVirtualCircuitDetailsRoutingPolicyRegional CreateVirtualCircuitDetailsRoutingPolicyEnum = "REGIONAL" - CreateVirtualCircuitDetailsRoutingPolicyMarketLevel CreateVirtualCircuitDetailsRoutingPolicyEnum = "MARKET_LEVEL" - CreateVirtualCircuitDetailsRoutingPolicyGlobal CreateVirtualCircuitDetailsRoutingPolicyEnum = "GLOBAL" -) - -var mappingCreateVirtualCircuitDetailsRoutingPolicy = map[string]CreateVirtualCircuitDetailsRoutingPolicyEnum{ - "ORACLE_SERVICE_NETWORK": CreateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork, - "REGIONAL": CreateVirtualCircuitDetailsRoutingPolicyRegional, - "MARKET_LEVEL": CreateVirtualCircuitDetailsRoutingPolicyMarketLevel, - "GLOBAL": CreateVirtualCircuitDetailsRoutingPolicyGlobal, -} - -// GetCreateVirtualCircuitDetailsRoutingPolicyEnumValues Enumerates the set of values for CreateVirtualCircuitDetailsRoutingPolicyEnum -func GetCreateVirtualCircuitDetailsRoutingPolicyEnumValues() []CreateVirtualCircuitDetailsRoutingPolicyEnum { - values := make([]CreateVirtualCircuitDetailsRoutingPolicyEnum, 0) - for _, v := range mappingCreateVirtualCircuitDetailsRoutingPolicy { - values = append(values, v) - } - return values -} - -// CreateVirtualCircuitDetailsTypeEnum Enum with underlying type: string -type CreateVirtualCircuitDetailsTypeEnum string - -// Set of constants representing the allowable values for CreateVirtualCircuitDetailsTypeEnum -const ( - CreateVirtualCircuitDetailsTypePublic CreateVirtualCircuitDetailsTypeEnum = "PUBLIC" - CreateVirtualCircuitDetailsTypePrivate CreateVirtualCircuitDetailsTypeEnum = "PRIVATE" -) - -var mappingCreateVirtualCircuitDetailsType = map[string]CreateVirtualCircuitDetailsTypeEnum{ - "PUBLIC": CreateVirtualCircuitDetailsTypePublic, - "PRIVATE": CreateVirtualCircuitDetailsTypePrivate, -} - -// GetCreateVirtualCircuitDetailsTypeEnumValues Enumerates the set of values for CreateVirtualCircuitDetailsTypeEnum -func GetCreateVirtualCircuitDetailsTypeEnumValues() []CreateVirtualCircuitDetailsTypeEnum { - values := make([]CreateVirtualCircuitDetailsTypeEnum, 0) - for _, v := range mappingCreateVirtualCircuitDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_public_prefix_details.go deleted file mode 100644 index 53e1d1f22c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_public_prefix_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVirtualCircuitPublicPrefixDetails The representation of CreateVirtualCircuitPublicPrefixDetails -type CreateVirtualCircuitPublicPrefixDetails struct { - - // An individual public IP prefix (CIDR) to add to the public virtual circuit. - // All prefix sizes are allowed. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` -} - -func (m CreateVirtualCircuitPublicPrefixDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_details.go deleted file mode 100644 index 2cae79ae63..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVnicWorkerDetails The data to create vnicWorker. -type CreateVnicWorkerDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the VNIC worker. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of associated service VNIC. - ServiceVnicId *string `mandatory:"true" json:"serviceVnicId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // List of vnicWorker IP OCIDs. - WorkerIps []string `mandatory:"false" json:"workerIps"` - - // The instance where vnicWorker needs to be attached. - WorkerInstanceId *string `mandatory:"false" json:"workerInstanceId"` - - // Which physical network interface card (NIC) the VNIC worker uses. Defaults to 0. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a VNIC worker to one of these instances, you can specify which NIC - // the VNIC worker will use. Note that it is required for NIC to have at least a single - // VNIC attached before attaching a VNIC worker. - WorkerNicIndex *int `mandatory:"false" json:"workerNicIndex"` - - // Specifies whether the vnicworker is enabled for forwarding traffic at creation - IsEnabled *bool `mandatory:"false" json:"isEnabled"` -} - -func (m CreateVnicWorkerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_details.go deleted file mode 100644 index 5a6f519ccb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_details.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVolumeBackupDetails The representation of CreateVolumeBackupDetails -type CreateVolumeBackupDetails struct { - - // The OCID of the volume that needs to be backed up. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The OCID of the compartment that contains the backup. If omitted, the backup will be created in the compartment of the source volume. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The type of backup to create. If omitted, defaults to INCREMENTAL. - Type CreateVolumeBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` -} - -func (m CreateVolumeBackupDetails) String() string { - return common.PointerString(m) -} - -// CreateVolumeBackupDetailsTypeEnum Enum with underlying type: string -type CreateVolumeBackupDetailsTypeEnum string - -// Set of constants representing the allowable values for CreateVolumeBackupDetailsTypeEnum -const ( - CreateVolumeBackupDetailsTypeFull CreateVolumeBackupDetailsTypeEnum = "FULL" - CreateVolumeBackupDetailsTypeIncremental CreateVolumeBackupDetailsTypeEnum = "INCREMENTAL" -) - -var mappingCreateVolumeBackupDetailsType = map[string]CreateVolumeBackupDetailsTypeEnum{ - "FULL": CreateVolumeBackupDetailsTypeFull, - "INCREMENTAL": CreateVolumeBackupDetailsTypeIncremental, -} - -// GetCreateVolumeBackupDetailsTypeEnumValues Enumerates the set of values for CreateVolumeBackupDetailsTypeEnum -func GetCreateVolumeBackupDetailsTypeEnumValues() []CreateVolumeBackupDetailsTypeEnum { - values := make([]CreateVolumeBackupDetailsTypeEnum, 0) - for _, v := range mappingCreateVolumeBackupDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_details.go deleted file mode 100644 index cb64fa98b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVolumeBackupPolicyAssignmentDetails The representation of CreateVolumeBackupPolicyAssignmentDetails -type CreateVolumeBackupPolicyAssignmentDetails struct { - - // The OCID of the volume to assign the policy to. - AssetId *string `mandatory:"true" json:"assetId"` - - // The OCID of the volume backup policy to assign to the volume. - PolicyId *string `mandatory:"true" json:"policyId"` -} - -func (m CreateVolumeBackupPolicyAssignmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_details.go deleted file mode 100644 index 082ef6fa37..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_details.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVolumeDetails The representation of CreateVolumeDetails -type CreateVolumeDetails struct { - - // The OCID of the compartment that contains the volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The availability domain of the volume. Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // If provided, specifies the ID of the volume backup policy to assign to the newly - // created volume. If omitted, no policy will be assigned. - BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID of the Key Management key to assign as the master encryption key - // for the volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The number of volume performance units (VPUs) that will be applied to this volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `0`: Represents Lower Cost option. - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // The size of the volume in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // The size of the volume in MBs. The value must be a multiple of 1024. - // This field is deprecated. Use sizeInGBs instead. - SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` - - SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` - - // The OCID of the volume backup from which the data should be restored on the newly created volume. - // This field is deprecated. Use the sourceDetails field instead to specify the - // backup for the volume. - VolumeBackupId *string `mandatory:"false" json:"volumeBackupId"` - - // Specifies whether the auto-tune performance is enabled for this volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The list of block volume replicas to be enabled for this volume - // in the specified destination availability domains. - BlockVolumeReplicas []BlockVolumeReplicaDetails `mandatory:"false" json:"blockVolumeReplicas"` -} - -func (m CreateVolumeDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - AvailabilityDomain *string `json:"availabilityDomain"` - BackupPolicyId *string `json:"backupPolicyId"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - KmsKeyId *string `json:"kmsKeyId"` - VpusPerGB *int64 `json:"vpusPerGB"` - SizeInGBs *int64 `json:"sizeInGBs"` - SizeInMBs *int64 `json:"sizeInMBs"` - SourceDetails volumesourcedetails `json:"sourceDetails"` - VolumeBackupId *string `json:"volumeBackupId"` - IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` - BlockVolumeReplicas []BlockVolumeReplicaDetails `json:"blockVolumeReplicas"` - CompartmentId *string `json:"compartmentId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.AvailabilityDomain = model.AvailabilityDomain - - m.BackupPolicyId = model.BackupPolicyId - - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.KmsKeyId = model.KmsKeyId - - m.VpusPerGB = model.VpusPerGB - - m.SizeInGBs = model.SizeInGBs - - m.SizeInMBs = model.SizeInMBs - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(VolumeSourceDetails) - } else { - m.SourceDetails = nil - } - - m.VolumeBackupId = model.VolumeBackupId - - m.IsAutoTuneEnabled = model.IsAutoTuneEnabled - - m.BlockVolumeReplicas = make([]BlockVolumeReplicaDetails, len(model.BlockVolumeReplicas)) - for i, n := range model.BlockVolumeReplicas { - m.BlockVolumeReplicas[i] = n - } - - m.CompartmentId = model.CompartmentId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_details.go deleted file mode 100644 index 5d718d111f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_details.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVolumeGroupBackupDetails The representation of CreateVolumeGroupBackupDetails -type CreateVolumeGroupBackupDetails struct { - - // The OCID of the volume group that needs to be backed up. - VolumeGroupId *string `mandatory:"true" json:"volumeGroupId"` - - // The OCID of the compartment that will contain the volume group - // backup. This parameter is optional, by default backup will be created in - // the same compartment and source volume group. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The type of backup to create. If omitted, defaults to incremental. - Type CreateVolumeGroupBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` -} - -func (m CreateVolumeGroupBackupDetails) String() string { - return common.PointerString(m) -} - -// CreateVolumeGroupBackupDetailsTypeEnum Enum with underlying type: string -type CreateVolumeGroupBackupDetailsTypeEnum string - -// Set of constants representing the allowable values for CreateVolumeGroupBackupDetailsTypeEnum -const ( - CreateVolumeGroupBackupDetailsTypeFull CreateVolumeGroupBackupDetailsTypeEnum = "FULL" - CreateVolumeGroupBackupDetailsTypeIncremental CreateVolumeGroupBackupDetailsTypeEnum = "INCREMENTAL" -) - -var mappingCreateVolumeGroupBackupDetailsType = map[string]CreateVolumeGroupBackupDetailsTypeEnum{ - "FULL": CreateVolumeGroupBackupDetailsTypeFull, - "INCREMENTAL": CreateVolumeGroupBackupDetailsTypeIncremental, -} - -// GetCreateVolumeGroupBackupDetailsTypeEnumValues Enumerates the set of values for CreateVolumeGroupBackupDetailsTypeEnum -func GetCreateVolumeGroupBackupDetailsTypeEnumValues() []CreateVolumeGroupBackupDetailsTypeEnum { - values := make([]CreateVolumeGroupBackupDetailsTypeEnum, 0) - for _, v := range mappingCreateVolumeGroupBackupDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_details.go deleted file mode 100644 index a6a1094432..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_details.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateVtapDetails These details are included in a request to create a virtual test access point (VTAP). -type CreateVtapDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the `Vtap` resource. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN containing the `Vtap` resource. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source point where packets are captured. - SourceId *string `mandatory:"true" json:"sourceId"` - - // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - CaptureFilterId *string `mandatory:"true" json:"captureFilterId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination resource where mirrored packets are sent. - TargetId *string `mandatory:"false" json:"targetId"` - - // The IP address of the destination resource where mirrored packets are sent. - TargetIp *string `mandatory:"false" json:"targetIp"` - - // Defines an encapsulation header type for the VTAP's mirrored traffic. - EncapsulationProtocol CreateVtapDetailsEncapsulationProtocolEnum `mandatory:"false" json:"encapsulationProtocol,omitempty"` - - // The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN. - VxlanNetworkIdentifier *int64 `mandatory:"false" json:"vxlanNetworkIdentifier"` - - // Used to start or stop a `Vtap` resource. - // * `TRUE` directs the VTAP to start mirroring traffic. - // * `FALSE` (Default) directs the VTAP to stop mirroring traffic. - IsVtapEnabled *bool `mandatory:"false" json:"isVtapEnabled"` - - // Used to encapsulate or decapsulate mirrored traffic prior to ingestion at target. - IsTargetEncapsulationEnabled *bool `mandatory:"false" json:"isTargetEncapsulationEnabled"` - - // The source type for the VTAP. - SourceType CreateVtapDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - ExclusionFilter *ExclusionFilterDetails `mandatory:"false" json:"exclusionFilter"` -} - -func (m CreateVtapDetails) String() string { - return common.PointerString(m) -} - -// CreateVtapDetailsEncapsulationProtocolEnum Enum with underlying type: string -type CreateVtapDetailsEncapsulationProtocolEnum string - -// Set of constants representing the allowable values for CreateVtapDetailsEncapsulationProtocolEnum -const ( - CreateVtapDetailsEncapsulationProtocolVxlan CreateVtapDetailsEncapsulationProtocolEnum = "VXLAN" -) - -var mappingCreateVtapDetailsEncapsulationProtocol = map[string]CreateVtapDetailsEncapsulationProtocolEnum{ - "VXLAN": CreateVtapDetailsEncapsulationProtocolVxlan, -} - -// GetCreateVtapDetailsEncapsulationProtocolEnumValues Enumerates the set of values for CreateVtapDetailsEncapsulationProtocolEnum -func GetCreateVtapDetailsEncapsulationProtocolEnumValues() []CreateVtapDetailsEncapsulationProtocolEnum { - values := make([]CreateVtapDetailsEncapsulationProtocolEnum, 0) - for _, v := range mappingCreateVtapDetailsEncapsulationProtocol { - values = append(values, v) - } - return values -} - -// CreateVtapDetailsSourceTypeEnum Enum with underlying type: string -type CreateVtapDetailsSourceTypeEnum string - -// Set of constants representing the allowable values for CreateVtapDetailsSourceTypeEnum -const ( - CreateVtapDetailsSourceTypeVnic CreateVtapDetailsSourceTypeEnum = "VNIC" - CreateVtapDetailsSourceTypeSubnet CreateVtapDetailsSourceTypeEnum = "SUBNET" -) - -var mappingCreateVtapDetailsSourceType = map[string]CreateVtapDetailsSourceTypeEnum{ - "VNIC": CreateVtapDetailsSourceTypeVnic, - "SUBNET": CreateVtapDetailsSourceTypeSubnet, -} - -// GetCreateVtapDetailsSourceTypeEnumValues Enumerates the set of values for CreateVtapDetailsSourceTypeEnum -func GetCreateVtapDetailsSourceTypeEnumValues() []CreateVtapDetailsSourceTypeEnum { - values := make([]CreateVtapDetailsSourceTypeEnum, 0) - for _, v := range mappingCreateVtapDetailsSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect.go deleted file mode 100644 index 7e948bd32a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect.go +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnect For use with Oracle Cloud Infrastructure FastConnect. A cross-connect represents a -// physical connection between an existing network and Oracle. Customers who are colocated -// with Oracle in a FastConnect location create and use cross-connects. For more -// information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -// Oracle recommends you create each cross-connect in a -// CrossConnectGroup so you can use link aggregation -// with the connection. -// **Note:** If you're a provider who is setting up a physical connection to Oracle so customers -// can use FastConnect over the connection, be aware that your connection is modeled the -// same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type CrossConnect struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cross-connect group. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group this cross-connect belongs to (if any). - CrossConnectGroupId *string `mandatory:"false" json:"crossConnectGroupId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The cross-connect's Oracle ID (OCID). - Id *string `mandatory:"false" json:"id"` - - // The cross-connect's current state. - LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The name of the FastConnect location where this cross-connect is installed. - LocationName *string `mandatory:"false" json:"locationName"` - - // A string identifying the meet-me room port for this cross-connect. - PortName *string `mandatory:"false" json:"portName"` - - // The port speed for this cross-connect. - // Example: `10 Gbps` - PortSpeedShapeName *string `mandatory:"false" json:"portSpeedShapeName"` - - // A reference name or identifier for the physical fiber connection that this cross-connect - // uses. - CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` - - // The date and time the cross-connect was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - MacsecProperties *MacsecProperties `mandatory:"false" json:"macsecProperties"` -} - -func (m CrossConnect) String() string { - return common.PointerString(m) -} - -// CrossConnectLifecycleStateEnum Enum with underlying type: string -type CrossConnectLifecycleStateEnum string - -// Set of constants representing the allowable values for CrossConnectLifecycleStateEnum -const ( - CrossConnectLifecycleStatePendingCustomer CrossConnectLifecycleStateEnum = "PENDING_CUSTOMER" - CrossConnectLifecycleStateProvisioning CrossConnectLifecycleStateEnum = "PROVISIONING" - CrossConnectLifecycleStateProvisioned CrossConnectLifecycleStateEnum = "PROVISIONED" - CrossConnectLifecycleStateInactive CrossConnectLifecycleStateEnum = "INACTIVE" - CrossConnectLifecycleStateTerminating CrossConnectLifecycleStateEnum = "TERMINATING" - CrossConnectLifecycleStateTerminated CrossConnectLifecycleStateEnum = "TERMINATED" -) - -var mappingCrossConnectLifecycleState = map[string]CrossConnectLifecycleStateEnum{ - "PENDING_CUSTOMER": CrossConnectLifecycleStatePendingCustomer, - "PROVISIONING": CrossConnectLifecycleStateProvisioning, - "PROVISIONED": CrossConnectLifecycleStateProvisioned, - "INACTIVE": CrossConnectLifecycleStateInactive, - "TERMINATING": CrossConnectLifecycleStateTerminating, - "TERMINATED": CrossConnectLifecycleStateTerminated, -} - -// GetCrossConnectLifecycleStateEnumValues Enumerates the set of values for CrossConnectLifecycleStateEnum -func GetCrossConnectLifecycleStateEnumValues() []CrossConnectLifecycleStateEnum { - values := make([]CrossConnectLifecycleStateEnum, 0) - for _, v := range mappingCrossConnectLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_group.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_group.go deleted file mode 100644 index 74957b87c7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_group.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnectGroup For use with Oracle Cloud Infrastructure FastConnect. A cross-connect group -// is a link aggregation group (LAG), which can contain one or more -// CrossConnect. Customers who are colocated with -// Oracle in a FastConnect location create and use cross-connect groups. For more -// information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -// **Note:** If you're a provider who is setting up a physical connection to Oracle so customers -// can use FastConnect over the connection, be aware that your connection is modeled the -// same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type CrossConnectGroup struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cross-connect group. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The cross-connect group's Oracle ID (OCID). - Id *string `mandatory:"false" json:"id"` - - // The cross-connect group's current state. - LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // A reference name or identifier for the physical fiber connection that this cross-connect - // group uses. - CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` - - // The date and time the cross-connect group was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - MacsecProperties *MacsecProperties `mandatory:"false" json:"macsecProperties"` -} - -func (m CrossConnectGroup) String() string { - return common.PointerString(m) -} - -// CrossConnectGroupLifecycleStateEnum Enum with underlying type: string -type CrossConnectGroupLifecycleStateEnum string - -// Set of constants representing the allowable values for CrossConnectGroupLifecycleStateEnum -const ( - CrossConnectGroupLifecycleStateProvisioning CrossConnectGroupLifecycleStateEnum = "PROVISIONING" - CrossConnectGroupLifecycleStateProvisioned CrossConnectGroupLifecycleStateEnum = "PROVISIONED" - CrossConnectGroupLifecycleStateInactive CrossConnectGroupLifecycleStateEnum = "INACTIVE" - CrossConnectGroupLifecycleStateTerminating CrossConnectGroupLifecycleStateEnum = "TERMINATING" - CrossConnectGroupLifecycleStateTerminated CrossConnectGroupLifecycleStateEnum = "TERMINATED" -) - -var mappingCrossConnectGroupLifecycleState = map[string]CrossConnectGroupLifecycleStateEnum{ - "PROVISIONING": CrossConnectGroupLifecycleStateProvisioning, - "PROVISIONED": CrossConnectGroupLifecycleStateProvisioned, - "INACTIVE": CrossConnectGroupLifecycleStateInactive, - "TERMINATING": CrossConnectGroupLifecycleStateTerminating, - "TERMINATED": CrossConnectGroupLifecycleStateTerminated, -} - -// GetCrossConnectGroupLifecycleStateEnumValues Enumerates the set of values for CrossConnectGroupLifecycleStateEnum -func GetCrossConnectGroupLifecycleStateEnumValues() []CrossConnectGroupLifecycleStateEnum { - values := make([]CrossConnectGroupLifecycleStateEnum, 0) - for _, v := range mappingCrossConnectGroupLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_location.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_location.go deleted file mode 100644 index b5831e2650..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_location.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnectLocation An individual FastConnect location. -type CrossConnectLocation struct { - - // A description of the location. - Description *string `mandatory:"true" json:"description"` - - // The name of the location. - // Example: `CyrusOne, Chandler, AZ` - Name *string `mandatory:"true" json:"name"` -} - -func (m CrossConnectLocation) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details.go deleted file mode 100644 index 18dd8e5cb8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details.go +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnectMappingDetails For use with Oracle Cloud Infrastructure FastConnect. Each -// VirtualCircuit runs on one or -// more cross-connects or cross-connect groups. A `CrossConnectMappingDetails` -// contains the properties for an individual cross-connect or cross-connect group -// associated with a given virtual circuit. -// The details includes information about the cross-connect or -// cross-connect group, the VLAN, and the BGP peering session. -type CrossConnectMappingDetails struct { - - // The key for BGP MD5 authentication. Only applicable if your system - // requires MD5 authentication. If empty or not set (null), that - // means you don't use BGP MD5 authentication. - BgpMd5AuthKey *string `mandatory:"false" json:"bgpMd5AuthKey"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect or cross-connect group for this mapping. - // Specified by the owner of the cross-connect or cross-connect group (the - // customer if the customer is colocated with Oracle, or the provider if the - // customer is connecting via provider). - CrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"crossConnectOrCrossConnectGroupId"` - - // The BGP IPv4 address for the router on the other end of the BGP session from - // Oracle. Specified by the owner of that router. If the session goes from Oracle - // to a customer, this is the BGP IPv4 address of the customer's edge router. If the - // session goes from Oracle to a provider, this is the BGP IPv4 address of the - // provider's edge router. Must use a /30 or /31 subnet mask. - // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses. - // Example: `10.0.0.18/31` - CustomerBgpPeeringIp *string `mandatory:"false" json:"customerBgpPeeringIp"` - - // The IPv4 address for Oracle's end of the BGP session. Must use a /30 or /31 - // subnet mask. If the session goes from Oracle to a customer's edge router, - // the customer specifies this information. If the session goes from Oracle to - // a provider's edge router, the provider specifies this. - // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses. - // Example: `10.0.0.19/31` - OracleBgpPeeringIp *string `mandatory:"false" json:"oracleBgpPeeringIp"` - - // The BGP IPv6 address for the router on the other end of the BGP session from - // Oracle. Specified by the owner of that router. If the session goes from Oracle - // to a customer, this is the BGP IPv6 address of the customer's edge router. If the - // session goes from Oracle to a provider, this is the BGP IPv6 address of the - // provider's edge router. Only subnet masks from /64 up to /127 are allowed. - // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses. - // Example: `2001:db8::1/64` - CustomerBgpPeeringIpv6 *string `mandatory:"false" json:"customerBgpPeeringIpv6"` - - // The IPv6 address for Oracle's end of the BGP session. Only subnet masks from /64 up to /127 are allowed. - // If the session goes from Oracle to a customer's edge router, - // the customer specifies this information. If the session goes from Oracle to - // a provider's edge router, the provider specifies this. - // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses. - // Example: `2001:db8::2/64` - OracleBgpPeeringIpv6 *string `mandatory:"false" json:"oracleBgpPeeringIpv6"` - - // The number of the specific VLAN (on the cross-connect or cross-connect group) - // that is assigned to this virtual circuit. Specified by the owner of the cross-connect - // or cross-connect group (the customer if the customer is colocated with Oracle, or - // the provider if the customer is connecting via provider). - // Example: `200` - Vlan *int `mandatory:"false" json:"vlan"` - - // The state of the Ipv4 BGP session. - Ipv4BgpStatus CrossConnectMappingDetailsIpv4BgpStatusEnum `mandatory:"false" json:"ipv4BgpStatus,omitempty"` - - // The state of the Ipv6 BGP session. - Ipv6BgpStatus CrossConnectMappingDetailsIpv6BgpStatusEnum `mandatory:"false" json:"ipv6BgpStatus,omitempty"` -} - -func (m CrossConnectMappingDetails) String() string { - return common.PointerString(m) -} - -// CrossConnectMappingDetailsIpv4BgpStatusEnum Enum with underlying type: string -type CrossConnectMappingDetailsIpv4BgpStatusEnum string - -// Set of constants representing the allowable values for CrossConnectMappingDetailsIpv4BgpStatusEnum -const ( - CrossConnectMappingDetailsIpv4BgpStatusUp CrossConnectMappingDetailsIpv4BgpStatusEnum = "UP" - CrossConnectMappingDetailsIpv4BgpStatusDown CrossConnectMappingDetailsIpv4BgpStatusEnum = "DOWN" -) - -var mappingCrossConnectMappingDetailsIpv4BgpStatus = map[string]CrossConnectMappingDetailsIpv4BgpStatusEnum{ - "UP": CrossConnectMappingDetailsIpv4BgpStatusUp, - "DOWN": CrossConnectMappingDetailsIpv4BgpStatusDown, -} - -// GetCrossConnectMappingDetailsIpv4BgpStatusEnumValues Enumerates the set of values for CrossConnectMappingDetailsIpv4BgpStatusEnum -func GetCrossConnectMappingDetailsIpv4BgpStatusEnumValues() []CrossConnectMappingDetailsIpv4BgpStatusEnum { - values := make([]CrossConnectMappingDetailsIpv4BgpStatusEnum, 0) - for _, v := range mappingCrossConnectMappingDetailsIpv4BgpStatus { - values = append(values, v) - } - return values -} - -// CrossConnectMappingDetailsIpv6BgpStatusEnum Enum with underlying type: string -type CrossConnectMappingDetailsIpv6BgpStatusEnum string - -// Set of constants representing the allowable values for CrossConnectMappingDetailsIpv6BgpStatusEnum -const ( - CrossConnectMappingDetailsIpv6BgpStatusUp CrossConnectMappingDetailsIpv6BgpStatusEnum = "UP" - CrossConnectMappingDetailsIpv6BgpStatusDown CrossConnectMappingDetailsIpv6BgpStatusEnum = "DOWN" -) - -var mappingCrossConnectMappingDetailsIpv6BgpStatus = map[string]CrossConnectMappingDetailsIpv6BgpStatusEnum{ - "UP": CrossConnectMappingDetailsIpv6BgpStatusUp, - "DOWN": CrossConnectMappingDetailsIpv6BgpStatusDown, -} - -// GetCrossConnectMappingDetailsIpv6BgpStatusEnumValues Enumerates the set of values for CrossConnectMappingDetailsIpv6BgpStatusEnum -func GetCrossConnectMappingDetailsIpv6BgpStatusEnumValues() []CrossConnectMappingDetailsIpv6BgpStatusEnum { - values := make([]CrossConnectMappingDetailsIpv6BgpStatusEnum, 0) - for _, v := range mappingCrossConnectMappingDetailsIpv6BgpStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details_collection.go deleted file mode 100644 index 4a621d056a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping_details_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnectMappingDetailsCollection An array of CrossConnectMappingDetails -type CrossConnectMappingDetailsCollection struct { - - // CrossConnectMappingDetails items - Items []CrossConnectMappingDetails `mandatory:"true" json:"items"` -} - -func (m CrossConnectMappingDetailsCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_port_speed_shape.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_port_speed_shape.go deleted file mode 100644 index 4a4dee54a3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_port_speed_shape.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnectPortSpeedShape An individual port speed level for cross-connects. -type CrossConnectPortSpeedShape struct { - - // The name of the port speed shape. - // Example: `10 Gbps` - Name *string `mandatory:"true" json:"name"` - - // The port speed in Gbps. - // Example: `10` - PortSpeedInGbps *int `mandatory:"true" json:"portSpeedInGbps"` -} - -func (m CrossConnectPortSpeedShape) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_status.go deleted file mode 100644 index 3649fab4e5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_status.go +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CrossConnectStatus The status of the cross-connect. -type CrossConnectStatus struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. - CrossConnectId *string `mandatory:"true" json:"crossConnectId"` - - // Indicates whether Oracle's side of the interface is up or down. - InterfaceState CrossConnectStatusInterfaceStateEnum `mandatory:"false" json:"interfaceState,omitempty"` - - // The light level of the cross-connect (in dBm). - // Example: `14.0` - LightLevelIndBm *float32 `mandatory:"false" json:"lightLevelIndBm"` - - // Status indicator corresponding to the light level. - // * **NO_LIGHT:** No measurable light - // * **LOW_WARN:** There's measurable light but it's too low - // * **HIGH_WARN:** Light level is too high - // * **BAD:** There's measurable light but the signal-to-noise ratio is bad - // * **GOOD:** Good light level - LightLevelIndicator CrossConnectStatusLightLevelIndicatorEnum `mandatory:"false" json:"lightLevelIndicator,omitempty"` - - // Encryption status of this cross connect. - // Possible values: - // * **UP:** Traffic is encrypted over this cross-connect - // * **DOWN:** Traffic is not encrypted over this cross-connect - // * **CIPHER_MISMATCH:** The MACSEC encryption cipher doesn't match the cipher on the CPE - // * **CKN_MISMATCH:** The MACSEC Connectivity association Key Name (CKN) doesn't match the CKN on the CPE - // * **CAK_MISMATCH:** The MACSEC Connectivity Association Key (CAK) doesn't match the CAK on the CPE - EncryptionStatus CrossConnectStatusEncryptionStatusEnum `mandatory:"false" json:"encryptionStatus,omitempty"` - - // The light levels of the cross-connect (in dBm). - // Example: `[14.0, -14.0, 2.1, -10.1]` - LightLevelsInDBm []float32 `mandatory:"false" json:"lightLevelsInDBm"` -} - -func (m CrossConnectStatus) String() string { - return common.PointerString(m) -} - -// CrossConnectStatusInterfaceStateEnum Enum with underlying type: string -type CrossConnectStatusInterfaceStateEnum string - -// Set of constants representing the allowable values for CrossConnectStatusInterfaceStateEnum -const ( - CrossConnectStatusInterfaceStateUp CrossConnectStatusInterfaceStateEnum = "UP" - CrossConnectStatusInterfaceStateDown CrossConnectStatusInterfaceStateEnum = "DOWN" -) - -var mappingCrossConnectStatusInterfaceState = map[string]CrossConnectStatusInterfaceStateEnum{ - "UP": CrossConnectStatusInterfaceStateUp, - "DOWN": CrossConnectStatusInterfaceStateDown, -} - -// GetCrossConnectStatusInterfaceStateEnumValues Enumerates the set of values for CrossConnectStatusInterfaceStateEnum -func GetCrossConnectStatusInterfaceStateEnumValues() []CrossConnectStatusInterfaceStateEnum { - values := make([]CrossConnectStatusInterfaceStateEnum, 0) - for _, v := range mappingCrossConnectStatusInterfaceState { - values = append(values, v) - } - return values -} - -// CrossConnectStatusLightLevelIndicatorEnum Enum with underlying type: string -type CrossConnectStatusLightLevelIndicatorEnum string - -// Set of constants representing the allowable values for CrossConnectStatusLightLevelIndicatorEnum -const ( - CrossConnectStatusLightLevelIndicatorNoLight CrossConnectStatusLightLevelIndicatorEnum = "NO_LIGHT" - CrossConnectStatusLightLevelIndicatorLowWarn CrossConnectStatusLightLevelIndicatorEnum = "LOW_WARN" - CrossConnectStatusLightLevelIndicatorHighWarn CrossConnectStatusLightLevelIndicatorEnum = "HIGH_WARN" - CrossConnectStatusLightLevelIndicatorBad CrossConnectStatusLightLevelIndicatorEnum = "BAD" - CrossConnectStatusLightLevelIndicatorGood CrossConnectStatusLightLevelIndicatorEnum = "GOOD" -) - -var mappingCrossConnectStatusLightLevelIndicator = map[string]CrossConnectStatusLightLevelIndicatorEnum{ - "NO_LIGHT": CrossConnectStatusLightLevelIndicatorNoLight, - "LOW_WARN": CrossConnectStatusLightLevelIndicatorLowWarn, - "HIGH_WARN": CrossConnectStatusLightLevelIndicatorHighWarn, - "BAD": CrossConnectStatusLightLevelIndicatorBad, - "GOOD": CrossConnectStatusLightLevelIndicatorGood, -} - -// GetCrossConnectStatusLightLevelIndicatorEnumValues Enumerates the set of values for CrossConnectStatusLightLevelIndicatorEnum -func GetCrossConnectStatusLightLevelIndicatorEnumValues() []CrossConnectStatusLightLevelIndicatorEnum { - values := make([]CrossConnectStatusLightLevelIndicatorEnum, 0) - for _, v := range mappingCrossConnectStatusLightLevelIndicator { - values = append(values, v) - } - return values -} - -// CrossConnectStatusEncryptionStatusEnum Enum with underlying type: string -type CrossConnectStatusEncryptionStatusEnum string - -// Set of constants representing the allowable values for CrossConnectStatusEncryptionStatusEnum -const ( - CrossConnectStatusEncryptionStatusUp CrossConnectStatusEncryptionStatusEnum = "UP" - CrossConnectStatusEncryptionStatusDown CrossConnectStatusEncryptionStatusEnum = "DOWN" - CrossConnectStatusEncryptionStatusCipherMismatch CrossConnectStatusEncryptionStatusEnum = "CIPHER_MISMATCH" - CrossConnectStatusEncryptionStatusCknMismatch CrossConnectStatusEncryptionStatusEnum = "CKN_MISMATCH" - CrossConnectStatusEncryptionStatusCakMismatch CrossConnectStatusEncryptionStatusEnum = "CAK_MISMATCH" -) - -var mappingCrossConnectStatusEncryptionStatus = map[string]CrossConnectStatusEncryptionStatusEnum{ - "UP": CrossConnectStatusEncryptionStatusUp, - "DOWN": CrossConnectStatusEncryptionStatusDown, - "CIPHER_MISMATCH": CrossConnectStatusEncryptionStatusCipherMismatch, - "CKN_MISMATCH": CrossConnectStatusEncryptionStatusCknMismatch, - "CAK_MISMATCH": CrossConnectStatusEncryptionStatusCakMismatch, -} - -// GetCrossConnectStatusEncryptionStatusEnumValues Enumerates the set of values for CrossConnectStatusEncryptionStatusEnum -func GetCrossConnectStatusEncryptionStatusEnumValues() []CrossConnectStatusEncryptionStatusEnum { - values := make([]CrossConnectStatusEncryptionStatusEnum, 0) - for _, v := range mappingCrossConnectStatusEncryptionStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dav.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dav.go deleted file mode 100644 index 7fde8b1cb8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dav.go +++ /dev/null @@ -1,132 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Dav A Direct Attached Vnic. -type Dav struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Direct Attached Vnic. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Direct Attached Vnic's compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The current state of the Direct Attached Vnic. - LifecycleState DavLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Index of NIC for Direct Attached Vnic. - NicIndex *int `mandatory:"true" json:"nicIndex"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the instance. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // The MAC address for the DAV. This will be a newly allocated MAC address - // and not the one used by the instance. - MacAddress *string `mandatory:"false" json:"macAddress"` - - // The substrate IP of DAV and primary VNIC attached to the instance. - // This field will be null in case the DAV is not attached. - SubstrateIp *string `mandatory:"false" json:"substrateIp"` - - // The allocated slot id for the Dav. - SlotId *int `mandatory:"false" json:"slotId"` - - // The VLAN Tag assigned to Direct Attached Vnic. - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // The MAC address of the Virtual Router. - VirtualRouterMac *string `mandatory:"false" json:"virtualRouterMac"` - - // Substrate IP address of the remote endpoint. - RemoteEndpointSubstrateIp *string `mandatory:"false" json:"remoteEndpointSubstrateIp"` - - // List of VCNx Attachments to a DRG. - VcnxAttachmentIds []string `mandatory:"false" json:"vcnxAttachmentIds"` - - // The label type for Direct Attached Vnic. This is used to determine the - // label forwarding to be used by the Direct Attached Vnic. - LabelType DavLabelTypeEnum `mandatory:"false" json:"labelType,omitempty"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Dav) String() string { - return common.PointerString(m) -} - -// DavLifecycleStateEnum Enum with underlying type: string -type DavLifecycleStateEnum string - -// Set of constants representing the allowable values for DavLifecycleStateEnum -const ( - DavLifecycleStateProvisioning DavLifecycleStateEnum = "PROVISIONING" - DavLifecycleStateUpdating DavLifecycleStateEnum = "UPDATING" - DavLifecycleStateAvailable DavLifecycleStateEnum = "AVAILABLE" - DavLifecycleStateTerminating DavLifecycleStateEnum = "TERMINATING" - DavLifecycleStateTerminated DavLifecycleStateEnum = "TERMINATED" -) - -var mappingDavLifecycleState = map[string]DavLifecycleStateEnum{ - "PROVISIONING": DavLifecycleStateProvisioning, - "UPDATING": DavLifecycleStateUpdating, - "AVAILABLE": DavLifecycleStateAvailable, - "TERMINATING": DavLifecycleStateTerminating, - "TERMINATED": DavLifecycleStateTerminated, -} - -// GetDavLifecycleStateEnumValues Enumerates the set of values for DavLifecycleStateEnum -func GetDavLifecycleStateEnumValues() []DavLifecycleStateEnum { - values := make([]DavLifecycleStateEnum, 0) - for _, v := range mappingDavLifecycleState { - values = append(values, v) - } - return values -} - -// DavLabelTypeEnum Enum with underlying type: string -type DavLabelTypeEnum string - -// Set of constants representing the allowable values for DavLabelTypeEnum -const ( - DavLabelTypeMpls DavLabelTypeEnum = "MPLS" -) - -var mappingDavLabelType = map[string]DavLabelTypeEnum{ - "MPLS": DavLabelTypeMpls, -} - -// GetDavLabelTypeEnumValues Enumerates the set of values for DavLabelTypeEnum -func GetDavLabelTypeEnumValues() []DavLabelTypeEnum { - values := make([]DavLabelTypeEnum, 0) - for _, v := range mappingDavLabelType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host.go deleted file mode 100644 index ed74bfe9df..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DedicatedVmHost A dedicated virtual machine host lets you host multiple VM instances -// on a dedicated server that is not shared with other tenancies. -type DedicatedVmHost struct { - - // The availability domain the dedicated virtual machine host is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the dedicated virtual machine host. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The dedicated virtual machine host shape. The shape determines the number of CPUs and - // other resources available for VMs. - DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated VM host. - Id *string `mandatory:"true" json:"id"` - - // The current state of the dedicated VM host. - LifecycleState DedicatedVmHostLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the dedicated VM host was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The total OCPUs of the dedicated VM host. - TotalOcpus *float32 `mandatory:"true" json:"totalOcpus"` - - // The available OCPUs of the dedicated VM host. - RemainingOcpus *float32 `mandatory:"true" json:"remainingOcpus"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The fault domain for the dedicated virtual machine host's assigned instances. - // For more information, see Fault Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). - // If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, - // delete it, and then create a new dedicated virtual machine host in the preferred fault domain. - // To get a list of fault domains, use the `ListFaultDomains` operation in the Identity and Access Management Service API (https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). - // Example: `FAULT-DOMAIN-1` - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The total memory of the dedicated VM host, in GBs. - TotalMemoryInGBs *float32 `mandatory:"false" json:"totalMemoryInGBs"` - - // The remaining memory of the dedicated VM host, in GBs. - RemainingMemoryInGBs *float32 `mandatory:"false" json:"remainingMemoryInGBs"` -} - -func (m DedicatedVmHost) String() string { - return common.PointerString(m) -} - -// DedicatedVmHostLifecycleStateEnum Enum with underlying type: string -type DedicatedVmHostLifecycleStateEnum string - -// Set of constants representing the allowable values for DedicatedVmHostLifecycleStateEnum -const ( - DedicatedVmHostLifecycleStateCreating DedicatedVmHostLifecycleStateEnum = "CREATING" - DedicatedVmHostLifecycleStateActive DedicatedVmHostLifecycleStateEnum = "ACTIVE" - DedicatedVmHostLifecycleStateUpdating DedicatedVmHostLifecycleStateEnum = "UPDATING" - DedicatedVmHostLifecycleStateDeleting DedicatedVmHostLifecycleStateEnum = "DELETING" - DedicatedVmHostLifecycleStateDeleted DedicatedVmHostLifecycleStateEnum = "DELETED" - DedicatedVmHostLifecycleStateFailed DedicatedVmHostLifecycleStateEnum = "FAILED" -) - -var mappingDedicatedVmHostLifecycleState = map[string]DedicatedVmHostLifecycleStateEnum{ - "CREATING": DedicatedVmHostLifecycleStateCreating, - "ACTIVE": DedicatedVmHostLifecycleStateActive, - "UPDATING": DedicatedVmHostLifecycleStateUpdating, - "DELETING": DedicatedVmHostLifecycleStateDeleting, - "DELETED": DedicatedVmHostLifecycleStateDeleted, - "FAILED": DedicatedVmHostLifecycleStateFailed, -} - -// GetDedicatedVmHostLifecycleStateEnumValues Enumerates the set of values for DedicatedVmHostLifecycleStateEnum -func GetDedicatedVmHostLifecycleStateEnumValues() []DedicatedVmHostLifecycleStateEnum { - values := make([]DedicatedVmHostLifecycleStateEnum, 0) - for _, v := range mappingDedicatedVmHostLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_shape_summary.go deleted file mode 100644 index 99e80beebc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_shape_summary.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DedicatedVmHostInstanceShapeSummary The shape used to launch instances associated with the dedicated VM host. -type DedicatedVmHostInstanceShapeSummary struct { - - // The name of the virtual machine instance shapes that can be launched on a dedicated VM host. - InstanceShapeName *string `mandatory:"true" json:"instanceShapeName"` - - // The shape's availability domain. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m DedicatedVmHostInstanceShapeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_summary.go deleted file mode 100644 index 28c7778b01..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_instance_summary.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DedicatedVmHostInstanceSummary Condensed instance data when listing instances on a dedicated VM host. -type DedicatedVmHostInstanceSummary struct { - - // The availability domain the virtual machine instance is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the virtual machine instance. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the virtual machine instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The shape of the VM instance. - Shape *string `mandatory:"true" json:"shape"` - - // The date and time the virtual machine instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m DedicatedVmHostInstanceSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_shape_summary.go deleted file mode 100644 index 5035830e6d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_shape_summary.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DedicatedVmHostShapeSummary The shape used to launch the dedicated virtual machine (VM) host. -type DedicatedVmHostShapeSummary struct { - - // The name of the dedicated VM host shape. You can enumerate all available shapes by calling - // dedicatedVmHostShapes. - DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` - - // The shape's availability domain. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m DedicatedVmHostShapeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_summary.go deleted file mode 100644 index 1ad685138e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dedicated_vm_host_summary.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DedicatedVmHostSummary A dedicated virtual machine (VM) host lets you host multiple instances on a dedicated server that is not shared with other tenancies. -type DedicatedVmHostSummary struct { - - // The availability domain the dedicated VM host is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the dedicated VM host. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The shape of the dedicated VM host. The shape determines the number of CPUs and - // other resources available for VMs. - DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated VM host. - Id *string `mandatory:"true" json:"id"` - - // The current state of the dedicated VM host. - LifecycleState DedicatedVmHostSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the dedicated VM host was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current available OCPUs of the dedicated VM host. - RemainingOcpus *float32 `mandatory:"true" json:"remainingOcpus"` - - // The current total OCPUs of the dedicated VM host. - TotalOcpus *float32 `mandatory:"true" json:"totalOcpus"` - - // The fault domain for the dedicated VM host's assigned instances. For more information, see Fault Domains. - // If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated VM host, - // delete it and create a new dedicated VM host in the preferred fault domain. - // To get a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API. - // Example: `FAULT-DOMAIN-1` - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - // The current total memory of the dedicated VM host, in GBs. - TotalMemoryInGBs *float32 `mandatory:"false" json:"totalMemoryInGBs"` - - // The current available memory of the dedicated VM host, in GBs. - RemainingMemoryInGBs *float32 `mandatory:"false" json:"remainingMemoryInGBs"` -} - -func (m DedicatedVmHostSummary) String() string { - return common.PointerString(m) -} - -// DedicatedVmHostSummaryLifecycleStateEnum Enum with underlying type: string -type DedicatedVmHostSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for DedicatedVmHostSummaryLifecycleStateEnum -const ( - DedicatedVmHostSummaryLifecycleStateCreating DedicatedVmHostSummaryLifecycleStateEnum = "CREATING" - DedicatedVmHostSummaryLifecycleStateActive DedicatedVmHostSummaryLifecycleStateEnum = "ACTIVE" - DedicatedVmHostSummaryLifecycleStateUpdating DedicatedVmHostSummaryLifecycleStateEnum = "UPDATING" - DedicatedVmHostSummaryLifecycleStateDeleting DedicatedVmHostSummaryLifecycleStateEnum = "DELETING" - DedicatedVmHostSummaryLifecycleStateDeleted DedicatedVmHostSummaryLifecycleStateEnum = "DELETED" - DedicatedVmHostSummaryLifecycleStateFailed DedicatedVmHostSummaryLifecycleStateEnum = "FAILED" -) - -var mappingDedicatedVmHostSummaryLifecycleState = map[string]DedicatedVmHostSummaryLifecycleStateEnum{ - "CREATING": DedicatedVmHostSummaryLifecycleStateCreating, - "ACTIVE": DedicatedVmHostSummaryLifecycleStateActive, - "UPDATING": DedicatedVmHostSummaryLifecycleStateUpdating, - "DELETING": DedicatedVmHostSummaryLifecycleStateDeleting, - "DELETED": DedicatedVmHostSummaryLifecycleStateDeleted, - "FAILED": DedicatedVmHostSummaryLifecycleStateFailed, -} - -// GetDedicatedVmHostSummaryLifecycleStateEnumValues Enumerates the set of values for DedicatedVmHostSummaryLifecycleStateEnum -func GetDedicatedVmHostSummaryLifecycleStateEnumValues() []DedicatedVmHostSummaryLifecycleStateEnum { - values := make([]DedicatedVmHostSummaryLifecycleStateEnum, 0) - for _, v := range mappingDedicatedVmHostSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/default_drg_route_tables.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/default_drg_route_tables.go deleted file mode 100644 index 2940548d70..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/default_drg_route_tables.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DefaultDrgRouteTables The default DRG route table for this DRG. Each network type -// has a default DRG route table. -// You can update a network type to use a different DRG route table, but -// each network type must have a default DRG route table. You cannot delete -// a default DRG route table. -type DefaultDrgRouteTables struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the default DRG route table to be assigned to DRG attachments - // of type VCN on creation. - Vcn *string `mandatory:"false" json:"vcn"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table assigned to DRG attachments - // of type IPSEC_TUNNEL on creation. - IpsecTunnel *string `mandatory:"false" json:"ipsecTunnel"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table to be assigned to DRG attachments - // of type VIRTUAL_CIRCUIT on creation. - VirtualCircuit *string `mandatory:"false" json:"virtualCircuit"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table to be assigned to DRG attachments - // of type REMOTE_PEERING_CONNECTION on creation. - RemotePeeringConnection *string `mandatory:"false" json:"remotePeeringConnection"` -} - -func (m DefaultDrgRouteTables) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_one_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_one_parameters.go deleted file mode 100644 index 2d01f8ec31..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_one_parameters.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DefaultPhaseOneParameters Phase One Parameters -type DefaultPhaseOneParameters struct { - - // Default Phase One Encryption Algorithms - DefaultEncryptionAlgorithms []string `mandatory:"false" json:"defaultEncryptionAlgorithms"` - - // Default Phase One Authentication Algorithms - DefaultAuthenticationAlgorithms []string `mandatory:"false" json:"defaultAuthenticationAlgorithms"` - - // Default DH Groups - DefaultDhGroups []string `mandatory:"false" json:"defaultDhGroups"` -} - -func (m DefaultPhaseOneParameters) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_two_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_two_parameters.go deleted file mode 100644 index 63452a9482..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/default_phase_two_parameters.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DefaultPhaseTwoParameters Phase Two Parameters -type DefaultPhaseTwoParameters struct { - - // Default Phase Two Encryption Algorithms - DefaultEncryptionAlgorithms []string `mandatory:"false" json:"defaultEncryptionAlgorithms"` - - // Default Phase Two Authentication Algorithms - DefaultAuthenticationAlgorithms []string `mandatory:"false" json:"defaultAuthenticationAlgorithms"` - - // Default PFS DH Group - DefaultPfsDhGroup *string `mandatory:"false" json:"defaultPfsDhGroup"` -} - -func (m DefaultPhaseTwoParameters) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_scan_proxy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_scan_proxy_request_response.go deleted file mode 100644 index 402fb35c17..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_scan_proxy_request_response.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteScanProxyRequest wrapper for the DeleteScanProxy operation -type DeleteScanProxyRequest struct { - - // A unique ID that identifies a scanProxy within a privateEndpoint. - ScanProxyId *string `mandatory:"true" contributesTo:"path" name:"scanProxyId"` - - // The private endpoint's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - PrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"privateEndpointId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the etag from a previous GET or POST response for that resource. The resource - // will be updated or deleted only if the etag you provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteScanProxyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteScanProxyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteScanProxyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteScanProxyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteScanProxyResponse wrapper for the DeleteScanProxy operation -type DeleteScanProxyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteScanProxyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteScanProxyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_public_prefix_details.go deleted file mode 100644 index 4630d29aaf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_public_prefix_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DeleteVirtualCircuitPublicPrefixDetails The representation of DeleteVirtualCircuitPublicPrefixDetails -type DeleteVirtualCircuitPublicPrefixDetails struct { - - // An individual public IP prefix (CIDR) to remove from the public virtual circuit. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` -} - -func (m DeleteVirtualCircuitPublicPrefixDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vtap_request_response.go deleted file mode 100644 index 831b3f4b6d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vtap_request_response.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteVtapRequest wrapper for the DeleteVtap operation -type DeleteVtapRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VTAP. - VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the etag from a previous GET or POST response for that resource. The resource - // will be updated or deleted only if the etag you provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteVtapRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteVtapRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteVtapRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteVtapRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteVtapResponse wrapper for the DeleteVtap operation -type DeleteVtapResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteVtapResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteVtapResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_details.go deleted file mode 100644 index 68b3c8a2d8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DetachInstancePoolInstanceDetails An instance that is to be detached from an instance pool. -type DetachInstancePoolInstanceDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // Whether to decrease the size of the instance pool when the instance is detached. If `true`, the - // pool size is decreased. If `false`, the pool will provision a new, replacement instance - // using the pool's instance configuration as a template. Default is `true`. - IsDecrementSize *bool `mandatory:"false" json:"isDecrementSize"` - - // Whether to permanently terminate (delete) the instance and its attached boot volume - // when detaching it from the instance pool. Default is `false`. - IsAutoTerminate *bool `mandatory:"false" json:"isAutoTerminate"` -} - -func (m DetachInstancePoolInstanceDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_details.go deleted file mode 100644 index 94037006ea..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DetachLoadBalancerDetails Represents a load balancer that is to be detached from an instance pool. -type DetachLoadBalancerDetails struct { - - // The OCID of the load balancer to detach from the instance pool. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The name of the backend set on the load balancer to detach from the instance pool. - BackendSetName *string `mandatory:"true" json:"backendSetName"` -} - -func (m DetachLoadBalancerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_details.go deleted file mode 100644 index 317c28e933..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DetachVnicFromDestinationSmartNicDetails This structure is used when detaching VNIC from destination smartNIC. -type DetachVnicFromDestinationSmartNicDetails struct { - - // Migration session ID associated with the VNIC getting live migrated - MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` -} - -func (m DetachVnicFromDestinationSmartNicDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_details.go deleted file mode 100644 index 3de2d1740f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DetachVnicFromSourceSmartNicDetails This structure is used when detaching VNIC from source smartNIC. -type DetachVnicFromSourceSmartNicDetails struct { - - // Migration session ID associated with the VNIC getting live migrated - MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` -} - -func (m DetachVnicFromSourceSmartNicDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/device.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/device.go deleted file mode 100644 index bd80ad2ff6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/device.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Device Device Path corresponding to the block devices attached to instances having a name and isAvailable flag. -type Device struct { - - // The device name. - Name *string `mandatory:"true" json:"name"` - - // The flag denoting whether device is available. - IsAvailable *bool `mandatory:"true" json:"isAvailable"` -} - -func (m Device) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_dns_option.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_dns_option.go deleted file mode 100644 index 20fddd47b7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_dns_option.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DhcpDnsOption DHCP option for specifying how DNS (hostname resolution) is handled in the subnets in the VCN. -// For more information, see -// DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). -type DhcpDnsOption struct { - - // If you set `serverType` to `CustomDnsServer`, specify the - // IP address of at least one DNS server of your choice (three maximum). - CustomDnsServers []string `mandatory:"false" json:"customDnsServers"` - - // * **VcnLocal:** Reserved for future use. - // * **VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". - // Instances can resolve internet hostnames (no internet gateway is required), - // and can resolve hostnames of instances in the VCN. This is the default - // value in the default set of DHCP options in the VCN. For the Internet and - // VCN Resolver to work across the VCN, there must also be a DNS label set for - // the VCN, a DNS label set for each subnet, and a hostname for each instance. - // The Internet and VCN Resolver also enables reverse DNS lookup, which lets - // you determine the hostname corresponding to the private IP address. For more - // information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // * **CustomDnsServer:** Instances use a DNS server of your choice (three - // maximum). - ServerType DhcpDnsOptionServerTypeEnum `mandatory:"true" json:"serverType"` -} - -func (m DhcpDnsOption) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m DhcpDnsOption) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDhcpDnsOption DhcpDnsOption - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeDhcpDnsOption - }{ - "DomainNameServer", - (MarshalTypeDhcpDnsOption)(m), - } - - return json.Marshal(&s) -} - -// DhcpDnsOptionServerTypeEnum Enum with underlying type: string -type DhcpDnsOptionServerTypeEnum string - -// Set of constants representing the allowable values for DhcpDnsOptionServerTypeEnum -const ( - DhcpDnsOptionServerTypeVcnlocal DhcpDnsOptionServerTypeEnum = "VcnLocal" - DhcpDnsOptionServerTypeVcnlocalplusinternet DhcpDnsOptionServerTypeEnum = "VcnLocalPlusInternet" - DhcpDnsOptionServerTypeCustomdnsserver DhcpDnsOptionServerTypeEnum = "CustomDnsServer" -) - -var mappingDhcpDnsOptionServerType = map[string]DhcpDnsOptionServerTypeEnum{ - "VcnLocal": DhcpDnsOptionServerTypeVcnlocal, - "VcnLocalPlusInternet": DhcpDnsOptionServerTypeVcnlocalplusinternet, - "CustomDnsServer": DhcpDnsOptionServerTypeCustomdnsserver, -} - -// GetDhcpDnsOptionServerTypeEnumValues Enumerates the set of values for DhcpDnsOptionServerTypeEnum -func GetDhcpDnsOptionServerTypeEnumValues() []DhcpDnsOptionServerTypeEnum { - values := make([]DhcpDnsOptionServerTypeEnum, 0) - for _, v := range mappingDhcpDnsOptionServerType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_option.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_option.go deleted file mode 100644 index 149d979e68..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_option.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DhcpOption A single DHCP option according to RFC 1533 (https://tools.ietf.org/html/rfc1533). -// The two options available to use are DhcpDnsOption -// and DhcpSearchDomainOption. For more -// information, see DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm) -// and DHCP Options (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). -type DhcpOption interface { -} - -type dhcpoption struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *dhcpoption) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerdhcpoption dhcpoption - s := struct { - Model Unmarshalerdhcpoption - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *dhcpoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "DomainNameServer": - mm := DhcpDnsOption{} - err = json.Unmarshal(data, &mm) - return mm, err - case "SearchDomain": - mm := DhcpSearchDomainOption{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m dhcpoption) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_options.go deleted file mode 100644 index e3201ad416..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_options.go +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DhcpOptions A set of DHCP options. Used by the VCN to automatically provide configuration -// information to the instances when they boot up. There are two options you can set: -// - DhcpDnsOption: Lets you specify how DNS (hostname resolution) is -// handled in the subnets in your VCN. -// - DhcpSearchDomainOption: Lets you specify -// a search domain name to use for DNS queries. -// For more information, see DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm) -// and DHCP Options (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type DhcpOptions struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the set of DHCP options. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) for the set of DHCP options. - Id *string `mandatory:"true" json:"id"` - - // The current state of the set of DHCP options. - LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The collection of individual DHCP options. - Options []DhcpOption `mandatory:"true" json:"options"` - - // Date and time the set of DHCP options was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the set of DHCP options belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The search domain name type of DHCP options - DomainNameType DhcpOptionsDomainNameTypeEnum `mandatory:"false" json:"domainNameType,omitempty"` -} - -func (m DhcpOptions) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *DhcpOptions) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - DomainNameType DhcpOptionsDomainNameTypeEnum `json:"domainNameType"` - CompartmentId *string `json:"compartmentId"` - Id *string `json:"id"` - LifecycleState DhcpOptionsLifecycleStateEnum `json:"lifecycleState"` - Options []dhcpoption `json:"options"` - TimeCreated *common.SDKTime `json:"timeCreated"` - VcnId *string `json:"vcnId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.DomainNameType = model.DomainNameType - - m.CompartmentId = model.CompartmentId - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - m.Options = make([]DhcpOption, len(model.Options)) - for i, n := range model.Options { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Options[i] = nn.(DhcpOption) - } else { - m.Options[i] = nil - } - } - - m.TimeCreated = model.TimeCreated - - m.VcnId = model.VcnId - - return -} - -// DhcpOptionsLifecycleStateEnum Enum with underlying type: string -type DhcpOptionsLifecycleStateEnum string - -// Set of constants representing the allowable values for DhcpOptionsLifecycleStateEnum -const ( - DhcpOptionsLifecycleStateProvisioning DhcpOptionsLifecycleStateEnum = "PROVISIONING" - DhcpOptionsLifecycleStateAvailable DhcpOptionsLifecycleStateEnum = "AVAILABLE" - DhcpOptionsLifecycleStateTerminating DhcpOptionsLifecycleStateEnum = "TERMINATING" - DhcpOptionsLifecycleStateTerminated DhcpOptionsLifecycleStateEnum = "TERMINATED" -) - -var mappingDhcpOptionsLifecycleState = map[string]DhcpOptionsLifecycleStateEnum{ - "PROVISIONING": DhcpOptionsLifecycleStateProvisioning, - "AVAILABLE": DhcpOptionsLifecycleStateAvailable, - "TERMINATING": DhcpOptionsLifecycleStateTerminating, - "TERMINATED": DhcpOptionsLifecycleStateTerminated, -} - -// GetDhcpOptionsLifecycleStateEnumValues Enumerates the set of values for DhcpOptionsLifecycleStateEnum -func GetDhcpOptionsLifecycleStateEnumValues() []DhcpOptionsLifecycleStateEnum { - values := make([]DhcpOptionsLifecycleStateEnum, 0) - for _, v := range mappingDhcpOptionsLifecycleState { - values = append(values, v) - } - return values -} - -// DhcpOptionsDomainNameTypeEnum Enum with underlying type: string -type DhcpOptionsDomainNameTypeEnum string - -// Set of constants representing the allowable values for DhcpOptionsDomainNameTypeEnum -const ( - DhcpOptionsDomainNameTypeSubnetDomain DhcpOptionsDomainNameTypeEnum = "SUBNET_DOMAIN" - DhcpOptionsDomainNameTypeVcnDomain DhcpOptionsDomainNameTypeEnum = "VCN_DOMAIN" - DhcpOptionsDomainNameTypeCustomDomain DhcpOptionsDomainNameTypeEnum = "CUSTOM_DOMAIN" -) - -var mappingDhcpOptionsDomainNameType = map[string]DhcpOptionsDomainNameTypeEnum{ - "SUBNET_DOMAIN": DhcpOptionsDomainNameTypeSubnetDomain, - "VCN_DOMAIN": DhcpOptionsDomainNameTypeVcnDomain, - "CUSTOM_DOMAIN": DhcpOptionsDomainNameTypeCustomDomain, -} - -// GetDhcpOptionsDomainNameTypeEnumValues Enumerates the set of values for DhcpOptionsDomainNameTypeEnum -func GetDhcpOptionsDomainNameTypeEnumValues() []DhcpOptionsDomainNameTypeEnum { - values := make([]DhcpOptionsDomainNameTypeEnum, 0) - for _, v := range mappingDhcpOptionsDomainNameType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_search_domain_option.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_search_domain_option.go deleted file mode 100644 index 40754b8252..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dhcp_search_domain_option.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DhcpSearchDomainOption DHCP option for specifying a search domain name for DNS queries. For more information, see -// DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). -type DhcpSearchDomainOption struct { - - // A single search domain name according to RFC 952 (https://tools.ietf.org/html/rfc952) - // and RFC 1123 (https://tools.ietf.org/html/rfc1123). During a DNS query, - // the OS will append this search domain name to the value being queried. - // If you set DhcpDnsOption to `VcnLocalPlusInternet`, - // and you assign a DNS label to the VCN during creation, the search domain name in the - // VCN's default set of DHCP options is automatically set to the VCN domain - // (for example, `vcn1.oraclevcn.com`). - // If you don't want to use a search domain name, omit this option from the - // set of DHCP options. Do not include this option with an empty list - // of search domain names, or with an empty string as the value for any search - // domain name. - SearchDomainNames []string `mandatory:"true" json:"searchDomainNames"` -} - -func (m DhcpSearchDomainOption) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m DhcpSearchDomainOption) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDhcpSearchDomainOption DhcpSearchDomainOption - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeDhcpSearchDomainOption - }{ - "SearchDomain", - (MarshalTypeDhcpSearchDomainOption)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dns_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dns_config_details.go deleted file mode 100644 index 1bad2153ed..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dns_config_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DnsConfigDetails The config of DNS server for ClientVPN in detail. -type DnsConfigDetails struct { - - // Whether to override assigned DNS server to private DNS server. - IsOverrideDns *bool `mandatory:"false" json:"isOverrideDns"` - - // List of IP address of DNS - DnsServers []string `mandatory:"false" json:"dnsServers"` -} - -func (m DnsConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/dpd_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/dpd_config.go deleted file mode 100644 index 75a829bc4b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/dpd_config.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DpdConfig DPD Configuration Details -type DpdConfig struct { - - // dpd mode - DpdMode DpdConfigDpdModeEnum `mandatory:"false" json:"dpdMode,omitempty"` - - // DPD Timeout in seconds. - DpdTimeoutInSec *int `mandatory:"false" json:"dpdTimeoutInSec"` -} - -func (m DpdConfig) String() string { - return common.PointerString(m) -} - -// DpdConfigDpdModeEnum Enum with underlying type: string -type DpdConfigDpdModeEnum string - -// Set of constants representing the allowable values for DpdConfigDpdModeEnum -const ( - DpdConfigDpdModeInitiateAndRespond DpdConfigDpdModeEnum = "INITIATE_AND_RESPOND" - DpdConfigDpdModeRespondOnly DpdConfigDpdModeEnum = "RESPOND_ONLY" -) - -var mappingDpdConfigDpdMode = map[string]DpdConfigDpdModeEnum{ - "INITIATE_AND_RESPOND": DpdConfigDpdModeInitiateAndRespond, - "RESPOND_ONLY": DpdConfigDpdModeRespondOnly, -} - -// GetDpdConfigDpdModeEnumValues Enumerates the set of values for DpdConfigDpdModeEnum -func GetDpdConfigDpdModeEnumValues() []DpdConfigDpdModeEnum { - values := make([]DpdConfigDpdModeEnum, 0) - for _, v := range mappingDpdConfigDpdMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg.go deleted file mode 100644 index 2954764678..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Drg A dynamic routing gateway (DRG) is a virtual router that provides a path for private -// network traffic between networks. You use it with other Networking -// Service components to create a connection to your on-premises network using Site-to-Site VPN (https://docs.cloud.oracle.com/Content/Network/Tasks/managingIPsec.htm) or a connection that uses -// FastConnect (https://docs.cloud.oracle.com/Content/Network/Concepts/fastconnect.htm). For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type Drg struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The DRG's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The DRG's current state. - LifecycleState DrgLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The date and time the DRG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - DefaultDrgRouteTables *DefaultDrgRouteTables `mandatory:"false" json:"defaultDrgRouteTables"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this DRG's default export route distribution for the DRG attachments. - DefaultExportDrgRouteDistributionId *string `mandatory:"false" json:"defaultExportDrgRouteDistributionId"` -} - -func (m Drg) String() string { - return common.PointerString(m) -} - -// DrgLifecycleStateEnum Enum with underlying type: string -type DrgLifecycleStateEnum string - -// Set of constants representing the allowable values for DrgLifecycleStateEnum -const ( - DrgLifecycleStateProvisioning DrgLifecycleStateEnum = "PROVISIONING" - DrgLifecycleStateAvailable DrgLifecycleStateEnum = "AVAILABLE" - DrgLifecycleStateTerminating DrgLifecycleStateEnum = "TERMINATING" - DrgLifecycleStateTerminated DrgLifecycleStateEnum = "TERMINATED" -) - -var mappingDrgLifecycleState = map[string]DrgLifecycleStateEnum{ - "PROVISIONING": DrgLifecycleStateProvisioning, - "AVAILABLE": DrgLifecycleStateAvailable, - "TERMINATING": DrgLifecycleStateTerminating, - "TERMINATED": DrgLifecycleStateTerminated, -} - -// GetDrgLifecycleStateEnumValues Enumerates the set of values for DrgLifecycleStateEnum -func GetDrgLifecycleStateEnumValues() []DrgLifecycleStateEnum { - values := make([]DrgLifecycleStateEnum, 0) - for _, v := range mappingDrgLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network.go deleted file mode 100644 index 17690b3610..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachedNetwork The info on attached network of a DRG. -type DrgAttachedNetwork struct { - - // The display name of resource - DisplayName *string `mandatory:"false" json:"displayName"` - - // The compartment id of resource - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The state of resource - State *string `mandatory:"false" json:"state"` -} - -func (m DrgAttachedNetwork) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network_info.go deleted file mode 100644 index 28d03950dd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attached_network_info.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachedNetworkInfo The attached networks of a DRG. -type DrgAttachedNetworkInfo struct { - - // The `drgId` of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The remote peering connections on the DRG - RemotePeeringConnections []DrgAttachedNetwork `mandatory:"false" json:"remotePeeringConnections"` - - // The ipsec connections on the DRG - IpsecConnections []DrgAttachedNetwork `mandatory:"false" json:"ipsecConnections"` - - // The virtual circuits on the DRG - VirtualCircuitConnections []DrgAttachedNetwork `mandatory:"false" json:"virtualCircuitConnections"` -} - -func (m DrgAttachedNetworkInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment.go deleted file mode 100644 index 01d2719677..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment.go +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachment A DRG attachment serves as a link between a DRG and a network resource. A DRG can be attached to a VCN, -// IPSec tunnel, remote peering connection, or virtual circuit. -// For more information, see Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). -type DrgAttachment struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG attachment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The DRG attachment's current state. - LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The date and time the DRG attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table that is assigned to this attachment. - // The DRG route table manages traffic inside the DRG. - DrgRouteTableId *string `mandatory:"false" json:"drgRouteTableId"` - - NetworkDetails DrgAttachmentNetworkDetails `mandatory:"false" json:"networkDetails"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. - // For information about why you would associate a route table with a DRG attachment, see: - // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) - // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) - // This field is deprecated. Instead, use the `networkDetails` field to view the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the attached resource. - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN. - // This field is deprecated. Instead, use the `networkDetails` field to view the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the attached resource. - VcnId *string `mandatory:"false" json:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export route distribution used to specify how routes in the assigned DRG route table - // are advertised to the attachment. - // If this value is null, no routes are advertised through this attachment. - ExportDrgRouteDistributionId *string `mandatory:"false" json:"exportDrgRouteDistributionId"` - - // Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. - // Example: `false` - IsCrossTenancy *bool `mandatory:"false" json:"isCrossTenancy"` -} - -func (m DrgAttachment) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *DrgAttachment) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - TimeCreated *common.SDKTime `json:"timeCreated"` - DrgRouteTableId *string `json:"drgRouteTableId"` - NetworkDetails drgattachmentnetworkdetails `json:"networkDetails"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - RouteTableId *string `json:"routeTableId"` - VcnId *string `json:"vcnId"` - ExportDrgRouteDistributionId *string `json:"exportDrgRouteDistributionId"` - IsCrossTenancy *bool `json:"isCrossTenancy"` - CompartmentId *string `json:"compartmentId"` - DrgId *string `json:"drgId"` - Id *string `json:"id"` - LifecycleState DrgAttachmentLifecycleStateEnum `json:"lifecycleState"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.TimeCreated = model.TimeCreated - - m.DrgRouteTableId = model.DrgRouteTableId - - nn, e = model.NetworkDetails.UnmarshalPolymorphicJSON(model.NetworkDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.NetworkDetails = nn.(DrgAttachmentNetworkDetails) - } else { - m.NetworkDetails = nil - } - - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - m.RouteTableId = model.RouteTableId - - m.VcnId = model.VcnId - - m.ExportDrgRouteDistributionId = model.ExportDrgRouteDistributionId - - m.IsCrossTenancy = model.IsCrossTenancy - - m.CompartmentId = model.CompartmentId - - m.DrgId = model.DrgId - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - return -} - -// DrgAttachmentLifecycleStateEnum Enum with underlying type: string -type DrgAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for DrgAttachmentLifecycleStateEnum -const ( - DrgAttachmentLifecycleStateAttaching DrgAttachmentLifecycleStateEnum = "ATTACHING" - DrgAttachmentLifecycleStateAttached DrgAttachmentLifecycleStateEnum = "ATTACHED" - DrgAttachmentLifecycleStateDetaching DrgAttachmentLifecycleStateEnum = "DETACHING" - DrgAttachmentLifecycleStateDetached DrgAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingDrgAttachmentLifecycleState = map[string]DrgAttachmentLifecycleStateEnum{ - "ATTACHING": DrgAttachmentLifecycleStateAttaching, - "ATTACHED": DrgAttachmentLifecycleStateAttached, - "DETACHING": DrgAttachmentLifecycleStateDetaching, - "DETACHED": DrgAttachmentLifecycleStateDetached, -} - -// GetDrgAttachmentLifecycleStateEnumValues Enumerates the set of values for DrgAttachmentLifecycleStateEnum -func GetDrgAttachmentLifecycleStateEnumValues() []DrgAttachmentLifecycleStateEnum { - values := make([]DrgAttachmentLifecycleStateEnum, 0) - for _, v := range mappingDrgAttachmentLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_id_drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_id_drg_route_distribution_match_criteria.go deleted file mode 100644 index 84991af6dd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_id_drg_route_distribution_match_criteria.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachmentIdDrgRouteDistributionMatchCriteria The criteria by which a specific attachment will import routes to the DRG. -type DrgAttachmentIdDrgRouteDistributionMatchCriteria struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. - DrgAttachmentId *string `mandatory:"true" json:"drgAttachmentId"` -} - -func (m DrgAttachmentIdDrgRouteDistributionMatchCriteria) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m DrgAttachmentIdDrgRouteDistributionMatchCriteria) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDrgAttachmentIdDrgRouteDistributionMatchCriteria DrgAttachmentIdDrgRouteDistributionMatchCriteria - s := struct { - DiscriminatorParam string `json:"matchType"` - MarshalTypeDrgAttachmentIdDrgRouteDistributionMatchCriteria - }{ - "DRG_ATTACHMENT_ID", - (MarshalTypeDrgAttachmentIdDrgRouteDistributionMatchCriteria)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_info.go deleted file mode 100644 index 1c6cd0793d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_info.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachmentInfo The `DrgAttachmentInfo` resource contains the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. -type DrgAttachmentInfo struct { - - // The Oracle-assigned ID of the DRG attachment - Id *string `mandatory:"true" json:"id"` -} - -func (m DrgAttachmentInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_create_details.go deleted file mode 100644 index 3eb7d939a1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_create_details.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachmentNetworkCreateDetails The representation of DrgAttachmentNetworkCreateDetails -type DrgAttachmentNetworkCreateDetails interface { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - GetId() *string -} - -type drgattachmentnetworkcreatedetails struct { - JsonData []byte - Id *string `mandatory:"true" json:"id"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *drgattachmentnetworkcreatedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerdrgattachmentnetworkcreatedetails drgattachmentnetworkcreatedetails - s := struct { - Model Unmarshalerdrgattachmentnetworkcreatedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Id = s.Model.Id - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *drgattachmentnetworkcreatedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "IPSEC_TUNNEL": - mm := IpsecTunnelDrgAttachmentNetworkCreateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "VIRTUAL_CIRCUIT": - mm := VirtualCircuitDrgAttachmentNetworkCreateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "REMOTE_PEERING_CONNECTION": - mm := RemotePeeringConnectionDrgAttachmentNetworkCreateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTERNET": - mm := InternetDrgAttachmentNetworkCreateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "VCN": - mm := VcnDrgAttachmentNetworkCreateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetId returns Id -func (m drgattachmentnetworkcreatedetails) GetId() *string { - return m.Id -} - -func (m drgattachmentnetworkcreatedetails) String() string { - return common.PointerString(m) -} - -// DrgAttachmentNetworkCreateDetailsTypeEnum Enum with underlying type: string -type DrgAttachmentNetworkCreateDetailsTypeEnum string - -// Set of constants representing the allowable values for DrgAttachmentNetworkCreateDetailsTypeEnum -const ( - DrgAttachmentNetworkCreateDetailsTypeVcn DrgAttachmentNetworkCreateDetailsTypeEnum = "VCN" - DrgAttachmentNetworkCreateDetailsTypeVirtualCircuit DrgAttachmentNetworkCreateDetailsTypeEnum = "VIRTUAL_CIRCUIT" - DrgAttachmentNetworkCreateDetailsTypeRemotePeeringConnection DrgAttachmentNetworkCreateDetailsTypeEnum = "REMOTE_PEERING_CONNECTION" - DrgAttachmentNetworkCreateDetailsTypeIpsecTunnel DrgAttachmentNetworkCreateDetailsTypeEnum = "IPSEC_TUNNEL" - DrgAttachmentNetworkCreateDetailsTypeInternet DrgAttachmentNetworkCreateDetailsTypeEnum = "INTERNET" -) - -var mappingDrgAttachmentNetworkCreateDetailsType = map[string]DrgAttachmentNetworkCreateDetailsTypeEnum{ - "VCN": DrgAttachmentNetworkCreateDetailsTypeVcn, - "VIRTUAL_CIRCUIT": DrgAttachmentNetworkCreateDetailsTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": DrgAttachmentNetworkCreateDetailsTypeRemotePeeringConnection, - "IPSEC_TUNNEL": DrgAttachmentNetworkCreateDetailsTypeIpsecTunnel, - "INTERNET": DrgAttachmentNetworkCreateDetailsTypeInternet, -} - -// GetDrgAttachmentNetworkCreateDetailsTypeEnumValues Enumerates the set of values for DrgAttachmentNetworkCreateDetailsTypeEnum -func GetDrgAttachmentNetworkCreateDetailsTypeEnumValues() []DrgAttachmentNetworkCreateDetailsTypeEnum { - values := make([]DrgAttachmentNetworkCreateDetailsTypeEnum, 0) - for _, v := range mappingDrgAttachmentNetworkCreateDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_details.go deleted file mode 100644 index 3db2b10704..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_details.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachmentNetworkDetails The representation of DrgAttachmentNetworkDetails -type DrgAttachmentNetworkDetails interface { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - GetId() *string -} - -type drgattachmentnetworkdetails struct { - JsonData []byte - Id *string `mandatory:"true" json:"id"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *drgattachmentnetworkdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerdrgattachmentnetworkdetails drgattachmentnetworkdetails - s := struct { - Model Unmarshalerdrgattachmentnetworkdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Id = s.Model.Id - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *drgattachmentnetworkdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "VCN": - mm := VcnDrgAttachmentNetworkDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTERNET": - mm := InternetDrgAttachmentNetworkDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "IPSEC_TUNNEL": - mm := IpsecTunnelDrgAttachmentNetworkDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "VIRTUAL_CIRCUIT": - mm := VirtualCircuitDrgAttachmentNetworkDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "REMOTE_PEERING_CONNECTION": - mm := RemotePeeringConnectionDrgAttachmentNetworkDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetId returns Id -func (m drgattachmentnetworkdetails) GetId() *string { - return m.Id -} - -func (m drgattachmentnetworkdetails) String() string { - return common.PointerString(m) -} - -// DrgAttachmentNetworkDetailsTypeEnum Enum with underlying type: string -type DrgAttachmentNetworkDetailsTypeEnum string - -// Set of constants representing the allowable values for DrgAttachmentNetworkDetailsTypeEnum -const ( - DrgAttachmentNetworkDetailsTypeVcn DrgAttachmentNetworkDetailsTypeEnum = "VCN" - DrgAttachmentNetworkDetailsTypeIpsecTunnel DrgAttachmentNetworkDetailsTypeEnum = "IPSEC_TUNNEL" - DrgAttachmentNetworkDetailsTypeVirtualCircuit DrgAttachmentNetworkDetailsTypeEnum = "VIRTUAL_CIRCUIT" - DrgAttachmentNetworkDetailsTypeRemotePeeringConnection DrgAttachmentNetworkDetailsTypeEnum = "REMOTE_PEERING_CONNECTION" - DrgAttachmentNetworkDetailsTypeInternet DrgAttachmentNetworkDetailsTypeEnum = "INTERNET" -) - -var mappingDrgAttachmentNetworkDetailsType = map[string]DrgAttachmentNetworkDetailsTypeEnum{ - "VCN": DrgAttachmentNetworkDetailsTypeVcn, - "IPSEC_TUNNEL": DrgAttachmentNetworkDetailsTypeIpsecTunnel, - "VIRTUAL_CIRCUIT": DrgAttachmentNetworkDetailsTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": DrgAttachmentNetworkDetailsTypeRemotePeeringConnection, - "INTERNET": DrgAttachmentNetworkDetailsTypeInternet, -} - -// GetDrgAttachmentNetworkDetailsTypeEnumValues Enumerates the set of values for DrgAttachmentNetworkDetailsTypeEnum -func GetDrgAttachmentNetworkDetailsTypeEnumValues() []DrgAttachmentNetworkDetailsTypeEnum { - values := make([]DrgAttachmentNetworkDetailsTypeEnum, 0) - for _, v := range mappingDrgAttachmentNetworkDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_update_details.go deleted file mode 100644 index cce7408288..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_network_update_details.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachmentNetworkUpdateDetails The representation of DrgAttachmentNetworkUpdateDetails -type DrgAttachmentNetworkUpdateDetails interface { -} - -type drgattachmentnetworkupdatedetails struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *drgattachmentnetworkupdatedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerdrgattachmentnetworkupdatedetails drgattachmentnetworkupdatedetails - s := struct { - Model Unmarshalerdrgattachmentnetworkupdatedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *drgattachmentnetworkupdatedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "INTERNET": - mm := InternetDrgAttachmentNetworkUpdateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "VIRTUAL_CIRCUIT": - mm := VirtualCircuitDrgAttachmentNetworkUpdateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "VCN": - mm := VcnDrgAttachmentNetworkUpdateDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m drgattachmentnetworkupdatedetails) String() string { - return common.PointerString(m) -} - -// DrgAttachmentNetworkUpdateDetailsTypeEnum Enum with underlying type: string -type DrgAttachmentNetworkUpdateDetailsTypeEnum string - -// Set of constants representing the allowable values for DrgAttachmentNetworkUpdateDetailsTypeEnum -const ( - DrgAttachmentNetworkUpdateDetailsTypeVcn DrgAttachmentNetworkUpdateDetailsTypeEnum = "VCN" - DrgAttachmentNetworkUpdateDetailsTypeVirtualCircuit DrgAttachmentNetworkUpdateDetailsTypeEnum = "VIRTUAL_CIRCUIT" - DrgAttachmentNetworkUpdateDetailsTypeInternet DrgAttachmentNetworkUpdateDetailsTypeEnum = "INTERNET" -) - -var mappingDrgAttachmentNetworkUpdateDetailsType = map[string]DrgAttachmentNetworkUpdateDetailsTypeEnum{ - "VCN": DrgAttachmentNetworkUpdateDetailsTypeVcn, - "VIRTUAL_CIRCUIT": DrgAttachmentNetworkUpdateDetailsTypeVirtualCircuit, - "INTERNET": DrgAttachmentNetworkUpdateDetailsTypeInternet, -} - -// GetDrgAttachmentNetworkUpdateDetailsTypeEnumValues Enumerates the set of values for DrgAttachmentNetworkUpdateDetailsTypeEnum -func GetDrgAttachmentNetworkUpdateDetailsTypeEnumValues() []DrgAttachmentNetworkUpdateDetailsTypeEnum { - values := make([]DrgAttachmentNetworkUpdateDetailsTypeEnum, 0) - for _, v := range mappingDrgAttachmentNetworkUpdateDetailsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_type_drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_type_drg_route_distribution_match_criteria.go deleted file mode 100644 index 92a4980e6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_attachment_type_drg_route_distribution_match_criteria.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgAttachmentTypeDrgRouteDistributionMatchCriteria The attachment type from which the DRG will import routes. Routes will be imported from -// all attachments of this type. -type DrgAttachmentTypeDrgRouteDistributionMatchCriteria struct { - - // The type of the network resource to be included in this match. A match for a network type implies that all - // DRG attachments of that type insert routes into the table. - AttachmentType DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum `mandatory:"true" json:"attachmentType"` -} - -func (m DrgAttachmentTypeDrgRouteDistributionMatchCriteria) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m DrgAttachmentTypeDrgRouteDistributionMatchCriteria) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDrgAttachmentTypeDrgRouteDistributionMatchCriteria DrgAttachmentTypeDrgRouteDistributionMatchCriteria - s := struct { - DiscriminatorParam string `json:"matchType"` - MarshalTypeDrgAttachmentTypeDrgRouteDistributionMatchCriteria - }{ - "DRG_ATTACHMENT_TYPE", - (MarshalTypeDrgAttachmentTypeDrgRouteDistributionMatchCriteria)(m), - } - - return json.Marshal(&s) -} - -// DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum Enum with underlying type: string -type DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum string - -// Set of constants representing the allowable values for DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum -const ( - DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVcn DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "VCN" - DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVirtualCircuit DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "VIRTUAL_CIRCUIT" - DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeRemotePeeringConnection DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" - DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeIpsecTunnel DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "IPSEC_TUNNEL" -) - -var mappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentType = map[string]DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum{ - "VCN": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVcn, - "VIRTUAL_CIRCUIT": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeRemotePeeringConnection, - "IPSEC_TUNNEL": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeIpsecTunnel, -} - -// GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumValues Enumerates the set of values for DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum -func GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumValues() []DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum { - values := make([]DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum, 0) - for _, v := range mappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration.go deleted file mode 100644 index 6f675162c9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgMigration Response from Drg Migration API -type DrgMigration struct { - - // The count of succesfully migrated DRGS from the batch. - SuccessCount *int `mandatory:"true" json:"successCount"` - - // The count of failed during DRGS during migration from the batch. - FailureCount *int `mandatory:"false" json:"failureCount"` - - // The OCIDs of the drgs which were successfully migrated. - SuccessfulDrgIds []string `mandatory:"false" json:"successfulDrgIds"` - - // The OCIDs of the drgs which were failed during migration. - FailedDrgIds []string `mandatory:"false" json:"failedDrgIds"` -} - -func (m DrgMigration) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_region.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_region.go deleted file mode 100644 index 0b084322a6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_region.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgMigrationCountRegion Response from get migration count by region API -type DrgMigrationCountRegion struct { - - // The count of total v1 drgs. - TotalCount *int `mandatory:"true" json:"totalCount"` - - // The count of succesfully migrated Drgs. - MigratedCount *int `mandatory:"true" json:"migratedCount"` - - // The name of the region to contain the DRG. - RegionId *string `mandatory:"false" json:"regionId"` -} - -func (m DrgMigrationCountRegion) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_tenancy.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_tenancy.go deleted file mode 100644 index f6ad8d6edf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_count_tenancy.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgMigrationCountTenancy Response from get migration count by region API -type DrgMigrationCountTenancy struct { - - // The count of total v1 drgs. - TotalCount *int `mandatory:"true" json:"totalCount"` - - // The count of succesfully migrated Drgs. - MigratedCount *int `mandatory:"true" json:"migratedCount"` - - // The name of the tenancy to contain the DRG. - TenancyId *string `mandatory:"true" json:"tenancyId"` -} - -func (m DrgMigrationCountTenancy) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_details.go deleted file mode 100644 index abdd6e9fcf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgMigrationDetails Request object to Drg Migration API -type DrgMigrationDetails struct { - - // The size of migration batch. - BatchSize *int `mandatory:"false" json:"batchSize"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG to migrate. - DrgId *string `mandatory:"false" json:"drgId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy to contain the DRG. - TenancyId *string `mandatory:"false" json:"tenancyId"` -} - -func (m DrgMigrationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_redundancy_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_redundancy_status.go deleted file mode 100644 index d89f5cd238..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_redundancy_status.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgRedundancyStatus The redundancy status of the DRG. For more information, see -// Redundancy Remedies (https://docs.cloud.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). -type DrgRedundancyStatus struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - Id *string `mandatory:"false" json:"id"` - - // The redundancy status of the DRG. - Status DrgRedundancyStatusStatusEnum `mandatory:"false" json:"status,omitempty"` -} - -func (m DrgRedundancyStatus) String() string { - return common.PointerString(m) -} - -// DrgRedundancyStatusStatusEnum Enum with underlying type: string -type DrgRedundancyStatusStatusEnum string - -// Set of constants representing the allowable values for DrgRedundancyStatusStatusEnum -const ( - DrgRedundancyStatusStatusNotAvailable DrgRedundancyStatusStatusEnum = "NOT_AVAILABLE" - DrgRedundancyStatusStatusRedundant DrgRedundancyStatusStatusEnum = "REDUNDANT" - DrgRedundancyStatusStatusNotRedundantSingleIpsec DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_SINGLE_IPSEC" - DrgRedundancyStatusStatusNotRedundantSingleVirtualcircuit DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_SINGLE_VIRTUALCIRCUIT" - DrgRedundancyStatusStatusNotRedundantMultipleIpsecs DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_MULTIPLE_IPSECS" - DrgRedundancyStatusStatusNotRedundantMultipleVirtualcircuits DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_MULTIPLE_VIRTUALCIRCUITS" - DrgRedundancyStatusStatusNotRedundantMixConnections DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_MIX_CONNECTIONS" - DrgRedundancyStatusStatusNotRedundantNoConnection DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_NO_CONNECTION" -) - -var mappingDrgRedundancyStatusStatus = map[string]DrgRedundancyStatusStatusEnum{ - "NOT_AVAILABLE": DrgRedundancyStatusStatusNotAvailable, - "REDUNDANT": DrgRedundancyStatusStatusRedundant, - "NOT_REDUNDANT_SINGLE_IPSEC": DrgRedundancyStatusStatusNotRedundantSingleIpsec, - "NOT_REDUNDANT_SINGLE_VIRTUALCIRCUIT": DrgRedundancyStatusStatusNotRedundantSingleVirtualcircuit, - "NOT_REDUNDANT_MULTIPLE_IPSECS": DrgRedundancyStatusStatusNotRedundantMultipleIpsecs, - "NOT_REDUNDANT_MULTIPLE_VIRTUALCIRCUITS": DrgRedundancyStatusStatusNotRedundantMultipleVirtualcircuits, - "NOT_REDUNDANT_MIX_CONNECTIONS": DrgRedundancyStatusStatusNotRedundantMixConnections, - "NOT_REDUNDANT_NO_CONNECTION": DrgRedundancyStatusStatusNotRedundantNoConnection, -} - -// GetDrgRedundancyStatusStatusEnumValues Enumerates the set of values for DrgRedundancyStatusStatusEnum -func GetDrgRedundancyStatusStatusEnumValues() []DrgRedundancyStatusStatusEnum { - values := make([]DrgRedundancyStatusStatusEnum, 0) - for _, v := range mappingDrgRedundancyStatusStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution.go deleted file mode 100644 index 7f136f8f1a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgRouteDistribution A route distribution establishes how routes get imported into DRG route tables and exported through the DRG attachments. -// A route distribution is a list of statements. Each statement consists of a set of matches, all of which must be `True` in order for -// the statement's action to take place. Each statement determines which routes are propagated. -// You can assign a route distribution as a route table's import distribution. The statements in an import -// route distribution specify how how incoming route advertisements through a referenced attachment or all attachments of a certain type are inserted into the route table. -// You can assign a route distribution as a DRG attachment's export distribution. Export route distribution statements specify how routes in a -// DRG attachment's assigned table are advertised out through the attachment. When a DRG attachment is created, a route distribution is created with a -// single ACCEPT statement with an empty match criteria (empty match criteria implies match ALL). -// Exporting routes through VCN attachments is unsupported, so no VCN attachments are assigned an export distribution. -// The two auto-generated DRG route tables (one as the default for VCN attachments, and the other for all other types of attachments) -// are each assigned an auto generated import route distribution. The default VCN table's import distribution has a single statement with empty match criteria statement to import routes from -// each DRG attachment type. The other table's import distribution has a statement to import routes from attachments with the VCN type. -// The route distribution is always in the same compartment as the DRG. -type DrgRouteDistribution struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG that contains this route distribution. - DrgId *string `mandatory:"true" json:"drgId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the route distribution. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The route distribution's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The route distribution's current state. - LifecycleState DrgRouteDistributionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the route distribution was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Whether this distribution defines how routes get imported into route tables or exported through DRG attachments. - DistributionType DrgRouteDistributionDistributionTypeEnum `mandatory:"true" json:"distributionType"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m DrgRouteDistribution) String() string { - return common.PointerString(m) -} - -// DrgRouteDistributionLifecycleStateEnum Enum with underlying type: string -type DrgRouteDistributionLifecycleStateEnum string - -// Set of constants representing the allowable values for DrgRouteDistributionLifecycleStateEnum -const ( - DrgRouteDistributionLifecycleStateProvisioning DrgRouteDistributionLifecycleStateEnum = "PROVISIONING" - DrgRouteDistributionLifecycleStateAvailable DrgRouteDistributionLifecycleStateEnum = "AVAILABLE" - DrgRouteDistributionLifecycleStateTerminating DrgRouteDistributionLifecycleStateEnum = "TERMINATING" - DrgRouteDistributionLifecycleStateTerminated DrgRouteDistributionLifecycleStateEnum = "TERMINATED" -) - -var mappingDrgRouteDistributionLifecycleState = map[string]DrgRouteDistributionLifecycleStateEnum{ - "PROVISIONING": DrgRouteDistributionLifecycleStateProvisioning, - "AVAILABLE": DrgRouteDistributionLifecycleStateAvailable, - "TERMINATING": DrgRouteDistributionLifecycleStateTerminating, - "TERMINATED": DrgRouteDistributionLifecycleStateTerminated, -} - -// GetDrgRouteDistributionLifecycleStateEnumValues Enumerates the set of values for DrgRouteDistributionLifecycleStateEnum -func GetDrgRouteDistributionLifecycleStateEnumValues() []DrgRouteDistributionLifecycleStateEnum { - values := make([]DrgRouteDistributionLifecycleStateEnum, 0) - for _, v := range mappingDrgRouteDistributionLifecycleState { - values = append(values, v) - } - return values -} - -// DrgRouteDistributionDistributionTypeEnum Enum with underlying type: string -type DrgRouteDistributionDistributionTypeEnum string - -// Set of constants representing the allowable values for DrgRouteDistributionDistributionTypeEnum -const ( - DrgRouteDistributionDistributionTypeImport DrgRouteDistributionDistributionTypeEnum = "IMPORT" - DrgRouteDistributionDistributionTypeExport DrgRouteDistributionDistributionTypeEnum = "EXPORT" -) - -var mappingDrgRouteDistributionDistributionType = map[string]DrgRouteDistributionDistributionTypeEnum{ - "IMPORT": DrgRouteDistributionDistributionTypeImport, - "EXPORT": DrgRouteDistributionDistributionTypeExport, -} - -// GetDrgRouteDistributionDistributionTypeEnumValues Enumerates the set of values for DrgRouteDistributionDistributionTypeEnum -func GetDrgRouteDistributionDistributionTypeEnumValues() []DrgRouteDistributionDistributionTypeEnum { - values := make([]DrgRouteDistributionDistributionTypeEnum, 0) - for _, v := range mappingDrgRouteDistributionDistributionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_match_criteria.go deleted file mode 100644 index f10a5efb69..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_match_criteria.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgRouteDistributionMatchCriteria The match criteria in a route distribution statement. The match criteria outlines which routes -// should be imported or exported. Leaving the match criteria empty implies match ALL. -type DrgRouteDistributionMatchCriteria interface { -} - -type drgroutedistributionmatchcriteria struct { - JsonData []byte - MatchType string `json:"matchType"` -} - -// UnmarshalJSON unmarshals json -func (m *drgroutedistributionmatchcriteria) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerdrgroutedistributionmatchcriteria drgroutedistributionmatchcriteria - s := struct { - Model Unmarshalerdrgroutedistributionmatchcriteria - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.MatchType = s.Model.MatchType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *drgroutedistributionmatchcriteria) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.MatchType { - case "DRG_ATTACHMENT_ID": - mm := DrgAttachmentIdDrgRouteDistributionMatchCriteria{} - err = json.Unmarshal(data, &mm) - return mm, err - case "DRG_ATTACHMENT_TYPE": - mm := DrgAttachmentTypeDrgRouteDistributionMatchCriteria{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m drgroutedistributionmatchcriteria) String() string { - return common.PointerString(m) -} - -// DrgRouteDistributionMatchCriteriaMatchTypeEnum Enum with underlying type: string -type DrgRouteDistributionMatchCriteriaMatchTypeEnum string - -// Set of constants representing the allowable values for DrgRouteDistributionMatchCriteriaMatchTypeEnum -const ( - DrgRouteDistributionMatchCriteriaMatchTypeType DrgRouteDistributionMatchCriteriaMatchTypeEnum = "DRG_ATTACHMENT_TYPE" - DrgRouteDistributionMatchCriteriaMatchTypeId DrgRouteDistributionMatchCriteriaMatchTypeEnum = "DRG_ATTACHMENT_ID" -) - -var mappingDrgRouteDistributionMatchCriteriaMatchType = map[string]DrgRouteDistributionMatchCriteriaMatchTypeEnum{ - "DRG_ATTACHMENT_TYPE": DrgRouteDistributionMatchCriteriaMatchTypeType, - "DRG_ATTACHMENT_ID": DrgRouteDistributionMatchCriteriaMatchTypeId, -} - -// GetDrgRouteDistributionMatchCriteriaMatchTypeEnumValues Enumerates the set of values for DrgRouteDistributionMatchCriteriaMatchTypeEnum -func GetDrgRouteDistributionMatchCriteriaMatchTypeEnumValues() []DrgRouteDistributionMatchCriteriaMatchTypeEnum { - values := make([]DrgRouteDistributionMatchCriteriaMatchTypeEnum, 0) - for _, v := range mappingDrgRouteDistributionMatchCriteriaMatchType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_statement.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_statement.go deleted file mode 100644 index be6e1c5630..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_distribution_statement.go +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgRouteDistributionStatement A single statement within a route distribution. All match criteria in a statement must be met -// for the action to take place. -type DrgRouteDistributionStatement struct { - - // The action is applied only if all of the match criteria is met. - // If there are no match criteria in a statement, any input is considered a match and the action is applied. - MatchCriteria []DrgRouteDistributionMatchCriteria `mandatory:"true" json:"matchCriteria"` - - // `ACCEPT` indicates the route should be imported or exported as-is. - Action DrgRouteDistributionStatementActionEnum `mandatory:"true" json:"action"` - - // This field specifies the priority of each statement in a route distribution. - // Priorities must be unique within a particular route distribution. - // The priority will be represented as a number between 0 and 65535 where a lower number - // indicates a higher priority. When a route is processed, statements are applied in the order - // defined by their priority. The first matching rule dictates the action that will be taken - // on the route. - Priority *int `mandatory:"true" json:"priority"` - - // The Oracle-assigned ID of the route distribution statement. - Id *string `mandatory:"true" json:"id"` -} - -func (m DrgRouteDistributionStatement) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *DrgRouteDistributionStatement) UnmarshalJSON(data []byte) (e error) { - model := struct { - MatchCriteria []drgroutedistributionmatchcriteria `json:"matchCriteria"` - Action DrgRouteDistributionStatementActionEnum `json:"action"` - Priority *int `json:"priority"` - Id *string `json:"id"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.MatchCriteria = make([]DrgRouteDistributionMatchCriteria, len(model.MatchCriteria)) - for i, n := range model.MatchCriteria { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.MatchCriteria[i] = nn.(DrgRouteDistributionMatchCriteria) - } else { - m.MatchCriteria[i] = nil - } - } - - m.Action = model.Action - - m.Priority = model.Priority - - m.Id = model.Id - - return -} - -// DrgRouteDistributionStatementActionEnum Enum with underlying type: string -type DrgRouteDistributionStatementActionEnum string - -// Set of constants representing the allowable values for DrgRouteDistributionStatementActionEnum -const ( - DrgRouteDistributionStatementActionAccept DrgRouteDistributionStatementActionEnum = "ACCEPT" -) - -var mappingDrgRouteDistributionStatementAction = map[string]DrgRouteDistributionStatementActionEnum{ - "ACCEPT": DrgRouteDistributionStatementActionAccept, -} - -// GetDrgRouteDistributionStatementActionEnumValues Enumerates the set of values for DrgRouteDistributionStatementActionEnum -func GetDrgRouteDistributionStatementActionEnumValues() []DrgRouteDistributionStatementActionEnum { - values := make([]DrgRouteDistributionStatementActionEnum, 0) - for _, v := range mappingDrgRouteDistributionStatementAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_rule.go deleted file mode 100644 index f5c1a73e0e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_rule.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgRouteRule A DRG route rule is a mapping between a destination IP address range and a DRG attachment. -// The map is used to route matching packets. Traffic will be routed across the attachments using Equal-cost multi-path routing (ECMP) -// if there are multiple rules with identical destinations and none of the rules conflict. -type DrgRouteRule struct { - - // Represents the range of IP addresses to match against when routing traffic. - // Potential values: - // * An IP address range (IPv4 or IPv6) in CIDR notation. For example: `192.168.1.0/24` - // or `2001:0db8:0123:45::/56`. - // * When you're setting up a security rule for traffic destined for a particular `Service` through - // a service gateway, this is the `cidrBlock` value associated with that Service. For example: `oci-phx-objectstorage`. - Destination *string `mandatory:"true" json:"destination"` - - // The type of destination for the rule. the type is required if `direction` = `EGRESS`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - DestinationType DrgRouteRuleDestinationTypeEnum `mandatory:"true" json:"destinationType"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the next hop DRG attachment responsible - // for reaching the network destination. - // A value of `BLACKHOLE` means traffic for this route is discarded without notification. - NextHopDrgAttachmentId *string `mandatory:"true" json:"nextHopDrgAttachmentId"` - - // The Oracle-assigned ID of the DRG route rule. - Id *string `mandatory:"true" json:"id"` - - // The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, - // and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains `IPSEC_TUNNEL`, - // because that is the earliest origin. - // No routes with a provenance `IPSEC_TUNNEL` or `VIRTUAL_CIRCUIT` will be exported to IPsec tunnel or virtual circuit attachments, - // regardless of the attachment's export distribution. - RouteProvenance DrgRouteRuleRouteProvenanceEnum `mandatory:"true" json:"routeProvenance"` - - // You can specify static routes for the DRG route table using the API. - // The DRG learns dynamic routes from the DRG attachments using various routing protocols. - RouteType DrgRouteRuleRouteTypeEnum `mandatory:"false" json:"routeType,omitempty"` - - // Indicates that the route was not imported due to a conflict between route rules. - IsConflict *bool `mandatory:"false" json:"isConflict"` - - // Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification. - IsBlackhole *bool `mandatory:"false" json:"isBlackhole"` - - // Additional properties for the route, computed by the service. - Attributes *interface{} `mandatory:"false" json:"attributes"` -} - -func (m DrgRouteRule) String() string { - return common.PointerString(m) -} - -// DrgRouteRuleDestinationTypeEnum Enum with underlying type: string -type DrgRouteRuleDestinationTypeEnum string - -// Set of constants representing the allowable values for DrgRouteRuleDestinationTypeEnum -const ( - DrgRouteRuleDestinationTypeCidrBlock DrgRouteRuleDestinationTypeEnum = "CIDR_BLOCK" - DrgRouteRuleDestinationTypeServiceCidrBlock DrgRouteRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" -) - -var mappingDrgRouteRuleDestinationType = map[string]DrgRouteRuleDestinationTypeEnum{ - "CIDR_BLOCK": DrgRouteRuleDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": DrgRouteRuleDestinationTypeServiceCidrBlock, -} - -// GetDrgRouteRuleDestinationTypeEnumValues Enumerates the set of values for DrgRouteRuleDestinationTypeEnum -func GetDrgRouteRuleDestinationTypeEnumValues() []DrgRouteRuleDestinationTypeEnum { - values := make([]DrgRouteRuleDestinationTypeEnum, 0) - for _, v := range mappingDrgRouteRuleDestinationType { - values = append(values, v) - } - return values -} - -// DrgRouteRuleRouteTypeEnum Enum with underlying type: string -type DrgRouteRuleRouteTypeEnum string - -// Set of constants representing the allowable values for DrgRouteRuleRouteTypeEnum -const ( - DrgRouteRuleRouteTypeStatic DrgRouteRuleRouteTypeEnum = "STATIC" - DrgRouteRuleRouteTypeDynamic DrgRouteRuleRouteTypeEnum = "DYNAMIC" -) - -var mappingDrgRouteRuleRouteType = map[string]DrgRouteRuleRouteTypeEnum{ - "STATIC": DrgRouteRuleRouteTypeStatic, - "DYNAMIC": DrgRouteRuleRouteTypeDynamic, -} - -// GetDrgRouteRuleRouteTypeEnumValues Enumerates the set of values for DrgRouteRuleRouteTypeEnum -func GetDrgRouteRuleRouteTypeEnumValues() []DrgRouteRuleRouteTypeEnum { - values := make([]DrgRouteRuleRouteTypeEnum, 0) - for _, v := range mappingDrgRouteRuleRouteType { - values = append(values, v) - } - return values -} - -// DrgRouteRuleRouteProvenanceEnum Enum with underlying type: string -type DrgRouteRuleRouteProvenanceEnum string - -// Set of constants representing the allowable values for DrgRouteRuleRouteProvenanceEnum -const ( - DrgRouteRuleRouteProvenanceStatic DrgRouteRuleRouteProvenanceEnum = "STATIC" - DrgRouteRuleRouteProvenanceVcn DrgRouteRuleRouteProvenanceEnum = "VCN" - DrgRouteRuleRouteProvenanceVirtualCircuit DrgRouteRuleRouteProvenanceEnum = "VIRTUAL_CIRCUIT" - DrgRouteRuleRouteProvenanceIpsecTunnel DrgRouteRuleRouteProvenanceEnum = "IPSEC_TUNNEL" -) - -var mappingDrgRouteRuleRouteProvenance = map[string]DrgRouteRuleRouteProvenanceEnum{ - "STATIC": DrgRouteRuleRouteProvenanceStatic, - "VCN": DrgRouteRuleRouteProvenanceVcn, - "VIRTUAL_CIRCUIT": DrgRouteRuleRouteProvenanceVirtualCircuit, - "IPSEC_TUNNEL": DrgRouteRuleRouteProvenanceIpsecTunnel, -} - -// GetDrgRouteRuleRouteProvenanceEnumValues Enumerates the set of values for DrgRouteRuleRouteProvenanceEnum -func GetDrgRouteRuleRouteProvenanceEnumValues() []DrgRouteRuleRouteProvenanceEnum { - values := make([]DrgRouteRuleRouteProvenanceEnum, 0) - for _, v := range mappingDrgRouteRuleRouteProvenance { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_table.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_table.go deleted file mode 100644 index bf7f1d4107..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_route_table.go +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgRouteTable All routing inside the DRG is driven by the contents of DRG route tables. -// DRG route tables contain rules which route packets to a particular network destination, -// represented as a DRG attachment. -// The routing decision for a packet entering a DRG is determined by the rules in the DRG route table -// assigned to the attachment-of-entry. -// Each DRG attachment can inject routes in any DRG route table, provided there is a statement corresponding to the attachment in the route table's `importDrgRouteDistribution`. -// You can also insert static routes into the DRG route tables. -// The DRG route table is always in the same compartment as the DRG. There must always be a default -// DRG route table for each attachment type. -type DrgRouteTable struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - // DRG route table. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment the DRG is in. The DRG route table - // is always in the same compartment as the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG the DRG that contains this route table. - DrgId *string `mandatory:"true" json:"drgId"` - - // The date and time the DRG route table was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The DRG route table's current state. - LifecycleState DrgRouteTableLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to - // your on-premises network, enable ECMP on the DRG route table to which these attachments - // import routes. - IsEcmpEnabled *bool `mandatory:"true" json:"isEcmpEnabled"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the import route distribution used to specify how incoming route advertisements from - // referenced attachments are inserted into the DRG route table. - ImportDrgRouteDistributionId *string `mandatory:"false" json:"importDrgRouteDistributionId"` -} - -func (m DrgRouteTable) String() string { - return common.PointerString(m) -} - -// DrgRouteTableLifecycleStateEnum Enum with underlying type: string -type DrgRouteTableLifecycleStateEnum string - -// Set of constants representing the allowable values for DrgRouteTableLifecycleStateEnum -const ( - DrgRouteTableLifecycleStateProvisioning DrgRouteTableLifecycleStateEnum = "PROVISIONING" - DrgRouteTableLifecycleStateAvailable DrgRouteTableLifecycleStateEnum = "AVAILABLE" - DrgRouteTableLifecycleStateTerminating DrgRouteTableLifecycleStateEnum = "TERMINATING" - DrgRouteTableLifecycleStateTerminated DrgRouteTableLifecycleStateEnum = "TERMINATED" -) - -var mappingDrgRouteTableLifecycleState = map[string]DrgRouteTableLifecycleStateEnum{ - "PROVISIONING": DrgRouteTableLifecycleStateProvisioning, - "AVAILABLE": DrgRouteTableLifecycleStateAvailable, - "TERMINATING": DrgRouteTableLifecycleStateTerminating, - "TERMINATED": DrgRouteTableLifecycleStateTerminated, -} - -// GetDrgRouteTableLifecycleStateEnumValues Enumerates the set of values for DrgRouteTableLifecycleStateEnum -func GetDrgRouteTableLifecycleStateEnumValues() []DrgRouteTableLifecycleStateEnum { - values := make([]DrgRouteTableLifecycleStateEnum, 0) - for _, v := range mappingDrgRouteTableLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_upgrade_state.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_upgrade_state.go deleted file mode 100644 index a2b1a8419a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_upgrade_state.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgUpgradeState A dynamic routing gateway (DRG) can be in different states during upgrade - Classical, Migrated, Upgraded(Transit-Hub) -type DrgUpgradeState struct { - - // The type of the DRG. - State DrgUpgradeStateStateEnum `mandatory:"false" json:"state,omitempty"` -} - -func (m DrgUpgradeState) String() string { - return common.PointerString(m) -} - -// DrgUpgradeStateStateEnum Enum with underlying type: string -type DrgUpgradeStateStateEnum string - -// Set of constants representing the allowable values for DrgUpgradeStateStateEnum -const ( - DrgUpgradeStateStateClassical DrgUpgradeStateStateEnum = "CLASSICAL" - DrgUpgradeStateStateMigrated DrgUpgradeStateStateEnum = "MIGRATED" - DrgUpgradeStateStateUpgraded DrgUpgradeStateStateEnum = "UPGRADED" -) - -var mappingDrgUpgradeStateState = map[string]DrgUpgradeStateStateEnum{ - "CLASSICAL": DrgUpgradeStateStateClassical, - "MIGRATED": DrgUpgradeStateStateMigrated, - "UPGRADED": DrgUpgradeStateStateUpgraded, -} - -// GetDrgUpgradeStateStateEnumValues Enumerates the set of values for DrgUpgradeStateStateEnum -func GetDrgUpgradeStateStateEnumValues() []DrgUpgradeStateStateEnum { - values := make([]DrgUpgradeStateStateEnum, 0) - for _, v := range mappingDrgUpgradeStateState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_validation_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_validation_status.go deleted file mode 100644 index c8e8a90e9e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_validation_status.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DrgValidationStatus Status of DRG route tables after migration or upgrade. isValid == true indicates that the routes tables before and after migration or upgrade match up as we would expect. -type DrgValidationStatus struct { - - // The `drgId` of the upgraded DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // isValid == true indicates that the routes tables before and after migration or upgrade match up as we would expect. - IsValid *bool `mandatory:"true" json:"isValid"` -} - -func (m DrgValidationStatus) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/egress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/egress_security_rule.go deleted file mode 100644 index 9c9919b291..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/egress_security_rule.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EgressSecurityRule A rule for allowing outbound IP packets. -type EgressSecurityRule struct { - - // Conceptually, this is the range of IP addresses that a packet originating from the instance - // can go to. - // Allowed values: - // * IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // Note that IPv6 addressing is currently supported only in certain regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security list rule for traffic destined for a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - Destination *string `mandatory:"true" json:"destination"` - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). - Protocol *string `mandatory:"true" json:"protocol"` - - // Type of destination for the rule. The default is `CIDR_BLOCK`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - DestinationType EgressSecurityRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if egress traffic allows TCP destination port 80, there should be an ingress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` - - // An optional description of your choice for the rule. - Description *string `mandatory:"false" json:"description"` -} - -func (m EgressSecurityRule) String() string { - return common.PointerString(m) -} - -// EgressSecurityRuleDestinationTypeEnum Enum with underlying type: string -type EgressSecurityRuleDestinationTypeEnum string - -// Set of constants representing the allowable values for EgressSecurityRuleDestinationTypeEnum -const ( - EgressSecurityRuleDestinationTypeCidrBlock EgressSecurityRuleDestinationTypeEnum = "CIDR_BLOCK" - EgressSecurityRuleDestinationTypeServiceCidrBlock EgressSecurityRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" -) - -var mappingEgressSecurityRuleDestinationType = map[string]EgressSecurityRuleDestinationTypeEnum{ - "CIDR_BLOCK": EgressSecurityRuleDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": EgressSecurityRuleDestinationTypeServiceCidrBlock, -} - -// GetEgressSecurityRuleDestinationTypeEnumValues Enumerates the set of values for EgressSecurityRuleDestinationTypeEnum -func GetEgressSecurityRuleDestinationTypeEnumValues() []EgressSecurityRuleDestinationTypeEnum { - values := make([]EgressSecurityRuleDestinationTypeEnum, 0) - for _, v := range mappingEgressSecurityRuleDestinationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/emulated_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/emulated_volume_attachment.go deleted file mode 100644 index 05414b7b42..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/emulated_volume_attachment.go +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EmulatedVolumeAttachment An Emulated volume attachment. -type EmulatedVolumeAttachment struct { - - // The availability domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the volume attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance the volume is attached to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The device name. - Device *string `mandatory:"false" json:"device"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether the attachment was created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` - - // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Whether the attachment is multipath or not. - IsMultipath *bool `mandatory:"false" json:"isMultipath"` - - // The current state of the volume attachment. - LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The iscsi login state of the volume attachment. For a multipath volume attachment, - // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. - IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m EmulatedVolumeAttachment) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetCompartmentId returns CompartmentId -func (m EmulatedVolumeAttachment) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetDevice returns Device -func (m EmulatedVolumeAttachment) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m EmulatedVolumeAttachment) GetDisplayName() *string { - return m.DisplayName -} - -//GetId returns Id -func (m EmulatedVolumeAttachment) GetId() *string { - return m.Id -} - -//GetInstanceId returns InstanceId -func (m EmulatedVolumeAttachment) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m EmulatedVolumeAttachment) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m EmulatedVolumeAttachment) GetIsShareable() *bool { - return m.IsShareable -} - -//GetLifecycleState returns LifecycleState -func (m EmulatedVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { - return m.LifecycleState -} - -//GetTimeCreated returns TimeCreated -func (m EmulatedVolumeAttachment) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -//GetVolumeId returns VolumeId -func (m EmulatedVolumeAttachment) GetVolumeId() *string { - return m.VolumeId -} - -//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled -func (m EmulatedVolumeAttachment) GetIsPvEncryptionInTransitEnabled() *bool { - return m.IsPvEncryptionInTransitEnabled -} - -//GetIsMultipath returns IsMultipath -func (m EmulatedVolumeAttachment) GetIsMultipath() *bool { - return m.IsMultipath -} - -//GetIscsiLoginState returns IscsiLoginState -func (m EmulatedVolumeAttachment) GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum { - return m.IscsiLoginState -} - -func (m EmulatedVolumeAttachment) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m EmulatedVolumeAttachment) MarshalJSON() (buff []byte, e error) { - type MarshalTypeEmulatedVolumeAttachment EmulatedVolumeAttachment - s := struct { - DiscriminatorParam string `json:"attachmentType"` - MarshalTypeEmulatedVolumeAttachment - }{ - "emulated", - (MarshalTypeEmulatedVolumeAttachment)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_details.go deleted file mode 100644 index d26a4b3608..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_details.go +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EnableReverseConnectionsDetails Details for enabling reverse connections for a private endpoint. -type EnableReverseConnectionsDetails struct { - - // A list of IP addresses in the customer VCN to be used as the source IPs for reverse connection packets - // traveling from the service's VCN to the customer's VCN. If no list is specified or - // an empty list is provided, an IP address will be chosen from the customer subnet's CIDR. - ReverseConnectionsSourceIps []ReverseConnectionsSourceIpDetails `mandatory:"false" json:"reverseConnectionsSourceIps"` - - // Whether a proxy should be configured for the reverse connection. If the service - // does not intend to use any proxy, set this to `false`. - // Example: `false` - IsProxyEnabled *bool `mandatory:"false" json:"isProxyEnabled"` - - // List of proxies to be spawned for this reverse connection. All proxy types specified in - // this list will be spawned and they will use the proxyIp(below) as the address. - // If not specified, the field will default back to a list with DNS proxy only. - ProxyType []EnableReverseConnectionsDetailsProxyTypeEnum `mandatory:"false" json:"proxyType,omitempty"` - - // The IP address in the service VCN to be used to reach the reverse connection proxy - // services DNS & SCAN proxy. If no value is provided, an available IP address will - // be chosen from the service subnet's CIDR. - ProxyIp *string `mandatory:"false" json:"proxyIp"` - - // The IP address in the service VCN to be used to reach the DNS proxy that resolves the - // customer FQDN for reverse connections. If no value is provided, an available IP address will - // be chosen from the service subnet's CIDR. - // This field will be deprecated in favor of proxyIp in future. - DnsProxyIp *string `mandatory:"false" json:"dnsProxyIp"` - - // The context in which the DNS proxy will resolve the DNS queries. The default is `SERVICE`. - // For example: if the service does not know the specific DNS zones for the customer VCNs, set - // this to `CUSTOMER`, and set `excludedDnsZones` to the list of DNS zones in your service - // provider VCN. - // Allowed values: - // * `SERVICE`: All DNS queries will be resolved within the service VCN's DNS context, - // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. - // * `CUSTOMER`: All DNS queries will be resolved within the customer VCN's DNS context, - // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. - DefaultDnsResolutionContext EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum `mandatory:"false" json:"defaultDnsResolutionContext,omitempty"` - - // List of DNS zones to exclude from the default DNS resolution context. - ExcludedDnsZones []string `mandatory:"false" json:"excludedDnsZones"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service's subnet where - // the DNS proxy endpoint will be created. - ServiceSubnetId *string `mandatory:"false" json:"serviceSubnetId"` - - // A list of the OCIDs of the network security groups that the reverse connection's VNIC belongs to. - // For more information about NSGs, see - // NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Number of customer endpoints that the service provider expects to establish connections to using this RCE. The default is 0. - // When non-zero value is specified, reverse connection configuration will be allocated with a list of CIDRs, from - // which NAT IP addresses will be allocated. These list of CIDRs will not be shared by other reverse - // connection enabled private endpoints. - // When zero is specified, reverse connection configuration will get NAT IP addresses from common pool of CIDRs, - // which will be shared with other reverse connection enabled private endpoints. - // If the private endpoint was enabled with reverse connection with 0 already, the field is not updatable. - // The size may not be updated with smaller number than previously specified value, but may be increased. - CustomerEndpointsSize *int `mandatory:"false" json:"customerEndpointsSize"` - - // Layer 4 transport protocol to be used when resolving DNS queries within the default DNS resolution context. - DefaultDnsContextTransport EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum `mandatory:"false" json:"defaultDnsContextTransport,omitempty"` - - // List of CIDRs that this reverse connection configuration will allocate the NAT IP addresses from. - // CIDRs on this list should not be shared by other reverse connection enabled private endpoints. - // When not specified, if the customerEndpointSize is non null, reverse connection configuration will get - // NAT IP addresses from the dedicated pool of CIDRs, else will get specified from the common pool of CIDRs. - // This field cannot be specified if the customerEndpointsSize field is non null and vice versa. - ReverseConnectionNatIpCidrs []string `mandatory:"false" json:"reverseConnectionNatIpCidrs"` - - // Whether the reverse connection should be configured with single Ip. If the service - // does not intend to use single Ip for both forward and reverse connection, set this to `false`. - // Example: `false` - IsSingleIpEnabled *bool `mandatory:"false" json:"isSingleIpEnabled"` -} - -func (m EnableReverseConnectionsDetails) String() string { - return common.PointerString(m) -} - -// EnableReverseConnectionsDetailsProxyTypeEnum Enum with underlying type: string -type EnableReverseConnectionsDetailsProxyTypeEnum string - -// Set of constants representing the allowable values for EnableReverseConnectionsDetailsProxyTypeEnum -const ( - EnableReverseConnectionsDetailsProxyTypeDns EnableReverseConnectionsDetailsProxyTypeEnum = "DNS" - EnableReverseConnectionsDetailsProxyTypeScan EnableReverseConnectionsDetailsProxyTypeEnum = "SCAN" -) - -var mappingEnableReverseConnectionsDetailsProxyType = map[string]EnableReverseConnectionsDetailsProxyTypeEnum{ - "DNS": EnableReverseConnectionsDetailsProxyTypeDns, - "SCAN": EnableReverseConnectionsDetailsProxyTypeScan, -} - -// GetEnableReverseConnectionsDetailsProxyTypeEnumValues Enumerates the set of values for EnableReverseConnectionsDetailsProxyTypeEnum -func GetEnableReverseConnectionsDetailsProxyTypeEnumValues() []EnableReverseConnectionsDetailsProxyTypeEnum { - values := make([]EnableReverseConnectionsDetailsProxyTypeEnum, 0) - for _, v := range mappingEnableReverseConnectionsDetailsProxyType { - values = append(values, v) - } - return values -} - -// EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum Enum with underlying type: string -type EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum string - -// Set of constants representing the allowable values for EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum -const ( - EnableReverseConnectionsDetailsDefaultDnsResolutionContextService EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum = "SERVICE" - EnableReverseConnectionsDetailsDefaultDnsResolutionContextCustomer EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum = "CUSTOMER" -) - -var mappingEnableReverseConnectionsDetailsDefaultDnsResolutionContext = map[string]EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum{ - "SERVICE": EnableReverseConnectionsDetailsDefaultDnsResolutionContextService, - "CUSTOMER": EnableReverseConnectionsDetailsDefaultDnsResolutionContextCustomer, -} - -// GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumValues Enumerates the set of values for EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum -func GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumValues() []EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum { - values := make([]EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum, 0) - for _, v := range mappingEnableReverseConnectionsDetailsDefaultDnsResolutionContext { - values = append(values, v) - } - return values -} - -// EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum Enum with underlying type: string -type EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum string - -// Set of constants representing the allowable values for EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum -const ( - EnableReverseConnectionsDetailsDefaultDnsContextTransportTcp EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum = "TCP" - EnableReverseConnectionsDetailsDefaultDnsContextTransportUdp EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum = "UDP" -) - -var mappingEnableReverseConnectionsDetailsDefaultDnsContextTransport = map[string]EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum{ - "TCP": EnableReverseConnectionsDetailsDefaultDnsContextTransportTcp, - "UDP": EnableReverseConnectionsDetailsDefaultDnsContextTransportUdp, -} - -// GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumValues Enumerates the set of values for EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum -func GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumValues() []EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum { - values := make([]EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum, 0) - for _, v := range mappingEnableReverseConnectionsDetailsDefaultDnsContextTransport { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_domain_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_domain_config.go deleted file mode 100644 index 3f4fe47370..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_domain_config.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EncryptionDomainConfig Configuration information used by the encryption domain policy. -type EncryptionDomainConfig struct { - - // Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. - OracleTrafficSelector []string `mandatory:"false" json:"oracleTrafficSelector"` - - // Lists IPv4 or IPv6-enabled subnets in your on-premises network. - CpeTrafficSelector []string `mandatory:"false" json:"cpeTrafficSelector"` -} - -func (m EncryptionDomainConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_in_transit_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_in_transit_type.go deleted file mode 100644 index b1d79e94cd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/encryption_in_transit_type.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -// EncryptionInTransitTypeEnum Enum with underlying type: string -type EncryptionInTransitTypeEnum string - -// Set of constants representing the allowable values for EncryptionInTransitTypeEnum -const ( - EncryptionInTransitTypeNone EncryptionInTransitTypeEnum = "NONE" - EncryptionInTransitTypeBmEncryptionInTransit EncryptionInTransitTypeEnum = "BM_ENCRYPTION_IN_TRANSIT" -) - -var mappingEncryptionInTransitType = map[string]EncryptionInTransitTypeEnum{ - "NONE": EncryptionInTransitTypeNone, - "BM_ENCRYPTION_IN_TRANSIT": EncryptionInTransitTypeBmEncryptionInTransit, -} - -// GetEncryptionInTransitTypeEnumValues Enumerates the set of values for EncryptionInTransitTypeEnum -func GetEncryptionInTransitTypeEnumValues() []EncryptionInTransitTypeEnum { - values := make([]EncryptionInTransitTypeEnum, 0) - for _, v := range mappingEncryptionInTransitType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service.go deleted file mode 100644 index 1649f04ce1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service.go +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EndpointService Required for Oracle services that offer customers private endpoints for private access to the -// service. -// An endpoint service is an object that resides in the Oracle service's VCN and represents the IP addresses -// for accessing the service. An endpoint service can be associated with one or more private -// endpoints, which reside in customer VCNs (see PrivateEndpoint). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type EndpointService struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the - // endpoint service. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // List of service IP addresses (in the service VCN) that handle requests to the endpoint service. - ServiceIps []EndpointServiceIpDetails `mandatory:"true" json:"serviceIps"` - - // The ports on the endpoint service IPs that are open for private endpoint traffic for this - // endpoint service. If you provide no ports, all open ports on the service IPs are accessible. - Ports []int `mandatory:"true" json:"ports"` - - // The three-label FQDN to use for all private endpoints associated with this endpoint - // service. This attribute's value cannot be changed. - // For important information about how this attribute is used, see the discussion - // of DNS and FQDNs in PrivateEndpoint. - // Example: `xyz.oraclecloud.com` - EndpointFqdn *string `mandatory:"true" json:"endpointFqdn"` - - // The date and time the endpoint service was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The endpoint service's current lifecycle state. - LifecycleState EndpointServiceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the endpoint - // service belongs to. - VcnId *string `mandatory:"false" json:"vcnId"` - - // A description of the endpoint service. For Oracle services that use the "trusted" mode of the - // private endpoint service, customers never see this description. - Description *string `mandatory:"false" json:"description"` - - // A friendly name for the endpoint service. Must be unique within the VCN. Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Some Oracle services want to restrict access to the resources represented by an endpoint service so - // that only a single private endpoint in the customer VCN has access. - // For example, the endpoint service might represent a particular service resource (such as a - // particular database). The service might want to allow access to that particular resource - // from only a single private endpoint. - // Defaults to `false`. - // Example: `true` - AreMultiplePrivateEndpointsPerVcnAllowed *bool `mandatory:"false" json:"areMultiplePrivateEndpointsPerVcnAllowed"` - - // Reserved for future use. - IsVcnMetadataEnabled *bool `mandatory:"false" json:"isVcnMetadataEnabled"` - - // ES from substrate or not - IsSubstrate *bool `mandatory:"false" json:"isSubstrate"` - - // RCE substrate anycast IP - ReverseConnectionAnycastIp *string `mandatory:"false" json:"reverseConnectionAnycastIp"` - - // MPLS label that identifies the substrate endpoint service - ReverseConnectionMplsLabel *int `mandatory:"false" json:"reverseConnectionMplsLabel"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m EndpointService) String() string { - return common.PointerString(m) -} - -// EndpointServiceLifecycleStateEnum Enum with underlying type: string -type EndpointServiceLifecycleStateEnum string - -// Set of constants representing the allowable values for EndpointServiceLifecycleStateEnum -const ( - EndpointServiceLifecycleStateProvisioning EndpointServiceLifecycleStateEnum = "PROVISIONING" - EndpointServiceLifecycleStateAvailable EndpointServiceLifecycleStateEnum = "AVAILABLE" - EndpointServiceLifecycleStateTerminating EndpointServiceLifecycleStateEnum = "TERMINATING" - EndpointServiceLifecycleStateTerminated EndpointServiceLifecycleStateEnum = "TERMINATED" - EndpointServiceLifecycleStateUpdating EndpointServiceLifecycleStateEnum = "UPDATING" - EndpointServiceLifecycleStateFailed EndpointServiceLifecycleStateEnum = "FAILED" -) - -var mappingEndpointServiceLifecycleState = map[string]EndpointServiceLifecycleStateEnum{ - "PROVISIONING": EndpointServiceLifecycleStateProvisioning, - "AVAILABLE": EndpointServiceLifecycleStateAvailable, - "TERMINATING": EndpointServiceLifecycleStateTerminating, - "TERMINATED": EndpointServiceLifecycleStateTerminated, - "UPDATING": EndpointServiceLifecycleStateUpdating, - "FAILED": EndpointServiceLifecycleStateFailed, -} - -// GetEndpointServiceLifecycleStateEnumValues Enumerates the set of values for EndpointServiceLifecycleStateEnum -func GetEndpointServiceLifecycleStateEnumValues() []EndpointServiceLifecycleStateEnum { - values := make([]EndpointServiceLifecycleStateEnum, 0) - for _, v := range mappingEndpointServiceLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_ip_details.go deleted file mode 100644 index 949391bf5d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_ip_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EndpointServiceIpDetails Information about an IP address (in the service VCN) that handles requests to the endpoint service. -type EndpointServiceIpDetails struct { - - // An IP address (in the service VCN) that handles requests to the endpoint service. - ServiceIp *string `mandatory:"true" json:"serviceIp"` -} - -func (m EndpointServiceIpDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_next_hop.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_next_hop.go deleted file mode 100644 index 2ebff77f62..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_next_hop.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EndpointServiceNextHop Information of a particular service's next hop -type EndpointServiceNextHop struct { - - // An IP address that handles requests to the endpoint service. - ServiceIp *string `mandatory:"true" json:"serviceIp"` - - // An Internal IP address that handles requests to the substrate anycast of endpoint service. - NextHopIp *string `mandatory:"true" json:"nextHopIp"` - - // MPLS label that identifies the substrate endpoint service - NextHopSlotId *int `mandatory:"true" json:"nextHopSlotId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service. - EndpointServiceId *string `mandatory:"false" json:"endpointServiceId"` -} - -func (m EndpointServiceNextHop) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_summary.go deleted file mode 100644 index a33592ec82..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/endpoint_service_summary.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EndpointServiceSummary A summary of endpoint service information. This object is returned when listing endpoint -// services. -type EndpointServiceSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the endpoint - // service belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` -} - -func (m EndpointServiceSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/enum_integer_image_capability_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/enum_integer_image_capability_descriptor.go deleted file mode 100644 index 7070a4fa8c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/enum_integer_image_capability_descriptor.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EnumIntegerImageCapabilityDescriptor Enum Integer type CapabilityDescriptor -type EnumIntegerImageCapabilityDescriptor struct { - - // the list of values for the enum - Values []int `mandatory:"true" json:"values"` - - // the default value - DefaultValue *int `mandatory:"false" json:"defaultValue"` - - Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` -} - -//GetSource returns Source -func (m EnumIntegerImageCapabilityDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { - return m.Source -} - -func (m EnumIntegerImageCapabilityDescriptor) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m EnumIntegerImageCapabilityDescriptor) MarshalJSON() (buff []byte, e error) { - type MarshalTypeEnumIntegerImageCapabilityDescriptor EnumIntegerImageCapabilityDescriptor - s := struct { - DiscriminatorParam string `json:"descriptorType"` - MarshalTypeEnumIntegerImageCapabilityDescriptor - }{ - "enuminteger", - (MarshalTypeEnumIntegerImageCapabilityDescriptor)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/enum_string_image_capability_schema_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/enum_string_image_capability_schema_descriptor.go deleted file mode 100644 index d11efce3b1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/enum_string_image_capability_schema_descriptor.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EnumStringImageCapabilitySchemaDescriptor Enum String type of ImageCapabilitySchemaDescriptor -type EnumStringImageCapabilitySchemaDescriptor struct { - - // the list of values for the enum - Values []string `mandatory:"true" json:"values"` - - // the default value - DefaultValue *string `mandatory:"false" json:"defaultValue"` - - Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` -} - -//GetSource returns Source -func (m EnumStringImageCapabilitySchemaDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { - return m.Source -} - -func (m EnumStringImageCapabilitySchemaDescriptor) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m EnumStringImageCapabilitySchemaDescriptor) MarshalJSON() (buff []byte, e error) { - type MarshalTypeEnumStringImageCapabilitySchemaDescriptor EnumStringImageCapabilitySchemaDescriptor - s := struct { - DiscriminatorParam string `json:"descriptorType"` - MarshalTypeEnumStringImageCapabilitySchemaDescriptor - }{ - "enumstring", - (MarshalTypeEnumStringImageCapabilitySchemaDescriptor)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/exclusion_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/exclusion_filter_details.go deleted file mode 100644 index ebb06a672d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/exclusion_filter_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExclusionFilterDetails These parameters can be used to exclude traffic at the source from the traffic mirrored to the target. -type ExclusionFilterDetails struct { - - // List of CIDR blocks to exclude when the source is `SUBNET`. - Cidrs []string `mandatory:"false" json:"cidrs"` -} - -func (m ExclusionFilterDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_details.go deleted file mode 100644 index 40c9f7edc9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_details.go +++ /dev/null @@ -1,122 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExportImageDetails The destination details for the image export. -// Set `destinationType` to `objectStorageTuple` -// and use ExportImageViaObjectStorageTupleDetails -// when specifying the namespace, bucket name, and object name. -// Set `destinationType` to `objectStorageUri` and -// use ExportImageViaObjectStorageUriDetails -// when specifying the Object Storage URL. -type ExportImageDetails interface { - - // The format to export the image to. The default value is `OCI`. - // The following image formats are available: - // - `OCI` - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci). - // Use this format to export a custom image that you want to import into other tenancies or regions. - // - `QCOW2` - QEMU Copy On Write (.qcow2) - // - `VDI` - Virtual Disk Image (.vdi) for Oracle VM VirtualBox - // - `VHD` - Virtual Hard Disk (.vhd) for Hyper-V - // - `VMDK` - Virtual Machine Disk (.vmdk) - GetExportFormat() ExportImageDetailsExportFormatEnum -} - -type exportimagedetails struct { - JsonData []byte - ExportFormat ExportImageDetailsExportFormatEnum `mandatory:"false" json:"exportFormat,omitempty"` - DestinationType string `json:"destinationType"` -} - -// UnmarshalJSON unmarshals json -func (m *exportimagedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerexportimagedetails exportimagedetails - s := struct { - Model Unmarshalerexportimagedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.ExportFormat = s.Model.ExportFormat - m.DestinationType = s.Model.DestinationType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *exportimagedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.DestinationType { - case "objectStorageUri": - mm := ExportImageViaObjectStorageUriDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "objectStorageTuple": - mm := ExportImageViaObjectStorageTupleDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetExportFormat returns ExportFormat -func (m exportimagedetails) GetExportFormat() ExportImageDetailsExportFormatEnum { - return m.ExportFormat -} - -func (m exportimagedetails) String() string { - return common.PointerString(m) -} - -// ExportImageDetailsExportFormatEnum Enum with underlying type: string -type ExportImageDetailsExportFormatEnum string - -// Set of constants representing the allowable values for ExportImageDetailsExportFormatEnum -const ( - ExportImageDetailsExportFormatQcow2 ExportImageDetailsExportFormatEnum = "QCOW2" - ExportImageDetailsExportFormatVmdk ExportImageDetailsExportFormatEnum = "VMDK" - ExportImageDetailsExportFormatOci ExportImageDetailsExportFormatEnum = "OCI" - ExportImageDetailsExportFormatVhd ExportImageDetailsExportFormatEnum = "VHD" - ExportImageDetailsExportFormatVdi ExportImageDetailsExportFormatEnum = "VDI" -) - -var mappingExportImageDetailsExportFormat = map[string]ExportImageDetailsExportFormatEnum{ - "QCOW2": ExportImageDetailsExportFormatQcow2, - "VMDK": ExportImageDetailsExportFormatVmdk, - "OCI": ExportImageDetailsExportFormatOci, - "VHD": ExportImageDetailsExportFormatVhd, - "VDI": ExportImageDetailsExportFormatVdi, -} - -// GetExportImageDetailsExportFormatEnumValues Enumerates the set of values for ExportImageDetailsExportFormatEnum -func GetExportImageDetailsExportFormatEnumValues() []ExportImageDetailsExportFormatEnum { - values := make([]ExportImageDetailsExportFormatEnum, 0) - for _, v := range mappingExportImageDetailsExportFormat { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_tuple_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_tuple_details.go deleted file mode 100644 index 9eb730bc65..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_tuple_details.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExportImageViaObjectStorageTupleDetails The representation of ExportImageViaObjectStorageTupleDetails -type ExportImageViaObjectStorageTupleDetails struct { - - // The Object Storage bucket to export the image to. - BucketName *string `mandatory:"true" json:"bucketName"` - - // The Object Storage namespace to export the image to. - NamespaceName *string `mandatory:"true" json:"namespaceName"` - - // The Object Storage object name for the exported image. - ObjectName *string `mandatory:"true" json:"objectName"` - - // The format to export the image to. The default value is `OCI`. - // The following image formats are available: - // - `OCI` - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci). - // Use this format to export a custom image that you want to import into other tenancies or regions. - // - `QCOW2` - QEMU Copy On Write (.qcow2) - // - `VDI` - Virtual Disk Image (.vdi) for Oracle VM VirtualBox - // - `VHD` - Virtual Hard Disk (.vhd) for Hyper-V - // - `VMDK` - Virtual Machine Disk (.vmdk) - ExportFormat ExportImageDetailsExportFormatEnum `mandatory:"false" json:"exportFormat,omitempty"` -} - -//GetExportFormat returns ExportFormat -func (m ExportImageViaObjectStorageTupleDetails) GetExportFormat() ExportImageDetailsExportFormatEnum { - return m.ExportFormat -} - -func (m ExportImageViaObjectStorageTupleDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m ExportImageViaObjectStorageTupleDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeExportImageViaObjectStorageTupleDetails ExportImageViaObjectStorageTupleDetails - s := struct { - DiscriminatorParam string `json:"destinationType"` - MarshalTypeExportImageViaObjectStorageTupleDetails - }{ - "objectStorageTuple", - (MarshalTypeExportImageViaObjectStorageTupleDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_uri_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_uri_details.go deleted file mode 100644 index 793f0015d8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_via_object_storage_uri_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExportImageViaObjectStorageUriDetails The representation of ExportImageViaObjectStorageUriDetails -type ExportImageViaObjectStorageUriDetails struct { - - // The Object Storage URL to export the image to. See Object - // Storage URLs (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm#URLs) - // and Using Pre-Authenticated Requests (https://docs.cloud.oracle.com/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) - // for constructing URLs for image import/export. - DestinationUri *string `mandatory:"true" json:"destinationUri"` - - // The format to export the image to. The default value is `OCI`. - // The following image formats are available: - // - `OCI` - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci). - // Use this format to export a custom image that you want to import into other tenancies or regions. - // - `QCOW2` - QEMU Copy On Write (.qcow2) - // - `VDI` - Virtual Disk Image (.vdi) for Oracle VM VirtualBox - // - `VHD` - Virtual Hard Disk (.vhd) for Hyper-V - // - `VMDK` - Virtual Machine Disk (.vmdk) - ExportFormat ExportImageDetailsExportFormatEnum `mandatory:"false" json:"exportFormat,omitempty"` -} - -//GetExportFormat returns ExportFormat -func (m ExportImageViaObjectStorageUriDetails) GetExportFormat() ExportImageDetailsExportFormatEnum { - return m.ExportFormat -} - -func (m ExportImageViaObjectStorageUriDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m ExportImageViaObjectStorageUriDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeExportImageViaObjectStorageUriDetails ExportImageViaObjectStorageUriDetails - s := struct { - DiscriminatorParam string `json:"destinationType"` - MarshalTypeExportImageViaObjectStorageUriDetails - }{ - "objectStorageUri", - (MarshalTypeExportImageViaObjectStorageUriDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service.go deleted file mode 100644 index d5206beb64..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service.go +++ /dev/null @@ -1,238 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FastConnectProviderService A service offering from a supported provider. For more information, -// see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -type FastConnectProviderService struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider. - Id *string `mandatory:"true" json:"id"` - - // Who is responsible for managing the private peering BGP information. - PrivatePeeringBgpManagement FastConnectProviderServicePrivatePeeringBgpManagementEnum `mandatory:"true" json:"privatePeeringBgpManagement"` - - // The name of the provider. - ProviderName *string `mandatory:"true" json:"providerName"` - - // The name of the service offered by the provider. - ProviderServiceName *string `mandatory:"true" json:"providerServiceName"` - - // Who is responsible for managing the public peering BGP information. - PublicPeeringBgpManagement FastConnectProviderServicePublicPeeringBgpManagementEnum `mandatory:"true" json:"publicPeeringBgpManagement"` - - // Who is responsible for managing the ASN information for the network at the other end - // of the connection from Oracle. - CustomerAsnManagement FastConnectProviderServiceCustomerAsnManagementEnum `mandatory:"true" json:"customerAsnManagement"` - - // Who is responsible for managing the provider service key. - ProviderServiceKeyManagement FastConnectProviderServiceProviderServiceKeyManagementEnum `mandatory:"true" json:"providerServiceKeyManagement"` - - // Who is responsible for managing the virtual circuit bandwidth. - BandwithShapeManagement FastConnectProviderServiceBandwithShapeManagementEnum `mandatory:"true" json:"bandwithShapeManagement"` - - // Total number of cross-connect or cross-connect groups required for the virtual circuit. - RequiredTotalCrossConnects *int `mandatory:"true" json:"requiredTotalCrossConnects"` - - // Provider service type. - Type FastConnectProviderServiceTypeEnum `mandatory:"true" json:"type"` - - // The location of the provider's website or portal. This portal is where you can get information - // about the provider service, create a virtual circuit connection from the provider to Oracle - // Cloud Infrastructure, and retrieve your provider service key for that virtual circuit connection. - // Example: `https://example.com` - Description *string `mandatory:"false" json:"description"` - - // An array of virtual circuit types supported by this service. - SupportedVirtualCircuitTypes []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum `mandatory:"false" json:"supportedVirtualCircuitTypes,omitempty"` -} - -func (m FastConnectProviderService) String() string { - return common.PointerString(m) -} - -// FastConnectProviderServicePrivatePeeringBgpManagementEnum Enum with underlying type: string -type FastConnectProviderServicePrivatePeeringBgpManagementEnum string - -// Set of constants representing the allowable values for FastConnectProviderServicePrivatePeeringBgpManagementEnum -const ( - FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "ORACLE_MANAGED" -) - -var mappingFastConnectProviderServicePrivatePeeringBgpManagement = map[string]FastConnectProviderServicePrivatePeeringBgpManagementEnum{ - "CUSTOMER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged, -} - -// GetFastConnectProviderServicePrivatePeeringBgpManagementEnumValues Enumerates the set of values for FastConnectProviderServicePrivatePeeringBgpManagementEnum -func GetFastConnectProviderServicePrivatePeeringBgpManagementEnumValues() []FastConnectProviderServicePrivatePeeringBgpManagementEnum { - values := make([]FastConnectProviderServicePrivatePeeringBgpManagementEnum, 0) - for _, v := range mappingFastConnectProviderServicePrivatePeeringBgpManagement { - values = append(values, v) - } - return values -} - -// FastConnectProviderServicePublicPeeringBgpManagementEnum Enum with underlying type: string -type FastConnectProviderServicePublicPeeringBgpManagementEnum string - -// Set of constants representing the allowable values for FastConnectProviderServicePublicPeeringBgpManagementEnum -const ( - FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServicePublicPeeringBgpManagementProviderManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServicePublicPeeringBgpManagementOracleManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "ORACLE_MANAGED" -) - -var mappingFastConnectProviderServicePublicPeeringBgpManagement = map[string]FastConnectProviderServicePublicPeeringBgpManagementEnum{ - "CUSTOMER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementOracleManaged, -} - -// GetFastConnectProviderServicePublicPeeringBgpManagementEnumValues Enumerates the set of values for FastConnectProviderServicePublicPeeringBgpManagementEnum -func GetFastConnectProviderServicePublicPeeringBgpManagementEnumValues() []FastConnectProviderServicePublicPeeringBgpManagementEnum { - values := make([]FastConnectProviderServicePublicPeeringBgpManagementEnum, 0) - for _, v := range mappingFastConnectProviderServicePublicPeeringBgpManagement { - values = append(values, v) - } - return values -} - -// FastConnectProviderServiceSupportedVirtualCircuitTypesEnum Enum with underlying type: string -type FastConnectProviderServiceSupportedVirtualCircuitTypesEnum string - -// Set of constants representing the allowable values for FastConnectProviderServiceSupportedVirtualCircuitTypesEnum -const ( - FastConnectProviderServiceSupportedVirtualCircuitTypesPublic FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PUBLIC" - FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PRIVATE" -) - -var mappingFastConnectProviderServiceSupportedVirtualCircuitTypes = map[string]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum{ - "PUBLIC": FastConnectProviderServiceSupportedVirtualCircuitTypesPublic, - "PRIVATE": FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate, -} - -// GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumValues Enumerates the set of values for FastConnectProviderServiceSupportedVirtualCircuitTypesEnum -func GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumValues() []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum { - values := make([]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum, 0) - for _, v := range mappingFastConnectProviderServiceSupportedVirtualCircuitTypes { - values = append(values, v) - } - return values -} - -// FastConnectProviderServiceCustomerAsnManagementEnum Enum with underlying type: string -type FastConnectProviderServiceCustomerAsnManagementEnum string - -// Set of constants representing the allowable values for FastConnectProviderServiceCustomerAsnManagementEnum -const ( - FastConnectProviderServiceCustomerAsnManagementCustomerManaged FastConnectProviderServiceCustomerAsnManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServiceCustomerAsnManagementProviderManaged FastConnectProviderServiceCustomerAsnManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServiceCustomerAsnManagementOracleManaged FastConnectProviderServiceCustomerAsnManagementEnum = "ORACLE_MANAGED" -) - -var mappingFastConnectProviderServiceCustomerAsnManagement = map[string]FastConnectProviderServiceCustomerAsnManagementEnum{ - "CUSTOMER_MANAGED": FastConnectProviderServiceCustomerAsnManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServiceCustomerAsnManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServiceCustomerAsnManagementOracleManaged, -} - -// GetFastConnectProviderServiceCustomerAsnManagementEnumValues Enumerates the set of values for FastConnectProviderServiceCustomerAsnManagementEnum -func GetFastConnectProviderServiceCustomerAsnManagementEnumValues() []FastConnectProviderServiceCustomerAsnManagementEnum { - values := make([]FastConnectProviderServiceCustomerAsnManagementEnum, 0) - for _, v := range mappingFastConnectProviderServiceCustomerAsnManagement { - values = append(values, v) - } - return values -} - -// FastConnectProviderServiceProviderServiceKeyManagementEnum Enum with underlying type: string -type FastConnectProviderServiceProviderServiceKeyManagementEnum string - -// Set of constants representing the allowable values for FastConnectProviderServiceProviderServiceKeyManagementEnum -const ( - FastConnectProviderServiceProviderServiceKeyManagementCustomerManaged FastConnectProviderServiceProviderServiceKeyManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServiceProviderServiceKeyManagementProviderManaged FastConnectProviderServiceProviderServiceKeyManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServiceProviderServiceKeyManagementOracleManaged FastConnectProviderServiceProviderServiceKeyManagementEnum = "ORACLE_MANAGED" -) - -var mappingFastConnectProviderServiceProviderServiceKeyManagement = map[string]FastConnectProviderServiceProviderServiceKeyManagementEnum{ - "CUSTOMER_MANAGED": FastConnectProviderServiceProviderServiceKeyManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServiceProviderServiceKeyManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServiceProviderServiceKeyManagementOracleManaged, -} - -// GetFastConnectProviderServiceProviderServiceKeyManagementEnumValues Enumerates the set of values for FastConnectProviderServiceProviderServiceKeyManagementEnum -func GetFastConnectProviderServiceProviderServiceKeyManagementEnumValues() []FastConnectProviderServiceProviderServiceKeyManagementEnum { - values := make([]FastConnectProviderServiceProviderServiceKeyManagementEnum, 0) - for _, v := range mappingFastConnectProviderServiceProviderServiceKeyManagement { - values = append(values, v) - } - return values -} - -// FastConnectProviderServiceBandwithShapeManagementEnum Enum with underlying type: string -type FastConnectProviderServiceBandwithShapeManagementEnum string - -// Set of constants representing the allowable values for FastConnectProviderServiceBandwithShapeManagementEnum -const ( - FastConnectProviderServiceBandwithShapeManagementCustomerManaged FastConnectProviderServiceBandwithShapeManagementEnum = "CUSTOMER_MANAGED" - FastConnectProviderServiceBandwithShapeManagementProviderManaged FastConnectProviderServiceBandwithShapeManagementEnum = "PROVIDER_MANAGED" - FastConnectProviderServiceBandwithShapeManagementOracleManaged FastConnectProviderServiceBandwithShapeManagementEnum = "ORACLE_MANAGED" -) - -var mappingFastConnectProviderServiceBandwithShapeManagement = map[string]FastConnectProviderServiceBandwithShapeManagementEnum{ - "CUSTOMER_MANAGED": FastConnectProviderServiceBandwithShapeManagementCustomerManaged, - "PROVIDER_MANAGED": FastConnectProviderServiceBandwithShapeManagementProviderManaged, - "ORACLE_MANAGED": FastConnectProviderServiceBandwithShapeManagementOracleManaged, -} - -// GetFastConnectProviderServiceBandwithShapeManagementEnumValues Enumerates the set of values for FastConnectProviderServiceBandwithShapeManagementEnum -func GetFastConnectProviderServiceBandwithShapeManagementEnumValues() []FastConnectProviderServiceBandwithShapeManagementEnum { - values := make([]FastConnectProviderServiceBandwithShapeManagementEnum, 0) - for _, v := range mappingFastConnectProviderServiceBandwithShapeManagement { - values = append(values, v) - } - return values -} - -// FastConnectProviderServiceTypeEnum Enum with underlying type: string -type FastConnectProviderServiceTypeEnum string - -// Set of constants representing the allowable values for FastConnectProviderServiceTypeEnum -const ( - FastConnectProviderServiceTypeLayer2 FastConnectProviderServiceTypeEnum = "LAYER2" - FastConnectProviderServiceTypeLayer3 FastConnectProviderServiceTypeEnum = "LAYER3" -) - -var mappingFastConnectProviderServiceType = map[string]FastConnectProviderServiceTypeEnum{ - "LAYER2": FastConnectProviderServiceTypeLayer2, - "LAYER3": FastConnectProviderServiceTypeLayer3, -} - -// GetFastConnectProviderServiceTypeEnumValues Enumerates the set of values for FastConnectProviderServiceTypeEnum -func GetFastConnectProviderServiceTypeEnumValues() []FastConnectProviderServiceTypeEnum { - values := make([]FastConnectProviderServiceTypeEnum, 0) - for _, v := range mappingFastConnectProviderServiceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service_key.go deleted file mode 100644 index 0b7a9245aa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/fast_connect_provider_service_key.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FastConnectProviderServiceKey A provider service key and its details. A provider service key is an identifier for a provider's -// virtual circuit. -type FastConnectProviderServiceKey struct { - - // The service key that the provider gives you when you set up a virtual circuit connection - // from the provider to Oracle Cloud Infrastructure. Use this value as the `providerServiceKeyName` - // query parameter for - // GetFastConnectProviderServiceKey. - Name *string `mandatory:"true" json:"name"` - - // The provisioned data rate of the connection. To get a list of the - // available bandwidth levels (that is, shapes), see - // ListFastConnectProviderVirtualCircuitBandwidthShapes. - // Example: `10 Gbps` - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // The provider's peering location. - PeeringLocation *string `mandatory:"false" json:"peeringLocation"` -} - -func (m FastConnectProviderServiceKey) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/floating_ip_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/floating_ip_info.go deleted file mode 100644 index d3b0a8007f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/floating_ip_info.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FloatingIpInfo Detail info about floating IP. -type FloatingIpInfo struct { - - // ID of the floating IP - Id *string `mandatory:"true" json:"id"` - - // The IP address of the floating IP - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // HostName for the primary IP. Only the hostname label, not the FQDN. - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // The Network Address Translated IP to communicate with internal services - NatIpAddress *string `mandatory:"false" json:"natIpAddress"` -} - -func (m FloatingIpInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config.go deleted file mode 100644 index d17f11690e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config.go +++ /dev/null @@ -1,172 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FlowLogConfig *Flow logs* record information about traffic that is either allowed or rejected by the -// SecurityList that control traffic in and out of a -// Vnic. -// A *flow log configuration* (`FlowLogConfig`) contains information about where to store flow -// logs (an Object Storage bucket in your tenancy), and the type of logs to store. -// **Important:** For logs to be placed in the Object Storage bucket listed in the configuration, -// an administrator must create an IAM policy in your tenancy that lets the Networking service -// put objects in that bucket. Otherwise, no flow logs can be written to the bucket. -// Here's the required policy (which consists of three separate statements): -// `define tenancy VcnFlowLogs as ocid1.tenancy.oc1..<unique_ID>` -// `define dynamic-group FlowLogsDynamicGroup as ocid1.dynamicgroup.oc1..<unique_ID>` -// `admit dynamic-group FlowLogsDynamicGroup of tenancy VcnFlowLogs to manage objects in tenancy where target.bucket.name='yourbucketname'` -// To enable flow logs for a subnet: after creating a flow -// log configuration, attach the flow log configuration to that subnet. See -// FlowLogConfigAttachment and -// CreateFlowLogConfigAttachment. -type FlowLogConfig struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the flow - // log configuration. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The flow log configuration's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - Id *string `mandatory:"true" json:"id"` - - // The flow log configuration's current state. - LifecycleState FlowLogConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Type or types of flow logs to store. `ALL` includes records for both accepted traffic and - // rejected traffic. - FlowLogType FlowLogConfigFlowLogTypeEnum `mandatory:"true" json:"flowLogType"` - - Destination FlowLogDestination `mandatory:"true" json:"destination"` - - // The date and time the flow log configuration was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m FlowLogConfig) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *FlowLogConfig) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - CompartmentId *string `json:"compartmentId"` - DisplayName *string `json:"displayName"` - Id *string `json:"id"` - LifecycleState FlowLogConfigLifecycleStateEnum `json:"lifecycleState"` - FlowLogType FlowLogConfigFlowLogTypeEnum `json:"flowLogType"` - Destination flowlogdestination `json:"destination"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - m.CompartmentId = model.CompartmentId - - m.DisplayName = model.DisplayName - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - m.FlowLogType = model.FlowLogType - - nn, e = model.Destination.UnmarshalPolymorphicJSON(model.Destination.JsonData) - if e != nil { - return - } - if nn != nil { - m.Destination = nn.(FlowLogDestination) - } else { - m.Destination = nil - } - - m.TimeCreated = model.TimeCreated - - return -} - -// FlowLogConfigLifecycleStateEnum Enum with underlying type: string -type FlowLogConfigLifecycleStateEnum string - -// Set of constants representing the allowable values for FlowLogConfigLifecycleStateEnum -const ( - FlowLogConfigLifecycleStateProvisioning FlowLogConfigLifecycleStateEnum = "PROVISIONING" - FlowLogConfigLifecycleStateAvailable FlowLogConfigLifecycleStateEnum = "AVAILABLE" - FlowLogConfigLifecycleStateTerminating FlowLogConfigLifecycleStateEnum = "TERMINATING" - FlowLogConfigLifecycleStateTerminated FlowLogConfigLifecycleStateEnum = "TERMINATED" -) - -var mappingFlowLogConfigLifecycleState = map[string]FlowLogConfigLifecycleStateEnum{ - "PROVISIONING": FlowLogConfigLifecycleStateProvisioning, - "AVAILABLE": FlowLogConfigLifecycleStateAvailable, - "TERMINATING": FlowLogConfigLifecycleStateTerminating, - "TERMINATED": FlowLogConfigLifecycleStateTerminated, -} - -// GetFlowLogConfigLifecycleStateEnumValues Enumerates the set of values for FlowLogConfigLifecycleStateEnum -func GetFlowLogConfigLifecycleStateEnumValues() []FlowLogConfigLifecycleStateEnum { - values := make([]FlowLogConfigLifecycleStateEnum, 0) - for _, v := range mappingFlowLogConfigLifecycleState { - values = append(values, v) - } - return values -} - -// FlowLogConfigFlowLogTypeEnum Enum with underlying type: string -type FlowLogConfigFlowLogTypeEnum string - -// Set of constants representing the allowable values for FlowLogConfigFlowLogTypeEnum -const ( - FlowLogConfigFlowLogTypeAll FlowLogConfigFlowLogTypeEnum = "ALL" -) - -var mappingFlowLogConfigFlowLogType = map[string]FlowLogConfigFlowLogTypeEnum{ - "ALL": FlowLogConfigFlowLogTypeAll, -} - -// GetFlowLogConfigFlowLogTypeEnumValues Enumerates the set of values for FlowLogConfigFlowLogTypeEnum -func GetFlowLogConfigFlowLogTypeEnumValues() []FlowLogConfigFlowLogTypeEnum { - values := make([]FlowLogConfigFlowLogTypeEnum, 0) - for _, v := range mappingFlowLogConfigFlowLogType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config_attachment.go deleted file mode 100644 index d849cca683..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_config_attachment.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FlowLogConfigAttachment Represents an attachment between a flow log configuration and a resource such as a subnet. By -// creating a `FlowLogConfigAttachment`, you turn on flow logs for the attached resource. See -// CreateFlowLogConfigAttachment. -type FlowLogConfigAttachment struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the - // flow log configuration attachment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The flow log configuration attachment's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - Id *string `mandatory:"true" json:"id"` - - // The flow log configuration attachment's current state. - LifecycleState FlowLogConfigAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that the flow log - // configuration is attached to. - TargetEntityId *string `mandatory:"true" json:"targetEntityId"` - - // The type of resource that the flow log configuration is attached to. - TargetEntityType FlowLogConfigAttachmentTargetEntityTypeEnum `mandatory:"true" json:"targetEntityType"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the flow log configuration that - // is attached to the resource. - FlowLogConfigId *string `mandatory:"true" json:"flowLogConfigId"` - - // The date and time the flow log configuration attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m FlowLogConfigAttachment) String() string { - return common.PointerString(m) -} - -// FlowLogConfigAttachmentLifecycleStateEnum Enum with underlying type: string -type FlowLogConfigAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for FlowLogConfigAttachmentLifecycleStateEnum -const ( - FlowLogConfigAttachmentLifecycleStateProvisioning FlowLogConfigAttachmentLifecycleStateEnum = "PROVISIONING" - FlowLogConfigAttachmentLifecycleStateAvailable FlowLogConfigAttachmentLifecycleStateEnum = "AVAILABLE" - FlowLogConfigAttachmentLifecycleStateTerminating FlowLogConfigAttachmentLifecycleStateEnum = "TERMINATING" - FlowLogConfigAttachmentLifecycleStateTerminated FlowLogConfigAttachmentLifecycleStateEnum = "TERMINATED" -) - -var mappingFlowLogConfigAttachmentLifecycleState = map[string]FlowLogConfigAttachmentLifecycleStateEnum{ - "PROVISIONING": FlowLogConfigAttachmentLifecycleStateProvisioning, - "AVAILABLE": FlowLogConfigAttachmentLifecycleStateAvailable, - "TERMINATING": FlowLogConfigAttachmentLifecycleStateTerminating, - "TERMINATED": FlowLogConfigAttachmentLifecycleStateTerminated, -} - -// GetFlowLogConfigAttachmentLifecycleStateEnumValues Enumerates the set of values for FlowLogConfigAttachmentLifecycleStateEnum -func GetFlowLogConfigAttachmentLifecycleStateEnumValues() []FlowLogConfigAttachmentLifecycleStateEnum { - values := make([]FlowLogConfigAttachmentLifecycleStateEnum, 0) - for _, v := range mappingFlowLogConfigAttachmentLifecycleState { - values = append(values, v) - } - return values -} - -// FlowLogConfigAttachmentTargetEntityTypeEnum Enum with underlying type: string -type FlowLogConfigAttachmentTargetEntityTypeEnum string - -// Set of constants representing the allowable values for FlowLogConfigAttachmentTargetEntityTypeEnum -const ( - FlowLogConfigAttachmentTargetEntityTypeSubnet FlowLogConfigAttachmentTargetEntityTypeEnum = "SUBNET" -) - -var mappingFlowLogConfigAttachmentTargetEntityType = map[string]FlowLogConfigAttachmentTargetEntityTypeEnum{ - "SUBNET": FlowLogConfigAttachmentTargetEntityTypeSubnet, -} - -// GetFlowLogConfigAttachmentTargetEntityTypeEnumValues Enumerates the set of values for FlowLogConfigAttachmentTargetEntityTypeEnum -func GetFlowLogConfigAttachmentTargetEntityTypeEnumValues() []FlowLogConfigAttachmentTargetEntityTypeEnum { - values := make([]FlowLogConfigAttachmentTargetEntityTypeEnum, 0) - for _, v := range mappingFlowLogConfigAttachmentTargetEntityType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_destination.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_destination.go deleted file mode 100644 index 7b57b0e655..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_destination.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FlowLogDestination Where to store the flow logs. -type FlowLogDestination interface { -} - -type flowlogdestination struct { - JsonData []byte - DestinationType string `json:"destinationType"` -} - -// UnmarshalJSON unmarshals json -func (m *flowlogdestination) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerflowlogdestination flowlogdestination - s := struct { - Model Unmarshalerflowlogdestination - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.DestinationType = s.Model.DestinationType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *flowlogdestination) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.DestinationType { - case "OBJECT_STORAGE": - mm := FlowLogObjectStorageDestination{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m flowlogdestination) String() string { - return common.PointerString(m) -} - -// FlowLogDestinationDestinationTypeEnum Enum with underlying type: string -type FlowLogDestinationDestinationTypeEnum string - -// Set of constants representing the allowable values for FlowLogDestinationDestinationTypeEnum -const ( - FlowLogDestinationDestinationTypeObjectStorage FlowLogDestinationDestinationTypeEnum = "OBJECT_STORAGE" -) - -var mappingFlowLogDestinationDestinationType = map[string]FlowLogDestinationDestinationTypeEnum{ - "OBJECT_STORAGE": FlowLogDestinationDestinationTypeObjectStorage, -} - -// GetFlowLogDestinationDestinationTypeEnumValues Enumerates the set of values for FlowLogDestinationDestinationTypeEnum -func GetFlowLogDestinationDestinationTypeEnumValues() []FlowLogDestinationDestinationTypeEnum { - values := make([]FlowLogDestinationDestinationTypeEnum, 0) - for _, v := range mappingFlowLogDestinationDestinationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_object_storage_destination.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_object_storage_destination.go deleted file mode 100644 index 8ccba80bf0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/flow_log_object_storage_destination.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FlowLogObjectStorageDestination Information to identify the Object Storage bucket where the flow logs will be stored. -type FlowLogObjectStorageDestination struct { - - // The Object Storage bucket name. - BucketName *string `mandatory:"false" json:"bucketName"` - - // The Object Storage namespace. - NamespaceName *string `mandatory:"false" json:"namespaceName"` -} - -func (m FlowLogObjectStorageDestination) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m FlowLogObjectStorageDestination) MarshalJSON() (buff []byte, e error) { - type MarshalTypeFlowLogObjectStorageDestination FlowLogObjectStorageDestination - s := struct { - DiscriminatorParam string `json:"destinationType"` - MarshalTypeFlowLogObjectStorageDestination - }{ - "OBJECT_STORAGE", - (MarshalTypeFlowLogObjectStorageDestination)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/gateway_route_data.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/gateway_route_data.go deleted file mode 100644 index a98bbd9263..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/gateway_route_data.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// GatewayRouteData Maps Region identifier and/or AD(s) to corresponding VIPs. Region identifier is required. Passed through as-is to El Paso. -// Region identifier is expected to be name of Region enum. -type GatewayRouteData struct { - AdLabel *string `mandatory:"true" json:"adLabel"` - - GatewayVip *string `mandatory:"true" json:"gatewayVip"` -} - -func (m GatewayRouteData) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_all_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_all_drg_attachments_request_response.go deleted file mode 100644 index 0cb5454699..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_all_drg_attachments_request_response.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetAllDrgAttachmentsRequest wrapper for the GetAllDrgAttachments operation -type GetAllDrgAttachmentsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The type for the network resource attached to the DRG. - AttachmentType GetAllDrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` - - // Whether the DRG attachment lives in a different tenancy than the DRG. - IsCrossTenancy *bool `mandatory:"false" contributesTo:"query" name:"isCrossTenancy"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetAllDrgAttachmentsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetAllDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetAllDrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetAllDrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetAllDrgAttachmentsResponse wrapper for the GetAllDrgAttachments operation -type GetAllDrgAttachmentsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgAttachmentInfo instances - Items []DrgAttachmentInfo `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetAllDrgAttachmentsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetAllDrgAttachmentsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// GetAllDrgAttachmentsAttachmentTypeEnum Enum with underlying type: string -type GetAllDrgAttachmentsAttachmentTypeEnum string - -// Set of constants representing the allowable values for GetAllDrgAttachmentsAttachmentTypeEnum -const ( - GetAllDrgAttachmentsAttachmentTypeVcn GetAllDrgAttachmentsAttachmentTypeEnum = "VCN" - GetAllDrgAttachmentsAttachmentTypeVirtualCircuit GetAllDrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" - GetAllDrgAttachmentsAttachmentTypeRemotePeeringConnection GetAllDrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" - GetAllDrgAttachmentsAttachmentTypeIpsecTunnel GetAllDrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" - GetAllDrgAttachmentsAttachmentTypeAll GetAllDrgAttachmentsAttachmentTypeEnum = "ALL" -) - -var mappingGetAllDrgAttachmentsAttachmentType = map[string]GetAllDrgAttachmentsAttachmentTypeEnum{ - "VCN": GetAllDrgAttachmentsAttachmentTypeVcn, - "VIRTUAL_CIRCUIT": GetAllDrgAttachmentsAttachmentTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": GetAllDrgAttachmentsAttachmentTypeRemotePeeringConnection, - "IPSEC_TUNNEL": GetAllDrgAttachmentsAttachmentTypeIpsecTunnel, - "ALL": GetAllDrgAttachmentsAttachmentTypeAll, -} - -// GetGetAllDrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for GetAllDrgAttachmentsAttachmentTypeEnum -func GetGetAllDrgAttachmentsAttachmentTypeEnumValues() []GetAllDrgAttachmentsAttachmentTypeEnum { - values := make([]GetAllDrgAttachmentsAttachmentTypeEnum, 0) - for _, v := range mappingGetAllDrgAttachmentsAttachmentType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_cluster_request_response.go deleted file mode 100644 index ac0ac1d816..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_cluster_request_response.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetComputeClusterRequest wrapper for the GetComputeCluster operation -type GetComputeClusterRequest struct { - - // The OCID of the compute cluster. - ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetComputeClusterRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetComputeClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetComputeClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetComputeClusterRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetComputeClusterResponse wrapper for the GetComputeCluster operation -type GetComputeClusterResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ComputeCluster instance - ComputeCluster `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetComputeClusterResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetComputeClusterResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_details.go deleted file mode 100644 index 0983e02fcb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// GetCreateReverseConnectionNatIpDetails Details for retrieving the reverse connection NAT IP address. -type GetCreateReverseConnectionNatIpDetails struct { - - // The customer's IP address that corresponds to the reverse connection NAT IP address. - ReverseConnectionCustomerIp *string `mandatory:"true" json:"reverseConnectionCustomerIp"` -} - -func (m GetCreateReverseConnectionNatIpDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_details.go deleted file mode 100644 index d2b0e2e4bb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// GetInternalGenericGatewayByGatewayIdDetails The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway stands for. -type GetInternalGenericGatewayByGatewayIdDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway stands for. - GatewayId *string `mandatory:"true" json:"gatewayId"` -} - -func (m GetInternalGenericGatewayByGatewayIdDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_networking_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_networking_topology_request_response.go deleted file mode 100644 index 9c0d524c8c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_networking_topology_request_response.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetNetworkingTopologyRequest wrapper for the GetNetworkingTopology operation -type GetNetworkingTopologyRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`. - // Setting this to `ACCESSIBLE` returns only compartments for which a - // user has INSPECT permissions, either directly or indirectly (permissions can be on a - // resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has - // indirect INSPECT permissions. - // When set to `ANY` permissions are not checked. - AccessLevel GetNetworkingTopologyAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` - - // When set to true, the hierarchy of compartments is traversed - // and the specified compartment and its subcompartments are - // inspected depending on the the setting of `accessLevel`. - // Default is false. - QueryCompartmentSubtree *bool `mandatory:"false" contributesTo:"query" name:"queryCompartmentSubtree"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For querying if there is a cached value on the server. The If-None-Match HTTP request header - // makes the request conditional. For GET and HEAD methods, the server will send back the requested - // resource, with a 200 status, only if it doesn't have an ETag matching the given ones. - // For other methods, the request will be processed only if the eventually existing resource's - // ETag doesn't match any of the values listed. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The Cache-Control HTTP header holds directives (instructions) - // for caching in both requests and responses. - CacheControl *string `mandatory:"false" contributesTo:"header" name:"cache-control"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetNetworkingTopologyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetNetworkingTopologyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetNetworkingTopologyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetNetworkingTopologyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetNetworkingTopologyResponse wrapper for the GetNetworkingTopology operation -type GetNetworkingTopologyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The NetworkingTopology instance - NetworkingTopology `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetNetworkingTopologyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetNetworkingTopologyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// GetNetworkingTopologyAccessLevelEnum Enum with underlying type: string -type GetNetworkingTopologyAccessLevelEnum string - -// Set of constants representing the allowable values for GetNetworkingTopologyAccessLevelEnum -const ( - GetNetworkingTopologyAccessLevelAny GetNetworkingTopologyAccessLevelEnum = "ANY" - GetNetworkingTopologyAccessLevelAccessible GetNetworkingTopologyAccessLevelEnum = "ACCESSIBLE" -) - -var mappingGetNetworkingTopologyAccessLevel = map[string]GetNetworkingTopologyAccessLevelEnum{ - "ANY": GetNetworkingTopologyAccessLevelAny, - "ACCESSIBLE": GetNetworkingTopologyAccessLevelAccessible, -} - -// GetGetNetworkingTopologyAccessLevelEnumValues Enumerates the set of values for GetNetworkingTopologyAccessLevelEnum -func GetGetNetworkingTopologyAccessLevelEnumValues() []GetNetworkingTopologyAccessLevelEnum { - values := make([]GetNetworkingTopologyAccessLevelEnum, 0) - for _, v := range mappingGetNetworkingTopologyAccessLevel { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_details.go deleted file mode 100644 index 764eda0c5d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// GetPublicIpByIpAddressDetails IP address of the public IP. -type GetPublicIpByIpAddressDetails struct { - - // The public IP address. - // Example: 203.0.113.2 - IpAddress *string `mandatory:"true" json:"ipAddress"` -} - -func (m GetPublicIpByIpAddressDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_details.go deleted file mode 100644 index 3bf54183da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// GetPublicIpByPrivateIpIdDetails Details of the private IP that the public IP is assigned to. -type GetPublicIpByPrivateIpIdDetails struct { - - // OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP. - PrivateIpId *string `mandatory:"true" json:"privateIpId"` -} - -func (m GetPublicIpByPrivateIpIdDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_topology_request_response.go deleted file mode 100644 index 09b73ab377..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_topology_request_response.go +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetSubnetTopologyRequest wrapper for the GetSubnetTopology operation -type GetSubnetTopologyRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. - SubnetId *string `mandatory:"true" contributesTo:"query" name:"subnetId"` - - // Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`. - // Setting this to `ACCESSIBLE` returns only compartments for which a - // user has INSPECT permissions, either directly or indirectly (permissions can be on a - // resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has - // indirect INSPECT permissions. - // When set to `ANY` permissions are not checked. - AccessLevel GetSubnetTopologyAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` - - // When set to true, the hierarchy of compartments is traversed - // and the specified compartment and its subcompartments are - // inspected depending on the the setting of `accessLevel`. - // Default is false. - QueryCompartmentSubtree *bool `mandatory:"false" contributesTo:"query" name:"queryCompartmentSubtree"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For querying if there is a cached value on the server. The If-None-Match HTTP request header - // makes the request conditional. For GET and HEAD methods, the server will send back the requested - // resource, with a 200 status, only if it doesn't have an ETag matching the given ones. - // For other methods, the request will be processed only if the eventually existing resource's - // ETag doesn't match any of the values listed. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The Cache-Control HTTP header holds directives (instructions) - // for caching in both requests and responses. - CacheControl *string `mandatory:"false" contributesTo:"header" name:"cache-control"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetSubnetTopologyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetSubnetTopologyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetSubnetTopologyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetSubnetTopologyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetSubnetTopologyResponse wrapper for the GetSubnetTopology operation -type GetSubnetTopologyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The SubnetTopology instance - SubnetTopology `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetSubnetTopologyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetSubnetTopologyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// GetSubnetTopologyAccessLevelEnum Enum with underlying type: string -type GetSubnetTopologyAccessLevelEnum string - -// Set of constants representing the allowable values for GetSubnetTopologyAccessLevelEnum -const ( - GetSubnetTopologyAccessLevelAny GetSubnetTopologyAccessLevelEnum = "ANY" - GetSubnetTopologyAccessLevelAccessible GetSubnetTopologyAccessLevelEnum = "ACCESSIBLE" -) - -var mappingGetSubnetTopologyAccessLevel = map[string]GetSubnetTopologyAccessLevelEnum{ - "ANY": GetSubnetTopologyAccessLevelAny, - "ACCESSIBLE": GetSubnetTopologyAccessLevelAccessible, -} - -// GetGetSubnetTopologyAccessLevelEnumValues Enumerates the set of values for GetSubnetTopologyAccessLevelEnum -func GetGetSubnetTopologyAccessLevelEnumValues() []GetSubnetTopologyAccessLevelEnum { - values := make([]GetSubnetTopologyAccessLevelEnum, 0) - for _, v := range mappingGetSubnetTopologyAccessLevel { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_topology_request_response.go deleted file mode 100644 index 3dddb54492..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_topology_request_response.go +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetVcnTopologyRequest wrapper for the GetVcnTopology operation -type GetVcnTopologyRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` - - // Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`. - // Setting this to `ACCESSIBLE` returns only compartments for which a - // user has INSPECT permissions, either directly or indirectly (permissions can be on a - // resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has - // indirect INSPECT permissions. - // When set to `ANY` permissions are not checked. - AccessLevel GetVcnTopologyAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` - - // When set to true, the hierarchy of compartments is traversed - // and the specified compartment and its subcompartments are - // inspected depending on the the setting of `accessLevel`. - // Default is false. - QueryCompartmentSubtree *bool `mandatory:"false" contributesTo:"query" name:"queryCompartmentSubtree"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For querying if there is a cached value on the server. The If-None-Match HTTP request header - // makes the request conditional. For GET and HEAD methods, the server will send back the requested - // resource, with a 200 status, only if it doesn't have an ETag matching the given ones. - // For other methods, the request will be processed only if the eventually existing resource's - // ETag doesn't match any of the values listed. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // The Cache-Control HTTP header holds directives (instructions) - // for caching in both requests and responses. - CacheControl *string `mandatory:"false" contributesTo:"header" name:"cache-control"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetVcnTopologyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetVcnTopologyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetVcnTopologyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetVcnTopologyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetVcnTopologyResponse wrapper for the GetVcnTopology operation -type GetVcnTopologyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The VcnTopology instance - VcnTopology `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetVcnTopologyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetVcnTopologyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// GetVcnTopologyAccessLevelEnum Enum with underlying type: string -type GetVcnTopologyAccessLevelEnum string - -// Set of constants representing the allowable values for GetVcnTopologyAccessLevelEnum -const ( - GetVcnTopologyAccessLevelAny GetVcnTopologyAccessLevelEnum = "ANY" - GetVcnTopologyAccessLevelAccessible GetVcnTopologyAccessLevelEnum = "ACCESSIBLE" -) - -var mappingGetVcnTopologyAccessLevel = map[string]GetVcnTopologyAccessLevelEnum{ - "ANY": GetVcnTopologyAccessLevelAny, - "ACCESSIBLE": GetVcnTopologyAccessLevelAccessible, -} - -// GetGetVcnTopologyAccessLevelEnumValues Enumerates the set of values for GetVcnTopologyAccessLevelEnum -func GetGetVcnTopologyAccessLevelEnumValues() []GetVcnTopologyAccessLevelEnum { - values := make([]GetVcnTopologyAccessLevelEnum, 0) - for _, v := range mappingGetVcnTopologyAccessLevel { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/i_scsi_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/i_scsi_volume_attachment.go deleted file mode 100644 index 80f96c5779..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/i_scsi_volume_attachment.go +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IScsiVolumeAttachment An ISCSI volume attachment. -type IScsiVolumeAttachment struct { - - // The availability domain of an instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the volume attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance the volume is attached to. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the volume. - VolumeId *string `mandatory:"true" json:"volumeId"` - - // The volume's iSCSI IP address. - // Example: `169.254.0.2` - Ipv4 *string `mandatory:"true" json:"ipv4"` - - // The target volume's iSCSI Qualified Name in the format defined - // by RFC 3720 (https://tools.ietf.org/html/rfc3720#page-32). - // Example: `iqn.2015-12.us.oracle.com:` - Iqn *string `mandatory:"true" json:"iqn"` - - // The volume's iSCSI port, usually port 860 or 3260. - // Example: `3260` - Port *int `mandatory:"true" json:"port"` - - // The device name. - Device *string `mandatory:"false" json:"device"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether the attachment was created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` - - // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Whether the attachment is multipath or not. - IsMultipath *bool `mandatory:"false" json:"isMultipath"` - - // The Challenge-Handshake-Authentication-Protocol (CHAP) secret - // valid for the associated CHAP user name. - // (Also called the "CHAP password".) - ChapSecret *string `mandatory:"false" json:"chapSecret"` - - // The volume's system-generated Challenge-Handshake-Authentication-Protocol - // (CHAP) user name. See RFC 1994 (https://tools.ietf.org/html/rfc1994) for more on CHAP. - // Example: `ocid1.volume.oc1.phx.` - ChapUsername *string `mandatory:"false" json:"chapUsername"` - - // A list of secondary multipath devices - MultipathDevices []MultipathDevice `mandatory:"false" json:"multipathDevices"` - - // The current state of the volume attachment. - LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The iscsi login state of the volume attachment. For a multipath volume attachment, - // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. - IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` - - // Refer the top-level definition of encryptionInTransitType. - // The default value is NONE. - EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m IScsiVolumeAttachment) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetCompartmentId returns CompartmentId -func (m IScsiVolumeAttachment) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetDevice returns Device -func (m IScsiVolumeAttachment) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m IScsiVolumeAttachment) GetDisplayName() *string { - return m.DisplayName -} - -//GetId returns Id -func (m IScsiVolumeAttachment) GetId() *string { - return m.Id -} - -//GetInstanceId returns InstanceId -func (m IScsiVolumeAttachment) GetInstanceId() *string { - return m.InstanceId -} - -//GetIsReadOnly returns IsReadOnly -func (m IScsiVolumeAttachment) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m IScsiVolumeAttachment) GetIsShareable() *bool { - return m.IsShareable -} - -//GetLifecycleState returns LifecycleState -func (m IScsiVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { - return m.LifecycleState -} - -//GetTimeCreated returns TimeCreated -func (m IScsiVolumeAttachment) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -//GetVolumeId returns VolumeId -func (m IScsiVolumeAttachment) GetVolumeId() *string { - return m.VolumeId -} - -//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled -func (m IScsiVolumeAttachment) GetIsPvEncryptionInTransitEnabled() *bool { - return m.IsPvEncryptionInTransitEnabled -} - -//GetIsMultipath returns IsMultipath -func (m IScsiVolumeAttachment) GetIsMultipath() *bool { - return m.IsMultipath -} - -//GetIscsiLoginState returns IscsiLoginState -func (m IScsiVolumeAttachment) GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum { - return m.IscsiLoginState -} - -func (m IScsiVolumeAttachment) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IScsiVolumeAttachment) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIScsiVolumeAttachment IScsiVolumeAttachment - s := struct { - DiscriminatorParam string `json:"attachmentType"` - MarshalTypeIScsiVolumeAttachment - }{ - "iscsi", - (MarshalTypeIScsiVolumeAttachment)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/icmp_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/icmp_options.go deleted file mode 100644 index ab207ce9a8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/icmp_options.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IcmpOptions Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code -// as defined in: -// - ICMP Parameters (http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml) -// - ICMPv6 Parameters (https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml) -// If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and -// codes are allowed. If you do provide this object, the type is required and the code is optional. -// To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination -// Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify -// multiple codes for a single type, create a separate security list rule for each. -type IcmpOptions struct { - - // The ICMP type. - Type *int `mandatory:"true" json:"type"` - - // The ICMP code (optional). - Code *int `mandatory:"false" json:"code"` -} - -func (m IcmpOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image.go deleted file mode 100644 index 4f57b1cc01..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image.go +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Image A boot disk image for launching an instance. For more information, see -// Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type Image struct { - - // The OCID of the compartment containing the instance you want to use as the basis for the image. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Whether instances launched with this image can be used to create new images. - // For example, you cannot create an image of an Oracle Database instance. - // Example: `true` - CreateImageAllowed *bool `mandatory:"true" json:"createImageAllowed"` - - // The OCID of the image. - Id *string `mandatory:"true" json:"id"` - - LifecycleState ImageLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The image's operating system. - // Example: `Oracle Linux` - OperatingSystem *string `mandatory:"true" json:"operatingSystem"` - - // The image's operating system version. - // Example: `7.2` - OperatingSystemVersion *string `mandatory:"true" json:"operatingSystemVersion"` - - // The date and time the image was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the image originally used to launch the instance. - BaseImageId *string `mandatory:"false" json:"baseImageId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name for the image. It does not have to be unique, and it's changeable. - // Avoid entering confidential information. - // You cannot use a platform image name as a custom image name. - // Example: `My custom Oracle Linux image` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: - // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. - // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. - // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. - // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. - LaunchMode ImageLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` - - LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"` - - AgentFeatures *InstanceAgentFeatures `mandatory:"false" json:"agentFeatures"` - - // The listing type of the image. The default value is "NONE". - ListingType ImageListingTypeEnum `mandatory:"false" json:"listingType,omitempty"` - - // The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). - // Note this is not the same as the size of the image when it was exported or the actual size of the image. - // Example: `47694` - SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` - - // The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). - // Example: `100` - BillableSizeInGBs *int64 `mandatory:"false" json:"billableSizeInGBs"` -} - -func (m Image) String() string { - return common.PointerString(m) -} - -// ImageLaunchModeEnum Enum with underlying type: string -type ImageLaunchModeEnum string - -// Set of constants representing the allowable values for ImageLaunchModeEnum -const ( - ImageLaunchModeNative ImageLaunchModeEnum = "NATIVE" - ImageLaunchModeEmulated ImageLaunchModeEnum = "EMULATED" - ImageLaunchModeParavirtualized ImageLaunchModeEnum = "PARAVIRTUALIZED" - ImageLaunchModeCustom ImageLaunchModeEnum = "CUSTOM" -) - -var mappingImageLaunchMode = map[string]ImageLaunchModeEnum{ - "NATIVE": ImageLaunchModeNative, - "EMULATED": ImageLaunchModeEmulated, - "PARAVIRTUALIZED": ImageLaunchModeParavirtualized, - "CUSTOM": ImageLaunchModeCustom, -} - -// GetImageLaunchModeEnumValues Enumerates the set of values for ImageLaunchModeEnum -func GetImageLaunchModeEnumValues() []ImageLaunchModeEnum { - values := make([]ImageLaunchModeEnum, 0) - for _, v := range mappingImageLaunchMode { - values = append(values, v) - } - return values -} - -// ImageLifecycleStateEnum Enum with underlying type: string -type ImageLifecycleStateEnum string - -// Set of constants representing the allowable values for ImageLifecycleStateEnum -const ( - ImageLifecycleStateProvisioning ImageLifecycleStateEnum = "PROVISIONING" - ImageLifecycleStateImporting ImageLifecycleStateEnum = "IMPORTING" - ImageLifecycleStateAvailable ImageLifecycleStateEnum = "AVAILABLE" - ImageLifecycleStateExporting ImageLifecycleStateEnum = "EXPORTING" - ImageLifecycleStateDisabled ImageLifecycleStateEnum = "DISABLED" - ImageLifecycleStateDeleted ImageLifecycleStateEnum = "DELETED" -) - -var mappingImageLifecycleState = map[string]ImageLifecycleStateEnum{ - "PROVISIONING": ImageLifecycleStateProvisioning, - "IMPORTING": ImageLifecycleStateImporting, - "AVAILABLE": ImageLifecycleStateAvailable, - "EXPORTING": ImageLifecycleStateExporting, - "DISABLED": ImageLifecycleStateDisabled, - "DELETED": ImageLifecycleStateDeleted, -} - -// GetImageLifecycleStateEnumValues Enumerates the set of values for ImageLifecycleStateEnum -func GetImageLifecycleStateEnumValues() []ImageLifecycleStateEnum { - values := make([]ImageLifecycleStateEnum, 0) - for _, v := range mappingImageLifecycleState { - values = append(values, v) - } - return values -} - -// ImageListingTypeEnum Enum with underlying type: string -type ImageListingTypeEnum string - -// Set of constants representing the allowable values for ImageListingTypeEnum -const ( - ImageListingTypeCommunity ImageListingTypeEnum = "COMMUNITY" - ImageListingTypeNone ImageListingTypeEnum = "NONE" -) - -var mappingImageListingType = map[string]ImageListingTypeEnum{ - "COMMUNITY": ImageListingTypeCommunity, - "NONE": ImageListingTypeNone, -} - -// GetImageListingTypeEnumValues Enumerates the set of values for ImageListingTypeEnum -func GetImageListingTypeEnumValues() []ImageListingTypeEnum { - values := make([]ImageListingTypeEnum, 0) - for _, v := range mappingImageListingType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_capability_schema_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_capability_schema_descriptor.go deleted file mode 100644 index e71bd4b63a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_capability_schema_descriptor.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageCapabilitySchemaDescriptor Image Capability Schema Descriptor is a type of capability for an image. -type ImageCapabilitySchemaDescriptor interface { - GetSource() ImageCapabilitySchemaDescriptorSourceEnum -} - -type imagecapabilityschemadescriptor struct { - JsonData []byte - Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` - DescriptorType string `json:"descriptorType"` -} - -// UnmarshalJSON unmarshals json -func (m *imagecapabilityschemadescriptor) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerimagecapabilityschemadescriptor imagecapabilityschemadescriptor - s := struct { - Model Unmarshalerimagecapabilityschemadescriptor - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Source = s.Model.Source - m.DescriptorType = s.Model.DescriptorType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *imagecapabilityschemadescriptor) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.DescriptorType { - case "enumstring": - mm := EnumStringImageCapabilitySchemaDescriptor{} - err = json.Unmarshal(data, &mm) - return mm, err - case "enuminteger": - mm := EnumIntegerImageCapabilityDescriptor{} - err = json.Unmarshal(data, &mm) - return mm, err - case "boolean": - mm := BooleanImageCapabilitySchemaDescriptor{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetSource returns Source -func (m imagecapabilityschemadescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { - return m.Source -} - -func (m imagecapabilityschemadescriptor) String() string { - return common.PointerString(m) -} - -// ImageCapabilitySchemaDescriptorSourceEnum Enum with underlying type: string -type ImageCapabilitySchemaDescriptorSourceEnum string - -// Set of constants representing the allowable values for ImageCapabilitySchemaDescriptorSourceEnum -const ( - ImageCapabilitySchemaDescriptorSourceGlobal ImageCapabilitySchemaDescriptorSourceEnum = "GLOBAL" - ImageCapabilitySchemaDescriptorSourceImage ImageCapabilitySchemaDescriptorSourceEnum = "IMAGE" -) - -var mappingImageCapabilitySchemaDescriptorSource = map[string]ImageCapabilitySchemaDescriptorSourceEnum{ - "GLOBAL": ImageCapabilitySchemaDescriptorSourceGlobal, - "IMAGE": ImageCapabilitySchemaDescriptorSourceImage, -} - -// GetImageCapabilitySchemaDescriptorSourceEnumValues Enumerates the set of values for ImageCapabilitySchemaDescriptorSourceEnum -func GetImageCapabilitySchemaDescriptorSourceEnumValues() []ImageCapabilitySchemaDescriptorSourceEnum { - values := make([]ImageCapabilitySchemaDescriptorSourceEnum, 0) - for _, v := range mappingImageCapabilitySchemaDescriptorSource { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_memory_constraints.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_memory_constraints.go deleted file mode 100644 index 151f2d6c3f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_memory_constraints.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageMemoryConstraints For a flexible image and shape, the amount of memory supported for instances that use this image. -type ImageMemoryConstraints struct { - - // The minimum amount of memory, in gigabytes. - MinInGBs *int `mandatory:"false" json:"minInGBs"` - - // The maximum amount of memory, in gigabytes. - MaxInGBs *int `mandatory:"false" json:"maxInGBs"` -} - -func (m ImageMemoryConstraints) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_ocpu_constraints.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_ocpu_constraints.go deleted file mode 100644 index abdc9634bc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_ocpu_constraints.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageOcpuConstraints OCPU options for an image and shape. -type ImageOcpuConstraints struct { - - // The minimum number of OCPUs supported for this image and shape. - Min *int `mandatory:"false" json:"min"` - - // The maximum number of OCPUs supported for this image and shape. - Max *int `mandatory:"false" json:"max"` -} - -func (m ImageOcpuConstraints) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_entry.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_entry.go deleted file mode 100644 index 1f963f654d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_entry.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageShapeCompatibilityEntry An image and shape that are compatible. -type ImageShapeCompatibilityEntry struct { - - // The image OCID. - ImageId *string `mandatory:"true" json:"imageId"` - - // The shape name. - Shape *string `mandatory:"true" json:"shape"` - - MemoryConstraints *ImageMemoryConstraints `mandatory:"false" json:"memoryConstraints"` - - OcpuConstraints *ImageOcpuConstraints `mandatory:"false" json:"ocpuConstraints"` -} - -func (m ImageShapeCompatibilityEntry) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_summary.go deleted file mode 100644 index b73d86051c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_shape_compatibility_summary.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageShapeCompatibilitySummary Summary information for a compatible image and shape. -type ImageShapeCompatibilitySummary struct { - - // The image OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - ImageId *string `mandatory:"true" json:"imageId"` - - // The shape name. - Shape *string `mandatory:"true" json:"shape"` - - MemoryConstraints *ImageMemoryConstraints `mandatory:"false" json:"memoryConstraints"` - - OcpuConstraints *ImageOcpuConstraints `mandatory:"false" json:"ocpuConstraints"` -} - -func (m ImageShapeCompatibilitySummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_details.go deleted file mode 100644 index 03bef8cbac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_details.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageSourceDetails The representation of ImageSourceDetails -type ImageSourceDetails interface { - GetOperatingSystem() *string - - GetOperatingSystemVersion() *string - - // The format of the image to be imported. Only monolithic - // images are supported. This attribute is not used for exported Oracle images with the OCI image format. - GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum -} - -type imagesourcedetails struct { - JsonData []byte - OperatingSystem *string `mandatory:"false" json:"operatingSystem"` - OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` - SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` - SourceType string `json:"sourceType"` -} - -// UnmarshalJSON unmarshals json -func (m *imagesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerimagesourcedetails imagesourcedetails - s := struct { - Model Unmarshalerimagesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.OperatingSystem = s.Model.OperatingSystem - m.OperatingSystemVersion = s.Model.OperatingSystemVersion - m.SourceImageType = s.Model.SourceImageType - m.SourceType = s.Model.SourceType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.SourceType { - case "objectStorageTuple": - mm := ImageSourceViaObjectStorageTupleDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "objectStorageUri": - mm := ImageSourceViaObjectStorageUriDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetOperatingSystem returns OperatingSystem -func (m imagesourcedetails) GetOperatingSystem() *string { - return m.OperatingSystem -} - -//GetOperatingSystemVersion returns OperatingSystemVersion -func (m imagesourcedetails) GetOperatingSystemVersion() *string { - return m.OperatingSystemVersion -} - -//GetSourceImageType returns SourceImageType -func (m imagesourcedetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { - return m.SourceImageType -} - -func (m imagesourcedetails) String() string { - return common.PointerString(m) -} - -// ImageSourceDetailsSourceImageTypeEnum Enum with underlying type: string -type ImageSourceDetailsSourceImageTypeEnum string - -// Set of constants representing the allowable values for ImageSourceDetailsSourceImageTypeEnum -const ( - ImageSourceDetailsSourceImageTypeQcow2 ImageSourceDetailsSourceImageTypeEnum = "QCOW2" - ImageSourceDetailsSourceImageTypeVmdk ImageSourceDetailsSourceImageTypeEnum = "VMDK" -) - -var mappingImageSourceDetailsSourceImageType = map[string]ImageSourceDetailsSourceImageTypeEnum{ - "QCOW2": ImageSourceDetailsSourceImageTypeQcow2, - "VMDK": ImageSourceDetailsSourceImageTypeVmdk, -} - -// GetImageSourceDetailsSourceImageTypeEnumValues Enumerates the set of values for ImageSourceDetailsSourceImageTypeEnum -func GetImageSourceDetailsSourceImageTypeEnumValues() []ImageSourceDetailsSourceImageTypeEnum { - values := make([]ImageSourceDetailsSourceImageTypeEnum, 0) - for _, v := range mappingImageSourceDetailsSourceImageType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_tuple_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_tuple_details.go deleted file mode 100644 index dd4908c44e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_tuple_details.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageSourceViaObjectStorageTupleDetails The representation of ImageSourceViaObjectStorageTupleDetails -type ImageSourceViaObjectStorageTupleDetails struct { - - // The Object Storage bucket for the image. - BucketName *string `mandatory:"true" json:"bucketName"` - - // The Object Storage namespace for the image. - NamespaceName *string `mandatory:"true" json:"namespaceName"` - - // The Object Storage name for the image. - ObjectName *string `mandatory:"true" json:"objectName"` - - OperatingSystem *string `mandatory:"false" json:"operatingSystem"` - - OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` - - // The format of the image to be imported. Only monolithic - // images are supported. This attribute is not used for exported Oracle images with the OCI image format. - SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` -} - -//GetOperatingSystem returns OperatingSystem -func (m ImageSourceViaObjectStorageTupleDetails) GetOperatingSystem() *string { - return m.OperatingSystem -} - -//GetOperatingSystemVersion returns OperatingSystemVersion -func (m ImageSourceViaObjectStorageTupleDetails) GetOperatingSystemVersion() *string { - return m.OperatingSystemVersion -} - -//GetSourceImageType returns SourceImageType -func (m ImageSourceViaObjectStorageTupleDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { - return m.SourceImageType -} - -func (m ImageSourceViaObjectStorageTupleDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m ImageSourceViaObjectStorageTupleDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeImageSourceViaObjectStorageTupleDetails ImageSourceViaObjectStorageTupleDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeImageSourceViaObjectStorageTupleDetails - }{ - "objectStorageTuple", - (MarshalTypeImageSourceViaObjectStorageTupleDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_uri_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_uri_details.go deleted file mode 100644 index b968199a36..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/image_source_via_object_storage_uri_details.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ImageSourceViaObjectStorageUriDetails The representation of ImageSourceViaObjectStorageUriDetails -type ImageSourceViaObjectStorageUriDetails struct { - - // The Object Storage URL for the image. - SourceUri *string `mandatory:"true" json:"sourceUri"` - - OperatingSystem *string `mandatory:"false" json:"operatingSystem"` - - OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` - - // The format of the image to be imported. Only monolithic - // images are supported. This attribute is not used for exported Oracle images with the OCI image format. - SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` -} - -//GetOperatingSystem returns OperatingSystem -func (m ImageSourceViaObjectStorageUriDetails) GetOperatingSystem() *string { - return m.OperatingSystem -} - -//GetOperatingSystemVersion returns OperatingSystemVersion -func (m ImageSourceViaObjectStorageUriDetails) GetOperatingSystemVersion() *string { - return m.OperatingSystemVersion -} - -//GetSourceImageType returns SourceImageType -func (m ImageSourceViaObjectStorageUriDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { - return m.SourceImageType -} - -func (m ImageSourceViaObjectStorageUriDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m ImageSourceViaObjectStorageUriDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeImageSourceViaObjectStorageUriDetails ImageSourceViaObjectStorageUriDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeImageSourceViaObjectStorageUriDetails - }{ - "objectStorageUri", - (MarshalTypeImageSourceViaObjectStorageUriDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ingress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ingress_security_rule.go deleted file mode 100644 index 6055613611..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ingress_security_rule.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IngressSecurityRule A rule for allowing inbound IP packets. -type IngressSecurityRule struct { - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). - Protocol *string `mandatory:"true" json:"protocol"` - - // Conceptually, this is the range of IP addresses that a packet coming into the instance - // can come from. - // Allowed values: - // * IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`. - // IPv6 addressing is supported for all commercial and government regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security list rule for traffic coming from a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - Source *string `mandatory:"true" json:"source"` - - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if ingress traffic allows TCP destination port 80, there should be an egress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - // Type of source for the rule. The default is `CIDR_BLOCK`. - // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a - // Service (the rule is for traffic coming from a - // particular `Service` through a service gateway). - SourceType IngressSecurityRuleSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` - - // An optional description of your choice for the rule. - Description *string `mandatory:"false" json:"description"` -} - -func (m IngressSecurityRule) String() string { - return common.PointerString(m) -} - -// IngressSecurityRuleSourceTypeEnum Enum with underlying type: string -type IngressSecurityRuleSourceTypeEnum string - -// Set of constants representing the allowable values for IngressSecurityRuleSourceTypeEnum -const ( - IngressSecurityRuleSourceTypeCidrBlock IngressSecurityRuleSourceTypeEnum = "CIDR_BLOCK" - IngressSecurityRuleSourceTypeServiceCidrBlock IngressSecurityRuleSourceTypeEnum = "SERVICE_CIDR_BLOCK" -) - -var mappingIngressSecurityRuleSourceType = map[string]IngressSecurityRuleSourceTypeEnum{ - "CIDR_BLOCK": IngressSecurityRuleSourceTypeCidrBlock, - "SERVICE_CIDR_BLOCK": IngressSecurityRuleSourceTypeServiceCidrBlock, -} - -// GetIngressSecurityRuleSourceTypeEnumValues Enumerates the set of values for IngressSecurityRuleSourceTypeEnum -func GetIngressSecurityRuleSourceTypeEnumValues() []IngressSecurityRuleSourceTypeEnum { - values := make([]IngressSecurityRuleSourceTypeEnum, 0) - for _, v := range mappingIngressSecurityRuleSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance.go deleted file mode 100644 index cf89993dd8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance.go +++ /dev/null @@ -1,377 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Instance A compute host. The image used to launch the instance determines its operating system and other -// software. The shape specified during the launch process determines the number of CPUs and memory -// allocated to the instance. For more information, see -// Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type Instance struct { - - // The availability domain the instance is running in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the instance. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the instance. - Id *string `mandatory:"true" json:"id"` - - // The current state of the instance. - LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The region that contains the availability domain the instance is running in. - // For the us-phoenix-1 and us-ashburn-1 regions, `phx` and `iad` are returned, respectively. - // For all other regions, the full region name is returned. - // Examples: `phx`, `eu-frankfurt-1` - Region *string `mandatory:"true" json:"region"` - - // The shape of the instance. The shape determines the number of CPUs and the amount of memory - // allocated to the instance. You can enumerate all available shapes by calling - // ListShapes. - Shape *string `mandatory:"true" json:"shape"` - - // The date and time the instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID of the compute capacity reservation this instance is launched under. - // When this field contains an empty string or is null, the instance is not currently in a capacity reservation. - // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). - CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` - - // The OCID of dedicated VM host. - DedicatedVmHostId *string `mandatory:"false" json:"dedicatedVmHostId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Additional metadata key/value pairs that you provide. They serve the same purpose and functionality - // as fields in the `metadata` object. - // They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` - // fields are string/string maps only). - ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` - - // The name of the fault domain the instance is running in. - // A fault domain is a grouping of hardware and infrastructure within an availability domain. - // Each availability domain contains three fault domains. Fault domains let you distribute your - // instances so that they are not on the same physical hardware within a single availability domain. - // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect - // instances in other fault domains. - // If you do not specify the fault domain, the system selects one for you. - // Example: `FAULT-DOMAIN-1` - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Deprecated. Use `sourceDetails` instead. - ImageId *string `mandatory:"false" json:"imageId"` - - // When a bare metal or virtual machine - // instance boots, the iPXE firmware that runs on the instance is - // configured to run an iPXE script to continue the boot process. - // If you want more control over the boot process, you can provide - // your own custom iPXE script that will run when the instance boots; - // however, you should be aware that the same iPXE script will run - // every time an instance boots; not only after the initial - // LaunchInstance call. - // The default iPXE script connects to the instance's local boot - // volume over iSCSI and performs a network boot. If you use a custom iPXE - // script and want to network-boot from the instance's local boot volume - // over iSCSI the same way as the default iPXE script, you should use the - // following iSCSI IP address: 169.254.0.2, and boot volume IQN: - // iqn.2015-02.oracle.boot. - // For more information about the Bring Your Own Image feature of - // Oracle Cloud Infrastructure, see - // Bring Your Own Image (https://docs.cloud.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm). - // For more information about iPXE, see http://ipxe.org. - IpxeScript *string `mandatory:"false" json:"ipxeScript"` - - // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: - // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. - // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. - // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. - // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. - LaunchMode InstanceLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` - - LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"` - - InstanceOptions *InstanceOptions `mandatory:"false" json:"instanceOptions"` - - AvailabilityConfig *InstanceAvailabilityConfig `mandatory:"false" json:"availabilityConfig"` - - PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `mandatory:"false" json:"preemptibleInstanceConfig"` - - // Custom metadata that you provide. - Metadata map[string]string `mandatory:"false" json:"metadata"` - - ShapeConfig *InstanceShapeConfig `mandatory:"false" json:"shapeConfig"` - - SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - AgentConfig *InstanceAgentConfig `mandatory:"false" json:"agentConfig"` - - // The date and time the instance is expected to be stopped / started, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // After that time if instance hasn't been rebooted, Oracle will reboot the instance within 24 hours of the due time. - // Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state. - // Example: `2018-05-25T21:10:29.600Z` - TimeMaintenanceRebootDue *common.SDKTime `mandatory:"false" json:"timeMaintenanceRebootDue"` - - // The date and time the instance is scheduled to be stopped. - // After that time if instance hasn't been stopped or terminated, Oracle will stop the instance automatically. - // Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state. - // Example: `2018-05-25T21:10:29.600Z` - TimeStopScheduled *common.SDKTime `mandatory:"false" json:"timeStopScheduled"` - - // The preferred maintenance action for an instance. - // * `LIVE_MIGRATE` - Run maintenance using a live migration. - // * `REBOOT` - Run maintenance using a reboot. - PreferredMaintenanceAction InstancePreferredMaintenanceActionEnum `mandatory:"false" json:"preferredMaintenanceAction,omitempty"` - - PlatformConfig PlatformConfig `mandatory:"false" json:"platformConfig"` -} - -func (m Instance) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *Instance) UnmarshalJSON(data []byte) (e error) { - model := struct { - CapacityReservationId *string `json:"capacityReservationId"` - DedicatedVmHostId *string `json:"dedicatedVmHostId"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` - FaultDomain *string `json:"faultDomain"` - FreeformTags map[string]string `json:"freeformTags"` - ImageId *string `json:"imageId"` - IpxeScript *string `json:"ipxeScript"` - LaunchMode InstanceLaunchModeEnum `json:"launchMode"` - LaunchOptions *LaunchOptions `json:"launchOptions"` - InstanceOptions *InstanceOptions `json:"instanceOptions"` - AvailabilityConfig *InstanceAvailabilityConfig `json:"availabilityConfig"` - PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `json:"preemptibleInstanceConfig"` - Metadata map[string]string `json:"metadata"` - ShapeConfig *InstanceShapeConfig `json:"shapeConfig"` - SourceDetails instancesourcedetails `json:"sourceDetails"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - AgentConfig *InstanceAgentConfig `json:"agentConfig"` - TimeMaintenanceRebootDue *common.SDKTime `json:"timeMaintenanceRebootDue"` - TimeStopScheduled *common.SDKTime `json:"timeStopScheduled"` - PreferredMaintenanceAction InstancePreferredMaintenanceActionEnum `json:"preferredMaintenanceAction"` - PlatformConfig platformconfig `json:"platformConfig"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - Id *string `json:"id"` - LifecycleState InstanceLifecycleStateEnum `json:"lifecycleState"` - Region *string `json:"region"` - Shape *string `json:"shape"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.CapacityReservationId = model.CapacityReservationId - - m.DedicatedVmHostId = model.DedicatedVmHostId - - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.ExtendedMetadata = model.ExtendedMetadata - - m.FaultDomain = model.FaultDomain - - m.FreeformTags = model.FreeformTags - - m.ImageId = model.ImageId - - m.IpxeScript = model.IpxeScript - - m.LaunchMode = model.LaunchMode - - m.LaunchOptions = model.LaunchOptions - - m.InstanceOptions = model.InstanceOptions - - m.AvailabilityConfig = model.AvailabilityConfig - - m.PreemptibleInstanceConfig = model.PreemptibleInstanceConfig - - m.Metadata = model.Metadata - - m.ShapeConfig = model.ShapeConfig - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(InstanceSourceDetails) - } else { - m.SourceDetails = nil - } - - m.SystemTags = model.SystemTags - - m.AgentConfig = model.AgentConfig - - m.TimeMaintenanceRebootDue = model.TimeMaintenanceRebootDue - - m.TimeStopScheduled = model.TimeStopScheduled - - m.PreferredMaintenanceAction = model.PreferredMaintenanceAction - - nn, e = model.PlatformConfig.UnmarshalPolymorphicJSON(model.PlatformConfig.JsonData) - if e != nil { - return - } - if nn != nil { - m.PlatformConfig = nn.(PlatformConfig) - } else { - m.PlatformConfig = nil - } - - m.AvailabilityDomain = model.AvailabilityDomain - - m.CompartmentId = model.CompartmentId - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - m.Region = model.Region - - m.Shape = model.Shape - - m.TimeCreated = model.TimeCreated - - return -} - -// InstanceLaunchModeEnum Enum with underlying type: string -type InstanceLaunchModeEnum string - -// Set of constants representing the allowable values for InstanceLaunchModeEnum -const ( - InstanceLaunchModeNative InstanceLaunchModeEnum = "NATIVE" - InstanceLaunchModeEmulated InstanceLaunchModeEnum = "EMULATED" - InstanceLaunchModeParavirtualized InstanceLaunchModeEnum = "PARAVIRTUALIZED" - InstanceLaunchModeCustom InstanceLaunchModeEnum = "CUSTOM" -) - -var mappingInstanceLaunchMode = map[string]InstanceLaunchModeEnum{ - "NATIVE": InstanceLaunchModeNative, - "EMULATED": InstanceLaunchModeEmulated, - "PARAVIRTUALIZED": InstanceLaunchModeParavirtualized, - "CUSTOM": InstanceLaunchModeCustom, -} - -// GetInstanceLaunchModeEnumValues Enumerates the set of values for InstanceLaunchModeEnum -func GetInstanceLaunchModeEnumValues() []InstanceLaunchModeEnum { - values := make([]InstanceLaunchModeEnum, 0) - for _, v := range mappingInstanceLaunchMode { - values = append(values, v) - } - return values -} - -// InstanceLifecycleStateEnum Enum with underlying type: string -type InstanceLifecycleStateEnum string - -// Set of constants representing the allowable values for InstanceLifecycleStateEnum -const ( - InstanceLifecycleStateMoving InstanceLifecycleStateEnum = "MOVING" - InstanceLifecycleStateProvisioning InstanceLifecycleStateEnum = "PROVISIONING" - InstanceLifecycleStateRunning InstanceLifecycleStateEnum = "RUNNING" - InstanceLifecycleStateStarting InstanceLifecycleStateEnum = "STARTING" - InstanceLifecycleStateStopping InstanceLifecycleStateEnum = "STOPPING" - InstanceLifecycleStateStopped InstanceLifecycleStateEnum = "STOPPED" - InstanceLifecycleStateCreatingImage InstanceLifecycleStateEnum = "CREATING_IMAGE" - InstanceLifecycleStateTerminating InstanceLifecycleStateEnum = "TERMINATING" - InstanceLifecycleStateTerminated InstanceLifecycleStateEnum = "TERMINATED" -) - -var mappingInstanceLifecycleState = map[string]InstanceLifecycleStateEnum{ - "MOVING": InstanceLifecycleStateMoving, - "PROVISIONING": InstanceLifecycleStateProvisioning, - "RUNNING": InstanceLifecycleStateRunning, - "STARTING": InstanceLifecycleStateStarting, - "STOPPING": InstanceLifecycleStateStopping, - "STOPPED": InstanceLifecycleStateStopped, - "CREATING_IMAGE": InstanceLifecycleStateCreatingImage, - "TERMINATING": InstanceLifecycleStateTerminating, - "TERMINATED": InstanceLifecycleStateTerminated, -} - -// GetInstanceLifecycleStateEnumValues Enumerates the set of values for InstanceLifecycleStateEnum -func GetInstanceLifecycleStateEnumValues() []InstanceLifecycleStateEnum { - values := make([]InstanceLifecycleStateEnum, 0) - for _, v := range mappingInstanceLifecycleState { - values = append(values, v) - } - return values -} - -// InstancePreferredMaintenanceActionEnum Enum with underlying type: string -type InstancePreferredMaintenanceActionEnum string - -// Set of constants representing the allowable values for InstancePreferredMaintenanceActionEnum -const ( - InstancePreferredMaintenanceActionLiveMigrate InstancePreferredMaintenanceActionEnum = "LIVE_MIGRATE" - InstancePreferredMaintenanceActionReboot InstancePreferredMaintenanceActionEnum = "REBOOT" -) - -var mappingInstancePreferredMaintenanceAction = map[string]InstancePreferredMaintenanceActionEnum{ - "LIVE_MIGRATE": InstancePreferredMaintenanceActionLiveMigrate, - "REBOOT": InstancePreferredMaintenanceActionReboot, -} - -// GetInstancePreferredMaintenanceActionEnumValues Enumerates the set of values for InstancePreferredMaintenanceActionEnum -func GetInstancePreferredMaintenanceActionEnumValues() []InstancePreferredMaintenanceActionEnum { - values := make([]InstancePreferredMaintenanceActionEnum, 0) - for _, v := range mappingInstancePreferredMaintenanceAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_action_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_action_request_response.go deleted file mode 100644 index 1507075006..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_action_request_response.go +++ /dev/null @@ -1,123 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// InstanceActionRequest wrapper for the InstanceAction operation -type InstanceActionRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` - - // The action to perform on the instance. - Action InstanceActionActionEnum `mandatory:"true" contributesTo:"query" name:"action" omitEmpty:"true"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (for example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the etag from a previous GET or POST response for that resource. The resource - // will be updated or deleted only if the etag you provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request InstanceActionRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request InstanceActionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request InstanceActionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request InstanceActionRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// InstanceActionResponse wrapper for the InstanceAction operation -type InstanceActionResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Instance instance - Instance `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response InstanceActionResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response InstanceActionResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// InstanceActionActionEnum Enum with underlying type: string -type InstanceActionActionEnum string - -// Set of constants representing the allowable values for InstanceActionActionEnum -const ( - InstanceActionActionStop InstanceActionActionEnum = "STOP" - InstanceActionActionStart InstanceActionActionEnum = "START" - InstanceActionActionSoftreset InstanceActionActionEnum = "SOFTRESET" - InstanceActionActionReset InstanceActionActionEnum = "RESET" - InstanceActionActionSoftstop InstanceActionActionEnum = "SOFTSTOP" - InstanceActionActionValidatelivemigrate InstanceActionActionEnum = "VALIDATELIVEMIGRATE" - InstanceActionActionSenddiagnosticinterrupt InstanceActionActionEnum = "SENDDIAGNOSTICINTERRUPT" - InstanceActionActionExtendscheduledstop InstanceActionActionEnum = "EXTENDSCHEDULEDSTOP" -) - -var mappingInstanceActionAction = map[string]InstanceActionActionEnum{ - "STOP": InstanceActionActionStop, - "START": InstanceActionActionStart, - "SOFTRESET": InstanceActionActionSoftreset, - "RESET": InstanceActionActionReset, - "SOFTSTOP": InstanceActionActionSoftstop, - "VALIDATELIVEMIGRATE": InstanceActionActionValidatelivemigrate, - "SENDDIAGNOSTICINTERRUPT": InstanceActionActionSenddiagnosticinterrupt, - "EXTENDSCHEDULEDSTOP": InstanceActionActionExtendscheduledstop, -} - -// GetInstanceActionActionEnumValues Enumerates the set of values for InstanceActionActionEnum -func GetInstanceActionActionEnumValues() []InstanceActionActionEnum { - values := make([]InstanceActionActionEnum, 0) - for _, v := range mappingInstanceActionAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_features.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_features.go deleted file mode 100644 index c7e1fca4e5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_features.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceAgentFeatures Oracle Cloud Agent features supported on the image. -type InstanceAgentFeatures struct { - - // This attribute is not used. - IsMonitoringSupported *bool `mandatory:"false" json:"isMonitoringSupported"` - - // This attribute is not used. - IsManagementSupported *bool `mandatory:"false" json:"isManagementSupported"` -} - -func (m InstanceAgentFeatures) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_plugin_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_plugin_config_details.go deleted file mode 100644 index 82834c4d3d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_plugin_config_details.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceAgentPluginConfigDetails The configuration of plugins associated with this instance. -type InstanceAgentPluginConfigDetails struct { - - // The plugin name. To get a list of available plugins, use the - // ListInstanceagentAvailablePlugins - // operation in the Oracle Cloud Agent API. For more information about the available plugins, see - // Managing Plugins with Oracle Cloud Agent (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). - Name *string `mandatory:"true" json:"name"` - - // Whether the plugin should be enabled or disabled. - // To enable the monitoring and management plugins, the `isMonitoringDisabled` and - // `isManagementDisabled` attributes must also be set to false. - DesiredState InstanceAgentPluginConfigDetailsDesiredStateEnum `mandatory:"true" json:"desiredState"` -} - -func (m InstanceAgentPluginConfigDetails) String() string { - return common.PointerString(m) -} - -// InstanceAgentPluginConfigDetailsDesiredStateEnum Enum with underlying type: string -type InstanceAgentPluginConfigDetailsDesiredStateEnum string - -// Set of constants representing the allowable values for InstanceAgentPluginConfigDetailsDesiredStateEnum -const ( - InstanceAgentPluginConfigDetailsDesiredStateEnabled InstanceAgentPluginConfigDetailsDesiredStateEnum = "ENABLED" - InstanceAgentPluginConfigDetailsDesiredStateDisabled InstanceAgentPluginConfigDetailsDesiredStateEnum = "DISABLED" -) - -var mappingInstanceAgentPluginConfigDetailsDesiredState = map[string]InstanceAgentPluginConfigDetailsDesiredStateEnum{ - "ENABLED": InstanceAgentPluginConfigDetailsDesiredStateEnabled, - "DISABLED": InstanceAgentPluginConfigDetailsDesiredStateDisabled, -} - -// GetInstanceAgentPluginConfigDetailsDesiredStateEnumValues Enumerates the set of values for InstanceAgentPluginConfigDetailsDesiredStateEnum -func GetInstanceAgentPluginConfigDetailsDesiredStateEnumValues() []InstanceAgentPluginConfigDetailsDesiredStateEnum { - values := make([]InstanceAgentPluginConfigDetailsDesiredStateEnum, 0) - for _, v := range mappingInstanceAgentPluginConfigDetailsDesiredState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_availability_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_availability_config.go deleted file mode 100644 index 839c4586fb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_availability_config.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceAvailabilityConfig Options for defining the availabiity of a VM instance after a maintenance event that impacts the underlying hardware. -type InstanceAvailabilityConfig struct { - - // Whether to live migrate supported VM instances to a healthy physical VM host without - // disrupting running instances during infrastructure maintenance events. If null, Oracle - // chooses the best option for migrating the VM during infrastructure maintenance events. - IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` - - // The lifecycle state for an instance when it is recovered after infrastructure maintenance. - // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. - // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. - // * `STOP_INSTANCE` - The instance is recovered in the stopped state. - RecoveryAction InstanceAvailabilityConfigRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` -} - -func (m InstanceAvailabilityConfig) String() string { - return common.PointerString(m) -} - -// InstanceAvailabilityConfigRecoveryActionEnum Enum with underlying type: string -type InstanceAvailabilityConfigRecoveryActionEnum string - -// Set of constants representing the allowable values for InstanceAvailabilityConfigRecoveryActionEnum -const ( - InstanceAvailabilityConfigRecoveryActionRestoreInstance InstanceAvailabilityConfigRecoveryActionEnum = "RESTORE_INSTANCE" - InstanceAvailabilityConfigRecoveryActionStopInstance InstanceAvailabilityConfigRecoveryActionEnum = "STOP_INSTANCE" -) - -var mappingInstanceAvailabilityConfigRecoveryAction = map[string]InstanceAvailabilityConfigRecoveryActionEnum{ - "RESTORE_INSTANCE": InstanceAvailabilityConfigRecoveryActionRestoreInstance, - "STOP_INSTANCE": InstanceAvailabilityConfigRecoveryActionStopInstance, -} - -// GetInstanceAvailabilityConfigRecoveryActionEnumValues Enumerates the set of values for InstanceAvailabilityConfigRecoveryActionEnum -func GetInstanceAvailabilityConfigRecoveryActionEnumValues() []InstanceAvailabilityConfigRecoveryActionEnum { - values := make([]InstanceAvailabilityConfigRecoveryActionEnum, 0) - for _, v := range mappingInstanceAvailabilityConfigRecoveryAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go deleted file mode 100644 index 78bf975da3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with an E4 shape -// (the AMD Milan platform). -type InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` - - // The number of NUMA nodes per socket. - NumaNodesPerSocket InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig - }{ - "AMD_MILAN_BM", - (MarshalTypeInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} - -// InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string -type InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string - -// Set of constants representing the allowable values for InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum -const ( - InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" - InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" - InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" - InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" -) - -var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocket = map[string]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ - "NPS0": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, - "NPS1": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, - "NPS2": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, - "NPS4": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, -} - -// GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum -func GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { - values := make([]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) - for _, v := range mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocket { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go deleted file mode 100644 index 564a156719..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the AMD Rome platform. -type InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig - }{ - "AMD_ROME_BM", - (MarshalTypeInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_vm_launch_instance_platform_config.go deleted file mode 100644 index 525fd33eb9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_amd_vm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationAmdVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the AMD platform. -type InstanceConfigurationAmdVmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationAmdVmLaunchInstancePlatformConfig InstanceConfigurationAmdVmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationAmdVmLaunchInstancePlatformConfig - }{ - "AMD_VM", - (MarshalTypeInstanceConfigurationAmdVmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_vnic_details.go deleted file mode 100644 index b64c381df5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_vnic_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationAttachVnicDetails The representation of InstanceConfigurationAttachVnicDetails -type InstanceConfigurationAttachVnicDetails struct { - CreateVnicDetails *InstanceConfigurationCreateVnicDetails `mandatory:"false" json:"createVnicDetails"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Which physical network interface card (NIC) the VNIC will use. Defaults to 0. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a secondary VNIC to one of these instances, you can specify which NIC - // the VNIC will use. For more information, see - // Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). - NicIndex *int `mandatory:"false" json:"nicIndex"` -} - -func (m InstanceConfigurationAttachVnicDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_volume_details.go deleted file mode 100644 index 43b076d085..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_attach_volume_details.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationAttachVolumeDetails Volume attachmentDetails. Please see AttachVolumeDetails -type InstanceConfigurationAttachVolumeDetails interface { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - GetDisplayName() *string - - // Whether the attachment should be created in read-only mode. - GetIsReadOnly() *bool - - // The device name. - GetDevice() *string - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - GetIsShareable() *bool -} - -type instanceconfigurationattachvolumedetails struct { - JsonData []byte - DisplayName *string `mandatory:"false" json:"displayName"` - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - Device *string `mandatory:"false" json:"device"` - IsShareable *bool `mandatory:"false" json:"isShareable"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *instanceconfigurationattachvolumedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstanceconfigurationattachvolumedetails instanceconfigurationattachvolumedetails - s := struct { - Model Unmarshalerinstanceconfigurationattachvolumedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.DisplayName = s.Model.DisplayName - m.IsReadOnly = s.Model.IsReadOnly - m.Device = s.Model.Device - m.IsShareable = s.Model.IsShareable - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *instanceconfigurationattachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "iscsi": - mm := InstanceConfigurationIscsiAttachVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "paravirtualized": - mm := InstanceConfigurationParavirtualizedAttachVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetDisplayName returns DisplayName -func (m instanceconfigurationattachvolumedetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetIsReadOnly returns IsReadOnly -func (m instanceconfigurationattachvolumedetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetDevice returns Device -func (m instanceconfigurationattachvolumedetails) GetDevice() *string { - return m.Device -} - -//GetIsShareable returns IsShareable -func (m instanceconfigurationattachvolumedetails) GetIsShareable() *bool { - return m.IsShareable -} - -func (m instanceconfigurationattachvolumedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_availability_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_availability_config.go deleted file mode 100644 index ea6c4126e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_availability_config.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationAvailabilityConfig Options for defining the availabiity of a VM instance after a maintenance event that impacts the underlying hardware. -type InstanceConfigurationAvailabilityConfig struct { - - // Whether to live migrate supported VM instances to a healthy physical VM host without - // disrupting running instances during infrastructure maintenance events. If null, Oracle - // chooses the best option for migrating the VM during infrastructure maintenance events. - IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` - - // The lifecycle state for an instance when it is recovered after infrastructure maintenance. - // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. - // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. - // * `STOP_INSTANCE` - The instance is recovered in the stopped state. - RecoveryAction InstanceConfigurationAvailabilityConfigRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` -} - -func (m InstanceConfigurationAvailabilityConfig) String() string { - return common.PointerString(m) -} - -// InstanceConfigurationAvailabilityConfigRecoveryActionEnum Enum with underlying type: string -type InstanceConfigurationAvailabilityConfigRecoveryActionEnum string - -// Set of constants representing the allowable values for InstanceConfigurationAvailabilityConfigRecoveryActionEnum -const ( - InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance InstanceConfigurationAvailabilityConfigRecoveryActionEnum = "RESTORE_INSTANCE" - InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance InstanceConfigurationAvailabilityConfigRecoveryActionEnum = "STOP_INSTANCE" -) - -var mappingInstanceConfigurationAvailabilityConfigRecoveryAction = map[string]InstanceConfigurationAvailabilityConfigRecoveryActionEnum{ - "RESTORE_INSTANCE": InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance, - "STOP_INSTANCE": InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance, -} - -// GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumValues Enumerates the set of values for InstanceConfigurationAvailabilityConfigRecoveryActionEnum -func GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumValues() []InstanceConfigurationAvailabilityConfigRecoveryActionEnum { - values := make([]InstanceConfigurationAvailabilityConfigRecoveryActionEnum, 0) - for _, v := range mappingInstanceConfigurationAvailabilityConfigRecoveryAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_details.go deleted file mode 100644 index 7e39007db8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_details.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationBlockVolumeDetails Create new block volumes or attach to an existing volume. Specify either createDetails or volumeId. -type InstanceConfigurationBlockVolumeDetails struct { - AttachDetails InstanceConfigurationAttachVolumeDetails `mandatory:"false" json:"attachDetails"` - - CreateDetails *InstanceConfigurationCreateVolumeDetails `mandatory:"false" json:"createDetails"` - - // The OCID of the volume. - VolumeId *string `mandatory:"false" json:"volumeId"` -} - -func (m InstanceConfigurationBlockVolumeDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *InstanceConfigurationBlockVolumeDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - AttachDetails instanceconfigurationattachvolumedetails `json:"attachDetails"` - CreateDetails *InstanceConfigurationCreateVolumeDetails `json:"createDetails"` - VolumeId *string `json:"volumeId"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.AttachDetails.UnmarshalPolymorphicJSON(model.AttachDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.AttachDetails = nn.(InstanceConfigurationAttachVolumeDetails) - } else { - m.AttachDetails = nil - } - - m.CreateDetails = model.CreateDetails - - m.VolumeId = model.VolumeId - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_replica_details.go deleted file mode 100644 index 710ebff39b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_block_volume_replica_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationBlockVolumeReplicaDetails Contains the details for the block volume replica -type InstanceConfigurationBlockVolumeReplicaDetails struct { - - // The availability domain of the block volume replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The display name of the block volume replica. You may optionally specify a *display name* for - // the block volume replica, otherwise a default is provided. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m InstanceConfigurationBlockVolumeReplicaDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_volume_details.go deleted file mode 100644 index 653e298bde..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_volume_details.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationCreateVolumeDetails Creates a new block volume. Please see CreateVolumeDetails -type InstanceConfigurationCreateVolumeDetails struct { - - // The availability domain of the volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // If provided, specifies the ID of the volume backup policy to assign to the newly - // created volume. If omitted, no policy will be assigned. - BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` - - // The OCID of the compartment that contains the volume. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Specifies whether the auto-tune performance is enabled for this boot volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The list of block volume replicas to be enabled for this volume - // in the specified destination availability domains. - BlockVolumeReplicas []InstanceConfigurationBlockVolumeReplicaDetails `mandatory:"false" json:"blockVolumeReplicas"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID of the Key Management key to assign as the master encryption key - // for the volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The number of volume performance units (VPUs) that will be applied to this volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `0`: Represents Lower Cost option. - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // The size of the volume in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - SourceDetails InstanceConfigurationVolumeSourceDetails `mandatory:"false" json:"sourceDetails"` -} - -func (m InstanceConfigurationCreateVolumeDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *InstanceConfigurationCreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - AvailabilityDomain *string `json:"availabilityDomain"` - BackupPolicyId *string `json:"backupPolicyId"` - CompartmentId *string `json:"compartmentId"` - IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` - BlockVolumeReplicas []InstanceConfigurationBlockVolumeReplicaDetails `json:"blockVolumeReplicas"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - KmsKeyId *string `json:"kmsKeyId"` - VpusPerGB *int64 `json:"vpusPerGB"` - SizeInGBs *int64 `json:"sizeInGBs"` - SourceDetails instanceconfigurationvolumesourcedetails `json:"sourceDetails"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.AvailabilityDomain = model.AvailabilityDomain - - m.BackupPolicyId = model.BackupPolicyId - - m.CompartmentId = model.CompartmentId - - m.IsAutoTuneEnabled = model.IsAutoTuneEnabled - - m.BlockVolumeReplicas = make([]InstanceConfigurationBlockVolumeReplicaDetails, len(model.BlockVolumeReplicas)) - for i, n := range model.BlockVolumeReplicas { - m.BlockVolumeReplicas[i] = n - } - - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.KmsKeyId = model.KmsKeyId - - m.VpusPerGB = model.VpusPerGB - - m.SizeInGBs = model.SizeInGBs - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(InstanceConfigurationVolumeSourceDetails) - } else { - m.SourceDetails = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_details.go deleted file mode 100644 index e84cb30704..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_details.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationInstanceDetails The representation of InstanceConfigurationInstanceDetails -type InstanceConfigurationInstanceDetails interface { -} - -type instanceconfigurationinstancedetails struct { - JsonData []byte - InstanceType string `json:"instanceType"` -} - -// UnmarshalJSON unmarshals json -func (m *instanceconfigurationinstancedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstanceconfigurationinstancedetails instanceconfigurationinstancedetails - s := struct { - Model Unmarshalerinstanceconfigurationinstancedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.InstanceType = s.Model.InstanceType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *instanceconfigurationinstancedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.InstanceType { - case "compute": - mm := ComputeInstanceDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m instanceconfigurationinstancedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_options.go deleted file mode 100644 index 9c55518af6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_options.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationInstanceOptions Optional mutable instance options. As a part of Instance Metadata Service Security Header, This allows user to disable the legacy imds endpoints. -type InstanceConfigurationInstanceOptions struct { - - // Whether to disable the legacy (/v1) instance metadata service endpoints. - // Customers who have migrated to /v2 should set this to true for added security. - // Default is false. - AreLegacyImdsEndpointsDisabled *bool `mandatory:"false" json:"areLegacyImdsEndpointsDisabled"` -} - -func (m InstanceConfigurationInstanceOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_details.go deleted file mode 100644 index c7359fb702..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_details.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationInstanceSourceDetails The representation of InstanceConfigurationInstanceSourceDetails -type InstanceConfigurationInstanceSourceDetails interface { -} - -type instanceconfigurationinstancesourcedetails struct { - JsonData []byte - SourceType string `json:"sourceType"` -} - -// UnmarshalJSON unmarshals json -func (m *instanceconfigurationinstancesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstanceconfigurationinstancesourcedetails instanceconfigurationinstancesourcedetails - s := struct { - Model Unmarshalerinstanceconfigurationinstancesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SourceType = s.Model.SourceType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *instanceconfigurationinstancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.SourceType { - case "image": - mm := InstanceConfigurationInstanceSourceViaImageDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "bootVolume": - mm := InstanceConfigurationInstanceSourceViaBootVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m instanceconfigurationinstancesourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_boot_volume_details.go deleted file mode 100644 index 255617d114..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_boot_volume_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationInstanceSourceViaBootVolumeDetails The representation of InstanceConfigurationInstanceSourceViaBootVolumeDetails -type InstanceConfigurationInstanceSourceViaBootVolumeDetails struct { - - // The OCID of the boot volume used to boot the instance. - BootVolumeId *string `mandatory:"false" json:"bootVolumeId"` -} - -func (m InstanceConfigurationInstanceSourceViaBootVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationInstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationInstanceSourceViaBootVolumeDetails InstanceConfigurationInstanceSourceViaBootVolumeDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeInstanceConfigurationInstanceSourceViaBootVolumeDetails - }{ - "bootVolume", - (MarshalTypeInstanceConfigurationInstanceSourceViaBootVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_image_details.go deleted file mode 100644 index bb5ce95ae0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_instance_source_via_image_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationInstanceSourceViaImageDetails The representation of InstanceConfigurationInstanceSourceViaImageDetails -type InstanceConfigurationInstanceSourceViaImageDetails struct { - - // The size of the boot volume in GBs. The minimum value is 50 GB and the maximum - // value is 32,768 GB (32 TB). - BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` - - // The OCID of the image used to boot the instance. - ImageId *string `mandatory:"false" json:"imageId"` - - // The OCID of the Key Management key to assign as the master encryption key for the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m InstanceConfigurationInstanceSourceViaImageDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationInstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationInstanceSourceViaImageDetails InstanceConfigurationInstanceSourceViaImageDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeInstanceConfigurationInstanceSourceViaImageDetails - }{ - "image", - (MarshalTypeInstanceConfigurationInstanceSourceViaImageDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go deleted file mode 100644 index b25db52859..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the Intel Skylake platform. -type InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig - }{ - "INTEL_SKYLAKE_BM", - (MarshalTypeInstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_vm_launch_instance_platform_config.go deleted file mode 100644 index 8e630f58d9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_intel_vm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationIntelVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the Intel platform. -type InstanceConfigurationIntelVmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationIntelVmLaunchInstancePlatformConfig InstanceConfigurationIntelVmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationIntelVmLaunchInstancePlatformConfig - }{ - "INTEL_VM", - (MarshalTypeInstanceConfigurationIntelVmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_iscsi_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_iscsi_attach_volume_details.go deleted file mode 100644 index c10c490671..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_iscsi_attach_volume_details.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationIscsiAttachVolumeDetails The representation of InstanceConfigurationIscsiAttachVolumeDetails -type InstanceConfigurationIscsiAttachVolumeDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether the attachment should be created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // The device name. - Device *string `mandatory:"false" json:"device"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` - - // Whether to use CHAP authentication for the volume attachment. Defaults to false. - UseChap *bool `mandatory:"false" json:"useChap"` -} - -//GetDisplayName returns DisplayName -func (m InstanceConfigurationIscsiAttachVolumeDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetIsReadOnly returns IsReadOnly -func (m InstanceConfigurationIscsiAttachVolumeDetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetDevice returns Device -func (m InstanceConfigurationIscsiAttachVolumeDetails) GetDevice() *string { - return m.Device -} - -//GetIsShareable returns IsShareable -func (m InstanceConfigurationIscsiAttachVolumeDetails) GetIsShareable() *bool { - return m.IsShareable -} - -func (m InstanceConfigurationIscsiAttachVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationIscsiAttachVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationIscsiAttachVolumeDetails InstanceConfigurationIscsiAttachVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationIscsiAttachVolumeDetails - }{ - "iscsi", - (MarshalTypeInstanceConfigurationIscsiAttachVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_platform_config.go deleted file mode 100644 index 621146ae0f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_platform_config.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationLaunchInstancePlatformConfig The platform configuration requested for the instance. -// If you provide the parameter, the instance is created with the platform configuration that you specify. -// For any values that you omit, the instance uses the default configuration values for the `shape` that you -// specify. If you don't provide the parameter, the default values for the `shape` are used. -// Each shape only supports certain configurable values. If the values that you provide are not valid for the -// specified `shape`, an error is returned. -type InstanceConfigurationLaunchInstancePlatformConfig interface { - - // Whether Secure Boot is enabled on the instance. - GetIsSecureBootEnabled() *bool - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - GetIsTrustedPlatformModuleEnabled() *bool - - // Whether the Measured Boot feature is enabled on the instance. - GetIsMeasuredBootEnabled() *bool -} - -type instanceconfigurationlaunchinstanceplatformconfig struct { - JsonData []byte - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *instanceconfigurationlaunchinstanceplatformconfig) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstanceconfigurationlaunchinstanceplatformconfig instanceconfigurationlaunchinstanceplatformconfig - s := struct { - Model Unmarshalerinstanceconfigurationlaunchinstanceplatformconfig - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.IsSecureBootEnabled = s.Model.IsSecureBootEnabled - m.IsTrustedPlatformModuleEnabled = s.Model.IsTrustedPlatformModuleEnabled - m.IsMeasuredBootEnabled = s.Model.IsMeasuredBootEnabled - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *instanceconfigurationlaunchinstanceplatformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "AMD_MILAN_BM": - mm := InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTEL_VM": - mm := InstanceConfigurationIntelVmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AMD_ROME_BM": - mm := InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTEL_SKYLAKE_BM": - mm := InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AMD_VM": - mm := InstanceConfigurationAmdVmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m instanceconfigurationlaunchinstanceplatformconfig) String() string { - return common.PointerString(m) -} - -// InstanceConfigurationLaunchInstancePlatformConfigTypeEnum Enum with underlying type: string -type InstanceConfigurationLaunchInstancePlatformConfigTypeEnum string - -// Set of constants representing the allowable values for InstanceConfigurationLaunchInstancePlatformConfigTypeEnum -const ( - InstanceConfigurationLaunchInstancePlatformConfigTypeAmdMilanBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_MILAN_BM" - InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_ROME_BM" - InstanceConfigurationLaunchInstancePlatformConfigTypeIntelSkylakeBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "INTEL_SKYLAKE_BM" - InstanceConfigurationLaunchInstancePlatformConfigTypeAmdVm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_VM" - InstanceConfigurationLaunchInstancePlatformConfigTypeIntelVm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "INTEL_VM" -) - -var mappingInstanceConfigurationLaunchInstancePlatformConfigType = map[string]InstanceConfigurationLaunchInstancePlatformConfigTypeEnum{ - "AMD_MILAN_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdMilanBm, - "AMD_ROME_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBm, - "INTEL_SKYLAKE_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelSkylakeBm, - "AMD_VM": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdVm, - "INTEL_VM": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelVm, -} - -// GetInstanceConfigurationLaunchInstancePlatformConfigTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstancePlatformConfigTypeEnum -func GetInstanceConfigurationLaunchInstancePlatformConfigTypeEnumValues() []InstanceConfigurationLaunchInstancePlatformConfigTypeEnum { - values := make([]InstanceConfigurationLaunchInstancePlatformConfigTypeEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchInstancePlatformConfigType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_shape_config_details.go deleted file mode 100644 index 8aa7def673..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_shape_config_details.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationLaunchInstanceShapeConfigDetails The shape configuration requested for the instance. -// If the parameter is provided, the instance is created -// with the resources that you specify. If some properties are missing or -// the entire parameter is not provided, the instance is created with the default -// configuration values for the `shape` that you specify. -// Each shape only supports certain configurable values. If the values that you provide are not valid for the -// specified `shape`, an error is returned. -type InstanceConfigurationLaunchInstanceShapeConfigDetails struct { - - // The total number of OCPUs available to the instance. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to the instance, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` - - // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a - // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. - // The following values are supported: - // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. - // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. - // - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance. - BaselineOcpuUtilization InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` -} - -func (m InstanceConfigurationLaunchInstanceShapeConfigDetails) String() string { - return common.PointerString(m) -} - -// InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string -type InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string - -// Set of constants representing the allowable values for InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum -const ( - InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8 InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8" - InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2 InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2" - InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1 InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1" -) - -var mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization = map[string]InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ - "BASELINE_1_8": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8, - "BASELINE_1_2": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2, - "BASELINE_1_1": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1, -} - -// GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum -func GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { - values := make([]InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_options.go deleted file mode 100644 index 27597e2cb2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_options.go +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationLaunchOptions Options for tuning the compatibility and performance of VM shapes. The values that you specify override any -// default values. -type InstanceConfigurationLaunchOptions struct { - - // Emulation type for the boot volume. - // * `ISCSI` - ISCSI attached block storage device. - // * `SCSI` - Emulated SCSI disk. - // * `IDE` - Emulated IDE disk. - // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data - // volumes on platform images. - // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block - // storage volumes on platform images. - BootVolumeType InstanceConfigurationLaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"` - - // Firmware used to boot VM. Select the option that matches your operating system. - // * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating - // systems that boot using MBR style bootloaders. - // * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the - // default for platform images. - Firmware InstanceConfigurationLaunchOptionsFirmwareEnum `mandatory:"false" json:"firmware,omitempty"` - - // Emulation type for the physical network interface card (NIC). - // * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. - // * `VFIO` - Direct attached Virtual Function network controller. This is the networking type - // when you launch an instance using hardware-assisted (SR-IOV) networking. - // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. - NetworkType InstanceConfigurationLaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"` - - // Emulation type for volume. - // * `ISCSI` - ISCSI attached block storage device. - // * `SCSI` - Emulated SCSI disk. - // * `IDE` - Emulated IDE disk. - // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data - // volumes on platform images. - // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block - // storage volumes on platform images. - RemoteDataVolumeType InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum `mandatory:"false" json:"remoteDataVolumeType,omitempty"` - - // Deprecated. Instead use `isPvEncryptionInTransitEnabled` in - // InstanceConfigurationLaunchInstanceDetails. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Whether to enable consistent volume naming feature. Defaults to false. - IsConsistentVolumeNamingEnabled *bool `mandatory:"false" json:"isConsistentVolumeNamingEnabled"` -} - -func (m InstanceConfigurationLaunchOptions) String() string { - return common.PointerString(m) -} - -// InstanceConfigurationLaunchOptionsBootVolumeTypeEnum Enum with underlying type: string -type InstanceConfigurationLaunchOptionsBootVolumeTypeEnum string - -// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsBootVolumeTypeEnum -const ( - InstanceConfigurationLaunchOptionsBootVolumeTypeIscsi InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "ISCSI" - InstanceConfigurationLaunchOptionsBootVolumeTypeScsi InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "SCSI" - InstanceConfigurationLaunchOptionsBootVolumeTypeIde InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "IDE" - InstanceConfigurationLaunchOptionsBootVolumeTypeVfio InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "VFIO" - InstanceConfigurationLaunchOptionsBootVolumeTypeParavirtualized InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "PARAVIRTUALIZED" -) - -var mappingInstanceConfigurationLaunchOptionsBootVolumeType = map[string]InstanceConfigurationLaunchOptionsBootVolumeTypeEnum{ - "ISCSI": InstanceConfigurationLaunchOptionsBootVolumeTypeIscsi, - "SCSI": InstanceConfigurationLaunchOptionsBootVolumeTypeScsi, - "IDE": InstanceConfigurationLaunchOptionsBootVolumeTypeIde, - "VFIO": InstanceConfigurationLaunchOptionsBootVolumeTypeVfio, - "PARAVIRTUALIZED": InstanceConfigurationLaunchOptionsBootVolumeTypeParavirtualized, -} - -// GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsBootVolumeTypeEnum -func GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumValues() []InstanceConfigurationLaunchOptionsBootVolumeTypeEnum { - values := make([]InstanceConfigurationLaunchOptionsBootVolumeTypeEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchOptionsBootVolumeType { - values = append(values, v) - } - return values -} - -// InstanceConfigurationLaunchOptionsFirmwareEnum Enum with underlying type: string -type InstanceConfigurationLaunchOptionsFirmwareEnum string - -// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsFirmwareEnum -const ( - InstanceConfigurationLaunchOptionsFirmwareBios InstanceConfigurationLaunchOptionsFirmwareEnum = "BIOS" - InstanceConfigurationLaunchOptionsFirmwareUefi64 InstanceConfigurationLaunchOptionsFirmwareEnum = "UEFI_64" -) - -var mappingInstanceConfigurationLaunchOptionsFirmware = map[string]InstanceConfigurationLaunchOptionsFirmwareEnum{ - "BIOS": InstanceConfigurationLaunchOptionsFirmwareBios, - "UEFI_64": InstanceConfigurationLaunchOptionsFirmwareUefi64, -} - -// GetInstanceConfigurationLaunchOptionsFirmwareEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsFirmwareEnum -func GetInstanceConfigurationLaunchOptionsFirmwareEnumValues() []InstanceConfigurationLaunchOptionsFirmwareEnum { - values := make([]InstanceConfigurationLaunchOptionsFirmwareEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchOptionsFirmware { - values = append(values, v) - } - return values -} - -// InstanceConfigurationLaunchOptionsNetworkTypeEnum Enum with underlying type: string -type InstanceConfigurationLaunchOptionsNetworkTypeEnum string - -// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsNetworkTypeEnum -const ( - InstanceConfigurationLaunchOptionsNetworkTypeE1000 InstanceConfigurationLaunchOptionsNetworkTypeEnum = "E1000" - InstanceConfigurationLaunchOptionsNetworkTypeVfio InstanceConfigurationLaunchOptionsNetworkTypeEnum = "VFIO" - InstanceConfigurationLaunchOptionsNetworkTypeParavirtualized InstanceConfigurationLaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" -) - -var mappingInstanceConfigurationLaunchOptionsNetworkType = map[string]InstanceConfigurationLaunchOptionsNetworkTypeEnum{ - "E1000": InstanceConfigurationLaunchOptionsNetworkTypeE1000, - "VFIO": InstanceConfigurationLaunchOptionsNetworkTypeVfio, - "PARAVIRTUALIZED": InstanceConfigurationLaunchOptionsNetworkTypeParavirtualized, -} - -// GetInstanceConfigurationLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsNetworkTypeEnum -func GetInstanceConfigurationLaunchOptionsNetworkTypeEnumValues() []InstanceConfigurationLaunchOptionsNetworkTypeEnum { - values := make([]InstanceConfigurationLaunchOptionsNetworkTypeEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchOptionsNetworkType { - values = append(values, v) - } - return values -} - -// InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum Enum with underlying type: string -type InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum string - -// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum -const ( - InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIscsi InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "ISCSI" - InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeScsi InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "SCSI" - InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIde InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "IDE" - InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeVfio InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "VFIO" - InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeParavirtualized InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "PARAVIRTUALIZED" -) - -var mappingInstanceConfigurationLaunchOptionsRemoteDataVolumeType = map[string]InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum{ - "ISCSI": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIscsi, - "SCSI": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeScsi, - "IDE": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIde, - "VFIO": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeVfio, - "PARAVIRTUALIZED": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeParavirtualized, -} - -// GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum -func GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumValues() []InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum { - values := make([]InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchOptionsRemoteDataVolumeType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_paravirtualized_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_paravirtualized_attach_volume_details.go deleted file mode 100644 index 3d247c27ba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_paravirtualized_attach_volume_details.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationParavirtualizedAttachVolumeDetails The representation of InstanceConfigurationParavirtualizedAttachVolumeDetails -type InstanceConfigurationParavirtualizedAttachVolumeDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Whether the attachment should be created in read-only mode. - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - - // The device name. - Device *string `mandatory:"false" json:"device"` - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - IsShareable *bool `mandatory:"false" json:"isShareable"` - - // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` -} - -//GetDisplayName returns DisplayName -func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetIsReadOnly returns IsReadOnly -func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetDevice returns Device -func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetDevice() *string { - return m.Device -} - -//GetIsShareable returns IsShareable -func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetIsShareable() *bool { - return m.IsShareable -} - -func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationParavirtualizedAttachVolumeDetails InstanceConfigurationParavirtualizedAttachVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationParavirtualizedAttachVolumeDetails - }{ - "paravirtualized", - (MarshalTypeInstanceConfigurationParavirtualizedAttachVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_summary.go deleted file mode 100644 index 7495d64f07..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_summary.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationSummary Summary information for an instance configuration. -type InstanceConfigurationSummary struct { - - // The OCID of the compartment containing the instance configuration. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the instance configuration. - Id *string `mandatory:"true" json:"id"` - - // The date and time the instance configuration was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m InstanceConfigurationSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_details.go deleted file mode 100644 index a44bc120b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_details.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationVolumeSourceDetails The representation of InstanceConfigurationVolumeSourceDetails -type InstanceConfigurationVolumeSourceDetails interface { -} - -type instanceconfigurationvolumesourcedetails struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *instanceconfigurationvolumesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstanceconfigurationvolumesourcedetails instanceconfigurationvolumesourcedetails - s := struct { - Model Unmarshalerinstanceconfigurationvolumesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *instanceconfigurationvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "volumeBackup": - mm := InstanceConfigurationVolumeSourceFromVolumeBackupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volume": - mm := InstanceConfigurationVolumeSourceFromVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m instanceconfigurationvolumesourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_backup_details.go deleted file mode 100644 index f104f5507f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_backup_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationVolumeSourceFromVolumeBackupDetails Specifies the volume backup. -type InstanceConfigurationVolumeSourceFromVolumeBackupDetails struct { - - // The OCID of the volume backup. - Id *string `mandatory:"false" json:"id"` -} - -func (m InstanceConfigurationVolumeSourceFromVolumeBackupDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationVolumeSourceFromVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationVolumeSourceFromVolumeBackupDetails InstanceConfigurationVolumeSourceFromVolumeBackupDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationVolumeSourceFromVolumeBackupDetails - }{ - "volumeBackup", - (MarshalTypeInstanceConfigurationVolumeSourceFromVolumeBackupDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_details.go deleted file mode 100644 index aec12dbd80..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_volume_source_from_volume_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConfigurationVolumeSourceFromVolumeDetails Specifies the source volume. -type InstanceConfigurationVolumeSourceFromVolumeDetails struct { - - // The OCID of the volume. - Id *string `mandatory:"false" json:"id"` -} - -func (m InstanceConfigurationVolumeSourceFromVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceConfigurationVolumeSourceFromVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceConfigurationVolumeSourceFromVolumeDetails InstanceConfigurationVolumeSourceFromVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInstanceConfigurationVolumeSourceFromVolumeDetails - }{ - "volume", - (MarshalTypeInstanceConfigurationVolumeSourceFromVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_console_connection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_console_connection.go deleted file mode 100644 index a69f5fbbef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_console_connection.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceConsoleConnection The `InstanceConsoleConnection` API provides you with console access to Compute instances, -// enabling you to troubleshoot malfunctioning instances remotely. -// For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections (https://docs.cloud.oracle.com/iaas/Content/Compute/References/serialconsole.htm). -type InstanceConsoleConnection struct { - - // The OCID of the compartment to contain the console connection. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The SSH connection string for the console connection. - ConnectionString *string `mandatory:"false" json:"connectionString"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The SSH public key's fingerprint for client authentication to the console connection. - Fingerprint *string `mandatory:"false" json:"fingerprint"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID of the console connection. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the instance the console connection connects to. - InstanceId *string `mandatory:"false" json:"instanceId"` - - // The current state of the console connection. - LifecycleState InstanceConsoleConnectionLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The SSH public key's fingerprint for the console connection service host. - ServiceHostKeyFingerprint *string `mandatory:"false" json:"serviceHostKeyFingerprint"` - - // The SSH connection string for the SSH tunnel used to - // connect to the console connection over VNC. - VncConnectionString *string `mandatory:"false" json:"vncConnectionString"` -} - -func (m InstanceConsoleConnection) String() string { - return common.PointerString(m) -} - -// InstanceConsoleConnectionLifecycleStateEnum Enum with underlying type: string -type InstanceConsoleConnectionLifecycleStateEnum string - -// Set of constants representing the allowable values for InstanceConsoleConnectionLifecycleStateEnum -const ( - InstanceConsoleConnectionLifecycleStateActive InstanceConsoleConnectionLifecycleStateEnum = "ACTIVE" - InstanceConsoleConnectionLifecycleStateCreating InstanceConsoleConnectionLifecycleStateEnum = "CREATING" - InstanceConsoleConnectionLifecycleStateDeleted InstanceConsoleConnectionLifecycleStateEnum = "DELETED" - InstanceConsoleConnectionLifecycleStateDeleting InstanceConsoleConnectionLifecycleStateEnum = "DELETING" - InstanceConsoleConnectionLifecycleStateFailed InstanceConsoleConnectionLifecycleStateEnum = "FAILED" -) - -var mappingInstanceConsoleConnectionLifecycleState = map[string]InstanceConsoleConnectionLifecycleStateEnum{ - "ACTIVE": InstanceConsoleConnectionLifecycleStateActive, - "CREATING": InstanceConsoleConnectionLifecycleStateCreating, - "DELETED": InstanceConsoleConnectionLifecycleStateDeleted, - "DELETING": InstanceConsoleConnectionLifecycleStateDeleting, - "FAILED": InstanceConsoleConnectionLifecycleStateFailed, -} - -// GetInstanceConsoleConnectionLifecycleStateEnumValues Enumerates the set of values for InstanceConsoleConnectionLifecycleStateEnum -func GetInstanceConsoleConnectionLifecycleStateEnumValues() []InstanceConsoleConnectionLifecycleStateEnum { - values := make([]InstanceConsoleConnectionLifecycleStateEnum, 0) - for _, v := range mappingInstanceConsoleConnectionLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_credentials.go deleted file mode 100644 index 851d32c6fb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_credentials.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceCredentials The credentials for a particular instance. -type InstanceCredentials struct { - - // The password for the username. - Password *string `mandatory:"true" json:"password"` - - // The username. - Username *string `mandatory:"true" json:"username"` -} - -func (m InstanceCredentials) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_options.go deleted file mode 100644 index 19e372695b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_options.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceOptions Optional mutable instance options -type InstanceOptions struct { - - // Whether to disable the legacy (/v1) instance metadata service endpoints. - // Customers who have migrated to /v2 should set this to true for added security. - // Default is false. - AreLegacyImdsEndpointsDisabled *bool `mandatory:"false" json:"areLegacyImdsEndpointsDisabled"` -} - -func (m InstanceOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool.go deleted file mode 100644 index f56d9ac745..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool.go +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePool An instance pool is a set of instances within the same region that are managed as a group. -// For more information about instance pools and instance configurations, see -// Managing Compute Instances (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm). -type InstancePool struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the instance - // pool. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated - // with the instance pool. - InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` - - // The current state of the instance pool. - LifecycleState InstancePoolLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The placement configurations for the instance pool. - PlacementConfigurations []InstancePoolPlacementConfiguration `mandatory:"true" json:"placementConfigurations"` - - // The number of instances that should be in the instance pool. - Size *int `mandatory:"true" json:"size"` - - // The date and time the instance pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The load balancers attached to the instance pool. - LoadBalancers []InstancePoolLoadBalancerAttachment `mandatory:"false" json:"loadBalancers"` - - // The last date and time the instance pool state was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeStateUpdated *common.SDKTime `mandatory:"false" json:"timeStateUpdated"` - - // A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. - // The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format - InstanceDisplayNameFormatter *string `mandatory:"false" json:"instanceDisplayNameFormatter"` - - // A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. - // The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format - InstanceHostnameFormatter *string `mandatory:"false" json:"instanceHostnameFormatter"` -} - -func (m InstancePool) String() string { - return common.PointerString(m) -} - -// InstancePoolLifecycleStateEnum Enum with underlying type: string -type InstancePoolLifecycleStateEnum string - -// Set of constants representing the allowable values for InstancePoolLifecycleStateEnum -const ( - InstancePoolLifecycleStateProvisioning InstancePoolLifecycleStateEnum = "PROVISIONING" - InstancePoolLifecycleStateScaling InstancePoolLifecycleStateEnum = "SCALING" - InstancePoolLifecycleStateStarting InstancePoolLifecycleStateEnum = "STARTING" - InstancePoolLifecycleStateStopping InstancePoolLifecycleStateEnum = "STOPPING" - InstancePoolLifecycleStateTerminating InstancePoolLifecycleStateEnum = "TERMINATING" - InstancePoolLifecycleStateStopped InstancePoolLifecycleStateEnum = "STOPPED" - InstancePoolLifecycleStateTerminated InstancePoolLifecycleStateEnum = "TERMINATED" - InstancePoolLifecycleStateRunning InstancePoolLifecycleStateEnum = "RUNNING" -) - -var mappingInstancePoolLifecycleState = map[string]InstancePoolLifecycleStateEnum{ - "PROVISIONING": InstancePoolLifecycleStateProvisioning, - "SCALING": InstancePoolLifecycleStateScaling, - "STARTING": InstancePoolLifecycleStateStarting, - "STOPPING": InstancePoolLifecycleStateStopping, - "TERMINATING": InstancePoolLifecycleStateTerminating, - "STOPPED": InstancePoolLifecycleStateStopped, - "TERMINATED": InstancePoolLifecycleStateTerminated, - "RUNNING": InstancePoolLifecycleStateRunning, -} - -// GetInstancePoolLifecycleStateEnumValues Enumerates the set of values for InstancePoolLifecycleStateEnum -func GetInstancePoolLifecycleStateEnumValues() []InstancePoolLifecycleStateEnum { - values := make([]InstancePoolLifecycleStateEnum, 0) - for _, v := range mappingInstancePoolLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance.go deleted file mode 100644 index 5181502b2a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePoolInstance Information about an instance that belongs to an instance pool. -type InstancePoolInstance struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. - InstancePoolId *string `mandatory:"true" json:"instancePoolId"` - - // The availability domain the instance is running in. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The attachment state of the instance in relation to the instance pool. - LifecycleState InstancePoolInstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the - // instance. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration - // used to create the instance. - InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` - - // The region that contains the availability domain the instance is running in. - Region *string `mandatory:"true" json:"region"` - - // The shape of the instance. The shape determines the number of CPUs, amount of memory, - // and other resources allocated to the instance. - Shape *string `mandatory:"true" json:"shape"` - - // The lifecycle state of the instance. Refer to `lifecycleState` in the Instance resource. - State *string `mandatory:"true" json:"state"` - - // The date and time the instance pool instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The fault domain the instance is running in. - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - // The load balancer backends that are configured for the instance. - LoadBalancerBackends []InstancePoolInstanceLoadBalancerBackend `mandatory:"false" json:"loadBalancerBackends"` -} - -func (m InstancePoolInstance) String() string { - return common.PointerString(m) -} - -// InstancePoolInstanceLifecycleStateEnum Enum with underlying type: string -type InstancePoolInstanceLifecycleStateEnum string - -// Set of constants representing the allowable values for InstancePoolInstanceLifecycleStateEnum -const ( - InstancePoolInstanceLifecycleStateAttaching InstancePoolInstanceLifecycleStateEnum = "ATTACHING" - InstancePoolInstanceLifecycleStateActive InstancePoolInstanceLifecycleStateEnum = "ACTIVE" - InstancePoolInstanceLifecycleStateDetaching InstancePoolInstanceLifecycleStateEnum = "DETACHING" -) - -var mappingInstancePoolInstanceLifecycleState = map[string]InstancePoolInstanceLifecycleStateEnum{ - "ATTACHING": InstancePoolInstanceLifecycleStateAttaching, - "ACTIVE": InstancePoolInstanceLifecycleStateActive, - "DETACHING": InstancePoolInstanceLifecycleStateDetaching, -} - -// GetInstancePoolInstanceLifecycleStateEnumValues Enumerates the set of values for InstancePoolInstanceLifecycleStateEnum -func GetInstancePoolInstanceLifecycleStateEnumValues() []InstancePoolInstanceLifecycleStateEnum { - values := make([]InstancePoolInstanceLifecycleStateEnum, 0) - for _, v := range mappingInstancePoolInstanceLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance_load_balancer_backend.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance_load_balancer_backend.go deleted file mode 100644 index dd3d0043a4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_instance_load_balancer_backend.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePoolInstanceLoadBalancerBackend Represents the load balancer Backend that is configured for an instance pool instance. -type InstancePoolInstanceLoadBalancerBackend struct { - - // The OCID of the load balancer attached to the instance pool. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The name of the backend set on the load balancer. - BackendSetName *string `mandatory:"true" json:"backendSetName"` - - // The name of the backend in the backend set. - BackendName *string `mandatory:"true" json:"backendName"` - - // The health of the backend as observed by the load balancer. - BackendHealthStatus InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum `mandatory:"true" json:"backendHealthStatus"` -} - -func (m InstancePoolInstanceLoadBalancerBackend) String() string { - return common.PointerString(m) -} - -// InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum Enum with underlying type: string -type InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum string - -// Set of constants representing the allowable values for InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum -const ( - InstancePoolInstanceLoadBalancerBackendBackendHealthStatusOk InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "OK" - InstancePoolInstanceLoadBalancerBackendBackendHealthStatusWarning InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "WARNING" - InstancePoolInstanceLoadBalancerBackendBackendHealthStatusCritical InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "CRITICAL" - InstancePoolInstanceLoadBalancerBackendBackendHealthStatusUnknown InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "UNKNOWN" -) - -var mappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatus = map[string]InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum{ - "OK": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusOk, - "WARNING": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusWarning, - "CRITICAL": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusCritical, - "UNKNOWN": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusUnknown, -} - -// GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumValues Enumerates the set of values for InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum -func GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumValues() []InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum { - values := make([]InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum, 0) - for _, v := range mappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_load_balancer_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_load_balancer_attachment.go deleted file mode 100644 index 63ed351cdd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_load_balancer_attachment.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePoolLoadBalancerAttachment Represents a load balancer that is attached to an instance pool. -type InstancePoolLoadBalancerAttachment struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool of the load balancer attachment. - InstancePoolId *string `mandatory:"true" json:"instancePoolId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attached to the instance pool. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The name of the backend set on the load balancer. - BackendSetName *string `mandatory:"true" json:"backendSetName"` - - // The port value used for the backends. - Port *int `mandatory:"true" json:"port"` - - // Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. - // Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration - // that is associated with the instance pool. - VnicSelection *string `mandatory:"true" json:"vnicSelection"` - - // The status of the interaction between the instance pool and the load balancer. - LifecycleState InstancePoolLoadBalancerAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` -} - -func (m InstancePoolLoadBalancerAttachment) String() string { - return common.PointerString(m) -} - -// InstancePoolLoadBalancerAttachmentLifecycleStateEnum Enum with underlying type: string -type InstancePoolLoadBalancerAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for InstancePoolLoadBalancerAttachmentLifecycleStateEnum -const ( - InstancePoolLoadBalancerAttachmentLifecycleStateAttaching InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "ATTACHING" - InstancePoolLoadBalancerAttachmentLifecycleStateAttached InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "ATTACHED" - InstancePoolLoadBalancerAttachmentLifecycleStateDetaching InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "DETACHING" - InstancePoolLoadBalancerAttachmentLifecycleStateDetached InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingInstancePoolLoadBalancerAttachmentLifecycleState = map[string]InstancePoolLoadBalancerAttachmentLifecycleStateEnum{ - "ATTACHING": InstancePoolLoadBalancerAttachmentLifecycleStateAttaching, - "ATTACHED": InstancePoolLoadBalancerAttachmentLifecycleStateAttached, - "DETACHING": InstancePoolLoadBalancerAttachmentLifecycleStateDetaching, - "DETACHED": InstancePoolLoadBalancerAttachmentLifecycleStateDetached, -} - -// GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumValues Enumerates the set of values for InstancePoolLoadBalancerAttachmentLifecycleStateEnum -func GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumValues() []InstancePoolLoadBalancerAttachmentLifecycleStateEnum { - values := make([]InstancePoolLoadBalancerAttachmentLifecycleStateEnum, 0) - for _, v := range mappingInstancePoolLoadBalancerAttachmentLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_configuration.go deleted file mode 100644 index 3351d49ee0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_configuration.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePoolPlacementConfiguration The location for where an instance pool will place instances. -type InstancePoolPlacementConfiguration struct { - - // The availability domain to place instances. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place instances. - PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` - - // The fault domains to place instances. - // If you don't provide any values, the system makes a best effort to distribute - // instances across all fault domains based on capacity. - // To distribute the instances evenly across selected fault domains, provide a - // set of fault domains. For example, you might want instances to be evenly - // distributed if your applications require high availability. - // To get a list of fault domains, use the - // ListFaultDomains operation - // in the Identity and Access Management Service API. - // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` - FaultDomains []string `mandatory:"false" json:"faultDomains"` - - // The set of secondary VNIC data for instances in the pool. - SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` -} - -func (m InstancePoolPlacementConfiguration) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_secondary_vnic_subnet.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_secondary_vnic_subnet.go deleted file mode 100644 index 3aeb8748bc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_placement_secondary_vnic_subnet.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePoolPlacementSecondaryVnicSubnet The secondary VNIC object for the placement configuration for an instance pool. -type InstancePoolPlacementSecondaryVnicSubnet struct { - - // The subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The display name of the VNIC. This is also use to match against the instance configuration defined - // secondary VNIC. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m InstancePoolPlacementSecondaryVnicSubnet) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_summary.go deleted file mode 100644 index 8e66e2e04f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_pool_summary.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstancePoolSummary Summary information for an instance pool. -type InstancePoolSummary struct { - - // The OCID of the instance pool. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment containing the instance pool. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the instance configuration associated with the instance pool. - InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` - - // The current state of the instance pool. - LifecycleState InstancePoolSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The availability domains for the instance pool. - AvailabilityDomains []string `mandatory:"true" json:"availabilityDomains"` - - // The number of instances that should be in the instance pool. - Size *int `mandatory:"true" json:"size"` - - // The date and time the instance pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The last date and time the instance pool state was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeStateUpdated *common.SDKTime `mandatory:"false" json:"timeStateUpdated"` -} - -func (m InstancePoolSummary) String() string { - return common.PointerString(m) -} - -// InstancePoolSummaryLifecycleStateEnum Enum with underlying type: string -type InstancePoolSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for InstancePoolSummaryLifecycleStateEnum -const ( - InstancePoolSummaryLifecycleStateProvisioning InstancePoolSummaryLifecycleStateEnum = "PROVISIONING" - InstancePoolSummaryLifecycleStateScaling InstancePoolSummaryLifecycleStateEnum = "SCALING" - InstancePoolSummaryLifecycleStateStarting InstancePoolSummaryLifecycleStateEnum = "STARTING" - InstancePoolSummaryLifecycleStateStopping InstancePoolSummaryLifecycleStateEnum = "STOPPING" - InstancePoolSummaryLifecycleStateTerminating InstancePoolSummaryLifecycleStateEnum = "TERMINATING" - InstancePoolSummaryLifecycleStateStopped InstancePoolSummaryLifecycleStateEnum = "STOPPED" - InstancePoolSummaryLifecycleStateTerminated InstancePoolSummaryLifecycleStateEnum = "TERMINATED" - InstancePoolSummaryLifecycleStateRunning InstancePoolSummaryLifecycleStateEnum = "RUNNING" -) - -var mappingInstancePoolSummaryLifecycleState = map[string]InstancePoolSummaryLifecycleStateEnum{ - "PROVISIONING": InstancePoolSummaryLifecycleStateProvisioning, - "SCALING": InstancePoolSummaryLifecycleStateScaling, - "STARTING": InstancePoolSummaryLifecycleStateStarting, - "STOPPING": InstancePoolSummaryLifecycleStateStopping, - "TERMINATING": InstancePoolSummaryLifecycleStateTerminating, - "STOPPED": InstancePoolSummaryLifecycleStateStopped, - "TERMINATED": InstancePoolSummaryLifecycleStateTerminated, - "RUNNING": InstancePoolSummaryLifecycleStateRunning, -} - -// GetInstancePoolSummaryLifecycleStateEnumValues Enumerates the set of values for InstancePoolSummaryLifecycleStateEnum -func GetInstancePoolSummaryLifecycleStateEnumValues() []InstancePoolSummaryLifecycleStateEnum { - values := make([]InstancePoolSummaryLifecycleStateEnum, 0) - for _, v := range mappingInstancePoolSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config.go deleted file mode 100644 index 7eeec66897..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceReservationConfig Data that defines the capacity configuration. -type InstanceReservationConfig struct { - - // The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, - // and other resources allocated to the instance. - // You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes. - InstanceShape *string `mandatory:"true" json:"instanceShape"` - - // The total number of instances that can be launched from the capacity configuration. - ReservedCount *int64 `mandatory:"true" json:"reservedCount"` - - // The amount of capacity in use out of the total capacity reserved in this capacity configuration. - UsedCount *int64 `mandatory:"true" json:"usedCount"` - - // The fault domain of this capacity configuration. - // If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. - // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm). - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - InstanceShapeConfig *InstanceReservationShapeConfigDetails `mandatory:"false" json:"instanceShapeConfig"` -} - -func (m InstanceReservationConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config_details.go deleted file mode 100644 index 8f9a486e2a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_config_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceReservationConfigDetails A template that contains the settings to use when defining the instance capacity configuration. -type InstanceReservationConfigDetails struct { - - // The shape requested when launching instances using reserved capacity. - // The shape determines the number of CPUs, amount of memory, - // and other resources allocated to the instance. - // You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes. - InstanceShape *string `mandatory:"true" json:"instanceShape"` - - // The total number of instances that can be launched from the capacity configuration. - ReservedCount *int64 `mandatory:"true" json:"reservedCount"` - - InstanceShapeConfig *InstanceReservationShapeConfigDetails `mandatory:"false" json:"instanceShapeConfig"` - - // The fault domain to use for instances created using this capacity configuration. - // For more information, see Fault Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). - // If you do not specify the fault domain, the capacity is available for an instance - // that does not specify a fault domain. To change the fault domain for a reservation, - // delete the reservation and create a new one in the preferred fault domain. - // To retrieve a list of fault domains, use the `ListFaultDomains` operation in - // the Identity and Access Management Service API (https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). - // Example: `FAULT-DOMAIN-1` - FaultDomain *string `mandatory:"false" json:"faultDomain"` -} - -func (m InstanceReservationConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_shape_config_details.go deleted file mode 100644 index b223f198db..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_reservation_shape_config_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceReservationShapeConfigDetails The shape configuration requested when launching instances in a compute capacity reservation. -// If the parameter is provided, the reservation is created with the resources that you specify. If some -// properties are missing or the parameter is not provided, the reservation is created -// with the default configuration values for the `shape` that you specify. -// Each shape only supports certain configurable values. If the values that you provide are not valid for the -// specified `shape`, an error is returned. -// For more information about customizing the resources that are allocated to flexible shapes, -// see Flexible Shapes (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm#flexible). -type InstanceReservationShapeConfigDetails struct { - - // The total number of OCPUs available to the instance. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to the instance, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` -} - -func (m InstanceReservationShapeConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_shape_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_shape_config.go deleted file mode 100644 index 989223d443..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_shape_config.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceShapeConfig The shape configuration for an instance. The shape configuration determines -// the resources allocated to an instance. -type InstanceShapeConfig struct { - - // The total number of OCPUs available to the instance. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to the instance, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` - - // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a - // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. - // The following values are supported: - // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. - // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. - // - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance. - BaselineOcpuUtilization InstanceShapeConfigBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` - - // A short description of the instance's processor (CPU). - ProcessorDescription *string `mandatory:"false" json:"processorDescription"` - - // The networking bandwidth available to the instance, in gigabits per second. - NetworkingBandwidthInGbps *float32 `mandatory:"false" json:"networkingBandwidthInGbps"` - - // The maximum number of VNIC attachments for the instance. - MaxVnicAttachments *int `mandatory:"false" json:"maxVnicAttachments"` - - // The number of GPUs available to the instance. - Gpus *int `mandatory:"false" json:"gpus"` - - // A short description of the instance's graphics processing unit (GPU). - // If the instance does not have any GPUs, this field is `null`. - GpuDescription *string `mandatory:"false" json:"gpuDescription"` - - // The number of local disks available to the instance. - LocalDisks *int `mandatory:"false" json:"localDisks"` - - // The aggregate size of all local disks, in gigabytes. - // If the instance does not have any local disks, this field is `null`. - LocalDisksTotalSizeInGBs *float32 `mandatory:"false" json:"localDisksTotalSizeInGBs"` - - // A short description of the local disks available to this instance. - // If the instance does not have any local disks, this field is `null`. - LocalDiskDescription *string `mandatory:"false" json:"localDiskDescription"` -} - -func (m InstanceShapeConfig) String() string { - return common.PointerString(m) -} - -// InstanceShapeConfigBaselineOcpuUtilizationEnum Enum with underlying type: string -type InstanceShapeConfigBaselineOcpuUtilizationEnum string - -// Set of constants representing the allowable values for InstanceShapeConfigBaselineOcpuUtilizationEnum -const ( - InstanceShapeConfigBaselineOcpuUtilization8 InstanceShapeConfigBaselineOcpuUtilizationEnum = "BASELINE_1_8" - InstanceShapeConfigBaselineOcpuUtilization2 InstanceShapeConfigBaselineOcpuUtilizationEnum = "BASELINE_1_2" - InstanceShapeConfigBaselineOcpuUtilization1 InstanceShapeConfigBaselineOcpuUtilizationEnum = "BASELINE_1_1" -) - -var mappingInstanceShapeConfigBaselineOcpuUtilization = map[string]InstanceShapeConfigBaselineOcpuUtilizationEnum{ - "BASELINE_1_8": InstanceShapeConfigBaselineOcpuUtilization8, - "BASELINE_1_2": InstanceShapeConfigBaselineOcpuUtilization2, - "BASELINE_1_1": InstanceShapeConfigBaselineOcpuUtilization1, -} - -// GetInstanceShapeConfigBaselineOcpuUtilizationEnumValues Enumerates the set of values for InstanceShapeConfigBaselineOcpuUtilizationEnum -func GetInstanceShapeConfigBaselineOcpuUtilizationEnumValues() []InstanceShapeConfigBaselineOcpuUtilizationEnum { - values := make([]InstanceShapeConfigBaselineOcpuUtilizationEnum, 0) - for _, v := range mappingInstanceShapeConfigBaselineOcpuUtilization { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_details.go deleted file mode 100644 index 650e3c0476..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_details.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceSourceDetails The representation of InstanceSourceDetails -type InstanceSourceDetails interface { -} - -type instancesourcedetails struct { - JsonData []byte - SourceType string `json:"sourceType"` -} - -// UnmarshalJSON unmarshals json -func (m *instancesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerinstancesourcedetails instancesourcedetails - s := struct { - Model Unmarshalerinstancesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.SourceType = s.Model.SourceType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *instancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.SourceType { - case "image": - mm := InstanceSourceViaImageDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "bootVolume": - mm := InstanceSourceViaBootVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m instancesourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_boot_volume_details.go deleted file mode 100644 index bf4ed45e03..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_boot_volume_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceSourceViaBootVolumeDetails The representation of InstanceSourceViaBootVolumeDetails -type InstanceSourceViaBootVolumeDetails struct { - - // The OCID of the boot volume used to boot the instance. - BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` -} - -func (m InstanceSourceViaBootVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceSourceViaBootVolumeDetails InstanceSourceViaBootVolumeDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeInstanceSourceViaBootVolumeDetails - }{ - "bootVolume", - (MarshalTypeInstanceSourceViaBootVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_image_details.go deleted file mode 100644 index 8c4c753aad..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_source_via_image_details.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceSourceViaImageDetails The representation of InstanceSourceViaImageDetails -type InstanceSourceViaImageDetails struct { - - // The OCID of the image used to boot the instance. - ImageId *string `mandatory:"true" json:"imageId"` - - // The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 32,768 GB (32 TB). - BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` - - // The OCID of the Key Management key to assign as the master encryption key for the boot volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m InstanceSourceViaImageDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInstanceSourceViaImageDetails InstanceSourceViaImageDetails - s := struct { - DiscriminatorParam string `json:"sourceType"` - MarshalTypeInstanceSourceViaImageDetails - }{ - "image", - (MarshalTypeInstanceSourceViaImageDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_summary.go deleted file mode 100644 index 113ab243ab..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_summary.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InstanceSummary Condensed instance data when listing instances in an instance pool. -type InstanceSummary struct { - - // The OCID of the instance. - Id *string `mandatory:"true" json:"id"` - - // The availability domain the instance is running in. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the instance. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the instance confgiuration used to create the instance. - InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` - - // The region that contains the availability domain the instance is running in. - Region *string `mandatory:"true" json:"region"` - - // The current state of the instance pool instance. - State *string `mandatory:"true" json:"state"` - - // The date and time the instance pool instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The fault domain the instance is running in. - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - // The shape of an instance. The shape determines the number of CPUs, amount of memory, - // and other resources allocated to the instance. - // You can enumerate all available shapes by calling ListShapes. - Shape *string `mandatory:"false" json:"shape"` - - // The load balancer backends that are configured for the instance pool instance. - LoadBalancerBackends []InstancePoolInstanceLoadBalancerBackend `mandatory:"false" json:"loadBalancerBackends"` -} - -func (m InstanceSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_launch_instance_platform_config.go deleted file mode 100644 index 7e8925d700..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IntelSkylakeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the Intel Skylake platform. -type IntelSkylakeBmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m IntelSkylakeBmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IntelSkylakeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIntelSkylakeBmLaunchInstancePlatformConfig IntelSkylakeBmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeIntelSkylakeBmLaunchInstancePlatformConfig - }{ - "INTEL_SKYLAKE_BM", - (MarshalTypeIntelSkylakeBmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_platform_config.go deleted file mode 100644 index 891eac8c3d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_skylake_bm_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IntelSkylakeBmPlatformConfig The platform configuration of a bare metal instance that uses the Intel Skylake platform. -type IntelSkylakeBmPlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m IntelSkylakeBmPlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m IntelSkylakeBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m IntelSkylakeBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m IntelSkylakeBmPlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IntelSkylakeBmPlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIntelSkylakeBmPlatformConfig IntelSkylakeBmPlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeIntelSkylakeBmPlatformConfig - }{ - "INTEL_SKYLAKE_BM", - (MarshalTypeIntelSkylakeBmPlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_launch_instance_platform_config.go deleted file mode 100644 index 6be5abe04f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_launch_instance_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IntelVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the Intel platform. -type IntelVmLaunchInstancePlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m IntelVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m IntelVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m IntelVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m IntelVmLaunchInstancePlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IntelVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIntelVmLaunchInstancePlatformConfig IntelVmLaunchInstancePlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeIntelVmLaunchInstancePlatformConfig - }{ - "INTEL_VM", - (MarshalTypeIntelVmLaunchInstancePlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_platform_config.go deleted file mode 100644 index 07361dbf11..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/intel_vm_platform_config.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IntelVmPlatformConfig The platform configuration of a virtual machine instance that uses the Intel platform. -type IntelVmPlatformConfig struct { - - // Whether Secure Boot is enabled on the instance. - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - - // Whether the Measured Boot feature is enabled on the instance. - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m IntelVmPlatformConfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m IntelVmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m IntelVmPlatformConfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m IntelVmPlatformConfig) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IntelVmPlatformConfig) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIntelVmPlatformConfig IntelVmPlatformConfig - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeIntelVmPlatformConfig - }{ - "INTEL_VM", - (MarshalTypeIntelVmPlatformConfig)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_dns_record.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_dns_record.go deleted file mode 100644 index 8218618cba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_dns_record.go +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternalDnsRecord DnsRecord representing a single RRSet. -type InternalDnsRecord struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DNS record. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS record. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Internal Hosted Zone the `DnsRecord` belongs to. - InternalHostedZoneId *string `mandatory:"true" json:"internalHostedZoneId"` - - // The DnsRecord's current state. - LifecycleState InternalDnsRecordLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Name of the DnsRecord. - // -*A:* Partially Qualified DNS Name that will be mapped to the IPv4 address - Name *string `mandatory:"true" json:"name"` - - // Type of Dns Record according to RFC 1035 (https://tools.ietf.org/html/rfc1035). - // Currently supported list of types are the following. - // -*A:* Type 1, a host name to IPv4 address - Type InternalDnsRecordTypeEnum `mandatory:"true" json:"type"` - - // Value for the DnsRecord. - // -*A:* One or more IPv4 addresses. Comma separated. - Value *string `mandatory:"true" json:"value"` - - // Time to live value for the DnsRecord, according to RFC 1035 (https://tools.ietf.org/html/rfc1035). - // Defaults to 86400. - Ttl *int `mandatory:"false" json:"ttl"` -} - -func (m InternalDnsRecord) String() string { - return common.PointerString(m) -} - -// InternalDnsRecordLifecycleStateEnum Enum with underlying type: string -type InternalDnsRecordLifecycleStateEnum string - -// Set of constants representing the allowable values for InternalDnsRecordLifecycleStateEnum -const ( - InternalDnsRecordLifecycleStateProvisioning InternalDnsRecordLifecycleStateEnum = "PROVISIONING" - InternalDnsRecordLifecycleStateAvailable InternalDnsRecordLifecycleStateEnum = "AVAILABLE" - InternalDnsRecordLifecycleStateTerminating InternalDnsRecordLifecycleStateEnum = "TERMINATING" - InternalDnsRecordLifecycleStateTerminated InternalDnsRecordLifecycleStateEnum = "TERMINATED" -) - -var mappingInternalDnsRecordLifecycleState = map[string]InternalDnsRecordLifecycleStateEnum{ - "PROVISIONING": InternalDnsRecordLifecycleStateProvisioning, - "AVAILABLE": InternalDnsRecordLifecycleStateAvailable, - "TERMINATING": InternalDnsRecordLifecycleStateTerminating, - "TERMINATED": InternalDnsRecordLifecycleStateTerminated, -} - -// GetInternalDnsRecordLifecycleStateEnumValues Enumerates the set of values for InternalDnsRecordLifecycleStateEnum -func GetInternalDnsRecordLifecycleStateEnumValues() []InternalDnsRecordLifecycleStateEnum { - values := make([]InternalDnsRecordLifecycleStateEnum, 0) - for _, v := range mappingInternalDnsRecordLifecycleState { - values = append(values, v) - } - return values -} - -// InternalDnsRecordTypeEnum Enum with underlying type: string -type InternalDnsRecordTypeEnum string - -// Set of constants representing the allowable values for InternalDnsRecordTypeEnum -const ( - InternalDnsRecordTypeA InternalDnsRecordTypeEnum = "A" -) - -var mappingInternalDnsRecordType = map[string]InternalDnsRecordTypeEnum{ - "A": InternalDnsRecordTypeA, -} - -// GetInternalDnsRecordTypeEnumValues Enumerates the set of values for InternalDnsRecordTypeEnum -func GetInternalDnsRecordTypeEnumValues() []InternalDnsRecordTypeEnum { - values := make([]InternalDnsRecordTypeEnum, 0) - for _, v := range mappingInternalDnsRecordType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg.go deleted file mode 100644 index b324e1c384..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg.go +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternalDrg A dynamic routing gateway (DRG), which is a virtual router that provides a path for private -// network traffic between your VCN and your existing network. You use it with other Networking -// Service components to create a Site-to-Site VPN or a connection that uses -// Oracle Cloud Infrastructure FastConnect. For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type InternalDrg struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The DRG's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The DRG's current state. - LifecycleState InternalDrgLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Anycast IP of the El Paso fleet handling the ingress traffic. - IngressIP *string `mandatory:"true" json:"ingressIP"` - - // Anycast IP of the El Paso fleet handling the egress traffic. - EgressIP *string `mandatory:"true" json:"egressIP"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The date and time the DRG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Route data for the Drg. - RouteData *string `mandatory:"false" json:"routeData"` - - // NextHop target's MPLS label. - MplsLabel *string `mandatory:"false" json:"mplsLabel"` - - // The string in the form ASN:mplsLabel. - RouteTarget *string `mandatory:"false" json:"routeTarget"` - - // The type of the DRG. - DrgType InternalDrgDrgTypeEnum `mandatory:"false" json:"drgType,omitempty"` -} - -func (m InternalDrg) String() string { - return common.PointerString(m) -} - -// InternalDrgLifecycleStateEnum Enum with underlying type: string -type InternalDrgLifecycleStateEnum string - -// Set of constants representing the allowable values for InternalDrgLifecycleStateEnum -const ( - InternalDrgLifecycleStateProvisioning InternalDrgLifecycleStateEnum = "PROVISIONING" - InternalDrgLifecycleStateAvailable InternalDrgLifecycleStateEnum = "AVAILABLE" - InternalDrgLifecycleStateTerminating InternalDrgLifecycleStateEnum = "TERMINATING" - InternalDrgLifecycleStateTerminated InternalDrgLifecycleStateEnum = "TERMINATED" -) - -var mappingInternalDrgLifecycleState = map[string]InternalDrgLifecycleStateEnum{ - "PROVISIONING": InternalDrgLifecycleStateProvisioning, - "AVAILABLE": InternalDrgLifecycleStateAvailable, - "TERMINATING": InternalDrgLifecycleStateTerminating, - "TERMINATED": InternalDrgLifecycleStateTerminated, -} - -// GetInternalDrgLifecycleStateEnumValues Enumerates the set of values for InternalDrgLifecycleStateEnum -func GetInternalDrgLifecycleStateEnumValues() []InternalDrgLifecycleStateEnum { - values := make([]InternalDrgLifecycleStateEnum, 0) - for _, v := range mappingInternalDrgLifecycleState { - values = append(values, v) - } - return values -} - -// InternalDrgDrgTypeEnum Enum with underlying type: string -type InternalDrgDrgTypeEnum string - -// Set of constants representing the allowable values for InternalDrgDrgTypeEnum -const ( - InternalDrgDrgTypeClassical InternalDrgDrgTypeEnum = "DRG_CLASSICAL" - InternalDrgDrgTypeTransitHub InternalDrgDrgTypeEnum = "DRG_TRANSIT_HUB" -) - -var mappingInternalDrgDrgType = map[string]InternalDrgDrgTypeEnum{ - "DRG_CLASSICAL": InternalDrgDrgTypeClassical, - "DRG_TRANSIT_HUB": InternalDrgDrgTypeTransitHub, -} - -// GetInternalDrgDrgTypeEnumValues Enumerates the set of values for InternalDrgDrgTypeEnum -func GetInternalDrgDrgTypeEnumValues() []InternalDrgDrgTypeEnum { - values := make([]InternalDrgDrgTypeEnum, 0) - for _, v := range mappingInternalDrgDrgType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg_attachment.go deleted file mode 100644 index 210aa0800f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_drg_attachment.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternalDrgAttachment A link between a DRG and VCN. For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). -type InternalDrgAttachment struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG attachment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The DRG attachment's current state. - LifecycleState InternalDrgAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"true" json:"vcnId"` - - // NextHop target's MPLS label. - MplsLabel *string `mandatory:"true" json:"mplsLabel"` - - // The string in the form ASN:mplsLabel. - RouteTarget *string `mandatory:"true" json:"routeTarget"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // The date and time the DRG attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m InternalDrgAttachment) String() string { - return common.PointerString(m) -} - -// InternalDrgAttachmentLifecycleStateEnum Enum with underlying type: string -type InternalDrgAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for InternalDrgAttachmentLifecycleStateEnum -const ( - InternalDrgAttachmentLifecycleStateAttaching InternalDrgAttachmentLifecycleStateEnum = "ATTACHING" - InternalDrgAttachmentLifecycleStateAttached InternalDrgAttachmentLifecycleStateEnum = "ATTACHED" - InternalDrgAttachmentLifecycleStateDetaching InternalDrgAttachmentLifecycleStateEnum = "DETACHING" - InternalDrgAttachmentLifecycleStateDetached InternalDrgAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingInternalDrgAttachmentLifecycleState = map[string]InternalDrgAttachmentLifecycleStateEnum{ - "ATTACHING": InternalDrgAttachmentLifecycleStateAttaching, - "ATTACHED": InternalDrgAttachmentLifecycleStateAttached, - "DETACHING": InternalDrgAttachmentLifecycleStateDetaching, - "DETACHED": InternalDrgAttachmentLifecycleStateDetached, -} - -// GetInternalDrgAttachmentLifecycleStateEnumValues Enumerates the set of values for InternalDrgAttachmentLifecycleStateEnum -func GetInternalDrgAttachmentLifecycleStateEnumValues() []InternalDrgAttachmentLifecycleStateEnum { - values := make([]InternalDrgAttachmentLifecycleStateEnum, 0) - for _, v := range mappingInternalDrgAttachmentLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_generic_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_generic_gateway.go deleted file mode 100644 index beb41cb12d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_generic_gateway.go +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternalGenericGateway An internal generic gateway. -type InternalGenericGateway struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the generic gateway. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the gateway's compartment. - GatewayCompartmentId *string `mandatory:"true" json:"gatewayCompartmentId"` - - // Information required to fill headers of packets to be sent to the gateway. - GatewayHeaderData *int64 `mandatory:"true" json:"gatewayHeaderData"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway stands for. - GatewayId *string `mandatory:"true" json:"gatewayId"` - - // They type of the gateway. - GatewayType InternalGenericGatewayGatewayTypeEnum `mandatory:"true" json:"gatewayType"` - - // The current state of the generic gateway. - LifecycleState InternalGenericGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // IP addresses of the gateway. - GatewayIpAddresses []string `mandatory:"false" json:"gatewayIpAddresses"` - - // Tuples, mapping AD and regional identifiers to the corresponding routing data - GatewayRouteMap []GatewayRouteData `mandatory:"false" json:"gatewayRouteMap"` - - // Creation time of the entity. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the generic gateway belongs to. - VcnId *string `mandatory:"false" json:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table associated with the gateway - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see - // Resource T - // ags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m InternalGenericGateway) String() string { - return common.PointerString(m) -} - -// InternalGenericGatewayGatewayTypeEnum Enum with underlying type: string -type InternalGenericGatewayGatewayTypeEnum string - -// Set of constants representing the allowable values for InternalGenericGatewayGatewayTypeEnum -const ( - InternalGenericGatewayGatewayTypeServicegateway InternalGenericGatewayGatewayTypeEnum = "SERVICEGATEWAY" - InternalGenericGatewayGatewayTypeNatgateway InternalGenericGatewayGatewayTypeEnum = "NATGATEWAY" - InternalGenericGatewayGatewayTypePrivateaccessgateway InternalGenericGatewayGatewayTypeEnum = "PRIVATEACCESSGATEWAY" -) - -var mappingInternalGenericGatewayGatewayType = map[string]InternalGenericGatewayGatewayTypeEnum{ - "SERVICEGATEWAY": InternalGenericGatewayGatewayTypeServicegateway, - "NATGATEWAY": InternalGenericGatewayGatewayTypeNatgateway, - "PRIVATEACCESSGATEWAY": InternalGenericGatewayGatewayTypePrivateaccessgateway, -} - -// GetInternalGenericGatewayGatewayTypeEnumValues Enumerates the set of values for InternalGenericGatewayGatewayTypeEnum -func GetInternalGenericGatewayGatewayTypeEnumValues() []InternalGenericGatewayGatewayTypeEnum { - values := make([]InternalGenericGatewayGatewayTypeEnum, 0) - for _, v := range mappingInternalGenericGatewayGatewayType { - values = append(values, v) - } - return values -} - -// InternalGenericGatewayLifecycleStateEnum Enum with underlying type: string -type InternalGenericGatewayLifecycleStateEnum string - -// Set of constants representing the allowable values for InternalGenericGatewayLifecycleStateEnum -const ( - InternalGenericGatewayLifecycleStateProvisioning InternalGenericGatewayLifecycleStateEnum = "PROVISIONING" - InternalGenericGatewayLifecycleStateAvailable InternalGenericGatewayLifecycleStateEnum = "AVAILABLE" - InternalGenericGatewayLifecycleStateAttaching InternalGenericGatewayLifecycleStateEnum = "ATTACHING" - InternalGenericGatewayLifecycleStateAttached InternalGenericGatewayLifecycleStateEnum = "ATTACHED" - InternalGenericGatewayLifecycleStateDetaching InternalGenericGatewayLifecycleStateEnum = "DETACHING" - InternalGenericGatewayLifecycleStateDetached InternalGenericGatewayLifecycleStateEnum = "DETACHED" - InternalGenericGatewayLifecycleStateTerminating InternalGenericGatewayLifecycleStateEnum = "TERMINATING" - InternalGenericGatewayLifecycleStateTerminated InternalGenericGatewayLifecycleStateEnum = "TERMINATED" -) - -var mappingInternalGenericGatewayLifecycleState = map[string]InternalGenericGatewayLifecycleStateEnum{ - "PROVISIONING": InternalGenericGatewayLifecycleStateProvisioning, - "AVAILABLE": InternalGenericGatewayLifecycleStateAvailable, - "ATTACHING": InternalGenericGatewayLifecycleStateAttaching, - "ATTACHED": InternalGenericGatewayLifecycleStateAttached, - "DETACHING": InternalGenericGatewayLifecycleStateDetaching, - "DETACHED": InternalGenericGatewayLifecycleStateDetached, - "TERMINATING": InternalGenericGatewayLifecycleStateTerminating, - "TERMINATED": InternalGenericGatewayLifecycleStateTerminated, -} - -// GetInternalGenericGatewayLifecycleStateEnumValues Enumerates the set of values for InternalGenericGatewayLifecycleStateEnum -func GetInternalGenericGatewayLifecycleStateEnumValues() []InternalGenericGatewayLifecycleStateEnum { - values := make([]InternalGenericGatewayLifecycleStateEnum, 0) - for _, v := range mappingInternalGenericGatewayLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_public_ip.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_public_ip.go deleted file mode 100644 index c9272ceb8a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_public_ip.go +++ /dev/null @@ -1,218 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternalPublicIp A model for public IPs that are for internal use -// A *public IP* is a conceptual term that refers to a public IP address and related properties. -// The `publicIp` object is the API representation of a public IP. -// There are two types of public IPs: -// 1. Ephemeral -// 2. Reserved -// For more information and comparison of the two types, -// see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). -type InternalPublicIp struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP. For an ephemeral public IP, this is - // the compartment of its assigned entity (which can be a private IP or a regional entity such - // as a NAT gateway). For a reserved public IP that is currently assigned, - // its compartment can be different from the assigned private IP's. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The public IP's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // Defines when the public IP is deleted and released back to Oracle's public IP pool. - // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned entity. An ephemeral - // public IP must always be assigned to an entity. If the assigned entity is a private IP, - // the ephemeral public IP is automatically deleted when the private IP is deleted, when - // the VNIC is terminated, or when the instance is terminated. If the assigned entity is a - // NatGateway, the ephemeral public IP is automatically - // deleted when the NAT gateway is terminated. - // * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP - // whenever you like. It does not need to be assigned to a private IP at all times. - // For more information and comparison of the two types, - // see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). - Lifetime InternalPublicIpLifetimeEnum `mandatory:"true" json:"lifetime"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity the public IP is assigned to, or in the process of - // being assigned to. - AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` - - // The type of entity the public IP is assigned to, or in the process of being - // assigned to. - AssignedEntityType InternalPublicIpAssignedEntityTypeEnum `mandatory:"false" json:"assignedEntityType,omitempty"` - - // The public IP's availability domain. This property is set only for ephemeral public IPs - // that are assigned to a private IP (that is, when the `scope` of the public IP is set to - // AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The public IP address of the `publicIp` object. - // Example: `203.0.113.2` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The public IP's current state. - LifecycleState InternalPublicIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Deprecated. Use `assignedEntityId` instead. - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is currently assigned to, or in the - // process of being assigned to. - // **Note:** This is `null` if the public IP is not assigned to a private IP, or is - // in the process of being assigned to one. - PrivateIpId *string `mandatory:"false" json:"privateIpId"` - - // Whether the public IP is regional or specific to a particular availability domain. - // * `REGION`: The public IP exists within a region and is assigned to a regional entity - // (such as a NatGateway), or can be assigned to a private - // IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs - // assigned to a regional entity have `scope` = `REGION`. - // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity - // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. - // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. - Scope InternalPublicIpScopeEnum `mandatory:"false" json:"scope,omitempty"` - - // The date and time the public IP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created in the current tenancy. - PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` -} - -func (m InternalPublicIp) String() string { - return common.PointerString(m) -} - -// InternalPublicIpAssignedEntityTypeEnum Enum with underlying type: string -type InternalPublicIpAssignedEntityTypeEnum string - -// Set of constants representing the allowable values for InternalPublicIpAssignedEntityTypeEnum -const ( - InternalPublicIpAssignedEntityTypePrivateIp InternalPublicIpAssignedEntityTypeEnum = "PRIVATE_IP" - InternalPublicIpAssignedEntityTypeNatGateway InternalPublicIpAssignedEntityTypeEnum = "NAT_GATEWAY" -) - -var mappingInternalPublicIpAssignedEntityType = map[string]InternalPublicIpAssignedEntityTypeEnum{ - "PRIVATE_IP": InternalPublicIpAssignedEntityTypePrivateIp, - "NAT_GATEWAY": InternalPublicIpAssignedEntityTypeNatGateway, -} - -// GetInternalPublicIpAssignedEntityTypeEnumValues Enumerates the set of values for InternalPublicIpAssignedEntityTypeEnum -func GetInternalPublicIpAssignedEntityTypeEnumValues() []InternalPublicIpAssignedEntityTypeEnum { - values := make([]InternalPublicIpAssignedEntityTypeEnum, 0) - for _, v := range mappingInternalPublicIpAssignedEntityType { - values = append(values, v) - } - return values -} - -// InternalPublicIpLifecycleStateEnum Enum with underlying type: string -type InternalPublicIpLifecycleStateEnum string - -// Set of constants representing the allowable values for InternalPublicIpLifecycleStateEnum -const ( - InternalPublicIpLifecycleStateProvisioning InternalPublicIpLifecycleStateEnum = "PROVISIONING" - InternalPublicIpLifecycleStateAvailable InternalPublicIpLifecycleStateEnum = "AVAILABLE" - InternalPublicIpLifecycleStateAssigning InternalPublicIpLifecycleStateEnum = "ASSIGNING" - InternalPublicIpLifecycleStateAssigned InternalPublicIpLifecycleStateEnum = "ASSIGNED" - InternalPublicIpLifecycleStateUnassigning InternalPublicIpLifecycleStateEnum = "UNASSIGNING" - InternalPublicIpLifecycleStateUnassigned InternalPublicIpLifecycleStateEnum = "UNASSIGNED" - InternalPublicIpLifecycleStateTerminating InternalPublicIpLifecycleStateEnum = "TERMINATING" - InternalPublicIpLifecycleStateTerminated InternalPublicIpLifecycleStateEnum = "TERMINATED" -) - -var mappingInternalPublicIpLifecycleState = map[string]InternalPublicIpLifecycleStateEnum{ - "PROVISIONING": InternalPublicIpLifecycleStateProvisioning, - "AVAILABLE": InternalPublicIpLifecycleStateAvailable, - "ASSIGNING": InternalPublicIpLifecycleStateAssigning, - "ASSIGNED": InternalPublicIpLifecycleStateAssigned, - "UNASSIGNING": InternalPublicIpLifecycleStateUnassigning, - "UNASSIGNED": InternalPublicIpLifecycleStateUnassigned, - "TERMINATING": InternalPublicIpLifecycleStateTerminating, - "TERMINATED": InternalPublicIpLifecycleStateTerminated, -} - -// GetInternalPublicIpLifecycleStateEnumValues Enumerates the set of values for InternalPublicIpLifecycleStateEnum -func GetInternalPublicIpLifecycleStateEnumValues() []InternalPublicIpLifecycleStateEnum { - values := make([]InternalPublicIpLifecycleStateEnum, 0) - for _, v := range mappingInternalPublicIpLifecycleState { - values = append(values, v) - } - return values -} - -// InternalPublicIpLifetimeEnum Enum with underlying type: string -type InternalPublicIpLifetimeEnum string - -// Set of constants representing the allowable values for InternalPublicIpLifetimeEnum -const ( - InternalPublicIpLifetimeEphemeral InternalPublicIpLifetimeEnum = "EPHEMERAL" - InternalPublicIpLifetimeReserved InternalPublicIpLifetimeEnum = "RESERVED" -) - -var mappingInternalPublicIpLifetime = map[string]InternalPublicIpLifetimeEnum{ - "EPHEMERAL": InternalPublicIpLifetimeEphemeral, - "RESERVED": InternalPublicIpLifetimeReserved, -} - -// GetInternalPublicIpLifetimeEnumValues Enumerates the set of values for InternalPublicIpLifetimeEnum -func GetInternalPublicIpLifetimeEnumValues() []InternalPublicIpLifetimeEnum { - values := make([]InternalPublicIpLifetimeEnum, 0) - for _, v := range mappingInternalPublicIpLifetime { - values = append(values, v) - } - return values -} - -// InternalPublicIpScopeEnum Enum with underlying type: string -type InternalPublicIpScopeEnum string - -// Set of constants representing the allowable values for InternalPublicIpScopeEnum -const ( - InternalPublicIpScopeRegion InternalPublicIpScopeEnum = "REGION" - InternalPublicIpScopeAvailabilityDomain InternalPublicIpScopeEnum = "AVAILABILITY_DOMAIN" -) - -var mappingInternalPublicIpScope = map[string]InternalPublicIpScopeEnum{ - "REGION": InternalPublicIpScopeRegion, - "AVAILABILITY_DOMAIN": InternalPublicIpScopeAvailabilityDomain, -} - -// GetInternalPublicIpScopeEnumValues Enumerates the set of values for InternalPublicIpScopeEnum -func GetInternalPublicIpScopeEnumValues() []InternalPublicIpScopeEnum { - values := make([]InternalPublicIpScopeEnum, 0) - for _, v := range mappingInternalPublicIpScope { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic_attachment.go deleted file mode 100644 index c9aa5f795b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic_attachment.go +++ /dev/null @@ -1,1818 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternalVnicAttachment Details of a service VNIC attachment or an attachment of a non-service VNIC to a compute instance. -type InternalVnicAttachment struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VNIC attachment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. - Id *string `mandatory:"true" json:"id"` - - // The current state of a VNIC attachment. - LifecycleState InternalVnicAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The substrate or anycast IP address of the VNICaaS fleet that the VNIC is attached to. - SubstrateIp *string `mandatory:"true" json:"substrateIp"` - - // The date and time the VNIC attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The slot number of the VNIC. - SlotId *int `mandatory:"false" json:"slotId"` - - // Shape of VNIC that is used to allocate resource in the data plane. - VnicShape InternalVnicAttachmentVnicShapeEnum `mandatory:"false" json:"vnicShape,omitempty"` - - // The instance that a VNIC is attached to - InstanceId *string `mandatory:"false" json:"instanceId"` - - // Composite key created from SubstrateIp, and data plane IDs of VCN and VNIC - DataPlaneId *string `mandatory:"false" json:"dataPlaneId"` - - // The availability domain of a VNIC attachment - InternalAvailabilityDomain *string `mandatory:"false" json:"internalAvailabilityDomain"` - - // The Network Address Translated IP to communicate with internal services - NatIp *string `mandatory:"false" json:"natIp"` - - // The MAC address of the compute instance - OverlayMac *string `mandatory:"false" json:"overlayMac"` - - // The tag used internally to identify sending VNIC - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // Index of NIC that VNIC is attached to (OS boot order) - NicIndex *int `mandatory:"false" json:"nicIndex"` - - MigrationInfo *MigrationInfo `mandatory:"false" json:"migrationInfo"` - - // Property describing customer facing metrics - MetadataList []CfmMetadata `mandatory:"false" json:"metadataList"` -} - -func (m InternalVnicAttachment) String() string { - return common.PointerString(m) -} - -// InternalVnicAttachmentLifecycleStateEnum Enum with underlying type: string -type InternalVnicAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for InternalVnicAttachmentLifecycleStateEnum -const ( - InternalVnicAttachmentLifecycleStateAttaching InternalVnicAttachmentLifecycleStateEnum = "ATTACHING" - InternalVnicAttachmentLifecycleStateAttached InternalVnicAttachmentLifecycleStateEnum = "ATTACHED" - InternalVnicAttachmentLifecycleStateDetaching InternalVnicAttachmentLifecycleStateEnum = "DETACHING" - InternalVnicAttachmentLifecycleStateDetached InternalVnicAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingInternalVnicAttachmentLifecycleState = map[string]InternalVnicAttachmentLifecycleStateEnum{ - "ATTACHING": InternalVnicAttachmentLifecycleStateAttaching, - "ATTACHED": InternalVnicAttachmentLifecycleStateAttached, - "DETACHING": InternalVnicAttachmentLifecycleStateDetaching, - "DETACHED": InternalVnicAttachmentLifecycleStateDetached, -} - -// GetInternalVnicAttachmentLifecycleStateEnumValues Enumerates the set of values for InternalVnicAttachmentLifecycleStateEnum -func GetInternalVnicAttachmentLifecycleStateEnumValues() []InternalVnicAttachmentLifecycleStateEnum { - values := make([]InternalVnicAttachmentLifecycleStateEnum, 0) - for _, v := range mappingInternalVnicAttachmentLifecycleState { - values = append(values, v) - } - return values -} - -// InternalVnicAttachmentVnicShapeEnum Enum with underlying type: string -type InternalVnicAttachmentVnicShapeEnum string - -// Set of constants representing the allowable values for InternalVnicAttachmentVnicShapeEnum -const ( - InternalVnicAttachmentVnicShapeDynamic InternalVnicAttachmentVnicShapeEnum = "DYNAMIC" - InternalVnicAttachmentVnicShapeFixed0040 InternalVnicAttachmentVnicShapeEnum = "FIXED0040" - InternalVnicAttachmentVnicShapeFixed0060 InternalVnicAttachmentVnicShapeEnum = "FIXED0060" - InternalVnicAttachmentVnicShapeFixed0060Psm InternalVnicAttachmentVnicShapeEnum = "FIXED0060_PSM" - InternalVnicAttachmentVnicShapeFixed0100 InternalVnicAttachmentVnicShapeEnum = "FIXED0100" - InternalVnicAttachmentVnicShapeFixed0120 InternalVnicAttachmentVnicShapeEnum = "FIXED0120" - InternalVnicAttachmentVnicShapeFixed01202x InternalVnicAttachmentVnicShapeEnum = "FIXED0120_2X" - InternalVnicAttachmentVnicShapeFixed0200 InternalVnicAttachmentVnicShapeEnum = "FIXED0200" - InternalVnicAttachmentVnicShapeFixed0240 InternalVnicAttachmentVnicShapeEnum = "FIXED0240" - InternalVnicAttachmentVnicShapeFixed0480 InternalVnicAttachmentVnicShapeEnum = "FIXED0480" - InternalVnicAttachmentVnicShapeEntirehost InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST" - InternalVnicAttachmentVnicShapeDynamic25g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_25G" - InternalVnicAttachmentVnicShapeFixed004025g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_25G" - InternalVnicAttachmentVnicShapeFixed010025g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_25G" - InternalVnicAttachmentVnicShapeFixed020025g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_25G" - InternalVnicAttachmentVnicShapeFixed040025g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_25G" - InternalVnicAttachmentVnicShapeFixed080025g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_25G" - InternalVnicAttachmentVnicShapeFixed160025g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_25G" - InternalVnicAttachmentVnicShapeFixed240025g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_25G" - InternalVnicAttachmentVnicShapeEntirehost25g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_25G" - InternalVnicAttachmentVnicShapeDynamicE125g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_E1_25G" - InternalVnicAttachmentVnicShapeFixed0040E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_E1_25G" - InternalVnicAttachmentVnicShapeFixed0070E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0070_E1_25G" - InternalVnicAttachmentVnicShapeFixed0140E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0140_E1_25G" - InternalVnicAttachmentVnicShapeFixed0280E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0280_E1_25G" - InternalVnicAttachmentVnicShapeFixed0560E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0560_E1_25G" - InternalVnicAttachmentVnicShapeFixed1120E125g InternalVnicAttachmentVnicShapeEnum = "FIXED1120_E1_25G" - InternalVnicAttachmentVnicShapeFixed1680E125g InternalVnicAttachmentVnicShapeEnum = "FIXED1680_E1_25G" - InternalVnicAttachmentVnicShapeEntirehostE125g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_E1_25G" - InternalVnicAttachmentVnicShapeDynamicB125g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_B1_25G" - InternalVnicAttachmentVnicShapeFixed0040B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_B1_25G" - InternalVnicAttachmentVnicShapeFixed0060B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0060_B1_25G" - InternalVnicAttachmentVnicShapeFixed0120B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0120_B1_25G" - InternalVnicAttachmentVnicShapeFixed0240B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0240_B1_25G" - InternalVnicAttachmentVnicShapeFixed0480B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0480_B1_25G" - InternalVnicAttachmentVnicShapeFixed0960B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0960_B1_25G" - InternalVnicAttachmentVnicShapeEntirehostB125g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_B1_25G" - InternalVnicAttachmentVnicShapeMicroVmFixed0048E125g InternalVnicAttachmentVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" - InternalVnicAttachmentVnicShapeMicroLbFixed0001E125g InternalVnicAttachmentVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" - InternalVnicAttachmentVnicShapeVnicaasFixed0200 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FIXED0200" - InternalVnicAttachmentVnicShapeVnicaasFixed0400 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FIXED0400" - InternalVnicAttachmentVnicShapeVnicaasFixed0700 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FIXED0700" - InternalVnicAttachmentVnicShapeVnicaasNlbApproved10g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" - InternalVnicAttachmentVnicShapeVnicaasNlbApproved25g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" - InternalVnicAttachmentVnicShapeVnicaasTelesis25g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_TELESIS_25G" - InternalVnicAttachmentVnicShapeVnicaasTelesis10g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_TELESIS_10G" - InternalVnicAttachmentVnicShapeVnicaasAmbassadorFixed0100 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" - InternalVnicAttachmentVnicShapeVnicaasPrivatedns InternalVnicAttachmentVnicShapeEnum = "VNICAAS_PRIVATEDNS" - InternalVnicAttachmentVnicShapeVnicaasFwaas InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FWAAS" - InternalVnicAttachmentVnicShapeDynamicE350g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_E3_50G" - InternalVnicAttachmentVnicShapeFixed0040E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_E3_50G" - InternalVnicAttachmentVnicShapeFixed0100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_E3_50G" - InternalVnicAttachmentVnicShapeFixed0200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_E3_50G" - InternalVnicAttachmentVnicShapeFixed0300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0300_E3_50G" - InternalVnicAttachmentVnicShapeFixed0400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_E3_50G" - InternalVnicAttachmentVnicShapeFixed0500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0500_E3_50G" - InternalVnicAttachmentVnicShapeFixed0600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0600_E3_50G" - InternalVnicAttachmentVnicShapeFixed0700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0700_E3_50G" - InternalVnicAttachmentVnicShapeFixed0800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_E3_50G" - InternalVnicAttachmentVnicShapeFixed0900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0900_E3_50G" - InternalVnicAttachmentVnicShapeFixed1000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1000_E3_50G" - InternalVnicAttachmentVnicShapeFixed1100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1100_E3_50G" - InternalVnicAttachmentVnicShapeFixed1200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_E3_50G" - InternalVnicAttachmentVnicShapeFixed1300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1300_E3_50G" - InternalVnicAttachmentVnicShapeFixed1400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1400_E3_50G" - InternalVnicAttachmentVnicShapeFixed1500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1500_E3_50G" - InternalVnicAttachmentVnicShapeFixed1600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_E3_50G" - InternalVnicAttachmentVnicShapeFixed1700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1700_E3_50G" - InternalVnicAttachmentVnicShapeFixed1800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1800_E3_50G" - InternalVnicAttachmentVnicShapeFixed1900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1900_E3_50G" - InternalVnicAttachmentVnicShapeFixed2000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_E3_50G" - InternalVnicAttachmentVnicShapeFixed2100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2100_E3_50G" - InternalVnicAttachmentVnicShapeFixed2200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2200_E3_50G" - InternalVnicAttachmentVnicShapeFixed2300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2300_E3_50G" - InternalVnicAttachmentVnicShapeFixed2400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_E3_50G" - InternalVnicAttachmentVnicShapeFixed2500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2500_E3_50G" - InternalVnicAttachmentVnicShapeFixed2600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2600_E3_50G" - InternalVnicAttachmentVnicShapeFixed2700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2700_E3_50G" - InternalVnicAttachmentVnicShapeFixed2800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_E3_50G" - InternalVnicAttachmentVnicShapeFixed2900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2900_E3_50G" - InternalVnicAttachmentVnicShapeFixed3000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3000_E3_50G" - InternalVnicAttachmentVnicShapeFixed3100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3100_E3_50G" - InternalVnicAttachmentVnicShapeFixed3200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_E3_50G" - InternalVnicAttachmentVnicShapeFixed3300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3300_E3_50G" - InternalVnicAttachmentVnicShapeFixed3400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3400_E3_50G" - InternalVnicAttachmentVnicShapeFixed3500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3500_E3_50G" - InternalVnicAttachmentVnicShapeFixed3600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_E3_50G" - InternalVnicAttachmentVnicShapeFixed3700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3700_E3_50G" - InternalVnicAttachmentVnicShapeFixed3800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3800_E3_50G" - InternalVnicAttachmentVnicShapeFixed3900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3900_E3_50G" - InternalVnicAttachmentVnicShapeFixed4000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_E3_50G" - InternalVnicAttachmentVnicShapeEntirehostE350g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_E3_50G" - InternalVnicAttachmentVnicShapeDynamicE450g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_E4_50G" - InternalVnicAttachmentVnicShapeFixed0040E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_E4_50G" - InternalVnicAttachmentVnicShapeFixed0100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_E4_50G" - InternalVnicAttachmentVnicShapeFixed0200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_E4_50G" - InternalVnicAttachmentVnicShapeFixed0300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0300_E4_50G" - InternalVnicAttachmentVnicShapeFixed0400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_E4_50G" - InternalVnicAttachmentVnicShapeFixed0500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0500_E4_50G" - InternalVnicAttachmentVnicShapeFixed0600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0600_E4_50G" - InternalVnicAttachmentVnicShapeFixed0700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0700_E4_50G" - InternalVnicAttachmentVnicShapeFixed0800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_E4_50G" - InternalVnicAttachmentVnicShapeFixed0900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0900_E4_50G" - InternalVnicAttachmentVnicShapeFixed1000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1000_E4_50G" - InternalVnicAttachmentVnicShapeFixed1100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1100_E4_50G" - InternalVnicAttachmentVnicShapeFixed1200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_E4_50G" - InternalVnicAttachmentVnicShapeFixed1300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1300_E4_50G" - InternalVnicAttachmentVnicShapeFixed1400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1400_E4_50G" - InternalVnicAttachmentVnicShapeFixed1500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1500_E4_50G" - InternalVnicAttachmentVnicShapeFixed1600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_E4_50G" - InternalVnicAttachmentVnicShapeFixed1700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1700_E4_50G" - InternalVnicAttachmentVnicShapeFixed1800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1800_E4_50G" - InternalVnicAttachmentVnicShapeFixed1900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1900_E4_50G" - InternalVnicAttachmentVnicShapeFixed2000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_E4_50G" - InternalVnicAttachmentVnicShapeFixed2100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2100_E4_50G" - InternalVnicAttachmentVnicShapeFixed2200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2200_E4_50G" - InternalVnicAttachmentVnicShapeFixed2300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2300_E4_50G" - InternalVnicAttachmentVnicShapeFixed2400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_E4_50G" - InternalVnicAttachmentVnicShapeFixed2500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2500_E4_50G" - InternalVnicAttachmentVnicShapeFixed2600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2600_E4_50G" - InternalVnicAttachmentVnicShapeFixed2700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2700_E4_50G" - InternalVnicAttachmentVnicShapeFixed2800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_E4_50G" - InternalVnicAttachmentVnicShapeFixed2900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2900_E4_50G" - InternalVnicAttachmentVnicShapeFixed3000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3000_E4_50G" - InternalVnicAttachmentVnicShapeFixed3100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3100_E4_50G" - InternalVnicAttachmentVnicShapeFixed3200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_E4_50G" - InternalVnicAttachmentVnicShapeFixed3300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3300_E4_50G" - InternalVnicAttachmentVnicShapeFixed3400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3400_E4_50G" - InternalVnicAttachmentVnicShapeFixed3500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3500_E4_50G" - InternalVnicAttachmentVnicShapeFixed3600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_E4_50G" - InternalVnicAttachmentVnicShapeFixed3700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3700_E4_50G" - InternalVnicAttachmentVnicShapeFixed3800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3800_E4_50G" - InternalVnicAttachmentVnicShapeFixed3900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3900_E4_50G" - InternalVnicAttachmentVnicShapeFixed4000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_E4_50G" - InternalVnicAttachmentVnicShapeEntirehostE450g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_E4_50G" - InternalVnicAttachmentVnicShapeMicroVmFixed0050E350g InternalVnicAttachmentVnicShapeEnum = "MICRO_VM_FIXED0050_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed5000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0090X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0180X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0270X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0360X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0450X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0540X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0630X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0720X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0810X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed0990X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1080X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1170X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1260X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1350X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1440X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1530X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1620X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1710X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1890X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed1980X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2070X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2160X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2340X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2430X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2520X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2610X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2790X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2880X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed2970X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3060X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3150X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3240X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3330X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3420X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3510X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3690X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3780X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3870X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed3960X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4140X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4230X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4320X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4410X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4590X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4680X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4770X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4860X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" - InternalVnicAttachmentVnicShapeSubcoreVmFixed4950X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" - InternalVnicAttachmentVnicShapeDynamicA150g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_A1_50G" - InternalVnicAttachmentVnicShapeFixed0040A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_A1_50G" - InternalVnicAttachmentVnicShapeFixed0100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_A1_50G" - InternalVnicAttachmentVnicShapeFixed0200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_A1_50G" - InternalVnicAttachmentVnicShapeFixed0300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0300_A1_50G" - InternalVnicAttachmentVnicShapeFixed0400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_A1_50G" - InternalVnicAttachmentVnicShapeFixed0500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0500_A1_50G" - InternalVnicAttachmentVnicShapeFixed0600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0600_A1_50G" - InternalVnicAttachmentVnicShapeFixed0700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0700_A1_50G" - InternalVnicAttachmentVnicShapeFixed0800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_A1_50G" - InternalVnicAttachmentVnicShapeFixed0900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0900_A1_50G" - InternalVnicAttachmentVnicShapeFixed1000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1000_A1_50G" - InternalVnicAttachmentVnicShapeFixed1100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1100_A1_50G" - InternalVnicAttachmentVnicShapeFixed1200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_A1_50G" - InternalVnicAttachmentVnicShapeFixed1300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1300_A1_50G" - InternalVnicAttachmentVnicShapeFixed1400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1400_A1_50G" - InternalVnicAttachmentVnicShapeFixed1500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1500_A1_50G" - InternalVnicAttachmentVnicShapeFixed1600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_A1_50G" - InternalVnicAttachmentVnicShapeFixed1700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1700_A1_50G" - InternalVnicAttachmentVnicShapeFixed1800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1800_A1_50G" - InternalVnicAttachmentVnicShapeFixed1900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1900_A1_50G" - InternalVnicAttachmentVnicShapeFixed2000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_A1_50G" - InternalVnicAttachmentVnicShapeFixed2100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2100_A1_50G" - InternalVnicAttachmentVnicShapeFixed2200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2200_A1_50G" - InternalVnicAttachmentVnicShapeFixed2300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2300_A1_50G" - InternalVnicAttachmentVnicShapeFixed2400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_A1_50G" - InternalVnicAttachmentVnicShapeFixed2500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2500_A1_50G" - InternalVnicAttachmentVnicShapeFixed2600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2600_A1_50G" - InternalVnicAttachmentVnicShapeFixed2700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2700_A1_50G" - InternalVnicAttachmentVnicShapeFixed2800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_A1_50G" - InternalVnicAttachmentVnicShapeFixed2900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2900_A1_50G" - InternalVnicAttachmentVnicShapeFixed3000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3000_A1_50G" - InternalVnicAttachmentVnicShapeFixed3100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3100_A1_50G" - InternalVnicAttachmentVnicShapeFixed3200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_A1_50G" - InternalVnicAttachmentVnicShapeFixed3300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3300_A1_50G" - InternalVnicAttachmentVnicShapeFixed3400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3400_A1_50G" - InternalVnicAttachmentVnicShapeFixed3500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3500_A1_50G" - InternalVnicAttachmentVnicShapeFixed3600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_A1_50G" - InternalVnicAttachmentVnicShapeFixed3700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3700_A1_50G" - InternalVnicAttachmentVnicShapeFixed3800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3800_A1_50G" - InternalVnicAttachmentVnicShapeFixed3900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3900_A1_50G" - InternalVnicAttachmentVnicShapeFixed4000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_A1_50G" - InternalVnicAttachmentVnicShapeEntirehostA150g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_A1_50G" - InternalVnicAttachmentVnicShapeDynamicX950g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_X9_50G" - InternalVnicAttachmentVnicShapeFixed0040X950g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_X9_50G" - InternalVnicAttachmentVnicShapeFixed0400X950g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_X9_50G" - InternalVnicAttachmentVnicShapeFixed0800X950g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_X9_50G" - InternalVnicAttachmentVnicShapeFixed1200X950g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_X9_50G" - InternalVnicAttachmentVnicShapeFixed1600X950g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_X9_50G" - InternalVnicAttachmentVnicShapeFixed2000X950g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_X9_50G" - InternalVnicAttachmentVnicShapeFixed2400X950g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_X9_50G" - InternalVnicAttachmentVnicShapeFixed2800X950g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_X9_50G" - InternalVnicAttachmentVnicShapeFixed3200X950g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_X9_50G" - InternalVnicAttachmentVnicShapeFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_X9_50G" - InternalVnicAttachmentVnicShapeFixed4000X950g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed0200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed0400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed0600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed0800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed1000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed1200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed1400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed1600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed1800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed2000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed2200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed2400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed2600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed2800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed3000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed3200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed3400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed3800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" - InternalVnicAttachmentVnicShapeStandardVmFixed4000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" - InternalVnicAttachmentVnicShapeEntirehostX950g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_X9_50G" -) - -var mappingInternalVnicAttachmentVnicShape = map[string]InternalVnicAttachmentVnicShapeEnum{ - "DYNAMIC": InternalVnicAttachmentVnicShapeDynamic, - "FIXED0040": InternalVnicAttachmentVnicShapeFixed0040, - "FIXED0060": InternalVnicAttachmentVnicShapeFixed0060, - "FIXED0060_PSM": InternalVnicAttachmentVnicShapeFixed0060Psm, - "FIXED0100": InternalVnicAttachmentVnicShapeFixed0100, - "FIXED0120": InternalVnicAttachmentVnicShapeFixed0120, - "FIXED0120_2X": InternalVnicAttachmentVnicShapeFixed01202x, - "FIXED0200": InternalVnicAttachmentVnicShapeFixed0200, - "FIXED0240": InternalVnicAttachmentVnicShapeFixed0240, - "FIXED0480": InternalVnicAttachmentVnicShapeFixed0480, - "ENTIREHOST": InternalVnicAttachmentVnicShapeEntirehost, - "DYNAMIC_25G": InternalVnicAttachmentVnicShapeDynamic25g, - "FIXED0040_25G": InternalVnicAttachmentVnicShapeFixed004025g, - "FIXED0100_25G": InternalVnicAttachmentVnicShapeFixed010025g, - "FIXED0200_25G": InternalVnicAttachmentVnicShapeFixed020025g, - "FIXED0400_25G": InternalVnicAttachmentVnicShapeFixed040025g, - "FIXED0800_25G": InternalVnicAttachmentVnicShapeFixed080025g, - "FIXED1600_25G": InternalVnicAttachmentVnicShapeFixed160025g, - "FIXED2400_25G": InternalVnicAttachmentVnicShapeFixed240025g, - "ENTIREHOST_25G": InternalVnicAttachmentVnicShapeEntirehost25g, - "DYNAMIC_E1_25G": InternalVnicAttachmentVnicShapeDynamicE125g, - "FIXED0040_E1_25G": InternalVnicAttachmentVnicShapeFixed0040E125g, - "FIXED0070_E1_25G": InternalVnicAttachmentVnicShapeFixed0070E125g, - "FIXED0140_E1_25G": InternalVnicAttachmentVnicShapeFixed0140E125g, - "FIXED0280_E1_25G": InternalVnicAttachmentVnicShapeFixed0280E125g, - "FIXED0560_E1_25G": InternalVnicAttachmentVnicShapeFixed0560E125g, - "FIXED1120_E1_25G": InternalVnicAttachmentVnicShapeFixed1120E125g, - "FIXED1680_E1_25G": InternalVnicAttachmentVnicShapeFixed1680E125g, - "ENTIREHOST_E1_25G": InternalVnicAttachmentVnicShapeEntirehostE125g, - "DYNAMIC_B1_25G": InternalVnicAttachmentVnicShapeDynamicB125g, - "FIXED0040_B1_25G": InternalVnicAttachmentVnicShapeFixed0040B125g, - "FIXED0060_B1_25G": InternalVnicAttachmentVnicShapeFixed0060B125g, - "FIXED0120_B1_25G": InternalVnicAttachmentVnicShapeFixed0120B125g, - "FIXED0240_B1_25G": InternalVnicAttachmentVnicShapeFixed0240B125g, - "FIXED0480_B1_25G": InternalVnicAttachmentVnicShapeFixed0480B125g, - "FIXED0960_B1_25G": InternalVnicAttachmentVnicShapeFixed0960B125g, - "ENTIREHOST_B1_25G": InternalVnicAttachmentVnicShapeEntirehostB125g, - "MICRO_VM_FIXED0048_E1_25G": InternalVnicAttachmentVnicShapeMicroVmFixed0048E125g, - "MICRO_LB_FIXED0001_E1_25G": InternalVnicAttachmentVnicShapeMicroLbFixed0001E125g, - "VNICAAS_FIXED0200": InternalVnicAttachmentVnicShapeVnicaasFixed0200, - "VNICAAS_FIXED0400": InternalVnicAttachmentVnicShapeVnicaasFixed0400, - "VNICAAS_FIXED0700": InternalVnicAttachmentVnicShapeVnicaasFixed0700, - "VNICAAS_NLB_APPROVED_10G": InternalVnicAttachmentVnicShapeVnicaasNlbApproved10g, - "VNICAAS_NLB_APPROVED_25G": InternalVnicAttachmentVnicShapeVnicaasNlbApproved25g, - "VNICAAS_TELESIS_25G": InternalVnicAttachmentVnicShapeVnicaasTelesis25g, - "VNICAAS_TELESIS_10G": InternalVnicAttachmentVnicShapeVnicaasTelesis10g, - "VNICAAS_AMBASSADOR_FIXED0100": InternalVnicAttachmentVnicShapeVnicaasAmbassadorFixed0100, - "VNICAAS_PRIVATEDNS": InternalVnicAttachmentVnicShapeVnicaasPrivatedns, - "VNICAAS_FWAAS": InternalVnicAttachmentVnicShapeVnicaasFwaas, - "DYNAMIC_E3_50G": InternalVnicAttachmentVnicShapeDynamicE350g, - "FIXED0040_E3_50G": InternalVnicAttachmentVnicShapeFixed0040E350g, - "FIXED0100_E3_50G": InternalVnicAttachmentVnicShapeFixed0100E350g, - "FIXED0200_E3_50G": InternalVnicAttachmentVnicShapeFixed0200E350g, - "FIXED0300_E3_50G": InternalVnicAttachmentVnicShapeFixed0300E350g, - "FIXED0400_E3_50G": InternalVnicAttachmentVnicShapeFixed0400E350g, - "FIXED0500_E3_50G": InternalVnicAttachmentVnicShapeFixed0500E350g, - "FIXED0600_E3_50G": InternalVnicAttachmentVnicShapeFixed0600E350g, - "FIXED0700_E3_50G": InternalVnicAttachmentVnicShapeFixed0700E350g, - "FIXED0800_E3_50G": InternalVnicAttachmentVnicShapeFixed0800E350g, - "FIXED0900_E3_50G": InternalVnicAttachmentVnicShapeFixed0900E350g, - "FIXED1000_E3_50G": InternalVnicAttachmentVnicShapeFixed1000E350g, - "FIXED1100_E3_50G": InternalVnicAttachmentVnicShapeFixed1100E350g, - "FIXED1200_E3_50G": InternalVnicAttachmentVnicShapeFixed1200E350g, - "FIXED1300_E3_50G": InternalVnicAttachmentVnicShapeFixed1300E350g, - "FIXED1400_E3_50G": InternalVnicAttachmentVnicShapeFixed1400E350g, - "FIXED1500_E3_50G": InternalVnicAttachmentVnicShapeFixed1500E350g, - "FIXED1600_E3_50G": InternalVnicAttachmentVnicShapeFixed1600E350g, - "FIXED1700_E3_50G": InternalVnicAttachmentVnicShapeFixed1700E350g, - "FIXED1800_E3_50G": InternalVnicAttachmentVnicShapeFixed1800E350g, - "FIXED1900_E3_50G": InternalVnicAttachmentVnicShapeFixed1900E350g, - "FIXED2000_E3_50G": InternalVnicAttachmentVnicShapeFixed2000E350g, - "FIXED2100_E3_50G": InternalVnicAttachmentVnicShapeFixed2100E350g, - "FIXED2200_E3_50G": InternalVnicAttachmentVnicShapeFixed2200E350g, - "FIXED2300_E3_50G": InternalVnicAttachmentVnicShapeFixed2300E350g, - "FIXED2400_E3_50G": InternalVnicAttachmentVnicShapeFixed2400E350g, - "FIXED2500_E3_50G": InternalVnicAttachmentVnicShapeFixed2500E350g, - "FIXED2600_E3_50G": InternalVnicAttachmentVnicShapeFixed2600E350g, - "FIXED2700_E3_50G": InternalVnicAttachmentVnicShapeFixed2700E350g, - "FIXED2800_E3_50G": InternalVnicAttachmentVnicShapeFixed2800E350g, - "FIXED2900_E3_50G": InternalVnicAttachmentVnicShapeFixed2900E350g, - "FIXED3000_E3_50G": InternalVnicAttachmentVnicShapeFixed3000E350g, - "FIXED3100_E3_50G": InternalVnicAttachmentVnicShapeFixed3100E350g, - "FIXED3200_E3_50G": InternalVnicAttachmentVnicShapeFixed3200E350g, - "FIXED3300_E3_50G": InternalVnicAttachmentVnicShapeFixed3300E350g, - "FIXED3400_E3_50G": InternalVnicAttachmentVnicShapeFixed3400E350g, - "FIXED3500_E3_50G": InternalVnicAttachmentVnicShapeFixed3500E350g, - "FIXED3600_E3_50G": InternalVnicAttachmentVnicShapeFixed3600E350g, - "FIXED3700_E3_50G": InternalVnicAttachmentVnicShapeFixed3700E350g, - "FIXED3800_E3_50G": InternalVnicAttachmentVnicShapeFixed3800E350g, - "FIXED3900_E3_50G": InternalVnicAttachmentVnicShapeFixed3900E350g, - "FIXED4000_E3_50G": InternalVnicAttachmentVnicShapeFixed4000E350g, - "ENTIREHOST_E3_50G": InternalVnicAttachmentVnicShapeEntirehostE350g, - "DYNAMIC_E4_50G": InternalVnicAttachmentVnicShapeDynamicE450g, - "FIXED0040_E4_50G": InternalVnicAttachmentVnicShapeFixed0040E450g, - "FIXED0100_E4_50G": InternalVnicAttachmentVnicShapeFixed0100E450g, - "FIXED0200_E4_50G": InternalVnicAttachmentVnicShapeFixed0200E450g, - "FIXED0300_E4_50G": InternalVnicAttachmentVnicShapeFixed0300E450g, - "FIXED0400_E4_50G": InternalVnicAttachmentVnicShapeFixed0400E450g, - "FIXED0500_E4_50G": InternalVnicAttachmentVnicShapeFixed0500E450g, - "FIXED0600_E4_50G": InternalVnicAttachmentVnicShapeFixed0600E450g, - "FIXED0700_E4_50G": InternalVnicAttachmentVnicShapeFixed0700E450g, - "FIXED0800_E4_50G": InternalVnicAttachmentVnicShapeFixed0800E450g, - "FIXED0900_E4_50G": InternalVnicAttachmentVnicShapeFixed0900E450g, - "FIXED1000_E4_50G": InternalVnicAttachmentVnicShapeFixed1000E450g, - "FIXED1100_E4_50G": InternalVnicAttachmentVnicShapeFixed1100E450g, - "FIXED1200_E4_50G": InternalVnicAttachmentVnicShapeFixed1200E450g, - "FIXED1300_E4_50G": InternalVnicAttachmentVnicShapeFixed1300E450g, - "FIXED1400_E4_50G": InternalVnicAttachmentVnicShapeFixed1400E450g, - "FIXED1500_E4_50G": InternalVnicAttachmentVnicShapeFixed1500E450g, - "FIXED1600_E4_50G": InternalVnicAttachmentVnicShapeFixed1600E450g, - "FIXED1700_E4_50G": InternalVnicAttachmentVnicShapeFixed1700E450g, - "FIXED1800_E4_50G": InternalVnicAttachmentVnicShapeFixed1800E450g, - "FIXED1900_E4_50G": InternalVnicAttachmentVnicShapeFixed1900E450g, - "FIXED2000_E4_50G": InternalVnicAttachmentVnicShapeFixed2000E450g, - "FIXED2100_E4_50G": InternalVnicAttachmentVnicShapeFixed2100E450g, - "FIXED2200_E4_50G": InternalVnicAttachmentVnicShapeFixed2200E450g, - "FIXED2300_E4_50G": InternalVnicAttachmentVnicShapeFixed2300E450g, - "FIXED2400_E4_50G": InternalVnicAttachmentVnicShapeFixed2400E450g, - "FIXED2500_E4_50G": InternalVnicAttachmentVnicShapeFixed2500E450g, - "FIXED2600_E4_50G": InternalVnicAttachmentVnicShapeFixed2600E450g, - "FIXED2700_E4_50G": InternalVnicAttachmentVnicShapeFixed2700E450g, - "FIXED2800_E4_50G": InternalVnicAttachmentVnicShapeFixed2800E450g, - "FIXED2900_E4_50G": InternalVnicAttachmentVnicShapeFixed2900E450g, - "FIXED3000_E4_50G": InternalVnicAttachmentVnicShapeFixed3000E450g, - "FIXED3100_E4_50G": InternalVnicAttachmentVnicShapeFixed3100E450g, - "FIXED3200_E4_50G": InternalVnicAttachmentVnicShapeFixed3200E450g, - "FIXED3300_E4_50G": InternalVnicAttachmentVnicShapeFixed3300E450g, - "FIXED3400_E4_50G": InternalVnicAttachmentVnicShapeFixed3400E450g, - "FIXED3500_E4_50G": InternalVnicAttachmentVnicShapeFixed3500E450g, - "FIXED3600_E4_50G": InternalVnicAttachmentVnicShapeFixed3600E450g, - "FIXED3700_E4_50G": InternalVnicAttachmentVnicShapeFixed3700E450g, - "FIXED3800_E4_50G": InternalVnicAttachmentVnicShapeFixed3800E450g, - "FIXED3900_E4_50G": InternalVnicAttachmentVnicShapeFixed3900E450g, - "FIXED4000_E4_50G": InternalVnicAttachmentVnicShapeFixed4000E450g, - "ENTIREHOST_E4_50G": InternalVnicAttachmentVnicShapeEntirehostE450g, - "MICRO_VM_FIXED0050_E3_50G": InternalVnicAttachmentVnicShapeMicroVmFixed0050E350g, - "SUBCORE_VM_FIXED0025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E350g, - "SUBCORE_VM_FIXED0050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E350g, - "SUBCORE_VM_FIXED0075_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E350g, - "SUBCORE_VM_FIXED0100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E350g, - "SUBCORE_VM_FIXED0125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E350g, - "SUBCORE_VM_FIXED0150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E350g, - "SUBCORE_VM_FIXED0175_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E350g, - "SUBCORE_VM_FIXED0200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E350g, - "SUBCORE_VM_FIXED0225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E350g, - "SUBCORE_VM_FIXED0250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E350g, - "SUBCORE_VM_FIXED0275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E350g, - "SUBCORE_VM_FIXED0300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E350g, - "SUBCORE_VM_FIXED0325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E350g, - "SUBCORE_VM_FIXED0350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E350g, - "SUBCORE_VM_FIXED0375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E350g, - "SUBCORE_VM_FIXED0400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E350g, - "SUBCORE_VM_FIXED0425_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E350g, - "SUBCORE_VM_FIXED0450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E350g, - "SUBCORE_VM_FIXED0475_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E350g, - "SUBCORE_VM_FIXED0500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E350g, - "SUBCORE_VM_FIXED0525_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E350g, - "SUBCORE_VM_FIXED0550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E350g, - "SUBCORE_VM_FIXED0575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E350g, - "SUBCORE_VM_FIXED0600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E350g, - "SUBCORE_VM_FIXED0625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E350g, - "SUBCORE_VM_FIXED0650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E350g, - "SUBCORE_VM_FIXED0675_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E350g, - "SUBCORE_VM_FIXED0700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E350g, - "SUBCORE_VM_FIXED0725_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E350g, - "SUBCORE_VM_FIXED0750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E350g, - "SUBCORE_VM_FIXED0775_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E350g, - "SUBCORE_VM_FIXED0800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E350g, - "SUBCORE_VM_FIXED0825_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E350g, - "SUBCORE_VM_FIXED0850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E350g, - "SUBCORE_VM_FIXED0875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E350g, - "SUBCORE_VM_FIXED0900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E350g, - "SUBCORE_VM_FIXED0925_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E350g, - "SUBCORE_VM_FIXED0950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E350g, - "SUBCORE_VM_FIXED0975_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E350g, - "SUBCORE_VM_FIXED1000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E350g, - "SUBCORE_VM_FIXED1025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E350g, - "SUBCORE_VM_FIXED1050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E350g, - "SUBCORE_VM_FIXED1075_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E350g, - "SUBCORE_VM_FIXED1100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E350g, - "SUBCORE_VM_FIXED1125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E350g, - "SUBCORE_VM_FIXED1150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E350g, - "SUBCORE_VM_FIXED1175_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E350g, - "SUBCORE_VM_FIXED1200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E350g, - "SUBCORE_VM_FIXED1225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E350g, - "SUBCORE_VM_FIXED1250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E350g, - "SUBCORE_VM_FIXED1275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E350g, - "SUBCORE_VM_FIXED1300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E350g, - "SUBCORE_VM_FIXED1325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E350g, - "SUBCORE_VM_FIXED1350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E350g, - "SUBCORE_VM_FIXED1375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E350g, - "SUBCORE_VM_FIXED1400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E350g, - "SUBCORE_VM_FIXED1425_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E350g, - "SUBCORE_VM_FIXED1450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E350g, - "SUBCORE_VM_FIXED1475_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E350g, - "SUBCORE_VM_FIXED1500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E350g, - "SUBCORE_VM_FIXED1525_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E350g, - "SUBCORE_VM_FIXED1550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E350g, - "SUBCORE_VM_FIXED1575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E350g, - "SUBCORE_VM_FIXED1600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E350g, - "SUBCORE_VM_FIXED1625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E350g, - "SUBCORE_VM_FIXED1650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E350g, - "SUBCORE_VM_FIXED1700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E350g, - "SUBCORE_VM_FIXED1725_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E350g, - "SUBCORE_VM_FIXED1750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E350g, - "SUBCORE_VM_FIXED1800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E350g, - "SUBCORE_VM_FIXED1850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E350g, - "SUBCORE_VM_FIXED1875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E350g, - "SUBCORE_VM_FIXED1900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E350g, - "SUBCORE_VM_FIXED1925_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E350g, - "SUBCORE_VM_FIXED1950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E350g, - "SUBCORE_VM_FIXED2000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E350g, - "SUBCORE_VM_FIXED2025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E350g, - "SUBCORE_VM_FIXED2050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E350g, - "SUBCORE_VM_FIXED2100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E350g, - "SUBCORE_VM_FIXED2125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E350g, - "SUBCORE_VM_FIXED2150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E350g, - "SUBCORE_VM_FIXED2175_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E350g, - "SUBCORE_VM_FIXED2200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E350g, - "SUBCORE_VM_FIXED2250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E350g, - "SUBCORE_VM_FIXED2275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E350g, - "SUBCORE_VM_FIXED2300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E350g, - "SUBCORE_VM_FIXED2325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E350g, - "SUBCORE_VM_FIXED2350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E350g, - "SUBCORE_VM_FIXED2375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E350g, - "SUBCORE_VM_FIXED2400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E350g, - "SUBCORE_VM_FIXED2450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E350g, - "SUBCORE_VM_FIXED2475_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E350g, - "SUBCORE_VM_FIXED2500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E350g, - "SUBCORE_VM_FIXED2550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E350g, - "SUBCORE_VM_FIXED2600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E350g, - "SUBCORE_VM_FIXED2625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E350g, - "SUBCORE_VM_FIXED2650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E350g, - "SUBCORE_VM_FIXED2700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E350g, - "SUBCORE_VM_FIXED2750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E350g, - "SUBCORE_VM_FIXED2775_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E350g, - "SUBCORE_VM_FIXED2800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E350g, - "SUBCORE_VM_FIXED2850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E350g, - "SUBCORE_VM_FIXED2875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E350g, - "SUBCORE_VM_FIXED2900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E350g, - "SUBCORE_VM_FIXED2925_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E350g, - "SUBCORE_VM_FIXED2950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E350g, - "SUBCORE_VM_FIXED2975_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E350g, - "SUBCORE_VM_FIXED3000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E350g, - "SUBCORE_VM_FIXED3025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E350g, - "SUBCORE_VM_FIXED3050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E350g, - "SUBCORE_VM_FIXED3075_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E350g, - "SUBCORE_VM_FIXED3100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E350g, - "SUBCORE_VM_FIXED3125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E350g, - "SUBCORE_VM_FIXED3150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E350g, - "SUBCORE_VM_FIXED3200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E350g, - "SUBCORE_VM_FIXED3225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E350g, - "SUBCORE_VM_FIXED3250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E350g, - "SUBCORE_VM_FIXED3300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E350g, - "SUBCORE_VM_FIXED3325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E350g, - "SUBCORE_VM_FIXED3375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E350g, - "SUBCORE_VM_FIXED3400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E350g, - "SUBCORE_VM_FIXED3450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E350g, - "SUBCORE_VM_FIXED3500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E350g, - "SUBCORE_VM_FIXED3525_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E350g, - "SUBCORE_VM_FIXED3575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E350g, - "SUBCORE_VM_FIXED3600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E350g, - "SUBCORE_VM_FIXED3625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E350g, - "SUBCORE_VM_FIXED3675_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E350g, - "SUBCORE_VM_FIXED3700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E350g, - "SUBCORE_VM_FIXED3750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E350g, - "SUBCORE_VM_FIXED3800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E350g, - "SUBCORE_VM_FIXED3825_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E350g, - "SUBCORE_VM_FIXED3850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E350g, - "SUBCORE_VM_FIXED3875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E350g, - "SUBCORE_VM_FIXED3900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E350g, - "SUBCORE_VM_FIXED3975_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E350g, - "SUBCORE_VM_FIXED4000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E350g, - "SUBCORE_VM_FIXED4025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E350g, - "SUBCORE_VM_FIXED4050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E350g, - "SUBCORE_VM_FIXED4100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E350g, - "SUBCORE_VM_FIXED4125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E350g, - "SUBCORE_VM_FIXED4200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E350g, - "SUBCORE_VM_FIXED4225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E350g, - "SUBCORE_VM_FIXED4250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E350g, - "SUBCORE_VM_FIXED4275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E350g, - "SUBCORE_VM_FIXED4300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E350g, - "SUBCORE_VM_FIXED4350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E350g, - "SUBCORE_VM_FIXED4375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E350g, - "SUBCORE_VM_FIXED4400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E350g, - "SUBCORE_VM_FIXED4425_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E350g, - "SUBCORE_VM_FIXED4500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E350g, - "SUBCORE_VM_FIXED4550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E350g, - "SUBCORE_VM_FIXED4575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E350g, - "SUBCORE_VM_FIXED4600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E350g, - "SUBCORE_VM_FIXED4625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E350g, - "SUBCORE_VM_FIXED4650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E350g, - "SUBCORE_VM_FIXED4675_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E350g, - "SUBCORE_VM_FIXED4700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E350g, - "SUBCORE_VM_FIXED4725_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E350g, - "SUBCORE_VM_FIXED4750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E350g, - "SUBCORE_VM_FIXED4800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E350g, - "SUBCORE_VM_FIXED4875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E350g, - "SUBCORE_VM_FIXED4900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E350g, - "SUBCORE_VM_FIXED4950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E350g, - "SUBCORE_VM_FIXED5000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E350g, - "SUBCORE_VM_FIXED0025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E450g, - "SUBCORE_VM_FIXED0050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E450g, - "SUBCORE_VM_FIXED0075_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E450g, - "SUBCORE_VM_FIXED0100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E450g, - "SUBCORE_VM_FIXED0125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E450g, - "SUBCORE_VM_FIXED0150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E450g, - "SUBCORE_VM_FIXED0175_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E450g, - "SUBCORE_VM_FIXED0200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E450g, - "SUBCORE_VM_FIXED0225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E450g, - "SUBCORE_VM_FIXED0250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E450g, - "SUBCORE_VM_FIXED0275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E450g, - "SUBCORE_VM_FIXED0300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E450g, - "SUBCORE_VM_FIXED0325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E450g, - "SUBCORE_VM_FIXED0350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E450g, - "SUBCORE_VM_FIXED0375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E450g, - "SUBCORE_VM_FIXED0400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E450g, - "SUBCORE_VM_FIXED0425_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E450g, - "SUBCORE_VM_FIXED0450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E450g, - "SUBCORE_VM_FIXED0475_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E450g, - "SUBCORE_VM_FIXED0500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E450g, - "SUBCORE_VM_FIXED0525_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E450g, - "SUBCORE_VM_FIXED0550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E450g, - "SUBCORE_VM_FIXED0575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E450g, - "SUBCORE_VM_FIXED0600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E450g, - "SUBCORE_VM_FIXED0625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E450g, - "SUBCORE_VM_FIXED0650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E450g, - "SUBCORE_VM_FIXED0675_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E450g, - "SUBCORE_VM_FIXED0700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E450g, - "SUBCORE_VM_FIXED0725_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E450g, - "SUBCORE_VM_FIXED0750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E450g, - "SUBCORE_VM_FIXED0775_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E450g, - "SUBCORE_VM_FIXED0800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E450g, - "SUBCORE_VM_FIXED0825_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E450g, - "SUBCORE_VM_FIXED0850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E450g, - "SUBCORE_VM_FIXED0875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E450g, - "SUBCORE_VM_FIXED0900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E450g, - "SUBCORE_VM_FIXED0925_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E450g, - "SUBCORE_VM_FIXED0950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E450g, - "SUBCORE_VM_FIXED0975_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E450g, - "SUBCORE_VM_FIXED1000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E450g, - "SUBCORE_VM_FIXED1025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E450g, - "SUBCORE_VM_FIXED1050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E450g, - "SUBCORE_VM_FIXED1075_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E450g, - "SUBCORE_VM_FIXED1100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E450g, - "SUBCORE_VM_FIXED1125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E450g, - "SUBCORE_VM_FIXED1150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E450g, - "SUBCORE_VM_FIXED1175_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E450g, - "SUBCORE_VM_FIXED1200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E450g, - "SUBCORE_VM_FIXED1225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E450g, - "SUBCORE_VM_FIXED1250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E450g, - "SUBCORE_VM_FIXED1275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E450g, - "SUBCORE_VM_FIXED1300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E450g, - "SUBCORE_VM_FIXED1325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E450g, - "SUBCORE_VM_FIXED1350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E450g, - "SUBCORE_VM_FIXED1375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E450g, - "SUBCORE_VM_FIXED1400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E450g, - "SUBCORE_VM_FIXED1425_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E450g, - "SUBCORE_VM_FIXED1450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E450g, - "SUBCORE_VM_FIXED1475_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E450g, - "SUBCORE_VM_FIXED1500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E450g, - "SUBCORE_VM_FIXED1525_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E450g, - "SUBCORE_VM_FIXED1550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E450g, - "SUBCORE_VM_FIXED1575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E450g, - "SUBCORE_VM_FIXED1600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E450g, - "SUBCORE_VM_FIXED1625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E450g, - "SUBCORE_VM_FIXED1650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E450g, - "SUBCORE_VM_FIXED1700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E450g, - "SUBCORE_VM_FIXED1725_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E450g, - "SUBCORE_VM_FIXED1750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E450g, - "SUBCORE_VM_FIXED1800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E450g, - "SUBCORE_VM_FIXED1850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E450g, - "SUBCORE_VM_FIXED1875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E450g, - "SUBCORE_VM_FIXED1900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E450g, - "SUBCORE_VM_FIXED1925_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E450g, - "SUBCORE_VM_FIXED1950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E450g, - "SUBCORE_VM_FIXED2000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E450g, - "SUBCORE_VM_FIXED2025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E450g, - "SUBCORE_VM_FIXED2050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E450g, - "SUBCORE_VM_FIXED2100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E450g, - "SUBCORE_VM_FIXED2125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E450g, - "SUBCORE_VM_FIXED2150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E450g, - "SUBCORE_VM_FIXED2175_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E450g, - "SUBCORE_VM_FIXED2200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E450g, - "SUBCORE_VM_FIXED2250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E450g, - "SUBCORE_VM_FIXED2275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E450g, - "SUBCORE_VM_FIXED2300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E450g, - "SUBCORE_VM_FIXED2325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E450g, - "SUBCORE_VM_FIXED2350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E450g, - "SUBCORE_VM_FIXED2375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E450g, - "SUBCORE_VM_FIXED2400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E450g, - "SUBCORE_VM_FIXED2450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E450g, - "SUBCORE_VM_FIXED2475_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E450g, - "SUBCORE_VM_FIXED2500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E450g, - "SUBCORE_VM_FIXED2550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E450g, - "SUBCORE_VM_FIXED2600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E450g, - "SUBCORE_VM_FIXED2625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E450g, - "SUBCORE_VM_FIXED2650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E450g, - "SUBCORE_VM_FIXED2700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E450g, - "SUBCORE_VM_FIXED2750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E450g, - "SUBCORE_VM_FIXED2775_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E450g, - "SUBCORE_VM_FIXED2800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E450g, - "SUBCORE_VM_FIXED2850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E450g, - "SUBCORE_VM_FIXED2875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E450g, - "SUBCORE_VM_FIXED2900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E450g, - "SUBCORE_VM_FIXED2925_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E450g, - "SUBCORE_VM_FIXED2950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E450g, - "SUBCORE_VM_FIXED2975_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E450g, - "SUBCORE_VM_FIXED3000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E450g, - "SUBCORE_VM_FIXED3025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E450g, - "SUBCORE_VM_FIXED3050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E450g, - "SUBCORE_VM_FIXED3075_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E450g, - "SUBCORE_VM_FIXED3100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E450g, - "SUBCORE_VM_FIXED3125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E450g, - "SUBCORE_VM_FIXED3150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E450g, - "SUBCORE_VM_FIXED3200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E450g, - "SUBCORE_VM_FIXED3225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E450g, - "SUBCORE_VM_FIXED3250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E450g, - "SUBCORE_VM_FIXED3300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E450g, - "SUBCORE_VM_FIXED3325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E450g, - "SUBCORE_VM_FIXED3375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E450g, - "SUBCORE_VM_FIXED3400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E450g, - "SUBCORE_VM_FIXED3450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E450g, - "SUBCORE_VM_FIXED3500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E450g, - "SUBCORE_VM_FIXED3525_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E450g, - "SUBCORE_VM_FIXED3575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E450g, - "SUBCORE_VM_FIXED3600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E450g, - "SUBCORE_VM_FIXED3625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E450g, - "SUBCORE_VM_FIXED3675_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E450g, - "SUBCORE_VM_FIXED3700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E450g, - "SUBCORE_VM_FIXED3750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E450g, - "SUBCORE_VM_FIXED3800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E450g, - "SUBCORE_VM_FIXED3825_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E450g, - "SUBCORE_VM_FIXED3850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E450g, - "SUBCORE_VM_FIXED3875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E450g, - "SUBCORE_VM_FIXED3900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E450g, - "SUBCORE_VM_FIXED3975_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E450g, - "SUBCORE_VM_FIXED4000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E450g, - "SUBCORE_VM_FIXED4025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E450g, - "SUBCORE_VM_FIXED4050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E450g, - "SUBCORE_VM_FIXED4100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E450g, - "SUBCORE_VM_FIXED4125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E450g, - "SUBCORE_VM_FIXED4200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E450g, - "SUBCORE_VM_FIXED4225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E450g, - "SUBCORE_VM_FIXED4250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E450g, - "SUBCORE_VM_FIXED4275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E450g, - "SUBCORE_VM_FIXED4300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E450g, - "SUBCORE_VM_FIXED4350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E450g, - "SUBCORE_VM_FIXED4375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E450g, - "SUBCORE_VM_FIXED4400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E450g, - "SUBCORE_VM_FIXED4425_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E450g, - "SUBCORE_VM_FIXED4500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E450g, - "SUBCORE_VM_FIXED4550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E450g, - "SUBCORE_VM_FIXED4575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E450g, - "SUBCORE_VM_FIXED4600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E450g, - "SUBCORE_VM_FIXED4625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E450g, - "SUBCORE_VM_FIXED4650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E450g, - "SUBCORE_VM_FIXED4675_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E450g, - "SUBCORE_VM_FIXED4700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E450g, - "SUBCORE_VM_FIXED4725_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E450g, - "SUBCORE_VM_FIXED4750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E450g, - "SUBCORE_VM_FIXED4800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E450g, - "SUBCORE_VM_FIXED4875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E450g, - "SUBCORE_VM_FIXED4900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E450g, - "SUBCORE_VM_FIXED4950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E450g, - "SUBCORE_VM_FIXED5000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E450g, - "SUBCORE_VM_FIXED0020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0020A150g, - "SUBCORE_VM_FIXED0040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0040A150g, - "SUBCORE_VM_FIXED0060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0060A150g, - "SUBCORE_VM_FIXED0080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0080A150g, - "SUBCORE_VM_FIXED0100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100A150g, - "SUBCORE_VM_FIXED0120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0120A150g, - "SUBCORE_VM_FIXED0140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0140A150g, - "SUBCORE_VM_FIXED0160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0160A150g, - "SUBCORE_VM_FIXED0180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0180A150g, - "SUBCORE_VM_FIXED0200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200A150g, - "SUBCORE_VM_FIXED0220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0220A150g, - "SUBCORE_VM_FIXED0240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0240A150g, - "SUBCORE_VM_FIXED0260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0260A150g, - "SUBCORE_VM_FIXED0280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0280A150g, - "SUBCORE_VM_FIXED0300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300A150g, - "SUBCORE_VM_FIXED0320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0320A150g, - "SUBCORE_VM_FIXED0340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0340A150g, - "SUBCORE_VM_FIXED0360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0360A150g, - "SUBCORE_VM_FIXED0380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0380A150g, - "SUBCORE_VM_FIXED0400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400A150g, - "SUBCORE_VM_FIXED0420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0420A150g, - "SUBCORE_VM_FIXED0440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0440A150g, - "SUBCORE_VM_FIXED0460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0460A150g, - "SUBCORE_VM_FIXED0480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0480A150g, - "SUBCORE_VM_FIXED0500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500A150g, - "SUBCORE_VM_FIXED0520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0520A150g, - "SUBCORE_VM_FIXED0540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0540A150g, - "SUBCORE_VM_FIXED0560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0560A150g, - "SUBCORE_VM_FIXED0580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0580A150g, - "SUBCORE_VM_FIXED0600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600A150g, - "SUBCORE_VM_FIXED0620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0620A150g, - "SUBCORE_VM_FIXED0640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0640A150g, - "SUBCORE_VM_FIXED0660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0660A150g, - "SUBCORE_VM_FIXED0680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0680A150g, - "SUBCORE_VM_FIXED0700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700A150g, - "SUBCORE_VM_FIXED0720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0720A150g, - "SUBCORE_VM_FIXED0740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0740A150g, - "SUBCORE_VM_FIXED0760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0760A150g, - "SUBCORE_VM_FIXED0780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0780A150g, - "SUBCORE_VM_FIXED0800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800A150g, - "SUBCORE_VM_FIXED0820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0820A150g, - "SUBCORE_VM_FIXED0840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0840A150g, - "SUBCORE_VM_FIXED0860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0860A150g, - "SUBCORE_VM_FIXED0880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0880A150g, - "SUBCORE_VM_FIXED0900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900A150g, - "SUBCORE_VM_FIXED0920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0920A150g, - "SUBCORE_VM_FIXED0940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0940A150g, - "SUBCORE_VM_FIXED0960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0960A150g, - "SUBCORE_VM_FIXED0980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0980A150g, - "SUBCORE_VM_FIXED1000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000A150g, - "SUBCORE_VM_FIXED1020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1020A150g, - "SUBCORE_VM_FIXED1040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1040A150g, - "SUBCORE_VM_FIXED1060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1060A150g, - "SUBCORE_VM_FIXED1080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1080A150g, - "SUBCORE_VM_FIXED1100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100A150g, - "SUBCORE_VM_FIXED1120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1120A150g, - "SUBCORE_VM_FIXED1140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1140A150g, - "SUBCORE_VM_FIXED1160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1160A150g, - "SUBCORE_VM_FIXED1180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1180A150g, - "SUBCORE_VM_FIXED1200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200A150g, - "SUBCORE_VM_FIXED1220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1220A150g, - "SUBCORE_VM_FIXED1240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1240A150g, - "SUBCORE_VM_FIXED1260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1260A150g, - "SUBCORE_VM_FIXED1280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1280A150g, - "SUBCORE_VM_FIXED1300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300A150g, - "SUBCORE_VM_FIXED1320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1320A150g, - "SUBCORE_VM_FIXED1340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1340A150g, - "SUBCORE_VM_FIXED1360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1360A150g, - "SUBCORE_VM_FIXED1380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1380A150g, - "SUBCORE_VM_FIXED1400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400A150g, - "SUBCORE_VM_FIXED1420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1420A150g, - "SUBCORE_VM_FIXED1440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1440A150g, - "SUBCORE_VM_FIXED1460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1460A150g, - "SUBCORE_VM_FIXED1480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1480A150g, - "SUBCORE_VM_FIXED1500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500A150g, - "SUBCORE_VM_FIXED1520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1520A150g, - "SUBCORE_VM_FIXED1540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1540A150g, - "SUBCORE_VM_FIXED1560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1560A150g, - "SUBCORE_VM_FIXED1580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1580A150g, - "SUBCORE_VM_FIXED1600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600A150g, - "SUBCORE_VM_FIXED1620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1620A150g, - "SUBCORE_VM_FIXED1640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1640A150g, - "SUBCORE_VM_FIXED1660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1660A150g, - "SUBCORE_VM_FIXED1680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1680A150g, - "SUBCORE_VM_FIXED1700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700A150g, - "SUBCORE_VM_FIXED1720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1720A150g, - "SUBCORE_VM_FIXED1740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1740A150g, - "SUBCORE_VM_FIXED1760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1760A150g, - "SUBCORE_VM_FIXED1780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1780A150g, - "SUBCORE_VM_FIXED1800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800A150g, - "SUBCORE_VM_FIXED1820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1820A150g, - "SUBCORE_VM_FIXED1840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1840A150g, - "SUBCORE_VM_FIXED1860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1860A150g, - "SUBCORE_VM_FIXED1880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1880A150g, - "SUBCORE_VM_FIXED1900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900A150g, - "SUBCORE_VM_FIXED1920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1920A150g, - "SUBCORE_VM_FIXED1940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1940A150g, - "SUBCORE_VM_FIXED1960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1960A150g, - "SUBCORE_VM_FIXED1980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1980A150g, - "SUBCORE_VM_FIXED2000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000A150g, - "SUBCORE_VM_FIXED2020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2020A150g, - "SUBCORE_VM_FIXED2040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2040A150g, - "SUBCORE_VM_FIXED2060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2060A150g, - "SUBCORE_VM_FIXED2080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2080A150g, - "SUBCORE_VM_FIXED2100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100A150g, - "SUBCORE_VM_FIXED2120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2120A150g, - "SUBCORE_VM_FIXED2140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2140A150g, - "SUBCORE_VM_FIXED2160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2160A150g, - "SUBCORE_VM_FIXED2180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2180A150g, - "SUBCORE_VM_FIXED2200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200A150g, - "SUBCORE_VM_FIXED2220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2220A150g, - "SUBCORE_VM_FIXED2240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2240A150g, - "SUBCORE_VM_FIXED2260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2260A150g, - "SUBCORE_VM_FIXED2280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2280A150g, - "SUBCORE_VM_FIXED2300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300A150g, - "SUBCORE_VM_FIXED2320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2320A150g, - "SUBCORE_VM_FIXED2340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2340A150g, - "SUBCORE_VM_FIXED2360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2360A150g, - "SUBCORE_VM_FIXED2380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2380A150g, - "SUBCORE_VM_FIXED2400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400A150g, - "SUBCORE_VM_FIXED2420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2420A150g, - "SUBCORE_VM_FIXED2440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2440A150g, - "SUBCORE_VM_FIXED2460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2460A150g, - "SUBCORE_VM_FIXED2480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2480A150g, - "SUBCORE_VM_FIXED2500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500A150g, - "SUBCORE_VM_FIXED2520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2520A150g, - "SUBCORE_VM_FIXED2540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2540A150g, - "SUBCORE_VM_FIXED2560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2560A150g, - "SUBCORE_VM_FIXED2580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2580A150g, - "SUBCORE_VM_FIXED2600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600A150g, - "SUBCORE_VM_FIXED2620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2620A150g, - "SUBCORE_VM_FIXED2640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2640A150g, - "SUBCORE_VM_FIXED2660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2660A150g, - "SUBCORE_VM_FIXED2680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2680A150g, - "SUBCORE_VM_FIXED2700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700A150g, - "SUBCORE_VM_FIXED2720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2720A150g, - "SUBCORE_VM_FIXED2740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2740A150g, - "SUBCORE_VM_FIXED2760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2760A150g, - "SUBCORE_VM_FIXED2780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2780A150g, - "SUBCORE_VM_FIXED2800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800A150g, - "SUBCORE_VM_FIXED2820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2820A150g, - "SUBCORE_VM_FIXED2840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2840A150g, - "SUBCORE_VM_FIXED2860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2860A150g, - "SUBCORE_VM_FIXED2880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2880A150g, - "SUBCORE_VM_FIXED2900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900A150g, - "SUBCORE_VM_FIXED2920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2920A150g, - "SUBCORE_VM_FIXED2940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2940A150g, - "SUBCORE_VM_FIXED2960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2960A150g, - "SUBCORE_VM_FIXED2980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2980A150g, - "SUBCORE_VM_FIXED3000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000A150g, - "SUBCORE_VM_FIXED3020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3020A150g, - "SUBCORE_VM_FIXED3040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3040A150g, - "SUBCORE_VM_FIXED3060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3060A150g, - "SUBCORE_VM_FIXED3080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3080A150g, - "SUBCORE_VM_FIXED3100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100A150g, - "SUBCORE_VM_FIXED3120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3120A150g, - "SUBCORE_VM_FIXED3140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3140A150g, - "SUBCORE_VM_FIXED3160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3160A150g, - "SUBCORE_VM_FIXED3180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3180A150g, - "SUBCORE_VM_FIXED3200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200A150g, - "SUBCORE_VM_FIXED3220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3220A150g, - "SUBCORE_VM_FIXED3240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3240A150g, - "SUBCORE_VM_FIXED3260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3260A150g, - "SUBCORE_VM_FIXED3280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3280A150g, - "SUBCORE_VM_FIXED3300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300A150g, - "SUBCORE_VM_FIXED3320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3320A150g, - "SUBCORE_VM_FIXED3340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3340A150g, - "SUBCORE_VM_FIXED3360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3360A150g, - "SUBCORE_VM_FIXED3380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3380A150g, - "SUBCORE_VM_FIXED3400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400A150g, - "SUBCORE_VM_FIXED3420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3420A150g, - "SUBCORE_VM_FIXED3440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3440A150g, - "SUBCORE_VM_FIXED3460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3460A150g, - "SUBCORE_VM_FIXED3480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3480A150g, - "SUBCORE_VM_FIXED3500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500A150g, - "SUBCORE_VM_FIXED3520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3520A150g, - "SUBCORE_VM_FIXED3540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3540A150g, - "SUBCORE_VM_FIXED3560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3560A150g, - "SUBCORE_VM_FIXED3580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3580A150g, - "SUBCORE_VM_FIXED3600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600A150g, - "SUBCORE_VM_FIXED3620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3620A150g, - "SUBCORE_VM_FIXED3640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3640A150g, - "SUBCORE_VM_FIXED3660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3660A150g, - "SUBCORE_VM_FIXED3680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3680A150g, - "SUBCORE_VM_FIXED3700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700A150g, - "SUBCORE_VM_FIXED3720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3720A150g, - "SUBCORE_VM_FIXED3740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3740A150g, - "SUBCORE_VM_FIXED3760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3760A150g, - "SUBCORE_VM_FIXED3780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3780A150g, - "SUBCORE_VM_FIXED3800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800A150g, - "SUBCORE_VM_FIXED3820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3820A150g, - "SUBCORE_VM_FIXED3840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3840A150g, - "SUBCORE_VM_FIXED3860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3860A150g, - "SUBCORE_VM_FIXED3880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3880A150g, - "SUBCORE_VM_FIXED3900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900A150g, - "SUBCORE_VM_FIXED3920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3920A150g, - "SUBCORE_VM_FIXED3940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3940A150g, - "SUBCORE_VM_FIXED3960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3960A150g, - "SUBCORE_VM_FIXED3980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3980A150g, - "SUBCORE_VM_FIXED4000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000A150g, - "SUBCORE_VM_FIXED4020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4020A150g, - "SUBCORE_VM_FIXED4040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4040A150g, - "SUBCORE_VM_FIXED4060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4060A150g, - "SUBCORE_VM_FIXED4080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4080A150g, - "SUBCORE_VM_FIXED4100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100A150g, - "SUBCORE_VM_FIXED4120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4120A150g, - "SUBCORE_VM_FIXED4140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4140A150g, - "SUBCORE_VM_FIXED4160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4160A150g, - "SUBCORE_VM_FIXED4180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4180A150g, - "SUBCORE_VM_FIXED4200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200A150g, - "SUBCORE_VM_FIXED4220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4220A150g, - "SUBCORE_VM_FIXED4240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4240A150g, - "SUBCORE_VM_FIXED4260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4260A150g, - "SUBCORE_VM_FIXED4280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4280A150g, - "SUBCORE_VM_FIXED4300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300A150g, - "SUBCORE_VM_FIXED4320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4320A150g, - "SUBCORE_VM_FIXED4340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4340A150g, - "SUBCORE_VM_FIXED4360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4360A150g, - "SUBCORE_VM_FIXED4380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4380A150g, - "SUBCORE_VM_FIXED4400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400A150g, - "SUBCORE_VM_FIXED4420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4420A150g, - "SUBCORE_VM_FIXED4440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4440A150g, - "SUBCORE_VM_FIXED4460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4460A150g, - "SUBCORE_VM_FIXED4480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4480A150g, - "SUBCORE_VM_FIXED4500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500A150g, - "SUBCORE_VM_FIXED4520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4520A150g, - "SUBCORE_VM_FIXED4540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4540A150g, - "SUBCORE_VM_FIXED4560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4560A150g, - "SUBCORE_VM_FIXED4580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4580A150g, - "SUBCORE_VM_FIXED4600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600A150g, - "SUBCORE_VM_FIXED4620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4620A150g, - "SUBCORE_VM_FIXED4640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4640A150g, - "SUBCORE_VM_FIXED4660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4660A150g, - "SUBCORE_VM_FIXED4680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4680A150g, - "SUBCORE_VM_FIXED4700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700A150g, - "SUBCORE_VM_FIXED4720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4720A150g, - "SUBCORE_VM_FIXED4740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4740A150g, - "SUBCORE_VM_FIXED4760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4760A150g, - "SUBCORE_VM_FIXED4780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4780A150g, - "SUBCORE_VM_FIXED4800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800A150g, - "SUBCORE_VM_FIXED4820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4820A150g, - "SUBCORE_VM_FIXED4840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4840A150g, - "SUBCORE_VM_FIXED4860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4860A150g, - "SUBCORE_VM_FIXED4880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4880A150g, - "SUBCORE_VM_FIXED4900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900A150g, - "SUBCORE_VM_FIXED4920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4920A150g, - "SUBCORE_VM_FIXED4940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4940A150g, - "SUBCORE_VM_FIXED4960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4960A150g, - "SUBCORE_VM_FIXED4980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4980A150g, - "SUBCORE_VM_FIXED5000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000A150g, - "SUBCORE_VM_FIXED0090_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0090X950g, - "SUBCORE_VM_FIXED0180_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0180X950g, - "SUBCORE_VM_FIXED0270_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0270X950g, - "SUBCORE_VM_FIXED0360_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0360X950g, - "SUBCORE_VM_FIXED0450_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450X950g, - "SUBCORE_VM_FIXED0540_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0540X950g, - "SUBCORE_VM_FIXED0630_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0630X950g, - "SUBCORE_VM_FIXED0720_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0720X950g, - "SUBCORE_VM_FIXED0810_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0810X950g, - "SUBCORE_VM_FIXED0900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900X950g, - "SUBCORE_VM_FIXED0990_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0990X950g, - "SUBCORE_VM_FIXED1080_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1080X950g, - "SUBCORE_VM_FIXED1170_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1170X950g, - "SUBCORE_VM_FIXED1260_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1260X950g, - "SUBCORE_VM_FIXED1350_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350X950g, - "SUBCORE_VM_FIXED1440_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1440X950g, - "SUBCORE_VM_FIXED1530_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1530X950g, - "SUBCORE_VM_FIXED1620_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1620X950g, - "SUBCORE_VM_FIXED1710_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1710X950g, - "SUBCORE_VM_FIXED1800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800X950g, - "SUBCORE_VM_FIXED1890_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1890X950g, - "SUBCORE_VM_FIXED1980_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1980X950g, - "SUBCORE_VM_FIXED2070_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2070X950g, - "SUBCORE_VM_FIXED2160_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2160X950g, - "SUBCORE_VM_FIXED2250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250X950g, - "SUBCORE_VM_FIXED2340_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2340X950g, - "SUBCORE_VM_FIXED2430_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2430X950g, - "SUBCORE_VM_FIXED2520_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2520X950g, - "SUBCORE_VM_FIXED2610_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2610X950g, - "SUBCORE_VM_FIXED2700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700X950g, - "SUBCORE_VM_FIXED2790_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2790X950g, - "SUBCORE_VM_FIXED2880_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2880X950g, - "SUBCORE_VM_FIXED2970_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2970X950g, - "SUBCORE_VM_FIXED3060_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3060X950g, - "SUBCORE_VM_FIXED3150_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150X950g, - "SUBCORE_VM_FIXED3240_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3240X950g, - "SUBCORE_VM_FIXED3330_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3330X950g, - "SUBCORE_VM_FIXED3420_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3420X950g, - "SUBCORE_VM_FIXED3510_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3510X950g, - "SUBCORE_VM_FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600X950g, - "SUBCORE_VM_FIXED3690_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3690X950g, - "SUBCORE_VM_FIXED3780_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3780X950g, - "SUBCORE_VM_FIXED3870_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3870X950g, - "SUBCORE_VM_FIXED3960_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3960X950g, - "SUBCORE_VM_FIXED4050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050X950g, - "SUBCORE_VM_FIXED4140_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4140X950g, - "SUBCORE_VM_FIXED4230_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4230X950g, - "SUBCORE_VM_FIXED4320_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4320X950g, - "SUBCORE_VM_FIXED4410_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4410X950g, - "SUBCORE_VM_FIXED4500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500X950g, - "SUBCORE_VM_FIXED4590_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4590X950g, - "SUBCORE_VM_FIXED4680_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4680X950g, - "SUBCORE_VM_FIXED4770_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4770X950g, - "SUBCORE_VM_FIXED4860_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4860X950g, - "SUBCORE_VM_FIXED4950_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950X950g, - "DYNAMIC_A1_50G": InternalVnicAttachmentVnicShapeDynamicA150g, - "FIXED0040_A1_50G": InternalVnicAttachmentVnicShapeFixed0040A150g, - "FIXED0100_A1_50G": InternalVnicAttachmentVnicShapeFixed0100A150g, - "FIXED0200_A1_50G": InternalVnicAttachmentVnicShapeFixed0200A150g, - "FIXED0300_A1_50G": InternalVnicAttachmentVnicShapeFixed0300A150g, - "FIXED0400_A1_50G": InternalVnicAttachmentVnicShapeFixed0400A150g, - "FIXED0500_A1_50G": InternalVnicAttachmentVnicShapeFixed0500A150g, - "FIXED0600_A1_50G": InternalVnicAttachmentVnicShapeFixed0600A150g, - "FIXED0700_A1_50G": InternalVnicAttachmentVnicShapeFixed0700A150g, - "FIXED0800_A1_50G": InternalVnicAttachmentVnicShapeFixed0800A150g, - "FIXED0900_A1_50G": InternalVnicAttachmentVnicShapeFixed0900A150g, - "FIXED1000_A1_50G": InternalVnicAttachmentVnicShapeFixed1000A150g, - "FIXED1100_A1_50G": InternalVnicAttachmentVnicShapeFixed1100A150g, - "FIXED1200_A1_50G": InternalVnicAttachmentVnicShapeFixed1200A150g, - "FIXED1300_A1_50G": InternalVnicAttachmentVnicShapeFixed1300A150g, - "FIXED1400_A1_50G": InternalVnicAttachmentVnicShapeFixed1400A150g, - "FIXED1500_A1_50G": InternalVnicAttachmentVnicShapeFixed1500A150g, - "FIXED1600_A1_50G": InternalVnicAttachmentVnicShapeFixed1600A150g, - "FIXED1700_A1_50G": InternalVnicAttachmentVnicShapeFixed1700A150g, - "FIXED1800_A1_50G": InternalVnicAttachmentVnicShapeFixed1800A150g, - "FIXED1900_A1_50G": InternalVnicAttachmentVnicShapeFixed1900A150g, - "FIXED2000_A1_50G": InternalVnicAttachmentVnicShapeFixed2000A150g, - "FIXED2100_A1_50G": InternalVnicAttachmentVnicShapeFixed2100A150g, - "FIXED2200_A1_50G": InternalVnicAttachmentVnicShapeFixed2200A150g, - "FIXED2300_A1_50G": InternalVnicAttachmentVnicShapeFixed2300A150g, - "FIXED2400_A1_50G": InternalVnicAttachmentVnicShapeFixed2400A150g, - "FIXED2500_A1_50G": InternalVnicAttachmentVnicShapeFixed2500A150g, - "FIXED2600_A1_50G": InternalVnicAttachmentVnicShapeFixed2600A150g, - "FIXED2700_A1_50G": InternalVnicAttachmentVnicShapeFixed2700A150g, - "FIXED2800_A1_50G": InternalVnicAttachmentVnicShapeFixed2800A150g, - "FIXED2900_A1_50G": InternalVnicAttachmentVnicShapeFixed2900A150g, - "FIXED3000_A1_50G": InternalVnicAttachmentVnicShapeFixed3000A150g, - "FIXED3100_A1_50G": InternalVnicAttachmentVnicShapeFixed3100A150g, - "FIXED3200_A1_50G": InternalVnicAttachmentVnicShapeFixed3200A150g, - "FIXED3300_A1_50G": InternalVnicAttachmentVnicShapeFixed3300A150g, - "FIXED3400_A1_50G": InternalVnicAttachmentVnicShapeFixed3400A150g, - "FIXED3500_A1_50G": InternalVnicAttachmentVnicShapeFixed3500A150g, - "FIXED3600_A1_50G": InternalVnicAttachmentVnicShapeFixed3600A150g, - "FIXED3700_A1_50G": InternalVnicAttachmentVnicShapeFixed3700A150g, - "FIXED3800_A1_50G": InternalVnicAttachmentVnicShapeFixed3800A150g, - "FIXED3900_A1_50G": InternalVnicAttachmentVnicShapeFixed3900A150g, - "FIXED4000_A1_50G": InternalVnicAttachmentVnicShapeFixed4000A150g, - "ENTIREHOST_A1_50G": InternalVnicAttachmentVnicShapeEntirehostA150g, - "DYNAMIC_X9_50G": InternalVnicAttachmentVnicShapeDynamicX950g, - "FIXED0040_X9_50G": InternalVnicAttachmentVnicShapeFixed0040X950g, - "FIXED0400_X9_50G": InternalVnicAttachmentVnicShapeFixed0400X950g, - "FIXED0800_X9_50G": InternalVnicAttachmentVnicShapeFixed0800X950g, - "FIXED1200_X9_50G": InternalVnicAttachmentVnicShapeFixed1200X950g, - "FIXED1600_X9_50G": InternalVnicAttachmentVnicShapeFixed1600X950g, - "FIXED2000_X9_50G": InternalVnicAttachmentVnicShapeFixed2000X950g, - "FIXED2400_X9_50G": InternalVnicAttachmentVnicShapeFixed2400X950g, - "FIXED2800_X9_50G": InternalVnicAttachmentVnicShapeFixed2800X950g, - "FIXED3200_X9_50G": InternalVnicAttachmentVnicShapeFixed3200X950g, - "FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeFixed3600X950g, - "FIXED4000_X9_50G": InternalVnicAttachmentVnicShapeFixed4000X950g, - "STANDARD_VM_FIXED0200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0200X950g, - "STANDARD_VM_FIXED0400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0400X950g, - "STANDARD_VM_FIXED0600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0600X950g, - "STANDARD_VM_FIXED0800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0800X950g, - "STANDARD_VM_FIXED1000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1000X950g, - "STANDARD_VM_FIXED1200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1200X950g, - "STANDARD_VM_FIXED1400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1400X950g, - "STANDARD_VM_FIXED1600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1600X950g, - "STANDARD_VM_FIXED1800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1800X950g, - "STANDARD_VM_FIXED2000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2000X950g, - "STANDARD_VM_FIXED2200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2200X950g, - "STANDARD_VM_FIXED2400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2400X950g, - "STANDARD_VM_FIXED2600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2600X950g, - "STANDARD_VM_FIXED2800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2800X950g, - "STANDARD_VM_FIXED3000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3000X950g, - "STANDARD_VM_FIXED3200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3200X950g, - "STANDARD_VM_FIXED3400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3400X950g, - "STANDARD_VM_FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3600X950g, - "STANDARD_VM_FIXED3800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3800X950g, - "STANDARD_VM_FIXED4000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed4000X950g, - "ENTIREHOST_X9_50G": InternalVnicAttachmentVnicShapeEntirehostX950g, -} - -// GetInternalVnicAttachmentVnicShapeEnumValues Enumerates the set of values for InternalVnicAttachmentVnicShapeEnum -func GetInternalVnicAttachmentVnicShapeEnumValues() []InternalVnicAttachmentVnicShapeEnum { - values := make([]InternalVnicAttachmentVnicShapeEnum, 0) - for _, v := range mappingInternalVnicAttachmentVnicShape { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_create_details.go deleted file mode 100644 index ae1ffb1ae9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_create_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternetDrgAttachmentNetworkCreateDetails Create details for an "Internet" attachment for a DRG -type InternetDrgAttachmentNetworkCreateDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The list of BYOIP Range OCIDs used to be accessible to the internet via this DRG. - ByoipRangeIds []string `mandatory:"false" json:"byoipRangeIds"` - - // The list of Public IPv4 or IPv6 CIDRs ["100.0.0.0/24"] accessible to the internet via this DRG. - PublicCidrBlocks []string `mandatory:"false" json:"publicCidrBlocks"` -} - -//GetId returns Id -func (m InternetDrgAttachmentNetworkCreateDetails) GetId() *string { - return m.Id -} - -func (m InternetDrgAttachmentNetworkCreateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InternetDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInternetDrgAttachmentNetworkCreateDetails InternetDrgAttachmentNetworkCreateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInternetDrgAttachmentNetworkCreateDetails - }{ - "INTERNET", - (MarshalTypeInternetDrgAttachmentNetworkCreateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_details.go deleted file mode 100644 index 3a635c3695..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_details.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternetDrgAttachmentNetworkDetails Details for an "Internet" attachment for a DRG -type InternetDrgAttachmentNetworkDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The list of BYOIP Range OCIDs used to be accessible to the internet via this DRG. - ByoipRangeIds []string `mandatory:"false" json:"byoipRangeIds"` - - // The list of Public IPv4 or IPv6 CIDRs ["100.0.0.0/24"] used to be - // accessible to the internet via this DRG. - PublicCidrBlocks []string `mandatory:"false" json:"publicCidrBlocks"` -} - -//GetId returns Id -func (m InternetDrgAttachmentNetworkDetails) GetId() *string { - return m.Id -} - -func (m InternetDrgAttachmentNetworkDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InternetDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInternetDrgAttachmentNetworkDetails InternetDrgAttachmentNetworkDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInternetDrgAttachmentNetworkDetails - }{ - "INTERNET", - (MarshalTypeInternetDrgAttachmentNetworkDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_update_details.go deleted file mode 100644 index ea1160a321..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_drg_attachment_network_update_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternetDrgAttachmentNetworkUpdateDetails Update details for an Internet attachment for a DRG. -type InternetDrgAttachmentNetworkUpdateDetails struct { - - // The list of BYOIP Range OCIDs accessible to the internet via this DRG. - ByoipRangeIds []string `mandatory:"false" json:"byoipRangeIds"` - - // The list of Public IPv4 or IPv6 CIDRs ["100.0.0.0/24"] - // accessible to the internet via this DRG. - PublicCidrBlocks []string `mandatory:"false" json:"publicCidrBlocks"` -} - -func (m InternetDrgAttachmentNetworkUpdateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m InternetDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeInternetDrgAttachmentNetworkUpdateDetails InternetDrgAttachmentNetworkUpdateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeInternetDrgAttachmentNetworkUpdateDetails - }{ - "INTERNET", - (MarshalTypeInternetDrgAttachmentNetworkUpdateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_gateway.go deleted file mode 100644 index 2490a81d62..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internet_gateway.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// InternetGateway Represents a router that connects the edge of a VCN with the Internet. For an example scenario -// that uses an internet gateway, see -// Typical Networking Service Scenarios (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm#scenarios). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type InternetGateway struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the internet gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The internet gateway's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The internet gateway's current state. - LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the internet gateway belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether the gateway is enabled. When the gateway is disabled, traffic is not - // routed to/from the Internet, regardless of route rules. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` - - // The date and time the internet gateway was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m InternetGateway) String() string { - return common.PointerString(m) -} - -// InternetGatewayLifecycleStateEnum Enum with underlying type: string -type InternetGatewayLifecycleStateEnum string - -// Set of constants representing the allowable values for InternetGatewayLifecycleStateEnum -const ( - InternetGatewayLifecycleStateProvisioning InternetGatewayLifecycleStateEnum = "PROVISIONING" - InternetGatewayLifecycleStateAvailable InternetGatewayLifecycleStateEnum = "AVAILABLE" - InternetGatewayLifecycleStateTerminating InternetGatewayLifecycleStateEnum = "TERMINATING" - InternetGatewayLifecycleStateTerminated InternetGatewayLifecycleStateEnum = "TERMINATED" -) - -var mappingInternetGatewayLifecycleState = map[string]InternetGatewayLifecycleStateEnum{ - "PROVISIONING": InternetGatewayLifecycleStateProvisioning, - "AVAILABLE": InternetGatewayLifecycleStateAvailable, - "TERMINATING": InternetGatewayLifecycleStateTerminating, - "TERMINATED": InternetGatewayLifecycleStateTerminated, -} - -// GetInternetGatewayLifecycleStateEnumValues Enumerates the set of values for InternetGatewayLifecycleStateEnum -func GetInternetGatewayLifecycleStateEnumValues() []InternetGatewayLifecycleStateEnum { - values := make([]InternetGatewayLifecycleStateEnum, 0) - for _, v := range mappingInternetGatewayLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection.go deleted file mode 100644 index 4551e69e97..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnection A connection between a DRG and CPE. This connection consists of multiple IPSec -// tunnels. Creating this connection is one of the steps required when setting up -// a Site-to-Site VPN. -// **Important:** Each tunnel in an IPSec connection can use either static routing or BGP dynamic -// routing (see the IPSecConnectionTunnel object's -// `routing` attribute). Originally only static routing was supported and -// every IPSec connection was required to have at least one static route configured. -// To maintain backward compatibility in the API when support for BPG dynamic routing was introduced, -// the API accepts an empty list of static routes if you configure both of the IPSec tunnels to use -// BGP dynamic routing. If you switch a tunnel's routing from `BGP` to `STATIC`, you must first -// ensure that the IPSec connection is configured with at least one valid CIDR block static route. -// Oracle uses the IPSec connection's static routes when routing a tunnel's traffic *only* -// if that tunnel's `routing` attribute = `STATIC`. Otherwise the static routes are ignored. -// For more information about the workflow for setting up an IPSec connection, see -// Site-to-Site VPN Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type IpSecConnection struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cpe object. - CpeId *string `mandatory:"true" json:"cpeId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The IPSec connection's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The IPSec connection's current state. - LifecycleState IpSecConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Static routes to the CPE. The CIDR must not be a - // multicast address or class E address. - // Used for routing a given IPSec tunnel's traffic only if the tunnel - // is using static routing. If you configure at least one tunnel to use static routing, then - // you must provide at least one valid static route. If you configure both - // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. - // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // Example: `10.0.1.0/24` - // Example: `2001:db8::/32` - StaticRoutes []string `mandatory:"true" json:"staticRoutes"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, - // the fully qualified domain name (FQDN)). The type of identifier here must correspond - // to the value for `cpeLocalIdentifierType`. - // If you don't provide a value when creating the IPSec connection, the `ipAddress` attribute - // for the Cpe object specified by `cpeId` is used as the `cpeLocalIdentifier`. - // For information about why you'd provide this value, see - // If Your CPE Is Behind a NAT Device (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm#nat). - // Example IP address: `10.0.3.3` - // Example hostname: `cpe.example.com` - CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"` - - // The type of identifier for your CPE device. The value here must correspond to the value - // for `cpeLocalIdentifier`. - CpeLocalIdentifierType IpSecConnectionCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - MigrationStatus *IpSecConnectionMigrationStatus `mandatory:"false" json:"migrationStatus"` -} - -func (m IpSecConnection) String() string { - return common.PointerString(m) -} - -// IpSecConnectionLifecycleStateEnum Enum with underlying type: string -type IpSecConnectionLifecycleStateEnum string - -// Set of constants representing the allowable values for IpSecConnectionLifecycleStateEnum -const ( - IpSecConnectionLifecycleStateProvisioning IpSecConnectionLifecycleStateEnum = "PROVISIONING" - IpSecConnectionLifecycleStateAvailable IpSecConnectionLifecycleStateEnum = "AVAILABLE" - IpSecConnectionLifecycleStateTerminating IpSecConnectionLifecycleStateEnum = "TERMINATING" - IpSecConnectionLifecycleStateTerminated IpSecConnectionLifecycleStateEnum = "TERMINATED" -) - -var mappingIpSecConnectionLifecycleState = map[string]IpSecConnectionLifecycleStateEnum{ - "PROVISIONING": IpSecConnectionLifecycleStateProvisioning, - "AVAILABLE": IpSecConnectionLifecycleStateAvailable, - "TERMINATING": IpSecConnectionLifecycleStateTerminating, - "TERMINATED": IpSecConnectionLifecycleStateTerminated, -} - -// GetIpSecConnectionLifecycleStateEnumValues Enumerates the set of values for IpSecConnectionLifecycleStateEnum -func GetIpSecConnectionLifecycleStateEnumValues() []IpSecConnectionLifecycleStateEnum { - values := make([]IpSecConnectionLifecycleStateEnum, 0) - for _, v := range mappingIpSecConnectionLifecycleState { - values = append(values, v) - } - return values -} - -// IpSecConnectionCpeLocalIdentifierTypeEnum Enum with underlying type: string -type IpSecConnectionCpeLocalIdentifierTypeEnum string - -// Set of constants representing the allowable values for IpSecConnectionCpeLocalIdentifierTypeEnum -const ( - IpSecConnectionCpeLocalIdentifierTypeIpAddress IpSecConnectionCpeLocalIdentifierTypeEnum = "IP_ADDRESS" - IpSecConnectionCpeLocalIdentifierTypeHostname IpSecConnectionCpeLocalIdentifierTypeEnum = "HOSTNAME" -) - -var mappingIpSecConnectionCpeLocalIdentifierType = map[string]IpSecConnectionCpeLocalIdentifierTypeEnum{ - "IP_ADDRESS": IpSecConnectionCpeLocalIdentifierTypeIpAddress, - "HOSTNAME": IpSecConnectionCpeLocalIdentifierTypeHostname, -} - -// GetIpSecConnectionCpeLocalIdentifierTypeEnumValues Enumerates the set of values for IpSecConnectionCpeLocalIdentifierTypeEnum -func GetIpSecConnectionCpeLocalIdentifierTypeEnumValues() []IpSecConnectionCpeLocalIdentifierTypeEnum { - values := make([]IpSecConnectionCpeLocalIdentifierTypeEnum, 0) - for _, v := range mappingIpSecConnectionCpeLocalIdentifierType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_config.go deleted file mode 100644 index 27824a01a2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_config.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnectionDeviceConfig Deprecated. For tunnel information, instead see: -// * IPSecConnectionTunnel -// * IPSecConnectionTunnelSharedSecret -type IpSecConnectionDeviceConfig struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The IPSec connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The date and time the IPSec connection was created. - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Two TunnelConfig objects. - Tunnels []TunnelConfig `mandatory:"false" json:"tunnels"` -} - -func (m IpSecConnectionDeviceConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_status.go deleted file mode 100644 index d56f4aac6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_device_status.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnectionDeviceStatus Deprecated. For tunnel information, instead see -// IPSecConnectionTunnel. -type IpSecConnectionDeviceStatus struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The IPSec connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Two TunnelStatus objects. - Tunnels []TunnelStatus `mandatory:"false" json:"tunnels"` -} - -func (m IpSecConnectionDeviceStatus) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_migration_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_migration_status.go deleted file mode 100644 index e9c758113a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_migration_status.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnectionMigrationStatus The IPSec connection's migration status. -type IpSecConnectionMigrationStatus struct { - - // The IPSec connection's migration status. - MigrationStatus IpSecConnectionMigrationStatusMigrationStatusEnum `mandatory:"true" json:"migrationStatus"` - - // The start timestamp for Site-to-Site VPN migration work. - StartTimeStamp *common.SDKTime `mandatory:"true" json:"startTimeStamp"` -} - -func (m IpSecConnectionMigrationStatus) String() string { - return common.PointerString(m) -} - -// IpSecConnectionMigrationStatusMigrationStatusEnum Enum with underlying type: string -type IpSecConnectionMigrationStatusMigrationStatusEnum string - -// Set of constants representing the allowable values for IpSecConnectionMigrationStatusMigrationStatusEnum -const ( - IpSecConnectionMigrationStatusMigrationStatusReady IpSecConnectionMigrationStatusMigrationStatusEnum = "READY" - IpSecConnectionMigrationStatusMigrationStatusMigrated IpSecConnectionMigrationStatusMigrationStatusEnum = "MIGRATED" - IpSecConnectionMigrationStatusMigrationStatusMigrating IpSecConnectionMigrationStatusMigrationStatusEnum = "MIGRATING" - IpSecConnectionMigrationStatusMigrationStatusMigrationFailed IpSecConnectionMigrationStatusMigrationStatusEnum = "MIGRATION_FAILED" - IpSecConnectionMigrationStatusMigrationStatusRolledBack IpSecConnectionMigrationStatusMigrationStatusEnum = "ROLLED_BACK" - IpSecConnectionMigrationStatusMigrationStatusRollingBack IpSecConnectionMigrationStatusMigrationStatusEnum = "ROLLING_BACK" - IpSecConnectionMigrationStatusMigrationStatusRollbackFailed IpSecConnectionMigrationStatusMigrationStatusEnum = "ROLLBACK_FAILED" - IpSecConnectionMigrationStatusMigrationStatusNotApplicable IpSecConnectionMigrationStatusMigrationStatusEnum = "NOT_APPLICABLE" - IpSecConnectionMigrationStatusMigrationStatusManual IpSecConnectionMigrationStatusMigrationStatusEnum = "MANUAL" - IpSecConnectionMigrationStatusMigrationStatusValidating IpSecConnectionMigrationStatusMigrationStatusEnum = "VALIDATING" -) - -var mappingIpSecConnectionMigrationStatusMigrationStatus = map[string]IpSecConnectionMigrationStatusMigrationStatusEnum{ - "READY": IpSecConnectionMigrationStatusMigrationStatusReady, - "MIGRATED": IpSecConnectionMigrationStatusMigrationStatusMigrated, - "MIGRATING": IpSecConnectionMigrationStatusMigrationStatusMigrating, - "MIGRATION_FAILED": IpSecConnectionMigrationStatusMigrationStatusMigrationFailed, - "ROLLED_BACK": IpSecConnectionMigrationStatusMigrationStatusRolledBack, - "ROLLING_BACK": IpSecConnectionMigrationStatusMigrationStatusRollingBack, - "ROLLBACK_FAILED": IpSecConnectionMigrationStatusMigrationStatusRollbackFailed, - "NOT_APPLICABLE": IpSecConnectionMigrationStatusMigrationStatusNotApplicable, - "MANUAL": IpSecConnectionMigrationStatusMigrationStatusManual, - "VALIDATING": IpSecConnectionMigrationStatusMigrationStatusValidating, -} - -// GetIpSecConnectionMigrationStatusMigrationStatusEnumValues Enumerates the set of values for IpSecConnectionMigrationStatusMigrationStatusEnum -func GetIpSecConnectionMigrationStatusMigrationStatusEnumValues() []IpSecConnectionMigrationStatusMigrationStatusEnum { - values := make([]IpSecConnectionMigrationStatusMigrationStatusEnum, 0) - for _, v := range mappingIpSecConnectionMigrationStatusMigrationStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel.go deleted file mode 100644 index 8fa10108d0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel.go +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnectionTunnel Information about a single tunnel in an IPSec connection. This object does not include the tunnel's -// shared secret (pre-shared key). That is in the -// IPSecConnectionTunnelSharedSecret object. -type IpSecConnectionTunnel struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the tunnel. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. - Id *string `mandatory:"true" json:"id"` - - // The tunnel's lifecycle state. - LifecycleState IpSecConnectionTunnelLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The IP address of Oracle's VPN headend. - // Example: `203.0.113.21` - VpnIp *string `mandatory:"false" json:"vpnIp"` - - // The IP address of the CPE's VPN headend. - // Example: `203.0.113.22` - CpeIp *string `mandatory:"false" json:"cpeIp"` - - // The status of the tunnel based on IPSec protocol characteristics. - Status IpSecConnectionTunnelStatusEnum `mandatory:"false" json:"status,omitempty"` - - // Internet Key Exchange protocol version. - IkeVersion IpSecConnectionTunnelIkeVersionEnum `mandatory:"false" json:"ikeVersion,omitempty"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - BgpSessionInfo *BgpSessionInfo `mandatory:"false" json:"bgpSessionInfo"` - - EncryptionDomainConfig *EncryptionDomainConfig `mandatory:"false" json:"encryptionDomainConfig"` - - // The type of routing used for this tunnel (either BGP dynamic routing or static routing). - Routing IpSecConnectionTunnelRoutingEnum `mandatory:"false" json:"routing,omitempty"` - - // The date and time the IPSec connection tunnel was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // When the status of the tunnel last changed, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeStatusUpdated *common.SDKTime `mandatory:"false" json:"timeStatusUpdated"` - - // can oracle initiate the Tunnel - OracleCanInitiate IpSecConnectionTunnelOracleCanInitiateEnum `mandatory:"false" json:"oracleCanInitiate,omitempty"` - - PhaseOneDetails *TunnelPhaseOneDetails `mandatory:"false" json:"phaseOneDetails"` - - PhaseTwoDetails *TunnelPhaseTwoDetails `mandatory:"false" json:"phaseTwoDetails"` -} - -func (m IpSecConnectionTunnel) String() string { - return common.PointerString(m) -} - -// IpSecConnectionTunnelStatusEnum Enum with underlying type: string -type IpSecConnectionTunnelStatusEnum string - -// Set of constants representing the allowable values for IpSecConnectionTunnelStatusEnum -const ( - IpSecConnectionTunnelStatusUp IpSecConnectionTunnelStatusEnum = "UP" - IpSecConnectionTunnelStatusDown IpSecConnectionTunnelStatusEnum = "DOWN" - IpSecConnectionTunnelStatusDownForMaintenance IpSecConnectionTunnelStatusEnum = "DOWN_FOR_MAINTENANCE" - IpSecConnectionTunnelStatusPartialUp IpSecConnectionTunnelStatusEnum = "PARTIAL_UP" -) - -var mappingIpSecConnectionTunnelStatus = map[string]IpSecConnectionTunnelStatusEnum{ - "UP": IpSecConnectionTunnelStatusUp, - "DOWN": IpSecConnectionTunnelStatusDown, - "DOWN_FOR_MAINTENANCE": IpSecConnectionTunnelStatusDownForMaintenance, - "PARTIAL_UP": IpSecConnectionTunnelStatusPartialUp, -} - -// GetIpSecConnectionTunnelStatusEnumValues Enumerates the set of values for IpSecConnectionTunnelStatusEnum -func GetIpSecConnectionTunnelStatusEnumValues() []IpSecConnectionTunnelStatusEnum { - values := make([]IpSecConnectionTunnelStatusEnum, 0) - for _, v := range mappingIpSecConnectionTunnelStatus { - values = append(values, v) - } - return values -} - -// IpSecConnectionTunnelIkeVersionEnum Enum with underlying type: string -type IpSecConnectionTunnelIkeVersionEnum string - -// Set of constants representing the allowable values for IpSecConnectionTunnelIkeVersionEnum -const ( - IpSecConnectionTunnelIkeVersionV1 IpSecConnectionTunnelIkeVersionEnum = "V1" - IpSecConnectionTunnelIkeVersionV2 IpSecConnectionTunnelIkeVersionEnum = "V2" -) - -var mappingIpSecConnectionTunnelIkeVersion = map[string]IpSecConnectionTunnelIkeVersionEnum{ - "V1": IpSecConnectionTunnelIkeVersionV1, - "V2": IpSecConnectionTunnelIkeVersionV2, -} - -// GetIpSecConnectionTunnelIkeVersionEnumValues Enumerates the set of values for IpSecConnectionTunnelIkeVersionEnum -func GetIpSecConnectionTunnelIkeVersionEnumValues() []IpSecConnectionTunnelIkeVersionEnum { - values := make([]IpSecConnectionTunnelIkeVersionEnum, 0) - for _, v := range mappingIpSecConnectionTunnelIkeVersion { - values = append(values, v) - } - return values -} - -// IpSecConnectionTunnelLifecycleStateEnum Enum with underlying type: string -type IpSecConnectionTunnelLifecycleStateEnum string - -// Set of constants representing the allowable values for IpSecConnectionTunnelLifecycleStateEnum -const ( - IpSecConnectionTunnelLifecycleStateProvisioning IpSecConnectionTunnelLifecycleStateEnum = "PROVISIONING" - IpSecConnectionTunnelLifecycleStateAvailable IpSecConnectionTunnelLifecycleStateEnum = "AVAILABLE" - IpSecConnectionTunnelLifecycleStateTerminating IpSecConnectionTunnelLifecycleStateEnum = "TERMINATING" - IpSecConnectionTunnelLifecycleStateTerminated IpSecConnectionTunnelLifecycleStateEnum = "TERMINATED" -) - -var mappingIpSecConnectionTunnelLifecycleState = map[string]IpSecConnectionTunnelLifecycleStateEnum{ - "PROVISIONING": IpSecConnectionTunnelLifecycleStateProvisioning, - "AVAILABLE": IpSecConnectionTunnelLifecycleStateAvailable, - "TERMINATING": IpSecConnectionTunnelLifecycleStateTerminating, - "TERMINATED": IpSecConnectionTunnelLifecycleStateTerminated, -} - -// GetIpSecConnectionTunnelLifecycleStateEnumValues Enumerates the set of values for IpSecConnectionTunnelLifecycleStateEnum -func GetIpSecConnectionTunnelLifecycleStateEnumValues() []IpSecConnectionTunnelLifecycleStateEnum { - values := make([]IpSecConnectionTunnelLifecycleStateEnum, 0) - for _, v := range mappingIpSecConnectionTunnelLifecycleState { - values = append(values, v) - } - return values -} - -// IpSecConnectionTunnelRoutingEnum Enum with underlying type: string -type IpSecConnectionTunnelRoutingEnum string - -// Set of constants representing the allowable values for IpSecConnectionTunnelRoutingEnum -const ( - IpSecConnectionTunnelRoutingBgp IpSecConnectionTunnelRoutingEnum = "BGP" - IpSecConnectionTunnelRoutingStatic IpSecConnectionTunnelRoutingEnum = "STATIC" - IpSecConnectionTunnelRoutingPolicy IpSecConnectionTunnelRoutingEnum = "POLICY" -) - -var mappingIpSecConnectionTunnelRouting = map[string]IpSecConnectionTunnelRoutingEnum{ - "BGP": IpSecConnectionTunnelRoutingBgp, - "STATIC": IpSecConnectionTunnelRoutingStatic, - "POLICY": IpSecConnectionTunnelRoutingPolicy, -} - -// GetIpSecConnectionTunnelRoutingEnumValues Enumerates the set of values for IpSecConnectionTunnelRoutingEnum -func GetIpSecConnectionTunnelRoutingEnumValues() []IpSecConnectionTunnelRoutingEnum { - values := make([]IpSecConnectionTunnelRoutingEnum, 0) - for _, v := range mappingIpSecConnectionTunnelRouting { - values = append(values, v) - } - return values -} - -// IpSecConnectionTunnelOracleCanInitiateEnum Enum with underlying type: string -type IpSecConnectionTunnelOracleCanInitiateEnum string - -// Set of constants representing the allowable values for IpSecConnectionTunnelOracleCanInitiateEnum -const ( - IpSecConnectionTunnelOracleCanInitiateInitiatorOrResponder IpSecConnectionTunnelOracleCanInitiateEnum = "INITIATOR_OR_RESPONDER" - IpSecConnectionTunnelOracleCanInitiateResponderOnly IpSecConnectionTunnelOracleCanInitiateEnum = "RESPONDER_ONLY" -) - -var mappingIpSecConnectionTunnelOracleCanInitiate = map[string]IpSecConnectionTunnelOracleCanInitiateEnum{ - "INITIATOR_OR_RESPONDER": IpSecConnectionTunnelOracleCanInitiateInitiatorOrResponder, - "RESPONDER_ONLY": IpSecConnectionTunnelOracleCanInitiateResponderOnly, -} - -// GetIpSecConnectionTunnelOracleCanInitiateEnumValues Enumerates the set of values for IpSecConnectionTunnelOracleCanInitiateEnum -func GetIpSecConnectionTunnelOracleCanInitiateEnumValues() []IpSecConnectionTunnelOracleCanInitiateEnum { - values := make([]IpSecConnectionTunnelOracleCanInitiateEnum, 0) - for _, v := range mappingIpSecConnectionTunnelOracleCanInitiate { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_error_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_error_details.go deleted file mode 100644 index 2cf7e66296..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_error_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnectionTunnelErrorDetails Ipsec tunnels error details -type IpSecConnectionTunnelErrorDetails struct { - - // unique id generated for each error report - Id *string `mandatory:"true" json:"id"` - - // unique code describes error type - ErrorCode *string `mandatory:"true" json:"errorCode"` - - // detailed description of the error - ErrorDescription *string `mandatory:"true" json:"errorDescription"` - - // how to resolve the error - Solution *string `mandatory:"true" json:"solution"` - - // link to oracle resources - OciResourcesLink *string `mandatory:"true" json:"ociResourcesLink"` - - // timestamp when error occurred. - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` -} - -func (m IpSecConnectionTunnelErrorDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_shared_secret.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_shared_secret.go deleted file mode 100644 index 22ea37d23f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ip_sec_connection_tunnel_shared_secret.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpSecConnectionTunnelSharedSecret The tunnel's shared secret (pre-shared key). -type IpSecConnectionTunnelSharedSecret struct { - - // The tunnel's shared secret (pre-shared key). - SharedSecret *string `mandatory:"true" json:"sharedSecret"` -} - -func (m IpSecConnectionTunnelSharedSecret) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_create_details.go deleted file mode 100644 index d647c5b0c4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_create_details.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpsecTunnelDrgAttachmentNetworkCreateDetails Specifies the IPSec tunnel attachment. -type IpsecTunnelDrgAttachmentNetworkCreateDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the IPSec connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The BGP ASN to use for the IPSec connection's route target - RegionalOciAsn *string `mandatory:"true" json:"regionalOciAsn"` - - // The IPSec connection that contains the attached IPSec tunnel. - IpsecConnectionId *string `mandatory:"true" json:"ipsecConnectionId"` -} - -//GetId returns Id -func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) GetId() *string { - return m.Id -} - -func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIpsecTunnelDrgAttachmentNetworkCreateDetails IpsecTunnelDrgAttachmentNetworkCreateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeIpsecTunnelDrgAttachmentNetworkCreateDetails - }{ - "IPSEC_TUNNEL", - (MarshalTypeIpsecTunnelDrgAttachmentNetworkCreateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_details.go deleted file mode 100644 index 09beba475d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ipsec_tunnel_drg_attachment_network_details.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpsecTunnelDrgAttachmentNetworkDetails Specifies the IPSec tunnel attached to the DRG. -type IpsecTunnelDrgAttachmentNetworkDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The IPSec connection that contains the attached IPSec tunnel. - IpsecConnectionId *string `mandatory:"false" json:"ipsecConnectionId"` - - // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors - // tagged with the attachment's import route target. - ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` - - // Routes which are exported to the attachment are exported to the route reflectors - // with the route target set to the value of the attachment's export route target. - ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` - - // The MPLS label of the DRG attachment. - MplsLabel *int `mandatory:"false" json:"mplsLabel"` - - // The BGP ASN to use for the IPSec connection's route target. - RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` - - // IPv4 address used to encapsulate ingress traffic to the DRG through this attachment - IngressVip *string `mandatory:"false" json:"ingressVip"` - - // Whether traffic from this network is forwarded to the El Paso Gamma VIPs (or not) - IsGammaDrg *bool `mandatory:"false" json:"isGammaDrg"` -} - -//GetId returns Id -func (m IpsecTunnelDrgAttachmentNetworkDetails) GetId() *string { - return m.Id -} - -func (m IpsecTunnelDrgAttachmentNetworkDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m IpsecTunnelDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeIpsecTunnelDrgAttachmentNetworkDetails IpsecTunnelDrgAttachmentNetworkDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeIpsecTunnelDrgAttachmentNetworkDetails - }{ - "IPSEC_TUNNEL", - (MarshalTypeIpsecTunnelDrgAttachmentNetworkDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ipv6.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ipv6.go deleted file mode 100644 index 0dab392f4a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ipv6.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Ipv6 An *IPv6* is a conceptual term that refers to an IPv6 address and related properties. -// The `IPv6` object is the API representation of an IPv6. -// You can create and assign an IPv6 to any VNIC that is in an IPv6-enabled subnet in an -// IPv6-enabled VCN. -// **Note:** IPv6 addressing is supported for all commercial and government regions. For important -// details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). -type Ipv6 struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPv6. - // This is the same as the VNIC's compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. - Id *string `mandatory:"true" json:"id"` - - // The IPv6 address of the `IPv6` object. The address is within the IPv6 CIDR block of the VNIC's subnet - // (see the `ipv6CidrBlock` attribute for the Subnet object. - // Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The IPv6's current state. - LifecycleState Ipv6LifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the IPv6 was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC the IPv6 is assigned to. - // The VNIC and IPv6 must be in the same subnet. - VnicId *string `mandatory:"true" json:"vnicId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m Ipv6) String() string { - return common.PointerString(m) -} - -// Ipv6LifecycleStateEnum Enum with underlying type: string -type Ipv6LifecycleStateEnum string - -// Set of constants representing the allowable values for Ipv6LifecycleStateEnum -const ( - Ipv6LifecycleStateProvisioning Ipv6LifecycleStateEnum = "PROVISIONING" - Ipv6LifecycleStateAvailable Ipv6LifecycleStateEnum = "AVAILABLE" - Ipv6LifecycleStateTerminating Ipv6LifecycleStateEnum = "TERMINATING" - Ipv6LifecycleStateTerminated Ipv6LifecycleStateEnum = "TERMINATED" -) - -var mappingIpv6LifecycleState = map[string]Ipv6LifecycleStateEnum{ - "PROVISIONING": Ipv6LifecycleStateProvisioning, - "AVAILABLE": Ipv6LifecycleStateAvailable, - "TERMINATING": Ipv6LifecycleStateTerminating, - "TERMINATED": Ipv6LifecycleStateTerminated, -} - -// GetIpv6LifecycleStateEnumValues Enumerates the set of values for Ipv6LifecycleStateEnum -func GetIpv6LifecycleStateEnumValues() []Ipv6LifecycleStateEnum { - values := make([]Ipv6LifecycleStateEnum, 0) - for _, v := range mappingIpv6LifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_availability_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_availability_config_details.go deleted file mode 100644 index 245458729b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_availability_config_details.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LaunchInstanceAvailabilityConfigDetails Options for VM migration during infrastructure maintenance events and for defining -// the availability of a VM instance after a maintenance event that impacts the underlying hardware. -type LaunchInstanceAvailabilityConfigDetails struct { - - // Whether to live migrate supported VM instances to a healthy physical VM host without - // disrupting running instances during infrastructure maintenance events. If null, Oracle - // chooses the best option for migrating the VM during infrastructure maintenance events. - IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` - - // The lifecycle state for an instance when it is recovered after infrastructure maintenance. - // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. - // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. - // * `STOP_INSTANCE` - The instance is recovered in the stopped state. - RecoveryAction LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` -} - -func (m LaunchInstanceAvailabilityConfigDetails) String() string { - return common.PointerString(m) -} - -// LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum Enum with underlying type: string -type LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum string - -// Set of constants representing the allowable values for LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum -const ( - LaunchInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum = "RESTORE_INSTANCE" - LaunchInstanceAvailabilityConfigDetailsRecoveryActionStopInstance LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum = "STOP_INSTANCE" -) - -var mappingLaunchInstanceAvailabilityConfigDetailsRecoveryAction = map[string]LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum{ - "RESTORE_INSTANCE": LaunchInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance, - "STOP_INSTANCE": LaunchInstanceAvailabilityConfigDetailsRecoveryActionStopInstance, -} - -// GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumValues Enumerates the set of values for LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum -func GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumValues() []LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum { - values := make([]LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum, 0) - for _, v := range mappingLaunchInstanceAvailabilityConfigDetailsRecoveryAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_platform_config.go deleted file mode 100644 index b61d2e0b6f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_platform_config.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LaunchInstancePlatformConfig The platform configuration requested for the instance. -// If you provide the parameter, the instance is created with the platform configuration that you specify. -// For any values that you omit, the instance uses the default configuration values for the `shape` that you -// specify. If you don't provide the parameter, the default values for the `shape` are used. -// Each shape only supports certain configurable values. If the values that you provide are not valid for the -// specified `shape`, an error is returned. -type LaunchInstancePlatformConfig interface { - - // Whether Secure Boot is enabled on the instance. - GetIsSecureBootEnabled() *bool - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - GetIsTrustedPlatformModuleEnabled() *bool - - // Whether the Measured Boot feature is enabled on the instance. - GetIsMeasuredBootEnabled() *bool -} - -type launchinstanceplatformconfig struct { - JsonData []byte - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *launchinstanceplatformconfig) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerlaunchinstanceplatformconfig launchinstanceplatformconfig - s := struct { - Model Unmarshalerlaunchinstanceplatformconfig - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.IsSecureBootEnabled = s.Model.IsSecureBootEnabled - m.IsTrustedPlatformModuleEnabled = s.Model.IsTrustedPlatformModuleEnabled - m.IsMeasuredBootEnabled = s.Model.IsMeasuredBootEnabled - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *launchinstanceplatformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "AMD_ROME_BM": - mm := AmdRomeBmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AMD_VM": - mm := AmdVmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTEL_VM": - mm := IntelVmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTEL_SKYLAKE_BM": - mm := IntelSkylakeBmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AMD_MILAN_BM": - mm := AmdMilanBmLaunchInstancePlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m launchinstanceplatformconfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m launchinstanceplatformconfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m launchinstanceplatformconfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m launchinstanceplatformconfig) String() string { - return common.PointerString(m) -} - -// LaunchInstancePlatformConfigTypeEnum Enum with underlying type: string -type LaunchInstancePlatformConfigTypeEnum string - -// Set of constants representing the allowable values for LaunchInstancePlatformConfigTypeEnum -const ( - LaunchInstancePlatformConfigTypeAmdMilanBm LaunchInstancePlatformConfigTypeEnum = "AMD_MILAN_BM" - LaunchInstancePlatformConfigTypeAmdRomeBm LaunchInstancePlatformConfigTypeEnum = "AMD_ROME_BM" - LaunchInstancePlatformConfigTypeIntelSkylakeBm LaunchInstancePlatformConfigTypeEnum = "INTEL_SKYLAKE_BM" - LaunchInstancePlatformConfigTypeAmdVm LaunchInstancePlatformConfigTypeEnum = "AMD_VM" - LaunchInstancePlatformConfigTypeIntelVm LaunchInstancePlatformConfigTypeEnum = "INTEL_VM" -) - -var mappingLaunchInstancePlatformConfigType = map[string]LaunchInstancePlatformConfigTypeEnum{ - "AMD_MILAN_BM": LaunchInstancePlatformConfigTypeAmdMilanBm, - "AMD_ROME_BM": LaunchInstancePlatformConfigTypeAmdRomeBm, - "INTEL_SKYLAKE_BM": LaunchInstancePlatformConfigTypeIntelSkylakeBm, - "AMD_VM": LaunchInstancePlatformConfigTypeAmdVm, - "INTEL_VM": LaunchInstancePlatformConfigTypeIntelVm, -} - -// GetLaunchInstancePlatformConfigTypeEnumValues Enumerates the set of values for LaunchInstancePlatformConfigTypeEnum -func GetLaunchInstancePlatformConfigTypeEnumValues() []LaunchInstancePlatformConfigTypeEnum { - values := make([]LaunchInstancePlatformConfigTypeEnum, 0) - for _, v := range mappingLaunchInstancePlatformConfigType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_shape_config_details.go deleted file mode 100644 index 408ab3ad51..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_shape_config_details.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LaunchInstanceShapeConfigDetails The shape configuration requested for the instance. -// If the parameter is provided, the instance is created with the resources that you specify. If some -// properties are missing or the entire parameter is not provided, the instance is created -// with the default configuration values for the `shape` that you specify. -// Each shape only supports certain configurable values. If the values that you provide are not valid for the -// specified `shape`, an error is returned. -type LaunchInstanceShapeConfigDetails struct { - - // The total number of OCPUs available to the instance. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to the instance, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` - - // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a - // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. - // The following values are supported: - // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. - // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. - // - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance. - BaselineOcpuUtilization LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` -} - -func (m LaunchInstanceShapeConfigDetails) String() string { - return common.PointerString(m) -} - -// LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string -type LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string - -// Set of constants representing the allowable values for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum -const ( - LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8" - LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2" - LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1" -) - -var mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization = map[string]LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ - "BASELINE_1_8": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8, - "BASELINE_1_2": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2, - "BASELINE_1_1": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1, -} - -// GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum -func GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { - values := make([]LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, 0) - for _, v := range mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_options.go deleted file mode 100644 index f8b6d0ad0a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_options.go +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LaunchOptions Options for tuning the compatibility and performance of VM shapes. The values that you specify override any -// default values. -type LaunchOptions struct { - - // Emulation type for the boot volume. - // * `ISCSI` - ISCSI attached block storage device. - // * `SCSI` - Emulated SCSI disk. - // * `IDE` - Emulated IDE disk. - // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data - // volumes on platform images. - // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block - // storage volumes on platform images. - BootVolumeType LaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"` - - // Firmware used to boot VM. Select the option that matches your operating system. - // * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating - // systems that boot using MBR style bootloaders. - // * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the - // default for platform images. - Firmware LaunchOptionsFirmwareEnum `mandatory:"false" json:"firmware,omitempty"` - - // Emulation type for the physical network interface card (NIC). - // * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. - // * `VFIO` - Direct attached Virtual Function network controller. This is the networking type - // when you launch an instance using hardware-assisted (SR-IOV) networking. - // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. - NetworkType LaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"` - - // Emulation type for volume. - // * `ISCSI` - ISCSI attached block storage device. - // * `SCSI` - Emulated SCSI disk. - // * `IDE` - Emulated IDE disk. - // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data - // volumes on platform images. - // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block - // storage volumes on platform images. - RemoteDataVolumeType LaunchOptionsRemoteDataVolumeTypeEnum `mandatory:"false" json:"remoteDataVolumeType,omitempty"` - - // Deprecated. Instead use `isPvEncryptionInTransitEnabled` in - // LaunchInstanceDetails. - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - - // Whether to enable consistent volume naming feature. Defaults to false. - IsConsistentVolumeNamingEnabled *bool `mandatory:"false" json:"isConsistentVolumeNamingEnabled"` -} - -func (m LaunchOptions) String() string { - return common.PointerString(m) -} - -// LaunchOptionsBootVolumeTypeEnum Enum with underlying type: string -type LaunchOptionsBootVolumeTypeEnum string - -// Set of constants representing the allowable values for LaunchOptionsBootVolumeTypeEnum -const ( - LaunchOptionsBootVolumeTypeIscsi LaunchOptionsBootVolumeTypeEnum = "ISCSI" - LaunchOptionsBootVolumeTypeScsi LaunchOptionsBootVolumeTypeEnum = "SCSI" - LaunchOptionsBootVolumeTypeIde LaunchOptionsBootVolumeTypeEnum = "IDE" - LaunchOptionsBootVolumeTypeVfio LaunchOptionsBootVolumeTypeEnum = "VFIO" - LaunchOptionsBootVolumeTypeParavirtualized LaunchOptionsBootVolumeTypeEnum = "PARAVIRTUALIZED" -) - -var mappingLaunchOptionsBootVolumeType = map[string]LaunchOptionsBootVolumeTypeEnum{ - "ISCSI": LaunchOptionsBootVolumeTypeIscsi, - "SCSI": LaunchOptionsBootVolumeTypeScsi, - "IDE": LaunchOptionsBootVolumeTypeIde, - "VFIO": LaunchOptionsBootVolumeTypeVfio, - "PARAVIRTUALIZED": LaunchOptionsBootVolumeTypeParavirtualized, -} - -// GetLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for LaunchOptionsBootVolumeTypeEnum -func GetLaunchOptionsBootVolumeTypeEnumValues() []LaunchOptionsBootVolumeTypeEnum { - values := make([]LaunchOptionsBootVolumeTypeEnum, 0) - for _, v := range mappingLaunchOptionsBootVolumeType { - values = append(values, v) - } - return values -} - -// LaunchOptionsFirmwareEnum Enum with underlying type: string -type LaunchOptionsFirmwareEnum string - -// Set of constants representing the allowable values for LaunchOptionsFirmwareEnum -const ( - LaunchOptionsFirmwareBios LaunchOptionsFirmwareEnum = "BIOS" - LaunchOptionsFirmwareUefi64 LaunchOptionsFirmwareEnum = "UEFI_64" -) - -var mappingLaunchOptionsFirmware = map[string]LaunchOptionsFirmwareEnum{ - "BIOS": LaunchOptionsFirmwareBios, - "UEFI_64": LaunchOptionsFirmwareUefi64, -} - -// GetLaunchOptionsFirmwareEnumValues Enumerates the set of values for LaunchOptionsFirmwareEnum -func GetLaunchOptionsFirmwareEnumValues() []LaunchOptionsFirmwareEnum { - values := make([]LaunchOptionsFirmwareEnum, 0) - for _, v := range mappingLaunchOptionsFirmware { - values = append(values, v) - } - return values -} - -// LaunchOptionsNetworkTypeEnum Enum with underlying type: string -type LaunchOptionsNetworkTypeEnum string - -// Set of constants representing the allowable values for LaunchOptionsNetworkTypeEnum -const ( - LaunchOptionsNetworkTypeE1000 LaunchOptionsNetworkTypeEnum = "E1000" - LaunchOptionsNetworkTypeVfio LaunchOptionsNetworkTypeEnum = "VFIO" - LaunchOptionsNetworkTypeParavirtualized LaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" -) - -var mappingLaunchOptionsNetworkType = map[string]LaunchOptionsNetworkTypeEnum{ - "E1000": LaunchOptionsNetworkTypeE1000, - "VFIO": LaunchOptionsNetworkTypeVfio, - "PARAVIRTUALIZED": LaunchOptionsNetworkTypeParavirtualized, -} - -// GetLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for LaunchOptionsNetworkTypeEnum -func GetLaunchOptionsNetworkTypeEnumValues() []LaunchOptionsNetworkTypeEnum { - values := make([]LaunchOptionsNetworkTypeEnum, 0) - for _, v := range mappingLaunchOptionsNetworkType { - values = append(values, v) - } - return values -} - -// LaunchOptionsRemoteDataVolumeTypeEnum Enum with underlying type: string -type LaunchOptionsRemoteDataVolumeTypeEnum string - -// Set of constants representing the allowable values for LaunchOptionsRemoteDataVolumeTypeEnum -const ( - LaunchOptionsRemoteDataVolumeTypeIscsi LaunchOptionsRemoteDataVolumeTypeEnum = "ISCSI" - LaunchOptionsRemoteDataVolumeTypeScsi LaunchOptionsRemoteDataVolumeTypeEnum = "SCSI" - LaunchOptionsRemoteDataVolumeTypeIde LaunchOptionsRemoteDataVolumeTypeEnum = "IDE" - LaunchOptionsRemoteDataVolumeTypeVfio LaunchOptionsRemoteDataVolumeTypeEnum = "VFIO" - LaunchOptionsRemoteDataVolumeTypeParavirtualized LaunchOptionsRemoteDataVolumeTypeEnum = "PARAVIRTUALIZED" -) - -var mappingLaunchOptionsRemoteDataVolumeType = map[string]LaunchOptionsRemoteDataVolumeTypeEnum{ - "ISCSI": LaunchOptionsRemoteDataVolumeTypeIscsi, - "SCSI": LaunchOptionsRemoteDataVolumeTypeScsi, - "IDE": LaunchOptionsRemoteDataVolumeTypeIde, - "VFIO": LaunchOptionsRemoteDataVolumeTypeVfio, - "PARAVIRTUALIZED": LaunchOptionsRemoteDataVolumeTypeParavirtualized, -} - -// GetLaunchOptionsRemoteDataVolumeTypeEnumValues Enumerates the set of values for LaunchOptionsRemoteDataVolumeTypeEnum -func GetLaunchOptionsRemoteDataVolumeTypeEnumValues() []LaunchOptionsRemoteDataVolumeTypeEnum { - values := make([]LaunchOptionsRemoteDataVolumeTypeEnum, 0) - for _, v := range mappingLaunchOptionsRemoteDataVolumeType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ldap_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ldap_config_details.go deleted file mode 100644 index cdc3984c43..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ldap_config_details.go +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LdapConfigDetails The detail of LDAP's authentication configuration. -type LdapConfigDetails struct { - - // The IP address of primary LDAP server. - PrimaryServer *string `mandatory:"false" json:"primaryServer"` - - // The IP address of secondary LDAP server. - SecondaryServer *string `mandatory:"false" json:"secondaryServer"` - - // Option for LDAP SSL once customer enables SSL for certain ClientVpn. - // Allowed values: - // * `NEVER`: Do not use SSL (the default setting). - // * `ADAPTIVE`: Try using SSL, if that fails, use plain-text to get through authentication. - // * `ALWAYS`: Always use SSL. - UseSsl LdapConfigDetailsUseSslEnum `mandatory:"false" json:"useSsl,omitempty"` - - // Choose the authentication method once useSSL enabled. - // Allowed values: - // * `NEVER`: No peer certificate is required. - // * `ALLOW`: Request a peer certificate, but session will not be aborted if certificate cannot be validated. - // * `DEMAND`: A valid peer certificate is required, then session will be aborted if one is not provided. - VerifySsl LdapConfigDetailsVerifySslEnum `mandatory:"false" json:"verifySsl,omitempty"` - - // Enable case-sensitivity or not in LDAP authentication. - IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` - - // Whether to apply Anonymous bind or not. - IsBindAnon *bool `mandatory:"false" json:"isBindAnon"` - - // The bind DN (Distinguished Name) includes the user and location of the - // user in LDAP directory tree - BindDN *string `mandatory:"false" json:"bindDN"` - - // The bind password is used to log in the LDAP server. - BindPW *string `mandatory:"false" json:"bindPW"` - - // The starting point element helps LDAP service to navigate search scope. - BaseDN *string `mandatory:"false" json:"baseDN"` - - // The username of client at attribute level. - ClientUsername *string `mandatory:"false" json:"clientUsername"` - - // This additional requirement uses LDAP query syntax. E.g., to require that the user be a member of a particular LDAP group (specified by DN) use this filter: - // memberOf=CN=VPN Users, CN=Users, DC=example, DC=net - AdditionalRequirements *string `mandatory:"false" json:"additionalRequirements"` -} - -func (m LdapConfigDetails) String() string { - return common.PointerString(m) -} - -// LdapConfigDetailsUseSslEnum Enum with underlying type: string -type LdapConfigDetailsUseSslEnum string - -// Set of constants representing the allowable values for LdapConfigDetailsUseSslEnum -const ( - LdapConfigDetailsUseSslNever LdapConfigDetailsUseSslEnum = "NEVER" - LdapConfigDetailsUseSslAdaptive LdapConfigDetailsUseSslEnum = "ADAPTIVE" - LdapConfigDetailsUseSslAlways LdapConfigDetailsUseSslEnum = "ALWAYS" -) - -var mappingLdapConfigDetailsUseSsl = map[string]LdapConfigDetailsUseSslEnum{ - "NEVER": LdapConfigDetailsUseSslNever, - "ADAPTIVE": LdapConfigDetailsUseSslAdaptive, - "ALWAYS": LdapConfigDetailsUseSslAlways, -} - -// GetLdapConfigDetailsUseSslEnumValues Enumerates the set of values for LdapConfigDetailsUseSslEnum -func GetLdapConfigDetailsUseSslEnumValues() []LdapConfigDetailsUseSslEnum { - values := make([]LdapConfigDetailsUseSslEnum, 0) - for _, v := range mappingLdapConfigDetailsUseSsl { - values = append(values, v) - } - return values -} - -// LdapConfigDetailsVerifySslEnum Enum with underlying type: string -type LdapConfigDetailsVerifySslEnum string - -// Set of constants representing the allowable values for LdapConfigDetailsVerifySslEnum -const ( - LdapConfigDetailsVerifySslNever LdapConfigDetailsVerifySslEnum = "NEVER" - LdapConfigDetailsVerifySslAllow LdapConfigDetailsVerifySslEnum = "ALLOW" - LdapConfigDetailsVerifySslDemand LdapConfigDetailsVerifySslEnum = "DEMAND" -) - -var mappingLdapConfigDetailsVerifySsl = map[string]LdapConfigDetailsVerifySslEnum{ - "NEVER": LdapConfigDetailsVerifySslNever, - "ALLOW": LdapConfigDetailsVerifySslAllow, - "DEMAND": LdapConfigDetailsVerifySslDemand, -} - -// GetLdapConfigDetailsVerifySslEnumValues Enumerates the set of values for LdapConfigDetailsVerifySslEnum -func GetLdapConfigDetailsVerifySslEnumValues() []LdapConfigDetailsVerifySslEnum { - values := make([]LdapConfigDetailsVerifySslEnum, 0) - for _, v := range mappingLdapConfigDetailsVerifySsl { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/letter_of_authority.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/letter_of_authority.go deleted file mode 100644 index 3105469a69..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/letter_of_authority.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LetterOfAuthority The Letter of Authority for the cross-connect. You must submit this letter when -// requesting cabling for the cross-connect at the FastConnect location. -type LetterOfAuthority struct { - - // The name of the entity authorized by this Letter of Authority. - AuthorizedEntityName *string `mandatory:"false" json:"authorizedEntityName"` - - // The type of cross-connect fiber, termination, and optical specification. - CircuitType LetterOfAuthorityCircuitTypeEnum `mandatory:"false" json:"circuitType,omitempty"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. - CrossConnectId *string `mandatory:"false" json:"crossConnectId"` - - // The address of the FastConnect location. - FacilityLocation *string `mandatory:"false" json:"facilityLocation"` - - // The meet-me room port for this cross-connect. - PortName *string `mandatory:"false" json:"portName"` - - // The date and time when the Letter of Authority expires, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The date and time the Letter of Authority was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeIssued *common.SDKTime `mandatory:"false" json:"timeIssued"` -} - -func (m LetterOfAuthority) String() string { - return common.PointerString(m) -} - -// LetterOfAuthorityCircuitTypeEnum Enum with underlying type: string -type LetterOfAuthorityCircuitTypeEnum string - -// Set of constants representing the allowable values for LetterOfAuthorityCircuitTypeEnum -const ( - LetterOfAuthorityCircuitTypeLc LetterOfAuthorityCircuitTypeEnum = "Single_mode_LC" - LetterOfAuthorityCircuitTypeSc LetterOfAuthorityCircuitTypeEnum = "Single_mode_SC" -) - -var mappingLetterOfAuthorityCircuitType = map[string]LetterOfAuthorityCircuitTypeEnum{ - "Single_mode_LC": LetterOfAuthorityCircuitTypeLc, - "Single_mode_SC": LetterOfAuthorityCircuitTypeSc, -} - -// GetLetterOfAuthorityCircuitTypeEnumValues Enumerates the set of values for LetterOfAuthorityCircuitTypeEnum -func GetLetterOfAuthorityCircuitTypeEnumValues() []LetterOfAuthorityCircuitTypeEnum { - values := make([]LetterOfAuthorityCircuitTypeEnum, 0) - for _, v := range mappingLetterOfAuthorityCircuitType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listing_resource_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listing_resource_versions_request_response.go deleted file mode 100644 index 30c58c48c0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listing_resource_versions_request_response.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListAppCatalogListingResourceVersionsRequest wrapper for the ListAppCatalogListingResourceVersions operation -type ListAppCatalogListingResourceVersionsRequest struct { - - // The OCID of the listing. - ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListAppCatalogListingResourceVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListAppCatalogListingResourceVersionsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListAppCatalogListingResourceVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListAppCatalogListingResourceVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListAppCatalogListingResourceVersionsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListAppCatalogListingResourceVersionsResponse wrapper for the ListAppCatalogListingResourceVersions operation -type ListAppCatalogListingResourceVersionsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []AppCatalogListingResourceVersionSummary instances - Items []AppCatalogListingResourceVersionSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListAppCatalogListingResourceVersionsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListAppCatalogListingResourceVersionsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListAppCatalogListingResourceVersionsSortOrderEnum Enum with underlying type: string -type ListAppCatalogListingResourceVersionsSortOrderEnum string - -// Set of constants representing the allowable values for ListAppCatalogListingResourceVersionsSortOrderEnum -const ( - ListAppCatalogListingResourceVersionsSortOrderAsc ListAppCatalogListingResourceVersionsSortOrderEnum = "ASC" - ListAppCatalogListingResourceVersionsSortOrderDesc ListAppCatalogListingResourceVersionsSortOrderEnum = "DESC" -) - -var mappingListAppCatalogListingResourceVersionsSortOrder = map[string]ListAppCatalogListingResourceVersionsSortOrderEnum{ - "ASC": ListAppCatalogListingResourceVersionsSortOrderAsc, - "DESC": ListAppCatalogListingResourceVersionsSortOrderDesc, -} - -// GetListAppCatalogListingResourceVersionsSortOrderEnumValues Enumerates the set of values for ListAppCatalogListingResourceVersionsSortOrderEnum -func GetListAppCatalogListingResourceVersionsSortOrderEnumValues() []ListAppCatalogListingResourceVersionsSortOrderEnum { - values := make([]ListAppCatalogListingResourceVersionsSortOrderEnum, 0) - for _, v := range mappingListAppCatalogListingResourceVersionsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listings_request_response.go deleted file mode 100644 index d52ca67b30..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_listings_request_response.go +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListAppCatalogListingsRequest wrapper for the ListAppCatalogListings operation -type ListAppCatalogListingsRequest struct { - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListAppCatalogListingsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only the publisher that matches the given publisher name exactly. - PublisherName *string `mandatory:"false" contributesTo:"query" name:"publisherName"` - - // A filter to return only publishers that match the given publisher type exactly. Valid types are OCI, ORACLE, TRUSTED, STANDARD. - PublisherType *string `mandatory:"false" contributesTo:"query" name:"publisherType"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListAppCatalogListingsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListAppCatalogListingsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListAppCatalogListingsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListAppCatalogListingsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListAppCatalogListingsResponse wrapper for the ListAppCatalogListings operation -type ListAppCatalogListingsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []AppCatalogListingSummary instances - Items []AppCatalogListingSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListAppCatalogListingsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListAppCatalogListingsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListAppCatalogListingsSortOrderEnum Enum with underlying type: string -type ListAppCatalogListingsSortOrderEnum string - -// Set of constants representing the allowable values for ListAppCatalogListingsSortOrderEnum -const ( - ListAppCatalogListingsSortOrderAsc ListAppCatalogListingsSortOrderEnum = "ASC" - ListAppCatalogListingsSortOrderDesc ListAppCatalogListingsSortOrderEnum = "DESC" -) - -var mappingListAppCatalogListingsSortOrder = map[string]ListAppCatalogListingsSortOrderEnum{ - "ASC": ListAppCatalogListingsSortOrderAsc, - "DESC": ListAppCatalogListingsSortOrderDesc, -} - -// GetListAppCatalogListingsSortOrderEnumValues Enumerates the set of values for ListAppCatalogListingsSortOrderEnum -func GetListAppCatalogListingsSortOrderEnumValues() []ListAppCatalogListingsSortOrderEnum { - values := make([]ListAppCatalogListingsSortOrderEnum, 0) - for _, v := range mappingListAppCatalogListingsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_subscriptions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_subscriptions_request_response.go deleted file mode 100644 index 62bcc031d0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_app_catalog_subscriptions_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListAppCatalogSubscriptionsRequest wrapper for the ListAppCatalogSubscriptions operation -type ListAppCatalogSubscriptionsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListAppCatalogSubscriptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListAppCatalogSubscriptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only the listings that matches the given listing id. - ListingId *string `mandatory:"false" contributesTo:"query" name:"listingId"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListAppCatalogSubscriptionsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListAppCatalogSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListAppCatalogSubscriptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListAppCatalogSubscriptionsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListAppCatalogSubscriptionsResponse wrapper for the ListAppCatalogSubscriptions operation -type ListAppCatalogSubscriptionsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []AppCatalogSubscriptionSummary instances - Items []AppCatalogSubscriptionSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListAppCatalogSubscriptionsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListAppCatalogSubscriptionsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListAppCatalogSubscriptionsSortByEnum Enum with underlying type: string -type ListAppCatalogSubscriptionsSortByEnum string - -// Set of constants representing the allowable values for ListAppCatalogSubscriptionsSortByEnum -const ( - ListAppCatalogSubscriptionsSortByTimecreated ListAppCatalogSubscriptionsSortByEnum = "TIMECREATED" - ListAppCatalogSubscriptionsSortByDisplayname ListAppCatalogSubscriptionsSortByEnum = "DISPLAYNAME" -) - -var mappingListAppCatalogSubscriptionsSortBy = map[string]ListAppCatalogSubscriptionsSortByEnum{ - "TIMECREATED": ListAppCatalogSubscriptionsSortByTimecreated, - "DISPLAYNAME": ListAppCatalogSubscriptionsSortByDisplayname, -} - -// GetListAppCatalogSubscriptionsSortByEnumValues Enumerates the set of values for ListAppCatalogSubscriptionsSortByEnum -func GetListAppCatalogSubscriptionsSortByEnumValues() []ListAppCatalogSubscriptionsSortByEnum { - values := make([]ListAppCatalogSubscriptionsSortByEnum, 0) - for _, v := range mappingListAppCatalogSubscriptionsSortBy { - values = append(values, v) - } - return values -} - -// ListAppCatalogSubscriptionsSortOrderEnum Enum with underlying type: string -type ListAppCatalogSubscriptionsSortOrderEnum string - -// Set of constants representing the allowable values for ListAppCatalogSubscriptionsSortOrderEnum -const ( - ListAppCatalogSubscriptionsSortOrderAsc ListAppCatalogSubscriptionsSortOrderEnum = "ASC" - ListAppCatalogSubscriptionsSortOrderDesc ListAppCatalogSubscriptionsSortOrderEnum = "DESC" -) - -var mappingListAppCatalogSubscriptionsSortOrder = map[string]ListAppCatalogSubscriptionsSortOrderEnum{ - "ASC": ListAppCatalogSubscriptionsSortOrderAsc, - "DESC": ListAppCatalogSubscriptionsSortOrderDesc, -} - -// GetListAppCatalogSubscriptionsSortOrderEnumValues Enumerates the set of values for ListAppCatalogSubscriptionsSortOrderEnum -func GetListAppCatalogSubscriptionsSortOrderEnumValues() []ListAppCatalogSubscriptionsSortOrderEnum { - values := make([]ListAppCatalogSubscriptionsSortOrderEnum, 0) - for _, v := range mappingListAppCatalogSubscriptionsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_block_volume_replicas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_block_volume_replicas_request_response.go deleted file mode 100644 index bd59fe434d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_block_volume_replicas_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBlockVolumeReplicasRequest wrapper for the ListBlockVolumeReplicas operation -type ListBlockVolumeReplicasRequest struct { - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListBlockVolumeReplicasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListBlockVolumeReplicasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState BlockVolumeReplicaLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBlockVolumeReplicasRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBlockVolumeReplicasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBlockVolumeReplicasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBlockVolumeReplicasRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBlockVolumeReplicasResponse wrapper for the ListBlockVolumeReplicas operation -type ListBlockVolumeReplicasResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []BlockVolumeReplica instances - Items []BlockVolumeReplica `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListBlockVolumeReplicasResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBlockVolumeReplicasResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListBlockVolumeReplicasSortByEnum Enum with underlying type: string -type ListBlockVolumeReplicasSortByEnum string - -// Set of constants representing the allowable values for ListBlockVolumeReplicasSortByEnum -const ( - ListBlockVolumeReplicasSortByTimecreated ListBlockVolumeReplicasSortByEnum = "TIMECREATED" - ListBlockVolumeReplicasSortByDisplayname ListBlockVolumeReplicasSortByEnum = "DISPLAYNAME" -) - -var mappingListBlockVolumeReplicasSortBy = map[string]ListBlockVolumeReplicasSortByEnum{ - "TIMECREATED": ListBlockVolumeReplicasSortByTimecreated, - "DISPLAYNAME": ListBlockVolumeReplicasSortByDisplayname, -} - -// GetListBlockVolumeReplicasSortByEnumValues Enumerates the set of values for ListBlockVolumeReplicasSortByEnum -func GetListBlockVolumeReplicasSortByEnumValues() []ListBlockVolumeReplicasSortByEnum { - values := make([]ListBlockVolumeReplicasSortByEnum, 0) - for _, v := range mappingListBlockVolumeReplicasSortBy { - values = append(values, v) - } - return values -} - -// ListBlockVolumeReplicasSortOrderEnum Enum with underlying type: string -type ListBlockVolumeReplicasSortOrderEnum string - -// Set of constants representing the allowable values for ListBlockVolumeReplicasSortOrderEnum -const ( - ListBlockVolumeReplicasSortOrderAsc ListBlockVolumeReplicasSortOrderEnum = "ASC" - ListBlockVolumeReplicasSortOrderDesc ListBlockVolumeReplicasSortOrderEnum = "DESC" -) - -var mappingListBlockVolumeReplicasSortOrder = map[string]ListBlockVolumeReplicasSortOrderEnum{ - "ASC": ListBlockVolumeReplicasSortOrderAsc, - "DESC": ListBlockVolumeReplicasSortOrderDesc, -} - -// GetListBlockVolumeReplicasSortOrderEnumValues Enumerates the set of values for ListBlockVolumeReplicasSortOrderEnum -func GetListBlockVolumeReplicasSortOrderEnumValues() []ListBlockVolumeReplicasSortOrderEnum { - values := make([]ListBlockVolumeReplicasSortOrderEnum, 0) - for _, v := range mappingListBlockVolumeReplicasSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_backups_request_response.go deleted file mode 100644 index 223595dddf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_backups_request_response.go +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBootVolumeBackupsRequest wrapper for the ListBootVolumeBackups operation -type ListBootVolumeBackupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the boot volume. - BootVolumeId *string `mandatory:"false" contributesTo:"query" name:"bootVolumeId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that originated from the given source boot volume backup. - SourceBootVolumeBackupId *string `mandatory:"false" contributesTo:"query" name:"sourceBootVolumeBackupId"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListBootVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListBootVolumeBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is - // case-insensitive. - LifecycleState BootVolumeBackupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBootVolumeBackupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBootVolumeBackupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBootVolumeBackupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBootVolumeBackupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBootVolumeBackupsResponse wrapper for the ListBootVolumeBackups operation -type ListBootVolumeBackupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []BootVolumeBackup instances - Items []BootVolumeBackup `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListBootVolumeBackupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBootVolumeBackupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListBootVolumeBackupsSortByEnum Enum with underlying type: string -type ListBootVolumeBackupsSortByEnum string - -// Set of constants representing the allowable values for ListBootVolumeBackupsSortByEnum -const ( - ListBootVolumeBackupsSortByTimecreated ListBootVolumeBackupsSortByEnum = "TIMECREATED" - ListBootVolumeBackupsSortByDisplayname ListBootVolumeBackupsSortByEnum = "DISPLAYNAME" -) - -var mappingListBootVolumeBackupsSortBy = map[string]ListBootVolumeBackupsSortByEnum{ - "TIMECREATED": ListBootVolumeBackupsSortByTimecreated, - "DISPLAYNAME": ListBootVolumeBackupsSortByDisplayname, -} - -// GetListBootVolumeBackupsSortByEnumValues Enumerates the set of values for ListBootVolumeBackupsSortByEnum -func GetListBootVolumeBackupsSortByEnumValues() []ListBootVolumeBackupsSortByEnum { - values := make([]ListBootVolumeBackupsSortByEnum, 0) - for _, v := range mappingListBootVolumeBackupsSortBy { - values = append(values, v) - } - return values -} - -// ListBootVolumeBackupsSortOrderEnum Enum with underlying type: string -type ListBootVolumeBackupsSortOrderEnum string - -// Set of constants representing the allowable values for ListBootVolumeBackupsSortOrderEnum -const ( - ListBootVolumeBackupsSortOrderAsc ListBootVolumeBackupsSortOrderEnum = "ASC" - ListBootVolumeBackupsSortOrderDesc ListBootVolumeBackupsSortOrderEnum = "DESC" -) - -var mappingListBootVolumeBackupsSortOrder = map[string]ListBootVolumeBackupsSortOrderEnum{ - "ASC": ListBootVolumeBackupsSortOrderAsc, - "DESC": ListBootVolumeBackupsSortOrderDesc, -} - -// GetListBootVolumeBackupsSortOrderEnumValues Enumerates the set of values for ListBootVolumeBackupsSortOrderEnum -func GetListBootVolumeBackupsSortOrderEnumValues() []ListBootVolumeBackupsSortOrderEnum { - values := make([]ListBootVolumeBackupsSortOrderEnum, 0) - for _, v := range mappingListBootVolumeBackupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_replicas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_replicas_request_response.go deleted file mode 100644 index b16feb85c5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_replicas_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBootVolumeReplicasRequest wrapper for the ListBootVolumeReplicas operation -type ListBootVolumeReplicasRequest struct { - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListBootVolumeReplicasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListBootVolumeReplicasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState BootVolumeReplicaLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBootVolumeReplicasRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBootVolumeReplicasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBootVolumeReplicasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBootVolumeReplicasRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBootVolumeReplicasResponse wrapper for the ListBootVolumeReplicas operation -type ListBootVolumeReplicasResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []BootVolumeReplica instances - Items []BootVolumeReplica `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListBootVolumeReplicasResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBootVolumeReplicasResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListBootVolumeReplicasSortByEnum Enum with underlying type: string -type ListBootVolumeReplicasSortByEnum string - -// Set of constants representing the allowable values for ListBootVolumeReplicasSortByEnum -const ( - ListBootVolumeReplicasSortByTimecreated ListBootVolumeReplicasSortByEnum = "TIMECREATED" - ListBootVolumeReplicasSortByDisplayname ListBootVolumeReplicasSortByEnum = "DISPLAYNAME" -) - -var mappingListBootVolumeReplicasSortBy = map[string]ListBootVolumeReplicasSortByEnum{ - "TIMECREATED": ListBootVolumeReplicasSortByTimecreated, - "DISPLAYNAME": ListBootVolumeReplicasSortByDisplayname, -} - -// GetListBootVolumeReplicasSortByEnumValues Enumerates the set of values for ListBootVolumeReplicasSortByEnum -func GetListBootVolumeReplicasSortByEnumValues() []ListBootVolumeReplicasSortByEnum { - values := make([]ListBootVolumeReplicasSortByEnum, 0) - for _, v := range mappingListBootVolumeReplicasSortBy { - values = append(values, v) - } - return values -} - -// ListBootVolumeReplicasSortOrderEnum Enum with underlying type: string -type ListBootVolumeReplicasSortOrderEnum string - -// Set of constants representing the allowable values for ListBootVolumeReplicasSortOrderEnum -const ( - ListBootVolumeReplicasSortOrderAsc ListBootVolumeReplicasSortOrderEnum = "ASC" - ListBootVolumeReplicasSortOrderDesc ListBootVolumeReplicasSortOrderEnum = "DESC" -) - -var mappingListBootVolumeReplicasSortOrder = map[string]ListBootVolumeReplicasSortOrderEnum{ - "ASC": ListBootVolumeReplicasSortOrderAsc, - "DESC": ListBootVolumeReplicasSortOrderDesc, -} - -// GetListBootVolumeReplicasSortOrderEnumValues Enumerates the set of values for ListBootVolumeReplicasSortOrderEnum -func GetListBootVolumeReplicasSortOrderEnumValues() []ListBootVolumeReplicasSortOrderEnum { - values := make([]ListBootVolumeReplicasSortOrderEnum, 0) - for _, v := range mappingListBootVolumeReplicasSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_ranges_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_ranges_request_response.go deleted file mode 100644 index 21863f95b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_ranges_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListByoipRangesRequest wrapper for the ListByoipRanges operation -type ListByoipRangesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that match the given lifecycle state name exactly. - LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListByoipRangesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListByoipRangesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListByoipRangesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListByoipRangesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListByoipRangesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListByoipRangesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListByoipRangesResponse wrapper for the ListByoipRanges operation -type ListByoipRangesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ByoipRangeCollection instances - ByoipRangeCollection `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListByoipRangesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListByoipRangesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListByoipRangesSortByEnum Enum with underlying type: string -type ListByoipRangesSortByEnum string - -// Set of constants representing the allowable values for ListByoipRangesSortByEnum -const ( - ListByoipRangesSortByTimecreated ListByoipRangesSortByEnum = "TIMECREATED" - ListByoipRangesSortByDisplayname ListByoipRangesSortByEnum = "DISPLAYNAME" -) - -var mappingListByoipRangesSortBy = map[string]ListByoipRangesSortByEnum{ - "TIMECREATED": ListByoipRangesSortByTimecreated, - "DISPLAYNAME": ListByoipRangesSortByDisplayname, -} - -// GetListByoipRangesSortByEnumValues Enumerates the set of values for ListByoipRangesSortByEnum -func GetListByoipRangesSortByEnumValues() []ListByoipRangesSortByEnum { - values := make([]ListByoipRangesSortByEnum, 0) - for _, v := range mappingListByoipRangesSortBy { - values = append(values, v) - } - return values -} - -// ListByoipRangesSortOrderEnum Enum with underlying type: string -type ListByoipRangesSortOrderEnum string - -// Set of constants representing the allowable values for ListByoipRangesSortOrderEnum -const ( - ListByoipRangesSortOrderAsc ListByoipRangesSortOrderEnum = "ASC" - ListByoipRangesSortOrderDesc ListByoipRangesSortOrderEnum = "DESC" -) - -var mappingListByoipRangesSortOrder = map[string]ListByoipRangesSortOrderEnum{ - "ASC": ListByoipRangesSortOrderAsc, - "DESC": ListByoipRangesSortOrderDesc, -} - -// GetListByoipRangesSortOrderEnumValues Enumerates the set of values for ListByoipRangesSortOrderEnum -func GetListByoipRangesSortOrderEnumValues() []ListByoipRangesSortOrderEnum { - values := make([]ListByoipRangesSortOrderEnum, 0) - for _, v := range mappingListByoipRangesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drg_attachments_request_response.go deleted file mode 100644 index b1f6b54a4e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drg_attachments_request_response.go +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListC3DrgAttachmentsRequest wrapper for the ListC3DrgAttachments operation -type ListC3DrgAttachmentsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG. - NetworkId *string `mandatory:"false" contributesTo:"query" name:"networkId"` - - // The type for the network resource attached to the DRG. - AttachmentType ListC3DrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to the DRG attachment. - DrgRouteTableId *string `mandatory:"false" contributesTo:"query" name:"drgRouteTableId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListC3DrgAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListC3DrgAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListC3DrgAttachmentsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListC3DrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListC3DrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListC3DrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListC3DrgAttachmentsResponse wrapper for the ListC3DrgAttachments operation -type ListC3DrgAttachmentsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgAttachment instances - Items []DrgAttachment `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListC3DrgAttachmentsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListC3DrgAttachmentsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListC3DrgAttachmentsAttachmentTypeEnum Enum with underlying type: string -type ListC3DrgAttachmentsAttachmentTypeEnum string - -// Set of constants representing the allowable values for ListC3DrgAttachmentsAttachmentTypeEnum -const ( - ListC3DrgAttachmentsAttachmentTypeVcn ListC3DrgAttachmentsAttachmentTypeEnum = "VCN" - ListC3DrgAttachmentsAttachmentTypeVirtualCircuit ListC3DrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" - ListC3DrgAttachmentsAttachmentTypeRemotePeeringConnection ListC3DrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" - ListC3DrgAttachmentsAttachmentTypeIpsecTunnel ListC3DrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" - ListC3DrgAttachmentsAttachmentTypeAll ListC3DrgAttachmentsAttachmentTypeEnum = "ALL" -) - -var mappingListC3DrgAttachmentsAttachmentType = map[string]ListC3DrgAttachmentsAttachmentTypeEnum{ - "VCN": ListC3DrgAttachmentsAttachmentTypeVcn, - "VIRTUAL_CIRCUIT": ListC3DrgAttachmentsAttachmentTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": ListC3DrgAttachmentsAttachmentTypeRemotePeeringConnection, - "IPSEC_TUNNEL": ListC3DrgAttachmentsAttachmentTypeIpsecTunnel, - "ALL": ListC3DrgAttachmentsAttachmentTypeAll, -} - -// GetListC3DrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for ListC3DrgAttachmentsAttachmentTypeEnum -func GetListC3DrgAttachmentsAttachmentTypeEnumValues() []ListC3DrgAttachmentsAttachmentTypeEnum { - values := make([]ListC3DrgAttachmentsAttachmentTypeEnum, 0) - for _, v := range mappingListC3DrgAttachmentsAttachmentType { - values = append(values, v) - } - return values -} - -// ListC3DrgAttachmentsSortByEnum Enum with underlying type: string -type ListC3DrgAttachmentsSortByEnum string - -// Set of constants representing the allowable values for ListC3DrgAttachmentsSortByEnum -const ( - ListC3DrgAttachmentsSortByTimecreated ListC3DrgAttachmentsSortByEnum = "TIMECREATED" - ListC3DrgAttachmentsSortByDisplayname ListC3DrgAttachmentsSortByEnum = "DISPLAYNAME" -) - -var mappingListC3DrgAttachmentsSortBy = map[string]ListC3DrgAttachmentsSortByEnum{ - "TIMECREATED": ListC3DrgAttachmentsSortByTimecreated, - "DISPLAYNAME": ListC3DrgAttachmentsSortByDisplayname, -} - -// GetListC3DrgAttachmentsSortByEnumValues Enumerates the set of values for ListC3DrgAttachmentsSortByEnum -func GetListC3DrgAttachmentsSortByEnumValues() []ListC3DrgAttachmentsSortByEnum { - values := make([]ListC3DrgAttachmentsSortByEnum, 0) - for _, v := range mappingListC3DrgAttachmentsSortBy { - values = append(values, v) - } - return values -} - -// ListC3DrgAttachmentsSortOrderEnum Enum with underlying type: string -type ListC3DrgAttachmentsSortOrderEnum string - -// Set of constants representing the allowable values for ListC3DrgAttachmentsSortOrderEnum -const ( - ListC3DrgAttachmentsSortOrderAsc ListC3DrgAttachmentsSortOrderEnum = "ASC" - ListC3DrgAttachmentsSortOrderDesc ListC3DrgAttachmentsSortOrderEnum = "DESC" -) - -var mappingListC3DrgAttachmentsSortOrder = map[string]ListC3DrgAttachmentsSortOrderEnum{ - "ASC": ListC3DrgAttachmentsSortOrderAsc, - "DESC": ListC3DrgAttachmentsSortOrderDesc, -} - -// GetListC3DrgAttachmentsSortOrderEnumValues Enumerates the set of values for ListC3DrgAttachmentsSortOrderEnum -func GetListC3DrgAttachmentsSortOrderEnumValues() []ListC3DrgAttachmentsSortOrderEnum { - values := make([]ListC3DrgAttachmentsSortOrderEnum, 0) - for _, v := range mappingListC3DrgAttachmentsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_capture_filters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_capture_filters_request_response.go deleted file mode 100644 index d4be3a8d1b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_capture_filters_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListCaptureFiltersRequest wrapper for the ListCaptureFilters operation -type ListCaptureFiltersRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListCaptureFiltersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListCaptureFiltersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that match the given capture filter lifecycle state. - // The state value is case-insensitive. - LifecycleState CaptureFilterLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCaptureFiltersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCaptureFiltersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCaptureFiltersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCaptureFiltersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListCaptureFiltersResponse wrapper for the ListCaptureFilters operation -type ListCaptureFiltersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []CaptureFilter instances - Items []CaptureFilter `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListCaptureFiltersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCaptureFiltersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCaptureFiltersSortByEnum Enum with underlying type: string -type ListCaptureFiltersSortByEnum string - -// Set of constants representing the allowable values for ListCaptureFiltersSortByEnum -const ( - ListCaptureFiltersSortByTimecreated ListCaptureFiltersSortByEnum = "TIMECREATED" - ListCaptureFiltersSortByDisplayname ListCaptureFiltersSortByEnum = "DISPLAYNAME" -) - -var mappingListCaptureFiltersSortBy = map[string]ListCaptureFiltersSortByEnum{ - "TIMECREATED": ListCaptureFiltersSortByTimecreated, - "DISPLAYNAME": ListCaptureFiltersSortByDisplayname, -} - -// GetListCaptureFiltersSortByEnumValues Enumerates the set of values for ListCaptureFiltersSortByEnum -func GetListCaptureFiltersSortByEnumValues() []ListCaptureFiltersSortByEnum { - values := make([]ListCaptureFiltersSortByEnum, 0) - for _, v := range mappingListCaptureFiltersSortBy { - values = append(values, v) - } - return values -} - -// ListCaptureFiltersSortOrderEnum Enum with underlying type: string -type ListCaptureFiltersSortOrderEnum string - -// Set of constants representing the allowable values for ListCaptureFiltersSortOrderEnum -const ( - ListCaptureFiltersSortOrderAsc ListCaptureFiltersSortOrderEnum = "ASC" - ListCaptureFiltersSortOrderDesc ListCaptureFiltersSortOrderEnum = "DESC" -) - -var mappingListCaptureFiltersSortOrder = map[string]ListCaptureFiltersSortOrderEnum{ - "ASC": ListCaptureFiltersSortOrderAsc, - "DESC": ListCaptureFiltersSortOrderDesc, -} - -// GetListCaptureFiltersSortOrderEnumValues Enumerates the set of values for ListCaptureFiltersSortOrderEnum -func GetListCaptureFiltersSortOrderEnumValues() []ListCaptureFiltersSortOrderEnum { - values := make([]ListCaptureFiltersSortOrderEnum, 0) - for _, v := range mappingListCaptureFiltersSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpn_users_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpn_users_request_response.go deleted file mode 100644 index 9ff7be42e8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpn_users_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListClientVpnUsersRequest wrapper for the ListClientVpnUsers operation -type ListClientVpnUsersRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. - ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListClientVpnUsersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListClientVpnUsersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListClientVpnUsersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListClientVpnUsersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListClientVpnUsersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListClientVpnUsersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListClientVpnUsersResponse wrapper for the ListClientVpnUsers operation -type ListClientVpnUsersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ClientVpnUserSummaryCollection instances - ClientVpnUserSummaryCollection `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListClientVpnUsersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListClientVpnUsersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListClientVpnUsersSortByEnum Enum with underlying type: string -type ListClientVpnUsersSortByEnum string - -// Set of constants representing the allowable values for ListClientVpnUsersSortByEnum -const ( - ListClientVpnUsersSortByTimecreated ListClientVpnUsersSortByEnum = "TIMECREATED" - ListClientVpnUsersSortByDisplayname ListClientVpnUsersSortByEnum = "DISPLAYNAME" -) - -var mappingListClientVpnUsersSortBy = map[string]ListClientVpnUsersSortByEnum{ - "TIMECREATED": ListClientVpnUsersSortByTimecreated, - "DISPLAYNAME": ListClientVpnUsersSortByDisplayname, -} - -// GetListClientVpnUsersSortByEnumValues Enumerates the set of values for ListClientVpnUsersSortByEnum -func GetListClientVpnUsersSortByEnumValues() []ListClientVpnUsersSortByEnum { - values := make([]ListClientVpnUsersSortByEnum, 0) - for _, v := range mappingListClientVpnUsersSortBy { - values = append(values, v) - } - return values -} - -// ListClientVpnUsersSortOrderEnum Enum with underlying type: string -type ListClientVpnUsersSortOrderEnum string - -// Set of constants representing the allowable values for ListClientVpnUsersSortOrderEnum -const ( - ListClientVpnUsersSortOrderAsc ListClientVpnUsersSortOrderEnum = "ASC" - ListClientVpnUsersSortOrderDesc ListClientVpnUsersSortOrderEnum = "DESC" -) - -var mappingListClientVpnUsersSortOrder = map[string]ListClientVpnUsersSortOrderEnum{ - "ASC": ListClientVpnUsersSortOrderAsc, - "DESC": ListClientVpnUsersSortOrderDesc, -} - -// GetListClientVpnUsersSortOrderEnumValues Enumerates the set of values for ListClientVpnUsersSortOrderEnum -func GetListClientVpnUsersSortOrderEnumValues() []ListClientVpnUsersSortOrderEnum { - values := make([]ListClientVpnUsersSortOrderEnum, 0) - for _, v := range mappingListClientVpnUsersSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpns_request_response.go deleted file mode 100644 index cb2c278e93..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_client_vpns_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListClientVpnsRequest wrapper for the ListClientVpns operation -type ListClientVpnsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListClientVpnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListClientVpnsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListClientVpnsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListClientVpnsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListClientVpnsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListClientVpnsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListClientVpnsResponse wrapper for the ListClientVpns operation -type ListClientVpnsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ClientVpnSummaryCollection instances - ClientVpnSummaryCollection `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListClientVpnsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListClientVpnsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListClientVpnsSortByEnum Enum with underlying type: string -type ListClientVpnsSortByEnum string - -// Set of constants representing the allowable values for ListClientVpnsSortByEnum -const ( - ListClientVpnsSortByTimecreated ListClientVpnsSortByEnum = "TIMECREATED" - ListClientVpnsSortByDisplayname ListClientVpnsSortByEnum = "DISPLAYNAME" -) - -var mappingListClientVpnsSortBy = map[string]ListClientVpnsSortByEnum{ - "TIMECREATED": ListClientVpnsSortByTimecreated, - "DISPLAYNAME": ListClientVpnsSortByDisplayname, -} - -// GetListClientVpnsSortByEnumValues Enumerates the set of values for ListClientVpnsSortByEnum -func GetListClientVpnsSortByEnumValues() []ListClientVpnsSortByEnum { - values := make([]ListClientVpnsSortByEnum, 0) - for _, v := range mappingListClientVpnsSortBy { - values = append(values, v) - } - return values -} - -// ListClientVpnsSortOrderEnum Enum with underlying type: string -type ListClientVpnsSortOrderEnum string - -// Set of constants representing the allowable values for ListClientVpnsSortOrderEnum -const ( - ListClientVpnsSortOrderAsc ListClientVpnsSortOrderEnum = "ASC" - ListClientVpnsSortOrderDesc ListClientVpnsSortOrderEnum = "DESC" -) - -var mappingListClientVpnsSortOrder = map[string]ListClientVpnsSortOrderEnum{ - "ASC": ListClientVpnsSortOrderAsc, - "DESC": ListClientVpnsSortOrderDesc, -} - -// GetListClientVpnsSortOrderEnumValues Enumerates the set of values for ListClientVpnsSortOrderEnum -func GetListClientVpnsSortOrderEnumValues() []ListClientVpnsSortOrderEnum { - values := make([]ListClientVpnsSortOrderEnum, 0) - for _, v := range mappingListClientVpnsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_network_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_network_instances_request_response.go deleted file mode 100644 index 8855189d2a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_network_instances_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListClusterNetworkInstancesRequest wrapper for the ListClusterNetworkInstances operation -type ListClusterNetworkInstancesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. - ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListClusterNetworkInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListClusterNetworkInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListClusterNetworkInstancesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListClusterNetworkInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListClusterNetworkInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListClusterNetworkInstancesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListClusterNetworkInstancesResponse wrapper for the ListClusterNetworkInstances operation -type ListClusterNetworkInstancesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InstanceSummary instances - Items []InstanceSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListClusterNetworkInstancesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListClusterNetworkInstancesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListClusterNetworkInstancesSortByEnum Enum with underlying type: string -type ListClusterNetworkInstancesSortByEnum string - -// Set of constants representing the allowable values for ListClusterNetworkInstancesSortByEnum -const ( - ListClusterNetworkInstancesSortByTimecreated ListClusterNetworkInstancesSortByEnum = "TIMECREATED" - ListClusterNetworkInstancesSortByDisplayname ListClusterNetworkInstancesSortByEnum = "DISPLAYNAME" -) - -var mappingListClusterNetworkInstancesSortBy = map[string]ListClusterNetworkInstancesSortByEnum{ - "TIMECREATED": ListClusterNetworkInstancesSortByTimecreated, - "DISPLAYNAME": ListClusterNetworkInstancesSortByDisplayname, -} - -// GetListClusterNetworkInstancesSortByEnumValues Enumerates the set of values for ListClusterNetworkInstancesSortByEnum -func GetListClusterNetworkInstancesSortByEnumValues() []ListClusterNetworkInstancesSortByEnum { - values := make([]ListClusterNetworkInstancesSortByEnum, 0) - for _, v := range mappingListClusterNetworkInstancesSortBy { - values = append(values, v) - } - return values -} - -// ListClusterNetworkInstancesSortOrderEnum Enum with underlying type: string -type ListClusterNetworkInstancesSortOrderEnum string - -// Set of constants representing the allowable values for ListClusterNetworkInstancesSortOrderEnum -const ( - ListClusterNetworkInstancesSortOrderAsc ListClusterNetworkInstancesSortOrderEnum = "ASC" - ListClusterNetworkInstancesSortOrderDesc ListClusterNetworkInstancesSortOrderEnum = "DESC" -) - -var mappingListClusterNetworkInstancesSortOrder = map[string]ListClusterNetworkInstancesSortOrderEnum{ - "ASC": ListClusterNetworkInstancesSortOrderAsc, - "DESC": ListClusterNetworkInstancesSortOrderDesc, -} - -// GetListClusterNetworkInstancesSortOrderEnumValues Enumerates the set of values for ListClusterNetworkInstancesSortOrderEnum -func GetListClusterNetworkInstancesSortOrderEnumValues() []ListClusterNetworkInstancesSortOrderEnum { - values := make([]ListClusterNetworkInstancesSortOrderEnum, 0) - for _, v := range mappingListClusterNetworkInstancesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_networks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_networks_request_response.go deleted file mode 100644 index 10f7bf395e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cluster_networks_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListClusterNetworksRequest wrapper for the ListClusterNetworks operation -type ListClusterNetworksRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListClusterNetworksSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListClusterNetworksSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState ClusterNetworkSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListClusterNetworksRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListClusterNetworksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListClusterNetworksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListClusterNetworksRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListClusterNetworksResponse wrapper for the ListClusterNetworks operation -type ListClusterNetworksResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ClusterNetworkSummary instances - Items []ClusterNetworkSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListClusterNetworksResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListClusterNetworksResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListClusterNetworksSortByEnum Enum with underlying type: string -type ListClusterNetworksSortByEnum string - -// Set of constants representing the allowable values for ListClusterNetworksSortByEnum -const ( - ListClusterNetworksSortByTimecreated ListClusterNetworksSortByEnum = "TIMECREATED" - ListClusterNetworksSortByDisplayname ListClusterNetworksSortByEnum = "DISPLAYNAME" -) - -var mappingListClusterNetworksSortBy = map[string]ListClusterNetworksSortByEnum{ - "TIMECREATED": ListClusterNetworksSortByTimecreated, - "DISPLAYNAME": ListClusterNetworksSortByDisplayname, -} - -// GetListClusterNetworksSortByEnumValues Enumerates the set of values for ListClusterNetworksSortByEnum -func GetListClusterNetworksSortByEnumValues() []ListClusterNetworksSortByEnum { - values := make([]ListClusterNetworksSortByEnum, 0) - for _, v := range mappingListClusterNetworksSortBy { - values = append(values, v) - } - return values -} - -// ListClusterNetworksSortOrderEnum Enum with underlying type: string -type ListClusterNetworksSortOrderEnum string - -// Set of constants representing the allowable values for ListClusterNetworksSortOrderEnum -const ( - ListClusterNetworksSortOrderAsc ListClusterNetworksSortOrderEnum = "ASC" - ListClusterNetworksSortOrderDesc ListClusterNetworksSortOrderEnum = "DESC" -) - -var mappingListClusterNetworksSortOrder = map[string]ListClusterNetworksSortOrderEnum{ - "ASC": ListClusterNetworksSortOrderAsc, - "DESC": ListClusterNetworksSortOrderDesc, -} - -// GetListClusterNetworksSortOrderEnumValues Enumerates the set of values for ListClusterNetworksSortOrderEnum -func GetListClusterNetworksSortOrderEnumValues() []ListClusterNetworksSortOrderEnum { - values := make([]ListClusterNetworksSortOrderEnum, 0) - for _, v := range mappingListClusterNetworksSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instance_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instance_shapes_request_response.go deleted file mode 100644 index 4e3f60d5da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instance_shapes_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeCapacityReservationInstanceShapesRequest wrapper for the ListComputeCapacityReservationInstanceShapes operation -type ListComputeCapacityReservationInstanceShapesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeCapacityReservationInstanceShapesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeCapacityReservationInstanceShapesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeCapacityReservationInstanceShapesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeCapacityReservationInstanceShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeCapacityReservationInstanceShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeCapacityReservationInstanceShapesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeCapacityReservationInstanceShapesResponse wrapper for the ListComputeCapacityReservationInstanceShapes operation -type ListComputeCapacityReservationInstanceShapesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ComputeCapacityReservationInstanceShapeSummary instances - Items []ComputeCapacityReservationInstanceShapeSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeCapacityReservationInstanceShapesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeCapacityReservationInstanceShapesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeCapacityReservationInstanceShapesSortByEnum Enum with underlying type: string -type ListComputeCapacityReservationInstanceShapesSortByEnum string - -// Set of constants representing the allowable values for ListComputeCapacityReservationInstanceShapesSortByEnum -const ( - ListComputeCapacityReservationInstanceShapesSortByTimecreated ListComputeCapacityReservationInstanceShapesSortByEnum = "TIMECREATED" - ListComputeCapacityReservationInstanceShapesSortByDisplayname ListComputeCapacityReservationInstanceShapesSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeCapacityReservationInstanceShapesSortBy = map[string]ListComputeCapacityReservationInstanceShapesSortByEnum{ - "TIMECREATED": ListComputeCapacityReservationInstanceShapesSortByTimecreated, - "DISPLAYNAME": ListComputeCapacityReservationInstanceShapesSortByDisplayname, -} - -// GetListComputeCapacityReservationInstanceShapesSortByEnumValues Enumerates the set of values for ListComputeCapacityReservationInstanceShapesSortByEnum -func GetListComputeCapacityReservationInstanceShapesSortByEnumValues() []ListComputeCapacityReservationInstanceShapesSortByEnum { - values := make([]ListComputeCapacityReservationInstanceShapesSortByEnum, 0) - for _, v := range mappingListComputeCapacityReservationInstanceShapesSortBy { - values = append(values, v) - } - return values -} - -// ListComputeCapacityReservationInstanceShapesSortOrderEnum Enum with underlying type: string -type ListComputeCapacityReservationInstanceShapesSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeCapacityReservationInstanceShapesSortOrderEnum -const ( - ListComputeCapacityReservationInstanceShapesSortOrderAsc ListComputeCapacityReservationInstanceShapesSortOrderEnum = "ASC" - ListComputeCapacityReservationInstanceShapesSortOrderDesc ListComputeCapacityReservationInstanceShapesSortOrderEnum = "DESC" -) - -var mappingListComputeCapacityReservationInstanceShapesSortOrder = map[string]ListComputeCapacityReservationInstanceShapesSortOrderEnum{ - "ASC": ListComputeCapacityReservationInstanceShapesSortOrderAsc, - "DESC": ListComputeCapacityReservationInstanceShapesSortOrderDesc, -} - -// GetListComputeCapacityReservationInstanceShapesSortOrderEnumValues Enumerates the set of values for ListComputeCapacityReservationInstanceShapesSortOrderEnum -func GetListComputeCapacityReservationInstanceShapesSortOrderEnumValues() []ListComputeCapacityReservationInstanceShapesSortOrderEnum { - values := make([]ListComputeCapacityReservationInstanceShapesSortOrderEnum, 0) - for _, v := range mappingListComputeCapacityReservationInstanceShapesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instances_request_response.go deleted file mode 100644 index 2d4318e380..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservation_instances_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeCapacityReservationInstancesRequest wrapper for the ListComputeCapacityReservationInstances operation -type ListComputeCapacityReservationInstancesRequest struct { - - // The OCID of the compute capacity reservation. - CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeCapacityReservationInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeCapacityReservationInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeCapacityReservationInstancesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeCapacityReservationInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeCapacityReservationInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeCapacityReservationInstancesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeCapacityReservationInstancesResponse wrapper for the ListComputeCapacityReservationInstances operation -type ListComputeCapacityReservationInstancesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []CapacityReservationInstanceSummary instances - Items []CapacityReservationInstanceSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeCapacityReservationInstancesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeCapacityReservationInstancesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeCapacityReservationInstancesSortByEnum Enum with underlying type: string -type ListComputeCapacityReservationInstancesSortByEnum string - -// Set of constants representing the allowable values for ListComputeCapacityReservationInstancesSortByEnum -const ( - ListComputeCapacityReservationInstancesSortByTimecreated ListComputeCapacityReservationInstancesSortByEnum = "TIMECREATED" - ListComputeCapacityReservationInstancesSortByDisplayname ListComputeCapacityReservationInstancesSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeCapacityReservationInstancesSortBy = map[string]ListComputeCapacityReservationInstancesSortByEnum{ - "TIMECREATED": ListComputeCapacityReservationInstancesSortByTimecreated, - "DISPLAYNAME": ListComputeCapacityReservationInstancesSortByDisplayname, -} - -// GetListComputeCapacityReservationInstancesSortByEnumValues Enumerates the set of values for ListComputeCapacityReservationInstancesSortByEnum -func GetListComputeCapacityReservationInstancesSortByEnumValues() []ListComputeCapacityReservationInstancesSortByEnum { - values := make([]ListComputeCapacityReservationInstancesSortByEnum, 0) - for _, v := range mappingListComputeCapacityReservationInstancesSortBy { - values = append(values, v) - } - return values -} - -// ListComputeCapacityReservationInstancesSortOrderEnum Enum with underlying type: string -type ListComputeCapacityReservationInstancesSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeCapacityReservationInstancesSortOrderEnum -const ( - ListComputeCapacityReservationInstancesSortOrderAsc ListComputeCapacityReservationInstancesSortOrderEnum = "ASC" - ListComputeCapacityReservationInstancesSortOrderDesc ListComputeCapacityReservationInstancesSortOrderEnum = "DESC" -) - -var mappingListComputeCapacityReservationInstancesSortOrder = map[string]ListComputeCapacityReservationInstancesSortOrderEnum{ - "ASC": ListComputeCapacityReservationInstancesSortOrderAsc, - "DESC": ListComputeCapacityReservationInstancesSortOrderDesc, -} - -// GetListComputeCapacityReservationInstancesSortOrderEnumValues Enumerates the set of values for ListComputeCapacityReservationInstancesSortOrderEnum -func GetListComputeCapacityReservationInstancesSortOrderEnumValues() []ListComputeCapacityReservationInstancesSortOrderEnum { - values := make([]ListComputeCapacityReservationInstancesSortOrderEnum, 0) - for _, v := range mappingListComputeCapacityReservationInstancesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservations_request_response.go deleted file mode 100644 index 37d7808f01..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_capacity_reservations_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeCapacityReservationsRequest wrapper for the ListComputeCapacityReservations operation -type ListComputeCapacityReservationsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // A filter to only return resources that match the given lifecycle state. - LifecycleState ComputeCapacityReservationLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeCapacityReservationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeCapacityReservationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeCapacityReservationsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeCapacityReservationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeCapacityReservationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeCapacityReservationsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeCapacityReservationsResponse wrapper for the ListComputeCapacityReservations operation -type ListComputeCapacityReservationsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ComputeCapacityReservationSummary instances - Items []ComputeCapacityReservationSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeCapacityReservationsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeCapacityReservationsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeCapacityReservationsSortByEnum Enum with underlying type: string -type ListComputeCapacityReservationsSortByEnum string - -// Set of constants representing the allowable values for ListComputeCapacityReservationsSortByEnum -const ( - ListComputeCapacityReservationsSortByTimecreated ListComputeCapacityReservationsSortByEnum = "TIMECREATED" - ListComputeCapacityReservationsSortByDisplayname ListComputeCapacityReservationsSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeCapacityReservationsSortBy = map[string]ListComputeCapacityReservationsSortByEnum{ - "TIMECREATED": ListComputeCapacityReservationsSortByTimecreated, - "DISPLAYNAME": ListComputeCapacityReservationsSortByDisplayname, -} - -// GetListComputeCapacityReservationsSortByEnumValues Enumerates the set of values for ListComputeCapacityReservationsSortByEnum -func GetListComputeCapacityReservationsSortByEnumValues() []ListComputeCapacityReservationsSortByEnum { - values := make([]ListComputeCapacityReservationsSortByEnum, 0) - for _, v := range mappingListComputeCapacityReservationsSortBy { - values = append(values, v) - } - return values -} - -// ListComputeCapacityReservationsSortOrderEnum Enum with underlying type: string -type ListComputeCapacityReservationsSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeCapacityReservationsSortOrderEnum -const ( - ListComputeCapacityReservationsSortOrderAsc ListComputeCapacityReservationsSortOrderEnum = "ASC" - ListComputeCapacityReservationsSortOrderDesc ListComputeCapacityReservationsSortOrderEnum = "DESC" -) - -var mappingListComputeCapacityReservationsSortOrder = map[string]ListComputeCapacityReservationsSortOrderEnum{ - "ASC": ListComputeCapacityReservationsSortOrderAsc, - "DESC": ListComputeCapacityReservationsSortOrderDesc, -} - -// GetListComputeCapacityReservationsSortOrderEnumValues Enumerates the set of values for ListComputeCapacityReservationsSortOrderEnum -func GetListComputeCapacityReservationsSortOrderEnumValues() []ListComputeCapacityReservationsSortOrderEnum { - values := make([]ListComputeCapacityReservationsSortOrderEnum, 0) - for _, v := range mappingListComputeCapacityReservationsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_clusters_request_response.go deleted file mode 100644 index 3ccdcb3760..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_clusters_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeClustersRequest wrapper for the ListComputeClusters operation -type ListComputeClustersRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeClustersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeClustersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeClustersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeClustersResponse wrapper for the ListComputeClusters operation -type ListComputeClustersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ComputeClusterCollection instances - ComputeClusterCollection `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeClustersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeClustersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeClustersSortByEnum Enum with underlying type: string -type ListComputeClustersSortByEnum string - -// Set of constants representing the allowable values for ListComputeClustersSortByEnum -const ( - ListComputeClustersSortByTimecreated ListComputeClustersSortByEnum = "TIMECREATED" - ListComputeClustersSortByDisplayname ListComputeClustersSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeClustersSortBy = map[string]ListComputeClustersSortByEnum{ - "TIMECREATED": ListComputeClustersSortByTimecreated, - "DISPLAYNAME": ListComputeClustersSortByDisplayname, -} - -// GetListComputeClustersSortByEnumValues Enumerates the set of values for ListComputeClustersSortByEnum -func GetListComputeClustersSortByEnumValues() []ListComputeClustersSortByEnum { - values := make([]ListComputeClustersSortByEnum, 0) - for _, v := range mappingListComputeClustersSortBy { - values = append(values, v) - } - return values -} - -// ListComputeClustersSortOrderEnum Enum with underlying type: string -type ListComputeClustersSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeClustersSortOrderEnum -const ( - ListComputeClustersSortOrderAsc ListComputeClustersSortOrderEnum = "ASC" - ListComputeClustersSortOrderDesc ListComputeClustersSortOrderEnum = "DESC" -) - -var mappingListComputeClustersSortOrder = map[string]ListComputeClustersSortOrderEnum{ - "ASC": ListComputeClustersSortOrderAsc, - "DESC": ListComputeClustersSortOrderDesc, -} - -// GetListComputeClustersSortOrderEnumValues Enumerates the set of values for ListComputeClustersSortOrderEnum -func GetListComputeClustersSortOrderEnumValues() []ListComputeClustersSortOrderEnum { - values := make([]ListComputeClustersSortOrderEnum, 0) - for _, v := range mappingListComputeClustersSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schema_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schema_versions_request_response.go deleted file mode 100644 index a228b26241..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schema_versions_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeGlobalImageCapabilitySchemaVersionsRequest wrapper for the ListComputeGlobalImageCapabilitySchemaVersions operation -type ListComputeGlobalImageCapabilitySchemaVersionsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema - ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeGlobalImageCapabilitySchemaVersionsResponse wrapper for the ListComputeGlobalImageCapabilitySchemaVersions operation -type ListComputeGlobalImageCapabilitySchemaVersionsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ComputeGlobalImageCapabilitySchemaVersionSummary instances - Items []ComputeGlobalImageCapabilitySchemaVersionSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeGlobalImageCapabilitySchemaVersionsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeGlobalImageCapabilitySchemaVersionsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum Enum with underlying type: string -type ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum string - -// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum -const ( - ListComputeGlobalImageCapabilitySchemaVersionsSortByTimecreated ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum = "TIMECREATED" - ListComputeGlobalImageCapabilitySchemaVersionsSortByDisplayname ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeGlobalImageCapabilitySchemaVersionsSortBy = map[string]ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum{ - "TIMECREATED": ListComputeGlobalImageCapabilitySchemaVersionsSortByTimecreated, - "DISPLAYNAME": ListComputeGlobalImageCapabilitySchemaVersionsSortByDisplayname, -} - -// GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum -func GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumValues() []ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum { - values := make([]ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum, 0) - for _, v := range mappingListComputeGlobalImageCapabilitySchemaVersionsSortBy { - values = append(values, v) - } - return values -} - -// ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum Enum with underlying type: string -type ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum -const ( - ListComputeGlobalImageCapabilitySchemaVersionsSortOrderAsc ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum = "ASC" - ListComputeGlobalImageCapabilitySchemaVersionsSortOrderDesc ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum = "DESC" -) - -var mappingListComputeGlobalImageCapabilitySchemaVersionsSortOrder = map[string]ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum{ - "ASC": ListComputeGlobalImageCapabilitySchemaVersionsSortOrderAsc, - "DESC": ListComputeGlobalImageCapabilitySchemaVersionsSortOrderDesc, -} - -// GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum -func GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumValues() []ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum { - values := make([]ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum, 0) - for _, v := range mappingListComputeGlobalImageCapabilitySchemaVersionsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schemas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schemas_request_response.go deleted file mode 100644 index d94ca8c142..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_global_image_capability_schemas_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeGlobalImageCapabilitySchemasRequest wrapper for the ListComputeGlobalImageCapabilitySchemas operation -type ListComputeGlobalImageCapabilitySchemasRequest struct { - - // A filter to return only resources that match the given compartment OCID exactly. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeGlobalImageCapabilitySchemasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeGlobalImageCapabilitySchemasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeGlobalImageCapabilitySchemasRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeGlobalImageCapabilitySchemasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeGlobalImageCapabilitySchemasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeGlobalImageCapabilitySchemasRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeGlobalImageCapabilitySchemasResponse wrapper for the ListComputeGlobalImageCapabilitySchemas operation -type ListComputeGlobalImageCapabilitySchemasResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ComputeGlobalImageCapabilitySchemaSummary instances - Items []ComputeGlobalImageCapabilitySchemaSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeGlobalImageCapabilitySchemasResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeGlobalImageCapabilitySchemasResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeGlobalImageCapabilitySchemasSortByEnum Enum with underlying type: string -type ListComputeGlobalImageCapabilitySchemasSortByEnum string - -// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemasSortByEnum -const ( - ListComputeGlobalImageCapabilitySchemasSortByTimecreated ListComputeGlobalImageCapabilitySchemasSortByEnum = "TIMECREATED" - ListComputeGlobalImageCapabilitySchemasSortByDisplayname ListComputeGlobalImageCapabilitySchemasSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeGlobalImageCapabilitySchemasSortBy = map[string]ListComputeGlobalImageCapabilitySchemasSortByEnum{ - "TIMECREATED": ListComputeGlobalImageCapabilitySchemasSortByTimecreated, - "DISPLAYNAME": ListComputeGlobalImageCapabilitySchemasSortByDisplayname, -} - -// GetListComputeGlobalImageCapabilitySchemasSortByEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemasSortByEnum -func GetListComputeGlobalImageCapabilitySchemasSortByEnumValues() []ListComputeGlobalImageCapabilitySchemasSortByEnum { - values := make([]ListComputeGlobalImageCapabilitySchemasSortByEnum, 0) - for _, v := range mappingListComputeGlobalImageCapabilitySchemasSortBy { - values = append(values, v) - } - return values -} - -// ListComputeGlobalImageCapabilitySchemasSortOrderEnum Enum with underlying type: string -type ListComputeGlobalImageCapabilitySchemasSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemasSortOrderEnum -const ( - ListComputeGlobalImageCapabilitySchemasSortOrderAsc ListComputeGlobalImageCapabilitySchemasSortOrderEnum = "ASC" - ListComputeGlobalImageCapabilitySchemasSortOrderDesc ListComputeGlobalImageCapabilitySchemasSortOrderEnum = "DESC" -) - -var mappingListComputeGlobalImageCapabilitySchemasSortOrder = map[string]ListComputeGlobalImageCapabilitySchemasSortOrderEnum{ - "ASC": ListComputeGlobalImageCapabilitySchemasSortOrderAsc, - "DESC": ListComputeGlobalImageCapabilitySchemasSortOrderDesc, -} - -// GetListComputeGlobalImageCapabilitySchemasSortOrderEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemasSortOrderEnum -func GetListComputeGlobalImageCapabilitySchemasSortOrderEnumValues() []ListComputeGlobalImageCapabilitySchemasSortOrderEnum { - values := make([]ListComputeGlobalImageCapabilitySchemasSortOrderEnum, 0) - for _, v := range mappingListComputeGlobalImageCapabilitySchemasSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_image_capability_schemas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_image_capability_schemas_request_response.go deleted file mode 100644 index e010c8fd15..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_compute_image_capability_schemas_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListComputeImageCapabilitySchemasRequest wrapper for the ListComputeImageCapabilitySchemas operation -type ListComputeImageCapabilitySchemasRequest struct { - - // A filter to return only resources that match the given compartment OCID exactly. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an image. - ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListComputeImageCapabilitySchemasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListComputeImageCapabilitySchemasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListComputeImageCapabilitySchemasRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListComputeImageCapabilitySchemasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListComputeImageCapabilitySchemasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListComputeImageCapabilitySchemasRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListComputeImageCapabilitySchemasResponse wrapper for the ListComputeImageCapabilitySchemas operation -type ListComputeImageCapabilitySchemasResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ComputeImageCapabilitySchemaSummary instances - Items []ComputeImageCapabilitySchemaSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListComputeImageCapabilitySchemasResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListComputeImageCapabilitySchemasResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListComputeImageCapabilitySchemasSortByEnum Enum with underlying type: string -type ListComputeImageCapabilitySchemasSortByEnum string - -// Set of constants representing the allowable values for ListComputeImageCapabilitySchemasSortByEnum -const ( - ListComputeImageCapabilitySchemasSortByTimecreated ListComputeImageCapabilitySchemasSortByEnum = "TIMECREATED" - ListComputeImageCapabilitySchemasSortByDisplayname ListComputeImageCapabilitySchemasSortByEnum = "DISPLAYNAME" -) - -var mappingListComputeImageCapabilitySchemasSortBy = map[string]ListComputeImageCapabilitySchemasSortByEnum{ - "TIMECREATED": ListComputeImageCapabilitySchemasSortByTimecreated, - "DISPLAYNAME": ListComputeImageCapabilitySchemasSortByDisplayname, -} - -// GetListComputeImageCapabilitySchemasSortByEnumValues Enumerates the set of values for ListComputeImageCapabilitySchemasSortByEnum -func GetListComputeImageCapabilitySchemasSortByEnumValues() []ListComputeImageCapabilitySchemasSortByEnum { - values := make([]ListComputeImageCapabilitySchemasSortByEnum, 0) - for _, v := range mappingListComputeImageCapabilitySchemasSortBy { - values = append(values, v) - } - return values -} - -// ListComputeImageCapabilitySchemasSortOrderEnum Enum with underlying type: string -type ListComputeImageCapabilitySchemasSortOrderEnum string - -// Set of constants representing the allowable values for ListComputeImageCapabilitySchemasSortOrderEnum -const ( - ListComputeImageCapabilitySchemasSortOrderAsc ListComputeImageCapabilitySchemasSortOrderEnum = "ASC" - ListComputeImageCapabilitySchemasSortOrderDesc ListComputeImageCapabilitySchemasSortOrderEnum = "DESC" -) - -var mappingListComputeImageCapabilitySchemasSortOrder = map[string]ListComputeImageCapabilitySchemasSortOrderEnum{ - "ASC": ListComputeImageCapabilitySchemasSortOrderAsc, - "DESC": ListComputeImageCapabilitySchemasSortOrderDesc, -} - -// GetListComputeImageCapabilitySchemasSortOrderEnumValues Enumerates the set of values for ListComputeImageCapabilitySchemasSortOrderEnum -func GetListComputeImageCapabilitySchemasSortOrderEnumValues() []ListComputeImageCapabilitySchemasSortOrderEnum { - values := make([]ListComputeImageCapabilitySchemasSortOrderEnum, 0) - for _, v := range mappingListComputeImageCapabilitySchemasSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_console_histories_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_console_histories_request_response.go deleted file mode 100644 index 6d9e0b938e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_console_histories_request_response.go +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListConsoleHistoriesRequest wrapper for the ListConsoleHistories operation -type ListConsoleHistoriesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID of the instance. - InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListConsoleHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListConsoleHistoriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state - // value is case-insensitive. - LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListConsoleHistoriesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListConsoleHistoriesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListConsoleHistoriesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListConsoleHistoriesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListConsoleHistoriesResponse wrapper for the ListConsoleHistories operation -type ListConsoleHistoriesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ConsoleHistory instances - Items []ConsoleHistory `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListConsoleHistoriesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListConsoleHistoriesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListConsoleHistoriesSortByEnum Enum with underlying type: string -type ListConsoleHistoriesSortByEnum string - -// Set of constants representing the allowable values for ListConsoleHistoriesSortByEnum -const ( - ListConsoleHistoriesSortByTimecreated ListConsoleHistoriesSortByEnum = "TIMECREATED" - ListConsoleHistoriesSortByDisplayname ListConsoleHistoriesSortByEnum = "DISPLAYNAME" -) - -var mappingListConsoleHistoriesSortBy = map[string]ListConsoleHistoriesSortByEnum{ - "TIMECREATED": ListConsoleHistoriesSortByTimecreated, - "DISPLAYNAME": ListConsoleHistoriesSortByDisplayname, -} - -// GetListConsoleHistoriesSortByEnumValues Enumerates the set of values for ListConsoleHistoriesSortByEnum -func GetListConsoleHistoriesSortByEnumValues() []ListConsoleHistoriesSortByEnum { - values := make([]ListConsoleHistoriesSortByEnum, 0) - for _, v := range mappingListConsoleHistoriesSortBy { - values = append(values, v) - } - return values -} - -// ListConsoleHistoriesSortOrderEnum Enum with underlying type: string -type ListConsoleHistoriesSortOrderEnum string - -// Set of constants representing the allowable values for ListConsoleHistoriesSortOrderEnum -const ( - ListConsoleHistoriesSortOrderAsc ListConsoleHistoriesSortOrderEnum = "ASC" - ListConsoleHistoriesSortOrderDesc ListConsoleHistoriesSortOrderEnum = "DESC" -) - -var mappingListConsoleHistoriesSortOrder = map[string]ListConsoleHistoriesSortOrderEnum{ - "ASC": ListConsoleHistoriesSortOrderAsc, - "DESC": ListConsoleHistoriesSortOrderDesc, -} - -// GetListConsoleHistoriesSortOrderEnumValues Enumerates the set of values for ListConsoleHistoriesSortOrderEnum -func GetListConsoleHistoriesSortOrderEnumValues() []ListConsoleHistoriesSortOrderEnum { - values := make([]ListConsoleHistoriesSortOrderEnum, 0) - for _, v := range mappingListConsoleHistoriesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_groups_request_response.go deleted file mode 100644 index 9230c86154..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_groups_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListCrossConnectGroupsRequest wrapper for the ListCrossConnectGroups operation -type ListCrossConnectGroupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListCrossConnectGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListCrossConnectGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCrossConnectGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCrossConnectGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCrossConnectGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCrossConnectGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListCrossConnectGroupsResponse wrapper for the ListCrossConnectGroups operation -type ListCrossConnectGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []CrossConnectGroup instances - Items []CrossConnectGroup `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListCrossConnectGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCrossConnectGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCrossConnectGroupsSortByEnum Enum with underlying type: string -type ListCrossConnectGroupsSortByEnum string - -// Set of constants representing the allowable values for ListCrossConnectGroupsSortByEnum -const ( - ListCrossConnectGroupsSortByTimecreated ListCrossConnectGroupsSortByEnum = "TIMECREATED" - ListCrossConnectGroupsSortByDisplayname ListCrossConnectGroupsSortByEnum = "DISPLAYNAME" -) - -var mappingListCrossConnectGroupsSortBy = map[string]ListCrossConnectGroupsSortByEnum{ - "TIMECREATED": ListCrossConnectGroupsSortByTimecreated, - "DISPLAYNAME": ListCrossConnectGroupsSortByDisplayname, -} - -// GetListCrossConnectGroupsSortByEnumValues Enumerates the set of values for ListCrossConnectGroupsSortByEnum -func GetListCrossConnectGroupsSortByEnumValues() []ListCrossConnectGroupsSortByEnum { - values := make([]ListCrossConnectGroupsSortByEnum, 0) - for _, v := range mappingListCrossConnectGroupsSortBy { - values = append(values, v) - } - return values -} - -// ListCrossConnectGroupsSortOrderEnum Enum with underlying type: string -type ListCrossConnectGroupsSortOrderEnum string - -// Set of constants representing the allowable values for ListCrossConnectGroupsSortOrderEnum -const ( - ListCrossConnectGroupsSortOrderAsc ListCrossConnectGroupsSortOrderEnum = "ASC" - ListCrossConnectGroupsSortOrderDesc ListCrossConnectGroupsSortOrderEnum = "DESC" -) - -var mappingListCrossConnectGroupsSortOrder = map[string]ListCrossConnectGroupsSortOrderEnum{ - "ASC": ListCrossConnectGroupsSortOrderAsc, - "DESC": ListCrossConnectGroupsSortOrderDesc, -} - -// GetListCrossConnectGroupsSortOrderEnumValues Enumerates the set of values for ListCrossConnectGroupsSortOrderEnum -func GetListCrossConnectGroupsSortOrderEnumValues() []ListCrossConnectGroupsSortOrderEnum { - values := make([]ListCrossConnectGroupsSortOrderEnum, 0) - for _, v := range mappingListCrossConnectGroupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connects_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connects_request_response.go deleted file mode 100644 index 8032c3944f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connects_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListCrossConnectsRequest wrapper for the ListCrossConnects operation -type ListCrossConnectsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect group. - CrossConnectGroupId *string `mandatory:"false" contributesTo:"query" name:"crossConnectGroupId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListCrossConnectsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListCrossConnectsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCrossConnectsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCrossConnectsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCrossConnectsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCrossConnectsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListCrossConnectsResponse wrapper for the ListCrossConnects operation -type ListCrossConnectsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []CrossConnect instances - Items []CrossConnect `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListCrossConnectsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCrossConnectsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCrossConnectsSortByEnum Enum with underlying type: string -type ListCrossConnectsSortByEnum string - -// Set of constants representing the allowable values for ListCrossConnectsSortByEnum -const ( - ListCrossConnectsSortByTimecreated ListCrossConnectsSortByEnum = "TIMECREATED" - ListCrossConnectsSortByDisplayname ListCrossConnectsSortByEnum = "DISPLAYNAME" -) - -var mappingListCrossConnectsSortBy = map[string]ListCrossConnectsSortByEnum{ - "TIMECREATED": ListCrossConnectsSortByTimecreated, - "DISPLAYNAME": ListCrossConnectsSortByDisplayname, -} - -// GetListCrossConnectsSortByEnumValues Enumerates the set of values for ListCrossConnectsSortByEnum -func GetListCrossConnectsSortByEnumValues() []ListCrossConnectsSortByEnum { - values := make([]ListCrossConnectsSortByEnum, 0) - for _, v := range mappingListCrossConnectsSortBy { - values = append(values, v) - } - return values -} - -// ListCrossConnectsSortOrderEnum Enum with underlying type: string -type ListCrossConnectsSortOrderEnum string - -// Set of constants representing the allowable values for ListCrossConnectsSortOrderEnum -const ( - ListCrossConnectsSortOrderAsc ListCrossConnectsSortOrderEnum = "ASC" - ListCrossConnectsSortOrderDesc ListCrossConnectsSortOrderEnum = "DESC" -) - -var mappingListCrossConnectsSortOrder = map[string]ListCrossConnectsSortOrderEnum{ - "ASC": ListCrossConnectsSortOrderAsc, - "DESC": ListCrossConnectsSortOrderDesc, -} - -// GetListCrossConnectsSortOrderEnumValues Enumerates the set of values for ListCrossConnectsSortOrderEnum -func GetListCrossConnectsSortOrderEnumValues() []ListCrossConnectsSortOrderEnum { - values := make([]ListCrossConnectsSortOrderEnum, 0) - for _, v := range mappingListCrossConnectsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instances_request_response.go deleted file mode 100644 index b10e8208c7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instances_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDedicatedVmHostInstancesRequest wrapper for the ListDedicatedVmHostInstances operation -type ListDedicatedVmHostInstancesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the dedicated VM host. - DedicatedVmHostId *string `mandatory:"true" contributesTo:"path" name:"dedicatedVmHostId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDedicatedVmHostInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDedicatedVmHostInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDedicatedVmHostInstancesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDedicatedVmHostInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDedicatedVmHostInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDedicatedVmHostInstancesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDedicatedVmHostInstancesResponse wrapper for the ListDedicatedVmHostInstances operation -type ListDedicatedVmHostInstancesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DedicatedVmHostInstanceSummary instances - Items []DedicatedVmHostInstanceSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDedicatedVmHostInstancesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDedicatedVmHostInstancesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDedicatedVmHostInstancesSortByEnum Enum with underlying type: string -type ListDedicatedVmHostInstancesSortByEnum string - -// Set of constants representing the allowable values for ListDedicatedVmHostInstancesSortByEnum -const ( - ListDedicatedVmHostInstancesSortByTimecreated ListDedicatedVmHostInstancesSortByEnum = "TIMECREATED" - ListDedicatedVmHostInstancesSortByDisplayname ListDedicatedVmHostInstancesSortByEnum = "DISPLAYNAME" -) - -var mappingListDedicatedVmHostInstancesSortBy = map[string]ListDedicatedVmHostInstancesSortByEnum{ - "TIMECREATED": ListDedicatedVmHostInstancesSortByTimecreated, - "DISPLAYNAME": ListDedicatedVmHostInstancesSortByDisplayname, -} - -// GetListDedicatedVmHostInstancesSortByEnumValues Enumerates the set of values for ListDedicatedVmHostInstancesSortByEnum -func GetListDedicatedVmHostInstancesSortByEnumValues() []ListDedicatedVmHostInstancesSortByEnum { - values := make([]ListDedicatedVmHostInstancesSortByEnum, 0) - for _, v := range mappingListDedicatedVmHostInstancesSortBy { - values = append(values, v) - } - return values -} - -// ListDedicatedVmHostInstancesSortOrderEnum Enum with underlying type: string -type ListDedicatedVmHostInstancesSortOrderEnum string - -// Set of constants representing the allowable values for ListDedicatedVmHostInstancesSortOrderEnum -const ( - ListDedicatedVmHostInstancesSortOrderAsc ListDedicatedVmHostInstancesSortOrderEnum = "ASC" - ListDedicatedVmHostInstancesSortOrderDesc ListDedicatedVmHostInstancesSortOrderEnum = "DESC" -) - -var mappingListDedicatedVmHostInstancesSortOrder = map[string]ListDedicatedVmHostInstancesSortOrderEnum{ - "ASC": ListDedicatedVmHostInstancesSortOrderAsc, - "DESC": ListDedicatedVmHostInstancesSortOrderDesc, -} - -// GetListDedicatedVmHostInstancesSortOrderEnumValues Enumerates the set of values for ListDedicatedVmHostInstancesSortOrderEnum -func GetListDedicatedVmHostInstancesSortOrderEnumValues() []ListDedicatedVmHostInstancesSortOrderEnum { - values := make([]ListDedicatedVmHostInstancesSortOrderEnum, 0) - for _, v := range mappingListDedicatedVmHostInstancesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_hosts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_hosts_request_response.go deleted file mode 100644 index ae183d9acf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_hosts_request_response.go +++ /dev/null @@ -1,195 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDedicatedVmHostsRequest wrapper for the ListDedicatedVmHosts operation -type ListDedicatedVmHostsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // A filter to only return resources that match the given lifecycle state. - LifecycleState ListDedicatedVmHostsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The name for the instance's shape. - InstanceShapeName *string `mandatory:"false" contributesTo:"query" name:"instanceShapeName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDedicatedVmHostsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDedicatedVmHostsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The remaining memory of the dedicated VM host, in GBs. - RemainingMemoryInGBsGreaterThanOrEqualTo *float32 `mandatory:"false" contributesTo:"query" name:"remainingMemoryInGBsGreaterThanOrEqualTo"` - - // The available OCPUs of the dedicated VM host. - RemainingOcpusGreaterThanOrEqualTo *float32 `mandatory:"false" contributesTo:"query" name:"remainingOcpusGreaterThanOrEqualTo"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDedicatedVmHostsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDedicatedVmHostsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDedicatedVmHostsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDedicatedVmHostsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDedicatedVmHostsResponse wrapper for the ListDedicatedVmHosts operation -type ListDedicatedVmHostsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DedicatedVmHostSummary instances - Items []DedicatedVmHostSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDedicatedVmHostsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDedicatedVmHostsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDedicatedVmHostsLifecycleStateEnum Enum with underlying type: string -type ListDedicatedVmHostsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListDedicatedVmHostsLifecycleStateEnum -const ( - ListDedicatedVmHostsLifecycleStateCreating ListDedicatedVmHostsLifecycleStateEnum = "CREATING" - ListDedicatedVmHostsLifecycleStateActive ListDedicatedVmHostsLifecycleStateEnum = "ACTIVE" - ListDedicatedVmHostsLifecycleStateUpdating ListDedicatedVmHostsLifecycleStateEnum = "UPDATING" - ListDedicatedVmHostsLifecycleStateDeleting ListDedicatedVmHostsLifecycleStateEnum = "DELETING" - ListDedicatedVmHostsLifecycleStateDeleted ListDedicatedVmHostsLifecycleStateEnum = "DELETED" - ListDedicatedVmHostsLifecycleStateFailed ListDedicatedVmHostsLifecycleStateEnum = "FAILED" -) - -var mappingListDedicatedVmHostsLifecycleState = map[string]ListDedicatedVmHostsLifecycleStateEnum{ - "CREATING": ListDedicatedVmHostsLifecycleStateCreating, - "ACTIVE": ListDedicatedVmHostsLifecycleStateActive, - "UPDATING": ListDedicatedVmHostsLifecycleStateUpdating, - "DELETING": ListDedicatedVmHostsLifecycleStateDeleting, - "DELETED": ListDedicatedVmHostsLifecycleStateDeleted, - "FAILED": ListDedicatedVmHostsLifecycleStateFailed, -} - -// GetListDedicatedVmHostsLifecycleStateEnumValues Enumerates the set of values for ListDedicatedVmHostsLifecycleStateEnum -func GetListDedicatedVmHostsLifecycleStateEnumValues() []ListDedicatedVmHostsLifecycleStateEnum { - values := make([]ListDedicatedVmHostsLifecycleStateEnum, 0) - for _, v := range mappingListDedicatedVmHostsLifecycleState { - values = append(values, v) - } - return values -} - -// ListDedicatedVmHostsSortByEnum Enum with underlying type: string -type ListDedicatedVmHostsSortByEnum string - -// Set of constants representing the allowable values for ListDedicatedVmHostsSortByEnum -const ( - ListDedicatedVmHostsSortByTimecreated ListDedicatedVmHostsSortByEnum = "TIMECREATED" - ListDedicatedVmHostsSortByDisplayname ListDedicatedVmHostsSortByEnum = "DISPLAYNAME" -) - -var mappingListDedicatedVmHostsSortBy = map[string]ListDedicatedVmHostsSortByEnum{ - "TIMECREATED": ListDedicatedVmHostsSortByTimecreated, - "DISPLAYNAME": ListDedicatedVmHostsSortByDisplayname, -} - -// GetListDedicatedVmHostsSortByEnumValues Enumerates the set of values for ListDedicatedVmHostsSortByEnum -func GetListDedicatedVmHostsSortByEnumValues() []ListDedicatedVmHostsSortByEnum { - values := make([]ListDedicatedVmHostsSortByEnum, 0) - for _, v := range mappingListDedicatedVmHostsSortBy { - values = append(values, v) - } - return values -} - -// ListDedicatedVmHostsSortOrderEnum Enum with underlying type: string -type ListDedicatedVmHostsSortOrderEnum string - -// Set of constants representing the allowable values for ListDedicatedVmHostsSortOrderEnum -const ( - ListDedicatedVmHostsSortOrderAsc ListDedicatedVmHostsSortOrderEnum = "ASC" - ListDedicatedVmHostsSortOrderDesc ListDedicatedVmHostsSortOrderEnum = "DESC" -) - -var mappingListDedicatedVmHostsSortOrder = map[string]ListDedicatedVmHostsSortOrderEnum{ - "ASC": ListDedicatedVmHostsSortOrderAsc, - "DESC": ListDedicatedVmHostsSortOrderDesc, -} - -// GetListDedicatedVmHostsSortOrderEnumValues Enumerates the set of values for ListDedicatedVmHostsSortOrderEnum -func GetListDedicatedVmHostsSortOrderEnumValues() []ListDedicatedVmHostsSortOrderEnum { - values := make([]ListDedicatedVmHostsSortOrderEnum, 0) - for _, v := range mappingListDedicatedVmHostsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dhcp_options_request_response.go deleted file mode 100644 index 2dd408918a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dhcp_options_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDhcpOptionsRequest wrapper for the ListDhcpOptions operation -type ListDhcpOptionsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDhcpOptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDhcpOptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDhcpOptionsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDhcpOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDhcpOptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDhcpOptionsResponse wrapper for the ListDhcpOptions operation -type ListDhcpOptionsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DhcpOptions instances - Items []DhcpOptions `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDhcpOptionsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDhcpOptionsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDhcpOptionsSortByEnum Enum with underlying type: string -type ListDhcpOptionsSortByEnum string - -// Set of constants representing the allowable values for ListDhcpOptionsSortByEnum -const ( - ListDhcpOptionsSortByTimecreated ListDhcpOptionsSortByEnum = "TIMECREATED" - ListDhcpOptionsSortByDisplayname ListDhcpOptionsSortByEnum = "DISPLAYNAME" -) - -var mappingListDhcpOptionsSortBy = map[string]ListDhcpOptionsSortByEnum{ - "TIMECREATED": ListDhcpOptionsSortByTimecreated, - "DISPLAYNAME": ListDhcpOptionsSortByDisplayname, -} - -// GetListDhcpOptionsSortByEnumValues Enumerates the set of values for ListDhcpOptionsSortByEnum -func GetListDhcpOptionsSortByEnumValues() []ListDhcpOptionsSortByEnum { - values := make([]ListDhcpOptionsSortByEnum, 0) - for _, v := range mappingListDhcpOptionsSortBy { - values = append(values, v) - } - return values -} - -// ListDhcpOptionsSortOrderEnum Enum with underlying type: string -type ListDhcpOptionsSortOrderEnum string - -// Set of constants representing the allowable values for ListDhcpOptionsSortOrderEnum -const ( - ListDhcpOptionsSortOrderAsc ListDhcpOptionsSortOrderEnum = "ASC" - ListDhcpOptionsSortOrderDesc ListDhcpOptionsSortOrderEnum = "DESC" -) - -var mappingListDhcpOptionsSortOrder = map[string]ListDhcpOptionsSortOrderEnum{ - "ASC": ListDhcpOptionsSortOrderAsc, - "DESC": ListDhcpOptionsSortOrderDesc, -} - -// GetListDhcpOptionsSortOrderEnumValues Enumerates the set of values for ListDhcpOptionsSortOrderEnum -func GetListDhcpOptionsSortOrderEnumValues() []ListDhcpOptionsSortOrderEnum { - values := make([]ListDhcpOptionsSortOrderEnum, 0) - for _, v := range mappingListDhcpOptionsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_attachments_request_response.go deleted file mode 100644 index 6de50b0993..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_attachments_request_response.go +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDrgAttachmentsRequest wrapper for the ListDrgAttachments operation -type ListDrgAttachmentsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG. - NetworkId *string `mandatory:"false" contributesTo:"query" name:"networkId"` - - // The type for the network resource attached to the DRG. - AttachmentType ListDrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to the DRG attachment. - DrgRouteTableId *string `mandatory:"false" contributesTo:"query" name:"drgRouteTableId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDrgAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDrgAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDrgAttachmentsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDrgAttachmentsResponse wrapper for the ListDrgAttachments operation -type ListDrgAttachmentsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgAttachment instances - Items []DrgAttachment `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDrgAttachmentsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDrgAttachmentsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDrgAttachmentsAttachmentTypeEnum Enum with underlying type: string -type ListDrgAttachmentsAttachmentTypeEnum string - -// Set of constants representing the allowable values for ListDrgAttachmentsAttachmentTypeEnum -const ( - ListDrgAttachmentsAttachmentTypeVcn ListDrgAttachmentsAttachmentTypeEnum = "VCN" - ListDrgAttachmentsAttachmentTypeVirtualCircuit ListDrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" - ListDrgAttachmentsAttachmentTypeRemotePeeringConnection ListDrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" - ListDrgAttachmentsAttachmentTypeIpsecTunnel ListDrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" - ListDrgAttachmentsAttachmentTypeAll ListDrgAttachmentsAttachmentTypeEnum = "ALL" -) - -var mappingListDrgAttachmentsAttachmentType = map[string]ListDrgAttachmentsAttachmentTypeEnum{ - "VCN": ListDrgAttachmentsAttachmentTypeVcn, - "VIRTUAL_CIRCUIT": ListDrgAttachmentsAttachmentTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": ListDrgAttachmentsAttachmentTypeRemotePeeringConnection, - "IPSEC_TUNNEL": ListDrgAttachmentsAttachmentTypeIpsecTunnel, - "ALL": ListDrgAttachmentsAttachmentTypeAll, -} - -// GetListDrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for ListDrgAttachmentsAttachmentTypeEnum -func GetListDrgAttachmentsAttachmentTypeEnumValues() []ListDrgAttachmentsAttachmentTypeEnum { - values := make([]ListDrgAttachmentsAttachmentTypeEnum, 0) - for _, v := range mappingListDrgAttachmentsAttachmentType { - values = append(values, v) - } - return values -} - -// ListDrgAttachmentsSortByEnum Enum with underlying type: string -type ListDrgAttachmentsSortByEnum string - -// Set of constants representing the allowable values for ListDrgAttachmentsSortByEnum -const ( - ListDrgAttachmentsSortByTimecreated ListDrgAttachmentsSortByEnum = "TIMECREATED" - ListDrgAttachmentsSortByDisplayname ListDrgAttachmentsSortByEnum = "DISPLAYNAME" -) - -var mappingListDrgAttachmentsSortBy = map[string]ListDrgAttachmentsSortByEnum{ - "TIMECREATED": ListDrgAttachmentsSortByTimecreated, - "DISPLAYNAME": ListDrgAttachmentsSortByDisplayname, -} - -// GetListDrgAttachmentsSortByEnumValues Enumerates the set of values for ListDrgAttachmentsSortByEnum -func GetListDrgAttachmentsSortByEnumValues() []ListDrgAttachmentsSortByEnum { - values := make([]ListDrgAttachmentsSortByEnum, 0) - for _, v := range mappingListDrgAttachmentsSortBy { - values = append(values, v) - } - return values -} - -// ListDrgAttachmentsSortOrderEnum Enum with underlying type: string -type ListDrgAttachmentsSortOrderEnum string - -// Set of constants representing the allowable values for ListDrgAttachmentsSortOrderEnum -const ( - ListDrgAttachmentsSortOrderAsc ListDrgAttachmentsSortOrderEnum = "ASC" - ListDrgAttachmentsSortOrderDesc ListDrgAttachmentsSortOrderEnum = "DESC" -) - -var mappingListDrgAttachmentsSortOrder = map[string]ListDrgAttachmentsSortOrderEnum{ - "ASC": ListDrgAttachmentsSortOrderAsc, - "DESC": ListDrgAttachmentsSortOrderDesc, -} - -// GetListDrgAttachmentsSortOrderEnumValues Enumerates the set of values for ListDrgAttachmentsSortOrderEnum -func GetListDrgAttachmentsSortOrderEnumValues() []ListDrgAttachmentsSortOrderEnum { - values := make([]ListDrgAttachmentsSortOrderEnum, 0) - for _, v := range mappingListDrgAttachmentsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distribution_statements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distribution_statements_request_response.go deleted file mode 100644 index e59d83d7ad..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distribution_statements_request_response.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDrgRouteDistributionStatementsRequest wrapper for the ListDrgRouteDistributionStatements operation -type ListDrgRouteDistributionStatementsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. - DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. - SortBy ListDrgRouteDistributionStatementsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDrgRouteDistributionStatementsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDrgRouteDistributionStatementsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDrgRouteDistributionStatementsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDrgRouteDistributionStatementsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDrgRouteDistributionStatementsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDrgRouteDistributionStatementsResponse wrapper for the ListDrgRouteDistributionStatements operation -type ListDrgRouteDistributionStatementsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgRouteDistributionStatement instances - Items []DrgRouteDistributionStatement `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDrgRouteDistributionStatementsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDrgRouteDistributionStatementsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDrgRouteDistributionStatementsSortByEnum Enum with underlying type: string -type ListDrgRouteDistributionStatementsSortByEnum string - -// Set of constants representing the allowable values for ListDrgRouteDistributionStatementsSortByEnum -const ( - ListDrgRouteDistributionStatementsSortByTimecreated ListDrgRouteDistributionStatementsSortByEnum = "TIMECREATED" -) - -var mappingListDrgRouteDistributionStatementsSortBy = map[string]ListDrgRouteDistributionStatementsSortByEnum{ - "TIMECREATED": ListDrgRouteDistributionStatementsSortByTimecreated, -} - -// GetListDrgRouteDistributionStatementsSortByEnumValues Enumerates the set of values for ListDrgRouteDistributionStatementsSortByEnum -func GetListDrgRouteDistributionStatementsSortByEnumValues() []ListDrgRouteDistributionStatementsSortByEnum { - values := make([]ListDrgRouteDistributionStatementsSortByEnum, 0) - for _, v := range mappingListDrgRouteDistributionStatementsSortBy { - values = append(values, v) - } - return values -} - -// ListDrgRouteDistributionStatementsSortOrderEnum Enum with underlying type: string -type ListDrgRouteDistributionStatementsSortOrderEnum string - -// Set of constants representing the allowable values for ListDrgRouteDistributionStatementsSortOrderEnum -const ( - ListDrgRouteDistributionStatementsSortOrderAsc ListDrgRouteDistributionStatementsSortOrderEnum = "ASC" - ListDrgRouteDistributionStatementsSortOrderDesc ListDrgRouteDistributionStatementsSortOrderEnum = "DESC" -) - -var mappingListDrgRouteDistributionStatementsSortOrder = map[string]ListDrgRouteDistributionStatementsSortOrderEnum{ - "ASC": ListDrgRouteDistributionStatementsSortOrderAsc, - "DESC": ListDrgRouteDistributionStatementsSortOrderDesc, -} - -// GetListDrgRouteDistributionStatementsSortOrderEnumValues Enumerates the set of values for ListDrgRouteDistributionStatementsSortOrderEnum -func GetListDrgRouteDistributionStatementsSortOrderEnumValues() []ListDrgRouteDistributionStatementsSortOrderEnum { - values := make([]ListDrgRouteDistributionStatementsSortOrderEnum, 0) - for _, v := range mappingListDrgRouteDistributionStatementsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distributions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distributions_request_response.go deleted file mode 100644 index 0c6d43703b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_distributions_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDrgRouteDistributionsRequest wrapper for the ListDrgRouteDistributions operation -type ListDrgRouteDistributionsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" contributesTo:"query" name:"drgId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDrgRouteDistributionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDrgRouteDistributionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter that only returns resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState DrgRouteDistributionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDrgRouteDistributionsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDrgRouteDistributionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDrgRouteDistributionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDrgRouteDistributionsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDrgRouteDistributionsResponse wrapper for the ListDrgRouteDistributions operation -type ListDrgRouteDistributionsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgRouteDistribution instances - Items []DrgRouteDistribution `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDrgRouteDistributionsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDrgRouteDistributionsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDrgRouteDistributionsSortByEnum Enum with underlying type: string -type ListDrgRouteDistributionsSortByEnum string - -// Set of constants representing the allowable values for ListDrgRouteDistributionsSortByEnum -const ( - ListDrgRouteDistributionsSortByTimecreated ListDrgRouteDistributionsSortByEnum = "TIMECREATED" - ListDrgRouteDistributionsSortByDisplayname ListDrgRouteDistributionsSortByEnum = "DISPLAYNAME" -) - -var mappingListDrgRouteDistributionsSortBy = map[string]ListDrgRouteDistributionsSortByEnum{ - "TIMECREATED": ListDrgRouteDistributionsSortByTimecreated, - "DISPLAYNAME": ListDrgRouteDistributionsSortByDisplayname, -} - -// GetListDrgRouteDistributionsSortByEnumValues Enumerates the set of values for ListDrgRouteDistributionsSortByEnum -func GetListDrgRouteDistributionsSortByEnumValues() []ListDrgRouteDistributionsSortByEnum { - values := make([]ListDrgRouteDistributionsSortByEnum, 0) - for _, v := range mappingListDrgRouteDistributionsSortBy { - values = append(values, v) - } - return values -} - -// ListDrgRouteDistributionsSortOrderEnum Enum with underlying type: string -type ListDrgRouteDistributionsSortOrderEnum string - -// Set of constants representing the allowable values for ListDrgRouteDistributionsSortOrderEnum -const ( - ListDrgRouteDistributionsSortOrderAsc ListDrgRouteDistributionsSortOrderEnum = "ASC" - ListDrgRouteDistributionsSortOrderDesc ListDrgRouteDistributionsSortOrderEnum = "DESC" -) - -var mappingListDrgRouteDistributionsSortOrder = map[string]ListDrgRouteDistributionsSortOrderEnum{ - "ASC": ListDrgRouteDistributionsSortOrderAsc, - "DESC": ListDrgRouteDistributionsSortOrderDesc, -} - -// GetListDrgRouteDistributionsSortOrderEnumValues Enumerates the set of values for ListDrgRouteDistributionsSortOrderEnum -func GetListDrgRouteDistributionsSortOrderEnumValues() []ListDrgRouteDistributionsSortOrderEnum { - values := make([]ListDrgRouteDistributionsSortOrderEnum, 0) - for _, v := range mappingListDrgRouteDistributionsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_rules_request_response.go deleted file mode 100644 index 1a2a4dfa0d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_rules_request_response.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDrgRouteRulesRequest wrapper for the ListDrgRouteRules operation -type ListDrgRouteRulesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. - DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Static routes are specified through the DRG route table API. - // Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols. - RouteType ListDrgRouteRulesRouteTypeEnum `mandatory:"false" contributesTo:"query" name:"routeType" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDrgRouteRulesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDrgRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDrgRouteRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDrgRouteRulesResponse wrapper for the ListDrgRouteRules operation -type ListDrgRouteRulesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgRouteRule instances - Items []DrgRouteRule `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDrgRouteRulesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDrgRouteRulesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDrgRouteRulesRouteTypeEnum Enum with underlying type: string -type ListDrgRouteRulesRouteTypeEnum string - -// Set of constants representing the allowable values for ListDrgRouteRulesRouteTypeEnum -const ( - ListDrgRouteRulesRouteTypeStatic ListDrgRouteRulesRouteTypeEnum = "STATIC" - ListDrgRouteRulesRouteTypeDynamic ListDrgRouteRulesRouteTypeEnum = "DYNAMIC" -) - -var mappingListDrgRouteRulesRouteType = map[string]ListDrgRouteRulesRouteTypeEnum{ - "STATIC": ListDrgRouteRulesRouteTypeStatic, - "DYNAMIC": ListDrgRouteRulesRouteTypeDynamic, -} - -// GetListDrgRouteRulesRouteTypeEnumValues Enumerates the set of values for ListDrgRouteRulesRouteTypeEnum -func GetListDrgRouteRulesRouteTypeEnumValues() []ListDrgRouteRulesRouteTypeEnum { - values := make([]ListDrgRouteRulesRouteTypeEnum, 0) - for _, v := range mappingListDrgRouteRulesRouteType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_tables_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_tables_request_response.go deleted file mode 100644 index 0587d93f31..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drg_route_tables_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDrgRouteTablesRequest wrapper for the ListDrgRouteTables operation -type ListDrgRouteTablesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" contributesTo:"query" name:"drgId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDrgRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDrgRouteTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the import route distribution. - ImportDrgRouteDistributionId *string `mandatory:"false" contributesTo:"query" name:"importDrgRouteDistributionId"` - - // A filter that only returns matches for the specified lifecycle - // state. The value is case insensitive. - LifecycleState DrgRouteTableLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDrgRouteTablesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDrgRouteTablesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDrgRouteTablesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDrgRouteTablesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDrgRouteTablesResponse wrapper for the ListDrgRouteTables operation -type ListDrgRouteTablesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgRouteTable instances - Items []DrgRouteTable `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDrgRouteTablesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDrgRouteTablesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDrgRouteTablesSortByEnum Enum with underlying type: string -type ListDrgRouteTablesSortByEnum string - -// Set of constants representing the allowable values for ListDrgRouteTablesSortByEnum -const ( - ListDrgRouteTablesSortByTimecreated ListDrgRouteTablesSortByEnum = "TIMECREATED" - ListDrgRouteTablesSortByDisplayname ListDrgRouteTablesSortByEnum = "DISPLAYNAME" -) - -var mappingListDrgRouteTablesSortBy = map[string]ListDrgRouteTablesSortByEnum{ - "TIMECREATED": ListDrgRouteTablesSortByTimecreated, - "DISPLAYNAME": ListDrgRouteTablesSortByDisplayname, -} - -// GetListDrgRouteTablesSortByEnumValues Enumerates the set of values for ListDrgRouteTablesSortByEnum -func GetListDrgRouteTablesSortByEnumValues() []ListDrgRouteTablesSortByEnum { - values := make([]ListDrgRouteTablesSortByEnum, 0) - for _, v := range mappingListDrgRouteTablesSortBy { - values = append(values, v) - } - return values -} - -// ListDrgRouteTablesSortOrderEnum Enum with underlying type: string -type ListDrgRouteTablesSortOrderEnum string - -// Set of constants representing the allowable values for ListDrgRouteTablesSortOrderEnum -const ( - ListDrgRouteTablesSortOrderAsc ListDrgRouteTablesSortOrderEnum = "ASC" - ListDrgRouteTablesSortOrderDesc ListDrgRouteTablesSortOrderEnum = "DESC" -) - -var mappingListDrgRouteTablesSortOrder = map[string]ListDrgRouteTablesSortOrderEnum{ - "ASC": ListDrgRouteTablesSortOrderAsc, - "DESC": ListDrgRouteTablesSortOrderDesc, -} - -// GetListDrgRouteTablesSortOrderEnumValues Enumerates the set of values for ListDrgRouteTablesSortOrderEnum -func GetListDrgRouteTablesSortOrderEnumValues() []ListDrgRouteTablesSortOrderEnum { - values := make([]ListDrgRouteTablesSortOrderEnum, 0) - for _, v := range mappingListDrgRouteTablesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_by_states_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_by_states_request_response.go deleted file mode 100644 index 53545b4fc4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_by_states_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDrgsByStatesRequest wrapper for the ListDrgsByStates operation -type ListDrgsByStatesRequest struct { - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A query param to return resources that match the given compartment OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) exactly. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The State of the DRG (Classical/Migrated/Upgraded) of the DRG. - DrgState DrgUpgradeStateStateEnum `mandatory:"false" contributesTo:"query" name:"drgState" omitEmpty:"true"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListDrgsByStatesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListDrgsByStatesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDrgsByStatesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDrgsByStatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDrgsByStatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDrgsByStatesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDrgsByStatesResponse wrapper for the ListDrgsByStates operation -type ListDrgsByStatesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Drg instances - Items []Drg `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListDrgsByStatesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDrgsByStatesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDrgsByStatesSortByEnum Enum with underlying type: string -type ListDrgsByStatesSortByEnum string - -// Set of constants representing the allowable values for ListDrgsByStatesSortByEnum -const ( - ListDrgsByStatesSortByTimecreated ListDrgsByStatesSortByEnum = "TIMECREATED" - ListDrgsByStatesSortByDisplayname ListDrgsByStatesSortByEnum = "DISPLAYNAME" -) - -var mappingListDrgsByStatesSortBy = map[string]ListDrgsByStatesSortByEnum{ - "TIMECREATED": ListDrgsByStatesSortByTimecreated, - "DISPLAYNAME": ListDrgsByStatesSortByDisplayname, -} - -// GetListDrgsByStatesSortByEnumValues Enumerates the set of values for ListDrgsByStatesSortByEnum -func GetListDrgsByStatesSortByEnumValues() []ListDrgsByStatesSortByEnum { - values := make([]ListDrgsByStatesSortByEnum, 0) - for _, v := range mappingListDrgsByStatesSortBy { - values = append(values, v) - } - return values -} - -// ListDrgsByStatesSortOrderEnum Enum with underlying type: string -type ListDrgsByStatesSortOrderEnum string - -// Set of constants representing the allowable values for ListDrgsByStatesSortOrderEnum -const ( - ListDrgsByStatesSortOrderAsc ListDrgsByStatesSortOrderEnum = "ASC" - ListDrgsByStatesSortOrderDesc ListDrgsByStatesSortOrderEnum = "DESC" -) - -var mappingListDrgsByStatesSortOrder = map[string]ListDrgsByStatesSortOrderEnum{ - "ASC": ListDrgsByStatesSortOrderAsc, - "DESC": ListDrgsByStatesSortOrderDesc, -} - -// GetListDrgsByStatesSortOrderEnumValues Enumerates the set of values for ListDrgsByStatesSortOrderEnum -func GetListDrgsByStatesSortOrderEnumValues() []ListDrgsByStatesSortOrderEnum { - values := make([]ListDrgsByStatesSortOrderEnum, 0) - for _, v := range mappingListDrgsByStatesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_endpoint_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_endpoint_services_request_response.go deleted file mode 100644 index fb09346c54..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_endpoint_services_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListEndpointServicesRequest wrapper for the ListEndpointServices operation -type ListEndpointServicesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListEndpointServicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListEndpointServicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListEndpointServicesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListEndpointServicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListEndpointServicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListEndpointServicesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListEndpointServicesResponse wrapper for the ListEndpointServices operation -type ListEndpointServicesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []EndpointServiceSummary instances - Items []EndpointServiceSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListEndpointServicesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListEndpointServicesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListEndpointServicesSortByEnum Enum with underlying type: string -type ListEndpointServicesSortByEnum string - -// Set of constants representing the allowable values for ListEndpointServicesSortByEnum -const ( - ListEndpointServicesSortByTimecreated ListEndpointServicesSortByEnum = "TIMECREATED" - ListEndpointServicesSortByDisplayname ListEndpointServicesSortByEnum = "DISPLAYNAME" -) - -var mappingListEndpointServicesSortBy = map[string]ListEndpointServicesSortByEnum{ - "TIMECREATED": ListEndpointServicesSortByTimecreated, - "DISPLAYNAME": ListEndpointServicesSortByDisplayname, -} - -// GetListEndpointServicesSortByEnumValues Enumerates the set of values for ListEndpointServicesSortByEnum -func GetListEndpointServicesSortByEnumValues() []ListEndpointServicesSortByEnum { - values := make([]ListEndpointServicesSortByEnum, 0) - for _, v := range mappingListEndpointServicesSortBy { - values = append(values, v) - } - return values -} - -// ListEndpointServicesSortOrderEnum Enum with underlying type: string -type ListEndpointServicesSortOrderEnum string - -// Set of constants representing the allowable values for ListEndpointServicesSortOrderEnum -const ( - ListEndpointServicesSortOrderAsc ListEndpointServicesSortOrderEnum = "ASC" - ListEndpointServicesSortOrderDesc ListEndpointServicesSortOrderEnum = "DESC" -) - -var mappingListEndpointServicesSortOrder = map[string]ListEndpointServicesSortOrderEnum{ - "ASC": ListEndpointServicesSortOrderAsc, - "DESC": ListEndpointServicesSortOrderDesc, -} - -// GetListEndpointServicesSortOrderEnumValues Enumerates the set of values for ListEndpointServicesSortOrderEnum -func GetListEndpointServicesSortOrderEnumValues() []ListEndpointServicesSortOrderEnum { - values := make([]ListEndpointServicesSortOrderEnum, 0) - for _, v := range mappingListEndpointServicesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_config_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_config_attachments_request_response.go deleted file mode 100644 index 4b0ad298f9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_config_attachments_request_response.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListFlowLogConfigAttachmentsRequest wrapper for the ListFlowLogConfigAttachments operation -type ListFlowLogConfigAttachmentsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a resource that has flow logs enabled. - TargetEntityId *string `mandatory:"false" contributesTo:"query" name:"targetEntityId"` - - // The type of resource that has flow logs enabled. - TargetEntityType ListFlowLogConfigAttachmentsTargetEntityTypeEnum `mandatory:"false" contributesTo:"query" name:"targetEntityType" omitEmpty:"true"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListFlowLogConfigAttachmentsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListFlowLogConfigAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListFlowLogConfigAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListFlowLogConfigAttachmentsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListFlowLogConfigAttachmentsResponse wrapper for the ListFlowLogConfigAttachments operation -type ListFlowLogConfigAttachmentsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []FlowLogConfigAttachment instances - Items []FlowLogConfigAttachment `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListFlowLogConfigAttachmentsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListFlowLogConfigAttachmentsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListFlowLogConfigAttachmentsTargetEntityTypeEnum Enum with underlying type: string -type ListFlowLogConfigAttachmentsTargetEntityTypeEnum string - -// Set of constants representing the allowable values for ListFlowLogConfigAttachmentsTargetEntityTypeEnum -const ( - ListFlowLogConfigAttachmentsTargetEntityTypeSubnet ListFlowLogConfigAttachmentsTargetEntityTypeEnum = "SUBNET" -) - -var mappingListFlowLogConfigAttachmentsTargetEntityType = map[string]ListFlowLogConfigAttachmentsTargetEntityTypeEnum{ - "SUBNET": ListFlowLogConfigAttachmentsTargetEntityTypeSubnet, -} - -// GetListFlowLogConfigAttachmentsTargetEntityTypeEnumValues Enumerates the set of values for ListFlowLogConfigAttachmentsTargetEntityTypeEnum -func GetListFlowLogConfigAttachmentsTargetEntityTypeEnumValues() []ListFlowLogConfigAttachmentsTargetEntityTypeEnum { - values := make([]ListFlowLogConfigAttachmentsTargetEntityTypeEnum, 0) - for _, v := range mappingListFlowLogConfigAttachmentsTargetEntityType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_configs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_configs_request_response.go deleted file mode 100644 index ff4300300b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_flow_log_configs_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListFlowLogConfigsRequest wrapper for the ListFlowLogConfigs operation -type ListFlowLogConfigsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListFlowLogConfigsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListFlowLogConfigsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListFlowLogConfigsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListFlowLogConfigsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListFlowLogConfigsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListFlowLogConfigsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListFlowLogConfigsResponse wrapper for the ListFlowLogConfigs operation -type ListFlowLogConfigsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []FlowLogConfig instances - Items []FlowLogConfig `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListFlowLogConfigsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListFlowLogConfigsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListFlowLogConfigsSortByEnum Enum with underlying type: string -type ListFlowLogConfigsSortByEnum string - -// Set of constants representing the allowable values for ListFlowLogConfigsSortByEnum -const ( - ListFlowLogConfigsSortByTimecreated ListFlowLogConfigsSortByEnum = "TIMECREATED" - ListFlowLogConfigsSortByDisplayname ListFlowLogConfigsSortByEnum = "DISPLAYNAME" -) - -var mappingListFlowLogConfigsSortBy = map[string]ListFlowLogConfigsSortByEnum{ - "TIMECREATED": ListFlowLogConfigsSortByTimecreated, - "DISPLAYNAME": ListFlowLogConfigsSortByDisplayname, -} - -// GetListFlowLogConfigsSortByEnumValues Enumerates the set of values for ListFlowLogConfigsSortByEnum -func GetListFlowLogConfigsSortByEnumValues() []ListFlowLogConfigsSortByEnum { - values := make([]ListFlowLogConfigsSortByEnum, 0) - for _, v := range mappingListFlowLogConfigsSortBy { - values = append(values, v) - } - return values -} - -// ListFlowLogConfigsSortOrderEnum Enum with underlying type: string -type ListFlowLogConfigsSortOrderEnum string - -// Set of constants representing the allowable values for ListFlowLogConfigsSortOrderEnum -const ( - ListFlowLogConfigsSortOrderAsc ListFlowLogConfigsSortOrderEnum = "ASC" - ListFlowLogConfigsSortOrderDesc ListFlowLogConfigsSortOrderEnum = "DESC" -) - -var mappingListFlowLogConfigsSortOrder = map[string]ListFlowLogConfigsSortOrderEnum{ - "ASC": ListFlowLogConfigsSortOrderAsc, - "DESC": ListFlowLogConfigsSortOrderDesc, -} - -// GetListFlowLogConfigsSortOrderEnumValues Enumerates the set of values for ListFlowLogConfigsSortOrderEnum -func GetListFlowLogConfigsSortOrderEnumValues() []ListFlowLogConfigsSortOrderEnum { - values := make([]ListFlowLogConfigsSortOrderEnum, 0) - for _, v := range mappingListFlowLogConfigsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_images_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_images_request_response.go deleted file mode 100644 index f165d14fce..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_images_request_response.go +++ /dev/null @@ -1,163 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListImagesRequest wrapper for the ListImages operation -type ListImagesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The image's operating system. - // Example: `Oracle Linux` - OperatingSystem *string `mandatory:"false" contributesTo:"query" name:"operatingSystem"` - - // The image's operating system version. - // Example: `7.2` - OperatingSystemVersion *string `mandatory:"false" contributesTo:"query" name:"operatingSystemVersion"` - - // Shape name. - Shape *string `mandatory:"false" contributesTo:"query" name:"shape"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListImagesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListImagesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state - // value is case-insensitive. - LifecycleState ImageLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListImagesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListImagesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListImagesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListImagesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListImagesResponse wrapper for the ListImages operation -type ListImagesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Image instances - Items []Image `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListImagesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListImagesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListImagesSortByEnum Enum with underlying type: string -type ListImagesSortByEnum string - -// Set of constants representing the allowable values for ListImagesSortByEnum -const ( - ListImagesSortByTimecreated ListImagesSortByEnum = "TIMECREATED" - ListImagesSortByDisplayname ListImagesSortByEnum = "DISPLAYNAME" -) - -var mappingListImagesSortBy = map[string]ListImagesSortByEnum{ - "TIMECREATED": ListImagesSortByTimecreated, - "DISPLAYNAME": ListImagesSortByDisplayname, -} - -// GetListImagesSortByEnumValues Enumerates the set of values for ListImagesSortByEnum -func GetListImagesSortByEnumValues() []ListImagesSortByEnum { - values := make([]ListImagesSortByEnum, 0) - for _, v := range mappingListImagesSortBy { - values = append(values, v) - } - return values -} - -// ListImagesSortOrderEnum Enum with underlying type: string -type ListImagesSortOrderEnum string - -// Set of constants representing the allowable values for ListImagesSortOrderEnum -const ( - ListImagesSortOrderAsc ListImagesSortOrderEnum = "ASC" - ListImagesSortOrderDesc ListImagesSortOrderEnum = "DESC" -) - -var mappingListImagesSortOrder = map[string]ListImagesSortOrderEnum{ - "ASC": ListImagesSortOrderAsc, - "DESC": ListImagesSortOrderDesc, -} - -// GetListImagesSortOrderEnumValues Enumerates the set of values for ListImagesSortOrderEnum -func GetListImagesSortOrderEnumValues() []ListImagesSortOrderEnum { - values := make([]ListImagesSortOrderEnum, 0) - for _, v := range mappingListImagesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_configurations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_configurations_request_response.go deleted file mode 100644 index eea47d63f0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_configurations_request_response.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInstanceConfigurationsRequest wrapper for the ListInstanceConfigurations operation -type ListInstanceConfigurationsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInstanceConfigurationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInstanceConfigurationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInstanceConfigurationsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInstanceConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInstanceConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInstanceConfigurationsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInstanceConfigurationsResponse wrapper for the ListInstanceConfigurations operation -type ListInstanceConfigurationsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InstanceConfigurationSummary instances - Items []InstanceConfigurationSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInstanceConfigurationsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInstanceConfigurationsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInstanceConfigurationsSortByEnum Enum with underlying type: string -type ListInstanceConfigurationsSortByEnum string - -// Set of constants representing the allowable values for ListInstanceConfigurationsSortByEnum -const ( - ListInstanceConfigurationsSortByTimecreated ListInstanceConfigurationsSortByEnum = "TIMECREATED" - ListInstanceConfigurationsSortByDisplayname ListInstanceConfigurationsSortByEnum = "DISPLAYNAME" -) - -var mappingListInstanceConfigurationsSortBy = map[string]ListInstanceConfigurationsSortByEnum{ - "TIMECREATED": ListInstanceConfigurationsSortByTimecreated, - "DISPLAYNAME": ListInstanceConfigurationsSortByDisplayname, -} - -// GetListInstanceConfigurationsSortByEnumValues Enumerates the set of values for ListInstanceConfigurationsSortByEnum -func GetListInstanceConfigurationsSortByEnumValues() []ListInstanceConfigurationsSortByEnum { - values := make([]ListInstanceConfigurationsSortByEnum, 0) - for _, v := range mappingListInstanceConfigurationsSortBy { - values = append(values, v) - } - return values -} - -// ListInstanceConfigurationsSortOrderEnum Enum with underlying type: string -type ListInstanceConfigurationsSortOrderEnum string - -// Set of constants representing the allowable values for ListInstanceConfigurationsSortOrderEnum -const ( - ListInstanceConfigurationsSortOrderAsc ListInstanceConfigurationsSortOrderEnum = "ASC" - ListInstanceConfigurationsSortOrderDesc ListInstanceConfigurationsSortOrderEnum = "DESC" -) - -var mappingListInstanceConfigurationsSortOrder = map[string]ListInstanceConfigurationsSortOrderEnum{ - "ASC": ListInstanceConfigurationsSortOrderAsc, - "DESC": ListInstanceConfigurationsSortOrderDesc, -} - -// GetListInstanceConfigurationsSortOrderEnumValues Enumerates the set of values for ListInstanceConfigurationsSortOrderEnum -func GetListInstanceConfigurationsSortOrderEnumValues() []ListInstanceConfigurationsSortOrderEnum { - values := make([]ListInstanceConfigurationsSortOrderEnum, 0) - for _, v := range mappingListInstanceConfigurationsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_devices_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_devices_request_response.go deleted file mode 100644 index b8f75524de..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_devices_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInstanceDevicesRequest wrapper for the ListInstanceDevices operation -type ListInstanceDevicesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. - InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` - - // A filter to return only available devices or only used devices. - IsAvailable *bool `mandatory:"false" contributesTo:"query" name:"isAvailable"` - - // A filter to return only devices that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInstanceDevicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInstanceDevicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInstanceDevicesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInstanceDevicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInstanceDevicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInstanceDevicesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInstanceDevicesResponse wrapper for the ListInstanceDevices operation -type ListInstanceDevicesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Device instances - Items []Device `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInstanceDevicesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInstanceDevicesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInstanceDevicesSortByEnum Enum with underlying type: string -type ListInstanceDevicesSortByEnum string - -// Set of constants representing the allowable values for ListInstanceDevicesSortByEnum -const ( - ListInstanceDevicesSortByTimecreated ListInstanceDevicesSortByEnum = "TIMECREATED" - ListInstanceDevicesSortByDisplayname ListInstanceDevicesSortByEnum = "DISPLAYNAME" -) - -var mappingListInstanceDevicesSortBy = map[string]ListInstanceDevicesSortByEnum{ - "TIMECREATED": ListInstanceDevicesSortByTimecreated, - "DISPLAYNAME": ListInstanceDevicesSortByDisplayname, -} - -// GetListInstanceDevicesSortByEnumValues Enumerates the set of values for ListInstanceDevicesSortByEnum -func GetListInstanceDevicesSortByEnumValues() []ListInstanceDevicesSortByEnum { - values := make([]ListInstanceDevicesSortByEnum, 0) - for _, v := range mappingListInstanceDevicesSortBy { - values = append(values, v) - } - return values -} - -// ListInstanceDevicesSortOrderEnum Enum with underlying type: string -type ListInstanceDevicesSortOrderEnum string - -// Set of constants representing the allowable values for ListInstanceDevicesSortOrderEnum -const ( - ListInstanceDevicesSortOrderAsc ListInstanceDevicesSortOrderEnum = "ASC" - ListInstanceDevicesSortOrderDesc ListInstanceDevicesSortOrderEnum = "DESC" -) - -var mappingListInstanceDevicesSortOrder = map[string]ListInstanceDevicesSortOrderEnum{ - "ASC": ListInstanceDevicesSortOrderAsc, - "DESC": ListInstanceDevicesSortOrderDesc, -} - -// GetListInstanceDevicesSortOrderEnumValues Enumerates the set of values for ListInstanceDevicesSortOrderEnum -func GetListInstanceDevicesSortOrderEnumValues() []ListInstanceDevicesSortOrderEnum { - values := make([]ListInstanceDevicesSortOrderEnum, 0) - for _, v := range mappingListInstanceDevicesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pool_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pool_instances_request_response.go deleted file mode 100644 index ae13e51494..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pool_instances_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInstancePoolInstancesRequest wrapper for the ListInstancePoolInstances operation -type ListInstancePoolInstancesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. - InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInstancePoolInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInstancePoolInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInstancePoolInstancesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInstancePoolInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInstancePoolInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInstancePoolInstancesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInstancePoolInstancesResponse wrapper for the ListInstancePoolInstances operation -type ListInstancePoolInstancesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InstanceSummary instances - Items []InstanceSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInstancePoolInstancesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInstancePoolInstancesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInstancePoolInstancesSortByEnum Enum with underlying type: string -type ListInstancePoolInstancesSortByEnum string - -// Set of constants representing the allowable values for ListInstancePoolInstancesSortByEnum -const ( - ListInstancePoolInstancesSortByTimecreated ListInstancePoolInstancesSortByEnum = "TIMECREATED" - ListInstancePoolInstancesSortByDisplayname ListInstancePoolInstancesSortByEnum = "DISPLAYNAME" -) - -var mappingListInstancePoolInstancesSortBy = map[string]ListInstancePoolInstancesSortByEnum{ - "TIMECREATED": ListInstancePoolInstancesSortByTimecreated, - "DISPLAYNAME": ListInstancePoolInstancesSortByDisplayname, -} - -// GetListInstancePoolInstancesSortByEnumValues Enumerates the set of values for ListInstancePoolInstancesSortByEnum -func GetListInstancePoolInstancesSortByEnumValues() []ListInstancePoolInstancesSortByEnum { - values := make([]ListInstancePoolInstancesSortByEnum, 0) - for _, v := range mappingListInstancePoolInstancesSortBy { - values = append(values, v) - } - return values -} - -// ListInstancePoolInstancesSortOrderEnum Enum with underlying type: string -type ListInstancePoolInstancesSortOrderEnum string - -// Set of constants representing the allowable values for ListInstancePoolInstancesSortOrderEnum -const ( - ListInstancePoolInstancesSortOrderAsc ListInstancePoolInstancesSortOrderEnum = "ASC" - ListInstancePoolInstancesSortOrderDesc ListInstancePoolInstancesSortOrderEnum = "DESC" -) - -var mappingListInstancePoolInstancesSortOrder = map[string]ListInstancePoolInstancesSortOrderEnum{ - "ASC": ListInstancePoolInstancesSortOrderAsc, - "DESC": ListInstancePoolInstancesSortOrderDesc, -} - -// GetListInstancePoolInstancesSortOrderEnumValues Enumerates the set of values for ListInstancePoolInstancesSortOrderEnum -func GetListInstancePoolInstancesSortOrderEnumValues() []ListInstancePoolInstancesSortOrderEnum { - values := make([]ListInstancePoolInstancesSortOrderEnum, 0) - for _, v := range mappingListInstancePoolInstancesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pools_request_response.go deleted file mode 100644 index 89570d5448..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_pools_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInstancePoolsRequest wrapper for the ListInstancePools operation -type ListInstancePoolsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInstancePoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInstancePoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state - // value is case-insensitive. - LifecycleState InstancePoolSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInstancePoolsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInstancePoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInstancePoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInstancePoolsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInstancePoolsResponse wrapper for the ListInstancePools operation -type ListInstancePoolsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InstancePoolSummary instances - Items []InstancePoolSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInstancePoolsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInstancePoolsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInstancePoolsSortByEnum Enum with underlying type: string -type ListInstancePoolsSortByEnum string - -// Set of constants representing the allowable values for ListInstancePoolsSortByEnum -const ( - ListInstancePoolsSortByTimecreated ListInstancePoolsSortByEnum = "TIMECREATED" - ListInstancePoolsSortByDisplayname ListInstancePoolsSortByEnum = "DISPLAYNAME" -) - -var mappingListInstancePoolsSortBy = map[string]ListInstancePoolsSortByEnum{ - "TIMECREATED": ListInstancePoolsSortByTimecreated, - "DISPLAYNAME": ListInstancePoolsSortByDisplayname, -} - -// GetListInstancePoolsSortByEnumValues Enumerates the set of values for ListInstancePoolsSortByEnum -func GetListInstancePoolsSortByEnumValues() []ListInstancePoolsSortByEnum { - values := make([]ListInstancePoolsSortByEnum, 0) - for _, v := range mappingListInstancePoolsSortBy { - values = append(values, v) - } - return values -} - -// ListInstancePoolsSortOrderEnum Enum with underlying type: string -type ListInstancePoolsSortOrderEnum string - -// Set of constants representing the allowable values for ListInstancePoolsSortOrderEnum -const ( - ListInstancePoolsSortOrderAsc ListInstancePoolsSortOrderEnum = "ASC" - ListInstancePoolsSortOrderDesc ListInstancePoolsSortOrderEnum = "DESC" -) - -var mappingListInstancePoolsSortOrder = map[string]ListInstancePoolsSortOrderEnum{ - "ASC": ListInstancePoolsSortOrderAsc, - "DESC": ListInstancePoolsSortOrderDesc, -} - -// GetListInstancePoolsSortOrderEnumValues Enumerates the set of values for ListInstancePoolsSortOrderEnum -func GetListInstancePoolsSortOrderEnumValues() []ListInstancePoolsSortOrderEnum { - values := make([]ListInstancePoolsSortOrderEnum, 0) - for _, v := range mappingListInstancePoolsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instances_request_response.go deleted file mode 100644 index 6fbd33cc08..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instances_request_response.go +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInstancesRequest wrapper for the ListInstances operation -type ListInstancesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // The OCID of the compute capacity reservation. - CapacityReservationId *string `mandatory:"false" contributesTo:"query" name:"capacityReservationId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state - // value is case-insensitive. - LifecycleState InstanceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInstancesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInstancesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInstancesResponse wrapper for the ListInstances operation -type ListInstancesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Instance instances - Items []Instance `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInstancesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInstancesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInstancesSortByEnum Enum with underlying type: string -type ListInstancesSortByEnum string - -// Set of constants representing the allowable values for ListInstancesSortByEnum -const ( - ListInstancesSortByTimecreated ListInstancesSortByEnum = "TIMECREATED" - ListInstancesSortByDisplayname ListInstancesSortByEnum = "DISPLAYNAME" -) - -var mappingListInstancesSortBy = map[string]ListInstancesSortByEnum{ - "TIMECREATED": ListInstancesSortByTimecreated, - "DISPLAYNAME": ListInstancesSortByDisplayname, -} - -// GetListInstancesSortByEnumValues Enumerates the set of values for ListInstancesSortByEnum -func GetListInstancesSortByEnumValues() []ListInstancesSortByEnum { - values := make([]ListInstancesSortByEnum, 0) - for _, v := range mappingListInstancesSortBy { - values = append(values, v) - } - return values -} - -// ListInstancesSortOrderEnum Enum with underlying type: string -type ListInstancesSortOrderEnum string - -// Set of constants representing the allowable values for ListInstancesSortOrderEnum -const ( - ListInstancesSortOrderAsc ListInstancesSortOrderEnum = "ASC" - ListInstancesSortOrderDesc ListInstancesSortOrderEnum = "DESC" -) - -var mappingListInstancesSortOrder = map[string]ListInstancesSortOrderEnum{ - "ASC": ListInstancesSortOrderAsc, - "DESC": ListInstancesSortOrderDesc, -} - -// GetListInstancesSortOrderEnumValues Enumerates the set of values for ListInstancesSortOrderEnum -func GetListInstancesSortOrderEnumValues() []ListInstancesSortOrderEnum { - values := make([]ListInstancesSortOrderEnum, 0) - for _, v := range mappingListInstancesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_public_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_public_ips_request_response.go deleted file mode 100644 index 3f29c03679..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_public_ips_request_response.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInternalPublicIpsRequest wrapper for the ListInternalPublicIps operation -type ListInternalPublicIpsRequest struct { - - // Whether the public IP is regional or specific to a particular availability domain. - // * `REGION`: The public IP exists within a region and is assigned to a regional entity - // (such as a NatGateway), or can be assigned to a private IP - // in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do - // ephemeral public IPs assigned to a regional entity. - // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity - // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. - // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. - Scope ListInternalPublicIpsScopeEnum `mandatory:"true" contributesTo:"query" name:"scope" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // A filter to return internal public IPs that match given lifetime. - Lifetime ListInternalPublicIpsLifetimeEnum `mandatory:"false" contributesTo:"query" name:"lifetime" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInternalPublicIpsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInternalPublicIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInternalPublicIpsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInternalPublicIpsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInternalPublicIpsResponse wrapper for the ListInternalPublicIps operation -type ListInternalPublicIpsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InternalPublicIp instances - Items []InternalPublicIp `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInternalPublicIpsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInternalPublicIpsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInternalPublicIpsScopeEnum Enum with underlying type: string -type ListInternalPublicIpsScopeEnum string - -// Set of constants representing the allowable values for ListInternalPublicIpsScopeEnum -const ( - ListInternalPublicIpsScopeRegion ListInternalPublicIpsScopeEnum = "REGION" - ListInternalPublicIpsScopeAvailabilityDomain ListInternalPublicIpsScopeEnum = "AVAILABILITY_DOMAIN" -) - -var mappingListInternalPublicIpsScope = map[string]ListInternalPublicIpsScopeEnum{ - "REGION": ListInternalPublicIpsScopeRegion, - "AVAILABILITY_DOMAIN": ListInternalPublicIpsScopeAvailabilityDomain, -} - -// GetListInternalPublicIpsScopeEnumValues Enumerates the set of values for ListInternalPublicIpsScopeEnum -func GetListInternalPublicIpsScopeEnumValues() []ListInternalPublicIpsScopeEnum { - values := make([]ListInternalPublicIpsScopeEnum, 0) - for _, v := range mappingListInternalPublicIpsScope { - values = append(values, v) - } - return values -} - -// ListInternalPublicIpsLifetimeEnum Enum with underlying type: string -type ListInternalPublicIpsLifetimeEnum string - -// Set of constants representing the allowable values for ListInternalPublicIpsLifetimeEnum -const ( - ListInternalPublicIpsLifetimeEphemeral ListInternalPublicIpsLifetimeEnum = "EPHEMERAL" - ListInternalPublicIpsLifetimeReserved ListInternalPublicIpsLifetimeEnum = "RESERVED" -) - -var mappingListInternalPublicIpsLifetime = map[string]ListInternalPublicIpsLifetimeEnum{ - "EPHEMERAL": ListInternalPublicIpsLifetimeEphemeral, - "RESERVED": ListInternalPublicIpsLifetimeReserved, -} - -// GetListInternalPublicIpsLifetimeEnumValues Enumerates the set of values for ListInternalPublicIpsLifetimeEnum -func GetListInternalPublicIpsLifetimeEnumValues() []ListInternalPublicIpsLifetimeEnum { - values := make([]ListInternalPublicIpsLifetimeEnum, 0) - for _, v := range mappingListInternalPublicIpsLifetime { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnics_request_response.go deleted file mode 100644 index fc7dc4716c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnics_request_response.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInternalVnicsRequest wrapper for the ListInternalVnics operation -type ListInternalVnicsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. - SubnetId *string `mandatory:"true" contributesTo:"query" name:"subnetId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInternalVnicsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInternalVnicsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A filter to return only resources that match the specified lifecycle state. - LifecycleState InternalVnicLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInternalVnicsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInternalVnicsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInternalVnicsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInternalVnicsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInternalVnicsResponse wrapper for the ListInternalVnics operation -type ListInternalVnicsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InternalVnic instances - Items []InternalVnic `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInternalVnicsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInternalVnicsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInternalVnicsSortByEnum Enum with underlying type: string -type ListInternalVnicsSortByEnum string - -// Set of constants representing the allowable values for ListInternalVnicsSortByEnum -const ( - ListInternalVnicsSortByTimecreated ListInternalVnicsSortByEnum = "TIMECREATED" - ListInternalVnicsSortByDisplayname ListInternalVnicsSortByEnum = "DISPLAYNAME" -) - -var mappingListInternalVnicsSortBy = map[string]ListInternalVnicsSortByEnum{ - "TIMECREATED": ListInternalVnicsSortByTimecreated, - "DISPLAYNAME": ListInternalVnicsSortByDisplayname, -} - -// GetListInternalVnicsSortByEnumValues Enumerates the set of values for ListInternalVnicsSortByEnum -func GetListInternalVnicsSortByEnumValues() []ListInternalVnicsSortByEnum { - values := make([]ListInternalVnicsSortByEnum, 0) - for _, v := range mappingListInternalVnicsSortBy { - values = append(values, v) - } - return values -} - -// ListInternalVnicsSortOrderEnum Enum with underlying type: string -type ListInternalVnicsSortOrderEnum string - -// Set of constants representing the allowable values for ListInternalVnicsSortOrderEnum -const ( - ListInternalVnicsSortOrderAsc ListInternalVnicsSortOrderEnum = "ASC" - ListInternalVnicsSortOrderDesc ListInternalVnicsSortOrderEnum = "DESC" -) - -var mappingListInternalVnicsSortOrder = map[string]ListInternalVnicsSortOrderEnum{ - "ASC": ListInternalVnicsSortOrderAsc, - "DESC": ListInternalVnicsSortOrderDesc, -} - -// GetListInternalVnicsSortOrderEnumValues Enumerates the set of values for ListInternalVnicsSortOrderEnum -func GetListInternalVnicsSortOrderEnumValues() []ListInternalVnicsSortOrderEnum { - values := make([]ListInternalVnicsSortOrderEnum, 0) - for _, v := range mappingListInternalVnicsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internet_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internet_gateways_request_response.go deleted file mode 100644 index dbdd12e7a7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internet_gateways_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListInternetGatewaysRequest wrapper for the ListInternetGateways operation -type ListInternetGatewaysRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListInternetGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListInternetGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListInternetGatewaysRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListInternetGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListInternetGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListInternetGatewaysRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListInternetGatewaysResponse wrapper for the ListInternetGateways operation -type ListInternetGatewaysResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []InternetGateway instances - Items []InternetGateway `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListInternetGatewaysResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListInternetGatewaysResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListInternetGatewaysSortByEnum Enum with underlying type: string -type ListInternetGatewaysSortByEnum string - -// Set of constants representing the allowable values for ListInternetGatewaysSortByEnum -const ( - ListInternetGatewaysSortByTimecreated ListInternetGatewaysSortByEnum = "TIMECREATED" - ListInternetGatewaysSortByDisplayname ListInternetGatewaysSortByEnum = "DISPLAYNAME" -) - -var mappingListInternetGatewaysSortBy = map[string]ListInternetGatewaysSortByEnum{ - "TIMECREATED": ListInternetGatewaysSortByTimecreated, - "DISPLAYNAME": ListInternetGatewaysSortByDisplayname, -} - -// GetListInternetGatewaysSortByEnumValues Enumerates the set of values for ListInternetGatewaysSortByEnum -func GetListInternetGatewaysSortByEnumValues() []ListInternetGatewaysSortByEnum { - values := make([]ListInternetGatewaysSortByEnum, 0) - for _, v := range mappingListInternetGatewaysSortBy { - values = append(values, v) - } - return values -} - -// ListInternetGatewaysSortOrderEnum Enum with underlying type: string -type ListInternetGatewaysSortOrderEnum string - -// Set of constants representing the allowable values for ListInternetGatewaysSortOrderEnum -const ( - ListInternetGatewaysSortOrderAsc ListInternetGatewaysSortOrderEnum = "ASC" - ListInternetGatewaysSortOrderDesc ListInternetGatewaysSortOrderEnum = "DESC" -) - -var mappingListInternetGatewaysSortOrder = map[string]ListInternetGatewaysSortOrderEnum{ - "ASC": ListInternetGatewaysSortOrderAsc, - "DESC": ListInternetGatewaysSortOrderDesc, -} - -// GetListInternetGatewaysSortOrderEnumValues Enumerates the set of values for ListInternetGatewaysSortOrderEnum -func GetListInternetGatewaysSortOrderEnumValues() []ListInternetGatewaysSortOrderEnum { - values := make([]ListInternetGatewaysSortOrderEnum, 0) - for _, v := range mappingListInternetGatewaysSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_nat_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_nat_gateways_request_response.go deleted file mode 100644 index bdc3ddc953..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_nat_gateways_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNatGatewaysRequest wrapper for the ListNatGateways operation -type ListNatGatewaysRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListNatGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListNatGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState NatGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNatGatewaysRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNatGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNatGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNatGatewaysRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNatGatewaysResponse wrapper for the ListNatGateways operation -type ListNatGatewaysResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []NatGateway instances - Items []NatGateway `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNatGatewaysResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNatGatewaysResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNatGatewaysSortByEnum Enum with underlying type: string -type ListNatGatewaysSortByEnum string - -// Set of constants representing the allowable values for ListNatGatewaysSortByEnum -const ( - ListNatGatewaysSortByTimecreated ListNatGatewaysSortByEnum = "TIMECREATED" - ListNatGatewaysSortByDisplayname ListNatGatewaysSortByEnum = "DISPLAYNAME" -) - -var mappingListNatGatewaysSortBy = map[string]ListNatGatewaysSortByEnum{ - "TIMECREATED": ListNatGatewaysSortByTimecreated, - "DISPLAYNAME": ListNatGatewaysSortByDisplayname, -} - -// GetListNatGatewaysSortByEnumValues Enumerates the set of values for ListNatGatewaysSortByEnum -func GetListNatGatewaysSortByEnumValues() []ListNatGatewaysSortByEnum { - values := make([]ListNatGatewaysSortByEnum, 0) - for _, v := range mappingListNatGatewaysSortBy { - values = append(values, v) - } - return values -} - -// ListNatGatewaysSortOrderEnum Enum with underlying type: string -type ListNatGatewaysSortOrderEnum string - -// Set of constants representing the allowable values for ListNatGatewaysSortOrderEnum -const ( - ListNatGatewaysSortOrderAsc ListNatGatewaysSortOrderEnum = "ASC" - ListNatGatewaysSortOrderDesc ListNatGatewaysSortOrderEnum = "DESC" -) - -var mappingListNatGatewaysSortOrder = map[string]ListNatGatewaysSortOrderEnum{ - "ASC": ListNatGatewaysSortOrderAsc, - "DESC": ListNatGatewaysSortOrderDesc, -} - -// GetListNatGatewaysSortOrderEnumValues Enumerates the set of values for ListNatGatewaysSortOrderEnum -func GetListNatGatewaysSortOrderEnumValues() []ListNatGatewaysSortOrderEnum { - values := make([]ListNatGatewaysSortOrderEnum, 0) - for _, v := range mappingListNatGatewaysSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_security_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_security_rules_request_response.go deleted file mode 100644 index 9020520eef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_security_rules_request_response.go +++ /dev/null @@ -1,164 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkSecurityGroupSecurityRulesRequest wrapper for the ListNetworkSecurityGroupSecurityRules operation -type ListNetworkSecurityGroupSecurityRulesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. - NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` - - // Direction of the security rule. Set to `EGRESS` for rules that allow outbound IP packets, - // or `INGRESS` for rules that allow inbound IP packets. - Direction ListNetworkSecurityGroupSecurityRulesDirectionEnum `mandatory:"false" contributesTo:"query" name:"direction" omitEmpty:"true"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. - SortBy ListNetworkSecurityGroupSecurityRulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListNetworkSecurityGroupSecurityRulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkSecurityGroupSecurityRulesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkSecurityGroupSecurityRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkSecurityGroupSecurityRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkSecurityGroupSecurityRulesResponse wrapper for the ListNetworkSecurityGroupSecurityRules operation -type ListNetworkSecurityGroupSecurityRulesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []SecurityRule instances - Items []SecurityRule `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNetworkSecurityGroupSecurityRulesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkSecurityGroupSecurityRulesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkSecurityGroupSecurityRulesDirectionEnum Enum with underlying type: string -type ListNetworkSecurityGroupSecurityRulesDirectionEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupSecurityRulesDirectionEnum -const ( - ListNetworkSecurityGroupSecurityRulesDirectionEgress ListNetworkSecurityGroupSecurityRulesDirectionEnum = "EGRESS" - ListNetworkSecurityGroupSecurityRulesDirectionIngress ListNetworkSecurityGroupSecurityRulesDirectionEnum = "INGRESS" -) - -var mappingListNetworkSecurityGroupSecurityRulesDirection = map[string]ListNetworkSecurityGroupSecurityRulesDirectionEnum{ - "EGRESS": ListNetworkSecurityGroupSecurityRulesDirectionEgress, - "INGRESS": ListNetworkSecurityGroupSecurityRulesDirectionIngress, -} - -// GetListNetworkSecurityGroupSecurityRulesDirectionEnumValues Enumerates the set of values for ListNetworkSecurityGroupSecurityRulesDirectionEnum -func GetListNetworkSecurityGroupSecurityRulesDirectionEnumValues() []ListNetworkSecurityGroupSecurityRulesDirectionEnum { - values := make([]ListNetworkSecurityGroupSecurityRulesDirectionEnum, 0) - for _, v := range mappingListNetworkSecurityGroupSecurityRulesDirection { - values = append(values, v) - } - return values -} - -// ListNetworkSecurityGroupSecurityRulesSortByEnum Enum with underlying type: string -type ListNetworkSecurityGroupSecurityRulesSortByEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupSecurityRulesSortByEnum -const ( - ListNetworkSecurityGroupSecurityRulesSortByTimecreated ListNetworkSecurityGroupSecurityRulesSortByEnum = "TIMECREATED" -) - -var mappingListNetworkSecurityGroupSecurityRulesSortBy = map[string]ListNetworkSecurityGroupSecurityRulesSortByEnum{ - "TIMECREATED": ListNetworkSecurityGroupSecurityRulesSortByTimecreated, -} - -// GetListNetworkSecurityGroupSecurityRulesSortByEnumValues Enumerates the set of values for ListNetworkSecurityGroupSecurityRulesSortByEnum -func GetListNetworkSecurityGroupSecurityRulesSortByEnumValues() []ListNetworkSecurityGroupSecurityRulesSortByEnum { - values := make([]ListNetworkSecurityGroupSecurityRulesSortByEnum, 0) - for _, v := range mappingListNetworkSecurityGroupSecurityRulesSortBy { - values = append(values, v) - } - return values -} - -// ListNetworkSecurityGroupSecurityRulesSortOrderEnum Enum with underlying type: string -type ListNetworkSecurityGroupSecurityRulesSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupSecurityRulesSortOrderEnum -const ( - ListNetworkSecurityGroupSecurityRulesSortOrderAsc ListNetworkSecurityGroupSecurityRulesSortOrderEnum = "ASC" - ListNetworkSecurityGroupSecurityRulesSortOrderDesc ListNetworkSecurityGroupSecurityRulesSortOrderEnum = "DESC" -) - -var mappingListNetworkSecurityGroupSecurityRulesSortOrder = map[string]ListNetworkSecurityGroupSecurityRulesSortOrderEnum{ - "ASC": ListNetworkSecurityGroupSecurityRulesSortOrderAsc, - "DESC": ListNetworkSecurityGroupSecurityRulesSortOrderDesc, -} - -// GetListNetworkSecurityGroupSecurityRulesSortOrderEnumValues Enumerates the set of values for ListNetworkSecurityGroupSecurityRulesSortOrderEnum -func GetListNetworkSecurityGroupSecurityRulesSortOrderEnumValues() []ListNetworkSecurityGroupSecurityRulesSortOrderEnum { - values := make([]ListNetworkSecurityGroupSecurityRulesSortOrderEnum, 0) - for _, v := range mappingListNetworkSecurityGroupSecurityRulesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_vnics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_vnics_request_response.go deleted file mode 100644 index 1f968c275d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_group_vnics_request_response.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkSecurityGroupVnicsRequest wrapper for the ListNetworkSecurityGroupVnics operation -type ListNetworkSecurityGroupVnicsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. - NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. - SortBy ListNetworkSecurityGroupVnicsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListNetworkSecurityGroupVnicsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkSecurityGroupVnicsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkSecurityGroupVnicsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkSecurityGroupVnicsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkSecurityGroupVnicsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkSecurityGroupVnicsResponse wrapper for the ListNetworkSecurityGroupVnics operation -type ListNetworkSecurityGroupVnicsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []NetworkSecurityGroupVnic instances - Items []NetworkSecurityGroupVnic `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNetworkSecurityGroupVnicsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkSecurityGroupVnicsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkSecurityGroupVnicsSortByEnum Enum with underlying type: string -type ListNetworkSecurityGroupVnicsSortByEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupVnicsSortByEnum -const ( - ListNetworkSecurityGroupVnicsSortByTimeassociated ListNetworkSecurityGroupVnicsSortByEnum = "TIMEASSOCIATED" -) - -var mappingListNetworkSecurityGroupVnicsSortBy = map[string]ListNetworkSecurityGroupVnicsSortByEnum{ - "TIMEASSOCIATED": ListNetworkSecurityGroupVnicsSortByTimeassociated, -} - -// GetListNetworkSecurityGroupVnicsSortByEnumValues Enumerates the set of values for ListNetworkSecurityGroupVnicsSortByEnum -func GetListNetworkSecurityGroupVnicsSortByEnumValues() []ListNetworkSecurityGroupVnicsSortByEnum { - values := make([]ListNetworkSecurityGroupVnicsSortByEnum, 0) - for _, v := range mappingListNetworkSecurityGroupVnicsSortBy { - values = append(values, v) - } - return values -} - -// ListNetworkSecurityGroupVnicsSortOrderEnum Enum with underlying type: string -type ListNetworkSecurityGroupVnicsSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupVnicsSortOrderEnum -const ( - ListNetworkSecurityGroupVnicsSortOrderAsc ListNetworkSecurityGroupVnicsSortOrderEnum = "ASC" - ListNetworkSecurityGroupVnicsSortOrderDesc ListNetworkSecurityGroupVnicsSortOrderEnum = "DESC" -) - -var mappingListNetworkSecurityGroupVnicsSortOrder = map[string]ListNetworkSecurityGroupVnicsSortOrderEnum{ - "ASC": ListNetworkSecurityGroupVnicsSortOrderAsc, - "DESC": ListNetworkSecurityGroupVnicsSortOrderDesc, -} - -// GetListNetworkSecurityGroupVnicsSortOrderEnumValues Enumerates the set of values for ListNetworkSecurityGroupVnicsSortOrderEnum -func GetListNetworkSecurityGroupVnicsSortOrderEnumValues() []ListNetworkSecurityGroupVnicsSortOrderEnum { - values := make([]ListNetworkSecurityGroupVnicsSortOrderEnum, 0) - for _, v := range mappingListNetworkSecurityGroupVnicsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_groups_request_response.go deleted file mode 100644 index 83c48036f1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_network_security_groups_request_response.go +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkSecurityGroupsRequest wrapper for the ListNetworkSecurityGroups operation -type ListNetworkSecurityGroupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. - VlanId *string `mandatory:"false" contributesTo:"query" name:"vlanId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListNetworkSecurityGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListNetworkSecurityGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState NetworkSecurityGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkSecurityGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkSecurityGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkSecurityGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkSecurityGroupsResponse wrapper for the ListNetworkSecurityGroups operation -type ListNetworkSecurityGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []NetworkSecurityGroup instances - Items []NetworkSecurityGroup `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNetworkSecurityGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkSecurityGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkSecurityGroupsSortByEnum Enum with underlying type: string -type ListNetworkSecurityGroupsSortByEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupsSortByEnum -const ( - ListNetworkSecurityGroupsSortByTimecreated ListNetworkSecurityGroupsSortByEnum = "TIMECREATED" - ListNetworkSecurityGroupsSortByDisplayname ListNetworkSecurityGroupsSortByEnum = "DISPLAYNAME" -) - -var mappingListNetworkSecurityGroupsSortBy = map[string]ListNetworkSecurityGroupsSortByEnum{ - "TIMECREATED": ListNetworkSecurityGroupsSortByTimecreated, - "DISPLAYNAME": ListNetworkSecurityGroupsSortByDisplayname, -} - -// GetListNetworkSecurityGroupsSortByEnumValues Enumerates the set of values for ListNetworkSecurityGroupsSortByEnum -func GetListNetworkSecurityGroupsSortByEnumValues() []ListNetworkSecurityGroupsSortByEnum { - values := make([]ListNetworkSecurityGroupsSortByEnum, 0) - for _, v := range mappingListNetworkSecurityGroupsSortBy { - values = append(values, v) - } - return values -} - -// ListNetworkSecurityGroupsSortOrderEnum Enum with underlying type: string -type ListNetworkSecurityGroupsSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkSecurityGroupsSortOrderEnum -const ( - ListNetworkSecurityGroupsSortOrderAsc ListNetworkSecurityGroupsSortOrderEnum = "ASC" - ListNetworkSecurityGroupsSortOrderDesc ListNetworkSecurityGroupsSortOrderEnum = "DESC" -) - -var mappingListNetworkSecurityGroupsSortOrder = map[string]ListNetworkSecurityGroupsSortOrderEnum{ - "ASC": ListNetworkSecurityGroupsSortOrderAsc, - "DESC": ListNetworkSecurityGroupsSortOrderDesc, -} - -// GetListNetworkSecurityGroupsSortOrderEnumValues Enumerates the set of values for ListNetworkSecurityGroupsSortOrderEnum -func GetListNetworkSecurityGroupsSortOrderEnumValues() []ListNetworkSecurityGroupsSortOrderEnum { - values := make([]ListNetworkSecurityGroupsSortOrderEnum, 0) - for _, v := range mappingListNetworkSecurityGroupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_access_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_access_gateways_request_response.go deleted file mode 100644 index ad0d5f835e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_access_gateways_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPrivateAccessGatewaysRequest wrapper for the ListPrivateAccessGateways operation -type ListPrivateAccessGatewaysRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListPrivateAccessGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListPrivateAccessGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPrivateAccessGatewaysRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPrivateAccessGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPrivateAccessGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPrivateAccessGatewaysRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPrivateAccessGatewaysResponse wrapper for the ListPrivateAccessGateways operation -type ListPrivateAccessGatewaysResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []PrivateAccessGatewaySummary instances - Items []PrivateAccessGatewaySummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPrivateAccessGatewaysResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPrivateAccessGatewaysResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPrivateAccessGatewaysSortByEnum Enum with underlying type: string -type ListPrivateAccessGatewaysSortByEnum string - -// Set of constants representing the allowable values for ListPrivateAccessGatewaysSortByEnum -const ( - ListPrivateAccessGatewaysSortByTimecreated ListPrivateAccessGatewaysSortByEnum = "TIMECREATED" - ListPrivateAccessGatewaysSortByDisplayname ListPrivateAccessGatewaysSortByEnum = "DISPLAYNAME" -) - -var mappingListPrivateAccessGatewaysSortBy = map[string]ListPrivateAccessGatewaysSortByEnum{ - "TIMECREATED": ListPrivateAccessGatewaysSortByTimecreated, - "DISPLAYNAME": ListPrivateAccessGatewaysSortByDisplayname, -} - -// GetListPrivateAccessGatewaysSortByEnumValues Enumerates the set of values for ListPrivateAccessGatewaysSortByEnum -func GetListPrivateAccessGatewaysSortByEnumValues() []ListPrivateAccessGatewaysSortByEnum { - values := make([]ListPrivateAccessGatewaysSortByEnum, 0) - for _, v := range mappingListPrivateAccessGatewaysSortBy { - values = append(values, v) - } - return values -} - -// ListPrivateAccessGatewaysSortOrderEnum Enum with underlying type: string -type ListPrivateAccessGatewaysSortOrderEnum string - -// Set of constants representing the allowable values for ListPrivateAccessGatewaysSortOrderEnum -const ( - ListPrivateAccessGatewaysSortOrderAsc ListPrivateAccessGatewaysSortOrderEnum = "ASC" - ListPrivateAccessGatewaysSortOrderDesc ListPrivateAccessGatewaysSortOrderEnum = "DESC" -) - -var mappingListPrivateAccessGatewaysSortOrder = map[string]ListPrivateAccessGatewaysSortOrderEnum{ - "ASC": ListPrivateAccessGatewaysSortOrderAsc, - "DESC": ListPrivateAccessGatewaysSortOrderDesc, -} - -// GetListPrivateAccessGatewaysSortOrderEnumValues Enumerates the set of values for ListPrivateAccessGatewaysSortOrderEnum -func GetListPrivateAccessGatewaysSortOrderEnumValues() []ListPrivateAccessGatewaysSortOrderEnum { - values := make([]ListPrivateAccessGatewaysSortOrderEnum, 0) - for _, v := range mappingListPrivateAccessGatewaysSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoint_associations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoint_associations_request_response.go deleted file mode 100644 index 2bfa4a0da3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoint_associations_request_response.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPrivateEndpointAssociationsRequest wrapper for the ListPrivateEndpointAssociations operation -type ListPrivateEndpointAssociationsRequest struct { - - // The endpoint service's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - EndpointServiceId *string `mandatory:"true" contributesTo:"path" name:"endpointServiceId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListPrivateEndpointAssociationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListPrivateEndpointAssociationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPrivateEndpointAssociationsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPrivateEndpointAssociationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPrivateEndpointAssociationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPrivateEndpointAssociationsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPrivateEndpointAssociationsResponse wrapper for the ListPrivateEndpointAssociations operation -type ListPrivateEndpointAssociationsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []PrivateEndpointAssociation instances - Items []PrivateEndpointAssociation `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPrivateEndpointAssociationsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPrivateEndpointAssociationsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPrivateEndpointAssociationsSortByEnum Enum with underlying type: string -type ListPrivateEndpointAssociationsSortByEnum string - -// Set of constants representing the allowable values for ListPrivateEndpointAssociationsSortByEnum -const ( - ListPrivateEndpointAssociationsSortByTimecreated ListPrivateEndpointAssociationsSortByEnum = "TIMECREATED" - ListPrivateEndpointAssociationsSortByDisplayname ListPrivateEndpointAssociationsSortByEnum = "DISPLAYNAME" -) - -var mappingListPrivateEndpointAssociationsSortBy = map[string]ListPrivateEndpointAssociationsSortByEnum{ - "TIMECREATED": ListPrivateEndpointAssociationsSortByTimecreated, - "DISPLAYNAME": ListPrivateEndpointAssociationsSortByDisplayname, -} - -// GetListPrivateEndpointAssociationsSortByEnumValues Enumerates the set of values for ListPrivateEndpointAssociationsSortByEnum -func GetListPrivateEndpointAssociationsSortByEnumValues() []ListPrivateEndpointAssociationsSortByEnum { - values := make([]ListPrivateEndpointAssociationsSortByEnum, 0) - for _, v := range mappingListPrivateEndpointAssociationsSortBy { - values = append(values, v) - } - return values -} - -// ListPrivateEndpointAssociationsSortOrderEnum Enum with underlying type: string -type ListPrivateEndpointAssociationsSortOrderEnum string - -// Set of constants representing the allowable values for ListPrivateEndpointAssociationsSortOrderEnum -const ( - ListPrivateEndpointAssociationsSortOrderAsc ListPrivateEndpointAssociationsSortOrderEnum = "ASC" - ListPrivateEndpointAssociationsSortOrderDesc ListPrivateEndpointAssociationsSortOrderEnum = "DESC" -) - -var mappingListPrivateEndpointAssociationsSortOrder = map[string]ListPrivateEndpointAssociationsSortOrderEnum{ - "ASC": ListPrivateEndpointAssociationsSortOrderAsc, - "DESC": ListPrivateEndpointAssociationsSortOrderDesc, -} - -// GetListPrivateEndpointAssociationsSortOrderEnumValues Enumerates the set of values for ListPrivateEndpointAssociationsSortOrderEnum -func GetListPrivateEndpointAssociationsSortOrderEnumValues() []ListPrivateEndpointAssociationsSortOrderEnum { - values := make([]ListPrivateEndpointAssociationsSortOrderEnum, 0) - for _, v := range mappingListPrivateEndpointAssociationsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoints_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoints_request_response.go deleted file mode 100644 index 6627462b9f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_endpoints_request_response.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPrivateEndpointsRequest wrapper for the ListPrivateEndpoints operation -type ListPrivateEndpointsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. - SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListPrivateEndpointsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListPrivateEndpointsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPrivateEndpointsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPrivateEndpointsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPrivateEndpointsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPrivateEndpointsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPrivateEndpointsResponse wrapper for the ListPrivateEndpoints operation -type ListPrivateEndpointsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []PrivateEndpointSummary instances - Items []PrivateEndpointSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPrivateEndpointsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPrivateEndpointsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPrivateEndpointsSortByEnum Enum with underlying type: string -type ListPrivateEndpointsSortByEnum string - -// Set of constants representing the allowable values for ListPrivateEndpointsSortByEnum -const ( - ListPrivateEndpointsSortByTimecreated ListPrivateEndpointsSortByEnum = "TIMECREATED" - ListPrivateEndpointsSortByDisplayname ListPrivateEndpointsSortByEnum = "DISPLAYNAME" -) - -var mappingListPrivateEndpointsSortBy = map[string]ListPrivateEndpointsSortByEnum{ - "TIMECREATED": ListPrivateEndpointsSortByTimecreated, - "DISPLAYNAME": ListPrivateEndpointsSortByDisplayname, -} - -// GetListPrivateEndpointsSortByEnumValues Enumerates the set of values for ListPrivateEndpointsSortByEnum -func GetListPrivateEndpointsSortByEnumValues() []ListPrivateEndpointsSortByEnum { - values := make([]ListPrivateEndpointsSortByEnum, 0) - for _, v := range mappingListPrivateEndpointsSortBy { - values = append(values, v) - } - return values -} - -// ListPrivateEndpointsSortOrderEnum Enum with underlying type: string -type ListPrivateEndpointsSortOrderEnum string - -// Set of constants representing the allowable values for ListPrivateEndpointsSortOrderEnum -const ( - ListPrivateEndpointsSortOrderAsc ListPrivateEndpointsSortOrderEnum = "ASC" - ListPrivateEndpointsSortOrderDesc ListPrivateEndpointsSortOrderEnum = "DESC" -) - -var mappingListPrivateEndpointsSortOrder = map[string]ListPrivateEndpointsSortOrderEnum{ - "ASC": ListPrivateEndpointsSortOrderAsc, - "DESC": ListPrivateEndpointsSortOrderDesc, -} - -// GetListPrivateEndpointsSortOrderEnumValues Enumerates the set of values for ListPrivateEndpointsSortOrderEnum -func GetListPrivateEndpointsSortOrderEnumValues() []ListPrivateEndpointsSortOrderEnum { - values := make([]ListPrivateEndpointsSortOrderEnum, 0) - for _, v := range mappingListPrivateEndpointsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ip_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ip_pools_request_response.go deleted file mode 100644 index b2a99ad193..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ip_pools_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPublicIpPoolsRequest wrapper for the ListPublicIpPools operation -type ListPublicIpPoolsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that match the given BYOIP CIDR block. - ByoipRangeId *string `mandatory:"false" contributesTo:"query" name:"byoipRangeId"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListPublicIpPoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListPublicIpPoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPublicIpPoolsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPublicIpPoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPublicIpPoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPublicIpPoolsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPublicIpPoolsResponse wrapper for the ListPublicIpPools operation -type ListPublicIpPoolsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of PublicIpPoolCollection instances - PublicIpPoolCollection `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPublicIpPoolsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPublicIpPoolsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPublicIpPoolsSortByEnum Enum with underlying type: string -type ListPublicIpPoolsSortByEnum string - -// Set of constants representing the allowable values for ListPublicIpPoolsSortByEnum -const ( - ListPublicIpPoolsSortByTimecreated ListPublicIpPoolsSortByEnum = "TIMECREATED" - ListPublicIpPoolsSortByDisplayname ListPublicIpPoolsSortByEnum = "DISPLAYNAME" -) - -var mappingListPublicIpPoolsSortBy = map[string]ListPublicIpPoolsSortByEnum{ - "TIMECREATED": ListPublicIpPoolsSortByTimecreated, - "DISPLAYNAME": ListPublicIpPoolsSortByDisplayname, -} - -// GetListPublicIpPoolsSortByEnumValues Enumerates the set of values for ListPublicIpPoolsSortByEnum -func GetListPublicIpPoolsSortByEnumValues() []ListPublicIpPoolsSortByEnum { - values := make([]ListPublicIpPoolsSortByEnum, 0) - for _, v := range mappingListPublicIpPoolsSortBy { - values = append(values, v) - } - return values -} - -// ListPublicIpPoolsSortOrderEnum Enum with underlying type: string -type ListPublicIpPoolsSortOrderEnum string - -// Set of constants representing the allowable values for ListPublicIpPoolsSortOrderEnum -const ( - ListPublicIpPoolsSortOrderAsc ListPublicIpPoolsSortOrderEnum = "ASC" - ListPublicIpPoolsSortOrderDesc ListPublicIpPoolsSortOrderEnum = "DESC" -) - -var mappingListPublicIpPoolsSortOrder = map[string]ListPublicIpPoolsSortOrderEnum{ - "ASC": ListPublicIpPoolsSortOrderAsc, - "DESC": ListPublicIpPoolsSortOrderDesc, -} - -// GetListPublicIpPoolsSortOrderEnumValues Enumerates the set of values for ListPublicIpPoolsSortOrderEnum -func GetListPublicIpPoolsSortOrderEnumValues() []ListPublicIpPoolsSortOrderEnum { - values := make([]ListPublicIpPoolsSortOrderEnum, 0) - for _, v := range mappingListPublicIpPoolsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ips_request_response.go deleted file mode 100644 index bf4f867a17..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_public_ips_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPublicIpsRequest wrapper for the ListPublicIps operation -type ListPublicIpsRequest struct { - - // Whether the public IP is regional or specific to a particular availability domain. - // * `REGION`: The public IP exists within a region and is assigned to a regional entity - // (such as a NatGateway), or can be assigned to a private IP - // in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do - // ephemeral public IPs assigned to a regional entity. - // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity - // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. - // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. - Scope ListPublicIpsScopeEnum `mandatory:"true" contributesTo:"query" name:"scope" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // A filter to return only public IPs that match given lifetime. - Lifetime ListPublicIpsLifetimeEnum `mandatory:"false" contributesTo:"query" name:"lifetime" omitEmpty:"true"` - - // A filter to return only resources that belong to the given public IP pool. - PublicIpPoolId *string `mandatory:"false" contributesTo:"query" name:"publicIpPoolId"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPublicIpsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPublicIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPublicIpsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPublicIpsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPublicIpsResponse wrapper for the ListPublicIps operation -type ListPublicIpsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []PublicIp instances - Items []PublicIp `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPublicIpsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPublicIpsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPublicIpsScopeEnum Enum with underlying type: string -type ListPublicIpsScopeEnum string - -// Set of constants representing the allowable values for ListPublicIpsScopeEnum -const ( - ListPublicIpsScopeRegion ListPublicIpsScopeEnum = "REGION" - ListPublicIpsScopeAvailabilityDomain ListPublicIpsScopeEnum = "AVAILABILITY_DOMAIN" -) - -var mappingListPublicIpsScope = map[string]ListPublicIpsScopeEnum{ - "REGION": ListPublicIpsScopeRegion, - "AVAILABILITY_DOMAIN": ListPublicIpsScopeAvailabilityDomain, -} - -// GetListPublicIpsScopeEnumValues Enumerates the set of values for ListPublicIpsScopeEnum -func GetListPublicIpsScopeEnumValues() []ListPublicIpsScopeEnum { - values := make([]ListPublicIpsScopeEnum, 0) - for _, v := range mappingListPublicIpsScope { - values = append(values, v) - } - return values -} - -// ListPublicIpsLifetimeEnum Enum with underlying type: string -type ListPublicIpsLifetimeEnum string - -// Set of constants representing the allowable values for ListPublicIpsLifetimeEnum -const ( - ListPublicIpsLifetimeEphemeral ListPublicIpsLifetimeEnum = "EPHEMERAL" - ListPublicIpsLifetimeReserved ListPublicIpsLifetimeEnum = "RESERVED" -) - -var mappingListPublicIpsLifetime = map[string]ListPublicIpsLifetimeEnum{ - "EPHEMERAL": ListPublicIpsLifetimeEphemeral, - "RESERVED": ListPublicIpsLifetimeReserved, -} - -// GetListPublicIpsLifetimeEnumValues Enumerates the set of values for ListPublicIpsLifetimeEnum -func GetListPublicIpsLifetimeEnumValues() []ListPublicIpsLifetimeEnum { - values := make([]ListPublicIpsLifetimeEnum, 0) - for _, v := range mappingListPublicIpsLifetime { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ips_request_response.go deleted file mode 100644 index c42e8d3d09..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ips_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListReverseConnectionNatIpsRequest wrapper for the ListReverseConnectionNatIps operation -type ListReverseConnectionNatIpsRequest struct { - - // The private endpoint's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - PrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"privateEndpointId"` - - // The reverse connection NAT IP address that corresponds to a customer's IP address. - ReverseConnectionNatIp *string `mandatory:"false" contributesTo:"query" name:"reverseConnectionNatIp"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListReverseConnectionNatIpsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListReverseConnectionNatIpsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState ReverseConnectionNatIpLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListReverseConnectionNatIpsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListReverseConnectionNatIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListReverseConnectionNatIpsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListReverseConnectionNatIpsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListReverseConnectionNatIpsResponse wrapper for the ListReverseConnectionNatIps operation -type ListReverseConnectionNatIpsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ReverseConnectionNatIp instances - Items []ReverseConnectionNatIp `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListReverseConnectionNatIpsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListReverseConnectionNatIpsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListReverseConnectionNatIpsSortByEnum Enum with underlying type: string -type ListReverseConnectionNatIpsSortByEnum string - -// Set of constants representing the allowable values for ListReverseConnectionNatIpsSortByEnum -const ( - ListReverseConnectionNatIpsSortByTimecreated ListReverseConnectionNatIpsSortByEnum = "TIMECREATED" - ListReverseConnectionNatIpsSortByDisplayname ListReverseConnectionNatIpsSortByEnum = "DISPLAYNAME" -) - -var mappingListReverseConnectionNatIpsSortBy = map[string]ListReverseConnectionNatIpsSortByEnum{ - "TIMECREATED": ListReverseConnectionNatIpsSortByTimecreated, - "DISPLAYNAME": ListReverseConnectionNatIpsSortByDisplayname, -} - -// GetListReverseConnectionNatIpsSortByEnumValues Enumerates the set of values for ListReverseConnectionNatIpsSortByEnum -func GetListReverseConnectionNatIpsSortByEnumValues() []ListReverseConnectionNatIpsSortByEnum { - values := make([]ListReverseConnectionNatIpsSortByEnum, 0) - for _, v := range mappingListReverseConnectionNatIpsSortBy { - values = append(values, v) - } - return values -} - -// ListReverseConnectionNatIpsSortOrderEnum Enum with underlying type: string -type ListReverseConnectionNatIpsSortOrderEnum string - -// Set of constants representing the allowable values for ListReverseConnectionNatIpsSortOrderEnum -const ( - ListReverseConnectionNatIpsSortOrderAsc ListReverseConnectionNatIpsSortOrderEnum = "ASC" - ListReverseConnectionNatIpsSortOrderDesc ListReverseConnectionNatIpsSortOrderEnum = "DESC" -) - -var mappingListReverseConnectionNatIpsSortOrder = map[string]ListReverseConnectionNatIpsSortOrderEnum{ - "ASC": ListReverseConnectionNatIpsSortOrderAsc, - "DESC": ListReverseConnectionNatIpsSortOrderDesc, -} - -// GetListReverseConnectionNatIpsSortOrderEnumValues Enumerates the set of values for ListReverseConnectionNatIpsSortOrderEnum -func GetListReverseConnectionNatIpsSortOrderEnumValues() []ListReverseConnectionNatIpsSortOrderEnum { - values := make([]ListReverseConnectionNatIpsSortOrderEnum, 0) - for _, v := range mappingListReverseConnectionNatIpsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_route_tables_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_route_tables_request_response.go deleted file mode 100644 index c97fcec794..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_route_tables_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListRouteTablesRequest wrapper for the ListRouteTables operation -type ListRouteTablesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListRouteTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState RouteTableLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListRouteTablesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListRouteTablesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListRouteTablesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListRouteTablesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListRouteTablesResponse wrapper for the ListRouteTables operation -type ListRouteTablesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []RouteTable instances - Items []RouteTable `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListRouteTablesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListRouteTablesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListRouteTablesSortByEnum Enum with underlying type: string -type ListRouteTablesSortByEnum string - -// Set of constants representing the allowable values for ListRouteTablesSortByEnum -const ( - ListRouteTablesSortByTimecreated ListRouteTablesSortByEnum = "TIMECREATED" - ListRouteTablesSortByDisplayname ListRouteTablesSortByEnum = "DISPLAYNAME" -) - -var mappingListRouteTablesSortBy = map[string]ListRouteTablesSortByEnum{ - "TIMECREATED": ListRouteTablesSortByTimecreated, - "DISPLAYNAME": ListRouteTablesSortByDisplayname, -} - -// GetListRouteTablesSortByEnumValues Enumerates the set of values for ListRouteTablesSortByEnum -func GetListRouteTablesSortByEnumValues() []ListRouteTablesSortByEnum { - values := make([]ListRouteTablesSortByEnum, 0) - for _, v := range mappingListRouteTablesSortBy { - values = append(values, v) - } - return values -} - -// ListRouteTablesSortOrderEnum Enum with underlying type: string -type ListRouteTablesSortOrderEnum string - -// Set of constants representing the allowable values for ListRouteTablesSortOrderEnum -const ( - ListRouteTablesSortOrderAsc ListRouteTablesSortOrderEnum = "ASC" - ListRouteTablesSortOrderDesc ListRouteTablesSortOrderEnum = "DESC" -) - -var mappingListRouteTablesSortOrder = map[string]ListRouteTablesSortOrderEnum{ - "ASC": ListRouteTablesSortOrderAsc, - "DESC": ListRouteTablesSortOrderDesc, -} - -// GetListRouteTablesSortOrderEnumValues Enumerates the set of values for ListRouteTablesSortOrderEnum -func GetListRouteTablesSortOrderEnumValues() []ListRouteTablesSortOrderEnum { - values := make([]ListRouteTablesSortOrderEnum, 0) - for _, v := range mappingListRouteTablesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_scan_proxies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_scan_proxies_request_response.go deleted file mode 100644 index 1dc62a66d3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_scan_proxies_request_response.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListScanProxiesRequest wrapper for the ListScanProxies operation -type ListScanProxiesRequest struct { - - // The private endpoint's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - PrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"privateEndpointId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListScanProxiesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListScanProxiesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListScanProxiesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListScanProxiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListScanProxiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListScanProxiesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListScanProxiesResponse wrapper for the ListScanProxies operation -type ListScanProxiesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ScanProxySummary instances - Items []ScanProxySummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListScanProxiesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListScanProxiesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListScanProxiesSortByEnum Enum with underlying type: string -type ListScanProxiesSortByEnum string - -// Set of constants representing the allowable values for ListScanProxiesSortByEnum -const ( - ListScanProxiesSortByTimecreated ListScanProxiesSortByEnum = "TIMECREATED" - ListScanProxiesSortByDisplayname ListScanProxiesSortByEnum = "DISPLAYNAME" -) - -var mappingListScanProxiesSortBy = map[string]ListScanProxiesSortByEnum{ - "TIMECREATED": ListScanProxiesSortByTimecreated, - "DISPLAYNAME": ListScanProxiesSortByDisplayname, -} - -// GetListScanProxiesSortByEnumValues Enumerates the set of values for ListScanProxiesSortByEnum -func GetListScanProxiesSortByEnumValues() []ListScanProxiesSortByEnum { - values := make([]ListScanProxiesSortByEnum, 0) - for _, v := range mappingListScanProxiesSortBy { - values = append(values, v) - } - return values -} - -// ListScanProxiesSortOrderEnum Enum with underlying type: string -type ListScanProxiesSortOrderEnum string - -// Set of constants representing the allowable values for ListScanProxiesSortOrderEnum -const ( - ListScanProxiesSortOrderAsc ListScanProxiesSortOrderEnum = "ASC" - ListScanProxiesSortOrderDesc ListScanProxiesSortOrderEnum = "DESC" -) - -var mappingListScanProxiesSortOrder = map[string]ListScanProxiesSortOrderEnum{ - "ASC": ListScanProxiesSortOrderAsc, - "DESC": ListScanProxiesSortOrderDesc, -} - -// GetListScanProxiesSortOrderEnumValues Enumerates the set of values for ListScanProxiesSortOrderEnum -func GetListScanProxiesSortOrderEnumValues() []ListScanProxiesSortOrderEnum { - values := make([]ListScanProxiesSortOrderEnum, 0) - for _, v := range mappingListScanProxiesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_security_lists_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_security_lists_request_response.go deleted file mode 100644 index 0e3dec9971..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_security_lists_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListSecurityListsRequest wrapper for the ListSecurityLists operation -type ListSecurityListsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListSecurityListsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListSecurityListsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState SecurityListLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListSecurityListsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListSecurityListsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListSecurityListsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListSecurityListsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListSecurityListsResponse wrapper for the ListSecurityLists operation -type ListSecurityListsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []SecurityList instances - Items []SecurityList `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListSecurityListsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListSecurityListsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListSecurityListsSortByEnum Enum with underlying type: string -type ListSecurityListsSortByEnum string - -// Set of constants representing the allowable values for ListSecurityListsSortByEnum -const ( - ListSecurityListsSortByTimecreated ListSecurityListsSortByEnum = "TIMECREATED" - ListSecurityListsSortByDisplayname ListSecurityListsSortByEnum = "DISPLAYNAME" -) - -var mappingListSecurityListsSortBy = map[string]ListSecurityListsSortByEnum{ - "TIMECREATED": ListSecurityListsSortByTimecreated, - "DISPLAYNAME": ListSecurityListsSortByDisplayname, -} - -// GetListSecurityListsSortByEnumValues Enumerates the set of values for ListSecurityListsSortByEnum -func GetListSecurityListsSortByEnumValues() []ListSecurityListsSortByEnum { - values := make([]ListSecurityListsSortByEnum, 0) - for _, v := range mappingListSecurityListsSortBy { - values = append(values, v) - } - return values -} - -// ListSecurityListsSortOrderEnum Enum with underlying type: string -type ListSecurityListsSortOrderEnum string - -// Set of constants representing the allowable values for ListSecurityListsSortOrderEnum -const ( - ListSecurityListsSortOrderAsc ListSecurityListsSortOrderEnum = "ASC" - ListSecurityListsSortOrderDesc ListSecurityListsSortOrderEnum = "DESC" -) - -var mappingListSecurityListsSortOrder = map[string]ListSecurityListsSortOrderEnum{ - "ASC": ListSecurityListsSortOrderAsc, - "DESC": ListSecurityListsSortOrderDesc, -} - -// GetListSecurityListsSortOrderEnumValues Enumerates the set of values for ListSecurityListsSortOrderEnum -func GetListSecurityListsSortOrderEnumValues() []ListSecurityListsSortOrderEnum { - values := make([]ListSecurityListsSortOrderEnum, 0) - for _, v := range mappingListSecurityListsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_service_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_service_gateways_request_response.go deleted file mode 100644 index e9d8922734..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_service_gateways_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListServiceGatewaysRequest wrapper for the ListServiceGateways operation -type ListServiceGatewaysRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListServiceGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListServiceGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState ServiceGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListServiceGatewaysRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListServiceGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListServiceGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListServiceGatewaysRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListServiceGatewaysResponse wrapper for the ListServiceGateways operation -type ListServiceGatewaysResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ServiceGateway instances - Items []ServiceGateway `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListServiceGatewaysResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListServiceGatewaysResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListServiceGatewaysSortByEnum Enum with underlying type: string -type ListServiceGatewaysSortByEnum string - -// Set of constants representing the allowable values for ListServiceGatewaysSortByEnum -const ( - ListServiceGatewaysSortByTimecreated ListServiceGatewaysSortByEnum = "TIMECREATED" - ListServiceGatewaysSortByDisplayname ListServiceGatewaysSortByEnum = "DISPLAYNAME" -) - -var mappingListServiceGatewaysSortBy = map[string]ListServiceGatewaysSortByEnum{ - "TIMECREATED": ListServiceGatewaysSortByTimecreated, - "DISPLAYNAME": ListServiceGatewaysSortByDisplayname, -} - -// GetListServiceGatewaysSortByEnumValues Enumerates the set of values for ListServiceGatewaysSortByEnum -func GetListServiceGatewaysSortByEnumValues() []ListServiceGatewaysSortByEnum { - values := make([]ListServiceGatewaysSortByEnum, 0) - for _, v := range mappingListServiceGatewaysSortBy { - values = append(values, v) - } - return values -} - -// ListServiceGatewaysSortOrderEnum Enum with underlying type: string -type ListServiceGatewaysSortOrderEnum string - -// Set of constants representing the allowable values for ListServiceGatewaysSortOrderEnum -const ( - ListServiceGatewaysSortOrderAsc ListServiceGatewaysSortOrderEnum = "ASC" - ListServiceGatewaysSortOrderDesc ListServiceGatewaysSortOrderEnum = "DESC" -) - -var mappingListServiceGatewaysSortOrder = map[string]ListServiceGatewaysSortOrderEnum{ - "ASC": ListServiceGatewaysSortOrderAsc, - "DESC": ListServiceGatewaysSortOrderDesc, -} - -// GetListServiceGatewaysSortOrderEnumValues Enumerates the set of values for ListServiceGatewaysSortOrderEnum -func GetListServiceGatewaysSortOrderEnumValues() []ListServiceGatewaysSortOrderEnum { - values := make([]ListServiceGatewaysSortOrderEnum, 0) - for _, v := range mappingListServiceGatewaysSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_shapes_request_response.go deleted file mode 100644 index 7ec21acb99..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_shapes_request_response.go +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListShapesRequest wrapper for the ListShapes operation -type ListShapesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an image. - ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListShapesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListShapesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListShapesResponse wrapper for the ListShapes operation -type ListShapesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Shape instances - Items []Shape `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListShapesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListShapesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_subnets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_subnets_request_response.go deleted file mode 100644 index 150164783c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_subnets_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListSubnetsRequest wrapper for the ListSubnets operation -type ListSubnetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListSubnetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState SubnetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListSubnetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListSubnetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListSubnetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListSubnetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListSubnetsResponse wrapper for the ListSubnets operation -type ListSubnetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Subnet instances - Items []Subnet `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListSubnetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListSubnetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListSubnetsSortByEnum Enum with underlying type: string -type ListSubnetsSortByEnum string - -// Set of constants representing the allowable values for ListSubnetsSortByEnum -const ( - ListSubnetsSortByTimecreated ListSubnetsSortByEnum = "TIMECREATED" - ListSubnetsSortByDisplayname ListSubnetsSortByEnum = "DISPLAYNAME" -) - -var mappingListSubnetsSortBy = map[string]ListSubnetsSortByEnum{ - "TIMECREATED": ListSubnetsSortByTimecreated, - "DISPLAYNAME": ListSubnetsSortByDisplayname, -} - -// GetListSubnetsSortByEnumValues Enumerates the set of values for ListSubnetsSortByEnum -func GetListSubnetsSortByEnumValues() []ListSubnetsSortByEnum { - values := make([]ListSubnetsSortByEnum, 0) - for _, v := range mappingListSubnetsSortBy { - values = append(values, v) - } - return values -} - -// ListSubnetsSortOrderEnum Enum with underlying type: string -type ListSubnetsSortOrderEnum string - -// Set of constants representing the allowable values for ListSubnetsSortOrderEnum -const ( - ListSubnetsSortOrderAsc ListSubnetsSortOrderEnum = "ASC" - ListSubnetsSortOrderDesc ListSubnetsSortOrderEnum = "DESC" -) - -var mappingListSubnetsSortOrder = map[string]ListSubnetsSortOrderEnum{ - "ASC": ListSubnetsSortOrderAsc, - "DESC": ListSubnetsSortOrderDesc, -} - -// GetListSubnetsSortOrderEnumValues Enumerates the set of values for ListSubnetsSortOrderEnum -func GetListSubnetsSortOrderEnumValues() []ListSubnetsSortOrderEnum { - values := make([]ListSubnetsSortOrderEnum, 0) - for _, v := range mappingListSubnetsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drg_attachments_request_response.go deleted file mode 100644 index 856e866183..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drg_attachments_request_response.go +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVcnDrgAttachmentsRequest wrapper for the ListVcnDrgAttachments operation -type ListVcnDrgAttachmentsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG. - NetworkId *string `mandatory:"false" contributesTo:"query" name:"networkId"` - - // The type for the network resource attached to the DRG. - AttachmentType ListVcnDrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to the DRG attachment. - DrgRouteTableId *string `mandatory:"false" contributesTo:"query" name:"drgRouteTableId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVcnDrgAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVcnDrgAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVcnDrgAttachmentsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVcnDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVcnDrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVcnDrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVcnDrgAttachmentsResponse wrapper for the ListVcnDrgAttachments operation -type ListVcnDrgAttachmentsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DrgAttachment instances - Items []DrgAttachment `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVcnDrgAttachmentsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVcnDrgAttachmentsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVcnDrgAttachmentsAttachmentTypeEnum Enum with underlying type: string -type ListVcnDrgAttachmentsAttachmentTypeEnum string - -// Set of constants representing the allowable values for ListVcnDrgAttachmentsAttachmentTypeEnum -const ( - ListVcnDrgAttachmentsAttachmentTypeVcn ListVcnDrgAttachmentsAttachmentTypeEnum = "VCN" - ListVcnDrgAttachmentsAttachmentTypeVirtualCircuit ListVcnDrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" - ListVcnDrgAttachmentsAttachmentTypeRemotePeeringConnection ListVcnDrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" - ListVcnDrgAttachmentsAttachmentTypeIpsecTunnel ListVcnDrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" - ListVcnDrgAttachmentsAttachmentTypeAll ListVcnDrgAttachmentsAttachmentTypeEnum = "ALL" -) - -var mappingListVcnDrgAttachmentsAttachmentType = map[string]ListVcnDrgAttachmentsAttachmentTypeEnum{ - "VCN": ListVcnDrgAttachmentsAttachmentTypeVcn, - "VIRTUAL_CIRCUIT": ListVcnDrgAttachmentsAttachmentTypeVirtualCircuit, - "REMOTE_PEERING_CONNECTION": ListVcnDrgAttachmentsAttachmentTypeRemotePeeringConnection, - "IPSEC_TUNNEL": ListVcnDrgAttachmentsAttachmentTypeIpsecTunnel, - "ALL": ListVcnDrgAttachmentsAttachmentTypeAll, -} - -// GetListVcnDrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for ListVcnDrgAttachmentsAttachmentTypeEnum -func GetListVcnDrgAttachmentsAttachmentTypeEnumValues() []ListVcnDrgAttachmentsAttachmentTypeEnum { - values := make([]ListVcnDrgAttachmentsAttachmentTypeEnum, 0) - for _, v := range mappingListVcnDrgAttachmentsAttachmentType { - values = append(values, v) - } - return values -} - -// ListVcnDrgAttachmentsSortByEnum Enum with underlying type: string -type ListVcnDrgAttachmentsSortByEnum string - -// Set of constants representing the allowable values for ListVcnDrgAttachmentsSortByEnum -const ( - ListVcnDrgAttachmentsSortByTimecreated ListVcnDrgAttachmentsSortByEnum = "TIMECREATED" - ListVcnDrgAttachmentsSortByDisplayname ListVcnDrgAttachmentsSortByEnum = "DISPLAYNAME" -) - -var mappingListVcnDrgAttachmentsSortBy = map[string]ListVcnDrgAttachmentsSortByEnum{ - "TIMECREATED": ListVcnDrgAttachmentsSortByTimecreated, - "DISPLAYNAME": ListVcnDrgAttachmentsSortByDisplayname, -} - -// GetListVcnDrgAttachmentsSortByEnumValues Enumerates the set of values for ListVcnDrgAttachmentsSortByEnum -func GetListVcnDrgAttachmentsSortByEnumValues() []ListVcnDrgAttachmentsSortByEnum { - values := make([]ListVcnDrgAttachmentsSortByEnum, 0) - for _, v := range mappingListVcnDrgAttachmentsSortBy { - values = append(values, v) - } - return values -} - -// ListVcnDrgAttachmentsSortOrderEnum Enum with underlying type: string -type ListVcnDrgAttachmentsSortOrderEnum string - -// Set of constants representing the allowable values for ListVcnDrgAttachmentsSortOrderEnum -const ( - ListVcnDrgAttachmentsSortOrderAsc ListVcnDrgAttachmentsSortOrderEnum = "ASC" - ListVcnDrgAttachmentsSortOrderDesc ListVcnDrgAttachmentsSortOrderEnum = "DESC" -) - -var mappingListVcnDrgAttachmentsSortOrder = map[string]ListVcnDrgAttachmentsSortOrderEnum{ - "ASC": ListVcnDrgAttachmentsSortOrderAsc, - "DESC": ListVcnDrgAttachmentsSortOrderDesc, -} - -// GetListVcnDrgAttachmentsSortOrderEnumValues Enumerates the set of values for ListVcnDrgAttachmentsSortOrderEnum -func GetListVcnDrgAttachmentsSortOrderEnumValues() []ListVcnDrgAttachmentsSortOrderEnum { - values := make([]ListVcnDrgAttachmentsSortOrderEnum, 0) - for _, v := range mappingListVcnDrgAttachmentsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcns_request_response.go deleted file mode 100644 index 355a057093..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcns_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVcnsRequest wrapper for the ListVcns operation -type ListVcnsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVcnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVcnsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState VcnLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVcnsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVcnsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVcnsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVcnsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVcnsResponse wrapper for the ListVcns operation -type ListVcnsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Vcn instances - Items []Vcn `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVcnsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVcnsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVcnsSortByEnum Enum with underlying type: string -type ListVcnsSortByEnum string - -// Set of constants representing the allowable values for ListVcnsSortByEnum -const ( - ListVcnsSortByTimecreated ListVcnsSortByEnum = "TIMECREATED" - ListVcnsSortByDisplayname ListVcnsSortByEnum = "DISPLAYNAME" -) - -var mappingListVcnsSortBy = map[string]ListVcnsSortByEnum{ - "TIMECREATED": ListVcnsSortByTimecreated, - "DISPLAYNAME": ListVcnsSortByDisplayname, -} - -// GetListVcnsSortByEnumValues Enumerates the set of values for ListVcnsSortByEnum -func GetListVcnsSortByEnumValues() []ListVcnsSortByEnum { - values := make([]ListVcnsSortByEnum, 0) - for _, v := range mappingListVcnsSortBy { - values = append(values, v) - } - return values -} - -// ListVcnsSortOrderEnum Enum with underlying type: string -type ListVcnsSortOrderEnum string - -// Set of constants representing the allowable values for ListVcnsSortOrderEnum -const ( - ListVcnsSortOrderAsc ListVcnsSortOrderEnum = "ASC" - ListVcnsSortOrderDesc ListVcnsSortOrderEnum = "DESC" -) - -var mappingListVcnsSortOrder = map[string]ListVcnsSortOrderEnum{ - "ASC": ListVcnsSortOrderAsc, - "DESC": ListVcnsSortOrderDesc, -} - -// GetListVcnsSortOrderEnumValues Enumerates the set of values for ListVcnsSortOrderEnum -func GetListVcnsSortOrderEnumValues() []ListVcnsSortOrderEnum { - values := make([]ListVcnsSortOrderEnum, 0) - for _, v := range mappingListVcnsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_public_prefixes_request_response.go deleted file mode 100644 index 898158a29a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_public_prefixes_request_response.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVirtualCircuitPublicPrefixesRequest wrapper for the ListVirtualCircuitPublicPrefixes operation -type ListVirtualCircuitPublicPrefixesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. - VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` - - // A filter to only return resources that match the given verification - // state. - // The state value is case-insensitive. - VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"false" contributesTo:"query" name:"verificationState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVirtualCircuitPublicPrefixesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVirtualCircuitPublicPrefixesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVirtualCircuitPublicPrefixesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVirtualCircuitPublicPrefixesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVirtualCircuitPublicPrefixesResponse wrapper for the ListVirtualCircuitPublicPrefixes operation -type ListVirtualCircuitPublicPrefixesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []VirtualCircuitPublicPrefix instance - Items []VirtualCircuitPublicPrefix `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVirtualCircuitPublicPrefixesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVirtualCircuitPublicPrefixesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuits_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuits_request_response.go deleted file mode 100644 index b6ce3d9f6f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuits_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVirtualCircuitsRequest wrapper for the ListVirtualCircuits operation -type ListVirtualCircuitsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVirtualCircuitsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVirtualCircuitsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the specified lifecycle - // state. The value is case insensitive. - LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVirtualCircuitsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVirtualCircuitsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVirtualCircuitsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVirtualCircuitsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVirtualCircuitsResponse wrapper for the ListVirtualCircuits operation -type ListVirtualCircuitsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []VirtualCircuit instances - Items []VirtualCircuit `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVirtualCircuitsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVirtualCircuitsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVirtualCircuitsSortByEnum Enum with underlying type: string -type ListVirtualCircuitsSortByEnum string - -// Set of constants representing the allowable values for ListVirtualCircuitsSortByEnum -const ( - ListVirtualCircuitsSortByTimecreated ListVirtualCircuitsSortByEnum = "TIMECREATED" - ListVirtualCircuitsSortByDisplayname ListVirtualCircuitsSortByEnum = "DISPLAYNAME" -) - -var mappingListVirtualCircuitsSortBy = map[string]ListVirtualCircuitsSortByEnum{ - "TIMECREATED": ListVirtualCircuitsSortByTimecreated, - "DISPLAYNAME": ListVirtualCircuitsSortByDisplayname, -} - -// GetListVirtualCircuitsSortByEnumValues Enumerates the set of values for ListVirtualCircuitsSortByEnum -func GetListVirtualCircuitsSortByEnumValues() []ListVirtualCircuitsSortByEnum { - values := make([]ListVirtualCircuitsSortByEnum, 0) - for _, v := range mappingListVirtualCircuitsSortBy { - values = append(values, v) - } - return values -} - -// ListVirtualCircuitsSortOrderEnum Enum with underlying type: string -type ListVirtualCircuitsSortOrderEnum string - -// Set of constants representing the allowable values for ListVirtualCircuitsSortOrderEnum -const ( - ListVirtualCircuitsSortOrderAsc ListVirtualCircuitsSortOrderEnum = "ASC" - ListVirtualCircuitsSortOrderDesc ListVirtualCircuitsSortOrderEnum = "DESC" -) - -var mappingListVirtualCircuitsSortOrder = map[string]ListVirtualCircuitsSortOrderEnum{ - "ASC": ListVirtualCircuitsSortOrderAsc, - "DESC": ListVirtualCircuitsSortOrderDesc, -} - -// GetListVirtualCircuitsSortOrderEnumValues Enumerates the set of values for ListVirtualCircuitsSortOrderEnum -func GetListVirtualCircuitsSortOrderEnumValues() []ListVirtualCircuitsSortOrderEnum { - values := make([]ListVirtualCircuitsSortOrderEnum, 0) - for _, v := range mappingListVirtualCircuitsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vlans_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vlans_request_response.go deleted file mode 100644 index 67f0356933..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vlans_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVlansRequest wrapper for the ListVlans operation -type ListVlansRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVlansSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVlansSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState VlanLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVlansRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVlansRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVlansRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVlansRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVlansResponse wrapper for the ListVlans operation -type ListVlansResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Vlan instances - Items []Vlan `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVlansResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVlansResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVlansSortByEnum Enum with underlying type: string -type ListVlansSortByEnum string - -// Set of constants representing the allowable values for ListVlansSortByEnum -const ( - ListVlansSortByTimecreated ListVlansSortByEnum = "TIMECREATED" - ListVlansSortByDisplayname ListVlansSortByEnum = "DISPLAYNAME" -) - -var mappingListVlansSortBy = map[string]ListVlansSortByEnum{ - "TIMECREATED": ListVlansSortByTimecreated, - "DISPLAYNAME": ListVlansSortByDisplayname, -} - -// GetListVlansSortByEnumValues Enumerates the set of values for ListVlansSortByEnum -func GetListVlansSortByEnumValues() []ListVlansSortByEnum { - values := make([]ListVlansSortByEnum, 0) - for _, v := range mappingListVlansSortBy { - values = append(values, v) - } - return values -} - -// ListVlansSortOrderEnum Enum with underlying type: string -type ListVlansSortOrderEnum string - -// Set of constants representing the allowable values for ListVlansSortOrderEnum -const ( - ListVlansSortOrderAsc ListVlansSortOrderEnum = "ASC" - ListVlansSortOrderDesc ListVlansSortOrderEnum = "DESC" -) - -var mappingListVlansSortOrder = map[string]ListVlansSortOrderEnum{ - "ASC": ListVlansSortOrderAsc, - "DESC": ListVlansSortOrderDesc, -} - -// GetListVlansSortOrderEnumValues Enumerates the set of values for ListVlansSortOrderEnum -func GetListVlansSortOrderEnumValues() []ListVlansSortOrderEnum { - values := make([]ListVlansSortOrderEnum, 0) - for _, v := range mappingListVlansSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backups_request_response.go deleted file mode 100644 index ac71c4f7ce..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backups_request_response.go +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVolumeBackupsRequest wrapper for the ListVolumeBackups operation -type ListVolumeBackupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the volume. - VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that originated from the given source volume backup. - SourceVolumeBackupId *string `mandatory:"false" contributesTo:"query" name:"sourceVolumeBackupId"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumeBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state - // value is case-insensitive. - LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVolumeBackupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVolumeBackupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVolumeBackupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVolumeBackupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVolumeBackupsResponse wrapper for the ListVolumeBackups operation -type ListVolumeBackupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []VolumeBackup instances - Items []VolumeBackup `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVolumeBackupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVolumeBackupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVolumeBackupsSortByEnum Enum with underlying type: string -type ListVolumeBackupsSortByEnum string - -// Set of constants representing the allowable values for ListVolumeBackupsSortByEnum -const ( - ListVolumeBackupsSortByTimecreated ListVolumeBackupsSortByEnum = "TIMECREATED" - ListVolumeBackupsSortByDisplayname ListVolumeBackupsSortByEnum = "DISPLAYNAME" -) - -var mappingListVolumeBackupsSortBy = map[string]ListVolumeBackupsSortByEnum{ - "TIMECREATED": ListVolumeBackupsSortByTimecreated, - "DISPLAYNAME": ListVolumeBackupsSortByDisplayname, -} - -// GetListVolumeBackupsSortByEnumValues Enumerates the set of values for ListVolumeBackupsSortByEnum -func GetListVolumeBackupsSortByEnumValues() []ListVolumeBackupsSortByEnum { - values := make([]ListVolumeBackupsSortByEnum, 0) - for _, v := range mappingListVolumeBackupsSortBy { - values = append(values, v) - } - return values -} - -// ListVolumeBackupsSortOrderEnum Enum with underlying type: string -type ListVolumeBackupsSortOrderEnum string - -// Set of constants representing the allowable values for ListVolumeBackupsSortOrderEnum -const ( - ListVolumeBackupsSortOrderAsc ListVolumeBackupsSortOrderEnum = "ASC" - ListVolumeBackupsSortOrderDesc ListVolumeBackupsSortOrderEnum = "DESC" -) - -var mappingListVolumeBackupsSortOrder = map[string]ListVolumeBackupsSortOrderEnum{ - "ASC": ListVolumeBackupsSortOrderAsc, - "DESC": ListVolumeBackupsSortOrderDesc, -} - -// GetListVolumeBackupsSortOrderEnumValues Enumerates the set of values for ListVolumeBackupsSortOrderEnum -func GetListVolumeBackupsSortOrderEnumValues() []ListVolumeBackupsSortOrderEnum { - values := make([]ListVolumeBackupsSortOrderEnum, 0) - for _, v := range mappingListVolumeBackupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_backups_request_response.go deleted file mode 100644 index 7cb4e5f86c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_backups_request_response.go +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVolumeGroupBackupsRequest wrapper for the ListVolumeGroupBackups operation -type ListVolumeGroupBackupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID of the volume group. - VolumeGroupId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVolumeGroupBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumeGroupBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVolumeGroupBackupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVolumeGroupBackupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVolumeGroupBackupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVolumeGroupBackupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVolumeGroupBackupsResponse wrapper for the ListVolumeGroupBackups operation -type ListVolumeGroupBackupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []VolumeGroupBackup instances - Items []VolumeGroupBackup `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVolumeGroupBackupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVolumeGroupBackupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVolumeGroupBackupsSortByEnum Enum with underlying type: string -type ListVolumeGroupBackupsSortByEnum string - -// Set of constants representing the allowable values for ListVolumeGroupBackupsSortByEnum -const ( - ListVolumeGroupBackupsSortByTimecreated ListVolumeGroupBackupsSortByEnum = "TIMECREATED" - ListVolumeGroupBackupsSortByDisplayname ListVolumeGroupBackupsSortByEnum = "DISPLAYNAME" -) - -var mappingListVolumeGroupBackupsSortBy = map[string]ListVolumeGroupBackupsSortByEnum{ - "TIMECREATED": ListVolumeGroupBackupsSortByTimecreated, - "DISPLAYNAME": ListVolumeGroupBackupsSortByDisplayname, -} - -// GetListVolumeGroupBackupsSortByEnumValues Enumerates the set of values for ListVolumeGroupBackupsSortByEnum -func GetListVolumeGroupBackupsSortByEnumValues() []ListVolumeGroupBackupsSortByEnum { - values := make([]ListVolumeGroupBackupsSortByEnum, 0) - for _, v := range mappingListVolumeGroupBackupsSortBy { - values = append(values, v) - } - return values -} - -// ListVolumeGroupBackupsSortOrderEnum Enum with underlying type: string -type ListVolumeGroupBackupsSortOrderEnum string - -// Set of constants representing the allowable values for ListVolumeGroupBackupsSortOrderEnum -const ( - ListVolumeGroupBackupsSortOrderAsc ListVolumeGroupBackupsSortOrderEnum = "ASC" - ListVolumeGroupBackupsSortOrderDesc ListVolumeGroupBackupsSortOrderEnum = "DESC" -) - -var mappingListVolumeGroupBackupsSortOrder = map[string]ListVolumeGroupBackupsSortOrderEnum{ - "ASC": ListVolumeGroupBackupsSortOrderAsc, - "DESC": ListVolumeGroupBackupsSortOrderDesc, -} - -// GetListVolumeGroupBackupsSortOrderEnumValues Enumerates the set of values for ListVolumeGroupBackupsSortOrderEnum -func GetListVolumeGroupBackupsSortOrderEnumValues() []ListVolumeGroupBackupsSortOrderEnum { - values := make([]ListVolumeGroupBackupsSortOrderEnum, 0) - for _, v := range mappingListVolumeGroupBackupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_replicas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_replicas_request_response.go deleted file mode 100644 index 49d497f5e5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_group_replicas_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVolumeGroupReplicasRequest wrapper for the ListVolumeGroupReplicas operation -type ListVolumeGroupReplicasRequest struct { - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVolumeGroupReplicasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumeGroupReplicasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState VolumeGroupReplicaLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVolumeGroupReplicasRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVolumeGroupReplicasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVolumeGroupReplicasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVolumeGroupReplicasRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVolumeGroupReplicasResponse wrapper for the ListVolumeGroupReplicas operation -type ListVolumeGroupReplicasResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []VolumeGroupReplica instances - Items []VolumeGroupReplica `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVolumeGroupReplicasResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVolumeGroupReplicasResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVolumeGroupReplicasSortByEnum Enum with underlying type: string -type ListVolumeGroupReplicasSortByEnum string - -// Set of constants representing the allowable values for ListVolumeGroupReplicasSortByEnum -const ( - ListVolumeGroupReplicasSortByTimecreated ListVolumeGroupReplicasSortByEnum = "TIMECREATED" - ListVolumeGroupReplicasSortByDisplayname ListVolumeGroupReplicasSortByEnum = "DISPLAYNAME" -) - -var mappingListVolumeGroupReplicasSortBy = map[string]ListVolumeGroupReplicasSortByEnum{ - "TIMECREATED": ListVolumeGroupReplicasSortByTimecreated, - "DISPLAYNAME": ListVolumeGroupReplicasSortByDisplayname, -} - -// GetListVolumeGroupReplicasSortByEnumValues Enumerates the set of values for ListVolumeGroupReplicasSortByEnum -func GetListVolumeGroupReplicasSortByEnumValues() []ListVolumeGroupReplicasSortByEnum { - values := make([]ListVolumeGroupReplicasSortByEnum, 0) - for _, v := range mappingListVolumeGroupReplicasSortBy { - values = append(values, v) - } - return values -} - -// ListVolumeGroupReplicasSortOrderEnum Enum with underlying type: string -type ListVolumeGroupReplicasSortOrderEnum string - -// Set of constants representing the allowable values for ListVolumeGroupReplicasSortOrderEnum -const ( - ListVolumeGroupReplicasSortOrderAsc ListVolumeGroupReplicasSortOrderEnum = "ASC" - ListVolumeGroupReplicasSortOrderDesc ListVolumeGroupReplicasSortOrderEnum = "DESC" -) - -var mappingListVolumeGroupReplicasSortOrder = map[string]ListVolumeGroupReplicasSortOrderEnum{ - "ASC": ListVolumeGroupReplicasSortOrderAsc, - "DESC": ListVolumeGroupReplicasSortOrderDesc, -} - -// GetListVolumeGroupReplicasSortOrderEnumValues Enumerates the set of values for ListVolumeGroupReplicasSortOrderEnum -func GetListVolumeGroupReplicasSortOrderEnumValues() []ListVolumeGroupReplicasSortOrderEnum { - values := make([]ListVolumeGroupReplicasSortOrderEnum, 0) - for _, v := range mappingListVolumeGroupReplicasSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_groups_request_response.go deleted file mode 100644 index 50b5d5b44f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_groups_request_response.go +++ /dev/null @@ -1,156 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVolumeGroupsRequest wrapper for the ListVolumeGroups operation -type ListVolumeGroupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVolumeGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumeGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle - // state. The state value is case-insensitive. - LifecycleState VolumeGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVolumeGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVolumeGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVolumeGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVolumeGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVolumeGroupsResponse wrapper for the ListVolumeGroups operation -type ListVolumeGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []VolumeGroup instances - Items []VolumeGroup `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVolumeGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVolumeGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVolumeGroupsSortByEnum Enum with underlying type: string -type ListVolumeGroupsSortByEnum string - -// Set of constants representing the allowable values for ListVolumeGroupsSortByEnum -const ( - ListVolumeGroupsSortByTimecreated ListVolumeGroupsSortByEnum = "TIMECREATED" - ListVolumeGroupsSortByDisplayname ListVolumeGroupsSortByEnum = "DISPLAYNAME" -) - -var mappingListVolumeGroupsSortBy = map[string]ListVolumeGroupsSortByEnum{ - "TIMECREATED": ListVolumeGroupsSortByTimecreated, - "DISPLAYNAME": ListVolumeGroupsSortByDisplayname, -} - -// GetListVolumeGroupsSortByEnumValues Enumerates the set of values for ListVolumeGroupsSortByEnum -func GetListVolumeGroupsSortByEnumValues() []ListVolumeGroupsSortByEnum { - values := make([]ListVolumeGroupsSortByEnum, 0) - for _, v := range mappingListVolumeGroupsSortBy { - values = append(values, v) - } - return values -} - -// ListVolumeGroupsSortOrderEnum Enum with underlying type: string -type ListVolumeGroupsSortOrderEnum string - -// Set of constants representing the allowable values for ListVolumeGroupsSortOrderEnum -const ( - ListVolumeGroupsSortOrderAsc ListVolumeGroupsSortOrderEnum = "ASC" - ListVolumeGroupsSortOrderDesc ListVolumeGroupsSortOrderEnum = "DESC" -) - -var mappingListVolumeGroupsSortOrder = map[string]ListVolumeGroupsSortOrderEnum{ - "ASC": ListVolumeGroupsSortOrderAsc, - "DESC": ListVolumeGroupsSortOrderDesc, -} - -// GetListVolumeGroupsSortOrderEnumValues Enumerates the set of values for ListVolumeGroupsSortOrderEnum -func GetListVolumeGroupsSortOrderEnumValues() []ListVolumeGroupsSortOrderEnum { - values := make([]ListVolumeGroupsSortOrderEnum, 0) - for _, v := range mappingListVolumeGroupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volumes_request_response.go deleted file mode 100644 index 51cfce1ad3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volumes_request_response.go +++ /dev/null @@ -1,159 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVolumesRequest wrapper for the ListVolumes operation -type ListVolumesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVolumesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVolumesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The OCID of the volume group. - VolumeGroupId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupId"` - - // A filter to only return resources that match the given lifecycle state. The state - // value is case-insensitive. - LifecycleState VolumeLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVolumesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVolumesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVolumesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVolumesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVolumesResponse wrapper for the ListVolumes operation -type ListVolumesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Volume instances - Items []Volume `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVolumesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVolumesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVolumesSortByEnum Enum with underlying type: string -type ListVolumesSortByEnum string - -// Set of constants representing the allowable values for ListVolumesSortByEnum -const ( - ListVolumesSortByTimecreated ListVolumesSortByEnum = "TIMECREATED" - ListVolumesSortByDisplayname ListVolumesSortByEnum = "DISPLAYNAME" -) - -var mappingListVolumesSortBy = map[string]ListVolumesSortByEnum{ - "TIMECREATED": ListVolumesSortByTimecreated, - "DISPLAYNAME": ListVolumesSortByDisplayname, -} - -// GetListVolumesSortByEnumValues Enumerates the set of values for ListVolumesSortByEnum -func GetListVolumesSortByEnumValues() []ListVolumesSortByEnum { - values := make([]ListVolumesSortByEnum, 0) - for _, v := range mappingListVolumesSortBy { - values = append(values, v) - } - return values -} - -// ListVolumesSortOrderEnum Enum with underlying type: string -type ListVolumesSortOrderEnum string - -// Set of constants representing the allowable values for ListVolumesSortOrderEnum -const ( - ListVolumesSortOrderAsc ListVolumesSortOrderEnum = "ASC" - ListVolumesSortOrderDesc ListVolumesSortOrderEnum = "DESC" -) - -var mappingListVolumesSortOrder = map[string]ListVolumesSortOrderEnum{ - "ASC": ListVolumesSortOrderAsc, - "DESC": ListVolumesSortOrderDesc, -} - -// GetListVolumesSortOrderEnumValues Enumerates the set of values for ListVolumesSortOrderEnum -func GetListVolumesSortOrderEnumValues() []ListVolumesSortOrderEnum { - values := make([]ListVolumesSortOrderEnum, 0) - for _, v := range mappingListVolumesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vtaps_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vtaps_request_response.go deleted file mode 100644 index 1e4e30610b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vtaps_request_response.go +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListVtapsRequest wrapper for the ListVtaps operation -type ListVtapsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. - VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP source. - Source *string `mandatory:"false" contributesTo:"query" name:"source"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP target. - TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` - - // The IP address of the VTAP target. - TargetIp *string `mandatory:"false" contributesTo:"query" name:"targetIp"` - - // Indicates whether to list all VTAPs or only running VTAPs. - // * When `FALSE`, lists ALL running and stopped VTAPs. - // * When `TRUE`, lists only running VTAPs (VTAPs where isVtapEnabled = `TRUE`). - IsVtapEnabled *bool `mandatory:"false" contributesTo:"query" name:"isVtapEnabled"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated - // "List" call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" - // call. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by availability domain if the scope of the resource type is within a - // single availability domain. If you call one of these "List" operations without specifying - // an availability domain, the resources are grouped by availability domain, then sorted. - SortBy ListVtapsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order - // is case sensitive. - SortOrder ListVtapsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the given display name exactly. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that match the given VTAP administrative lifecycle state. - // The state value is case-insensitive. - LifecycleState VtapLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListVtapsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListVtapsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListVtapsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListVtapsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListVtapsResponse wrapper for the ListVtaps operation -type ListVtapsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Vtap instances - Items []Vtap `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages - // of results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListVtapsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListVtapsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListVtapsSortByEnum Enum with underlying type: string -type ListVtapsSortByEnum string - -// Set of constants representing the allowable values for ListVtapsSortByEnum -const ( - ListVtapsSortByTimecreated ListVtapsSortByEnum = "TIMECREATED" - ListVtapsSortByDisplayname ListVtapsSortByEnum = "DISPLAYNAME" -) - -var mappingListVtapsSortBy = map[string]ListVtapsSortByEnum{ - "TIMECREATED": ListVtapsSortByTimecreated, - "DISPLAYNAME": ListVtapsSortByDisplayname, -} - -// GetListVtapsSortByEnumValues Enumerates the set of values for ListVtapsSortByEnum -func GetListVtapsSortByEnumValues() []ListVtapsSortByEnum { - values := make([]ListVtapsSortByEnum, 0) - for _, v := range mappingListVtapsSortBy { - values = append(values, v) - } - return values -} - -// ListVtapsSortOrderEnum Enum with underlying type: string -type ListVtapsSortOrderEnum string - -// Set of constants representing the allowable values for ListVtapsSortOrderEnum -const ( - ListVtapsSortOrderAsc ListVtapsSortOrderEnum = "ASC" - ListVtapsSortOrderDesc ListVtapsSortOrderEnum = "DESC" -) - -var mappingListVtapsSortOrder = map[string]ListVtapsSortOrderEnum{ - "ASC": ListVtapsSortOrderAsc, - "DESC": ListVtapsSortOrderDesc, -} - -// GetListVtapsSortOrderEnumValues Enumerates the set of values for ListVtapsSortOrderEnum -func GetListVtapsSortOrderEnumValues() []ListVtapsSortOrderEnum { - values := make([]ListVtapsSortOrderEnum, 0) - for _, v := range mappingListVtapsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_connection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_connection.go deleted file mode 100644 index 440a850411..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_connection.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LocalPeeringConnection Details regarding a local peering connection, which is an entity that allows two VCNs to communicate -// without traversing the Internet. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type LocalPeeringConnection struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the local peering connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The local peering connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The local peering connection's current lifecycle state. - LifecycleState LocalPeeringConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Indicates whether the local peering connection is peered with another local peering connection. - PeeringStatus LocalPeeringConnectionPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` - - // The date and time the local peering connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the local peering connection belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Indicates whether the peer local peering connection is contained within another tenancy. - IsCrossTenancyPeering *bool `mandatory:"false" json:"isCrossTenancyPeering"` - - // Indicates the range of IPs available on the peer. `null` if not peered. - PeerAdvertisedCidr *string `mandatory:"false" json:"peerAdvertisedCidr"` - - // Additional information regarding the peering status if applicable. - PeeringStatusDetails *string `mandatory:"false" json:"peeringStatusDetails"` -} - -func (m LocalPeeringConnection) String() string { - return common.PointerString(m) -} - -// LocalPeeringConnectionLifecycleStateEnum Enum with underlying type: string -type LocalPeeringConnectionLifecycleStateEnum string - -// Set of constants representing the allowable values for LocalPeeringConnectionLifecycleStateEnum -const ( - LocalPeeringConnectionLifecycleStateProvisioning LocalPeeringConnectionLifecycleStateEnum = "PROVISIONING" - LocalPeeringConnectionLifecycleStateAvailable LocalPeeringConnectionLifecycleStateEnum = "AVAILABLE" - LocalPeeringConnectionLifecycleStateTerminating LocalPeeringConnectionLifecycleStateEnum = "TERMINATING" - LocalPeeringConnectionLifecycleStateTerminated LocalPeeringConnectionLifecycleStateEnum = "TERMINATED" -) - -var mappingLocalPeeringConnectionLifecycleState = map[string]LocalPeeringConnectionLifecycleStateEnum{ - "PROVISIONING": LocalPeeringConnectionLifecycleStateProvisioning, - "AVAILABLE": LocalPeeringConnectionLifecycleStateAvailable, - "TERMINATING": LocalPeeringConnectionLifecycleStateTerminating, - "TERMINATED": LocalPeeringConnectionLifecycleStateTerminated, -} - -// GetLocalPeeringConnectionLifecycleStateEnumValues Enumerates the set of values for LocalPeeringConnectionLifecycleStateEnum -func GetLocalPeeringConnectionLifecycleStateEnumValues() []LocalPeeringConnectionLifecycleStateEnum { - values := make([]LocalPeeringConnectionLifecycleStateEnum, 0) - for _, v := range mappingLocalPeeringConnectionLifecycleState { - values = append(values, v) - } - return values -} - -// LocalPeeringConnectionPeeringStatusEnum Enum with underlying type: string -type LocalPeeringConnectionPeeringStatusEnum string - -// Set of constants representing the allowable values for LocalPeeringConnectionPeeringStatusEnum -const ( - LocalPeeringConnectionPeeringStatusInvalid LocalPeeringConnectionPeeringStatusEnum = "INVALID" - LocalPeeringConnectionPeeringStatusNew LocalPeeringConnectionPeeringStatusEnum = "NEW" - LocalPeeringConnectionPeeringStatusPeered LocalPeeringConnectionPeeringStatusEnum = "PEERED" - LocalPeeringConnectionPeeringStatusPending LocalPeeringConnectionPeeringStatusEnum = "PENDING" - LocalPeeringConnectionPeeringStatusRevoked LocalPeeringConnectionPeeringStatusEnum = "REVOKED" -) - -var mappingLocalPeeringConnectionPeeringStatus = map[string]LocalPeeringConnectionPeeringStatusEnum{ - "INVALID": LocalPeeringConnectionPeeringStatusInvalid, - "NEW": LocalPeeringConnectionPeeringStatusNew, - "PEERED": LocalPeeringConnectionPeeringStatusPeered, - "PENDING": LocalPeeringConnectionPeeringStatusPending, - "REVOKED": LocalPeeringConnectionPeeringStatusRevoked, -} - -// GetLocalPeeringConnectionPeeringStatusEnumValues Enumerates the set of values for LocalPeeringConnectionPeeringStatusEnum -func GetLocalPeeringConnectionPeeringStatusEnumValues() []LocalPeeringConnectionPeeringStatusEnum { - values := make([]LocalPeeringConnectionPeeringStatusEnum, 0) - for _, v := range mappingLocalPeeringConnectionPeeringStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_gateway.go deleted file mode 100644 index 0d8bfd13dd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_gateway.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LocalPeeringGateway A local peering gateway (LPG) is an object on a VCN that lets that VCN peer -// with another VCN in the same region. *Peering* means that the two VCNs can -// communicate using private IP addresses, but without the traffic traversing the -// internet or routing through your on-premises network. For more information, -// see VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type LocalPeeringGateway struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the LPG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The LPG's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // Whether the VCN at the other end of the peering is in a different tenancy. - // Example: `false` - IsCrossTenancyPeering *bool `mandatory:"true" json:"isCrossTenancyPeering"` - - // The LPG's current lifecycle state. - LifecycleState LocalPeeringGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Whether the LPG is peered with another LPG. `NEW` means the LPG has not yet been - // peered. `PENDING` means the peering is being established. `REVOKED` means the - // LPG at the other end of the peering has been deleted. - PeeringStatus LocalPeeringGatewayPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peered LPG. - PeerId *string `mandatory:"true" json:"peerId"` - - // The date and time the LPG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN that uses the LPG. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN - // at the other end of the peering from this LPG. See `peerAdvertisedCidrDetails` for - // the individual CIDRs. The value is `null` if the LPG is not peered. - // Example: `192.168.0.0/16`, or if aggregated with `172.16.0.0/24` then `128.0.0.0/1` - PeerAdvertisedCidr *string `mandatory:"false" json:"peerAdvertisedCidr"` - - // The specific ranges of IP addresses available on or via the VCN at the other - // end of the peering from this LPG. The value is `null` if the LPG is not peered. - // You can use these as destination CIDRs for route rules to route a subnet's - // traffic to this LPG. - // Example: [`192.168.0.0/16`, `172.16.0.0/24`] - PeerAdvertisedCidrDetails []string `mandatory:"false" json:"peerAdvertisedCidrDetails"` - - // Additional information regarding the peering status, if applicable. - PeeringStatusDetails *string `mandatory:"false" json:"peeringStatusDetails"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the LPG is using. - // For information about why you would associate a route table with an LPG, see - // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m LocalPeeringGateway) String() string { - return common.PointerString(m) -} - -// LocalPeeringGatewayLifecycleStateEnum Enum with underlying type: string -type LocalPeeringGatewayLifecycleStateEnum string - -// Set of constants representing the allowable values for LocalPeeringGatewayLifecycleStateEnum -const ( - LocalPeeringGatewayLifecycleStateProvisioning LocalPeeringGatewayLifecycleStateEnum = "PROVISIONING" - LocalPeeringGatewayLifecycleStateAvailable LocalPeeringGatewayLifecycleStateEnum = "AVAILABLE" - LocalPeeringGatewayLifecycleStateTerminating LocalPeeringGatewayLifecycleStateEnum = "TERMINATING" - LocalPeeringGatewayLifecycleStateTerminated LocalPeeringGatewayLifecycleStateEnum = "TERMINATED" -) - -var mappingLocalPeeringGatewayLifecycleState = map[string]LocalPeeringGatewayLifecycleStateEnum{ - "PROVISIONING": LocalPeeringGatewayLifecycleStateProvisioning, - "AVAILABLE": LocalPeeringGatewayLifecycleStateAvailable, - "TERMINATING": LocalPeeringGatewayLifecycleStateTerminating, - "TERMINATED": LocalPeeringGatewayLifecycleStateTerminated, -} - -// GetLocalPeeringGatewayLifecycleStateEnumValues Enumerates the set of values for LocalPeeringGatewayLifecycleStateEnum -func GetLocalPeeringGatewayLifecycleStateEnumValues() []LocalPeeringGatewayLifecycleStateEnum { - values := make([]LocalPeeringGatewayLifecycleStateEnum, 0) - for _, v := range mappingLocalPeeringGatewayLifecycleState { - values = append(values, v) - } - return values -} - -// LocalPeeringGatewayPeeringStatusEnum Enum with underlying type: string -type LocalPeeringGatewayPeeringStatusEnum string - -// Set of constants representing the allowable values for LocalPeeringGatewayPeeringStatusEnum -const ( - LocalPeeringGatewayPeeringStatusInvalid LocalPeeringGatewayPeeringStatusEnum = "INVALID" - LocalPeeringGatewayPeeringStatusNew LocalPeeringGatewayPeeringStatusEnum = "NEW" - LocalPeeringGatewayPeeringStatusPeered LocalPeeringGatewayPeeringStatusEnum = "PEERED" - LocalPeeringGatewayPeeringStatusPending LocalPeeringGatewayPeeringStatusEnum = "PENDING" - LocalPeeringGatewayPeeringStatusRevoked LocalPeeringGatewayPeeringStatusEnum = "REVOKED" -) - -var mappingLocalPeeringGatewayPeeringStatus = map[string]LocalPeeringGatewayPeeringStatusEnum{ - "INVALID": LocalPeeringGatewayPeeringStatusInvalid, - "NEW": LocalPeeringGatewayPeeringStatusNew, - "PEERED": LocalPeeringGatewayPeeringStatusPeered, - "PENDING": LocalPeeringGatewayPeeringStatusPending, - "REVOKED": LocalPeeringGatewayPeeringStatusRevoked, -} - -// GetLocalPeeringGatewayPeeringStatusEnumValues Enumerates the set of values for LocalPeeringGatewayPeeringStatusEnum -func GetLocalPeeringGatewayPeeringStatusEnumValues() []LocalPeeringGatewayPeeringStatusEnum { - values := make([]LocalPeeringGatewayPeeringStatusEnum, 0) - for _, v := range mappingLocalPeeringGatewayPeeringStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_token_details.go deleted file mode 100644 index c2a60fcf2a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/local_peering_token_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LocalPeeringTokenDetails An object containing a generated peering token to be given to a peer who then accepts the token as part of the peering handshake process. -type LocalPeeringTokenDetails struct { - - // An opaque token to be shared with a peer. - TokenForPeer *string `mandatory:"true" json:"tokenForPeer"` -} - -func (m LocalPeeringTokenDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_encryption_cipher.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_encryption_cipher.go deleted file mode 100644 index 96a81f8047..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_encryption_cipher.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -// MacsecEncryptionCipherEnum Enum with underlying type: string -type MacsecEncryptionCipherEnum string - -// Set of constants representing the allowable values for MacsecEncryptionCipherEnum -const ( - MacsecEncryptionCipherAes128Gcm MacsecEncryptionCipherEnum = "AES128_GCM" - MacsecEncryptionCipherAes128GcmXpn MacsecEncryptionCipherEnum = "AES128_GCM_XPN" - MacsecEncryptionCipherAes256Gcm MacsecEncryptionCipherEnum = "AES256_GCM" - MacsecEncryptionCipherAes256GcmXpn MacsecEncryptionCipherEnum = "AES256_GCM_XPN" -) - -var mappingMacsecEncryptionCipher = map[string]MacsecEncryptionCipherEnum{ - "AES128_GCM": MacsecEncryptionCipherAes128Gcm, - "AES128_GCM_XPN": MacsecEncryptionCipherAes128GcmXpn, - "AES256_GCM": MacsecEncryptionCipherAes256Gcm, - "AES256_GCM_XPN": MacsecEncryptionCipherAes256GcmXpn, -} - -// GetMacsecEncryptionCipherEnumValues Enumerates the set of values for MacsecEncryptionCipherEnum -func GetMacsecEncryptionCipherEnumValues() []MacsecEncryptionCipherEnum { - values := make([]MacsecEncryptionCipherEnum, 0) - for _, v := range mappingMacsecEncryptionCipher { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_key.go deleted file mode 100644 index 5ec0692c05..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_key.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MacsecKey An object defining the Secrets-in-Vault OCIDs representing the MACSEC key. -type MacsecKey struct { - - // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity association Key Name (CKN) of this MACSEC key. - ConnectivityAssociationNameSecretId *string `mandatory:"true" json:"connectivityAssociationNameSecretId"` - - // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key (CAK) of this MACSEC key. - ConnectivityAssociationKeySecretId *string `mandatory:"true" json:"connectivityAssociationKeySecretId"` - - // The secret version of the connectivity association name secret in Vault. - ConnectivityAssociationNameSecretVersion *int64 `mandatory:"false" json:"connectivityAssociationNameSecretVersion"` - - // The secret version of the `connectivityAssociationKey` secret in Vault. - ConnectivityAssociationKeySecretVersion *int64 `mandatory:"false" json:"connectivityAssociationKeySecretVersion"` -} - -func (m MacsecKey) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_properties.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_properties.go deleted file mode 100644 index 55d70bb9dd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_properties.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MacsecProperties Properties used for MACSEC (if capable). -type MacsecProperties struct { - - // Indicates whether or not MACSEC is enabled. - State MacsecStateEnum `mandatory:"true" json:"state"` - - PrimaryKey *MacsecKey `mandatory:"false" json:"primaryKey"` - - // Type of encryption cipher suite to use for the MACSEC connection. - EncryptionCipher MacsecEncryptionCipherEnum `mandatory:"false" json:"encryptionCipher,omitempty"` -} - -func (m MacsecProperties) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_state.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_state.go deleted file mode 100644 index dda01cd781..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/macsec_state.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -// MacsecStateEnum Enum with underlying type: string -type MacsecStateEnum string - -// Set of constants representing the allowable values for MacsecStateEnum -const ( - MacsecStateEnabled MacsecStateEnum = "ENABLED" - MacsecStateDisabled MacsecStateEnum = "DISABLED" -) - -var mappingMacsecState = map[string]MacsecStateEnum{ - "ENABLED": MacsecStateEnabled, - "DISABLED": MacsecStateDisabled, -} - -// GetMacsecStateEnumValues Enumerates the set of values for MacsecStateEnum -func GetMacsecStateEnumValues() []MacsecStateEnum { - values := make([]MacsecStateEnum, 0) - for _, v := range mappingMacsecState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_entry.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_entry.go deleted file mode 100644 index 7dfa407f75..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_entry.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MeasuredBootEntry One Trusted Platform Module (TPM) Platform Configuration Register (PCR) entry. The entry might be measured during boot, -// or specified in a policy. -type MeasuredBootEntry struct { - - // The index of the policy. - PcrIndex *string `mandatory:"false" json:"pcrIndex"` - - // The hashed PCR value. - Value *string `mandatory:"false" json:"value"` - - // The type of algorithm used to calculate the hash. - HashAlgorithm *string `mandatory:"false" json:"hashAlgorithm"` -} - -func (m MeasuredBootEntry) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report.go deleted file mode 100644 index c523440b85..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MeasuredBootReport The measured boot report for a shielded instance. -type MeasuredBootReport struct { - - // Whether the verification succeeded, and the new values match the expected values. - IsPolicyVerificationSuccessful *bool `mandatory:"true" json:"isPolicyVerificationSuccessful"` - - Measurements *MeasuredBootReportMeasurements `mandatory:"false" json:"measurements"` -} - -func (m MeasuredBootReport) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report_measurements.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report_measurements.go deleted file mode 100644 index 93448e3473..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/measured_boot_report_measurements.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MeasuredBootReportMeasurements A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries. -type MeasuredBootReportMeasurements struct { - - // The list of expected PCR entries to use during verification. - Policy []MeasuredBootEntry `mandatory:"false" json:"policy"` - - // The list of actual PCR entries measured during boot. - Actual []MeasuredBootEntry `mandatory:"false" json:"actual"` -} - -func (m MeasuredBootReportMeasurements) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_details.go deleted file mode 100644 index fc61879bbc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_details.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MigrateDrgDetails The request to update a `DrgAttachment` and migrate the `Drg` to the destination DRG type. -type MigrateDrgDetails struct { - - // Type of the `Drg` to be migrated to. - DestinationDrgType MigrateDrgDetailsDestinationDrgTypeEnum `mandatory:"true" json:"destinationDrgType"` - - // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - DrgAttachmentId *string `mandatory:"false" json:"drgAttachmentId"` - - // NextHop target's MPLS label. - MplsLabel *string `mandatory:"false" json:"mplsLabel"` - - // The string in the form ASN:mplsLabel. - RouteTarget *string `mandatory:"false" json:"routeTarget"` -} - -func (m MigrateDrgDetails) String() string { - return common.PointerString(m) -} - -// MigrateDrgDetailsDestinationDrgTypeEnum Enum with underlying type: string -type MigrateDrgDetailsDestinationDrgTypeEnum string - -// Set of constants representing the allowable values for MigrateDrgDetailsDestinationDrgTypeEnum -const ( - MigrateDrgDetailsDestinationDrgTypeClassical MigrateDrgDetailsDestinationDrgTypeEnum = "DRG_CLASSICAL" - MigrateDrgDetailsDestinationDrgTypeTransitHub MigrateDrgDetailsDestinationDrgTypeEnum = "DRG_TRANSIT_HUB" -) - -var mappingMigrateDrgDetailsDestinationDrgType = map[string]MigrateDrgDetailsDestinationDrgTypeEnum{ - "DRG_CLASSICAL": MigrateDrgDetailsDestinationDrgTypeClassical, - "DRG_TRANSIT_HUB": MigrateDrgDetailsDestinationDrgTypeTransitHub, -} - -// GetMigrateDrgDetailsDestinationDrgTypeEnumValues Enumerates the set of values for MigrateDrgDetailsDestinationDrgTypeEnum -func GetMigrateDrgDetailsDestinationDrgTypeEnumValues() []MigrateDrgDetailsDestinationDrgTypeEnum { - values := make([]MigrateDrgDetailsDestinationDrgTypeEnum, 0) - for _, v := range mappingMigrateDrgDetailsDestinationDrgType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/migration_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/migration_info.go deleted file mode 100644 index 20e7c47b1e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/migration_info.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MigrationInfo Optional info that is present if a vnic is getting migrated as part of instance live migration -type MigrationInfo struct { - - // Live migration session ID - MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` - - SourceSmartNicVnicAttachmentInfo *SmartNicVnicAttachmentInfo `mandatory:"true" json:"sourceSmartNicVnicAttachmentInfo"` - - DestinationSmartNicVnicAttachmentInfo *SmartNicVnicAttachmentInfo `mandatory:"true" json:"destinationSmartNicVnicAttachmentInfo"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on source hypervisor that will be used for hypervisor - VCN DP communication. - SourceHypervisorVnicId *string `mandatory:"false" json:"sourceHypervisorVnicId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on destination hypervisor that will be used for hypervisor - VCN DP communication. - DestinationHypervisorVnicId *string `mandatory:"false" json:"destinationHypervisorVnicId"` - - // Indicates if VNIC's ingress traffic is routed to destination smart NIC - IsTrafficRoutedToDestination *bool `mandatory:"false" json:"isTrafficRoutedToDestination"` -} - -func (m MigrationInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_details.go deleted file mode 100644 index c2c75e75ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_details.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ModifyReverseConnectionsDetails Details for modifying reverse connections configuration for the specified private endpoint. -type ModifyReverseConnectionsDetails struct { - - // List of DNS zones to exclude from the default DNS resolution context. - ExcludedDnsZones []string `mandatory:"false" json:"excludedDnsZones"` - - // A list of the OCIDs of the network security groups that the reverse connection's VNIC belongs to. - // For more information about NSGs, see - // NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Number of customer endpoints that the service provider expects to establish connections to using this RCE. The default is 0. - // When non-zero value is specified, reverse connection configuration will be allocated with a list of CIDRs, from - // which NAT IP addresses will be allocated. These list of CIDRs will not be shared by other reverse - // connection enabled private endpoints. - // When zero is specified, reverse connection configuration will get NAT IP addresses from common pool of CIDRs, - // which will be shared with other reverse connection enabled private endpoints. - // If the private endpoint was enabled with reverse connection with 0 already, the field is not updatable. - // The size may not be updated with smaller number than previously specified value, but may be increased. - CustomerEndpointsSize *int `mandatory:"false" json:"customerEndpointsSize"` - - // Layer 4 transport protocol to be used when resolving DNS queries within the default DNS resolution context. - DefaultDnsContextTransport ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum `mandatory:"false" json:"defaultDnsContextTransport,omitempty"` - - // List of CIDRs that this reverse connection configuration will allocate the NAT IP addresses from. - // CIDRs on this list should not be shared by other reverse connection enabled private endpoints. - // When not specified, if the customerEndpointSize is non null, reverse connection configuration will get - // NAT IP addresses from the dedicated pool of CIDRs, else will get specified from the common pool of CIDRs. - // This field cannot be specified if the customerEndpointsSize field is non null and vice versa. - // Additional Cidrs can be specified, however the existing CIDRs cannot be modified or removed. - ReverseConnectionNatIpCidrs []string `mandatory:"false" json:"reverseConnectionNatIpCidrs"` -} - -func (m ModifyReverseConnectionsDetails) String() string { - return common.PointerString(m) -} - -// ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum Enum with underlying type: string -type ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum string - -// Set of constants representing the allowable values for ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum -const ( - ModifyReverseConnectionsDetailsDefaultDnsContextTransportTcp ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum = "TCP" - ModifyReverseConnectionsDetailsDefaultDnsContextTransportUdp ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum = "UDP" -) - -var mappingModifyReverseConnectionsDetailsDefaultDnsContextTransport = map[string]ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum{ - "TCP": ModifyReverseConnectionsDetailsDefaultDnsContextTransportTcp, - "UDP": ModifyReverseConnectionsDetailsDefaultDnsContextTransportUdp, -} - -// GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumValues Enumerates the set of values for ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum -func GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumValues() []ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum { - values := make([]ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum, 0) - for _, v := range mappingModifyReverseConnectionsDetailsDefaultDnsContextTransport { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_details.go deleted file mode 100644 index 48ad284737..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ModifyVcnCidrDetails Details for updating a CIDR block. -type ModifyVcnCidrDetails struct { - - // The CIDR IP address to update. - OriginalCidrBlock *string `mandatory:"true" json:"originalCidrBlock"` - - // The new CIDR IP address. - NewCidrBlock *string `mandatory:"true" json:"newCidrBlock"` -} - -func (m ModifyVcnCidrDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/multipath_device.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/multipath_device.go deleted file mode 100644 index db3b35c4ab..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/multipath_device.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MultipathDevice Secondary multipath device, it uses the charUsername and chapSecret from primary volume attachment -type MultipathDevice struct { - - // The volume's iSCSI IP address. - // Example: `169.254.2.2` - Ipv4 *string `mandatory:"true" json:"ipv4"` - - // The target volume's iSCSI Qualified Name in the format defined - // by RFC 3720 (https://tools.ietf.org/html/rfc3720#page-32). - // Example: `iqn.2015-12.com.oracleiaas:40b7ee03-883f-46c6-a951-63d2841d2195` - Iqn *string `mandatory:"true" json:"iqn"` - - // The volume's iSCSI port, usually port 860 or 3260. - // Example: `3260` - Port *int `mandatory:"false" json:"port"` -} - -func (m MultipathDevice) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/nat_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/nat_gateway.go deleted file mode 100644 index b684e90c65..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/nat_gateway.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NatGateway A NAT (Network Address Translation) gateway, which represents a router that lets instances -// without public IPs contact the public internet without exposing the instance to inbound -// internet traffic. For more information, see -// NAT Gateway (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/NATgateway.htm). -// To use any of the API operations, you must be authorized in an -// IAM policy. If you are not authorized, talk to an -// administrator. If you are an administrator who needs to write -// policies to give users access, see Getting Started with -// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type NatGateway struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains - // the NAT gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the - // NAT gateway. - Id *string `mandatory:"true" json:"id"` - - // Whether the NAT gateway blocks traffic through it. The default is `false`. - // Example: `true` - BlockTraffic *bool `mandatory:"true" json:"blockTraffic"` - - // The NAT gateway's current state. - LifecycleState NatGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The IP address associated with the NAT gateway. - NatIp *string `mandatory:"true" json:"natIp"` - - // The date and time the NAT gateway was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the NAT gateway - // belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP address associated with the NAT gateway. - PublicIpId *string `mandatory:"false" json:"publicIpId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the NAT Gateway will use. - // If you don't specify a route table here, the NAT Gateway is created without an associated route - // table. The Networking service does NOT automatically associate the attached VCN's default route table - // with the NAT Gateway. - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m NatGateway) String() string { - return common.PointerString(m) -} - -// NatGatewayLifecycleStateEnum Enum with underlying type: string -type NatGatewayLifecycleStateEnum string - -// Set of constants representing the allowable values for NatGatewayLifecycleStateEnum -const ( - NatGatewayLifecycleStateProvisioning NatGatewayLifecycleStateEnum = "PROVISIONING" - NatGatewayLifecycleStateAvailable NatGatewayLifecycleStateEnum = "AVAILABLE" - NatGatewayLifecycleStateTerminating NatGatewayLifecycleStateEnum = "TERMINATING" - NatGatewayLifecycleStateTerminated NatGatewayLifecycleStateEnum = "TERMINATED" -) - -var mappingNatGatewayLifecycleState = map[string]NatGatewayLifecycleStateEnum{ - "PROVISIONING": NatGatewayLifecycleStateProvisioning, - "AVAILABLE": NatGatewayLifecycleStateAvailable, - "TERMINATING": NatGatewayLifecycleStateTerminating, - "TERMINATED": NatGatewayLifecycleStateTerminated, -} - -// GetNatGatewayLifecycleStateEnumValues Enumerates the set of values for NatGatewayLifecycleStateEnum -func GetNatGatewayLifecycleStateEnumValues() []NatGatewayLifecycleStateEnum { - values := make([]NatGatewayLifecycleStateEnum, 0) - for _, v := range mappingNatGatewayLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group.go deleted file mode 100644 index dd33c3825b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkSecurityGroup A *network security group* (NSG) provides virtual firewall rules for a specific set of -// Vnic in a VCN. Compare NSGs with SecurityList, -// which provide virtual firewall rules to all the VNICs in a *subnet*. -// A network security group consists of two items: -// * The set of Vnic that all have the same security rule needs (for -// example, a group of Compute instances all running the same application) -// * A set of NSG SecurityRule that apply to the VNICs in the group -// After creating an NSG, you can add VNICs and security rules to it. For example, when you create -// an instance, you can specify one or more NSGs to add the instance to (see -// CreateVnicDetails). Or you can add an existing -// instance to an NSG with UpdateVnic. -// To add security rules to an NSG, see -// AddNetworkSecurityGroupSecurityRules. -// To list the VNICs in an NSG, see -// ListNetworkSecurityGroupVnics. -// To list the security rules in an NSG, see -// ListNetworkSecurityGroupSecurityRules. -// For more information about network security groups, see -// Network Security Groups (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/networksecuritygroups.htm). -// **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, -// Linux iptables, Windows firewall). If there are issues with some type of access to an instance, -// make sure all of the following are set correctly: -// * Any security rules in any NSGs the instance's VNIC belongs to -// * Any SecurityList associated with the instance's subnet -// * The instance's OS firewall rules -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type NetworkSecurityGroup struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment the network security group is in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. - Id *string `mandatory:"true" json:"id"` - - // The network security group's current state. - LifecycleState NetworkSecurityGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the network security group was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group's VCN. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m NetworkSecurityGroup) String() string { - return common.PointerString(m) -} - -// NetworkSecurityGroupLifecycleStateEnum Enum with underlying type: string -type NetworkSecurityGroupLifecycleStateEnum string - -// Set of constants representing the allowable values for NetworkSecurityGroupLifecycleStateEnum -const ( - NetworkSecurityGroupLifecycleStateProvisioning NetworkSecurityGroupLifecycleStateEnum = "PROVISIONING" - NetworkSecurityGroupLifecycleStateAvailable NetworkSecurityGroupLifecycleStateEnum = "AVAILABLE" - NetworkSecurityGroupLifecycleStateTerminating NetworkSecurityGroupLifecycleStateEnum = "TERMINATING" - NetworkSecurityGroupLifecycleStateTerminated NetworkSecurityGroupLifecycleStateEnum = "TERMINATED" -) - -var mappingNetworkSecurityGroupLifecycleState = map[string]NetworkSecurityGroupLifecycleStateEnum{ - "PROVISIONING": NetworkSecurityGroupLifecycleStateProvisioning, - "AVAILABLE": NetworkSecurityGroupLifecycleStateAvailable, - "TERMINATING": NetworkSecurityGroupLifecycleStateTerminating, - "TERMINATED": NetworkSecurityGroupLifecycleStateTerminated, -} - -// GetNetworkSecurityGroupLifecycleStateEnumValues Enumerates the set of values for NetworkSecurityGroupLifecycleStateEnum -func GetNetworkSecurityGroupLifecycleStateEnumValues() []NetworkSecurityGroupLifecycleStateEnum { - values := make([]NetworkSecurityGroupLifecycleStateEnum, 0) - for _, v := range mappingNetworkSecurityGroupLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group_vnic.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group_vnic.go deleted file mode 100644 index 0d2d4a3439..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/network_security_group_vnic.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkSecurityGroupVnic Information about a VNIC that belongs to a network security group. -type NetworkSecurityGroupVnic struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. - VnicId *string `mandatory:"true" json:"vnicId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent resource that the VNIC - // is attached to (for example, a Compute instance). - ResourceId *string `mandatory:"false" json:"resourceId"` - - // The date and time the VNIC was added to the network security group, in the format - // defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeAssociated *common.SDKTime `mandatory:"false" json:"timeAssociated"` -} - -func (m NetworkSecurityGroupVnic) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/peer_region_for_remote_peering.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/peer_region_for_remote_peering.go deleted file mode 100644 index 9aa21804b5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/peer_region_for_remote_peering.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PeerRegionForRemotePeering Details about a region that supports remote VCN peering. For more -// information, see VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). -type PeerRegionForRemotePeering struct { - - // The region's name. - // Example: `us-phoenix-1` - Name *string `mandatory:"true" json:"name"` -} - -func (m PeerRegionForRemotePeering) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/phase_one_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/phase_one_config_details.go deleted file mode 100644 index f352cd16b2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/phase_one_config_details.go +++ /dev/null @@ -1,121 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PhaseOneConfigDetails Phase 1 Configuration Details -type PhaseOneConfigDetails struct { - - // Supported Phase one authentication algorithms supported during tunnel negotiation. - AuthenticationAlgorithm []PhaseOneConfigDetailsAuthenticationAlgorithmEnum `mandatory:"false" json:"authenticationAlgorithm,omitempty"` - - // Supported Phase one encryption algorithms supported during tunnel negotiation. - EncryptionAlgorithm []PhaseOneConfigDetailsEncryptionAlgorithmEnum `mandatory:"false" json:"encryptionAlgorithm,omitempty"` - - // Supported Phase One Diffie Hellman groups supported during tunnel negotiation. - DiffieHelmanGroup []PhaseOneConfigDetailsDiffieHelmanGroupEnum `mandatory:"false" json:"diffieHelmanGroup,omitempty"` - - // Lifetime in seconds for IPSec phase one. - LifetimeInSeconds *int `mandatory:"false" json:"lifetimeInSeconds"` -} - -func (m PhaseOneConfigDetails) String() string { - return common.PointerString(m) -} - -// PhaseOneConfigDetailsAuthenticationAlgorithmEnum Enum with underlying type: string -type PhaseOneConfigDetailsAuthenticationAlgorithmEnum string - -// Set of constants representing the allowable values for PhaseOneConfigDetailsAuthenticationAlgorithmEnum -const ( - PhaseOneConfigDetailsAuthenticationAlgorithmSha2384 PhaseOneConfigDetailsAuthenticationAlgorithmEnum = "SHA2_384" - PhaseOneConfigDetailsAuthenticationAlgorithmSha2256 PhaseOneConfigDetailsAuthenticationAlgorithmEnum = "SHA2_256" - PhaseOneConfigDetailsAuthenticationAlgorithmSha196 PhaseOneConfigDetailsAuthenticationAlgorithmEnum = "SHA1_96" -) - -var mappingPhaseOneConfigDetailsAuthenticationAlgorithm = map[string]PhaseOneConfigDetailsAuthenticationAlgorithmEnum{ - "SHA2_384": PhaseOneConfigDetailsAuthenticationAlgorithmSha2384, - "SHA2_256": PhaseOneConfigDetailsAuthenticationAlgorithmSha2256, - "SHA1_96": PhaseOneConfigDetailsAuthenticationAlgorithmSha196, -} - -// GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumValues Enumerates the set of values for PhaseOneConfigDetailsAuthenticationAlgorithmEnum -func GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumValues() []PhaseOneConfigDetailsAuthenticationAlgorithmEnum { - values := make([]PhaseOneConfigDetailsAuthenticationAlgorithmEnum, 0) - for _, v := range mappingPhaseOneConfigDetailsAuthenticationAlgorithm { - values = append(values, v) - } - return values -} - -// PhaseOneConfigDetailsEncryptionAlgorithmEnum Enum with underlying type: string -type PhaseOneConfigDetailsEncryptionAlgorithmEnum string - -// Set of constants representing the allowable values for PhaseOneConfigDetailsEncryptionAlgorithmEnum -const ( - PhaseOneConfigDetailsEncryptionAlgorithm256Cbc PhaseOneConfigDetailsEncryptionAlgorithmEnum = "AES_256_CBC" - PhaseOneConfigDetailsEncryptionAlgorithm192Cbc PhaseOneConfigDetailsEncryptionAlgorithmEnum = "AES_192_CBC" - PhaseOneConfigDetailsEncryptionAlgorithm128Cbc PhaseOneConfigDetailsEncryptionAlgorithmEnum = "AES_128_CBC" -) - -var mappingPhaseOneConfigDetailsEncryptionAlgorithm = map[string]PhaseOneConfigDetailsEncryptionAlgorithmEnum{ - "AES_256_CBC": PhaseOneConfigDetailsEncryptionAlgorithm256Cbc, - "AES_192_CBC": PhaseOneConfigDetailsEncryptionAlgorithm192Cbc, - "AES_128_CBC": PhaseOneConfigDetailsEncryptionAlgorithm128Cbc, -} - -// GetPhaseOneConfigDetailsEncryptionAlgorithmEnumValues Enumerates the set of values for PhaseOneConfigDetailsEncryptionAlgorithmEnum -func GetPhaseOneConfigDetailsEncryptionAlgorithmEnumValues() []PhaseOneConfigDetailsEncryptionAlgorithmEnum { - values := make([]PhaseOneConfigDetailsEncryptionAlgorithmEnum, 0) - for _, v := range mappingPhaseOneConfigDetailsEncryptionAlgorithm { - values = append(values, v) - } - return values -} - -// PhaseOneConfigDetailsDiffieHelmanGroupEnum Enum with underlying type: string -type PhaseOneConfigDetailsDiffieHelmanGroupEnum string - -// Set of constants representing the allowable values for PhaseOneConfigDetailsDiffieHelmanGroupEnum -const ( - PhaseOneConfigDetailsDiffieHelmanGroupGroup1 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP1" - PhaseOneConfigDetailsDiffieHelmanGroupGroup2 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP2" - PhaseOneConfigDetailsDiffieHelmanGroupGroup5 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP5" - PhaseOneConfigDetailsDiffieHelmanGroupGroup14 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP14" - PhaseOneConfigDetailsDiffieHelmanGroupGroup19 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP19" - PhaseOneConfigDetailsDiffieHelmanGroupGroup20 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP20" - PhaseOneConfigDetailsDiffieHelmanGroupGroup24 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP24" -) - -var mappingPhaseOneConfigDetailsDiffieHelmanGroup = map[string]PhaseOneConfigDetailsDiffieHelmanGroupEnum{ - "GROUP1": PhaseOneConfigDetailsDiffieHelmanGroupGroup1, - "GROUP2": PhaseOneConfigDetailsDiffieHelmanGroupGroup2, - "GROUP5": PhaseOneConfigDetailsDiffieHelmanGroupGroup5, - "GROUP14": PhaseOneConfigDetailsDiffieHelmanGroupGroup14, - "GROUP19": PhaseOneConfigDetailsDiffieHelmanGroupGroup19, - "GROUP20": PhaseOneConfigDetailsDiffieHelmanGroupGroup20, - "GROUP24": PhaseOneConfigDetailsDiffieHelmanGroupGroup24, -} - -// GetPhaseOneConfigDetailsDiffieHelmanGroupEnumValues Enumerates the set of values for PhaseOneConfigDetailsDiffieHelmanGroupEnum -func GetPhaseOneConfigDetailsDiffieHelmanGroupEnumValues() []PhaseOneConfigDetailsDiffieHelmanGroupEnum { - values := make([]PhaseOneConfigDetailsDiffieHelmanGroupEnum, 0) - for _, v := range mappingPhaseOneConfigDetailsDiffieHelmanGroup { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/phase_two_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/phase_two_config_details.go deleted file mode 100644 index dd26ad749f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/phase_two_config_details.go +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PhaseTwoConfigDetails Phase 2 Configuration Details -type PhaseTwoConfigDetails struct { - - // Supported Phase two authentication algorithms supported during tunnel negotiation. - AuthenticationAlgorithm []PhaseTwoConfigDetailsAuthenticationAlgorithmEnum `mandatory:"false" json:"authenticationAlgorithm,omitempty"` - - // Supported Phase two encryption algorithms supported during tunnel negotiation. - EncryptionAlgorithm []PhaseTwoConfigDetailsEncryptionAlgorithmEnum `mandatory:"false" json:"encryptionAlgorithm,omitempty"` - - // Lifetime in seconds for IPSec phase two. - LifetimeInSeconds *int `mandatory:"false" json:"lifetimeInSeconds"` - - // Is PFS (perfect forward secrecy) enabled. - IsPfsEnabled *bool `mandatory:"false" json:"isPfsEnabled"` - - // DH Group used for PFS. - PfsDhGroup PhaseTwoConfigDetailsPfsDhGroupEnum `mandatory:"false" json:"pfsDhGroup,omitempty"` -} - -func (m PhaseTwoConfigDetails) String() string { - return common.PointerString(m) -} - -// PhaseTwoConfigDetailsAuthenticationAlgorithmEnum Enum with underlying type: string -type PhaseTwoConfigDetailsAuthenticationAlgorithmEnum string - -// Set of constants representing the allowable values for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum -const ( - PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128 PhaseTwoConfigDetailsAuthenticationAlgorithmEnum = "HMAC_SHA2_256_128" - PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128 PhaseTwoConfigDetailsAuthenticationAlgorithmEnum = "HMAC_SHA1_128" -) - -var mappingPhaseTwoConfigDetailsAuthenticationAlgorithm = map[string]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum{ - "HMAC_SHA2_256_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128, - "HMAC_SHA1_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128, -} - -// GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumValues Enumerates the set of values for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum -func GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumValues() []PhaseTwoConfigDetailsAuthenticationAlgorithmEnum { - values := make([]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum, 0) - for _, v := range mappingPhaseTwoConfigDetailsAuthenticationAlgorithm { - values = append(values, v) - } - return values -} - -// PhaseTwoConfigDetailsEncryptionAlgorithmEnum Enum with underlying type: string -type PhaseTwoConfigDetailsEncryptionAlgorithmEnum string - -// Set of constants representing the allowable values for PhaseTwoConfigDetailsEncryptionAlgorithmEnum -const ( - PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_256_GCM" - PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_192_GCM" - PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_128_GCM" - PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_256_CBC" - PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_192_CBC" - PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_128_CBC" -) - -var mappingPhaseTwoConfigDetailsEncryptionAlgorithm = map[string]PhaseTwoConfigDetailsEncryptionAlgorithmEnum{ - "AES_256_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm, - "AES_192_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm, - "AES_128_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm, - "AES_256_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc, - "AES_192_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc, - "AES_128_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc, -} - -// GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumValues Enumerates the set of values for PhaseTwoConfigDetailsEncryptionAlgorithmEnum -func GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumValues() []PhaseTwoConfigDetailsEncryptionAlgorithmEnum { - values := make([]PhaseTwoConfigDetailsEncryptionAlgorithmEnum, 0) - for _, v := range mappingPhaseTwoConfigDetailsEncryptionAlgorithm { - values = append(values, v) - } - return values -} - -// PhaseTwoConfigDetailsPfsDhGroupEnum Enum with underlying type: string -type PhaseTwoConfigDetailsPfsDhGroupEnum string - -// Set of constants representing the allowable values for PhaseTwoConfigDetailsPfsDhGroupEnum -const ( - PhaseTwoConfigDetailsPfsDhGroupGroup2 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP2" - PhaseTwoConfigDetailsPfsDhGroupGroup5 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP5" - PhaseTwoConfigDetailsPfsDhGroupGroup14 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP14" - PhaseTwoConfigDetailsPfsDhGroupGroup19 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP19" - PhaseTwoConfigDetailsPfsDhGroupGroup20 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP20" - PhaseTwoConfigDetailsPfsDhGroupGroup24 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP24" -) - -var mappingPhaseTwoConfigDetailsPfsDhGroup = map[string]PhaseTwoConfigDetailsPfsDhGroupEnum{ - "GROUP2": PhaseTwoConfigDetailsPfsDhGroupGroup2, - "GROUP5": PhaseTwoConfigDetailsPfsDhGroupGroup5, - "GROUP14": PhaseTwoConfigDetailsPfsDhGroupGroup14, - "GROUP19": PhaseTwoConfigDetailsPfsDhGroupGroup19, - "GROUP20": PhaseTwoConfigDetailsPfsDhGroupGroup20, - "GROUP24": PhaseTwoConfigDetailsPfsDhGroupGroup24, -} - -// GetPhaseTwoConfigDetailsPfsDhGroupEnumValues Enumerates the set of values for PhaseTwoConfigDetailsPfsDhGroupEnum -func GetPhaseTwoConfigDetailsPfsDhGroupEnumValues() []PhaseTwoConfigDetailsPfsDhGroupEnum { - values := make([]PhaseTwoConfigDetailsPfsDhGroupEnum, 0) - for _, v := range mappingPhaseTwoConfigDetailsPfsDhGroup { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/platform_config.go deleted file mode 100644 index 772a3aa90d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/platform_config.go +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PlatformConfig The platform configuration for the instance. -type PlatformConfig interface { - - // Whether Secure Boot is enabled on the instance. - GetIsSecureBootEnabled() *bool - - // Whether the Trusted Platform Module (TPM) is enabled on the instance. - GetIsTrustedPlatformModuleEnabled() *bool - - // Whether the Measured Boot feature is enabled on the instance. - GetIsMeasuredBootEnabled() *bool -} - -type platformconfig struct { - JsonData []byte - IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` - IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` - IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *platformconfig) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerplatformconfig platformconfig - s := struct { - Model Unmarshalerplatformconfig - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.IsSecureBootEnabled = s.Model.IsSecureBootEnabled - m.IsTrustedPlatformModuleEnabled = s.Model.IsTrustedPlatformModuleEnabled - m.IsMeasuredBootEnabled = s.Model.IsMeasuredBootEnabled - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *platformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "AMD_MILAN_BM": - mm := AmdMilanBmPlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AMD_ROME_BM": - mm := AmdRomeBmPlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTEL_SKYLAKE_BM": - mm := IntelSkylakeBmPlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "AMD_VM": - mm := AmdVmPlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - case "INTEL_VM": - mm := IntelVmPlatformConfig{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetIsSecureBootEnabled returns IsSecureBootEnabled -func (m platformconfig) GetIsSecureBootEnabled() *bool { - return m.IsSecureBootEnabled -} - -//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled -func (m platformconfig) GetIsTrustedPlatformModuleEnabled() *bool { - return m.IsTrustedPlatformModuleEnabled -} - -//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled -func (m platformconfig) GetIsMeasuredBootEnabled() *bool { - return m.IsMeasuredBootEnabled -} - -func (m platformconfig) String() string { - return common.PointerString(m) -} - -// PlatformConfigTypeEnum Enum with underlying type: string -type PlatformConfigTypeEnum string - -// Set of constants representing the allowable values for PlatformConfigTypeEnum -const ( - PlatformConfigTypeAmdMilanBm PlatformConfigTypeEnum = "AMD_MILAN_BM" - PlatformConfigTypeAmdRomeBm PlatformConfigTypeEnum = "AMD_ROME_BM" - PlatformConfigTypeIntelSkylakeBm PlatformConfigTypeEnum = "INTEL_SKYLAKE_BM" - PlatformConfigTypeAmdVm PlatformConfigTypeEnum = "AMD_VM" - PlatformConfigTypeIntelVm PlatformConfigTypeEnum = "INTEL_VM" -) - -var mappingPlatformConfigType = map[string]PlatformConfigTypeEnum{ - "AMD_MILAN_BM": PlatformConfigTypeAmdMilanBm, - "AMD_ROME_BM": PlatformConfigTypeAmdRomeBm, - "INTEL_SKYLAKE_BM": PlatformConfigTypeIntelSkylakeBm, - "AMD_VM": PlatformConfigTypeAmdVm, - "INTEL_VM": PlatformConfigTypeIntelVm, -} - -// GetPlatformConfigTypeEnumValues Enumerates the set of values for PlatformConfigTypeEnum -func GetPlatformConfigTypeEnumValues() []PlatformConfigTypeEnum { - values := make([]PlatformConfigTypeEnum, 0) - for _, v := range mappingPlatformConfigType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/port_range.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/port_range.go deleted file mode 100644 index 9814441448..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/port_range.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PortRange The representation of PortRange -type PortRange struct { - - // The maximum port number, which must not be less than the minimum port number. To specify - // a single port number, set both the min and max to the same value. - Max *int `mandatory:"true" json:"max"` - - // The minimum port number, which must not be greater than the maximum port number. - Min *int `mandatory:"true" json:"min"` -} - -func (m PortRange) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/preemptible_instance_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/preemptible_instance_config_details.go deleted file mode 100644 index 44314bd87d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/preemptible_instance_config_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PreemptibleInstanceConfigDetails Configuration options for preemptible instances. -type PreemptibleInstanceConfigDetails struct { - PreemptionAction PreemptionAction `mandatory:"true" json:"preemptionAction"` -} - -func (m PreemptibleInstanceConfigDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *PreemptibleInstanceConfigDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - PreemptionAction preemptionaction `json:"preemptionAction"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - nn, e = model.PreemptionAction.UnmarshalPolymorphicJSON(model.PreemptionAction.JsonData) - if e != nil { - return - } - if nn != nil { - m.PreemptionAction = nn.(PreemptionAction) - } else { - m.PreemptionAction = nil - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/preemption_action.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/preemption_action.go deleted file mode 100644 index 672ffc68b8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/preemption_action.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PreemptionAction The action to run when the preemptible instance is interrupted for eviction. -type PreemptionAction interface { -} - -type preemptionaction struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *preemptionaction) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerpreemptionaction preemptionaction - s := struct { - Model Unmarshalerpreemptionaction - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *preemptionaction) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "TERMINATE": - mm := TerminatePreemptionAction{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m preemptionaction) String() string { - return common.PointerString(m) -} - -// PreemptionActionTypeEnum Enum with underlying type: string -type PreemptionActionTypeEnum string - -// Set of constants representing the allowable values for PreemptionActionTypeEnum -const ( - PreemptionActionTypeTerminate PreemptionActionTypeEnum = "TERMINATE" -) - -var mappingPreemptionActionType = map[string]PreemptionActionTypeEnum{ - "TERMINATE": PreemptionActionTypeTerminate, -} - -// GetPreemptionActionTypeEnumValues Enumerates the set of values for PreemptionActionTypeEnum -func GetPreemptionActionTypeEnumValues() []PreemptionActionTypeEnum { - values := make([]PreemptionActionTypeEnum, 0) - for _, v := range mappingPreemptionActionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway.go deleted file mode 100644 index c1617e84e2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateAccessGateway Required for Oracle services that offer customers private endpoints for private access to the -// service. -// The service VCN requires a private access gateway (PAG) to handle the traffic to and from -// private endpoints in customer VCNs (see PrivateEndpoint). -// After creating the gateway, update the route tables in your service VCN to send all traffic -// destined for private endpoints to this gateway. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type PrivateAccessGateway struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PAG. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the PAG. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the PAG belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The date and time the PAG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The PAG's current lifecycle state. - LifecycleState PrivateAccessGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m PrivateAccessGateway) String() string { - return common.PointerString(m) -} - -// PrivateAccessGatewayLifecycleStateEnum Enum with underlying type: string -type PrivateAccessGatewayLifecycleStateEnum string - -// Set of constants representing the allowable values for PrivateAccessGatewayLifecycleStateEnum -const ( - PrivateAccessGatewayLifecycleStateProvisioning PrivateAccessGatewayLifecycleStateEnum = "PROVISIONING" - PrivateAccessGatewayLifecycleStateAvailable PrivateAccessGatewayLifecycleStateEnum = "AVAILABLE" - PrivateAccessGatewayLifecycleStateTerminating PrivateAccessGatewayLifecycleStateEnum = "TERMINATING" - PrivateAccessGatewayLifecycleStateTerminated PrivateAccessGatewayLifecycleStateEnum = "TERMINATED" - PrivateAccessGatewayLifecycleStateUpdating PrivateAccessGatewayLifecycleStateEnum = "UPDATING" - PrivateAccessGatewayLifecycleStateFailed PrivateAccessGatewayLifecycleStateEnum = "FAILED" -) - -var mappingPrivateAccessGatewayLifecycleState = map[string]PrivateAccessGatewayLifecycleStateEnum{ - "PROVISIONING": PrivateAccessGatewayLifecycleStateProvisioning, - "AVAILABLE": PrivateAccessGatewayLifecycleStateAvailable, - "TERMINATING": PrivateAccessGatewayLifecycleStateTerminating, - "TERMINATED": PrivateAccessGatewayLifecycleStateTerminated, - "UPDATING": PrivateAccessGatewayLifecycleStateUpdating, - "FAILED": PrivateAccessGatewayLifecycleStateFailed, -} - -// GetPrivateAccessGatewayLifecycleStateEnumValues Enumerates the set of values for PrivateAccessGatewayLifecycleStateEnum -func GetPrivateAccessGatewayLifecycleStateEnumValues() []PrivateAccessGatewayLifecycleStateEnum { - values := make([]PrivateAccessGatewayLifecycleStateEnum, 0) - for _, v := range mappingPrivateAccessGatewayLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway_summary.go deleted file mode 100644 index 892f9ab774..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_access_gateway_summary.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateAccessGatewaySummary A summary of private access gateway (PAG) information. This object is returned when listing -// PAGs. -type PrivateAccessGatewaySummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PAG. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` -} - -func (m PrivateAccessGatewaySummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_association.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_association.go deleted file mode 100644 index c2a9ca0486..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_association.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateEndpointAssociation A summary of private endpoint information. This object is returned when listing the private -// endpoints associated with a given endpoint service. -type PrivateEndpointAssociation struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. - Id *string `mandatory:"false" json:"id"` - - // The private IP address (in the customer's VCN) that represents the access point for the - // associated endpoint service. - PrivateEndpointIp *string `mandatory:"false" json:"privateEndpointIp"` - - // The three-label FQDN to use for the private endpoint. The customer VCN's DNS records use - // this FQDN. - // For important information about how this attribute is used, see the discussion - // of DNS and FQDNs in PrivateEndpoint. - // Example: `xyz.oraclecloud.com` - EndpointFqdn *string `mandatory:"false" json:"endpointFqdn"` - - // A list of additional FQDNs that you can provide along with endpointFqdn. These FQDNs are added to the - // customer VCN's DNS record. For more information, see the discussion of DNS and FQDNs in - // PrivateEndpoint. - AdditionalFqdns []string `mandatory:"false" json:"additionalFqdns"` - - ReverseConnectionConfiguration *ReverseConnectionConfiguration `mandatory:"false" json:"reverseConnectionConfiguration"` -} - -func (m PrivateEndpointAssociation) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_summary.go deleted file mode 100644 index b7741f7833..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint_summary.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateEndpointSummary A summary of private endpoint information. This object is returned when listing private endpoints. -type PrivateEndpointSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service that is associated - // with the private endpoint. - EndpointServiceId *string `mandatory:"true" json:"endpointServiceId"` -} - -func (m PrivateEndpointSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop.go deleted file mode 100644 index 3a4bf9230c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateIpNextHop Details of a private IP's nextHop configuration. -type PrivateIpNextHop struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // VNICaaS will flow-hash traffic that matches the service protocol and port. - ServiceProtocolPorts []PrivateIpNextHopProtocolPort `mandatory:"false" json:"serviceProtocolPorts"` - - // Details of nextHop targets. - Targets []PrivateIpNextHopTarget `mandatory:"false" json:"targets"` -} - -func (m PrivateIpNextHop) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_protocol_port.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_protocol_port.go deleted file mode 100644 index 55e3cdbf7d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_protocol_port.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateIpNextHopProtocolPort Details containing the port number and the protocol type -type PrivateIpNextHopProtocolPort struct { - - // VNICaaS uses this to identify the port number to flow-hash traffic - Port *int `mandatory:"false" json:"port"` - - // The type of protocol i.e. TCP, UDP or ALL accompanied by port number used for flow-hash by VNICaaS - Protocol PrivateIpNextHopProtocolPortProtocolEnum `mandatory:"false" json:"protocol,omitempty"` -} - -func (m PrivateIpNextHopProtocolPort) String() string { - return common.PointerString(m) -} - -// PrivateIpNextHopProtocolPortProtocolEnum Enum with underlying type: string -type PrivateIpNextHopProtocolPortProtocolEnum string - -// Set of constants representing the allowable values for PrivateIpNextHopProtocolPortProtocolEnum -const ( - PrivateIpNextHopProtocolPortProtocolTcp PrivateIpNextHopProtocolPortProtocolEnum = "TCP" - PrivateIpNextHopProtocolPortProtocolUdp PrivateIpNextHopProtocolPortProtocolEnum = "UDP" - PrivateIpNextHopProtocolPortProtocolAll PrivateIpNextHopProtocolPortProtocolEnum = "ALL" -) - -var mappingPrivateIpNextHopProtocolPortProtocol = map[string]PrivateIpNextHopProtocolPortProtocolEnum{ - "TCP": PrivateIpNextHopProtocolPortProtocolTcp, - "UDP": PrivateIpNextHopProtocolPortProtocolUdp, - "ALL": PrivateIpNextHopProtocolPortProtocolAll, -} - -// GetPrivateIpNextHopProtocolPortProtocolEnumValues Enumerates the set of values for PrivateIpNextHopProtocolPortProtocolEnum -func GetPrivateIpNextHopProtocolPortProtocolEnumValues() []PrivateIpNextHopProtocolPortProtocolEnum { - values := make([]PrivateIpNextHopProtocolPortProtocolEnum, 0) - for _, v := range mappingPrivateIpNextHopProtocolPortProtocol { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_target.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_target.go deleted file mode 100644 index 6b12c41a7e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip_next_hop_target.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PrivateIpNextHopTarget Details of a private IP nextHop target. -type PrivateIpNextHopTarget struct { - - // NextHop target's MPLS label. - MplsLabel *int `mandatory:"false" json:"mplsLabel"` - - PortRange *PortRange `mandatory:"false" json:"portRange"` - - // NextHop target's substrate IP. - SubstrateIp *string `mandatory:"false" json:"substrateIp"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the nextHop target entity. - TargetId *string `mandatory:"false" json:"targetId"` - - // Type of nextHop target. - TargetType PrivateIpNextHopTargetTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` -} - -func (m PrivateIpNextHopTarget) String() string { - return common.PointerString(m) -} - -// PrivateIpNextHopTargetTargetTypeEnum Enum with underlying type: string -type PrivateIpNextHopTargetTargetTypeEnum string - -// Set of constants representing the allowable values for PrivateIpNextHopTargetTargetTypeEnum -const ( - PrivateIpNextHopTargetTargetTypePadp PrivateIpNextHopTargetTargetTypeEnum = "PADP" - PrivateIpNextHopTargetTargetTypeVnicWorker PrivateIpNextHopTargetTargetTypeEnum = "VNIC_WORKER" -) - -var mappingPrivateIpNextHopTargetTargetType = map[string]PrivateIpNextHopTargetTargetTypeEnum{ - "PADP": PrivateIpNextHopTargetTargetTypePadp, - "VNIC_WORKER": PrivateIpNextHopTargetTargetTypeVnicWorker, -} - -// GetPrivateIpNextHopTargetTargetTypeEnumValues Enumerates the set of values for PrivateIpNextHopTargetTargetTypeEnum -func GetPrivateIpNextHopTargetTargetTypeEnumValues() []PrivateIpNextHopTargetTargetTypeEnum { - values := make([]PrivateIpNextHopTargetTargetTypeEnum, 0) - for _, v := range mappingPrivateIpNextHopTargetTargetType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip.go deleted file mode 100644 index 7fca804a6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip.go +++ /dev/null @@ -1,217 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PublicIp A *public IP* is a conceptual term that refers to a public IP address and related properties. -// The `publicIp` object is the API representation of a public IP. -// There are two types of public IPs: -// 1. Ephemeral -// 2. Reserved -// For more information and comparison of the two types, -// see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). -type PublicIp struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity the public IP is assigned to, or in the process of - // being assigned to. - AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` - - // The type of entity the public IP is assigned to, or in the process of being - // assigned to. - AssignedEntityType PublicIpAssignedEntityTypeEnum `mandatory:"false" json:"assignedEntityType,omitempty"` - - // The public IP's availability domain. This property is set only for ephemeral public IPs - // that are assigned to a private IP (that is, when the `scope` of the public IP is set to - // AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP. For an ephemeral public IP, this is - // the compartment of its assigned entity (which can be a private IP or a regional entity such - // as a NAT gateway). For a reserved public IP that is currently assigned, - // its compartment can be different from the assigned private IP's. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The public IP's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"false" json:"id"` - - // The public IP address of the `publicIp` object. - // Example: `203.0.113.2` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The public IP's current state. - LifecycleState PublicIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Defines when the public IP is deleted and released back to Oracle's public IP pool. - // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned entity. An ephemeral - // public IP must always be assigned to an entity. If the assigned entity is a private IP, - // the ephemeral public IP is automatically deleted when the private IP is deleted, when - // the VNIC is terminated, or when the instance is terminated. If the assigned entity is a - // NatGateway, the ephemeral public IP is automatically - // deleted when the NAT gateway is terminated. - // * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP - // whenever you like. It does not need to be assigned to a private IP at all times. - // For more information and comparison of the two types, - // see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). - Lifetime PublicIpLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` - - // Deprecated. Use `assignedEntityId` instead. - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is currently assigned to, or in the - // process of being assigned to. - // **Note:** This is `null` if the public IP is not assigned to a private IP, or is - // in the process of being assigned to one. - PrivateIpId *string `mandatory:"false" json:"privateIpId"` - - // Whether the public IP is regional or specific to a particular availability domain. - // * `REGION`: The public IP exists within a region and is assigned to a regional entity - // (such as a NatGateway), or can be assigned to a private - // IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs - // assigned to a regional entity have `scope` = `REGION`. - // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity - // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. - // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. - Scope PublicIpScopeEnum `mandatory:"false" json:"scope,omitempty"` - - // The date and time the public IP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created in the current tenancy. - PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` -} - -func (m PublicIp) String() string { - return common.PointerString(m) -} - -// PublicIpAssignedEntityTypeEnum Enum with underlying type: string -type PublicIpAssignedEntityTypeEnum string - -// Set of constants representing the allowable values for PublicIpAssignedEntityTypeEnum -const ( - PublicIpAssignedEntityTypePrivateIp PublicIpAssignedEntityTypeEnum = "PRIVATE_IP" - PublicIpAssignedEntityTypeNatGateway PublicIpAssignedEntityTypeEnum = "NAT_GATEWAY" -) - -var mappingPublicIpAssignedEntityType = map[string]PublicIpAssignedEntityTypeEnum{ - "PRIVATE_IP": PublicIpAssignedEntityTypePrivateIp, - "NAT_GATEWAY": PublicIpAssignedEntityTypeNatGateway, -} - -// GetPublicIpAssignedEntityTypeEnumValues Enumerates the set of values for PublicIpAssignedEntityTypeEnum -func GetPublicIpAssignedEntityTypeEnumValues() []PublicIpAssignedEntityTypeEnum { - values := make([]PublicIpAssignedEntityTypeEnum, 0) - for _, v := range mappingPublicIpAssignedEntityType { - values = append(values, v) - } - return values -} - -// PublicIpLifecycleStateEnum Enum with underlying type: string -type PublicIpLifecycleStateEnum string - -// Set of constants representing the allowable values for PublicIpLifecycleStateEnum -const ( - PublicIpLifecycleStateProvisioning PublicIpLifecycleStateEnum = "PROVISIONING" - PublicIpLifecycleStateAvailable PublicIpLifecycleStateEnum = "AVAILABLE" - PublicIpLifecycleStateAssigning PublicIpLifecycleStateEnum = "ASSIGNING" - PublicIpLifecycleStateAssigned PublicIpLifecycleStateEnum = "ASSIGNED" - PublicIpLifecycleStateUnassigning PublicIpLifecycleStateEnum = "UNASSIGNING" - PublicIpLifecycleStateUnassigned PublicIpLifecycleStateEnum = "UNASSIGNED" - PublicIpLifecycleStateTerminating PublicIpLifecycleStateEnum = "TERMINATING" - PublicIpLifecycleStateTerminated PublicIpLifecycleStateEnum = "TERMINATED" -) - -var mappingPublicIpLifecycleState = map[string]PublicIpLifecycleStateEnum{ - "PROVISIONING": PublicIpLifecycleStateProvisioning, - "AVAILABLE": PublicIpLifecycleStateAvailable, - "ASSIGNING": PublicIpLifecycleStateAssigning, - "ASSIGNED": PublicIpLifecycleStateAssigned, - "UNASSIGNING": PublicIpLifecycleStateUnassigning, - "UNASSIGNED": PublicIpLifecycleStateUnassigned, - "TERMINATING": PublicIpLifecycleStateTerminating, - "TERMINATED": PublicIpLifecycleStateTerminated, -} - -// GetPublicIpLifecycleStateEnumValues Enumerates the set of values for PublicIpLifecycleStateEnum -func GetPublicIpLifecycleStateEnumValues() []PublicIpLifecycleStateEnum { - values := make([]PublicIpLifecycleStateEnum, 0) - for _, v := range mappingPublicIpLifecycleState { - values = append(values, v) - } - return values -} - -// PublicIpLifetimeEnum Enum with underlying type: string -type PublicIpLifetimeEnum string - -// Set of constants representing the allowable values for PublicIpLifetimeEnum -const ( - PublicIpLifetimeEphemeral PublicIpLifetimeEnum = "EPHEMERAL" - PublicIpLifetimeReserved PublicIpLifetimeEnum = "RESERVED" -) - -var mappingPublicIpLifetime = map[string]PublicIpLifetimeEnum{ - "EPHEMERAL": PublicIpLifetimeEphemeral, - "RESERVED": PublicIpLifetimeReserved, -} - -// GetPublicIpLifetimeEnumValues Enumerates the set of values for PublicIpLifetimeEnum -func GetPublicIpLifetimeEnumValues() []PublicIpLifetimeEnum { - values := make([]PublicIpLifetimeEnum, 0) - for _, v := range mappingPublicIpLifetime { - values = append(values, v) - } - return values -} - -// PublicIpScopeEnum Enum with underlying type: string -type PublicIpScopeEnum string - -// Set of constants representing the allowable values for PublicIpScopeEnum -const ( - PublicIpScopeRegion PublicIpScopeEnum = "REGION" - PublicIpScopeAvailabilityDomain PublicIpScopeEnum = "AVAILABILITY_DOMAIN" -) - -var mappingPublicIpScope = map[string]PublicIpScopeEnum{ - "REGION": PublicIpScopeRegion, - "AVAILABILITY_DOMAIN": PublicIpScopeAvailabilityDomain, -} - -// GetPublicIpScopeEnumValues Enumerates the set of values for PublicIpScopeEnum -func GetPublicIpScopeEnumValues() []PublicIpScopeEnum { - values := make([]PublicIpScopeEnum, 0) - for _, v := range mappingPublicIpScope { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool.go deleted file mode 100644 index 6807e040a4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PublicIpPool A public IP pool is a set of public IP addresses represented as one or more IPv4 CIDR blocks. Resources like load balancers and compute instances can be allocated public IP addresses from a public IP pool. -type PublicIpPool struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing this pool. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. - Id *string `mandatory:"true" json:"id"` - - // The date and time the public IP pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block. - CidrBlocks []string `mandatory:"false" json:"cidrBlocks"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The public IP pool's current state. - LifecycleState PublicIpPoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m PublicIpPool) String() string { - return common.PointerString(m) -} - -// PublicIpPoolLifecycleStateEnum Enum with underlying type: string -type PublicIpPoolLifecycleStateEnum string - -// Set of constants representing the allowable values for PublicIpPoolLifecycleStateEnum -const ( - PublicIpPoolLifecycleStateInactive PublicIpPoolLifecycleStateEnum = "INACTIVE" - PublicIpPoolLifecycleStateUpdating PublicIpPoolLifecycleStateEnum = "UPDATING" - PublicIpPoolLifecycleStateActive PublicIpPoolLifecycleStateEnum = "ACTIVE" - PublicIpPoolLifecycleStateDeleting PublicIpPoolLifecycleStateEnum = "DELETING" - PublicIpPoolLifecycleStateDeleted PublicIpPoolLifecycleStateEnum = "DELETED" -) - -var mappingPublicIpPoolLifecycleState = map[string]PublicIpPoolLifecycleStateEnum{ - "INACTIVE": PublicIpPoolLifecycleStateInactive, - "UPDATING": PublicIpPoolLifecycleStateUpdating, - "ACTIVE": PublicIpPoolLifecycleStateActive, - "DELETING": PublicIpPoolLifecycleStateDeleting, - "DELETED": PublicIpPoolLifecycleStateDeleted, -} - -// GetPublicIpPoolLifecycleStateEnumValues Enumerates the set of values for PublicIpPoolLifecycleStateEnum -func GetPublicIpPoolLifecycleStateEnumValues() []PublicIpPoolLifecycleStateEnum { - values := make([]PublicIpPoolLifecycleStateEnum, 0) - for _, v := range mappingPublicIpPoolLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_collection.go deleted file mode 100644 index 933b80d7b4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_collection.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PublicIpPoolCollection Results of a `ListPublicIpPool` operation. -type PublicIpPoolCollection struct { - - // A list of public IP pool summaries. - Items []PublicIpPoolSummary `mandatory:"true" json:"items"` -} - -func (m PublicIpPoolCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_summary.go deleted file mode 100644 index 131afc8e32..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/public_ip_pool_summary.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PublicIpPoolSummary Summary information about a public IP pool. -type PublicIpPoolSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP pool. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. - Id *string `mandatory:"false" json:"id"` - - // The public IP pool's current state. - LifecycleState PublicIpPoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the public IP pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m PublicIpPoolSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/radius_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/radius_config_details.go deleted file mode 100644 index 3de661513b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/radius_config_details.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RadiusConfigDetails The detail of RADIUS's authentication configuration. -type RadiusConfigDetails struct { - - // Allowed values: - // * `PAP`: An authentication option used by PPP to validate user. - // * `CHAP`: An authentication option used by PPP to validate user but performed only at the initial link establishment. - // * `MS-CHAP-v2`: An authentication option used by PPP to periodically validate the user. - AuthenticationType RadiusConfigDetailsAuthenticationTypeEnum `mandatory:"false" json:"authenticationType,omitempty"` - - // A list of usable RADIUS server. - Servers []RadiusServerDetails `mandatory:"false" json:"servers"` - - // Whether to enable RADIUS accounting. When this enabled, accouting port becomes required filed. - IsRadiusAccountingEnabled *bool `mandatory:"false" json:"isRadiusAccountingEnabled"` - - // Enable case-sensitivity or not in RADIUS authentication. - IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` -} - -func (m RadiusConfigDetails) String() string { - return common.PointerString(m) -} - -// RadiusConfigDetailsAuthenticationTypeEnum Enum with underlying type: string -type RadiusConfigDetailsAuthenticationTypeEnum string - -// Set of constants representing the allowable values for RadiusConfigDetailsAuthenticationTypeEnum -const ( - RadiusConfigDetailsAuthenticationTypePap RadiusConfigDetailsAuthenticationTypeEnum = "PAP" - RadiusConfigDetailsAuthenticationTypeChap RadiusConfigDetailsAuthenticationTypeEnum = "CHAP" - RadiusConfigDetailsAuthenticationTypeMsChapV2 RadiusConfigDetailsAuthenticationTypeEnum = "MS_CHAP_V2" -) - -var mappingRadiusConfigDetailsAuthenticationType = map[string]RadiusConfigDetailsAuthenticationTypeEnum{ - "PAP": RadiusConfigDetailsAuthenticationTypePap, - "CHAP": RadiusConfigDetailsAuthenticationTypeChap, - "MS_CHAP_V2": RadiusConfigDetailsAuthenticationTypeMsChapV2, -} - -// GetRadiusConfigDetailsAuthenticationTypeEnumValues Enumerates the set of values for RadiusConfigDetailsAuthenticationTypeEnum -func GetRadiusConfigDetailsAuthenticationTypeEnumValues() []RadiusConfigDetailsAuthenticationTypeEnum { - values := make([]RadiusConfigDetailsAuthenticationTypeEnum, 0) - for _, v := range mappingRadiusConfigDetailsAuthenticationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/radius_server_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/radius_server_details.go deleted file mode 100644 index 85f6502e5a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/radius_server_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RadiusServerDetails RADIUS server is used for ClientVPN authentication only. -type RadiusServerDetails struct { - - // The IP address of the RADIUS server. - ServerIp *string `mandatory:"false" json:"serverIp"` - - // The password is used for RADIUS authentication. - SharedSecret *string `mandatory:"false" json:"sharedSecret"` - - // The port for the authentication of RADIUS service. Default is 1812. - AuthenticationPort *int `mandatory:"false" json:"authenticationPort"` - - // The accounting port is used to access RADIUS service. Moreover, the Accounting Port is only required when RADIUS Accounting is enabled. - AccountingPort *int `mandatory:"false" json:"accountingPort"` -} - -func (m RadiusServerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection.go deleted file mode 100644 index ab76fd9301..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection.go +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemotePeeringConnection A remote peering connection (RPC) is an object on a DRG that lets the VCN that is attached -// to the DRG peer with a VCN in a different region. *Peering* means that the two VCNs can -// communicate using private IP addresses, but without the traffic traversing the internet or -// routing through your on-premises network. For more information, see -// VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type RemotePeeringConnection struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the RPC. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG that this RPC belongs to. - DrgId *string `mandatory:"true" json:"drgId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the RPC. - Id *string `mandatory:"true" json:"id"` - - // Whether the VCN at the other end of the peering is in a different tenancy. - // Example: `false` - IsCrossTenancyPeering *bool `mandatory:"true" json:"isCrossTenancyPeering"` - - // The RPC's current lifecycle state. - LifecycleState RemotePeeringConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Whether the RPC is peered with another RPC. `NEW` means the RPC has not yet been - // peered. `PENDING` means the peering is being established. `REVOKED` means the - // RPC at the other end of the peering has been deleted. - PeeringStatus RemotePeeringConnectionPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` - - // The date and time the RPC was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // If this RPC is peered, this value is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other RPC. - PeerId *string `mandatory:"false" json:"peerId"` - - // If this RPC is peered, this value is the region that contains the other RPC. - // Example: `us-ashburn-1` - PeerRegionName *string `mandatory:"false" json:"peerRegionName"` - - // If this RPC is peered, this value is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other RPC's tenancy. - PeerTenancyId *string `mandatory:"false" json:"peerTenancyId"` -} - -func (m RemotePeeringConnection) String() string { - return common.PointerString(m) -} - -// RemotePeeringConnectionLifecycleStateEnum Enum with underlying type: string -type RemotePeeringConnectionLifecycleStateEnum string - -// Set of constants representing the allowable values for RemotePeeringConnectionLifecycleStateEnum -const ( - RemotePeeringConnectionLifecycleStateAvailable RemotePeeringConnectionLifecycleStateEnum = "AVAILABLE" - RemotePeeringConnectionLifecycleStateProvisioning RemotePeeringConnectionLifecycleStateEnum = "PROVISIONING" - RemotePeeringConnectionLifecycleStateTerminating RemotePeeringConnectionLifecycleStateEnum = "TERMINATING" - RemotePeeringConnectionLifecycleStateTerminated RemotePeeringConnectionLifecycleStateEnum = "TERMINATED" -) - -var mappingRemotePeeringConnectionLifecycleState = map[string]RemotePeeringConnectionLifecycleStateEnum{ - "AVAILABLE": RemotePeeringConnectionLifecycleStateAvailable, - "PROVISIONING": RemotePeeringConnectionLifecycleStateProvisioning, - "TERMINATING": RemotePeeringConnectionLifecycleStateTerminating, - "TERMINATED": RemotePeeringConnectionLifecycleStateTerminated, -} - -// GetRemotePeeringConnectionLifecycleStateEnumValues Enumerates the set of values for RemotePeeringConnectionLifecycleStateEnum -func GetRemotePeeringConnectionLifecycleStateEnumValues() []RemotePeeringConnectionLifecycleStateEnum { - values := make([]RemotePeeringConnectionLifecycleStateEnum, 0) - for _, v := range mappingRemotePeeringConnectionLifecycleState { - values = append(values, v) - } - return values -} - -// RemotePeeringConnectionPeeringStatusEnum Enum with underlying type: string -type RemotePeeringConnectionPeeringStatusEnum string - -// Set of constants representing the allowable values for RemotePeeringConnectionPeeringStatusEnum -const ( - RemotePeeringConnectionPeeringStatusInvalid RemotePeeringConnectionPeeringStatusEnum = "INVALID" - RemotePeeringConnectionPeeringStatusNew RemotePeeringConnectionPeeringStatusEnum = "NEW" - RemotePeeringConnectionPeeringStatusPending RemotePeeringConnectionPeeringStatusEnum = "PENDING" - RemotePeeringConnectionPeeringStatusPeered RemotePeeringConnectionPeeringStatusEnum = "PEERED" - RemotePeeringConnectionPeeringStatusRevoked RemotePeeringConnectionPeeringStatusEnum = "REVOKED" -) - -var mappingRemotePeeringConnectionPeeringStatus = map[string]RemotePeeringConnectionPeeringStatusEnum{ - "INVALID": RemotePeeringConnectionPeeringStatusInvalid, - "NEW": RemotePeeringConnectionPeeringStatusNew, - "PENDING": RemotePeeringConnectionPeeringStatusPending, - "PEERED": RemotePeeringConnectionPeeringStatusPeered, - "REVOKED": RemotePeeringConnectionPeeringStatusRevoked, -} - -// GetRemotePeeringConnectionPeeringStatusEnumValues Enumerates the set of values for RemotePeeringConnectionPeeringStatusEnum -func GetRemotePeeringConnectionPeeringStatusEnumValues() []RemotePeeringConnectionPeeringStatusEnum { - values := make([]RemotePeeringConnectionPeeringStatusEnum, 0) - for _, v := range mappingRemotePeeringConnectionPeeringStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_create_details.go deleted file mode 100644 index 737e27ba23..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_create_details.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemotePeeringConnectionDrgAttachmentNetworkCreateDetails The representation of RemotePeeringConnectionDrgAttachmentNetworkCreateDetails -type RemotePeeringConnectionDrgAttachmentNetworkCreateDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment that contains the remote peering connection. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The BGP ASN to use for the remote peering connection's route target. - RegionalOciAsn *string `mandatory:"true" json:"regionalOciAsn"` - - // Whether the RPC attachment is for a GFC DRG, indicating the mpls label should be - // allocated from the VC label range. - // Example: `true` - IsGlobalFastConnect *bool `mandatory:"false" json:"isGlobalFastConnect"` -} - -//GetId returns Id -func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) GetId() *string { - return m.Id -} - -func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkCreateDetails RemotePeeringConnectionDrgAttachmentNetworkCreateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkCreateDetails - }{ - "REMOTE_PEERING_CONNECTION", - (MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkCreateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_details.go deleted file mode 100644 index d6cded0097..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remote_peering_connection_drg_attachment_network_details.go +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemotePeeringConnectionDrgAttachmentNetworkDetails Specifies the DRG attachment to another DRG. -type RemotePeeringConnectionDrgAttachmentNetworkDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The remote Oracle Cloud Infrastructure region name. - PeerRegionName *string `mandatory:"false" json:"peerRegionName"` - - // The attachment route target. - PeerAttachmentRouteTarget *string `mandatory:"false" json:"peerAttachmentRouteTarget"` - - // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors - // tagged with the attachment's import route target. - ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` - - // Routes which are exported to the attachment are exported to the route reflectors - // with the route target set to the value of the attachment's export route target. - ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` - - // The MPLS label of the DRG attachment. - MplsLabel *int `mandatory:"false" json:"mplsLabel"` - - // The BGP ASN to use for the IPSec connection's route target. - RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` -} - -//GetId returns Id -func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) GetId() *string { - return m.Id -} - -func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkDetails RemotePeeringConnectionDrgAttachmentNetworkDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkDetails - }{ - "REMOTE_PEERING_CONNECTION", - (MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_details.go deleted file mode 100644 index e4fba8c555..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemoveAdditionalRouteRulesDetails The configuration details for the remove rules operation. Only one of the three properties should be -// supplied to call the removeAdditionalRouteRules API. -type RemoveAdditionalRouteRulesDetails struct { - - // The list of route rule identifiers used for removing route rules from route table. - AdditionalRouteRuleIds []string `mandatory:"false" json:"additionalRouteRuleIds"` - - // The list of destinations used for removing route rules from route table. This is only supplied - // when additionalRouteRuleIds are not provided. - Destinations []string `mandatory:"false" json:"destinations"` - - // The pairs of used for removing route rules from route table. This is only - // supplied when additionalRouteRules and destinations are not provided. - RouteDestinationRouteTargets []RouteDestinationRouteTargetDetails `mandatory:"false" json:"routeDestinationRouteTargets"` -} - -func (m RemoveAdditionalRouteRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_details.go deleted file mode 100644 index 10e80cec29..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemoveDrgRouteDistributionStatementsDetails Details request to remove statements from a route distribution. -type RemoveDrgRouteDistributionStatementsDetails struct { - - // The Oracle-assigned ID of each route distribution to remove. - StatementIds []string `mandatory:"false" json:"statementIds"` -} - -func (m RemoveDrgRouteDistributionStatementsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_details.go deleted file mode 100644 index b4755a34c2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemoveDrgRouteRulesDetails Details used in a request to remove static routes from a DRG route table. -type RemoveDrgRouteRulesDetails struct { - - // The Oracle-assigned ID of each DRG route rule to be deleted. - RouteRuleIds []string `mandatory:"false" json:"routeRuleIds"` -} - -func (m RemoveDrgRouteRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_details.go deleted file mode 100644 index d6861e82e2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemoveNetworkSecurityGroupSecurityRulesDetails The representation of RemoveNetworkSecurityGroupSecurityRulesDetails -type RemoveNetworkSecurityGroupSecurityRulesDetails struct { - - // The Oracle-assigned ID of each SecurityRule to be deleted. - SecurityRuleIds []string `mandatory:"false" json:"securityRuleIds"` -} - -func (m RemoveNetworkSecurityGroupSecurityRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_details.go deleted file mode 100644 index 348949a8f9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemovePublicIpPoolCapacityDetails The information needed to remove capacity from a public IP pool. -type RemovePublicIpPoolCapacityDetails struct { - - // The CIDR block to remove from the public IP pool. - // Example: `10.0.1.0/24` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` -} - -func (m RemovePublicIpPoolCapacityDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_details.go deleted file mode 100644 index 55f3c5ae46..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RemoveVcnCidrDetails Details for removing a CIDR block from a VCN. -type RemoveVcnCidrDetails struct { - - // The CIDR block to remove. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` -} - -func (m RemoveVcnCidrDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_configuration.go deleted file mode 100644 index d752fcc928..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_configuration.go +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReverseConnectionConfiguration Reverse connection configuration details for the private endpoint. -// When reverse connection support is enabled, the private endpoint allows reverse connections to be -// established to the customer VCN. The packets traveling from the service's VCN to the customer's -// VCN in a reverse connection use a different source IP address than the private endpoint's IP address. -type ReverseConnectionConfiguration struct { - - // The reverse connection configuration's current state. - LifecycleState ReverseConnectionConfigurationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The list of IP addresses in the customer VCN to be used as a source IP for reverse connection packets - // traveling from the service's VCN to the customer's VCN. - ReverseConnectionsSourceIps []ReverseConnectionsSourceIpDetails `mandatory:"false" json:"reverseConnectionsSourceIps"` - - // Whether a DNS proxy is configured for the reverse connection. If the service - // does not intend to use DNS FQDN to communicate to customer endpoints, set this to `false`. - // Example: `false` - IsProxyEnabled *bool `mandatory:"false" json:"isProxyEnabled"` - - // List of proxies to be spawned for this reverse connection. All proxy types specified in - // this list will be spawned and they will use the proxy IP address. - // If not specified, the field will default back to a list with DNS proxy only. - ProxyType []ReverseConnectionConfigurationProxyTypeEnum `mandatory:"false" json:"proxyType,omitempty"` - - // The IP address in the service VCN to be used to reach the reverse connection - // proxies - DNS/SCAN. - ProxyIp *string `mandatory:"false" json:"proxyIp"` - - // The IP address in the service VCN to be used to reach the reverse connection - // proxies - DNS/SCAN. - // This field will be deprecated in favor of proxyIp in future. - DnsProxyIp *string `mandatory:"false" json:"dnsProxyIp"` - - // The context in which the DNS proxy will resolve the DNS queries. The default is `SERVICE`. - // For example: if the service does not know the specific DNS zones for the customer VCNs, set - // this to `CUSTOMER`, and set `excludedDnsZones` to the list of DNS zones in your service - // provider VCN. - // Allowed values: - // * `SERVICE` : All DNS queries will be resolved within the service VCN's DNS context, - // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. - // * `CUSTOMER` : All DNS queries will be resolved within the customer VCN's DNS context, - // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. - DefaultDnsResolutionContext ReverseConnectionConfigurationDefaultDnsResolutionContextEnum `mandatory:"false" json:"defaultDnsResolutionContext,omitempty"` - - // List of DNS zones to exclude from the default DNS resolution context. - ExcludedDnsZones []string `mandatory:"false" json:"excludedDnsZones"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service's subnet where - // the DNS proxy endpoint will be created. - ServiceSubnetId *string `mandatory:"false" json:"serviceSubnetId"` - - // A list of the OCIDs of the network security groups that the reverse connection's VNIC belongs to. - // For more information about NSGs, see - // NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Number of customer endpoints that the service provider expects to establish connections to using this RCE. The default is 0. - // When non-zero value is specified, reverse connection configuration will be allocated with a list of CIDRs, from - // which NAT IP addresses will be allocated. These list of CIDRs will not be shared by other reverse - // connection enabled private endpoints. - // When zero is specified, reverse connection configuration will get NAT IP addresses from common pool of CIDRs, - // which will be shared with other reverse connection enabled private endpoints. - // If the private endpoint was enabled with reverse connection with 0 already, the field is not updatable. - // The size may not be updated with smaller number than previously specified value, but may be increased. - CustomerEndpointsSize *int `mandatory:"false" json:"customerEndpointsSize"` - - // List of CIDRs that this reverse connection configuration will allocate the NAT IP addresses from. - // CIDRs on this list is guaranteed to be not shared by other reverse connection enabled private endpoints. - ReverseConnectionNatIpCidrs []string `mandatory:"false" json:"reverseConnectionNatIpCidrs"` - - // Layer 4 transport protocol to be used when resolving DNS queries within the default DNS resolution context. - DefaultDnsContextTransport ReverseConnectionConfigurationDefaultDnsContextTransportEnum `mandatory:"false" json:"defaultDnsContextTransport,omitempty"` - - // Whether the reverse connection should be configured with single IP. If the service - // does not intend to use single IP for both forward and reverse connection, set this to `false`. - // Example: `false` - IsSingleIpEnabled *bool `mandatory:"false" json:"isSingleIpEnabled"` -} - -func (m ReverseConnectionConfiguration) String() string { - return common.PointerString(m) -} - -// ReverseConnectionConfigurationLifecycleStateEnum Enum with underlying type: string -type ReverseConnectionConfigurationLifecycleStateEnum string - -// Set of constants representing the allowable values for ReverseConnectionConfigurationLifecycleStateEnum -const ( - ReverseConnectionConfigurationLifecycleStateProvisioning ReverseConnectionConfigurationLifecycleStateEnum = "PROVISIONING" - ReverseConnectionConfigurationLifecycleStateAvailable ReverseConnectionConfigurationLifecycleStateEnum = "AVAILABLE" - ReverseConnectionConfigurationLifecycleStateUpdating ReverseConnectionConfigurationLifecycleStateEnum = "UPDATING" - ReverseConnectionConfigurationLifecycleStateTerminating ReverseConnectionConfigurationLifecycleStateEnum = "TERMINATING" - ReverseConnectionConfigurationLifecycleStateTerminated ReverseConnectionConfigurationLifecycleStateEnum = "TERMINATED" - ReverseConnectionConfigurationLifecycleStateFailed ReverseConnectionConfigurationLifecycleStateEnum = "FAILED" -) - -var mappingReverseConnectionConfigurationLifecycleState = map[string]ReverseConnectionConfigurationLifecycleStateEnum{ - "PROVISIONING": ReverseConnectionConfigurationLifecycleStateProvisioning, - "AVAILABLE": ReverseConnectionConfigurationLifecycleStateAvailable, - "UPDATING": ReverseConnectionConfigurationLifecycleStateUpdating, - "TERMINATING": ReverseConnectionConfigurationLifecycleStateTerminating, - "TERMINATED": ReverseConnectionConfigurationLifecycleStateTerminated, - "FAILED": ReverseConnectionConfigurationLifecycleStateFailed, -} - -// GetReverseConnectionConfigurationLifecycleStateEnumValues Enumerates the set of values for ReverseConnectionConfigurationLifecycleStateEnum -func GetReverseConnectionConfigurationLifecycleStateEnumValues() []ReverseConnectionConfigurationLifecycleStateEnum { - values := make([]ReverseConnectionConfigurationLifecycleStateEnum, 0) - for _, v := range mappingReverseConnectionConfigurationLifecycleState { - values = append(values, v) - } - return values -} - -// ReverseConnectionConfigurationProxyTypeEnum Enum with underlying type: string -type ReverseConnectionConfigurationProxyTypeEnum string - -// Set of constants representing the allowable values for ReverseConnectionConfigurationProxyTypeEnum -const ( - ReverseConnectionConfigurationProxyTypeDns ReverseConnectionConfigurationProxyTypeEnum = "DNS" - ReverseConnectionConfigurationProxyTypeScan ReverseConnectionConfigurationProxyTypeEnum = "SCAN" -) - -var mappingReverseConnectionConfigurationProxyType = map[string]ReverseConnectionConfigurationProxyTypeEnum{ - "DNS": ReverseConnectionConfigurationProxyTypeDns, - "SCAN": ReverseConnectionConfigurationProxyTypeScan, -} - -// GetReverseConnectionConfigurationProxyTypeEnumValues Enumerates the set of values for ReverseConnectionConfigurationProxyTypeEnum -func GetReverseConnectionConfigurationProxyTypeEnumValues() []ReverseConnectionConfigurationProxyTypeEnum { - values := make([]ReverseConnectionConfigurationProxyTypeEnum, 0) - for _, v := range mappingReverseConnectionConfigurationProxyType { - values = append(values, v) - } - return values -} - -// ReverseConnectionConfigurationDefaultDnsResolutionContextEnum Enum with underlying type: string -type ReverseConnectionConfigurationDefaultDnsResolutionContextEnum string - -// Set of constants representing the allowable values for ReverseConnectionConfigurationDefaultDnsResolutionContextEnum -const ( - ReverseConnectionConfigurationDefaultDnsResolutionContextService ReverseConnectionConfigurationDefaultDnsResolutionContextEnum = "SERVICE" - ReverseConnectionConfigurationDefaultDnsResolutionContextCustomer ReverseConnectionConfigurationDefaultDnsResolutionContextEnum = "CUSTOMER" -) - -var mappingReverseConnectionConfigurationDefaultDnsResolutionContext = map[string]ReverseConnectionConfigurationDefaultDnsResolutionContextEnum{ - "SERVICE": ReverseConnectionConfigurationDefaultDnsResolutionContextService, - "CUSTOMER": ReverseConnectionConfigurationDefaultDnsResolutionContextCustomer, -} - -// GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumValues Enumerates the set of values for ReverseConnectionConfigurationDefaultDnsResolutionContextEnum -func GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumValues() []ReverseConnectionConfigurationDefaultDnsResolutionContextEnum { - values := make([]ReverseConnectionConfigurationDefaultDnsResolutionContextEnum, 0) - for _, v := range mappingReverseConnectionConfigurationDefaultDnsResolutionContext { - values = append(values, v) - } - return values -} - -// ReverseConnectionConfigurationDefaultDnsContextTransportEnum Enum with underlying type: string -type ReverseConnectionConfigurationDefaultDnsContextTransportEnum string - -// Set of constants representing the allowable values for ReverseConnectionConfigurationDefaultDnsContextTransportEnum -const ( - ReverseConnectionConfigurationDefaultDnsContextTransportTcp ReverseConnectionConfigurationDefaultDnsContextTransportEnum = "TCP" - ReverseConnectionConfigurationDefaultDnsContextTransportUdp ReverseConnectionConfigurationDefaultDnsContextTransportEnum = "UDP" -) - -var mappingReverseConnectionConfigurationDefaultDnsContextTransport = map[string]ReverseConnectionConfigurationDefaultDnsContextTransportEnum{ - "TCP": ReverseConnectionConfigurationDefaultDnsContextTransportTcp, - "UDP": ReverseConnectionConfigurationDefaultDnsContextTransportUdp, -} - -// GetReverseConnectionConfigurationDefaultDnsContextTransportEnumValues Enumerates the set of values for ReverseConnectionConfigurationDefaultDnsContextTransportEnum -func GetReverseConnectionConfigurationDefaultDnsContextTransportEnumValues() []ReverseConnectionConfigurationDefaultDnsContextTransportEnum { - values := make([]ReverseConnectionConfigurationDefaultDnsContextTransportEnum, 0) - for _, v := range mappingReverseConnectionConfigurationDefaultDnsContextTransport { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip.go deleted file mode 100644 index 24d22677ab..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReverseConnectionNatIp The current NAT IP address that corresponds to a specific customer IP address. -// To establish a reverse connection to a customer IP address, use the NAT IP -// address as the destination. -type ReverseConnectionNatIp struct { - - // The reverse connection NAT IP's current state. - LifecycleState ReverseConnectionNatIpLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the reverse connection NAT IP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The customer's IP address that corresponds to the reverse connection NAT IP address. - ReverseConnectionCustomerIp *string `mandatory:"true" json:"reverseConnectionCustomerIp"` - - // The reverse connection NAT IP address corresonding to the customer IP and private endpoint. - // Use this address as the destination when establishing a reverse connection to a customer's - // IP address. - ReverseConnectionNatIp *string `mandatory:"true" json:"reverseConnectionNatIp"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint - // associated with the reverse connection. - PrivateEndpointId *string `mandatory:"true" json:"privateEndpointId"` -} - -func (m ReverseConnectionNatIp) String() string { - return common.PointerString(m) -} - -// ReverseConnectionNatIpLifecycleStateEnum Enum with underlying type: string -type ReverseConnectionNatIpLifecycleStateEnum string - -// Set of constants representing the allowable values for ReverseConnectionNatIpLifecycleStateEnum -const ( - ReverseConnectionNatIpLifecycleStateProvisioning ReverseConnectionNatIpLifecycleStateEnum = "PROVISIONING" - ReverseConnectionNatIpLifecycleStateAvailable ReverseConnectionNatIpLifecycleStateEnum = "AVAILABLE" - ReverseConnectionNatIpLifecycleStateTerminating ReverseConnectionNatIpLifecycleStateEnum = "TERMINATING" - ReverseConnectionNatIpLifecycleStateTerminated ReverseConnectionNatIpLifecycleStateEnum = "TERMINATED" -) - -var mappingReverseConnectionNatIpLifecycleState = map[string]ReverseConnectionNatIpLifecycleStateEnum{ - "PROVISIONING": ReverseConnectionNatIpLifecycleStateProvisioning, - "AVAILABLE": ReverseConnectionNatIpLifecycleStateAvailable, - "TERMINATING": ReverseConnectionNatIpLifecycleStateTerminating, - "TERMINATED": ReverseConnectionNatIpLifecycleStateTerminated, -} - -// GetReverseConnectionNatIpLifecycleStateEnumValues Enumerates the set of values for ReverseConnectionNatIpLifecycleStateEnum -func GetReverseConnectionNatIpLifecycleStateEnumValues() []ReverseConnectionNatIpLifecycleStateEnum { - values := make([]ReverseConnectionNatIpLifecycleStateEnum, 0) - for _, v := range mappingReverseConnectionNatIpLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip_cidr_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip_cidr_summary.go deleted file mode 100644 index 98856f4f26..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connection_nat_ip_cidr_summary.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReverseConnectionNatIpCidrSummary The custom CIDR in the VCN. -type ReverseConnectionNatIpCidrSummary struct { - - // The custom CIDR that Service Provider used to provision Reverse Connection - Cidr *string `mandatory:"true" json:"cidr"` -} - -func (m ReverseConnectionNatIpCidrSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connections_source_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connections_source_ip_details.go deleted file mode 100644 index 8ebca25aaa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/reverse_connections_source_ip_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReverseConnectionsSourceIpDetails IP information for reverse connection configuration. Returned as part of the `PrivateEndpoint` object. -type ReverseConnectionsSourceIpDetails struct { - - // The IP address in the customer's VCN to be used as the source IP for reverse connection packets - // traveling from the customer's VCN to the service's VCN. - // Example: `10.0.4.9` - SourceIp *string `mandatory:"false" json:"sourceIp"` -} - -func (m ReverseConnectionsSourceIpDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration.go deleted file mode 100644 index 4b51d95afc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RollbackDrgMigration Response from Drg Migration API -type RollbackDrgMigration struct { - - // The count of succesfully migrated DRGS from the batch. - SuccessCount *int `mandatory:"true" json:"successCount"` - - // The count of failed during DRGS during migration from the batch. - FailureCount *int `mandatory:"false" json:"failureCount"` - - // The OCIDs of the drgs which were successfully migrated. - SuccessfulDrgIds []string `mandatory:"false" json:"successfulDrgIds"` - - // The OCIDs of the drgs which were failed during migration. - FailedDrgIds []string `mandatory:"false" json:"failedDrgIds"` -} - -func (m RollbackDrgMigration) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_details.go deleted file mode 100644 index 697ed4fc44..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RollbackDrgMigrationDetails Request object to Drg Migration API -type RollbackDrgMigrationDetails struct { - - // The size of migration batch. - BatchSize *int `mandatory:"true" json:"batchSize"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) DRG to migrate. - DrgId *string `mandatory:"false" json:"drgId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy to contain the DRG. - TenancyId *string `mandatory:"false" json:"tenancyId"` -} - -func (m RollbackDrgMigrationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/route_destination_route_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/route_destination_route_target_details.go deleted file mode 100644 index b2f5285878..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/route_destination_route_target_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RouteDestinationRouteTargetDetails The configuration details for the destination target pair used to call remove route rules. -type RouteDestinationRouteTargetDetails struct { - - // The destination of the route rule. - Destination *string `mandatory:"true" json:"destination"` - - // The target of the route rule. - Target *string `mandatory:"true" json:"target"` -} - -func (m RouteDestinationRouteTargetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/route_rule.go deleted file mode 100644 index 4b393ccb60..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/route_rule.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RouteRule A mapping between a destination IP address range and a virtual device to route matching -// packets to (a target). -type RouteRule struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the route rule's target. For information about the type of - // targets you can specify, see - // Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). - NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` - - // Deprecated. Instead use `destination` and `destinationType`. Requests that include both - // `cidrBlock` and `destination` will be rejected. - // A destination IP address range in CIDR notation. Matching packets will - // be routed to the indicated network entity (the target). - // Cannot be an IPv6 CIDR. - // Example: `0.0.0.0/0` - CidrBlock *string `mandatory:"false" json:"cidrBlock"` - - // Conceptually, this is the range of IP addresses used for matching when routing - // traffic. Required if you provide a `destinationType`. - // Allowed values: - // * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` - // or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target - // can only be a DRG or internet gateway. - // IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a route rule for traffic destined for a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - Destination *string `mandatory:"false" json:"destination"` - - // Type of destination for the rule. Required if you provide a `destination`. - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - DestinationType RouteRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - // An optional description of your choice for the rule. - Description *string `mandatory:"false" json:"description"` -} - -func (m RouteRule) String() string { - return common.PointerString(m) -} - -// RouteRuleDestinationTypeEnum Enum with underlying type: string -type RouteRuleDestinationTypeEnum string - -// Set of constants representing the allowable values for RouteRuleDestinationTypeEnum -const ( - RouteRuleDestinationTypeCidrBlock RouteRuleDestinationTypeEnum = "CIDR_BLOCK" - RouteRuleDestinationTypeServiceCidrBlock RouteRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" -) - -var mappingRouteRuleDestinationType = map[string]RouteRuleDestinationTypeEnum{ - "CIDR_BLOCK": RouteRuleDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": RouteRuleDestinationTypeServiceCidrBlock, -} - -// GetRouteRuleDestinationTypeEnumValues Enumerates the set of values for RouteRuleDestinationTypeEnum -func GetRouteRuleDestinationTypeEnumValues() []RouteRuleDestinationTypeEnum { - values := make([]RouteRuleDestinationTypeEnum, 0) - for _, v := range mappingRouteRuleDestinationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/route_table.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/route_table.go deleted file mode 100644 index c7e686fa6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/route_table.go +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RouteTable A collection of `RouteRule` objects, which are used to route packets -// based on destination IP to a particular network entity. For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type RouteTable struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the route table. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The route table's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The route table's current state. - LifecycleState RouteTableLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The collection of rules for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"true" json:"routeRules"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN the route table list belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The date and time the route table was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Indicates whether or not ECMP is enabled on the route table. - IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` -} - -func (m RouteTable) String() string { - return common.PointerString(m) -} - -// RouteTableLifecycleStateEnum Enum with underlying type: string -type RouteTableLifecycleStateEnum string - -// Set of constants representing the allowable values for RouteTableLifecycleStateEnum -const ( - RouteTableLifecycleStateProvisioning RouteTableLifecycleStateEnum = "PROVISIONING" - RouteTableLifecycleStateAvailable RouteTableLifecycleStateEnum = "AVAILABLE" - RouteTableLifecycleStateTerminating RouteTableLifecycleStateEnum = "TERMINATING" - RouteTableLifecycleStateTerminated RouteTableLifecycleStateEnum = "TERMINATED" -) - -var mappingRouteTableLifecycleState = map[string]RouteTableLifecycleStateEnum{ - "PROVISIONING": RouteTableLifecycleStateProvisioning, - "AVAILABLE": RouteTableLifecycleStateAvailable, - "TERMINATING": RouteTableLifecycleStateTerminating, - "TERMINATED": RouteTableLifecycleStateTerminated, -} - -// GetRouteTableLifecycleStateEnumValues Enumerates the set of values for RouteTableLifecycleStateEnum -func GetRouteTableLifecycleStateEnumValues() []RouteTableLifecycleStateEnum { - values := make([]RouteTableLifecycleStateEnum, 0) - for _, v := range mappingRouteTableLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_listener_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_listener_info.go deleted file mode 100644 index 01807f5080..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_listener_info.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ScanListenerInfo Customer's Real Application Cluster (RAC)'s SCAN listener FQDN,port or list IPs and their -// ports -type ScanListenerInfo struct { - - // FQDN of the customer's Real Application Cluster (RAC)'s SCAN listeners. - ScanListenerFqdn *string `mandatory:"false" json:"scanListenerFqdn"` - - // A SCAN listener's IP of the customer's Real Application Cluster (RAC). - ScanListenerIp *string `mandatory:"false" json:"scanListenerIp"` - - // The port that customer's Real Application Cluster (RAC)'s SCAN listeners are listening on. - ScanListenerPort *int `mandatory:"false" json:"scanListenerPort"` -} - -func (m ScanListenerInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy.go deleted file mode 100644 index 98f8421da6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy.go +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ScanProxy Details pertaining to a scan proxy instance created for a scan listener FQDN/IPs -type ScanProxy struct { - - // An Oracle-assigned unique identifier for a scanProxy within a privateEndpoint. You specify - // this ID when you want to get or update or delete a scanProxy - Id *string `mandatory:"true" json:"id"` - - // Type indicating whether Scan listener is specified by its FQDN or list of IPs - ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"true" json:"scanListenerType"` - - // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN - // listeners. - ScanListenerInfo []ScanListenerInfo `mandatory:"true" json:"scanListenerInfo"` - - // The port to which service DB client has to connect on scan proxy to initiate scan - // connections. - ScanProxyPort *int `mandatory:"true" json:"scanProxyPort"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint - // associated with the reverse connection. - PrivateEndpointId *string `mandatory:"true" json:"privateEndpointId"` - - // The protocol used for communication between client, scanProxy and RAC's scan - // listeners - Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` - - // The scan proxy instance's current state. - LifecycleState ScanProxyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the scan proxy instance was created, in the format defined - // by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` -} - -func (m ScanProxy) String() string { - return common.PointerString(m) -} - -// ScanProxyScanListenerTypeEnum Enum with underlying type: string -type ScanProxyScanListenerTypeEnum string - -// Set of constants representing the allowable values for ScanProxyScanListenerTypeEnum -const ( - ScanProxyScanListenerTypeFqdn ScanProxyScanListenerTypeEnum = "FQDN" - ScanProxyScanListenerTypeIp ScanProxyScanListenerTypeEnum = "IP" -) - -var mappingScanProxyScanListenerType = map[string]ScanProxyScanListenerTypeEnum{ - "FQDN": ScanProxyScanListenerTypeFqdn, - "IP": ScanProxyScanListenerTypeIp, -} - -// GetScanProxyScanListenerTypeEnumValues Enumerates the set of values for ScanProxyScanListenerTypeEnum -func GetScanProxyScanListenerTypeEnumValues() []ScanProxyScanListenerTypeEnum { - values := make([]ScanProxyScanListenerTypeEnum, 0) - for _, v := range mappingScanProxyScanListenerType { - values = append(values, v) - } - return values -} - -// ScanProxyProtocolEnum Enum with underlying type: string -type ScanProxyProtocolEnum string - -// Set of constants representing the allowable values for ScanProxyProtocolEnum -const ( - ScanProxyProtocolTcp ScanProxyProtocolEnum = "TCP" - ScanProxyProtocolTcps ScanProxyProtocolEnum = "TCPS" -) - -var mappingScanProxyProtocol = map[string]ScanProxyProtocolEnum{ - "TCP": ScanProxyProtocolTcp, - "TCPS": ScanProxyProtocolTcps, -} - -// GetScanProxyProtocolEnumValues Enumerates the set of values for ScanProxyProtocolEnum -func GetScanProxyProtocolEnumValues() []ScanProxyProtocolEnum { - values := make([]ScanProxyProtocolEnum, 0) - for _, v := range mappingScanProxyProtocol { - values = append(values, v) - } - return values -} - -// ScanProxyLifecycleStateEnum Enum with underlying type: string -type ScanProxyLifecycleStateEnum string - -// Set of constants representing the allowable values for ScanProxyLifecycleStateEnum -const ( - ScanProxyLifecycleStateProvisioning ScanProxyLifecycleStateEnum = "PROVISIONING" - ScanProxyLifecycleStateAvailable ScanProxyLifecycleStateEnum = "AVAILABLE" - ScanProxyLifecycleStateUpdating ScanProxyLifecycleStateEnum = "UPDATING" - ScanProxyLifecycleStateTerminating ScanProxyLifecycleStateEnum = "TERMINATING" - ScanProxyLifecycleStateTerminated ScanProxyLifecycleStateEnum = "TERMINATED" - ScanProxyLifecycleStateFailed ScanProxyLifecycleStateEnum = "FAILED" -) - -var mappingScanProxyLifecycleState = map[string]ScanProxyLifecycleStateEnum{ - "PROVISIONING": ScanProxyLifecycleStateProvisioning, - "AVAILABLE": ScanProxyLifecycleStateAvailable, - "UPDATING": ScanProxyLifecycleStateUpdating, - "TERMINATING": ScanProxyLifecycleStateTerminating, - "TERMINATED": ScanProxyLifecycleStateTerminated, - "FAILED": ScanProxyLifecycleStateFailed, -} - -// GetScanProxyLifecycleStateEnumValues Enumerates the set of values for ScanProxyLifecycleStateEnum -func GetScanProxyLifecycleStateEnumValues() []ScanProxyLifecycleStateEnum { - values := make([]ScanProxyLifecycleStateEnum, 0) - for _, v := range mappingScanProxyLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy_summary.go deleted file mode 100644 index f75f8e5b66..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/scan_proxy_summary.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ScanProxySummary A summary of scan proxy information. This object is returned when listing scan proxies of a -// private endpoint. -type ScanProxySummary struct { - - // An Oracle-assigned unique identifier for a scanProxy within a privateEndpoint. You specify - // this ID when you want to get or update or delete a scan ListScanProxiesProxy - Id *string `mandatory:"true" json:"id"` - - // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN - // listeners. - ScanListenerInfo []ScanListenerInfo `mandatory:"true" json:"scanListenerInfo"` - - // The port to which service DB client has to connect on scan proxy to initiate scan - // connections. - ScanProxyPort *int `mandatory:"true" json:"scanProxyPort"` - - // Type indicating whether Scan listener is specified by its FQDN or list of IPs - ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"false" json:"scanListenerType,omitempty"` - - // The protocol used for communication between client, scanProxy and RAC's scan - // listeners - Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` - - ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` - - // The scan proxy instance's current state. - LifecycleState ScanProxyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m ScanProxySummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/security_list.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/security_list.go deleted file mode 100644 index 5b462cd712..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/security_list.go +++ /dev/null @@ -1,103 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SecurityList A set of virtual firewall rules for your VCN. Security lists are configured at the subnet -// level, but the rules are applied to the ingress and egress traffic for the individual instances -// in the subnet. The rules can be stateful or stateless. For more information, see -// Security Lists (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). -// **Note:** Compare security lists to NetworkSecurityGroups, -// which let you apply a set of security rules to a *specific set of VNICs* instead of an entire -// subnet. Oracle recommends using network security groups instead of security lists, although you -// can use either or both together. -// **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, -// Linux iptables, Windows firewall). If there are issues with some type of access to an instance, -// make sure both the security lists associated with the instance's subnet and the instance's -// firewall rules are set correctly. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type SecurityList struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the security list. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // Rules for allowing egress IP packets. - EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` - - // The security list's Oracle Cloud ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // Rules for allowing ingress IP packets. - IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` - - // The security list's current state. - LifecycleState SecurityListLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the security list was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the security list belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m SecurityList) String() string { - return common.PointerString(m) -} - -// SecurityListLifecycleStateEnum Enum with underlying type: string -type SecurityListLifecycleStateEnum string - -// Set of constants representing the allowable values for SecurityListLifecycleStateEnum -const ( - SecurityListLifecycleStateProvisioning SecurityListLifecycleStateEnum = "PROVISIONING" - SecurityListLifecycleStateAvailable SecurityListLifecycleStateEnum = "AVAILABLE" - SecurityListLifecycleStateTerminating SecurityListLifecycleStateEnum = "TERMINATING" - SecurityListLifecycleStateTerminated SecurityListLifecycleStateEnum = "TERMINATED" -) - -var mappingSecurityListLifecycleState = map[string]SecurityListLifecycleStateEnum{ - "PROVISIONING": SecurityListLifecycleStateProvisioning, - "AVAILABLE": SecurityListLifecycleStateAvailable, - "TERMINATING": SecurityListLifecycleStateTerminating, - "TERMINATED": SecurityListLifecycleStateTerminated, -} - -// GetSecurityListLifecycleStateEnumValues Enumerates the set of values for SecurityListLifecycleStateEnum -func GetSecurityListLifecycleStateEnumValues() []SecurityListLifecycleStateEnum { - values := make([]SecurityListLifecycleStateEnum, 0) - for _, v := range mappingSecurityListLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/security_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/security_rule.go deleted file mode 100644 index 255b438870..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/security_rule.go +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SecurityRule A security rule is one of the items in a NetworkSecurityGroup. -// It is a virtual firewall rule for the VNICs in the network security group. A rule can be for -// either inbound (`direction`= INGRESS) or outbound (`direction`= EGRESS) IP packets. -type SecurityRule struct { - - // Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, - // or `INGRESS` for rules to allow inbound IP packets. - Direction SecurityRuleDirectionEnum `mandatory:"true" json:"direction"` - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). - Protocol *string `mandatory:"true" json:"protocol"` - - // An optional description of your choice for the rule. - Description *string `mandatory:"false" json:"description"` - - // Conceptually, this is the range of IP addresses that a packet originating from the instance - // can go to. - // Allowed values: - // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security rule for traffic destined for a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same - // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control - // traffic between VNICs in the same NSG. - Destination *string `mandatory:"false" json:"destination"` - - // Type of destination for the rule. Required if `direction` = `EGRESS`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a - // NetworkSecurityGroup. - DestinationType SecurityRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // An Oracle-assigned identifier for the security rule. You specify this ID when you want to - // update or delete the rule. - // Example: `04ABEC` - Id *string `mandatory:"false" json:"id"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if egress traffic allows TCP destination port 80, there should be an ingress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - // Whether the rule is valid. The value is `True` when the rule is first created. If - // the rule's `source` or `destination` is a network security group, the value changes to - // `False` if that network security group is deleted. - IsValid *bool `mandatory:"false" json:"isValid"` - - // Conceptually, this is the range of IP addresses that a packet coming into the instance - // can come from. - // Allowed values: - // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security rule for traffic coming from a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same - // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control - // traffic between VNICs in the same NSG. - Source *string `mandatory:"false" json:"source"` - - // Type of source for the rule. Required if `direction` = `INGRESS`. - // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a - // Service (the rule is for traffic coming from a - // particular `Service` through a service gateway). - // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a - // NetworkSecurityGroup. - SourceType SecurityRuleSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - // The date and time the security rule was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` -} - -func (m SecurityRule) String() string { - return common.PointerString(m) -} - -// SecurityRuleDestinationTypeEnum Enum with underlying type: string -type SecurityRuleDestinationTypeEnum string - -// Set of constants representing the allowable values for SecurityRuleDestinationTypeEnum -const ( - SecurityRuleDestinationTypeCidrBlock SecurityRuleDestinationTypeEnum = "CIDR_BLOCK" - SecurityRuleDestinationTypeServiceCidrBlock SecurityRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" - SecurityRuleDestinationTypeNetworkSecurityGroup SecurityRuleDestinationTypeEnum = "NETWORK_SECURITY_GROUP" -) - -var mappingSecurityRuleDestinationType = map[string]SecurityRuleDestinationTypeEnum{ - "CIDR_BLOCK": SecurityRuleDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": SecurityRuleDestinationTypeServiceCidrBlock, - "NETWORK_SECURITY_GROUP": SecurityRuleDestinationTypeNetworkSecurityGroup, -} - -// GetSecurityRuleDestinationTypeEnumValues Enumerates the set of values for SecurityRuleDestinationTypeEnum -func GetSecurityRuleDestinationTypeEnumValues() []SecurityRuleDestinationTypeEnum { - values := make([]SecurityRuleDestinationTypeEnum, 0) - for _, v := range mappingSecurityRuleDestinationType { - values = append(values, v) - } - return values -} - -// SecurityRuleDirectionEnum Enum with underlying type: string -type SecurityRuleDirectionEnum string - -// Set of constants representing the allowable values for SecurityRuleDirectionEnum -const ( - SecurityRuleDirectionEgress SecurityRuleDirectionEnum = "EGRESS" - SecurityRuleDirectionIngress SecurityRuleDirectionEnum = "INGRESS" -) - -var mappingSecurityRuleDirection = map[string]SecurityRuleDirectionEnum{ - "EGRESS": SecurityRuleDirectionEgress, - "INGRESS": SecurityRuleDirectionIngress, -} - -// GetSecurityRuleDirectionEnumValues Enumerates the set of values for SecurityRuleDirectionEnum -func GetSecurityRuleDirectionEnumValues() []SecurityRuleDirectionEnum { - values := make([]SecurityRuleDirectionEnum, 0) - for _, v := range mappingSecurityRuleDirection { - values = append(values, v) - } - return values -} - -// SecurityRuleSourceTypeEnum Enum with underlying type: string -type SecurityRuleSourceTypeEnum string - -// Set of constants representing the allowable values for SecurityRuleSourceTypeEnum -const ( - SecurityRuleSourceTypeCidrBlock SecurityRuleSourceTypeEnum = "CIDR_BLOCK" - SecurityRuleSourceTypeServiceCidrBlock SecurityRuleSourceTypeEnum = "SERVICE_CIDR_BLOCK" - SecurityRuleSourceTypeNetworkSecurityGroup SecurityRuleSourceTypeEnum = "NETWORK_SECURITY_GROUP" -) - -var mappingSecurityRuleSourceType = map[string]SecurityRuleSourceTypeEnum{ - "CIDR_BLOCK": SecurityRuleSourceTypeCidrBlock, - "SERVICE_CIDR_BLOCK": SecurityRuleSourceTypeServiceCidrBlock, - "NETWORK_SECURITY_GROUP": SecurityRuleSourceTypeNetworkSecurityGroup, -} - -// GetSecurityRuleSourceTypeEnumValues Enumerates the set of values for SecurityRuleSourceTypeEnum -func GetSecurityRuleSourceTypeEnumValues() []SecurityRuleSourceTypeEnum { - values := make([]SecurityRuleSourceTypeEnum, 0) - for _, v := range mappingSecurityRuleSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/service.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/service.go deleted file mode 100644 index bc9c5541b1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/service.go +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Service An object that represents one or multiple Oracle services that you can enable for a -// ServiceGateway. In the User Guide topic -// Access to Oracle Services: Service Gateway (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/servicegateway.htm), the -// term *service CIDR label* is used to refer to the string that represents the regional public -// IP address ranges of the Oracle service or services covered by a given `Service` object. That -// unique string is the value of the `Service` object's `cidrBlock` attribute. -type Service struct { - - // A string that represents the regional public IP address ranges for the Oracle service or - // services covered by this `Service` object. Also known as the `Service` object's *service - // CIDR label*. - // When you set up a route rule to route traffic to the service gateway, use this value as the - // rule's destination. See RouteTable. Also, when you set up - // a security list rule to cover traffic with the service gateway, use the `cidrBlock` value - // as the rule's destination (for an egress rule) or the source (for an ingress rule). - // See SecurityList. - // Example: `oci-phx-objectstorage` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // Description of the Oracle service or services covered by this `Service` object. - // Example: `OCI PHX Object Storage` - Description *string `mandatory:"true" json:"description"` - - // The `Service` object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - Id *string `mandatory:"true" json:"id"` - - // Name of the `Service` object. This name can change and is not guaranteed to be unique. - // Example: `OCI PHX Object Storage` - Name *string `mandatory:"true" json:"name"` -} - -func (m Service) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/service_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/service_gateway.go deleted file mode 100644 index e73741d5a0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/service_gateway.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ServiceGateway Represents a router that lets your VCN privately access specific Oracle services such as Object -// Storage without exposing the VCN to the public internet. Traffic leaving the VCN and destined -// for a supported Oracle service (see ListServices) is -// routed through the service gateway and does not traverse the internet. The instances in the VCN -// do not need to have public IP addresses nor be in a public subnet. The VCN does not need an internet gateway -// for this traffic. For more information, see -// Access to Oracle Services: Service Gateway (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/servicegateway.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type ServiceGateway struct { - - // Whether the service gateway blocks all traffic through it. The default is `false`. When - // this is `true`, traffic is not routed to any services, regardless of route rules. - // Example: `true` - BlockTraffic *bool `mandatory:"true" json:"blockTraffic"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the - // service gateway. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service gateway. - Id *string `mandatory:"true" json:"id"` - - // The service gateway's current state. - LifecycleState ServiceGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // List of the Service objects enabled for this service gateway. - // The list can be empty. You can enable a particular `Service` by using - // AttachServiceId or - // UpdateServiceGateway. - Services []ServiceIdResponseDetails `mandatory:"true" json:"services"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the service gateway - // belongs to. - VcnId *string `mandatory:"true" json:"vcnId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the service gateway is using. - // For information about why you would associate a route table with a service gateway, see - // Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm). - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // The date and time the service gateway was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m ServiceGateway) String() string { - return common.PointerString(m) -} - -// ServiceGatewayLifecycleStateEnum Enum with underlying type: string -type ServiceGatewayLifecycleStateEnum string - -// Set of constants representing the allowable values for ServiceGatewayLifecycleStateEnum -const ( - ServiceGatewayLifecycleStateProvisioning ServiceGatewayLifecycleStateEnum = "PROVISIONING" - ServiceGatewayLifecycleStateAvailable ServiceGatewayLifecycleStateEnum = "AVAILABLE" - ServiceGatewayLifecycleStateTerminating ServiceGatewayLifecycleStateEnum = "TERMINATING" - ServiceGatewayLifecycleStateTerminated ServiceGatewayLifecycleStateEnum = "TERMINATED" -) - -var mappingServiceGatewayLifecycleState = map[string]ServiceGatewayLifecycleStateEnum{ - "PROVISIONING": ServiceGatewayLifecycleStateProvisioning, - "AVAILABLE": ServiceGatewayLifecycleStateAvailable, - "TERMINATING": ServiceGatewayLifecycleStateTerminating, - "TERMINATED": ServiceGatewayLifecycleStateTerminated, -} - -// GetServiceGatewayLifecycleStateEnumValues Enumerates the set of values for ServiceGatewayLifecycleStateEnum -func GetServiceGatewayLifecycleStateEnumValues() []ServiceGatewayLifecycleStateEnum { - values := make([]ServiceGatewayLifecycleStateEnum, 0) - for _, v := range mappingServiceGatewayLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_request_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_request_details.go deleted file mode 100644 index 19120f7523..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_request_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ServiceIdRequestDetails The representation of ServiceIdRequestDetails -type ServiceIdRequestDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Service. - ServiceId *string `mandatory:"true" json:"serviceId"` -} - -func (m ServiceIdRequestDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_response_details.go deleted file mode 100644 index 3fc9a50b4f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/service_id_response_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ServiceIdResponseDetails The representation of ServiceIdResponseDetails -type ServiceIdResponseDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service. - ServiceId *string `mandatory:"true" json:"serviceId"` - - // The name of the service. - ServiceName *string `mandatory:"true" json:"serviceName"` -} - -func (m ServiceIdResponseDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_details.go deleted file mode 100644 index 62a9157768..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_details.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SetDrgPeeringConnectionDetails The representation of SetDrgPeeringConnectionDetails -type SetDrgPeeringConnectionDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The string in the form ASN:rpc_attachment_mplsLabel. - PeerRpcRouteTarget *string `mandatory:"true" json:"peerRpcRouteTarget"` - - // OCI region name to include in the routeData - PeerRegionName *string `mandatory:"true" json:"peerRegionName"` -} - -func (m SetDrgPeeringConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape.go deleted file mode 100644 index 1708e028c4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape.go +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Shape A compute instance shape that can be used in LaunchInstance. -// For more information, see Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm) and -// Compute Shapes (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm). -type Shape struct { - - // The name of the shape. You can enumerate all available shapes by calling - // ListShapes. - Shape *string `mandatory:"true" json:"shape"` - - // The shape's availability domain. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape. - BaselineOcpuUtilizations []ShapeBaselineOcpuUtilizationsEnum `mandatory:"false" json:"baselineOcpuUtilizations,omitempty"` - - // For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to - // baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen. - MinTotalBaselineOcpusRequired *float32 `mandatory:"false" json:"minTotalBaselineOcpusRequired"` - - // A short description of the shape's processor (CPU). - ProcessorDescription *string `mandatory:"false" json:"processorDescription"` - - // The default number of OCPUs available for this shape. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The default amount of memory available for this shape, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` - - // The number of physical network interface card (NIC) ports available for this shape. - NetworkPorts *int `mandatory:"false" json:"networkPorts"` - - // The networking bandwidth available for this shape, in gigabits per second. - NetworkingBandwidthInGbps *float32 `mandatory:"false" json:"networkingBandwidthInGbps"` - - // The maximum number of VNIC attachments available for this shape. - MaxVnicAttachments *int `mandatory:"false" json:"maxVnicAttachments"` - - // The number of GPUs available for this shape. - Gpus *int `mandatory:"false" json:"gpus"` - - // A short description of the graphics processing unit (GPU) available for this shape. - // If the shape does not have any GPUs, this field is `null`. - GpuDescription *string `mandatory:"false" json:"gpuDescription"` - - // The number of local disks available for this shape. - LocalDisks *int `mandatory:"false" json:"localDisks"` - - // The aggregate size of the local disks available for this shape, in gigabytes. - // If the shape does not have any local disks, this field is `null`. - LocalDisksTotalSizeInGBs *float32 `mandatory:"false" json:"localDisksTotalSizeInGBs"` - - // A short description of the local disks available for this shape. - // If the shape does not have any local disks, this field is `null`. - LocalDiskDescription *string `mandatory:"false" json:"localDiskDescription"` - - // The number of networking ports available for the remote direct memory access (RDMA) network between nodes in - // a high performance computing (HPC) cluster network. If the shape does not support cluster networks, this - // value is `0`. - RdmaPorts *int `mandatory:"false" json:"rdmaPorts"` - - // The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in - // gigabits per second. - RdmaBandwidthInGbps *int `mandatory:"false" json:"rdmaBandwidthInGbps"` - - // Whether live migration is supported for this shape. - IsLiveMigrationSupported *bool `mandatory:"false" json:"isLiveMigrationSupported"` - - OcpuOptions *ShapeOcpuOptions `mandatory:"false" json:"ocpuOptions"` - - MemoryOptions *ShapeMemoryOptions `mandatory:"false" json:"memoryOptions"` - - NetworkingBandwidthOptions *ShapeNetworkingBandwidthOptions `mandatory:"false" json:"networkingBandwidthOptions"` - - MaxVnicAttachmentOptions *ShapeMaxVnicAttachmentOptions `mandatory:"false" json:"maxVnicAttachmentOptions"` - - PlatformConfigOptions *ShapePlatformConfigOptions `mandatory:"false" json:"platformConfigOptions"` -} - -func (m Shape) String() string { - return common.PointerString(m) -} - -// ShapeBaselineOcpuUtilizationsEnum Enum with underlying type: string -type ShapeBaselineOcpuUtilizationsEnum string - -// Set of constants representing the allowable values for ShapeBaselineOcpuUtilizationsEnum -const ( - ShapeBaselineOcpuUtilizations8 ShapeBaselineOcpuUtilizationsEnum = "BASELINE_1_8" - ShapeBaselineOcpuUtilizations2 ShapeBaselineOcpuUtilizationsEnum = "BASELINE_1_2" - ShapeBaselineOcpuUtilizations1 ShapeBaselineOcpuUtilizationsEnum = "BASELINE_1_1" -) - -var mappingShapeBaselineOcpuUtilizations = map[string]ShapeBaselineOcpuUtilizationsEnum{ - "BASELINE_1_8": ShapeBaselineOcpuUtilizations8, - "BASELINE_1_2": ShapeBaselineOcpuUtilizations2, - "BASELINE_1_1": ShapeBaselineOcpuUtilizations1, -} - -// GetShapeBaselineOcpuUtilizationsEnumValues Enumerates the set of values for ShapeBaselineOcpuUtilizationsEnum -func GetShapeBaselineOcpuUtilizationsEnumValues() []ShapeBaselineOcpuUtilizationsEnum { - values := make([]ShapeBaselineOcpuUtilizationsEnum, 0) - for _, v := range mappingShapeBaselineOcpuUtilizations { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_max_vnic_attachment_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_max_vnic_attachment_options.go deleted file mode 100644 index 5145e91703..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_max_vnic_attachment_options.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeMaxVnicAttachmentOptions For a flexible shape, the number of VNIC attachments that are available for instances that use this shape. -// If this field is null, then this shape has a fixed maximum number of VNIC attachments equal to `maxVnicAttachments`. -type ShapeMaxVnicAttachmentOptions struct { - - // The lowest maximum value of VNIC attachments. - Min *int `mandatory:"false" json:"min"` - - // The highest maximum value of VNIC attachments. - Max *float32 `mandatory:"false" json:"max"` - - // The default number of VNIC attachments allowed per OCPU. - DefaultPerOcpu *float32 `mandatory:"false" json:"defaultPerOcpu"` -} - -func (m ShapeMaxVnicAttachmentOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_measured_boot_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_measured_boot_options.go deleted file mode 100644 index 610e254ff8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_measured_boot_options.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeMeasuredBootOptions Configuration options for the Measured Boot feature. -type ShapeMeasuredBootOptions struct { - - // Boolean values that indicate whether the Measured Boot feature can be enabled or disabled. - AllowedValues []bool `mandatory:"false" json:"allowedValues"` - - // Whether the Measured Boot feature is enabled by default. - IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` -} - -func (m ShapeMeasuredBootOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_memory_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_memory_options.go deleted file mode 100644 index 523c6244cb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_memory_options.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeMemoryOptions For a flexible shape, the amount of memory available for instances that use this shape. -// If this field is null, then this shape has a fixed amount of memory equivalent to `memoryInGBs`. -type ShapeMemoryOptions struct { - - // The minimum amount of memory, in gigabytes. - MinInGBs *float32 `mandatory:"false" json:"minInGBs"` - - // The maximum amount of memory, in gigabytes. - MaxInGBs *float32 `mandatory:"false" json:"maxInGBs"` - - // The default amount of memory per OCPU available for this shape, in gigabytes. - DefaultPerOcpuInGBs *float32 `mandatory:"false" json:"defaultPerOcpuInGBs"` - - // The minimum amount of memory per OCPU available for this shape, in gigabytes. - MinPerOcpuInGBs *float32 `mandatory:"false" json:"minPerOcpuInGBs"` - - // The maximum amount of memory per OCPU available for this shape, in gigabytes. - MaxPerOcpuInGBs *float32 `mandatory:"false" json:"maxPerOcpuInGBs"` -} - -func (m ShapeMemoryOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_networking_bandwidth_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_networking_bandwidth_options.go deleted file mode 100644 index a8729a3013..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_networking_bandwidth_options.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeNetworkingBandwidthOptions For a flexible shape, the amount of networking bandwidth available for instances that use this shape. -// If this field is null, then this shape has a fixed amount of bandwidth equivalent to `networkingBandwidthInGbps`. -type ShapeNetworkingBandwidthOptions struct { - - // The minimum amount of networking bandwidth, in gigabits per second. - MinInGbps *float32 `mandatory:"false" json:"minInGbps"` - - // The maximum amount of networking bandwidth, in gigabits per second. - MaxInGbps *float32 `mandatory:"false" json:"maxInGbps"` - - // The default amount of networking bandwidth per OCPU, in gigabits per second. - DefaultPerOcpuInGbps *float32 `mandatory:"false" json:"defaultPerOcpuInGbps"` -} - -func (m ShapeNetworkingBandwidthOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_numa_nodes_per_socket_platform_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_numa_nodes_per_socket_platform_options.go deleted file mode 100644 index adc1588a9e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_numa_nodes_per_socket_platform_options.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeNumaNodesPerSocketPlatformOptions Configuration options for NUMA nodes per socket. -type ShapeNumaNodesPerSocketPlatformOptions struct { - - // The supported values for this platform configuration property. - AllowedValues []ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum `mandatory:"false" json:"allowedValues,omitempty"` - - // The default NUMA nodes per socket configuration. - DefaultValue *string `mandatory:"false" json:"defaultValue"` -} - -func (m ShapeNumaNodesPerSocketPlatformOptions) String() string { - return common.PointerString(m) -} - -// ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum Enum with underlying type: string -type ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum string - -// Set of constants representing the allowable values for ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum -const ( - ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps0 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS0" - ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS1" - ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS2" - ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS4" -) - -var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValues = map[string]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum{ - "NPS0": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps0, - "NPS1": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1, - "NPS2": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2, - "NPS4": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4, -} - -// GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumValues Enumerates the set of values for ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum -func GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumValues() []ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum { - values := make([]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum, 0) - for _, v := range mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValues { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_ocpu_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_ocpu_options.go deleted file mode 100644 index f628d71c1f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_ocpu_options.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeOcpuOptions For a flexible shape, the number of OCPUs available for instances that use this shape. -// If this field is null, then this shape has a fixed number of OCPUs equal to `ocpus`. -type ShapeOcpuOptions struct { - - // The minimum number of OCPUs. - Min *float32 `mandatory:"false" json:"min"` - - // The maximum number of OCPUs. - Max *float32 `mandatory:"false" json:"max"` -} - -func (m ShapeOcpuOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_platform_config_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_platform_config_options.go deleted file mode 100644 index cc72319d65..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_platform_config_options.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapePlatformConfigOptions The list of supported platform configuration options for this shape. -type ShapePlatformConfigOptions struct { - - // The type of platform being configured. - Type ShapePlatformConfigOptionsTypeEnum `mandatory:"false" json:"type,omitempty"` - - SecureBootOptions *ShapeSecureBootOptions `mandatory:"false" json:"secureBootOptions"` - - MeasuredBootOptions *ShapeMeasuredBootOptions `mandatory:"false" json:"measuredBootOptions"` - - TrustedPlatformModuleOptions *ShapeTrustedPlatformModuleOptions `mandatory:"false" json:"trustedPlatformModuleOptions"` - - NumaNodesPerSocketPlatformOptions *ShapeNumaNodesPerSocketPlatformOptions `mandatory:"false" json:"numaNodesPerSocketPlatformOptions"` -} - -func (m ShapePlatformConfigOptions) String() string { - return common.PointerString(m) -} - -// ShapePlatformConfigOptionsTypeEnum Enum with underlying type: string -type ShapePlatformConfigOptionsTypeEnum string - -// Set of constants representing the allowable values for ShapePlatformConfigOptionsTypeEnum -const ( - ShapePlatformConfigOptionsTypeAmdMilanBm ShapePlatformConfigOptionsTypeEnum = "AMD_MILAN_BM" - ShapePlatformConfigOptionsTypeAmdRomeBm ShapePlatformConfigOptionsTypeEnum = "AMD_ROME_BM" - ShapePlatformConfigOptionsTypeIntelSkylakeBm ShapePlatformConfigOptionsTypeEnum = "INTEL_SKYLAKE_BM" - ShapePlatformConfigOptionsTypeAmdVm ShapePlatformConfigOptionsTypeEnum = "AMD_VM" - ShapePlatformConfigOptionsTypeIntelVm ShapePlatformConfigOptionsTypeEnum = "INTEL_VM" -) - -var mappingShapePlatformConfigOptionsType = map[string]ShapePlatformConfigOptionsTypeEnum{ - "AMD_MILAN_BM": ShapePlatformConfigOptionsTypeAmdMilanBm, - "AMD_ROME_BM": ShapePlatformConfigOptionsTypeAmdRomeBm, - "INTEL_SKYLAKE_BM": ShapePlatformConfigOptionsTypeIntelSkylakeBm, - "AMD_VM": ShapePlatformConfigOptionsTypeAmdVm, - "INTEL_VM": ShapePlatformConfigOptionsTypeIntelVm, -} - -// GetShapePlatformConfigOptionsTypeEnumValues Enumerates the set of values for ShapePlatformConfigOptionsTypeEnum -func GetShapePlatformConfigOptionsTypeEnumValues() []ShapePlatformConfigOptionsTypeEnum { - values := make([]ShapePlatformConfigOptionsTypeEnum, 0) - for _, v := range mappingShapePlatformConfigOptionsType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_secure_boot_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_secure_boot_options.go deleted file mode 100644 index f1a7c42f87..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_secure_boot_options.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeSecureBootOptions Configuration options for Secure Boot. -type ShapeSecureBootOptions struct { - - // Boolean values that indicate whether Secure Boot can be enabled or disabled. - AllowedValues []bool `mandatory:"false" json:"allowedValues"` - - // Whether Secure Boot is enabled by default. - IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` -} - -func (m ShapeSecureBootOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_trusted_platform_module_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_trusted_platform_module_options.go deleted file mode 100644 index a5001dd2b3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/shape_trusted_platform_module_options.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeTrustedPlatformModuleOptions Configuration options for the Trusted Platform Module (TPM). -type ShapeTrustedPlatformModuleOptions struct { - - // Boolean values that indicate whether the Trusted Platform Module can be enabled or disabled. - AllowedValues []bool `mandatory:"false" json:"allowedValues"` - - // Whether the Trusted Platform Module is enabled by default. - IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` -} - -func (m ShapeTrustedPlatformModuleOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/smart_nic_vnic_attachment_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/smart_nic_vnic_attachment_info.go deleted file mode 100644 index 2fbdb17fd7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/smart_nic_vnic_attachment_info.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SmartNicVnicAttachmentInfo Smart NIC VNIC attachment information -type SmartNicVnicAttachmentInfo struct { - - // Substrate IP address of the smart NIC that the VNIC is attached to - SubstrateIp *string `mandatory:"true" json:"substrateIp"` - - // Slot number assigned to the VNIC on this smart NIC - SlotId *int `mandatory:"true" json:"slotId"` - - // Index of this smart NIC (X7's have two smart NIC NICs) - NicIndex *int `mandatory:"false" json:"nicIndex"` - - // VlanTag assigned to the VNIC on this smart NIC - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // NAT IP assigned to the VNIC on this smart NIC - NatIp *string `mandatory:"false" json:"natIp"` -} - -func (m SmartNicVnicAttachmentInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/ssl_cert_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/ssl_cert_details.go deleted file mode 100644 index 79bb6d8e43..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/ssl_cert_details.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SslCertDetails The encoded SslCert of ClientVpn which is used in LDAP. -type SslCertDetails interface { -} - -type sslcertdetails struct { - JsonData []byte - ContentType string `json:"contentType"` -} - -// UnmarshalJSON unmarshals json -func (m *sslcertdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalersslcertdetails sslcertdetails - s := struct { - Model Unmarshalersslcertdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.ContentType = s.Model.ContentType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *sslcertdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.ContentType { - case "BASE64ENCODED": - mm := Base64SslCertDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m sslcertdetails) String() string { - return common.PointerString(m) -} - -// SslCertDetailsContentTypeEnum Enum with underlying type: string -type SslCertDetailsContentTypeEnum string - -// Set of constants representing the allowable values for SslCertDetailsContentTypeEnum -const ( - SslCertDetailsContentTypeBase64encoded SslCertDetailsContentTypeEnum = "BASE64ENCODED" -) - -var mappingSslCertDetailsContentType = map[string]SslCertDetailsContentTypeEnum{ - "BASE64ENCODED": SslCertDetailsContentTypeBase64encoded, -} - -// GetSslCertDetailsContentTypeEnumValues Enumerates the set of values for SslCertDetailsContentTypeEnum -func GetSslCertDetailsContentTypeEnumValues() []SslCertDetailsContentTypeEnum { - values := make([]SslCertDetailsContentTypeEnum, 0) - for _, v := range mappingSslCertDetailsContentType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/subnet_topology.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/subnet_topology.go deleted file mode 100644 index 2c055776b0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/subnet_topology.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SubnetTopology Defines the representation of a Subnet topology for a VCN. -type SubnetTopology struct { - - // Lists entities comprising the virtual network topology. - Entities []interface{} `mandatory:"true" json:"entities"` - - // Lists relationships between entities in the virtual network topology. - Relationships []TopologyEntityRelationship `mandatory:"true" json:"relationships"` - - // Records when the virtual network topology was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format for date and time. - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Subnet for which the topology is generated. - SubnetId *string `mandatory:"false" json:"subnetId"` -} - -//GetEntities returns Entities -func (m SubnetTopology) GetEntities() []interface{} { - return m.Entities -} - -//GetRelationships returns Relationships -func (m SubnetTopology) GetRelationships() []TopologyEntityRelationship { - return m.Relationships -} - -//GetTimeCreated returns TimeCreated -func (m SubnetTopology) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -func (m SubnetTopology) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m SubnetTopology) MarshalJSON() (buff []byte, e error) { - type MarshalTypeSubnetTopology SubnetTopology - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeSubnetTopology - }{ - "SUBNET", - (MarshalTypeSubnetTopology)(m), - } - - return json.Marshal(&s) -} - -// UnmarshalJSON unmarshals from json -func (m *SubnetTopology) UnmarshalJSON(data []byte) (e error) { - model := struct { - SubnetId *string `json:"subnetId"` - Entities []interface{} `json:"entities"` - Relationships []topologyentityrelationship `json:"relationships"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.SubnetId = model.SubnetId - - m.Entities = make([]interface{}, len(model.Entities)) - for i, n := range model.Entities { - m.Entities[i] = n - } - - m.Relationships = make([]TopologyEntityRelationship, len(model.Relationships)) - for i, n := range model.Relationships { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Relationships[i] = nn.(TopologyEntityRelationship) - } else { - m.Relationships[i] = nil - } - } - - m.TimeCreated = model.TimeCreated - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tcp_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tcp_options.go deleted file mode 100644 index 44fb458b59..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tcp_options.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TcpOptions Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. -// If you specify TCP as the protocol but omit this object, then all destination ports are allowed. -type TcpOptions struct { - DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` - - SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` -} - -func (m TcpOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_preemption_action.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_preemption_action.go deleted file mode 100644 index 5fd9af3641..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_preemption_action.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TerminatePreemptionAction Terminates the preemptible instance when it is interrupted for eviction. -type TerminatePreemptionAction struct { - - // Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated. Defaults to false if not specified. - PreserveBootVolume *bool `mandatory:"false" json:"preserveBootVolume"` -} - -func (m TerminatePreemptionAction) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m TerminatePreemptionAction) MarshalJSON() (buff []byte, e error) { - type MarshalTypeTerminatePreemptionAction TerminatePreemptionAction - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeTerminatePreemptionAction - }{ - "TERMINATE", - (MarshalTypeTerminatePreemptionAction)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology.go deleted file mode 100644 index adfb98e3da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology.go +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Topology Defines the representation of a virtual network topology. -type Topology interface { - - // Lists entities comprising the virtual network topology. - GetEntities() []interface{} - - // Lists relationships between entities in the virtual network topology. - GetRelationships() []TopologyEntityRelationship - - // Records when the virtual network topology was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format for date and time. - GetTimeCreated() *common.SDKTime -} - -type topology struct { - JsonData []byte - Entities []interface{} `mandatory:"true" json:"entities"` - Relationships json.RawMessage `mandatory:"true" json:"relationships"` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *topology) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalertopology topology - s := struct { - Model Unmarshalertopology - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Entities = s.Model.Entities - m.Relationships = s.Model.Relationships - m.TimeCreated = s.Model.TimeCreated - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *topology) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "VCN": - mm := VcnTopology{} - err = json.Unmarshal(data, &mm) - return mm, err - case "NETWORKING": - mm := NetworkingTopology{} - err = json.Unmarshal(data, &mm) - return mm, err - case "SUBNET": - mm := SubnetTopology{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetEntities returns Entities -func (m topology) GetEntities() []interface{} { - return m.Entities -} - -//GetRelationships returns Relationships -func (m topology) GetRelationships() json.RawMessage { - return m.Relationships -} - -//GetTimeCreated returns TimeCreated -func (m topology) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -func (m topology) String() string { - return common.PointerString(m) -} - -// TopologyTypeEnum Enum with underlying type: string -type TopologyTypeEnum string - -// Set of constants representing the allowable values for TopologyTypeEnum -const ( - TopologyTypeNetworking TopologyTypeEnum = "NETWORKING" - TopologyTypeVcn TopologyTypeEnum = "VCN" - TopologyTypeSubnet TopologyTypeEnum = "SUBNET" -) - -var mappingTopologyType = map[string]TopologyTypeEnum{ - "NETWORKING": TopologyTypeNetworking, - "VCN": TopologyTypeVcn, - "SUBNET": TopologyTypeSubnet, -} - -// GetTopologyTypeEnumValues Enumerates the set of values for TopologyTypeEnum -func GetTopologyTypeEnumValues() []TopologyTypeEnum { - values := make([]TopologyTypeEnum, 0) - for _, v := range mappingTopologyType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_entity_relationship.go deleted file mode 100644 index e0a600f576..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_entity_relationship.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TopologyAssociatedWithEntityRelationship Defines the `associatedWith` relationship between virtual network topology entities. An `AssociatedWith` relationship -// is defined when there is no obvious `contains` relationship but entities are still related. -// For example, a DRG is associated with a VCN because a DRG is not managed by VCN but can be -// attached to a VCN. -type TopologyAssociatedWithEntityRelationship struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. - Id1 *string `mandatory:"true" json:"id1"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. - Id2 *string `mandatory:"true" json:"id2"` - - AssociatedWithDetails *TopologyAssociatedWithRelationshipDetails `mandatory:"false" json:"associatedWithDetails"` -} - -//GetId1 returns Id1 -func (m TopologyAssociatedWithEntityRelationship) GetId1() *string { - return m.Id1 -} - -//GetId2 returns Id2 -func (m TopologyAssociatedWithEntityRelationship) GetId2() *string { - return m.Id2 -} - -func (m TopologyAssociatedWithEntityRelationship) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m TopologyAssociatedWithEntityRelationship) MarshalJSON() (buff []byte, e error) { - type MarshalTypeTopologyAssociatedWithEntityRelationship TopologyAssociatedWithEntityRelationship - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeTopologyAssociatedWithEntityRelationship - }{ - "ASSOCIATED_WITH", - (MarshalTypeTopologyAssociatedWithEntityRelationship)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_relationship_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_relationship_details.go deleted file mode 100644 index 1f554ffe52..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_associated_with_relationship_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TopologyAssociatedWithRelationshipDetails Defines association details for a `associatedWith` relationship. -type TopologyAssociatedWithRelationshipDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entities via which the relationship is created. For example an Instance is associated with a Network Security Group via the VnicAttachment and the Vnic. - Via []string `mandatory:"false" json:"via"` -} - -func (m TopologyAssociatedWithRelationshipDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_contains_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_contains_entity_relationship.go deleted file mode 100644 index 8c5fefc60c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_contains_entity_relationship.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TopologyContainsEntityRelationship Defines the `contains` relationship between virtual network topology entities. A `Contains` relationship -// is defined when an entity fully owns, contains or manages another entity. -// For example, a subnet is contained and managed in the scope of a VCN, therefore a VCN has a -// `contains` relationship to a subnet. -type TopologyContainsEntityRelationship struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. - Id1 *string `mandatory:"true" json:"id1"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. - Id2 *string `mandatory:"true" json:"id2"` -} - -//GetId1 returns Id1 -func (m TopologyContainsEntityRelationship) GetId1() *string { - return m.Id1 -} - -//GetId2 returns Id2 -func (m TopologyContainsEntityRelationship) GetId2() *string { - return m.Id2 -} - -func (m TopologyContainsEntityRelationship) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m TopologyContainsEntityRelationship) MarshalJSON() (buff []byte, e error) { - type MarshalTypeTopologyContainsEntityRelationship TopologyContainsEntityRelationship - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeTopologyContainsEntityRelationship - }{ - "CONTAINS", - (MarshalTypeTopologyContainsEntityRelationship)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_entity_relationship.go deleted file mode 100644 index d8059d52b0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_entity_relationship.go +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TopologyEntityRelationship Defines the relationship between Virtual Network topology entities. -type TopologyEntityRelationship interface { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. - GetId1() *string - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. - GetId2() *string -} - -type topologyentityrelationship struct { - JsonData []byte - Id1 *string `mandatory:"true" json:"id1"` - Id2 *string `mandatory:"true" json:"id2"` - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *topologyentityrelationship) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalertopologyentityrelationship topologyentityrelationship - s := struct { - Model Unmarshalertopologyentityrelationship - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Id1 = s.Model.Id1 - m.Id2 = s.Model.Id2 - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *topologyentityrelationship) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "ROUTES_TO": - mm := TopologyRoutesToEntityRelationship{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ASSOCIATED_WITH": - mm := TopologyAssociatedWithEntityRelationship{} - err = json.Unmarshal(data, &mm) - return mm, err - case "CONTAINS": - mm := TopologyContainsEntityRelationship{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetId1 returns Id1 -func (m topologyentityrelationship) GetId1() *string { - return m.Id1 -} - -//GetId2 returns Id2 -func (m topologyentityrelationship) GetId2() *string { - return m.Id2 -} - -func (m topologyentityrelationship) String() string { - return common.PointerString(m) -} - -// TopologyEntityRelationshipTypeEnum Enum with underlying type: string -type TopologyEntityRelationshipTypeEnum string - -// Set of constants representing the allowable values for TopologyEntityRelationshipTypeEnum -const ( - TopologyEntityRelationshipTypeContains TopologyEntityRelationshipTypeEnum = "CONTAINS" - TopologyEntityRelationshipTypeAssociatedWith TopologyEntityRelationshipTypeEnum = "ASSOCIATED_WITH" - TopologyEntityRelationshipTypeRoutesTo TopologyEntityRelationshipTypeEnum = "ROUTES_TO" -) - -var mappingTopologyEntityRelationshipType = map[string]TopologyEntityRelationshipTypeEnum{ - "CONTAINS": TopologyEntityRelationshipTypeContains, - "ASSOCIATED_WITH": TopologyEntityRelationshipTypeAssociatedWith, - "ROUTES_TO": TopologyEntityRelationshipTypeRoutesTo, -} - -// GetTopologyEntityRelationshipTypeEnumValues Enumerates the set of values for TopologyEntityRelationshipTypeEnum -func GetTopologyEntityRelationshipTypeEnumValues() []TopologyEntityRelationshipTypeEnum { - values := make([]TopologyEntityRelationshipTypeEnum, 0) - for _, v := range mappingTopologyEntityRelationshipType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_entity_relationship.go deleted file mode 100644 index d988e205f4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_entity_relationship.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TopologyRoutesToEntityRelationship Defines the `routesTo` relationship between virtual network topology entities. A `RoutesTo` relationship -// is defined when a routing table and a routing rule are used to govern how to route traffic -// from one entity to another. For example, a DRG might have a routing rule to send certain traffic to an LPG. -type TopologyRoutesToEntityRelationship struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. - Id1 *string `mandatory:"true" json:"id1"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. - Id2 *string `mandatory:"true" json:"id2"` - - RouteRuleDetails *TopologyRoutesToRelationshipDetails `mandatory:"true" json:"routeRuleDetails"` -} - -//GetId1 returns Id1 -func (m TopologyRoutesToEntityRelationship) GetId1() *string { - return m.Id1 -} - -//GetId2 returns Id2 -func (m TopologyRoutesToEntityRelationship) GetId2() *string { - return m.Id2 -} - -func (m TopologyRoutesToEntityRelationship) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m TopologyRoutesToEntityRelationship) MarshalJSON() (buff []byte, e error) { - type MarshalTypeTopologyRoutesToEntityRelationship TopologyRoutesToEntityRelationship - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeTopologyRoutesToEntityRelationship - }{ - "ROUTES_TO", - (MarshalTypeTopologyRoutesToEntityRelationship)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_relationship_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_relationship_details.go deleted file mode 100644 index 243f39cf4a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/topology_routes_to_relationship_details.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TopologyRoutesToRelationshipDetails Defines route rule details for a `routesTo` relationship. -type TopologyRoutesToRelationshipDetails struct { - - // The destinationType can be set to one of two values: - // * Use `CIDR_BLOCK` if the rule's `destination` is an IP address range in CIDR notation. - // * Use `SERVICE_CIDR_BLOCK` if the rule's `destination` is the `cidrBlock` value for a Service. - DestinationType *string `mandatory:"true" json:"destinationType"` - - // An IP address range in CIDR notation or the `cidrBlock` value for a Service. - Destination *string `mandatory:"true" json:"destination"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the routing table that contains the route rule. - RouteTableId *string `mandatory:"true" json:"routeTableId"` - - // A route rule can be STATIC if manually added to the Route Table or DYNAMIC if imported from another Route Table: - RouteType TopologyRoutesToRelationshipDetailsRouteTypeEnum `mandatory:"false" json:"routeType,omitempty"` -} - -func (m TopologyRoutesToRelationshipDetails) String() string { - return common.PointerString(m) -} - -// TopologyRoutesToRelationshipDetailsRouteTypeEnum Enum with underlying type: string -type TopologyRoutesToRelationshipDetailsRouteTypeEnum string - -// Set of constants representing the allowable values for TopologyRoutesToRelationshipDetailsRouteTypeEnum -const ( - TopologyRoutesToRelationshipDetailsRouteTypeStatic TopologyRoutesToRelationshipDetailsRouteTypeEnum = "STATIC" - TopologyRoutesToRelationshipDetailsRouteTypeDynamic TopologyRoutesToRelationshipDetailsRouteTypeEnum = "DYNAMIC" -) - -var mappingTopologyRoutesToRelationshipDetailsRouteType = map[string]TopologyRoutesToRelationshipDetailsRouteTypeEnum{ - "STATIC": TopologyRoutesToRelationshipDetailsRouteTypeStatic, - "DYNAMIC": TopologyRoutesToRelationshipDetailsRouteTypeDynamic, -} - -// GetTopologyRoutesToRelationshipDetailsRouteTypeEnumValues Enumerates the set of values for TopologyRoutesToRelationshipDetailsRouteTypeEnum -func GetTopologyRoutesToRelationshipDetailsRouteTypeEnumValues() []TopologyRoutesToRelationshipDetailsRouteTypeEnum { - values := make([]TopologyRoutesToRelationshipDetailsRouteTypeEnum, 0) - for _, v := range mappingTopologyRoutesToRelationshipDetailsRouteType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_config.go deleted file mode 100644 index 78a057ccec..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_config.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelConfig Deprecated. For tunnel information, instead see: -// * IPSecConnectionTunnel -// * IPSecConnectionTunnelSharedSecret -type TunnelConfig struct { - - // The IP address of Oracle's VPN headend. - // Example: `203.0.113.50 ` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The shared secret of the IPSec tunnel. - SharedSecret *string `mandatory:"true" json:"sharedSecret"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m TunnelConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_cpe_device_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_cpe_device_config.go deleted file mode 100644 index fa4edffe69..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_cpe_device_config.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelCpeDeviceConfig The set of CPE configuration answers for the tunnel, which the customer provides in -// UpdateTunnelCpeDeviceConfig. -// The answers correlate to the questions that are specific to the CPE device type (see the -// `parameters` attribute of CpeDeviceShapeDetail). -// See these related operations: -// * GetTunnelCpeDeviceConfig -// * GetTunnelCpeDeviceConfigContent -// * GetIpsecCpeDeviceConfigContent -// * GetCpeDeviceConfigContent -type TunnelCpeDeviceConfig struct { - TunnelCpeDeviceConfigParameter []CpeDeviceConfigAnswer `mandatory:"false" json:"tunnelCpeDeviceConfigParameter"` -} - -func (m TunnelCpeDeviceConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_one_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_one_details.go deleted file mode 100644 index 461c3704da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_one_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelPhaseOneDetails Tunnel Detail Information specific to IKE Phase 1 -type TunnelPhaseOneDetails struct { - - // The total configured lifetime of an IKE security association - Lifetime *int64 `mandatory:"false" json:"lifetime"` - - // The remaining lifetime before rekey - RemainingLifetime *int64 `mandatory:"false" json:"remainingLifetime"` - - // List of proposed Authentication Algorithms - ProposedAuthenticationAlgorithms []string `mandatory:"false" json:"proposedAuthenticationAlgorithms"` - - // The negotiated Authentication Algorithm - NegotiatedAuthenticationAlgorithm *string `mandatory:"false" json:"negotiatedAuthenticationAlgorithm"` - - // List of proposed Encryption Algorithms - ProposedEncryptionAlgorithms []string `mandatory:"false" json:"proposedEncryptionAlgorithms"` - - // The negotiated Encryption Algorithm - NegotiatedEncryptionAlgorithm *string `mandatory:"false" json:"negotiatedEncryptionAlgorithm"` - - // List of proposed DH Groups - ProposedDhGroups []string `mandatory:"false" json:"proposedDhGroups"` - - // The negotiated DH Group - NegotiatedDhGroup *string `mandatory:"false" json:"negotiatedDhGroup"` - - // IKE Phase 1 established - IsIkeEstablished *bool `mandatory:"false" json:"isIkeEstablished"` - - // The date and time we retrieved the remaining lifetime, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - RemainingLifetimeLastRetrieved *common.SDKTime `mandatory:"false" json:"remainingLifetimeLastRetrieved"` -} - -func (m TunnelPhaseOneDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_two_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_two_details.go deleted file mode 100644 index 55177c97ca..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_phase_two_details.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelPhaseTwoDetails Tunnel Detail Information specific to IPSec Phase 2 -type TunnelPhaseTwoDetails struct { - - // The total configured lifetime of an IKE security association - Lifetime *int64 `mandatory:"false" json:"lifetime"` - - // The remaining lifetime before rekey - RemainingLifetime *int64 `mandatory:"false" json:"remainingLifetime"` - - // The inbound Security Parameter Index (SPI) identification tag - InboundToOracleSpi *string `mandatory:"false" json:"inboundToOracleSpi"` - - // The outbound Security Parameter Index (SPI) identification tag - OutboundFromOracleSpi *string `mandatory:"false" json:"outboundFromOracleSpi"` - - // List of supported Phase Two authentication algorithms supported during tunnel negotiation. - ProposedAuthenticationAlgorithms []string `mandatory:"false" json:"proposedAuthenticationAlgorithms"` - - // The negotiated Authentication Algorithm - NegotiatedAuthenticationAlgorithm *string `mandatory:"false" json:"negotiatedAuthenticationAlgorithm"` - - // List of proposed Encryption Algorithms - ProposedEncryptionAlgorithms []string `mandatory:"false" json:"proposedEncryptionAlgorithms"` - - // The negotiated Encryption Algorithm - NegotiatedEncryptionAlgorithm *string `mandatory:"false" json:"negotiatedEncryptionAlgorithm"` - - // Proposed DH Group - ProposedDhGroup *string `mandatory:"false" json:"proposedDhGroup"` - - // The negotiated DH Group - NegotiatedDhGroup *string `mandatory:"false" json:"negotiatedDhGroup"` - - // ESP Phase 2 established - IsEspEstablished *bool `mandatory:"false" json:"isEspEstablished"` - - // Is PFS (perfect forward secrecy) enabled - IsPfsEnabled *bool `mandatory:"false" json:"isPfsEnabled"` - - // The date and time we retrieved the remaining lifetime, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - RemainingLifetimeLastRetrieved *common.SDKTime `mandatory:"false" json:"remainingLifetimeLastRetrieved"` -} - -func (m TunnelPhaseTwoDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_route_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_route_summary.go deleted file mode 100644 index 6016f7261c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_route_summary.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelRouteSummary The routes advertised to the Customer and the routes received from the Customer -type TunnelRouteSummary struct { - - // BGP Network Layer Reachability Information - Prefix *string `mandatory:"false" json:"prefix"` - - // The age of the route - Age *int64 `mandatory:"false" json:"age"` - - // Is this the best route - IsBestPath *bool `mandatory:"false" json:"isBestPath"` - - // List of ASNs in AS Path - AsPath []int `mandatory:"false" json:"asPath"` - - // Route advertiser - Advertiser TunnelRouteSummaryAdvertiserEnum `mandatory:"false" json:"advertiser,omitempty"` -} - -func (m TunnelRouteSummary) String() string { - return common.PointerString(m) -} - -// TunnelRouteSummaryAdvertiserEnum Enum with underlying type: string -type TunnelRouteSummaryAdvertiserEnum string - -// Set of constants representing the allowable values for TunnelRouteSummaryAdvertiserEnum -const ( - TunnelRouteSummaryAdvertiserCustomer TunnelRouteSummaryAdvertiserEnum = "CUSTOMER" - TunnelRouteSummaryAdvertiserOracle TunnelRouteSummaryAdvertiserEnum = "ORACLE" -) - -var mappingTunnelRouteSummaryAdvertiser = map[string]TunnelRouteSummaryAdvertiserEnum{ - "CUSTOMER": TunnelRouteSummaryAdvertiserCustomer, - "ORACLE": TunnelRouteSummaryAdvertiserOracle, -} - -// GetTunnelRouteSummaryAdvertiserEnumValues Enumerates the set of values for TunnelRouteSummaryAdvertiserEnum -func GetTunnelRouteSummaryAdvertiserEnumValues() []TunnelRouteSummaryAdvertiserEnum { - values := make([]TunnelRouteSummaryAdvertiserEnum, 0) - for _, v := range mappingTunnelRouteSummaryAdvertiser { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_security_association_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_security_association_summary.go deleted file mode 100644 index a12f802996..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_security_association_summary.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelSecurityAssociationSummary Detailed Tunnel SA -type TunnelSecurityAssociationSummary struct { - - // IP and mask of the Partner Subnet for Policy Based VPNs or Static Routes - CpeSubnet *string `mandatory:"false" json:"cpeSubnet"` - - // IP and mask of the Local Subnet for Policy Based VPNs or Static Routes - OracleSubnet *string `mandatory:"false" json:"oracleSubnet"` - - // Phase 1 Status of the Tunnel - TunnelSaStatus TunnelSecurityAssociationSummaryTunnelSaStatusEnum `mandatory:"false" json:"tunnelSaStatus,omitempty"` - - // Current state if status is not up, including phase1/phase2 and possible reason for tunnel not up - TunnelSaErrorInfo *string `mandatory:"false" json:"tunnelSaErrorInfo"` - - // Seconds in current state - Time *string `mandatory:"false" json:"time"` -} - -func (m TunnelSecurityAssociationSummary) String() string { - return common.PointerString(m) -} - -// TunnelSecurityAssociationSummaryTunnelSaStatusEnum Enum with underlying type: string -type TunnelSecurityAssociationSummaryTunnelSaStatusEnum string - -// Set of constants representing the allowable values for TunnelSecurityAssociationSummaryTunnelSaStatusEnum -const ( - TunnelSecurityAssociationSummaryTunnelSaStatusInitiating TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "INITIATING" - TunnelSecurityAssociationSummaryTunnelSaStatusListening TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "LISTENING" - TunnelSecurityAssociationSummaryTunnelSaStatusUp TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "UP" - TunnelSecurityAssociationSummaryTunnelSaStatusDown TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "DOWN" - TunnelSecurityAssociationSummaryTunnelSaStatusError TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "ERROR" - TunnelSecurityAssociationSummaryTunnelSaStatusUnknown TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "UNKNOWN" -) - -var mappingTunnelSecurityAssociationSummaryTunnelSaStatus = map[string]TunnelSecurityAssociationSummaryTunnelSaStatusEnum{ - "INITIATING": TunnelSecurityAssociationSummaryTunnelSaStatusInitiating, - "LISTENING": TunnelSecurityAssociationSummaryTunnelSaStatusListening, - "UP": TunnelSecurityAssociationSummaryTunnelSaStatusUp, - "DOWN": TunnelSecurityAssociationSummaryTunnelSaStatusDown, - "ERROR": TunnelSecurityAssociationSummaryTunnelSaStatusError, - "UNKNOWN": TunnelSecurityAssociationSummaryTunnelSaStatusUnknown, -} - -// GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumValues Enumerates the set of values for TunnelSecurityAssociationSummaryTunnelSaStatusEnum -func GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumValues() []TunnelSecurityAssociationSummaryTunnelSaStatusEnum { - values := make([]TunnelSecurityAssociationSummaryTunnelSaStatusEnum, 0) - for _, v := range mappingTunnelSecurityAssociationSummaryTunnelSaStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_status.go deleted file mode 100644 index a04bc050d4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/tunnel_status.go +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TunnelStatus Deprecated. For tunnel information, instead see IPSecConnectionTunnel. -type TunnelStatus struct { - - // The IP address of Oracle's VPN headend. - // Example: `203.0.113.50` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The tunnel's current state. - LifecycleState TunnelStatusLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // When the state of the tunnel last changed, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeStateModified *common.SDKTime `mandatory:"false" json:"timeStateModified"` -} - -func (m TunnelStatus) String() string { - return common.PointerString(m) -} - -// TunnelStatusLifecycleStateEnum Enum with underlying type: string -type TunnelStatusLifecycleStateEnum string - -// Set of constants representing the allowable values for TunnelStatusLifecycleStateEnum -const ( - TunnelStatusLifecycleStateUp TunnelStatusLifecycleStateEnum = "UP" - TunnelStatusLifecycleStateDown TunnelStatusLifecycleStateEnum = "DOWN" - TunnelStatusLifecycleStateDownForMaintenance TunnelStatusLifecycleStateEnum = "DOWN_FOR_MAINTENANCE" - TunnelStatusLifecycleStatePartialUp TunnelStatusLifecycleStateEnum = "PARTIAL_UP" -) - -var mappingTunnelStatusLifecycleState = map[string]TunnelStatusLifecycleStateEnum{ - "UP": TunnelStatusLifecycleStateUp, - "DOWN": TunnelStatusLifecycleStateDown, - "DOWN_FOR_MAINTENANCE": TunnelStatusLifecycleStateDownForMaintenance, - "PARTIAL_UP": TunnelStatusLifecycleStatePartialUp, -} - -// GetTunnelStatusLifecycleStateEnumValues Enumerates the set of values for TunnelStatusLifecycleStateEnum -func GetTunnelStatusLifecycleStateEnumValues() []TunnelStatusLifecycleStateEnum { - values := make([]TunnelStatusLifecycleStateEnum, 0) - for _, v := range mappingTunnelStatusLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/udp_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/udp_options.go deleted file mode 100644 index 39cd629eac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/udp_options.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UdpOptions Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. -// If you specify UDP as the protocol but omit this object, then all destination ports are allowed. -type UdpOptions struct { - DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` - - SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` -} - -func (m UdpOptions) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_details.go deleted file mode 100644 index 4cbf5a976c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBootVolumeBackupDetails The representation of UpdateBootVolumeBackupDetails -type UpdateBootVolumeBackupDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateBootVolumeBackupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_details.go deleted file mode 100644 index 5823664149..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_details.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBootVolumeDetails The representation of UpdateBootVolumeDetails -type UpdateBootVolumeDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The size to resize the volume to in GBs. Has to be larger than the current size. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // The number of volume performance units (VPUs) that will be applied to this volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // Specifies whether the auto-tune performance is enabled for this boot volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The list of boot volume replicas that this boot volume will be updated to have - // in the specified destination availability domains. - BootVolumeReplicas []BootVolumeReplicaDetails `mandatory:"false" json:"bootVolumeReplicas"` -} - -func (m UpdateBootVolumeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_details.go deleted file mode 100644 index 029f0d97b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBootVolumeKmsKeyDetails The representation of UpdateBootVolumeKmsKeyDetails -type UpdateBootVolumeKmsKeyDetails struct { - - // The OCID of the new Key Management key to assign to protect the specified volume. - // This key has to be a valid Key Management key, and policies must exist to allow the user and the Block Volume service to access this key. - // If you specify the same OCID as the previous key's OCID, the Block Volume service will use it to regenerate a volume encryption key. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m UpdateBootVolumeKmsKeyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_details.go deleted file mode 100644 index aa73eacc3d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateByoipRangeDetails The information used to update a `ByoipRange` resource. -type UpdateByoipRangeDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateByoipRangeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_details.go deleted file mode 100644 index 7e5a187cdb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCaptureFilterDetails These details can be included in a request to update a capture filter. A capture filter contains a set of rules governing what traffic a VTAP mirrors. -type UpdateCaptureFilterDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The set of rules governing what traffic a VTAP mirrors. - CaptureFilterRules []CaptureFilterRuleDetails `mandatory:"false" json:"captureFilterRules"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateCaptureFilterDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_details.go deleted file mode 100644 index a20e0b1e71..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_details.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateClientVpnDetails A request to update clientVpn. -type UpdateClientVpnDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A subnet for openVPN clients to access servers. Default is 172.27.224.0/20 - ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` - - // A list of accessible subnets from this clientVpnEnpoint. - AccessibleSubnetCidrs []string `mandatory:"false" json:"accessibleSubnetCidrs"` - - // Whether re-route Internet traffic or not. - IsRerouteEnabled *bool `mandatory:"false" json:"isRerouteEnabled"` - - // Allowed values: - // * `NAT`: NAT mode supports one-way access. In NAT mode, client can access the Internet from server endpoint - // but server endpoint cannot access the Internet from client. - // * `ROUTING`: ROUTING mode supports two-way access. In ROUTING mode, client and server endpoint can access the - // Internet to each other. - AddressingMode UpdateClientVpnDetailsAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` - - RadiusConfig *RadiusConfigDetails `mandatory:"false" json:"radiusConfig"` - - LdapConfig *LdapConfigDetails `mandatory:"false" json:"ldapConfig"` - - DnsConfig *DnsConfigDetails `mandatory:"false" json:"dnsConfig"` - - SslCert SslCertDetails `mandatory:"false" json:"sslCert"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateClientVpnDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *UpdateClientVpnDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DisplayName *string `json:"displayName"` - ClientSubnetCidr *string `json:"clientSubnetCidr"` - AccessibleSubnetCidrs []string `json:"accessibleSubnetCidrs"` - IsRerouteEnabled *bool `json:"isRerouteEnabled"` - AddressingMode UpdateClientVpnDetailsAddressingModeEnum `json:"addressingMode"` - RadiusConfig *RadiusConfigDetails `json:"radiusConfig"` - LdapConfig *LdapConfigDetails `json:"ldapConfig"` - DnsConfig *DnsConfigDetails `json:"dnsConfig"` - SslCert sslcertdetails `json:"sslCert"` - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DisplayName = model.DisplayName - - m.ClientSubnetCidr = model.ClientSubnetCidr - - m.AccessibleSubnetCidrs = make([]string, len(model.AccessibleSubnetCidrs)) - for i, n := range model.AccessibleSubnetCidrs { - m.AccessibleSubnetCidrs[i] = n - } - - m.IsRerouteEnabled = model.IsRerouteEnabled - - m.AddressingMode = model.AddressingMode - - m.RadiusConfig = model.RadiusConfig - - m.LdapConfig = model.LdapConfig - - m.DnsConfig = model.DnsConfig - - nn, e = model.SslCert.UnmarshalPolymorphicJSON(model.SslCert.JsonData) - if e != nil { - return - } - if nn != nil { - m.SslCert = nn.(SslCertDetails) - } else { - m.SslCert = nil - } - - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - return -} - -// UpdateClientVpnDetailsAddressingModeEnum Enum with underlying type: string -type UpdateClientVpnDetailsAddressingModeEnum string - -// Set of constants representing the allowable values for UpdateClientVpnDetailsAddressingModeEnum -const ( - UpdateClientVpnDetailsAddressingModeNat UpdateClientVpnDetailsAddressingModeEnum = "NAT" - UpdateClientVpnDetailsAddressingModeRouting UpdateClientVpnDetailsAddressingModeEnum = "ROUTING" -) - -var mappingUpdateClientVpnDetailsAddressingMode = map[string]UpdateClientVpnDetailsAddressingModeEnum{ - "NAT": UpdateClientVpnDetailsAddressingModeNat, - "ROUTING": UpdateClientVpnDetailsAddressingModeRouting, -} - -// GetUpdateClientVpnDetailsAddressingModeEnumValues Enumerates the set of values for UpdateClientVpnDetailsAddressingModeEnum -func GetUpdateClientVpnDetailsAddressingModeEnumValues() []UpdateClientVpnDetailsAddressingModeEnum { - values := make([]UpdateClientVpnDetailsAddressingModeEnum, 0) - for _, v := range mappingUpdateClientVpnDetailsAddressingMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_details.go deleted file mode 100644 index 789b6a7d42..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateClientVpnUserDetails The request to update clientVpnUser. -type UpdateClientVpnUserDetails struct { - - // The password of the user want to create. - Password *string `mandatory:"false" json:"password"` - - // Whether to log in the user by cert-authentication only or not. - IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` -} - -func (m UpdateClientVpnUserDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_details.go deleted file mode 100644 index e9cd029043..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateClusterNetworkDetails The data to update a cluster network. -type UpdateClusterNetworkDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The instance pools in the cluster network to update. - InstancePools []UpdateClusterNetworkInstancePoolDetails `mandatory:"false" json:"instancePools"` -} - -func (m UpdateClusterNetworkDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_instance_pool_details.go deleted file mode 100644 index d640d7e3a5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_instance_pool_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateClusterNetworkInstancePoolDetails The data to update an instance pool within a cluster network. -type UpdateClusterNetworkInstancePoolDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. - Id *string `mandatory:"true" json:"id"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The number of instances that should be in the instance pool. - Size *int `mandatory:"false" json:"size"` -} - -func (m UpdateClusterNetworkInstancePoolDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_details.go deleted file mode 100644 index 7809cc3923..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateComputeCapacityReservationDetails Details for updating the compute capacity reservation. -type UpdateComputeCapacityReservationDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether this capacity reservation is the default. - // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). - IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` - - // The capacity configurations for the capacity reservation. - // To use the reservation for the desired shape, specify the shape, count, and - // optionally the fault domain where you want this configuration. - InstanceReservationConfigs []InstanceReservationConfigDetails `mandatory:"false" json:"instanceReservationConfigs"` -} - -func (m UpdateComputeCapacityReservationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_details.go deleted file mode 100644 index 0f03d9f411..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateComputeClusterDetails The data to update a compute cluster. -type UpdateComputeClusterDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateComputeClusterDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_details.go deleted file mode 100644 index 3037fde1ba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateConsoleHistoryDetails The representation of UpdateConsoleHistoryDetails -type UpdateConsoleHistoryDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateConsoleHistoryDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_details.go deleted file mode 100644 index 635246a3ee..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCpeDetails The representation of UpdateCpeDetails -type UpdateCpeDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device type. You can provide - // a value if you want to generate CPE device configuration content for IPSec connections - // that use this CPE. For a list of possible values, see - // ListCpeDeviceShapes. - // For more information about generating CPE device configuration content, see: - // * GetCpeDeviceConfigContent - // * GetIpsecCpeDeviceConfigContent - // * GetTunnelCpeDeviceConfigContent - // * GetTunnelCpeDeviceConfig - CpeDeviceShapeId *string `mandatory:"false" json:"cpeDeviceShapeId"` -} - -func (m UpdateCpeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_details.go deleted file mode 100644 index 1a641afcc1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCrossConnectDetails Update a CrossConnect -type UpdateCrossConnectDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Set to true to activate the cross-connect. You activate it after the physical cabling - // is complete, and you've confirmed the cross-connect's light levels are good and your side - // of the interface is up. Activation indicates to Oracle that the physical connection is ready. - // Example: `true` - IsActive *bool `mandatory:"false" json:"isActive"` - - // A reference name or identifier for the physical fiber connection this cross-connect uses. - CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` - - MacsecProperties *UpdateMacsecProperties `mandatory:"false" json:"macsecProperties"` -} - -func (m UpdateCrossConnectDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_details.go deleted file mode 100644 index ef97389876..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCrossConnectGroupDetails The representation of UpdateCrossConnectGroupDetails -type UpdateCrossConnectGroupDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A reference name or identifier for the physical fiber connection this cross-connect group uses. - CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - MacsecProperties *UpdateMacsecProperties `mandatory:"false" json:"macsecProperties"` -} - -func (m UpdateCrossConnectGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_details.go deleted file mode 100644 index caab36ff07..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDavDetails Details to update a Direct Attached Vnic. -type UpdateDavDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // List of VCNx Attachments to a DRG. - VcnxAttachmentIds []string `mandatory:"false" json:"vcnxAttachmentIds"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateDavDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_details.go deleted file mode 100644 index def677ca80..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDedicatedVmHostDetails Details for updating the dedicated virtual machine host details. -type UpdateDedicatedVmHostDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateDedicatedVmHostDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_details.go deleted file mode 100644 index ecdfa85166..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_details.go +++ /dev/null @@ -1,110 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDhcpDetails The representation of UpdateDhcpDetails -type UpdateDhcpDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - Options []DhcpOption `mandatory:"false" json:"options"` - - // The search domain name type of DHCP options - DomainNameType UpdateDhcpDetailsDomainNameTypeEnum `mandatory:"false" json:"domainNameType,omitempty"` -} - -func (m UpdateDhcpDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *UpdateDhcpDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - DisplayName *string `json:"displayName"` - FreeformTags map[string]string `json:"freeformTags"` - Options []dhcpoption `json:"options"` - DomainNameType UpdateDhcpDetailsDomainNameTypeEnum `json:"domainNameType"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.DisplayName = model.DisplayName - - m.FreeformTags = model.FreeformTags - - m.Options = make([]DhcpOption, len(model.Options)) - for i, n := range model.Options { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Options[i] = nn.(DhcpOption) - } else { - m.Options[i] = nil - } - } - - m.DomainNameType = model.DomainNameType - - return -} - -// UpdateDhcpDetailsDomainNameTypeEnum Enum with underlying type: string -type UpdateDhcpDetailsDomainNameTypeEnum string - -// Set of constants representing the allowable values for UpdateDhcpDetailsDomainNameTypeEnum -const ( - UpdateDhcpDetailsDomainNameTypeSubnetDomain UpdateDhcpDetailsDomainNameTypeEnum = "SUBNET_DOMAIN" - UpdateDhcpDetailsDomainNameTypeVcnDomain UpdateDhcpDetailsDomainNameTypeEnum = "VCN_DOMAIN" - UpdateDhcpDetailsDomainNameTypeCustomDomain UpdateDhcpDetailsDomainNameTypeEnum = "CUSTOM_DOMAIN" -) - -var mappingUpdateDhcpDetailsDomainNameType = map[string]UpdateDhcpDetailsDomainNameTypeEnum{ - "SUBNET_DOMAIN": UpdateDhcpDetailsDomainNameTypeSubnetDomain, - "VCN_DOMAIN": UpdateDhcpDetailsDomainNameTypeVcnDomain, - "CUSTOM_DOMAIN": UpdateDhcpDetailsDomainNameTypeCustomDomain, -} - -// GetUpdateDhcpDetailsDomainNameTypeEnumValues Enumerates the set of values for UpdateDhcpDetailsDomainNameTypeEnum -func GetUpdateDhcpDetailsDomainNameTypeEnumValues() []UpdateDhcpDetailsDomainNameTypeEnum { - values := make([]UpdateDhcpDetailsDomainNameTypeEnum, 0) - for _, v := range mappingUpdateDhcpDetailsDomainNameType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_details.go deleted file mode 100644 index c8393a7ac6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_details.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgDetails The representation of UpdateDrgDetails -type UpdateDrgDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - DefaultDrgRouteTables *DefaultDrgRouteTables `mandatory:"false" json:"defaultDrgRouteTables"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateDrgDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_details.go deleted file mode 100644 index 33594f462d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgRouteDistributionDetails Details used in a request to update a route distribution. -// You cannot assign a table to a virtual circuit or IPSec tunnel attachment if there is a static route rule for an RPC attachment. -type UpdateDrgRouteDistributionDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateDrgRouteDistributionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statement_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statement_details.go deleted file mode 100644 index 0d3e14d8fc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statement_details.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgRouteDistributionStatementDetails Route distribution statements to update in the route distribution. -type UpdateDrgRouteDistributionStatementDetails struct { - - // The Oracle-assigned ID of each route distribution statement to be updated. - Id *string `mandatory:"true" json:"id"` - - // The action is applied only if all of the match criteria is met. - // If there are no match criteria in a statement, match ALL is implied. - MatchCriteria []DrgRouteDistributionMatchCriteria `mandatory:"false" json:"matchCriteria"` - - // The priority of the statement you'd like to update. - Priority *int `mandatory:"false" json:"priority"` -} - -func (m UpdateDrgRouteDistributionStatementDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *UpdateDrgRouteDistributionStatementDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - MatchCriteria []drgroutedistributionmatchcriteria `json:"matchCriteria"` - Priority *int `json:"priority"` - Id *string `json:"id"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.MatchCriteria = make([]DrgRouteDistributionMatchCriteria, len(model.MatchCriteria)) - for i, n := range model.MatchCriteria { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.MatchCriteria[i] = nn.(DrgRouteDistributionMatchCriteria) - } else { - m.MatchCriteria[i] = nil - } - } - - m.Priority = model.Priority - - m.Id = model.Id - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_details.go deleted file mode 100644 index 6d3e9f9e54..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgRouteDistributionStatementsDetails Details request to update statements in a route distribution. -type UpdateDrgRouteDistributionStatementsDetails struct { - - // The route distribution statements to update, and the details to be updated. - Statements []UpdateDrgRouteDistributionStatementDetails `mandatory:"true" json:"statements"` -} - -func (m UpdateDrgRouteDistributionStatementsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rule_details.go deleted file mode 100644 index 6d5c522f2c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rule_details.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgRouteRuleDetails Details used to update a route rule in the DRG route table. -type UpdateDrgRouteRuleDetails struct { - - // The Oracle-assigned ID of each DRG route rule to update. - Id *string `mandatory:"true" json:"id"` - - // The range of IP addresses used for matching when routing traffic. - // Potential values: - // * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` - // or `2001:0db8:0123:45::/56`. - Destination *string `mandatory:"false" json:"destination"` - - // Type of destination for the rule. Required if `direction` = `EGRESS`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - DestinationType UpdateDrgRouteRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the next hop DRG attachment. The next hop DRG attachment is responsible - // for reaching the network destination. - NextHopDrgAttachmentId *string `mandatory:"false" json:"nextHopDrgAttachmentId"` -} - -func (m UpdateDrgRouteRuleDetails) String() string { - return common.PointerString(m) -} - -// UpdateDrgRouteRuleDetailsDestinationTypeEnum Enum with underlying type: string -type UpdateDrgRouteRuleDetailsDestinationTypeEnum string - -// Set of constants representing the allowable values for UpdateDrgRouteRuleDetailsDestinationTypeEnum -const ( - UpdateDrgRouteRuleDetailsDestinationTypeCidrBlock UpdateDrgRouteRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" -) - -var mappingUpdateDrgRouteRuleDetailsDestinationType = map[string]UpdateDrgRouteRuleDetailsDestinationTypeEnum{ - "CIDR_BLOCK": UpdateDrgRouteRuleDetailsDestinationTypeCidrBlock, -} - -// GetUpdateDrgRouteRuleDetailsDestinationTypeEnumValues Enumerates the set of values for UpdateDrgRouteRuleDetailsDestinationTypeEnum -func GetUpdateDrgRouteRuleDetailsDestinationTypeEnumValues() []UpdateDrgRouteRuleDetailsDestinationTypeEnum { - values := make([]UpdateDrgRouteRuleDetailsDestinationTypeEnum, 0) - for _, v := range mappingUpdateDrgRouteRuleDetailsDestinationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_details.go deleted file mode 100644 index 2ea08f72dc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgRouteRulesDetails Details used to update route rules in a DRG route table. -type UpdateDrgRouteRulesDetails struct { - - // The DRG rute rules to update. - RouteRules []UpdateDrgRouteRuleDetails `mandatory:"false" json:"routeRules"` -} - -func (m UpdateDrgRouteRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_details.go deleted file mode 100644 index 2d065de5a1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDrgRouteTableDetails Details used in a request to update a DRG route table. -// You can't assign a table to a virtual circuit or IPSec tunnel attachment if there is a static route rule for an RPC attachment. -type UpdateDrgRouteTableDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the import route distribution used to specify how incoming route advertisements through - // referenced attachements are inserted into the DRG route table. - ImportDrgRouteDistributionId *string `mandatory:"false" json:"importDrgRouteDistributionId"` - - // If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to - // your on-prem networks, set this value to true on the route table. - IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` -} - -func (m UpdateDrgRouteTableDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_details.go deleted file mode 100644 index ad0b2cc3ce..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateEndpointServiceNextHopDetails Information of a particular service's next hop -type UpdateEndpointServiceNextHopDetails struct { - - // An Internal IP address that handles requests to the substrate anycast of endpoint service. Empty string on deletion. - NextHopIp *string `mandatory:"false" json:"nextHopIp"` - - // MPLS label that identifies the substrate endpoint service. -1 indicates a delete operation - NextHopSlotId *int `mandatory:"false" json:"nextHopSlotId"` -} - -func (m UpdateEndpointServiceNextHopDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_details.go deleted file mode 100644 index 63cbc778b6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateFlowLogConfigAttachmentDetails The representation of UpdateFlowLogConfigAttachmentDetails -type UpdateFlowLogConfigAttachmentDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m UpdateFlowLogConfigAttachmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_details.go deleted file mode 100644 index 95e203c2fa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateFlowLogConfigDetails The representation of UpdateFlowLogConfigDetails -type UpdateFlowLogConfigDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateFlowLogConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_details.go deleted file mode 100644 index 53e2462f22..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateImageDetails The representation of UpdateImageDetails -type UpdateImageDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Operating system - // Example: `Oracle Linux` - OperatingSystem *string `mandatory:"false" json:"operatingSystem"` - - // Operating system version - // Example: `7.4` - OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` -} - -func (m UpdateImageDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_availability_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_availability_config_details.go deleted file mode 100644 index 31cead996d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_availability_config_details.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInstanceAvailabilityConfigDetails Options for defining the availability of a VM instance after a maintenance event that impacts the underlying -// hardware, including whether to live migrate supported VM instances when possible without sending a prior customer notification. -type UpdateInstanceAvailabilityConfigDetails struct { - - // Whether to live migrate supported VM instances to a healthy physical VM host without - // disrupting running instances during infrastructure maintenance events. If null, Oracle - // chooses the best option for migrating the VM during infrastructure maintenance events. - IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` - - // The lifecycle state for an instance when it is recovered after infrastructure maintenance. - // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. - // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. - // * `STOP_INSTANCE` - The instance is recovered in the stopped state. - RecoveryAction UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` -} - -func (m UpdateInstanceAvailabilityConfigDetails) String() string { - return common.PointerString(m) -} - -// UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum Enum with underlying type: string -type UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum string - -// Set of constants representing the allowable values for UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum -const ( - UpdateInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum = "RESTORE_INSTANCE" - UpdateInstanceAvailabilityConfigDetailsRecoveryActionStopInstance UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum = "STOP_INSTANCE" -) - -var mappingUpdateInstanceAvailabilityConfigDetailsRecoveryAction = map[string]UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum{ - "RESTORE_INSTANCE": UpdateInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance, - "STOP_INSTANCE": UpdateInstanceAvailabilityConfigDetailsRecoveryActionStopInstance, -} - -// GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumValues Enumerates the set of values for UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum -func GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumValues() []UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum { - values := make([]UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum, 0) - for _, v := range mappingUpdateInstanceAvailabilityConfigDetailsRecoveryAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_details.go deleted file mode 100644 index f4182cd891..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInstanceConfigurationDetails The representation of UpdateInstanceConfigurationDetails -type UpdateInstanceConfigurationDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateInstanceConfigurationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_details.go deleted file mode 100644 index 370d570732..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_details.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInstanceConsoleConnectionDetails Specifies the properties for updating tags for an instance console connection. -type UpdateInstanceConsoleConnectionDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateInstanceConsoleConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_details.go deleted file mode 100644 index c38f36e642..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_details.go +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInstanceDetails The representation of UpdateInstanceDetails -type UpdateInstanceDetails struct { - - // The OCID of the compute capacity reservation this instance is launched under. - // You can remove the instance from a reservation by specifying an empty string as input for this field. - // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). - CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - AgentConfig *UpdateInstanceAgentConfigDetails `mandatory:"false" json:"agentConfig"` - - // Custom metadata key/value string pairs that you provide. Any set of key/value pairs - // provided here will completely replace the current set of key/value pairs in the `metadata` - // field on the instance. - // The "user_data" field and the "ssh_authorized_keys" field cannot be changed after an instance - // has launched. Any request that updates, removes, or adds either of these fields will be - // rejected. You must provide the same values for "user_data" and "ssh_authorized_keys" that - // already exist on the instance. - // The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of - // 32,000 bytes. - Metadata map[string]string `mandatory:"false" json:"metadata"` - - // Additional metadata key/value pairs that you provide. They serve the same purpose and - // functionality as fields in the `metadata` object. - // They are distinguished from `metadata` fields in that these can be nested JSON objects - // (whereas `metadata` fields are string/string maps only). - // The "user_data" field and the "ssh_authorized_keys" field cannot be changed after an instance - // has launched. Any request that updates, removes, or adds either of these fields will be - // rejected. You must provide the same values for "user_data" and "ssh_authorized_keys" that - // already exist on the instance. - // The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of - // 32,000 bytes. - ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` - - // The shape of the instance. The shape determines the number of CPUs and the amount of memory - // allocated to the instance. For more information about how to change shapes, and a list of - // shapes that are supported, see - // Editing an Instance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm). - // For details about the CPUs, memory, and other properties of each shape, see - // Compute Shapes (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm). - // The new shape must be compatible with the image that was used to launch the instance. You - // can enumerate all available shapes and determine image compatibility by calling - // ListShapes. - // If the instance is running when you change the shape, the instance is rebooted. - // Example: `VM.Standard2.1` - Shape *string `mandatory:"false" json:"shape"` - - ShapeConfig *UpdateInstanceShapeConfigDetails `mandatory:"false" json:"shapeConfig"` - - // The preferred maintenance action for an instance. The default is LIVE_MIGRATE, if live migration is supported. - // * `LIVE_MIGRATE` - Run maintenance using a live migration. - // * `REBOOT` - Run maintenance using a reboot. - PreferredMaintenanceAction UpdateInstanceDetailsPreferredMaintenanceActionEnum `mandatory:"false" json:"preferredMaintenanceAction,omitempty"` - - InstanceOptions *InstanceOptions `mandatory:"false" json:"instanceOptions"` - - // A fault domain is a grouping of hardware and infrastructure within an availability domain. - // Each availability domain contains three fault domains. Fault domains let you distribute your - // instances so that they are not on the same physical hardware within a single availability domain. - // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect - // instances in other fault domains. - // To get a list of fault domains, use the - // ListFaultDomains operation in the - // Identity and Access Management Service API. - // Example: `FAULT-DOMAIN-1` - FaultDomain *string `mandatory:"false" json:"faultDomain"` - - LaunchOptions *UpdateLaunchOptions `mandatory:"false" json:"launchOptions"` - - AvailabilityConfig *UpdateInstanceAvailabilityConfigDetails `mandatory:"false" json:"availabilityConfig"` -} - -func (m UpdateInstanceDetails) String() string { - return common.PointerString(m) -} - -// UpdateInstanceDetailsPreferredMaintenanceActionEnum Enum with underlying type: string -type UpdateInstanceDetailsPreferredMaintenanceActionEnum string - -// Set of constants representing the allowable values for UpdateInstanceDetailsPreferredMaintenanceActionEnum -const ( - UpdateInstanceDetailsPreferredMaintenanceActionLiveMigrate UpdateInstanceDetailsPreferredMaintenanceActionEnum = "LIVE_MIGRATE" - UpdateInstanceDetailsPreferredMaintenanceActionReboot UpdateInstanceDetailsPreferredMaintenanceActionEnum = "REBOOT" -) - -var mappingUpdateInstanceDetailsPreferredMaintenanceAction = map[string]UpdateInstanceDetailsPreferredMaintenanceActionEnum{ - "LIVE_MIGRATE": UpdateInstanceDetailsPreferredMaintenanceActionLiveMigrate, - "REBOOT": UpdateInstanceDetailsPreferredMaintenanceActionReboot, -} - -// GetUpdateInstanceDetailsPreferredMaintenanceActionEnumValues Enumerates the set of values for UpdateInstanceDetailsPreferredMaintenanceActionEnum -func GetUpdateInstanceDetailsPreferredMaintenanceActionEnumValues() []UpdateInstanceDetailsPreferredMaintenanceActionEnum { - values := make([]UpdateInstanceDetailsPreferredMaintenanceActionEnum, 0) - for _, v := range mappingUpdateInstanceDetailsPreferredMaintenanceAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_placement_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_placement_configuration_details.go deleted file mode 100644 index 1dc48401a8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_placement_configuration_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInstancePoolPlacementConfigurationDetails The location for where an instance pool will place instances. -type UpdateInstancePoolPlacementConfigurationDetails struct { - - // The availability domain to place instances. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the primary subnet to place instances. - PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` - - // The fault domains to place instances. - // If you don't provide any values, the system makes a best effort to distribute - // instances across all fault domains based on capacity. - // To distribute the instances evenly across selected fault domains, provide a - // set of fault domains. For example, you might want instances to be evenly - // distributed if your applications require high availability. - // To get a list of fault domains, use the - // ListFaultDomains operation - // in the Identity and Access Management Service API. - // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` - FaultDomains []string `mandatory:"false" json:"faultDomains"` - - // The set of subnet OCIDs for secondary VNICs for instances in the pool. - SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` -} - -func (m UpdateInstancePoolPlacementConfigurationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_shape_config_details.go deleted file mode 100644 index 9b4a20d1ba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_shape_config_details.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInstanceShapeConfigDetails The shape configuration requested for the instance. If provided, the instance will be updated -// with the resources specified. In the case where some properties are missing, -// the missing values will be set to the default for the provided `shape`. -// Each shape only supports certain configurable values. If the `shape` is provided -// and the configuration values are invalid for that new `shape`, an error will be returned. -// If no `shape` is provided and the configuration values are invalid for the instance's -// existing shape, an error will be returned. -type UpdateInstanceShapeConfigDetails struct { - - // The total number of OCPUs available to the instance. - Ocpus *float32 `mandatory:"false" json:"ocpus"` - - // The total amount of memory available to the instance, in gigabytes. - MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` - - // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a - // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. - // The following values are supported: - // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. - // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. - // - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance. - BaselineOcpuUtilization UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` -} - -func (m UpdateInstanceShapeConfigDetails) String() string { - return common.PointerString(m) -} - -// UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string -type UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string - -// Set of constants representing the allowable values for UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum -const ( - UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization8 UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8" - UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization2 UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2" - UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization1 UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1" -) - -var mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilization = map[string]UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ - "BASELINE_1_8": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization8, - "BASELINE_1_2": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization2, - "BASELINE_1_1": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization1, -} - -// GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum -func GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { - values := make([]UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, 0) - for _, v := range mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilization { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_details.go deleted file mode 100644 index d800e5ca56..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternalDnsRecordDetails This structure is used when updating DnsRecord for internal clients. -type UpdateInternalDnsRecordDetails struct { - - // Time to live value for the DnsRecord, according to RFC 1035 (https://tools.ietf.org/html/rfc1035). - // Defaults to 86400. - Ttl *int `mandatory:"false" json:"ttl"` - - // Value for the DnsRecord. - // -*A:* One or more IPv4 addresses. Enter addresses on separate lines. - Value *string `mandatory:"false" json:"value"` -} - -func (m UpdateInternalDnsRecordDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_details.go deleted file mode 100644 index 763109b693..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternalDrgAttachmentDetails The request to update an InternalDrgAttachment. -type UpdateInternalDrgAttachmentDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // This is the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m UpdateInternalDrgAttachmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_details.go deleted file mode 100644 index e46c07b05c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternalDrgDetails The request to update an InternalDrg. -type UpdateInternalDrgDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateInternalDrgDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_details.go deleted file mode 100644 index 19b3f49581..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternalGenericGatewayDetails Details to update an internal generic gateway. -type UpdateInternalGenericGatewayDetails struct { - - // Tuples, mapping AD and regional identifiers to the corresponding routing data - GatewayRouteMap []GatewayRouteData `mandatory:"false" json:"gatewayRouteMap"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table associated with the gateway - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see - // Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateInternalGenericGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_details.go deleted file mode 100644 index 36ed91c1f4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternalPublicIpDetails The data to update internal public IPs -type UpdateInternalPublicIpDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity to assign the public IP to. - // * If you set this field to an empty string, the public IP will be unassigned from the - // entity it is currently assigned to. - AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` -} - -func (m UpdateInternalPublicIpDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_details.go deleted file mode 100644 index 2934e2e47b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternalVnicMetadataDetails This structure is used when updating the metadata of a VNIC attachment -type UpdateInternalVnicMetadataDetails struct { - - // The VNIC whose attachments metadata has to be altered - VnicId *string `mandatory:"true" json:"vnicId"` - - // Property describing customer facing metrics - MetadataList []CfmMetadata `mandatory:"true" json:"metadataList"` -} - -func (m UpdateInternalVnicMetadataDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_details.go deleted file mode 100644 index ad9f28f387..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateInternetGatewayDetails The representation of UpdateInternetGatewayDetails -type UpdateInternetGatewayDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether the gateway is enabled. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` -} - -func (m UpdateInternetGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_details.go deleted file mode 100644 index 97f59c508b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_details.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIpSecConnectionDetails The representation of UpdateIpSecConnectionDetails -type UpdateIpSecConnectionDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the - // fully qualified domain name (FQDN)). The type of identifier you provide here must correspond - // to the value for `cpeLocalIdentifierType`. - // For information about why you'd provide this value, see - // If Your CPE Is Behind a NAT Device (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm#nat). - // Example IP address: `10.0.3.3` - // Example hostname: `cpe.example.com` - CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"` - - // The type of identifier for your CPE device. The value you provide here must correspond to the value - // for `cpeLocalIdentifier`. - CpeLocalIdentifierType UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` - - // Static routes to the CPE. If you provide this attribute, it replaces the entire current set of - // static routes. A static route's CIDR must not be a multicast address or class E address. - // The CIDR can be either IPv4 or IPv6. - // IPv6 addressing is supported for all commercial and government regions. - // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // Example: `10.0.1.0/24` - // Example: `2001:db8::/32` - StaticRoutes []string `mandatory:"false" json:"staticRoutes"` -} - -func (m UpdateIpSecConnectionDetails) String() string { - return common.PointerString(m) -} - -// UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum Enum with underlying type: string -type UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum string - -// Set of constants representing the allowable values for UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum -const ( - UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "IP_ADDRESS" - UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "HOSTNAME" -) - -var mappingUpdateIpSecConnectionDetailsCpeLocalIdentifierType = map[string]UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{ - "IP_ADDRESS": UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress, - "HOSTNAME": UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname, -} - -// GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues Enumerates the set of values for UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum -func GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues() []UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum { - values := make([]UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, 0) - for _, v := range mappingUpdateIpSecConnectionDetailsCpeLocalIdentifierType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_details.go deleted file mode 100644 index 2b03b50cb7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_details.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIpSecConnectionTunnelDetails The representation of UpdateIpSecConnectionTunnelDetails -type UpdateIpSecConnectionTunnelDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The type of routing to use for this tunnel (either BGP dynamic routing or static routing). - Routing UpdateIpSecConnectionTunnelDetailsRoutingEnum `mandatory:"false" json:"routing,omitempty"` - - // Internet Key Exchange protocol version. - IkeVersion UpdateIpSecConnectionTunnelDetailsIkeVersionEnum `mandatory:"false" json:"ikeVersion,omitempty"` - - BgpSessionConfig *UpdateIpSecTunnelBgpSessionDetails `mandatory:"false" json:"bgpSessionConfig"` - - // Whether Oracle side is the initiator for negotiation. - OracleInitiation UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum `mandatory:"false" json:"oracleInitiation,omitempty"` - - // Whether NAT-T Enabled on the tunnel - NatTranslationEnabled UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum `mandatory:"false" json:"natTranslationEnabled,omitempty"` - - PhaseOneConfig *PhaseOneConfigDetails `mandatory:"false" json:"phaseOneConfig"` - - PhaseTwoConfig *PhaseTwoConfigDetails `mandatory:"false" json:"phaseTwoConfig"` - - DpdConfig *DpdConfig `mandatory:"false" json:"dpdConfig"` - - EncryptionDomainConfig *UpdateIpSecTunnelEncryptionDomainDetails `mandatory:"false" json:"encryptionDomainConfig"` -} - -func (m UpdateIpSecConnectionTunnelDetails) String() string { - return common.PointerString(m) -} - -// UpdateIpSecConnectionTunnelDetailsRoutingEnum Enum with underlying type: string -type UpdateIpSecConnectionTunnelDetailsRoutingEnum string - -// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsRoutingEnum -const ( - UpdateIpSecConnectionTunnelDetailsRoutingBgp UpdateIpSecConnectionTunnelDetailsRoutingEnum = "BGP" - UpdateIpSecConnectionTunnelDetailsRoutingStatic UpdateIpSecConnectionTunnelDetailsRoutingEnum = "STATIC" - UpdateIpSecConnectionTunnelDetailsRoutingPolicy UpdateIpSecConnectionTunnelDetailsRoutingEnum = "POLICY" -) - -var mappingUpdateIpSecConnectionTunnelDetailsRouting = map[string]UpdateIpSecConnectionTunnelDetailsRoutingEnum{ - "BGP": UpdateIpSecConnectionTunnelDetailsRoutingBgp, - "STATIC": UpdateIpSecConnectionTunnelDetailsRoutingStatic, - "POLICY": UpdateIpSecConnectionTunnelDetailsRoutingPolicy, -} - -// GetUpdateIpSecConnectionTunnelDetailsRoutingEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsRoutingEnum -func GetUpdateIpSecConnectionTunnelDetailsRoutingEnumValues() []UpdateIpSecConnectionTunnelDetailsRoutingEnum { - values := make([]UpdateIpSecConnectionTunnelDetailsRoutingEnum, 0) - for _, v := range mappingUpdateIpSecConnectionTunnelDetailsRouting { - values = append(values, v) - } - return values -} - -// UpdateIpSecConnectionTunnelDetailsIkeVersionEnum Enum with underlying type: string -type UpdateIpSecConnectionTunnelDetailsIkeVersionEnum string - -// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsIkeVersionEnum -const ( - UpdateIpSecConnectionTunnelDetailsIkeVersionV1 UpdateIpSecConnectionTunnelDetailsIkeVersionEnum = "V1" - UpdateIpSecConnectionTunnelDetailsIkeVersionV2 UpdateIpSecConnectionTunnelDetailsIkeVersionEnum = "V2" -) - -var mappingUpdateIpSecConnectionTunnelDetailsIkeVersion = map[string]UpdateIpSecConnectionTunnelDetailsIkeVersionEnum{ - "V1": UpdateIpSecConnectionTunnelDetailsIkeVersionV1, - "V2": UpdateIpSecConnectionTunnelDetailsIkeVersionV2, -} - -// GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsIkeVersionEnum -func GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumValues() []UpdateIpSecConnectionTunnelDetailsIkeVersionEnum { - values := make([]UpdateIpSecConnectionTunnelDetailsIkeVersionEnum, 0) - for _, v := range mappingUpdateIpSecConnectionTunnelDetailsIkeVersion { - values = append(values, v) - } - return values -} - -// UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum Enum with underlying type: string -type UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum string - -// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum -const ( - UpdateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum = "INITIATOR_OR_RESPONDER" - UpdateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum = "RESPONDER_ONLY" -) - -var mappingUpdateIpSecConnectionTunnelDetailsOracleInitiation = map[string]UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum{ - "INITIATOR_OR_RESPONDER": UpdateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder, - "RESPONDER_ONLY": UpdateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly, -} - -// GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum -func GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumValues() []UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum { - values := make([]UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum, 0) - for _, v := range mappingUpdateIpSecConnectionTunnelDetailsOracleInitiation { - values = append(values, v) - } - return values -} - -// UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum Enum with underlying type: string -type UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum string - -// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum -const ( - UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "ENABLED" - UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "DISABLED" - UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "AUTO" -) - -var mappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabled = map[string]UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum{ - "ENABLED": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled, - "DISABLED": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled, - "AUTO": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto, -} - -// GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum -func GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues() []UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum { - values := make([]UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum, 0) - for _, v := range mappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabled { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_shared_secret_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_shared_secret_details.go deleted file mode 100644 index 689758d3da..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_connection_tunnel_shared_secret_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIpSecConnectionTunnelSharedSecretDetails The representation of UpdateIpSecConnectionTunnelSharedSecretDetails -type UpdateIpSecConnectionTunnelSharedSecretDetails struct { - - // The shared secret (pre-shared key) to use for the tunnel. Only numbers, letters, and spaces - // are allowed. - SharedSecret *string `mandatory:"false" json:"sharedSecret"` -} - -func (m UpdateIpSecConnectionTunnelSharedSecretDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_encryption_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_encryption_domain_details.go deleted file mode 100644 index 6863fcd5bf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_encryption_domain_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIpSecTunnelEncryptionDomainDetails Request to update a multi-encryption domain policy on the IPSec tunnel. -// There can't be more than 50 security associations in use at one time. See Encryption domain for policy-based -// tunnels (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/ipsecencryptiondomains.htm#spi_policy_based_tunnel) for more. -type UpdateIpSecTunnelEncryptionDomainDetails struct { - - // Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. - OracleTrafficSelector []string `mandatory:"false" json:"oracleTrafficSelector"` - - // Lists IPv4 or IPv6-enabled subnets in your on-premises network. - CpeTrafficSelector []string `mandatory:"false" json:"cpeTrafficSelector"` -} - -func (m UpdateIpSecTunnelEncryptionDomainDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_details.go deleted file mode 100644 index 0b594b3ec7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIpv6Details The representation of UpdateIpv6Details -type UpdateIpv6Details struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to reassign the IPv6 to. - // The VNIC must be in the same subnet as the current VNIC. - VnicId *string `mandatory:"false" json:"vnicId"` -} - -func (m UpdateIpv6Details) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_launch_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_launch_options.go deleted file mode 100644 index 172d9609b6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_launch_options.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateLaunchOptions Options for tuning the compatibility and performance of VM shapes. -type UpdateLaunchOptions struct { - - // Emulation type for the boot volume. - // * `ISCSI` - ISCSI attached block storage device. - // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block - // storage volumes on platform images. - // Before you change the boot volume attachment type, detach all block volumes and VNICs except for - // the boot volume and the primary VNIC. - // If the instance is running when you change the boot volume attachment type, it will be rebooted. - // **Note:** Some instances might not function properly if you change the boot volume attachment type. After - // the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave - // as expected, the changes are not supported. Revert the instance to the original boot volume attachment type. - BootVolumeType UpdateLaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"` - - // Emulation type for the physical network interface card (NIC). - // * `VFIO` - Direct attached Virtual Function network controller. This is the networking type - // when you launch an instance using hardware-assisted (SR-IOV) networking. - // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. - // Before you change the networking type, detach all VNICs and block volumes except for the primary - // VNIC and the boot volume. - // The image must have paravirtualized drivers installed. For more information, see - // Editing an Instance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm). - // If the instance is running when you change the network type, it will be rebooted. - // **Note:** Some instances might not function properly if you change the networking type. After - // the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave - // as expected, the changes are not supported. Revert the instance to the original networking type. - NetworkType UpdateLaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"` - - // Whether to enable in-transit encryption for the volume's paravirtualized attachment. - // To enable in-transit encryption for block volumes and boot volumes, this field must be set to `true`. - // Data in transit is transferred over an internal and highly secure network. If you have specific - // compliance requirements related to the encryption of the data while it is moving between the - // instance and the boot volume or the block volume, you can enable in-transit encryption. - // In-transit encryption is not enabled by default. - // All boot volumes and block volumes are encrypted at rest. - // For more information, see Block Volume Encryption (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm#Encrypti). - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` -} - -func (m UpdateLaunchOptions) String() string { - return common.PointerString(m) -} - -// UpdateLaunchOptionsBootVolumeTypeEnum Enum with underlying type: string -type UpdateLaunchOptionsBootVolumeTypeEnum string - -// Set of constants representing the allowable values for UpdateLaunchOptionsBootVolumeTypeEnum -const ( - UpdateLaunchOptionsBootVolumeTypeIscsi UpdateLaunchOptionsBootVolumeTypeEnum = "ISCSI" - UpdateLaunchOptionsBootVolumeTypeParavirtualized UpdateLaunchOptionsBootVolumeTypeEnum = "PARAVIRTUALIZED" -) - -var mappingUpdateLaunchOptionsBootVolumeType = map[string]UpdateLaunchOptionsBootVolumeTypeEnum{ - "ISCSI": UpdateLaunchOptionsBootVolumeTypeIscsi, - "PARAVIRTUALIZED": UpdateLaunchOptionsBootVolumeTypeParavirtualized, -} - -// GetUpdateLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for UpdateLaunchOptionsBootVolumeTypeEnum -func GetUpdateLaunchOptionsBootVolumeTypeEnumValues() []UpdateLaunchOptionsBootVolumeTypeEnum { - values := make([]UpdateLaunchOptionsBootVolumeTypeEnum, 0) - for _, v := range mappingUpdateLaunchOptionsBootVolumeType { - values = append(values, v) - } - return values -} - -// UpdateLaunchOptionsNetworkTypeEnum Enum with underlying type: string -type UpdateLaunchOptionsNetworkTypeEnum string - -// Set of constants representing the allowable values for UpdateLaunchOptionsNetworkTypeEnum -const ( - UpdateLaunchOptionsNetworkTypeVfio UpdateLaunchOptionsNetworkTypeEnum = "VFIO" - UpdateLaunchOptionsNetworkTypeParavirtualized UpdateLaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" -) - -var mappingUpdateLaunchOptionsNetworkType = map[string]UpdateLaunchOptionsNetworkTypeEnum{ - "VFIO": UpdateLaunchOptionsNetworkTypeVfio, - "PARAVIRTUALIZED": UpdateLaunchOptionsNetworkTypeParavirtualized, -} - -// GetUpdateLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for UpdateLaunchOptionsNetworkTypeEnum -func GetUpdateLaunchOptionsNetworkTypeEnumValues() []UpdateLaunchOptionsNetworkTypeEnum { - values := make([]UpdateLaunchOptionsNetworkTypeEnum, 0) - for _, v := range mappingUpdateLaunchOptionsNetworkType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_details.go deleted file mode 100644 index a92cb396d0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateLocalPeeringConnectionDetails The representation of UpdateLocalPeeringConnectionDetails -type UpdateLocalPeeringConnectionDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m UpdateLocalPeeringConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_details.go deleted file mode 100644 index fbcf047492..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateLocalPeeringGatewayDetails The representation of UpdateLocalPeeringGatewayDetails -type UpdateLocalPeeringGatewayDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the LPG will use. - // For information about why you would associate a route table with an LPG, see - // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m UpdateLocalPeeringGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_key.go deleted file mode 100644 index 9d9555e832..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_key.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateMacsecKey An object defining the Secrets OCIDs held in Vault that represent the MACSEC key. -type UpdateMacsecKey struct { - - // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key Name (CKN) of this MACSEC key. - ConnectivityAssociationNameSecretId *string `mandatory:"true" json:"connectivityAssociationNameSecretId"` - - // The secret version of the connectivity association name secret in Vault. - ConnectivityAssociationNameSecretVersion *int64 `mandatory:"true" json:"connectivityAssociationNameSecretVersion"` - - // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key (CAK) of this MACSEC key. - ConnectivityAssociationKeySecretId *string `mandatory:"true" json:"connectivityAssociationKeySecretId"` - - // The secret version of the connectivityAssociationKey secret in Vault. - ConnectivityAssociationKeySecretVersion *int64 `mandatory:"true" json:"connectivityAssociationKeySecretVersion"` -} - -func (m UpdateMacsecKey) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_properties.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_properties.go deleted file mode 100644 index f7ab39d8f8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_macsec_properties.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateMacsecProperties Properties used to update MACSEC settings. -type UpdateMacsecProperties struct { - - // Indicates whether or not MACSEC is enabled. - State MacsecStateEnum `mandatory:"true" json:"state"` - - PrimaryKey *UpdateMacsecKey `mandatory:"false" json:"primaryKey"` - - // Type of encryption cipher suite to use for the MACSEC connection. - EncryptionCipher MacsecEncryptionCipherEnum `mandatory:"false" json:"encryptionCipher,omitempty"` -} - -func (m UpdateMacsecProperties) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_details.go deleted file mode 100644 index aed42fa898..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_details.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNatGatewayDetails The representation of UpdateNatGatewayDetails -type UpdateNatGatewayDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Whether the NAT gateway blocks traffic through it. The default is `false`. - // Example: `true` - BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the NAT Gateway will use. - // If you don't specify a route table here, the NAT Gateway is created without an associated route - // table. The Networking service does NOT automatically associate the attached VCN's default route table - // with the NAT Gateway. - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m UpdateNatGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_details.go deleted file mode 100644 index 0525c0b918..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNetworkSecurityGroupDetails The representation of UpdateNetworkSecurityGroupDetails -type UpdateNetworkSecurityGroupDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateNetworkSecurityGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_details.go deleted file mode 100644 index 4bd1c8e284..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNetworkSecurityGroupSecurityRulesDetails The representation of UpdateNetworkSecurityGroupSecurityRulesDetails -type UpdateNetworkSecurityGroupSecurityRulesDetails struct { - - // The NSG security rules to update. - SecurityRules []UpdateSecurityRuleDetails `mandatory:"false" json:"securityRules"` -} - -func (m UpdateNetworkSecurityGroupSecurityRulesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_details.go deleted file mode 100644 index 5025c3ca61..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePrivateAccessGatewayDetails Information that can be updated for a private access gateway (PAG). -type UpdatePrivateAccessGatewayDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdatePrivateAccessGatewayDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_details.go deleted file mode 100644 index 77c96e6a6f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePrivateIpDetails The representation of UpdatePrivateIpDetails -type UpdatePrivateIpDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The hostname for the private IP. Used for DNS. The value - // is the hostname portion of the private IP's fully qualified domain name (FQDN) - // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be unique across all VNICs in the subnet and comply with - // RFC 952 (https://tools.ietf.org/html/rfc952) and - // RFC 1123 (https://tools.ietf.org/html/rfc1123). - // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // Example: `bminstance-1` - HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to reassign the private IP to. The VNIC must - // be in the same subnet as the current VNIC. - VnicId *string `mandatory:"false" json:"vnicId"` -} - -func (m UpdatePrivateIpDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_details.go deleted file mode 100644 index 0df4f56fa1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_details.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePrivateIpNextHopDetails The data to update private IP's nextHop configuration. -type UpdatePrivateIpNextHopDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // VNICaaS will flow-hash traffic that matches the service protocol and port. Sending an - // empty list mean you want to remove all service protocol ports. - ServiceProtocolPorts []PrivateIpNextHopProtocolPort `mandatory:"false" json:"serviceProtocolPorts"` - - // Details of nextHop targets. - Targets []PrivateIpNextHopTarget `mandatory:"false" json:"targets"` -} - -func (m UpdatePrivateIpNextHopDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_details.go deleted file mode 100644 index acedf0591c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePublicIpDetails The representation of UpdatePublicIpDetails -type UpdatePublicIpDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP to assign the public IP to. - // * If the public IP is already assigned to a different private IP, it will be unassigned - // and then reassigned to the specified private IP. - // * If you set this field to an empty string, the public IP will be unassigned from the - // private IP it is currently assigned to. - PrivateIpId *string `mandatory:"false" json:"privateIpId"` -} - -func (m UpdatePublicIpDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_details.go deleted file mode 100644 index 8371454d99..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePublicIpPoolDetails The data to update for a public IP pool. -type UpdatePublicIpPoolDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdatePublicIpPoolDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_details.go deleted file mode 100644 index eba064e1bd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateRemotePeeringConnectionDetails The representation of UpdateRemotePeeringConnectionDetails -type UpdateRemotePeeringConnectionDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateRemotePeeringConnectionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_details.go deleted file mode 100644 index 53000f26cc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateRouteTableDetails The representation of UpdateRouteTableDetails -type UpdateRouteTableDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The collection of rules used for routing destination IPs to network devices. - RouteRules []RouteRule `mandatory:"false" json:"routeRules"` - - // Indicates whether or not ECMP is enabled on the route table. - IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` -} - -func (m UpdateRouteTableDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_details.go deleted file mode 100644 index 59fb53e7a9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateScanProxyDetails Details for updating a scan proxy instance created for a scan listener FQDN/IPs -type UpdateScanProxyDetails struct { - - // Type indicating whether Scan listener is specified by its FQDN or list of IPs - ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"false" json:"scanListenerType,omitempty"` - - // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN - // listeners. - ScanListenerInfo []ScanListenerInfo `mandatory:"false" json:"scanListenerInfo"` - - // The protocol used for communication between client, scanProxy and RAC's scan - // listeners - Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` - - ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` -} - -func (m UpdateScanProxyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_details.go deleted file mode 100644 index 80091f6f0d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateSecurityListDetails The representation of UpdateSecurityListDetails -type UpdateSecurityListDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Rules for allowing egress IP packets. - EgressSecurityRules []EgressSecurityRule `mandatory:"false" json:"egressSecurityRules"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Rules for allowing ingress IP packets. - IngressSecurityRules []IngressSecurityRule `mandatory:"false" json:"ingressSecurityRules"` -} - -func (m UpdateSecurityListDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_rule_details.go deleted file mode 100644 index a63a127cfb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_rule_details.go +++ /dev/null @@ -1,176 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateSecurityRuleDetails A rule for allowing inbound (`direction`= INGRESS) or outbound (`direction`= EGRESS) IP packets. -type UpdateSecurityRuleDetails struct { - - // Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, - // or `INGRESS` for rules to allow inbound IP packets. - Direction UpdateSecurityRuleDetailsDirectionEnum `mandatory:"true" json:"direction"` - - // The Oracle-assigned ID of the security rule that you want to update. You can't change this value. - // Example: `04ABEC` - Id *string `mandatory:"true" json:"id"` - - // The transport protocol. Specify either `all` or an IPv4 protocol number as - // defined in - // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). - // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). - Protocol *string `mandatory:"true" json:"protocol"` - - // An optional description of your choice for the rule. Avoid entering confidential information. - Description *string `mandatory:"false" json:"description"` - - // Conceptually, this is the range of IP addresses that a packet originating from the instance - // can go to. - // Allowed values: - // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // IPv6 addressing is supported for all commercial and government regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security rule for traffic destined for a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same - // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control - // traffic between VNICs in the same NSG. - Destination *string `mandatory:"false" json:"destination"` - - // Type of destination for the rule. Required if `direction` = `EGRESS`. - // Allowed values: - // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a - // Service (the rule is for traffic destined for a - // particular `Service` through a service gateway). - // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a - // NetworkSecurityGroup. - DestinationType UpdateSecurityRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` - - IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` - - // A stateless rule allows traffic in one direction. Remember to add a corresponding - // stateless rule in the other direction if you need to support bidirectional traffic. For - // example, if egress traffic allows TCP destination port 80, there should be an ingress - // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful - // and a corresponding rule is not necessary for bidirectional traffic. - IsStateless *bool `mandatory:"false" json:"isStateless"` - - // Conceptually, this is the range of IP addresses that a packet coming into the instance - // can come from. - // Allowed values: - // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` - // IPv6 addressing is supported for all commercial and government regions. See - // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). - // * The `cidrBlock` value for a Service, if you're - // setting up a security rule for traffic coming from a particular `Service` through - // a service gateway. For example: `oci-phx-objectstorage`. - // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same - // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control - // traffic between VNICs in the same NSG. - Source *string `mandatory:"false" json:"source"` - - // Type of source for the rule. Required if `direction` = `INGRESS`. - // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. - // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a - // Service (the rule is for traffic coming from a - // particular `Service` through a service gateway). - // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a - // NetworkSecurityGroup. - SourceType UpdateSecurityRuleDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` - - UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` -} - -func (m UpdateSecurityRuleDetails) String() string { - return common.PointerString(m) -} - -// UpdateSecurityRuleDetailsDestinationTypeEnum Enum with underlying type: string -type UpdateSecurityRuleDetailsDestinationTypeEnum string - -// Set of constants representing the allowable values for UpdateSecurityRuleDetailsDestinationTypeEnum -const ( - UpdateSecurityRuleDetailsDestinationTypeCidrBlock UpdateSecurityRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" - UpdateSecurityRuleDetailsDestinationTypeServiceCidrBlock UpdateSecurityRuleDetailsDestinationTypeEnum = "SERVICE_CIDR_BLOCK" - UpdateSecurityRuleDetailsDestinationTypeNetworkSecurityGroup UpdateSecurityRuleDetailsDestinationTypeEnum = "NETWORK_SECURITY_GROUP" -) - -var mappingUpdateSecurityRuleDetailsDestinationType = map[string]UpdateSecurityRuleDetailsDestinationTypeEnum{ - "CIDR_BLOCK": UpdateSecurityRuleDetailsDestinationTypeCidrBlock, - "SERVICE_CIDR_BLOCK": UpdateSecurityRuleDetailsDestinationTypeServiceCidrBlock, - "NETWORK_SECURITY_GROUP": UpdateSecurityRuleDetailsDestinationTypeNetworkSecurityGroup, -} - -// GetUpdateSecurityRuleDetailsDestinationTypeEnumValues Enumerates the set of values for UpdateSecurityRuleDetailsDestinationTypeEnum -func GetUpdateSecurityRuleDetailsDestinationTypeEnumValues() []UpdateSecurityRuleDetailsDestinationTypeEnum { - values := make([]UpdateSecurityRuleDetailsDestinationTypeEnum, 0) - for _, v := range mappingUpdateSecurityRuleDetailsDestinationType { - values = append(values, v) - } - return values -} - -// UpdateSecurityRuleDetailsDirectionEnum Enum with underlying type: string -type UpdateSecurityRuleDetailsDirectionEnum string - -// Set of constants representing the allowable values for UpdateSecurityRuleDetailsDirectionEnum -const ( - UpdateSecurityRuleDetailsDirectionEgress UpdateSecurityRuleDetailsDirectionEnum = "EGRESS" - UpdateSecurityRuleDetailsDirectionIngress UpdateSecurityRuleDetailsDirectionEnum = "INGRESS" -) - -var mappingUpdateSecurityRuleDetailsDirection = map[string]UpdateSecurityRuleDetailsDirectionEnum{ - "EGRESS": UpdateSecurityRuleDetailsDirectionEgress, - "INGRESS": UpdateSecurityRuleDetailsDirectionIngress, -} - -// GetUpdateSecurityRuleDetailsDirectionEnumValues Enumerates the set of values for UpdateSecurityRuleDetailsDirectionEnum -func GetUpdateSecurityRuleDetailsDirectionEnumValues() []UpdateSecurityRuleDetailsDirectionEnum { - values := make([]UpdateSecurityRuleDetailsDirectionEnum, 0) - for _, v := range mappingUpdateSecurityRuleDetailsDirection { - values = append(values, v) - } - return values -} - -// UpdateSecurityRuleDetailsSourceTypeEnum Enum with underlying type: string -type UpdateSecurityRuleDetailsSourceTypeEnum string - -// Set of constants representing the allowable values for UpdateSecurityRuleDetailsSourceTypeEnum -const ( - UpdateSecurityRuleDetailsSourceTypeCidrBlock UpdateSecurityRuleDetailsSourceTypeEnum = "CIDR_BLOCK" - UpdateSecurityRuleDetailsSourceTypeServiceCidrBlock UpdateSecurityRuleDetailsSourceTypeEnum = "SERVICE_CIDR_BLOCK" - UpdateSecurityRuleDetailsSourceTypeNetworkSecurityGroup UpdateSecurityRuleDetailsSourceTypeEnum = "NETWORK_SECURITY_GROUP" -) - -var mappingUpdateSecurityRuleDetailsSourceType = map[string]UpdateSecurityRuleDetailsSourceTypeEnum{ - "CIDR_BLOCK": UpdateSecurityRuleDetailsSourceTypeCidrBlock, - "SERVICE_CIDR_BLOCK": UpdateSecurityRuleDetailsSourceTypeServiceCidrBlock, - "NETWORK_SECURITY_GROUP": UpdateSecurityRuleDetailsSourceTypeNetworkSecurityGroup, -} - -// GetUpdateSecurityRuleDetailsSourceTypeEnumValues Enumerates the set of values for UpdateSecurityRuleDetailsSourceTypeEnum -func GetUpdateSecurityRuleDetailsSourceTypeEnumValues() []UpdateSecurityRuleDetailsSourceTypeEnum { - values := make([]UpdateSecurityRuleDetailsSourceTypeEnum, 0) - for _, v := range mappingUpdateSecurityRuleDetailsSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_details.go deleted file mode 100644 index 26b1f7ed62..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateTunnelCpeDeviceConfigDetails The representation of UpdateTunnelCpeDeviceConfigDetails -type UpdateTunnelCpeDeviceConfigDetails struct { - - // The set of configuration answers for a CPE device. - TunnelCpeDeviceConfig []CpeDeviceConfigAnswer `mandatory:"false" json:"tunnelCpeDeviceConfig"` -} - -func (m UpdateTunnelCpeDeviceConfigDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_details.go deleted file mode 100644 index 38b3ba1066..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVcnDetails The representation of UpdateVcnDetails -type UpdateVcnDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the VCN, used in conjunction with the VNIC's hostname and - // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Not required to be unique, but it's a best practice to set unique DNS labels - // for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. - // The value cannot be changed. - // You must set this value if you want instances to be able to use hostnames to - // resolve other instances in the VCN. Otherwise the Internet and VCN Resolver - // will not work. - // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // Example: `vcn1` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateVcnDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_details.go deleted file mode 100644 index bc5f716959..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_details.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVirtualCircuitDetails The representation of UpdateVirtualCircuitDetails -type UpdateVirtualCircuitDetails struct { - - // The provisioned data rate of the connection. To get a list of the - // available bandwidth levels (that is, shapes), see - // ListFastConnectProviderVirtualCircuitBandwidthShapes. - // To be updated only by the customer who owns the virtual circuit. - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // An array of mappings, each containing properties for a cross-connect or - // cross-connect group associated with this virtual circuit. - // The customer and provider can update different properties in the mapping - // depending on the situation. See the description of the - // CrossConnectMapping. - CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` - - // The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. - // Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`. - // See Route Filtering (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. - // By default, routing information is shared for all routes in the same market. - RoutingPolicy []UpdateVirtualCircuitDetailsRoutingPolicyEnum `mandatory:"false" json:"routingPolicy,omitempty"` - - // Deprecated. Instead use `customerAsn`. - // If you specify values for both, the request will be rejected. - CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` - - // The BGP ASN of the network at the other end of the BGP - // session from Oracle. - // If the BGP session is from the customer's edge router to Oracle, the - // required value is the customer's ASN, and it can be updated only - // by the customer. - // If the BGP session is from the provider's edge router to Oracle, the - // required value is the provider's ASN, and it can be updated only - // by the provider. - // Can be a 2-byte or 4-byte ASN. Uses "asplain" format. - CustomerAsn *int64 `mandatory:"false" json:"customerAsn"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Drg - // that this private virtual circuit uses. - // To be updated only by the customer who owns the virtual circuit. - GatewayId *string `mandatory:"false" json:"gatewayId"` - - // The provider's state in relation to this virtual circuit. Relevant only - // if the customer is using FastConnect via a provider. ACTIVE - // means the provider has provisioned the virtual circuit from their - // end. INACTIVE means the provider has not yet provisioned the virtual - // circuit, or has de-provisioned it. - // To be updated only by the provider. - ProviderState UpdateVirtualCircuitDetailsProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` - - // The service key name offered by the provider (if the customer is connecting via a provider). - ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"` - - // Provider-supplied reference information about this virtual circuit. - // Relevant only if the customer is using FastConnect via a provider. - // To be updated only by the provider. - ReferenceComment *string `mandatory:"false" json:"referenceComment"` - - // The layer 3 IP MTU to use on this virtual circuit. - IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` -} - -func (m UpdateVirtualCircuitDetails) String() string { - return common.PointerString(m) -} - -// UpdateVirtualCircuitDetailsRoutingPolicyEnum Enum with underlying type: string -type UpdateVirtualCircuitDetailsRoutingPolicyEnum string - -// Set of constants representing the allowable values for UpdateVirtualCircuitDetailsRoutingPolicyEnum -const ( - UpdateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork UpdateVirtualCircuitDetailsRoutingPolicyEnum = "ORACLE_SERVICE_NETWORK" - UpdateVirtualCircuitDetailsRoutingPolicyRegional UpdateVirtualCircuitDetailsRoutingPolicyEnum = "REGIONAL" - UpdateVirtualCircuitDetailsRoutingPolicyMarketLevel UpdateVirtualCircuitDetailsRoutingPolicyEnum = "MARKET_LEVEL" - UpdateVirtualCircuitDetailsRoutingPolicyGlobal UpdateVirtualCircuitDetailsRoutingPolicyEnum = "GLOBAL" -) - -var mappingUpdateVirtualCircuitDetailsRoutingPolicy = map[string]UpdateVirtualCircuitDetailsRoutingPolicyEnum{ - "ORACLE_SERVICE_NETWORK": UpdateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork, - "REGIONAL": UpdateVirtualCircuitDetailsRoutingPolicyRegional, - "MARKET_LEVEL": UpdateVirtualCircuitDetailsRoutingPolicyMarketLevel, - "GLOBAL": UpdateVirtualCircuitDetailsRoutingPolicyGlobal, -} - -// GetUpdateVirtualCircuitDetailsRoutingPolicyEnumValues Enumerates the set of values for UpdateVirtualCircuitDetailsRoutingPolicyEnum -func GetUpdateVirtualCircuitDetailsRoutingPolicyEnumValues() []UpdateVirtualCircuitDetailsRoutingPolicyEnum { - values := make([]UpdateVirtualCircuitDetailsRoutingPolicyEnum, 0) - for _, v := range mappingUpdateVirtualCircuitDetailsRoutingPolicy { - values = append(values, v) - } - return values -} - -// UpdateVirtualCircuitDetailsProviderStateEnum Enum with underlying type: string -type UpdateVirtualCircuitDetailsProviderStateEnum string - -// Set of constants representing the allowable values for UpdateVirtualCircuitDetailsProviderStateEnum -const ( - UpdateVirtualCircuitDetailsProviderStateActive UpdateVirtualCircuitDetailsProviderStateEnum = "ACTIVE" - UpdateVirtualCircuitDetailsProviderStateInactive UpdateVirtualCircuitDetailsProviderStateEnum = "INACTIVE" -) - -var mappingUpdateVirtualCircuitDetailsProviderState = map[string]UpdateVirtualCircuitDetailsProviderStateEnum{ - "ACTIVE": UpdateVirtualCircuitDetailsProviderStateActive, - "INACTIVE": UpdateVirtualCircuitDetailsProviderStateInactive, -} - -// GetUpdateVirtualCircuitDetailsProviderStateEnumValues Enumerates the set of values for UpdateVirtualCircuitDetailsProviderStateEnum -func GetUpdateVirtualCircuitDetailsProviderStateEnumValues() []UpdateVirtualCircuitDetailsProviderStateEnum { - values := make([]UpdateVirtualCircuitDetailsProviderStateEnum, 0) - for _, v := range mappingUpdateVirtualCircuitDetailsProviderState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_details.go deleted file mode 100644 index 3dfaa05e2f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_details.go +++ /dev/null @@ -1,1745 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVnicShapeDetails This structure is used when updating the shape of VNIC in VNIC attachment. -type UpdateVnicShapeDetails struct { - - // VNIC whose attachments need to be updated to the destination vnic shape. - VnicId *string `mandatory:"true" json:"vnicId"` - - // Shape of VNIC that will be used to update VNIC attachment. - VnicShape UpdateVnicShapeDetailsVnicShapeEnum `mandatory:"true" json:"vnicShape"` -} - -func (m UpdateVnicShapeDetails) String() string { - return common.PointerString(m) -} - -// UpdateVnicShapeDetailsVnicShapeEnum Enum with underlying type: string -type UpdateVnicShapeDetailsVnicShapeEnum string - -// Set of constants representing the allowable values for UpdateVnicShapeDetailsVnicShapeEnum -const ( - UpdateVnicShapeDetailsVnicShapeDynamic UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC" - UpdateVnicShapeDetailsVnicShapeFixed0040 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040" - UpdateVnicShapeDetailsVnicShapeFixed0060 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0060" - UpdateVnicShapeDetailsVnicShapeFixed0060Psm UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0060_PSM" - UpdateVnicShapeDetailsVnicShapeFixed0100 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100" - UpdateVnicShapeDetailsVnicShapeFixed0120 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0120" - UpdateVnicShapeDetailsVnicShapeFixed01202x UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0120_2X" - UpdateVnicShapeDetailsVnicShapeFixed0200 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200" - UpdateVnicShapeDetailsVnicShapeFixed0240 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0240" - UpdateVnicShapeDetailsVnicShapeFixed0480 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0480" - UpdateVnicShapeDetailsVnicShapeEntirehost UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST" - UpdateVnicShapeDetailsVnicShapeDynamic25g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_25G" - UpdateVnicShapeDetailsVnicShapeFixed004025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_25G" - UpdateVnicShapeDetailsVnicShapeFixed010025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_25G" - UpdateVnicShapeDetailsVnicShapeFixed020025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_25G" - UpdateVnicShapeDetailsVnicShapeFixed040025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_25G" - UpdateVnicShapeDetailsVnicShapeFixed080025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_25G" - UpdateVnicShapeDetailsVnicShapeFixed160025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_25G" - UpdateVnicShapeDetailsVnicShapeFixed240025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_25G" - UpdateVnicShapeDetailsVnicShapeEntirehost25g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_25G" - UpdateVnicShapeDetailsVnicShapeDynamicE125g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0040E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0070E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0070_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0140E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0140_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0280E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0280_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0560E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0560_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed1120E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1120_E1_25G" - UpdateVnicShapeDetailsVnicShapeFixed1680E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1680_E1_25G" - UpdateVnicShapeDetailsVnicShapeEntirehostE125g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_E1_25G" - UpdateVnicShapeDetailsVnicShapeDynamicB125g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_B1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0040B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_B1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0060B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0060_B1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0120B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0120_B1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0240B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0240_B1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0480B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0480_B1_25G" - UpdateVnicShapeDetailsVnicShapeFixed0960B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0960_B1_25G" - UpdateVnicShapeDetailsVnicShapeEntirehostB125g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_B1_25G" - UpdateVnicShapeDetailsVnicShapeMicroVmFixed0048E125g UpdateVnicShapeDetailsVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" - UpdateVnicShapeDetailsVnicShapeMicroLbFixed0001E125g UpdateVnicShapeDetailsVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" - UpdateVnicShapeDetailsVnicShapeVnicaasFixed0200 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FIXED0200" - UpdateVnicShapeDetailsVnicShapeVnicaasFixed0400 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FIXED0400" - UpdateVnicShapeDetailsVnicShapeVnicaasFixed0700 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FIXED0700" - UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved10g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" - UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved25g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" - UpdateVnicShapeDetailsVnicShapeVnicaasTelesis25g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_TELESIS_25G" - UpdateVnicShapeDetailsVnicShapeVnicaasTelesis10g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_TELESIS_10G" - UpdateVnicShapeDetailsVnicShapeVnicaasAmbassadorFixed0100 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" - UpdateVnicShapeDetailsVnicShapeVnicaasPrivatedns UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_PRIVATEDNS" - UpdateVnicShapeDetailsVnicShapeVnicaasFwaas UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FWAAS" - UpdateVnicShapeDetailsVnicShapeDynamicE350g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0040E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0300_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0500_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0600_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0700_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed0900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0900_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1000_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1100_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1300_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1400_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1500_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1700_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1800_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed1900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1900_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2100_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2200_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2300_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2500_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2600_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2700_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed2900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2900_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3000_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3100_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3300_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3400_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3500_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3700_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3800_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed3900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3900_E3_50G" - UpdateVnicShapeDetailsVnicShapeFixed4000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_E3_50G" - UpdateVnicShapeDetailsVnicShapeEntirehostE350g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_E3_50G" - UpdateVnicShapeDetailsVnicShapeDynamicE450g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0040E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0300_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0500_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0600_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0700_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed0900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0900_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1000_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1100_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1300_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1400_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1500_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1700_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1800_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed1900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1900_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2100_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2200_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2300_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2500_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2600_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2700_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed2900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2900_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3000_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3100_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3300_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3400_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3500_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3700_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3800_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed3900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3900_E4_50G" - UpdateVnicShapeDetailsVnicShapeFixed4000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_E4_50G" - UpdateVnicShapeDetailsVnicShapeEntirehostE450g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_E4_50G" - UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E350g UpdateVnicShapeDetailsVnicShapeEnum = "MICRO_VM_FIXED0050_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0090X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0270X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0630X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0810X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0990X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1170X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1530X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1710X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1890X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2070X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2430X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2610X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2790X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2970X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3330X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3510X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3690X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3870X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4230X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4410X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4590X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4770X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" - UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" - UpdateVnicShapeDetailsVnicShapeDynamicA150g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0040A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0300_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0500_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0600_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0700_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed0900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0900_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1000_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1100_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1300_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1400_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1500_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1700_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1800_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed1900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1900_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2100_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2200_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2300_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2500_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2600_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2700_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed2900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2900_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3000_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3100_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3300_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3400_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3500_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3700_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3800_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed3900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3900_A1_50G" - UpdateVnicShapeDetailsVnicShapeFixed4000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_A1_50G" - UpdateVnicShapeDetailsVnicShapeEntirehostA150g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_A1_50G" - UpdateVnicShapeDetailsVnicShapeDynamicX950g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed0040X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed0400X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed0800X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed1200X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed1600X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed2000X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed2400X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed2800X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed3200X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_X9_50G" - UpdateVnicShapeDetailsVnicShapeFixed4000X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed0200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed0400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed0600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed0800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed1000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed1200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed1400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed1600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed1800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed2000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed2200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed2400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed2600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed2800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed3000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed3200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed3400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed3800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" - UpdateVnicShapeDetailsVnicShapeStandardVmFixed4000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" - UpdateVnicShapeDetailsVnicShapeEntirehostX950g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_X9_50G" -) - -var mappingUpdateVnicShapeDetailsVnicShape = map[string]UpdateVnicShapeDetailsVnicShapeEnum{ - "DYNAMIC": UpdateVnicShapeDetailsVnicShapeDynamic, - "FIXED0040": UpdateVnicShapeDetailsVnicShapeFixed0040, - "FIXED0060": UpdateVnicShapeDetailsVnicShapeFixed0060, - "FIXED0060_PSM": UpdateVnicShapeDetailsVnicShapeFixed0060Psm, - "FIXED0100": UpdateVnicShapeDetailsVnicShapeFixed0100, - "FIXED0120": UpdateVnicShapeDetailsVnicShapeFixed0120, - "FIXED0120_2X": UpdateVnicShapeDetailsVnicShapeFixed01202x, - "FIXED0200": UpdateVnicShapeDetailsVnicShapeFixed0200, - "FIXED0240": UpdateVnicShapeDetailsVnicShapeFixed0240, - "FIXED0480": UpdateVnicShapeDetailsVnicShapeFixed0480, - "ENTIREHOST": UpdateVnicShapeDetailsVnicShapeEntirehost, - "DYNAMIC_25G": UpdateVnicShapeDetailsVnicShapeDynamic25g, - "FIXED0040_25G": UpdateVnicShapeDetailsVnicShapeFixed004025g, - "FIXED0100_25G": UpdateVnicShapeDetailsVnicShapeFixed010025g, - "FIXED0200_25G": UpdateVnicShapeDetailsVnicShapeFixed020025g, - "FIXED0400_25G": UpdateVnicShapeDetailsVnicShapeFixed040025g, - "FIXED0800_25G": UpdateVnicShapeDetailsVnicShapeFixed080025g, - "FIXED1600_25G": UpdateVnicShapeDetailsVnicShapeFixed160025g, - "FIXED2400_25G": UpdateVnicShapeDetailsVnicShapeFixed240025g, - "ENTIREHOST_25G": UpdateVnicShapeDetailsVnicShapeEntirehost25g, - "DYNAMIC_E1_25G": UpdateVnicShapeDetailsVnicShapeDynamicE125g, - "FIXED0040_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0040E125g, - "FIXED0070_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0070E125g, - "FIXED0140_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0140E125g, - "FIXED0280_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0280E125g, - "FIXED0560_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0560E125g, - "FIXED1120_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed1120E125g, - "FIXED1680_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed1680E125g, - "ENTIREHOST_E1_25G": UpdateVnicShapeDetailsVnicShapeEntirehostE125g, - "DYNAMIC_B1_25G": UpdateVnicShapeDetailsVnicShapeDynamicB125g, - "FIXED0040_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0040B125g, - "FIXED0060_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0060B125g, - "FIXED0120_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0120B125g, - "FIXED0240_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0240B125g, - "FIXED0480_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0480B125g, - "FIXED0960_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0960B125g, - "ENTIREHOST_B1_25G": UpdateVnicShapeDetailsVnicShapeEntirehostB125g, - "MICRO_VM_FIXED0048_E1_25G": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0048E125g, - "MICRO_LB_FIXED0001_E1_25G": UpdateVnicShapeDetailsVnicShapeMicroLbFixed0001E125g, - "VNICAAS_FIXED0200": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0200, - "VNICAAS_FIXED0400": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0400, - "VNICAAS_FIXED0700": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0700, - "VNICAAS_NLB_APPROVED_10G": UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved10g, - "VNICAAS_NLB_APPROVED_25G": UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved25g, - "VNICAAS_TELESIS_25G": UpdateVnicShapeDetailsVnicShapeVnicaasTelesis25g, - "VNICAAS_TELESIS_10G": UpdateVnicShapeDetailsVnicShapeVnicaasTelesis10g, - "VNICAAS_AMBASSADOR_FIXED0100": UpdateVnicShapeDetailsVnicShapeVnicaasAmbassadorFixed0100, - "VNICAAS_PRIVATEDNS": UpdateVnicShapeDetailsVnicShapeVnicaasPrivatedns, - "VNICAAS_FWAAS": UpdateVnicShapeDetailsVnicShapeVnicaasFwaas, - "DYNAMIC_E3_50G": UpdateVnicShapeDetailsVnicShapeDynamicE350g, - "FIXED0040_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0040E350g, - "FIXED0100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0100E350g, - "FIXED0200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0200E350g, - "FIXED0300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0300E350g, - "FIXED0400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0400E350g, - "FIXED0500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0500E350g, - "FIXED0600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0600E350g, - "FIXED0700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0700E350g, - "FIXED0800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0800E350g, - "FIXED0900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0900E350g, - "FIXED1000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1000E350g, - "FIXED1100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1100E350g, - "FIXED1200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1200E350g, - "FIXED1300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1300E350g, - "FIXED1400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1400E350g, - "FIXED1500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1500E350g, - "FIXED1600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1600E350g, - "FIXED1700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1700E350g, - "FIXED1800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1800E350g, - "FIXED1900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1900E350g, - "FIXED2000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2000E350g, - "FIXED2100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2100E350g, - "FIXED2200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2200E350g, - "FIXED2300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2300E350g, - "FIXED2400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2400E350g, - "FIXED2500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2500E350g, - "FIXED2600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2600E350g, - "FIXED2700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2700E350g, - "FIXED2800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2800E350g, - "FIXED2900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2900E350g, - "FIXED3000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3000E350g, - "FIXED3100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3100E350g, - "FIXED3200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3200E350g, - "FIXED3300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3300E350g, - "FIXED3400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3400E350g, - "FIXED3500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3500E350g, - "FIXED3600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3600E350g, - "FIXED3700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3700E350g, - "FIXED3800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3800E350g, - "FIXED3900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3900E350g, - "FIXED4000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed4000E350g, - "ENTIREHOST_E3_50G": UpdateVnicShapeDetailsVnicShapeEntirehostE350g, - "DYNAMIC_E4_50G": UpdateVnicShapeDetailsVnicShapeDynamicE450g, - "FIXED0040_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0040E450g, - "FIXED0100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0100E450g, - "FIXED0200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0200E450g, - "FIXED0300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0300E450g, - "FIXED0400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0400E450g, - "FIXED0500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0500E450g, - "FIXED0600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0600E450g, - "FIXED0700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0700E450g, - "FIXED0800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0800E450g, - "FIXED0900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0900E450g, - "FIXED1000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1000E450g, - "FIXED1100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1100E450g, - "FIXED1200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1200E450g, - "FIXED1300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1300E450g, - "FIXED1400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1400E450g, - "FIXED1500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1500E450g, - "FIXED1600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1600E450g, - "FIXED1700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1700E450g, - "FIXED1800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1800E450g, - "FIXED1900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1900E450g, - "FIXED2000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2000E450g, - "FIXED2100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2100E450g, - "FIXED2200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2200E450g, - "FIXED2300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2300E450g, - "FIXED2400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2400E450g, - "FIXED2500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2500E450g, - "FIXED2600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2600E450g, - "FIXED2700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2700E450g, - "FIXED2800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2800E450g, - "FIXED2900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2900E450g, - "FIXED3000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3000E450g, - "FIXED3100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3100E450g, - "FIXED3200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3200E450g, - "FIXED3300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3300E450g, - "FIXED3400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3400E450g, - "FIXED3500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3500E450g, - "FIXED3600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3600E450g, - "FIXED3700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3700E450g, - "FIXED3800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3800E450g, - "FIXED3900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3900E450g, - "FIXED4000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed4000E450g, - "ENTIREHOST_E4_50G": UpdateVnicShapeDetailsVnicShapeEntirehostE450g, - "MICRO_VM_FIXED0050_E3_50G": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E350g, - "SUBCORE_VM_FIXED0025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E350g, - "SUBCORE_VM_FIXED0050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E350g, - "SUBCORE_VM_FIXED0075_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E350g, - "SUBCORE_VM_FIXED0100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E350g, - "SUBCORE_VM_FIXED0125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E350g, - "SUBCORE_VM_FIXED0150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E350g, - "SUBCORE_VM_FIXED0175_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E350g, - "SUBCORE_VM_FIXED0200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E350g, - "SUBCORE_VM_FIXED0225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E350g, - "SUBCORE_VM_FIXED0250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E350g, - "SUBCORE_VM_FIXED0275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E350g, - "SUBCORE_VM_FIXED0300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E350g, - "SUBCORE_VM_FIXED0325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E350g, - "SUBCORE_VM_FIXED0350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E350g, - "SUBCORE_VM_FIXED0375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E350g, - "SUBCORE_VM_FIXED0400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E350g, - "SUBCORE_VM_FIXED0425_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E350g, - "SUBCORE_VM_FIXED0450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E350g, - "SUBCORE_VM_FIXED0475_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E350g, - "SUBCORE_VM_FIXED0500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E350g, - "SUBCORE_VM_FIXED0525_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E350g, - "SUBCORE_VM_FIXED0550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E350g, - "SUBCORE_VM_FIXED0575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E350g, - "SUBCORE_VM_FIXED0600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E350g, - "SUBCORE_VM_FIXED0625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E350g, - "SUBCORE_VM_FIXED0650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E350g, - "SUBCORE_VM_FIXED0675_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E350g, - "SUBCORE_VM_FIXED0700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E350g, - "SUBCORE_VM_FIXED0725_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E350g, - "SUBCORE_VM_FIXED0750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E350g, - "SUBCORE_VM_FIXED0775_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E350g, - "SUBCORE_VM_FIXED0800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E350g, - "SUBCORE_VM_FIXED0825_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E350g, - "SUBCORE_VM_FIXED0850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E350g, - "SUBCORE_VM_FIXED0875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E350g, - "SUBCORE_VM_FIXED0900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E350g, - "SUBCORE_VM_FIXED0925_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E350g, - "SUBCORE_VM_FIXED0950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E350g, - "SUBCORE_VM_FIXED0975_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E350g, - "SUBCORE_VM_FIXED1000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E350g, - "SUBCORE_VM_FIXED1025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E350g, - "SUBCORE_VM_FIXED1050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E350g, - "SUBCORE_VM_FIXED1075_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E350g, - "SUBCORE_VM_FIXED1100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E350g, - "SUBCORE_VM_FIXED1125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E350g, - "SUBCORE_VM_FIXED1150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E350g, - "SUBCORE_VM_FIXED1175_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E350g, - "SUBCORE_VM_FIXED1200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E350g, - "SUBCORE_VM_FIXED1225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E350g, - "SUBCORE_VM_FIXED1250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E350g, - "SUBCORE_VM_FIXED1275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E350g, - "SUBCORE_VM_FIXED1300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E350g, - "SUBCORE_VM_FIXED1325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E350g, - "SUBCORE_VM_FIXED1350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E350g, - "SUBCORE_VM_FIXED1375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E350g, - "SUBCORE_VM_FIXED1400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E350g, - "SUBCORE_VM_FIXED1425_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E350g, - "SUBCORE_VM_FIXED1450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E350g, - "SUBCORE_VM_FIXED1475_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E350g, - "SUBCORE_VM_FIXED1500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E350g, - "SUBCORE_VM_FIXED1525_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E350g, - "SUBCORE_VM_FIXED1550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E350g, - "SUBCORE_VM_FIXED1575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E350g, - "SUBCORE_VM_FIXED1600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E350g, - "SUBCORE_VM_FIXED1625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E350g, - "SUBCORE_VM_FIXED1650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E350g, - "SUBCORE_VM_FIXED1700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E350g, - "SUBCORE_VM_FIXED1725_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E350g, - "SUBCORE_VM_FIXED1750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E350g, - "SUBCORE_VM_FIXED1800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E350g, - "SUBCORE_VM_FIXED1850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E350g, - "SUBCORE_VM_FIXED1875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E350g, - "SUBCORE_VM_FIXED1900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E350g, - "SUBCORE_VM_FIXED1925_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E350g, - "SUBCORE_VM_FIXED1950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E350g, - "SUBCORE_VM_FIXED2000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E350g, - "SUBCORE_VM_FIXED2025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E350g, - "SUBCORE_VM_FIXED2050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E350g, - "SUBCORE_VM_FIXED2100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E350g, - "SUBCORE_VM_FIXED2125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E350g, - "SUBCORE_VM_FIXED2150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E350g, - "SUBCORE_VM_FIXED2175_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E350g, - "SUBCORE_VM_FIXED2200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E350g, - "SUBCORE_VM_FIXED2250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E350g, - "SUBCORE_VM_FIXED2275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E350g, - "SUBCORE_VM_FIXED2300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E350g, - "SUBCORE_VM_FIXED2325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E350g, - "SUBCORE_VM_FIXED2350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E350g, - "SUBCORE_VM_FIXED2375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E350g, - "SUBCORE_VM_FIXED2400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E350g, - "SUBCORE_VM_FIXED2450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E350g, - "SUBCORE_VM_FIXED2475_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E350g, - "SUBCORE_VM_FIXED2500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E350g, - "SUBCORE_VM_FIXED2550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E350g, - "SUBCORE_VM_FIXED2600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E350g, - "SUBCORE_VM_FIXED2625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E350g, - "SUBCORE_VM_FIXED2650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E350g, - "SUBCORE_VM_FIXED2700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E350g, - "SUBCORE_VM_FIXED2750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E350g, - "SUBCORE_VM_FIXED2775_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E350g, - "SUBCORE_VM_FIXED2800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E350g, - "SUBCORE_VM_FIXED2850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E350g, - "SUBCORE_VM_FIXED2875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E350g, - "SUBCORE_VM_FIXED2900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E350g, - "SUBCORE_VM_FIXED2925_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E350g, - "SUBCORE_VM_FIXED2950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E350g, - "SUBCORE_VM_FIXED2975_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E350g, - "SUBCORE_VM_FIXED3000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E350g, - "SUBCORE_VM_FIXED3025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E350g, - "SUBCORE_VM_FIXED3050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E350g, - "SUBCORE_VM_FIXED3075_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E350g, - "SUBCORE_VM_FIXED3100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E350g, - "SUBCORE_VM_FIXED3125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E350g, - "SUBCORE_VM_FIXED3150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E350g, - "SUBCORE_VM_FIXED3200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E350g, - "SUBCORE_VM_FIXED3225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E350g, - "SUBCORE_VM_FIXED3250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E350g, - "SUBCORE_VM_FIXED3300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E350g, - "SUBCORE_VM_FIXED3325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E350g, - "SUBCORE_VM_FIXED3375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E350g, - "SUBCORE_VM_FIXED3400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E350g, - "SUBCORE_VM_FIXED3450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E350g, - "SUBCORE_VM_FIXED3500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E350g, - "SUBCORE_VM_FIXED3525_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E350g, - "SUBCORE_VM_FIXED3575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E350g, - "SUBCORE_VM_FIXED3600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E350g, - "SUBCORE_VM_FIXED3625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E350g, - "SUBCORE_VM_FIXED3675_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E350g, - "SUBCORE_VM_FIXED3700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E350g, - "SUBCORE_VM_FIXED3750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E350g, - "SUBCORE_VM_FIXED3800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E350g, - "SUBCORE_VM_FIXED3825_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E350g, - "SUBCORE_VM_FIXED3850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E350g, - "SUBCORE_VM_FIXED3875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E350g, - "SUBCORE_VM_FIXED3900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E350g, - "SUBCORE_VM_FIXED3975_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E350g, - "SUBCORE_VM_FIXED4000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E350g, - "SUBCORE_VM_FIXED4025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E350g, - "SUBCORE_VM_FIXED4050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E350g, - "SUBCORE_VM_FIXED4100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E350g, - "SUBCORE_VM_FIXED4125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E350g, - "SUBCORE_VM_FIXED4200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E350g, - "SUBCORE_VM_FIXED4225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E350g, - "SUBCORE_VM_FIXED4250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E350g, - "SUBCORE_VM_FIXED4275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E350g, - "SUBCORE_VM_FIXED4300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E350g, - "SUBCORE_VM_FIXED4350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E350g, - "SUBCORE_VM_FIXED4375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E350g, - "SUBCORE_VM_FIXED4400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E350g, - "SUBCORE_VM_FIXED4425_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E350g, - "SUBCORE_VM_FIXED4500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E350g, - "SUBCORE_VM_FIXED4550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E350g, - "SUBCORE_VM_FIXED4575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E350g, - "SUBCORE_VM_FIXED4600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E350g, - "SUBCORE_VM_FIXED4625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E350g, - "SUBCORE_VM_FIXED4650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E350g, - "SUBCORE_VM_FIXED4675_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E350g, - "SUBCORE_VM_FIXED4700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E350g, - "SUBCORE_VM_FIXED4725_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E350g, - "SUBCORE_VM_FIXED4750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E350g, - "SUBCORE_VM_FIXED4800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E350g, - "SUBCORE_VM_FIXED4875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E350g, - "SUBCORE_VM_FIXED4900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E350g, - "SUBCORE_VM_FIXED4950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E350g, - "SUBCORE_VM_FIXED5000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E350g, - "SUBCORE_VM_FIXED0025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E450g, - "SUBCORE_VM_FIXED0050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E450g, - "SUBCORE_VM_FIXED0075_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E450g, - "SUBCORE_VM_FIXED0100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E450g, - "SUBCORE_VM_FIXED0125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E450g, - "SUBCORE_VM_FIXED0150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E450g, - "SUBCORE_VM_FIXED0175_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E450g, - "SUBCORE_VM_FIXED0200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E450g, - "SUBCORE_VM_FIXED0225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E450g, - "SUBCORE_VM_FIXED0250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E450g, - "SUBCORE_VM_FIXED0275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E450g, - "SUBCORE_VM_FIXED0300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E450g, - "SUBCORE_VM_FIXED0325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E450g, - "SUBCORE_VM_FIXED0350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E450g, - "SUBCORE_VM_FIXED0375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E450g, - "SUBCORE_VM_FIXED0400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E450g, - "SUBCORE_VM_FIXED0425_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E450g, - "SUBCORE_VM_FIXED0450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E450g, - "SUBCORE_VM_FIXED0475_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E450g, - "SUBCORE_VM_FIXED0500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E450g, - "SUBCORE_VM_FIXED0525_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E450g, - "SUBCORE_VM_FIXED0550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E450g, - "SUBCORE_VM_FIXED0575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E450g, - "SUBCORE_VM_FIXED0600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E450g, - "SUBCORE_VM_FIXED0625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E450g, - "SUBCORE_VM_FIXED0650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E450g, - "SUBCORE_VM_FIXED0675_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E450g, - "SUBCORE_VM_FIXED0700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E450g, - "SUBCORE_VM_FIXED0725_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E450g, - "SUBCORE_VM_FIXED0750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E450g, - "SUBCORE_VM_FIXED0775_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E450g, - "SUBCORE_VM_FIXED0800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E450g, - "SUBCORE_VM_FIXED0825_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E450g, - "SUBCORE_VM_FIXED0850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E450g, - "SUBCORE_VM_FIXED0875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E450g, - "SUBCORE_VM_FIXED0900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E450g, - "SUBCORE_VM_FIXED0925_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E450g, - "SUBCORE_VM_FIXED0950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E450g, - "SUBCORE_VM_FIXED0975_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E450g, - "SUBCORE_VM_FIXED1000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E450g, - "SUBCORE_VM_FIXED1025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E450g, - "SUBCORE_VM_FIXED1050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E450g, - "SUBCORE_VM_FIXED1075_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E450g, - "SUBCORE_VM_FIXED1100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E450g, - "SUBCORE_VM_FIXED1125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E450g, - "SUBCORE_VM_FIXED1150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E450g, - "SUBCORE_VM_FIXED1175_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E450g, - "SUBCORE_VM_FIXED1200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E450g, - "SUBCORE_VM_FIXED1225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E450g, - "SUBCORE_VM_FIXED1250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E450g, - "SUBCORE_VM_FIXED1275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E450g, - "SUBCORE_VM_FIXED1300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E450g, - "SUBCORE_VM_FIXED1325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E450g, - "SUBCORE_VM_FIXED1350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E450g, - "SUBCORE_VM_FIXED1375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E450g, - "SUBCORE_VM_FIXED1400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E450g, - "SUBCORE_VM_FIXED1425_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E450g, - "SUBCORE_VM_FIXED1450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E450g, - "SUBCORE_VM_FIXED1475_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E450g, - "SUBCORE_VM_FIXED1500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E450g, - "SUBCORE_VM_FIXED1525_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E450g, - "SUBCORE_VM_FIXED1550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E450g, - "SUBCORE_VM_FIXED1575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E450g, - "SUBCORE_VM_FIXED1600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E450g, - "SUBCORE_VM_FIXED1625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E450g, - "SUBCORE_VM_FIXED1650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E450g, - "SUBCORE_VM_FIXED1700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E450g, - "SUBCORE_VM_FIXED1725_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E450g, - "SUBCORE_VM_FIXED1750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E450g, - "SUBCORE_VM_FIXED1800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E450g, - "SUBCORE_VM_FIXED1850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E450g, - "SUBCORE_VM_FIXED1875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E450g, - "SUBCORE_VM_FIXED1900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E450g, - "SUBCORE_VM_FIXED1925_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E450g, - "SUBCORE_VM_FIXED1950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E450g, - "SUBCORE_VM_FIXED2000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E450g, - "SUBCORE_VM_FIXED2025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E450g, - "SUBCORE_VM_FIXED2050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E450g, - "SUBCORE_VM_FIXED2100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E450g, - "SUBCORE_VM_FIXED2125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E450g, - "SUBCORE_VM_FIXED2150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E450g, - "SUBCORE_VM_FIXED2175_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E450g, - "SUBCORE_VM_FIXED2200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E450g, - "SUBCORE_VM_FIXED2250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E450g, - "SUBCORE_VM_FIXED2275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E450g, - "SUBCORE_VM_FIXED2300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E450g, - "SUBCORE_VM_FIXED2325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E450g, - "SUBCORE_VM_FIXED2350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E450g, - "SUBCORE_VM_FIXED2375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E450g, - "SUBCORE_VM_FIXED2400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E450g, - "SUBCORE_VM_FIXED2450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E450g, - "SUBCORE_VM_FIXED2475_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E450g, - "SUBCORE_VM_FIXED2500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E450g, - "SUBCORE_VM_FIXED2550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E450g, - "SUBCORE_VM_FIXED2600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E450g, - "SUBCORE_VM_FIXED2625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E450g, - "SUBCORE_VM_FIXED2650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E450g, - "SUBCORE_VM_FIXED2700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E450g, - "SUBCORE_VM_FIXED2750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E450g, - "SUBCORE_VM_FIXED2775_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E450g, - "SUBCORE_VM_FIXED2800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E450g, - "SUBCORE_VM_FIXED2850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E450g, - "SUBCORE_VM_FIXED2875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E450g, - "SUBCORE_VM_FIXED2900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E450g, - "SUBCORE_VM_FIXED2925_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E450g, - "SUBCORE_VM_FIXED2950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E450g, - "SUBCORE_VM_FIXED2975_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E450g, - "SUBCORE_VM_FIXED3000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E450g, - "SUBCORE_VM_FIXED3025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E450g, - "SUBCORE_VM_FIXED3050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E450g, - "SUBCORE_VM_FIXED3075_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E450g, - "SUBCORE_VM_FIXED3100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E450g, - "SUBCORE_VM_FIXED3125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E450g, - "SUBCORE_VM_FIXED3150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E450g, - "SUBCORE_VM_FIXED3200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E450g, - "SUBCORE_VM_FIXED3225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E450g, - "SUBCORE_VM_FIXED3250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E450g, - "SUBCORE_VM_FIXED3300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E450g, - "SUBCORE_VM_FIXED3325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E450g, - "SUBCORE_VM_FIXED3375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E450g, - "SUBCORE_VM_FIXED3400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E450g, - "SUBCORE_VM_FIXED3450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E450g, - "SUBCORE_VM_FIXED3500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E450g, - "SUBCORE_VM_FIXED3525_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E450g, - "SUBCORE_VM_FIXED3575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E450g, - "SUBCORE_VM_FIXED3600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E450g, - "SUBCORE_VM_FIXED3625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E450g, - "SUBCORE_VM_FIXED3675_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E450g, - "SUBCORE_VM_FIXED3700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E450g, - "SUBCORE_VM_FIXED3750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E450g, - "SUBCORE_VM_FIXED3800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E450g, - "SUBCORE_VM_FIXED3825_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E450g, - "SUBCORE_VM_FIXED3850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E450g, - "SUBCORE_VM_FIXED3875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E450g, - "SUBCORE_VM_FIXED3900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E450g, - "SUBCORE_VM_FIXED3975_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E450g, - "SUBCORE_VM_FIXED4000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E450g, - "SUBCORE_VM_FIXED4025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E450g, - "SUBCORE_VM_FIXED4050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E450g, - "SUBCORE_VM_FIXED4100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E450g, - "SUBCORE_VM_FIXED4125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E450g, - "SUBCORE_VM_FIXED4200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E450g, - "SUBCORE_VM_FIXED4225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E450g, - "SUBCORE_VM_FIXED4250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E450g, - "SUBCORE_VM_FIXED4275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E450g, - "SUBCORE_VM_FIXED4300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E450g, - "SUBCORE_VM_FIXED4350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E450g, - "SUBCORE_VM_FIXED4375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E450g, - "SUBCORE_VM_FIXED4400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E450g, - "SUBCORE_VM_FIXED4425_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E450g, - "SUBCORE_VM_FIXED4500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E450g, - "SUBCORE_VM_FIXED4550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E450g, - "SUBCORE_VM_FIXED4575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E450g, - "SUBCORE_VM_FIXED4600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E450g, - "SUBCORE_VM_FIXED4625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E450g, - "SUBCORE_VM_FIXED4650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E450g, - "SUBCORE_VM_FIXED4675_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E450g, - "SUBCORE_VM_FIXED4700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E450g, - "SUBCORE_VM_FIXED4725_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E450g, - "SUBCORE_VM_FIXED4750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E450g, - "SUBCORE_VM_FIXED4800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E450g, - "SUBCORE_VM_FIXED4875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E450g, - "SUBCORE_VM_FIXED4900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E450g, - "SUBCORE_VM_FIXED4950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E450g, - "SUBCORE_VM_FIXED5000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E450g, - "SUBCORE_VM_FIXED0020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0020A150g, - "SUBCORE_VM_FIXED0040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0040A150g, - "SUBCORE_VM_FIXED0060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0060A150g, - "SUBCORE_VM_FIXED0080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0080A150g, - "SUBCORE_VM_FIXED0100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100A150g, - "SUBCORE_VM_FIXED0120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0120A150g, - "SUBCORE_VM_FIXED0140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0140A150g, - "SUBCORE_VM_FIXED0160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0160A150g, - "SUBCORE_VM_FIXED0180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180A150g, - "SUBCORE_VM_FIXED0200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200A150g, - "SUBCORE_VM_FIXED0220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0220A150g, - "SUBCORE_VM_FIXED0240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0240A150g, - "SUBCORE_VM_FIXED0260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0260A150g, - "SUBCORE_VM_FIXED0280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0280A150g, - "SUBCORE_VM_FIXED0300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300A150g, - "SUBCORE_VM_FIXED0320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0320A150g, - "SUBCORE_VM_FIXED0340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0340A150g, - "SUBCORE_VM_FIXED0360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360A150g, - "SUBCORE_VM_FIXED0380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0380A150g, - "SUBCORE_VM_FIXED0400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400A150g, - "SUBCORE_VM_FIXED0420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0420A150g, - "SUBCORE_VM_FIXED0440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0440A150g, - "SUBCORE_VM_FIXED0460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0460A150g, - "SUBCORE_VM_FIXED0480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0480A150g, - "SUBCORE_VM_FIXED0500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500A150g, - "SUBCORE_VM_FIXED0520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0520A150g, - "SUBCORE_VM_FIXED0540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540A150g, - "SUBCORE_VM_FIXED0560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0560A150g, - "SUBCORE_VM_FIXED0580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0580A150g, - "SUBCORE_VM_FIXED0600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600A150g, - "SUBCORE_VM_FIXED0620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0620A150g, - "SUBCORE_VM_FIXED0640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0640A150g, - "SUBCORE_VM_FIXED0660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0660A150g, - "SUBCORE_VM_FIXED0680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0680A150g, - "SUBCORE_VM_FIXED0700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700A150g, - "SUBCORE_VM_FIXED0720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720A150g, - "SUBCORE_VM_FIXED0740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0740A150g, - "SUBCORE_VM_FIXED0760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0760A150g, - "SUBCORE_VM_FIXED0780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0780A150g, - "SUBCORE_VM_FIXED0800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800A150g, - "SUBCORE_VM_FIXED0820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0820A150g, - "SUBCORE_VM_FIXED0840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0840A150g, - "SUBCORE_VM_FIXED0860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0860A150g, - "SUBCORE_VM_FIXED0880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0880A150g, - "SUBCORE_VM_FIXED0900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900A150g, - "SUBCORE_VM_FIXED0920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0920A150g, - "SUBCORE_VM_FIXED0940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0940A150g, - "SUBCORE_VM_FIXED0960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0960A150g, - "SUBCORE_VM_FIXED0980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0980A150g, - "SUBCORE_VM_FIXED1000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000A150g, - "SUBCORE_VM_FIXED1020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1020A150g, - "SUBCORE_VM_FIXED1040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1040A150g, - "SUBCORE_VM_FIXED1060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1060A150g, - "SUBCORE_VM_FIXED1080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080A150g, - "SUBCORE_VM_FIXED1100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100A150g, - "SUBCORE_VM_FIXED1120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1120A150g, - "SUBCORE_VM_FIXED1140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1140A150g, - "SUBCORE_VM_FIXED1160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1160A150g, - "SUBCORE_VM_FIXED1180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1180A150g, - "SUBCORE_VM_FIXED1200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200A150g, - "SUBCORE_VM_FIXED1220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1220A150g, - "SUBCORE_VM_FIXED1240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1240A150g, - "SUBCORE_VM_FIXED1260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260A150g, - "SUBCORE_VM_FIXED1280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1280A150g, - "SUBCORE_VM_FIXED1300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300A150g, - "SUBCORE_VM_FIXED1320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1320A150g, - "SUBCORE_VM_FIXED1340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1340A150g, - "SUBCORE_VM_FIXED1360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1360A150g, - "SUBCORE_VM_FIXED1380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1380A150g, - "SUBCORE_VM_FIXED1400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400A150g, - "SUBCORE_VM_FIXED1420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1420A150g, - "SUBCORE_VM_FIXED1440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440A150g, - "SUBCORE_VM_FIXED1460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1460A150g, - "SUBCORE_VM_FIXED1480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1480A150g, - "SUBCORE_VM_FIXED1500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500A150g, - "SUBCORE_VM_FIXED1520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1520A150g, - "SUBCORE_VM_FIXED1540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1540A150g, - "SUBCORE_VM_FIXED1560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1560A150g, - "SUBCORE_VM_FIXED1580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1580A150g, - "SUBCORE_VM_FIXED1600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600A150g, - "SUBCORE_VM_FIXED1620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620A150g, - "SUBCORE_VM_FIXED1640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1640A150g, - "SUBCORE_VM_FIXED1660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1660A150g, - "SUBCORE_VM_FIXED1680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1680A150g, - "SUBCORE_VM_FIXED1700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700A150g, - "SUBCORE_VM_FIXED1720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1720A150g, - "SUBCORE_VM_FIXED1740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1740A150g, - "SUBCORE_VM_FIXED1760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1760A150g, - "SUBCORE_VM_FIXED1780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1780A150g, - "SUBCORE_VM_FIXED1800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800A150g, - "SUBCORE_VM_FIXED1820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1820A150g, - "SUBCORE_VM_FIXED1840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1840A150g, - "SUBCORE_VM_FIXED1860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1860A150g, - "SUBCORE_VM_FIXED1880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1880A150g, - "SUBCORE_VM_FIXED1900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900A150g, - "SUBCORE_VM_FIXED1920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1920A150g, - "SUBCORE_VM_FIXED1940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1940A150g, - "SUBCORE_VM_FIXED1960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1960A150g, - "SUBCORE_VM_FIXED1980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980A150g, - "SUBCORE_VM_FIXED2000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000A150g, - "SUBCORE_VM_FIXED2020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2020A150g, - "SUBCORE_VM_FIXED2040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2040A150g, - "SUBCORE_VM_FIXED2060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2060A150g, - "SUBCORE_VM_FIXED2080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2080A150g, - "SUBCORE_VM_FIXED2100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100A150g, - "SUBCORE_VM_FIXED2120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2120A150g, - "SUBCORE_VM_FIXED2140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2140A150g, - "SUBCORE_VM_FIXED2160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160A150g, - "SUBCORE_VM_FIXED2180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2180A150g, - "SUBCORE_VM_FIXED2200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200A150g, - "SUBCORE_VM_FIXED2220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2220A150g, - "SUBCORE_VM_FIXED2240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2240A150g, - "SUBCORE_VM_FIXED2260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2260A150g, - "SUBCORE_VM_FIXED2280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2280A150g, - "SUBCORE_VM_FIXED2300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300A150g, - "SUBCORE_VM_FIXED2320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2320A150g, - "SUBCORE_VM_FIXED2340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340A150g, - "SUBCORE_VM_FIXED2360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2360A150g, - "SUBCORE_VM_FIXED2380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2380A150g, - "SUBCORE_VM_FIXED2400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400A150g, - "SUBCORE_VM_FIXED2420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2420A150g, - "SUBCORE_VM_FIXED2440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2440A150g, - "SUBCORE_VM_FIXED2460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2460A150g, - "SUBCORE_VM_FIXED2480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2480A150g, - "SUBCORE_VM_FIXED2500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500A150g, - "SUBCORE_VM_FIXED2520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520A150g, - "SUBCORE_VM_FIXED2540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2540A150g, - "SUBCORE_VM_FIXED2560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2560A150g, - "SUBCORE_VM_FIXED2580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2580A150g, - "SUBCORE_VM_FIXED2600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600A150g, - "SUBCORE_VM_FIXED2620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2620A150g, - "SUBCORE_VM_FIXED2640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2640A150g, - "SUBCORE_VM_FIXED2660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2660A150g, - "SUBCORE_VM_FIXED2680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2680A150g, - "SUBCORE_VM_FIXED2700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700A150g, - "SUBCORE_VM_FIXED2720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2720A150g, - "SUBCORE_VM_FIXED2740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2740A150g, - "SUBCORE_VM_FIXED2760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2760A150g, - "SUBCORE_VM_FIXED2780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2780A150g, - "SUBCORE_VM_FIXED2800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800A150g, - "SUBCORE_VM_FIXED2820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2820A150g, - "SUBCORE_VM_FIXED2840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2840A150g, - "SUBCORE_VM_FIXED2860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2860A150g, - "SUBCORE_VM_FIXED2880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880A150g, - "SUBCORE_VM_FIXED2900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900A150g, - "SUBCORE_VM_FIXED2920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2920A150g, - "SUBCORE_VM_FIXED2940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2940A150g, - "SUBCORE_VM_FIXED2960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2960A150g, - "SUBCORE_VM_FIXED2980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2980A150g, - "SUBCORE_VM_FIXED3000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000A150g, - "SUBCORE_VM_FIXED3020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3020A150g, - "SUBCORE_VM_FIXED3040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3040A150g, - "SUBCORE_VM_FIXED3060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060A150g, - "SUBCORE_VM_FIXED3080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3080A150g, - "SUBCORE_VM_FIXED3100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100A150g, - "SUBCORE_VM_FIXED3120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3120A150g, - "SUBCORE_VM_FIXED3140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3140A150g, - "SUBCORE_VM_FIXED3160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3160A150g, - "SUBCORE_VM_FIXED3180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3180A150g, - "SUBCORE_VM_FIXED3200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200A150g, - "SUBCORE_VM_FIXED3220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3220A150g, - "SUBCORE_VM_FIXED3240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240A150g, - "SUBCORE_VM_FIXED3260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3260A150g, - "SUBCORE_VM_FIXED3280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3280A150g, - "SUBCORE_VM_FIXED3300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300A150g, - "SUBCORE_VM_FIXED3320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3320A150g, - "SUBCORE_VM_FIXED3340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3340A150g, - "SUBCORE_VM_FIXED3360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3360A150g, - "SUBCORE_VM_FIXED3380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3380A150g, - "SUBCORE_VM_FIXED3400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400A150g, - "SUBCORE_VM_FIXED3420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420A150g, - "SUBCORE_VM_FIXED3440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3440A150g, - "SUBCORE_VM_FIXED3460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3460A150g, - "SUBCORE_VM_FIXED3480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3480A150g, - "SUBCORE_VM_FIXED3500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500A150g, - "SUBCORE_VM_FIXED3520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3520A150g, - "SUBCORE_VM_FIXED3540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3540A150g, - "SUBCORE_VM_FIXED3560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3560A150g, - "SUBCORE_VM_FIXED3580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3580A150g, - "SUBCORE_VM_FIXED3600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600A150g, - "SUBCORE_VM_FIXED3620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3620A150g, - "SUBCORE_VM_FIXED3640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3640A150g, - "SUBCORE_VM_FIXED3660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3660A150g, - "SUBCORE_VM_FIXED3680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3680A150g, - "SUBCORE_VM_FIXED3700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700A150g, - "SUBCORE_VM_FIXED3720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3720A150g, - "SUBCORE_VM_FIXED3740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3740A150g, - "SUBCORE_VM_FIXED3760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3760A150g, - "SUBCORE_VM_FIXED3780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780A150g, - "SUBCORE_VM_FIXED3800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800A150g, - "SUBCORE_VM_FIXED3820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3820A150g, - "SUBCORE_VM_FIXED3840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3840A150g, - "SUBCORE_VM_FIXED3860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3860A150g, - "SUBCORE_VM_FIXED3880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3880A150g, - "SUBCORE_VM_FIXED3900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900A150g, - "SUBCORE_VM_FIXED3920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3920A150g, - "SUBCORE_VM_FIXED3940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3940A150g, - "SUBCORE_VM_FIXED3960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960A150g, - "SUBCORE_VM_FIXED3980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3980A150g, - "SUBCORE_VM_FIXED4000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000A150g, - "SUBCORE_VM_FIXED4020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4020A150g, - "SUBCORE_VM_FIXED4040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4040A150g, - "SUBCORE_VM_FIXED4060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4060A150g, - "SUBCORE_VM_FIXED4080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4080A150g, - "SUBCORE_VM_FIXED4100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100A150g, - "SUBCORE_VM_FIXED4120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4120A150g, - "SUBCORE_VM_FIXED4140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140A150g, - "SUBCORE_VM_FIXED4160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4160A150g, - "SUBCORE_VM_FIXED4180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4180A150g, - "SUBCORE_VM_FIXED4200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200A150g, - "SUBCORE_VM_FIXED4220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4220A150g, - "SUBCORE_VM_FIXED4240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4240A150g, - "SUBCORE_VM_FIXED4260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4260A150g, - "SUBCORE_VM_FIXED4280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4280A150g, - "SUBCORE_VM_FIXED4300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300A150g, - "SUBCORE_VM_FIXED4320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320A150g, - "SUBCORE_VM_FIXED4340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4340A150g, - "SUBCORE_VM_FIXED4360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4360A150g, - "SUBCORE_VM_FIXED4380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4380A150g, - "SUBCORE_VM_FIXED4400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400A150g, - "SUBCORE_VM_FIXED4420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4420A150g, - "SUBCORE_VM_FIXED4440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4440A150g, - "SUBCORE_VM_FIXED4460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4460A150g, - "SUBCORE_VM_FIXED4480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4480A150g, - "SUBCORE_VM_FIXED4500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500A150g, - "SUBCORE_VM_FIXED4520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4520A150g, - "SUBCORE_VM_FIXED4540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4540A150g, - "SUBCORE_VM_FIXED4560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4560A150g, - "SUBCORE_VM_FIXED4580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4580A150g, - "SUBCORE_VM_FIXED4600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600A150g, - "SUBCORE_VM_FIXED4620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4620A150g, - "SUBCORE_VM_FIXED4640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4640A150g, - "SUBCORE_VM_FIXED4660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4660A150g, - "SUBCORE_VM_FIXED4680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680A150g, - "SUBCORE_VM_FIXED4700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700A150g, - "SUBCORE_VM_FIXED4720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4720A150g, - "SUBCORE_VM_FIXED4740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4740A150g, - "SUBCORE_VM_FIXED4760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4760A150g, - "SUBCORE_VM_FIXED4780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4780A150g, - "SUBCORE_VM_FIXED4800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800A150g, - "SUBCORE_VM_FIXED4820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4820A150g, - "SUBCORE_VM_FIXED4840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4840A150g, - "SUBCORE_VM_FIXED4860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860A150g, - "SUBCORE_VM_FIXED4880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4880A150g, - "SUBCORE_VM_FIXED4900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900A150g, - "SUBCORE_VM_FIXED4920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4920A150g, - "SUBCORE_VM_FIXED4940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4940A150g, - "SUBCORE_VM_FIXED4960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4960A150g, - "SUBCORE_VM_FIXED4980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4980A150g, - "SUBCORE_VM_FIXED5000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000A150g, - "SUBCORE_VM_FIXED0090_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0090X950g, - "SUBCORE_VM_FIXED0180_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180X950g, - "SUBCORE_VM_FIXED0270_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0270X950g, - "SUBCORE_VM_FIXED0360_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360X950g, - "SUBCORE_VM_FIXED0450_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450X950g, - "SUBCORE_VM_FIXED0540_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540X950g, - "SUBCORE_VM_FIXED0630_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0630X950g, - "SUBCORE_VM_FIXED0720_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720X950g, - "SUBCORE_VM_FIXED0810_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0810X950g, - "SUBCORE_VM_FIXED0900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900X950g, - "SUBCORE_VM_FIXED0990_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0990X950g, - "SUBCORE_VM_FIXED1080_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080X950g, - "SUBCORE_VM_FIXED1170_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1170X950g, - "SUBCORE_VM_FIXED1260_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260X950g, - "SUBCORE_VM_FIXED1350_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350X950g, - "SUBCORE_VM_FIXED1440_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440X950g, - "SUBCORE_VM_FIXED1530_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1530X950g, - "SUBCORE_VM_FIXED1620_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620X950g, - "SUBCORE_VM_FIXED1710_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1710X950g, - "SUBCORE_VM_FIXED1800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800X950g, - "SUBCORE_VM_FIXED1890_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1890X950g, - "SUBCORE_VM_FIXED1980_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980X950g, - "SUBCORE_VM_FIXED2070_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2070X950g, - "SUBCORE_VM_FIXED2160_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160X950g, - "SUBCORE_VM_FIXED2250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250X950g, - "SUBCORE_VM_FIXED2340_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340X950g, - "SUBCORE_VM_FIXED2430_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2430X950g, - "SUBCORE_VM_FIXED2520_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520X950g, - "SUBCORE_VM_FIXED2610_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2610X950g, - "SUBCORE_VM_FIXED2700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700X950g, - "SUBCORE_VM_FIXED2790_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2790X950g, - "SUBCORE_VM_FIXED2880_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880X950g, - "SUBCORE_VM_FIXED2970_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2970X950g, - "SUBCORE_VM_FIXED3060_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060X950g, - "SUBCORE_VM_FIXED3150_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150X950g, - "SUBCORE_VM_FIXED3240_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240X950g, - "SUBCORE_VM_FIXED3330_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3330X950g, - "SUBCORE_VM_FIXED3420_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420X950g, - "SUBCORE_VM_FIXED3510_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3510X950g, - "SUBCORE_VM_FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600X950g, - "SUBCORE_VM_FIXED3690_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3690X950g, - "SUBCORE_VM_FIXED3780_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780X950g, - "SUBCORE_VM_FIXED3870_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3870X950g, - "SUBCORE_VM_FIXED3960_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960X950g, - "SUBCORE_VM_FIXED4050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050X950g, - "SUBCORE_VM_FIXED4140_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140X950g, - "SUBCORE_VM_FIXED4230_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4230X950g, - "SUBCORE_VM_FIXED4320_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320X950g, - "SUBCORE_VM_FIXED4410_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4410X950g, - "SUBCORE_VM_FIXED4500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500X950g, - "SUBCORE_VM_FIXED4590_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4590X950g, - "SUBCORE_VM_FIXED4680_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680X950g, - "SUBCORE_VM_FIXED4770_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4770X950g, - "SUBCORE_VM_FIXED4860_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860X950g, - "SUBCORE_VM_FIXED4950_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950X950g, - "DYNAMIC_A1_50G": UpdateVnicShapeDetailsVnicShapeDynamicA150g, - "FIXED0040_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0040A150g, - "FIXED0100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0100A150g, - "FIXED0200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0200A150g, - "FIXED0300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0300A150g, - "FIXED0400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0400A150g, - "FIXED0500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0500A150g, - "FIXED0600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0600A150g, - "FIXED0700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0700A150g, - "FIXED0800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0800A150g, - "FIXED0900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0900A150g, - "FIXED1000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1000A150g, - "FIXED1100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1100A150g, - "FIXED1200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1200A150g, - "FIXED1300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1300A150g, - "FIXED1400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1400A150g, - "FIXED1500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1500A150g, - "FIXED1600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1600A150g, - "FIXED1700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1700A150g, - "FIXED1800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1800A150g, - "FIXED1900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1900A150g, - "FIXED2000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2000A150g, - "FIXED2100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2100A150g, - "FIXED2200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2200A150g, - "FIXED2300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2300A150g, - "FIXED2400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2400A150g, - "FIXED2500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2500A150g, - "FIXED2600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2600A150g, - "FIXED2700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2700A150g, - "FIXED2800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2800A150g, - "FIXED2900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2900A150g, - "FIXED3000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3000A150g, - "FIXED3100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3100A150g, - "FIXED3200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3200A150g, - "FIXED3300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3300A150g, - "FIXED3400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3400A150g, - "FIXED3500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3500A150g, - "FIXED3600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3600A150g, - "FIXED3700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3700A150g, - "FIXED3800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3800A150g, - "FIXED3900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3900A150g, - "FIXED4000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed4000A150g, - "ENTIREHOST_A1_50G": UpdateVnicShapeDetailsVnicShapeEntirehostA150g, - "DYNAMIC_X9_50G": UpdateVnicShapeDetailsVnicShapeDynamicX950g, - "FIXED0040_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed0040X950g, - "FIXED0400_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed0400X950g, - "FIXED0800_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed0800X950g, - "FIXED1200_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed1200X950g, - "FIXED1600_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed1600X950g, - "FIXED2000_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed2000X950g, - "FIXED2400_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed2400X950g, - "FIXED2800_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed2800X950g, - "FIXED3200_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed3200X950g, - "FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed3600X950g, - "FIXED4000_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed4000X950g, - "STANDARD_VM_FIXED0200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0200X950g, - "STANDARD_VM_FIXED0400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0400X950g, - "STANDARD_VM_FIXED0600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0600X950g, - "STANDARD_VM_FIXED0800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0800X950g, - "STANDARD_VM_FIXED1000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1000X950g, - "STANDARD_VM_FIXED1200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1200X950g, - "STANDARD_VM_FIXED1400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1400X950g, - "STANDARD_VM_FIXED1600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1600X950g, - "STANDARD_VM_FIXED1800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1800X950g, - "STANDARD_VM_FIXED2000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2000X950g, - "STANDARD_VM_FIXED2200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2200X950g, - "STANDARD_VM_FIXED2400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2400X950g, - "STANDARD_VM_FIXED2600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2600X950g, - "STANDARD_VM_FIXED2800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2800X950g, - "STANDARD_VM_FIXED3000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3000X950g, - "STANDARD_VM_FIXED3200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3200X950g, - "STANDARD_VM_FIXED3400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3400X950g, - "STANDARD_VM_FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3600X950g, - "STANDARD_VM_FIXED3800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3800X950g, - "STANDARD_VM_FIXED4000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed4000X950g, - "ENTIREHOST_X9_50G": UpdateVnicShapeDetailsVnicShapeEntirehostX950g, -} - -// GetUpdateVnicShapeDetailsVnicShapeEnumValues Enumerates the set of values for UpdateVnicShapeDetailsVnicShapeEnum -func GetUpdateVnicShapeDetailsVnicShapeEnumValues() []UpdateVnicShapeDetailsVnicShapeEnum { - values := make([]UpdateVnicShapeDetailsVnicShapeEnum, 0) - for _, v := range mappingUpdateVnicShapeDetailsVnicShape { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_details.go deleted file mode 100644 index bca9e64eb2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVnicWorkerDetails The data to update vnicWorker. -type UpdateVnicWorkerDetails struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // List of vnicWorker IP OCIDs. - WorkerIps []string `mandatory:"false" json:"workerIps"` -} - -func (m UpdateVnicWorkerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_details.go deleted file mode 100644 index 1f516cd0f0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_details.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVolumeAttachmentDetails details for updating a volume attachment. -type UpdateVolumeAttachmentDetails struct { - - // The iscsi login state of the volume attachment. For a multipath volume attachment, - // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. - IscsiLoginState UpdateVolumeAttachmentDetailsIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` -} - -func (m UpdateVolumeAttachmentDetails) String() string { - return common.PointerString(m) -} - -// UpdateVolumeAttachmentDetailsIscsiLoginStateEnum Enum with underlying type: string -type UpdateVolumeAttachmentDetailsIscsiLoginStateEnum string - -// Set of constants representing the allowable values for UpdateVolumeAttachmentDetailsIscsiLoginStateEnum -const ( - UpdateVolumeAttachmentDetailsIscsiLoginStateUnknown UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "UNKNOWN" - UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingIn UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGGING_IN" - UpdateVolumeAttachmentDetailsIscsiLoginStateLoginSucceeded UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGIN_SUCCEEDED" - UpdateVolumeAttachmentDetailsIscsiLoginStateLoginFailed UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGIN_FAILED" - UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingOut UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGGING_OUT" - UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutSucceeded UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGOUT_SUCCEEDED" - UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutFailed UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGOUT_FAILED" -) - -var mappingUpdateVolumeAttachmentDetailsIscsiLoginState = map[string]UpdateVolumeAttachmentDetailsIscsiLoginStateEnum{ - "UNKNOWN": UpdateVolumeAttachmentDetailsIscsiLoginStateUnknown, - "LOGGING_IN": UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingIn, - "LOGIN_SUCCEEDED": UpdateVolumeAttachmentDetailsIscsiLoginStateLoginSucceeded, - "LOGIN_FAILED": UpdateVolumeAttachmentDetailsIscsiLoginStateLoginFailed, - "LOGGING_OUT": UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingOut, - "LOGOUT_SUCCEEDED": UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutSucceeded, - "LOGOUT_FAILED": UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutFailed, -} - -// GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumValues Enumerates the set of values for UpdateVolumeAttachmentDetailsIscsiLoginStateEnum -func GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumValues() []UpdateVolumeAttachmentDetailsIscsiLoginStateEnum { - values := make([]UpdateVolumeAttachmentDetailsIscsiLoginStateEnum, 0) - for _, v := range mappingUpdateVolumeAttachmentDetailsIscsiLoginState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_details.go deleted file mode 100644 index c0fb3d713f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVolumeBackupDetails The representation of UpdateVolumeBackupDetails -type UpdateVolumeBackupDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateVolumeBackupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_details.go deleted file mode 100644 index 4a767cb939..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_details.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVolumeDetails The representation of UpdateVolumeDetails -type UpdateVolumeDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The number of volume performance units (VPUs) that will be applied to this volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `0`: Represents Lower Cost option. - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // The size to resize the volume to in GBs. Has to be larger than the current size. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // Specifies whether the auto-tune performance is enabled for this volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The list of block volume replicas that this volume will be updated to have - // in the specified destination availability domains. - BlockVolumeReplicas []BlockVolumeReplicaDetails `mandatory:"false" json:"blockVolumeReplicas"` -} - -func (m UpdateVolumeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_details.go deleted file mode 100644 index 1b8bb94026..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_details.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVolumeGroupBackupDetails The representation of UpdateVolumeGroupBackupDetails -type UpdateVolumeGroupBackupDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m UpdateVolumeGroupBackupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_details.go deleted file mode 100644 index 902f544e51..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVolumeGroupDetails The representation of UpdateVolumeGroupDetails -type UpdateVolumeGroupDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // OCIDs for the volumes in this volume group. - VolumeIds []string `mandatory:"false" json:"volumeIds"` - - // The list of volume group replicas that this volume group will be updated to have - // in the specified destination availability domains. - VolumeGroupReplicas []VolumeGroupReplicaDetails `mandatory:"false" json:"volumeGroupReplicas"` -} - -func (m UpdateVolumeGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_details.go deleted file mode 100644 index 4861d7875d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVolumeKmsKeyDetails The representation of UpdateVolumeKmsKeyDetails -type UpdateVolumeKmsKeyDetails struct { - - // The OCID of the new Key Management key to assign to protect the specified volume. - // This key has to be a valid Key Management key, and policies must exist to allow the user and the Block Volume service to access this key. - // If you specify the same OCID as the previous key's OCID, the Block Volume service will use it to regenerate a volume encryption key. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m UpdateVolumeKmsKeyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_details.go deleted file mode 100644 index 3ec3c8ecf5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_details.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateVtapDetails These details can be included in a request to update a virtual test access point (VTAP). -type UpdateVtapDetails struct { - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source point where packets are captured. - SourceId *string `mandatory:"false" json:"sourceId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination resource where mirrored packets are sent. - TargetId *string `mandatory:"false" json:"targetId"` - - // The IP address of the destination resource where mirrored packets are sent. - TargetIp *string `mandatory:"false" json:"targetIp"` - - // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - CaptureFilterId *string `mandatory:"false" json:"captureFilterId"` - - // Defines an encapsulation header type for the VTAP's mirrored traffic. - EncapsulationProtocol UpdateVtapDetailsEncapsulationProtocolEnum `mandatory:"false" json:"encapsulationProtocol,omitempty"` - - // The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN. - VxlanNetworkIdentifier *int64 `mandatory:"false" json:"vxlanNetworkIdentifier"` - - // Used to start or stop a `Vtap` resource. - // * `TRUE` directs the VTAP to start mirroring traffic. - // * `FALSE` (Default) directs the VTAP to stop mirroring traffic. - IsVtapEnabled *bool `mandatory:"false" json:"isVtapEnabled"` - - // Used to encapsulate or decapsulate mirrored traffic prior to ingestion at target. - IsTargetEncapsulationEnabled *bool `mandatory:"false" json:"isTargetEncapsulationEnabled"` - - ExclusionFilter *ExclusionFilterDetails `mandatory:"false" json:"exclusionFilter"` -} - -func (m UpdateVtapDetails) String() string { - return common.PointerString(m) -} - -// UpdateVtapDetailsEncapsulationProtocolEnum Enum with underlying type: string -type UpdateVtapDetailsEncapsulationProtocolEnum string - -// Set of constants representing the allowable values for UpdateVtapDetailsEncapsulationProtocolEnum -const ( - UpdateVtapDetailsEncapsulationProtocolVxlan UpdateVtapDetailsEncapsulationProtocolEnum = "VXLAN" -) - -var mappingUpdateVtapDetailsEncapsulationProtocol = map[string]UpdateVtapDetailsEncapsulationProtocolEnum{ - "VXLAN": UpdateVtapDetailsEncapsulationProtocolVxlan, -} - -// GetUpdateVtapDetailsEncapsulationProtocolEnumValues Enumerates the set of values for UpdateVtapDetailsEncapsulationProtocolEnum -func GetUpdateVtapDetailsEncapsulationProtocolEnumValues() []UpdateVtapDetailsEncapsulationProtocolEnum { - values := make([]UpdateVtapDetailsEncapsulationProtocolEnum, 0) - for _, v := range mappingUpdateVtapDetailsEncapsulationProtocol { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_request_response.go deleted file mode 100644 index f4cf1444be..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vtap_request_response.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateVtapRequest wrapper for the UpdateVtap operation -type UpdateVtapRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VTAP. - VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` - - // Details object for updating a VTAP. - UpdateVtapDetails `contributesTo:"body"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the etag from a previous GET or POST response for that resource. The resource - // will be updated or deleted only if the etag you provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateVtapRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateVtapRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateVtapRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateVtapRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateVtapResponse wrapper for the UpdateVtap operation -type UpdateVtapResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Vtap instance - Vtap `presentIn:"body"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateVtapResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateVtapResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/updated_network_security_group_security_rules.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/updated_network_security_group_security_rules.go deleted file mode 100644 index 68ff86439f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/updated_network_security_group_security_rules.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatedNetworkSecurityGroupSecurityRules The representation of UpdatedNetworkSecurityGroupSecurityRules -type UpdatedNetworkSecurityGroupSecurityRules struct { - - // The NSG security rules that were updated. - SecurityRules []SecurityRule `mandatory:"false" json:"securityRules"` -} - -func (m UpdatedNetworkSecurityGroupSecurityRules) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_status.go deleted file mode 100644 index e454b0e62a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_status.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpgradeStatus The upgrade status of a DRG. -type UpgradeStatus struct { - - // The `drgId` of the upgraded DRG. - DrgId *string `mandatory:"true" json:"drgId"` - - // The current upgrade status of the DRG attachment. - Status UpgradeStatusStatusEnum `mandatory:"true" json:"status"` - - // The number of upgraded connections. - UpgradedConnections *string `mandatory:"true" json:"upgradedConnections"` -} - -func (m UpgradeStatus) String() string { - return common.PointerString(m) -} - -// UpgradeStatusStatusEnum Enum with underlying type: string -type UpgradeStatusStatusEnum string - -// Set of constants representing the allowable values for UpgradeStatusStatusEnum -const ( - UpgradeStatusStatusNotUpgraded UpgradeStatusStatusEnum = "NOT_UPGRADED" - UpgradeStatusStatusInProgress UpgradeStatusStatusEnum = "IN_PROGRESS" - UpgradeStatusStatusUpgraded UpgradeStatusStatusEnum = "UPGRADED" -) - -var mappingUpgradeStatusStatus = map[string]UpgradeStatusStatusEnum{ - "NOT_UPGRADED": UpgradeStatusStatusNotUpgraded, - "IN_PROGRESS": UpgradeStatusStatusInProgress, - "UPGRADED": UpgradeStatusStatusUpgraded, -} - -// GetUpgradeStatusStatusEnumValues Enumerates the set of values for UpgradeStatusStatusEnum -func GetUpgradeStatusStatusEnumValues() []UpgradeStatusStatusEnum { - values := make([]UpgradeStatusStatusEnum, 0) - for _, v := range mappingUpgradeStatusStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/validate_drg_routes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/validate_drg_routes_request_response.go deleted file mode 100644 index bfad737771..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/validate_drg_routes_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ValidateDrgRoutesRequest wrapper for the ValidateDrgRoutes operation -type ValidateDrgRoutesRequest struct { - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The State of the DRG (Classical/Migrated/Upgraded) of the DRG. - DrgState DrgUpgradeStateStateEnum `mandatory:"false" contributesTo:"query" name:"drgState" omitEmpty:"true"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. - DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ValidateDrgRoutesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ValidateDrgRoutesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ValidateDrgRoutesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ValidateDrgRoutesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ValidateDrgRoutesResponse wrapper for the ValidateDrgRoutes operation -type ValidateDrgRoutesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ValidationStatusInfo instance - ValidationStatusInfo `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact - // Oracle about a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) - // with this ID to track the status of the request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` -} - -func (response ValidateDrgRoutesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ValidateDrgRoutesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/validation_status_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/validation_status_info.go deleted file mode 100644 index f407309661..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/validation_status_info.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ValidationStatusInfo Array of DRGs and their corresponding validation status -type ValidationStatusInfo struct { - - // Array of DRGs and their corresponding validation status' - ValidationStatus []DrgValidationStatus `mandatory:"true" json:"validationStatus"` -} - -func (m ValidationStatusInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn.go deleted file mode 100644 index cba22bfb35..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn.go +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Vcn A virtual cloud network (VCN). For more information, see -// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type Vcn struct { - - // Deprecated. The first CIDR IP address from cidrBlocks. - // Example: `172.16.0.0/16` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The list of IPv4 CIDR blocks the VCN will use. - CidrBlocks []string `mandatory:"true" json:"cidrBlocks"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VCN. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The VCN's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The VCN's current state. - LifecycleState VcnLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the VCN's default set of DHCP options. - DefaultDhcpOptionsId *string `mandatory:"false" json:"defaultDhcpOptionsId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the VCN's default route table. - DefaultRouteTableId *string `mandatory:"false" json:"defaultRouteTableId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the VCN's default security list. - DefaultSecurityListId *string `mandatory:"false" json:"defaultSecurityListId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // A DNS label for the VCN, used in conjunction with the VNIC's hostname and - // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC - // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). - // Must be an alphanumeric string that begins with a letter. - // The value cannot be changed. - // The absence of this parameter means the Internet and VCN Resolver will - // not work for this VCN. - // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // Example: `vcn1` - DnsLabel *string `mandatory:"false" json:"dnsLabel"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // For an IPv6-enabled VCN, this is the list of IPv6 CIDR blocks for the VCN's IP address space. - // The CIDRs are provided by Oracle and the sizes are always /56. - Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` - - // The date and time the VCN was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The VCN's domain name, which consists of the VCN's DNS label, and the - // `oraclevcn.com` domain. - // For more information, see - // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). - // Example: `vcn1.oraclevcn.com` - VcnDomainName *string `mandatory:"false" json:"vcnDomainName"` -} - -func (m Vcn) String() string { - return common.PointerString(m) -} - -// VcnLifecycleStateEnum Enum with underlying type: string -type VcnLifecycleStateEnum string - -// Set of constants representing the allowable values for VcnLifecycleStateEnum -const ( - VcnLifecycleStateProvisioning VcnLifecycleStateEnum = "PROVISIONING" - VcnLifecycleStateAvailable VcnLifecycleStateEnum = "AVAILABLE" - VcnLifecycleStateTerminating VcnLifecycleStateEnum = "TERMINATING" - VcnLifecycleStateTerminated VcnLifecycleStateEnum = "TERMINATED" - VcnLifecycleStateUpdating VcnLifecycleStateEnum = "UPDATING" -) - -var mappingVcnLifecycleState = map[string]VcnLifecycleStateEnum{ - "PROVISIONING": VcnLifecycleStateProvisioning, - "AVAILABLE": VcnLifecycleStateAvailable, - "TERMINATING": VcnLifecycleStateTerminating, - "TERMINATED": VcnLifecycleStateTerminated, - "UPDATING": VcnLifecycleStateUpdating, -} - -// GetVcnLifecycleStateEnumValues Enumerates the set of values for VcnLifecycleStateEnum -func GetVcnLifecycleStateEnumValues() []VcnLifecycleStateEnum { - values := make([]VcnLifecycleStateEnum, 0) - for _, v := range mappingVcnLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_dns_resolver_association.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_dns_resolver_association.go deleted file mode 100644 index 7a53c7e1f4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_dns_resolver_association.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VcnDnsResolverAssociation The information about the VCN and the DNS resolver in the association. -type VcnDnsResolverAssociation struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN in the association. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The current state of the association. - LifecycleState VcnDnsResolverAssociationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS resolver in the association. - DnsResolverId *string `mandatory:"false" json:"dnsResolverId"` -} - -func (m VcnDnsResolverAssociation) String() string { - return common.PointerString(m) -} - -// VcnDnsResolverAssociationLifecycleStateEnum Enum with underlying type: string -type VcnDnsResolverAssociationLifecycleStateEnum string - -// Set of constants representing the allowable values for VcnDnsResolverAssociationLifecycleStateEnum -const ( - VcnDnsResolverAssociationLifecycleStateProvisioning VcnDnsResolverAssociationLifecycleStateEnum = "PROVISIONING" - VcnDnsResolverAssociationLifecycleStateAvailable VcnDnsResolverAssociationLifecycleStateEnum = "AVAILABLE" - VcnDnsResolverAssociationLifecycleStateTerminating VcnDnsResolverAssociationLifecycleStateEnum = "TERMINATING" - VcnDnsResolverAssociationLifecycleStateTerminated VcnDnsResolverAssociationLifecycleStateEnum = "TERMINATED" -) - -var mappingVcnDnsResolverAssociationLifecycleState = map[string]VcnDnsResolverAssociationLifecycleStateEnum{ - "PROVISIONING": VcnDnsResolverAssociationLifecycleStateProvisioning, - "AVAILABLE": VcnDnsResolverAssociationLifecycleStateAvailable, - "TERMINATING": VcnDnsResolverAssociationLifecycleStateTerminating, - "TERMINATED": VcnDnsResolverAssociationLifecycleStateTerminated, -} - -// GetVcnDnsResolverAssociationLifecycleStateEnumValues Enumerates the set of values for VcnDnsResolverAssociationLifecycleStateEnum -func GetVcnDnsResolverAssociationLifecycleStateEnumValues() []VcnDnsResolverAssociationLifecycleStateEnum { - values := make([]VcnDnsResolverAssociationLifecycleStateEnum, 0) - for _, v := range mappingVcnDnsResolverAssociationLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_create_details.go deleted file mode 100644 index 34d14cd0a1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_create_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VcnDrgAttachmentNetworkCreateDetails Specifies the VCN Attachment -type VcnDrgAttachmentNetworkCreateDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // This is the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. - // For information about why you would associate a route table with a DRG attachment, see - // Advanced Scenario: Transit Routing (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). - // For information about why you would associate a route table with a DRG attachment, see: - // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) - // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -//GetId returns Id -func (m VcnDrgAttachmentNetworkCreateDetails) GetId() *string { - return m.Id -} - -func (m VcnDrgAttachmentNetworkCreateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VcnDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVcnDrgAttachmentNetworkCreateDetails VcnDrgAttachmentNetworkCreateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVcnDrgAttachmentNetworkCreateDetails - }{ - "VCN", - (MarshalTypeVcnDrgAttachmentNetworkCreateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_details.go deleted file mode 100644 index 6bf12563af..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VcnDrgAttachmentNetworkDetails Specifies details within the VCN. -type VcnDrgAttachmentNetworkDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. - // For information about why you would associate a route table with a DRG attachment, see: - // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) - // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -//GetId returns Id -func (m VcnDrgAttachmentNetworkDetails) GetId() *string { - return m.Id -} - -func (m VcnDrgAttachmentNetworkDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VcnDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVcnDrgAttachmentNetworkDetails VcnDrgAttachmentNetworkDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVcnDrgAttachmentNetworkDetails - }{ - "VCN", - (MarshalTypeVcnDrgAttachmentNetworkDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_update_details.go deleted file mode 100644 index 115d687353..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_drg_attachment_network_update_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VcnDrgAttachmentNetworkUpdateDetails Specifies the update details for the VCN attachment. -type VcnDrgAttachmentNetworkUpdateDetails struct { - - // This is the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. - // For information about why you would associate a route table with a DRG attachment, see: - // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) - // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) - RouteTableId *string `mandatory:"false" json:"routeTableId"` -} - -func (m VcnDrgAttachmentNetworkUpdateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VcnDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVcnDrgAttachmentNetworkUpdateDetails VcnDrgAttachmentNetworkUpdateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVcnDrgAttachmentNetworkUpdateDetails - }{ - "VCN", - (MarshalTypeVcnDrgAttachmentNetworkUpdateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit.go deleted file mode 100644 index 7cd61ce460..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit.go +++ /dev/null @@ -1,362 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VirtualCircuit For use with Oracle Cloud Infrastructure FastConnect. -// A virtual circuit is an isolated network path that runs over one or more physical -// network connections to provide a single, logical connection between the edge router -// on the customer's existing network and Oracle Cloud Infrastructure. *Private* -// virtual circuits support private peering, and *public* virtual circuits support -// public peering. For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -// Each virtual circuit is made up of information shared between a customer, Oracle, -// and a provider (if the customer is using FastConnect via a provider). Who fills in -// a given property of a virtual circuit depends on whether the BGP session related to -// that virtual circuit goes from the customer's edge router to Oracle, or from the provider's -// edge router to Oracle. Also, in the case where the customer is using a provider, values -// for some of the properties may not be present immediately, but may get filled in as the -// provider and Oracle each do their part to provision the virtual circuit. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -type VirtualCircuit struct { - - // The provisioned data rate of the connection. To get a list of the - // available bandwidth levels (that is, shapes), see - // ListFastConnectProviderVirtualCircuitBandwidthShapes. - // Example: `10 Gbps` - BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` - - // Deprecated. Instead use the information in - // FastConnectProviderService. - BgpManagement VirtualCircuitBgpManagementEnum `mandatory:"false" json:"bgpManagement,omitempty"` - - // The state of the Ipv4 BGP session associated with the virtual circuit. - BgpSessionState VirtualCircuitBgpSessionStateEnum `mandatory:"false" json:"bgpSessionState,omitempty"` - - // The state of the Ipv6 BGP session associated with the virtual circuit. - BgpIpv6SessionState VirtualCircuitBgpIpv6SessionStateEnum `mandatory:"false" json:"bgpIpv6SessionState,omitempty"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the virtual circuit. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // An array of mappings, each containing properties for a - // cross-connect or cross-connect group that is associated with this - // virtual circuit. - CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` - - // The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. - // Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`. - // See Route Filtering (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. - // By default, routing information is shared for all routes in the same market. - RoutingPolicy []VirtualCircuitRoutingPolicyEnum `mandatory:"false" json:"routingPolicy,omitempty"` - - // Deprecated. Instead use `customerAsn`. - // If you specify values for both, the request will be rejected. - CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` - - // The BGP ASN of the network at the other end of the BGP - // session from Oracle. If the session is between the customer's - // edge router and Oracle, the value is the customer's ASN. If the BGP - // session is between the provider's edge router and Oracle, the value - // is the provider's ASN. - // Can be a 2-byte or 4-byte ASN. Uses "asplain" format. - CustomerAsn *int64 `mandatory:"false" json:"customerAsn"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer's Drg - // that this virtual circuit uses. Applicable only to private virtual circuits. - GatewayId *string `mandatory:"false" json:"gatewayId"` - - // The virtual circuit's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"false" json:"id"` - - // The virtual circuit's current state. For information about - // the different states, see - // FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). - LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The Oracle BGP ASN. - OracleBgpAsn *int `mandatory:"false" json:"oracleBgpAsn"` - - // Deprecated. Instead use `providerServiceId`. - ProviderName *string `mandatory:"false" json:"providerName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if the customer is connecting via a provider). - ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` - - // The service key name offered by the provider (if the customer is connecting via a provider). - ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"` - - // Deprecated. Instead use `providerServiceId`. - ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` - - // The provider's state in relation to this virtual circuit (if the - // customer is connecting via a provider). ACTIVE means - // the provider has provisioned the virtual circuit from their end. - // INACTIVE means the provider has not yet provisioned the virtual - // circuit, or has de-provisioned it. - ProviderState VirtualCircuitProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` - - // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to - // advertise across the connection. All prefix sizes are allowed. - PublicPrefixes []string `mandatory:"false" json:"publicPrefixes"` - - // Provider-supplied reference information about this virtual circuit - // (if the customer is connecting via a provider). - ReferenceComment *string `mandatory:"false" json:"referenceComment"` - - // The Oracle Cloud Infrastructure region where this virtual - // circuit is located. - Region *string `mandatory:"false" json:"region"` - - // Provider service type. - ServiceType VirtualCircuitServiceTypeEnum `mandatory:"false" json:"serviceType,omitempty"` - - // The date and time the virtual circuit was created, - // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Whether the virtual circuit supports private or public peering. For more information, - // see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). - Type VirtualCircuitTypeEnum `mandatory:"false" json:"type,omitempty"` - - // The layer 3 IP MTU to use on this virtual circuit. - IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` -} - -func (m VirtualCircuit) String() string { - return common.PointerString(m) -} - -// VirtualCircuitBgpManagementEnum Enum with underlying type: string -type VirtualCircuitBgpManagementEnum string - -// Set of constants representing the allowable values for VirtualCircuitBgpManagementEnum -const ( - VirtualCircuitBgpManagementCustomerManaged VirtualCircuitBgpManagementEnum = "CUSTOMER_MANAGED" - VirtualCircuitBgpManagementProviderManaged VirtualCircuitBgpManagementEnum = "PROVIDER_MANAGED" - VirtualCircuitBgpManagementOracleManaged VirtualCircuitBgpManagementEnum = "ORACLE_MANAGED" -) - -var mappingVirtualCircuitBgpManagement = map[string]VirtualCircuitBgpManagementEnum{ - "CUSTOMER_MANAGED": VirtualCircuitBgpManagementCustomerManaged, - "PROVIDER_MANAGED": VirtualCircuitBgpManagementProviderManaged, - "ORACLE_MANAGED": VirtualCircuitBgpManagementOracleManaged, -} - -// GetVirtualCircuitBgpManagementEnumValues Enumerates the set of values for VirtualCircuitBgpManagementEnum -func GetVirtualCircuitBgpManagementEnumValues() []VirtualCircuitBgpManagementEnum { - values := make([]VirtualCircuitBgpManagementEnum, 0) - for _, v := range mappingVirtualCircuitBgpManagement { - values = append(values, v) - } - return values -} - -// VirtualCircuitBgpSessionStateEnum Enum with underlying type: string -type VirtualCircuitBgpSessionStateEnum string - -// Set of constants representing the allowable values for VirtualCircuitBgpSessionStateEnum -const ( - VirtualCircuitBgpSessionStateUp VirtualCircuitBgpSessionStateEnum = "UP" - VirtualCircuitBgpSessionStateDown VirtualCircuitBgpSessionStateEnum = "DOWN" -) - -var mappingVirtualCircuitBgpSessionState = map[string]VirtualCircuitBgpSessionStateEnum{ - "UP": VirtualCircuitBgpSessionStateUp, - "DOWN": VirtualCircuitBgpSessionStateDown, -} - -// GetVirtualCircuitBgpSessionStateEnumValues Enumerates the set of values for VirtualCircuitBgpSessionStateEnum -func GetVirtualCircuitBgpSessionStateEnumValues() []VirtualCircuitBgpSessionStateEnum { - values := make([]VirtualCircuitBgpSessionStateEnum, 0) - for _, v := range mappingVirtualCircuitBgpSessionState { - values = append(values, v) - } - return values -} - -// VirtualCircuitBgpIpv6SessionStateEnum Enum with underlying type: string -type VirtualCircuitBgpIpv6SessionStateEnum string - -// Set of constants representing the allowable values for VirtualCircuitBgpIpv6SessionStateEnum -const ( - VirtualCircuitBgpIpv6SessionStateUp VirtualCircuitBgpIpv6SessionStateEnum = "UP" - VirtualCircuitBgpIpv6SessionStateDown VirtualCircuitBgpIpv6SessionStateEnum = "DOWN" -) - -var mappingVirtualCircuitBgpIpv6SessionState = map[string]VirtualCircuitBgpIpv6SessionStateEnum{ - "UP": VirtualCircuitBgpIpv6SessionStateUp, - "DOWN": VirtualCircuitBgpIpv6SessionStateDown, -} - -// GetVirtualCircuitBgpIpv6SessionStateEnumValues Enumerates the set of values for VirtualCircuitBgpIpv6SessionStateEnum -func GetVirtualCircuitBgpIpv6SessionStateEnumValues() []VirtualCircuitBgpIpv6SessionStateEnum { - values := make([]VirtualCircuitBgpIpv6SessionStateEnum, 0) - for _, v := range mappingVirtualCircuitBgpIpv6SessionState { - values = append(values, v) - } - return values -} - -// VirtualCircuitRoutingPolicyEnum Enum with underlying type: string -type VirtualCircuitRoutingPolicyEnum string - -// Set of constants representing the allowable values for VirtualCircuitRoutingPolicyEnum -const ( - VirtualCircuitRoutingPolicyOracleServiceNetwork VirtualCircuitRoutingPolicyEnum = "ORACLE_SERVICE_NETWORK" - VirtualCircuitRoutingPolicyRegional VirtualCircuitRoutingPolicyEnum = "REGIONAL" - VirtualCircuitRoutingPolicyMarketLevel VirtualCircuitRoutingPolicyEnum = "MARKET_LEVEL" - VirtualCircuitRoutingPolicyGlobal VirtualCircuitRoutingPolicyEnum = "GLOBAL" -) - -var mappingVirtualCircuitRoutingPolicy = map[string]VirtualCircuitRoutingPolicyEnum{ - "ORACLE_SERVICE_NETWORK": VirtualCircuitRoutingPolicyOracleServiceNetwork, - "REGIONAL": VirtualCircuitRoutingPolicyRegional, - "MARKET_LEVEL": VirtualCircuitRoutingPolicyMarketLevel, - "GLOBAL": VirtualCircuitRoutingPolicyGlobal, -} - -// GetVirtualCircuitRoutingPolicyEnumValues Enumerates the set of values for VirtualCircuitRoutingPolicyEnum -func GetVirtualCircuitRoutingPolicyEnumValues() []VirtualCircuitRoutingPolicyEnum { - values := make([]VirtualCircuitRoutingPolicyEnum, 0) - for _, v := range mappingVirtualCircuitRoutingPolicy { - values = append(values, v) - } - return values -} - -// VirtualCircuitLifecycleStateEnum Enum with underlying type: string -type VirtualCircuitLifecycleStateEnum string - -// Set of constants representing the allowable values for VirtualCircuitLifecycleStateEnum -const ( - VirtualCircuitLifecycleStatePendingProvider VirtualCircuitLifecycleStateEnum = "PENDING_PROVIDER" - VirtualCircuitLifecycleStateVerifying VirtualCircuitLifecycleStateEnum = "VERIFYING" - VirtualCircuitLifecycleStateProvisioning VirtualCircuitLifecycleStateEnum = "PROVISIONING" - VirtualCircuitLifecycleStateProvisioned VirtualCircuitLifecycleStateEnum = "PROVISIONED" - VirtualCircuitLifecycleStateFailed VirtualCircuitLifecycleStateEnum = "FAILED" - VirtualCircuitLifecycleStateInactive VirtualCircuitLifecycleStateEnum = "INACTIVE" - VirtualCircuitLifecycleStateTerminating VirtualCircuitLifecycleStateEnum = "TERMINATING" - VirtualCircuitLifecycleStateTerminated VirtualCircuitLifecycleStateEnum = "TERMINATED" -) - -var mappingVirtualCircuitLifecycleState = map[string]VirtualCircuitLifecycleStateEnum{ - "PENDING_PROVIDER": VirtualCircuitLifecycleStatePendingProvider, - "VERIFYING": VirtualCircuitLifecycleStateVerifying, - "PROVISIONING": VirtualCircuitLifecycleStateProvisioning, - "PROVISIONED": VirtualCircuitLifecycleStateProvisioned, - "FAILED": VirtualCircuitLifecycleStateFailed, - "INACTIVE": VirtualCircuitLifecycleStateInactive, - "TERMINATING": VirtualCircuitLifecycleStateTerminating, - "TERMINATED": VirtualCircuitLifecycleStateTerminated, -} - -// GetVirtualCircuitLifecycleStateEnumValues Enumerates the set of values for VirtualCircuitLifecycleStateEnum -func GetVirtualCircuitLifecycleStateEnumValues() []VirtualCircuitLifecycleStateEnum { - values := make([]VirtualCircuitLifecycleStateEnum, 0) - for _, v := range mappingVirtualCircuitLifecycleState { - values = append(values, v) - } - return values -} - -// VirtualCircuitProviderStateEnum Enum with underlying type: string -type VirtualCircuitProviderStateEnum string - -// Set of constants representing the allowable values for VirtualCircuitProviderStateEnum -const ( - VirtualCircuitProviderStateActive VirtualCircuitProviderStateEnum = "ACTIVE" - VirtualCircuitProviderStateInactive VirtualCircuitProviderStateEnum = "INACTIVE" -) - -var mappingVirtualCircuitProviderState = map[string]VirtualCircuitProviderStateEnum{ - "ACTIVE": VirtualCircuitProviderStateActive, - "INACTIVE": VirtualCircuitProviderStateInactive, -} - -// GetVirtualCircuitProviderStateEnumValues Enumerates the set of values for VirtualCircuitProviderStateEnum -func GetVirtualCircuitProviderStateEnumValues() []VirtualCircuitProviderStateEnum { - values := make([]VirtualCircuitProviderStateEnum, 0) - for _, v := range mappingVirtualCircuitProviderState { - values = append(values, v) - } - return values -} - -// VirtualCircuitServiceTypeEnum Enum with underlying type: string -type VirtualCircuitServiceTypeEnum string - -// Set of constants representing the allowable values for VirtualCircuitServiceTypeEnum -const ( - VirtualCircuitServiceTypeColocated VirtualCircuitServiceTypeEnum = "COLOCATED" - VirtualCircuitServiceTypeLayer2 VirtualCircuitServiceTypeEnum = "LAYER2" - VirtualCircuitServiceTypeLayer3 VirtualCircuitServiceTypeEnum = "LAYER3" -) - -var mappingVirtualCircuitServiceType = map[string]VirtualCircuitServiceTypeEnum{ - "COLOCATED": VirtualCircuitServiceTypeColocated, - "LAYER2": VirtualCircuitServiceTypeLayer2, - "LAYER3": VirtualCircuitServiceTypeLayer3, -} - -// GetVirtualCircuitServiceTypeEnumValues Enumerates the set of values for VirtualCircuitServiceTypeEnum -func GetVirtualCircuitServiceTypeEnumValues() []VirtualCircuitServiceTypeEnum { - values := make([]VirtualCircuitServiceTypeEnum, 0) - for _, v := range mappingVirtualCircuitServiceType { - values = append(values, v) - } - return values -} - -// VirtualCircuitTypeEnum Enum with underlying type: string -type VirtualCircuitTypeEnum string - -// Set of constants representing the allowable values for VirtualCircuitTypeEnum -const ( - VirtualCircuitTypePublic VirtualCircuitTypeEnum = "PUBLIC" - VirtualCircuitTypePrivate VirtualCircuitTypeEnum = "PRIVATE" -) - -var mappingVirtualCircuitType = map[string]VirtualCircuitTypeEnum{ - "PUBLIC": VirtualCircuitTypePublic, - "PRIVATE": VirtualCircuitTypePrivate, -} - -// GetVirtualCircuitTypeEnumValues Enumerates the set of values for VirtualCircuitTypeEnum -func GetVirtualCircuitTypeEnumValues() []VirtualCircuitTypeEnum { - values := make([]VirtualCircuitTypeEnum, 0) - for _, v := range mappingVirtualCircuitType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_bandwidth_shape.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_bandwidth_shape.go deleted file mode 100644 index f6927151ba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_bandwidth_shape.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VirtualCircuitBandwidthShape An individual bandwidth level for virtual circuits. -type VirtualCircuitBandwidthShape struct { - - // The name of the bandwidth shape. - // Example: `10 Gbps` - Name *string `mandatory:"true" json:"name"` - - // The bandwidth in Mbps. - // Example: `10000` - BandwidthInMbps *int `mandatory:"false" json:"bandwidthInMbps"` -} - -func (m VirtualCircuitBandwidthShape) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_create_details.go deleted file mode 100644 index ac193ae4e5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_create_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VirtualCircuitDrgAttachmentNetworkCreateDetails The representation of VirtualCircuitDrgAttachmentNetworkCreateDetails -type VirtualCircuitDrgAttachmentNetworkCreateDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment that contains the Virtual Circuit. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The BGP ASN to use for the Virtual Circuit's route target - RegionalOciAsn *string `mandatory:"true" json:"regionalOciAsn"` - - // Whether the Fast Connect exists through an edge pop region. - // Example: `true` - IsEdgePop *bool `mandatory:"false" json:"isEdgePop"` - - // The OCI region name - RegionName *string `mandatory:"false" json:"regionName"` -} - -//GetId returns Id -func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) GetId() *string { - return m.Id -} - -func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVirtualCircuitDrgAttachmentNetworkCreateDetails VirtualCircuitDrgAttachmentNetworkCreateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVirtualCircuitDrgAttachmentNetworkCreateDetails - }{ - "VIRTUAL_CIRCUIT", - (MarshalTypeVirtualCircuitDrgAttachmentNetworkCreateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_details.go deleted file mode 100644 index 5fad87678e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_details.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VirtualCircuitDrgAttachmentNetworkDetails Specifies the virtual circuit attached to the DRG. -type VirtualCircuitDrgAttachmentNetworkDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. - Id *string `mandatory:"true" json:"id"` - - // Whether the Fast Connect is an FFAB VirtualCircuit. - // Example: `true` - IsFFAB *bool `mandatory:"false" json:"isFFAB"` - - // This indicates whether FastConnect extends through an edge POP region. - // Example: `true` - IsEdgePop *bool `mandatory:"false" json:"isEdgePop"` - - // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors - // tagged with the attachment's import route target. - ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` - - // Routes which are exported to the attachment are exported to the route reflectors - // with the route target set to the value of the attachment's export route target. - ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` - - // The MPLS label of the DRG attachment - MplsLabel *int `mandatory:"false" json:"mplsLabel"` - - // The BGP ASN to use for the IPSec connection's route target. - RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` - - // The Oracle Cloud Infrastructure region name. - RegionName *string `mandatory:"false" json:"regionName"` -} - -//GetId returns Id -func (m VirtualCircuitDrgAttachmentNetworkDetails) GetId() *string { - return m.Id -} - -func (m VirtualCircuitDrgAttachmentNetworkDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VirtualCircuitDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVirtualCircuitDrgAttachmentNetworkDetails VirtualCircuitDrgAttachmentNetworkDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVirtualCircuitDrgAttachmentNetworkDetails - }{ - "VIRTUAL_CIRCUIT", - (MarshalTypeVirtualCircuitDrgAttachmentNetworkDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_update_details.go deleted file mode 100644 index bc02caf6a9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_drg_attachment_network_update_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VirtualCircuitDrgAttachmentNetworkUpdateDetails Specifies the update details for the virtual circuit attachment. -type VirtualCircuitDrgAttachmentNetworkUpdateDetails struct { - - // Whether the Fast Connect is an FFAB VirtualCircuit. - // Example: `true` - IsFFAB *bool `mandatory:"false" json:"isFFAB"` - - // The BGP ASN to use for the virtual circuit's route target. - RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` - - // Indicates whether FastConnect extends through an edge POP region. - // Example: `true` - IsEdgePop *bool `mandatory:"false" json:"isEdgePop"` - - // The OCI region name - RegionName *string `mandatory:"false" json:"regionName"` -} - -func (m VirtualCircuitDrgAttachmentNetworkUpdateDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VirtualCircuitDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVirtualCircuitDrgAttachmentNetworkUpdateDetails VirtualCircuitDrgAttachmentNetworkUpdateDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVirtualCircuitDrgAttachmentNetworkUpdateDetails - }{ - "VIRTUAL_CIRCUIT", - (MarshalTypeVirtualCircuitDrgAttachmentNetworkUpdateDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_ip_mtu.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_ip_mtu.go deleted file mode 100644 index 10b5dae52c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_ip_mtu.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -// VirtualCircuitIpMtuEnum Enum with underlying type: string -type VirtualCircuitIpMtuEnum string - -// Set of constants representing the allowable values for VirtualCircuitIpMtuEnum -const ( - VirtualCircuitIpMtuMtu1500 VirtualCircuitIpMtuEnum = "MTU_1500" - VirtualCircuitIpMtuMtu9000 VirtualCircuitIpMtuEnum = "MTU_9000" -) - -var mappingVirtualCircuitIpMtu = map[string]VirtualCircuitIpMtuEnum{ - "MTU_1500": VirtualCircuitIpMtuMtu1500, - "MTU_9000": VirtualCircuitIpMtuMtu9000, -} - -// GetVirtualCircuitIpMtuEnumValues Enumerates the set of values for VirtualCircuitIpMtuEnum -func GetVirtualCircuitIpMtuEnumValues() []VirtualCircuitIpMtuEnum { - values := make([]VirtualCircuitIpMtuEnum, 0) - for _, v := range mappingVirtualCircuitIpMtu { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_public_prefix.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_public_prefix.go deleted file mode 100644 index 92d5c99330..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/virtual_circuit_public_prefix.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VirtualCircuitPublicPrefix A public IP prefix and its details. With a public virtual circuit, the customer -// specifies the customer-owned public IP prefixes to advertise across the connection. -// For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -type VirtualCircuitPublicPrefix struct { - - // Publix IP prefix (CIDR) that the customer specified. - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // Oracle must verify that the customer owns the public IP prefix before traffic - // for that prefix can flow across the virtual circuit. Verification can take a - // few business days. `IN_PROGRESS` means Oracle is verifying the prefix. `COMPLETED` - // means verification succeeded. `FAILED` means verification failed and traffic for - // this prefix will not flow across the connection. - VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"true" json:"verificationState"` -} - -func (m VirtualCircuitPublicPrefix) String() string { - return common.PointerString(m) -} - -// VirtualCircuitPublicPrefixVerificationStateEnum Enum with underlying type: string -type VirtualCircuitPublicPrefixVerificationStateEnum string - -// Set of constants representing the allowable values for VirtualCircuitPublicPrefixVerificationStateEnum -const ( - VirtualCircuitPublicPrefixVerificationStateInProgress VirtualCircuitPublicPrefixVerificationStateEnum = "IN_PROGRESS" - VirtualCircuitPublicPrefixVerificationStateCompleted VirtualCircuitPublicPrefixVerificationStateEnum = "COMPLETED" - VirtualCircuitPublicPrefixVerificationStateFailed VirtualCircuitPublicPrefixVerificationStateEnum = "FAILED" -) - -var mappingVirtualCircuitPublicPrefixVerificationState = map[string]VirtualCircuitPublicPrefixVerificationStateEnum{ - "IN_PROGRESS": VirtualCircuitPublicPrefixVerificationStateInProgress, - "COMPLETED": VirtualCircuitPublicPrefixVerificationStateCompleted, - "FAILED": VirtualCircuitPublicPrefixVerificationStateFailed, -} - -// GetVirtualCircuitPublicPrefixVerificationStateEnumValues Enumerates the set of values for VirtualCircuitPublicPrefixVerificationStateEnum -func GetVirtualCircuitPublicPrefixVerificationStateEnumValues() []VirtualCircuitPublicPrefixVerificationStateEnum { - values := make([]VirtualCircuitPublicPrefixVerificationStateEnum, 0) - for _, v := range mappingVirtualCircuitPublicPrefixVerificationState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vlan.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vlan.go deleted file mode 100644 index 47bd91c0cf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vlan.go +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Vlan A resource to be used only with the Oracle Cloud VMware Solution. -// Conceptually, a virtual LAN (VLAN) is a broadcast domain that is created -// by partitioning and isolating a network at the data link layer (a *layer 2 network*). -// VLANs work by using IEEE 802.1Q VLAN tags. Layer 2 traffic is forwarded within the -// VLAN based on MAC learning. -// In the Networking service, a VLAN is an object within a VCN. You use VLANs to -// partition the VCN at the data link layer (layer 2). A VLAN is analagous to a subnet, -// which is an object for partitioning the VCN at the IP layer (layer 3). -type Vlan struct { - - // The range of IPv4 addresses that will be used for layer 3 communication with - // hosts outside the VLAN. - // Example: `192.168.1.0/24` - CidrBlock *string `mandatory:"true" json:"cidrBlock"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VLAN. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The VLAN's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The VLAN's current state. - LifecycleState VlanLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the VLAN is in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The VLAN's availability domain. This attribute will be null if this is a regional VLAN - // rather than an AD-specific VLAN. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // A list of the OCIDs of the network security groups (NSGs) to use with this VLAN. - // All VNICs in the VLAN belong to these NSGs. For more - // information about NSGs, see - // NetworkSecurityGroup. - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // The IEEE 802.1Q VLAN tag of this VLAN. - // Example: `100` - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that the VLAN uses. - RouteTableId *string `mandatory:"false" json:"routeTableId"` - - // The date and time the VLAN was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m Vlan) String() string { - return common.PointerString(m) -} - -// VlanLifecycleStateEnum Enum with underlying type: string -type VlanLifecycleStateEnum string - -// Set of constants representing the allowable values for VlanLifecycleStateEnum -const ( - VlanLifecycleStateProvisioning VlanLifecycleStateEnum = "PROVISIONING" - VlanLifecycleStateAvailable VlanLifecycleStateEnum = "AVAILABLE" - VlanLifecycleStateTerminating VlanLifecycleStateEnum = "TERMINATING" - VlanLifecycleStateTerminated VlanLifecycleStateEnum = "TERMINATED" - VlanLifecycleStateUpdating VlanLifecycleStateEnum = "UPDATING" -) - -var mappingVlanLifecycleState = map[string]VlanLifecycleStateEnum{ - "PROVISIONING": VlanLifecycleStateProvisioning, - "AVAILABLE": VlanLifecycleStateAvailable, - "TERMINATING": VlanLifecycleStateTerminating, - "TERMINATED": VlanLifecycleStateTerminated, - "UPDATING": VlanLifecycleStateUpdating, -} - -// GetVlanLifecycleStateEnumValues Enumerates the set of values for VlanLifecycleStateEnum -func GetVlanLifecycleStateEnumValues() []VlanLifecycleStateEnum { - values := make([]VlanLifecycleStateEnum, 0) - for _, v := range mappingVlanLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_attachment.go deleted file mode 100644 index 3a08b3c323..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_attachment.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VnicAttachment Represents an attachment between a VNIC and an instance. For more information, see -// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VnicAttachment struct { - - // The availability domain of the instance. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment the VNIC attachment is in, which is the same - // compartment the instance is in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the VNIC attachment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the instance. - InstanceId *string `mandatory:"true" json:"instanceId"` - - // The current state of the VNIC attachment. - LifecycleState VnicAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the VNIC attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Which physical network interface card (NIC) the VNIC uses. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a secondary VNIC to one of these instances, you can specify which NIC - // the VNIC will use. For more information, see - // Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). - NicIndex *int `mandatory:"false" json:"nicIndex"` - - // The OCID of the subnet to create the VNIC in. - SubnetId *string `mandatory:"false" json:"subnetId"` - - // The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead - // of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. - // See Vlan. - // An error is returned if the instance already has a VNIC attached to it from this VLAN. - VlanId *string `mandatory:"false" json:"vlanId"` - - // The Oracle-assigned VLAN tag of the attached VNIC. Available after the - // attachment process is complete. - // However, if the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution, - // the `vlanTag` value is instead the value of the `vlanTag` attribute for the VLAN. - // See Vlan. - // Example: `0` - VlanTag *int `mandatory:"false" json:"vlanTag"` - - // The OCID of the VNIC. Available after the attachment process is complete. - VnicId *string `mandatory:"false" json:"vnicId"` -} - -func (m VnicAttachment) String() string { - return common.PointerString(m) -} - -// VnicAttachmentLifecycleStateEnum Enum with underlying type: string -type VnicAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for VnicAttachmentLifecycleStateEnum -const ( - VnicAttachmentLifecycleStateAttaching VnicAttachmentLifecycleStateEnum = "ATTACHING" - VnicAttachmentLifecycleStateAttached VnicAttachmentLifecycleStateEnum = "ATTACHED" - VnicAttachmentLifecycleStateDetaching VnicAttachmentLifecycleStateEnum = "DETACHING" - VnicAttachmentLifecycleStateDetached VnicAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingVnicAttachmentLifecycleState = map[string]VnicAttachmentLifecycleStateEnum{ - "ATTACHING": VnicAttachmentLifecycleStateAttaching, - "ATTACHED": VnicAttachmentLifecycleStateAttached, - "DETACHING": VnicAttachmentLifecycleStateDetaching, - "DETACHED": VnicAttachmentLifecycleStateDetached, -} - -// GetVnicAttachmentLifecycleStateEnumValues Enumerates the set of values for VnicAttachmentLifecycleStateEnum -func GetVnicAttachmentLifecycleStateEnumValues() []VnicAttachmentLifecycleStateEnum { - values := make([]VnicAttachmentLifecycleStateEnum, 0) - for _, v := range mappingVnicAttachmentLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker.go deleted file mode 100644 index 9dc44338bc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VnicWorker Details of a vnicWorker. -type VnicWorker struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `vnicWorker`. - Id *string `mandatory:"false" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the VNIC worker. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The `vnicWorker`'s current state. - LifecycleState VnicWorkerLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of associated service VNIC. - ServiceVnicId *string `mandatory:"false" json:"serviceVnicId"` - - // Details of vnicWorker IPs config. - WorkerIpsConfig []VnicWorkerIpConfig `mandatory:"false" json:"workerIpsConfig"` - - // The MAC address of the vnicWorker. - WorkerMacAddress *string `mandatory:"false" json:"workerMacAddress"` - - // The instance where vnicWorker is attached. - WorkerInstanceId *string `mandatory:"false" json:"workerInstanceId"` - - // Which physical network interface card (NIC) the VNIC worker uses. - // Certain bare metal instance shapes have two active physical NICs (0 and 1). If - // you add a VNIC worker to one of these instances, you can specify which NIC - // the VNIC worker will use. Note that it is required for NIC to have at least a single - // VNIC attached before attaching a VNIC worker. - WorkerNicIndex *int `mandatory:"false" json:"workerNicIndex"` - - // The VLAN tag assigned to `vnicWorker`. - WorkerVlanTag *int `mandatory:"false" json:"workerVlanTag"` - - WorkerPrimaryIpConfig *VnicWorkerIpConfig `mandatory:"false" json:"workerPrimaryIpConfig"` - - // Specifies whether the `vnicWorker` had been enabled for forwarding traffic. - IsEnabled *bool `mandatory:"false" json:"isEnabled"` - - // Specifies whether the `vnicWorker` is in draining mode. - IsDraining *bool `mandatory:"false" json:"isDraining"` -} - -func (m VnicWorker) String() string { - return common.PointerString(m) -} - -// VnicWorkerLifecycleStateEnum Enum with underlying type: string -type VnicWorkerLifecycleStateEnum string - -// Set of constants representing the allowable values for VnicWorkerLifecycleStateEnum -const ( - VnicWorkerLifecycleStateProvisioning VnicWorkerLifecycleStateEnum = "PROVISIONING" - VnicWorkerLifecycleStateAvailable VnicWorkerLifecycleStateEnum = "AVAILABLE" - VnicWorkerLifecycleStateTerminating VnicWorkerLifecycleStateEnum = "TERMINATING" - VnicWorkerLifecycleStateTerminated VnicWorkerLifecycleStateEnum = "TERMINATED" -) - -var mappingVnicWorkerLifecycleState = map[string]VnicWorkerLifecycleStateEnum{ - "PROVISIONING": VnicWorkerLifecycleStateProvisioning, - "AVAILABLE": VnicWorkerLifecycleStateAvailable, - "TERMINATING": VnicWorkerLifecycleStateTerminating, - "TERMINATED": VnicWorkerLifecycleStateTerminated, -} - -// GetVnicWorkerLifecycleStateEnumValues Enumerates the set of values for VnicWorkerLifecycleStateEnum -func GetVnicWorkerLifecycleStateEnumValues() []VnicWorkerLifecycleStateEnum { - values := make([]VnicWorkerLifecycleStateEnum, 0) - for _, v := range mappingVnicWorkerLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker_ip_config.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker_ip_config.go deleted file mode 100644 index 9754f568a4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic_worker_ip_config.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VnicWorkerIpConfig Details of a `vnicWorker` IP config. -type VnicWorkerIpConfig struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of IP associated with the `vnicWorker`. - Id *string `mandatory:"false" json:"id"` - - // The IP address. - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The NAT IP address associated with the Private IP - NatIpAddress *string `mandatory:"false" json:"natIpAddress"` -} - -func (m VnicWorkerIpConfig) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume.go deleted file mode 100644 index 5256cb7e8e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume.go +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Volume A detachable block volume device that allows you to dynamically expand -// the storage capacity of an instance. For more information, see -// Overview of Cloud Volume Storage (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type Volume struct { - - // The availability domain of the volume. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the volume. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the volume. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume. - LifecycleState VolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The size of the volume in MBs. This field is deprecated. Use - // sizeInGBs instead. - SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` - - // The date and time the volume was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // Specifies whether the cloned volume's data has finished copying from the source volume or backup. - IsHydrated *bool `mandatory:"false" json:"isHydrated"` - - // The OCID of the Key Management key which is the master encryption key for the volume. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The number of volume performance units (VPUs) that will be applied to this volume per GB, - // representing the Block Volume service's elastic performance options. - // See Block Volume Elastic Performance (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeelasticperformance.htm) for more information. - // Allowed values: - // * `0`: Represents Lower Cost option. - // * `10`: Represents Balanced option. - // * `20`: Represents Higher Performance option. - VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` - - // The size of the volume in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` - - // The OCID of the source volume group. - VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` - - // Specifies whether the auto-tune performance is enabled for this volume. - IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` - - // The number of Volume Performance Units per GB that this volume is effectively tuned to when it's idle. - AutoTunedVpusPerGB *int64 `mandatory:"false" json:"autoTunedVpusPerGB"` - - // The list of block volume replicas of this volume. - BlockVolumeReplicas []BlockVolumeReplicaInfo `mandatory:"false" json:"blockVolumeReplicas"` -} - -func (m Volume) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *Volume) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - SystemTags map[string]map[string]interface{} `json:"systemTags"` - IsHydrated *bool `json:"isHydrated"` - KmsKeyId *string `json:"kmsKeyId"` - VpusPerGB *int64 `json:"vpusPerGB"` - SizeInGBs *int64 `json:"sizeInGBs"` - SourceDetails volumesourcedetails `json:"sourceDetails"` - VolumeGroupId *string `json:"volumeGroupId"` - IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` - AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB"` - BlockVolumeReplicas []BlockVolumeReplicaInfo `json:"blockVolumeReplicas"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - DisplayName *string `json:"displayName"` - Id *string `json:"id"` - LifecycleState VolumeLifecycleStateEnum `json:"lifecycleState"` - SizeInMBs *int64 `json:"sizeInMBs"` - TimeCreated *common.SDKTime `json:"timeCreated"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - m.SystemTags = model.SystemTags - - m.IsHydrated = model.IsHydrated - - m.KmsKeyId = model.KmsKeyId - - m.VpusPerGB = model.VpusPerGB - - m.SizeInGBs = model.SizeInGBs - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(VolumeSourceDetails) - } else { - m.SourceDetails = nil - } - - m.VolumeGroupId = model.VolumeGroupId - - m.IsAutoTuneEnabled = model.IsAutoTuneEnabled - - m.AutoTunedVpusPerGB = model.AutoTunedVpusPerGB - - m.BlockVolumeReplicas = make([]BlockVolumeReplicaInfo, len(model.BlockVolumeReplicas)) - for i, n := range model.BlockVolumeReplicas { - m.BlockVolumeReplicas[i] = n - } - - m.AvailabilityDomain = model.AvailabilityDomain - - m.CompartmentId = model.CompartmentId - - m.DisplayName = model.DisplayName - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - m.SizeInMBs = model.SizeInMBs - - m.TimeCreated = model.TimeCreated - - return -} - -// VolumeLifecycleStateEnum Enum with underlying type: string -type VolumeLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeLifecycleStateEnum -const ( - VolumeLifecycleStateProvisioning VolumeLifecycleStateEnum = "PROVISIONING" - VolumeLifecycleStateRestoring VolumeLifecycleStateEnum = "RESTORING" - VolumeLifecycleStateAvailable VolumeLifecycleStateEnum = "AVAILABLE" - VolumeLifecycleStateTerminating VolumeLifecycleStateEnum = "TERMINATING" - VolumeLifecycleStateTerminated VolumeLifecycleStateEnum = "TERMINATED" - VolumeLifecycleStateFaulty VolumeLifecycleStateEnum = "FAULTY" -) - -var mappingVolumeLifecycleState = map[string]VolumeLifecycleStateEnum{ - "PROVISIONING": VolumeLifecycleStateProvisioning, - "RESTORING": VolumeLifecycleStateRestoring, - "AVAILABLE": VolumeLifecycleStateAvailable, - "TERMINATING": VolumeLifecycleStateTerminating, - "TERMINATED": VolumeLifecycleStateTerminated, - "FAULTY": VolumeLifecycleStateFaulty, -} - -// GetVolumeLifecycleStateEnumValues Enumerates the set of values for VolumeLifecycleStateEnum -func GetVolumeLifecycleStateEnumValues() []VolumeLifecycleStateEnum { - values := make([]VolumeLifecycleStateEnum, 0) - for _, v := range mappingVolumeLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_attachment.go deleted file mode 100644 index 8911f926eb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_attachment.go +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeAttachment A base object for all types of attachments between a storage volume and an instance. -// For specific details about iSCSI attachments, see -// IScsiVolumeAttachment. -// For general information about volume attachments, see -// Overview of Block Volume Storage (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VolumeAttachment interface { - - // The availability domain of an instance. - // Example: `Uocm:PHX-AD-1` - GetAvailabilityDomain() *string - - // The OCID of the compartment. - GetCompartmentId() *string - - // The OCID of the volume attachment. - GetId() *string - - // The OCID of the instance the volume is attached to. - GetInstanceId() *string - - // The current state of the volume attachment. - GetLifecycleState() VolumeAttachmentLifecycleStateEnum - - // The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2016-08-25T21:10:29.600Z` - GetTimeCreated() *common.SDKTime - - // The OCID of the volume. - GetVolumeId() *string - - // The device name. - GetDevice() *string - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - GetDisplayName() *string - - // Whether the attachment was created in read-only mode. - GetIsReadOnly() *bool - - // Whether the attachment should be created in shareable mode. If an attachment - // is created in shareable mode, then other instances can attach the same volume, provided - // that they also create their attachments in shareable mode. Only certain volume types can - // be attached in shareable mode. Defaults to false if not specified. - GetIsShareable() *bool - - // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. - GetIsPvEncryptionInTransitEnabled() *bool - - // Whether the attachment is multipath or not. - GetIsMultipath() *bool - - // The iscsi login state of the volume attachment. For a multipath volume attachment, - // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. - GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum -} - -type volumeattachment struct { - JsonData []byte - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Id *string `mandatory:"true" json:"id"` - InstanceId *string `mandatory:"true" json:"instanceId"` - LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - VolumeId *string `mandatory:"true" json:"volumeId"` - Device *string `mandatory:"false" json:"device"` - DisplayName *string `mandatory:"false" json:"displayName"` - IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` - IsShareable *bool `mandatory:"false" json:"isShareable"` - IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - IsMultipath *bool `mandatory:"false" json:"isMultipath"` - IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` - AttachmentType string `json:"attachmentType"` -} - -// UnmarshalJSON unmarshals json -func (m *volumeattachment) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalervolumeattachment volumeattachment - s := struct { - Model Unmarshalervolumeattachment - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.AvailabilityDomain = s.Model.AvailabilityDomain - m.CompartmentId = s.Model.CompartmentId - m.Id = s.Model.Id - m.InstanceId = s.Model.InstanceId - m.LifecycleState = s.Model.LifecycleState - m.TimeCreated = s.Model.TimeCreated - m.VolumeId = s.Model.VolumeId - m.Device = s.Model.Device - m.DisplayName = s.Model.DisplayName - m.IsReadOnly = s.Model.IsReadOnly - m.IsShareable = s.Model.IsShareable - m.IsPvEncryptionInTransitEnabled = s.Model.IsPvEncryptionInTransitEnabled - m.IsMultipath = s.Model.IsMultipath - m.IscsiLoginState = s.Model.IscsiLoginState - m.AttachmentType = s.Model.AttachmentType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.AttachmentType { - case "iscsi": - mm := IScsiVolumeAttachment{} - err = json.Unmarshal(data, &mm) - return mm, err - case "emulated": - mm := EmulatedVolumeAttachment{} - err = json.Unmarshal(data, &mm) - return mm, err - case "paravirtualized": - mm := ParavirtualizedVolumeAttachment{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m volumeattachment) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetCompartmentId returns CompartmentId -func (m volumeattachment) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetId returns Id -func (m volumeattachment) GetId() *string { - return m.Id -} - -//GetInstanceId returns InstanceId -func (m volumeattachment) GetInstanceId() *string { - return m.InstanceId -} - -//GetLifecycleState returns LifecycleState -func (m volumeattachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { - return m.LifecycleState -} - -//GetTimeCreated returns TimeCreated -func (m volumeattachment) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -//GetVolumeId returns VolumeId -func (m volumeattachment) GetVolumeId() *string { - return m.VolumeId -} - -//GetDevice returns Device -func (m volumeattachment) GetDevice() *string { - return m.Device -} - -//GetDisplayName returns DisplayName -func (m volumeattachment) GetDisplayName() *string { - return m.DisplayName -} - -//GetIsReadOnly returns IsReadOnly -func (m volumeattachment) GetIsReadOnly() *bool { - return m.IsReadOnly -} - -//GetIsShareable returns IsShareable -func (m volumeattachment) GetIsShareable() *bool { - return m.IsShareable -} - -//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled -func (m volumeattachment) GetIsPvEncryptionInTransitEnabled() *bool { - return m.IsPvEncryptionInTransitEnabled -} - -//GetIsMultipath returns IsMultipath -func (m volumeattachment) GetIsMultipath() *bool { - return m.IsMultipath -} - -//GetIscsiLoginState returns IscsiLoginState -func (m volumeattachment) GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum { - return m.IscsiLoginState -} - -func (m volumeattachment) String() string { - return common.PointerString(m) -} - -// VolumeAttachmentLifecycleStateEnum Enum with underlying type: string -type VolumeAttachmentLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeAttachmentLifecycleStateEnum -const ( - VolumeAttachmentLifecycleStateAttaching VolumeAttachmentLifecycleStateEnum = "ATTACHING" - VolumeAttachmentLifecycleStateAttached VolumeAttachmentLifecycleStateEnum = "ATTACHED" - VolumeAttachmentLifecycleStateDetaching VolumeAttachmentLifecycleStateEnum = "DETACHING" - VolumeAttachmentLifecycleStateDetached VolumeAttachmentLifecycleStateEnum = "DETACHED" -) - -var mappingVolumeAttachmentLifecycleState = map[string]VolumeAttachmentLifecycleStateEnum{ - "ATTACHING": VolumeAttachmentLifecycleStateAttaching, - "ATTACHED": VolumeAttachmentLifecycleStateAttached, - "DETACHING": VolumeAttachmentLifecycleStateDetaching, - "DETACHED": VolumeAttachmentLifecycleStateDetached, -} - -// GetVolumeAttachmentLifecycleStateEnumValues Enumerates the set of values for VolumeAttachmentLifecycleStateEnum -func GetVolumeAttachmentLifecycleStateEnumValues() []VolumeAttachmentLifecycleStateEnum { - values := make([]VolumeAttachmentLifecycleStateEnum, 0) - for _, v := range mappingVolumeAttachmentLifecycleState { - values = append(values, v) - } - return values -} - -// VolumeAttachmentIscsiLoginStateEnum Enum with underlying type: string -type VolumeAttachmentIscsiLoginStateEnum string - -// Set of constants representing the allowable values for VolumeAttachmentIscsiLoginStateEnum -const ( - VolumeAttachmentIscsiLoginStateUnknown VolumeAttachmentIscsiLoginStateEnum = "UNKNOWN" - VolumeAttachmentIscsiLoginStateLoggingIn VolumeAttachmentIscsiLoginStateEnum = "LOGGING_IN" - VolumeAttachmentIscsiLoginStateLoginSucceeded VolumeAttachmentIscsiLoginStateEnum = "LOGIN_SUCCEEDED" - VolumeAttachmentIscsiLoginStateLoginFailed VolumeAttachmentIscsiLoginStateEnum = "LOGIN_FAILED" - VolumeAttachmentIscsiLoginStateLoggingOut VolumeAttachmentIscsiLoginStateEnum = "LOGGING_OUT" - VolumeAttachmentIscsiLoginStateLogoutSucceeded VolumeAttachmentIscsiLoginStateEnum = "LOGOUT_SUCCEEDED" - VolumeAttachmentIscsiLoginStateLogoutFailed VolumeAttachmentIscsiLoginStateEnum = "LOGOUT_FAILED" -) - -var mappingVolumeAttachmentIscsiLoginState = map[string]VolumeAttachmentIscsiLoginStateEnum{ - "UNKNOWN": VolumeAttachmentIscsiLoginStateUnknown, - "LOGGING_IN": VolumeAttachmentIscsiLoginStateLoggingIn, - "LOGIN_SUCCEEDED": VolumeAttachmentIscsiLoginStateLoginSucceeded, - "LOGIN_FAILED": VolumeAttachmentIscsiLoginStateLoginFailed, - "LOGGING_OUT": VolumeAttachmentIscsiLoginStateLoggingOut, - "LOGOUT_SUCCEEDED": VolumeAttachmentIscsiLoginStateLogoutSucceeded, - "LOGOUT_FAILED": VolumeAttachmentIscsiLoginStateLogoutFailed, -} - -// GetVolumeAttachmentIscsiLoginStateEnumValues Enumerates the set of values for VolumeAttachmentIscsiLoginStateEnum -func GetVolumeAttachmentIscsiLoginStateEnumValues() []VolumeAttachmentIscsiLoginStateEnum { - values := make([]VolumeAttachmentIscsiLoginStateEnum, 0) - for _, v := range mappingVolumeAttachmentIscsiLoginState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup.go deleted file mode 100644 index 390a80ccee..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup.go +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeBackup A point-in-time copy of a volume that can then be used to create a new block volume -// or recover a block volume. For more information, see -// Overview of Cloud Volume Storage (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VolumeBackup struct { - - // The OCID of the compartment that contains the volume backup. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the volume backup. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume backup. - LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the volume backup was created. This is the time the actual point-in-time image - // of the volume data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The type of a volume backup. - Type VolumeBackupTypeEnum `mandatory:"true" json:"type"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // System tags for this resource. Each key is predefined and scoped to a namespace. - // Example: `{"foo-namespace": {"bar-key": "value"}}` - SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` - - // The date and time the volume backup will expire and be automatically deleted. - // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for backups that - // were created automatically by a scheduled-backup policy. For manually created backups, - // it will be absent, signifying that there is no expiration time and the backup will - // last forever until manually deleted. - ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The OCID of the Key Management key which is the master encryption key for the volume backup. - // For more information about the Key Management service and encryption keys, see - // Overview of Key Management (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and - // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The size of the volume, in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // The size of the volume in MBs. The value must be a multiple of 1024. - // This field is deprecated. Please use sizeInGBs. - SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` - - // Specifies whether the backup was created manually, or via scheduled backup policy. - SourceType VolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - // The OCID of the source volume backup. - SourceVolumeBackupId *string `mandatory:"false" json:"sourceVolumeBackupId"` - - // The date and time the request to create the volume backup was received. Format defined by [RFC3339]https://tools.ietf.org/html/rfc3339. - TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` - - // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space - // consumed on the volume and whether the backup is full or incremental. - UniqueSizeInGBs *int64 `mandatory:"false" json:"uniqueSizeInGBs"` - - // The size used by the backup, in MBs. It is typically smaller than sizeInMBs, depending on the space - // consumed on the volume and whether the backup is full or incremental. - // This field is deprecated. Please use uniqueSizeInGBs. - UniqueSizeInMbs *int64 `mandatory:"false" json:"uniqueSizeInMbs"` - - // The percentage complete of the operation to create the volume backup, based on the volume backup size. - BackupProgress *int `mandatory:"false" json:"backupProgress"` - - // The OCID of the volume. - VolumeId *string `mandatory:"false" json:"volumeId"` -} - -func (m VolumeBackup) String() string { - return common.PointerString(m) -} - -// VolumeBackupLifecycleStateEnum Enum with underlying type: string -type VolumeBackupLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeBackupLifecycleStateEnum -const ( - VolumeBackupLifecycleStateCreating VolumeBackupLifecycleStateEnum = "CREATING" - VolumeBackupLifecycleStateAvailable VolumeBackupLifecycleStateEnum = "AVAILABLE" - VolumeBackupLifecycleStateTerminating VolumeBackupLifecycleStateEnum = "TERMINATING" - VolumeBackupLifecycleStateTerminated VolumeBackupLifecycleStateEnum = "TERMINATED" - VolumeBackupLifecycleStateFaulty VolumeBackupLifecycleStateEnum = "FAULTY" - VolumeBackupLifecycleStateRequestReceived VolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" -) - -var mappingVolumeBackupLifecycleState = map[string]VolumeBackupLifecycleStateEnum{ - "CREATING": VolumeBackupLifecycleStateCreating, - "AVAILABLE": VolumeBackupLifecycleStateAvailable, - "TERMINATING": VolumeBackupLifecycleStateTerminating, - "TERMINATED": VolumeBackupLifecycleStateTerminated, - "FAULTY": VolumeBackupLifecycleStateFaulty, - "REQUEST_RECEIVED": VolumeBackupLifecycleStateRequestReceived, -} - -// GetVolumeBackupLifecycleStateEnumValues Enumerates the set of values for VolumeBackupLifecycleStateEnum -func GetVolumeBackupLifecycleStateEnumValues() []VolumeBackupLifecycleStateEnum { - values := make([]VolumeBackupLifecycleStateEnum, 0) - for _, v := range mappingVolumeBackupLifecycleState { - values = append(values, v) - } - return values -} - -// VolumeBackupSourceTypeEnum Enum with underlying type: string -type VolumeBackupSourceTypeEnum string - -// Set of constants representing the allowable values for VolumeBackupSourceTypeEnum -const ( - VolumeBackupSourceTypeManual VolumeBackupSourceTypeEnum = "MANUAL" - VolumeBackupSourceTypeScheduled VolumeBackupSourceTypeEnum = "SCHEDULED" -) - -var mappingVolumeBackupSourceType = map[string]VolumeBackupSourceTypeEnum{ - "MANUAL": VolumeBackupSourceTypeManual, - "SCHEDULED": VolumeBackupSourceTypeScheduled, -} - -// GetVolumeBackupSourceTypeEnumValues Enumerates the set of values for VolumeBackupSourceTypeEnum -func GetVolumeBackupSourceTypeEnumValues() []VolumeBackupSourceTypeEnum { - values := make([]VolumeBackupSourceTypeEnum, 0) - for _, v := range mappingVolumeBackupSourceType { - values = append(values, v) - } - return values -} - -// VolumeBackupTypeEnum Enum with underlying type: string -type VolumeBackupTypeEnum string - -// Set of constants representing the allowable values for VolumeBackupTypeEnum -const ( - VolumeBackupTypeFull VolumeBackupTypeEnum = "FULL" - VolumeBackupTypeIncremental VolumeBackupTypeEnum = "INCREMENTAL" -) - -var mappingVolumeBackupType = map[string]VolumeBackupTypeEnum{ - "FULL": VolumeBackupTypeFull, - "INCREMENTAL": VolumeBackupTypeIncremental, -} - -// GetVolumeBackupTypeEnumValues Enumerates the set of values for VolumeBackupTypeEnum -func GetVolumeBackupTypeEnumValues() []VolumeBackupTypeEnum { - values := make([]VolumeBackupTypeEnum, 0) - for _, v := range mappingVolumeBackupType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy.go deleted file mode 100644 index f8e89b9aa5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeBackupPolicy A policy for automatically creating volume backups according to a -// recurring schedule. Has a set of one or more schedules that control when and -// how backups are created. -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VolumeBackupPolicy struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the volume backup policy. - Id *string `mandatory:"true" json:"id"` - - // The collection of schedules that this policy will apply. - Schedules []VolumeBackupSchedule `mandatory:"true" json:"schedules"` - - // The date and time the volume backup policy was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The paired destination region for copying scheduled backups to. Example `us-ashburn-1`. - // See Region Pairs (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#RegionPairs) for details about paired regions. - DestinationRegion *string `mandatory:"false" json:"destinationRegion"` - - // The OCID of the compartment that contains the volume backup. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The current state of a volume backup. This will only ever be sent to SPLAT for reconciliation. - LifecycleState VolumeBackupPolicyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m VolumeBackupPolicy) String() string { - return common.PointerString(m) -} - -// VolumeBackupPolicyLifecycleStateEnum Enum with underlying type: string -type VolumeBackupPolicyLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeBackupPolicyLifecycleStateEnum -const ( - VolumeBackupPolicyLifecycleStateAvailable VolumeBackupPolicyLifecycleStateEnum = "AVAILABLE" -) - -var mappingVolumeBackupPolicyLifecycleState = map[string]VolumeBackupPolicyLifecycleStateEnum{ - "AVAILABLE": VolumeBackupPolicyLifecycleStateAvailable, -} - -// GetVolumeBackupPolicyLifecycleStateEnumValues Enumerates the set of values for VolumeBackupPolicyLifecycleStateEnum -func GetVolumeBackupPolicyLifecycleStateEnumValues() []VolumeBackupPolicyLifecycleStateEnum { - values := make([]VolumeBackupPolicyLifecycleStateEnum, 0) - for _, v := range mappingVolumeBackupPolicyLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy_assignment.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy_assignment.go deleted file mode 100644 index 38dddb6c96..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_policy_assignment.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeBackupPolicyAssignment Specifies the volume that the volume backup policy is assigned to. -// For more information about Oracle defined backup policies and custom backup policies, -// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). -type VolumeBackupPolicyAssignment struct { - - // The OCID of the volume the policy has been assigned to. - AssetId *string `mandatory:"true" json:"assetId"` - - // The OCID of the volume backup policy assignment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the volume backup policy that has been assigned to the volume. - PolicyId *string `mandatory:"true" json:"policyId"` - - // The date and time the volume backup policy was assigned to the volume. The format is - // defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` -} - -func (m VolumeBackupPolicyAssignment) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_schedule.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_schedule.go deleted file mode 100644 index 30f80698d5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_backup_schedule.go +++ /dev/null @@ -1,248 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeBackupSchedule Defines the backup frequency and retention period for a volume backup policy. For more information, -// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). -type VolumeBackupSchedule struct { - - // The type of volume backup to create. - BackupType VolumeBackupScheduleBackupTypeEnum `mandatory:"true" json:"backupType"` - - // The volume backup frequency. - Period VolumeBackupSchedulePeriodEnum `mandatory:"true" json:"period"` - - // How long, in seconds, to keep the volume backups created by this schedule. - RetentionSeconds *int `mandatory:"true" json:"retentionSeconds"` - - // The number of seconds that the volume backup start - // time should be shifted from the default interval boundaries specified by - // the period. The volume backup start time is the frequency start time plus the offset. - OffsetSeconds *int `mandatory:"false" json:"offsetSeconds"` - - // Indicates how the offset is defined. If value is `STRUCTURED`, - // then `hourOfDay`, `dayOfWeek`, `dayOfMonth`, and `month` fields are used - // and `offsetSeconds` will be ignored in requests and users should ignore its - // value from the responses. - // `hourOfDay` is applicable for periods `ONE_DAY`, - // `ONE_WEEK`, `ONE_MONTH` and `ONE_YEAR`. - // `dayOfWeek` is applicable for period - // `ONE_WEEK`. - // `dayOfMonth` is applicable for periods `ONE_MONTH` and `ONE_YEAR`. - // 'month' is applicable for period 'ONE_YEAR'. - // They will be ignored in the requests for inapplicable periods. - // If value is `NUMERIC_SECONDS`, then `offsetSeconds` - // will be used for both requests and responses and the structured fields will be - // ignored in the requests and users should ignore their values from the responses. - // For clients using older versions of Apis and not sending `offsetType` in their - // requests, the behaviour is just like `NUMERIC_SECONDS`. - OffsetType VolumeBackupScheduleOffsetTypeEnum `mandatory:"false" json:"offsetType,omitempty"` - - // The hour of the day to schedule the volume backup. - HourOfDay *int `mandatory:"false" json:"hourOfDay"` - - // The day of the week to schedule the volume backup. - DayOfWeek VolumeBackupScheduleDayOfWeekEnum `mandatory:"false" json:"dayOfWeek,omitempty"` - - // The day of the month to schedule the volume backup. - DayOfMonth *int `mandatory:"false" json:"dayOfMonth"` - - // The month of the year to schedule the volume backup. - Month VolumeBackupScheduleMonthEnum `mandatory:"false" json:"month,omitempty"` - - // Specifies what time zone is the schedule in - TimeZone VolumeBackupScheduleTimeZoneEnum `mandatory:"false" json:"timeZone,omitempty"` -} - -func (m VolumeBackupSchedule) String() string { - return common.PointerString(m) -} - -// VolumeBackupScheduleBackupTypeEnum Enum with underlying type: string -type VolumeBackupScheduleBackupTypeEnum string - -// Set of constants representing the allowable values for VolumeBackupScheduleBackupTypeEnum -const ( - VolumeBackupScheduleBackupTypeFull VolumeBackupScheduleBackupTypeEnum = "FULL" - VolumeBackupScheduleBackupTypeIncremental VolumeBackupScheduleBackupTypeEnum = "INCREMENTAL" -) - -var mappingVolumeBackupScheduleBackupType = map[string]VolumeBackupScheduleBackupTypeEnum{ - "FULL": VolumeBackupScheduleBackupTypeFull, - "INCREMENTAL": VolumeBackupScheduleBackupTypeIncremental, -} - -// GetVolumeBackupScheduleBackupTypeEnumValues Enumerates the set of values for VolumeBackupScheduleBackupTypeEnum -func GetVolumeBackupScheduleBackupTypeEnumValues() []VolumeBackupScheduleBackupTypeEnum { - values := make([]VolumeBackupScheduleBackupTypeEnum, 0) - for _, v := range mappingVolumeBackupScheduleBackupType { - values = append(values, v) - } - return values -} - -// VolumeBackupSchedulePeriodEnum Enum with underlying type: string -type VolumeBackupSchedulePeriodEnum string - -// Set of constants representing the allowable values for VolumeBackupSchedulePeriodEnum -const ( - VolumeBackupSchedulePeriodHour VolumeBackupSchedulePeriodEnum = "ONE_HOUR" - VolumeBackupSchedulePeriodDay VolumeBackupSchedulePeriodEnum = "ONE_DAY" - VolumeBackupSchedulePeriodWeek VolumeBackupSchedulePeriodEnum = "ONE_WEEK" - VolumeBackupSchedulePeriodMonth VolumeBackupSchedulePeriodEnum = "ONE_MONTH" - VolumeBackupSchedulePeriodYear VolumeBackupSchedulePeriodEnum = "ONE_YEAR" -) - -var mappingVolumeBackupSchedulePeriod = map[string]VolumeBackupSchedulePeriodEnum{ - "ONE_HOUR": VolumeBackupSchedulePeriodHour, - "ONE_DAY": VolumeBackupSchedulePeriodDay, - "ONE_WEEK": VolumeBackupSchedulePeriodWeek, - "ONE_MONTH": VolumeBackupSchedulePeriodMonth, - "ONE_YEAR": VolumeBackupSchedulePeriodYear, -} - -// GetVolumeBackupSchedulePeriodEnumValues Enumerates the set of values for VolumeBackupSchedulePeriodEnum -func GetVolumeBackupSchedulePeriodEnumValues() []VolumeBackupSchedulePeriodEnum { - values := make([]VolumeBackupSchedulePeriodEnum, 0) - for _, v := range mappingVolumeBackupSchedulePeriod { - values = append(values, v) - } - return values -} - -// VolumeBackupScheduleOffsetTypeEnum Enum with underlying type: string -type VolumeBackupScheduleOffsetTypeEnum string - -// Set of constants representing the allowable values for VolumeBackupScheduleOffsetTypeEnum -const ( - VolumeBackupScheduleOffsetTypeStructured VolumeBackupScheduleOffsetTypeEnum = "STRUCTURED" - VolumeBackupScheduleOffsetTypeNumericSeconds VolumeBackupScheduleOffsetTypeEnum = "NUMERIC_SECONDS" -) - -var mappingVolumeBackupScheduleOffsetType = map[string]VolumeBackupScheduleOffsetTypeEnum{ - "STRUCTURED": VolumeBackupScheduleOffsetTypeStructured, - "NUMERIC_SECONDS": VolumeBackupScheduleOffsetTypeNumericSeconds, -} - -// GetVolumeBackupScheduleOffsetTypeEnumValues Enumerates the set of values for VolumeBackupScheduleOffsetTypeEnum -func GetVolumeBackupScheduleOffsetTypeEnumValues() []VolumeBackupScheduleOffsetTypeEnum { - values := make([]VolumeBackupScheduleOffsetTypeEnum, 0) - for _, v := range mappingVolumeBackupScheduleOffsetType { - values = append(values, v) - } - return values -} - -// VolumeBackupScheduleDayOfWeekEnum Enum with underlying type: string -type VolumeBackupScheduleDayOfWeekEnum string - -// Set of constants representing the allowable values for VolumeBackupScheduleDayOfWeekEnum -const ( - VolumeBackupScheduleDayOfWeekMonday VolumeBackupScheduleDayOfWeekEnum = "MONDAY" - VolumeBackupScheduleDayOfWeekTuesday VolumeBackupScheduleDayOfWeekEnum = "TUESDAY" - VolumeBackupScheduleDayOfWeekWednesday VolumeBackupScheduleDayOfWeekEnum = "WEDNESDAY" - VolumeBackupScheduleDayOfWeekThursday VolumeBackupScheduleDayOfWeekEnum = "THURSDAY" - VolumeBackupScheduleDayOfWeekFriday VolumeBackupScheduleDayOfWeekEnum = "FRIDAY" - VolumeBackupScheduleDayOfWeekSaturday VolumeBackupScheduleDayOfWeekEnum = "SATURDAY" - VolumeBackupScheduleDayOfWeekSunday VolumeBackupScheduleDayOfWeekEnum = "SUNDAY" -) - -var mappingVolumeBackupScheduleDayOfWeek = map[string]VolumeBackupScheduleDayOfWeekEnum{ - "MONDAY": VolumeBackupScheduleDayOfWeekMonday, - "TUESDAY": VolumeBackupScheduleDayOfWeekTuesday, - "WEDNESDAY": VolumeBackupScheduleDayOfWeekWednesday, - "THURSDAY": VolumeBackupScheduleDayOfWeekThursday, - "FRIDAY": VolumeBackupScheduleDayOfWeekFriday, - "SATURDAY": VolumeBackupScheduleDayOfWeekSaturday, - "SUNDAY": VolumeBackupScheduleDayOfWeekSunday, -} - -// GetVolumeBackupScheduleDayOfWeekEnumValues Enumerates the set of values for VolumeBackupScheduleDayOfWeekEnum -func GetVolumeBackupScheduleDayOfWeekEnumValues() []VolumeBackupScheduleDayOfWeekEnum { - values := make([]VolumeBackupScheduleDayOfWeekEnum, 0) - for _, v := range mappingVolumeBackupScheduleDayOfWeek { - values = append(values, v) - } - return values -} - -// VolumeBackupScheduleMonthEnum Enum with underlying type: string -type VolumeBackupScheduleMonthEnum string - -// Set of constants representing the allowable values for VolumeBackupScheduleMonthEnum -const ( - VolumeBackupScheduleMonthJanuary VolumeBackupScheduleMonthEnum = "JANUARY" - VolumeBackupScheduleMonthFebruary VolumeBackupScheduleMonthEnum = "FEBRUARY" - VolumeBackupScheduleMonthMarch VolumeBackupScheduleMonthEnum = "MARCH" - VolumeBackupScheduleMonthApril VolumeBackupScheduleMonthEnum = "APRIL" - VolumeBackupScheduleMonthMay VolumeBackupScheduleMonthEnum = "MAY" - VolumeBackupScheduleMonthJune VolumeBackupScheduleMonthEnum = "JUNE" - VolumeBackupScheduleMonthJuly VolumeBackupScheduleMonthEnum = "JULY" - VolumeBackupScheduleMonthAugust VolumeBackupScheduleMonthEnum = "AUGUST" - VolumeBackupScheduleMonthSeptember VolumeBackupScheduleMonthEnum = "SEPTEMBER" - VolumeBackupScheduleMonthOctober VolumeBackupScheduleMonthEnum = "OCTOBER" - VolumeBackupScheduleMonthNovember VolumeBackupScheduleMonthEnum = "NOVEMBER" - VolumeBackupScheduleMonthDecember VolumeBackupScheduleMonthEnum = "DECEMBER" -) - -var mappingVolumeBackupScheduleMonth = map[string]VolumeBackupScheduleMonthEnum{ - "JANUARY": VolumeBackupScheduleMonthJanuary, - "FEBRUARY": VolumeBackupScheduleMonthFebruary, - "MARCH": VolumeBackupScheduleMonthMarch, - "APRIL": VolumeBackupScheduleMonthApril, - "MAY": VolumeBackupScheduleMonthMay, - "JUNE": VolumeBackupScheduleMonthJune, - "JULY": VolumeBackupScheduleMonthJuly, - "AUGUST": VolumeBackupScheduleMonthAugust, - "SEPTEMBER": VolumeBackupScheduleMonthSeptember, - "OCTOBER": VolumeBackupScheduleMonthOctober, - "NOVEMBER": VolumeBackupScheduleMonthNovember, - "DECEMBER": VolumeBackupScheduleMonthDecember, -} - -// GetVolumeBackupScheduleMonthEnumValues Enumerates the set of values for VolumeBackupScheduleMonthEnum -func GetVolumeBackupScheduleMonthEnumValues() []VolumeBackupScheduleMonthEnum { - values := make([]VolumeBackupScheduleMonthEnum, 0) - for _, v := range mappingVolumeBackupScheduleMonth { - values = append(values, v) - } - return values -} - -// VolumeBackupScheduleTimeZoneEnum Enum with underlying type: string -type VolumeBackupScheduleTimeZoneEnum string - -// Set of constants representing the allowable values for VolumeBackupScheduleTimeZoneEnum -const ( - VolumeBackupScheduleTimeZoneUtc VolumeBackupScheduleTimeZoneEnum = "UTC" - VolumeBackupScheduleTimeZoneRegionalDataCenterTime VolumeBackupScheduleTimeZoneEnum = "REGIONAL_DATA_CENTER_TIME" -) - -var mappingVolumeBackupScheduleTimeZone = map[string]VolumeBackupScheduleTimeZoneEnum{ - "UTC": VolumeBackupScheduleTimeZoneUtc, - "REGIONAL_DATA_CENTER_TIME": VolumeBackupScheduleTimeZoneRegionalDataCenterTime, -} - -// GetVolumeBackupScheduleTimeZoneEnumValues Enumerates the set of values for VolumeBackupScheduleTimeZoneEnum -func GetVolumeBackupScheduleTimeZoneEnumValues() []VolumeBackupScheduleTimeZoneEnum { - values := make([]VolumeBackupScheduleTimeZoneEnum, 0) - for _, v := range mappingVolumeBackupScheduleTimeZone { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group.go deleted file mode 100644 index 63948a03d4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group.go +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroup Specifies a volume group which is a collection of -// volumes. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VolumeGroup struct { - - // The availability domain of the volume group. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the volume group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID for the volume group. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume group. - LifecycleState VolumeGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The aggregate size of the volume group in MBs. - SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` - - // The date and time the volume group was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // OCIDs for the volumes in this volume group. - VolumeIds []string `mandatory:"true" json:"volumeIds"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The aggregate size of the volume group in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - SourceDetails VolumeGroupSourceDetails `mandatory:"false" json:"sourceDetails"` - - // Specifies whether the newly created cloned volume group's data has finished copying - // from the source volume group or backup. - IsHydrated *bool `mandatory:"false" json:"isHydrated"` - - // The list of volume group replicas of this volume group. - VolumeGroupReplicas []VolumeGroupReplicaInfo `mandatory:"false" json:"volumeGroupReplicas"` -} - -func (m VolumeGroup) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *VolumeGroup) UnmarshalJSON(data []byte) (e error) { - model := struct { - DefinedTags map[string]map[string]interface{} `json:"definedTags"` - FreeformTags map[string]string `json:"freeformTags"` - SizeInGBs *int64 `json:"sizeInGBs"` - SourceDetails volumegroupsourcedetails `json:"sourceDetails"` - IsHydrated *bool `json:"isHydrated"` - VolumeGroupReplicas []VolumeGroupReplicaInfo `json:"volumeGroupReplicas"` - AvailabilityDomain *string `json:"availabilityDomain"` - CompartmentId *string `json:"compartmentId"` - DisplayName *string `json:"displayName"` - Id *string `json:"id"` - LifecycleState VolumeGroupLifecycleStateEnum `json:"lifecycleState"` - SizeInMBs *int64 `json:"sizeInMBs"` - TimeCreated *common.SDKTime `json:"timeCreated"` - VolumeIds []string `json:"volumeIds"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.DefinedTags = model.DefinedTags - - m.FreeformTags = model.FreeformTags - - m.SizeInGBs = model.SizeInGBs - - nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) - if e != nil { - return - } - if nn != nil { - m.SourceDetails = nn.(VolumeGroupSourceDetails) - } else { - m.SourceDetails = nil - } - - m.IsHydrated = model.IsHydrated - - m.VolumeGroupReplicas = make([]VolumeGroupReplicaInfo, len(model.VolumeGroupReplicas)) - for i, n := range model.VolumeGroupReplicas { - m.VolumeGroupReplicas[i] = n - } - - m.AvailabilityDomain = model.AvailabilityDomain - - m.CompartmentId = model.CompartmentId - - m.DisplayName = model.DisplayName - - m.Id = model.Id - - m.LifecycleState = model.LifecycleState - - m.SizeInMBs = model.SizeInMBs - - m.TimeCreated = model.TimeCreated - - m.VolumeIds = make([]string, len(model.VolumeIds)) - for i, n := range model.VolumeIds { - m.VolumeIds[i] = n - } - - return -} - -// VolumeGroupLifecycleStateEnum Enum with underlying type: string -type VolumeGroupLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeGroupLifecycleStateEnum -const ( - VolumeGroupLifecycleStateProvisioning VolumeGroupLifecycleStateEnum = "PROVISIONING" - VolumeGroupLifecycleStateAvailable VolumeGroupLifecycleStateEnum = "AVAILABLE" - VolumeGroupLifecycleStateTerminating VolumeGroupLifecycleStateEnum = "TERMINATING" - VolumeGroupLifecycleStateTerminated VolumeGroupLifecycleStateEnum = "TERMINATED" - VolumeGroupLifecycleStateFaulty VolumeGroupLifecycleStateEnum = "FAULTY" -) - -var mappingVolumeGroupLifecycleState = map[string]VolumeGroupLifecycleStateEnum{ - "PROVISIONING": VolumeGroupLifecycleStateProvisioning, - "AVAILABLE": VolumeGroupLifecycleStateAvailable, - "TERMINATING": VolumeGroupLifecycleStateTerminating, - "TERMINATED": VolumeGroupLifecycleStateTerminated, - "FAULTY": VolumeGroupLifecycleStateFaulty, -} - -// GetVolumeGroupLifecycleStateEnumValues Enumerates the set of values for VolumeGroupLifecycleStateEnum -func GetVolumeGroupLifecycleStateEnumValues() []VolumeGroupLifecycleStateEnum { - values := make([]VolumeGroupLifecycleStateEnum, 0) - for _, v := range mappingVolumeGroupLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_backup.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_backup.go deleted file mode 100644 index c70f21f9cb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_backup.go +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupBackup A point-in-time copy of a volume group that can then be used to create a new volume group -// or restore a volume group. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VolumeGroupBackup struct { - - // The OCID of the compartment that contains the volume group backup. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID of the volume group backup. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume group backup. - LifecycleState VolumeGroupBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the volume group backup was created. This is the time the actual point-in-time image - // of the volume group data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The type of backup. - Type VolumeGroupBackupTypeEnum `mandatory:"true" json:"type"` - - // OCIDs for the volume backups in this volume group backup. - VolumeBackupIds []string `mandatory:"true" json:"volumeBackupIds"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The date and time the volume group backup will expire and be automatically deleted. - // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for volume group - // backups that were created automatically by a scheduled-backup policy. For manually - // created volume group backups, it will be absent, signifying that there is no expiration - // time and the backup will last forever until manually deleted. - ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The aggregate size of the volume group backup, in MBs. - SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` - - // The aggregate size of the volume group backup, in GBs. - SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` - - // Specifies whether the volume group backup was created manually, or via scheduled - // backup policy. - SourceType VolumeGroupBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - // The date and time the request to create the volume group backup was received. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` - - // The aggregate size used by the volume group backup, in MBs. - // It is typically smaller than sizeInMBs, depending on the spaceconsumed - // on the volume group and whether the volume backup is full or incremental. - UniqueSizeInMbs *int64 `mandatory:"false" json:"uniqueSizeInMbs"` - - // The aggregate size used by the volume group backup, in GBs. - // It is typically smaller than sizeInGBs, depending on the spaceconsumed - // on the volume group and whether the volume backup is full or incremental. - UniqueSizeInGbs *int64 `mandatory:"false" json:"uniqueSizeInGbs"` - - // The OCID of the source volume group. - VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` - - // The OCID of the source volume group backup. - SourceVolumeGroupBackupId *string `mandatory:"false" json:"sourceVolumeGroupBackupId"` -} - -func (m VolumeGroupBackup) String() string { - return common.PointerString(m) -} - -// VolumeGroupBackupLifecycleStateEnum Enum with underlying type: string -type VolumeGroupBackupLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeGroupBackupLifecycleStateEnum -const ( - VolumeGroupBackupLifecycleStateCreating VolumeGroupBackupLifecycleStateEnum = "CREATING" - VolumeGroupBackupLifecycleStateCommitted VolumeGroupBackupLifecycleStateEnum = "COMMITTED" - VolumeGroupBackupLifecycleStateAvailable VolumeGroupBackupLifecycleStateEnum = "AVAILABLE" - VolumeGroupBackupLifecycleStateTerminating VolumeGroupBackupLifecycleStateEnum = "TERMINATING" - VolumeGroupBackupLifecycleStateTerminated VolumeGroupBackupLifecycleStateEnum = "TERMINATED" - VolumeGroupBackupLifecycleStateFaulty VolumeGroupBackupLifecycleStateEnum = "FAULTY" - VolumeGroupBackupLifecycleStateRequestReceived VolumeGroupBackupLifecycleStateEnum = "REQUEST_RECEIVED" -) - -var mappingVolumeGroupBackupLifecycleState = map[string]VolumeGroupBackupLifecycleStateEnum{ - "CREATING": VolumeGroupBackupLifecycleStateCreating, - "COMMITTED": VolumeGroupBackupLifecycleStateCommitted, - "AVAILABLE": VolumeGroupBackupLifecycleStateAvailable, - "TERMINATING": VolumeGroupBackupLifecycleStateTerminating, - "TERMINATED": VolumeGroupBackupLifecycleStateTerminated, - "FAULTY": VolumeGroupBackupLifecycleStateFaulty, - "REQUEST_RECEIVED": VolumeGroupBackupLifecycleStateRequestReceived, -} - -// GetVolumeGroupBackupLifecycleStateEnumValues Enumerates the set of values for VolumeGroupBackupLifecycleStateEnum -func GetVolumeGroupBackupLifecycleStateEnumValues() []VolumeGroupBackupLifecycleStateEnum { - values := make([]VolumeGroupBackupLifecycleStateEnum, 0) - for _, v := range mappingVolumeGroupBackupLifecycleState { - values = append(values, v) - } - return values -} - -// VolumeGroupBackupSourceTypeEnum Enum with underlying type: string -type VolumeGroupBackupSourceTypeEnum string - -// Set of constants representing the allowable values for VolumeGroupBackupSourceTypeEnum -const ( - VolumeGroupBackupSourceTypeManual VolumeGroupBackupSourceTypeEnum = "MANUAL" - VolumeGroupBackupSourceTypeScheduled VolumeGroupBackupSourceTypeEnum = "SCHEDULED" -) - -var mappingVolumeGroupBackupSourceType = map[string]VolumeGroupBackupSourceTypeEnum{ - "MANUAL": VolumeGroupBackupSourceTypeManual, - "SCHEDULED": VolumeGroupBackupSourceTypeScheduled, -} - -// GetVolumeGroupBackupSourceTypeEnumValues Enumerates the set of values for VolumeGroupBackupSourceTypeEnum -func GetVolumeGroupBackupSourceTypeEnumValues() []VolumeGroupBackupSourceTypeEnum { - values := make([]VolumeGroupBackupSourceTypeEnum, 0) - for _, v := range mappingVolumeGroupBackupSourceType { - values = append(values, v) - } - return values -} - -// VolumeGroupBackupTypeEnum Enum with underlying type: string -type VolumeGroupBackupTypeEnum string - -// Set of constants representing the allowable values for VolumeGroupBackupTypeEnum -const ( - VolumeGroupBackupTypeFull VolumeGroupBackupTypeEnum = "FULL" - VolumeGroupBackupTypeIncremental VolumeGroupBackupTypeEnum = "INCREMENTAL" -) - -var mappingVolumeGroupBackupType = map[string]VolumeGroupBackupTypeEnum{ - "FULL": VolumeGroupBackupTypeFull, - "INCREMENTAL": VolumeGroupBackupTypeIncremental, -} - -// GetVolumeGroupBackupTypeEnumValues Enumerates the set of values for VolumeGroupBackupTypeEnum -func GetVolumeGroupBackupTypeEnumValues() []VolumeGroupBackupTypeEnum { - values := make([]VolumeGroupBackupTypeEnum, 0) - for _, v := range mappingVolumeGroupBackupType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica.go deleted file mode 100644 index aa6d24a35d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupReplica An asynchronous replica of a volume group that can then be used to create a new volume group -// or recover a volume group. For more information, see Volume Group Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroupreplication.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you -// supply string values using the API. -type VolumeGroupReplica struct { - - // The availability domain of the volume group replica. - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID of the compartment that contains the volume group replica. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID for the volume group replica. - Id *string `mandatory:"true" json:"id"` - - // The current state of a volume group. - LifecycleState VolumeGroupReplicaLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The aggregate size of the volume group replica in GBs. - SizeInGBs *int64 `mandatory:"true" json:"sizeInGBs"` - - // The OCID of the source volume group. - VolumeGroupId *string `mandatory:"true" json:"volumeGroupId"` - - // The date and time the volume group replica was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // OCIDs for the volume replicas in this volume group replica. - VolumeReplicaIds []string `mandatory:"true" json:"volumeReplicaIds"` - - // The date and time the volume group replica was last synced from the source volume group. - // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - TimeLastSynced *common.SDKTime `mandatory:"true" json:"timeLastSynced"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` -} - -func (m VolumeGroupReplica) String() string { - return common.PointerString(m) -} - -// VolumeGroupReplicaLifecycleStateEnum Enum with underlying type: string -type VolumeGroupReplicaLifecycleStateEnum string - -// Set of constants representing the allowable values for VolumeGroupReplicaLifecycleStateEnum -const ( - VolumeGroupReplicaLifecycleStateProvisioning VolumeGroupReplicaLifecycleStateEnum = "PROVISIONING" - VolumeGroupReplicaLifecycleStateAvailable VolumeGroupReplicaLifecycleStateEnum = "AVAILABLE" - VolumeGroupReplicaLifecycleStateActivating VolumeGroupReplicaLifecycleStateEnum = "ACTIVATING" - VolumeGroupReplicaLifecycleStateTerminating VolumeGroupReplicaLifecycleStateEnum = "TERMINATING" - VolumeGroupReplicaLifecycleStateTerminated VolumeGroupReplicaLifecycleStateEnum = "TERMINATED" - VolumeGroupReplicaLifecycleStateFaulty VolumeGroupReplicaLifecycleStateEnum = "FAULTY" -) - -var mappingVolumeGroupReplicaLifecycleState = map[string]VolumeGroupReplicaLifecycleStateEnum{ - "PROVISIONING": VolumeGroupReplicaLifecycleStateProvisioning, - "AVAILABLE": VolumeGroupReplicaLifecycleStateAvailable, - "ACTIVATING": VolumeGroupReplicaLifecycleStateActivating, - "TERMINATING": VolumeGroupReplicaLifecycleStateTerminating, - "TERMINATED": VolumeGroupReplicaLifecycleStateTerminated, - "FAULTY": VolumeGroupReplicaLifecycleStateFaulty, -} - -// GetVolumeGroupReplicaLifecycleStateEnumValues Enumerates the set of values for VolumeGroupReplicaLifecycleStateEnum -func GetVolumeGroupReplicaLifecycleStateEnumValues() []VolumeGroupReplicaLifecycleStateEnum { - values := make([]VolumeGroupReplicaLifecycleStateEnum, 0) - for _, v := range mappingVolumeGroupReplicaLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_details.go deleted file mode 100644 index 68bb930efd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupReplicaDetails Contains the details for the volume group replica. -type VolumeGroupReplicaDetails struct { - - // The availability domain of the volume group replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m VolumeGroupReplicaDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_info.go deleted file mode 100644 index 80a1161723..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_replica_info.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupReplicaInfo Information about the volume group replica in the destination availability domain. -type VolumeGroupReplicaInfo struct { - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"true" json:"displayName"` - - // The volume group replica's Oracle ID (OCID). - VolumeGroupReplicaId *string `mandatory:"true" json:"volumeGroupReplicaId"` - - // The availability domain of the boot volume replica replica. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` -} - -func (m VolumeGroupReplicaInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_details.go deleted file mode 100644 index bf0b0b5ef3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_details.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupSourceDetails Specifies the source for a volume group. -type VolumeGroupSourceDetails interface { -} - -type volumegroupsourcedetails struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *volumegroupsourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalervolumegroupsourcedetails volumegroupsourcedetails - s := struct { - Model Unmarshalervolumegroupsourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *volumegroupsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "volumeGroupReplicaId": - mm := VolumeGroupSourceFromVolumeGroupReplicaDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volumeGroupId": - mm := VolumeGroupSourceFromVolumeGroupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volumeIds": - mm := VolumeGroupSourceFromVolumesDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volumeGroupBackupId": - mm := VolumeGroupSourceFromVolumeGroupBackupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m volumegroupsourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_backup_details.go deleted file mode 100644 index 689bbf7c9d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_backup_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupSourceFromVolumeGroupBackupDetails Specifies the volume group backup to restore from. -type VolumeGroupSourceFromVolumeGroupBackupDetails struct { - - // The OCID of the volume group backup to restore from. - VolumeGroupBackupId *string `mandatory:"true" json:"volumeGroupBackupId"` -} - -func (m VolumeGroupSourceFromVolumeGroupBackupDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeGroupSourceFromVolumeGroupBackupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeGroupSourceFromVolumeGroupBackupDetails VolumeGroupSourceFromVolumeGroupBackupDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeGroupSourceFromVolumeGroupBackupDetails - }{ - "volumeGroupBackupId", - (MarshalTypeVolumeGroupSourceFromVolumeGroupBackupDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_details.go deleted file mode 100644 index b1c8bd3f39..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupSourceFromVolumeGroupDetails Specifies the volume group to clone from. -type VolumeGroupSourceFromVolumeGroupDetails struct { - - // The OCID of the volume group to clone from. - VolumeGroupId *string `mandatory:"true" json:"volumeGroupId"` -} - -func (m VolumeGroupSourceFromVolumeGroupDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeGroupSourceFromVolumeGroupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeGroupSourceFromVolumeGroupDetails VolumeGroupSourceFromVolumeGroupDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeGroupSourceFromVolumeGroupDetails - }{ - "volumeGroupId", - (MarshalTypeVolumeGroupSourceFromVolumeGroupDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_replica_details.go deleted file mode 100644 index 2e958f9b88..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volume_group_replica_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupSourceFromVolumeGroupReplicaDetails Specifies the source volume replica which the volume group will be created from. -// The volume group replica shoulbe be in the same availability domain as the volume group. -// Only one volume group can be created from a volume group replica at the same time. -type VolumeGroupSourceFromVolumeGroupReplicaDetails struct { - - // The OCID of the volume group replica. - VolumeGroupReplicaId *string `mandatory:"true" json:"volumeGroupReplicaId"` -} - -func (m VolumeGroupSourceFromVolumeGroupReplicaDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeGroupSourceFromVolumeGroupReplicaDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeGroupSourceFromVolumeGroupReplicaDetails VolumeGroupSourceFromVolumeGroupReplicaDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeGroupSourceFromVolumeGroupReplicaDetails - }{ - "volumeGroupReplicaId", - (MarshalTypeVolumeGroupSourceFromVolumeGroupReplicaDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volumes_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volumes_details.go deleted file mode 100644 index 7e49ab6a11..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_group_source_from_volumes_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeGroupSourceFromVolumesDetails Specifies the volumes in a volume group. -type VolumeGroupSourceFromVolumesDetails struct { - - // OCIDs for the volumes in this volume group. - VolumeIds []string `mandatory:"true" json:"volumeIds"` -} - -func (m VolumeGroupSourceFromVolumesDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeGroupSourceFromVolumesDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeGroupSourceFromVolumesDetails VolumeGroupSourceFromVolumesDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeGroupSourceFromVolumesDetails - }{ - "volumeIds", - (MarshalTypeVolumeGroupSourceFromVolumesDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_kms_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_kms_key.go deleted file mode 100644 index f214c67100..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_kms_key.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeKmsKey The Key Management master encryption key associated with this volume. -type VolumeKmsKey struct { - - // The OCID of the Key Management key assigned to this volume. If the volume is not using Key Management, then the `kmsKeyId` will be a null string. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m VolumeKmsKey) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_details.go deleted file mode 100644 index bac9bbe8b3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_details.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeSourceDetails Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. -// This is an optional field. If not specified or set to null, the new Block volume will be empty. -// When specified, the new Block volume will contain data from the source volume or backup. -type VolumeSourceDetails interface { -} - -type volumesourcedetails struct { - JsonData []byte - Type string `json:"type"` -} - -// UnmarshalJSON unmarshals json -func (m *volumesourcedetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalervolumesourcedetails volumesourcedetails - s := struct { - Model Unmarshalervolumesourcedetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Type = s.Model.Type - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *volumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Type { - case "blockVolumeReplica": - mm := VolumeSourceFromBlockVolumeReplicaDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volume": - mm := VolumeSourceFromVolumeDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - case "volumeBackup": - mm := VolumeSourceFromVolumeBackupDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m volumesourcedetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_block_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_block_volume_replica_details.go deleted file mode 100644 index 8f761e9829..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_block_volume_replica_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeSourceFromBlockVolumeReplicaDetails Specifies the source block volume replica which the block volume will be created from. -// The block volume replica shoulbe be in the same availability domain as the block volume. -// Only one volume can be created from a replica at the same time. -type VolumeSourceFromBlockVolumeReplicaDetails struct { - - // The OCID of the block volume replica. - Id *string `mandatory:"true" json:"id"` -} - -func (m VolumeSourceFromBlockVolumeReplicaDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeSourceFromBlockVolumeReplicaDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeSourceFromBlockVolumeReplicaDetails VolumeSourceFromBlockVolumeReplicaDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeSourceFromBlockVolumeReplicaDetails - }{ - "blockVolumeReplica", - (MarshalTypeVolumeSourceFromBlockVolumeReplicaDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_backup_details.go deleted file mode 100644 index 4a1b50a61e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_backup_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeSourceFromVolumeBackupDetails Specifies the volume backup. -type VolumeSourceFromVolumeBackupDetails struct { - - // The OCID of the volume backup. - Id *string `mandatory:"true" json:"id"` -} - -func (m VolumeSourceFromVolumeBackupDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeSourceFromVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeSourceFromVolumeBackupDetails VolumeSourceFromVolumeBackupDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeSourceFromVolumeBackupDetails - }{ - "volumeBackup", - (MarshalTypeVolumeSourceFromVolumeBackupDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_details.go deleted file mode 100644 index ca187d6592..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/volume_source_from_volume_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// VolumeSourceFromVolumeDetails Specifies the source volume. -type VolumeSourceFromVolumeDetails struct { - - // The OCID of the volume. - Id *string `mandatory:"true" json:"id"` -} - -func (m VolumeSourceFromVolumeDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m VolumeSourceFromVolumeDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeVolumeSourceFromVolumeDetails VolumeSourceFromVolumeDetails - s := struct { - DiscriminatorParam string `json:"type"` - MarshalTypeVolumeSourceFromVolumeDetails - }{ - "volume", - (MarshalTypeVolumeSourceFromVolumeDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vtap.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/vtap.go deleted file mode 100644 index 6ba5fe14e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vtap.go +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Vtap A virtual test access point (VTAP) provides a way to mirror all traffic from a designated source to a selected target in order to facilitate troubleshooting, security analysis, and data monitoring. -// A VTAP is functionally similar to a test access point (TAP) you might deploy in your on-premises network. -// A *CaptureFilter* contains a set of *CaptureFilterRuleDetails* governing what traffic a VTAP mirrors. -type Vtap struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the `Vtap` resource. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN containing the `Vtap` resource. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The VTAP's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - Id *string `mandatory:"true" json:"id"` - - // The VTAP's administrative lifecycle state. - LifecycleState VtapLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source point where packets are captured. - SourceId *string `mandatory:"true" json:"sourceId"` - - // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). - CaptureFilterId *string `mandatory:"true" json:"captureFilterId"` - - // Defined tags for this resource. Each key is predefined and scoped to a - // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // A user-friendly name. Does not have to be unique, and it's changeable. - // Avoid entering confidential information. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no - // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // The VTAP's current running state. - LifecycleStateDetails VtapLifecycleStateDetailsEnum `mandatory:"false" json:"lifecycleStateDetails,omitempty"` - - // The date and time the VTAP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). - // Example: `2020-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination resource where mirrored packets are sent. - TargetId *string `mandatory:"false" json:"targetId"` - - // The IP address of the destination resource where mirrored packets are sent. - TargetIp *string `mandatory:"false" json:"targetIp"` - - // Defines an encapsulation header type for the VTAP's mirrored traffic. - EncapsulationProtocol VtapEncapsulationProtocolEnum `mandatory:"false" json:"encapsulationProtocol,omitempty"` - - // The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN. - VxlanNetworkIdentifier *int64 `mandatory:"false" json:"vxlanNetworkIdentifier"` - - // Used to start or stop a `Vtap` resource. - // * `TRUE` directs the VTAP to start mirroring traffic. - // * `FALSE` (Default) directs the VTAP to stop mirroring traffic. - IsVtapEnabled *bool `mandatory:"false" json:"isVtapEnabled"` - - // Used to encapsulate or decapsulate mirrored traffic prior to ingestion at target. - IsTargetEncapsulationEnabled *bool `mandatory:"false" json:"isTargetEncapsulationEnabled"` - - // The source type for the VTAP. - SourceType VtapSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` - - ExclusionFilter *ExclusionFilterDetails `mandatory:"false" json:"exclusionFilter"` -} - -func (m Vtap) String() string { - return common.PointerString(m) -} - -// VtapLifecycleStateEnum Enum with underlying type: string -type VtapLifecycleStateEnum string - -// Set of constants representing the allowable values for VtapLifecycleStateEnum -const ( - VtapLifecycleStateProvisioning VtapLifecycleStateEnum = "PROVISIONING" - VtapLifecycleStateAvailable VtapLifecycleStateEnum = "AVAILABLE" - VtapLifecycleStateUpdating VtapLifecycleStateEnum = "UPDATING" - VtapLifecycleStateTerminating VtapLifecycleStateEnum = "TERMINATING" - VtapLifecycleStateTerminated VtapLifecycleStateEnum = "TERMINATED" -) - -var mappingVtapLifecycleState = map[string]VtapLifecycleStateEnum{ - "PROVISIONING": VtapLifecycleStateProvisioning, - "AVAILABLE": VtapLifecycleStateAvailable, - "UPDATING": VtapLifecycleStateUpdating, - "TERMINATING": VtapLifecycleStateTerminating, - "TERMINATED": VtapLifecycleStateTerminated, -} - -// GetVtapLifecycleStateEnumValues Enumerates the set of values for VtapLifecycleStateEnum -func GetVtapLifecycleStateEnumValues() []VtapLifecycleStateEnum { - values := make([]VtapLifecycleStateEnum, 0) - for _, v := range mappingVtapLifecycleState { - values = append(values, v) - } - return values -} - -// VtapLifecycleStateDetailsEnum Enum with underlying type: string -type VtapLifecycleStateDetailsEnum string - -// Set of constants representing the allowable values for VtapLifecycleStateDetailsEnum -const ( - VtapLifecycleStateDetailsRunning VtapLifecycleStateDetailsEnum = "RUNNING" - VtapLifecycleStateDetailsStopped VtapLifecycleStateDetailsEnum = "STOPPED" -) - -var mappingVtapLifecycleStateDetails = map[string]VtapLifecycleStateDetailsEnum{ - "RUNNING": VtapLifecycleStateDetailsRunning, - "STOPPED": VtapLifecycleStateDetailsStopped, -} - -// GetVtapLifecycleStateDetailsEnumValues Enumerates the set of values for VtapLifecycleStateDetailsEnum -func GetVtapLifecycleStateDetailsEnumValues() []VtapLifecycleStateDetailsEnum { - values := make([]VtapLifecycleStateDetailsEnum, 0) - for _, v := range mappingVtapLifecycleStateDetails { - values = append(values, v) - } - return values -} - -// VtapEncapsulationProtocolEnum Enum with underlying type: string -type VtapEncapsulationProtocolEnum string - -// Set of constants representing the allowable values for VtapEncapsulationProtocolEnum -const ( - VtapEncapsulationProtocolVxlan VtapEncapsulationProtocolEnum = "VXLAN" -) - -var mappingVtapEncapsulationProtocol = map[string]VtapEncapsulationProtocolEnum{ - "VXLAN": VtapEncapsulationProtocolVxlan, -} - -// GetVtapEncapsulationProtocolEnumValues Enumerates the set of values for VtapEncapsulationProtocolEnum -func GetVtapEncapsulationProtocolEnumValues() []VtapEncapsulationProtocolEnum { - values := make([]VtapEncapsulationProtocolEnum, 0) - for _, v := range mappingVtapEncapsulationProtocol { - values = append(values, v) - } - return values -} - -// VtapSourceTypeEnum Enum with underlying type: string -type VtapSourceTypeEnum string - -// Set of constants representing the allowable values for VtapSourceTypeEnum -const ( - VtapSourceTypeVnic VtapSourceTypeEnum = "VNIC" - VtapSourceTypeSubnet VtapSourceTypeEnum = "SUBNET" -) - -var mappingVtapSourceType = map[string]VtapSourceTypeEnum{ - "VNIC": VtapSourceTypeVnic, - "SUBNET": VtapSourceTypeSubnet, -} - -// GetVtapSourceTypeEnumValues Enumerates the set of values for VtapSourceTypeEnum -func GetVtapSourceTypeEnumValues() []VtapSourceTypeEnum { - values := make([]VtapSourceTypeEnum, 0) - for _, v := range mappingVtapSourceType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/wallet_info.go b/vendor/github.com/oracle/oci-go-sdk/v49/core/wallet_info.go deleted file mode 100644 index 50f4a0a4b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/wallet_info.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Core Services API -// -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), -// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. -// - -package core - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WalletInfo Oracle Wallet that serves as a container to carry certificates, public key, private key, -// and list of CAs to be trusted -type WalletInfo struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Vault Service secret, holding - // the Oracle Wallet to be used for SCAN proxy. - ScanWalletSecretId *string `mandatory:"false" json:"scanWalletSecretId"` - - // The version of secret that SCAN proxy should use to fetch the Oracle Wallet content for. - ScanWalletSecretVersion *string `mandatory:"false" json:"scanWalletSecretVersion"` -} - -func (m WalletInfo) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_details.go deleted file mode 100644 index 9ef19aecaf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeFileSystemCompartmentDetails Details for changing the compartment. -type ChangeFileSystemCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the file system to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeFileSystemCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_details.go deleted file mode 100644 index da3316e255..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeMountTargetCompartmentDetails Details for changing the compartment. -type ChangeMountTargetCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the mount target to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeMountTargetCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_details.go deleted file mode 100644 index 2c98010486..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeOutboundConnectorCompartmentDetails Details for changing the compartment. -type ChangeOutboundConnectorCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the outbound connector to - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeOutboundConnectorCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_details.go deleted file mode 100644 index 998ba4d60b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeReplicationCompartmentDetails Details for changing the compartment of both replication and replication target. -type ChangeReplicationCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the replication to. This will also change the replication target's compartment in target region. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeReplicationCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_details.go deleted file mode 100644 index 474d7efd3c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_details.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeReplicationTargetCompartmentDetails Details for changing the compartment of replication target. -type ChangeReplicationTargetCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment - // to move the replication to - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeReplicationTargetCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/client_options.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/client_options.go deleted file mode 100644 index 5a49d19646..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/client_options.go +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ClientOptions NFS export options applied to a specified set of -// clients. Only governs access through the associated -// export. Access to the same file system through a different -// export (on the same or different mount target) will be governed -// by that export's export options. -type ClientOptions struct { - - // Clients these options should apply to. Must be a either - // single IPv4 address or single IPv4 CIDR block. - // **Note:** Access will also be limited by any applicable VCN - // security rules and the ability to route IP packets to the - // mount target. Mount targets do not have Internet-routable IP addresses. - Source *string `mandatory:"true" json:"source"` - - // If `true`, clients accessing the file system through this - // export must connect from a privileged source port. If - // unspecified, defaults to `true`. - RequirePrivilegedSourcePort *bool `mandatory:"false" json:"requirePrivilegedSourcePort"` - - // Type of access to grant clients using the file system - // through this export. If unspecified defaults to `READ_ONLY`. - Access ClientOptionsAccessEnum `mandatory:"false" json:"access,omitempty"` - - // Used when clients accessing the file system through this export - // have their UID and GID remapped to 'anonymousUid' and - // 'anonymousGid'. If `ALL`, all users and groups are remapped; - // if `ROOT`, only the root user and group (UID/GID 0) are - // remapped; if `NONE`, no remapping is done. If unspecified, - // defaults to `ROOT`. - IdentitySquash ClientOptionsIdentitySquashEnum `mandatory:"false" json:"identitySquash,omitempty"` - - // UID value to remap to when squashing a client UID (see - // identitySquash for more details.) If unspecified, defaults - // to `65534`. - AnonymousUid *int64 `mandatory:"false" json:"anonymousUid"` - - // GID value to remap to when squashing a client GID (see - // identitySquash for more details.) If unspecified defaults - // to `65534`. - AnonymousGid *int64 `mandatory:"false" json:"anonymousGid"` - - // Allow principals with no entry in ID mapping to access this export with SquashUID and SquashGID privileges. - IsAnonymousAccessAllowed *bool `mandatory:"false" json:"isAnonymousAccessAllowed"` - - // Array of allowed NFS authentication types. - AllowedAuth []ClientOptionsAllowedAuthEnum `mandatory:"false" json:"allowedAuth,omitempty"` -} - -func (m ClientOptions) String() string { - return common.PointerString(m) -} - -// ClientOptionsAccessEnum Enum with underlying type: string -type ClientOptionsAccessEnum string - -// Set of constants representing the allowable values for ClientOptionsAccessEnum -const ( - ClientOptionsAccessWrite ClientOptionsAccessEnum = "READ_WRITE" - ClientOptionsAccessOnly ClientOptionsAccessEnum = "READ_ONLY" -) - -var mappingClientOptionsAccess = map[string]ClientOptionsAccessEnum{ - "READ_WRITE": ClientOptionsAccessWrite, - "READ_ONLY": ClientOptionsAccessOnly, -} - -// GetClientOptionsAccessEnumValues Enumerates the set of values for ClientOptionsAccessEnum -func GetClientOptionsAccessEnumValues() []ClientOptionsAccessEnum { - values := make([]ClientOptionsAccessEnum, 0) - for _, v := range mappingClientOptionsAccess { - values = append(values, v) - } - return values -} - -// ClientOptionsIdentitySquashEnum Enum with underlying type: string -type ClientOptionsIdentitySquashEnum string - -// Set of constants representing the allowable values for ClientOptionsIdentitySquashEnum -const ( - ClientOptionsIdentitySquashNone ClientOptionsIdentitySquashEnum = "NONE" - ClientOptionsIdentitySquashRoot ClientOptionsIdentitySquashEnum = "ROOT" - ClientOptionsIdentitySquashAll ClientOptionsIdentitySquashEnum = "ALL" -) - -var mappingClientOptionsIdentitySquash = map[string]ClientOptionsIdentitySquashEnum{ - "NONE": ClientOptionsIdentitySquashNone, - "ROOT": ClientOptionsIdentitySquashRoot, - "ALL": ClientOptionsIdentitySquashAll, -} - -// GetClientOptionsIdentitySquashEnumValues Enumerates the set of values for ClientOptionsIdentitySquashEnum -func GetClientOptionsIdentitySquashEnumValues() []ClientOptionsIdentitySquashEnum { - values := make([]ClientOptionsIdentitySquashEnum, 0) - for _, v := range mappingClientOptionsIdentitySquash { - values = append(values, v) - } - return values -} - -// ClientOptionsAllowedAuthEnum Enum with underlying type: string -type ClientOptionsAllowedAuthEnum string - -// Set of constants representing the allowable values for ClientOptionsAllowedAuthEnum -const ( - ClientOptionsAllowedAuthSys ClientOptionsAllowedAuthEnum = "SYS" - ClientOptionsAllowedAuthKrb5 ClientOptionsAllowedAuthEnum = "KRB5" - ClientOptionsAllowedAuthKrb5i ClientOptionsAllowedAuthEnum = "KRB5I" -) - -var mappingClientOptionsAllowedAuth = map[string]ClientOptionsAllowedAuthEnum{ - "SYS": ClientOptionsAllowedAuthSys, - "KRB5": ClientOptionsAllowedAuthKrb5, - "KRB5I": ClientOptionsAllowedAuthKrb5i, -} - -// GetClientOptionsAllowedAuthEnumValues Enumerates the set of values for ClientOptionsAllowedAuthEnum -func GetClientOptionsAllowedAuthEnumValues() []ClientOptionsAllowedAuthEnum { - values := make([]ClientOptionsAllowedAuthEnum, 0) - for _, v := range mappingClientOptionsAllowedAuth { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_details.go deleted file mode 100644 index 9af7bb7ce0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_details.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateExportDetails Details for creating the export. -type CreateExportDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's export set. - ExportSetId *string `mandatory:"true" json:"exportSetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // Path used to access the associated file system. - // Avoid entering confidential information. - // Example: `/mediafiles` - Path *string `mandatory:"true" json:"path"` - - // Export options for the new export. If left unspecified, - // defaults to: - // [ - // { - // "source" : "0.0.0.0/0", - // "requirePrivilegedSourcePort" : false, - // "access" : "READ_WRITE", - // "identitySquash" : "NONE" - // } - // ] - // **Note:** Mount targets do not have Internet-routable IP - // addresses. Therefore they will not be reachable from the - // Internet, even if an associated `ClientOptions` item has - // a source of `0.0.0.0/0`. - // **If set to the empty array then the export will not be - // visible to any clients.** - // The export's `exportOptions` can be changed after creation - // using the `UpdateExport` operation. - ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` - - // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. - IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` - - // Export can be created in 'ENABLED' or 'DISABLED' mode. - // Attempt to mount the filesystem will fail if the export is in 'DISABLED' mode. - ExportMode CreateExportDetailsExportModeEnum `mandatory:"false" json:"exportMode,omitempty"` -} - -func (m CreateExportDetails) String() string { - return common.PointerString(m) -} - -// CreateExportDetailsExportModeEnum Enum with underlying type: string -type CreateExportDetailsExportModeEnum string - -// Set of constants representing the allowable values for CreateExportDetailsExportModeEnum -const ( - CreateExportDetailsExportModeEnabled CreateExportDetailsExportModeEnum = "ENABLED" - CreateExportDetailsExportModeDisabled CreateExportDetailsExportModeEnum = "DISABLED" -) - -var mappingCreateExportDetailsExportMode = map[string]CreateExportDetailsExportModeEnum{ - "ENABLED": CreateExportDetailsExportModeEnabled, - "DISABLED": CreateExportDetailsExportModeDisabled, -} - -// GetCreateExportDetailsExportModeEnumValues Enumerates the set of values for CreateExportDetailsExportModeEnum -func GetCreateExportDetailsExportModeEnumValues() []CreateExportDetailsExportModeEnum { - values := make([]CreateExportDetailsExportModeEnum, 0) - for _, v := range mappingCreateExportDetailsExportMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_details.go deleted file mode 100644 index bc52023407..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_details.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateFileSystemDetails Details for creating the file system. -type CreateFileSystemDetails struct { - - // The availability domain to create the file system in. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to create the file system in. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key used to encrypt the encryption keys associated with this file system. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` -} - -func (m CreateFileSystemDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_kerberos_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_kerberos_details.go deleted file mode 100644 index 23c3bc7c6c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_kerberos_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateKerberosDetails Kerberos details needed to create configuration. -type CreateKerberosDetails struct { - - // The realm of the kerberos server Mount Target interacts with. - KerberosRealm *string `mandatory:"true" json:"kerberosRealm"` - - // Describes how long to keep keytab entries(in seconds) after they have been rotated. - KerberosKeyLifeSeconds *int `mandatory:"false" json:"kerberosKeyLifeSeconds"` -} - -func (m CreateKerberosDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_bind_account_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_bind_account_details.go deleted file mode 100644 index 9f3ef5cff0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_bind_account_details.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateLdapBindAccountDetails Account details for LDAP bind account to be used in creating outbound connector. -type CreateLdapBindAccountDetails struct { - - // The availability domain the outbound connector is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Array of server endpoints to use while trying to connect while using LDAP bind account. - Endpoints []Endpoint `mandatory:"true" json:"endpoints"` - - // The LDAP Distinguished name of the bind account. - BindDistinguishedName *string `mandatory:"true" json:"bindDistinguishedName"` - - // The password for the LDAP bind account. - Password *string `mandatory:"true" json:"password"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My outbound connector` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m CreateLdapBindAccountDetails) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetCompartmentId returns CompartmentId -func (m CreateLdapBindAccountDetails) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetDisplayName returns DisplayName -func (m CreateLdapBindAccountDetails) GetDisplayName() *string { - return m.DisplayName -} - -//GetFreeformTags returns FreeformTags -func (m CreateLdapBindAccountDetails) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -//GetDefinedTags returns DefinedTags -func (m CreateLdapBindAccountDetails) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -func (m CreateLdapBindAccountDetails) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m CreateLdapBindAccountDetails) MarshalJSON() (buff []byte, e error) { - type MarshalTypeCreateLdapBindAccountDetails CreateLdapBindAccountDetails - s := struct { - DiscriminatorParam string `json:"connectorType"` - MarshalTypeCreateLdapBindAccountDetails - }{ - "LDAPBIND", - (MarshalTypeCreateLdapBindAccountDetails)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_idmap_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_idmap_details.go deleted file mode 100644 index de0e598499..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_ldap_idmap_details.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateLdapIdmapDetails Mount Target details about the LDAP ID Map configuration. -type CreateLdapIdmapDetails struct { - - // All LDAP searches are recursive starting at this Base Distinguished user name. - BaseDistinguishedUserName *string `mandatory:"true" json:"baseDistinguishedUserName"` - - // All LDAP searches are recursive starting at this Base Distinguished group name. - BaseDistinguishedGroupName *string `mandatory:"true" json:"baseDistinguishedGroupName"` - - // Schema type of LDAP account. - SchemaType CreateLdapIdmapDetailsSchemaTypeEnum `mandatory:"false" json:"schemaType,omitempty"` - - // Integer for how often the mount target should recheck LDAP for updates. - CacheRefreshIntervalSeconds *int `mandatory:"false" json:"cacheRefreshIntervalSeconds"` - - // Integer for how long cached entries may be used. - CacheLifetimeSeconds *int `mandatory:"false" json:"cacheLifetimeSeconds"` - - // Integer for how long to cache if idmap information is missing. - NegativeCacheLifetimeSeconds *int `mandatory:"false" json:"negativeCacheLifetimeSeconds"` - - // OCID of the first LDAP Account - OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` - - // OCID of the second LDAP Account - OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` -} - -func (m CreateLdapIdmapDetails) String() string { - return common.PointerString(m) -} - -// CreateLdapIdmapDetailsSchemaTypeEnum Enum with underlying type: string -type CreateLdapIdmapDetailsSchemaTypeEnum string - -// Set of constants representing the allowable values for CreateLdapIdmapDetailsSchemaTypeEnum -const ( - CreateLdapIdmapDetailsSchemaTypeRfc2307 CreateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" -) - -var mappingCreateLdapIdmapDetailsSchemaType = map[string]CreateLdapIdmapDetailsSchemaTypeEnum{ - "RFC2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, -} - -// GetCreateLdapIdmapDetailsSchemaTypeEnumValues Enumerates the set of values for CreateLdapIdmapDetailsSchemaTypeEnum -func GetCreateLdapIdmapDetailsSchemaTypeEnumValues() []CreateLdapIdmapDetailsSchemaTypeEnum { - values := make([]CreateLdapIdmapDetailsSchemaTypeEnum, 0) - for _, v := range mappingCreateLdapIdmapDetailsSchemaType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_details.go deleted file mode 100644 index edaaedfb82..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateReplicationDetails Details for creating the replication and replication target. -type CreateReplicationDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of source filesystem. - SourceId *string `mandatory:"true" json:"sourceId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of target filesystem. - TargetId *string `mandatory:"true" json:"targetId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Replication target will also created with the same displayName. - // Example: `My replication` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Duration in minutes between replication snapshots. - ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateReplicationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_details.go deleted file mode 100644 index d600c4b3ea..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateReplicationTargetDetails Details for creating the replication target. To be used internal only. -type CreateReplicationTargetDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of source filesystem. - SourceId *string `mandatory:"true" json:"sourceId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of target filesystem. - TargetId *string `mandatory:"true" json:"targetId"` - - // A user-friendly name. - // Example: `My replication` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of corresponding replication resource. Note, may be in another region. - ReplicationId *string `mandatory:"true" json:"replicationId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replicationtarget. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateReplicationTargetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_details.go deleted file mode 100644 index af0998937b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateSnapshotDetails Details for creating the snapshot. -type CreateSnapshotDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system to take a snapshot of. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // Name of the snapshot. This value is immutable. It must also be unique with respect - // to all other non-DELETED snapshots on the associated file - // system. - // Avoid entering confidential information. - // Example: `Sunday` - Name *string `mandatory:"true" json:"name"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateSnapshotDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_request_response.go deleted file mode 100644 index f2d23d3eda..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_request_response.go +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteReplicationRequest wrapper for the DeleteReplication operation -type DeleteReplicationRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. - ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the resource's current etag value. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Customer can choose a mode while deleting the replication in source region. - // - 'FINISH_CYCLE_IF_CAPTURING_OR_APPLYING' lets current snapshot which has already started, finish gracefully and does not start a new snapshot before deleting. - // - 'ONE_MORE_CYCLE' brings the target filesystem up-to-date with source filsystem by doing one last replication cycle immediately and then deleting. - // - 'FINISH_CYCLE_IF_APPLYING' completes the application to the target of any snapshot in the APPLYING state, otherwise delete the replication immediately. - // 'FINISH_APPLY' is the fastest way to make target available while deleting resource in source region. - DeleteMode DeleteReplicationDeleteModeEnum `mandatory:"false" contributesTo:"query" name:"deleteMode" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteReplicationRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteReplicationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteReplicationRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteReplicationResponse wrapper for the DeleteReplication operation -type DeleteReplicationResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteReplicationResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteReplicationResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// DeleteReplicationDeleteModeEnum Enum with underlying type: string -type DeleteReplicationDeleteModeEnum string - -// Set of constants representing the allowable values for DeleteReplicationDeleteModeEnum -const ( - DeleteReplicationDeleteModeFinishCycleIfCapturingOrApplying DeleteReplicationDeleteModeEnum = "FINISH_CYCLE_IF_CAPTURING_OR_APPLYING" - DeleteReplicationDeleteModeOneMoreCycle DeleteReplicationDeleteModeEnum = "ONE_MORE_CYCLE" - DeleteReplicationDeleteModeFinishCycleIfApplying DeleteReplicationDeleteModeEnum = "FINISH_CYCLE_IF_APPLYING" -) - -var mappingDeleteReplicationDeleteMode = map[string]DeleteReplicationDeleteModeEnum{ - "FINISH_CYCLE_IF_CAPTURING_OR_APPLYING": DeleteReplicationDeleteModeFinishCycleIfCapturingOrApplying, - "ONE_MORE_CYCLE": DeleteReplicationDeleteModeOneMoreCycle, - "FINISH_CYCLE_IF_APPLYING": DeleteReplicationDeleteModeFinishCycleIfApplying, -} - -// GetDeleteReplicationDeleteModeEnumValues Enumerates the set of values for DeleteReplicationDeleteModeEnum -func GetDeleteReplicationDeleteModeEnumValues() []DeleteReplicationDeleteModeEnum { - values := make([]DeleteReplicationDeleteModeEnum, 0) - for _, v := range mappingDeleteReplicationDeleteMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/endpoint.go deleted file mode 100644 index b2c89244a8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/endpoint.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Endpoint Combination of server dns or ip and port -type Endpoint struct { - - // String consisting of domain name server for endpoint - Hostname *string `mandatory:"true" json:"hostname"` - - // integer value of server endpoint - Port *int64 `mandatory:"true" json:"port"` -} - -func (m Endpoint) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export.go deleted file mode 100644 index 280c056eb5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Export A file system and the path that you can use to mount it. Each export -// resource belongs to exactly one export set. -// The export's path attribute is not a path in the -// referenced file system, but the value used by clients for the path -// component of the remotetarget argument when mounting the file -// system. -// The path must start with a slash (/) followed by a sequence of zero or more -// slash-separated path elements. For any two export resources associated with -// the same export set, except those in a 'DELETED' state, the path element -// sequence for the first export resource can't contain the -// complete path element sequence of the second export resource. -// -// For example, the following are acceptable: -// * /example and /path -// * /example1 and /example2 -// * /example and /example1 -// The following examples are not acceptable: -// * /example and /example/path -// * / and /example -// Paths may not end in a slash (/). No path element can be a period (.) -// or two periods in sequence (..). All path elements must be 255 bytes or less. -// No two non-'DELETED' export resources in the same export set can -// reference the same file system. -// Use `exportOptions` to control access to an export. For more information, see -// Export Options (https://docs.cloud.oracle.com/Content/File/Tasks/exportoptions.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type Export struct { - - // Policies that apply to NFS requests made through this - // export. `exportOptions` contains a sequential list of - // `ClientOptions`. Each `ClientOptions` item defines the - // export options that are applied to a specified - // set of clients. - // For each NFS request, the first `ClientOptions` option - // in the list whose `source` attribute matches the source - // IP address of the request is applied. - // If a client source IP address does not match the `source` - // property of any `ClientOptions` in the list, then the - // export will be invisible to that client. This export will - // not be returned by `MOUNTPROC_EXPORT` calls made by the client - // and any attempt to mount or access the file system through - // this export will result in an error. - // **Exports without defined `ClientOptions` are invisible to all clients.** - // If one export is invisible to a particular client, associated file - // systems may still be accessible through other exports on the same - // or different mount targets. - // To completely deny client access to a file system, be sure that the client - // source IP address is not included in any export for any mount target - // associated with the file system. - ExportOptions []ClientOptions `mandatory:"true" json:"exportOptions"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's export set. - ExportSetId *string `mandatory:"true" json:"exportSetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export. - Id *string `mandatory:"true" json:"id"` - - // The current state of this export. - LifecycleState ExportLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Path used to access the associated file system. - // Avoid entering confidential information. - // Example: `/accounting` - Path *string `mandatory:"true" json:"path"` - - // The date and time the export was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. - IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` - - // Export can be created in 'ENABLED' or 'DISABLED' mode. - // Attempt to mount the filesystem will fail if the export is in 'DISABLED' mode. - ExportMode ExportExportModeEnum `mandatory:"false" json:"exportMode,omitempty"` -} - -func (m Export) String() string { - return common.PointerString(m) -} - -// ExportLifecycleStateEnum Enum with underlying type: string -type ExportLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportLifecycleStateEnum -const ( - ExportLifecycleStateCreating ExportLifecycleStateEnum = "CREATING" - ExportLifecycleStateActive ExportLifecycleStateEnum = "ACTIVE" - ExportLifecycleStateDeleting ExportLifecycleStateEnum = "DELETING" - ExportLifecycleStateDeleted ExportLifecycleStateEnum = "DELETED" -) - -var mappingExportLifecycleState = map[string]ExportLifecycleStateEnum{ - "CREATING": ExportLifecycleStateCreating, - "ACTIVE": ExportLifecycleStateActive, - "DELETING": ExportLifecycleStateDeleting, - "DELETED": ExportLifecycleStateDeleted, -} - -// GetExportLifecycleStateEnumValues Enumerates the set of values for ExportLifecycleStateEnum -func GetExportLifecycleStateEnumValues() []ExportLifecycleStateEnum { - values := make([]ExportLifecycleStateEnum, 0) - for _, v := range mappingExportLifecycleState { - values = append(values, v) - } - return values -} - -// ExportExportModeEnum Enum with underlying type: string -type ExportExportModeEnum string - -// Set of constants representing the allowable values for ExportExportModeEnum -const ( - ExportExportModeEnabled ExportExportModeEnum = "ENABLED" - ExportExportModeDisabled ExportExportModeEnum = "DISABLED" -) - -var mappingExportExportMode = map[string]ExportExportModeEnum{ - "ENABLED": ExportExportModeEnabled, - "DISABLED": ExportExportModeDisabled, -} - -// GetExportExportModeEnumValues Enumerates the set of values for ExportExportModeEnum -func GetExportExportModeEnumValues() []ExportExportModeEnum { - values := make([]ExportExportModeEnum, 0) - for _, v := range mappingExportExportMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set.go deleted file mode 100644 index d0aa767924..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExportSet A set of file systems to export through one or more mount -// targets. Composed of zero or more export resources. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type ExportSet struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the export set. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My export set` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. - Id *string `mandatory:"true" json:"id"` - - // The current state of the export set. - LifecycleState ExportSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the export set was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual cloud network (VCN) the export set is in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The availability domain the export set is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Controls the maximum `tbytes`, `fbytes`, and `abytes`, - // values reported by `NFS FSSTAT` calls through any associated - // mount targets. This is an advanced feature. For most - // applications, use the default value. The - // `tbytes` value reported by `FSSTAT` will be - // `maxFsStatBytes`. The value of `fbytes` and `abytes` will be - // `maxFsStatBytes` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatBytes`, - // then `fbytes` and `abytes` will both be '0'. - MaxFsStatBytes *int64 `mandatory:"false" json:"maxFsStatBytes"` - - // Controls the maximum `tfiles`, `ffiles`, and `afiles` - // values reported by `NFS FSSTAT` calls through any associated - // mount targets. This is an advanced feature. For most - // applications, use the default value. The - // `tfiles` value reported by `FSSTAT` will be - // `maxFsStatFiles`. The value of `ffiles` and `afiles` will be - // `maxFsStatFiles` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatFiles`, - // then `ffiles` and `afiles` will both be '0'. - MaxFsStatFiles *int64 `mandatory:"false" json:"maxFsStatFiles"` -} - -func (m ExportSet) String() string { - return common.PointerString(m) -} - -// ExportSetLifecycleStateEnum Enum with underlying type: string -type ExportSetLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportSetLifecycleStateEnum -const ( - ExportSetLifecycleStateCreating ExportSetLifecycleStateEnum = "CREATING" - ExportSetLifecycleStateActive ExportSetLifecycleStateEnum = "ACTIVE" - ExportSetLifecycleStateDeleting ExportSetLifecycleStateEnum = "DELETING" - ExportSetLifecycleStateDeleted ExportSetLifecycleStateEnum = "DELETED" -) - -var mappingExportSetLifecycleState = map[string]ExportSetLifecycleStateEnum{ - "CREATING": ExportSetLifecycleStateCreating, - "ACTIVE": ExportSetLifecycleStateActive, - "DELETING": ExportSetLifecycleStateDeleting, - "DELETED": ExportSetLifecycleStateDeleted, -} - -// GetExportSetLifecycleStateEnumValues Enumerates the set of values for ExportSetLifecycleStateEnum -func GetExportSetLifecycleStateEnumValues() []ExportSetLifecycleStateEnum { - values := make([]ExportSetLifecycleStateEnum, 0) - for _, v := range mappingExportSetLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set_summary.go deleted file mode 100644 index 4fad3bd9ca..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_set_summary.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExportSetSummary Summary information for an export set. -type ExportSetSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the export set. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My export set` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. - Id *string `mandatory:"true" json:"id"` - - // The current state of the export set. - LifecycleState ExportSetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the export set was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual cloud network (VCN) the export set is in. - VcnId *string `mandatory:"true" json:"vcnId"` - - // The availability domain the export set is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m ExportSetSummary) String() string { - return common.PointerString(m) -} - -// ExportSetSummaryLifecycleStateEnum Enum with underlying type: string -type ExportSetSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportSetSummaryLifecycleStateEnum -const ( - ExportSetSummaryLifecycleStateCreating ExportSetSummaryLifecycleStateEnum = "CREATING" - ExportSetSummaryLifecycleStateActive ExportSetSummaryLifecycleStateEnum = "ACTIVE" - ExportSetSummaryLifecycleStateDeleting ExportSetSummaryLifecycleStateEnum = "DELETING" - ExportSetSummaryLifecycleStateDeleted ExportSetSummaryLifecycleStateEnum = "DELETED" -) - -var mappingExportSetSummaryLifecycleState = map[string]ExportSetSummaryLifecycleStateEnum{ - "CREATING": ExportSetSummaryLifecycleStateCreating, - "ACTIVE": ExportSetSummaryLifecycleStateActive, - "DELETING": ExportSetSummaryLifecycleStateDeleting, - "DELETED": ExportSetSummaryLifecycleStateDeleted, -} - -// GetExportSetSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSetSummaryLifecycleStateEnum -func GetExportSetSummaryLifecycleStateEnumValues() []ExportSetSummaryLifecycleStateEnum { - values := make([]ExportSetSummaryLifecycleStateEnum, 0) - for _, v := range mappingExportSetSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_summary.go deleted file mode 100644 index 60d7930585..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/export_summary.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ExportSummary Summary information for an export. -type ExportSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's export set. - ExportSetId *string `mandatory:"true" json:"exportSetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's file system. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export. - Id *string `mandatory:"true" json:"id"` - - // The current state of this export. - LifecycleState ExportSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Path used to access the associated file system. - // Avoid entering confidential information. - // Example: `/mediafiles` - Path *string `mandatory:"true" json:"path"` - - // The date and time the export was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. - IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` - - // Export can be created in 'ENABLED' or 'DISABLED' mode. - // Attempt to mount the filesystem will fail if the export is in 'DISABLED' mode. - ExportMode ExportSummaryExportModeEnum `mandatory:"false" json:"exportMode,omitempty"` -} - -func (m ExportSummary) String() string { - return common.PointerString(m) -} - -// ExportSummaryLifecycleStateEnum Enum with underlying type: string -type ExportSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ExportSummaryLifecycleStateEnum -const ( - ExportSummaryLifecycleStateCreating ExportSummaryLifecycleStateEnum = "CREATING" - ExportSummaryLifecycleStateActive ExportSummaryLifecycleStateEnum = "ACTIVE" - ExportSummaryLifecycleStateDeleting ExportSummaryLifecycleStateEnum = "DELETING" - ExportSummaryLifecycleStateDeleted ExportSummaryLifecycleStateEnum = "DELETED" -) - -var mappingExportSummaryLifecycleState = map[string]ExportSummaryLifecycleStateEnum{ - "CREATING": ExportSummaryLifecycleStateCreating, - "ACTIVE": ExportSummaryLifecycleStateActive, - "DELETING": ExportSummaryLifecycleStateDeleting, - "DELETED": ExportSummaryLifecycleStateDeleted, -} - -// GetExportSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSummaryLifecycleStateEnum -func GetExportSummaryLifecycleStateEnumValues() []ExportSummaryLifecycleStateEnum { - values := make([]ExportSummaryLifecycleStateEnum, 0) - for _, v := range mappingExportSummaryLifecycleState { - values = append(values, v) - } - return values -} - -// ExportSummaryExportModeEnum Enum with underlying type: string -type ExportSummaryExportModeEnum string - -// Set of constants representing the allowable values for ExportSummaryExportModeEnum -const ( - ExportSummaryExportModeEnabled ExportSummaryExportModeEnum = "ENABLED" - ExportSummaryExportModeDisabled ExportSummaryExportModeEnum = "DISABLED" -) - -var mappingExportSummaryExportMode = map[string]ExportSummaryExportModeEnum{ - "ENABLED": ExportSummaryExportModeEnabled, - "DISABLED": ExportSummaryExportModeDisabled, -} - -// GetExportSummaryExportModeEnumValues Enumerates the set of values for ExportSummaryExportModeEnum -func GetExportSummaryExportModeEnumValues() []ExportSummaryExportModeEnum { - values := make([]ExportSummaryExportModeEnum, 0) - for _, v := range mappingExportSummaryExportMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system.go deleted file mode 100644 index a50a0264ce..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system.go +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FileSystem An NFS file system. To allow access to a file system, add it -// to an export set and associate the export set with a mount -// target. The same file system can be in multiple export sets and -// associated with multiple mount targets. -// To use any of the API operations, you must be authorized in an -// IAM policy. If you're not authorized, talk to an -// administrator. If you're an administrator who needs to write -// policies to give users access, see Getting Started with -// Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type FileSystem struct { - - // The number of bytes consumed by the file system, including - // any snapshots. This number reflects the metered size of the file - // system and is updated asynchronously with respect to - // updates to the file system. - // For more information, see File System Usage and Metering (https://docs.cloud.oracle.com/Content/File/Concepts/FSutilization.htm). - MeteredBytes *int64 `mandatory:"true" json:"meteredBytes"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. - Id *string `mandatory:"true" json:"id"` - - // The current state of the file system. - LifecycleState FileSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the file system was created, expressed in - // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The availability domain the file system is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key which is the master encryption key for the file system. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - SourceDetails *SourceDetails `mandatory:"false" json:"sourceDetails"` - - // Specifies whether the file system has been cloned. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - IsCloneParent *bool `mandatory:"false" json:"isCloneParent"` - - // Specifies whether the data has finished copying from the source to the clone. - // Hydration can take up to several hours to complete depending on the size of the source. - // The source and clone remain available during hydration, but there may be some performance impact. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). - IsHydrated *bool `mandatory:"false" json:"isHydrated"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Specifies whether the file system can be used as a target filesystem for replication. - IsTargetable *bool `mandatory:"false" json:"isTargetable"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target associated with the filesystem. - // Empty if the filesystem is not being used as target in a replication. - ReplicationTargetId *string `mandatory:"false" json:"replicationTargetId"` -} - -func (m FileSystem) String() string { - return common.PointerString(m) -} - -// FileSystemLifecycleStateEnum Enum with underlying type: string -type FileSystemLifecycleStateEnum string - -// Set of constants representing the allowable values for FileSystemLifecycleStateEnum -const ( - FileSystemLifecycleStateCreating FileSystemLifecycleStateEnum = "CREATING" - FileSystemLifecycleStateActive FileSystemLifecycleStateEnum = "ACTIVE" - FileSystemLifecycleStateDeleting FileSystemLifecycleStateEnum = "DELETING" - FileSystemLifecycleStateDeleted FileSystemLifecycleStateEnum = "DELETED" - FileSystemLifecycleStateFailed FileSystemLifecycleStateEnum = "FAILED" -) - -var mappingFileSystemLifecycleState = map[string]FileSystemLifecycleStateEnum{ - "CREATING": FileSystemLifecycleStateCreating, - "ACTIVE": FileSystemLifecycleStateActive, - "DELETING": FileSystemLifecycleStateDeleting, - "DELETED": FileSystemLifecycleStateDeleted, - "FAILED": FileSystemLifecycleStateFailed, -} - -// GetFileSystemLifecycleStateEnumValues Enumerates the set of values for FileSystemLifecycleStateEnum -func GetFileSystemLifecycleStateEnumValues() []FileSystemLifecycleStateEnum { - values := make([]FileSystemLifecycleStateEnum, 0) - for _, v := range mappingFileSystemLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system_summary.go deleted file mode 100644 index 833a77623c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/file_system_summary.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FileSystemSummary Summary information for a file system. -type FileSystemSummary struct { - - // The number of bytes consumed by the file system, including - // any snapshots. This number reflects the metered size of the file - // system and is updated asynchronously with respect to - // updates to the file system. - MeteredBytes *int64 `mandatory:"true" json:"meteredBytes"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. - Id *string `mandatory:"true" json:"id"` - - // The current state of the file system. - LifecycleState FileSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the file system was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The availability domain the file system is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key used to encrypt the encryption keys associated with this file system. - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` - - SourceDetails *SourceDetails `mandatory:"false" json:"sourceDetails"` - - // Specifies whether the file system has been cloned. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - IsCloneParent *bool `mandatory:"false" json:"isCloneParent"` - - // Specifies whether the data has finished copying from the source to the clone. - // Hydration can take up to several hours to complete depending on the size of the source. - // The source and clone remain available during hydration, but there may be some performance impact. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). - IsHydrated *bool `mandatory:"false" json:"isHydrated"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` -} - -func (m FileSystemSummary) String() string { - return common.PointerString(m) -} - -// FileSystemSummaryLifecycleStateEnum Enum with underlying type: string -type FileSystemSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for FileSystemSummaryLifecycleStateEnum -const ( - FileSystemSummaryLifecycleStateCreating FileSystemSummaryLifecycleStateEnum = "CREATING" - FileSystemSummaryLifecycleStateActive FileSystemSummaryLifecycleStateEnum = "ACTIVE" - FileSystemSummaryLifecycleStateDeleting FileSystemSummaryLifecycleStateEnum = "DELETING" - FileSystemSummaryLifecycleStateDeleted FileSystemSummaryLifecycleStateEnum = "DELETED" -) - -var mappingFileSystemSummaryLifecycleState = map[string]FileSystemSummaryLifecycleStateEnum{ - "CREATING": FileSystemSummaryLifecycleStateCreating, - "ACTIVE": FileSystemSummaryLifecycleStateActive, - "DELETING": FileSystemSummaryLifecycleStateDeleting, - "DELETED": FileSystemSummaryLifecycleStateDeleted, -} - -// GetFileSystemSummaryLifecycleStateEnumValues Enumerates the set of values for FileSystemSummaryLifecycleStateEnum -func GetFileSystemSummaryLifecycleStateEnumValues() []FileSystemSummaryLifecycleStateEnum { - values := make([]FileSystemSummaryLifecycleStateEnum, 0) - for _, v := range mappingFileSystemSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/filestorage_client.go deleted file mode 100644 index 327ed7d50e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/filestorage_client.go +++ /dev/null @@ -1,3196 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" - "net/http" -) - -//FileStorageClient a client for FileStorage -type FileStorageClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewFileStorageClientWithConfigurationProvider Creates a new default FileStorage client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewFileStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client FileStorageClient, err error) { - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newFileStorageClientFromBaseClient(baseClient, provider) -} - -// NewFileStorageClientWithOboToken Creates a new default FileStorage client with the given configuration provider. -// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer -// as well as reading the region -func NewFileStorageClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client FileStorageClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newFileStorageClientFromBaseClient(baseClient, configProvider) -} - -func newFileStorageClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client FileStorageClient, err error) { - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = FileStorageClient{BaseClient: baseClient} - client.BasePath = "20171215" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *FileStorageClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("filestorage", "https://filestorage.{region}.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *FileStorageClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.SetRegion(region) - client.config = &configProvider - return nil -} - -// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set -func (client *FileStorageClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// ChangeFileSystemCompartment Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) -func (client FileStorageClient) ChangeFileSystemCompartment(ctx context.Context, request ChangeFileSystemCompartmentRequest) (response ChangeFileSystemCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.changeFileSystemCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeFileSystemCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeFileSystemCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeFileSystemCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeFileSystemCompartmentResponse") - } - return -} - -// changeFileSystemCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeFileSystemCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeFileSystemCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ChangeMountTargetCompartment Moves a mount target and its associated export set into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) -func (client FileStorageClient) ChangeMountTargetCompartment(ctx context.Context, request ChangeMountTargetCompartmentRequest) (response ChangeMountTargetCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.changeMountTargetCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeMountTargetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeMountTargetCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeMountTargetCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeMountTargetCompartmentResponse") - } - return -} - -// changeMountTargetCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeMountTargetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeMountTargetCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ChangeOutboundConnectorCompartment Moves a outbound connector into a different compartment within the same tenancy. -// For information about moving resources between compartments, see -// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) -func (client FileStorageClient) ChangeOutboundConnectorCompartment(ctx context.Context, request ChangeOutboundConnectorCompartmentRequest) (response ChangeOutboundConnectorCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.changeOutboundConnectorCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeOutboundConnectorCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeOutboundConnectorCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeOutboundConnectorCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeOutboundConnectorCompartmentResponse") - } - return -} - -// changeOutboundConnectorCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeOutboundConnectorCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors/{outboundConnectorId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeOutboundConnectorCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ChangeReplicationCompartment Moves a replication and its replication target into a different compartment within the same tenancy. -// For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) -func (client FileStorageClient) ChangeReplicationCompartment(ctx context.Context, request ChangeReplicationCompartmentRequest) (response ChangeReplicationCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.changeReplicationCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeReplicationCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeReplicationCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeReplicationCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeReplicationCompartmentResponse") - } - return -} - -// changeReplicationCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeReplicationCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeReplicationCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ChangeReplicationTargetCompartment Moves a replication target into a different compartment within the same tenancy. -// To be used internal only. -func (client FileStorageClient) ChangeReplicationTargetCompartment(ctx context.Context, request ChangeReplicationTargetCompartmentRequest) (response ChangeReplicationTargetCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.changeReplicationTargetCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeReplicationTargetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeReplicationTargetCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeReplicationTargetCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeReplicationTargetCompartmentResponse") - } - return -} - -// changeReplicationTargetCompartment implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) changeReplicationTargetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/{replicationTargetId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeReplicationTargetCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CheckReconciliation Check if provided provenance id is present in source FS. -func (client FileStorageClient) CheckReconciliation(ctx context.Context, request CheckReconciliationRequest) (response CheckReconciliationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.checkReconciliation, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CheckReconciliationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CheckReconciliationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CheckReconciliationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CheckReconciliationResponse") - } - return -} - -// checkReconciliation implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) checkReconciliation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/actions/checkReconciliation", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CheckReconciliationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateExport Creates a new export in the specified export set, path, and -// file system. -func (client FileStorageClient) CreateExport(ctx context.Context, request CreateExportRequest) (response CreateExportResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createExport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateExportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateExportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateExportResponse") - } - return -} - -// createExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/exports", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateExportResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateFileSystem Creates a new file system in the specified compartment and -// availability domain. Instances can mount file systems in -// another availability domain, but doing so might increase -// latency when compared to mounting instances in the same -// availability domain. -// After you create a file system, you can associate it with a mount -// target. Instances can then mount the file system by connecting to the -// mount target's IP address. You can associate a file system with -// more than one mount target at a time. -// For information about access control and compartments, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about Network Security Groups access control, see -// Network Security Groups (https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure resources, including -// file systems, get an Oracle-assigned, unique ID called an Oracle -// Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type or by viewing the resource in the Console. -func (client FileStorageClient) CreateFileSystem(ctx context.Context, request CreateFileSystemRequest) (response CreateFileSystemResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createFileSystem, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateFileSystemResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateFileSystemResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateFileSystemResponse") - } - return -} - -// createFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateFileSystemResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateMountTarget Creates a new mount target in the specified compartment and -// subnet. You can associate a file system with a mount -// target only when they exist in the same availability domain. Instances -// can connect to mount targets in another availablity domain, but -// you might see higher latency than with instances in the same -// availability domain as the mount target. -// Mount targets have one or more private IP addresses that you can -// provide as the host portion of remote target parameters in -// client mount commands. These private IP addresses are listed -// in the privateIpIds property of the mount target and are highly available. Mount -// targets also consume additional IP addresses in their subnet. -// Do not use /30 or smaller subnets for mount target creation because they -// do not have sufficient available IP addresses. -// Allow at least three IP addresses for each mount target. -// For information about access control and compartments, see -// Overview of the IAM -// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure Services resources, including -// mount targets, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -func (client FileStorageClient) CreateMountTarget(ctx context.Context, request CreateMountTargetRequest) (response CreateMountTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createMountTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateMountTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateMountTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateMountTargetResponse") - } - return -} - -// createMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateMountTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateOutboundConnector Creates a new outbound connector in the specified compartment. -// You can associate a outbound connector with a mount target only when -// they exist in the same availability domain. -// For information about access control and compartments, see -// Overview of the IAM -// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure Services resources, including -// outbound connectors, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -func (client FileStorageClient) CreateOutboundConnector(ctx context.Context, request CreateOutboundConnectorRequest) (response CreateOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateOutboundConnectorResponse") - } - return -} - -// createOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) - return response, err -} - -// CreateReplication Creates a new replication in the specified compartment. -// You can associate source and target file system only when -// target FileSystem is not exported by an enabled export and is targetable. -// Also creates a unique replication target associated in target -// region alongwith this replication. -// For information about access control and compartments, see -// Overview of the IAM -// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// For information about availability domains, see Regions and -// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To get a list of availability domains, use the -// `ListAvailabilityDomains` operation in the Identity and Access -// Management Service API. -// All Oracle Cloud Infrastructure Services resources, including -// replications, get an Oracle-assigned, unique ID called an -// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). -// When you create a resource, you can find its OCID in the response. -// You can also retrieve a resource's OCID by using a List API operation on that resource -// type, or by viewing the resource in the Console. -func (client FileStorageClient) CreateReplication(ctx context.Context, request CreateReplicationRequest) (response CreateReplicationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createReplication, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateReplicationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateReplicationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateReplicationResponse") - } - return -} - -// createReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateReplicationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateReplicationTarget Creates a new replication target in the specified compartment. -// To be used for internal only purposes. -func (client FileStorageClient) CreateReplicationTarget(ctx context.Context, request CreateReplicationTargetRequest) (response CreateReplicationTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createReplicationTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateReplicationTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateReplicationTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateReplicationTargetResponse") - } - return -} - -// createReplicationTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateReplicationTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateSnapshot Creates a new snapshot of the specified file system. You -// can access the snapshot at `.snapshot/`. -func (client FileStorageClient) CreateSnapshot(ctx context.Context, request CreateSnapshotRequest) (response CreateSnapshotResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createSnapshot, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateSnapshotResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateSnapshotResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateSnapshotResponse") - } - return -} - -// createSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) createSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/snapshots", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateSnapshotResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteExport Deletes the specified export. -func (client FileStorageClient) DeleteExport(ctx context.Context, request DeleteExportRequest) (response DeleteExportResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteExport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteExportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteExportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteExportResponse") - } - return -} - -// deleteExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/exports/{exportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteExportResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteFileSystem Deletes the specified file system. Before you delete the file system, -// verify that no remaining export resources still reference it. Deleting a -// file system also deletes all of its snapshots. -func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request DeleteFileSystemRequest) (response DeleteFileSystemResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteFileSystem, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteFileSystemResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteFileSystemResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteFileSystemResponse") - } - return -} - -// deleteFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteFileSystemResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteMountTarget Deletes the specified mount target. This operation also deletes the -// mount target's VNICs. -func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request DeleteMountTargetRequest) (response DeleteMountTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteMountTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteMountTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteMountTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteMountTargetResponse") - } - return -} - -// deleteMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteMountTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteOutboundConnector Deletes the specified outbound connector. -func (client FileStorageClient) DeleteOutboundConnector(ctx context.Context, request DeleteOutboundConnectorRequest) (response DeleteOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteOutboundConnectorResponse") - } - return -} - -// deleteOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteReplication Deletes the specified replication and the the associated replication target. -func (client FileStorageClient) DeleteReplication(ctx context.Context, request DeleteReplicationRequest) (response DeleteReplicationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteReplication, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteReplicationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteReplicationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationResponse") - } - return -} - -// deleteReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replications/{replicationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteReplicationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteReplicationTarget Deletes the specified replication target. -// This leads to immediate release of target filesystem if there are no in-flight delta applications. -// If there is any in-flight delta being applied the delete operation will be blocked until in-flight -// delta has been completely applied. -func (client FileStorageClient) DeleteReplicationTarget(ctx context.Context, request DeleteReplicationTargetRequest) (response DeleteReplicationTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteReplicationTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteReplicationTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteReplicationTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationTargetResponse") - } - return -} - -// deleteReplicationTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteReplicationTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteSnapshot Deletes the specified snapshot. -func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequest) (response DeleteSnapshotResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteSnapshot, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteSnapshotResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteSnapshotResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteSnapshotResponse") - } - return -} - -// deleteSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) deleteSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteSnapshotResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DiscardKerberosKeytab Discards the contents of the MountTarget resource's Kerberos Keytab. -// All keytab entries used by the Mount Target removed as a result of this call. -// Once the keytab is discarded any new Kerberized NFS I/O to this mount target -// will be rejected by the mount target. Other Kerberos configuration is unchanged. -func (client FileStorageClient) DiscardKerberosKeytab(ctx context.Context, request DiscardKerberosKeytabRequest) (response DiscardKerberosKeytabResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.discardKerberosKeytab, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DiscardKerberosKeytabResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DiscardKerberosKeytabResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DiscardKerberosKeytabResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DiscardKerberosKeytabResponse") - } - return -} - -// discardKerberosKeytab implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) discardKerberosKeytab(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/discardKerberosKeytab", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DiscardKerberosKeytabResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetExport Gets the specified export's information. -func (client FileStorageClient) GetExport(ctx context.Context, request GetExportRequest) (response GetExportResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getExport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetExportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetExportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExportResponse") - } - return -} - -// getExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports/{exportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetExportResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetExportSet Gets the specified export set's information. -func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExportSetRequest) (response GetExportSetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getExportSet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetExportSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetExportSetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetExportSetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetExportSetResponse") - } - return -} - -// getExportSet implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getExportSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets/{exportSetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetExportSetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetFileSystem Gets the specified file system's information. -func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFileSystemRequest) (response GetFileSystemResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getFileSystem, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetFileSystemResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetFileSystemResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetFileSystemResponse") - } - return -} - -// getFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetFileSystemResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetMountTarget Gets the specified mount target's information. -func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetMountTargetRequest) (response GetMountTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getMountTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetMountTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetMountTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetMountTargetResponse") - } - return -} - -// getMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetMountTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetOutboundConnector Gets the specified outbound connector's information. -func (client FileStorageClient) GetOutboundConnector(ctx context.Context, request GetOutboundConnectorRequest) (response GetOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetOutboundConnectorResponse") - } - return -} - -// getOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) - return response, err -} - -// GetReplication Gets the specified replication's information. -func (client FileStorageClient) GetReplication(ctx context.Context, request GetReplicationRequest) (response GetReplicationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getReplication, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetReplicationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetReplicationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReplicationResponse") - } - return -} - -// getReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications/{replicationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetReplicationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetReplicationTarget Gets the specified replication target's information. -func (client FileStorageClient) GetReplicationTarget(ctx context.Context, request GetReplicationTargetRequest) (response GetReplicationTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getReplicationTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetReplicationTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetReplicationTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetReplicationTargetResponse") - } - return -} - -// getReplicationTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetReplicationTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetSnapshot Gets the specified snapshot's information. -func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnapshotRequest) (response GetSnapshotResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getSnapshot, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetSnapshotResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetSnapshotResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetSnapshotResponse") - } - return -} - -// getSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetSnapshotResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetTagSlug gets the tagSlug value for a resource. -func (client FileStorageClient) GetTagSlug(ctx context.Context, request GetTagSlugRequest) (response GetTagSlugResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getTagSlug, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetTagSlugResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetTagSlugResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetTagSlugResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetTagSlugResponse") - } - return -} - -// getTagSlug implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) getTagSlug(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/tagSlug/{resourceId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetTagSlugResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListExportSets Lists the export set resources in the specified compartment. -func (client FileStorageClient) ListExportSets(ctx context.Context, request ListExportSetsRequest) (response ListExportSetsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listExportSets, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListExportSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListExportSetsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListExportSetsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListExportSetsResponse") - } - return -} - -// listExportSets implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listExportSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListExportSetsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListExports Lists export resources by compartment, file system, or export -// set. You must specify an export set ID, a file system ID, and -// / or a compartment ID. -func (client FileStorageClient) ListExports(ctx context.Context, request ListExportsRequest) (response ListExportsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listExports, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListExportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListExportsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListExportsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListExportsResponse") - } - return -} - -// listExports implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listExports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListExportsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListFileSystems Lists the file system resources in the specified compartment. -func (client FileStorageClient) ListFileSystems(ctx context.Context, request ListFileSystemsRequest) (response ListFileSystemsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listFileSystems, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListFileSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListFileSystemsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListFileSystemsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListFileSystemsResponse") - } - return -} - -// listFileSystems implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listFileSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListFileSystemsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListMountTargets Lists the mount target resources in the specified compartment. -func (client FileStorageClient) ListMountTargets(ctx context.Context, request ListMountTargetsRequest) (response ListMountTargetsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listMountTargets, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListMountTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListMountTargetsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListMountTargetsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListMountTargetsResponse") - } - return -} - -// listMountTargets implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listMountTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListMountTargetsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -//listoutboundconnectorsummary allows to unmarshal list of polymorphic OutboundConnectorSummary -type listoutboundconnectorsummary []outboundconnectorsummary - -//UnmarshalPolymorphicJSON unmarshals polymorphic json list of items -func (m *listoutboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - res := make([]OutboundConnectorSummary, len(*m)) - for i, v := range *m { - nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) - if err != nil { - return nil, err - } - res[i] = nn.(OutboundConnectorSummary) - } - return res, nil -} - -// ListOutboundConnectors Lists the outbound connector resources in the specified compartment. -func (client FileStorageClient) ListOutboundConnectors(ctx context.Context, request ListOutboundConnectorsRequest) (response ListOutboundConnectorsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listOutboundConnectors, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListOutboundConnectorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListOutboundConnectorsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListOutboundConnectorsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListOutboundConnectorsResponse") - } - return -} - -// listOutboundConnectors implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listOutboundConnectors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListOutboundConnectorsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listoutboundconnectorsummary{}) - return response, err -} - -// ListReplicationTargets Lists the replication target resources in the specified compartment. -func (client FileStorageClient) ListReplicationTargets(ctx context.Context, request ListReplicationTargetsRequest) (response ListReplicationTargetsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listReplicationTargets, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReplicationTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListReplicationTargetsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListReplicationTargetsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReplicationTargetsResponse") - } - return -} - -// listReplicationTargets implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listReplicationTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListReplicationTargetsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListReplications Lists the replication resources in the specified compartment. -func (client FileStorageClient) ListReplications(ctx context.Context, request ListReplicationsRequest) (response ListReplicationsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listReplications, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListReplicationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListReplicationsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListReplicationsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListReplicationsResponse") - } - return -} - -// listReplications implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listReplications(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListReplicationsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListSnapshots Lists snapshots of the specified file system. -func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListSnapshotsRequest) (response ListSnapshotsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listSnapshots, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListSnapshotsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListSnapshotsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListSnapshotsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListSnapshotsResponse") - } - return -} - -// listSnapshots implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) listSnapshots(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListSnapshotsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ModifyRootdirAttributes Allows the administrator to alter the attributes of the file system root directory. -func (client FileStorageClient) ModifyRootdirAttributes(ctx context.Context, request ModifyRootdirAttributesRequest) (response ModifyRootdirAttributesResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.modifyRootdirAttributes, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ModifyRootdirAttributesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ModifyRootdirAttributesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ModifyRootdirAttributesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ModifyRootdirAttributesResponse") - } - return -} - -// modifyRootdirAttributes implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) modifyRootdirAttributes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/modifyRootDirectoryAttributes", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ModifyRootdirAttributesResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReplicationFail Update Replication to FAILED state in a remote region. This API is called as part of Replication Lifecycle Management. -func (client FileStorageClient) ReplicationFail(ctx context.Context, request ReplicationFailRequest) (response ReplicationFailResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.replicationFail, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReplicationFailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReplicationFailResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReplicationFailResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReplicationFailResponse") - } - return -} - -// replicationFail implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) replicationFail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/actions/replicationFail", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReplicationFailResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReplicationStatusUpdate Update Replication Status of Replication in a remote region. This API is called as part of Replication Lifecycle Management. -func (client FileStorageClient) ReplicationStatusUpdate(ctx context.Context, request ReplicationStatusUpdateRequest) (response ReplicationStatusUpdateResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.replicationStatusUpdate, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReplicationStatusUpdateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReplicationStatusUpdateResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReplicationStatusUpdateResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReplicationStatusUpdateResponse") - } - return -} - -// replicationStatusUpdate implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) replicationStatusUpdate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/actions/replicationStatusUpdate", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReplicationStatusUpdateResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReplicationTargetDelete Delete ReplicationTarget in a remote region. This API is called as part of Replication Lifecycle Management. -func (client FileStorageClient) ReplicationTargetDelete(ctx context.Context, request ReplicationTargetDeleteRequest) (response ReplicationTargetDeleteResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.replicationTargetDelete, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReplicationTargetDeleteResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReplicationTargetDeleteResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReplicationTargetDeleteResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetDeleteResponse") - } - return -} - -// replicationTargetDelete implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) replicationTargetDelete(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/replicationTargetDelete", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReplicationTargetDeleteResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReplicationTargetFail Update ReplicationTarget to FAILED state in a remote region. This API is called as part of Replication Lifecycle Management. -func (client FileStorageClient) ReplicationTargetFail(ctx context.Context, request ReplicationTargetFailRequest) (response ReplicationTargetFailResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.replicationTargetFail, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReplicationTargetFailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReplicationTargetFailResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReplicationTargetFailResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetFailResponse") - } - return -} - -// replicationTargetFail implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) replicationTargetFail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/replicationTargetFail", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReplicationTargetFailResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReplicationTargetFileSystemGet Get Target Filesystem in a remote region. -func (client FileStorageClient) ReplicationTargetFileSystemGet(ctx context.Context, request ReplicationTargetFileSystemGetRequest) (response ReplicationTargetFileSystemGetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.replicationTargetFileSystemGet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReplicationTargetFileSystemGetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReplicationTargetFileSystemGetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReplicationTargetFileSystemGetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetFileSystemGetResponse") - } - return -} - -// replicationTargetFileSystemGet implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) replicationTargetFileSystemGet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications/actions/getTargetFileSystem", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReplicationTargetFileSystemGetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReplicationTargetStatusUpdate Update Replication Status of ReplicationTarget in a remote region. This API is called as part of Replication Lifecycle Management. -func (client FileStorageClient) ReplicationTargetStatusUpdate(ctx context.Context, request ReplicationTargetStatusUpdateRequest) (response ReplicationTargetStatusUpdateResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.replicationTargetStatusUpdate, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReplicationTargetStatusUpdateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReplicationTargetStatusUpdateResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReplicationTargetStatusUpdateResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetStatusUpdateResponse") - } - return -} - -// replicationTargetStatusUpdate implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) replicationTargetStatusUpdate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/replicationTargetStatusUpdate", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReplicationTargetStatusUpdateResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ReserveTargetNum Reserve ReplicationTarget num in a remote region. This API is called as part of Create Replication. -func (client FileStorageClient) ReserveTargetNum(ctx context.Context, request ReserveTargetNumRequest) (response ReserveTargetNumResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.reserveTargetNum, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ReserveTargetNumResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ReserveTargetNumResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ReserveTargetNumResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ReserveTargetNumResponse") - } - return -} - -// reserveTargetNum implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) reserveTargetNum(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/reserveTargetNum", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ReserveTargetNumResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// SourceTriggeredDelete Notify target region that a delete replication request has been received in source. This API will be part of Delete Replication -func (client FileStorageClient) SourceTriggeredDelete(ctx context.Context, request SourceTriggeredDeleteRequest) (response SourceTriggeredDeleteResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.sourceTriggeredDelete, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = SourceTriggeredDeleteResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = SourceTriggeredDeleteResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(SourceTriggeredDeleteResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into SourceTriggeredDeleteResponse") - } - return -} - -// sourceTriggeredDelete implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) sourceTriggeredDelete(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/{replicationTargetId}/actions/sourceTriggeredDelete", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response SourceTriggeredDeleteResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// TargetFileSystemGet Get Target Filesystem in a remote region. -func (client FileStorageClient) TargetFileSystemGet(ctx context.Context, request TargetFileSystemGetRequest) (response TargetFileSystemGetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.targetFileSystemGet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = TargetFileSystemGetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = TargetFileSystemGetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(TargetFileSystemGetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into TargetFileSystemGetResponse") - } - return -} - -// targetFileSystemGet implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) targetFileSystemGet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/actions/getTargetFileSystem", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response TargetFileSystemGetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// TestOutboundConnector Runs diagnostic test from the specified mount target to server endpoints in the specified outbound connector. -func (client FileStorageClient) TestOutboundConnector(ctx context.Context, request TestOutboundConnectorRequest) (response TestOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.testOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = TestOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = TestOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(TestOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into TestOutboundConnectorResponse") - } - return -} - -// testOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) testOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/testOutboundConnector", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response TestOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateExport Updates the specified export's information. -func (client FileStorageClient) UpdateExport(ctx context.Context, request UpdateExportRequest) (response UpdateExportResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateExport, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateExportResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateExportResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateExportResponse") - } - return -} - -// updateExport implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/exports/{exportId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateExportResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateExportSet Updates the specified export set's information. -func (client FileStorageClient) UpdateExportSet(ctx context.Context, request UpdateExportSetRequest) (response UpdateExportSetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateExportSet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateExportSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateExportSetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateExportSetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateExportSetResponse") - } - return -} - -// updateExportSet implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateExportSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/exportSets/{exportSetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateExportSetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateFileSystem Updates the specified file system's information. -// You can use this operation to rename a file system. -func (client FileStorageClient) UpdateFileSystem(ctx context.Context, request UpdateFileSystemRequest) (response UpdateFileSystemResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateFileSystem, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateFileSystemResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateFileSystemResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateFileSystemResponse") - } - return -} - -// updateFileSystem implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateFileSystemResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateMountTarget Updates the specified mount target's information. -func (client FileStorageClient) UpdateMountTarget(ctx context.Context, request UpdateMountTargetRequest) (response UpdateMountTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateMountTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateMountTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateMountTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateMountTargetResponse") - } - return -} - -// updateMountTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateMountTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateOutboundConnector Updates the specified outbound connector's information. -func (client FileStorageClient) UpdateOutboundConnector(ctx context.Context, request UpdateOutboundConnectorRequest) (response UpdateOutboundConnectorResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateOutboundConnector, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateOutboundConnectorResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateOutboundConnectorResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateOutboundConnectorResponse") - } - return -} - -// updateOutboundConnector implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateOutboundConnectorResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) - return response, err -} - -// UpdateReplication Updates the specified replication's and the associated replication target's information. -func (client FileStorageClient) UpdateReplication(ctx context.Context, request UpdateReplicationRequest) (response UpdateReplicationResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateReplication, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateReplicationResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateReplicationResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateReplicationResponse") - } - return -} - -// updateReplication implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/replications/{replicationId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateReplicationResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateReplicationTarget Updates the specified replication target's information. -// To be used internal only. -func (client FileStorageClient) UpdateReplicationTarget(ctx context.Context, request UpdateReplicationTargetRequest) (response UpdateReplicationTargetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateReplicationTarget, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateReplicationTargetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateReplicationTargetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateReplicationTargetResponse") - } - return -} - -// updateReplicationTarget implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateReplicationTargetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateSnapshot Updates the specified snapshot's information. -func (client FileStorageClient) UpdateSnapshot(ctx context.Context, request UpdateSnapshotRequest) (response UpdateSnapshotResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateSnapshot, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateSnapshotResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateSnapshotResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateSnapshotResponse") - } - return -} - -// updateSnapshot implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) updateSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateSnapshotResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UploadKerberosKeytab Uploads keytab file to the mount target for use in the data path. -func (client FileStorageClient) UploadKerberosKeytab(ctx context.Context, request UploadKerberosKeytabRequest) (response UploadKerberosKeytabResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.uploadKerberosKeytab, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UploadKerberosKeytabResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UploadKerberosKeytabResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UploadKerberosKeytabResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UploadKerberosKeytabResponse") - } - return -} - -// uploadKerberosKeytab implements the OCIOperation interface (enables retrying operations) -func (client FileStorageClient) uploadKerberosKeytab(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/uploadKerberosKeytab", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UploadKerberosKeytabResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos.go deleted file mode 100644 index e3da42adec..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Kerberos Allows administrator to configure a mount target to interact with the administrator's Kerberos Infrastructure. -type Kerberos struct { - - // The realm of the kerberos server a mount target interacts with. - KerberosRealm *string `mandatory:"true" json:"kerberosRealm"` - - // An array of keytab entries (principal, encryptionType, keyVersionNumber and timeRotated). - KerberosKeytabEntries []KerberosKeytabEntry `mandatory:"true" json:"kerberosKeytabEntries"` - - // Describes how long to keep keytab entries(in seconds) after they have been rotated. - KerberosKeyLifeSeconds *int `mandatory:"false" json:"kerberosKeyLifeSeconds"` -} - -func (m Kerberos) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos_keytab_entry.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos_keytab_entry.go deleted file mode 100644 index dd0f3d791f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/kerberos_keytab_entry.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// KerberosKeytabEntry Details of each keytab entry read from Keytab file. -type KerberosKeytabEntry struct { - - // Keytab principal. - Principal *string `mandatory:"true" json:"principal"` - - // Encryption type with with keytab was generated. - // Secure: aes128-cts-hmac-sha256-128 - // Secure: aes256-cts-hmac-sha384-192 - // Less Secure: aes128-cts-hmac-sha1-96 - // Less Secure: aes256-cts-hmac-sha1-96 - EncryptionType KerberosKeytabEntryEncryptionTypeEnum `mandatory:"true" json:"encryptionType"` - - // Kerberos kvno (key version number) for key in keytab entry. - KeyVersionNumber *int64 `mandatory:"true" json:"keyVersionNumber"` - - // The date and time the Keytab was rotated, expressed in - // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeRotated *common.SDKTime `mandatory:"false" json:"timeRotated"` -} - -func (m KerberosKeytabEntry) String() string { - return common.PointerString(m) -} - -// KerberosKeytabEntryEncryptionTypeEnum Enum with underlying type: string -type KerberosKeytabEntryEncryptionTypeEnum string - -// Set of constants representing the allowable values for KerberosKeytabEntryEncryptionTypeEnum -const ( - KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha256128 KerberosKeytabEntryEncryptionTypeEnum = "AES128_CTS_HMAC_SHA256_128" - KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha384192 KerberosKeytabEntryEncryptionTypeEnum = "AES256_CTS_HMAC_SHA384_192" - KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha196 KerberosKeytabEntryEncryptionTypeEnum = "AES128_CTS_HMAC_SHA1_96" - KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha196 KerberosKeytabEntryEncryptionTypeEnum = "AES256_CTS_HMAC_SHA1_96" -) - -var mappingKerberosKeytabEntryEncryptionType = map[string]KerberosKeytabEntryEncryptionTypeEnum{ - "AES128_CTS_HMAC_SHA256_128": KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha256128, - "AES256_CTS_HMAC_SHA384_192": KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha384192, - "AES128_CTS_HMAC_SHA1_96": KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha196, - "AES256_CTS_HMAC_SHA1_96": KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha196, -} - -// GetKerberosKeytabEntryEncryptionTypeEnumValues Enumerates the set of values for KerberosKeytabEntryEncryptionTypeEnum -func GetKerberosKeytabEntryEncryptionTypeEnumValues() []KerberosKeytabEntryEncryptionTypeEnum { - values := make([]KerberosKeytabEntryEncryptionTypeEnum, 0) - for _, v := range mappingKerberosKeytabEntryEncryptionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account.go deleted file mode 100644 index d5906ee2fc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LdapBindAccount Account details for LDAP bind account from outbound connector. -type LdapBindAccount struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My outbound connector` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the outbound connector was created - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Array of server endpoints to use while trying to connect while using LDAP bind account - Endpoints []Endpoint `mandatory:"true" json:"endpoints"` - - // The LDAP Distinguished name of the account. - BindDistinguishedName *string `mandatory:"true" json:"bindDistinguishedName"` - - // The availability domain the outbound connector is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The current state of this outbound connector. - LifecycleState OutboundConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m LdapBindAccount) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetCompartmentId returns CompartmentId -func (m LdapBindAccount) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetId returns Id -func (m LdapBindAccount) GetId() *string { - return m.Id -} - -//GetLifecycleState returns LifecycleState -func (m LdapBindAccount) GetLifecycleState() OutboundConnectorLifecycleStateEnum { - return m.LifecycleState -} - -//GetDisplayName returns DisplayName -func (m LdapBindAccount) GetDisplayName() *string { - return m.DisplayName -} - -//GetTimeCreated returns TimeCreated -func (m LdapBindAccount) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -//GetFreeformTags returns FreeformTags -func (m LdapBindAccount) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -//GetDefinedTags returns DefinedTags -func (m LdapBindAccount) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -func (m LdapBindAccount) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m LdapBindAccount) MarshalJSON() (buff []byte, e error) { - type MarshalTypeLdapBindAccount LdapBindAccount - s := struct { - DiscriminatorParam string `json:"connectorType"` - MarshalTypeLdapBindAccount - }{ - "LDAPBIND", - (MarshalTypeLdapBindAccount)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_idmap.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_idmap.go deleted file mode 100644 index c405e35081..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_idmap.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LdapIdmap Mount Target details about the LDAP ID Map configuration. -type LdapIdmap struct { - - // All LDAP searches are recursive starting at this Base Distinguished user name. - BaseDistinguishedUserName *string `mandatory:"true" json:"baseDistinguishedUserName"` - - // All LDAP searches are recursive starting at this Base Distinguished group name. - BaseDistinguishedGroupName *string `mandatory:"true" json:"baseDistinguishedGroupName"` - - // Schema type of LDAP account. - SchemaType LdapIdmapSchemaTypeEnum `mandatory:"false" json:"schemaType,omitempty"` - - // Integer for how often the mount target should recheck LDAP for updates. - CacheRefreshIntervalSeconds *int `mandatory:"false" json:"cacheRefreshIntervalSeconds"` - - // Integer for how long cached entries may be used. - CacheLifetimeSeconds *int `mandatory:"false" json:"cacheLifetimeSeconds"` - - // Integer for how long to cache if idmap information is missing. - NegativeCacheLifetimeSeconds *int `mandatory:"false" json:"negativeCacheLifetimeSeconds"` - - // OCID of the first LDAP Account - OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` - - // OCID of the second LDAP Account - OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` -} - -func (m LdapIdmap) String() string { - return common.PointerString(m) -} - -// LdapIdmapSchemaTypeEnum Enum with underlying type: string -type LdapIdmapSchemaTypeEnum string - -// Set of constants representing the allowable values for LdapIdmapSchemaTypeEnum -const ( - LdapIdmapSchemaTypeRfc2307 LdapIdmapSchemaTypeEnum = "RFC2307" -) - -var mappingLdapIdmapSchemaType = map[string]LdapIdmapSchemaTypeEnum{ - "RFC2307": LdapIdmapSchemaTypeRfc2307, -} - -// GetLdapIdmapSchemaTypeEnumValues Enumerates the set of values for LdapIdmapSchemaTypeEnum -func GetLdapIdmapSchemaTypeEnumValues() []LdapIdmapSchemaTypeEnum { - values := make([]LdapIdmapSchemaTypeEnum, 0) - for _, v := range mappingLdapIdmapSchemaType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_export_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_export_sets_request_response.go deleted file mode 100644 index c6ba2661b9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_export_sets_request_response.go +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListExportSetsRequest wrapper for the ListExportSets operation -type ListExportSetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListExportSetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can provide either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by display name, results are - // shown in ascending order. - SortBy ListExportSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListExportSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListExportSetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListExportSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListExportSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListExportSetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListExportSetsResponse wrapper for the ListExportSets operation -type ListExportSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ExportSetSummary instances - Items []ExportSetSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListExportSetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListExportSetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListExportSetsLifecycleStateEnum Enum with underlying type: string -type ListExportSetsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListExportSetsLifecycleStateEnum -const ( - ListExportSetsLifecycleStateCreating ListExportSetsLifecycleStateEnum = "CREATING" - ListExportSetsLifecycleStateActive ListExportSetsLifecycleStateEnum = "ACTIVE" - ListExportSetsLifecycleStateDeleting ListExportSetsLifecycleStateEnum = "DELETING" - ListExportSetsLifecycleStateDeleted ListExportSetsLifecycleStateEnum = "DELETED" - ListExportSetsLifecycleStateFailed ListExportSetsLifecycleStateEnum = "FAILED" -) - -var mappingListExportSetsLifecycleState = map[string]ListExportSetsLifecycleStateEnum{ - "CREATING": ListExportSetsLifecycleStateCreating, - "ACTIVE": ListExportSetsLifecycleStateActive, - "DELETING": ListExportSetsLifecycleStateDeleting, - "DELETED": ListExportSetsLifecycleStateDeleted, - "FAILED": ListExportSetsLifecycleStateFailed, -} - -// GetListExportSetsLifecycleStateEnumValues Enumerates the set of values for ListExportSetsLifecycleStateEnum -func GetListExportSetsLifecycleStateEnumValues() []ListExportSetsLifecycleStateEnum { - values := make([]ListExportSetsLifecycleStateEnum, 0) - for _, v := range mappingListExportSetsLifecycleState { - values = append(values, v) - } - return values -} - -// ListExportSetsSortByEnum Enum with underlying type: string -type ListExportSetsSortByEnum string - -// Set of constants representing the allowable values for ListExportSetsSortByEnum -const ( - ListExportSetsSortByTimecreated ListExportSetsSortByEnum = "TIMECREATED" - ListExportSetsSortByDisplayname ListExportSetsSortByEnum = "DISPLAYNAME" -) - -var mappingListExportSetsSortBy = map[string]ListExportSetsSortByEnum{ - "TIMECREATED": ListExportSetsSortByTimecreated, - "DISPLAYNAME": ListExportSetsSortByDisplayname, -} - -// GetListExportSetsSortByEnumValues Enumerates the set of values for ListExportSetsSortByEnum -func GetListExportSetsSortByEnumValues() []ListExportSetsSortByEnum { - values := make([]ListExportSetsSortByEnum, 0) - for _, v := range mappingListExportSetsSortBy { - values = append(values, v) - } - return values -} - -// ListExportSetsSortOrderEnum Enum with underlying type: string -type ListExportSetsSortOrderEnum string - -// Set of constants representing the allowable values for ListExportSetsSortOrderEnum -const ( - ListExportSetsSortOrderAsc ListExportSetsSortOrderEnum = "ASC" - ListExportSetsSortOrderDesc ListExportSetsSortOrderEnum = "DESC" -) - -var mappingListExportSetsSortOrder = map[string]ListExportSetsSortOrderEnum{ - "ASC": ListExportSetsSortOrderAsc, - "DESC": ListExportSetsSortOrderDesc, -} - -// GetListExportSetsSortOrderEnumValues Enumerates the set of values for ListExportSetsSortOrderEnum -func GetListExportSetsSortOrderEnumValues() []ListExportSetsSortOrderEnum { - values := make([]ListExportSetsSortOrderEnum, 0) - for _, v := range mappingListExportSetsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_exports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_exports_request_response.go deleted file mode 100644 index 8377e07c11..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_exports_request_response.go +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListExportsRequest wrapper for the ListExports operation -type ListExportsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. - ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. - FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListExportsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can provide either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by path, results are - // shown in ascending alphanumeric order. - SortBy ListExportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListExportsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListExportsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListExportsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListExportsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListExportsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListExportsResponse wrapper for the ListExports operation -type ListExportsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ExportSummary instances - Items []ExportSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListExportsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListExportsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListExportsLifecycleStateEnum Enum with underlying type: string -type ListExportsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListExportsLifecycleStateEnum -const ( - ListExportsLifecycleStateCreating ListExportsLifecycleStateEnum = "CREATING" - ListExportsLifecycleStateActive ListExportsLifecycleStateEnum = "ACTIVE" - ListExportsLifecycleStateDeleting ListExportsLifecycleStateEnum = "DELETING" - ListExportsLifecycleStateDeleted ListExportsLifecycleStateEnum = "DELETED" - ListExportsLifecycleStateFailed ListExportsLifecycleStateEnum = "FAILED" -) - -var mappingListExportsLifecycleState = map[string]ListExportsLifecycleStateEnum{ - "CREATING": ListExportsLifecycleStateCreating, - "ACTIVE": ListExportsLifecycleStateActive, - "DELETING": ListExportsLifecycleStateDeleting, - "DELETED": ListExportsLifecycleStateDeleted, - "FAILED": ListExportsLifecycleStateFailed, -} - -// GetListExportsLifecycleStateEnumValues Enumerates the set of values for ListExportsLifecycleStateEnum -func GetListExportsLifecycleStateEnumValues() []ListExportsLifecycleStateEnum { - values := make([]ListExportsLifecycleStateEnum, 0) - for _, v := range mappingListExportsLifecycleState { - values = append(values, v) - } - return values -} - -// ListExportsSortByEnum Enum with underlying type: string -type ListExportsSortByEnum string - -// Set of constants representing the allowable values for ListExportsSortByEnum -const ( - ListExportsSortByTimecreated ListExportsSortByEnum = "TIMECREATED" - ListExportsSortByPath ListExportsSortByEnum = "PATH" -) - -var mappingListExportsSortBy = map[string]ListExportsSortByEnum{ - "TIMECREATED": ListExportsSortByTimecreated, - "PATH": ListExportsSortByPath, -} - -// GetListExportsSortByEnumValues Enumerates the set of values for ListExportsSortByEnum -func GetListExportsSortByEnumValues() []ListExportsSortByEnum { - values := make([]ListExportsSortByEnum, 0) - for _, v := range mappingListExportsSortBy { - values = append(values, v) - } - return values -} - -// ListExportsSortOrderEnum Enum with underlying type: string -type ListExportsSortOrderEnum string - -// Set of constants representing the allowable values for ListExportsSortOrderEnum -const ( - ListExportsSortOrderAsc ListExportsSortOrderEnum = "ASC" - ListExportsSortOrderDesc ListExportsSortOrderEnum = "DESC" -) - -var mappingListExportsSortOrder = map[string]ListExportsSortOrderEnum{ - "ASC": ListExportsSortOrderAsc, - "DESC": ListExportsSortOrderDesc, -} - -// GetListExportsSortOrderEnumValues Enumerates the set of values for ListExportsSortOrderEnum -func GetListExportsSortOrderEnumValues() []ListExportsSortOrderEnum { - values := make([]ListExportsSortOrderEnum, 0) - for _, v := range mappingListExportsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_file_systems_request_response.go deleted file mode 100644 index 07d940e42e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_file_systems_request_response.go +++ /dev/null @@ -1,199 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListFileSystemsRequest wrapper for the ListFileSystems operation -type ListFileSystemsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListFileSystemsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - SourceSnapshotId *string `mandatory:"false" contributesTo:"query" name:"sourceSnapshotId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system that contains the source snapshot of a cloned file system. See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - ParentFileSystemId *string `mandatory:"false" contributesTo:"query" name:"parentFileSystemId"` - - // The field to sort by. You can provide either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by display name, results are - // shown in ascending order. - SortBy ListFileSystemsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListFileSystemsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListFileSystemsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListFileSystemsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListFileSystemsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListFileSystemsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListFileSystemsResponse wrapper for the ListFileSystems operation -type ListFileSystemsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []FileSystemSummary instances - Items []FileSystemSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListFileSystemsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListFileSystemsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListFileSystemsLifecycleStateEnum Enum with underlying type: string -type ListFileSystemsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListFileSystemsLifecycleStateEnum -const ( - ListFileSystemsLifecycleStateCreating ListFileSystemsLifecycleStateEnum = "CREATING" - ListFileSystemsLifecycleStateActive ListFileSystemsLifecycleStateEnum = "ACTIVE" - ListFileSystemsLifecycleStateDeleting ListFileSystemsLifecycleStateEnum = "DELETING" - ListFileSystemsLifecycleStateDeleted ListFileSystemsLifecycleStateEnum = "DELETED" - ListFileSystemsLifecycleStateFailed ListFileSystemsLifecycleStateEnum = "FAILED" -) - -var mappingListFileSystemsLifecycleState = map[string]ListFileSystemsLifecycleStateEnum{ - "CREATING": ListFileSystemsLifecycleStateCreating, - "ACTIVE": ListFileSystemsLifecycleStateActive, - "DELETING": ListFileSystemsLifecycleStateDeleting, - "DELETED": ListFileSystemsLifecycleStateDeleted, - "FAILED": ListFileSystemsLifecycleStateFailed, -} - -// GetListFileSystemsLifecycleStateEnumValues Enumerates the set of values for ListFileSystemsLifecycleStateEnum -func GetListFileSystemsLifecycleStateEnumValues() []ListFileSystemsLifecycleStateEnum { - values := make([]ListFileSystemsLifecycleStateEnum, 0) - for _, v := range mappingListFileSystemsLifecycleState { - values = append(values, v) - } - return values -} - -// ListFileSystemsSortByEnum Enum with underlying type: string -type ListFileSystemsSortByEnum string - -// Set of constants representing the allowable values for ListFileSystemsSortByEnum -const ( - ListFileSystemsSortByTimecreated ListFileSystemsSortByEnum = "TIMECREATED" - ListFileSystemsSortByDisplayname ListFileSystemsSortByEnum = "DISPLAYNAME" -) - -var mappingListFileSystemsSortBy = map[string]ListFileSystemsSortByEnum{ - "TIMECREATED": ListFileSystemsSortByTimecreated, - "DISPLAYNAME": ListFileSystemsSortByDisplayname, -} - -// GetListFileSystemsSortByEnumValues Enumerates the set of values for ListFileSystemsSortByEnum -func GetListFileSystemsSortByEnumValues() []ListFileSystemsSortByEnum { - values := make([]ListFileSystemsSortByEnum, 0) - for _, v := range mappingListFileSystemsSortBy { - values = append(values, v) - } - return values -} - -// ListFileSystemsSortOrderEnum Enum with underlying type: string -type ListFileSystemsSortOrderEnum string - -// Set of constants representing the allowable values for ListFileSystemsSortOrderEnum -const ( - ListFileSystemsSortOrderAsc ListFileSystemsSortOrderEnum = "ASC" - ListFileSystemsSortOrderDesc ListFileSystemsSortOrderEnum = "DESC" -) - -var mappingListFileSystemsSortOrder = map[string]ListFileSystemsSortOrderEnum{ - "ASC": ListFileSystemsSortOrderAsc, - "DESC": ListFileSystemsSortOrderDesc, -} - -// GetListFileSystemsSortOrderEnumValues Enumerates the set of values for ListFileSystemsSortOrderEnum -func GetListFileSystemsSortOrderEnumValues() []ListFileSystemsSortOrderEnum { - values := make([]ListFileSystemsSortOrderEnum, 0) - for _, v := range mappingListFileSystemsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_mount_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_mount_targets_request_response.go deleted file mode 100644 index 5cbeefec64..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_mount_targets_request_response.go +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListMountTargetsRequest wrapper for the ListMountTargets operation -type ListMountTargetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. - ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListMountTargetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can choose either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by display name, results are - // shown in ascending order. - SortBy ListMountTargetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListMountTargetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListMountTargetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListMountTargetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListMountTargetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListMountTargetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListMountTargetsResponse wrapper for the ListMountTargets operation -type ListMountTargetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []MountTargetSummary instances - Items []MountTargetSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListMountTargetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListMountTargetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListMountTargetsLifecycleStateEnum Enum with underlying type: string -type ListMountTargetsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListMountTargetsLifecycleStateEnum -const ( - ListMountTargetsLifecycleStateCreating ListMountTargetsLifecycleStateEnum = "CREATING" - ListMountTargetsLifecycleStateActive ListMountTargetsLifecycleStateEnum = "ACTIVE" - ListMountTargetsLifecycleStateDeleting ListMountTargetsLifecycleStateEnum = "DELETING" - ListMountTargetsLifecycleStateDeleted ListMountTargetsLifecycleStateEnum = "DELETED" - ListMountTargetsLifecycleStateFailed ListMountTargetsLifecycleStateEnum = "FAILED" -) - -var mappingListMountTargetsLifecycleState = map[string]ListMountTargetsLifecycleStateEnum{ - "CREATING": ListMountTargetsLifecycleStateCreating, - "ACTIVE": ListMountTargetsLifecycleStateActive, - "DELETING": ListMountTargetsLifecycleStateDeleting, - "DELETED": ListMountTargetsLifecycleStateDeleted, - "FAILED": ListMountTargetsLifecycleStateFailed, -} - -// GetListMountTargetsLifecycleStateEnumValues Enumerates the set of values for ListMountTargetsLifecycleStateEnum -func GetListMountTargetsLifecycleStateEnumValues() []ListMountTargetsLifecycleStateEnum { - values := make([]ListMountTargetsLifecycleStateEnum, 0) - for _, v := range mappingListMountTargetsLifecycleState { - values = append(values, v) - } - return values -} - -// ListMountTargetsSortByEnum Enum with underlying type: string -type ListMountTargetsSortByEnum string - -// Set of constants representing the allowable values for ListMountTargetsSortByEnum -const ( - ListMountTargetsSortByTimecreated ListMountTargetsSortByEnum = "TIMECREATED" - ListMountTargetsSortByDisplayname ListMountTargetsSortByEnum = "DISPLAYNAME" -) - -var mappingListMountTargetsSortBy = map[string]ListMountTargetsSortByEnum{ - "TIMECREATED": ListMountTargetsSortByTimecreated, - "DISPLAYNAME": ListMountTargetsSortByDisplayname, -} - -// GetListMountTargetsSortByEnumValues Enumerates the set of values for ListMountTargetsSortByEnum -func GetListMountTargetsSortByEnumValues() []ListMountTargetsSortByEnum { - values := make([]ListMountTargetsSortByEnum, 0) - for _, v := range mappingListMountTargetsSortBy { - values = append(values, v) - } - return values -} - -// ListMountTargetsSortOrderEnum Enum with underlying type: string -type ListMountTargetsSortOrderEnum string - -// Set of constants representing the allowable values for ListMountTargetsSortOrderEnum -const ( - ListMountTargetsSortOrderAsc ListMountTargetsSortOrderEnum = "ASC" - ListMountTargetsSortOrderDesc ListMountTargetsSortOrderEnum = "DESC" -) - -var mappingListMountTargetsSortOrder = map[string]ListMountTargetsSortOrderEnum{ - "ASC": ListMountTargetsSortOrderAsc, - "DESC": ListMountTargetsSortOrderDesc, -} - -// GetListMountTargetsSortOrderEnumValues Enumerates the set of values for ListMountTargetsSortOrderEnum -func GetListMountTargetsSortOrderEnumValues() []ListMountTargetsSortOrderEnum { - values := make([]ListMountTargetsSortOrderEnum, 0) - for _, v := range mappingListMountTargetsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_outbound_connectors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_outbound_connectors_request_response.go deleted file mode 100644 index efecd0dc01..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_outbound_connectors_request_response.go +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListOutboundConnectorsRequest wrapper for the ListOutboundConnectors operation -type ListOutboundConnectorsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListOutboundConnectorsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can choose either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by display name, results are - // shown in ascending order. - SortBy ListOutboundConnectorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListOutboundConnectorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListOutboundConnectorsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListOutboundConnectorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListOutboundConnectorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListOutboundConnectorsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListOutboundConnectorsResponse wrapper for the ListOutboundConnectors operation -type ListOutboundConnectorsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []OutboundConnectorSummary instances - Items []OutboundConnectorSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListOutboundConnectorsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListOutboundConnectorsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListOutboundConnectorsLifecycleStateEnum Enum with underlying type: string -type ListOutboundConnectorsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListOutboundConnectorsLifecycleStateEnum -const ( - ListOutboundConnectorsLifecycleStateCreating ListOutboundConnectorsLifecycleStateEnum = "CREATING" - ListOutboundConnectorsLifecycleStateActive ListOutboundConnectorsLifecycleStateEnum = "ACTIVE" - ListOutboundConnectorsLifecycleStateDeleting ListOutboundConnectorsLifecycleStateEnum = "DELETING" - ListOutboundConnectorsLifecycleStateDeleted ListOutboundConnectorsLifecycleStateEnum = "DELETED" - ListOutboundConnectorsLifecycleStateFailed ListOutboundConnectorsLifecycleStateEnum = "FAILED" -) - -var mappingListOutboundConnectorsLifecycleState = map[string]ListOutboundConnectorsLifecycleStateEnum{ - "CREATING": ListOutboundConnectorsLifecycleStateCreating, - "ACTIVE": ListOutboundConnectorsLifecycleStateActive, - "DELETING": ListOutboundConnectorsLifecycleStateDeleting, - "DELETED": ListOutboundConnectorsLifecycleStateDeleted, - "FAILED": ListOutboundConnectorsLifecycleStateFailed, -} - -// GetListOutboundConnectorsLifecycleStateEnumValues Enumerates the set of values for ListOutboundConnectorsLifecycleStateEnum -func GetListOutboundConnectorsLifecycleStateEnumValues() []ListOutboundConnectorsLifecycleStateEnum { - values := make([]ListOutboundConnectorsLifecycleStateEnum, 0) - for _, v := range mappingListOutboundConnectorsLifecycleState { - values = append(values, v) - } - return values -} - -// ListOutboundConnectorsSortByEnum Enum with underlying type: string -type ListOutboundConnectorsSortByEnum string - -// Set of constants representing the allowable values for ListOutboundConnectorsSortByEnum -const ( - ListOutboundConnectorsSortByTimecreated ListOutboundConnectorsSortByEnum = "TIMECREATED" - ListOutboundConnectorsSortByDisplayname ListOutboundConnectorsSortByEnum = "DISPLAYNAME" -) - -var mappingListOutboundConnectorsSortBy = map[string]ListOutboundConnectorsSortByEnum{ - "TIMECREATED": ListOutboundConnectorsSortByTimecreated, - "DISPLAYNAME": ListOutboundConnectorsSortByDisplayname, -} - -// GetListOutboundConnectorsSortByEnumValues Enumerates the set of values for ListOutboundConnectorsSortByEnum -func GetListOutboundConnectorsSortByEnumValues() []ListOutboundConnectorsSortByEnum { - values := make([]ListOutboundConnectorsSortByEnum, 0) - for _, v := range mappingListOutboundConnectorsSortBy { - values = append(values, v) - } - return values -} - -// ListOutboundConnectorsSortOrderEnum Enum with underlying type: string -type ListOutboundConnectorsSortOrderEnum string - -// Set of constants representing the allowable values for ListOutboundConnectorsSortOrderEnum -const ( - ListOutboundConnectorsSortOrderAsc ListOutboundConnectorsSortOrderEnum = "ASC" - ListOutboundConnectorsSortOrderDesc ListOutboundConnectorsSortOrderEnum = "DESC" -) - -var mappingListOutboundConnectorsSortOrder = map[string]ListOutboundConnectorsSortOrderEnum{ - "ASC": ListOutboundConnectorsSortOrderAsc, - "DESC": ListOutboundConnectorsSortOrderDesc, -} - -// GetListOutboundConnectorsSortOrderEnumValues Enumerates the set of values for ListOutboundConnectorsSortOrderEnum -func GetListOutboundConnectorsSortOrderEnumValues() []ListOutboundConnectorsSortOrderEnum { - values := make([]ListOutboundConnectorsSortOrderEnum, 0) - for _, v := range mappingListOutboundConnectorsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replication_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replication_targets_request_response.go deleted file mode 100644 index 67f5016559..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replication_targets_request_response.go +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListReplicationTargetsRequest wrapper for the ListReplicationTargets operation -type ListReplicationTargetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListReplicationTargetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can choose either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by display name, results are - // shown in ascending order. - SortBy ListReplicationTargetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListReplicationTargetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListReplicationTargetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListReplicationTargetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListReplicationTargetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListReplicationTargetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListReplicationTargetsResponse wrapper for the ListReplicationTargets operation -type ListReplicationTargetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ReplicationTargetSummary instances - Items []ReplicationTargetSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListReplicationTargetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListReplicationTargetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListReplicationTargetsLifecycleStateEnum Enum with underlying type: string -type ListReplicationTargetsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListReplicationTargetsLifecycleStateEnum -const ( - ListReplicationTargetsLifecycleStateCreating ListReplicationTargetsLifecycleStateEnum = "CREATING" - ListReplicationTargetsLifecycleStateActive ListReplicationTargetsLifecycleStateEnum = "ACTIVE" - ListReplicationTargetsLifecycleStateDeleting ListReplicationTargetsLifecycleStateEnum = "DELETING" - ListReplicationTargetsLifecycleStateDeleted ListReplicationTargetsLifecycleStateEnum = "DELETED" - ListReplicationTargetsLifecycleStateFailed ListReplicationTargetsLifecycleStateEnum = "FAILED" -) - -var mappingListReplicationTargetsLifecycleState = map[string]ListReplicationTargetsLifecycleStateEnum{ - "CREATING": ListReplicationTargetsLifecycleStateCreating, - "ACTIVE": ListReplicationTargetsLifecycleStateActive, - "DELETING": ListReplicationTargetsLifecycleStateDeleting, - "DELETED": ListReplicationTargetsLifecycleStateDeleted, - "FAILED": ListReplicationTargetsLifecycleStateFailed, -} - -// GetListReplicationTargetsLifecycleStateEnumValues Enumerates the set of values for ListReplicationTargetsLifecycleStateEnum -func GetListReplicationTargetsLifecycleStateEnumValues() []ListReplicationTargetsLifecycleStateEnum { - values := make([]ListReplicationTargetsLifecycleStateEnum, 0) - for _, v := range mappingListReplicationTargetsLifecycleState { - values = append(values, v) - } - return values -} - -// ListReplicationTargetsSortByEnum Enum with underlying type: string -type ListReplicationTargetsSortByEnum string - -// Set of constants representing the allowable values for ListReplicationTargetsSortByEnum -const ( - ListReplicationTargetsSortByTimecreated ListReplicationTargetsSortByEnum = "timeCreated" - ListReplicationTargetsSortByDisplayname ListReplicationTargetsSortByEnum = "displayName" -) - -var mappingListReplicationTargetsSortBy = map[string]ListReplicationTargetsSortByEnum{ - "timeCreated": ListReplicationTargetsSortByTimecreated, - "displayName": ListReplicationTargetsSortByDisplayname, -} - -// GetListReplicationTargetsSortByEnumValues Enumerates the set of values for ListReplicationTargetsSortByEnum -func GetListReplicationTargetsSortByEnumValues() []ListReplicationTargetsSortByEnum { - values := make([]ListReplicationTargetsSortByEnum, 0) - for _, v := range mappingListReplicationTargetsSortBy { - values = append(values, v) - } - return values -} - -// ListReplicationTargetsSortOrderEnum Enum with underlying type: string -type ListReplicationTargetsSortOrderEnum string - -// Set of constants representing the allowable values for ListReplicationTargetsSortOrderEnum -const ( - ListReplicationTargetsSortOrderAsc ListReplicationTargetsSortOrderEnum = "ASC" - ListReplicationTargetsSortOrderDesc ListReplicationTargetsSortOrderEnum = "DESC" -) - -var mappingListReplicationTargetsSortOrder = map[string]ListReplicationTargetsSortOrderEnum{ - "ASC": ListReplicationTargetsSortOrderAsc, - "DESC": ListReplicationTargetsSortOrderDesc, -} - -// GetListReplicationTargetsSortOrderEnumValues Enumerates the set of values for ListReplicationTargetsSortOrderEnum -func GetListReplicationTargetsSortOrderEnumValues() []ListReplicationTargetsSortOrderEnum { - values := make([]ListReplicationTargetsSortOrderEnum, 0) - for _, v := range mappingListReplicationTargetsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replications_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replications_request_response.go deleted file mode 100644 index 8f1a04e934..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_replications_request_response.go +++ /dev/null @@ -1,196 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListReplicationsRequest wrapper for the ListReplications operation -type ListReplicationsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The name of the availability domain. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source file system. - FileSystemId *string `mandatory:"true" contributesTo:"query" name:"fileSystemId"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 1000 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `500` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListReplicationsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Example: `My resource` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can choose either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by display name, results are - // shown in ascending order. - SortBy ListReplicationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListReplicationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListReplicationsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListReplicationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListReplicationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListReplicationsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListReplicationsResponse wrapper for the ListReplications operation -type ListReplicationsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []ReplicationSummary instances - Items []ReplicationSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListReplicationsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListReplicationsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListReplicationsLifecycleStateEnum Enum with underlying type: string -type ListReplicationsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListReplicationsLifecycleStateEnum -const ( - ListReplicationsLifecycleStateCreating ListReplicationsLifecycleStateEnum = "CREATING" - ListReplicationsLifecycleStateActive ListReplicationsLifecycleStateEnum = "ACTIVE" - ListReplicationsLifecycleStateDeleting ListReplicationsLifecycleStateEnum = "DELETING" - ListReplicationsLifecycleStateDeleted ListReplicationsLifecycleStateEnum = "DELETED" - ListReplicationsLifecycleStateFailed ListReplicationsLifecycleStateEnum = "FAILED" -) - -var mappingListReplicationsLifecycleState = map[string]ListReplicationsLifecycleStateEnum{ - "CREATING": ListReplicationsLifecycleStateCreating, - "ACTIVE": ListReplicationsLifecycleStateActive, - "DELETING": ListReplicationsLifecycleStateDeleting, - "DELETED": ListReplicationsLifecycleStateDeleted, - "FAILED": ListReplicationsLifecycleStateFailed, -} - -// GetListReplicationsLifecycleStateEnumValues Enumerates the set of values for ListReplicationsLifecycleStateEnum -func GetListReplicationsLifecycleStateEnumValues() []ListReplicationsLifecycleStateEnum { - values := make([]ListReplicationsLifecycleStateEnum, 0) - for _, v := range mappingListReplicationsLifecycleState { - values = append(values, v) - } - return values -} - -// ListReplicationsSortByEnum Enum with underlying type: string -type ListReplicationsSortByEnum string - -// Set of constants representing the allowable values for ListReplicationsSortByEnum -const ( - ListReplicationsSortByTimecreated ListReplicationsSortByEnum = "timeCreated" - ListReplicationsSortByDisplayname ListReplicationsSortByEnum = "displayName" -) - -var mappingListReplicationsSortBy = map[string]ListReplicationsSortByEnum{ - "timeCreated": ListReplicationsSortByTimecreated, - "displayName": ListReplicationsSortByDisplayname, -} - -// GetListReplicationsSortByEnumValues Enumerates the set of values for ListReplicationsSortByEnum -func GetListReplicationsSortByEnumValues() []ListReplicationsSortByEnum { - values := make([]ListReplicationsSortByEnum, 0) - for _, v := range mappingListReplicationsSortBy { - values = append(values, v) - } - return values -} - -// ListReplicationsSortOrderEnum Enum with underlying type: string -type ListReplicationsSortOrderEnum string - -// Set of constants representing the allowable values for ListReplicationsSortOrderEnum -const ( - ListReplicationsSortOrderAsc ListReplicationsSortOrderEnum = "ASC" - ListReplicationsSortOrderDesc ListReplicationsSortOrderEnum = "DESC" -) - -var mappingListReplicationsSortOrder = map[string]ListReplicationsSortOrderEnum{ - "ASC": ListReplicationsSortOrderAsc, - "DESC": ListReplicationsSortOrderDesc, -} - -// GetListReplicationsSortOrderEnumValues Enumerates the set of values for ListReplicationsSortOrderEnum -func GetListReplicationsSortOrderEnumValues() []ListReplicationsSortOrderEnum { - values := make([]ListReplicationsSortOrderEnum, 0) - for _, v := range mappingListReplicationsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_snapshots_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_snapshots_request_response.go deleted file mode 100644 index 807a906e47..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/list_snapshots_request_response.go +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListSnapshotsRequest wrapper for the ListSnapshots operation -type ListSnapshotsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. - FileSystemId *string `mandatory:"true" contributesTo:"query" name:"fileSystemId"` - - // For list pagination. The maximum number of results per page, - // or items to return in a paginated "List" call. - // 1 is the minimum, 100 is the maximum. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `100` - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response - // header from the previous "List" call. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Filter results by the specified lifecycle state. Must be a valid - // state for the resource type. - LifecycleState ListSnapshotsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for - // the resouce type. - Id *string `mandatory:"false" contributesTo:"query" name:"id"` - - // The field to sort by. You can provide either value, but not both. - // By default, when you sort by time created, results are shown - // in descending order. When you sort by name, results are - // shown in alphabetical order. - SortBy ListSnapshotsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either 'asc' or 'desc', where 'asc' is - // ascending and 'desc' is descending. The default order is 'desc' - // except for numeric values. - SortOrder ListSnapshotsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListSnapshotsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListSnapshotsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListSnapshotsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListSnapshotsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListSnapshotsResponse wrapper for the ListSnapshots operation -type ListSnapshotsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []SnapshotSummary instances - Items []SnapshotSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, - // additional pages of results remain. - // For important details about how pagination works, - // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If - // you need to contact Oracle about a particular request, - // please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListSnapshotsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListSnapshotsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListSnapshotsLifecycleStateEnum Enum with underlying type: string -type ListSnapshotsLifecycleStateEnum string - -// Set of constants representing the allowable values for ListSnapshotsLifecycleStateEnum -const ( - ListSnapshotsLifecycleStateCreating ListSnapshotsLifecycleStateEnum = "CREATING" - ListSnapshotsLifecycleStateActive ListSnapshotsLifecycleStateEnum = "ACTIVE" - ListSnapshotsLifecycleStateDeleting ListSnapshotsLifecycleStateEnum = "DELETING" - ListSnapshotsLifecycleStateDeleted ListSnapshotsLifecycleStateEnum = "DELETED" - ListSnapshotsLifecycleStateFailed ListSnapshotsLifecycleStateEnum = "FAILED" -) - -var mappingListSnapshotsLifecycleState = map[string]ListSnapshotsLifecycleStateEnum{ - "CREATING": ListSnapshotsLifecycleStateCreating, - "ACTIVE": ListSnapshotsLifecycleStateActive, - "DELETING": ListSnapshotsLifecycleStateDeleting, - "DELETED": ListSnapshotsLifecycleStateDeleted, - "FAILED": ListSnapshotsLifecycleStateFailed, -} - -// GetListSnapshotsLifecycleStateEnumValues Enumerates the set of values for ListSnapshotsLifecycleStateEnum -func GetListSnapshotsLifecycleStateEnumValues() []ListSnapshotsLifecycleStateEnum { - values := make([]ListSnapshotsLifecycleStateEnum, 0) - for _, v := range mappingListSnapshotsLifecycleState { - values = append(values, v) - } - return values -} - -// ListSnapshotsSortByEnum Enum with underlying type: string -type ListSnapshotsSortByEnum string - -// Set of constants representing the allowable values for ListSnapshotsSortByEnum -const ( - ListSnapshotsSortByTimecreated ListSnapshotsSortByEnum = "TIMECREATED" - ListSnapshotsSortByName ListSnapshotsSortByEnum = "NAME" -) - -var mappingListSnapshotsSortBy = map[string]ListSnapshotsSortByEnum{ - "TIMECREATED": ListSnapshotsSortByTimecreated, - "NAME": ListSnapshotsSortByName, -} - -// GetListSnapshotsSortByEnumValues Enumerates the set of values for ListSnapshotsSortByEnum -func GetListSnapshotsSortByEnumValues() []ListSnapshotsSortByEnum { - values := make([]ListSnapshotsSortByEnum, 0) - for _, v := range mappingListSnapshotsSortBy { - values = append(values, v) - } - return values -} - -// ListSnapshotsSortOrderEnum Enum with underlying type: string -type ListSnapshotsSortOrderEnum string - -// Set of constants representing the allowable values for ListSnapshotsSortOrderEnum -const ( - ListSnapshotsSortOrderAsc ListSnapshotsSortOrderEnum = "ASC" - ListSnapshotsSortOrderDesc ListSnapshotsSortOrderEnum = "DESC" -) - -var mappingListSnapshotsSortOrder = map[string]ListSnapshotsSortOrderEnum{ - "ASC": ListSnapshotsSortOrderAsc, - "DESC": ListSnapshotsSortOrderDesc, -} - -// GetListSnapshotsSortOrderEnumValues Enumerates the set of values for ListSnapshotsSortOrderEnum -func GetListSnapshotsSortOrderEnumValues() []ListSnapshotsSortOrderEnum { - values := make([]ListSnapshotsSortOrderEnum, 0) - for _, v := range mappingListSnapshotsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_details.go deleted file mode 100644 index 6b051ab051..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ModifyRootdirAttributesDetails Details for changing the ownership of file system root directory. -type ModifyRootdirAttributesDetails struct { - - // The user id for root directory ownership. However if not specified then it does not change. - Uid *int `mandatory:"false" json:"uid"` - - // The group id for root directory ownership. However if not specified then it does not change. - Gid *int `mandatory:"false" json:"gid"` - - // Only standard mode bits are supported like 644, 755 etc. However if not specified then it does not change. - Mode *int `mandatory:"false" json:"mode"` -} - -func (m ModifyRootdirAttributesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target.go deleted file mode 100644 index 1e6dca9935..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target.go +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MountTarget Provides access to a collection of file systems through one or more VNICs on a -// specified subnet. The set of file systems is controlled through the -// referenced export set. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type MountTarget struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the mount target. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. - Id *string `mandatory:"true" json:"id"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"` - - // The current state of the mount target. - LifecycleState MountTargetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCIDs of the private IP addresses associated with this mount target. - PrivateIpIds []string `mandatory:"true" json:"privateIpIds"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the mount target is in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the mount target was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The availability domain the mount target is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated export set. Controls what file - // systems will be exported through Network File System (NFS) protocol on this - // mount target. - ExportSetId *string `mandatory:"false" json:"exportSetId"` - - // Describes whether Idmapping is turned on or off. If on, describes method used to perform ID Mapping - IdmapType MountTargetIdmapTypeEnum `mandatory:"false" json:"idmapType,omitempty"` - - LdapIdmap *LdapIdmap `mandatory:"false" json:"ldapIdmap"` - - // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. - // A maximum of 5 is allowed. - // Setting this to an empty array after the list is created removes the mount target from all NSGs. - // For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). - NsgIds []string `mandatory:"false" json:"nsgIds"` - - Kerberos *Kerberos `mandatory:"false" json:"kerberos"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m MountTarget) String() string { - return common.PointerString(m) -} - -// MountTargetLifecycleStateEnum Enum with underlying type: string -type MountTargetLifecycleStateEnum string - -// Set of constants representing the allowable values for MountTargetLifecycleStateEnum -const ( - MountTargetLifecycleStateCreating MountTargetLifecycleStateEnum = "CREATING" - MountTargetLifecycleStateActive MountTargetLifecycleStateEnum = "ACTIVE" - MountTargetLifecycleStateDeleting MountTargetLifecycleStateEnum = "DELETING" - MountTargetLifecycleStateDeleted MountTargetLifecycleStateEnum = "DELETED" - MountTargetLifecycleStateFailed MountTargetLifecycleStateEnum = "FAILED" -) - -var mappingMountTargetLifecycleState = map[string]MountTargetLifecycleStateEnum{ - "CREATING": MountTargetLifecycleStateCreating, - "ACTIVE": MountTargetLifecycleStateActive, - "DELETING": MountTargetLifecycleStateDeleting, - "DELETED": MountTargetLifecycleStateDeleted, - "FAILED": MountTargetLifecycleStateFailed, -} - -// GetMountTargetLifecycleStateEnumValues Enumerates the set of values for MountTargetLifecycleStateEnum -func GetMountTargetLifecycleStateEnumValues() []MountTargetLifecycleStateEnum { - values := make([]MountTargetLifecycleStateEnum, 0) - for _, v := range mappingMountTargetLifecycleState { - values = append(values, v) - } - return values -} - -// MountTargetIdmapTypeEnum Enum with underlying type: string -type MountTargetIdmapTypeEnum string - -// Set of constants representing the allowable values for MountTargetIdmapTypeEnum -const ( - MountTargetIdmapTypeLdap MountTargetIdmapTypeEnum = "LDAP" - MountTargetIdmapTypeNone MountTargetIdmapTypeEnum = "NONE" -) - -var mappingMountTargetIdmapType = map[string]MountTargetIdmapTypeEnum{ - "LDAP": MountTargetIdmapTypeLdap, - "NONE": MountTargetIdmapTypeNone, -} - -// GetMountTargetIdmapTypeEnumValues Enumerates the set of values for MountTargetIdmapTypeEnum -func GetMountTargetIdmapTypeEnumValues() []MountTargetIdmapTypeEnum { - values := make([]MountTargetIdmapTypeEnum, 0) - for _, v := range mappingMountTargetIdmapType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target_summary.go deleted file mode 100644 index 33ab470a2d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/mount_target_summary.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MountTargetSummary Summary information for the specified mount target. -type MountTargetSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the mount target. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. - Id *string `mandatory:"true" json:"id"` - - // The current state of the mount target. - LifecycleState MountTargetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The OCIDs of the private IP addresses associated with this mount target. - PrivateIpIds []string `mandatory:"true" json:"privateIpIds"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the mount target is in. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The date and time the mount target was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The availability domain the mount target is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated export set. Controls what file - // systems will be exported using Network File System (NFS) protocol on - // this mount target. - ExportSetId *string `mandatory:"false" json:"exportSetId"` - - // Describes whether Idmapping is turned on or off. If on, describes method used to perform ID Mapping - IdmapType MountTargetIdmapTypeEnum `mandatory:"false" json:"idmapType,omitempty"` - - LdapIdmap *LdapIdmap `mandatory:"false" json:"ldapIdmap"` - - // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. - // A maximum of 5 is allowed. - // Setting this to an empty array after the list is created removes the mount target from all NSGs. - // For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). - NsgIds []string `mandatory:"false" json:"nsgIds"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m MountTargetSummary) String() string { - return common.PointerString(m) -} - -// MountTargetSummaryLifecycleStateEnum Enum with underlying type: string -type MountTargetSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for MountTargetSummaryLifecycleStateEnum -const ( - MountTargetSummaryLifecycleStateCreating MountTargetSummaryLifecycleStateEnum = "CREATING" - MountTargetSummaryLifecycleStateActive MountTargetSummaryLifecycleStateEnum = "ACTIVE" - MountTargetSummaryLifecycleStateDeleting MountTargetSummaryLifecycleStateEnum = "DELETING" - MountTargetSummaryLifecycleStateDeleted MountTargetSummaryLifecycleStateEnum = "DELETED" - MountTargetSummaryLifecycleStateFailed MountTargetSummaryLifecycleStateEnum = "FAILED" -) - -var mappingMountTargetSummaryLifecycleState = map[string]MountTargetSummaryLifecycleStateEnum{ - "CREATING": MountTargetSummaryLifecycleStateCreating, - "ACTIVE": MountTargetSummaryLifecycleStateActive, - "DELETING": MountTargetSummaryLifecycleStateDeleting, - "DELETED": MountTargetSummaryLifecycleStateDeleted, - "FAILED": MountTargetSummaryLifecycleStateFailed, -} - -// GetMountTargetSummaryLifecycleStateEnumValues Enumerates the set of values for MountTargetSummaryLifecycleStateEnum -func GetMountTargetSummaryLifecycleStateEnumValues() []MountTargetSummaryLifecycleStateEnum { - values := make([]MountTargetSummaryLifecycleStateEnum, 0) - for _, v := range mappingMountTargetSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector.go deleted file mode 100644 index f308012e5f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector.go +++ /dev/null @@ -1,203 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// OutboundConnector resource that includes all the information needed to connect, authenticate and gain authorization -// to perform the account's required functions. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type OutboundConnector interface { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. - GetCompartmentId() *string - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. - GetId() *string - - // The current state of this outbound connector. - GetLifecycleState() OutboundConnectorLifecycleStateEnum - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My outbound connector` - GetDisplayName() *string - - // The date and time the outbound connector was created - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - GetTimeCreated() *common.SDKTime - - // The availability domain the outbound connector is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - GetAvailabilityDomain() *string - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - GetFreeformTags() map[string]string - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - GetDefinedTags() map[string]map[string]interface{} -} - -type outboundconnector struct { - JsonData []byte - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Id *string `mandatory:"true" json:"id"` - LifecycleState OutboundConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - DisplayName *string `mandatory:"true" json:"displayName"` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - ConnectorType string `json:"connectorType"` -} - -// UnmarshalJSON unmarshals json -func (m *outboundconnector) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshaleroutboundconnector outboundconnector - s := struct { - Model Unmarshaleroutboundconnector - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.CompartmentId = s.Model.CompartmentId - m.Id = s.Model.Id - m.LifecycleState = s.Model.LifecycleState - m.DisplayName = s.Model.DisplayName - m.TimeCreated = s.Model.TimeCreated - m.AvailabilityDomain = s.Model.AvailabilityDomain - m.FreeformTags = s.Model.FreeformTags - m.DefinedTags = s.Model.DefinedTags - m.ConnectorType = s.Model.ConnectorType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *outboundconnector) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.ConnectorType { - case "LDAPBIND": - mm := LdapBindAccount{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetCompartmentId returns CompartmentId -func (m outboundconnector) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetId returns Id -func (m outboundconnector) GetId() *string { - return m.Id -} - -//GetLifecycleState returns LifecycleState -func (m outboundconnector) GetLifecycleState() OutboundConnectorLifecycleStateEnum { - return m.LifecycleState -} - -//GetDisplayName returns DisplayName -func (m outboundconnector) GetDisplayName() *string { - return m.DisplayName -} - -//GetTimeCreated returns TimeCreated -func (m outboundconnector) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m outboundconnector) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetFreeformTags returns FreeformTags -func (m outboundconnector) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -//GetDefinedTags returns DefinedTags -func (m outboundconnector) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -func (m outboundconnector) String() string { - return common.PointerString(m) -} - -// OutboundConnectorLifecycleStateEnum Enum with underlying type: string -type OutboundConnectorLifecycleStateEnum string - -// Set of constants representing the allowable values for OutboundConnectorLifecycleStateEnum -const ( - OutboundConnectorLifecycleStateCreating OutboundConnectorLifecycleStateEnum = "CREATING" - OutboundConnectorLifecycleStateActive OutboundConnectorLifecycleStateEnum = "ACTIVE" - OutboundConnectorLifecycleStateDeleting OutboundConnectorLifecycleStateEnum = "DELETING" - OutboundConnectorLifecycleStateDeleted OutboundConnectorLifecycleStateEnum = "DELETED" -) - -var mappingOutboundConnectorLifecycleState = map[string]OutboundConnectorLifecycleStateEnum{ - "CREATING": OutboundConnectorLifecycleStateCreating, - "ACTIVE": OutboundConnectorLifecycleStateActive, - "DELETING": OutboundConnectorLifecycleStateDeleting, - "DELETED": OutboundConnectorLifecycleStateDeleted, -} - -// GetOutboundConnectorLifecycleStateEnumValues Enumerates the set of values for OutboundConnectorLifecycleStateEnum -func GetOutboundConnectorLifecycleStateEnumValues() []OutboundConnectorLifecycleStateEnum { - values := make([]OutboundConnectorLifecycleStateEnum, 0) - for _, v := range mappingOutboundConnectorLifecycleState { - values = append(values, v) - } - return values -} - -// OutboundConnectorConnectorTypeEnum Enum with underlying type: string -type OutboundConnectorConnectorTypeEnum string - -// Set of constants representing the allowable values for OutboundConnectorConnectorTypeEnum -const ( - OutboundConnectorConnectorTypeLdapbind OutboundConnectorConnectorTypeEnum = "LDAPBIND" -) - -var mappingOutboundConnectorConnectorType = map[string]OutboundConnectorConnectorTypeEnum{ - "LDAPBIND": OutboundConnectorConnectorTypeLdapbind, -} - -// GetOutboundConnectorConnectorTypeEnumValues Enumerates the set of values for OutboundConnectorConnectorTypeEnum -func GetOutboundConnectorConnectorTypeEnumValues() []OutboundConnectorConnectorTypeEnum { - values := make([]OutboundConnectorConnectorTypeEnum, 0) - for _, v := range mappingOutboundConnectorConnectorType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_summary.go deleted file mode 100644 index 7ece4f18b8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_summary.go +++ /dev/null @@ -1,180 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// OutboundConnectorSummary Summary information for a outbound connector. -type OutboundConnectorSummary interface { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. - GetCompartmentId() *string - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. - GetId() *string - - // The current state of this outbound connector. - GetLifecycleState() OutboundConnectorSummaryLifecycleStateEnum - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My outbound connector` - GetDisplayName() *string - - // The date and time the outbound connector was created - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - GetTimeCreated() *common.SDKTime - - // The availability domain the outbound connector is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - GetAvailabilityDomain() *string - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - GetFreeformTags() map[string]string - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - GetDefinedTags() map[string]map[string]interface{} -} - -type outboundconnectorsummary struct { - JsonData []byte - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Id *string `mandatory:"true" json:"id"` - LifecycleState OutboundConnectorSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - DisplayName *string `mandatory:"true" json:"displayName"` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - ConnectorType string `json:"connectorType"` -} - -// UnmarshalJSON unmarshals json -func (m *outboundconnectorsummary) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshaleroutboundconnectorsummary outboundconnectorsummary - s := struct { - Model Unmarshaleroutboundconnectorsummary - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.CompartmentId = s.Model.CompartmentId - m.Id = s.Model.Id - m.LifecycleState = s.Model.LifecycleState - m.DisplayName = s.Model.DisplayName - m.TimeCreated = s.Model.TimeCreated - m.AvailabilityDomain = s.Model.AvailabilityDomain - m.FreeformTags = s.Model.FreeformTags - m.DefinedTags = s.Model.DefinedTags - m.ConnectorType = s.Model.ConnectorType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *outboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.ConnectorType { - case "LDAPBIND": - mm := LdapBindAccountSummary{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetCompartmentId returns CompartmentId -func (m outboundconnectorsummary) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetId returns Id -func (m outboundconnectorsummary) GetId() *string { - return m.Id -} - -//GetLifecycleState returns LifecycleState -func (m outboundconnectorsummary) GetLifecycleState() OutboundConnectorSummaryLifecycleStateEnum { - return m.LifecycleState -} - -//GetDisplayName returns DisplayName -func (m outboundconnectorsummary) GetDisplayName() *string { - return m.DisplayName -} - -//GetTimeCreated returns TimeCreated -func (m outboundconnectorsummary) GetTimeCreated() *common.SDKTime { - return m.TimeCreated -} - -//GetAvailabilityDomain returns AvailabilityDomain -func (m outboundconnectorsummary) GetAvailabilityDomain() *string { - return m.AvailabilityDomain -} - -//GetFreeformTags returns FreeformTags -func (m outboundconnectorsummary) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -//GetDefinedTags returns DefinedTags -func (m outboundconnectorsummary) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -func (m outboundconnectorsummary) String() string { - return common.PointerString(m) -} - -// OutboundConnectorSummaryLifecycleStateEnum Enum with underlying type: string -type OutboundConnectorSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for OutboundConnectorSummaryLifecycleStateEnum -const ( - OutboundConnectorSummaryLifecycleStateCreating OutboundConnectorSummaryLifecycleStateEnum = "CREATING" - OutboundConnectorSummaryLifecycleStateActive OutboundConnectorSummaryLifecycleStateEnum = "ACTIVE" - OutboundConnectorSummaryLifecycleStateDeleting OutboundConnectorSummaryLifecycleStateEnum = "DELETING" - OutboundConnectorSummaryLifecycleStateDeleted OutboundConnectorSummaryLifecycleStateEnum = "DELETED" -) - -var mappingOutboundConnectorSummaryLifecycleState = map[string]OutboundConnectorSummaryLifecycleStateEnum{ - "CREATING": OutboundConnectorSummaryLifecycleStateCreating, - "ACTIVE": OutboundConnectorSummaryLifecycleStateActive, - "DELETING": OutboundConnectorSummaryLifecycleStateDeleting, - "DELETED": OutboundConnectorSummaryLifecycleStateDeleted, -} - -// GetOutboundConnectorSummaryLifecycleStateEnumValues Enumerates the set of values for OutboundConnectorSummaryLifecycleStateEnum -func GetOutboundConnectorSummaryLifecycleStateEnumValues() []OutboundConnectorSummaryLifecycleStateEnum { - values := make([]OutboundConnectorSummaryLifecycleStateEnum, 0) - for _, v := range mappingOutboundConnectorSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_test_results.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_test_results.go deleted file mode 100644 index 54abd7320d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/outbound_connector_test_results.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// OutboundConnectorTestResults Diagnostic test results between mount target and LDAP server using outbound connector. -type OutboundConnectorTestResults struct { - - // Status of overall connection test against all endpoints. - // Success represents all endpoints tested and functioning. - // PartialSuccess represents all endpoints tested, some function properly, some do not. - // Fail represents no endpoints are functioning properly, MT cannot communicate with LDAP server. - OverallResult OutboundConnectorTestResultsOverallResultEnum `mandatory:"true" json:"overallResult"` - - // Array of result of connecting to each endpoint - ResultsDetail []TestOutboundConnectorResult `mandatory:"true" json:"resultsDetail"` -} - -func (m OutboundConnectorTestResults) String() string { - return common.PointerString(m) -} - -// OutboundConnectorTestResultsOverallResultEnum Enum with underlying type: string -type OutboundConnectorTestResultsOverallResultEnum string - -// Set of constants representing the allowable values for OutboundConnectorTestResultsOverallResultEnum -const ( - OutboundConnectorTestResultsOverallResultSuccess OutboundConnectorTestResultsOverallResultEnum = "SUCCESS" - OutboundConnectorTestResultsOverallResultPartialsuccess OutboundConnectorTestResultsOverallResultEnum = "PARTIALSUCCESS" - OutboundConnectorTestResultsOverallResultFail OutboundConnectorTestResultsOverallResultEnum = "FAIL" -) - -var mappingOutboundConnectorTestResultsOverallResult = map[string]OutboundConnectorTestResultsOverallResultEnum{ - "SUCCESS": OutboundConnectorTestResultsOverallResultSuccess, - "PARTIALSUCCESS": OutboundConnectorTestResultsOverallResultPartialsuccess, - "FAIL": OutboundConnectorTestResultsOverallResultFail, -} - -// GetOutboundConnectorTestResultsOverallResultEnumValues Enumerates the set of values for OutboundConnectorTestResultsOverallResultEnum -func GetOutboundConnectorTestResultsOverallResultEnumValues() []OutboundConnectorTestResultsOverallResultEnum { - values := make([]OutboundConnectorTestResultsOverallResultEnum, 0) - for _, v := range mappingOutboundConnectorTestResultsOverallResult { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reconciliation_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reconciliation_details.go deleted file mode 100644 index 1c11d75eea..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reconciliation_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReconciliationDetails boolean representing whether the provided provenance id is present in source FS. -type ReconciliationDetails struct { - - // boolean representing whether the provided provenance id is present in source FS. - IsReconcilable *bool `mandatory:"false" json:"isReconcilable"` -} - -func (m ReconciliationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication.go deleted file mode 100644 index 4a8fca2f6e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Replication resource that governs the policy of cross region replication between source -// and target filsystems. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type Replication struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. - Id *string `mandatory:"true" json:"id"` - - // The current state of this replication. - LifecycleState ReplicationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My replication` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the replication was created - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-01-04T20:01:29.100Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of source filesystem. - SourceId *string `mandatory:"true" json:"sourceId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of target filesystem. - TargetId *string `mandatory:"true" json:"targetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of replication target. - ReplicationTargetId *string `mandatory:"true" json:"replicationTargetId"` - - // The availability domain the replication is in. May be unset as a blank or NULL value. - // Example: `Uocm:PHX-AD-2` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // Duration in minutes between replication snapshots. - ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last snapshot that has been replicated completely. - // Empty if the copy of the first snapshot has not yet completed. - LastSnapshotId *string `mandatory:"false" json:"lastSnapshotId"` - - // The snapshotTime of the most recent recoverable replication snapshot - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-04-04T20:01:29.100Z` - RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` - - // The current state of the snapshot in-flight. - DeltaStatus ReplicationDeltaStatusEnum `mandatory:"false" json:"deltaStatus,omitempty"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Replication) String() string { - return common.PointerString(m) -} - -// ReplicationLifecycleStateEnum Enum with underlying type: string -type ReplicationLifecycleStateEnum string - -// Set of constants representing the allowable values for ReplicationLifecycleStateEnum -const ( - ReplicationLifecycleStateCreating ReplicationLifecycleStateEnum = "CREATING" - ReplicationLifecycleStateActive ReplicationLifecycleStateEnum = "ACTIVE" - ReplicationLifecycleStateDeleting ReplicationLifecycleStateEnum = "DELETING" - ReplicationLifecycleStateDeleted ReplicationLifecycleStateEnum = "DELETED" - ReplicationLifecycleStateFailed ReplicationLifecycleStateEnum = "FAILED" -) - -var mappingReplicationLifecycleState = map[string]ReplicationLifecycleStateEnum{ - "CREATING": ReplicationLifecycleStateCreating, - "ACTIVE": ReplicationLifecycleStateActive, - "DELETING": ReplicationLifecycleStateDeleting, - "DELETED": ReplicationLifecycleStateDeleted, - "FAILED": ReplicationLifecycleStateFailed, -} - -// GetReplicationLifecycleStateEnumValues Enumerates the set of values for ReplicationLifecycleStateEnum -func GetReplicationLifecycleStateEnumValues() []ReplicationLifecycleStateEnum { - values := make([]ReplicationLifecycleStateEnum, 0) - for _, v := range mappingReplicationLifecycleState { - values = append(values, v) - } - return values -} - -// ReplicationDeltaStatusEnum Enum with underlying type: string -type ReplicationDeltaStatusEnum string - -// Set of constants representing the allowable values for ReplicationDeltaStatusEnum -const ( - ReplicationDeltaStatusIdle ReplicationDeltaStatusEnum = "IDLE" - ReplicationDeltaStatusCapturing ReplicationDeltaStatusEnum = "CAPTURING" - ReplicationDeltaStatusApplying ReplicationDeltaStatusEnum = "APPLYING" - ReplicationDeltaStatusServiceError ReplicationDeltaStatusEnum = "SERVICE_ERROR" - ReplicationDeltaStatusUserError ReplicationDeltaStatusEnum = "USER_ERROR" - ReplicationDeltaStatusFailed ReplicationDeltaStatusEnum = "FAILED" -) - -var mappingReplicationDeltaStatus = map[string]ReplicationDeltaStatusEnum{ - "IDLE": ReplicationDeltaStatusIdle, - "CAPTURING": ReplicationDeltaStatusCapturing, - "APPLYING": ReplicationDeltaStatusApplying, - "SERVICE_ERROR": ReplicationDeltaStatusServiceError, - "USER_ERROR": ReplicationDeltaStatusUserError, - "FAILED": ReplicationDeltaStatusFailed, -} - -// GetReplicationDeltaStatusEnumValues Enumerates the set of values for ReplicationDeltaStatusEnum -func GetReplicationDeltaStatusEnumValues() []ReplicationDeltaStatusEnum { - values := make([]ReplicationDeltaStatusEnum, 0) - for _, v := range mappingReplicationDeltaStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_fail_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_fail_request_response.go deleted file mode 100644 index 12865c5e22..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_fail_request_response.go +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ReplicationFailRequest wrapper for the ReplicationFail operation -type ReplicationFailRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Replication - ReplicationId *string `mandatory:"true" contributesTo:"query" name:"replicationId"` - - // The deltaState of the snapshot in-flight. - DeltaState ReplicationFailDeltaStateEnum `mandatory:"false" contributesTo:"query" name:"deltaState" omitEmpty:"true"` - - // The flag to represent if it is a replication failover message. - IsFailover *bool `mandatory:"false" contributesTo:"query" name:"isFailover"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ReplicationFailRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ReplicationFailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ReplicationFailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ReplicationFailRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ReplicationFailResponse wrapper for the ReplicationFail operation -type ReplicationFailResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Replication instance - Replication `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ReplicationFailResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ReplicationFailResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ReplicationFailDeltaStateEnum Enum with underlying type: string -type ReplicationFailDeltaStateEnum string - -// Set of constants representing the allowable values for ReplicationFailDeltaStateEnum -const ( - ReplicationFailDeltaStateReadyToReplicate ReplicationFailDeltaStateEnum = "READY_TO_REPLICATE" - ReplicationFailDeltaStateReplicating ReplicationFailDeltaStateEnum = "REPLICATING" - ReplicationFailDeltaStateReplicated ReplicationFailDeltaStateEnum = "REPLICATED" - ReplicationFailDeltaStateReplicatingFailed ReplicationFailDeltaStateEnum = "REPLICATING_FAILED" - ReplicationFailDeltaStateAbortReplication ReplicationFailDeltaStateEnum = "ABORT_REPLICATION" - ReplicationFailDeltaStateAbortReplicationDone ReplicationFailDeltaStateEnum = "ABORT_REPLICATION_DONE" - ReplicationFailDeltaStateDone ReplicationFailDeltaStateEnum = "DONE" - ReplicationFailDeltaStateReadyToGc ReplicationFailDeltaStateEnum = "READY_TO_GC" - ReplicationFailDeltaStateDeleted ReplicationFailDeltaStateEnum = "DELETED" -) - -var mappingReplicationFailDeltaState = map[string]ReplicationFailDeltaStateEnum{ - "READY_TO_REPLICATE": ReplicationFailDeltaStateReadyToReplicate, - "REPLICATING": ReplicationFailDeltaStateReplicating, - "REPLICATED": ReplicationFailDeltaStateReplicated, - "REPLICATING_FAILED": ReplicationFailDeltaStateReplicatingFailed, - "ABORT_REPLICATION": ReplicationFailDeltaStateAbortReplication, - "ABORT_REPLICATION_DONE": ReplicationFailDeltaStateAbortReplicationDone, - "DONE": ReplicationFailDeltaStateDone, - "READY_TO_GC": ReplicationFailDeltaStateReadyToGc, - "DELETED": ReplicationFailDeltaStateDeleted, -} - -// GetReplicationFailDeltaStateEnumValues Enumerates the set of values for ReplicationFailDeltaStateEnum -func GetReplicationFailDeltaStateEnumValues() []ReplicationFailDeltaStateEnum { - values := make([]ReplicationFailDeltaStateEnum, 0) - for _, v := range mappingReplicationFailDeltaState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_status_update_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_status_update_request_response.go deleted file mode 100644 index d5e42aef39..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_status_update_request_response.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ReplicationStatusUpdateRequest wrapper for the ReplicationStatusUpdate operation -type ReplicationStatusUpdateRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Replication - ReplicationId *string `mandatory:"true" contributesTo:"query" name:"replicationId"` - - // The deltaState of the snapshot in-flight. - DeltaState ReplicationStatusUpdateDeltaStateEnum `mandatory:"false" contributesTo:"query" name:"deltaState" omitEmpty:"true"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ReplicationStatusUpdateRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ReplicationStatusUpdateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ReplicationStatusUpdateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ReplicationStatusUpdateRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ReplicationStatusUpdateResponse wrapper for the ReplicationStatusUpdate operation -type ReplicationStatusUpdateResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Replication instance - Replication `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ReplicationStatusUpdateResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ReplicationStatusUpdateResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ReplicationStatusUpdateDeltaStateEnum Enum with underlying type: string -type ReplicationStatusUpdateDeltaStateEnum string - -// Set of constants representing the allowable values for ReplicationStatusUpdateDeltaStateEnum -const ( - ReplicationStatusUpdateDeltaStateReadyToReplicate ReplicationStatusUpdateDeltaStateEnum = "READY_TO_REPLICATE" - ReplicationStatusUpdateDeltaStateReplicating ReplicationStatusUpdateDeltaStateEnum = "REPLICATING" - ReplicationStatusUpdateDeltaStateReplicated ReplicationStatusUpdateDeltaStateEnum = "REPLICATED" - ReplicationStatusUpdateDeltaStateReplicatingFailed ReplicationStatusUpdateDeltaStateEnum = "REPLICATING_FAILED" - ReplicationStatusUpdateDeltaStateAbortReplication ReplicationStatusUpdateDeltaStateEnum = "ABORT_REPLICATION" - ReplicationStatusUpdateDeltaStateAbortReplicationDone ReplicationStatusUpdateDeltaStateEnum = "ABORT_REPLICATION_DONE" - ReplicationStatusUpdateDeltaStateDone ReplicationStatusUpdateDeltaStateEnum = "DONE" - ReplicationStatusUpdateDeltaStateReadyToGc ReplicationStatusUpdateDeltaStateEnum = "READY_TO_GC" - ReplicationStatusUpdateDeltaStateDeleted ReplicationStatusUpdateDeltaStateEnum = "DELETED" -) - -var mappingReplicationStatusUpdateDeltaState = map[string]ReplicationStatusUpdateDeltaStateEnum{ - "READY_TO_REPLICATE": ReplicationStatusUpdateDeltaStateReadyToReplicate, - "REPLICATING": ReplicationStatusUpdateDeltaStateReplicating, - "REPLICATED": ReplicationStatusUpdateDeltaStateReplicated, - "REPLICATING_FAILED": ReplicationStatusUpdateDeltaStateReplicatingFailed, - "ABORT_REPLICATION": ReplicationStatusUpdateDeltaStateAbortReplication, - "ABORT_REPLICATION_DONE": ReplicationStatusUpdateDeltaStateAbortReplicationDone, - "DONE": ReplicationStatusUpdateDeltaStateDone, - "READY_TO_GC": ReplicationStatusUpdateDeltaStateReadyToGc, - "DELETED": ReplicationStatusUpdateDeltaStateDeleted, -} - -// GetReplicationStatusUpdateDeltaStateEnumValues Enumerates the set of values for ReplicationStatusUpdateDeltaStateEnum -func GetReplicationStatusUpdateDeltaStateEnumValues() []ReplicationStatusUpdateDeltaStateEnum { - values := make([]ReplicationStatusUpdateDeltaStateEnum, 0) - for _, v := range mappingReplicationStatusUpdateDeltaState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_summary.go deleted file mode 100644 index 91e0a1d90a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_summary.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReplicationSummary Summary information for a replication. -type ReplicationSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. - Id *string `mandatory:"true" json:"id"` - - // The current state of this replication. - // Resource can go into failed state if replication target is deleted instead of replication. - LifecycleState ReplicationSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My replication` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the replication was created - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2020-02-04T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The availability domain the replication is in. Must be in the availability domain as in source filesystem. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Duration in minutes between replication snapshots. - ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The snapshotTime of the most recent recoverable replication snapshot - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-04-04T20:01:29.100Z` - RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` -} - -func (m ReplicationSummary) String() string { - return common.PointerString(m) -} - -// ReplicationSummaryLifecycleStateEnum Enum with underlying type: string -type ReplicationSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ReplicationSummaryLifecycleStateEnum -const ( - ReplicationSummaryLifecycleStateCreating ReplicationSummaryLifecycleStateEnum = "CREATING" - ReplicationSummaryLifecycleStateActive ReplicationSummaryLifecycleStateEnum = "ACTIVE" - ReplicationSummaryLifecycleStateDeleting ReplicationSummaryLifecycleStateEnum = "DELETING" - ReplicationSummaryLifecycleStateDeleted ReplicationSummaryLifecycleStateEnum = "DELETED" - ReplicationSummaryLifecycleStateFailed ReplicationSummaryLifecycleStateEnum = "FAILED" -) - -var mappingReplicationSummaryLifecycleState = map[string]ReplicationSummaryLifecycleStateEnum{ - "CREATING": ReplicationSummaryLifecycleStateCreating, - "ACTIVE": ReplicationSummaryLifecycleStateActive, - "DELETING": ReplicationSummaryLifecycleStateDeleting, - "DELETED": ReplicationSummaryLifecycleStateDeleted, - "FAILED": ReplicationSummaryLifecycleStateFailed, -} - -// GetReplicationSummaryLifecycleStateEnumValues Enumerates the set of values for ReplicationSummaryLifecycleStateEnum -func GetReplicationSummaryLifecycleStateEnumValues() []ReplicationSummaryLifecycleStateEnum { - values := make([]ReplicationSummaryLifecycleStateEnum, 0) - for _, v := range mappingReplicationSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target.go deleted file mode 100644 index 48ffaed095..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target.go +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReplicationTarget resource that has information about cross region replication between source -// and target filsystems in the target region. -// All mutations(except delete) can only be done through corresponding replication resource. -// Deleting resource in target does not delete the source resource and sets resource into FAILED state. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type ReplicationTarget struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. - Id *string `mandatory:"true" json:"id"` - - // The current state of this replication. - LifecycleState ReplicationTargetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. This name is same as the replication display name for the associated resource. - // Example: `My Replication` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the replication target was created in target region. - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-01-04T20:01:29.100Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of source filesystem. - SourceId *string `mandatory:"true" json:"sourceId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of target filesystem. - TargetId *string `mandatory:"true" json:"targetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of replication. - ReplicationId *string `mandatory:"true" json:"replicationId"` - - // The availability domain the replication is in. May be unset - // as a blank or NULL value. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of last snapshot snapshot which was completely applied to target filesystem. - // Empty while the first snapshot is being applied. - LastSnapshotId *string `mandatory:"false" json:"lastSnapshotId"` - - // The snapshotTime of the most recent recoverable replication snapshot - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-04-04T20:01:29.100Z` - RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` - - // The current state of the snapshot in-flight. - DeltaStatus ReplicationTargetDeltaStatusEnum `mandatory:"false" json:"deltaStatus,omitempty"` - - // Percentage progress of the snapshot in-flight which is currently being applied to the target region. - // When nothing is in progress then it is at 100. Value is 0 before the first snapshot is applied. - ApplyingReplicationProgress *int64 `mandatory:"false" json:"applyingReplicationProgress"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` -} - -func (m ReplicationTarget) String() string { - return common.PointerString(m) -} - -// ReplicationTargetLifecycleStateEnum Enum with underlying type: string -type ReplicationTargetLifecycleStateEnum string - -// Set of constants representing the allowable values for ReplicationTargetLifecycleStateEnum -const ( - ReplicationTargetLifecycleStateCreating ReplicationTargetLifecycleStateEnum = "CREATING" - ReplicationTargetLifecycleStateActive ReplicationTargetLifecycleStateEnum = "ACTIVE" - ReplicationTargetLifecycleStateDeleting ReplicationTargetLifecycleStateEnum = "DELETING" - ReplicationTargetLifecycleStateDeleted ReplicationTargetLifecycleStateEnum = "DELETED" - ReplicationTargetLifecycleStateFailed ReplicationTargetLifecycleStateEnum = "FAILED" -) - -var mappingReplicationTargetLifecycleState = map[string]ReplicationTargetLifecycleStateEnum{ - "CREATING": ReplicationTargetLifecycleStateCreating, - "ACTIVE": ReplicationTargetLifecycleStateActive, - "DELETING": ReplicationTargetLifecycleStateDeleting, - "DELETED": ReplicationTargetLifecycleStateDeleted, - "FAILED": ReplicationTargetLifecycleStateFailed, -} - -// GetReplicationTargetLifecycleStateEnumValues Enumerates the set of values for ReplicationTargetLifecycleStateEnum -func GetReplicationTargetLifecycleStateEnumValues() []ReplicationTargetLifecycleStateEnum { - values := make([]ReplicationTargetLifecycleStateEnum, 0) - for _, v := range mappingReplicationTargetLifecycleState { - values = append(values, v) - } - return values -} - -// ReplicationTargetDeltaStatusEnum Enum with underlying type: string -type ReplicationTargetDeltaStatusEnum string - -// Set of constants representing the allowable values for ReplicationTargetDeltaStatusEnum -const ( - ReplicationTargetDeltaStatusIdle ReplicationTargetDeltaStatusEnum = "IDLE" - ReplicationTargetDeltaStatusCapturing ReplicationTargetDeltaStatusEnum = "CAPTURING" - ReplicationTargetDeltaStatusApplying ReplicationTargetDeltaStatusEnum = "APPLYING" - ReplicationTargetDeltaStatusServiceError ReplicationTargetDeltaStatusEnum = "SERVICE_ERROR" - ReplicationTargetDeltaStatusUserError ReplicationTargetDeltaStatusEnum = "USER_ERROR" - ReplicationTargetDeltaStatusFailed ReplicationTargetDeltaStatusEnum = "FAILED" -) - -var mappingReplicationTargetDeltaStatus = map[string]ReplicationTargetDeltaStatusEnum{ - "IDLE": ReplicationTargetDeltaStatusIdle, - "CAPTURING": ReplicationTargetDeltaStatusCapturing, - "APPLYING": ReplicationTargetDeltaStatusApplying, - "SERVICE_ERROR": ReplicationTargetDeltaStatusServiceError, - "USER_ERROR": ReplicationTargetDeltaStatusUserError, - "FAILED": ReplicationTargetDeltaStatusFailed, -} - -// GetReplicationTargetDeltaStatusEnumValues Enumerates the set of values for ReplicationTargetDeltaStatusEnum -func GetReplicationTargetDeltaStatusEnumValues() []ReplicationTargetDeltaStatusEnum { - values := make([]ReplicationTargetDeltaStatusEnum, 0) - for _, v := range mappingReplicationTargetDeltaStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_status_update_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_status_update_request_response.go deleted file mode 100644 index 0f09122c6e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_status_update_request_response.go +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "io" - "net/http" -) - -// ReplicationTargetStatusUpdateRequest wrapper for the ReplicationTargetStatusUpdate operation -type ReplicationTargetStatusUpdateRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Replication Target - ReplicationTargetId *string `mandatory:"true" contributesTo:"query" name:"replicationTargetId"` - - // The deltaStatus of the snapshot in-flight. - ReplicationStatus ReplicationTargetStatusUpdateReplicationStatusEnum `mandatory:"false" contributesTo:"query" name:"replicationStatus" omitEmpty:"true"` - - // The deltaState of the snapshot in-flight. - DeltaState ReplicationTargetStatusUpdateDeltaStateEnum `mandatory:"false" contributesTo:"query" name:"deltaState" omitEmpty:"true"` - - // The objectNum of the start point of the Snapshot in-flight. - LastSnapshotNum *int `mandatory:"false" contributesTo:"query" name:"lastSnapshotNum"` - - // The objectNum of the end point of the Snapshot in-flight. - NewSnapshotNum *int `mandatory:"false" contributesTo:"query" name:"newSnapshotNum"` - - // The snapshotTime of the most recent recoverable replication snapshot - RecoveryPointTime *int `mandatory:"false" contributesTo:"query" name:"recoveryPointTime"` - - // The kmsKeyOcid for the Snapshot in-flight. - KmsKeyOcid *string `mandatory:"false" contributesTo:"query" name:"kmsKeyOcid"` - - // The total number of bytes in the Snapshot in-flight. - DeltaByteCount *int `mandatory:"false" contributesTo:"query" name:"deltaByteCount"` - - // Unique identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The cipherText of the ReplicationDeltaTransferKey for the Snapshot in-flight. - CipherTextDetails io.ReadCloser `mandatory:"false" contributesTo:"body" encoding:"binary"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ReplicationTargetStatusUpdateRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ReplicationTargetStatusUpdateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) - if err == nil && binaryRequestBody.Seekable() { - common.UpdateRequestBinaryBody(&httpRequest, binaryRequestBody) - } - return httpRequest, err -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ReplicationTargetStatusUpdateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - rsc := common.NewOCIReadSeekCloser(request.CipherTextDetails) - if rsc.Seekable() { - return rsc, true - } - return nil, true - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ReplicationTargetStatusUpdateRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ReplicationTargetStatusUpdateResponse wrapper for the ReplicationTargetStatusUpdate operation -type ReplicationTargetStatusUpdateResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The ReplicationTarget instance - ReplicationTarget `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ReplicationTargetStatusUpdateResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ReplicationTargetStatusUpdateResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ReplicationTargetStatusUpdateReplicationStatusEnum Enum with underlying type: string -type ReplicationTargetStatusUpdateReplicationStatusEnum string - -// Set of constants representing the allowable values for ReplicationTargetStatusUpdateReplicationStatusEnum -const ( - ReplicationTargetStatusUpdateReplicationStatusIdle ReplicationTargetStatusUpdateReplicationStatusEnum = "IDLE" - ReplicationTargetStatusUpdateReplicationStatusCapturing ReplicationTargetStatusUpdateReplicationStatusEnum = "CAPTURING" - ReplicationTargetStatusUpdateReplicationStatusApplying ReplicationTargetStatusUpdateReplicationStatusEnum = "APPLYING" - ReplicationTargetStatusUpdateReplicationStatusServiceError ReplicationTargetStatusUpdateReplicationStatusEnum = "SERVICE_ERROR" - ReplicationTargetStatusUpdateReplicationStatusUserError ReplicationTargetStatusUpdateReplicationStatusEnum = "USER_ERROR" - ReplicationTargetStatusUpdateReplicationStatusFailed ReplicationTargetStatusUpdateReplicationStatusEnum = "FAILED" -) - -var mappingReplicationTargetStatusUpdateReplicationStatus = map[string]ReplicationTargetStatusUpdateReplicationStatusEnum{ - "IDLE": ReplicationTargetStatusUpdateReplicationStatusIdle, - "CAPTURING": ReplicationTargetStatusUpdateReplicationStatusCapturing, - "APPLYING": ReplicationTargetStatusUpdateReplicationStatusApplying, - "SERVICE_ERROR": ReplicationTargetStatusUpdateReplicationStatusServiceError, - "USER_ERROR": ReplicationTargetStatusUpdateReplicationStatusUserError, - "FAILED": ReplicationTargetStatusUpdateReplicationStatusFailed, -} - -// GetReplicationTargetStatusUpdateReplicationStatusEnumValues Enumerates the set of values for ReplicationTargetStatusUpdateReplicationStatusEnum -func GetReplicationTargetStatusUpdateReplicationStatusEnumValues() []ReplicationTargetStatusUpdateReplicationStatusEnum { - values := make([]ReplicationTargetStatusUpdateReplicationStatusEnum, 0) - for _, v := range mappingReplicationTargetStatusUpdateReplicationStatus { - values = append(values, v) - } - return values -} - -// ReplicationTargetStatusUpdateDeltaStateEnum Enum with underlying type: string -type ReplicationTargetStatusUpdateDeltaStateEnum string - -// Set of constants representing the allowable values for ReplicationTargetStatusUpdateDeltaStateEnum -const ( - ReplicationTargetStatusUpdateDeltaStateReadyToReplicate ReplicationTargetStatusUpdateDeltaStateEnum = "READY_TO_REPLICATE" - ReplicationTargetStatusUpdateDeltaStateReplicating ReplicationTargetStatusUpdateDeltaStateEnum = "REPLICATING" - ReplicationTargetStatusUpdateDeltaStateReplicated ReplicationTargetStatusUpdateDeltaStateEnum = "REPLICATED" - ReplicationTargetStatusUpdateDeltaStateReplicatingFailed ReplicationTargetStatusUpdateDeltaStateEnum = "REPLICATING_FAILED" - ReplicationTargetStatusUpdateDeltaStateAbortReplication ReplicationTargetStatusUpdateDeltaStateEnum = "ABORT_REPLICATION" - ReplicationTargetStatusUpdateDeltaStateAbortReplicationDone ReplicationTargetStatusUpdateDeltaStateEnum = "ABORT_REPLICATION_DONE" - ReplicationTargetStatusUpdateDeltaStateDone ReplicationTargetStatusUpdateDeltaStateEnum = "DONE" - ReplicationTargetStatusUpdateDeltaStateReadyToGc ReplicationTargetStatusUpdateDeltaStateEnum = "READY_TO_GC" - ReplicationTargetStatusUpdateDeltaStateDeleted ReplicationTargetStatusUpdateDeltaStateEnum = "DELETED" -) - -var mappingReplicationTargetStatusUpdateDeltaState = map[string]ReplicationTargetStatusUpdateDeltaStateEnum{ - "READY_TO_REPLICATE": ReplicationTargetStatusUpdateDeltaStateReadyToReplicate, - "REPLICATING": ReplicationTargetStatusUpdateDeltaStateReplicating, - "REPLICATED": ReplicationTargetStatusUpdateDeltaStateReplicated, - "REPLICATING_FAILED": ReplicationTargetStatusUpdateDeltaStateReplicatingFailed, - "ABORT_REPLICATION": ReplicationTargetStatusUpdateDeltaStateAbortReplication, - "ABORT_REPLICATION_DONE": ReplicationTargetStatusUpdateDeltaStateAbortReplicationDone, - "DONE": ReplicationTargetStatusUpdateDeltaStateDone, - "READY_TO_GC": ReplicationTargetStatusUpdateDeltaStateReadyToGc, - "DELETED": ReplicationTargetStatusUpdateDeltaStateDeleted, -} - -// GetReplicationTargetStatusUpdateDeltaStateEnumValues Enumerates the set of values for ReplicationTargetStatusUpdateDeltaStateEnum -func GetReplicationTargetStatusUpdateDeltaStateEnumValues() []ReplicationTargetStatusUpdateDeltaStateEnum { - values := make([]ReplicationTargetStatusUpdateDeltaStateEnum, 0) - for _, v := range mappingReplicationTargetStatusUpdateDeltaState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_summary.go deleted file mode 100644 index df594cc4d8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_summary.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReplicationTargetSummary Summary information for replication target. -type ReplicationTargetSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. - Id *string `mandatory:"true" json:"id"` - - // The current state of this replication. - LifecycleState ReplicationTargetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A user-friendly name. This name is same as the replication display name for the associated resource. - // Example: `My replication` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The date and time the replication was created - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-02-02T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The availability domain the replication target is in. Must be in the availability domain as in target filesystem. - // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // The snapshotTime of the most recent recoverable replication snapshot - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2021-04-04T20:01:29.100Z` - RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` -} - -func (m ReplicationTargetSummary) String() string { - return common.PointerString(m) -} - -// ReplicationTargetSummaryLifecycleStateEnum Enum with underlying type: string -type ReplicationTargetSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for ReplicationTargetSummaryLifecycleStateEnum -const ( - ReplicationTargetSummaryLifecycleStateCreating ReplicationTargetSummaryLifecycleStateEnum = "CREATING" - ReplicationTargetSummaryLifecycleStateActive ReplicationTargetSummaryLifecycleStateEnum = "ACTIVE" - ReplicationTargetSummaryLifecycleStateDeleting ReplicationTargetSummaryLifecycleStateEnum = "DELETING" - ReplicationTargetSummaryLifecycleStateDeleted ReplicationTargetSummaryLifecycleStateEnum = "DELETED" - ReplicationTargetSummaryLifecycleStateFailed ReplicationTargetSummaryLifecycleStateEnum = "FAILED" -) - -var mappingReplicationTargetSummaryLifecycleState = map[string]ReplicationTargetSummaryLifecycleStateEnum{ - "CREATING": ReplicationTargetSummaryLifecycleStateCreating, - "ACTIVE": ReplicationTargetSummaryLifecycleStateActive, - "DELETING": ReplicationTargetSummaryLifecycleStateDeleting, - "DELETED": ReplicationTargetSummaryLifecycleStateDeleted, - "FAILED": ReplicationTargetSummaryLifecycleStateFailed, -} - -// GetReplicationTargetSummaryLifecycleStateEnumValues Enumerates the set of values for ReplicationTargetSummaryLifecycleStateEnum -func GetReplicationTargetSummaryLifecycleStateEnumValues() []ReplicationTargetSummaryLifecycleStateEnum { - values := make([]ReplicationTargetSummaryLifecycleStateEnum, 0) - for _, v := range mappingReplicationTargetSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_details.go deleted file mode 100644 index 714db77af9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReserveTargetNumDetails Details for creating a new replication target and resume snapshot num. -type ReserveTargetNumDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target id. - ReplicationTargetId *string `mandatory:"false" json:"replicationTargetId"` - - // The resume snapshot num which represents point of replication continuinity. - ResumeSnapshotNum *int64 `mandatory:"false" json:"resumeSnapshotNum"` -} - -func (m ReserveTargetNumDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot.go deleted file mode 100644 index d1ee57af64..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot.go +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Snapshot A point-in-time snapshot of a specified file system. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type Snapshot struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system from which the snapshot - // was created. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. - Id *string `mandatory:"true" json:"id"` - - // The current state of the snapshot. - LifecycleState SnapshotLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Name of the snapshot. This value is immutable. - // Avoid entering confidential information. - // Example: `Sunday` - Name *string `mandatory:"true" json:"name"` - - // The date and time the snapshot was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Specifies generation type of the snapshot. - SnapshotType SnapshotSnapshotTypeEnum `mandatory:"false" json:"snapshotType,omitempty"` - - // The date and time the snapshot was taken, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // This might be same or different from timeCreated depending - // upon if the snapshot was created in the current file system or - // cloned or replicated from some other file system. - // Example: `2020-08-25T21:10:29.600Z` - SnapshotTime *common.SDKTime `mandatory:"false" json:"snapshotTime"` - - // An OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) identifying the parent from which this snapshot was cloned. - // If this snapshot was not cloned, then the `provenanceId` is the same as the snapshot `id` value. - // If this snapshot was cloned, then the `provenanceId` value is the parent's `provenanceId`. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - ProvenanceId *string `mandatory:"false" json:"provenanceId"` - - // Specifies whether the snapshot has been cloned. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - IsCloneSource *bool `mandatory:"false" json:"isCloneSource"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Snapshot) String() string { - return common.PointerString(m) -} - -// SnapshotLifecycleStateEnum Enum with underlying type: string -type SnapshotLifecycleStateEnum string - -// Set of constants representing the allowable values for SnapshotLifecycleStateEnum -const ( - SnapshotLifecycleStateCreating SnapshotLifecycleStateEnum = "CREATING" - SnapshotLifecycleStateActive SnapshotLifecycleStateEnum = "ACTIVE" - SnapshotLifecycleStateDeleting SnapshotLifecycleStateEnum = "DELETING" - SnapshotLifecycleStateDeleted SnapshotLifecycleStateEnum = "DELETED" -) - -var mappingSnapshotLifecycleState = map[string]SnapshotLifecycleStateEnum{ - "CREATING": SnapshotLifecycleStateCreating, - "ACTIVE": SnapshotLifecycleStateActive, - "DELETING": SnapshotLifecycleStateDeleting, - "DELETED": SnapshotLifecycleStateDeleted, -} - -// GetSnapshotLifecycleStateEnumValues Enumerates the set of values for SnapshotLifecycleStateEnum -func GetSnapshotLifecycleStateEnumValues() []SnapshotLifecycleStateEnum { - values := make([]SnapshotLifecycleStateEnum, 0) - for _, v := range mappingSnapshotLifecycleState { - values = append(values, v) - } - return values -} - -// SnapshotSnapshotTypeEnum Enum with underlying type: string -type SnapshotSnapshotTypeEnum string - -// Set of constants representing the allowable values for SnapshotSnapshotTypeEnum -const ( - SnapshotSnapshotTypeUser SnapshotSnapshotTypeEnum = "USER" - SnapshotSnapshotTypePolicyBased SnapshotSnapshotTypeEnum = "POLICY_BASED" - SnapshotSnapshotTypeReplication SnapshotSnapshotTypeEnum = "REPLICATION" -) - -var mappingSnapshotSnapshotType = map[string]SnapshotSnapshotTypeEnum{ - "USER": SnapshotSnapshotTypeUser, - "POLICY_BASED": SnapshotSnapshotTypePolicyBased, - "REPLICATION": SnapshotSnapshotTypeReplication, -} - -// GetSnapshotSnapshotTypeEnumValues Enumerates the set of values for SnapshotSnapshotTypeEnum -func GetSnapshotSnapshotTypeEnumValues() []SnapshotSnapshotTypeEnum { - values := make([]SnapshotSnapshotTypeEnum, 0) - for _, v := range mappingSnapshotSnapshotType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot_summary.go deleted file mode 100644 index 0b146b7b71..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/snapshot_summary.go +++ /dev/null @@ -1,128 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SnapshotSummary Summary information for a snapshot. -type SnapshotSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system from which the snapshot was created. - FileSystemId *string `mandatory:"true" json:"fileSystemId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. - Id *string `mandatory:"true" json:"id"` - - // The current state of the snapshot. - LifecycleState SnapshotSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Name of the snapshot. This value is immutable. - // Avoid entering confidential information. - // Example: `Sunday` - Name *string `mandatory:"true" json:"name"` - - // The date and time the snapshot was created, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Specifies generation type of the snapshot. - SnapshotType SnapshotSummarySnapshotTypeEnum `mandatory:"false" json:"snapshotType,omitempty"` - - // The date and time the snapshot was taken, expressed - // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. - // This might be same or different from timeCreated depending - // upon if the snapshot was created in the current file system or - // cloned or replicated from some other file system. - // Example: `2020-08-25T21:10:29.600Z` - SnapshotTime *common.SDKTime `mandatory:"false" json:"snapshotTime"` - - // An OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) identifying the parent from which this snapshot was cloned. - // If this snapshot was not cloned, then the `provenanceId` is the same as the snapshot `id` value. - // If this snapshot was cloned, then the `provenanceId` value is the parent's `provenanceId`. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - ProvenanceId *string `mandatory:"false" json:"provenanceId"` - - // Specifies whether the snapshot has been cloned. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - IsCloneSource *bool `mandatory:"false" json:"isCloneSource"` - - // Additional information about the current 'lifecycleState'. - LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m SnapshotSummary) String() string { - return common.PointerString(m) -} - -// SnapshotSummaryLifecycleStateEnum Enum with underlying type: string -type SnapshotSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for SnapshotSummaryLifecycleStateEnum -const ( - SnapshotSummaryLifecycleStateCreating SnapshotSummaryLifecycleStateEnum = "CREATING" - SnapshotSummaryLifecycleStateActive SnapshotSummaryLifecycleStateEnum = "ACTIVE" - SnapshotSummaryLifecycleStateDeleting SnapshotSummaryLifecycleStateEnum = "DELETING" - SnapshotSummaryLifecycleStateDeleted SnapshotSummaryLifecycleStateEnum = "DELETED" -) - -var mappingSnapshotSummaryLifecycleState = map[string]SnapshotSummaryLifecycleStateEnum{ - "CREATING": SnapshotSummaryLifecycleStateCreating, - "ACTIVE": SnapshotSummaryLifecycleStateActive, - "DELETING": SnapshotSummaryLifecycleStateDeleting, - "DELETED": SnapshotSummaryLifecycleStateDeleted, -} - -// GetSnapshotSummaryLifecycleStateEnumValues Enumerates the set of values for SnapshotSummaryLifecycleStateEnum -func GetSnapshotSummaryLifecycleStateEnumValues() []SnapshotSummaryLifecycleStateEnum { - values := make([]SnapshotSummaryLifecycleStateEnum, 0) - for _, v := range mappingSnapshotSummaryLifecycleState { - values = append(values, v) - } - return values -} - -// SnapshotSummarySnapshotTypeEnum Enum with underlying type: string -type SnapshotSummarySnapshotTypeEnum string - -// Set of constants representing the allowable values for SnapshotSummarySnapshotTypeEnum -const ( - SnapshotSummarySnapshotTypeUser SnapshotSummarySnapshotTypeEnum = "USER" - SnapshotSummarySnapshotTypePolicyBased SnapshotSummarySnapshotTypeEnum = "POLICY_BASED" - SnapshotSummarySnapshotTypeReplication SnapshotSummarySnapshotTypeEnum = "REPLICATION" -) - -var mappingSnapshotSummarySnapshotType = map[string]SnapshotSummarySnapshotTypeEnum{ - "USER": SnapshotSummarySnapshotTypeUser, - "POLICY_BASED": SnapshotSummarySnapshotTypePolicyBased, - "REPLICATION": SnapshotSummarySnapshotTypeReplication, -} - -// GetSnapshotSummarySnapshotTypeEnumValues Enumerates the set of values for SnapshotSummarySnapshotTypeEnum -func GetSnapshotSummarySnapshotTypeEnumValues() []SnapshotSummarySnapshotTypeEnum { - values := make([]SnapshotSummarySnapshotTypeEnum, 0) - for _, v := range mappingSnapshotSummarySnapshotType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_details.go deleted file mode 100644 index e60e285dec..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SourceDetails Source information for the file system. -type SourceDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system that contains the source snapshot of a cloned file system. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - ParentFileSystemId *string `mandatory:"false" json:"parentFileSystemId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source snapshot used to create a cloned file system. - // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). - SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` -} - -func (m SourceDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/tagslug.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/tagslug.go deleted file mode 100644 index b3ff474f52..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/tagslug.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Tagslug A resource that has information about the tag and some other important metadata -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type Tagslug struct { - - // The date and time the tagSlug was created in target region. - // Example: `2021-01-04T20:01:29.100Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The type of resource the tag is associated with. - // Example: "1" for filesystem, "2" for mount target - Type *string `mandatory:"false" json:"type"` - - // determines if the tagslug is used by a resource or not. - // Example: "1" for used, "0" for not used - Used *string `mandatory:"false" json:"used"` - - // The id of the filesystem or mount target if this tag is associated to - Id1 *string `mandatory:"false" json:"id1"` - - // The id of snapshot if this tag is associated to else 0 - Id2 *string `mandatory:"false" json:"id2"` -} - -func (m Tagslug) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_details.go deleted file mode 100644 index 8a33300adb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TestOutboundConnectorDetails Details for testing outbound connector. -type TestOutboundConnectorDetails struct { - - // OCID of outbound connector which needs to be tested. - OutboundConnectorId *string `mandatory:"true" json:"outboundConnectorId"` -} - -func (m TestOutboundConnectorDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_result.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_result.go deleted file mode 100644 index fb246eace4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_result.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TestOutboundConnectorResult Result of connecting to a single endpoint -type TestOutboundConnectorResult struct { - - // Endpoint used while trying to connect while using LDAP bind account - Endpoint *interface{} `mandatory:"true" json:"endpoint"` - - // Status of connection to given endpoint - Result TestOutboundConnectorResultResultEnum `mandatory:"true" json:"result"` - - // Error from the perspective of the mount target. - MountTargetErrorString *string `mandatory:"false" json:"mountTargetErrorString"` - - // Error string from underlying component that failed. - EndpointErrorString *string `mandatory:"false" json:"endpointErrorString"` -} - -func (m TestOutboundConnectorResult) String() string { - return common.PointerString(m) -} - -// TestOutboundConnectorResultResultEnum Enum with underlying type: string -type TestOutboundConnectorResultResultEnum string - -// Set of constants representing the allowable values for TestOutboundConnectorResultResultEnum -const ( - TestOutboundConnectorResultResultSuccess TestOutboundConnectorResultResultEnum = "SUCCESS" - TestOutboundConnectorResultResultFail TestOutboundConnectorResultResultEnum = "FAIL" - TestOutboundConnectorResultResultNotrun TestOutboundConnectorResultResultEnum = "NOTRUN" -) - -var mappingTestOutboundConnectorResultResult = map[string]TestOutboundConnectorResultResultEnum{ - "SUCCESS": TestOutboundConnectorResultResultSuccess, - "FAIL": TestOutboundConnectorResultResultFail, - "NOTRUN": TestOutboundConnectorResultResultNotrun, -} - -// GetTestOutboundConnectorResultResultEnumValues Enumerates the set of values for TestOutboundConnectorResultResultEnum -func GetTestOutboundConnectorResultResultEnumValues() []TestOutboundConnectorResultResultEnum { - values := make([]TestOutboundConnectorResultResultEnum, 0) - for _, v := range mappingTestOutboundConnectorResultResult { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_details.go deleted file mode 100644 index 8c409a2a4f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateExportDetails Details for updating the export. -type UpdateExportDetails struct { - - // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. - IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` - - // Export can be set in 'ENABLED' or 'DISABLED' mode. - // Attempt to mount the filesystem will fail if the export is in 'DISABLED' mode. - ExportMode UpdateExportDetailsExportModeEnum `mandatory:"false" json:"exportMode,omitempty"` - - // New export options for the export. - // **Setting to the empty array will make the export invisible to all clients.** - // Leaving unset will leave the `exportOptions` unchanged. - ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` -} - -func (m UpdateExportDetails) String() string { - return common.PointerString(m) -} - -// UpdateExportDetailsExportModeEnum Enum with underlying type: string -type UpdateExportDetailsExportModeEnum string - -// Set of constants representing the allowable values for UpdateExportDetailsExportModeEnum -const ( - UpdateExportDetailsExportModeEnabled UpdateExportDetailsExportModeEnum = "ENABLED" - UpdateExportDetailsExportModeDisabled UpdateExportDetailsExportModeEnum = "DISABLED" -) - -var mappingUpdateExportDetailsExportMode = map[string]UpdateExportDetailsExportModeEnum{ - "ENABLED": UpdateExportDetailsExportModeEnabled, - "DISABLED": UpdateExportDetailsExportModeDisabled, -} - -// GetUpdateExportDetailsExportModeEnumValues Enumerates the set of values for UpdateExportDetailsExportModeEnum -func GetUpdateExportDetailsExportModeEnumValues() []UpdateExportDetailsExportModeEnum { - values := make([]UpdateExportDetailsExportModeEnum, 0) - for _, v := range mappingUpdateExportDetailsExportMode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_details.go deleted file mode 100644 index 8d9f2b928d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_details.go +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateExportSetDetails Details for updating the export set. -type UpdateExportSetDetails struct { - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My export set` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Controls the maximum `tbytes`, `fbytes`, and `abytes` - // values reported by `NFS FSSTAT` calls through any associated - // mount targets. This is an advanced feature. For most - // applications, use the default value. The - // `tbytes` value reported by `FSSTAT` will be - // `maxFsStatBytes`. The value of `fbytes` and `abytes` will be - // `maxFsStatBytes` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatBytes`, - // then `fbytes` and `abytes` will both be '0'. - MaxFsStatBytes *int64 `mandatory:"false" json:"maxFsStatBytes"` - - // Controls the maximum `ffiles`, `ffiles`, and `afiles` - // values reported by `NFS FSSTAT` calls through any associated - // mount targets. This is an advanced feature. For most - // applications, use the default value. The - // `tfiles` value reported by `FSSTAT` will be - // `maxFsStatFiles`. The value of `ffiles` and `afiles` will be - // `maxFsStatFiles` minus the metered size of the file - // system. If the metered size is larger than `maxFsStatFiles`, - // then `ffiles` and `afiles` will both be '0'. - MaxFsStatFiles *int64 `mandatory:"false" json:"maxFsStatFiles"` -} - -func (m UpdateExportSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_details.go deleted file mode 100644 index 60dbe1043c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateFileSystemDetails Details for updating the file system. -type UpdateFileSystemDetails struct { - - // A user-friendly name. It does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My file system` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Key Management master encryption key to associate with the specified file system. - // If this value is empty, the Update operation will remove the associated key, if there is one, from the file system. - // (The file system will continue to be encrypted, but with an encryption key managed by Oracle.) - // If updating to a new Key Management key, the old key must remain enabled so that files previously encrypted continue - // to be accessible. For more information, see Overview of Key Management (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm). - KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` -} - -func (m UpdateFileSystemDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_kerberos_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_kerberos_details.go deleted file mode 100644 index 43d5799175..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_kerberos_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateKerberosDetails Kerberos details needed to update configuration. -type UpdateKerberosDetails struct { - - // The realm of the kerberos server Mount Target interacts with. - KerberosRealm *string `mandatory:"false" json:"kerberosRealm"` - - // Describes how long to keep keytab entries(in seconds) after they have been rotated. - KerberosKeyLifeSeconds *int `mandatory:"false" json:"kerberosKeyLifeSeconds"` -} - -func (m UpdateKerberosDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_ldap_idmap_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_ldap_idmap_details.go deleted file mode 100644 index cb8eafe5f1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_ldap_idmap_details.go +++ /dev/null @@ -1,67 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateLdapIdmapDetails Mount Target details about the LDAP ID Map configuration. -type UpdateLdapIdmapDetails struct { - - // Schema type of LDAP account. - SchemaType UpdateLdapIdmapDetailsSchemaTypeEnum `mandatory:"false" json:"schemaType,omitempty"` - - // Integer for how often the mount target should recheck LDAP for updates. - CacheRefreshIntervalSeconds *int `mandatory:"false" json:"cacheRefreshIntervalSeconds"` - - // Integer for how long cached entries may be used. - CacheLifetimeSeconds *int `mandatory:"false" json:"cacheLifetimeSeconds"` - - // Integer for how long to cache if idmap information is missing. - NegativeCacheLifetimeSeconds *int `mandatory:"false" json:"negativeCacheLifetimeSeconds"` - - // All LDAP searches are recursive starting at this Base Distinguished user name. - BaseDistinguishedUserName *string `mandatory:"false" json:"baseDistinguishedUserName"` - - // All LDAP searches are recursive starting at this Base Distinguished group name. - BaseDistinguishedGroupName *string `mandatory:"false" json:"baseDistinguishedGroupName"` - - // OCID of the first LDAP Account - OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` - - // OCID of the second LDAP Account - OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` -} - -func (m UpdateLdapIdmapDetails) String() string { - return common.PointerString(m) -} - -// UpdateLdapIdmapDetailsSchemaTypeEnum Enum with underlying type: string -type UpdateLdapIdmapDetailsSchemaTypeEnum string - -// Set of constants representing the allowable values for UpdateLdapIdmapDetailsSchemaTypeEnum -const ( - UpdateLdapIdmapDetailsSchemaTypeRfc2307 UpdateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" -) - -var mappingUpdateLdapIdmapDetailsSchemaType = map[string]UpdateLdapIdmapDetailsSchemaTypeEnum{ - "RFC2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, -} - -// GetUpdateLdapIdmapDetailsSchemaTypeEnumValues Enumerates the set of values for UpdateLdapIdmapDetailsSchemaTypeEnum -func GetUpdateLdapIdmapDetailsSchemaTypeEnumValues() []UpdateLdapIdmapDetailsSchemaTypeEnum { - values := make([]UpdateLdapIdmapDetailsSchemaTypeEnum, 0) - for _, v := range mappingUpdateLdapIdmapDetailsSchemaType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_details.go deleted file mode 100644 index d68b183eb6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_details.go +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateMountTargetDetails Details for updating the mount target. -type UpdateMountTargetDetails struct { - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My mount target` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Describes whether Idmapping is turned on or off. If on, describes method used to perform ID Mapping - IdmapType MountTargetIdmapTypeEnum `mandatory:"false" json:"idmapType,omitempty"` - - LdapIdmap *UpdateLdapIdmapDetails `mandatory:"false" json:"ldapIdmap"` - - // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. - // A maximum of 5 is allowed. - // Setting this to an empty array after the list is created removes the mount target from all NSGs. - // For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). - NsgIds []string `mandatory:"false" json:"nsgIds"` - - Kerberos *UpdateKerberosDetails `mandatory:"false" json:"kerberos"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateMountTargetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_details.go deleted file mode 100644 index 69e0f651c6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_details.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateOutboundConnectorDetails Details for updating the outbound connector. -type UpdateOutboundConnectorDetails struct { - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Example: `My Outbound Connector` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateOutboundConnectorDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_details.go deleted file mode 100644 index a3a9bb6f57..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_details.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateReplicationDetails Details for updating the replication and replication target. -type UpdateReplicationDetails struct { - - // A user-friendly name. Does not have to be unique, and it is changeable. - // Avoid entering confidential information. - // Replication target will also updated with the same displayName. - // Example: `My replication` - DisplayName *string `mandatory:"false" json:"displayName"` - - // Duration in minutes between replication snapshots. - ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateReplicationDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_details.go deleted file mode 100644 index 93c162c5c7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_details.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateReplicationTargetDetails Details for updating the replication and replication target. -type UpdateReplicationTargetDetails struct { - - // A user-friendly name. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateReplicationTargetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_details.go deleted file mode 100644 index edfdca883d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// File Storage API -// -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). -// - -package filestorage - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateSnapshotDetails Details for updating the snapshot. -type UpdateSnapshotDetails struct { - - // Free-form tags for this resource. Each tag is a simple key-value pair - // with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateSnapshotDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/account.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/account.go deleted file mode 100644 index a3d1e71649..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/account.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Account The basic information for an account object. -type Account struct { - - // The name of the tenant. - AccountName *string `mandatory:"true" json:"accountName"` - - // The lifecycle state of the tenant. - State *string `mandatory:"true" json:"state"` - - // The tenant home region. - HomeRegion *string `mandatory:"true" json:"homeRegion"` - - // The tenant active regions. - ActiveRegions []string `mandatory:"true" json:"activeRegions"` - - // The OCID of the tenancy. - TenancyOcid *string `mandatory:"false" json:"tenancyOcid"` -} - -func (m Account) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_details.go deleted file mode 100644 index 3b30879e00..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AddUserToGroupDetails The representation of AddUserToGroupDetails -type AddUserToGroupDetails struct { - - // The OCID of the user. - UserId *string `mandatory:"true" json:"userId"` - - // The OCID of the group. - GroupId *string `mandatory:"true" json:"groupId"` -} - -func (m AddUserToGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/allowed_domain_license_type_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/allowed_domain_license_type_summary.go deleted file mode 100644 index f7add682d0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/allowed_domain_license_type_summary.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AllowedDomainLicenseTypeSummary The 'AllowedDomainLicenseTypeSummary' object contains information about the 'Domain License type'. -type AllowedDomainLicenseTypeSummary struct { - - // The license type name. - // Example: "Oracle Apps Premium" - Name *string `mandatory:"true" json:"name"` - - // The license type identifier. - // Example: "oracle-apps-premium" - LicenseType *string `mandatory:"true" json:"licenseType"` - - // The license type description. - Description *string `mandatory:"true" json:"description"` -} - -func (m AllowedDomainLicenseTypeSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/api_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/api_key.go deleted file mode 100644 index e658ae95cc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/api_key.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ApiKey A PEM-format RSA credential for securing requests to the Oracle Cloud Infrastructure REST API. Also known -// as an *API signing key*. Specifically, this is the public key from the key pair. The private key remains with -// the user calling the API. For information about generating a key pair -// in the required PEM format, see Required Keys and OCIDs (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm). -// **Important:** This is **not** the SSH key for accessing compute instances. -// Each user can have a maximum of three API signing keys. -// For more information about user credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm). -type ApiKey struct { - - // An Oracle-assigned identifier for the key, in this format: - // TENANCY_OCID/USER_OCID/KEY_FINGERPRINT. - KeyId *string `mandatory:"false" json:"keyId"` - - // The key's value. - KeyValue *string `mandatory:"false" json:"keyValue"` - - // The key's fingerprint (e.g., 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef). - Fingerprint *string `mandatory:"false" json:"fingerprint"` - - // The OCID of the user the key belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time the `ApiKey` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The API key's current state. After creating an `ApiKey` object, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState ApiKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m ApiKey) String() string { - return common.PointerString(m) -} - -// ApiKeyLifecycleStateEnum Enum with underlying type: string -type ApiKeyLifecycleStateEnum string - -// Set of constants representing the allowable values for ApiKeyLifecycleStateEnum -const ( - ApiKeyLifecycleStateCreating ApiKeyLifecycleStateEnum = "CREATING" - ApiKeyLifecycleStateActive ApiKeyLifecycleStateEnum = "ACTIVE" - ApiKeyLifecycleStateInactive ApiKeyLifecycleStateEnum = "INACTIVE" - ApiKeyLifecycleStateDeleting ApiKeyLifecycleStateEnum = "DELETING" - ApiKeyLifecycleStateDeleted ApiKeyLifecycleStateEnum = "DELETED" -) - -var mappingApiKeyLifecycleState = map[string]ApiKeyLifecycleStateEnum{ - "CREATING": ApiKeyLifecycleStateCreating, - "ACTIVE": ApiKeyLifecycleStateActive, - "INACTIVE": ApiKeyLifecycleStateInactive, - "DELETING": ApiKeyLifecycleStateDeleting, - "DELETED": ApiKeyLifecycleStateDeleted, -} - -// GetApiKeyLifecycleStateEnumValues Enumerates the set of values for ApiKeyLifecycleStateEnum -func GetApiKeyLifecycleStateEnumValues() []ApiKeyLifecycleStateEnum { - values := make([]ApiKeyLifecycleStateEnum, 0) - for _, v := range mappingApiKeyLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/auth_token.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/auth_token.go deleted file mode 100644 index 42eb6a8606..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/auth_token.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AuthToken An `AuthToken` is an Oracle-generated token string that you can use to authenticate with third-party APIs -// that do not support Oracle Cloud Infrastructure's signature-based authentication. For example, use an `AuthToken` -// to authenticate with a Swift client with the Object Storage Service. -// The auth token is associated with the user's Console login. Auth tokens never expire. A user can have up to two -// auth tokens at a time. -// **Note:** The token is always an Oracle-generated string; you can't change it to a string of your choice. -// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). -type AuthToken struct { - - // The auth token. The value is available only in the response for `CreateAuthToken`, and not - // for `ListAuthTokens` or `UpdateAuthToken`. - Token *string `mandatory:"false" json:"token"` - - // The OCID of the auth token. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the auth token belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The description you assign to the auth token. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Date and time the `AuthToken` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this auth token will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The token's current state. After creating an auth token, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState AuthTokenLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m AuthToken) String() string { - return common.PointerString(m) -} - -// AuthTokenLifecycleStateEnum Enum with underlying type: string -type AuthTokenLifecycleStateEnum string - -// Set of constants representing the allowable values for AuthTokenLifecycleStateEnum -const ( - AuthTokenLifecycleStateCreating AuthTokenLifecycleStateEnum = "CREATING" - AuthTokenLifecycleStateActive AuthTokenLifecycleStateEnum = "ACTIVE" - AuthTokenLifecycleStateInactive AuthTokenLifecycleStateEnum = "INACTIVE" - AuthTokenLifecycleStateDeleting AuthTokenLifecycleStateEnum = "DELETING" - AuthTokenLifecycleStateDeleted AuthTokenLifecycleStateEnum = "DELETED" -) - -var mappingAuthTokenLifecycleState = map[string]AuthTokenLifecycleStateEnum{ - "CREATING": AuthTokenLifecycleStateCreating, - "ACTIVE": AuthTokenLifecycleStateActive, - "INACTIVE": AuthTokenLifecycleStateInactive, - "DELETING": AuthTokenLifecycleStateDeleting, - "DELETED": AuthTokenLifecycleStateDeleted, -} - -// GetAuthTokenLifecycleStateEnumValues Enumerates the set of values for AuthTokenLifecycleStateEnum -func GetAuthTokenLifecycleStateEnumValues() []AuthTokenLifecycleStateEnum { - values := make([]AuthTokenLifecycleStateEnum, 0) - for _, v := range mappingAuthTokenLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/authentication_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/authentication_policy.go deleted file mode 100644 index ec0e1c4d12..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/authentication_policy.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AuthenticationPolicy Authentication policy, currently set for the given compartment -type AuthenticationPolicy struct { - PasswordPolicy *PasswordPolicy `mandatory:"false" json:"passwordPolicy"` - - // Compartment OCID. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - NetworkPolicy *NetworkPolicy `mandatory:"false" json:"networkPolicy"` -} - -func (m AuthenticationPolicy) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/availability_domain.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/availability_domain.go deleted file mode 100644 index 47c88d1183..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/availability_domain.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AvailabilityDomain One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes, -// and subnets. A region contains several Availability Domains. For more information, see -// Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -type AvailabilityDomain struct { - - // The name of the Availability Domain. - Name *string `mandatory:"false" json:"name"` - - // The OCID of the Availability Domain. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the tenancy. - CompartmentId *string `mandatory:"false" json:"compartmentId"` -} - -func (m AvailabilityDomain) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/base_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/base_tag_definition_validator.go deleted file mode 100644 index 717b4274e7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/base_tag_definition_validator.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BaseTagDefinitionValidator Validates a definedTag value. Each validator performs validation steps in addition to the standard -// validation for definedTag values. For more information, see -// Limits on Tags (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Limits). -// If you define a validator after a value has been set for a defined tag, then any updates that -// attempt to change the value must pass the additional validation defined by the current rule. -// Previously set values (even those that would fail the current validation) are not updated. You can -// still update other attributes to resources that contain a non-valid defined tag. -// To clear the validator call UpdateTag with -// DefaultTagDefinitionValidator (https://docs.cloud.oracle.com/api/#/en/identity/latest/datatypes/DefaultTagDefinitionValidator). -type BaseTagDefinitionValidator interface { -} - -type basetagdefinitionvalidator struct { - JsonData []byte - ValidatorType string `json:"validatorType"` -} - -// UnmarshalJSON unmarshals json -func (m *basetagdefinitionvalidator) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerbasetagdefinitionvalidator basetagdefinitionvalidator - s := struct { - Model Unmarshalerbasetagdefinitionvalidator - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.ValidatorType = s.Model.ValidatorType - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *basetagdefinitionvalidator) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.ValidatorType { - case "DEFAULT": - mm := DefaultTagDefinitionValidator{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ENUM": - mm := EnumTagDefinitionValidator{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m basetagdefinitionvalidator) String() string { - return common.PointerString(m) -} - -// BaseTagDefinitionValidatorValidatorTypeEnum Enum with underlying type: string -type BaseTagDefinitionValidatorValidatorTypeEnum string - -// Set of constants representing the allowable values for BaseTagDefinitionValidatorValidatorTypeEnum -const ( - BaseTagDefinitionValidatorValidatorTypeEnumvalue BaseTagDefinitionValidatorValidatorTypeEnum = "ENUM" - BaseTagDefinitionValidatorValidatorTypeDefault BaseTagDefinitionValidatorValidatorTypeEnum = "DEFAULT" -) - -var mappingBaseTagDefinitionValidatorValidatorType = map[string]BaseTagDefinitionValidatorValidatorTypeEnum{ - "ENUM": BaseTagDefinitionValidatorValidatorTypeEnumvalue, - "DEFAULT": BaseTagDefinitionValidatorValidatorTypeDefault, -} - -// GetBaseTagDefinitionValidatorValidatorTypeEnumValues Enumerates the set of values for BaseTagDefinitionValidatorValidatorTypeEnum -func GetBaseTagDefinitionValidatorValidatorTypeEnumValues() []BaseTagDefinitionValidatorValidatorTypeEnum { - values := make([]BaseTagDefinitionValidatorValidatorTypeEnum, 0) - for _, v := range mappingBaseTagDefinitionValidatorValidatorType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource.go deleted file mode 100644 index d7e4bcb904..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkActionResource The bulk action resource entity. -type BulkActionResource struct { - - // The resource OCID. - Identifier *string `mandatory:"true" json:"identifier"` - - // The resource-type. To get the list of supported resource-types use - // ListBulkActionResourceTypes. - EntityType *string `mandatory:"true" json:"entityType"` - - // Additional information that helps to identity the resource for bulk action. - // The APIs to delete and move most resource types only require the resource identifier (ocid). - // But some resource-types require additional identifying information. - // This information is provided in the resource's public API document. It is also - // available through the - // ListBulkActionResourceTypes. - // **Example**: - // The APIs to delete or move the `buckets` resource-type require `namespaceName` and `bucketName` to identify the resource, as - // shown in the APIs, DeleteBucket and - // UpdateBucket. - // To add a bucket for bulk actions, specify `namespaceName` and `bucketName` in - // the metadata property as shown in this example - // { - // "identifier": "" - // "entityType": "bucket", - // "metadata": - // { - // "namespaceName": "sampleNamespace", - // "bucketName": "sampleBucket" - // } - // } - Metadata map[string]string `mandatory:"false" json:"metadata"` -} - -func (m BulkActionResource) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type.go deleted file mode 100644 index a5219cbebe..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkActionResourceType The representation of BulkActionResourceType -type BulkActionResourceType struct { - - // The unique name of the resource-type. - Name *string `mandatory:"true" json:"name"` - - // List of metadata keys required to identify a specific resource. Some resource-types require information besides an OCID to identify - // a specific resource. For example, the resource-type `buckets` requires metadataKeys DeleteBucket. - MetadataKeys []string `mandatory:"false" json:"metadataKeys"` -} - -func (m BulkActionResourceType) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type_collection.go deleted file mode 100644 index 60d3b1c6f9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_action_resource_type_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkActionResourceTypeCollection Collection of resource-types supported by a compartment bulk action. -type BulkActionResourceTypeCollection struct { - - // Collection of the resource-types supported by a compartment bulk action. - Items []BulkActionResourceType `mandatory:"true" json:"items"` -} - -func (m BulkActionResourceTypeCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_details.go deleted file mode 100644 index b535207377..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkDeleteResourcesDetails The representation of BulkDeleteResourcesDetails -type BulkDeleteResourcesDetails struct { - - // The resources to be deleted. - Resources []BulkActionResource `mandatory:"true" json:"resources"` -} - -func (m BulkDeleteResourcesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_details.go deleted file mode 100644 index ccbb7de192..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkDeleteTagsDetails Properties for deleting tags in bulk -type BulkDeleteTagsDetails struct { - - // The OCIDs of the tag definitions to delete - TagDefinitionIds []string `mandatory:"true" json:"tagDefinitionIds"` -} - -func (m BulkDeleteTagsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_operation_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_operation_details.go deleted file mode 100644 index 90f72d522a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_operation_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkEditOperationDetails The representation of BulkEditOperationDetails -type BulkEditOperationDetails struct { - - // An enum-like description of the type of operation. - // * `ADD_WHERE_ABSENT` adds a defined tag only if the tag does not already exist on the resource. - // * `SET_WHERE_PRESENT` updates the value for a defined tag only if the tag is present on the resource. - // * `ADD_OR_SET` combines the first two operations to add a defined tag if it does not already exist on the resource - // or update the value for a defined tag only if the tag is present on the resource. - // * `REMOVE` removes the defined tag from the resource. The tag is removed from the resource regardless of the tag value. - OperationType BulkEditOperationDetailsOperationTypeEnum `mandatory:"true" json:"operationType"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` -} - -func (m BulkEditOperationDetails) String() string { - return common.PointerString(m) -} - -// BulkEditOperationDetailsOperationTypeEnum Enum with underlying type: string -type BulkEditOperationDetailsOperationTypeEnum string - -// Set of constants representing the allowable values for BulkEditOperationDetailsOperationTypeEnum -const ( - BulkEditOperationDetailsOperationTypeAddWhereAbsent BulkEditOperationDetailsOperationTypeEnum = "ADD_WHERE_ABSENT" - BulkEditOperationDetailsOperationTypeSetWherePresent BulkEditOperationDetailsOperationTypeEnum = "SET_WHERE_PRESENT" - BulkEditOperationDetailsOperationTypeAddOrSet BulkEditOperationDetailsOperationTypeEnum = "ADD_OR_SET" - BulkEditOperationDetailsOperationTypeRemove BulkEditOperationDetailsOperationTypeEnum = "REMOVE" -) - -var mappingBulkEditOperationDetailsOperationType = map[string]BulkEditOperationDetailsOperationTypeEnum{ - "ADD_WHERE_ABSENT": BulkEditOperationDetailsOperationTypeAddWhereAbsent, - "SET_WHERE_PRESENT": BulkEditOperationDetailsOperationTypeSetWherePresent, - "ADD_OR_SET": BulkEditOperationDetailsOperationTypeAddOrSet, - "REMOVE": BulkEditOperationDetailsOperationTypeRemove, -} - -// GetBulkEditOperationDetailsOperationTypeEnumValues Enumerates the set of values for BulkEditOperationDetailsOperationTypeEnum -func GetBulkEditOperationDetailsOperationTypeEnumValues() []BulkEditOperationDetailsOperationTypeEnum { - values := make([]BulkEditOperationDetailsOperationTypeEnum, 0) - for _, v := range mappingBulkEditOperationDetailsOperationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_resource.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_resource.go deleted file mode 100644 index 7fb7b837a4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_resource.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkEditResource The representation of BulkEditResource -type BulkEditResource struct { - - // The unique OCID of the resource. - Id *string `mandatory:"true" json:"id"` - - // The type of resource. See BulkEditResourceTypes. - ResourceType *string `mandatory:"true" json:"resourceType"` - - // Additional information that identifies the resource for bulk editing of tags. This information is provided in the resource's API documentation. - Metadata map[string]string `mandatory:"false" json:"metadata"` -} - -func (m BulkEditResource) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_details.go deleted file mode 100644 index 7baf60b529..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkEditTagsDetails The representation of BulkEditTagsDetails -type BulkEditTagsDetails struct { - - // The OCID of the compartment where the bulk tag edit request is submitted. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The resources to be updated. - Resources []BulkEditResource `mandatory:"true" json:"resources"` - - // The operations associated with the request to bulk edit tags. - BulkEditOperations []BulkEditOperationDetails `mandatory:"true" json:"bulkEditOperations"` -} - -func (m BulkEditTagsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type.go deleted file mode 100644 index 5f75e2bf55..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkEditTagsResourceType The representation of BulkEditTagsResourceType -type BulkEditTagsResourceType struct { - - // The unique name of the resource type. - ResourceType *string `mandatory:"true" json:"resourceType"` - - // The metadata keys required to identify the resource. - // For example, for a bucket, the value of `metadataKeys` will be "namespaceName", "bucketName". - // This information will match the API documentation. - // See UpdateBucket (https://docs.cloud.oracle.com/api/#/en/objectstorage/latest/Bucket/UpdateBucket) and - // DeleteBucket (https://docs.cloud.oracle.com/api/#/en/objectstorage/latest/Bucket/DeleteBucket). - MetadataKeys []string `mandatory:"false" json:"metadataKeys"` -} - -func (m BulkEditTagsResourceType) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type_collection.go deleted file mode 100644 index 583026ad8b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_resource_type_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkEditTagsResourceTypeCollection The list of resource types that support bulk editing of tags. -type BulkEditTagsResourceTypeCollection struct { - - // The collection of resource types that support bulk editing of tags. - Items []BulkEditTagsResourceType `mandatory:"true" json:"items"` -} - -func (m BulkEditTagsResourceTypeCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_details.go deleted file mode 100644 index cfa29ca5ce..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkImportStandardTagsDetails The representation of BulkImportStandardTagsDetails -type BulkImportStandardTagsDetails struct { - - // The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The names of standard tag namespaces that will be imported in bulk - StandardTagNamespaceNames []string `mandatory:"true" json:"standardTagNamespaceNames"` -} - -func (m BulkImportStandardTagsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_request_response.go deleted file mode 100644 index 4e0aaa07d2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_import_standard_tags_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// BulkImportStandardTagsRequest wrapper for the BulkImportStandardTags operation -type BulkImportStandardTagsRequest struct { - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The request object for bulk creating or updating standard tag namespaces. - BulkImportStandardTagsDetails `contributesTo:"body"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request BulkImportStandardTagsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request BulkImportStandardTagsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request BulkImportStandardTagsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request BulkImportStandardTagsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// BulkImportStandardTagsResponse wrapper for the BulkImportStandardTags operation -type BulkImportStandardTagsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` -} - -func (response BulkImportStandardTagsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response BulkImportStandardTagsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_details.go deleted file mode 100644 index 7bbc9706fc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BulkMoveResourcesDetails The representation of BulkMoveResourcesDetails -type BulkMoveResourcesDetails struct { - - // The resources to be moved. - Resources []BulkActionResource `mandatory:"true" json:"resources"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment - // into which to move the resources. - TargetCompartmentId *string `mandatory:"true" json:"targetCompartmentId"` -} - -func (m BulkMoveResourcesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_details.go deleted file mode 100644 index b015e93643..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_details.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeDomainCompartmentDetails The representation of ChangeDomainCompartmentDetails -type ChangeDomainCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment - // into which to move the domain. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeDomainCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_details.go deleted file mode 100644 index 1f716ada43..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeDomainLicenseTypeDetails Update domain license type -type ChangeDomainLicenseTypeDetails struct { - - // The License type of Domain - LicenseType *string `mandatory:"false" json:"licenseType"` -} - -func (m ChangeDomainLicenseTypeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_detail.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_detail.go deleted file mode 100644 index ce4c2aa766..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_detail.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeTagNamespaceCompartmentDetail Details of the compartment the resource is being moved to. -type ChangeTagNamespaceCompartmentDetail struct { - - // The Oracle Cloud ID (OCID) of the destination compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeTagNamespaceCompartmentDetail) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tas_domain_license_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tas_domain_license_type_details.go deleted file mode 100644 index 040673de55..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tas_domain_license_type_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeTasDomainLicenseTypeDetails Update domain license type -type ChangeTasDomainLicenseTypeDetails struct { - - // The License type of Domain - LicenseType *string `mandatory:"false" json:"licenseType"` -} - -func (m ChangeTasDomainLicenseTypeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/compartment.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/compartment.go deleted file mode 100644 index 142e2f29e0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/compartment.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Compartment A collection of related resources. Compartments are a fundamental component of Oracle Cloud Infrastructure -// for organizing and isolating your cloud resources. You use them to clearly separate resources for the purposes -// of measuring usage and billing, access (through the use of IAM Service policies), and isolation (separating the -// resources for one project or business unit from another). A common approach is to create a compartment for each -// major part of your organization. For more information, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm) and also -// Setting Up Your Tenancy (https://docs.cloud.oracle.com/Content/GSG/Concepts/settinguptenancy.htm). -// To place a resource in a compartment, simply specify the compartment ID in the "Create" request object when -// initially creating the resource. For example, to launch an instance into a particular compartment, specify -// that compartment's OCID in the `LaunchInstance` request. You can't move an existing resource from one -// compartment to another. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values -// using the API. -type Compartment struct { - - // The OCID of the compartment. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the parent compartment containing the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the compartment during creation. The name must be unique across all - // compartments in the parent. Avoid entering confidential information. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the compartment. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the compartment was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The compartment's current state. After creating a compartment, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState CompartmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // Indicates whether or not the compartment is accessible for the user making the request. - // Returns true when the user has INSPECT permissions directly on a resource in the - // compartment or indirectly (permissions can be on a resource in a subcompartment). - IsAccessible *bool `mandatory:"false" json:"isAccessible"` - - // The OCID of the Security Zone this compartment is associated with. - SecurityZoneId *string `mandatory:"false" json:"securityZoneId"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Compartment) String() string { - return common.PointerString(m) -} - -// CompartmentLifecycleStateEnum Enum with underlying type: string -type CompartmentLifecycleStateEnum string - -// Set of constants representing the allowable values for CompartmentLifecycleStateEnum -const ( - CompartmentLifecycleStateCreating CompartmentLifecycleStateEnum = "CREATING" - CompartmentLifecycleStateActive CompartmentLifecycleStateEnum = "ACTIVE" - CompartmentLifecycleStateInactive CompartmentLifecycleStateEnum = "INACTIVE" - CompartmentLifecycleStateDeleting CompartmentLifecycleStateEnum = "DELETING" - CompartmentLifecycleStateDeleted CompartmentLifecycleStateEnum = "DELETED" -) - -var mappingCompartmentLifecycleState = map[string]CompartmentLifecycleStateEnum{ - "CREATING": CompartmentLifecycleStateCreating, - "ACTIVE": CompartmentLifecycleStateActive, - "INACTIVE": CompartmentLifecycleStateInactive, - "DELETING": CompartmentLifecycleStateDeleting, - "DELETED": CompartmentLifecycleStateDeleted, -} - -// GetCompartmentLifecycleStateEnumValues Enumerates the set of values for CompartmentLifecycleStateEnum -func GetCompartmentLifecycleStateEnumValues() []CompartmentLifecycleStateEnum { - values := make([]CompartmentLifecycleStateEnum, 0) - for _, v := range mappingCompartmentLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_api_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_api_key_details.go deleted file mode 100644 index 2f631023cd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_api_key_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateApiKeyDetails The representation of CreateApiKeyDetails -type CreateApiKeyDetails struct { - - // The public key. Must be an RSA key in PEM format. - Key *string `mandatory:"true" json:"key"` -} - -func (m CreateApiKeyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_details.go deleted file mode 100644 index 88ae8ba4ac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateAuthTokenDetails The representation of CreateAuthTokenDetails -type CreateAuthTokenDetails struct { - - // The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateAuthTokenDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_details.go deleted file mode 100644 index 8950a6a8af..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateCustomerSecretKeyDetails The representation of CreateCustomerSecretKeyDetails -type CreateCustomerSecretKeyDetails struct { - - // The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"true" json:"displayName"` -} - -func (m CreateCustomerSecretKeyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_details.go deleted file mode 100644 index edb666409c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDbCredentialDetails The representation of CreateDbCredentialDetails -type CreateDbCredentialDetails struct { - - // The password for the DB credentials during creation. - Password *string `mandatory:"true" json:"password"` - - // The description you assign to the DB credentials during creation. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateDbCredentialDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_details.go deleted file mode 100644 index 4b5567013f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_details.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDomainDetails Create a domain details -type CreateDomainDetails struct { - - // The OCID of the Compartment where domain is created - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The mutable display name of the domain. - DisplayName *string `mandatory:"true" json:"displayName"` - - // Domain entity description - Description *string `mandatory:"true" json:"description"` - - // The region's name. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported region names. - // Example: `us-phoenix-1` - HomeRegion *string `mandatory:"true" json:"homeRegion"` - - // The License type of Domain - LicenseType *string `mandatory:"true" json:"licenseType"` - - // Indicates whether domain is hidden on login screen or not. - IsHiddenOnLogin *bool `mandatory:"false" json:"isHiddenOnLogin"` - - // The admin first name - AdminFirstName *string `mandatory:"false" json:"adminFirstName"` - - // The admin last name - AdminLastName *string `mandatory:"false" json:"adminLastName"` - - // The admin user name - AdminUserName *string `mandatory:"false" json:"adminUserName"` - - // The admin email address - AdminEmail *string `mandatory:"false" json:"adminEmail"` - - // Indicates if admin user created in IDCS stripe would like to receive notification like welcome email - // or not. - // Required field only if admin information is provided, otherwise optional. - IsNotificationBypassed *bool `mandatory:"false" json:"isNotificationBypassed"` - - // Optional field to indicate whether users in the domain are required to have a primary email address or not - // Defaults to true - IsPrimaryEmailRequired *bool `mandatory:"false" json:"isPrimaryEmailRequired"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags *interface{} `mandatory:"false" json:"definedTags"` - - // Key-value pair representing a defined tag key and value, scoped to a namespace. - // Example: `{"CostCenter": "42"}` - AdditionalProperties map[string]interface{} `mandatory:"false" json:"additionalProperties"` -} - -func (m CreateDomainDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_details.go deleted file mode 100644 index c5ae3add7a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateDynamicGroupDetails Properties for creating a dynamic group. -type CreateDynamicGroupDetails struct { - - // The OCID of the tenancy containing the group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the group during creation. The name must be unique across all groups - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The matching rule to dynamically match an instance certificate to this dynamic group. - // For rule syntax, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingdynamicgroups.htm). - MatchingRule *string `mandatory:"true" json:"matchingRule"` - - // The description you assign to the group during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateDynamicGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_details.go deleted file mode 100644 index 2fb5ab6386..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_details.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateGroupDetails The representation of CreateGroupDetails -type CreateGroupDetails struct { - - // The OCID of the tenancy containing the group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the group during creation. The name must be unique across all groups - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the group during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_details.go deleted file mode 100644 index 1120e2a273..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_details.go +++ /dev/null @@ -1,178 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateIdentityProviderDetails The representation of CreateIdentityProviderDetails -type CreateIdentityProviderDetails interface { - - // The OCID of your tenancy. - GetCompartmentId() *string - - // The name you assign to the `IdentityProvider` during creation. - // The name must be unique across all `IdentityProvider` objects in the - // tenancy and cannot be changed. - GetName() *string - - // The description you assign to the `IdentityProvider` during creation. - // Does not have to be unique, and it's changeable. - GetDescription() *string - - // The identity provider service or product. - // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft - // Active Directory Federation Services (ADFS). - // Example: `IDCS` - GetProductType() CreateIdentityProviderDetailsProductTypeEnum - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - GetFreeformTags() map[string]string - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - GetDefinedTags() map[string]map[string]interface{} -} - -type createidentityproviderdetails struct { - JsonData []byte - CompartmentId *string `mandatory:"true" json:"compartmentId"` - Name *string `mandatory:"true" json:"name"` - Description *string `mandatory:"true" json:"description"` - ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - Protocol string `json:"protocol"` -} - -// UnmarshalJSON unmarshals json -func (m *createidentityproviderdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalercreateidentityproviderdetails createidentityproviderdetails - s := struct { - Model Unmarshalercreateidentityproviderdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.CompartmentId = s.Model.CompartmentId - m.Name = s.Model.Name - m.Description = s.Model.Description - m.ProductType = s.Model.ProductType - m.FreeformTags = s.Model.FreeformTags - m.DefinedTags = s.Model.DefinedTags - m.Protocol = s.Model.Protocol - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *createidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Protocol { - case "SAML2": - mm := CreateSaml2IdentityProviderDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetCompartmentId returns CompartmentId -func (m createidentityproviderdetails) GetCompartmentId() *string { - return m.CompartmentId -} - -//GetName returns Name -func (m createidentityproviderdetails) GetName() *string { - return m.Name -} - -//GetDescription returns Description -func (m createidentityproviderdetails) GetDescription() *string { - return m.Description -} - -//GetProductType returns ProductType -func (m createidentityproviderdetails) GetProductType() CreateIdentityProviderDetailsProductTypeEnum { - return m.ProductType -} - -//GetFreeformTags returns FreeformTags -func (m createidentityproviderdetails) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -//GetDefinedTags returns DefinedTags -func (m createidentityproviderdetails) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -func (m createidentityproviderdetails) String() string { - return common.PointerString(m) -} - -// CreateIdentityProviderDetailsProductTypeEnum Enum with underlying type: string -type CreateIdentityProviderDetailsProductTypeEnum string - -// Set of constants representing the allowable values for CreateIdentityProviderDetailsProductTypeEnum -const ( - CreateIdentityProviderDetailsProductTypeIdcs CreateIdentityProviderDetailsProductTypeEnum = "IDCS" - CreateIdentityProviderDetailsProductTypeAdfs CreateIdentityProviderDetailsProductTypeEnum = "ADFS" -) - -var mappingCreateIdentityProviderDetailsProductType = map[string]CreateIdentityProviderDetailsProductTypeEnum{ - "IDCS": CreateIdentityProviderDetailsProductTypeIdcs, - "ADFS": CreateIdentityProviderDetailsProductTypeAdfs, -} - -// GetCreateIdentityProviderDetailsProductTypeEnumValues Enumerates the set of values for CreateIdentityProviderDetailsProductTypeEnum -func GetCreateIdentityProviderDetailsProductTypeEnumValues() []CreateIdentityProviderDetailsProductTypeEnum { - values := make([]CreateIdentityProviderDetailsProductTypeEnum, 0) - for _, v := range mappingCreateIdentityProviderDetailsProductType { - values = append(values, v) - } - return values -} - -// CreateIdentityProviderDetailsProtocolEnum Enum with underlying type: string -type CreateIdentityProviderDetailsProtocolEnum string - -// Set of constants representing the allowable values for CreateIdentityProviderDetailsProtocolEnum -const ( - CreateIdentityProviderDetailsProtocolSaml2 CreateIdentityProviderDetailsProtocolEnum = "SAML2" - CreateIdentityProviderDetailsProtocolAdfs CreateIdentityProviderDetailsProtocolEnum = "ADFS" -) - -var mappingCreateIdentityProviderDetailsProtocol = map[string]CreateIdentityProviderDetailsProtocolEnum{ - "SAML2": CreateIdentityProviderDetailsProtocolSaml2, - "ADFS": CreateIdentityProviderDetailsProtocolAdfs, -} - -// GetCreateIdentityProviderDetailsProtocolEnumValues Enumerates the set of values for CreateIdentityProviderDetailsProtocolEnum -func GetCreateIdentityProviderDetailsProtocolEnumValues() []CreateIdentityProviderDetailsProtocolEnum { - values := make([]CreateIdentityProviderDetailsProtocolEnum, 0) - for _, v := range mappingCreateIdentityProviderDetailsProtocol { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_details.go deleted file mode 100644 index 82f7d347e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_details.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateIdpGroupMappingDetails The representation of CreateIdpGroupMappingDetails -type CreateIdpGroupMappingDetails struct { - - // The name of the IdP group you want to map. - IdpGroupName *string `mandatory:"true" json:"idpGroupName"` - - // The OCID of the IAM Service Group - // you want to map to the IdP group. - GroupId *string `mandatory:"true" json:"groupId"` -} - -func (m CreateIdpGroupMappingDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth2_client_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth2_client_credential_details.go deleted file mode 100644 index a3686143d3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth2_client_credential_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateOAuth2ClientCredentialDetails The representation of CreateOAuth2ClientCredentialDetails -type CreateOAuth2ClientCredentialDetails struct { - - // Name of the oauth credential to help user differentiate them. - Name *string `mandatory:"true" json:"name"` - - // Description of the oauth credential to help user differentiate them. - Description *string `mandatory:"true" json:"description"` - - // Allowed scopes for the given oauth credential. - Scopes []FullyQualifiedScope `mandatory:"true" json:"scopes"` -} - -func (m CreateOAuth2ClientCredentialDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_details.go deleted file mode 100644 index 08fab14796..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_details.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateRegionSubscriptionDetails The representation of CreateRegionSubscriptionDetails -type CreateRegionSubscriptionDetails struct { - - // The regions's key. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) for - // the full list of supported 3-letter region codes. - // Example: `PHX` - RegionKey *string `mandatory:"true" json:"regionKey"` -} - -func (m CreateRegionSubscriptionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_details.go deleted file mode 100644 index 52a91ec328..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateSmtpCredentialDetails The representation of CreateSmtpCredentialDetails -type CreateSmtpCredentialDetails struct { - - // The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateSmtpCredentialDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_details.go deleted file mode 100644 index d71fe9c79d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateSwiftPasswordDetails The representation of CreateSwiftPasswordDetails -type CreateSwiftPasswordDetails struct { - - // The description you assign to the Swift password during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` -} - -func (m CreateSwiftPasswordDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_details.go deleted file mode 100644 index 0c2ed896d5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateTagDefaultDetails The representation of CreateTagDefaultDetails -type CreateTagDefaultDetails struct { - - // The OCID of the compartment. The tag default will be applied to all new resources created in this compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the tag definition. The tag default will always assign a default value for this tag definition. - TagDefinitionId *string `mandatory:"true" json:"tagDefinitionId"` - - // The default value for the tag definition. This will be applied to all new resources created in the compartment. - Value *string `mandatory:"true" json:"value"` - - // If you specify that a value is required, a value is set during resource creation (either by - // the user creating the resource or another tag defualt). If no value is set, resource - // creation is blocked. - // * If the `isRequired` flag is set to "true", the value is set during resource creation. - // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. - // Example: `false` - IsRequired *bool `mandatory:"false" json:"isRequired"` -} - -func (m CreateTagDefaultDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_details.go deleted file mode 100644 index 0079250276..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateTagNamespaceDetails The representation of CreateTagNamespaceDetails -type CreateTagNamespaceDetails struct { - - // The OCID of the tenancy containing the tag namespace. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the tag namespace during creation. - Description *string `mandatory:"true" json:"description"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateTagNamespaceDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_details.go deleted file mode 100644 index c6e634b291..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateUserDetails The representation of CreateUserDetails -type CreateUserDetails struct { - - // The OCID of the tenancy containing the user. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the user during creation. This is the user's login for the Console. - // The name must be unique across all users in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the user during creation. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // The email you assign to the user. Has to be unique across the tenancy. - Email *string `mandatory:"false" json:"email"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m CreateUserDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key.go deleted file mode 100644 index 5895b9c9fc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CustomerSecretKey A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's -// Amazon S3 compatible API (https://docs.cloud.oracle.com/Content/Object/Tasks/s3compatibleapi.htm). The key consists of a -// secret key/access key pair. A user can have up to two secret keys at a time. -// **Note:** The secret key is always an Oracle-generated string; you can't change it to a string of your choice. -// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). -type CustomerSecretKey struct { - - // The secret key. - Key *string `mandatory:"false" json:"key"` - - // The access key portion of the key pair. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the password belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The display name you assign to the secret key. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this password will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState CustomerSecretKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m CustomerSecretKey) String() string { - return common.PointerString(m) -} - -// CustomerSecretKeyLifecycleStateEnum Enum with underlying type: string -type CustomerSecretKeyLifecycleStateEnum string - -// Set of constants representing the allowable values for CustomerSecretKeyLifecycleStateEnum -const ( - CustomerSecretKeyLifecycleStateCreating CustomerSecretKeyLifecycleStateEnum = "CREATING" - CustomerSecretKeyLifecycleStateActive CustomerSecretKeyLifecycleStateEnum = "ACTIVE" - CustomerSecretKeyLifecycleStateInactive CustomerSecretKeyLifecycleStateEnum = "INACTIVE" - CustomerSecretKeyLifecycleStateDeleting CustomerSecretKeyLifecycleStateEnum = "DELETING" - CustomerSecretKeyLifecycleStateDeleted CustomerSecretKeyLifecycleStateEnum = "DELETED" -) - -var mappingCustomerSecretKeyLifecycleState = map[string]CustomerSecretKeyLifecycleStateEnum{ - "CREATING": CustomerSecretKeyLifecycleStateCreating, - "ACTIVE": CustomerSecretKeyLifecycleStateActive, - "INACTIVE": CustomerSecretKeyLifecycleStateInactive, - "DELETING": CustomerSecretKeyLifecycleStateDeleting, - "DELETED": CustomerSecretKeyLifecycleStateDeleted, -} - -// GetCustomerSecretKeyLifecycleStateEnumValues Enumerates the set of values for CustomerSecretKeyLifecycleStateEnum -func GetCustomerSecretKeyLifecycleStateEnumValues() []CustomerSecretKeyLifecycleStateEnum { - values := make([]CustomerSecretKeyLifecycleStateEnum, 0) - for _, v := range mappingCustomerSecretKeyLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key_summary.go deleted file mode 100644 index 5de77bb7ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/customer_secret_key_summary.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CustomerSecretKeySummary As the name suggests, a `CustomerSecretKeySummary` object contains information about a `CustomerSecretKey`. -// A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's Amazon S3 compatible API. -type CustomerSecretKeySummary struct { - - // The OCID of the secret key. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the password belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The displayName you assign to the secret key. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` - - // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this password will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState CustomerSecretKeySummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m CustomerSecretKeySummary) String() string { - return common.PointerString(m) -} - -// CustomerSecretKeySummaryLifecycleStateEnum Enum with underlying type: string -type CustomerSecretKeySummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for CustomerSecretKeySummaryLifecycleStateEnum -const ( - CustomerSecretKeySummaryLifecycleStateCreating CustomerSecretKeySummaryLifecycleStateEnum = "CREATING" - CustomerSecretKeySummaryLifecycleStateActive CustomerSecretKeySummaryLifecycleStateEnum = "ACTIVE" - CustomerSecretKeySummaryLifecycleStateInactive CustomerSecretKeySummaryLifecycleStateEnum = "INACTIVE" - CustomerSecretKeySummaryLifecycleStateDeleting CustomerSecretKeySummaryLifecycleStateEnum = "DELETING" - CustomerSecretKeySummaryLifecycleStateDeleted CustomerSecretKeySummaryLifecycleStateEnum = "DELETED" -) - -var mappingCustomerSecretKeySummaryLifecycleState = map[string]CustomerSecretKeySummaryLifecycleStateEnum{ - "CREATING": CustomerSecretKeySummaryLifecycleStateCreating, - "ACTIVE": CustomerSecretKeySummaryLifecycleStateActive, - "INACTIVE": CustomerSecretKeySummaryLifecycleStateInactive, - "DELETING": CustomerSecretKeySummaryLifecycleStateDeleting, - "DELETED": CustomerSecretKeySummaryLifecycleStateDeleted, -} - -// GetCustomerSecretKeySummaryLifecycleStateEnumValues Enumerates the set of values for CustomerSecretKeySummaryLifecycleStateEnum -func GetCustomerSecretKeySummaryLifecycleStateEnumValues() []CustomerSecretKeySummaryLifecycleStateEnum { - values := make([]CustomerSecretKeySummaryLifecycleStateEnum, 0) - for _, v := range mappingCustomerSecretKeySummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential.go deleted file mode 100644 index 1bff035519..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DbCredential Database credentials are needed for onboarding cloud database to identity. -// The DB credentials are used for DB authentication with the service. -type DbCredential struct { - - // The OCID of the DB credential. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the DB credential belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time the `DbCredential` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this credential will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState DbCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - LifecycleDetails *int64 `mandatory:"false" json:"lifecycleDetails"` -} - -func (m DbCredential) String() string { - return common.PointerString(m) -} - -// DbCredentialLifecycleStateEnum Enum with underlying type: string -type DbCredentialLifecycleStateEnum string - -// Set of constants representing the allowable values for DbCredentialLifecycleStateEnum -const ( - DbCredentialLifecycleStateCreating DbCredentialLifecycleStateEnum = "CREATING" - DbCredentialLifecycleStateActive DbCredentialLifecycleStateEnum = "ACTIVE" - DbCredentialLifecycleStateDeleting DbCredentialLifecycleStateEnum = "DELETING" - DbCredentialLifecycleStateDeleted DbCredentialLifecycleStateEnum = "DELETED" -) - -var mappingDbCredentialLifecycleState = map[string]DbCredentialLifecycleStateEnum{ - "CREATING": DbCredentialLifecycleStateCreating, - "ACTIVE": DbCredentialLifecycleStateActive, - "DELETING": DbCredentialLifecycleStateDeleting, - "DELETED": DbCredentialLifecycleStateDeleted, -} - -// GetDbCredentialLifecycleStateEnumValues Enumerates the set of values for DbCredentialLifecycleStateEnum -func GetDbCredentialLifecycleStateEnumValues() []DbCredentialLifecycleStateEnum { - values := make([]DbCredentialLifecycleStateEnum, 0) - for _, v := range mappingDbCredentialLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential_summary.go deleted file mode 100644 index 2025ed8ea3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/db_credential_summary.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DbCredentialSummary As the name suggests, an `DbCredentialSummary` object contains information about an `DbCredential`. -// The DB credential is used for DB authentication with -// the [DB Service]. -type DbCredentialSummary struct { - - // The OCID of the DB credential. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the DB credential belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The description you assign to the DB credential. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Date and time the `DbCredential` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this credential will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState DbCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m DbCredentialSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/default_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/default_tag_definition_validator.go deleted file mode 100644 index 08c75d4774..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/default_tag_definition_validator.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DefaultTagDefinitionValidator Use this validator to clear any existing validator on the tag key definition with the UpdateTag -// operation. Using this `validatorType` is the same as not setting any value on the validator field. -// The resultant value for `validatorType` returned in the response body is `null`. -type DefaultTagDefinitionValidator struct { -} - -func (m DefaultTagDefinitionValidator) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m DefaultTagDefinitionValidator) MarshalJSON() (buff []byte, e error) { - type MarshalTypeDefaultTagDefinitionValidator DefaultTagDefinitionValidator - s := struct { - DiscriminatorParam string `json:"validatorType"` - MarshalTypeDefaultTagDefinitionValidator - }{ - "DEFAULT", - (MarshalTypeDefaultTagDefinitionValidator)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain.go deleted file mode 100644 index 4254497185..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain.go +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Domain Properties for a Domain -type Domain struct { - - // The OCID of the domain - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment containing the domain. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The immutable name of the domain that is added at the domain creation time and - // needs to be used in policies to reference this domain. - Name *string `mandatory:"true" json:"name"` - - // The mutable display name of the domain - DisplayName *string `mandatory:"true" json:"displayName"` - - // The domain descripition - Description *string `mandatory:"true" json:"description"` - - // URL for the regional IDCS compatibility layer. - Url *string `mandatory:"true" json:"url"` - - // The home region for the domain. - // See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported region names. - // Example: `us-phoenix-1` - HomeRegion *string `mandatory:"true" json:"homeRegion"` - - // The regions domain is replication to. - ReplicaRegions []ReplicatedRegionDetails `mandatory:"true" json:"replicaRegions"` - - // The type of the domain. - Type DomainTypeEnum `mandatory:"true" json:"type"` - - // The License type of Domain - LicenseType *string `mandatory:"true" json:"licenseType"` - - // Indicates whether domain is hidden on login screen or not. - IsHiddenOnLogin *bool `mandatory:"true" json:"isHiddenOnLogin"` - - // Date and time the domain was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state. - LifecycleState DomainLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Any additional details about the current state of the Domain. - LifecycleDetails DomainLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Domain) String() string { - return common.PointerString(m) -} - -// DomainTypeEnum Enum with underlying type: string -type DomainTypeEnum string - -// Set of constants representing the allowable values for DomainTypeEnum -const ( - DomainTypeDefault DomainTypeEnum = "DEFAULT" - DomainTypeSecondary DomainTypeEnum = "SECONDARY" -) - -var mappingDomainType = map[string]DomainTypeEnum{ - "DEFAULT": DomainTypeDefault, - "SECONDARY": DomainTypeSecondary, -} - -// GetDomainTypeEnumValues Enumerates the set of values for DomainTypeEnum -func GetDomainTypeEnumValues() []DomainTypeEnum { - values := make([]DomainTypeEnum, 0) - for _, v := range mappingDomainType { - values = append(values, v) - } - return values -} - -// DomainLifecycleStateEnum Enum with underlying type: string -type DomainLifecycleStateEnum string - -// Set of constants representing the allowable values for DomainLifecycleStateEnum -const ( - DomainLifecycleStateCreating DomainLifecycleStateEnum = "CREATING" - DomainLifecycleStateActive DomainLifecycleStateEnum = "ACTIVE" - DomainLifecycleStateDeleting DomainLifecycleStateEnum = "DELETING" - DomainLifecycleStateInactive DomainLifecycleStateEnum = "INACTIVE" -) - -var mappingDomainLifecycleState = map[string]DomainLifecycleStateEnum{ - "CREATING": DomainLifecycleStateCreating, - "ACTIVE": DomainLifecycleStateActive, - "DELETING": DomainLifecycleStateDeleting, - "INACTIVE": DomainLifecycleStateInactive, -} - -// GetDomainLifecycleStateEnumValues Enumerates the set of values for DomainLifecycleStateEnum -func GetDomainLifecycleStateEnumValues() []DomainLifecycleStateEnum { - values := make([]DomainLifecycleStateEnum, 0) - for _, v := range mappingDomainLifecycleState { - values = append(values, v) - } - return values -} - -// DomainLifecycleDetailsEnum Enum with underlying type: string -type DomainLifecycleDetailsEnum string - -// Set of constants representing the allowable values for DomainLifecycleDetailsEnum -const ( - DomainLifecycleDetailsDeactivating DomainLifecycleDetailsEnum = "DEACTIVATING" - DomainLifecycleDetailsActivating DomainLifecycleDetailsEnum = "ACTIVATING" - DomainLifecycleDetailsUpdating DomainLifecycleDetailsEnum = "UPDATING" -) - -var mappingDomainLifecycleDetails = map[string]DomainLifecycleDetailsEnum{ - "DEACTIVATING": DomainLifecycleDetailsDeactivating, - "ACTIVATING": DomainLifecycleDetailsActivating, - "UPDATING": DomainLifecycleDetailsUpdating, -} - -// GetDomainLifecycleDetailsEnumValues Enumerates the set of values for DomainLifecycleDetailsEnum -func GetDomainLifecycleDetailsEnumValues() []DomainLifecycleDetailsEnum { - values := make([]DomainLifecycleDetailsEnum, 0) - for _, v := range mappingDomainLifecycleDetails { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication.go deleted file mode 100644 index 99ed6c16f3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DomainReplication Domain replication states. -type DomainReplication struct { - - // Version number indicating the value of kievTxnId, starting from which, the domain replication events need to be returned. - OpcWaterMark *float32 `mandatory:"true" json:"opcWaterMark"` - - // Custom value defining the order of records with same kievTxnId - TxnSeqNumber *float32 `mandatory:"true" json:"txnSeqNumber"` - - // The domain's replication state - DomainReplicationStates []DomainReplicationStates `mandatory:"true" json:"domainReplicationStates"` -} - -func (m DomainReplication) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication_states.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication_states.go deleted file mode 100644 index 350631d127..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_replication_states.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DomainReplicationStates Domain replication replication log for all domains for a given region -type DomainReplicationStates struct { - - // The OCID of the domain - DomainId *string `mandatory:"true" json:"domainId"` - - // The IDCS replicated region state - State ReplicatedRegionDetailsStateEnum `mandatory:"true" json:"state"` - - // The replica region for domain. - ReplicaRegion *string `mandatory:"true" json:"replicaRegion"` -} - -func (m DomainReplicationStates) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_summary.go deleted file mode 100644 index c1d99394f8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/domain_summary.go +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DomainSummary As the name suggests, a `DomainSummary` object contains information about a `Domain`. -type DomainSummary struct { - - // The OCID of the domain - Id *string `mandatory:"true" json:"id"` - - // The OCID of the comparment containing the domain. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The immutable name of the domain that is added at the domain creation time and - // needs to be used in policies to reference this domain. - Name *string `mandatory:"true" json:"name"` - - // The mutable display name of the domain - DisplayName *string `mandatory:"true" json:"displayName"` - - // The domain descripition - Description *string `mandatory:"true" json:"description"` - - // URL for the regional IDCS compatibility layer. - Url *string `mandatory:"true" json:"url"` - - // The home region for the domain. - HomeRegion *string `mandatory:"true" json:"homeRegion"` - - // The regions domain is replicated to. - ReplicaRegions []ReplicatedRegionDetails `mandatory:"true" json:"replicaRegions"` - - // The type of the domain. - Type DomainTypeEnum `mandatory:"true" json:"type"` - - // The License type of Domain - LicenseType *string `mandatory:"true" json:"licenseType"` - - // Indicates whether domain is hidden on login screen or not. - IsHiddenOnLogin *bool `mandatory:"true" json:"isHiddenOnLogin"` - - // Date and time the domain was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state. - LifecycleState DomainLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Any additional details about the current state of the Domain. - LifecycleDetails DomainSummaryLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m DomainSummary) String() string { - return common.PointerString(m) -} - -// DomainSummaryLifecycleDetailsEnum Enum with underlying type: string -type DomainSummaryLifecycleDetailsEnum string - -// Set of constants representing the allowable values for DomainSummaryLifecycleDetailsEnum -const ( - DomainSummaryLifecycleDetailsDeactivating DomainSummaryLifecycleDetailsEnum = "DEACTIVATING" - DomainSummaryLifecycleDetailsActivating DomainSummaryLifecycleDetailsEnum = "ACTIVATING" - DomainSummaryLifecycleDetailsUpdating DomainSummaryLifecycleDetailsEnum = "UPDATING" -) - -var mappingDomainSummaryLifecycleDetails = map[string]DomainSummaryLifecycleDetailsEnum{ - "DEACTIVATING": DomainSummaryLifecycleDetailsDeactivating, - "ACTIVATING": DomainSummaryLifecycleDetailsActivating, - "UPDATING": DomainSummaryLifecycleDetailsUpdating, -} - -// GetDomainSummaryLifecycleDetailsEnumValues Enumerates the set of values for DomainSummaryLifecycleDetailsEnum -func GetDomainSummaryLifecycleDetailsEnumValues() []DomainSummaryLifecycleDetailsEnum { - values := make([]DomainSummaryLifecycleDetailsEnum, 0) - for _, v := range mappingDomainSummaryLifecycleDetails { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/dynamic_group.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/dynamic_group.go deleted file mode 100644 index 748802c2d8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/dynamic_group.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// DynamicGroup A dynamic group defines a matching rule. Every bare metal or virtual machine instance is deployed with an instance certificate. -// The certificate contains metadata about the instance. This includes the instance OCID and the compartment OCID, along -// with a few other optional properties. When an API call is made using this instance certificate as the authenticator, -// the certificate can be matched to one or multiple dynamic groups. The instance can then get access to the API -// based on the permissions granted in policies written for the dynamic groups. -// This works like regular user/group membership. But in that case, the membership is a static relationship, whereas -// in a dynamic group, the membership of an instance certificate to a dynamic group is determined during runtime. -// For more information, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingdynamicgroups.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using -// the API. -type DynamicGroup struct { - - // The OCID of the group. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the group during creation. The name must be unique across all groups in - // the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the group. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // A rule string that defines which instance certificates will be matched. - // For syntax, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingdynamicgroups.htm). - MatchingRule *string `mandatory:"true" json:"matchingRule"` - - // Date and time the group was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState DynamicGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m DynamicGroup) String() string { - return common.PointerString(m) -} - -// DynamicGroupLifecycleStateEnum Enum with underlying type: string -type DynamicGroupLifecycleStateEnum string - -// Set of constants representing the allowable values for DynamicGroupLifecycleStateEnum -const ( - DynamicGroupLifecycleStateCreating DynamicGroupLifecycleStateEnum = "CREATING" - DynamicGroupLifecycleStateActive DynamicGroupLifecycleStateEnum = "ACTIVE" - DynamicGroupLifecycleStateInactive DynamicGroupLifecycleStateEnum = "INACTIVE" - DynamicGroupLifecycleStateDeleting DynamicGroupLifecycleStateEnum = "DELETING" - DynamicGroupLifecycleStateDeleted DynamicGroupLifecycleStateEnum = "DELETED" -) - -var mappingDynamicGroupLifecycleState = map[string]DynamicGroupLifecycleStateEnum{ - "CREATING": DynamicGroupLifecycleStateCreating, - "ACTIVE": DynamicGroupLifecycleStateActive, - "INACTIVE": DynamicGroupLifecycleStateInactive, - "DELETING": DynamicGroupLifecycleStateDeleting, - "DELETED": DynamicGroupLifecycleStateDeleted, -} - -// GetDynamicGroupLifecycleStateEnumValues Enumerates the set of values for DynamicGroupLifecycleStateEnum -func GetDynamicGroupLifecycleStateEnumValues() []DynamicGroupLifecycleStateEnum { - values := make([]DynamicGroupLifecycleStateEnum, 0) - for _, v := range mappingDynamicGroupLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_details.go deleted file mode 100644 index 0ca6d98e05..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EnableReplicationToRegionDetails Domain replication request packet -type EnableReplicationToRegionDetails struct { - - // A region for which domain replication is requested for. - // See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported region names. - // Example: `us-phoenix-1` - ReplicaRegion *string `mandatory:"false" json:"replicaRegion"` -} - -func (m EnableReplicationToRegionDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/enum_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/enum_tag_definition_validator.go deleted file mode 100644 index c879335c6b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/enum_tag_definition_validator.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// EnumTagDefinitionValidator Used to validate the value set for a defined tag and contains the list of allowable `values`. -// You must specify at least one valid value in the `values` array. You can't have blank or -// or empty strings (`""`). Duplicate values are not allowed. -type EnumTagDefinitionValidator struct { - - // The list of allowed values for a definedTag value. - Values []string `mandatory:"false" json:"values"` -} - -func (m EnumTagDefinitionValidator) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m EnumTagDefinitionValidator) MarshalJSON() (buff []byte, e error) { - type MarshalTypeEnumTagDefinitionValidator EnumTagDefinitionValidator - s := struct { - DiscriminatorParam string `json:"validatorType"` - MarshalTypeEnumTagDefinitionValidator - }{ - "ENUM", - (MarshalTypeEnumTagDefinitionValidator)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/fault_domain.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/fault_domain.go deleted file mode 100644 index 25e9341a02..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/fault_domain.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FaultDomain A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become -// unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to -// planned software maintenance such as security updates that reboot your instances. -type FaultDomain struct { - - // The name of the Fault Domain. - Name *string `mandatory:"false" json:"name"` - - // The OCID of the Fault Domain. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the compartment. Currently only tenancy (root) compartment can be provided. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the availabilityDomain where the Fault Domain belongs. - AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` -} - -func (m FaultDomain) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/fully_qualified_scope.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/fully_qualified_scope.go deleted file mode 100644 index 656b0d4aac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/fully_qualified_scope.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FullyQualifiedScope The representation of FullyQualifiedScope -type FullyQualifiedScope struct { - - // Audience for the given scope context. - Audience *string `mandatory:"true" json:"audience"` - - // Allowed permission scope for the given context. - Scope *string `mandatory:"true" json:"scope"` -} - -func (m FullyQualifiedScope) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_compartment_request_response.go deleted file mode 100644 index d841fa8d03..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_compartment_request_response.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetCompartmentRequest wrapper for the GetCompartment operation -type GetCompartmentRequest struct { - - // The OCID of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"path" name:"compartmentId"` - - // This parameter is required to retrieve securityZoneId associated with the compartment. - VerboseLevel GetCompartmentVerboseLevelEnum `mandatory:"false" contributesTo:"query" name:"verboseLevel" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetCompartmentRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCompartmentRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetCompartmentResponse wrapper for the GetCompartment operation -type GetCompartmentResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Compartment instance - Compartment `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` -} - -func (response GetCompartmentResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCompartmentResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// GetCompartmentVerboseLevelEnum Enum with underlying type: string -type GetCompartmentVerboseLevelEnum string - -// Set of constants representing the allowable values for GetCompartmentVerboseLevelEnum -const ( - GetCompartmentVerboseLevelSecurityzone GetCompartmentVerboseLevelEnum = "securityZone" -) - -var mappingGetCompartmentVerboseLevel = map[string]GetCompartmentVerboseLevelEnum{ - "securityZone": GetCompartmentVerboseLevelSecurityzone, -} - -// GetGetCompartmentVerboseLevelEnumValues Enumerates the set of values for GetCompartmentVerboseLevelEnum -func GetGetCompartmentVerboseLevelEnumValues() []GetCompartmentVerboseLevelEnum { - values := make([]GetCompartmentVerboseLevelEnum, 0) - for _, v := range mappingGetCompartmentVerboseLevel { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_work_request_request_response.go deleted file mode 100644 index f0a5213cd0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_work_request_request_response.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetWorkRequestRequest wrapper for the GetWorkRequest operation -type GetWorkRequestRequest struct { - - // The OCID of the work request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetWorkRequestRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetWorkRequestResponse wrapper for the GetWorkRequest operation -type GetWorkRequestResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The WorkRequest instance - WorkRequest `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The number of seconds that the client should wait before polling again. - RetryAfter *float32 `presentIn:"header" name:"retry-after"` -} - -func (response GetWorkRequestResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetWorkRequestResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/group.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/group.go deleted file mode 100644 index b400d36f05..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/group.go +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Group A collection of users who all need the same type of access to a particular set of resources or compartment. -// For conceptual information about groups and other IAM Service components, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// If you're federating with an identity provider (IdP), you need to create mappings between the groups -// defined in the IdP and groups you define in the IAM service. For more information, see -// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). Also see -// IdentityProvider and -// IdpGroupMapping. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values -// using the API. -type Group struct { - - // The OCID of the group. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the group. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the group during creation. The name must be unique across all groups in - // the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the group. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the group was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState GroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Group) String() string { - return common.PointerString(m) -} - -// GroupLifecycleStateEnum Enum with underlying type: string -type GroupLifecycleStateEnum string - -// Set of constants representing the allowable values for GroupLifecycleStateEnum -const ( - GroupLifecycleStateCreating GroupLifecycleStateEnum = "CREATING" - GroupLifecycleStateActive GroupLifecycleStateEnum = "ACTIVE" - GroupLifecycleStateInactive GroupLifecycleStateEnum = "INACTIVE" - GroupLifecycleStateDeleting GroupLifecycleStateEnum = "DELETING" - GroupLifecycleStateDeleted GroupLifecycleStateEnum = "DELETED" -) - -var mappingGroupLifecycleState = map[string]GroupLifecycleStateEnum{ - "CREATING": GroupLifecycleStateCreating, - "ACTIVE": GroupLifecycleStateActive, - "INACTIVE": GroupLifecycleStateInactive, - "DELETING": GroupLifecycleStateDeleting, - "DELETED": GroupLifecycleStateDeleted, -} - -// GetGroupLifecycleStateEnumValues Enumerates the set of values for GroupLifecycleStateEnum -func GetGroupLifecycleStateEnumValues() []GroupLifecycleStateEnum { - values := make([]GroupLifecycleStateEnum, 0) - for _, v := range mappingGroupLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request.go deleted file mode 100644 index 0906cd15df..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IamWorkRequest A IAM work request object that allows users to track Asynchronous API status. -type IamWorkRequest struct { - - // The OCID of the work request. - Id *string `mandatory:"true" json:"id"` - - // The asynchronous operation tracked by this IAM work request. - OperationType IamWorkRequestOperationTypeEnum `mandatory:"true" json:"operationType"` - - // Status of the work request - Status IamWorkRequestStatusEnum `mandatory:"true" json:"status"` - - // The OCID of the compartment containing this IAM work request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []IamWorkRequestResource `mandatory:"false" json:"resources"` - - // How much progress the operation has made. - PercentComplete *float32 `mandatory:"false" json:"percentComplete"` - - // Date and time the work was accepted, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // Date and time the work started, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // Date and time the work completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m IamWorkRequest) String() string { - return common.PointerString(m) -} - -// IamWorkRequestOperationTypeEnum Enum with underlying type: string -type IamWorkRequestOperationTypeEnum string - -// Set of constants representing the allowable values for IamWorkRequestOperationTypeEnum -const ( - IamWorkRequestOperationTypeCreateDomain IamWorkRequestOperationTypeEnum = "CREATE_DOMAIN" - IamWorkRequestOperationTypeReplicateDomainToRegion IamWorkRequestOperationTypeEnum = "REPLICATE_DOMAIN_TO_REGION" - IamWorkRequestOperationTypeUpdateDomain IamWorkRequestOperationTypeEnum = "UPDATE_DOMAIN" - IamWorkRequestOperationTypeActivateDomain IamWorkRequestOperationTypeEnum = "ACTIVATE_DOMAIN" - IamWorkRequestOperationTypeDeactivateDomain IamWorkRequestOperationTypeEnum = "DEACTIVATE_DOMAIN" - IamWorkRequestOperationTypeDeleteDomain IamWorkRequestOperationTypeEnum = "DELETE_DOMAIN" - IamWorkRequestOperationTypeChangeCompartmentForDomain IamWorkRequestOperationTypeEnum = "CHANGE_COMPARTMENT_FOR_DOMAIN" - IamWorkRequestOperationTypeChangeLicenseTypeForDomain IamWorkRequestOperationTypeEnum = "CHANGE_LICENSE_TYPE_FOR_DOMAIN" -) - -var mappingIamWorkRequestOperationType = map[string]IamWorkRequestOperationTypeEnum{ - "CREATE_DOMAIN": IamWorkRequestOperationTypeCreateDomain, - "REPLICATE_DOMAIN_TO_REGION": IamWorkRequestOperationTypeReplicateDomainToRegion, - "UPDATE_DOMAIN": IamWorkRequestOperationTypeUpdateDomain, - "ACTIVATE_DOMAIN": IamWorkRequestOperationTypeActivateDomain, - "DEACTIVATE_DOMAIN": IamWorkRequestOperationTypeDeactivateDomain, - "DELETE_DOMAIN": IamWorkRequestOperationTypeDeleteDomain, - "CHANGE_COMPARTMENT_FOR_DOMAIN": IamWorkRequestOperationTypeChangeCompartmentForDomain, - "CHANGE_LICENSE_TYPE_FOR_DOMAIN": IamWorkRequestOperationTypeChangeLicenseTypeForDomain, -} - -// GetIamWorkRequestOperationTypeEnumValues Enumerates the set of values for IamWorkRequestOperationTypeEnum -func GetIamWorkRequestOperationTypeEnumValues() []IamWorkRequestOperationTypeEnum { - values := make([]IamWorkRequestOperationTypeEnum, 0) - for _, v := range mappingIamWorkRequestOperationType { - values = append(values, v) - } - return values -} - -// IamWorkRequestStatusEnum Enum with underlying type: string -type IamWorkRequestStatusEnum string - -// Set of constants representing the allowable values for IamWorkRequestStatusEnum -const ( - IamWorkRequestStatusAccepted IamWorkRequestStatusEnum = "ACCEPTED" - IamWorkRequestStatusInProgress IamWorkRequestStatusEnum = "IN_PROGRESS" - IamWorkRequestStatusFailed IamWorkRequestStatusEnum = "FAILED" - IamWorkRequestStatusSucceeded IamWorkRequestStatusEnum = "SUCCEEDED" - IamWorkRequestStatusCanceling IamWorkRequestStatusEnum = "CANCELING" - IamWorkRequestStatusCanceled IamWorkRequestStatusEnum = "CANCELED" -) - -var mappingIamWorkRequestStatus = map[string]IamWorkRequestStatusEnum{ - "ACCEPTED": IamWorkRequestStatusAccepted, - "IN_PROGRESS": IamWorkRequestStatusInProgress, - "FAILED": IamWorkRequestStatusFailed, - "SUCCEEDED": IamWorkRequestStatusSucceeded, - "CANCELING": IamWorkRequestStatusCanceling, - "CANCELED": IamWorkRequestStatusCanceled, -} - -// GetIamWorkRequestStatusEnumValues Enumerates the set of values for IamWorkRequestStatusEnum -func GetIamWorkRequestStatusEnumValues() []IamWorkRequestStatusEnum { - values := make([]IamWorkRequestStatusEnum, 0) - for _, v := range mappingIamWorkRequestStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_error_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_error_summary.go deleted file mode 100644 index 404ba871e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_error_summary.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IamWorkRequestErrorSummary An error encountered while executing an operation that is tracked by a IAM work request. -type IamWorkRequestErrorSummary struct { - - // A machine-usable code for the error that occured. - Code *string `mandatory:"true" json:"code"` - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // The date and time the error occurred. - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` -} - -func (m IamWorkRequestErrorSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_log_summary.go deleted file mode 100644 index fbe12b804e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_log_summary.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IamWorkRequestLogSummary The log entity for a IAM work request. -type IamWorkRequestLogSummary struct { - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // Date and time the log was written, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` -} - -func (m IamWorkRequestLogSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_resource.go deleted file mode 100644 index e49b86a0ca..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_resource.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IamWorkRequestResource A IAM work request resource entry -type IamWorkRequestResource struct { - - // The way in which this resource is affected by the work tracked in the work request. - // A resource being created, updated, or deleted will remain in the IN_PROGRESS state until - // work is complete for that resource at which point it will transition to CREATED, UPDATED, - // or DELETED, respectively. - ActionType IamWorkRequestResourceActionTypeEnum `mandatory:"true" json:"actionType"` - - // The resource type the work request is affects. - EntityType *string `mandatory:"true" json:"entityType"` - - // An OCID of the resource that the work request affects. - Identifier *string `mandatory:"true" json:"identifier"` - - // The URI path that the user can do a GET on to access the resource metadata. - EntityUri *string `mandatory:"false" json:"entityUri"` -} - -func (m IamWorkRequestResource) String() string { - return common.PointerString(m) -} - -// IamWorkRequestResourceActionTypeEnum Enum with underlying type: string -type IamWorkRequestResourceActionTypeEnum string - -// Set of constants representing the allowable values for IamWorkRequestResourceActionTypeEnum -const ( - IamWorkRequestResourceActionTypeCreated IamWorkRequestResourceActionTypeEnum = "CREATED" - IamWorkRequestResourceActionTypeUpdated IamWorkRequestResourceActionTypeEnum = "UPDATED" - IamWorkRequestResourceActionTypeDeleted IamWorkRequestResourceActionTypeEnum = "DELETED" - IamWorkRequestResourceActionTypeRelated IamWorkRequestResourceActionTypeEnum = "RELATED" - IamWorkRequestResourceActionTypeInProgress IamWorkRequestResourceActionTypeEnum = "IN_PROGRESS" -) - -var mappingIamWorkRequestResourceActionType = map[string]IamWorkRequestResourceActionTypeEnum{ - "CREATED": IamWorkRequestResourceActionTypeCreated, - "UPDATED": IamWorkRequestResourceActionTypeUpdated, - "DELETED": IamWorkRequestResourceActionTypeDeleted, - "RELATED": IamWorkRequestResourceActionTypeRelated, - "IN_PROGRESS": IamWorkRequestResourceActionTypeInProgress, -} - -// GetIamWorkRequestResourceActionTypeEnumValues Enumerates the set of values for IamWorkRequestResourceActionTypeEnum -func GetIamWorkRequestResourceActionTypeEnumValues() []IamWorkRequestResourceActionTypeEnum { - values := make([]IamWorkRequestResourceActionTypeEnum, 0) - for _, v := range mappingIamWorkRequestResourceActionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_summary.go deleted file mode 100644 index 4ed71c330a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/iam_work_request_summary.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IamWorkRequestSummary The IAM work request summary. Tracks the status of the asynchronous operations. -type IamWorkRequestSummary struct { - - // The OCID of the work request. - Id *string `mandatory:"true" json:"id"` - - // The asynchronous operation tracked by this IAM work request. - OperationType IamWorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"` - - // Status of the work request - Status IamWorkRequestSummaryStatusEnum `mandatory:"true" json:"status"` - - // The OCID of the compartment containing this IAM work request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []IamWorkRequestResource `mandatory:"false" json:"resources"` - - // How much progress the operation has made. - PercentComplete *float32 `mandatory:"false" json:"percentComplete"` - - // Date and time the work was accepted, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // Date and time the work started, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // Date and time the work completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m IamWorkRequestSummary) String() string { - return common.PointerString(m) -} - -// IamWorkRequestSummaryOperationTypeEnum Enum with underlying type: string -type IamWorkRequestSummaryOperationTypeEnum string - -// Set of constants representing the allowable values for IamWorkRequestSummaryOperationTypeEnum -const ( - IamWorkRequestSummaryOperationTypeCreateDomain IamWorkRequestSummaryOperationTypeEnum = "CREATE_DOMAIN" - IamWorkRequestSummaryOperationTypeReplicateDomainToRegion IamWorkRequestSummaryOperationTypeEnum = "REPLICATE_DOMAIN_TO_REGION" - IamWorkRequestSummaryOperationTypeUpdateDomain IamWorkRequestSummaryOperationTypeEnum = "UPDATE_DOMAIN" - IamWorkRequestSummaryOperationTypeActivateDomain IamWorkRequestSummaryOperationTypeEnum = "ACTIVATE_DOMAIN" - IamWorkRequestSummaryOperationTypeDeactivateDomain IamWorkRequestSummaryOperationTypeEnum = "DEACTIVATE_DOMAIN" - IamWorkRequestSummaryOperationTypeDeleteDomain IamWorkRequestSummaryOperationTypeEnum = "DELETE_DOMAIN" - IamWorkRequestSummaryOperationTypeChangeCompartmentForDomain IamWorkRequestSummaryOperationTypeEnum = "CHANGE_COMPARTMENT_FOR_DOMAIN" - IamWorkRequestSummaryOperationTypeChangeLicenseTypeForDomain IamWorkRequestSummaryOperationTypeEnum = "CHANGE_LICENSE_TYPE_FOR_DOMAIN" -) - -var mappingIamWorkRequestSummaryOperationType = map[string]IamWorkRequestSummaryOperationTypeEnum{ - "CREATE_DOMAIN": IamWorkRequestSummaryOperationTypeCreateDomain, - "REPLICATE_DOMAIN_TO_REGION": IamWorkRequestSummaryOperationTypeReplicateDomainToRegion, - "UPDATE_DOMAIN": IamWorkRequestSummaryOperationTypeUpdateDomain, - "ACTIVATE_DOMAIN": IamWorkRequestSummaryOperationTypeActivateDomain, - "DEACTIVATE_DOMAIN": IamWorkRequestSummaryOperationTypeDeactivateDomain, - "DELETE_DOMAIN": IamWorkRequestSummaryOperationTypeDeleteDomain, - "CHANGE_COMPARTMENT_FOR_DOMAIN": IamWorkRequestSummaryOperationTypeChangeCompartmentForDomain, - "CHANGE_LICENSE_TYPE_FOR_DOMAIN": IamWorkRequestSummaryOperationTypeChangeLicenseTypeForDomain, -} - -// GetIamWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for IamWorkRequestSummaryOperationTypeEnum -func GetIamWorkRequestSummaryOperationTypeEnumValues() []IamWorkRequestSummaryOperationTypeEnum { - values := make([]IamWorkRequestSummaryOperationTypeEnum, 0) - for _, v := range mappingIamWorkRequestSummaryOperationType { - values = append(values, v) - } - return values -} - -// IamWorkRequestSummaryStatusEnum Enum with underlying type: string -type IamWorkRequestSummaryStatusEnum string - -// Set of constants representing the allowable values for IamWorkRequestSummaryStatusEnum -const ( - IamWorkRequestSummaryStatusAccepted IamWorkRequestSummaryStatusEnum = "ACCEPTED" - IamWorkRequestSummaryStatusInProgress IamWorkRequestSummaryStatusEnum = "IN_PROGRESS" - IamWorkRequestSummaryStatusFailed IamWorkRequestSummaryStatusEnum = "FAILED" - IamWorkRequestSummaryStatusSucceeded IamWorkRequestSummaryStatusEnum = "SUCCEEDED" - IamWorkRequestSummaryStatusCanceling IamWorkRequestSummaryStatusEnum = "CANCELING" - IamWorkRequestSummaryStatusCanceled IamWorkRequestSummaryStatusEnum = "CANCELED" -) - -var mappingIamWorkRequestSummaryStatus = map[string]IamWorkRequestSummaryStatusEnum{ - "ACCEPTED": IamWorkRequestSummaryStatusAccepted, - "IN_PROGRESS": IamWorkRequestSummaryStatusInProgress, - "FAILED": IamWorkRequestSummaryStatusFailed, - "SUCCEEDED": IamWorkRequestSummaryStatusSucceeded, - "CANCELING": IamWorkRequestSummaryStatusCanceling, - "CANCELED": IamWorkRequestSummaryStatusCanceled, -} - -// GetIamWorkRequestSummaryStatusEnumValues Enumerates the set of values for IamWorkRequestSummaryStatusEnum -func GetIamWorkRequestSummaryStatusEnumValues() []IamWorkRequestSummaryStatusEnum { - values := make([]IamWorkRequestSummaryStatusEnum, 0) - for _, v := range mappingIamWorkRequestSummaryStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider_group_summary.go deleted file mode 100644 index 659627fbe6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider_group_summary.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IdentityProviderGroupSummary A group created in an identity provider that can be mapped to a group in OCI -type IdentityProviderGroupSummary struct { - - // The OCID of the `IdentityProviderGroup`. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the `IdentityProvider` this group belongs to. - IdentityProviderId *string `mandatory:"false" json:"identityProviderId"` - - // Display name of the group - DisplayName *string `mandatory:"false" json:"displayName"` - - // Display name of the group - Name *string `mandatory:"false" json:"name"` - - // Identifier of the group in the identity provider - ExternalIdentifier *string `mandatory:"false" json:"externalIdentifier"` - - // Date and time the `IdentityProviderGroup` was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time the `IdentityProviderGroup` was last modified, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeModified *common.SDKTime `mandatory:"false" json:"timeModified"` -} - -func (m IdentityProviderGroupSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/idp_group_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/idp_group_mapping.go deleted file mode 100644 index 34a1bde1cf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/idp_group_mapping.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IdpGroupMapping A mapping between a single group defined by the identity provider (IdP) you're federating with -// and a single IAM Service Group in Oracle Cloud Infrastructure. -// For more information about group mappings and what they're for, see -// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). -// A given IdP group can be mapped to zero, one, or multiple IAM Service groups, and vice versa. -// But each `IdPGroupMapping` object is between only a single IdP group and IAM Service group. -// Each `IdPGroupMapping` object has its own OCID. -// **Note:** Any users who are in more than 50 IdP groups cannot be authenticated to use the Oracle -// Cloud Infrastructure Console. -type IdpGroupMapping struct { - - // The OCID of the `IdpGroupMapping`. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the `IdentityProvider` this mapping belongs to. - IdpId *string `mandatory:"true" json:"idpId"` - - // The name of the IdP group that is mapped to the IAM Service group. - IdpGroupName *string `mandatory:"true" json:"idpGroupName"` - - // The OCID of the IAM Service group that is mapped to the IdP group. - GroupId *string `mandatory:"true" json:"groupId"` - - // The OCID of the tenancy containing the `IdentityProvider`. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // Date and time the mapping was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The mapping's current state. After creating a mapping object, make sure its `lifecycleState` changes - // from CREATING to ACTIVE before using it. - LifecycleState IdpGroupMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m IdpGroupMapping) String() string { - return common.PointerString(m) -} - -// IdpGroupMappingLifecycleStateEnum Enum with underlying type: string -type IdpGroupMappingLifecycleStateEnum string - -// Set of constants representing the allowable values for IdpGroupMappingLifecycleStateEnum -const ( - IdpGroupMappingLifecycleStateCreating IdpGroupMappingLifecycleStateEnum = "CREATING" - IdpGroupMappingLifecycleStateActive IdpGroupMappingLifecycleStateEnum = "ACTIVE" - IdpGroupMappingLifecycleStateInactive IdpGroupMappingLifecycleStateEnum = "INACTIVE" - IdpGroupMappingLifecycleStateDeleting IdpGroupMappingLifecycleStateEnum = "DELETING" - IdpGroupMappingLifecycleStateDeleted IdpGroupMappingLifecycleStateEnum = "DELETED" -) - -var mappingIdpGroupMappingLifecycleState = map[string]IdpGroupMappingLifecycleStateEnum{ - "CREATING": IdpGroupMappingLifecycleStateCreating, - "ACTIVE": IdpGroupMappingLifecycleStateActive, - "INACTIVE": IdpGroupMappingLifecycleStateInactive, - "DELETING": IdpGroupMappingLifecycleStateDeleting, - "DELETED": IdpGroupMappingLifecycleStateDeleted, -} - -// GetIdpGroupMappingLifecycleStateEnumValues Enumerates the set of values for IdpGroupMappingLifecycleStateEnum -func GetIdpGroupMappingLifecycleStateEnumValues() []IdpGroupMappingLifecycleStateEnum { - values := make([]IdpGroupMappingLifecycleStateEnum, 0) - for _, v := range mappingIdpGroupMappingLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_allowed_domain_license_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_allowed_domain_license_types_request_response.go deleted file mode 100644 index 0dddfd2483..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_allowed_domain_license_types_request_response.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListAllowedDomainLicenseTypesRequest wrapper for the ListAllowedDomainLicenseTypes operation -type ListAllowedDomainLicenseTypesRequest struct { - - // The domain license type - CurrentLicenseTypeName *string `mandatory:"false" contributesTo:"query" name:"currentLicenseTypeName"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListAllowedDomainLicenseTypesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListAllowedDomainLicenseTypesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListAllowedDomainLicenseTypesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListAllowedDomainLicenseTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListAllowedDomainLicenseTypesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListAllowedDomainLicenseTypesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListAllowedDomainLicenseTypesResponse wrapper for the ListAllowedDomainLicenseTypes operation -type ListAllowedDomainLicenseTypesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []AllowedDomainLicenseTypeSummary instances - Items []AllowedDomainLicenseTypeSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListAllowedDomainLicenseTypesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListAllowedDomainLicenseTypesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListAllowedDomainLicenseTypesSortByEnum Enum with underlying type: string -type ListAllowedDomainLicenseTypesSortByEnum string - -// Set of constants representing the allowable values for ListAllowedDomainLicenseTypesSortByEnum -const ( - ListAllowedDomainLicenseTypesSortByTimecreated ListAllowedDomainLicenseTypesSortByEnum = "TIMECREATED" - ListAllowedDomainLicenseTypesSortByName ListAllowedDomainLicenseTypesSortByEnum = "NAME" -) - -var mappingListAllowedDomainLicenseTypesSortBy = map[string]ListAllowedDomainLicenseTypesSortByEnum{ - "TIMECREATED": ListAllowedDomainLicenseTypesSortByTimecreated, - "NAME": ListAllowedDomainLicenseTypesSortByName, -} - -// GetListAllowedDomainLicenseTypesSortByEnumValues Enumerates the set of values for ListAllowedDomainLicenseTypesSortByEnum -func GetListAllowedDomainLicenseTypesSortByEnumValues() []ListAllowedDomainLicenseTypesSortByEnum { - values := make([]ListAllowedDomainLicenseTypesSortByEnum, 0) - for _, v := range mappingListAllowedDomainLicenseTypesSortBy { - values = append(values, v) - } - return values -} - -// ListAllowedDomainLicenseTypesSortOrderEnum Enum with underlying type: string -type ListAllowedDomainLicenseTypesSortOrderEnum string - -// Set of constants representing the allowable values for ListAllowedDomainLicenseTypesSortOrderEnum -const ( - ListAllowedDomainLicenseTypesSortOrderAsc ListAllowedDomainLicenseTypesSortOrderEnum = "ASC" - ListAllowedDomainLicenseTypesSortOrderDesc ListAllowedDomainLicenseTypesSortOrderEnum = "DESC" -) - -var mappingListAllowedDomainLicenseTypesSortOrder = map[string]ListAllowedDomainLicenseTypesSortOrderEnum{ - "ASC": ListAllowedDomainLicenseTypesSortOrderAsc, - "DESC": ListAllowedDomainLicenseTypesSortOrderDesc, -} - -// GetListAllowedDomainLicenseTypesSortOrderEnumValues Enumerates the set of values for ListAllowedDomainLicenseTypesSortOrderEnum -func GetListAllowedDomainLicenseTypesSortOrderEnumValues() []ListAllowedDomainLicenseTypesSortOrderEnum { - values := make([]ListAllowedDomainLicenseTypesSortOrderEnum, 0) - for _, v := range mappingListAllowedDomainLicenseTypesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_action_resource_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_action_resource_types_request_response.go deleted file mode 100644 index ff32f2dc41..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_action_resource_types_request_response.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBulkActionResourceTypesRequest wrapper for the ListBulkActionResourceTypes operation -type ListBulkActionResourceTypesRequest struct { - - // The type of bulk action. - BulkActionType ListBulkActionResourceTypesBulkActionTypeEnum `mandatory:"true" contributesTo:"query" name:"bulkActionType" omitEmpty:"true"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBulkActionResourceTypesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBulkActionResourceTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBulkActionResourceTypesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBulkActionResourceTypesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBulkActionResourceTypesResponse wrapper for the ListBulkActionResourceTypes operation -type ListBulkActionResourceTypesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of BulkActionResourceTypeCollection instances - BulkActionResourceTypeCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListBulkActionResourceTypesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBulkActionResourceTypesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListBulkActionResourceTypesBulkActionTypeEnum Enum with underlying type: string -type ListBulkActionResourceTypesBulkActionTypeEnum string - -// Set of constants representing the allowable values for ListBulkActionResourceTypesBulkActionTypeEnum -const ( - ListBulkActionResourceTypesBulkActionTypeMoveResources ListBulkActionResourceTypesBulkActionTypeEnum = "BULK_MOVE_RESOURCES" - ListBulkActionResourceTypesBulkActionTypeDeleteResources ListBulkActionResourceTypesBulkActionTypeEnum = "BULK_DELETE_RESOURCES" -) - -var mappingListBulkActionResourceTypesBulkActionType = map[string]ListBulkActionResourceTypesBulkActionTypeEnum{ - "BULK_MOVE_RESOURCES": ListBulkActionResourceTypesBulkActionTypeMoveResources, - "BULK_DELETE_RESOURCES": ListBulkActionResourceTypesBulkActionTypeDeleteResources, -} - -// GetListBulkActionResourceTypesBulkActionTypeEnumValues Enumerates the set of values for ListBulkActionResourceTypesBulkActionTypeEnum -func GetListBulkActionResourceTypesBulkActionTypeEnumValues() []ListBulkActionResourceTypesBulkActionTypeEnum { - values := make([]ListBulkActionResourceTypesBulkActionTypeEnum, 0) - for _, v := range mappingListBulkActionResourceTypesBulkActionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_compartments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_compartments_request_response.go deleted file mode 100644 index e7c3b49ca6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_compartments_request_response.go +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListCompartmentsRequest wrapper for the ListCompartments operation -type ListCompartmentsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // Valid values are `ANY` and `ACCESSIBLE`. Default is `ANY`. - // Setting this to `ACCESSIBLE` returns only those compartments for which the - // user has INSPECT permissions directly or indirectly (permissions can be on a - // resource in a subcompartment). For the compartments on which the user indirectly has - // INSPECT permissions, a restricted set of fields is returned. - // When set to `ANY` permissions are not checked. - AccessLevel ListCompartmentsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` - - // Default is false. Can only be set to true when performing - // ListCompartments on the tenancy (root compartment). - // When set to true, the hierarchy of compartments is traversed - // and all compartments and subcompartments in the tenancy are - // returned depending on the the setting of `accessLevel`. - CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` - - // This parameter is required to retrieve securityZoneId associated with the compartment. - VerboseLevel ListCompartmentsVerboseLevelEnum `mandatory:"false" contributesTo:"query" name:"verboseLevel" omitEmpty:"true"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListCompartmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListCompartmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState CompartmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCompartmentsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCompartmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCompartmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCompartmentsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListCompartmentsResponse wrapper for the ListCompartments operation -type ListCompartmentsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Compartment instances - Items []Compartment `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListCompartmentsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCompartmentsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListCompartmentsAccessLevelEnum Enum with underlying type: string -type ListCompartmentsAccessLevelEnum string - -// Set of constants representing the allowable values for ListCompartmentsAccessLevelEnum -const ( - ListCompartmentsAccessLevelAny ListCompartmentsAccessLevelEnum = "ANY" - ListCompartmentsAccessLevelAccessible ListCompartmentsAccessLevelEnum = "ACCESSIBLE" -) - -var mappingListCompartmentsAccessLevel = map[string]ListCompartmentsAccessLevelEnum{ - "ANY": ListCompartmentsAccessLevelAny, - "ACCESSIBLE": ListCompartmentsAccessLevelAccessible, -} - -// GetListCompartmentsAccessLevelEnumValues Enumerates the set of values for ListCompartmentsAccessLevelEnum -func GetListCompartmentsAccessLevelEnumValues() []ListCompartmentsAccessLevelEnum { - values := make([]ListCompartmentsAccessLevelEnum, 0) - for _, v := range mappingListCompartmentsAccessLevel { - values = append(values, v) - } - return values -} - -// ListCompartmentsVerboseLevelEnum Enum with underlying type: string -type ListCompartmentsVerboseLevelEnum string - -// Set of constants representing the allowable values for ListCompartmentsVerboseLevelEnum -const ( - ListCompartmentsVerboseLevelSecurityzone ListCompartmentsVerboseLevelEnum = "securityZone" -) - -var mappingListCompartmentsVerboseLevel = map[string]ListCompartmentsVerboseLevelEnum{ - "securityZone": ListCompartmentsVerboseLevelSecurityzone, -} - -// GetListCompartmentsVerboseLevelEnumValues Enumerates the set of values for ListCompartmentsVerboseLevelEnum -func GetListCompartmentsVerboseLevelEnumValues() []ListCompartmentsVerboseLevelEnum { - values := make([]ListCompartmentsVerboseLevelEnum, 0) - for _, v := range mappingListCompartmentsVerboseLevel { - values = append(values, v) - } - return values -} - -// ListCompartmentsSortByEnum Enum with underlying type: string -type ListCompartmentsSortByEnum string - -// Set of constants representing the allowable values for ListCompartmentsSortByEnum -const ( - ListCompartmentsSortByTimecreated ListCompartmentsSortByEnum = "TIMECREATED" - ListCompartmentsSortByName ListCompartmentsSortByEnum = "NAME" -) - -var mappingListCompartmentsSortBy = map[string]ListCompartmentsSortByEnum{ - "TIMECREATED": ListCompartmentsSortByTimecreated, - "NAME": ListCompartmentsSortByName, -} - -// GetListCompartmentsSortByEnumValues Enumerates the set of values for ListCompartmentsSortByEnum -func GetListCompartmentsSortByEnumValues() []ListCompartmentsSortByEnum { - values := make([]ListCompartmentsSortByEnum, 0) - for _, v := range mappingListCompartmentsSortBy { - values = append(values, v) - } - return values -} - -// ListCompartmentsSortOrderEnum Enum with underlying type: string -type ListCompartmentsSortOrderEnum string - -// Set of constants representing the allowable values for ListCompartmentsSortOrderEnum -const ( - ListCompartmentsSortOrderAsc ListCompartmentsSortOrderEnum = "ASC" - ListCompartmentsSortOrderDesc ListCompartmentsSortOrderEnum = "DESC" -) - -var mappingListCompartmentsSortOrder = map[string]ListCompartmentsSortOrderEnum{ - "ASC": ListCompartmentsSortOrderAsc, - "DESC": ListCompartmentsSortOrderDesc, -} - -// GetListCompartmentsSortOrderEnumValues Enumerates the set of values for ListCompartmentsSortOrderEnum -func GetListCompartmentsSortOrderEnumValues() []ListCompartmentsSortOrderEnum { - values := make([]ListCompartmentsSortOrderEnum, 0) - for _, v := range mappingListCompartmentsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_db_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_db_credentials_request_response.go deleted file mode 100644 index e0ec23e32a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_db_credentials_request_response.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDbCredentialsRequest wrapper for the ListDbCredentials operation -type ListDbCredentialsRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListDbCredentialsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListDbCredentialsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState DbCredentialLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDbCredentialsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDbCredentialsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDbCredentialsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDbCredentialsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDbCredentialsResponse wrapper for the ListDbCredentials operation -type ListDbCredentialsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DbCredentialSummary instances - Items []DbCredentialSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListDbCredentialsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDbCredentialsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDbCredentialsSortByEnum Enum with underlying type: string -type ListDbCredentialsSortByEnum string - -// Set of constants representing the allowable values for ListDbCredentialsSortByEnum -const ( - ListDbCredentialsSortByTimecreated ListDbCredentialsSortByEnum = "TIMECREATED" - ListDbCredentialsSortByName ListDbCredentialsSortByEnum = "NAME" -) - -var mappingListDbCredentialsSortBy = map[string]ListDbCredentialsSortByEnum{ - "TIMECREATED": ListDbCredentialsSortByTimecreated, - "NAME": ListDbCredentialsSortByName, -} - -// GetListDbCredentialsSortByEnumValues Enumerates the set of values for ListDbCredentialsSortByEnum -func GetListDbCredentialsSortByEnumValues() []ListDbCredentialsSortByEnum { - values := make([]ListDbCredentialsSortByEnum, 0) - for _, v := range mappingListDbCredentialsSortBy { - values = append(values, v) - } - return values -} - -// ListDbCredentialsSortOrderEnum Enum with underlying type: string -type ListDbCredentialsSortOrderEnum string - -// Set of constants representing the allowable values for ListDbCredentialsSortOrderEnum -const ( - ListDbCredentialsSortOrderAsc ListDbCredentialsSortOrderEnum = "ASC" - ListDbCredentialsSortOrderDesc ListDbCredentialsSortOrderEnum = "DESC" -) - -var mappingListDbCredentialsSortOrder = map[string]ListDbCredentialsSortOrderEnum{ - "ASC": ListDbCredentialsSortOrderAsc, - "DESC": ListDbCredentialsSortOrderDesc, -} - -// GetListDbCredentialsSortOrderEnumValues Enumerates the set of values for ListDbCredentialsSortOrderEnum -func GetListDbCredentialsSortOrderEnumValues() []ListDbCredentialsSortOrderEnum { - values := make([]ListDbCredentialsSortOrderEnum, 0) - for _, v := range mappingListDbCredentialsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_domains_request_response.go deleted file mode 100644 index 80529cba37..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_domains_request_response.go +++ /dev/null @@ -1,161 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDomainsRequest wrapper for the ListDomains operation -type ListDomainsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The mutable display name of the domain - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The domain URL - Url *string `mandatory:"false" contributesTo:"query" name:"url"` - - // The domain type - Type *string `mandatory:"false" contributesTo:"query" name:"type"` - - // The domain license type - LicenseType *string `mandatory:"false" contributesTo:"query" name:"licenseType"` - - // Indicate if the domain is visible at login screen or not - IsHiddenOnLogin *string `mandatory:"false" contributesTo:"query" name:"isHiddenOnLogin"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListDomainsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListDomainsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState DomainLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDomainsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDomainsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDomainsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDomainsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDomainsResponse wrapper for the ListDomains operation -type ListDomainsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DomainSummary instances - Items []DomainSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListDomainsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDomainsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDomainsSortByEnum Enum with underlying type: string -type ListDomainsSortByEnum string - -// Set of constants representing the allowable values for ListDomainsSortByEnum -const ( - ListDomainsSortByTimecreated ListDomainsSortByEnum = "TIMECREATED" - ListDomainsSortByName ListDomainsSortByEnum = "NAME" -) - -var mappingListDomainsSortBy = map[string]ListDomainsSortByEnum{ - "TIMECREATED": ListDomainsSortByTimecreated, - "NAME": ListDomainsSortByName, -} - -// GetListDomainsSortByEnumValues Enumerates the set of values for ListDomainsSortByEnum -func GetListDomainsSortByEnumValues() []ListDomainsSortByEnum { - values := make([]ListDomainsSortByEnum, 0) - for _, v := range mappingListDomainsSortBy { - values = append(values, v) - } - return values -} - -// ListDomainsSortOrderEnum Enum with underlying type: string -type ListDomainsSortOrderEnum string - -// Set of constants representing the allowable values for ListDomainsSortOrderEnum -const ( - ListDomainsSortOrderAsc ListDomainsSortOrderEnum = "ASC" - ListDomainsSortOrderDesc ListDomainsSortOrderEnum = "DESC" -) - -var mappingListDomainsSortOrder = map[string]ListDomainsSortOrderEnum{ - "ASC": ListDomainsSortOrderAsc, - "DESC": ListDomainsSortOrderDesc, -} - -// GetListDomainsSortOrderEnumValues Enumerates the set of values for ListDomainsSortOrderEnum -func GetListDomainsSortOrderEnumValues() []ListDomainsSortOrderEnum { - values := make([]ListDomainsSortOrderEnum, 0) - for _, v := range mappingListDomainsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_dynamic_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_dynamic_groups_request_response.go deleted file mode 100644 index 5adfe1cf7e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_dynamic_groups_request_response.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListDynamicGroupsRequest wrapper for the ListDynamicGroups operation -type ListDynamicGroupsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListDynamicGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListDynamicGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState DynamicGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListDynamicGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListDynamicGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListDynamicGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListDynamicGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListDynamicGroupsResponse wrapper for the ListDynamicGroups operation -type ListDynamicGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []DynamicGroup instances - Items []DynamicGroup `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListDynamicGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListDynamicGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListDynamicGroupsSortByEnum Enum with underlying type: string -type ListDynamicGroupsSortByEnum string - -// Set of constants representing the allowable values for ListDynamicGroupsSortByEnum -const ( - ListDynamicGroupsSortByTimecreated ListDynamicGroupsSortByEnum = "TIMECREATED" - ListDynamicGroupsSortByName ListDynamicGroupsSortByEnum = "NAME" -) - -var mappingListDynamicGroupsSortBy = map[string]ListDynamicGroupsSortByEnum{ - "TIMECREATED": ListDynamicGroupsSortByTimecreated, - "NAME": ListDynamicGroupsSortByName, -} - -// GetListDynamicGroupsSortByEnumValues Enumerates the set of values for ListDynamicGroupsSortByEnum -func GetListDynamicGroupsSortByEnumValues() []ListDynamicGroupsSortByEnum { - values := make([]ListDynamicGroupsSortByEnum, 0) - for _, v := range mappingListDynamicGroupsSortBy { - values = append(values, v) - } - return values -} - -// ListDynamicGroupsSortOrderEnum Enum with underlying type: string -type ListDynamicGroupsSortOrderEnum string - -// Set of constants representing the allowable values for ListDynamicGroupsSortOrderEnum -const ( - ListDynamicGroupsSortOrderAsc ListDynamicGroupsSortOrderEnum = "ASC" - ListDynamicGroupsSortOrderDesc ListDynamicGroupsSortOrderEnum = "DESC" -) - -var mappingListDynamicGroupsSortOrder = map[string]ListDynamicGroupsSortOrderEnum{ - "ASC": ListDynamicGroupsSortOrderAsc, - "DESC": ListDynamicGroupsSortOrderDesc, -} - -// GetListDynamicGroupsSortOrderEnumValues Enumerates the set of values for ListDynamicGroupsSortOrderEnum -func GetListDynamicGroupsSortOrderEnumValues() []ListDynamicGroupsSortOrderEnum { - values := make([]ListDynamicGroupsSortOrderEnum, 0) - for _, v := range mappingListDynamicGroupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_groups_request_response.go deleted file mode 100644 index 6c3929a19f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_groups_request_response.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListGroupsRequest wrapper for the ListGroups operation -type ListGroupsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState GroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListGroupsResponse wrapper for the ListGroups operation -type ListGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Group instances - Items []Group `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListGroupsSortByEnum Enum with underlying type: string -type ListGroupsSortByEnum string - -// Set of constants representing the allowable values for ListGroupsSortByEnum -const ( - ListGroupsSortByTimecreated ListGroupsSortByEnum = "TIMECREATED" - ListGroupsSortByName ListGroupsSortByEnum = "NAME" -) - -var mappingListGroupsSortBy = map[string]ListGroupsSortByEnum{ - "TIMECREATED": ListGroupsSortByTimecreated, - "NAME": ListGroupsSortByName, -} - -// GetListGroupsSortByEnumValues Enumerates the set of values for ListGroupsSortByEnum -func GetListGroupsSortByEnumValues() []ListGroupsSortByEnum { - values := make([]ListGroupsSortByEnum, 0) - for _, v := range mappingListGroupsSortBy { - values = append(values, v) - } - return values -} - -// ListGroupsSortOrderEnum Enum with underlying type: string -type ListGroupsSortOrderEnum string - -// Set of constants representing the allowable values for ListGroupsSortOrderEnum -const ( - ListGroupsSortOrderAsc ListGroupsSortOrderEnum = "ASC" - ListGroupsSortOrderDesc ListGroupsSortOrderEnum = "DESC" -) - -var mappingListGroupsSortOrder = map[string]ListGroupsSortOrderEnum{ - "ASC": ListGroupsSortOrderAsc, - "DESC": ListGroupsSortOrderDesc, -} - -// GetListGroupsSortOrderEnumValues Enumerates the set of values for ListGroupsSortOrderEnum -func GetListGroupsSortOrderEnumValues() []ListGroupsSortOrderEnum { - values := make([]ListGroupsSortOrderEnum, 0) - for _, v := range mappingListGroupsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_errors_request_response.go deleted file mode 100644 index c7a93d6801..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_errors_request_response.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListIamWorkRequestErrorsRequest wrapper for the ListIamWorkRequestErrors operation -type ListIamWorkRequestErrorsRequest struct { - - // The OCID of the IAM work request. - IamWorkRequestId *string `mandatory:"true" contributesTo:"path" name:"iamWorkRequestId"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListIamWorkRequestErrorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListIamWorkRequestErrorsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListIamWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListIamWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListIamWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListIamWorkRequestErrorsResponse wrapper for the ListIamWorkRequestErrors operation -type ListIamWorkRequestErrorsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []IamWorkRequestErrorSummary instances - Items []IamWorkRequestErrorSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of - // results remain. For important details about how pagination works, see - // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListIamWorkRequestErrorsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListIamWorkRequestErrorsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListIamWorkRequestErrorsSortOrderEnum Enum with underlying type: string -type ListIamWorkRequestErrorsSortOrderEnum string - -// Set of constants representing the allowable values for ListIamWorkRequestErrorsSortOrderEnum -const ( - ListIamWorkRequestErrorsSortOrderAsc ListIamWorkRequestErrorsSortOrderEnum = "ASC" - ListIamWorkRequestErrorsSortOrderDesc ListIamWorkRequestErrorsSortOrderEnum = "DESC" -) - -var mappingListIamWorkRequestErrorsSortOrder = map[string]ListIamWorkRequestErrorsSortOrderEnum{ - "ASC": ListIamWorkRequestErrorsSortOrderAsc, - "DESC": ListIamWorkRequestErrorsSortOrderDesc, -} - -// GetListIamWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListIamWorkRequestErrorsSortOrderEnum -func GetListIamWorkRequestErrorsSortOrderEnumValues() []ListIamWorkRequestErrorsSortOrderEnum { - values := make([]ListIamWorkRequestErrorsSortOrderEnum, 0) - for _, v := range mappingListIamWorkRequestErrorsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_logs_request_response.go deleted file mode 100644 index 27b77d52ad..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_request_logs_request_response.go +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListIamWorkRequestLogsRequest wrapper for the ListIamWorkRequestLogs operation -type ListIamWorkRequestLogsRequest struct { - - // The OCID of the IAM work request. - IamWorkRequestId *string `mandatory:"true" contributesTo:"path" name:"iamWorkRequestId"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListIamWorkRequestLogsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListIamWorkRequestLogsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListIamWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListIamWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListIamWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListIamWorkRequestLogsResponse wrapper for the ListIamWorkRequestLogs operation -type ListIamWorkRequestLogsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []IamWorkRequestLogSummary instances - Items []IamWorkRequestLogSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // The number of seconds that the client should wait before polling again. - RetryAfter *float32 `presentIn:"header" name:"retry-after"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListIamWorkRequestLogsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListIamWorkRequestLogsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListIamWorkRequestLogsSortOrderEnum Enum with underlying type: string -type ListIamWorkRequestLogsSortOrderEnum string - -// Set of constants representing the allowable values for ListIamWorkRequestLogsSortOrderEnum -const ( - ListIamWorkRequestLogsSortOrderAsc ListIamWorkRequestLogsSortOrderEnum = "ASC" - ListIamWorkRequestLogsSortOrderDesc ListIamWorkRequestLogsSortOrderEnum = "DESC" -) - -var mappingListIamWorkRequestLogsSortOrder = map[string]ListIamWorkRequestLogsSortOrderEnum{ - "ASC": ListIamWorkRequestLogsSortOrderAsc, - "DESC": ListIamWorkRequestLogsSortOrderDesc, -} - -// GetListIamWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListIamWorkRequestLogsSortOrderEnum -func GetListIamWorkRequestLogsSortOrderEnumValues() []ListIamWorkRequestLogsSortOrderEnum { - values := make([]ListIamWorkRequestLogsSortOrderEnum, 0) - for _, v := range mappingListIamWorkRequestLogsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_providers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_providers_request_response.go deleted file mode 100644 index 1c3f2878fd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_providers_request_response.go +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListIdentityProvidersRequest wrapper for the ListIdentityProviders operation -type ListIdentityProvidersRequest struct { - - // The protocol used for federation. - Protocol ListIdentityProvidersProtocolEnum `mandatory:"true" contributesTo:"query" name:"protocol" omitEmpty:"true"` - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListIdentityProvidersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListIdentityProvidersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListIdentityProvidersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListIdentityProvidersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListIdentityProvidersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListIdentityProvidersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListIdentityProvidersResponse wrapper for the ListIdentityProviders operation -type ListIdentityProvidersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []IdentityProvider instances - Items []IdentityProvider `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListIdentityProvidersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListIdentityProvidersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListIdentityProvidersProtocolEnum Enum with underlying type: string -type ListIdentityProvidersProtocolEnum string - -// Set of constants representing the allowable values for ListIdentityProvidersProtocolEnum -const ( - ListIdentityProvidersProtocolSaml2 ListIdentityProvidersProtocolEnum = "SAML2" -) - -var mappingListIdentityProvidersProtocol = map[string]ListIdentityProvidersProtocolEnum{ - "SAML2": ListIdentityProvidersProtocolSaml2, -} - -// GetListIdentityProvidersProtocolEnumValues Enumerates the set of values for ListIdentityProvidersProtocolEnum -func GetListIdentityProvidersProtocolEnumValues() []ListIdentityProvidersProtocolEnum { - values := make([]ListIdentityProvidersProtocolEnum, 0) - for _, v := range mappingListIdentityProvidersProtocol { - values = append(values, v) - } - return values -} - -// ListIdentityProvidersSortByEnum Enum with underlying type: string -type ListIdentityProvidersSortByEnum string - -// Set of constants representing the allowable values for ListIdentityProvidersSortByEnum -const ( - ListIdentityProvidersSortByTimecreated ListIdentityProvidersSortByEnum = "TIMECREATED" - ListIdentityProvidersSortByName ListIdentityProvidersSortByEnum = "NAME" -) - -var mappingListIdentityProvidersSortBy = map[string]ListIdentityProvidersSortByEnum{ - "TIMECREATED": ListIdentityProvidersSortByTimecreated, - "NAME": ListIdentityProvidersSortByName, -} - -// GetListIdentityProvidersSortByEnumValues Enumerates the set of values for ListIdentityProvidersSortByEnum -func GetListIdentityProvidersSortByEnumValues() []ListIdentityProvidersSortByEnum { - values := make([]ListIdentityProvidersSortByEnum, 0) - for _, v := range mappingListIdentityProvidersSortBy { - values = append(values, v) - } - return values -} - -// ListIdentityProvidersSortOrderEnum Enum with underlying type: string -type ListIdentityProvidersSortOrderEnum string - -// Set of constants representing the allowable values for ListIdentityProvidersSortOrderEnum -const ( - ListIdentityProvidersSortOrderAsc ListIdentityProvidersSortOrderEnum = "ASC" - ListIdentityProvidersSortOrderDesc ListIdentityProvidersSortOrderEnum = "DESC" -) - -var mappingListIdentityProvidersSortOrder = map[string]ListIdentityProvidersSortOrderEnum{ - "ASC": ListIdentityProvidersSortOrderAsc, - "DESC": ListIdentityProvidersSortOrderDesc, -} - -// GetListIdentityProvidersSortOrderEnumValues Enumerates the set of values for ListIdentityProvidersSortOrderEnum -func GetListIdentityProvidersSortOrderEnumValues() []ListIdentityProvidersSortOrderEnum { - values := make([]ListIdentityProvidersSortOrderEnum, 0) - for _, v := range mappingListIdentityProvidersSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_mfa_totp_devices_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_mfa_totp_devices_request_response.go deleted file mode 100644 index 45636e41cf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_mfa_totp_devices_request_response.go +++ /dev/null @@ -1,140 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListMfaTotpDevicesRequest wrapper for the ListMfaTotpDevices operation -type ListMfaTotpDevicesRequest struct { - - // The OCID of the user. - UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListMfaTotpDevicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListMfaTotpDevicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListMfaTotpDevicesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListMfaTotpDevicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListMfaTotpDevicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListMfaTotpDevicesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListMfaTotpDevicesResponse wrapper for the ListMfaTotpDevices operation -type ListMfaTotpDevicesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []MfaTotpDeviceSummary instances - Items []MfaTotpDeviceSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListMfaTotpDevicesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListMfaTotpDevicesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListMfaTotpDevicesSortByEnum Enum with underlying type: string -type ListMfaTotpDevicesSortByEnum string - -// Set of constants representing the allowable values for ListMfaTotpDevicesSortByEnum -const ( - ListMfaTotpDevicesSortByTimecreated ListMfaTotpDevicesSortByEnum = "TIMECREATED" - ListMfaTotpDevicesSortByName ListMfaTotpDevicesSortByEnum = "NAME" -) - -var mappingListMfaTotpDevicesSortBy = map[string]ListMfaTotpDevicesSortByEnum{ - "TIMECREATED": ListMfaTotpDevicesSortByTimecreated, - "NAME": ListMfaTotpDevicesSortByName, -} - -// GetListMfaTotpDevicesSortByEnumValues Enumerates the set of values for ListMfaTotpDevicesSortByEnum -func GetListMfaTotpDevicesSortByEnumValues() []ListMfaTotpDevicesSortByEnum { - values := make([]ListMfaTotpDevicesSortByEnum, 0) - for _, v := range mappingListMfaTotpDevicesSortBy { - values = append(values, v) - } - return values -} - -// ListMfaTotpDevicesSortOrderEnum Enum with underlying type: string -type ListMfaTotpDevicesSortOrderEnum string - -// Set of constants representing the allowable values for ListMfaTotpDevicesSortOrderEnum -const ( - ListMfaTotpDevicesSortOrderAsc ListMfaTotpDevicesSortOrderEnum = "ASC" - ListMfaTotpDevicesSortOrderDesc ListMfaTotpDevicesSortOrderEnum = "DESC" -) - -var mappingListMfaTotpDevicesSortOrder = map[string]ListMfaTotpDevicesSortOrderEnum{ - "ASC": ListMfaTotpDevicesSortOrderAsc, - "DESC": ListMfaTotpDevicesSortOrderDesc, -} - -// GetListMfaTotpDevicesSortOrderEnumValues Enumerates the set of values for ListMfaTotpDevicesSortOrderEnum -func GetListMfaTotpDevicesSortOrderEnumValues() []ListMfaTotpDevicesSortOrderEnum { - values := make([]ListMfaTotpDevicesSortOrderEnum, 0) - for _, v := range mappingListMfaTotpDevicesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_network_sources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_network_sources_request_response.go deleted file mode 100644 index 3fbf29de50..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_network_sources_request_response.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkSourcesRequest wrapper for the ListNetworkSources operation -type ListNetworkSourcesRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListNetworkSourcesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListNetworkSourcesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState NetworkSourcesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkSourcesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkSourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkSourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkSourcesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkSourcesResponse wrapper for the ListNetworkSources operation -type ListNetworkSourcesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []NetworkSourcesSummary instances - Items []NetworkSourcesSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListNetworkSourcesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkSourcesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkSourcesSortByEnum Enum with underlying type: string -type ListNetworkSourcesSortByEnum string - -// Set of constants representing the allowable values for ListNetworkSourcesSortByEnum -const ( - ListNetworkSourcesSortByTimecreated ListNetworkSourcesSortByEnum = "TIMECREATED" - ListNetworkSourcesSortByName ListNetworkSourcesSortByEnum = "NAME" -) - -var mappingListNetworkSourcesSortBy = map[string]ListNetworkSourcesSortByEnum{ - "TIMECREATED": ListNetworkSourcesSortByTimecreated, - "NAME": ListNetworkSourcesSortByName, -} - -// GetListNetworkSourcesSortByEnumValues Enumerates the set of values for ListNetworkSourcesSortByEnum -func GetListNetworkSourcesSortByEnumValues() []ListNetworkSourcesSortByEnum { - values := make([]ListNetworkSourcesSortByEnum, 0) - for _, v := range mappingListNetworkSourcesSortBy { - values = append(values, v) - } - return values -} - -// ListNetworkSourcesSortOrderEnum Enum with underlying type: string -type ListNetworkSourcesSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkSourcesSortOrderEnum -const ( - ListNetworkSourcesSortOrderAsc ListNetworkSourcesSortOrderEnum = "ASC" - ListNetworkSourcesSortOrderDesc ListNetworkSourcesSortOrderEnum = "DESC" -) - -var mappingListNetworkSourcesSortOrder = map[string]ListNetworkSourcesSortOrderEnum{ - "ASC": ListNetworkSourcesSortOrderAsc, - "DESC": ListNetworkSourcesSortOrderDesc, -} - -// GetListNetworkSourcesSortOrderEnumValues Enumerates the set of values for ListNetworkSourcesSortOrderEnum -func GetListNetworkSourcesSortOrderEnumValues() []ListNetworkSourcesSortOrderEnum { - values := make([]ListNetworkSourcesSortOrderEnum, 0) - for _, v := range mappingListNetworkSourcesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_policies_request_response.go deleted file mode 100644 index 73c50426fe..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_policies_request_response.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPoliciesRequest wrapper for the ListPolicies operation -type ListPoliciesRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState PolicyLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPoliciesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPoliciesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPoliciesResponse wrapper for the ListPolicies operation -type ListPoliciesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []Policy instances - Items []Policy `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListPoliciesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPoliciesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListPoliciesSortByEnum Enum with underlying type: string -type ListPoliciesSortByEnum string - -// Set of constants representing the allowable values for ListPoliciesSortByEnum -const ( - ListPoliciesSortByTimecreated ListPoliciesSortByEnum = "TIMECREATED" - ListPoliciesSortByName ListPoliciesSortByEnum = "NAME" -) - -var mappingListPoliciesSortBy = map[string]ListPoliciesSortByEnum{ - "TIMECREATED": ListPoliciesSortByTimecreated, - "NAME": ListPoliciesSortByName, -} - -// GetListPoliciesSortByEnumValues Enumerates the set of values for ListPoliciesSortByEnum -func GetListPoliciesSortByEnumValues() []ListPoliciesSortByEnum { - values := make([]ListPoliciesSortByEnum, 0) - for _, v := range mappingListPoliciesSortBy { - values = append(values, v) - } - return values -} - -// ListPoliciesSortOrderEnum Enum with underlying type: string -type ListPoliciesSortOrderEnum string - -// Set of constants representing the allowable values for ListPoliciesSortOrderEnum -const ( - ListPoliciesSortOrderAsc ListPoliciesSortOrderEnum = "ASC" - ListPoliciesSortOrderDesc ListPoliciesSortOrderEnum = "DESC" -) - -var mappingListPoliciesSortOrder = map[string]ListPoliciesSortOrderEnum{ - "ASC": ListPoliciesSortOrderAsc, - "DESC": ListPoliciesSortOrderDesc, -} - -// GetListPoliciesSortOrderEnumValues Enumerates the set of values for ListPoliciesSortOrderEnum -func GetListPoliciesSortOrderEnumValues() []ListPoliciesSortOrderEnum { - values := make([]ListPoliciesSortOrderEnum, 0) - for _, v := range mappingListPoliciesSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_users_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_users_request_response.go deleted file mode 100644 index 71fc116cd9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_users_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListUsersRequest wrapper for the ListUsers operation -type ListUsersRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The id of the identity provider. - IdentityProviderId *string `mandatory:"false" contributesTo:"query" name:"identityProviderId"` - - // The id of a user in the identity provider. - ExternalIdentifier *string `mandatory:"false" contributesTo:"query" name:"externalIdentifier"` - - // A filter to only return resources that match the given name exactly. - Name *string `mandatory:"false" contributesTo:"query" name:"name"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for - // TIMECREATED is descending. Default order for NAME is ascending. The NAME - // sort order is case sensitive. - // **Note:** In general, some "List" operations (for example, `ListInstances`) let you - // optionally filter by Availability Domain if the scope of the resource type is within a - // single Availability Domain. If you call one of these "List" operations without specifying - // an Availability Domain, the resources are grouped by Availability Domain, then sorted. - SortBy ListUsersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order - // is case sensitive. - SortOrder ListUsersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. - LifecycleState UserLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListUsersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListUsersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListUsersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListUsersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListUsersResponse wrapper for the ListUsers operation -type ListUsersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []User instances - Items []User `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListUsersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListUsersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListUsersSortByEnum Enum with underlying type: string -type ListUsersSortByEnum string - -// Set of constants representing the allowable values for ListUsersSortByEnum -const ( - ListUsersSortByTimecreated ListUsersSortByEnum = "TIMECREATED" - ListUsersSortByName ListUsersSortByEnum = "NAME" -) - -var mappingListUsersSortBy = map[string]ListUsersSortByEnum{ - "TIMECREATED": ListUsersSortByTimecreated, - "NAME": ListUsersSortByName, -} - -// GetListUsersSortByEnumValues Enumerates the set of values for ListUsersSortByEnum -func GetListUsersSortByEnumValues() []ListUsersSortByEnum { - values := make([]ListUsersSortByEnum, 0) - for _, v := range mappingListUsersSortBy { - values = append(values, v) - } - return values -} - -// ListUsersSortOrderEnum Enum with underlying type: string -type ListUsersSortOrderEnum string - -// Set of constants representing the allowable values for ListUsersSortOrderEnum -const ( - ListUsersSortOrderAsc ListUsersSortOrderEnum = "ASC" - ListUsersSortOrderDesc ListUsersSortOrderEnum = "DESC" -) - -var mappingListUsersSortOrder = map[string]ListUsersSortOrderEnum{ - "ASC": ListUsersSortOrderAsc, - "DESC": ListUsersSortOrderDesc, -} - -// GetListUsersSortOrderEnumValues Enumerates the set of values for ListUsersSortOrderEnum -func GetListUsersSortOrderEnumValues() []ListUsersSortOrderEnum { - values := make([]ListUsersSortOrderEnum, 0) - for _, v := range mappingListUsersSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_work_requests_request_response.go deleted file mode 100644 index 7227f8a5b7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_work_requests_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestsRequest wrapper for the ListWorkRequests operation -type ListWorkRequestsRequest struct { - - // The OCID of the compartment (remember that the tenancy is simply the root compartment). - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The value of the `opc-next-page` response header from the previous "List" call. - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The maximum number of items to return in a paginated "List" call. - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The identifier of the resource the work request affects. - ResourceIdentifier *string `mandatory:"false" contributesTo:"query" name:"resourceIdentifier"` - - // Unique Oracle-assigned identifier for the request. - // If you need to contact Oracle about a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestsResponse wrapper for the ListWorkRequests operation -type ListWorkRequestsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []WorkRequestSummary instances - Items []WorkRequestSummary `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListWorkRequestsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device.go deleted file mode 100644 index 3ab7964666..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MfaTotpDevice Users can enable multi-factor authentication (MFA) for their own user accounts. After MFA is enabled, the -// user is prompted for a time-based one-time password (TOTP) to authenticate before they can sign in to the -// Console. To enable multi-factor authentication, the user must register a mobile device with a TOTP authenticator app -// installed. The registration process creates the `MfaTotpDevice` object. The registration process requires -// interaction with the Console and cannot be completed programmatically. For more information, see -// Managing Multi-Factor Authentication (https://docs.cloud.oracle.com/Content/Identity/Tasks/usingmfa.htm). -type MfaTotpDevice struct { - - // The OCID of the MFA TOTP device. - Id *string `mandatory:"true" json:"id"` - - // The seed for the MFA TOTP device (Base32 encoded). - Seed *string `mandatory:"true" json:"seed"` - - // The OCID of the user the MFA TOTP device belongs to. - UserId *string `mandatory:"true" json:"userId"` - - // Date and time the `MfaTotpDevice` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The MFA TOTP device's current state. After creating the MFA TOTP device, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState MfaTotpDeviceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Flag to indicate if the MFA TOTP device has been activated. - IsActivated *bool `mandatory:"true" json:"isActivated"` - - // Date and time when this MFA TOTP device will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The detailed status of INACTIVE lifecycleState. - // Allowed values are: - // - 1 - SUSPENDED - // - 2 - DISABLED - // - 4 - BLOCKED - // - 8 - LOCKED - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m MfaTotpDevice) String() string { - return common.PointerString(m) -} - -// MfaTotpDeviceLifecycleStateEnum Enum with underlying type: string -type MfaTotpDeviceLifecycleStateEnum string - -// Set of constants representing the allowable values for MfaTotpDeviceLifecycleStateEnum -const ( - MfaTotpDeviceLifecycleStateCreating MfaTotpDeviceLifecycleStateEnum = "CREATING" - MfaTotpDeviceLifecycleStateActive MfaTotpDeviceLifecycleStateEnum = "ACTIVE" - MfaTotpDeviceLifecycleStateInactive MfaTotpDeviceLifecycleStateEnum = "INACTIVE" - MfaTotpDeviceLifecycleStateDeleting MfaTotpDeviceLifecycleStateEnum = "DELETING" - MfaTotpDeviceLifecycleStateDeleted MfaTotpDeviceLifecycleStateEnum = "DELETED" -) - -var mappingMfaTotpDeviceLifecycleState = map[string]MfaTotpDeviceLifecycleStateEnum{ - "CREATING": MfaTotpDeviceLifecycleStateCreating, - "ACTIVE": MfaTotpDeviceLifecycleStateActive, - "INACTIVE": MfaTotpDeviceLifecycleStateInactive, - "DELETING": MfaTotpDeviceLifecycleStateDeleting, - "DELETED": MfaTotpDeviceLifecycleStateDeleted, -} - -// GetMfaTotpDeviceLifecycleStateEnumValues Enumerates the set of values for MfaTotpDeviceLifecycleStateEnum -func GetMfaTotpDeviceLifecycleStateEnumValues() []MfaTotpDeviceLifecycleStateEnum { - values := make([]MfaTotpDeviceLifecycleStateEnum, 0) - for _, v := range mappingMfaTotpDeviceLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device_summary.go deleted file mode 100644 index cbed92a170..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_device_summary.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MfaTotpDeviceSummary As the name suggests, a `MfaTotpDeviceSummary` object contains information about a `MfaTotpDevice`. -type MfaTotpDeviceSummary struct { - - // The OCID of the MFA TOTP Device. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the user the MFA TOTP device belongs to. - UserId *string `mandatory:"true" json:"userId"` - - // Date and time the `MfaTotpDevice` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The MFA TOTP device's current state. - LifecycleState MfaTotpDeviceSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Flag to indicate if the MFA TOTP device has been activated - IsActivated *bool `mandatory:"true" json:"isActivated"` - - // Date and time when this MFA TOTP device will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The detailed status of INACTIVE lifecycleState. - // Allowed values are: - // - 1 - SUSPENDED - // - 2 - DISABLED - // - 4 - BLOCKED - // - 8 - LOCKED - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m MfaTotpDeviceSummary) String() string { - return common.PointerString(m) -} - -// MfaTotpDeviceSummaryLifecycleStateEnum Enum with underlying type: string -type MfaTotpDeviceSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for MfaTotpDeviceSummaryLifecycleStateEnum -const ( - MfaTotpDeviceSummaryLifecycleStateCreating MfaTotpDeviceSummaryLifecycleStateEnum = "CREATING" - MfaTotpDeviceSummaryLifecycleStateActive MfaTotpDeviceSummaryLifecycleStateEnum = "ACTIVE" - MfaTotpDeviceSummaryLifecycleStateInactive MfaTotpDeviceSummaryLifecycleStateEnum = "INACTIVE" - MfaTotpDeviceSummaryLifecycleStateDeleting MfaTotpDeviceSummaryLifecycleStateEnum = "DELETING" - MfaTotpDeviceSummaryLifecycleStateDeleted MfaTotpDeviceSummaryLifecycleStateEnum = "DELETED" -) - -var mappingMfaTotpDeviceSummaryLifecycleState = map[string]MfaTotpDeviceSummaryLifecycleStateEnum{ - "CREATING": MfaTotpDeviceSummaryLifecycleStateCreating, - "ACTIVE": MfaTotpDeviceSummaryLifecycleStateActive, - "INACTIVE": MfaTotpDeviceSummaryLifecycleStateInactive, - "DELETING": MfaTotpDeviceSummaryLifecycleStateDeleting, - "DELETED": MfaTotpDeviceSummaryLifecycleStateDeleted, -} - -// GetMfaTotpDeviceSummaryLifecycleStateEnumValues Enumerates the set of values for MfaTotpDeviceSummaryLifecycleStateEnum -func GetMfaTotpDeviceSummaryLifecycleStateEnumValues() []MfaTotpDeviceSummaryLifecycleStateEnum { - values := make([]MfaTotpDeviceSummaryLifecycleStateEnum, 0) - for _, v := range mappingMfaTotpDeviceSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_token.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_token.go deleted file mode 100644 index 2b94bc6195..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/mfa_totp_token.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MfaTotpToken Totp token for MFA -type MfaTotpToken struct { - - // The Totp token for MFA. - TotpToken *string `mandatory:"false" json:"totpToken"` -} - -func (m MfaTotpToken) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_details.go deleted file mode 100644 index 2b60d8dfeb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_details.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// MoveCompartmentDetails The representation of MoveCompartmentDetails -type MoveCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment - // into which to move the compartment. - TargetCompartmentId *string `mandatory:"true" json:"targetCompartmentId"` -} - -func (m MoveCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_policy.go deleted file mode 100644 index d72fa4d3f2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_policy.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkPolicy Network policy, Consists of a list of Network Source ids. -type NetworkPolicy struct { - - // Network Source ids - NetworkSourceIds []string `mandatory:"false" json:"networkSourceIds"` -} - -func (m NetworkPolicy) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources.go deleted file mode 100644 index d5ac9430ac..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources.go +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkSources A network source specifies a list of source IP addresses that are allowed to make authorization requests. -// Use the network source in policy statements to restrict access to only requests that come from the specified IPs. -// For more information, see Managing Network Sources (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingnetworksources.htm). -type NetworkSources struct { - - // The OCID of the network source. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the network source. The tenancy is the root compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the network source during creation. The name must be unique across - // the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the network source. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the group was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The network source object's current state. After creating a network source, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState NetworkSourcesLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A list of allowed public IPs and CIDR ranges. - PublicSourceList []string `mandatory:"false" json:"publicSourceList"` - - // A list of allowed VCN OCID and IP range pairs. - // Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` - VirtualSourceList []NetworkSourcesVirtualSourceList `mandatory:"false" json:"virtualSourceList"` - - // A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than - // those specified in the network source. - // Currently, only `all` and `none` are supported. The default is `all`. - Services []string `mandatory:"false" json:"services"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m NetworkSources) String() string { - return common.PointerString(m) -} - -// NetworkSourcesLifecycleStateEnum Enum with underlying type: string -type NetworkSourcesLifecycleStateEnum string - -// Set of constants representing the allowable values for NetworkSourcesLifecycleStateEnum -const ( - NetworkSourcesLifecycleStateCreating NetworkSourcesLifecycleStateEnum = "CREATING" - NetworkSourcesLifecycleStateActive NetworkSourcesLifecycleStateEnum = "ACTIVE" - NetworkSourcesLifecycleStateInactive NetworkSourcesLifecycleStateEnum = "INACTIVE" - NetworkSourcesLifecycleStateDeleting NetworkSourcesLifecycleStateEnum = "DELETING" - NetworkSourcesLifecycleStateDeleted NetworkSourcesLifecycleStateEnum = "DELETED" -) - -var mappingNetworkSourcesLifecycleState = map[string]NetworkSourcesLifecycleStateEnum{ - "CREATING": NetworkSourcesLifecycleStateCreating, - "ACTIVE": NetworkSourcesLifecycleStateActive, - "INACTIVE": NetworkSourcesLifecycleStateInactive, - "DELETING": NetworkSourcesLifecycleStateDeleting, - "DELETED": NetworkSourcesLifecycleStateDeleted, -} - -// GetNetworkSourcesLifecycleStateEnumValues Enumerates the set of values for NetworkSourcesLifecycleStateEnum -func GetNetworkSourcesLifecycleStateEnumValues() []NetworkSourcesLifecycleStateEnum { - values := make([]NetworkSourcesLifecycleStateEnum, 0) - for _, v := range mappingNetworkSourcesLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_virtual_source_list.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_virtual_source_list.go deleted file mode 100644 index 091db193c0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_virtual_source_list.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkSourcesVirtualSourceList The representation of NetworkSourcesVirtualSourceList -type NetworkSourcesVirtualSourceList struct { - VcnId *string `mandatory:"false" json:"vcnId"` - - IpRanges []string `mandatory:"false" json:"ipRanges"` -} - -func (m NetworkSourcesVirtualSourceList) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential.go deleted file mode 100644 index a40f36add6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// OAuth2ClientCredential User can define Oauth clients in IAM, then use it to generate a token to grant access to app resources. -type OAuth2ClientCredential struct { - - // Allowed scopes for the given oauth credential. - Scopes []FullyQualifiedScope `mandatory:"false" json:"scopes"` - - // Returned during create and update with password reset requests. - Password *string `mandatory:"false" json:"password"` - - // The OCID of the user the Oauth credential belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time when this credential will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` - - // The OCID of the Oauth credential. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the compartment containing the Oauth credential. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the Oauth credential. - Name *string `mandatory:"false" json:"name"` - - // The description of the Oauth credential. - Description *string `mandatory:"false" json:"description"` - - // The credential's current state. After creating a Oauth credential, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState OAuth2ClientCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Date and time the `OAuth2ClientCredential` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m OAuth2ClientCredential) String() string { - return common.PointerString(m) -} - -// OAuth2ClientCredentialLifecycleStateEnum Enum with underlying type: string -type OAuth2ClientCredentialLifecycleStateEnum string - -// Set of constants representing the allowable values for OAuth2ClientCredentialLifecycleStateEnum -const ( - OAuth2ClientCredentialLifecycleStateCreating OAuth2ClientCredentialLifecycleStateEnum = "CREATING" - OAuth2ClientCredentialLifecycleStateActive OAuth2ClientCredentialLifecycleStateEnum = "ACTIVE" - OAuth2ClientCredentialLifecycleStateInactive OAuth2ClientCredentialLifecycleStateEnum = "INACTIVE" - OAuth2ClientCredentialLifecycleStateDeleting OAuth2ClientCredentialLifecycleStateEnum = "DELETING" - OAuth2ClientCredentialLifecycleStateDeleted OAuth2ClientCredentialLifecycleStateEnum = "DELETED" -) - -var mappingOAuth2ClientCredentialLifecycleState = map[string]OAuth2ClientCredentialLifecycleStateEnum{ - "CREATING": OAuth2ClientCredentialLifecycleStateCreating, - "ACTIVE": OAuth2ClientCredentialLifecycleStateActive, - "INACTIVE": OAuth2ClientCredentialLifecycleStateInactive, - "DELETING": OAuth2ClientCredentialLifecycleStateDeleting, - "DELETED": OAuth2ClientCredentialLifecycleStateDeleted, -} - -// GetOAuth2ClientCredentialLifecycleStateEnumValues Enumerates the set of values for OAuth2ClientCredentialLifecycleStateEnum -func GetOAuth2ClientCredentialLifecycleStateEnumValues() []OAuth2ClientCredentialLifecycleStateEnum { - values := make([]OAuth2ClientCredentialLifecycleStateEnum, 0) - for _, v := range mappingOAuth2ClientCredentialLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential_summary.go deleted file mode 100644 index a4d2fc28ba..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/o_auth2_client_credential_summary.go +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// OAuth2ClientCredentialSummary User can define Oauth clients in IAM, then use it to generate a token to grant access to app resources. -type OAuth2ClientCredentialSummary struct { - - // Allowed scopes for the given oauth credential. - Scopes []FullyQualifiedScope `mandatory:"false" json:"scopes"` - - // The OCID of the user the Oauth credential belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time when this credential will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` - - // The OCID of the Oauth credential. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the compartment containing the Oauth credential. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the Oauth credential. - Name *string `mandatory:"false" json:"name"` - - // The description of the Oauth credential. - Description *string `mandatory:"false" json:"description"` - - // The credential's current state. After creating a Oauth credential, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState OAuth2ClientCredentialSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Date and time the `OAuth2ClientCredential` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m OAuth2ClientCredentialSummary) String() string { - return common.PointerString(m) -} - -// OAuth2ClientCredentialSummaryLifecycleStateEnum Enum with underlying type: string -type OAuth2ClientCredentialSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for OAuth2ClientCredentialSummaryLifecycleStateEnum -const ( - OAuth2ClientCredentialSummaryLifecycleStateCreating OAuth2ClientCredentialSummaryLifecycleStateEnum = "CREATING" - OAuth2ClientCredentialSummaryLifecycleStateActive OAuth2ClientCredentialSummaryLifecycleStateEnum = "ACTIVE" - OAuth2ClientCredentialSummaryLifecycleStateInactive OAuth2ClientCredentialSummaryLifecycleStateEnum = "INACTIVE" - OAuth2ClientCredentialSummaryLifecycleStateDeleting OAuth2ClientCredentialSummaryLifecycleStateEnum = "DELETING" - OAuth2ClientCredentialSummaryLifecycleStateDeleted OAuth2ClientCredentialSummaryLifecycleStateEnum = "DELETED" -) - -var mappingOAuth2ClientCredentialSummaryLifecycleState = map[string]OAuth2ClientCredentialSummaryLifecycleStateEnum{ - "CREATING": OAuth2ClientCredentialSummaryLifecycleStateCreating, - "ACTIVE": OAuth2ClientCredentialSummaryLifecycleStateActive, - "INACTIVE": OAuth2ClientCredentialSummaryLifecycleStateInactive, - "DELETING": OAuth2ClientCredentialSummaryLifecycleStateDeleting, - "DELETED": OAuth2ClientCredentialSummaryLifecycleStateDeleted, -} - -// GetOAuth2ClientCredentialSummaryLifecycleStateEnumValues Enumerates the set of values for OAuth2ClientCredentialSummaryLifecycleStateEnum -func GetOAuth2ClientCredentialSummaryLifecycleStateEnumValues() []OAuth2ClientCredentialSummaryLifecycleStateEnum { - values := make([]OAuth2ClientCredentialSummaryLifecycleStateEnum, 0) - for _, v := range mappingOAuth2ClientCredentialSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/password_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/password_policy.go deleted file mode 100644 index 623a35f4c9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/password_policy.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PasswordPolicy Password policy, currently set for the given compartment. -type PasswordPolicy struct { - - // Minimum password length required. - MinimumPasswordLength *int `mandatory:"false" json:"minimumPasswordLength"` - - // At least one uppercase character required. - IsUppercaseCharactersRequired *bool `mandatory:"false" json:"isUppercaseCharactersRequired"` - - // At least one lower case character required. - IsLowercaseCharactersRequired *bool `mandatory:"false" json:"isLowercaseCharactersRequired"` - - // At least one numeric character required. - IsNumericCharactersRequired *bool `mandatory:"false" json:"isNumericCharactersRequired"` - - // At least one special character required. - IsSpecialCharactersRequired *bool `mandatory:"false" json:"isSpecialCharactersRequired"` - - // User name is allowed to be part of the password. - IsUsernameContainmentAllowed *bool `mandatory:"false" json:"isUsernameContainmentAllowed"` -} - -func (m PasswordPolicy) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/policy.go deleted file mode 100644 index 165bf33474..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/policy.go +++ /dev/null @@ -1,104 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Policy A document that specifies the type of access a group has to the resources in a compartment. For information about -// policies and other IAM Service components, see -// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). If you're new to policies, see -// Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -// The word "policy" is used by people in different ways: -// * An individual statement written in the policy language -// * A collection of statements in a single, named "policy" document (which has an Oracle Cloud ID (OCID) assigned to it) -// * The overall body of policies your organization uses to control access to resources -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values -// using the API. -type Policy struct { - - // The OCID of the policy. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment containing the policy (either the tenancy or another compartment). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the policy during creation. The name must be unique across all policies - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // An array of one or more policy statements written in the policy language. - Statements []string `mandatory:"true" json:"statements"` - - // The description you assign to the policy. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the policy was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The policy's current state. After creating a policy, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState PolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the - // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular - // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Policy) String() string { - return common.PointerString(m) -} - -// PolicyLifecycleStateEnum Enum with underlying type: string -type PolicyLifecycleStateEnum string - -// Set of constants representing the allowable values for PolicyLifecycleStateEnum -const ( - PolicyLifecycleStateCreating PolicyLifecycleStateEnum = "CREATING" - PolicyLifecycleStateActive PolicyLifecycleStateEnum = "ACTIVE" - PolicyLifecycleStateInactive PolicyLifecycleStateEnum = "INACTIVE" - PolicyLifecycleStateDeleting PolicyLifecycleStateEnum = "DELETING" - PolicyLifecycleStateDeleted PolicyLifecycleStateEnum = "DELETED" -) - -var mappingPolicyLifecycleState = map[string]PolicyLifecycleStateEnum{ - "CREATING": PolicyLifecycleStateCreating, - "ACTIVE": PolicyLifecycleStateActive, - "INACTIVE": PolicyLifecycleStateInactive, - "DELETING": PolicyLifecycleStateDeleting, - "DELETED": PolicyLifecycleStateDeleted, -} - -// GetPolicyLifecycleStateEnumValues Enumerates the set of values for PolicyLifecycleStateEnum -func GetPolicyLifecycleStateEnumValues() []PolicyLifecycleStateEnum { - values := make([]PolicyLifecycleStateEnum, 0) - for _, v := range mappingPolicyLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/region.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/region.go deleted file mode 100644 index 6c05778000..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/region.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Region A localized geographic area, such as Phoenix, AZ. Oracle Cloud Infrastructure is hosted in regions and Availability -// Domains. A region is composed of several Availability Domains. An Availability Domain is one or more data centers -// located within a region. For more information, see Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -type Region struct { - - // The key of the region. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) for - // the full list of supported 3-letter region codes. - // Example: `PHX` - Key *string `mandatory:"false" json:"key"` - - // The name of the region. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported region names. - // Example: `us-phoenix-1` - Name *string `mandatory:"false" json:"name"` -} - -func (m Region) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/region_subscription.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/region_subscription.go deleted file mode 100644 index 714ee2674c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/region_subscription.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RegionSubscription An object that represents your tenancy's access to a particular region (i.e., a subscription), the status of that -// access, and whether that region is the home region. For more information, see Managing Regions (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingregions.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -type RegionSubscription struct { - - // The region's key. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported 3-letter region codes. - // Example: `PHX` - RegionKey *string `mandatory:"true" json:"regionKey"` - - // The region's name. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported region names. - // Example: `us-phoenix-1` - RegionName *string `mandatory:"true" json:"regionName"` - - // The region subscription status. - Status RegionSubscriptionStatusEnum `mandatory:"true" json:"status"` - - // Indicates if the region is the home region or not. - IsHomeRegion *bool `mandatory:"true" json:"isHomeRegion"` -} - -func (m RegionSubscription) String() string { - return common.PointerString(m) -} - -// RegionSubscriptionStatusEnum Enum with underlying type: string -type RegionSubscriptionStatusEnum string - -// Set of constants representing the allowable values for RegionSubscriptionStatusEnum -const ( - RegionSubscriptionStatusReady RegionSubscriptionStatusEnum = "READY" - RegionSubscriptionStatusInProgress RegionSubscriptionStatusEnum = "IN_PROGRESS" -) - -var mappingRegionSubscriptionStatus = map[string]RegionSubscriptionStatusEnum{ - "READY": RegionSubscriptionStatusReady, - "IN_PROGRESS": RegionSubscriptionStatusInProgress, -} - -// GetRegionSubscriptionStatusEnumValues Enumerates the set of values for RegionSubscriptionStatusEnum -func GetRegionSubscriptionStatusEnumValues() []RegionSubscriptionStatusEnum { - values := make([]RegionSubscriptionStatusEnum, 0) - for _, v := range mappingRegionSubscriptionStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/replicated_region_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/replicated_region_details.go deleted file mode 100644 index 12a6b07d37..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/replicated_region_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReplicatedRegionDetails Properties for a region where a domain is replicated too. -type ReplicatedRegionDetails struct { - - // A REPLICATION_ENABLED region, e.g. us-ashburn-1. - // See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) - // for the full list of supported region names. - Region *string `mandatory:"false" json:"region"` - - // URL for the regional IDCS compatibility layer. - Url *string `mandatory:"false" json:"url"` - - // The IDCS replicated region state - State ReplicatedRegionDetailsStateEnum `mandatory:"false" json:"state,omitempty"` -} - -func (m ReplicatedRegionDetails) String() string { - return common.PointerString(m) -} - -// ReplicatedRegionDetailsStateEnum Enum with underlying type: string -type ReplicatedRegionDetailsStateEnum string - -// Set of constants representing the allowable values for ReplicatedRegionDetailsStateEnum -const ( - ReplicatedRegionDetailsStateEnablingReplication ReplicatedRegionDetailsStateEnum = "ENABLING_REPLICATION" - ReplicatedRegionDetailsStateReplicationEnabled ReplicatedRegionDetailsStateEnum = "REPLICATION_ENABLED" - ReplicatedRegionDetailsStateDisablingReplication ReplicatedRegionDetailsStateEnum = "DISABLING_REPLICATION" - ReplicatedRegionDetailsStateReplicationDisabled ReplicatedRegionDetailsStateEnum = "REPLICATION_DISABLED" - ReplicatedRegionDetailsStateDeleted ReplicatedRegionDetailsStateEnum = "DELETED" -) - -var mappingReplicatedRegionDetailsState = map[string]ReplicatedRegionDetailsStateEnum{ - "ENABLING_REPLICATION": ReplicatedRegionDetailsStateEnablingReplication, - "REPLICATION_ENABLED": ReplicatedRegionDetailsStateReplicationEnabled, - "DISABLING_REPLICATION": ReplicatedRegionDetailsStateDisablingReplication, - "REPLICATION_DISABLED": ReplicatedRegionDetailsStateReplicationDisabled, - "DELETED": ReplicatedRegionDetailsStateDeleted, -} - -// GetReplicatedRegionDetailsStateEnumValues Enumerates the set of values for ReplicatedRegionDetailsStateEnum -func GetReplicatedRegionDetailsStateEnumValues() []ReplicatedRegionDetailsStateEnum { - values := make([]ReplicatedRegionDetailsStateEnum, 0) - for _, v := range mappingReplicatedRegionDetailsState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/scim_client_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/scim_client_credentials.go deleted file mode 100644 index ba971ca8e1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/scim_client_credentials.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ScimClientCredentials The OAuth2 client credentials. -type ScimClientCredentials struct { - - // The client identifier. - ClientId *string `mandatory:"false" json:"clientId"` - - // The client secret. - ClientSecret *string `mandatory:"false" json:"clientSecret"` -} - -func (m ScimClientCredentials) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential.go deleted file mode 100644 index e0178d5975..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SmtpCredential Simple Mail Transfer Protocol (SMTP) credentials are needed to send email through Email Delivery. -// The SMTP credentials are used for SMTP authentication with the service. The credentials never expire. -// A user can have up to 2 SMTP credentials at a time. -// **Note:** The credential set is always an Oracle-generated SMTP user name and password pair; -// you cannot designate the SMTP user name or the SMTP password. -// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm#SMTP). -type SmtpCredential struct { - - // The SMTP user name. - Username *string `mandatory:"false" json:"username"` - - // The SMTP password. - Password *string `mandatory:"false" json:"password"` - - // The OCID of the SMTP credential. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the SMTP credential belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Date and time the `SmtpCredential` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this credential will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState SmtpCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m SmtpCredential) String() string { - return common.PointerString(m) -} - -// SmtpCredentialLifecycleStateEnum Enum with underlying type: string -type SmtpCredentialLifecycleStateEnum string - -// Set of constants representing the allowable values for SmtpCredentialLifecycleStateEnum -const ( - SmtpCredentialLifecycleStateCreating SmtpCredentialLifecycleStateEnum = "CREATING" - SmtpCredentialLifecycleStateActive SmtpCredentialLifecycleStateEnum = "ACTIVE" - SmtpCredentialLifecycleStateInactive SmtpCredentialLifecycleStateEnum = "INACTIVE" - SmtpCredentialLifecycleStateDeleting SmtpCredentialLifecycleStateEnum = "DELETING" - SmtpCredentialLifecycleStateDeleted SmtpCredentialLifecycleStateEnum = "DELETED" -) - -var mappingSmtpCredentialLifecycleState = map[string]SmtpCredentialLifecycleStateEnum{ - "CREATING": SmtpCredentialLifecycleStateCreating, - "ACTIVE": SmtpCredentialLifecycleStateActive, - "INACTIVE": SmtpCredentialLifecycleStateInactive, - "DELETING": SmtpCredentialLifecycleStateDeleting, - "DELETED": SmtpCredentialLifecycleStateDeleted, -} - -// GetSmtpCredentialLifecycleStateEnumValues Enumerates the set of values for SmtpCredentialLifecycleStateEnum -func GetSmtpCredentialLifecycleStateEnumValues() []SmtpCredentialLifecycleStateEnum { - values := make([]SmtpCredentialLifecycleStateEnum, 0) - for _, v := range mappingSmtpCredentialLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential_summary.go deleted file mode 100644 index 0a53c9ef84..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/smtp_credential_summary.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SmtpCredentialSummary As the name suggests, an `SmtpCredentialSummary` object contains information about an `SmtpCredential`. -// The SMTP credential is used for SMTP authentication with -// the Email Delivery Service (https://docs.cloud.oracle.com/Content/Email/Concepts/overview.htm). -type SmtpCredentialSummary struct { - - // The SMTP user name. - Username *string `mandatory:"false" json:"username"` - - // The OCID of the SMTP credential. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the SMTP credential belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Date and time the `SmtpCredential` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this credential will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` - - // The credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState SmtpCredentialSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m SmtpCredentialSummary) String() string { - return common.PointerString(m) -} - -// SmtpCredentialSummaryLifecycleStateEnum Enum with underlying type: string -type SmtpCredentialSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for SmtpCredentialSummaryLifecycleStateEnum -const ( - SmtpCredentialSummaryLifecycleStateCreating SmtpCredentialSummaryLifecycleStateEnum = "CREATING" - SmtpCredentialSummaryLifecycleStateActive SmtpCredentialSummaryLifecycleStateEnum = "ACTIVE" - SmtpCredentialSummaryLifecycleStateInactive SmtpCredentialSummaryLifecycleStateEnum = "INACTIVE" - SmtpCredentialSummaryLifecycleStateDeleting SmtpCredentialSummaryLifecycleStateEnum = "DELETING" - SmtpCredentialSummaryLifecycleStateDeleted SmtpCredentialSummaryLifecycleStateEnum = "DELETED" -) - -var mappingSmtpCredentialSummaryLifecycleState = map[string]SmtpCredentialSummaryLifecycleStateEnum{ - "CREATING": SmtpCredentialSummaryLifecycleStateCreating, - "ACTIVE": SmtpCredentialSummaryLifecycleStateActive, - "INACTIVE": SmtpCredentialSummaryLifecycleStateInactive, - "DELETING": SmtpCredentialSummaryLifecycleStateDeleting, - "DELETED": SmtpCredentialSummaryLifecycleStateDeleted, -} - -// GetSmtpCredentialSummaryLifecycleStateEnumValues Enumerates the set of values for SmtpCredentialSummaryLifecycleStateEnum -func GetSmtpCredentialSummaryLifecycleStateEnumValues() []SmtpCredentialSummaryLifecycleStateEnum { - values := make([]SmtpCredentialSummaryLifecycleStateEnum, 0) - for _, v := range mappingSmtpCredentialSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_definition_template.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_definition_template.go deleted file mode 100644 index c697d72e1c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_definition_template.go +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// StandardTagDefinitionTemplate The template of the tag definition. This object includes necessary details to create the provided standard tag definition. -type StandardTagDefinitionTemplate struct { - - // The default description of the tag namespace that users can use to create the tag definition - Description *string `mandatory:"true" json:"description"` - - // The name of this standard tag definition - TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"` - - // The type of tag definition. Enum or string. - Type StandardTagDefinitionTemplateTypeEnum `mandatory:"true" json:"type"` - - // Is the tag a cost tracking tag. Default will be false as cost tracking tags have been deprecated - IsCostTracking *bool `mandatory:"true" json:"isCostTracking"` - - // List of possible values. An optional parameter that will be present if the type of definition is enum. - PossibleValues []string `mandatory:"false" json:"possibleValues"` - - // The mutability of the possible values list for enum tags. This will default to IMMUTABLE for string value tags - EnumMutability StandardTagDefinitionTemplateEnumMutabilityEnum `mandatory:"false" json:"enumMutability,omitempty"` -} - -func (m StandardTagDefinitionTemplate) String() string { - return common.PointerString(m) -} - -// StandardTagDefinitionTemplateTypeEnum Enum with underlying type: string -type StandardTagDefinitionTemplateTypeEnum string - -// Set of constants representing the allowable values for StandardTagDefinitionTemplateTypeEnum -const ( - StandardTagDefinitionTemplateTypeEnumvalue StandardTagDefinitionTemplateTypeEnum = "ENUM" - StandardTagDefinitionTemplateTypeString StandardTagDefinitionTemplateTypeEnum = "STRING" -) - -var mappingStandardTagDefinitionTemplateType = map[string]StandardTagDefinitionTemplateTypeEnum{ - "ENUM": StandardTagDefinitionTemplateTypeEnumvalue, - "STRING": StandardTagDefinitionTemplateTypeString, -} - -// GetStandardTagDefinitionTemplateTypeEnumValues Enumerates the set of values for StandardTagDefinitionTemplateTypeEnum -func GetStandardTagDefinitionTemplateTypeEnumValues() []StandardTagDefinitionTemplateTypeEnum { - values := make([]StandardTagDefinitionTemplateTypeEnum, 0) - for _, v := range mappingStandardTagDefinitionTemplateType { - values = append(values, v) - } - return values -} - -// StandardTagDefinitionTemplateEnumMutabilityEnum Enum with underlying type: string -type StandardTagDefinitionTemplateEnumMutabilityEnum string - -// Set of constants representing the allowable values for StandardTagDefinitionTemplateEnumMutabilityEnum -const ( - StandardTagDefinitionTemplateEnumMutabilityImmutable StandardTagDefinitionTemplateEnumMutabilityEnum = "IMMUTABLE" - StandardTagDefinitionTemplateEnumMutabilityMutable StandardTagDefinitionTemplateEnumMutabilityEnum = "MUTABLE" - StandardTagDefinitionTemplateEnumMutabilityAppendable StandardTagDefinitionTemplateEnumMutabilityEnum = "APPENDABLE" -) - -var mappingStandardTagDefinitionTemplateEnumMutability = map[string]StandardTagDefinitionTemplateEnumMutabilityEnum{ - "IMMUTABLE": StandardTagDefinitionTemplateEnumMutabilityImmutable, - "MUTABLE": StandardTagDefinitionTemplateEnumMutabilityMutable, - "APPENDABLE": StandardTagDefinitionTemplateEnumMutabilityAppendable, -} - -// GetStandardTagDefinitionTemplateEnumMutabilityEnumValues Enumerates the set of values for StandardTagDefinitionTemplateEnumMutabilityEnum -func GetStandardTagDefinitionTemplateEnumMutabilityEnumValues() []StandardTagDefinitionTemplateEnumMutabilityEnum { - values := make([]StandardTagDefinitionTemplateEnumMutabilityEnum, 0) - for _, v := range mappingStandardTagDefinitionTemplateEnumMutability { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template.go deleted file mode 100644 index 7929caa027..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// StandardTagNamespaceTemplate The template of the standard tag namespace. This object includes necessary details to create the provided standard tag namespace. -type StandardTagNamespaceTemplate struct { - - // The default description of the tag namespace that users can use to create the tag namespace - Description *string `mandatory:"true" json:"description"` - - // The reserved name of this standard tag namespace - StandardTagNamespaceName *string `mandatory:"true" json:"standardTagNamespaceName"` - - // The template of the tag definition. This object includes necessary details to create the provided standard tag definition. - TagDefinitionTemplates []StandardTagDefinitionTemplate `mandatory:"true" json:"tagDefinitionTemplates"` - - // The status of the standard tag namespace - Status *string `mandatory:"true" json:"status"` -} - -func (m StandardTagNamespaceTemplate) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template_summary.go deleted file mode 100644 index 434b2d42db..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/standard_tag_namespace_template_summary.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// StandardTagNamespaceTemplateSummary The template of the standard tag namespace. This object includes necessary details to create the provided standard tag namespace. -type StandardTagNamespaceTemplateSummary struct { - - // The default description of the tag namespace that users can use to create the tag namespace - Description *string `mandatory:"true" json:"description"` - - // The reserved name of this standard tag namespace - StandardTagNamespaceName *string `mandatory:"true" json:"standardTagNamespaceName"` - - // The template of the tag definition. This object includes necessary details to create the provided standard tag definition. - TagDefinitionTemplates []StandardTagDefinitionTemplate `mandatory:"true" json:"tagDefinitionTemplates"` - - // The status of the standard tag namespace - Status *string `mandatory:"true" json:"status"` -} - -func (m StandardTagNamespaceTemplateSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/swift_password.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/swift_password.go deleted file mode 100644 index 11938fed70..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/swift_password.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SwiftPassword **Deprecated. Use AuthToken instead.** -// Swift is the OpenStack object storage service. A `SwiftPassword` is an Oracle-provided password for using a -// Swift client with the Object Storage Service. This password is associated with -// the user's Console login. Swift passwords never expire. A user can have up to two Swift passwords at a time. -// **Note:** The password is always an Oracle-generated string; you can't change it to a string of your choice. -// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). -type SwiftPassword struct { - - // The Swift password. The value is available only in the response for `CreateSwiftPassword`, and not - // for `ListSwiftPasswords` or `UpdateSwiftPassword`. - Password *string `mandatory:"false" json:"password"` - - // The OCID of the Swift password. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the user the password belongs to. - UserId *string `mandatory:"false" json:"userId"` - - // The description you assign to the Swift password. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Date and time the `SwiftPassword` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Date and time when this password will expire, in the format defined by RFC3339. - // Null if it never expires. - // Example: `2016-08-25T21:10:29.600Z` - ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` - - // The password's current state. After creating a password, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState SwiftPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m SwiftPassword) String() string { - return common.PointerString(m) -} - -// SwiftPasswordLifecycleStateEnum Enum with underlying type: string -type SwiftPasswordLifecycleStateEnum string - -// Set of constants representing the allowable values for SwiftPasswordLifecycleStateEnum -const ( - SwiftPasswordLifecycleStateCreating SwiftPasswordLifecycleStateEnum = "CREATING" - SwiftPasswordLifecycleStateActive SwiftPasswordLifecycleStateEnum = "ACTIVE" - SwiftPasswordLifecycleStateInactive SwiftPasswordLifecycleStateEnum = "INACTIVE" - SwiftPasswordLifecycleStateDeleting SwiftPasswordLifecycleStateEnum = "DELETING" - SwiftPasswordLifecycleStateDeleted SwiftPasswordLifecycleStateEnum = "DELETED" -) - -var mappingSwiftPasswordLifecycleState = map[string]SwiftPasswordLifecycleStateEnum{ - "CREATING": SwiftPasswordLifecycleStateCreating, - "ACTIVE": SwiftPasswordLifecycleStateActive, - "INACTIVE": SwiftPasswordLifecycleStateInactive, - "DELETING": SwiftPasswordLifecycleStateDeleting, - "DELETED": SwiftPasswordLifecycleStateDeleted, -} - -// GetSwiftPasswordLifecycleStateEnumValues Enumerates the set of values for SwiftPasswordLifecycleStateEnum -func GetSwiftPasswordLifecycleStateEnumValues() []SwiftPasswordLifecycleStateEnum { - values := make([]SwiftPasswordLifecycleStateEnum, 0) - for _, v := range mappingSwiftPasswordLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default.go deleted file mode 100644 index ea53bae045..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TagDefault Tag defaults let you specify a default tag (tagnamespace.tag="value") to apply to all resource types -// in a specified compartment. The tag default is applied at the time the resource is created. Resources -// that exist in the compartment before you create the tag default are not tagged. The `TagDefault` object -// specifies the tag and compartment details. -// Tag defaults are inherited by child compartments. This means that if you set a tag default on the root compartment -// for a tenancy, all resources that are created in the tenancy are tagged. For more information about -// using tag defaults, see Managing Tag Defaults (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingtagdefaults.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. -type TagDefault struct { - - // The OCID of the tag default. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment. The tag default applies to all new resources that get created in the - // compartment. Resources that existed before the tag default was created are not tagged. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the tag namespace that contains the tag definition. - TagNamespaceId *string `mandatory:"true" json:"tagNamespaceId"` - - // The OCID of the tag definition. The tag default will always assign a default value for this tag definition. - TagDefinitionId *string `mandatory:"true" json:"tagDefinitionId"` - - // The name used in the tag definition. This field is informational in the context of the tag default. - TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"` - - // The default value for the tag definition. This will be applied to all resources created in the compartment. - Value *string `mandatory:"true" json:"value"` - - // Date and time the `TagDefault` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // If you specify that a value is required, a value is set during resource creation (either by the - // user creating the resource or another tag defualt). If no value is set, resource creation is - // blocked. - // * If the `isRequired` flag is set to "true", the value is set during resource creation. - // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. - // Example: `false` - IsRequired *bool `mandatory:"true" json:"isRequired"` - - // The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it. - LifecycleState TagDefaultLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m TagDefault) String() string { - return common.PointerString(m) -} - -// TagDefaultLifecycleStateEnum Enum with underlying type: string -type TagDefaultLifecycleStateEnum string - -// Set of constants representing the allowable values for TagDefaultLifecycleStateEnum -const ( - TagDefaultLifecycleStateActive TagDefaultLifecycleStateEnum = "ACTIVE" -) - -var mappingTagDefaultLifecycleState = map[string]TagDefaultLifecycleStateEnum{ - "ACTIVE": TagDefaultLifecycleStateActive, -} - -// GetTagDefaultLifecycleStateEnumValues Enumerates the set of values for TagDefaultLifecycleStateEnum -func GetTagDefaultLifecycleStateEnumValues() []TagDefaultLifecycleStateEnum { - values := make([]TagDefaultLifecycleStateEnum, 0) - for _, v := range mappingTagDefaultLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default_summary.go deleted file mode 100644 index ccabffb125..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_default_summary.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TagDefaultSummary Summary information for the specified tag default. -type TagDefaultSummary struct { - - // The OCID of the tag default. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment. The tag default will apply to all new resources that are created in the compartment. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the tag namespace that contains the tag definition. - TagNamespaceId *string `mandatory:"true" json:"tagNamespaceId"` - - // The OCID of the tag definition. The tag default will always assign a default value for this tag definition. - TagDefinitionId *string `mandatory:"true" json:"tagDefinitionId"` - - // The name used in the tag definition. This field is informational in the context of the tag default. - TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"` - - // The default value for the tag definition. This will be applied to all new resources created in the compartment. - Value *string `mandatory:"true" json:"value"` - - // Date and time the `TagDefault` object was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // If you specify that a value is required, a value is set during resource creation (either by - // the user creating the resource or another tag defualt). If no value is set, resource - // creation is blocked. - // * If the `isRequired` flag is set to "true", the value is set during resource creation. - // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. - // Example: `false` - IsRequired *bool `mandatory:"true" json:"isRequired"` - - // The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it. - LifecycleState TagDefaultSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m TagDefaultSummary) String() string { - return common.PointerString(m) -} - -// TagDefaultSummaryLifecycleStateEnum Enum with underlying type: string -type TagDefaultSummaryLifecycleStateEnum string - -// Set of constants representing the allowable values for TagDefaultSummaryLifecycleStateEnum -const ( - TagDefaultSummaryLifecycleStateActive TagDefaultSummaryLifecycleStateEnum = "ACTIVE" -) - -var mappingTagDefaultSummaryLifecycleState = map[string]TagDefaultSummaryLifecycleStateEnum{ - "ACTIVE": TagDefaultSummaryLifecycleStateActive, -} - -// GetTagDefaultSummaryLifecycleStateEnumValues Enumerates the set of values for TagDefaultSummaryLifecycleStateEnum -func GetTagDefaultSummaryLifecycleStateEnumValues() []TagDefaultSummaryLifecycleStateEnum { - values := make([]TagDefaultSummaryLifecycleStateEnum, 0) - for _, v := range mappingTagDefaultSummaryLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace.go deleted file mode 100644 index e8c8ccb7b3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TagNamespace A managed container for defined tags. A tag namespace is unique in a tenancy. For more information, -// see Managing Tags and Tag Namespaces (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values -// using the API. -type TagNamespace struct { - - // The OCID of the tag namespace. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment that contains the tag namespace. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the tag namespace. - Description *string `mandatory:"true" json:"description"` - - // Whether the tag namespace is retired. - // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). - IsRetired *bool `mandatory:"true" json:"isRetired"` - - // Date and time the tagNamespace was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // The tagnamespace's current state. After creating a tagnamespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tagnamespace, make sure its `lifecycleState` is INACTIVE before using it. - LifecycleState TagNamespaceLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m TagNamespace) String() string { - return common.PointerString(m) -} - -// TagNamespaceLifecycleStateEnum Enum with underlying type: string -type TagNamespaceLifecycleStateEnum string - -// Set of constants representing the allowable values for TagNamespaceLifecycleStateEnum -const ( - TagNamespaceLifecycleStateActive TagNamespaceLifecycleStateEnum = "ACTIVE" - TagNamespaceLifecycleStateInactive TagNamespaceLifecycleStateEnum = "INACTIVE" - TagNamespaceLifecycleStateDeleting TagNamespaceLifecycleStateEnum = "DELETING" - TagNamespaceLifecycleStateDeleted TagNamespaceLifecycleStateEnum = "DELETED" -) - -var mappingTagNamespaceLifecycleState = map[string]TagNamespaceLifecycleStateEnum{ - "ACTIVE": TagNamespaceLifecycleStateActive, - "INACTIVE": TagNamespaceLifecycleStateInactive, - "DELETING": TagNamespaceLifecycleStateDeleting, - "DELETED": TagNamespaceLifecycleStateDeleted, -} - -// GetTagNamespaceLifecycleStateEnumValues Enumerates the set of values for TagNamespaceLifecycleStateEnum -func GetTagNamespaceLifecycleStateEnumValues() []TagNamespaceLifecycleStateEnum { - values := make([]TagNamespaceLifecycleStateEnum, 0) - for _, v := range mappingTagNamespaceLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace_summary.go deleted file mode 100644 index 37a86cbcb6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_namespace_summary.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TagNamespaceSummary A container for defined tags. -type TagNamespaceSummary struct { - - // The OCID of the tag namespace. - Id *string `mandatory:"false" json:"id"` - - // The OCID of the compartment that contains the tag namespace. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. - Name *string `mandatory:"false" json:"name"` - - // The description you assign to the tag namespace. - Description *string `mandatory:"false" json:"description"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Whether the tag namespace is retired. - // For more information, see Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). - IsRetired *bool `mandatory:"false" json:"isRetired"` - - // The tagnamespace's current state. After creating a tagnamespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tagnamespace, make sure its `lifecycleState` is INACTIVE before using it. - LifecycleState TagNamespaceLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Date and time the tag namespace was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` -} - -func (m TagNamespaceSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_rule.go deleted file mode 100644 index a2d2a5e452..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_rule.go +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TagRule A document that specifies one or more actions on tag key(s) and/or value(s) for one or more resource types in a -// compartment. -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. -type TagRule struct { - - // The OCID of the tag rule. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment containing the tag rule (either the tenancy or another compartment). - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the tag rule during creation. The name must be unique across all tag rules - // in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // A statement that is written in the tag rule language. - RuleText *string `mandatory:"true" json:"ruleText"` - - // Date and time the tag rule was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The current state of the tag rule. After creating a tag rule, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState TagRuleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user - // is inactive: - // - bit 0: SUSPENDED (reserved for future use) - // - bit 1: DISABLED (reserved for future use) - // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m TagRule) String() string { - return common.PointerString(m) -} - -// TagRuleLifecycleStateEnum Enum with underlying type: string -type TagRuleLifecycleStateEnum string - -// Set of constants representing the allowable values for TagRuleLifecycleStateEnum -const ( - TagRuleLifecycleStateCreating TagRuleLifecycleStateEnum = "CREATING" - TagRuleLifecycleStateActive TagRuleLifecycleStateEnum = "ACTIVE" - TagRuleLifecycleStateInactive TagRuleLifecycleStateEnum = "INACTIVE" - TagRuleLifecycleStateDeleting TagRuleLifecycleStateEnum = "DELETING" - TagRuleLifecycleStateDeleted TagRuleLifecycleStateEnum = "DELETED" -) - -var mappingTagRuleLifecycleState = map[string]TagRuleLifecycleStateEnum{ - "CREATING": TagRuleLifecycleStateCreating, - "ACTIVE": TagRuleLifecycleStateActive, - "INACTIVE": TagRuleLifecycleStateInactive, - "DELETING": TagRuleLifecycleStateDeleting, - "DELETED": TagRuleLifecycleStateDeleted, -} - -// GetTagRuleLifecycleStateEnumValues Enumerates the set of values for TagRuleLifecycleStateEnum -func GetTagRuleLifecycleStateEnumValues() []TagRuleLifecycleStateEnum { - values := make([]TagRuleLifecycleStateEnum, 0) - for _, v := range mappingTagRuleLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_summary.go deleted file mode 100644 index 318abefd1b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag_summary.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TagSummary A tag definition that belongs to a specific tag namespace. -type TagSummary struct { - - // The OCID of the compartment that contains the tag definition. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The OCID of the tag definition. - Id *string `mandatory:"false" json:"id"` - - // The name assigned to the tag during creation. This is the tag key definition. - // The name must be unique within the tag namespace and cannot be changed. - Name *string `mandatory:"false" json:"name"` - - // The description you assign to the tag. - Description *string `mandatory:"false" json:"description"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - // Whether the tag is retired. - // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). - IsRetired *bool `mandatory:"false" json:"isRetired"` - - // The tag's current state. After creating a tag, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tag, make sure its `lifecycleState` is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag's `lifecycleState` changes from DELETING to DELETED. - LifecycleState TagLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // Date and time the tag was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // Indicates whether the tag is enabled for cost tracking. - IsCostTracking *bool `mandatory:"false" json:"isCostTracking"` -} - -func (m TagSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request.go deleted file mode 100644 index 6fe0103c40..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request.go +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TaggingWorkRequest The asynchronous API request does not take effect immediately. This request spawns an asynchronous -// workflow to fulfill the request. WorkRequest objects provide visibility for in-progress workflows. -type TaggingWorkRequest struct { - - // The OCID of the work request. - Id *string `mandatory:"true" json:"id"` - - // An enum-like description of the type of work the work request is doing. - OperationType TaggingWorkRequestOperationTypeEnum `mandatory:"true" json:"operationType"` - - // The current status of the work request. - Status TaggingWorkRequestStatusEnum `mandatory:"true" json:"status"` - - // The OCID of the compartment that contains the work request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []WorkRequestResource `mandatory:"false" json:"resources"` - - // Date and time the work was accepted, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // Date and time the work started, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // Date and time the work completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` - - // How much progress the operation has made. - PercentComplete *float32 `mandatory:"false" json:"percentComplete"` -} - -func (m TaggingWorkRequest) String() string { - return common.PointerString(m) -} - -// TaggingWorkRequestOperationTypeEnum Enum with underlying type: string -type TaggingWorkRequestOperationTypeEnum string - -// Set of constants representing the allowable values for TaggingWorkRequestOperationTypeEnum -const ( - TaggingWorkRequestOperationTypeDeleteTagDefinition TaggingWorkRequestOperationTypeEnum = "DELETE_TAG_DEFINITION" - TaggingWorkRequestOperationTypeDeleteNonEmptyTagNamespace TaggingWorkRequestOperationTypeEnum = "DELETE_NON_EMPTY_TAG_NAMESPACE" - TaggingWorkRequestOperationTypeBulkDeleteTagDefinition TaggingWorkRequestOperationTypeEnum = "BULK_DELETE_TAG_DEFINITION" - TaggingWorkRequestOperationTypeBulkEditOfTags TaggingWorkRequestOperationTypeEnum = "BULK_EDIT_OF_TAGS" - TaggingWorkRequestOperationTypeBulkImportStandardTagNamespaces TaggingWorkRequestOperationTypeEnum = "BULK_IMPORT_STANDARD_TAG_NAMESPACES" -) - -var mappingTaggingWorkRequestOperationType = map[string]TaggingWorkRequestOperationTypeEnum{ - "DELETE_TAG_DEFINITION": TaggingWorkRequestOperationTypeDeleteTagDefinition, - "DELETE_NON_EMPTY_TAG_NAMESPACE": TaggingWorkRequestOperationTypeDeleteNonEmptyTagNamespace, - "BULK_DELETE_TAG_DEFINITION": TaggingWorkRequestOperationTypeBulkDeleteTagDefinition, - "BULK_EDIT_OF_TAGS": TaggingWorkRequestOperationTypeBulkEditOfTags, - "BULK_IMPORT_STANDARD_TAG_NAMESPACES": TaggingWorkRequestOperationTypeBulkImportStandardTagNamespaces, -} - -// GetTaggingWorkRequestOperationTypeEnumValues Enumerates the set of values for TaggingWorkRequestOperationTypeEnum -func GetTaggingWorkRequestOperationTypeEnumValues() []TaggingWorkRequestOperationTypeEnum { - values := make([]TaggingWorkRequestOperationTypeEnum, 0) - for _, v := range mappingTaggingWorkRequestOperationType { - values = append(values, v) - } - return values -} - -// TaggingWorkRequestStatusEnum Enum with underlying type: string -type TaggingWorkRequestStatusEnum string - -// Set of constants representing the allowable values for TaggingWorkRequestStatusEnum -const ( - TaggingWorkRequestStatusAccepted TaggingWorkRequestStatusEnum = "ACCEPTED" - TaggingWorkRequestStatusInProgress TaggingWorkRequestStatusEnum = "IN_PROGRESS" - TaggingWorkRequestStatusFailed TaggingWorkRequestStatusEnum = "FAILED" - TaggingWorkRequestStatusSucceeded TaggingWorkRequestStatusEnum = "SUCCEEDED" - TaggingWorkRequestStatusPartiallySucceeded TaggingWorkRequestStatusEnum = "PARTIALLY_SUCCEEDED" - TaggingWorkRequestStatusCanceling TaggingWorkRequestStatusEnum = "CANCELING" - TaggingWorkRequestStatusCanceled TaggingWorkRequestStatusEnum = "CANCELED" -) - -var mappingTaggingWorkRequestStatus = map[string]TaggingWorkRequestStatusEnum{ - "ACCEPTED": TaggingWorkRequestStatusAccepted, - "IN_PROGRESS": TaggingWorkRequestStatusInProgress, - "FAILED": TaggingWorkRequestStatusFailed, - "SUCCEEDED": TaggingWorkRequestStatusSucceeded, - "PARTIALLY_SUCCEEDED": TaggingWorkRequestStatusPartiallySucceeded, - "CANCELING": TaggingWorkRequestStatusCanceling, - "CANCELED": TaggingWorkRequestStatusCanceled, -} - -// GetTaggingWorkRequestStatusEnumValues Enumerates the set of values for TaggingWorkRequestStatusEnum -func GetTaggingWorkRequestStatusEnumValues() []TaggingWorkRequestStatusEnum { - values := make([]TaggingWorkRequestStatusEnum, 0) - for _, v := range mappingTaggingWorkRequestStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_error_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_error_summary.go deleted file mode 100644 index 017ea181ca..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_error_summary.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TaggingWorkRequestErrorSummary The error entity. -type TaggingWorkRequestErrorSummary struct { - - // A machine-usable code for the error that occured. - Code *string `mandatory:"true" json:"code"` - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // Date and time the error happened, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` -} - -func (m TaggingWorkRequestErrorSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_log_summary.go deleted file mode 100644 index 263ed979fa..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_log_summary.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TaggingWorkRequestLogSummary The log entity. -type TaggingWorkRequestLogSummary struct { - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // Date and time the log was written, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` -} - -func (m TaggingWorkRequestLogSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_summary.go deleted file mode 100644 index 67319ba38f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tagging_work_request_summary.go +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// TaggingWorkRequestSummary The work request summary. Tracks the status of the asynchronous operation. -type TaggingWorkRequestSummary struct { - - // The OCID of the work request. - Id *string `mandatory:"true" json:"id"` - - // An enum-like description of the type of work the work request is doing. - OperationType TaggingWorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"` - - // The current status of the work request. - Status TaggingWorkRequestSummaryStatusEnum `mandatory:"true" json:"status"` - - // The OCID of the compartment that contains the work request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []WorkRequestResource `mandatory:"false" json:"resources"` - - // Date and time the work was accepted, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // Date and time the work started, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // Date and time the work completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` - - // How much progress the operation has made. - PercentComplete *float32 `mandatory:"false" json:"percentComplete"` -} - -func (m TaggingWorkRequestSummary) String() string { - return common.PointerString(m) -} - -// TaggingWorkRequestSummaryOperationTypeEnum Enum with underlying type: string -type TaggingWorkRequestSummaryOperationTypeEnum string - -// Set of constants representing the allowable values for TaggingWorkRequestSummaryOperationTypeEnum -const ( - TaggingWorkRequestSummaryOperationTypeDeleteTagDefinition TaggingWorkRequestSummaryOperationTypeEnum = "DELETE_TAG_DEFINITION" - TaggingWorkRequestSummaryOperationTypeDeleteNonEmptyTagNamespace TaggingWorkRequestSummaryOperationTypeEnum = "DELETE_NON_EMPTY_TAG_NAMESPACE" - TaggingWorkRequestSummaryOperationTypeBulkDeleteTagDefinition TaggingWorkRequestSummaryOperationTypeEnum = "BULK_DELETE_TAG_DEFINITION" - TaggingWorkRequestSummaryOperationTypeBulkEditOfTags TaggingWorkRequestSummaryOperationTypeEnum = "BULK_EDIT_OF_TAGS" - TaggingWorkRequestSummaryOperationTypeBulkImportStandardTagNamespaces TaggingWorkRequestSummaryOperationTypeEnum = "BULK_IMPORT_STANDARD_TAG_NAMESPACES" -) - -var mappingTaggingWorkRequestSummaryOperationType = map[string]TaggingWorkRequestSummaryOperationTypeEnum{ - "DELETE_TAG_DEFINITION": TaggingWorkRequestSummaryOperationTypeDeleteTagDefinition, - "DELETE_NON_EMPTY_TAG_NAMESPACE": TaggingWorkRequestSummaryOperationTypeDeleteNonEmptyTagNamespace, - "BULK_DELETE_TAG_DEFINITION": TaggingWorkRequestSummaryOperationTypeBulkDeleteTagDefinition, - "BULK_EDIT_OF_TAGS": TaggingWorkRequestSummaryOperationTypeBulkEditOfTags, - "BULK_IMPORT_STANDARD_TAG_NAMESPACES": TaggingWorkRequestSummaryOperationTypeBulkImportStandardTagNamespaces, -} - -// GetTaggingWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for TaggingWorkRequestSummaryOperationTypeEnum -func GetTaggingWorkRequestSummaryOperationTypeEnumValues() []TaggingWorkRequestSummaryOperationTypeEnum { - values := make([]TaggingWorkRequestSummaryOperationTypeEnum, 0) - for _, v := range mappingTaggingWorkRequestSummaryOperationType { - values = append(values, v) - } - return values -} - -// TaggingWorkRequestSummaryStatusEnum Enum with underlying type: string -type TaggingWorkRequestSummaryStatusEnum string - -// Set of constants representing the allowable values for TaggingWorkRequestSummaryStatusEnum -const ( - TaggingWorkRequestSummaryStatusAccepted TaggingWorkRequestSummaryStatusEnum = "ACCEPTED" - TaggingWorkRequestSummaryStatusInProgress TaggingWorkRequestSummaryStatusEnum = "IN_PROGRESS" - TaggingWorkRequestSummaryStatusFailed TaggingWorkRequestSummaryStatusEnum = "FAILED" - TaggingWorkRequestSummaryStatusSucceeded TaggingWorkRequestSummaryStatusEnum = "SUCCEEDED" - TaggingWorkRequestSummaryStatusPartiallySucceeded TaggingWorkRequestSummaryStatusEnum = "PARTIALLY_SUCCEEDED" - TaggingWorkRequestSummaryStatusCanceling TaggingWorkRequestSummaryStatusEnum = "CANCELING" - TaggingWorkRequestSummaryStatusCanceled TaggingWorkRequestSummaryStatusEnum = "CANCELED" -) - -var mappingTaggingWorkRequestSummaryStatus = map[string]TaggingWorkRequestSummaryStatusEnum{ - "ACCEPTED": TaggingWorkRequestSummaryStatusAccepted, - "IN_PROGRESS": TaggingWorkRequestSummaryStatusInProgress, - "FAILED": TaggingWorkRequestSummaryStatusFailed, - "SUCCEEDED": TaggingWorkRequestSummaryStatusSucceeded, - "PARTIALLY_SUCCEEDED": TaggingWorkRequestSummaryStatusPartiallySucceeded, - "CANCELING": TaggingWorkRequestSummaryStatusCanceling, - "CANCELED": TaggingWorkRequestSummaryStatusCanceled, -} - -// GetTaggingWorkRequestSummaryStatusEnumValues Enumerates the set of values for TaggingWorkRequestSummaryStatusEnum -func GetTaggingWorkRequestSummaryStatusEnumValues() []TaggingWorkRequestSummaryStatusEnum { - values := make([]TaggingWorkRequestSummaryStatusEnum, 0) - for _, v := range mappingTaggingWorkRequestSummaryStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password.go deleted file mode 100644 index 0df7099aae..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UiPassword A text password that enables a user to sign in to the Console, the user interface for interacting with Oracle -// Cloud Infrastructure. -// For more information about user credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm). -type UiPassword struct { - - // The user's password for the Console. - Password *string `mandatory:"false" json:"password"` - - // The OCID of the user. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time the password was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The password's current state. After creating a password, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState UiPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m UiPassword) String() string { - return common.PointerString(m) -} - -// UiPasswordLifecycleStateEnum Enum with underlying type: string -type UiPasswordLifecycleStateEnum string - -// Set of constants representing the allowable values for UiPasswordLifecycleStateEnum -const ( - UiPasswordLifecycleStateCreating UiPasswordLifecycleStateEnum = "CREATING" - UiPasswordLifecycleStateActive UiPasswordLifecycleStateEnum = "ACTIVE" - UiPasswordLifecycleStateInactive UiPasswordLifecycleStateEnum = "INACTIVE" - UiPasswordLifecycleStateDeleting UiPasswordLifecycleStateEnum = "DELETING" - UiPasswordLifecycleStateDeleted UiPasswordLifecycleStateEnum = "DELETED" -) - -var mappingUiPasswordLifecycleState = map[string]UiPasswordLifecycleStateEnum{ - "CREATING": UiPasswordLifecycleStateCreating, - "ACTIVE": UiPasswordLifecycleStateActive, - "INACTIVE": UiPasswordLifecycleStateInactive, - "DELETING": UiPasswordLifecycleStateDeleting, - "DELETED": UiPasswordLifecycleStateDeleted, -} - -// GetUiPasswordLifecycleStateEnumValues Enumerates the set of values for UiPasswordLifecycleStateEnum -func GetUiPasswordLifecycleStateEnumValues() []UiPasswordLifecycleStateEnum { - values := make([]UiPasswordLifecycleStateEnum, 0) - for _, v := range mappingUiPasswordLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password_information.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password_information.go deleted file mode 100644 index 2ba6eeddf4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/ui_password_information.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UiPasswordInformation Information about the UIPassword, which is a text password that enables a user to sign in to the Console, -// the user interface for interacting with Oracle Cloud Infrastructure. -// For more information about user credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm). -type UiPasswordInformation struct { - - // The OCID of the user. - UserId *string `mandatory:"false" json:"userId"` - - // Date and time the password was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` - - // The password's current state. After creating a password, make sure its `lifecycleState` changes from - // CREATING to ACTIVE before using it. - LifecycleState UiPasswordInformationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` -} - -func (m UiPasswordInformation) String() string { - return common.PointerString(m) -} - -// UiPasswordInformationLifecycleStateEnum Enum with underlying type: string -type UiPasswordInformationLifecycleStateEnum string - -// Set of constants representing the allowable values for UiPasswordInformationLifecycleStateEnum -const ( - UiPasswordInformationLifecycleStateCreating UiPasswordInformationLifecycleStateEnum = "CREATING" - UiPasswordInformationLifecycleStateActive UiPasswordInformationLifecycleStateEnum = "ACTIVE" - UiPasswordInformationLifecycleStateInactive UiPasswordInformationLifecycleStateEnum = "INACTIVE" - UiPasswordInformationLifecycleStateDeleting UiPasswordInformationLifecycleStateEnum = "DELETING" - UiPasswordInformationLifecycleStateDeleted UiPasswordInformationLifecycleStateEnum = "DELETED" -) - -var mappingUiPasswordInformationLifecycleState = map[string]UiPasswordInformationLifecycleStateEnum{ - "CREATING": UiPasswordInformationLifecycleStateCreating, - "ACTIVE": UiPasswordInformationLifecycleStateActive, - "INACTIVE": UiPasswordInformationLifecycleStateInactive, - "DELETING": UiPasswordInformationLifecycleStateDeleting, - "DELETED": UiPasswordInformationLifecycleStateDeleted, -} - -// GetUiPasswordInformationLifecycleStateEnumValues Enumerates the set of values for UiPasswordInformationLifecycleStateEnum -func GetUiPasswordInformationLifecycleStateEnumValues() []UiPasswordInformationLifecycleStateEnum { - values := make([]UiPasswordInformationLifecycleStateEnum, 0) - for _, v := range mappingUiPasswordInformationLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_details.go deleted file mode 100644 index fbef9e376b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateAuthTokenDetails The representation of UpdateAuthTokenDetails -type UpdateAuthTokenDetails struct { - - // The description you assign to the auth token. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` -} - -func (m UpdateAuthTokenDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_details.go deleted file mode 100644 index e09693df6a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateAuthenticationPolicyDetails Update request for authentication policy, describes set of validation rules and their parameters to be updated. -type UpdateAuthenticationPolicyDetails struct { - PasswordPolicy *PasswordPolicy `mandatory:"false" json:"passwordPolicy"` - - NetworkPolicy *NetworkPolicy `mandatory:"false" json:"networkPolicy"` -} - -func (m UpdateAuthenticationPolicyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_details.go deleted file mode 100644 index 58dc050f52..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCompartmentDetails The representation of UpdateCompartmentDetails -type UpdateCompartmentDetails struct { - - // The description you assign to the compartment. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // The new name you assign to the compartment. The name must be unique across all compartments in the parent compartment. - // Avoid entering confidential information. - Name *string `mandatory:"false" json:"name"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_details.go deleted file mode 100644 index 21a6f5b9dd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCustomerSecretKeyDetails The representation of UpdateCustomerSecretKeyDetails -type UpdateCustomerSecretKeyDetails struct { - - // The description you assign to the secret key. Does not have to be unique, and it's changeable. - DisplayName *string `mandatory:"false" json:"displayName"` -} - -func (m UpdateCustomerSecretKeyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_details.go deleted file mode 100644 index 8c027a563c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDomainDetails Update domain details -type UpdateDomainDetails struct { - - // The domain description - Description *string `mandatory:"false" json:"description"` - - // The mutable display name of the domain - DisplayName *string `mandatory:"false" json:"displayName"` - - // Indicates whether domain is hidden on login screen or not. - IsHiddenOnLogin *bool `mandatory:"false" json:"isHiddenOnLogin"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateDomainDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_details.go deleted file mode 100644 index 602e559472..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateDynamicGroupDetails Properties for updating a dynamic group. -type UpdateDynamicGroupDetails struct { - - // The description you assign to the dynamic group. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // The matching rule to dynamically match an instance certificate to this dynamic group. - // For rule syntax, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingdynamicgroups.htm). - MatchingRule *string `mandatory:"false" json:"matchingRule"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateDynamicGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_details.go deleted file mode 100644 index 5d8e48ae97..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_details.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateGroupDetails The representation of UpdateGroupDetails -type UpdateGroupDetails struct { - - // The description you assign to the group. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateGroupDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_details.go deleted file mode 100644 index 087e54521f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_details.go +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIdentityProviderDetails The representation of UpdateIdentityProviderDetails -type UpdateIdentityProviderDetails interface { - - // The description you assign to the `IdentityProvider`. Does not have to - // be unique, and it's changeable. - GetDescription() *string - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - GetFreeformTags() map[string]string - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - GetDefinedTags() map[string]map[string]interface{} -} - -type updateidentityproviderdetails struct { - JsonData []byte - Description *string `mandatory:"false" json:"description"` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - Protocol string `json:"protocol"` -} - -// UnmarshalJSON unmarshals json -func (m *updateidentityproviderdetails) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerupdateidentityproviderdetails updateidentityproviderdetails - s := struct { - Model Unmarshalerupdateidentityproviderdetails - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Description = s.Model.Description - m.FreeformTags = s.Model.FreeformTags - m.DefinedTags = s.Model.DefinedTags - m.Protocol = s.Model.Protocol - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *updateidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Protocol { - case "SAML2": - mm := UpdateSaml2IdentityProviderDetails{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -//GetDescription returns Description -func (m updateidentityproviderdetails) GetDescription() *string { - return m.Description -} - -//GetFreeformTags returns FreeformTags -func (m updateidentityproviderdetails) GetFreeformTags() map[string]string { - return m.FreeformTags -} - -//GetDefinedTags returns DefinedTags -func (m updateidentityproviderdetails) GetDefinedTags() map[string]map[string]interface{} { - return m.DefinedTags -} - -func (m updateidentityproviderdetails) String() string { - return common.PointerString(m) -} - -// UpdateIdentityProviderDetailsProtocolEnum Enum with underlying type: string -type UpdateIdentityProviderDetailsProtocolEnum string - -// Set of constants representing the allowable values for UpdateIdentityProviderDetailsProtocolEnum -const ( - UpdateIdentityProviderDetailsProtocolSaml2 UpdateIdentityProviderDetailsProtocolEnum = "SAML2" -) - -var mappingUpdateIdentityProviderDetailsProtocol = map[string]UpdateIdentityProviderDetailsProtocolEnum{ - "SAML2": UpdateIdentityProviderDetailsProtocolSaml2, -} - -// GetUpdateIdentityProviderDetailsProtocolEnumValues Enumerates the set of values for UpdateIdentityProviderDetailsProtocolEnum -func GetUpdateIdentityProviderDetailsProtocolEnumValues() []UpdateIdentityProviderDetailsProtocolEnum { - values := make([]UpdateIdentityProviderDetailsProtocolEnum, 0) - for _, v := range mappingUpdateIdentityProviderDetailsProtocol { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_details.go deleted file mode 100644 index 6adfc679a4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateIdpGroupMappingDetails The representation of UpdateIdpGroupMappingDetails -type UpdateIdpGroupMappingDetails struct { - - // The idp group name. - IdpGroupName *string `mandatory:"false" json:"idpGroupName"` - - // The OCID of the group. - GroupId *string `mandatory:"false" json:"groupId"` -} - -func (m UpdateIdpGroupMappingDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_details.go deleted file mode 100644 index 63b6d6fbfb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_details.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNetworkSourceDetails The representation of UpdateNetworkSourceDetails -type UpdateNetworkSourceDetails struct { - - // The description you assign to the network source. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // A list of allowed public IP addresses and CIDR ranges. - PublicSourceList []string `mandatory:"false" json:"publicSourceList"` - - // A list of allowed VCN OCID and IP range pairs. - // Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` - VirtualSourceList []NetworkSourcesVirtualSourceList `mandatory:"false" json:"virtualSourceList"` - - // A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than - // those specified in the network source. Currently, only `all` and `none` are supported. The default is `all`. - Services []string `mandatory:"false" json:"services"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateNetworkSourceDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth2_client_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth2_client_credential_details.go deleted file mode 100644 index c42af534c1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth2_client_credential_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateOAuth2ClientCredentialDetails The representation of UpdateOAuth2ClientCredentialDetails -type UpdateOAuth2ClientCredentialDetails struct { - - // Description of the oauth credential to help user differentiate them. - Description *string `mandatory:"true" json:"description"` - - // Allowed scopes for the given oauth credential. - Scopes []FullyQualifiedScope `mandatory:"true" json:"scopes"` - - // Indicate if the password to be reset or not in the update. - IsResetPassword *bool `mandatory:"false" json:"isResetPassword"` -} - -func (m UpdateOAuth2ClientCredentialDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_details.go deleted file mode 100644 index 0ec09909a2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePolicyDetails The representation of UpdatePolicyDetails -type UpdatePolicyDetails struct { - - // The description you assign to the policy. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // An array of policy statements written in the policy language. See - // How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm) and - // Common Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/commonpolicies.htm). - Statements []string `mandatory:"false" json:"statements"` - - // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the - // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular - // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. - VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdatePolicyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_details.go deleted file mode 100644 index bcdebaa006..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateSmtpCredentialDetails The representation of UpdateSmtpCredentialDetails -type UpdateSmtpCredentialDetails struct { - - // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` -} - -func (m UpdateSmtpCredentialDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_state_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_state_details.go deleted file mode 100644 index ed6ab0bd19..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_state_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateStateDetails The representation of UpdateStateDetails -type UpdateStateDetails struct { - - // Update state to blocked or unblocked. Only "false" is supported (for changing the state to unblocked). - Blocked *bool `mandatory:"false" json:"blocked"` -} - -func (m UpdateStateDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_details.go deleted file mode 100644 index 8d754b9504..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_details.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateSwiftPasswordDetails The representation of UpdateSwiftPasswordDetails -type UpdateSwiftPasswordDetails struct { - - // The description you assign to the Swift password. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` -} - -func (m UpdateSwiftPasswordDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_details.go deleted file mode 100644 index 5a7a7370f2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_details.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateTagDefaultDetails The representation of UpdateTagDefaultDetails -type UpdateTagDefaultDetails struct { - - // The default value for the tag definition. This will be applied to all resources created in the Compartment. - Value *string `mandatory:"true" json:"value"` - - // If you specify that a value is required, a value is set during resource creation (either by - // the user creating the resource or another tag defualt). If no value is set, resource - // creation is blocked. - // * If the `isRequired` flag is set to "true", the value is set during resource creation. - // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. - // Example: `false` - IsRequired *bool `mandatory:"false" json:"isRequired"` -} - -func (m UpdateTagDefaultDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_details.go deleted file mode 100644 index 1e1c9aa3a6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_details.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateTagNamespaceDetails The representation of UpdateTagNamespaceDetails -type UpdateTagNamespaceDetails struct { - - // The description you assign to the tag namespace. - Description *string `mandatory:"false" json:"description"` - - // Whether the tag namespace is retired. - // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). - IsRetired *bool `mandatory:"false" json:"isRetired"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateTagNamespaceDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_details.go deleted file mode 100644 index 47d97fb1bc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateTagRuleDetails The representation of UpdateTagRuleDetails -type UpdateTagRuleDetails struct { - - // The description you assign to the tag rule. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // A statement that is written in the tag rule language. - RuleText *string `mandatory:"false" json:"ruleText"` - - // whether or not the tag rule is disabled. If this is not specified, the rule state won't change. - IsDisabled *bool `mandatory:"false" json:"isDisabled"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateTagRuleDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_details.go deleted file mode 100644 index b6dd0e50a0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateUserCapabilitiesDetails The representation of UpdateUserCapabilitiesDetails -type UpdateUserCapabilitiesDetails struct { - - // Indicates if the user can log in to the console. - CanUseConsolePassword *bool `mandatory:"false" json:"canUseConsolePassword"` - - // Indicates if the user can use API keys. - CanUseApiKeys *bool `mandatory:"false" json:"canUseApiKeys"` - - // Indicates if the user can use SWIFT passwords / auth tokens. - CanUseAuthTokens *bool `mandatory:"false" json:"canUseAuthTokens"` - - // Indicates if the user can use SMTP passwords. - CanUseSmtpCredentials *bool `mandatory:"false" json:"canUseSmtpCredentials"` - - // Indicates if the user can use DB passwords. - CanUseDbCredentials *bool `mandatory:"false" json:"canUseDbCredentials"` - - // Indicates if the user can use SigV4 symmetric keys. - CanUseCustomerSecretKeys *bool `mandatory:"false" json:"canUseCustomerSecretKeys"` - - // Indicates if the user can use OAuth2 credentials and tokens. - CanUseOAuth2ClientCredentials *bool `mandatory:"false" json:"canUseOAuth2ClientCredentials"` -} - -func (m UpdateUserCapabilitiesDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_details.go deleted file mode 100644 index 1a0fc6d352..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateUserDetails The representation of UpdateUserDetails -type UpdateUserDetails struct { - - // The description you assign to the user. Does not have to be unique, and it's changeable. - Description *string `mandatory:"false" json:"description"` - - // The email address you assign to the user. Has to be unique across the tenancy. - Email *string `mandatory:"false" json:"email"` - - // DB username of the DB credential. Has to be unique across the tenancy. - DbUserName *string `mandatory:"false" json:"dbUserName"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateUserDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/user.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/user.go deleted file mode 100644 index fbb4aa86a6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/user.go +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// User An individual employee or system that needs to manage or use your company's Oracle Cloud Infrastructure -// resources. Users might need to launch instances, manage remote disks, work with your cloud network, etc. Users -// have one or more IAM Service credentials (ApiKey, -// UIPassword, SwiftPassword and -// AuthToken). -// For more information, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm)). End users of your -// application are not typically IAM Service users. For conceptual information about users and other IAM Service -// components, see Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). -// These users are created directly within the Oracle Cloud Infrastructure system, via the IAM service. -// They are different from *federated users*, who authenticate themselves to the Oracle Cloud Infrastructure -// Console via an identity provider. For more information, see -// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values -// using the API. -type User struct { - - // The OCID of the user. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the user. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The name you assign to the user during creation. This is the user's login for the Console. - // The name must be unique across all users in the tenancy and cannot be changed. - Name *string `mandatory:"true" json:"name"` - - // The description you assign to the user. Does not have to be unique, and it's changeable. - Description *string `mandatory:"true" json:"description"` - - // Date and time the user was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to - // ACTIVE before using it. - LifecycleState UserLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // Flag indicates if MFA has been activated for the user. - IsMfaActivated *bool `mandatory:"true" json:"isMfaActivated"` - - // The email address you assign to the user. - // The email address must be unique across all users in the tenancy. - Email *string `mandatory:"false" json:"email"` - - // Whether the email address has been validated. - EmailVerified *bool `mandatory:"false" json:"emailVerified"` - - // DB username of the DB credential. Has to be unique across the tenancy. - DbUserName *string `mandatory:"false" json:"dbUserName"` - - // The OCID of the `IdentityProvider` this user belongs to. - IdentityProviderId *string `mandatory:"false" json:"identityProviderId"` - - // Identifier of the user in the identity provider - ExternalIdentifier *string `mandatory:"false" json:"externalIdentifier"` - - // Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user - // is inactive: - // - bit 0: SUSPENDED (reserved for future use) - // - bit 1: DISABLED (reserved for future use) - // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` - - Capabilities *UserCapabilities `mandatory:"false" json:"capabilities"` - - // The date and time of when the user most recently logged in the - // format defined by RFC3339 (ex. `2016-08-25T21:10:29.600Z`). - // If there is no login history, this field is null. - // For illustrative purposes, suppose we have a user who has logged in - // at July 1st, 2020 at 1200 PST and logged out 30 minutes later. - // They then login again on July 2nd, 2020 at 1500 PST. - // Their previousSuccessfulLoginTime would be `2020-07-01:19:00.000Z`. - // Their lastSuccessfulLoginTime would be `2020-07-02:22:00.000Z`. - LastSuccessfulLoginTime *common.SDKTime `mandatory:"false" json:"lastSuccessfulLoginTime"` - - // The date and time of when the user most recently logged in the - // format defined by RFC3339 (ex. `2016-08-25T21:10:29.600Z`). - // If there is no login history, this field is null. - // For illustrative purposes, suppose we have a user who has logged in - // at July 1st, 2020 at 1200 PST and logged out 30 minutes later. - // They then login again on July 2nd, 2020 at 1500 PST. - // Their previousSuccessfulLoginTime would be `2020-07-01:19:00.000Z`. - // Their lastSuccessfulLoginTime would be `2020-07-02:22:00.000Z`. - PreviousSuccessfulLoginTime *common.SDKTime `mandatory:"false" json:"previousSuccessfulLoginTime"` -} - -func (m User) String() string { - return common.PointerString(m) -} - -// UserLifecycleStateEnum Enum with underlying type: string -type UserLifecycleStateEnum string - -// Set of constants representing the allowable values for UserLifecycleStateEnum -const ( - UserLifecycleStateCreating UserLifecycleStateEnum = "CREATING" - UserLifecycleStateActive UserLifecycleStateEnum = "ACTIVE" - UserLifecycleStateInactive UserLifecycleStateEnum = "INACTIVE" - UserLifecycleStateDeleting UserLifecycleStateEnum = "DELETING" - UserLifecycleStateDeleted UserLifecycleStateEnum = "DELETED" -) - -var mappingUserLifecycleState = map[string]UserLifecycleStateEnum{ - "CREATING": UserLifecycleStateCreating, - "ACTIVE": UserLifecycleStateActive, - "INACTIVE": UserLifecycleStateInactive, - "DELETING": UserLifecycleStateDeleting, - "DELETED": UserLifecycleStateDeleted, -} - -// GetUserLifecycleStateEnumValues Enumerates the set of values for UserLifecycleStateEnum -func GetUserLifecycleStateEnumValues() []UserLifecycleStateEnum { - values := make([]UserLifecycleStateEnum, 0) - for _, v := range mappingUserLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/user_capabilities.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/user_capabilities.go deleted file mode 100644 index d281a50708..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/user_capabilities.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UserCapabilities Properties indicating how the user is allowed to authenticate. -type UserCapabilities struct { - - // Indicates if the user can log in to the console. - CanUseConsolePassword *bool `mandatory:"false" json:"canUseConsolePassword"` - - // Indicates if the user can use API keys. - CanUseApiKeys *bool `mandatory:"false" json:"canUseApiKeys"` - - // Indicates if the user can use SWIFT passwords / auth tokens. - CanUseAuthTokens *bool `mandatory:"false" json:"canUseAuthTokens"` - - // Indicates if the user can use SMTP passwords. - CanUseSmtpCredentials *bool `mandatory:"false" json:"canUseSmtpCredentials"` - - // Indicates if the user can use DB passwords. - CanUseDbCredentials *bool `mandatory:"false" json:"canUseDbCredentials"` - - // Indicates if the user can use SigV4 symmetric keys. - CanUseCustomerSecretKeys *bool `mandatory:"false" json:"canUseCustomerSecretKeys"` - - // Indicates if the user can use OAuth2 credentials and tokens. - CanUseOAuth2ClientCredentials *bool `mandatory:"false" json:"canUseOAuth2ClientCredentials"` -} - -func (m UserCapabilities) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/user_group_membership.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/user_group_membership.go deleted file mode 100644 index 40ed6b3fe4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/user_group_membership.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UserGroupMembership An object that represents the membership of a user in a group. When you add a user to a group, the result is a -// `UserGroupMembership` with its own OCID. To remove a user from a group, you delete the `UserGroupMembership` object. -type UserGroupMembership struct { - - // The OCID of the membership. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the tenancy containing the user, group, and membership object. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID of the group. - GroupId *string `mandatory:"true" json:"groupId"` - - // The OCID of the user. - UserId *string `mandatory:"true" json:"userId"` - - // Date and time the membership was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The membership's current state. After creating a membership object, make sure its `lifecycleState` changes - // from CREATING to ACTIVE before using it. - LifecycleState UserGroupMembershipLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The detailed status of INACTIVE lifecycleState. - InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` -} - -func (m UserGroupMembership) String() string { - return common.PointerString(m) -} - -// UserGroupMembershipLifecycleStateEnum Enum with underlying type: string -type UserGroupMembershipLifecycleStateEnum string - -// Set of constants representing the allowable values for UserGroupMembershipLifecycleStateEnum -const ( - UserGroupMembershipLifecycleStateCreating UserGroupMembershipLifecycleStateEnum = "CREATING" - UserGroupMembershipLifecycleStateActive UserGroupMembershipLifecycleStateEnum = "ACTIVE" - UserGroupMembershipLifecycleStateInactive UserGroupMembershipLifecycleStateEnum = "INACTIVE" - UserGroupMembershipLifecycleStateDeleting UserGroupMembershipLifecycleStateEnum = "DELETING" - UserGroupMembershipLifecycleStateDeleted UserGroupMembershipLifecycleStateEnum = "DELETED" -) - -var mappingUserGroupMembershipLifecycleState = map[string]UserGroupMembershipLifecycleStateEnum{ - "CREATING": UserGroupMembershipLifecycleStateCreating, - "ACTIVE": UserGroupMembershipLifecycleStateActive, - "INACTIVE": UserGroupMembershipLifecycleStateInactive, - "DELETING": UserGroupMembershipLifecycleStateDeleting, - "DELETED": UserGroupMembershipLifecycleStateDeleted, -} - -// GetUserGroupMembershipLifecycleStateEnumValues Enumerates the set of values for UserGroupMembershipLifecycleStateEnum -func GetUserGroupMembershipLifecycleStateEnumValues() []UserGroupMembershipLifecycleStateEnum { - values := make([]UserGroupMembershipLifecycleStateEnum, 0) - for _, v := range mappingUserGroupMembershipLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request.go deleted file mode 100644 index 2b14ed9302..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request.go +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequest The asynchronous API request does not take effect immediately. This request spawns an asynchronous -// workflow to fulfill the request. WorkRequest objects provide visibility for in-progress workflows. -type WorkRequest struct { - - // The OCID of the work request. - Id *string `mandatory:"true" json:"id"` - - // An enum-like description of the type of work the work request is doing. - OperationType WorkRequestOperationTypeEnum `mandatory:"true" json:"operationType"` - - // The current status of the work request. - Status WorkRequestStatusEnum `mandatory:"true" json:"status"` - - // The OCID of the compartment that contains the work request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []WorkRequestResource `mandatory:"false" json:"resources"` - - // The errors for work request. - Errors []WorkRequestError `mandatory:"false" json:"errors"` - - // The logs for work request. - Logs []WorkRequestLogEntry `mandatory:"false" json:"logs"` - - // Date and time the work was accepted, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // Date and time the work started, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // Date and time the work completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` - - // How much progress the operation has made. - PercentComplete *float32 `mandatory:"false" json:"percentComplete"` -} - -func (m WorkRequest) String() string { - return common.PointerString(m) -} - -// WorkRequestOperationTypeEnum Enum with underlying type: string -type WorkRequestOperationTypeEnum string - -// Set of constants representing the allowable values for WorkRequestOperationTypeEnum -const ( - WorkRequestOperationTypeCompartment WorkRequestOperationTypeEnum = "DELETE_COMPARTMENT" - WorkRequestOperationTypeTagDefinition WorkRequestOperationTypeEnum = "DELETE_TAG_DEFINITION" -) - -var mappingWorkRequestOperationType = map[string]WorkRequestOperationTypeEnum{ - "DELETE_COMPARTMENT": WorkRequestOperationTypeCompartment, - "DELETE_TAG_DEFINITION": WorkRequestOperationTypeTagDefinition, -} - -// GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum -func GetWorkRequestOperationTypeEnumValues() []WorkRequestOperationTypeEnum { - values := make([]WorkRequestOperationTypeEnum, 0) - for _, v := range mappingWorkRequestOperationType { - values = append(values, v) - } - return values -} - -// WorkRequestStatusEnum Enum with underlying type: string -type WorkRequestStatusEnum string - -// Set of constants representing the allowable values for WorkRequestStatusEnum -const ( - WorkRequestStatusAccepted WorkRequestStatusEnum = "ACCEPTED" - WorkRequestStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" - WorkRequestStatusFailed WorkRequestStatusEnum = "FAILED" - WorkRequestStatusSucceeded WorkRequestStatusEnum = "SUCCEEDED" - WorkRequestStatusCanceling WorkRequestStatusEnum = "CANCELING" - WorkRequestStatusCanceled WorkRequestStatusEnum = "CANCELED" -) - -var mappingWorkRequestStatus = map[string]WorkRequestStatusEnum{ - "ACCEPTED": WorkRequestStatusAccepted, - "IN_PROGRESS": WorkRequestStatusInProgress, - "FAILED": WorkRequestStatusFailed, - "SUCCEEDED": WorkRequestStatusSucceeded, - "CANCELING": WorkRequestStatusCanceling, - "CANCELED": WorkRequestStatusCanceled, -} - -// GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum -func GetWorkRequestStatusEnumValues() []WorkRequestStatusEnum { - values := make([]WorkRequestStatusEnum, 0) - for _, v := range mappingWorkRequestStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_error.go deleted file mode 100644 index 498f1d91de..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_error.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestError The error entity. -type WorkRequestError struct { - - // A machine-usable code for the error that occured. - Code *string `mandatory:"true" json:"code"` - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // Date and time the error happened, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` -} - -func (m WorkRequestError) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_log_entry.go deleted file mode 100644 index 7f47db0224..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_log_entry.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestLogEntry The log entity. -type WorkRequestLogEntry struct { - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` - - // Date and time the log was written, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` -} - -func (m WorkRequestLogEntry) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_resource.go deleted file mode 100644 index 2f4fbf338b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_resource.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestResource The resource entity. -type WorkRequestResource struct { - - // The resource identifier the work request affects. - Identifier *string `mandatory:"true" json:"identifier"` - - // The resource type the work request is affects. - EntityType *string `mandatory:"true" json:"entityType"` - - // The way in which this resource was affected by the work tracked by the work request. - ActionType WorkRequestResourceActionTypeEnum `mandatory:"true" json:"actionType"` - - // The URI path that the user can do a GET on to access the resource metadata. - EntityUri *string `mandatory:"false" json:"entityUri"` -} - -func (m WorkRequestResource) String() string { - return common.PointerString(m) -} - -// WorkRequestResourceActionTypeEnum Enum with underlying type: string -type WorkRequestResourceActionTypeEnum string - -// Set of constants representing the allowable values for WorkRequestResourceActionTypeEnum -const ( - WorkRequestResourceActionTypeCreated WorkRequestResourceActionTypeEnum = "CREATED" - WorkRequestResourceActionTypeUpdated WorkRequestResourceActionTypeEnum = "UPDATED" - WorkRequestResourceActionTypeDeleted WorkRequestResourceActionTypeEnum = "DELETED" - WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" - WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" - WorkRequestResourceActionTypeFailed WorkRequestResourceActionTypeEnum = "FAILED" -) - -var mappingWorkRequestResourceActionType = map[string]WorkRequestResourceActionTypeEnum{ - "CREATED": WorkRequestResourceActionTypeCreated, - "UPDATED": WorkRequestResourceActionTypeUpdated, - "DELETED": WorkRequestResourceActionTypeDeleted, - "RELATED": WorkRequestResourceActionTypeRelated, - "IN_PROGRESS": WorkRequestResourceActionTypeInProgress, - "FAILED": WorkRequestResourceActionTypeFailed, -} - -// GetWorkRequestResourceActionTypeEnumValues Enumerates the set of values for WorkRequestResourceActionTypeEnum -func GetWorkRequestResourceActionTypeEnumValues() []WorkRequestResourceActionTypeEnum { - values := make([]WorkRequestResourceActionTypeEnum, 0) - for _, v := range mappingWorkRequestResourceActionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_summary.go deleted file mode 100644 index 53d6b7ea28..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/work_request_summary.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Identity and Access Management Service API -// -// APIs for managing users, groups, compartments, and policies. -// - -package identity - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestSummary The work request summary. Tracks the status of the asynchronous operation. -type WorkRequestSummary struct { - - // The OCID of the work request. - Id *string `mandatory:"true" json:"id"` - - // An enum-like description of the type of work the work request is doing. - OperationType WorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"` - - // The current status of the work request. - Status WorkRequestSummaryStatusEnum `mandatory:"true" json:"status"` - - // The OCID of the compartment that contains the work request. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The resources this work request affects. - Resources []WorkRequestResource `mandatory:"false" json:"resources"` - - // The errors for work request. - Errors []WorkRequestError `mandatory:"false" json:"errors"` - - // Date and time the work was accepted, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` - - // Date and time the work started, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // Date and time the work completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` - - // How much progress the operation has made. - PercentComplete *float32 `mandatory:"false" json:"percentComplete"` -} - -func (m WorkRequestSummary) String() string { - return common.PointerString(m) -} - -// WorkRequestSummaryOperationTypeEnum Enum with underlying type: string -type WorkRequestSummaryOperationTypeEnum string - -// Set of constants representing the allowable values for WorkRequestSummaryOperationTypeEnum -const ( - WorkRequestSummaryOperationTypeCompartment WorkRequestSummaryOperationTypeEnum = "DELETE_COMPARTMENT" - WorkRequestSummaryOperationTypeTagDefinition WorkRequestSummaryOperationTypeEnum = "DELETE_TAG_DEFINITION" -) - -var mappingWorkRequestSummaryOperationType = map[string]WorkRequestSummaryOperationTypeEnum{ - "DELETE_COMPARTMENT": WorkRequestSummaryOperationTypeCompartment, - "DELETE_TAG_DEFINITION": WorkRequestSummaryOperationTypeTagDefinition, -} - -// GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestSummaryOperationTypeEnum -func GetWorkRequestSummaryOperationTypeEnumValues() []WorkRequestSummaryOperationTypeEnum { - values := make([]WorkRequestSummaryOperationTypeEnum, 0) - for _, v := range mappingWorkRequestSummaryOperationType { - values = append(values, v) - } - return values -} - -// WorkRequestSummaryStatusEnum Enum with underlying type: string -type WorkRequestSummaryStatusEnum string - -// Set of constants representing the allowable values for WorkRequestSummaryStatusEnum -const ( - WorkRequestSummaryStatusAccepted WorkRequestSummaryStatusEnum = "ACCEPTED" - WorkRequestSummaryStatusInProgress WorkRequestSummaryStatusEnum = "IN_PROGRESS" - WorkRequestSummaryStatusFailed WorkRequestSummaryStatusEnum = "FAILED" - WorkRequestSummaryStatusSucceeded WorkRequestSummaryStatusEnum = "SUCCEEDED" - WorkRequestSummaryStatusCanceling WorkRequestSummaryStatusEnum = "CANCELING" - WorkRequestSummaryStatusCanceled WorkRequestSummaryStatusEnum = "CANCELED" -) - -var mappingWorkRequestSummaryStatus = map[string]WorkRequestSummaryStatusEnum{ - "ACCEPTED": WorkRequestSummaryStatusAccepted, - "IN_PROGRESS": WorkRequestSummaryStatusInProgress, - "FAILED": WorkRequestSummaryStatusFailed, - "SUCCEEDED": WorkRequestSummaryStatusSucceeded, - "CANCELING": WorkRequestSummaryStatusCanceling, - "CANCELED": WorkRequestSummaryStatusCanceled, -} - -// GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestSummaryStatusEnum -func GetWorkRequestSummaryStatusEnumValues() []WorkRequestSummaryStatusEnum { - values := make([]WorkRequestSummaryStatusEnum, 0) - for _, v := range mappingWorkRequestSummaryStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/action.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/action.go deleted file mode 100644 index 398608ee8e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/action.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Action An entity that represents an action to apply for a routing rule. -type Action interface { -} - -type action struct { - JsonData []byte - Name string `json:"name"` -} - -// UnmarshalJSON unmarshals json -func (m *action) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshaleraction action - s := struct { - Model Unmarshaleraction - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Name = s.Model.Name - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *action) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Name { - case "FORWARD_TO_BACKENDSET": - mm := ForwardToBackendSet{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m action) String() string { - return common.PointerString(m) -} - -// ActionNameEnum Enum with underlying type: string -type ActionNameEnum string - -// Set of constants representing the allowable values for ActionNameEnum -const ( - ActionNameForwardToBackendset ActionNameEnum = "FORWARD_TO_BACKENDSET" -) - -var mappingActionName = map[string]ActionNameEnum{ - "FORWARD_TO_BACKENDSET": ActionNameForwardToBackendset, -} - -// GetActionNameEnumValues Enumerates the set of values for ActionNameEnum -func GetActionNameEnumValues() []ActionNameEnum { - values := make([]ActionNameEnum, 0) - for _, v := range mappingActionName { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend.go deleted file mode 100644 index 61fe73d750..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Backend The configuration of a backend server that is a member of a load balancer backend set. -// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). -type Backend struct { - - // A read-only field showing the IP address and port that uniquely identify this backend server in the backend set. - // Example: `10.0.0.3:8080` - Name *string `mandatory:"true" json:"name"` - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"true" json:"weight"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `false` - Drain *bool `mandatory:"true" json:"drain"` - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. - // Example: `false` - Backup *bool `mandatory:"true" json:"backup"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - Offline *bool `mandatory:"true" json:"offline"` -} - -func (m Backend) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_details.go deleted file mode 100644 index 6d0095815c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_details.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendDetails The load balancing configuration details of a backend server. -type BackendDetails struct { - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. - // Example: `false` - Backup *bool `mandatory:"false" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `false` - Drain *bool `mandatory:"false" json:"drain"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - Offline *bool `mandatory:"false" json:"offline"` -} - -func (m BackendDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_health.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_health.go deleted file mode 100644 index 77c3d02305..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_health.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendHealth The health status of the specified backend server as reported by the primary and standby load balancers. -type BackendHealth struct { - - // The general health status of the specified backend server as reported by the primary and standby load balancers. - // * **OK:** Both health checks returned `OK`. - // * **WARNING:** One health check returned `OK` and one did not. - // * **CRITICAL:** Neither health check returned `OK`. - // * **UNKNOWN:** One or both health checks returned `UNKNOWN`, or the system was unable to retrieve metrics at this time. - Status BackendHealthStatusEnum `mandatory:"true" json:"status"` - - // A list of the most recent health check results returned for the specified backend server. - HealthCheckResults []HealthCheckResult `mandatory:"true" json:"healthCheckResults"` -} - -func (m BackendHealth) String() string { - return common.PointerString(m) -} - -// BackendHealthStatusEnum Enum with underlying type: string -type BackendHealthStatusEnum string - -// Set of constants representing the allowable values for BackendHealthStatusEnum -const ( - BackendHealthStatusOk BackendHealthStatusEnum = "OK" - BackendHealthStatusWarning BackendHealthStatusEnum = "WARNING" - BackendHealthStatusCritical BackendHealthStatusEnum = "CRITICAL" - BackendHealthStatusUnknown BackendHealthStatusEnum = "UNKNOWN" -) - -var mappingBackendHealthStatus = map[string]BackendHealthStatusEnum{ - "OK": BackendHealthStatusOk, - "WARNING": BackendHealthStatusWarning, - "CRITICAL": BackendHealthStatusCritical, - "UNKNOWN": BackendHealthStatusUnknown, -} - -// GetBackendHealthStatusEnumValues Enumerates the set of values for BackendHealthStatusEnum -func GetBackendHealthStatusEnumValues() []BackendHealthStatusEnum { - values := make([]BackendHealthStatusEnum, 0) - for _, v := range mappingBackendHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set.go deleted file mode 100644 index 8a86f802ab..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSet The configuration of a load balancer backend set. -// For more information on backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` -// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two -// attributes per backend set. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type BackendSet struct { - - // A friendly name for the backend set. It must be unique and it cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `example_backend_set` - Name *string `mandatory:"true" json:"name"` - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - Backends []Backend `mandatory:"true" json:"backends"` - - HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` - - SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` -} - -func (m BackendSet) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_details.go deleted file mode 100644 index 0918021df2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSetDetails The configuration details for a load balancer backend set. -// For more information on backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` -// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two -// attributes per backend set. -type BackendSetDetails struct { - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - Backends []BackendDetails `mandatory:"false" json:"backends"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` -} - -func (m BackendSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_health.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_health.go deleted file mode 100644 index 000af0c4a0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/backend_set_health.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSetHealth The health status details for a backend set. -// This object does not explicitly enumerate backend servers with a status of `OK`. However, they are included in the -// `totalBackendCount` sum. -type BackendSetHealth struct { - - // Overall health status of the backend set. - // * **OK:** All backend servers in the backend set return a status of `OK`. - // * **WARNING:** Half or more of the backend set's backend servers return a status of `OK` and at least one backend - // server returns a status of `WARNING`, `CRITICAL`, or `UNKNOWN`. - // * **CRITICAL:** Fewer than half of the backend set's backend servers return a status of `OK`. - // * **UNKNOWN:** More than half of the backend set's backend servers return a status of `UNKNOWN`, the system was - // unable to retrieve metrics, or the backend set does not have a listener attached. - Status BackendSetHealthStatusEnum `mandatory:"true" json:"status"` - - // A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by - // IP address and port. - // Example: `10.0.0.3:8080` - WarningStateBackendNames []string `mandatory:"true" json:"warningStateBackendNames"` - - // A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by - // IP address and port. - // Example: `10.0.0.4:8080` - CriticalStateBackendNames []string `mandatory:"true" json:"criticalStateBackendNames"` - - // A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by - // IP address and port. - // Example: `10.0.0.5:8080` - UnknownStateBackendNames []string `mandatory:"true" json:"unknownStateBackendNames"` - - // The total number of backend servers in this backend set. - // Example: `7` - TotalBackendCount *int `mandatory:"true" json:"totalBackendCount"` -} - -func (m BackendSetHealth) String() string { - return common.PointerString(m) -} - -// BackendSetHealthStatusEnum Enum with underlying type: string -type BackendSetHealthStatusEnum string - -// Set of constants representing the allowable values for BackendSetHealthStatusEnum -const ( - BackendSetHealthStatusOk BackendSetHealthStatusEnum = "OK" - BackendSetHealthStatusWarning BackendSetHealthStatusEnum = "WARNING" - BackendSetHealthStatusCritical BackendSetHealthStatusEnum = "CRITICAL" - BackendSetHealthStatusUnknown BackendSetHealthStatusEnum = "UNKNOWN" -) - -var mappingBackendSetHealthStatus = map[string]BackendSetHealthStatusEnum{ - "OK": BackendSetHealthStatusOk, - "WARNING": BackendSetHealthStatusWarning, - "CRITICAL": BackendSetHealthStatusCritical, - "UNKNOWN": BackendSetHealthStatusUnknown, -} - -// GetBackendSetHealthStatusEnumValues Enumerates the set of values for BackendSetHealthStatusEnum -func GetBackendSetHealthStatusEnumValues() []BackendSetHealthStatusEnum { - values := make([]BackendSetHealthStatusEnum, 0) - for _, v := range mappingBackendSetHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_details.go deleted file mode 100644 index 56abb14c25..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_details.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeLoadBalancerCompartmentDetails The configuration details for moving a load balancer to a different compartment. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type ChangeLoadBalancerCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the load balancer to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeLoadBalancerCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_request_response.go deleted file mode 100644 index 9d344c2ce5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/change_load_balancer_compartment_request_response.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ChangeLoadBalancerCompartmentRequest wrapper for the ChangeLoadBalancerCompartment operation -type ChangeLoadBalancerCompartmentRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to move. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The configuration details for moving a load balancer to a different compartment. - ChangeLoadBalancerCompartmentDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. Set the if-match parameter to the value of the ETag from a - // previous GET or POST response for that resource. The resource is moved only if the ETag you - // provide matches the resource's current ETag value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ChangeLoadBalancerCompartmentRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ChangeLoadBalancerCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ChangeLoadBalancerCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ChangeLoadBalancerCompartmentRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ChangeLoadBalancerCompartmentResponse wrapper for the ChangeLoadBalancerCompartment operation -type ChangeLoadBalancerCompartmentResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ChangeLoadBalancerCompartmentResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ChangeLoadBalancerCompartmentResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks.go deleted file mode 100644 index 288a2227ef..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CidrBlocks The configuration details of the CidrBlocks. -// CidrBlocks contains a name and list of CIDR block. Each of the CidrBlocks should have unique name -// within the load balancer. CidrBlocks resource name can be used in rule conditions. -// Example: -// "name" : `ClientRealIpCidrBlocks` -// "items" : `["129.213.176.0/24","150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]` -// **Warning:** No confidential information should be passed in this API. -type CidrBlocks struct { - - // A friendly name for the CidrBlocks. - // Example: `SourceIpCidrBlocks` - Name *string `mandatory:"true" json:"name"` - - // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. - // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' - Items []string `mandatory:"true" json:"items"` -} - -func (m CidrBlocks) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks_details.go deleted file mode 100644 index 8af7b61d6b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/cidr_blocks_details.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CidrBlocksDetails The configuration details of the CidrBlocks. -// CidrBlocks contains a name and list of CIDR block. Each of the CidrBlocks should have unique name -// within the load balancer. CidrBlocks resource name can be used in rule conditions. -// Example: -// "name" : `ClientRealIpCidrBlocks` -// "items" : `["129.213.176.0/24","150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]` -// **Warning:** No confidential information should be passed in this API. -type CidrBlocksDetails struct { - - // A friendly name for the CidrBlocks. - // Example: `SourceIpCidrBlocks` - Name *string `mandatory:"true" json:"name"` - - // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. - // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' - Items []string `mandatory:"true" json:"items"` -} - -func (m CidrBlocksDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/connection_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/connection_configuration.go deleted file mode 100644 index 4a0bb493bf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/connection_configuration.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ConnectionConfiguration Configuration details for the connection between the client and backend servers. -type ConnectionConfiguration struct { - - // The maximum idle time, in seconds, allowed between two successive receive or two successive send operations - // between the client and backend servers. A send operation does not reset the timer for receive operations. A - // receive operation does not reset the timer for send operations. - // For more information, see Connection Configuration (https://docs.cloud.oracle.com/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration). - // Example: `1200` - IdleTimeout *int64 `mandatory:"true" json:"idleTimeout"` - - // The backend TCP Proxy Protocol version. - // Example: `1` - BackendTcpProxyProtocolVersion *int `mandatory:"false" json:"backendTcpProxyProtocolVersion"` - - // An array that represents the PPV2 Options that can be enabled on TCP Listeners. - // Example: ["PP2_TYPE_AUTHORITY"] - BackendTcpProxyProtocolOptions []ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum `mandatory:"false" json:"backendTcpProxyProtocolOptions,omitempty"` -} - -func (m ConnectionConfiguration) String() string { - return common.PointerString(m) -} - -// ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum Enum with underlying type: string -type ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum string - -// Set of constants representing the allowable values for ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum -const ( - ConnectionConfigurationBackendTcpProxyProtocolOptionsPp2TypeAuthority ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum = "PP2_TYPE_AUTHORITY" -) - -var mappingConnectionConfigurationBackendTcpProxyProtocolOptions = map[string]ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum{ - "PP2_TYPE_AUTHORITY": ConnectionConfigurationBackendTcpProxyProtocolOptionsPp2TypeAuthority, -} - -// GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumValues Enumerates the set of values for ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum -func GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumValues() []ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum { - values := make([]ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum, 0) - for _, v := range mappingConnectionConfigurationBackendTcpProxyProtocolOptions { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_details.go deleted file mode 100644 index cbceebec59..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateBackendDetails The configuration details for creating a backend server in a backend set. -// For more information on backend server configuration, see -// Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). -type CreateBackendDetails struct { - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. - // Example: `false` - Backup *bool `mandatory:"false" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `false` - Drain *bool `mandatory:"false" json:"drain"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - Offline *bool `mandatory:"false" json:"offline"` -} - -func (m CreateBackendDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_request_response.go deleted file mode 100644 index ba7d8e42ee..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_request_response.go +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateBackendRequest wrapper for the CreateBackend operation -type CreateBackendRequest struct { - - // The details to add a backend server to a backend set. - CreateBackendDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to add the backend server to. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateBackendResponse wrapper for the CreateBackend operation -type CreateBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response CreateBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_details.go deleted file mode 100644 index 966aebce1d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_details.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateBackendSetDetails The configuration details for creating a backend set in a load balancer. -// For more information on backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` -// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two -// attributes per backend set. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type CreateBackendSetDetails struct { - - // A friendly name for the backend set. It must be unique and it cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `example_backend_set` - Name *string `mandatory:"true" json:"name"` - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - Backends []BackendDetails `mandatory:"false" json:"backends"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` -} - -func (m CreateBackendSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_request_response.go deleted file mode 100644 index 202cabf66f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_backend_set_request_response.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateBackendSetRequest wrapper for the CreateBackendSet operation -type CreateBackendSetRequest struct { - - // The details for adding a backend set. - CreateBackendSetDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a backend set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateBackendSetResponse wrapper for the CreateBackendSet operation -type CreateBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response CreateBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_details.go deleted file mode 100644 index f4acdb1ed3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_details.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateCidrBlocksDetails The configuration details of the CidrBlocks. -// CidrBlocks contains a name and list of CIDR block. Each of the CidrBlocks should have unique name -// within the load balancer. CidrBlocks resource name can be used in rule conditions. -// Example: -// "name" : `ClientRealIpCidrBlocks` -// "items" : `["129.213.176.0/24","150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]` -// **Warning:** No confidential information should be passed in this API. -type CreateCidrBlocksDetails struct { - - // A friendly name for the CidrBlocks. - // Example: `SourceIpCidrBlocks` - Name *string `mandatory:"true" json:"name"` - - // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. - // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' - Items []string `mandatory:"true" json:"items"` -} - -func (m CreateCidrBlocksDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_request_response.go deleted file mode 100644 index b79ec1802e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_cidr_blocks_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateCidrBlocksRequest wrapper for the CreateCidrBlocks operation -type CreateCidrBlocksRequest struct { - - // The details of the CidrBlocks to add. - CreateCidrBlocksDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the CidrBlocks - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateCidrBlocksRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateCidrBlocksResponse wrapper for the CreateCidrBlocks operation -type CreateCidrBlocksResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateCidrBlocksResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateCidrBlocksResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_details.go deleted file mode 100644 index 8754f9f674..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateHostnameDetails The details of the hostname resource to add to a load balancer. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type CreateHostnameDetails struct { - - // A friendly name for the hostname resource. It must be unique and it cannot be changed. Avoid entering confidential - // information. - // Example: `example_hostname_001` - Name *string `mandatory:"true" json:"name"` - - // A virtual hostname. For more information about virtual hostname string construction, see - // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). - // Example: `app.example.com` - Hostname *string `mandatory:"true" json:"hostname"` -} - -func (m CreateHostnameDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_details.go deleted file mode 100644 index 1391d1b210..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_details.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateListenerDetails The configuration details for adding a listener to a backend set. -// For more information on listener configuration, see -// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type CreateListenerDetails struct { - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Avoid entering confidential information. - // Example: `example_listener` - Name *string `mandatory:"true" json:"name"` - - // An array of hostname resource names. - HostnameNames []string `mandatory:"false" json:"hostnameNames"` - - // Deprecated. Please use `routingPolicies` instead. - // The name of the set of path-based routing rules, PathRouteSet, - // applied to this listener's traffic. - // Example: `example_path_route_set` - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` - - ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` - - // The name of the routing policy applied to this listener's traffic. - // Example: `example_routing_policy` - RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` - - // The names of the RuleSet to apply to the listener. - // Example: ["example_rule_set"] - RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` -} - -func (m CreateListenerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_request_response.go deleted file mode 100644 index b21ed7242e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_listener_request_response.go +++ /dev/null @@ -1,96 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateListenerRequest wrapper for the CreateListener operation -type CreateListenerRequest struct { - - // Details to add a listener. - CreateListenerDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a listener. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateListenerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateListenerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateListenerResponse wrapper for the CreateListener operation -type CreateListenerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response CreateListenerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateListenerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_details.go deleted file mode 100644 index 73e37466e3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreatePathRouteSetDetails A named set of path route rules to add to the load balancer. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type CreatePathRouteSetDetails struct { - - // The name for this set of path route rules. It must be unique and it cannot be changed. Avoid entering - // confidential information. - // Example: `example_path_route_set` - Name *string `mandatory:"true" json:"name"` - - // The set of path route rules. - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m CreatePathRouteSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_details.go deleted file mode 100644 index c737b7662c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_details.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateRoutingPolicyDetails An ordered list of routing rules. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type CreateRoutingPolicyDetails struct { - - // The name for this list of routing rules. It must be unique and it cannot be changed. Avoid entering - // confidential information. - // Example: `example_routing_rules` - Name *string `mandatory:"true" json:"name"` - - // The version of the language in which `condition` of `rules` are composed. - ConditionLanguageVersion CreateRoutingPolicyDetailsConditionLanguageVersionEnum `mandatory:"true" json:"conditionLanguageVersion"` - - // The list of routing rules. - Rules []RoutingRule `mandatory:"true" json:"rules"` -} - -func (m CreateRoutingPolicyDetails) String() string { - return common.PointerString(m) -} - -// CreateRoutingPolicyDetailsConditionLanguageVersionEnum Enum with underlying type: string -type CreateRoutingPolicyDetailsConditionLanguageVersionEnum string - -// Set of constants representing the allowable values for CreateRoutingPolicyDetailsConditionLanguageVersionEnum -const ( - CreateRoutingPolicyDetailsConditionLanguageVersionV1 CreateRoutingPolicyDetailsConditionLanguageVersionEnum = "V1" -) - -var mappingCreateRoutingPolicyDetailsConditionLanguageVersion = map[string]CreateRoutingPolicyDetailsConditionLanguageVersionEnum{ - "V1": CreateRoutingPolicyDetailsConditionLanguageVersionV1, -} - -// GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumValues Enumerates the set of values for CreateRoutingPolicyDetailsConditionLanguageVersionEnum -func GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumValues() []CreateRoutingPolicyDetailsConditionLanguageVersionEnum { - values := make([]CreateRoutingPolicyDetailsConditionLanguageVersionEnum, 0) - for _, v := range mappingCreateRoutingPolicyDetailsConditionLanguageVersion { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_request_response.go deleted file mode 100644 index ccf73136d0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateRuleSetRequest wrapper for the CreateRuleSet operation -type CreateRuleSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The configuration details for the rule set to create. - CreateRuleSetDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateRuleSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateRuleSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateRuleSetResponse wrapper for the CreateRuleSet operation -type CreateRuleSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateRuleSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateRuleSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_s_s_l_cipher_suite_request_response.go deleted file mode 100644 index 9d7e5fd458..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_s_s_l_cipher_suite_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateSSLCipherSuiteRequest wrapper for the CreateSSLCipherSuite operation -type CreateSSLCipherSuiteRequest struct { - - // The details of the SSL cipher suite to add. - CreateSslCipherSuiteDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateSSLCipherSuiteRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateSSLCipherSuiteResponse wrapper for the CreateSSLCipherSuite operation -type CreateSSLCipherSuiteResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateSSLCipherSuiteResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateSSLCipherSuiteResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_request_response.go deleted file mode 100644 index a2c72c4acd..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteBackendRequest wrapper for the DeleteBackend operation -type DeleteBackendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to remove. - // Example: `10.0.0.3:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteBackendResponse wrapper for the DeleteBackend operation -type DeleteBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response DeleteBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_set_request_response.go deleted file mode 100644 index ed1bce11ce..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_backend_set_request_response.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteBackendSetRequest wrapper for the DeleteBackendSet operation -type DeleteBackendSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to delete. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteBackendSetResponse wrapper for the DeleteBackendSet operation -type DeleteBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response DeleteBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_certificate_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_certificate_request_response.go deleted file mode 100644 index 46aff4edb8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_certificate_request_response.go +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteCertificateRequest wrapper for the DeleteCertificate operation -type DeleteCertificateRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundle - // to be deleted. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the certificate bundle to delete. - // Example: `example_certificate_bundle` - CertificateName *string `mandatory:"true" contributesTo:"path" name:"certificateName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteCertificateRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteCertificateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteCertificateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteCertificateRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteCertificateResponse wrapper for the DeleteCertificate operation -type DeleteCertificateResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteCertificateResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteCertificateResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_cidr_blocks_request_response.go deleted file mode 100644 index 98151dc926..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_cidr_blocks_request_response.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteCidrBlocksRequest wrapper for the DeleteCidrBlocks operation -type DeleteCidrBlocksRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the CidrBlocks to delete. - // example: `ClientRealIpCidrBlocks` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteCidrBlocksRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteCidrBlocksResponse wrapper for the DeleteCidrBlocks operation -type DeleteCidrBlocksResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteCidrBlocksResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteCidrBlocksResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_hostname_request_response.go deleted file mode 100644 index 0cfe6609c1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_hostname_request_response.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteHostnameRequest wrapper for the DeleteHostname operation -type DeleteHostnameRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostname to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the hostname resource to delete. - // Example: `example_hostname_001` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteHostnameRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteHostnameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteHostnameRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteHostnameResponse wrapper for the DeleteHostname operation -type DeleteHostnameResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteHostnameResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteHostnameResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_listener_request_response.go deleted file mode 100644 index 691ea3da5a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_listener_request_response.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteListenerRequest wrapper for the DeleteListener operation -type DeleteListenerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the listener to delete. - // Example: `example_listener` - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteListenerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteListenerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteListenerResponse wrapper for the DeleteListener operation -type DeleteListenerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response DeleteListenerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteListenerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_load_balancer_request_response.go deleted file mode 100644 index af0c42ae1b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_load_balancer_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteLoadBalancerRequest wrapper for the DeleteLoadBalancer operation -type DeleteLoadBalancerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteLoadBalancerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteLoadBalancerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteLoadBalancerResponse wrapper for the DeleteLoadBalancer operation -type DeleteLoadBalancerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteLoadBalancerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteLoadBalancerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_path_route_set_request_response.go deleted file mode 100644 index 39d9f7ea1b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_path_route_set_request_response.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeletePathRouteSetRequest wrapper for the DeletePathRouteSet operation -type DeletePathRouteSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the path route set to delete. - // Example: `example_path_route_set` - PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeletePathRouteSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeletePathRouteSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeletePathRouteSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeletePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeletePathRouteSetResponse wrapper for the DeletePathRouteSet operation -type DeletePathRouteSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeletePathRouteSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeletePathRouteSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_routing_policy_request_response.go deleted file mode 100644 index 06fb027449..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_routing_policy_request_response.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteRoutingPolicyRequest wrapper for the DeleteRoutingPolicy operation -type DeleteRoutingPolicyRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policy to delete. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the routing policy to delete. - // Example: `example_routing_policy` - RoutingPolicyName *string `mandatory:"true" contributesTo:"path" name:"routingPolicyName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteRoutingPolicyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteRoutingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteRoutingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteRoutingPolicyResponse wrapper for the DeleteRoutingPolicy operation -type DeleteRoutingPolicyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteRoutingPolicyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteRoutingPolicyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_rule_set_request_response.go deleted file mode 100644 index 5ccaefdfda..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_rule_set_request_response.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteRuleSetRequest wrapper for the DeleteRuleSet operation -type DeleteRuleSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the rule set to delete. - // Example: `example_rule_set` - RuleSetName *string `mandatory:"true" contributesTo:"path" name:"ruleSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteRuleSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteRuleSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteRuleSetResponse wrapper for the DeleteRuleSet operation -type DeleteRuleSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteRuleSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteRuleSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_s_s_l_cipher_suite_request_response.go deleted file mode 100644 index 9a35c159af..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/delete_s_s_l_cipher_suite_request_response.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteSSLCipherSuiteRequest wrapper for the DeleteSSLCipherSuite operation -type DeleteSSLCipherSuiteRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the SSL cipher suite to delete. - // example: `example_cipher_suite` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteSSLCipherSuiteRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteSSLCipherSuiteResponse wrapper for the DeleteSSLCipherSuite operation -type DeleteSSLCipherSuiteResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteSSLCipherSuiteResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteSSLCipherSuiteResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/forward_to_backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/forward_to_backend_set.go deleted file mode 100644 index 9e475130c4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/forward_to_backend_set.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ForwardToBackendSet Action to forward requests to a given backend set. -type ForwardToBackendSet struct { - - // Name of the backend set the listener will forward the traffic to. - // Example: `backendSetForImages` - BackendSetName *string `mandatory:"false" json:"backendSetName"` -} - -func (m ForwardToBackendSet) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m ForwardToBackendSet) MarshalJSON() (buff []byte, e error) { - type MarshalTypeForwardToBackendSet ForwardToBackendSet - s := struct { - DiscriminatorParam string `json:"name"` - MarshalTypeForwardToBackendSet - }{ - "FORWARD_TO_BACKENDSET", - (MarshalTypeForwardToBackendSet)(m), - } - - return json.Marshal(&s) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_health_request_response.go deleted file mode 100644 index a67b3e3588..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_health_request_response.go +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendHealthRequest wrapper for the GetBackendHealth operation -type GetBackendHealthRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend server to retrieve the health status for. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to retrieve the health status for. - // Example: `10.0.0.3:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendHealthRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendHealthRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendHealthResponse wrapper for the GetBackendHealth operation -type GetBackendHealthResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The BackendHealth instance - BackendHealth `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetBackendHealthResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendHealthResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_request_response.go deleted file mode 100644 index f42b3687cb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendRequest wrapper for the GetBackend operation -type GetBackendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set that includes the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to retrieve. - // Example: `10.0.0.3:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendResponse wrapper for the GetBackend operation -type GetBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Backend instance - Backend `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_health_request_response.go deleted file mode 100644 index 1dae143dcc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_health_request_response.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendSetHealthRequest wrapper for the GetBackendSetHealth operation -type GetBackendSetHealthRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set health status to be retrieved. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to retrieve the health status for. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendSetHealthRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendSetHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendSetHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendSetHealthRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendSetHealthResponse wrapper for the GetBackendSetHealth operation -type GetBackendSetHealthResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The BackendSetHealth instance - BackendSetHealth `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response GetBackendSetHealthResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendSetHealthResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_request_response.go deleted file mode 100644 index e586ca2cd8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_backend_set_request_response.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendSetRequest wrapper for the GetBackendSet operation -type GetBackendSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to retrieve. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendSetResponse wrapper for the GetBackendSet operation -type GetBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The BackendSet instance - BackendSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // Identifies the version of the loadbalancer containing the backendset returned. For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` -} - -func (response GetBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_cidr_blocks_request_response.go deleted file mode 100644 index 24ed46b38f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_cidr_blocks_request_response.go +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetCidrBlocksRequest wrapper for the GetCidrBlocks operation -type GetCidrBlocksRequest struct { - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the CidrBlocks. - // example: `ClientRealIpCidrBlocks` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetCidrBlocksRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetCidrBlocksResponse wrapper for the GetCidrBlocks operation -type GetCidrBlocksResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The CidrBlocks instance - CidrBlocks `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetCidrBlocksResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetCidrBlocksResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_health_checker_request_response.go deleted file mode 100644 index 40a0f118d8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_health_checker_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetHealthCheckerRequest wrapper for the GetHealthChecker operation -type GetHealthCheckerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be retrieved. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the health check policy to be retrieved. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetHealthCheckerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetHealthCheckerResponse wrapper for the GetHealthChecker operation -type GetHealthCheckerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The HealthChecker instance - HealthChecker `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetHealthCheckerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetHealthCheckerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_hostname_request_response.go deleted file mode 100644 index 6e8abe714b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_hostname_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetHostnameRequest wrapper for the GetHostname operation -type GetHostnameRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the hostname resource to retrieve. - // Example: `example_hostname_001` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetHostnameRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetHostnameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetHostnameRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetHostnameResponse wrapper for the GetHostname operation -type GetHostnameResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Hostname instance - Hostname `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetHostnameResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetHostnameResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_health_request_response.go deleted file mode 100644 index 0d5cb0f227..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_health_request_response.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetLoadBalancerHealthRequest wrapper for the GetLoadBalancerHealth operation -type GetLoadBalancerHealthRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetLoadBalancerHealthRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetLoadBalancerHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetLoadBalancerHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetLoadBalancerHealthRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetLoadBalancerHealthResponse wrapper for the GetLoadBalancerHealth operation -type GetLoadBalancerHealthResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The LoadBalancerHealth instance - LoadBalancerHealth `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetLoadBalancerHealthResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetLoadBalancerHealthResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_request_response.go deleted file mode 100644 index 705fa0a1d3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_load_balancer_request_response.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetLoadBalancerRequest wrapper for the GetLoadBalancer operation -type GetLoadBalancerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetLoadBalancerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetLoadBalancerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetLoadBalancerResponse wrapper for the GetLoadBalancer operation -type GetLoadBalancerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The LoadBalancer instance - LoadBalancer `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // Identifies the version of the loadbalancer returned. - ETag *string `presentIn:"header" name:"etag"` -} - -func (response GetLoadBalancerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetLoadBalancerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_path_route_set_request_response.go deleted file mode 100644 index bfc6566423..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_path_route_set_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetPathRouteSetRequest wrapper for the GetPathRouteSet operation -type GetPathRouteSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the path route set to retrieve. - // Example: `example_path_route_set` - PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetPathRouteSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetPathRouteSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetPathRouteSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetPathRouteSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetPathRouteSetResponse wrapper for the GetPathRouteSet operation -type GetPathRouteSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The PathRouteSet instance - PathRouteSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetPathRouteSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetPathRouteSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_routing_policy_request_response.go deleted file mode 100644 index 62ba2f72bb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_routing_policy_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetRoutingPolicyRequest wrapper for the GetRoutingPolicy operation -type GetRoutingPolicyRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the routing policy to retrieve. - // Example: `example_routing_policy` - RoutingPolicyName *string `mandatory:"true" contributesTo:"path" name:"routingPolicyName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetRoutingPolicyRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetRoutingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetRoutingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetRoutingPolicyResponse wrapper for the GetRoutingPolicy operation -type GetRoutingPolicyResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The RoutingPolicy instance - RoutingPolicy `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetRoutingPolicyResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetRoutingPolicyResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_rule_set_request_response.go deleted file mode 100644 index 0c1513ec6f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_rule_set_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetRuleSetRequest wrapper for the GetRuleSet operation -type GetRuleSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the rule set to retrieve. - // Example: `example_rule_set` - RuleSetName *string `mandatory:"true" contributesTo:"path" name:"ruleSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetRuleSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetRuleSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetRuleSetResponse wrapper for the GetRuleSet operation -type GetRuleSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The RuleSet instance - RuleSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetRuleSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetRuleSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_s_s_l_cipher_suite_request_response.go deleted file mode 100644 index 69aff1db15..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_s_s_l_cipher_suite_request_response.go +++ /dev/null @@ -1,74 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetSSLCipherSuiteRequest wrapper for the GetSSLCipherSuite operation -type GetSSLCipherSuiteRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the SSL cipher suite to retrieve. - // example: `example_cipher_suite` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetSSLCipherSuiteRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetSSLCipherSuiteResponse wrapper for the GetSSLCipherSuite operation -type GetSSLCipherSuiteResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The SslCipherSuite instance - SslCipherSuite `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetSSLCipherSuiteResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetSSLCipherSuiteResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_work_request_request_response.go deleted file mode 100644 index 00e8389660..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/get_work_request_request_response.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetWorkRequestRequest wrapper for the GetWorkRequest operation -type GetWorkRequestRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request to retrieve. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetWorkRequestRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetWorkRequestResponse wrapper for the GetWorkRequest operation -type GetWorkRequestResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The WorkRequest instance - WorkRequest `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response GetWorkRequestResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetWorkRequestResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_check_result.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_check_result.go deleted file mode 100644 index e999455903..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_check_result.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HealthCheckResult Information about a single backend server health check result reported by a load balancer. -type HealthCheckResult struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet hosting the load balancer that reported this health check status. - SubnetId *string `mandatory:"true" json:"subnetId"` - - // The IP address of the health check status report provider. This identifier helps you differentiate same-subnet - // load balancers that report health check status. - // Example: `10.0.0.7` - SourceIpAddress *string `mandatory:"true" json:"sourceIpAddress"` - - // The date and time the data was retrieved, in the format defined by RFC3339. - // Example: `2017-06-02T18:28:11+00:00` - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` - - // The result of the most recent health check. - HealthCheckStatus HealthCheckResultHealthCheckStatusEnum `mandatory:"true" json:"healthCheckStatus"` -} - -func (m HealthCheckResult) String() string { - return common.PointerString(m) -} - -// HealthCheckResultHealthCheckStatusEnum Enum with underlying type: string -type HealthCheckResultHealthCheckStatusEnum string - -// Set of constants representing the allowable values for HealthCheckResultHealthCheckStatusEnum -const ( - HealthCheckResultHealthCheckStatusOk HealthCheckResultHealthCheckStatusEnum = "OK" - HealthCheckResultHealthCheckStatusInvalidStatusCode HealthCheckResultHealthCheckStatusEnum = "INVALID_STATUS_CODE" - HealthCheckResultHealthCheckStatusTimedOut HealthCheckResultHealthCheckStatusEnum = "TIMED_OUT" - HealthCheckResultHealthCheckStatusRegexMismatch HealthCheckResultHealthCheckStatusEnum = "REGEX_MISMATCH" - HealthCheckResultHealthCheckStatusConnectFailed HealthCheckResultHealthCheckStatusEnum = "CONNECT_FAILED" - HealthCheckResultHealthCheckStatusIoError HealthCheckResultHealthCheckStatusEnum = "IO_ERROR" - HealthCheckResultHealthCheckStatusOffline HealthCheckResultHealthCheckStatusEnum = "OFFLINE" - HealthCheckResultHealthCheckStatusUnknown HealthCheckResultHealthCheckStatusEnum = "UNKNOWN" -) - -var mappingHealthCheckResultHealthCheckStatus = map[string]HealthCheckResultHealthCheckStatusEnum{ - "OK": HealthCheckResultHealthCheckStatusOk, - "INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode, - "TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut, - "REGEX_MISMATCH": HealthCheckResultHealthCheckStatusRegexMismatch, - "CONNECT_FAILED": HealthCheckResultHealthCheckStatusConnectFailed, - "IO_ERROR": HealthCheckResultHealthCheckStatusIoError, - "OFFLINE": HealthCheckResultHealthCheckStatusOffline, - "UNKNOWN": HealthCheckResultHealthCheckStatusUnknown, -} - -// GetHealthCheckResultHealthCheckStatusEnumValues Enumerates the set of values for HealthCheckResultHealthCheckStatusEnum -func GetHealthCheckResultHealthCheckStatusEnumValues() []HealthCheckResultHealthCheckStatusEnum { - values := make([]HealthCheckResultHealthCheckStatusEnum, 0) - for _, v := range mappingHealthCheckResultHealthCheckStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker.go deleted file mode 100644 index da58aeb803..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HealthChecker The health check policy configuration. -// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). -type HealthChecker struct { - - // The protocol the health check must use; either HTTP or TCP. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the - // port information from the `Backend` object. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, - // you can use common HTTP status codes such as "200". - // Example: `200` - ReturnCode *int `mandatory:"true" json:"returnCode"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^((?!false).|\s)*$` - ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` - - // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies - // when recovering a server to the "healthy" state. Defaults to 3. - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. Defaults to 3000 (3 seconds). - // Example: `3000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The interval between health checks, in milliseconds. The default is 10000 (10 seconds). - // Example: `10000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` -} - -func (m HealthChecker) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker_details.go deleted file mode 100644 index 71c9869d3f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/health_checker_details.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HealthCheckerDetails The health check policy's configuration details. -type HealthCheckerDetails struct { - - // The protocol the health check must use; either HTTP or TCP. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` - - // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the - // port information from the `Backend` object. - // Example: `8080` - Port *int `mandatory:"false" json:"port"` - - // The status code a healthy backend server should return. - // Example: `200` - ReturnCode *int `mandatory:"false" json:"returnCode"` - - // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies - // when recovering a server to the "healthy" state. - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. - // Example: `3000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The interval between health checks, in milliseconds. - // Example: `10000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^((?!false).|\s)*$` - ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` -} - -func (m HealthCheckerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname.go deleted file mode 100644 index 3ebc5423a4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Hostname A hostname resource associated with a load balancer for use by one or more listeners. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type Hostname struct { - - // A friendly name for the hostname resource. It must be unique and it cannot be changed. Avoid entering confidential - // information. - // Example: `example_hostname_001` - Name *string `mandatory:"true" json:"name"` - - // A virtual hostname. For more information about virtual hostname string construction, see - // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). - // Example: `app.example.com` - Hostname *string `mandatory:"true" json:"hostname"` -} - -func (m Hostname) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname_details.go deleted file mode 100644 index b5966b5e44..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/hostname_details.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HostnameDetails The details of a hostname resource associated with a load balancer. -type HostnameDetails struct { - - // The name of the hostname resource. - // Example: `example_hostname_001` - Name *string `mandatory:"true" json:"name"` - - // A virtual hostname. For more information about virtual hostname string construction, see - // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). - // Example: `app.example.com` - Hostname *string `mandatory:"true" json:"hostname"` -} - -func (m HostnameDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ip_address.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ip_address.go deleted file mode 100644 index 0036f8e94e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ip_address.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpAddress A load balancer IP address. -type IpAddress struct { - - // An IP address. - // Example: `192.168.0.3` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // Whether the IP address is public or private. - // If "true", the IP address is public and accessible from the internet. - // If "false", the IP address is private and accessible only from within the associated VCN. - IsPublic *bool `mandatory:"false" json:"isPublic"` - - ReservedIp *ReservedIp `mandatory:"false" json:"reservedIp"` -} - -func (m IpAddress) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backend_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backend_sets_request_response.go deleted file mode 100644 index cdde0f9799..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backend_sets_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBackendSetsRequest wrapper for the ListBackendSets operation -type ListBackendSetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBackendSetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBackendSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBackendSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBackendSetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBackendSetsResponse wrapper for the ListBackendSets operation -type ListBackendSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []BackendSet instance - Items []BackendSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response ListBackendSetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBackendSetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backends_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backends_request_response.go deleted file mode 100644 index fc3a2bdc99..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_backends_request_response.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBackendsRequest wrapper for the ListBackends operation -type ListBackendsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend servers. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBackendsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBackendsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBackendsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBackendsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBackendsResponse wrapper for the ListBackends operation -type ListBackendsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []Backend instance - Items []Backend `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListBackendsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBackendsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_certificates_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_certificates_request_response.go deleted file mode 100644 index 96c4177949..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_certificates_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListCertificatesRequest wrapper for the ListCertificates operation -type ListCertificatesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundles - // to be listed. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCertificatesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCertificatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCertificatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCertificatesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListCertificatesResponse wrapper for the ListCertificates operation -type ListCertificatesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []Certificate instance - Items []Certificate `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListCertificatesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCertificatesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_cidr_blocks_request_response.go deleted file mode 100644 index fdfd77c147..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_cidr_blocks_request_response.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListCidrBlocksRequest wrapper for the ListCidrBlocks operation -type ListCidrBlocksRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the CidrBlocks - // to be listed. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListCidrBlocksRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListCidrBlocksResponse wrapper for the ListCidrBlocks operation -type ListCidrBlocksResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []CidrBlocks instance - Items []CidrBlocks `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListCidrBlocksResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListCidrBlocksResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_hostnames_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_hostnames_request_response.go deleted file mode 100644 index 1cfa342b43..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_hostnames_request_response.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListHostnamesRequest wrapper for the ListHostnames operation -type ListHostnamesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostnames - // to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListHostnamesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListHostnamesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListHostnamesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListHostnamesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListHostnamesResponse wrapper for the ListHostnames operation -type ListHostnamesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []Hostname instance - Items []Hostname `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response ListHostnamesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListHostnamesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_listener_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_listener_rules_request_response.go deleted file mode 100644 index 43256138d2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_listener_rules_request_response.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListListenerRulesRequest wrapper for the ListListenerRules operation -type ListListenerRulesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the listener the rules are associated with. - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListListenerRulesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListListenerRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListListenerRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListListenerRulesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListListenerRulesResponse wrapper for the ListListenerRules operation -type ListListenerRulesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []ListenerRuleSummary instance - Items []ListenerRuleSummary `presentIn:"body"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListListenerRulesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListListenerRulesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancers_request_response.go deleted file mode 100644 index aa1715f632..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancers_request_response.go +++ /dev/null @@ -1,149 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListLoadBalancersRequest wrapper for the ListLoadBalancers operation -type ListLoadBalancersRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The level of detail to return for each result. Can be `full` or `simple`. - // Example: `full` - Detail *string `mandatory:"false" contributesTo:"query" name:"detail"` - - // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. - // Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. - SortBy ListLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order is case sensitive. - SortOrder ListLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // A filter to return only resources that match the given display name exactly. - // Example: `example_load_balancer` - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only resources that match the given lifecycle state. - // Example: `SUCCEEDED` - LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListLoadBalancersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListLoadBalancersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListLoadBalancersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListLoadBalancersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListLoadBalancersResponse wrapper for the ListLoadBalancers operation -type ListLoadBalancersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []LoadBalancer instances - Items []LoadBalancer `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListLoadBalancersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListLoadBalancersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListLoadBalancersSortByEnum Enum with underlying type: string -type ListLoadBalancersSortByEnum string - -// Set of constants representing the allowable values for ListLoadBalancersSortByEnum -const ( - ListLoadBalancersSortByTimecreated ListLoadBalancersSortByEnum = "TIMECREATED" - ListLoadBalancersSortByDisplayname ListLoadBalancersSortByEnum = "DISPLAYNAME" -) - -var mappingListLoadBalancersSortBy = map[string]ListLoadBalancersSortByEnum{ - "TIMECREATED": ListLoadBalancersSortByTimecreated, - "DISPLAYNAME": ListLoadBalancersSortByDisplayname, -} - -// GetListLoadBalancersSortByEnumValues Enumerates the set of values for ListLoadBalancersSortByEnum -func GetListLoadBalancersSortByEnumValues() []ListLoadBalancersSortByEnum { - values := make([]ListLoadBalancersSortByEnum, 0) - for _, v := range mappingListLoadBalancersSortBy { - values = append(values, v) - } - return values -} - -// ListLoadBalancersSortOrderEnum Enum with underlying type: string -type ListLoadBalancersSortOrderEnum string - -// Set of constants representing the allowable values for ListLoadBalancersSortOrderEnum -const ( - ListLoadBalancersSortOrderAsc ListLoadBalancersSortOrderEnum = "ASC" - ListLoadBalancersSortOrderDesc ListLoadBalancersSortOrderEnum = "DESC" -) - -var mappingListLoadBalancersSortOrder = map[string]ListLoadBalancersSortOrderEnum{ - "ASC": ListLoadBalancersSortOrderAsc, - "DESC": ListLoadBalancersSortOrderDesc, -} - -// GetListLoadBalancersSortOrderEnumValues Enumerates the set of values for ListLoadBalancersSortOrderEnum -func GetListLoadBalancersSortOrderEnumValues() []ListLoadBalancersSortOrderEnum { - values := make([]ListLoadBalancersSortOrderEnum, 0) - for _, v := range mappingListLoadBalancersSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_path_route_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_path_route_sets_request_response.go deleted file mode 100644 index 5bd151ba66..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_path_route_sets_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPathRouteSetsRequest wrapper for the ListPathRouteSets operation -type ListPathRouteSetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route sets - // to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPathRouteSetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPathRouteSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPathRouteSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPathRouteSetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPathRouteSetsResponse wrapper for the ListPathRouteSets operation -type ListPathRouteSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []PathRouteSet instance - Items []PathRouteSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPathRouteSetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPathRouteSetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_policies_request_response.go deleted file mode 100644 index 224154b73d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_policies_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListPoliciesRequest wrapper for the ListPolicies operation -type ListPoliciesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListPoliciesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListPoliciesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListPoliciesResponse wrapper for the ListPolicies operation -type ListPoliciesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []LoadBalancerPolicy instances - Items []LoadBalancerPolicy `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListPoliciesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListPoliciesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_routing_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_routing_policies_request_response.go deleted file mode 100644 index 0d86ce4eb6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_routing_policies_request_response.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListRoutingPoliciesRequest wrapper for the ListRoutingPolicies operation -type ListRoutingPoliciesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policies. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListRoutingPoliciesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListRoutingPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListRoutingPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListRoutingPoliciesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListRoutingPoliciesResponse wrapper for the ListRoutingPolicies operation -type ListRoutingPoliciesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []RoutingPolicy instances - Items []RoutingPolicy `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListRoutingPoliciesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListRoutingPoliciesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_rule_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_rule_sets_request_response.go deleted file mode 100644 index 2e9f3a069a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_rule_sets_request_response.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListRuleSetsRequest wrapper for the ListRuleSets operation -type ListRuleSetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no ETag - // matching the one specified. If the condition fails for the GET and HEAD methods, the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListRuleSetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListRuleSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListRuleSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListRuleSetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListRuleSetsResponse wrapper for the ListRuleSets operation -type ListRuleSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []RuleSet instance - Items []RuleSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool -} - -func (response ListRuleSetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListRuleSetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_s_s_l_cipher_suites_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_s_s_l_cipher_suites_request_response.go deleted file mode 100644 index a97737db34..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_s_s_l_cipher_suites_request_response.go +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListSSLCipherSuitesRequest wrapper for the ListSSLCipherSuites operation -type ListSSLCipherSuitesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListSSLCipherSuitesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListSSLCipherSuitesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListSSLCipherSuitesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListSSLCipherSuitesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListSSLCipherSuitesResponse wrapper for the ListSSLCipherSuites operation -type ListSSLCipherSuitesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The []SslCipherSuite instance - Items []SslCipherSuite `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListSSLCipherSuitesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListSSLCipherSuitesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_shapes_request_response.go deleted file mode 100644 index b46378395b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_shapes_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListShapesRequest wrapper for the ListShapes operation -type ListShapesRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer shapes to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListShapesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListShapesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListShapesResponse wrapper for the ListShapes operation -type ListShapesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []LoadBalancerShape instances - Items []LoadBalancerShape `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListShapesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListShapesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_work_requests_request_response.go deleted file mode 100644 index c427cf94db..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_work_requests_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestsRequest wrapper for the ListWorkRequests operation -type ListWorkRequestsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `50` - Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Example: `3` - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestsResponse wrapper for the ListWorkRequests operation -type ListWorkRequestsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []WorkRequest instances - Items []WorkRequest `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener.go deleted file mode 100644 index cb963cdb0c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener.go +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Listener The listener's configuration. -// For more information on backend set configuration, see -// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -type Listener struct { - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Example: `example_listener` - Name *string `mandatory:"true" json:"name"` - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // An array of hostname resource names. - HostnameNames []string `mandatory:"false" json:"hostnameNames"` - - // Deprecated. Please use `routingPolicies` instead. - // The name of the set of path-based routing rules, PathRouteSet, - // applied to this listener's traffic. - // Example: `example_path_route_set` - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` - - ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` - - // The names of the RuleSet to apply to the listener. - // Example: ["example_rule_set"] - RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` - - // The name of the routing policy applied to this listener's traffic. - // Example: `example_routing_policy_name` - RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` -} - -func (m Listener) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_details.go deleted file mode 100644 index 87ce6d1c1a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_details.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ListenerDetails The listener's configuration details. -type ListenerDetails struct { - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // An array of hostname resource names. - HostnameNames []string `mandatory:"false" json:"hostnameNames"` - - // Deprecated. Please use `routingPolicies` instead. - // The name of the set of path-based routing rules, PathRouteSet, - // applied to this listener's traffic. - // Example: `example_path_route_set` - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` - - ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` - - // The name of the routing policy applied to this listener's traffic. - // Example: `example_routing_policy` - RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` - - // The names of the RuleSet to apply to the listener. - // Example: ["example_rule_set"] - RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` -} - -func (m ListenerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health.go deleted file mode 100644 index add867f028..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LoadBalancerHealth The health status details for the specified load balancer. -// This object does not explicitly enumerate backend sets with a status of `OK`. However, they are included in the -// `totalBackendSetCount` sum. -type LoadBalancerHealth struct { - - // The overall health status of the load balancer. - // * **OK:** All backend sets associated with the load balancer return a status of `OK`. - // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, - // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. - // * **UNKNOWN:** If any one of the following conditions is true: - // * The load balancer life cycle state is not `ACTIVE`. - // * No backend sets are defined for the load balancer. - // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend - // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * The system could not retrieve metrics for any reason. - Status LoadBalancerHealthStatusEnum `mandatory:"true" json:"status"` - - // A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the - // friendly name you assigned when you created it. - // Example: `example_backend_set3` - WarningStateBackendSetNames []string `mandatory:"true" json:"warningStateBackendSetNames"` - - // A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the - // friendly name you assigned when you created it. - // Example: `example_backend_set` - CriticalStateBackendSetNames []string `mandatory:"true" json:"criticalStateBackendSetNames"` - - // A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the - // friendly name you assigned when you created it. - // Example: `example_backend_set2` - UnknownStateBackendSetNames []string `mandatory:"true" json:"unknownStateBackendSetNames"` - - // The total number of backend sets associated with this load balancer. - // Example: `4` - TotalBackendSetCount *int `mandatory:"true" json:"totalBackendSetCount"` -} - -func (m LoadBalancerHealth) String() string { - return common.PointerString(m) -} - -// LoadBalancerHealthStatusEnum Enum with underlying type: string -type LoadBalancerHealthStatusEnum string - -// Set of constants representing the allowable values for LoadBalancerHealthStatusEnum -const ( - LoadBalancerHealthStatusOk LoadBalancerHealthStatusEnum = "OK" - LoadBalancerHealthStatusWarning LoadBalancerHealthStatusEnum = "WARNING" - LoadBalancerHealthStatusCritical LoadBalancerHealthStatusEnum = "CRITICAL" - LoadBalancerHealthStatusUnknown LoadBalancerHealthStatusEnum = "UNKNOWN" -) - -var mappingLoadBalancerHealthStatus = map[string]LoadBalancerHealthStatusEnum{ - "OK": LoadBalancerHealthStatusOk, - "WARNING": LoadBalancerHealthStatusWarning, - "CRITICAL": LoadBalancerHealthStatusCritical, - "UNKNOWN": LoadBalancerHealthStatusUnknown, -} - -// GetLoadBalancerHealthStatusEnumValues Enumerates the set of values for LoadBalancerHealthStatusEnum -func GetLoadBalancerHealthStatusEnumValues() []LoadBalancerHealthStatusEnum { - values := make([]LoadBalancerHealthStatusEnum, 0) - for _, v := range mappingLoadBalancerHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health_summary.go deleted file mode 100644 index e2c10ec753..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_health_summary.go +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LoadBalancerHealthSummary A health status summary for the specified load balancer. -type LoadBalancerHealthSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer the health status is associated with. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The overall health status of the load balancer. - // * **OK:** All backend sets associated with the load balancer return a status of `OK`. - // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, - // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. - // * **UNKNOWN:** If any one of the following conditions is true: - // * The load balancer life cycle state is not `ACTIVE`. - // * No backend sets are defined for the load balancer. - // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend - // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. - // * The system could not retrieve metrics for any reason. - Status LoadBalancerHealthSummaryStatusEnum `mandatory:"true" json:"status"` -} - -func (m LoadBalancerHealthSummary) String() string { - return common.PointerString(m) -} - -// LoadBalancerHealthSummaryStatusEnum Enum with underlying type: string -type LoadBalancerHealthSummaryStatusEnum string - -// Set of constants representing the allowable values for LoadBalancerHealthSummaryStatusEnum -const ( - LoadBalancerHealthSummaryStatusOk LoadBalancerHealthSummaryStatusEnum = "OK" - LoadBalancerHealthSummaryStatusWarning LoadBalancerHealthSummaryStatusEnum = "WARNING" - LoadBalancerHealthSummaryStatusCritical LoadBalancerHealthSummaryStatusEnum = "CRITICAL" - LoadBalancerHealthSummaryStatusUnknown LoadBalancerHealthSummaryStatusEnum = "UNKNOWN" -) - -var mappingLoadBalancerHealthSummaryStatus = map[string]LoadBalancerHealthSummaryStatusEnum{ - "OK": LoadBalancerHealthSummaryStatusOk, - "WARNING": LoadBalancerHealthSummaryStatusWarning, - "CRITICAL": LoadBalancerHealthSummaryStatusCritical, - "UNKNOWN": LoadBalancerHealthSummaryStatusUnknown, -} - -// GetLoadBalancerHealthSummaryStatusEnumValues Enumerates the set of values for LoadBalancerHealthSummaryStatusEnum -func GetLoadBalancerHealthSummaryStatusEnumValues() []LoadBalancerHealthSummaryStatusEnum { - values := make([]LoadBalancerHealthSummaryStatusEnum, 0) - for _, v := range mappingLoadBalancerHealthSummaryStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_policy.go deleted file mode 100644 index 60e2566d68..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_policy.go +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LoadBalancerPolicy A policy that determines how traffic is distributed among backend servers. -// For more information on load balancing policies, see -// How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). -type LoadBalancerPolicy struct { - - // The name of a load balancing policy. - // Example: 'LEAST_CONNECTIONS' - Name *string `mandatory:"true" json:"name"` -} - -func (m LoadBalancerPolicy) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_protocol.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_protocol.go deleted file mode 100644 index 9e24041294..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_protocol.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LoadBalancerProtocol A protocol that defines the type of traffic accepted by a listener. -type LoadBalancerProtocol struct { - - // The name of a protocol. - // Example: 'HTTP' - Name *string `mandatory:"true" json:"name"` -} - -func (m LoadBalancerProtocol) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_shape.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_shape.go deleted file mode 100644 index 07a9b8713b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer_shape.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// LoadBalancerShape A shape is a template that determines the total pre-provisioned bandwidth (ingress plus egress) for the -// load balancer. -// Note that the pre-provisioned maximum capacity applies to aggregated connections, not to a single client -// attempting to use the full bandwidth. -type LoadBalancerShape struct { - - // The name of the shape. - // Example: `100Mbps` - Name *string `mandatory:"true" json:"name"` -} - -func (m LoadBalancerShape) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_condition.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_condition.go deleted file mode 100644 index 0dfd82d425..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_condition.go +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PathMatchCondition The path string and match condition to apply when evaluating an incoming URI for redirection. -type PathMatchCondition struct { - - // The path string that the redirection rule applies to. - // Example: `/example` - AttributeValue *string `mandatory:"true" json:"attributeValue"` - - // A string that specifies how to compare the PathMatchCondition object's `attributeValue` string to the - // incoming URI. - // * **EXACT_MATCH** - The incoming URI path must exactly and completely match the `attributeValue` string. - // * **FORCE_LONGEST_PREFIX_MATCH** - The system looks for the `attributeValue` string with the best, - // longest match of the beginning portion of the incoming URI path. - // * **PREFIX_MATCH** - The beginning portion of the incoming URI path must exactly match the - // `attributeValue` string. - // * **SUFFIX_MATCH** - The ending portion of the incoming URI path must exactly match the `attributeValue` - // string. - Operator PathMatchConditionOperatorEnum `mandatory:"true" json:"operator"` -} - -func (m PathMatchCondition) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m PathMatchCondition) MarshalJSON() (buff []byte, e error) { - type MarshalTypePathMatchCondition PathMatchCondition - s := struct { - DiscriminatorParam string `json:"attributeName"` - MarshalTypePathMatchCondition - }{ - "PATH", - (MarshalTypePathMatchCondition)(m), - } - - return json.Marshal(&s) -} - -// PathMatchConditionOperatorEnum Enum with underlying type: string -type PathMatchConditionOperatorEnum string - -// Set of constants representing the allowable values for PathMatchConditionOperatorEnum -const ( - PathMatchConditionOperatorExactMatch PathMatchConditionOperatorEnum = "EXACT_MATCH" - PathMatchConditionOperatorForceLongestPrefixMatch PathMatchConditionOperatorEnum = "FORCE_LONGEST_PREFIX_MATCH" - PathMatchConditionOperatorPrefixMatch PathMatchConditionOperatorEnum = "PREFIX_MATCH" - PathMatchConditionOperatorSuffixMatch PathMatchConditionOperatorEnum = "SUFFIX_MATCH" -) - -var mappingPathMatchConditionOperator = map[string]PathMatchConditionOperatorEnum{ - "EXACT_MATCH": PathMatchConditionOperatorExactMatch, - "FORCE_LONGEST_PREFIX_MATCH": PathMatchConditionOperatorForceLongestPrefixMatch, - "PREFIX_MATCH": PathMatchConditionOperatorPrefixMatch, - "SUFFIX_MATCH": PathMatchConditionOperatorSuffixMatch, -} - -// GetPathMatchConditionOperatorEnumValues Enumerates the set of values for PathMatchConditionOperatorEnum -func GetPathMatchConditionOperatorEnumValues() []PathMatchConditionOperatorEnum { - values := make([]PathMatchConditionOperatorEnum, 0) - for _, v := range mappingPathMatchConditionOperator { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_type.go deleted file mode 100644 index 3847c0372d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_match_type.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PathMatchType The type of matching to apply to incoming URIs. -type PathMatchType struct { - - // Specifies how the load balancing service compares a PathRoute - // object's `path` string against the incoming URI. - // * **EXACT_MATCH** - Looks for a `path` string that exactly matches the incoming URI path. - // * **FORCE_LONGEST_PREFIX_MATCH** - Looks for the `path` string with the best, longest match of the beginning - // portion of the incoming URI path. - // * **PREFIX_MATCH** - Looks for a `path` string that matches the beginning portion of the incoming URI path. - // * **SUFFIX_MATCH** - Looks for a `path` string that matches the ending portion of the incoming URI path. - // For a full description of how the system handles `matchType` in a path route set containing multiple rules, see - // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). - MatchType PathMatchTypeMatchTypeEnum `mandatory:"true" json:"matchType"` -} - -func (m PathMatchType) String() string { - return common.PointerString(m) -} - -// PathMatchTypeMatchTypeEnum Enum with underlying type: string -type PathMatchTypeMatchTypeEnum string - -// Set of constants representing the allowable values for PathMatchTypeMatchTypeEnum -const ( - PathMatchTypeMatchTypeExactMatch PathMatchTypeMatchTypeEnum = "EXACT_MATCH" - PathMatchTypeMatchTypeForceLongestPrefixMatch PathMatchTypeMatchTypeEnum = "FORCE_LONGEST_PREFIX_MATCH" - PathMatchTypeMatchTypePrefixMatch PathMatchTypeMatchTypeEnum = "PREFIX_MATCH" - PathMatchTypeMatchTypeSuffixMatch PathMatchTypeMatchTypeEnum = "SUFFIX_MATCH" -) - -var mappingPathMatchTypeMatchType = map[string]PathMatchTypeMatchTypeEnum{ - "EXACT_MATCH": PathMatchTypeMatchTypeExactMatch, - "FORCE_LONGEST_PREFIX_MATCH": PathMatchTypeMatchTypeForceLongestPrefixMatch, - "PREFIX_MATCH": PathMatchTypeMatchTypePrefixMatch, - "SUFFIX_MATCH": PathMatchTypeMatchTypeSuffixMatch, -} - -// GetPathMatchTypeMatchTypeEnumValues Enumerates the set of values for PathMatchTypeMatchTypeEnum -func GetPathMatchTypeMatchTypeEnumValues() []PathMatchTypeMatchTypeEnum { - values := make([]PathMatchTypeMatchTypeEnum, 0) - for _, v := range mappingPathMatchTypeMatchType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route.go deleted file mode 100644 index 4d9480681d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PathRoute A "path route rule" to evaluate an incoming URI path, and then route a matching request to the specified backend set. -// Path route rules apply only to HTTP and HTTPS requests. They have no effect on TCP requests. -type PathRoute struct { - - // The path string to match against the incoming URI path. - // * Path strings are case-insensitive. - // * Asterisk (*) wildcards are not supported. - // * Regular expressions are not supported. - // Example: `/example/video/123` - Path *string `mandatory:"true" json:"path"` - - // The type of matching to apply to incoming URIs. - PathMatchType *PathMatchType `mandatory:"true" json:"pathMatchType"` - - // The name of the target backend set for requests where the incoming URI matches the specified path. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" json:"backendSetName"` -} - -func (m PathRoute) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set.go deleted file mode 100644 index eda120fc3c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PathRouteSet A named set of path route rules. For more information, see -// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type PathRouteSet struct { - - // The unique name for this set of path route rules. Avoid entering confidential information. - // Example: `example_path_route_set` - Name *string `mandatory:"true" json:"name"` - - // The set of path route rules. - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m PathRouteSet) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set_details.go deleted file mode 100644 index 15ebc6391e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/path_route_set_details.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PathRouteSetDetails A set of path route rules. -type PathRouteSetDetails struct { - - // The set of path route rules. - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m PathRouteSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/reserved_ip.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/reserved_ip.go deleted file mode 100644 index 02a9fa4dab..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/reserved_ip.go +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReservedIp The representation of ReservedIp -type ReservedIp struct { - Id *string `mandatory:"false" json:"id"` -} - -func (m ReservedIp) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy.go deleted file mode 100644 index 3deaaf7e16..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy.go +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RoutingPolicy A named ordered list of routing rules that is applied to a listener. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type RoutingPolicy struct { - - // The unique name for this list of routing rules. Avoid entering confidential information. - // Example: `example_routing_policy` - Name *string `mandatory:"true" json:"name"` - - // The version of the language in which `condition` of `rules` are composed. - ConditionLanguageVersion RoutingPolicyConditionLanguageVersionEnum `mandatory:"true" json:"conditionLanguageVersion"` - - // The ordered list of routing rules. - Rules []RoutingRule `mandatory:"true" json:"rules"` -} - -func (m RoutingPolicy) String() string { - return common.PointerString(m) -} - -// RoutingPolicyConditionLanguageVersionEnum Enum with underlying type: string -type RoutingPolicyConditionLanguageVersionEnum string - -// Set of constants representing the allowable values for RoutingPolicyConditionLanguageVersionEnum -const ( - RoutingPolicyConditionLanguageVersionV1 RoutingPolicyConditionLanguageVersionEnum = "V1" -) - -var mappingRoutingPolicyConditionLanguageVersion = map[string]RoutingPolicyConditionLanguageVersionEnum{ - "V1": RoutingPolicyConditionLanguageVersionV1, -} - -// GetRoutingPolicyConditionLanguageVersionEnumValues Enumerates the set of values for RoutingPolicyConditionLanguageVersionEnum -func GetRoutingPolicyConditionLanguageVersionEnumValues() []RoutingPolicyConditionLanguageVersionEnum { - values := make([]RoutingPolicyConditionLanguageVersionEnum, 0) - for _, v := range mappingRoutingPolicyConditionLanguageVersion { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy_details.go deleted file mode 100644 index 77b4866d6c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_policy_details.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RoutingPolicyDetails An ordered list of routing rules. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type RoutingPolicyDetails struct { - - // The list of routing rules. - Rules []RoutingRule `mandatory:"true" json:"rules"` -} - -func (m RoutingPolicyDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule.go deleted file mode 100644 index 216d7eba7e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule.go +++ /dev/null @@ -1,138 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Rule An object that represents an action to apply to a listener. -type Rule interface { -} - -type rule struct { - JsonData []byte - Action string `json:"action"` -} - -// UnmarshalJSON unmarshals json -func (m *rule) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerrule rule - s := struct { - Model Unmarshalerrule - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.Action = s.Model.Action - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *rule) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.Action { - case "ADD_HTTP_REQUEST_HEADER": - mm := AddHttpRequestHeaderRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "REDIRECT": - mm := RedirectRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "REMOVE_HTTP_REQUEST_HEADER": - mm := RemoveHttpRequestHeaderRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "EXTEND_HTTP_REQUEST_HEADER_VALUE": - mm := ExtendHttpRequestHeaderValueRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "REMOVE_HTTP_RESPONSE_HEADER": - mm := RemoveHttpResponseHeaderRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "CONTROL_ACCESS_USING_HTTP_METHODS": - mm := ControlAccessUsingHttpMethodsRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ALLOW": - mm := AllowRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "HTTP_HEADER": - mm := HttpHeaderRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "ADD_HTTP_RESPONSE_HEADER": - mm := AddHttpResponseHeaderRule{} - err = json.Unmarshal(data, &mm) - return mm, err - case "EXTEND_HTTP_RESPONSE_HEADER_VALUE": - mm := ExtendHttpResponseHeaderValueRule{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m rule) String() string { - return common.PointerString(m) -} - -// RuleActionEnum Enum with underlying type: string -type RuleActionEnum string - -// Set of constants representing the allowable values for RuleActionEnum -const ( - RuleActionAddHttpRequestHeader RuleActionEnum = "ADD_HTTP_REQUEST_HEADER" - RuleActionExtendHttpRequestHeaderValue RuleActionEnum = "EXTEND_HTTP_REQUEST_HEADER_VALUE" - RuleActionRemoveHttpRequestHeader RuleActionEnum = "REMOVE_HTTP_REQUEST_HEADER" - RuleActionAddHttpResponseHeader RuleActionEnum = "ADD_HTTP_RESPONSE_HEADER" - RuleActionExtendHttpResponseHeaderValue RuleActionEnum = "EXTEND_HTTP_RESPONSE_HEADER_VALUE" - RuleActionRemoveHttpResponseHeader RuleActionEnum = "REMOVE_HTTP_RESPONSE_HEADER" - RuleActionAllow RuleActionEnum = "ALLOW" - RuleActionControlAccessUsingHttpMethods RuleActionEnum = "CONTROL_ACCESS_USING_HTTP_METHODS" - RuleActionRedirect RuleActionEnum = "REDIRECT" - RuleActionHttpHeader RuleActionEnum = "HTTP_HEADER" -) - -var mappingRuleAction = map[string]RuleActionEnum{ - "ADD_HTTP_REQUEST_HEADER": RuleActionAddHttpRequestHeader, - "EXTEND_HTTP_REQUEST_HEADER_VALUE": RuleActionExtendHttpRequestHeaderValue, - "REMOVE_HTTP_REQUEST_HEADER": RuleActionRemoveHttpRequestHeader, - "ADD_HTTP_RESPONSE_HEADER": RuleActionAddHttpResponseHeader, - "EXTEND_HTTP_RESPONSE_HEADER_VALUE": RuleActionExtendHttpResponseHeaderValue, - "REMOVE_HTTP_RESPONSE_HEADER": RuleActionRemoveHttpResponseHeader, - "ALLOW": RuleActionAllow, - "CONTROL_ACCESS_USING_HTTP_METHODS": RuleActionControlAccessUsingHttpMethods, - "REDIRECT": RuleActionRedirect, - "HTTP_HEADER": RuleActionHttpHeader, -} - -// GetRuleActionEnumValues Enumerates the set of values for RuleActionEnum -func GetRuleActionEnumValues() []RuleActionEnum { - values := make([]RuleActionEnum, 0) - for _, v := range mappingRuleAction { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_condition.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_condition.go deleted file mode 100644 index 6e9d3b6653..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_condition.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RuleCondition A condition to apply to an access control rule. -type RuleCondition interface { -} - -type rulecondition struct { - JsonData []byte - AttributeName string `json:"attributeName"` -} - -// UnmarshalJSON unmarshals json -func (m *rulecondition) UnmarshalJSON(data []byte) error { - m.JsonData = data - type Unmarshalerrulecondition rulecondition - s := struct { - Model Unmarshalerrulecondition - }{} - err := json.Unmarshal(data, &s.Model) - if err != nil { - return err - } - m.AttributeName = s.Model.AttributeName - - return err -} - -// UnmarshalPolymorphicJSON unmarshals polymorphic json -func (m *rulecondition) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { - - if data == nil || string(data) == "null" { - return nil, nil - } - - var err error - switch m.AttributeName { - case "SOURCE_VCN_ID": - mm := SourceVcnIdCondition{} - err = json.Unmarshal(data, &mm) - return mm, err - case "SOURCE_IP_ADDRESS": - mm := SourceIpAddressCondition{} - err = json.Unmarshal(data, &mm) - return mm, err - case "PATH": - mm := PathMatchCondition{} - err = json.Unmarshal(data, &mm) - return mm, err - case "SOURCE_VCN_IP_ADDRESS": - mm := SourceVcnIpAddressCondition{} - err = json.Unmarshal(data, &mm) - return mm, err - case "REAL_IP_ADDRESS": - mm := RealIpAddressCondition{} - err = json.Unmarshal(data, &mm) - return mm, err - default: - return *m, nil - } -} - -func (m rulecondition) String() string { - return common.PointerString(m) -} - -// RuleConditionAttributeNameEnum Enum with underlying type: string -type RuleConditionAttributeNameEnum string - -// Set of constants representing the allowable values for RuleConditionAttributeNameEnum -const ( - RuleConditionAttributeNameSourceIpAddress RuleConditionAttributeNameEnum = "SOURCE_IP_ADDRESS" - RuleConditionAttributeNameSourceVcnId RuleConditionAttributeNameEnum = "SOURCE_VCN_ID" - RuleConditionAttributeNameSourceVcnIpAddress RuleConditionAttributeNameEnum = "SOURCE_VCN_IP_ADDRESS" - RuleConditionAttributeNamePath RuleConditionAttributeNameEnum = "PATH" - RuleConditionAttributeNameRealIpAddress RuleConditionAttributeNameEnum = "REAL_IP_ADDRESS" -) - -var mappingRuleConditionAttributeName = map[string]RuleConditionAttributeNameEnum{ - "SOURCE_IP_ADDRESS": RuleConditionAttributeNameSourceIpAddress, - "SOURCE_VCN_ID": RuleConditionAttributeNameSourceVcnId, - "SOURCE_VCN_IP_ADDRESS": RuleConditionAttributeNameSourceVcnIpAddress, - "PATH": RuleConditionAttributeNamePath, - "REAL_IP_ADDRESS": RuleConditionAttributeNameRealIpAddress, -} - -// GetRuleConditionAttributeNameEnumValues Enumerates the set of values for RuleConditionAttributeNameEnum -func GetRuleConditionAttributeNameEnumValues() []RuleConditionAttributeNameEnum { - values := make([]RuleConditionAttributeNameEnum, 0) - for _, v := range mappingRuleConditionAttributeName { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set_details.go deleted file mode 100644 index c4ccc8ebc9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// RuleSetDetails The rules that compose a rule set. -type RuleSetDetails struct { - - // An array of rules that compose the rule set. - Items []Rule `mandatory:"true" json:"items"` -} - -func (m RuleSetDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *RuleSetDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - Items []rule `json:"items"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Items = make([]Rule, len(model.Items)) - for i, n := range model.Items { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Items[i] = nn.(Rule) - } else { - m.Items[i] = nil - } - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/shape_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/shape_details.go deleted file mode 100644 index 201e7aa5c3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/shape_details.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ShapeDetails The configuration details to update load balancer to a different shape. -type ShapeDetails struct { - - // Bandwidth in Mbps that determines the total pre-provisioned bandwidth (ingress plus egress). - // The values must be between 10 and the maximumBandwidthInMbps. - // Example: `150` - MinimumBandwidthInMbps *int `mandatory:"true" json:"minimumBandwidthInMbps"` - - // Bandwidth in Mbps that determines the maximum bandwidth (ingress plus egress) that the load balancer can - // achieve. This bandwidth cannot be always guaranteed. For a guaranteed bandwidth use the minimumBandwidthInMbps - // parameter. - // The values must be between minimumBandwidthInMbps and 8192 (8Gbps). - // Example: `1500` - MaximumBandwidthInMbps *int `mandatory:"true" json:"maximumBandwidthInMbps"` -} - -func (m ShapeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_ip_address_condition.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_ip_address_condition.go deleted file mode 100644 index 8e506f15af..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_ip_address_condition.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// SourceIpAddressCondition A rule condition that checks client source IP against specified IP address or address range. -// The IP Address can be specified either as a single CIDR by value or referenced via a named CidrBlocks. -// If latter is used, then CidrBlocks must be created in the context of this Load Balancer. -// Condition evaluation depends on operator: -// * **IN_RANGE** - The condition is determined to be true if the source IP address belongs to the CIDR or CidrBlocks referenced in *attributeValue*. -// * **NOT_IN_RANGE** - The condition is determined to be true if the source IP address does not belong to the CIDR or CidrBlocks referenced in *attributeValue*. -type SourceIpAddressCondition struct { - - // An IPv4 or IPv6 address range that the source IP address of an incoming packet must match. - // The service accepts only classless inter-domain routing (CIDR) format (x.x.x.x/y or x:x::x/y) strings. - // Specify 0.0.0.0/0 or ::/0 to match all incoming traffic. - // Besides IP ranges or IPs you can match against multiple CIDR blocks by creating a CidrBlocks resource with - // a list of CIDR blocks and mentioning the name of CidrBlocks resource. - // example: "192.168.0.0/16 or MySourceIPCidrBlocks" - AttributeValue *string `mandatory:"true" json:"attributeValue"` - - // Operator which has to be appplied to this condition. - // * **IN_RANGE** - The condition is determined to be true if the source IP address belongs to the CIDR or CidrBlocks referenced in *attributeValue*. - // * **NOT_IN_RANGE** - The condition is determined to be true if the source IP address does not belong to the CIDR or CidrBlocks referenced in *attributeValue*. - Operator SourceIpAddressConditionOperatorEnum `mandatory:"false" json:"operator,omitempty"` -} - -func (m SourceIpAddressCondition) String() string { - return common.PointerString(m) -} - -// MarshalJSON marshals to json representation -func (m SourceIpAddressCondition) MarshalJSON() (buff []byte, e error) { - type MarshalTypeSourceIpAddressCondition SourceIpAddressCondition - s := struct { - DiscriminatorParam string `json:"attributeName"` - MarshalTypeSourceIpAddressCondition - }{ - "SOURCE_IP_ADDRESS", - (MarshalTypeSourceIpAddressCondition)(m), - } - - return json.Marshal(&s) -} - -// SourceIpAddressConditionOperatorEnum Enum with underlying type: string -type SourceIpAddressConditionOperatorEnum string - -// Set of constants representing the allowable values for SourceIpAddressConditionOperatorEnum -const ( - SourceIpAddressConditionOperatorInRange SourceIpAddressConditionOperatorEnum = "IN_RANGE" - SourceIpAddressConditionOperatorNotInRange SourceIpAddressConditionOperatorEnum = "NOT_IN_RANGE" -) - -var mappingSourceIpAddressConditionOperator = map[string]SourceIpAddressConditionOperatorEnum{ - "IN_RANGE": SourceIpAddressConditionOperatorInRange, - "NOT_IN_RANGE": SourceIpAddressConditionOperatorNotInRange, -} - -// GetSourceIpAddressConditionOperatorEnumValues Enumerates the set of values for SourceIpAddressConditionOperatorEnum -func GetSourceIpAddressConditionOperatorEnumValues() []SourceIpAddressConditionOperatorEnum { - values := make([]SourceIpAddressConditionOperatorEnum, 0) - for _, v := range mappingSourceIpAddressConditionOperator { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_details.go deleted file mode 100644 index 009aea3cfc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBackendDetails The configuration details for updating a backend server. -type UpdateBackendDetails struct { - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections - // as a server weighted '1'. - // For more information on load balancing policies, see - // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"true" json:"weight"` - - // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. - // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. - // Example: `false` - Backup *bool `mandatory:"true" json:"backup"` - - // Whether the load balancer should drain this server. Servers marked "drain" receive no new - // incoming traffic. - // Example: `false` - Drain *bool `mandatory:"true" json:"drain"` - - // Whether the load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - Offline *bool `mandatory:"true" json:"offline"` -} - -func (m UpdateBackendDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_request_response.go deleted file mode 100644 index a3709c0a66..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_request_response.go +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateBackendRequest wrapper for the UpdateBackend operation -type UpdateBackendRequest struct { - - // Details for updating a backend server. - UpdateBackendDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The IP address and port of the backend server to update. - // Example: `10.0.0.3:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateBackendResponse wrapper for the UpdateBackend operation -type UpdateBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_details.go deleted file mode 100644 index 93a2edfbfe..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_details.go +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBackendSetDetails The configuration details for updating a load balancer backend set. -// For more information on backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` -// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two -// attributes per backend set. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type UpdateBackendSetDetails struct { - - // The load balancer policy for the backend set. To get a list of available policies, use the - // ListPolicies operation. - // Example: `LEAST_CONNECTIONS` - Policy *string `mandatory:"true" json:"policy"` - - Backends []BackendDetails `mandatory:"true" json:"backends"` - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` - - SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` - - LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` -} - -func (m UpdateBackendSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_request_response.go deleted file mode 100644 index ba788347d4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_backend_set_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateBackendSetRequest wrapper for the UpdateBackendSet operation -type UpdateBackendSetRequest struct { - - // The details to update a backend set. - UpdateBackendSetDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set to update. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateBackendSetResponse wrapper for the UpdateBackendSet operation -type UpdateBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_details.go deleted file mode 100644 index 2971f58005..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_details.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateCidrBlocksDetails The configuration details for updating CidrBlocks. If an empty array is sent the request will be disallowed. -// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type UpdateCidrBlocksDetails struct { - - // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. - // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' - Items []string `mandatory:"true" json:"items"` -} - -func (m UpdateCidrBlocksDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_request_response.go deleted file mode 100644 index 75ec6bd00a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_cidr_blocks_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateCidrBlocksRequest wrapper for the UpdateCidrBlocks operation -type UpdateCidrBlocksRequest struct { - - // The configuration details to update the CidrBlocks. - UpdateCidrBlocksDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the CidrBlocks to update. - // example: `ClientRealIpCidrBlocks` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateCidrBlocksRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateCidrBlocksResponse wrapper for the UpdateCidrBlocks operation -type UpdateCidrBlocksResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateCidrBlocksResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateCidrBlocksResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_details.go deleted file mode 100644 index 65ca743b78..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_details.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateHealthCheckerDetails The health checker's configuration details. -type UpdateHealthCheckerDetails struct { - - // The protocol the health check must use; either HTTP or TCP. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // The backend server port against which to run the health check. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // The status code a healthy backend server should return. - // Example: `200` - ReturnCode *int `mandatory:"true" json:"returnCode"` - - // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies - // when recovering a server to the "healthy" state. - // Example: `3` - Retries *int `mandatory:"true" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. - // Example: `3000` - TimeoutInMillis *int `mandatory:"true" json:"timeoutInMillis"` - - // The interval between health checks, in milliseconds. - // Example: `10000` - IntervalInMillis *int `mandatory:"true" json:"intervalInMillis"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^((?!false).|\s)*$` - ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` -} - -func (m UpdateHealthCheckerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_request_response.go deleted file mode 100644 index 6b62d7d8a2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_health_checker_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateHealthCheckerRequest wrapper for the UpdateHealthChecker operation -type UpdateHealthCheckerRequest struct { - - // The health check policy configuration details. - UpdateHealthCheckerDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be updated. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the backend set associated with the health check policy to be retrieved. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateHealthCheckerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateHealthCheckerResponse wrapper for the UpdateHealthChecker operation -type UpdateHealthCheckerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateHealthCheckerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateHealthCheckerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_details.go deleted file mode 100644 index 2cacf63db7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_details.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateHostnameDetails The configuration details for updating a virtual hostname. -// For more information on virtual hostnames, see -// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). -type UpdateHostnameDetails struct { - - // The virtual hostname to update. For more information about virtual hostname string construction, see - // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). - // Example: `app.example.com` - Hostname *string `mandatory:"false" json:"hostname"` -} - -func (m UpdateHostnameDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_request_response.go deleted file mode 100644 index 6b036d714a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_hostname_request_response.go +++ /dev/null @@ -1,85 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateHostnameRequest wrapper for the UpdateHostname operation -type UpdateHostnameRequest struct { - - // The configuration details to update a virtual hostname. - UpdateHostnameDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the virtual hostname - // to update. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the hostname resource to update. - // Example: `example_hostname_001` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateHostnameRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateHostnameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateHostnameRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateHostnameResponse wrapper for the UpdateHostname operation -type UpdateHostnameResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateHostnameResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateHostnameResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_details.go deleted file mode 100644 index de577ac3d5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_details.go +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateListenerDetails The configuration details for updating a listener. -type UpdateListenerDetails struct { - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // To get a list of valid protocols, use the ListProtocols - // operation. - // Example: `HTTP` - Protocol *string `mandatory:"true" json:"protocol"` - - // An array of hostname resource names. - HostnameNames []string `mandatory:"false" json:"hostnameNames"` - - // Deprecated. Please use `routingPolicies` instead. - // The name of the set of path-based routing rules, PathRouteSet, - // applied to this listener's traffic. - // Example: `example_path_route_set` - PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` - - // The name of the routing policy applied to this listener's traffic. - // Example: `example_routing_policy` - RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` - - SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` - - ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` - - // The names of the RuleSet to apply to the listener. - // Example: ["example_rule_set"] - RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` -} - -func (m UpdateListenerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_request_response.go deleted file mode 100644 index 9504cd2832..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_listener_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateListenerRequest wrapper for the UpdateListener operation -type UpdateListenerRequest struct { - - // Details to update a listener. - UpdateListenerDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to update. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the listener to update. - // Example: `example_listener` - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateListenerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateListenerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateListenerResponse wrapper for the UpdateListener operation -type UpdateListenerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateListenerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateListenerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_details.go deleted file mode 100644 index f964362865..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_details.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateLoadBalancerShapeDetails The representation of UpdateLoadBalancerShapeDetails -type UpdateLoadBalancerShapeDetails struct { - - // The new shape name for the load balancer. - // Allowed values are : - // * 10Mbps - // * 100Mbps - // * 400Mbps - // * 8000Mbps - // * Flexible - // Example: `Flexible` - ShapeName *string `mandatory:"true" json:"shapeName"` - - // The configuration details to update load balancer to a different profile. - ShapeDetails *ShapeDetails `mandatory:"false" json:"shapeDetails"` -} - -func (m UpdateLoadBalancerShapeDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_request_response.go deleted file mode 100644 index 1248f869be..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_shape_request_response.go +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateLoadBalancerShapeRequest wrapper for the UpdateLoadBalancerShape operation -type UpdateLoadBalancerShapeRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer whose shape will be updated. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The details for updating a load balancer's shape. This contains the new, desired shape. - UpdateLoadBalancerShapeDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. Set the if-match parameter to the value of the ETag from a - // previous GET or POST response for that resource. The resource is moved only if the ETag you - // provide matches the resource's current ETag value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateLoadBalancerShapeRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateLoadBalancerShapeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateLoadBalancerShapeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateLoadBalancerShapeRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateLoadBalancerShapeResponse wrapper for the UpdateLoadBalancerShape operation -type UpdateLoadBalancerShapeResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateLoadBalancerShapeResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateLoadBalancerShapeResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_details.go deleted file mode 100644 index 3dfaa43f9a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_details.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNetworkSecurityGroupsDetails An object representing an updated list of network security groups (NSGs) that overwrites the existing list of NSGs. -// * If the load balancer has no NSGs configured, it uses the NSGs in this list. -// * If the load balancer has a list of NSGs configured, this list replaces the existing list. -// * If the load balancer has a list of NSGs configured and this list is empty, the operation removes all of the load balancer's NSG associations. -type UpdateNetworkSecurityGroupsDetails struct { - - // An array of NSG OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the load - // balancer. - // During the load balancer's creation, the service adds the new load balancer to the specified NSGs. - // The benefits of associating the load balancer with NSGs include: - // * NSGs define network security rules to govern ingress and egress traffic for the load balancer. - // * The network security rules of other resources can reference the NSGs associated with the load balancer - // to ensure access. - NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` -} - -func (m UpdateNetworkSecurityGroupsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_request_response.go deleted file mode 100644 index c7e23d0329..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_network_security_groups_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateNetworkSecurityGroupsRequest wrapper for the UpdateNetworkSecurityGroups operation -type UpdateNetworkSecurityGroupsRequest struct { - - // The details for updating the NSGs associated with the specified load balancer. - UpdateNetworkSecurityGroupsDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to update the NSGs for. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateNetworkSecurityGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateNetworkSecurityGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateNetworkSecurityGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateNetworkSecurityGroupsResponse wrapper for the UpdateNetworkSecurityGroups operation -type UpdateNetworkSecurityGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateNetworkSecurityGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateNetworkSecurityGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_details.go deleted file mode 100644 index 20e6c2c556..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_details.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdatePathRouteSetDetails An updated set of path route rules that overwrites the existing set of rules. -type UpdatePathRouteSetDetails struct { - - // The set of path route rules. - PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` -} - -func (m UpdatePathRouteSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_details.go deleted file mode 100644 index 211c694b57..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_details.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateRoutingPolicyDetails An updated list of routing rules that overwrites the existing list of routing rules. -type UpdateRoutingPolicyDetails struct { - - // The list of routing rules. - Rules []RoutingRule `mandatory:"true" json:"rules"` - - // The version of the language in which `condition` of `rules` are composed. - ConditionLanguageVersion UpdateRoutingPolicyDetailsConditionLanguageVersionEnum `mandatory:"false" json:"conditionLanguageVersion,omitempty"` -} - -func (m UpdateRoutingPolicyDetails) String() string { - return common.PointerString(m) -} - -// UpdateRoutingPolicyDetailsConditionLanguageVersionEnum Enum with underlying type: string -type UpdateRoutingPolicyDetailsConditionLanguageVersionEnum string - -// Set of constants representing the allowable values for UpdateRoutingPolicyDetailsConditionLanguageVersionEnum -const ( - UpdateRoutingPolicyDetailsConditionLanguageVersionV1 UpdateRoutingPolicyDetailsConditionLanguageVersionEnum = "V1" -) - -var mappingUpdateRoutingPolicyDetailsConditionLanguageVersion = map[string]UpdateRoutingPolicyDetailsConditionLanguageVersionEnum{ - "V1": UpdateRoutingPolicyDetailsConditionLanguageVersionV1, -} - -// GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumValues Enumerates the set of values for UpdateRoutingPolicyDetailsConditionLanguageVersionEnum -func GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumValues() []UpdateRoutingPolicyDetailsConditionLanguageVersionEnum { - values := make([]UpdateRoutingPolicyDetailsConditionLanguageVersionEnum, 0) - for _, v := range mappingUpdateRoutingPolicyDetailsConditionLanguageVersion { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_details.go deleted file mode 100644 index 4d8da5e734..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_details.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateRuleSetDetails An updated set of rules that overwrites the existing set of rules. -type UpdateRuleSetDetails struct { - - // An array of rules that compose the rule set. - Items []Rule `mandatory:"true" json:"items"` -} - -func (m UpdateRuleSetDetails) String() string { - return common.PointerString(m) -} - -// UnmarshalJSON unmarshals from json -func (m *UpdateRuleSetDetails) UnmarshalJSON(data []byte) (e error) { - model := struct { - Items []rule `json:"items"` - }{} - - e = json.Unmarshal(data, &model) - if e != nil { - return - } - var nn interface{} - m.Items = make([]Rule, len(model.Items)) - for i, n := range model.Items { - nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) - if e != nil { - return e - } - if nn != nil { - m.Items[i] = nn.(Rule) - } else { - m.Items[i] = nil - } - } - - return -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_request_response.go deleted file mode 100644 index 9e56e5226a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_rule_set_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateRuleSetRequest wrapper for the UpdateRuleSet operation -type UpdateRuleSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the rule set to update. - // Example: `example_rule_set` - RuleSetName *string `mandatory:"true" contributesTo:"path" name:"ruleSetName"` - - // The configuration details to update a set of rules. - UpdateRuleSetDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - // particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. - // Example: `example-etag` - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateRuleSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateRuleSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateRuleSetResponse wrapper for the UpdateRuleSet operation -type UpdateRuleSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateRuleSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateRuleSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_s_s_l_cipher_suite_request_response.go deleted file mode 100644 index a5e6254303..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_s_s_l_cipher_suite_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateSSLCipherSuiteRequest wrapper for the UpdateSSLCipherSuite operation -type UpdateSSLCipherSuiteRequest struct { - - // The configuration details to update an SSL cipher suite. - UpdateSslCipherSuiteDetails `contributesTo:"body"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. - LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` - - // The name of the SSL cipher suite to update. - // example: `example_cipher_suite` - Name *string `mandatory:"true" contributesTo:"path" name:"name"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so it can be retried in case of a timeout or - // server error without risk of executing that same action again. Retry tokens expire after 24 - // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // may be rejected). - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateSSLCipherSuiteRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateSSLCipherSuiteResponse wrapper for the UpdateSSLCipherSuite operation -type UpdateSSLCipherSuiteResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateSSLCipherSuiteResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateSSLCipherSuiteResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request.go deleted file mode 100644 index 885d11b8b7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request.go +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequest Many of the API requests you use to create and configure load balancing do not take effect immediately. -// In these cases, the request spawns an asynchronous work flow to fulfill the request. WorkRequest objects provide visibility -// for in-progress work flows. -// For more information about work requests, see Viewing the State of a Work Request (https://docs.cloud.oracle.com/Content/Balance/Tasks/viewingworkrequest.htm). -type WorkRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. - Id *string `mandatory:"true" json:"id"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request - // is associated. - LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` - - // The type of action the work request represents. - // Example: `CreateListener` - Type *string `mandatory:"true" json:"type"` - - // The current state of the work request. - LifecycleState WorkRequestLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure. - // Possible data elements include: - // - workflow name - // - event ID - // - work request ID - // - load balancer ID - // - workflow completion message - Message *string `mandatory:"true" json:"message"` - - // The date and time the work request was created, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` - - ErrorDetails []WorkRequestError `mandatory:"true" json:"errorDetails"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer. - CompartmentId *string `mandatory:"false" json:"compartmentId"` - - // The date and time the work request was completed, in the format defined by RFC3339. - // Example: `2016-08-25T21:10:29.600Z` - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m WorkRequest) String() string { - return common.PointerString(m) -} - -// WorkRequestLifecycleStateEnum Enum with underlying type: string -type WorkRequestLifecycleStateEnum string - -// Set of constants representing the allowable values for WorkRequestLifecycleStateEnum -const ( - WorkRequestLifecycleStateAccepted WorkRequestLifecycleStateEnum = "ACCEPTED" - WorkRequestLifecycleStateInProgress WorkRequestLifecycleStateEnum = "IN_PROGRESS" - WorkRequestLifecycleStateFailed WorkRequestLifecycleStateEnum = "FAILED" - WorkRequestLifecycleStateSucceeded WorkRequestLifecycleStateEnum = "SUCCEEDED" -) - -var mappingWorkRequestLifecycleState = map[string]WorkRequestLifecycleStateEnum{ - "ACCEPTED": WorkRequestLifecycleStateAccepted, - "IN_PROGRESS": WorkRequestLifecycleStateInProgress, - "FAILED": WorkRequestLifecycleStateFailed, - "SUCCEEDED": WorkRequestLifecycleStateSucceeded, -} - -// GetWorkRequestLifecycleStateEnumValues Enumerates the set of values for WorkRequestLifecycleStateEnum -func GetWorkRequestLifecycleStateEnumValues() []WorkRequestLifecycleStateEnum { - values := make([]WorkRequestLifecycleStateEnum, 0) - for _, v := range mappingWorkRequestLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request_error.go deleted file mode 100644 index 06a02ba628..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/work_request_error.go +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Load Balancing API -// -// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more -// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). -// - -package loadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestError An object returned in the event of a work request error. -type WorkRequestError struct { - ErrorCode WorkRequestErrorErrorCodeEnum `mandatory:"true" json:"errorCode"` - - // A human-readable error string. - Message *string `mandatory:"true" json:"message"` -} - -func (m WorkRequestError) String() string { - return common.PointerString(m) -} - -// WorkRequestErrorErrorCodeEnum Enum with underlying type: string -type WorkRequestErrorErrorCodeEnum string - -// Set of constants representing the allowable values for WorkRequestErrorErrorCodeEnum -const ( - WorkRequestErrorErrorCodeBadInput WorkRequestErrorErrorCodeEnum = "BAD_INPUT" - WorkRequestErrorErrorCodeInternalError WorkRequestErrorErrorCodeEnum = "INTERNAL_ERROR" -) - -var mappingWorkRequestErrorErrorCode = map[string]WorkRequestErrorErrorCodeEnum{ - "BAD_INPUT": WorkRequestErrorErrorCodeBadInput, - "INTERNAL_ERROR": WorkRequestErrorErrorCodeInternalError, -} - -// GetWorkRequestErrorErrorCodeEnumValues Enumerates the set of values for WorkRequestErrorErrorCodeEnum -func GetWorkRequestErrorErrorCodeEnumValues() []WorkRequestErrorErrorCodeEnum { - values := make([]WorkRequestErrorErrorCodeEnum, 0) - for _, v := range mappingWorkRequestErrorErrorCode { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/aggregated_datapoint.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/aggregated_datapoint.go deleted file mode 100644 index 55265929b7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/aggregated_datapoint.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AggregatedDatapoint A timestamp-value pair returned for the specified request. -type AggregatedDatapoint struct { - - // The date and time associated with the value of this data point. Format defined by RFC3339. - // Example: `2019-02-01T01:02:29.600Z` - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` - - // Numeric value of the metric. - // Example: `10.4` - Value *float64 `mandatory:"true" json:"value"` -} - -func (m AggregatedDatapoint) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm.go deleted file mode 100644 index 9cfec53ca4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm.go +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Alarm The properties that define an alarm. -// For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// For information about endpoints and signing API requests, see -// About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see -// SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm). -type Alarm struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. - Id *string `mandatory:"true" json:"id"` - - // A user-friendly name for the alarm. It does not have to be unique, and it's changeable. - // This name is sent as the title for notifications related to this alarm. - // Example: `High CPU Utilization` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric - // being evaluated by the alarm. - MetricCompartmentId *string `mandatory:"true" json:"metricCompartmentId"` - - // The source service or application emitting the metric that is evaluated by the alarm. - // Example: `oci_computeagent` - Namespace *string `mandatory:"true" json:"namespace"` - - // The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of - // the Monitoring service interprets results for each returned time series as Boolean values, - // where zero represents false and a non-zero value represents true. A true value means that the trigger - // rule condition has been met. The query must specify a metric, statistic, interval, and trigger - // rule (threshold or absence). Supported values for interval depend on the specified time range. More - // interval values are supported for smaller time ranges. You can optionally - // specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. - // For details about Monitoring Query Language (MQL), see Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). - // For available dimensions, review the metric definition for the supported service. - // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). - // Example of threshold alarm: - // ----- - // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 - // ----- - // Example of absence alarm: - // ----- - // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() - // ----- - Query *string `mandatory:"true" json:"query"` - - // The perceived type of response required when the alarm is in the "FIRING" state. - // Example: `CRITICAL` - Severity AlarmSeverityEnum `mandatory:"true" json:"severity"` - - // A list of destinations to which the notifications for this alarm will be delivered. - // Each destination is represented by an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) related to the supported destination service. - // For example, a destination using the Notifications service is represented by a topic OCID. - // Supported destination services: Notifications Service. Limit: One destination per supported destination service. - Destinations []string `mandatory:"true" json:"destinations"` - - // Whether the alarm is enabled. - // Example: `true` - IsEnabled *bool `mandatory:"true" json:"isEnabled"` - - // The current lifecycle state of the alarm. - // Example: `DELETED` - LifecycleState AlarmLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - - // The date and time the alarm was created. Format defined by RFC3339. - // Example: `2019-02-01T01:02:29.600Z` - TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` - - // The date and time the alarm was last updated. Format defined by RFC3339. - // Example: `2019-02-03T01:02:29.600Z` - TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` - - // When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can - // only be set to true when metricCompartmentId is the tenancy OCID (the tenancy is the root compartment). - // A true value requires the user to have tenancy-level permissions. If this requirement is not met, - // then the call is rejected. When false, the alarm evaluates metrics from only the compartment specified - // in metricCompartmentId. Default is false. - // Example: `true` - MetricCompartmentIdInSubtree *bool `mandatory:"false" json:"metricCompartmentIdInSubtree"` - - // Resource group to match for metric data retrieved by the alarm. A resource group is a custom string that you can match when retrieving custom metrics. Only one resource group can be applied per metric. - // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). - // Example: `frontend-fleet` - ResourceGroup *string `mandatory:"false" json:"resourceGroup"` - - // The time between calculated aggregation windows for the alarm. Supported value: `1m` - Resolution *string `mandatory:"false" json:"resolution"` - - // The period of time that the condition defined in the alarm must persist before the alarm state - // changes from "OK" to "FIRING". For example, a value of 5 minutes means that the - // alarm must persist in breaching the condition for five minutes before the alarm updates its - // state to "FIRING". - // The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` - // for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. - // Under the default value of PT1M, the first evaluation that breaches the alarm updates the - // state to "FIRING". - // The alarm updates its status to "OK" when the breaching condition has been clear for - // the most recent minute. - // Example: `PT5M` - PendingDuration *string `mandatory:"false" json:"pendingDuration"` - - // The human-readable content of the notification delivered. Oracle recommends providing guidance - // to operators for resolving the alarm condition. Consider adding links to standard runbook - // practices. - // Example: `High CPU usage alert. Follow runbook instructions for resolution.` - Body *string `mandatory:"false" json:"body"` - - // The format to use for notification messages sent from this alarm. The formats are: - // * `RAW` - Raw JSON blob. Default value. - // * `PRETTY_JSON`: JSON with new lines and indents. - // * `ONS_OPTIMIZED`: Simplified, user-friendly layout. Applies only to messages sent through the Notifications service to the following subscription types: Email. - MessageFormat AlarmMessageFormatEnum `mandatory:"false" json:"messageFormat,omitempty"` - - // The frequency at which notifications are re-submitted, if the alarm keeps firing without - // interruption. Format defined by ISO 8601. For example, `PT4H` indicates four hours. - // Minimum: PT1M. Maximum: P30D. - // Default value: null (notifications are not re-submitted). - // Example: `PT2H` - RepeatNotificationDuration *string `mandatory:"false" json:"repeatNotificationDuration"` - - // The configuration details for suppressing an alarm. - Suppression *Suppression `mandatory:"false" json:"suppression"` - - // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Usage of predefined tag keys. These predefined keys are scoped to namespaces. - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m Alarm) String() string { - return common.PointerString(m) -} - -// AlarmSeverityEnum Enum with underlying type: string -type AlarmSeverityEnum string - -// Set of constants representing the allowable values for AlarmSeverityEnum -const ( - AlarmSeverityCritical AlarmSeverityEnum = "CRITICAL" - AlarmSeverityError AlarmSeverityEnum = "ERROR" - AlarmSeverityWarning AlarmSeverityEnum = "WARNING" - AlarmSeverityInfo AlarmSeverityEnum = "INFO" -) - -var mappingAlarmSeverity = map[string]AlarmSeverityEnum{ - "CRITICAL": AlarmSeverityCritical, - "ERROR": AlarmSeverityError, - "WARNING": AlarmSeverityWarning, - "INFO": AlarmSeverityInfo, -} - -// GetAlarmSeverityEnumValues Enumerates the set of values for AlarmSeverityEnum -func GetAlarmSeverityEnumValues() []AlarmSeverityEnum { - values := make([]AlarmSeverityEnum, 0) - for _, v := range mappingAlarmSeverity { - values = append(values, v) - } - return values -} - -// AlarmMessageFormatEnum Enum with underlying type: string -type AlarmMessageFormatEnum string - -// Set of constants representing the allowable values for AlarmMessageFormatEnum -const ( - AlarmMessageFormatRaw AlarmMessageFormatEnum = "RAW" - AlarmMessageFormatPrettyJson AlarmMessageFormatEnum = "PRETTY_JSON" - AlarmMessageFormatOnsOptimized AlarmMessageFormatEnum = "ONS_OPTIMIZED" -) - -var mappingAlarmMessageFormat = map[string]AlarmMessageFormatEnum{ - "RAW": AlarmMessageFormatRaw, - "PRETTY_JSON": AlarmMessageFormatPrettyJson, - "ONS_OPTIMIZED": AlarmMessageFormatOnsOptimized, -} - -// GetAlarmMessageFormatEnumValues Enumerates the set of values for AlarmMessageFormatEnum -func GetAlarmMessageFormatEnumValues() []AlarmMessageFormatEnum { - values := make([]AlarmMessageFormatEnum, 0) - for _, v := range mappingAlarmMessageFormat { - values = append(values, v) - } - return values -} - -// AlarmLifecycleStateEnum Enum with underlying type: string -type AlarmLifecycleStateEnum string - -// Set of constants representing the allowable values for AlarmLifecycleStateEnum -const ( - AlarmLifecycleStateActive AlarmLifecycleStateEnum = "ACTIVE" - AlarmLifecycleStateDeleting AlarmLifecycleStateEnum = "DELETING" - AlarmLifecycleStateDeleted AlarmLifecycleStateEnum = "DELETED" -) - -var mappingAlarmLifecycleState = map[string]AlarmLifecycleStateEnum{ - "ACTIVE": AlarmLifecycleStateActive, - "DELETING": AlarmLifecycleStateDeleting, - "DELETED": AlarmLifecycleStateDeleted, -} - -// GetAlarmLifecycleStateEnumValues Enumerates the set of values for AlarmLifecycleStateEnum -func GetAlarmLifecycleStateEnumValues() []AlarmLifecycleStateEnum { - values := make([]AlarmLifecycleStateEnum, 0) - for _, v := range mappingAlarmLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_collection.go deleted file mode 100644 index faf105fcd6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_collection.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AlarmHistoryCollection The configuration details for retrieving alarm history. -type AlarmHistoryCollection struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm for which to retrieve history. - AlarmId *string `mandatory:"true" json:"alarmId"` - - // Whether the alarm is enabled. - // Example: `true` - IsEnabled *bool `mandatory:"true" json:"isEnabled"` - - // The set of history entries retrieved for the alarm. - Entries []AlarmHistoryEntry `mandatory:"true" json:"entries"` -} - -func (m AlarmHistoryCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_status_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_status_summary.go deleted file mode 100644 index 04cf232bd5..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_status_summary.go +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// AlarmStatusSummary A summary of properties for the specified alarm and its current evaluation status. -// For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). -// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, -// talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). -// For information about endpoints and signing API requests, see -// About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see -// SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm). -type AlarmStatusSummary struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. - Id *string `mandatory:"true" json:"id"` - - // The configured name of the alarm. - // Example: `High CPU Utilization` - DisplayName *string `mandatory:"true" json:"displayName"` - - // The configured severity of the alarm. - // Example: `CRITICAL` - Severity AlarmStatusSummarySeverityEnum `mandatory:"true" json:"severity"` - - // Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. - // Note: A three-minute lag for this value accounts for any late-arriving metrics. - // Example: `2019-02-01T01:02:29.600Z` - TimestampTriggered *common.SDKTime `mandatory:"true" json:"timestampTriggered"` - - // The status of this alarm. - // Example: `FIRING` - Status AlarmStatusSummaryStatusEnum `mandatory:"true" json:"status"` - - // The configuration details for suppressing an alarm. - Suppression *Suppression `mandatory:"false" json:"suppression"` -} - -func (m AlarmStatusSummary) String() string { - return common.PointerString(m) -} - -// AlarmStatusSummarySeverityEnum Enum with underlying type: string -type AlarmStatusSummarySeverityEnum string - -// Set of constants representing the allowable values for AlarmStatusSummarySeverityEnum -const ( - AlarmStatusSummarySeverityCritical AlarmStatusSummarySeverityEnum = "CRITICAL" - AlarmStatusSummarySeverityError AlarmStatusSummarySeverityEnum = "ERROR" - AlarmStatusSummarySeverityWarning AlarmStatusSummarySeverityEnum = "WARNING" - AlarmStatusSummarySeverityInfo AlarmStatusSummarySeverityEnum = "INFO" -) - -var mappingAlarmStatusSummarySeverity = map[string]AlarmStatusSummarySeverityEnum{ - "CRITICAL": AlarmStatusSummarySeverityCritical, - "ERROR": AlarmStatusSummarySeverityError, - "WARNING": AlarmStatusSummarySeverityWarning, - "INFO": AlarmStatusSummarySeverityInfo, -} - -// GetAlarmStatusSummarySeverityEnumValues Enumerates the set of values for AlarmStatusSummarySeverityEnum -func GetAlarmStatusSummarySeverityEnumValues() []AlarmStatusSummarySeverityEnum { - values := make([]AlarmStatusSummarySeverityEnum, 0) - for _, v := range mappingAlarmStatusSummarySeverity { - values = append(values, v) - } - return values -} - -// AlarmStatusSummaryStatusEnum Enum with underlying type: string -type AlarmStatusSummaryStatusEnum string - -// Set of constants representing the allowable values for AlarmStatusSummaryStatusEnum -const ( - AlarmStatusSummaryStatusFiring AlarmStatusSummaryStatusEnum = "FIRING" - AlarmStatusSummaryStatusOk AlarmStatusSummaryStatusEnum = "OK" - AlarmStatusSummaryStatusSuspended AlarmStatusSummaryStatusEnum = "SUSPENDED" -) - -var mappingAlarmStatusSummaryStatus = map[string]AlarmStatusSummaryStatusEnum{ - "FIRING": AlarmStatusSummaryStatusFiring, - "OK": AlarmStatusSummaryStatusOk, - "SUSPENDED": AlarmStatusSummaryStatusSuspended, -} - -// GetAlarmStatusSummaryStatusEnumValues Enumerates the set of values for AlarmStatusSummaryStatusEnum -func GetAlarmStatusSummaryStatusEnumValues() []AlarmStatusSummaryStatusEnum { - values := make([]AlarmStatusSummaryStatusEnum, 0) - for _, v := range mappingAlarmStatusSummaryStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_details.go deleted file mode 100644 index 6b97d9a2d6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_details.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeAlarmCompartmentDetails The configuration details for moving an alarm. -type ChangeAlarmCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the alarm to. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeAlarmCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/datapoint.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/datapoint.go deleted file mode 100644 index 2685d6d928..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/datapoint.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Datapoint Metric value for a specific timestamp. -type Datapoint struct { - - // Timestamp for this metric value. Format defined by RFC3339. - // Example: `2019-02-01T01:02:29.600Z` - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` - - // Numeric value of the metric. - // Example: `10.23` - Value *float64 `mandatory:"true" json:"value"` - - // The number of occurrences of the associated value in the set of data. - // Default is 1. Value must be greater than zero. - Count *int `mandatory:"false" json:"count"` -} - -func (m Datapoint) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/failed_metric_record.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/failed_metric_record.go deleted file mode 100644 index c98d979a80..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/failed_metric_record.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// FailedMetricRecord The record of a single metric object that failed input validation and the reason for the failure. -type FailedMetricRecord struct { - - // An error message indicating the reason that the indicated metric object failed input validation. - Message *string `mandatory:"true" json:"message"` - - // Identifier of a metric object that failed input validation. - MetricData *MetricDataDetails `mandatory:"true" json:"metricData"` -} - -func (m FailedMetricRecord) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_history_request_response.go deleted file mode 100644 index da73782e2f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_history_request_response.go +++ /dev/null @@ -1,120 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetAlarmHistoryRequest wrapper for the GetAlarmHistory operation -type GetAlarmHistoryRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. - AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` - - // Customer part of the request identifier token. If you need to contact Oracle about a particular - // request, please provide the complete request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The type of history entries to retrieve. State history (STATE_HISTORY) or state transition history (STATE_TRANSITION_HISTORY). - // If not specified, entries of both types are retrieved. - // Example: `STATE_HISTORY` - AlarmHistorytype GetAlarmHistoryAlarmHistorytypeEnum `mandatory:"false" contributesTo:"query" name:"alarmHistorytype" omitEmpty:"true"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Default: 1000 - // Example: 500 - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. - // Example: `2019-01-01T01:00:00.789Z` - TimestampGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timestampGreaterThanOrEqualTo"` - - // A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. - // Example: `2019-01-02T01:00:00.789Z` - TimestampLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timestampLessThan"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetAlarmHistoryRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetAlarmHistoryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetAlarmHistoryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetAlarmHistoryRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetAlarmHistoryResponse wrapper for the GetAlarmHistory operation -type GetAlarmHistoryResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of AlarmHistoryCollection instances - AlarmHistoryCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response GetAlarmHistoryResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetAlarmHistoryResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// GetAlarmHistoryAlarmHistorytypeEnum Enum with underlying type: string -type GetAlarmHistoryAlarmHistorytypeEnum string - -// Set of constants representing the allowable values for GetAlarmHistoryAlarmHistorytypeEnum -const ( - GetAlarmHistoryAlarmHistorytypeHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_HISTORY" - GetAlarmHistoryAlarmHistorytypeTransitionHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_TRANSITION_HISTORY" -) - -var mappingGetAlarmHistoryAlarmHistorytype = map[string]GetAlarmHistoryAlarmHistorytypeEnum{ - "STATE_HISTORY": GetAlarmHistoryAlarmHistorytypeHistory, - "STATE_TRANSITION_HISTORY": GetAlarmHistoryAlarmHistorytypeTransitionHistory, -} - -// GetGetAlarmHistoryAlarmHistorytypeEnumValues Enumerates the set of values for GetAlarmHistoryAlarmHistorytypeEnum -func GetGetAlarmHistoryAlarmHistorytypeEnumValues() []GetAlarmHistoryAlarmHistorytypeEnum { - values := make([]GetAlarmHistoryAlarmHistorytypeEnum, 0) - for _, v := range mappingGetAlarmHistoryAlarmHistorytype { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_request_response.go deleted file mode 100644 index 476b980a69..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_request_response.go +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListAlarmsRequest wrapper for the ListAlarms operation -type ListAlarmsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the - // resources monitored by the metric that you are searching for. Use tenancyId to search in - // the root compartment. - // Example: `ocid1.compartment.oc1..exampleuniqueID` - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Customer part of the request identifier token. If you need to contact Oracle about a particular - // request, please provide the complete request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Default: 1000 - // Example: 500 - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to return only resources that match the given display name exactly. - // Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // A filter to return only alarms that match the given lifecycle state exactly. When not specified, only alarms in the ACTIVE lifecycle state are listed. - LifecycleState AlarmLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // The field to use when sorting returned alarm definitions. Only one sorting level is provided. - // Example: `severity` - SortBy ListAlarmsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use when sorting returned alarm definitions. Ascending (ASC) or descending (DESC). - // Example: `ASC` - SortOrder ListAlarmsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // When true, returns resources from all compartments and subcompartments. The parameter can - // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). - // A true value requires the user to have tenancy-level permissions. If this requirement is not met, - // then the call is rejected. When false, returns resources from only the compartment specified in - // compartmentId. Default is false. - CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListAlarmsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListAlarmsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListAlarmsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListAlarmsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListAlarmsResponse wrapper for the ListAlarms operation -type ListAlarmsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []AlarmSummary instances - Items []AlarmSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListAlarmsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListAlarmsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListAlarmsSortByEnum Enum with underlying type: string -type ListAlarmsSortByEnum string - -// Set of constants representing the allowable values for ListAlarmsSortByEnum -const ( - ListAlarmsSortByDisplayname ListAlarmsSortByEnum = "displayName" - ListAlarmsSortBySeverity ListAlarmsSortByEnum = "severity" -) - -var mappingListAlarmsSortBy = map[string]ListAlarmsSortByEnum{ - "displayName": ListAlarmsSortByDisplayname, - "severity": ListAlarmsSortBySeverity, -} - -// GetListAlarmsSortByEnumValues Enumerates the set of values for ListAlarmsSortByEnum -func GetListAlarmsSortByEnumValues() []ListAlarmsSortByEnum { - values := make([]ListAlarmsSortByEnum, 0) - for _, v := range mappingListAlarmsSortBy { - values = append(values, v) - } - return values -} - -// ListAlarmsSortOrderEnum Enum with underlying type: string -type ListAlarmsSortOrderEnum string - -// Set of constants representing the allowable values for ListAlarmsSortOrderEnum -const ( - ListAlarmsSortOrderAsc ListAlarmsSortOrderEnum = "ASC" - ListAlarmsSortOrderDesc ListAlarmsSortOrderEnum = "DESC" -) - -var mappingListAlarmsSortOrder = map[string]ListAlarmsSortOrderEnum{ - "ASC": ListAlarmsSortOrderAsc, - "DESC": ListAlarmsSortOrderDesc, -} - -// GetListAlarmsSortOrderEnumValues Enumerates the set of values for ListAlarmsSortOrderEnum -func GetListAlarmsSortOrderEnumValues() []ListAlarmsSortOrderEnum { - values := make([]ListAlarmsSortOrderEnum, 0) - for _, v := range mappingListAlarmsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_status_request_response.go deleted file mode 100644 index baa1d1aad8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_alarms_status_request_response.go +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListAlarmsStatusRequest wrapper for the ListAlarmsStatus operation -type ListAlarmsStatusRequest struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the - // resources monitored by the metric that you are searching for. Use tenancyId to search in - // the root compartment. - // Example: `ocid1.compartment.oc1..exampleuniqueID` - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // Customer part of the request identifier token. If you need to contact Oracle about a particular - // request, please provide the complete request ID. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // When true, returns resources from all compartments and subcompartments. The parameter can - // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). - // A true value requires the user to have tenancy-level permissions. If this requirement is not met, - // then the call is rejected. When false, returns resources from only the compartment specified in - // compartmentId. Default is false. - CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` - - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - // Default: 1000 - // Example: 500 - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // A filter to return only resources that match the given display name exactly. - // Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // The field to use when sorting returned alarm definitions. Only one sorting level is provided. - // Example: `severity` - SortBy ListAlarmsStatusSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The sort order to use when sorting returned alarm definitions. Ascending (ASC) or descending (DESC). - // Example: `ASC` - SortOrder ListAlarmsStatusSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListAlarmsStatusRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListAlarmsStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListAlarmsStatusRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListAlarmsStatusRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListAlarmsStatusResponse wrapper for the ListAlarmsStatus operation -type ListAlarmsStatusResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of []AlarmStatusSummary instances - Items []AlarmStatusSummary `presentIn:"body"` - - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListAlarmsStatusResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListAlarmsStatusResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListAlarmsStatusSortByEnum Enum with underlying type: string -type ListAlarmsStatusSortByEnum string - -// Set of constants representing the allowable values for ListAlarmsStatusSortByEnum -const ( - ListAlarmsStatusSortByDisplayname ListAlarmsStatusSortByEnum = "displayName" - ListAlarmsStatusSortBySeverity ListAlarmsStatusSortByEnum = "severity" -) - -var mappingListAlarmsStatusSortBy = map[string]ListAlarmsStatusSortByEnum{ - "displayName": ListAlarmsStatusSortByDisplayname, - "severity": ListAlarmsStatusSortBySeverity, -} - -// GetListAlarmsStatusSortByEnumValues Enumerates the set of values for ListAlarmsStatusSortByEnum -func GetListAlarmsStatusSortByEnumValues() []ListAlarmsStatusSortByEnum { - values := make([]ListAlarmsStatusSortByEnum, 0) - for _, v := range mappingListAlarmsStatusSortBy { - values = append(values, v) - } - return values -} - -// ListAlarmsStatusSortOrderEnum Enum with underlying type: string -type ListAlarmsStatusSortOrderEnum string - -// Set of constants representing the allowable values for ListAlarmsStatusSortOrderEnum -const ( - ListAlarmsStatusSortOrderAsc ListAlarmsStatusSortOrderEnum = "ASC" - ListAlarmsStatusSortOrderDesc ListAlarmsStatusSortOrderEnum = "DESC" -) - -var mappingListAlarmsStatusSortOrder = map[string]ListAlarmsStatusSortOrderEnum{ - "ASC": ListAlarmsStatusSortOrderAsc, - "DESC": ListAlarmsStatusSortOrderDesc, -} - -// GetListAlarmsStatusSortOrderEnumValues Enumerates the set of values for ListAlarmsStatusSortOrderEnum -func GetListAlarmsStatusSortOrderEnumValues() []ListAlarmsStatusSortOrderEnum { - values := make([]ListAlarmsStatusSortOrderEnum, 0) - for _, v := range mappingListAlarmsStatusSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_details.go deleted file mode 100644 index 411be4db6c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_details.go +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ListMetricsDetails The request details for retrieving metric definitions. Specify optional properties to filter the returned results. -// Use an asterisk (*) as a wildcard character, placed anywhere in the string. -// For example, to search for all metrics with names that begin with "disk", specify "name" as "disk*". -// If no properties are specified, then all metric definitions within the request scope are returned. -type ListMetricsDetails struct { - - // The metric name to use when searching for metric definitions. - // Example: `CpuUtilization` - Name *string `mandatory:"false" json:"name"` - - // The source service or application to use when searching for metric definitions. - // Example: `oci_computeagent` - Namespace *string `mandatory:"false" json:"namespace"` - - // Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. - // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). - // Example: `frontend-fleet` - ResourceGroup *string `mandatory:"false" json:"resourceGroup"` - - // Qualifiers that you want to use when searching for metric definitions. - // Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. - // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` - DimensionFilters map[string]string `mandatory:"false" json:"dimensionFilters"` - - // Group metrics by these fields in the response. For example, to list all metric namespaces available - // in a compartment, groupBy the "namespace" field. Supported fields: namespace, name, resourceGroup. - // Example - group by namespace: - // `[ "namespace" ]` - GroupBy []string `mandatory:"false" json:"groupBy"` - - // The field to use when sorting returned metric definitions. Only one sorting level is provided. - // Example: `NAMESPACE` - SortBy ListMetricsDetailsSortByEnum `mandatory:"false" json:"sortBy,omitempty"` - - // The sort order to use when sorting returned metric definitions. Ascending (ASC) or - // descending (DESC). - // Example: `ASC` - SortOrder ListMetricsDetailsSortOrderEnum `mandatory:"false" json:"sortOrder,omitempty"` -} - -func (m ListMetricsDetails) String() string { - return common.PointerString(m) -} - -// ListMetricsDetailsSortByEnum Enum with underlying type: string -type ListMetricsDetailsSortByEnum string - -// Set of constants representing the allowable values for ListMetricsDetailsSortByEnum -const ( - ListMetricsDetailsSortByNamespace ListMetricsDetailsSortByEnum = "NAMESPACE" - ListMetricsDetailsSortByName ListMetricsDetailsSortByEnum = "NAME" - ListMetricsDetailsSortByResourcegroup ListMetricsDetailsSortByEnum = "RESOURCEGROUP" -) - -var mappingListMetricsDetailsSortBy = map[string]ListMetricsDetailsSortByEnum{ - "NAMESPACE": ListMetricsDetailsSortByNamespace, - "NAME": ListMetricsDetailsSortByName, - "RESOURCEGROUP": ListMetricsDetailsSortByResourcegroup, -} - -// GetListMetricsDetailsSortByEnumValues Enumerates the set of values for ListMetricsDetailsSortByEnum -func GetListMetricsDetailsSortByEnumValues() []ListMetricsDetailsSortByEnum { - values := make([]ListMetricsDetailsSortByEnum, 0) - for _, v := range mappingListMetricsDetailsSortBy { - values = append(values, v) - } - return values -} - -// ListMetricsDetailsSortOrderEnum Enum with underlying type: string -type ListMetricsDetailsSortOrderEnum string - -// Set of constants representing the allowable values for ListMetricsDetailsSortOrderEnum -const ( - ListMetricsDetailsSortOrderAsc ListMetricsDetailsSortOrderEnum = "ASC" - ListMetricsDetailsSortOrderDesc ListMetricsDetailsSortOrderEnum = "DESC" -) - -var mappingListMetricsDetailsSortOrder = map[string]ListMetricsDetailsSortOrderEnum{ - "ASC": ListMetricsDetailsSortOrderAsc, - "DESC": ListMetricsDetailsSortOrderDesc, -} - -// GetListMetricsDetailsSortOrderEnumValues Enumerates the set of values for ListMetricsDetailsSortOrderEnum -func GetListMetricsDetailsSortOrderEnumValues() []ListMetricsDetailsSortOrderEnum { - values := make([]ListMetricsDetailsSortOrderEnum, 0) - for _, v := range mappingListMetricsDetailsSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_details.go deleted file mode 100644 index 49831c03c0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_details.go +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PostMetricDataDetails An array of metric objects containing raw metric data points to be posted to the Monitoring service. -type PostMetricDataDetails struct { - - // A metric object containing raw metric data points to be posted to the Monitoring service. - MetricData []MetricDataDetails `mandatory:"true" json:"metricData"` - - // Batch atomicity behavior. Requires either partial or full pass of input validation for - // metric objects in PostMetricData requests. The default value of NON_ATOMIC requires a - // partial pass: at least one metric object in the request must pass input validation, and - // any objects that failed validation are identified in the returned summary, along with - // their error messages. A value of ATOMIC requires a full pass: all metric objects in - // the request must pass input validation. - // Example: `NON_ATOMIC` - BatchAtomicity PostMetricDataDetailsBatchAtomicityEnum `mandatory:"false" json:"batchAtomicity,omitempty"` -} - -func (m PostMetricDataDetails) String() string { - return common.PointerString(m) -} - -// PostMetricDataDetailsBatchAtomicityEnum Enum with underlying type: string -type PostMetricDataDetailsBatchAtomicityEnum string - -// Set of constants representing the allowable values for PostMetricDataDetailsBatchAtomicityEnum -const ( - PostMetricDataDetailsBatchAtomicityAtomic PostMetricDataDetailsBatchAtomicityEnum = "ATOMIC" - PostMetricDataDetailsBatchAtomicityNonAtomic PostMetricDataDetailsBatchAtomicityEnum = "NON_ATOMIC" -) - -var mappingPostMetricDataDetailsBatchAtomicity = map[string]PostMetricDataDetailsBatchAtomicityEnum{ - "ATOMIC": PostMetricDataDetailsBatchAtomicityAtomic, - "NON_ATOMIC": PostMetricDataDetailsBatchAtomicityNonAtomic, -} - -// GetPostMetricDataDetailsBatchAtomicityEnumValues Enumerates the set of values for PostMetricDataDetailsBatchAtomicityEnum -func GetPostMetricDataDetailsBatchAtomicityEnumValues() []PostMetricDataDetailsBatchAtomicityEnum { - values := make([]PostMetricDataDetailsBatchAtomicityEnum, 0) - for _, v := range mappingPostMetricDataDetailsBatchAtomicity { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_response_details.go deleted file mode 100644 index b4f408e346..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_response_details.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// Monitoring API -// -// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. -// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. -// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). -// - -package monitoring - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// PostMetricDataResponseDetails The response object returned from a PostMetricData operation. -type PostMetricDataResponseDetails struct { - - // The number of metric objects that failed input validation. - FailedMetricsCount *int `mandatory:"true" json:"failedMetricsCount"` - - // A list of records identifying metric objects that failed input validation - // and the reasons for the failures. - FailedMetrics []FailedMetricRecord `mandatory:"false" json:"failedMetrics"` -} - -func (m PostMetricDataResponseDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/action_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/action_type.go deleted file mode 100644 index d6a4a20cb9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/action_type.go +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// ActionTypeEnum Enum with underlying type: string -type ActionTypeEnum string - -// Set of constants representing the allowable values for ActionTypeEnum -const ( - ActionTypeCreated ActionTypeEnum = "CREATED" - ActionTypeUpdated ActionTypeEnum = "UPDATED" - ActionTypeDeleted ActionTypeEnum = "DELETED" - ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS" - ActionTypeRelated ActionTypeEnum = "RELATED" -) - -var mappingActionType = map[string]ActionTypeEnum{ - "CREATED": ActionTypeCreated, - "UPDATED": ActionTypeUpdated, - "DELETED": ActionTypeDeleted, - "IN_PROGRESS": ActionTypeInProgress, - "RELATED": ActionTypeRelated, -} - -// GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum -func GetActionTypeEnumValues() []ActionTypeEnum { - values := make([]ActionTypeEnum, 0) - for _, v := range mappingActionType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend.go deleted file mode 100644 index 1c24998155..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Backend The configuration of a backend server that is a member of a network load balancer backend set. -// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). -type Backend struct { - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // A read-only field showing the IP address/IP OCID and port that uniquely identify this backend server in the backend set. - // Example: `10.0.0.3:8080`, or `ocid1.privateip..oc1.<unique_ID>:443` or `10.0.0.3:0` - Name *string `mandatory:"false" json:"name"` - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The IP OCID/Instance OCID associated with the backend server. - // Example: `ocid1.privateip..oc1.<unique_ID>` - TargetId *string `mandatory:"false" json:"targetId"` - - // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections - // as a server weighted '1'. - // For more information about load balancing policies, see - // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no - // incoming traffic. - // Example: `false` - IsDrain *bool `mandatory:"false" json:"isDrain"` - - // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. - // Example: `false` - IsBackup *bool `mandatory:"false" json:"isBackup"` - - // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - IsOffline *bool `mandatory:"false" json:"isOffline"` -} - -func (m Backend) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_collection.go deleted file mode 100644 index 02bedb613e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendCollection Wrapper object for an array of BackendSummary objects. -type BackendCollection struct { - - // An array of BackendSummary objects. - Items []BackendSummary `mandatory:"false" json:"items"` -} - -func (m BackendCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_details.go deleted file mode 100644 index 4a695ea3e8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_details.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendDetails The network network load balancing configuration details of a backend server. -type BackendDetails struct { - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // A read-only field showing the IP address/OCID and port that uniquely identify this backend server in the backend set. - // Example: `10.0.0.3:8080`, or `ocid1.privateip..oc1.<unique_ID>:443` or `10.0.0.3:0` - Name *string `mandatory:"false" json:"name"` - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The IP OCID/Instance OCID associated with the backend server. - // Example: `ocid1.privateip..oc1.<unique_ID>` - TargetId *string `mandatory:"false" json:"targetId"` - - // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections - // as a server weighted '1'. - // For more information about load balancing policies, see - // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. - // Example: `false` - IsBackup *bool `mandatory:"false" json:"isBackup"` - - // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no - // incoming traffic. - // Example: `false` - IsDrain *bool `mandatory:"false" json:"isDrain"` - - // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - IsOffline *bool `mandatory:"false" json:"isOffline"` -} - -func (m BackendDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_health.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_health.go deleted file mode 100644 index 7d98efd021..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_health.go +++ /dev/null @@ -1,61 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendHealth The health status of the specified backend server. -type BackendHealth struct { - - // The general health status of the specified backend server. - // * **OK:** All health check probes return `OK` - // * **WARNING:** At least one of the health check probes does not return `OK` - // * **CRITICAL:** None of the health check probes return `OK`. - // * - // * **UNKNOWN:** One of the health checks probes return `UNKNOWN`, - // * or the system is unable to retrieve metrics at this time. - Status BackendHealthStatusEnum `mandatory:"true" json:"status"` - - // A list of the most recent health check results returned for the specified backend server. - HealthCheckResults []HealthCheckResult `mandatory:"true" json:"healthCheckResults"` -} - -func (m BackendHealth) String() string { - return common.PointerString(m) -} - -// BackendHealthStatusEnum Enum with underlying type: string -type BackendHealthStatusEnum string - -// Set of constants representing the allowable values for BackendHealthStatusEnum -const ( - BackendHealthStatusOk BackendHealthStatusEnum = "OK" - BackendHealthStatusWarning BackendHealthStatusEnum = "WARNING" - BackendHealthStatusCritical BackendHealthStatusEnum = "CRITICAL" - BackendHealthStatusUnknown BackendHealthStatusEnum = "UNKNOWN" -) - -var mappingBackendHealthStatus = map[string]BackendHealthStatusEnum{ - "OK": BackendHealthStatusOk, - "WARNING": BackendHealthStatusWarning, - "CRITICAL": BackendHealthStatusCritical, - "UNKNOWN": BackendHealthStatusUnknown, -} - -// GetBackendHealthStatusEnumValues Enumerates the set of values for BackendHealthStatusEnum -func GetBackendHealthStatusEnumValues() []BackendHealthStatusEnum { - values := make([]BackendHealthStatusEnum, 0) - for _, v := range mappingBackendHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set.go deleted file mode 100644 index bf0995831b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSet The configuration of a network load balancer backend set. -// For more information about backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type BackendSet struct { - - // A user-friendly name for the backend set that must be unique and cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `example_backend_set` - Name *string `mandatory:"true" json:"name"` - - HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` - - // The network load balancer policy for the backend set. - // Example: `FIVE_TUPLE` - Policy NetworkLoadBalancingPolicyEnum `mandatory:"false" json:"policy,omitempty"` - - // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. - // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. - // The value is true by default. - IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` - - // IP version associated with the backend set. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` - - // Array of backends. - Backends []Backend `mandatory:"false" json:"backends"` -} - -func (m BackendSet) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_collection.go deleted file mode 100644 index af96ba4c8c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSetCollection Wrapper object for an array of `BackendSetSummary` objects. -type BackendSetCollection struct { - - // An array of `BackendSetSummary` objects. - Items []BackendSetSummary `mandatory:"false" json:"items"` -} - -func (m BackendSetCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_details.go deleted file mode 100644 index cac56f67e0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_details.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSetDetails The configuration of a network load balancer backend set. -// For more information about backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type BackendSetDetails struct { - HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` - - // The network load balancer policy for the backend set. - // Example: `FIVE_TUPLE` - Policy NetworkLoadBalancingPolicyEnum `mandatory:"false" json:"policy,omitempty"` - - // IP version associated with the backend set. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` - - // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. - // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. - // The value is true by default. - IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` - - // An array of backends. - Backends []Backend `mandatory:"false" json:"backends"` -} - -func (m BackendSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_health.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_health.go deleted file mode 100644 index 3c4a3c4737..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_health.go +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSetHealth The health status details for a backend set. -// This object does not explicitly enumerate backend servers with a status of `OK`. However, the backend sets are included in the -// `totalBackendCount` sum. -type BackendSetHealth struct { - - // Overall health status of the backend set. - // * **OK:** All backend servers in the backend set return a status of `OK`. - // * **WARNING:** Half or more of the backend servers in a backend set return a status of `OK` and at least one backend - // server returns a status of `WARNING`, `CRITICAL`, or `UNKNOWN`. - // * **CRITICAL:** Fewer than half of the backend servers in a backend set return a status of `OK`. - // * **UNKNOWN:** If no probes have yet been sent to the backends, or the system is - // unable to retrieve metrics from the backends. - Status BackendSetHealthStatusEnum `mandatory:"true" json:"status"` - - // A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by - // IP address or OCID and port. - // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` - WarningStateBackendNames []string `mandatory:"true" json:"warningStateBackendNames"` - - // A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by - // IP address and port. - // Example: `10.0.0.4:8080` - CriticalStateBackendNames []string `mandatory:"true" json:"criticalStateBackendNames"` - - // A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by - // IP address and port. - // Example: `10.0.0.5:8080` - UnknownStateBackendNames []string `mandatory:"true" json:"unknownStateBackendNames"` - - // The total number of backend servers in this backend set. - // Example: `7` - TotalBackendCount *int `mandatory:"true" json:"totalBackendCount"` -} - -func (m BackendSetHealth) String() string { - return common.PointerString(m) -} - -// BackendSetHealthStatusEnum Enum with underlying type: string -type BackendSetHealthStatusEnum string - -// Set of constants representing the allowable values for BackendSetHealthStatusEnum -const ( - BackendSetHealthStatusOk BackendSetHealthStatusEnum = "OK" - BackendSetHealthStatusWarning BackendSetHealthStatusEnum = "WARNING" - BackendSetHealthStatusCritical BackendSetHealthStatusEnum = "CRITICAL" - BackendSetHealthStatusUnknown BackendSetHealthStatusEnum = "UNKNOWN" -) - -var mappingBackendSetHealthStatus = map[string]BackendSetHealthStatusEnum{ - "OK": BackendSetHealthStatusOk, - "WARNING": BackendSetHealthStatusWarning, - "CRITICAL": BackendSetHealthStatusCritical, - "UNKNOWN": BackendSetHealthStatusUnknown, -} - -// GetBackendSetHealthStatusEnumValues Enumerates the set of values for BackendSetHealthStatusEnum -func GetBackendSetHealthStatusEnumValues() []BackendSetHealthStatusEnum { - values := make([]BackendSetHealthStatusEnum, 0) - for _, v := range mappingBackendSetHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_summary.go deleted file mode 100644 index 63198ccac8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_set_summary.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSetSummary The configuration of a network load balancer backend set. -// For more information about backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type BackendSetSummary struct { - - // A user-friendly name for the backend set that must be unique and cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `example_backend_set` - Name *string `mandatory:"true" json:"name"` - - // The network load balancer policy for the backend set. - // Example: `FIVE_TUPLE` - Policy NetworkLoadBalancingPolicyEnum `mandatory:"true" json:"policy"` - - // An array of backends. - Backends []Backend `mandatory:"true" json:"backends"` - - HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` - - // If this parameter is enabled, the network load balancer preserves the source IP of the packet forwarded to the backend servers. - // Backend servers see the original source IP. If the `isPreserveSourceDestination` parameter is enabled for the network load balancer resource, this parameter cannot be disabled. - // The value is true by default. - IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` - - // IP version associated with the backend set. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` -} - -func (m BackendSetSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_summary.go deleted file mode 100644 index b87bbff871..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/backend_summary.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// BackendSummary The configuration of a backend server that is a member of a network load balancer backend set. -// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). -type BackendSummary struct { - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // A read-only field showing the IP address/IP OCID and port that uniquely identify this backend server in the backend set. - // Example: `10.0.0.3:8080`, or `ocid1.privateip..oc1.<unique_ID>:443` or `10.0.0.3:0` - Name *string `mandatory:"false" json:"name"` - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The IP OCID/Instance OCID associated with the backend server. - // Example: `ocid1.privateip..oc1.<unique_ID>` - TargetId *string `mandatory:"false" json:"targetId"` - - // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections - // as a server weighted '1'. - // For more information about load balancing policies, see - // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no - // incoming traffic. - // Example: `false` - IsDrain *bool `mandatory:"false" json:"isDrain"` - - // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. - // Example: `false` - IsBackup *bool `mandatory:"false" json:"isBackup"` - - // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - IsOffline *bool `mandatory:"false" json:"isOffline"` -} - -func (m BackendSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_details.go deleted file mode 100644 index 85d4f27ac7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_details.go +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ChangeNetworkLoadBalancerCompartmentDetails The configuration details for moving a network load balancer to a different compartment. -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type ChangeNetworkLoadBalancerCompartmentDetails struct { - - // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which to move the network load balancer. - CompartmentId *string `mandatory:"true" json:"compartmentId"` -} - -func (m ChangeNetworkLoadBalancerCompartmentDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_details.go deleted file mode 100644 index 19f7e0650c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_details.go +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateBackendDetails The configuration of a backend server that is a member of a network load balancer backend set. -// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). -type CreateBackendDetails struct { - - // The communication port for the backend server. - // Example: `8080` - Port *int `mandatory:"true" json:"port"` - - // Optional unique name identifying the backend within the backend set. If not specified, then one will be generated. - // Example: `webServer1` - Name *string `mandatory:"false" json:"name"` - - // The IP address of the backend server. - // Example: `10.0.0.3` - IpAddress *string `mandatory:"false" json:"ipAddress"` - - // The IP OCID/Instance OCID associated with the backend server. - // Example: `ocid1.privateip..oc1.<unique_ID>` - TargetId *string `mandatory:"false" json:"targetId"` - - // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections - // as a server weighted '1'. - // For more information about load balancing policies, see - // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no - // incoming traffic. - // Example: `false` - IsDrain *bool `mandatory:"false" json:"isDrain"` - - // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. - // Example: `false` - IsBackup *bool `mandatory:"false" json:"isBackup"` - - // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - IsOffline *bool `mandatory:"false" json:"isOffline"` -} - -func (m CreateBackendDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_request_response.go deleted file mode 100644 index d751704034..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateBackendRequest wrapper for the CreateBackend operation -type CreateBackendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The details to add a backend server to a backend set. - CreateBackendDetails `contributesTo:"body"` - - // The name of the backend set to which to add the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateBackendResponse wrapper for the CreateBackend operation -type CreateBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_details.go deleted file mode 100644 index ce834b54b6..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_details.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateBackendSetDetails The configuration details for creating a backend set in a network load balancer. -// For more information about backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type CreateBackendSetDetails struct { - - // A user-friendly name for the backend set that must be unique and cannot be changed. - // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot - // contain spaces. Avoid entering confidential information. - // Example: `example_backend_set` - Name *string `mandatory:"true" json:"name"` - - // The network load balancer policy for the backend set. - // Example: `FIVE_TUPLE`` - Policy NetworkLoadBalancingPolicyEnum `mandatory:"true" json:"policy"` - - HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` - - // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. - // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. - // The value is true by default. - IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` - - // IP version associated with the backend set. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` - - // An array of backends to be associated with the backend set. - Backends []BackendDetails `mandatory:"false" json:"backends"` -} - -func (m CreateBackendSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_request_response.go deleted file mode 100644 index f2a9060cbb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_backend_set_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateBackendSetRequest wrapper for the CreateBackendSet operation -type CreateBackendSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The details for adding a backend set. - CreateBackendSetDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateBackendSetResponse wrapper for the CreateBackendSet operation -type CreateBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response CreateBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_details.go deleted file mode 100644 index 9c06ef4e22..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// CreateListenerDetails The configuration of the listener. -// For more information about backend set configuration, see -// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -type CreateListenerDetails struct { - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Example: `example_listener` - Name *string `mandatory:"true" json:"name"` - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // For public network load balancers, ANY protocol refers to TCP/UDP. - // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). - // To get a list of valid protocols, use the ListNetworkLoadBalancersProtocols - // operation. - // Example: `TCP` - Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` - - // IP version associated with the listener. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` -} - -func (m CreateListenerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_request_response.go deleted file mode 100644 index bbf3fd59b0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_listener_request_response.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// CreateListenerRequest wrapper for the CreateListener operation -type CreateListenerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // Details to add a listener. - CreateListenerDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request CreateListenerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request CreateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request CreateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request CreateListenerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// CreateListenerResponse wrapper for the CreateListener operation -type CreateListenerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` -} - -func (response CreateListenerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response CreateListenerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_request_response.go deleted file mode 100644 index 622d6ec38d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_request_response.go +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteBackendRequest wrapper for the DeleteBackend operation -type DeleteBackendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set associated with the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The name of the backend server to remove. - // If the backend was created with an explicitly specified name, that name should be used here. - // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. - // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. - // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteBackendResponse wrapper for the DeleteBackend operation -type DeleteBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_set_request_response.go deleted file mode 100644 index d22b6288a7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_backend_set_request_response.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteBackendSetRequest wrapper for the DeleteBackendSet operation -type DeleteBackendSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set to delete. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteBackendSetResponse wrapper for the DeleteBackendSet operation -type DeleteBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response DeleteBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_listener_request_response.go deleted file mode 100644 index 6d1e97c683..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_listener_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// DeleteListenerRequest wrapper for the DeleteListener operation -type DeleteListenerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the listener to delete. - // Example: `example_listener` - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request DeleteListenerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request DeleteListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request DeleteListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request DeleteListenerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// DeleteListenerResponse wrapper for the DeleteListener operation -type DeleteListenerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` -} - -func (response DeleteListenerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response DeleteListenerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_health_request_response.go deleted file mode 100644 index c6af35830e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_health_request_response.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendHealthRequest wrapper for the GetBackendHealth operation -type GetBackendHealthRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set associated with the backend server for which to retrieve the health status. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The name of the backend server to retrieve health status for. - // If the backend was created with an explicitly specified name, that name should be used here. - // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. - // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. - // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendHealthRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendHealthRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendHealthResponse wrapper for the GetBackendHealth operation -type GetBackendHealthResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The BackendHealth instance - BackendHealth `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response GetBackendHealthResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendHealthResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_request_response.go deleted file mode 100644 index 4185b49ee0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_request_response.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendRequest wrapper for the GetBackend operation -type GetBackendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set that includes the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The name of the backend server to retrieve. - // If the backend was created with an explicitly specified name, that name should be used here. - // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. - // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. - // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no etag - // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendResponse wrapper for the GetBackend operation -type GetBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The Backend instance - Backend `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` -} - -func (response GetBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_health_request_response.go deleted file mode 100644 index 081e084131..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_health_request_response.go +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendSetHealthRequest wrapper for the GetBackendSetHealth operation -type GetBackendSetHealthRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set for which to retrieve the health status. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendSetHealthRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendSetHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendSetHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendSetHealthRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendSetHealthResponse wrapper for the GetBackendSetHealth operation -type GetBackendSetHealthResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The BackendSetHealth instance - BackendSetHealth `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` -} - -func (response GetBackendSetHealthResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendSetHealthResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_request_response.go deleted file mode 100644 index 1734a71996..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_backend_set_request_response.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetBackendSetRequest wrapper for the GetBackendSet operation -type GetBackendSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set to retrieve. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no etag - // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetBackendSetResponse wrapper for the GetBackendSet operation -type GetBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The BackendSet instance - BackendSet `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` -} - -func (response GetBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_health_checker_request_response.go deleted file mode 100644 index 88a8fe2111..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_health_checker_request_response.go +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetHealthCheckerRequest wrapper for the GetHealthChecker operation -type GetHealthCheckerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set associated with the health check policy to be retrieved. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // The system returns the requested resource, with a 200 status, only if the resource has no etag - // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetHealthCheckerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetHealthCheckerResponse wrapper for the GetHealthChecker operation -type GetHealthCheckerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The HealthChecker instance - HealthChecker `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - Etag *string `presentIn:"header" name:"etag"` -} - -func (response GetHealthCheckerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetHealthCheckerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_work_request_request_response.go deleted file mode 100644 index 4f48e6c4be..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_work_request_request_response.go +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// GetWorkRequestRequest wrapper for the GetWorkRequest operation -type GetWorkRequestRequest struct { - - // The identifier of the asynchronous request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request GetWorkRequestRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// GetWorkRequestResponse wrapper for the GetWorkRequest operation -type GetWorkRequestResponse struct { - - // The underlying http response - RawResponse *http.Response - - // The WorkRequest instance - WorkRequest `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // A decimal number representing the number of seconds the client should wait before polling this endpoint again. - RetryAfter *float32 `presentIn:"header" name:"retry-after"` -} - -func (response GetWorkRequestResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response GetWorkRequestResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/hcs_infra_ip_version.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/hcs_infra_ip_version.go deleted file mode 100644 index b1dae83038..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/hcs_infra_ip_version.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// HcsInfraIpVersionEnum Enum with underlying type: string -type HcsInfraIpVersionEnum string - -// Set of constants representing the allowable values for HcsInfraIpVersionEnum -const ( - HcsInfraIpVersionIpv4 HcsInfraIpVersionEnum = "IPV4" - HcsInfraIpVersionIpv4AndIpv6 HcsInfraIpVersionEnum = "IPV4_AND_IPV6" -) - -var mappingHcsInfraIpVersion = map[string]HcsInfraIpVersionEnum{ - "IPV4": HcsInfraIpVersionIpv4, - "IPV4_AND_IPV6": HcsInfraIpVersionIpv4AndIpv6, -} - -// GetHcsInfraIpVersionEnumValues Enumerates the set of values for HcsInfraIpVersionEnum -func GetHcsInfraIpVersionEnumValues() []HcsInfraIpVersionEnum { - values := make([]HcsInfraIpVersionEnum, 0) - for _, v := range mappingHcsInfraIpVersion { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_protocols.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_protocols.go deleted file mode 100644 index 81e47424e2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_protocols.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// HealthCheckProtocolsEnum Enum with underlying type: string -type HealthCheckProtocolsEnum string - -// Set of constants representing the allowable values for HealthCheckProtocolsEnum -const ( - HealthCheckProtocolsHttp HealthCheckProtocolsEnum = "HTTP" - HealthCheckProtocolsHttps HealthCheckProtocolsEnum = "HTTPS" - HealthCheckProtocolsTcp HealthCheckProtocolsEnum = "TCP" - HealthCheckProtocolsUdp HealthCheckProtocolsEnum = "UDP" -) - -var mappingHealthCheckProtocols = map[string]HealthCheckProtocolsEnum{ - "HTTP": HealthCheckProtocolsHttp, - "HTTPS": HealthCheckProtocolsHttps, - "TCP": HealthCheckProtocolsTcp, - "UDP": HealthCheckProtocolsUdp, -} - -// GetHealthCheckProtocolsEnumValues Enumerates the set of values for HealthCheckProtocolsEnum -func GetHealthCheckProtocolsEnumValues() []HealthCheckProtocolsEnum { - values := make([]HealthCheckProtocolsEnum, 0) - for _, v := range mappingHealthCheckProtocols { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_result.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_result.go deleted file mode 100644 index bde3adec39..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_check_result.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HealthCheckResult Information about a single backend server health check result reported by a network load balancer. -type HealthCheckResult struct { - - // The date and time the data was retrieved, in the format defined by RFC3339. - // Example: `2020-05-01T18:28:11+00:00` - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` - - // The result of the most recent health check. - HealthCheckStatus HealthCheckResultHealthCheckStatusEnum `mandatory:"true" json:"healthCheckStatus"` -} - -func (m HealthCheckResult) String() string { - return common.PointerString(m) -} - -// HealthCheckResultHealthCheckStatusEnum Enum with underlying type: string -type HealthCheckResultHealthCheckStatusEnum string - -// Set of constants representing the allowable values for HealthCheckResultHealthCheckStatusEnum -const ( - HealthCheckResultHealthCheckStatusOk HealthCheckResultHealthCheckStatusEnum = "OK" - HealthCheckResultHealthCheckStatusInvalidStatusCode HealthCheckResultHealthCheckStatusEnum = "INVALID_STATUS_CODE" - HealthCheckResultHealthCheckStatusTimedOut HealthCheckResultHealthCheckStatusEnum = "TIMED_OUT" - HealthCheckResultHealthCheckStatusHealthPayloadMismatch HealthCheckResultHealthCheckStatusEnum = "HEALTH_PAYLOAD_MISMATCH" - HealthCheckResultHealthCheckStatusConnectFailed HealthCheckResultHealthCheckStatusEnum = "CONNECT_FAILED" - HealthCheckResultHealthCheckStatusUnknown HealthCheckResultHealthCheckStatusEnum = "UNKNOWN" -) - -var mappingHealthCheckResultHealthCheckStatus = map[string]HealthCheckResultHealthCheckStatusEnum{ - "OK": HealthCheckResultHealthCheckStatusOk, - "INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode, - "TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut, - "HEALTH_PAYLOAD_MISMATCH": HealthCheckResultHealthCheckStatusHealthPayloadMismatch, - "CONNECT_FAILED": HealthCheckResultHealthCheckStatusConnectFailed, - "UNKNOWN": HealthCheckResultHealthCheckStatusUnknown, -} - -// GetHealthCheckResultHealthCheckStatusEnumValues Enumerates the set of values for HealthCheckResultHealthCheckStatusEnum -func GetHealthCheckResultHealthCheckStatusEnumValues() []HealthCheckResultHealthCheckStatusEnum { - values := make([]HealthCheckResultHealthCheckStatusEnum, 0) - for _, v := range mappingHealthCheckResultHealthCheckStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker.go deleted file mode 100644 index 533b7ea4c0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HealthChecker The health check policy configuration. -// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). -type HealthChecker struct { - - // The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP. - // Example: `HTTP` - Protocol HealthCheckProtocolsEnum `mandatory:"true" json:"protocol"` - - // The backend server port against which to run the health check. If the port is not specified, then the network load balancer uses the - // port information from the `Backend` object. The port must be specified if the backend port is 0. - // Example: `8080` - Port *int `mandatory:"false" json:"port"` - - // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies - // when recovering a server to the "healthy" state. The default value is 3. - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. The default value is 3000 (3 seconds). - // Example: `3000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The interval between health checks, in milliseconds. The default value is 10000 (10 seconds). - // Example: `10000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^((?!false).|\s)*$` - ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` - - // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, - // then you can use common HTTP status codes such as "200". - // Example: `200` - ReturnCode *int `mandatory:"false" json:"returnCode"` - - // Base64 encoded pattern to be sent as UDP or TCP health check probe. - RequestData []byte `mandatory:"false" json:"requestData"` - - // Base64 encoded pattern to be validated as UDP or TCP health check probe response. - ResponseData []byte `mandatory:"false" json:"responseData"` -} - -func (m HealthChecker) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker_details.go deleted file mode 100644 index 09caea49c3..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/health_checker_details.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// HealthCheckerDetails The health check policy configuration. -// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). -type HealthCheckerDetails struct { - - // The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP. - // Example: `HTTP` - Protocol HealthCheckProtocolsEnum `mandatory:"true" json:"protocol"` - - // The backend server port against which to run the health check. If the port is not specified, then the network load balancer uses the - // port information from the `Backend` object. The port must be specified if the backend port is 0. - // Example: `8080` - Port *int `mandatory:"false" json:"port"` - - // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies - // when recovering a server to the "healthy" state. The default value is 3. - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. The default value is 3000 (3 seconds). - // Example: `3000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The interval between health checks, in milliseconds. The default value is 10000 (10 seconds). - // Example: `10000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^((?!false).|\s)*$` - ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` - - // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, - // then you can use common HTTP status codes such as "200". - // Example: `200` - ReturnCode *int `mandatory:"false" json:"returnCode"` - - // Base64 encoded pattern to be sent as UDP or TCP health check probe. - RequestData []byte `mandatory:"false" json:"requestData"` - - // Base64 encoded pattern to be validated as UDP or TCP health check probe response. - ResponseData []byte `mandatory:"false" json:"responseData"` -} - -func (m HealthCheckerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_address.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_address.go deleted file mode 100644 index 61eae6e934..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_address.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// IpAddress A load balancer IP address. -type IpAddress struct { - - // An IP address. - // Example: `192.168.0.3` - IpAddress *string `mandatory:"true" json:"ipAddress"` - - // Whether the IP address is public or private. - // If "true", then the IP address is public and accessible from the internet. - // If "false", then the IP address is private and accessible only from within the associated virtual cloud network. - IsPublic *bool `mandatory:"false" json:"isPublic"` - - // IP version associated with this IP address. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` - - ReservedIp *ReservedIp `mandatory:"false" json:"reservedIp"` -} - -func (m IpAddress) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_version.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_version.go deleted file mode 100644 index 38585150ff..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/ip_version.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// IpVersionEnum Enum with underlying type: string -type IpVersionEnum string - -// Set of constants representing the allowable values for IpVersionEnum -const ( - IpVersionIpv4 IpVersionEnum = "IPV4" - IpVersionIpv6 IpVersionEnum = "IPV6" -) - -var mappingIpVersion = map[string]IpVersionEnum{ - "IPV4": IpVersionIpv4, - "IPV6": IpVersionIpv6, -} - -// GetIpVersionEnumValues Enumerates the set of values for IpVersionEnum -func GetIpVersionEnumValues() []IpVersionEnum { - values := make([]IpVersionEnum, 0) - for _, v := range mappingIpVersion { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/lifecycle_state.go deleted file mode 100644 index 0efb38728c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/lifecycle_state.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// LifecycleStateEnum Enum with underlying type: string -type LifecycleStateEnum string - -// Set of constants representing the allowable values for LifecycleStateEnum -const ( - LifecycleStateCreating LifecycleStateEnum = "CREATING" - LifecycleStateUpdating LifecycleStateEnum = "UPDATING" - LifecycleStateActive LifecycleStateEnum = "ACTIVE" - LifecycleStateDeleting LifecycleStateEnum = "DELETING" - LifecycleStateDeleted LifecycleStateEnum = "DELETED" - LifecycleStateFailed LifecycleStateEnum = "FAILED" -) - -var mappingLifecycleState = map[string]LifecycleStateEnum{ - "CREATING": LifecycleStateCreating, - "UPDATING": LifecycleStateUpdating, - "ACTIVE": LifecycleStateActive, - "DELETING": LifecycleStateDeleting, - "DELETED": LifecycleStateDeleted, - "FAILED": LifecycleStateFailed, -} - -// GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum -func GetLifecycleStateEnumValues() []LifecycleStateEnum { - values := make([]LifecycleStateEnum, 0) - for _, v := range mappingLifecycleState { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backend_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backend_sets_request_response.go deleted file mode 100644 index 07f53d2661..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backend_sets_request_response.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBackendSetsRequest wrapper for the ListBackendSets operation -type ListBackendSetsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no etag - // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListBackendSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListBackendSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBackendSetsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBackendSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBackendSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBackendSetsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBackendSetsResponse wrapper for the ListBackendSets operation -type ListBackendSetsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of BackendSetCollection instances - BackendSetCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListBackendSetsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBackendSetsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListBackendSetsSortOrderEnum Enum with underlying type: string -type ListBackendSetsSortOrderEnum string - -// Set of constants representing the allowable values for ListBackendSetsSortOrderEnum -const ( - ListBackendSetsSortOrderAsc ListBackendSetsSortOrderEnum = "ASC" - ListBackendSetsSortOrderDesc ListBackendSetsSortOrderEnum = "DESC" -) - -var mappingListBackendSetsSortOrder = map[string]ListBackendSetsSortOrderEnum{ - "ASC": ListBackendSetsSortOrderAsc, - "DESC": ListBackendSetsSortOrderDesc, -} - -// GetListBackendSetsSortOrderEnumValues Enumerates the set of values for ListBackendSetsSortOrderEnum -func GetListBackendSetsSortOrderEnumValues() []ListBackendSetsSortOrderEnum { - values := make([]ListBackendSetsSortOrderEnum, 0) - for _, v := range mappingListBackendSetsSortOrder { - values = append(values, v) - } - return values -} - -// ListBackendSetsSortByEnum Enum with underlying type: string -type ListBackendSetsSortByEnum string - -// Set of constants representing the allowable values for ListBackendSetsSortByEnum -const ( - ListBackendSetsSortByTimecreated ListBackendSetsSortByEnum = "timeCreated" - ListBackendSetsSortByDisplayname ListBackendSetsSortByEnum = "displayName" -) - -var mappingListBackendSetsSortBy = map[string]ListBackendSetsSortByEnum{ - "timeCreated": ListBackendSetsSortByTimecreated, - "displayName": ListBackendSetsSortByDisplayname, -} - -// GetListBackendSetsSortByEnumValues Enumerates the set of values for ListBackendSetsSortByEnum -func GetListBackendSetsSortByEnumValues() []ListBackendSetsSortByEnum { - values := make([]ListBackendSetsSortByEnum, 0) - for _, v := range mappingListBackendSetsSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backends_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backends_request_response.go deleted file mode 100644 index 0e74a8b764..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_backends_request_response.go +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListBackendsRequest wrapper for the ListBackends operation -type ListBackendsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The name of the backend set associated with the backend servers. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no etag - // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListBackendsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListBackendsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListBackendsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListBackendsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListBackendsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListBackendsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListBackendsResponse wrapper for the ListBackends operation -type ListBackendsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of BackendCollection instances - BackendCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListBackendsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListBackendsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListBackendsSortOrderEnum Enum with underlying type: string -type ListBackendsSortOrderEnum string - -// Set of constants representing the allowable values for ListBackendsSortOrderEnum -const ( - ListBackendsSortOrderAsc ListBackendsSortOrderEnum = "ASC" - ListBackendsSortOrderDesc ListBackendsSortOrderEnum = "DESC" -) - -var mappingListBackendsSortOrder = map[string]ListBackendsSortOrderEnum{ - "ASC": ListBackendsSortOrderAsc, - "DESC": ListBackendsSortOrderDesc, -} - -// GetListBackendsSortOrderEnumValues Enumerates the set of values for ListBackendsSortOrderEnum -func GetListBackendsSortOrderEnumValues() []ListBackendsSortOrderEnum { - values := make([]ListBackendsSortOrderEnum, 0) - for _, v := range mappingListBackendsSortOrder { - values = append(values, v) - } - return values -} - -// ListBackendsSortByEnum Enum with underlying type: string -type ListBackendsSortByEnum string - -// Set of constants representing the allowable values for ListBackendsSortByEnum -const ( - ListBackendsSortByTimecreated ListBackendsSortByEnum = "timeCreated" - ListBackendsSortByDisplayname ListBackendsSortByEnum = "displayName" -) - -var mappingListBackendsSortBy = map[string]ListBackendsSortByEnum{ - "timeCreated": ListBackendsSortByTimecreated, - "displayName": ListBackendsSortByDisplayname, -} - -// GetListBackendsSortByEnumValues Enumerates the set of values for ListBackendsSortByEnum -func GetListBackendsSortByEnumValues() []ListBackendsSortByEnum { - values := make([]ListBackendsSortByEnum, 0) - for _, v := range mappingListBackendsSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_listeners_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_listeners_request_response.go deleted file mode 100644 index d7fadf6033..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_listeners_request_response.go +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListListenersRequest wrapper for the ListListeners operation -type ListListenersRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The system returns the requested resource, with a 200 status, only if the resource has no etag - // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the - // HTTP status code `304 (Not Modified)`. - // Example: `example-etag` - IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListListenersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListListenersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListListenersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListListenersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListListenersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListListenersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListListenersResponse wrapper for the ListListeners operation -type ListListenersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of ListenerCollection instances - ListenerCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListListenersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListListenersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListListenersSortOrderEnum Enum with underlying type: string -type ListListenersSortOrderEnum string - -// Set of constants representing the allowable values for ListListenersSortOrderEnum -const ( - ListListenersSortOrderAsc ListListenersSortOrderEnum = "ASC" - ListListenersSortOrderDesc ListListenersSortOrderEnum = "DESC" -) - -var mappingListListenersSortOrder = map[string]ListListenersSortOrderEnum{ - "ASC": ListListenersSortOrderAsc, - "DESC": ListListenersSortOrderDesc, -} - -// GetListListenersSortOrderEnumValues Enumerates the set of values for ListListenersSortOrderEnum -func GetListListenersSortOrderEnumValues() []ListListenersSortOrderEnum { - values := make([]ListListenersSortOrderEnum, 0) - for _, v := range mappingListListenersSortOrder { - values = append(values, v) - } - return values -} - -// ListListenersSortByEnum Enum with underlying type: string -type ListListenersSortByEnum string - -// Set of constants representing the allowable values for ListListenersSortByEnum -const ( - ListListenersSortByTimecreated ListListenersSortByEnum = "timeCreated" - ListListenersSortByDisplayname ListListenersSortByEnum = "displayName" -) - -var mappingListListenersSortBy = map[string]ListListenersSortByEnum{ - "timeCreated": ListListenersSortByTimecreated, - "displayName": ListListenersSortByDisplayname, -} - -// GetListListenersSortByEnumValues Enumerates the set of values for ListListenersSortByEnum -func GetListListenersSortByEnumValues() []ListListenersSortByEnum { - values := make([]ListListenersSortByEnum, 0) - for _, v := range mappingListListenersSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancer_healths_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancer_healths_request_response.go deleted file mode 100644 index 1f39854c92..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancer_healths_request_response.go +++ /dev/null @@ -1,137 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkLoadBalancerHealthsRequest wrapper for the ListNetworkLoadBalancerHealths operation -type ListNetworkLoadBalancerHealthsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListNetworkLoadBalancerHealthsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListNetworkLoadBalancerHealthsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkLoadBalancerHealthsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkLoadBalancerHealthsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkLoadBalancerHealthsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkLoadBalancerHealthsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkLoadBalancerHealthsResponse wrapper for the ListNetworkLoadBalancerHealths operation -type ListNetworkLoadBalancerHealthsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of NetworkLoadBalancerHealthCollection instances - NetworkLoadBalancerHealthCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNetworkLoadBalancerHealthsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkLoadBalancerHealthsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkLoadBalancerHealthsSortOrderEnum Enum with underlying type: string -type ListNetworkLoadBalancerHealthsSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancerHealthsSortOrderEnum -const ( - ListNetworkLoadBalancerHealthsSortOrderAsc ListNetworkLoadBalancerHealthsSortOrderEnum = "ASC" - ListNetworkLoadBalancerHealthsSortOrderDesc ListNetworkLoadBalancerHealthsSortOrderEnum = "DESC" -) - -var mappingListNetworkLoadBalancerHealthsSortOrder = map[string]ListNetworkLoadBalancerHealthsSortOrderEnum{ - "ASC": ListNetworkLoadBalancerHealthsSortOrderAsc, - "DESC": ListNetworkLoadBalancerHealthsSortOrderDesc, -} - -// GetListNetworkLoadBalancerHealthsSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancerHealthsSortOrderEnum -func GetListNetworkLoadBalancerHealthsSortOrderEnumValues() []ListNetworkLoadBalancerHealthsSortOrderEnum { - values := make([]ListNetworkLoadBalancerHealthsSortOrderEnum, 0) - for _, v := range mappingListNetworkLoadBalancerHealthsSortOrder { - values = append(values, v) - } - return values -} - -// ListNetworkLoadBalancerHealthsSortByEnum Enum with underlying type: string -type ListNetworkLoadBalancerHealthsSortByEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancerHealthsSortByEnum -const ( - ListNetworkLoadBalancerHealthsSortByTimecreated ListNetworkLoadBalancerHealthsSortByEnum = "timeCreated" - ListNetworkLoadBalancerHealthsSortByDisplayname ListNetworkLoadBalancerHealthsSortByEnum = "displayName" -) - -var mappingListNetworkLoadBalancerHealthsSortBy = map[string]ListNetworkLoadBalancerHealthsSortByEnum{ - "timeCreated": ListNetworkLoadBalancerHealthsSortByTimecreated, - "displayName": ListNetworkLoadBalancerHealthsSortByDisplayname, -} - -// GetListNetworkLoadBalancerHealthsSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancerHealthsSortByEnum -func GetListNetworkLoadBalancerHealthsSortByEnumValues() []ListNetworkLoadBalancerHealthsSortByEnum { - values := make([]ListNetworkLoadBalancerHealthsSortByEnum, 0) - for _, v := range mappingListNetworkLoadBalancerHealthsSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_policies_request_response.go deleted file mode 100644 index d4900e420f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_policies_request_response.go +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkLoadBalancersPoliciesRequest wrapper for the ListNetworkLoadBalancersPolicies operation -type ListNetworkLoadBalancersPoliciesRequest struct { - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListNetworkLoadBalancersPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListNetworkLoadBalancersPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkLoadBalancersPoliciesRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkLoadBalancersPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkLoadBalancersPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkLoadBalancersPoliciesRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkLoadBalancersPoliciesResponse wrapper for the ListNetworkLoadBalancersPolicies operation -type ListNetworkLoadBalancersPoliciesResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of NetworkLoadBalancersPolicyCollection instances - NetworkLoadBalancersPolicyCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNetworkLoadBalancersPoliciesResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkLoadBalancersPoliciesResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkLoadBalancersPoliciesSortOrderEnum Enum with underlying type: string -type ListNetworkLoadBalancersPoliciesSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersPoliciesSortOrderEnum -const ( - ListNetworkLoadBalancersPoliciesSortOrderAsc ListNetworkLoadBalancersPoliciesSortOrderEnum = "ASC" - ListNetworkLoadBalancersPoliciesSortOrderDesc ListNetworkLoadBalancersPoliciesSortOrderEnum = "DESC" -) - -var mappingListNetworkLoadBalancersPoliciesSortOrder = map[string]ListNetworkLoadBalancersPoliciesSortOrderEnum{ - "ASC": ListNetworkLoadBalancersPoliciesSortOrderAsc, - "DESC": ListNetworkLoadBalancersPoliciesSortOrderDesc, -} - -// GetListNetworkLoadBalancersPoliciesSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancersPoliciesSortOrderEnum -func GetListNetworkLoadBalancersPoliciesSortOrderEnumValues() []ListNetworkLoadBalancersPoliciesSortOrderEnum { - values := make([]ListNetworkLoadBalancersPoliciesSortOrderEnum, 0) - for _, v := range mappingListNetworkLoadBalancersPoliciesSortOrder { - values = append(values, v) - } - return values -} - -// ListNetworkLoadBalancersPoliciesSortByEnum Enum with underlying type: string -type ListNetworkLoadBalancersPoliciesSortByEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersPoliciesSortByEnum -const ( - ListNetworkLoadBalancersPoliciesSortByTimecreated ListNetworkLoadBalancersPoliciesSortByEnum = "timeCreated" - ListNetworkLoadBalancersPoliciesSortByDisplayname ListNetworkLoadBalancersPoliciesSortByEnum = "displayName" -) - -var mappingListNetworkLoadBalancersPoliciesSortBy = map[string]ListNetworkLoadBalancersPoliciesSortByEnum{ - "timeCreated": ListNetworkLoadBalancersPoliciesSortByTimecreated, - "displayName": ListNetworkLoadBalancersPoliciesSortByDisplayname, -} - -// GetListNetworkLoadBalancersPoliciesSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancersPoliciesSortByEnum -func GetListNetworkLoadBalancersPoliciesSortByEnumValues() []ListNetworkLoadBalancersPoliciesSortByEnum { - values := make([]ListNetworkLoadBalancersPoliciesSortByEnum, 0) - for _, v := range mappingListNetworkLoadBalancersPoliciesSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_protocols_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_protocols_request_response.go deleted file mode 100644 index 14fb9c4e52..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_protocols_request_response.go +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkLoadBalancersProtocolsRequest wrapper for the ListNetworkLoadBalancersProtocols operation -type ListNetworkLoadBalancersProtocolsRequest struct { - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListNetworkLoadBalancersProtocolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListNetworkLoadBalancersProtocolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkLoadBalancersProtocolsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkLoadBalancersProtocolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkLoadBalancersProtocolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkLoadBalancersProtocolsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkLoadBalancersProtocolsResponse wrapper for the ListNetworkLoadBalancersProtocols operation -type ListNetworkLoadBalancersProtocolsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of NetworkLoadBalancersProtocolCollection instances - NetworkLoadBalancersProtocolCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListNetworkLoadBalancersProtocolsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkLoadBalancersProtocolsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkLoadBalancersProtocolsSortOrderEnum Enum with underlying type: string -type ListNetworkLoadBalancersProtocolsSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersProtocolsSortOrderEnum -const ( - ListNetworkLoadBalancersProtocolsSortOrderAsc ListNetworkLoadBalancersProtocolsSortOrderEnum = "ASC" - ListNetworkLoadBalancersProtocolsSortOrderDesc ListNetworkLoadBalancersProtocolsSortOrderEnum = "DESC" -) - -var mappingListNetworkLoadBalancersProtocolsSortOrder = map[string]ListNetworkLoadBalancersProtocolsSortOrderEnum{ - "ASC": ListNetworkLoadBalancersProtocolsSortOrderAsc, - "DESC": ListNetworkLoadBalancersProtocolsSortOrderDesc, -} - -// GetListNetworkLoadBalancersProtocolsSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancersProtocolsSortOrderEnum -func GetListNetworkLoadBalancersProtocolsSortOrderEnumValues() []ListNetworkLoadBalancersProtocolsSortOrderEnum { - values := make([]ListNetworkLoadBalancersProtocolsSortOrderEnum, 0) - for _, v := range mappingListNetworkLoadBalancersProtocolsSortOrder { - values = append(values, v) - } - return values -} - -// ListNetworkLoadBalancersProtocolsSortByEnum Enum with underlying type: string -type ListNetworkLoadBalancersProtocolsSortByEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersProtocolsSortByEnum -const ( - ListNetworkLoadBalancersProtocolsSortByTimecreated ListNetworkLoadBalancersProtocolsSortByEnum = "timeCreated" - ListNetworkLoadBalancersProtocolsSortByDisplayname ListNetworkLoadBalancersProtocolsSortByEnum = "displayName" -) - -var mappingListNetworkLoadBalancersProtocolsSortBy = map[string]ListNetworkLoadBalancersProtocolsSortByEnum{ - "timeCreated": ListNetworkLoadBalancersProtocolsSortByTimecreated, - "displayName": ListNetworkLoadBalancersProtocolsSortByDisplayname, -} - -// GetListNetworkLoadBalancersProtocolsSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancersProtocolsSortByEnum -func GetListNetworkLoadBalancersProtocolsSortByEnumValues() []ListNetworkLoadBalancersProtocolsSortByEnum { - values := make([]ListNetworkLoadBalancersProtocolsSortByEnum, 0) - for _, v := range mappingListNetworkLoadBalancersProtocolsSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_request_response.go deleted file mode 100644 index 5b99e6cb69..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_network_load_balancers_request_response.go +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListNetworkLoadBalancersRequest wrapper for the ListNetworkLoadBalancers operation -type ListNetworkLoadBalancersRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // A filter to return only resources that match the given lifecycle state. - LifecycleState ListNetworkLoadBalancersLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` - - // A filter to return only resources that match the entire display name given. - DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // The sort order to use, either 'asc' (ascending) or 'desc' (descending). - SortOrder ListNetworkLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` - - // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. - // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. - SortBy ListNetworkLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListNetworkLoadBalancersRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListNetworkLoadBalancersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListNetworkLoadBalancersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListNetworkLoadBalancersRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListNetworkLoadBalancersResponse wrapper for the ListNetworkLoadBalancers operation -type ListNetworkLoadBalancersResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of NetworkLoadBalancerCollection instances - NetworkLoadBalancerCollection `presentIn:"body"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` -} - -func (response ListNetworkLoadBalancersResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListNetworkLoadBalancersResponse) HTTPResponse() *http.Response { - return response.RawResponse -} - -// ListNetworkLoadBalancersLifecycleStateEnum Enum with underlying type: string -type ListNetworkLoadBalancersLifecycleStateEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersLifecycleStateEnum -const ( - ListNetworkLoadBalancersLifecycleStateCreating ListNetworkLoadBalancersLifecycleStateEnum = "CREATING" - ListNetworkLoadBalancersLifecycleStateUpdating ListNetworkLoadBalancersLifecycleStateEnum = "UPDATING" - ListNetworkLoadBalancersLifecycleStateActive ListNetworkLoadBalancersLifecycleStateEnum = "ACTIVE" - ListNetworkLoadBalancersLifecycleStateDeleting ListNetworkLoadBalancersLifecycleStateEnum = "DELETING" - ListNetworkLoadBalancersLifecycleStateDeleted ListNetworkLoadBalancersLifecycleStateEnum = "DELETED" - ListNetworkLoadBalancersLifecycleStateFailed ListNetworkLoadBalancersLifecycleStateEnum = "FAILED" -) - -var mappingListNetworkLoadBalancersLifecycleState = map[string]ListNetworkLoadBalancersLifecycleStateEnum{ - "CREATING": ListNetworkLoadBalancersLifecycleStateCreating, - "UPDATING": ListNetworkLoadBalancersLifecycleStateUpdating, - "ACTIVE": ListNetworkLoadBalancersLifecycleStateActive, - "DELETING": ListNetworkLoadBalancersLifecycleStateDeleting, - "DELETED": ListNetworkLoadBalancersLifecycleStateDeleted, - "FAILED": ListNetworkLoadBalancersLifecycleStateFailed, -} - -// GetListNetworkLoadBalancersLifecycleStateEnumValues Enumerates the set of values for ListNetworkLoadBalancersLifecycleStateEnum -func GetListNetworkLoadBalancersLifecycleStateEnumValues() []ListNetworkLoadBalancersLifecycleStateEnum { - values := make([]ListNetworkLoadBalancersLifecycleStateEnum, 0) - for _, v := range mappingListNetworkLoadBalancersLifecycleState { - values = append(values, v) - } - return values -} - -// ListNetworkLoadBalancersSortOrderEnum Enum with underlying type: string -type ListNetworkLoadBalancersSortOrderEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersSortOrderEnum -const ( - ListNetworkLoadBalancersSortOrderAsc ListNetworkLoadBalancersSortOrderEnum = "ASC" - ListNetworkLoadBalancersSortOrderDesc ListNetworkLoadBalancersSortOrderEnum = "DESC" -) - -var mappingListNetworkLoadBalancersSortOrder = map[string]ListNetworkLoadBalancersSortOrderEnum{ - "ASC": ListNetworkLoadBalancersSortOrderAsc, - "DESC": ListNetworkLoadBalancersSortOrderDesc, -} - -// GetListNetworkLoadBalancersSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancersSortOrderEnum -func GetListNetworkLoadBalancersSortOrderEnumValues() []ListNetworkLoadBalancersSortOrderEnum { - values := make([]ListNetworkLoadBalancersSortOrderEnum, 0) - for _, v := range mappingListNetworkLoadBalancersSortOrder { - values = append(values, v) - } - return values -} - -// ListNetworkLoadBalancersSortByEnum Enum with underlying type: string -type ListNetworkLoadBalancersSortByEnum string - -// Set of constants representing the allowable values for ListNetworkLoadBalancersSortByEnum -const ( - ListNetworkLoadBalancersSortByTimecreated ListNetworkLoadBalancersSortByEnum = "timeCreated" - ListNetworkLoadBalancersSortByDisplayname ListNetworkLoadBalancersSortByEnum = "displayName" -) - -var mappingListNetworkLoadBalancersSortBy = map[string]ListNetworkLoadBalancersSortByEnum{ - "timeCreated": ListNetworkLoadBalancersSortByTimecreated, - "displayName": ListNetworkLoadBalancersSortByDisplayname, -} - -// GetListNetworkLoadBalancersSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancersSortByEnum -func GetListNetworkLoadBalancersSortByEnumValues() []ListNetworkLoadBalancersSortByEnum { - values := make([]ListNetworkLoadBalancersSortByEnum, 0) - for _, v := range mappingListNetworkLoadBalancersSortBy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_errors_request_response.go deleted file mode 100644 index e0c075b735..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_errors_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation -type ListWorkRequestErrorsRequest struct { - - // The identifier of the asynchronous request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestErrorsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation -type ListWorkRequestErrorsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of WorkRequestErrorCollection instances - WorkRequestErrorCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestErrorsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_logs_request_response.go deleted file mode 100644 index 91cca509ab..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_request_logs_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation -type ListWorkRequestLogsRequest struct { - - // The identifier of the asynchronous request. - WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestLogsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation -type ListWorkRequestLogsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of WorkRequestLogEntryCollection instances - WorkRequestLogEntryCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestLogsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_requests_request_response.go deleted file mode 100644 index 96f65e76a8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/list_work_requests_request_response.go +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// ListWorkRequestsRequest wrapper for the ListWorkRequests operation -type ListWorkRequestsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` - - // The page token representing the page from which to start retrieving results. - // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). - Page *string `mandatory:"false" contributesTo:"query" name:"page"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request ListWorkRequestsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// ListWorkRequestsResponse wrapper for the ListWorkRequests operation -type ListWorkRequestsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // A list of WorkRequestCollection instances - WorkRequestCollection `presentIn:"body"` - - // For pagination of a list of items. When paging through a list, if this header appears in the response, - // then a partial list might have been returned. Include this value as the `page` parameter for the - // subsequent GET request to get the next batch of items. - OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response ListWorkRequestsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener.go deleted file mode 100644 index fc40b92417..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// Listener The congfiguration of the listener. -// For more information about backend set configuration, see -// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -type Listener struct { - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Example: `example_listener` - Name *string `mandatory:"true" json:"name"` - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // For public network load balancers, ANY protocol refers to TCP/UDP. - // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). - // To get a list of valid protocols, use the ListNetworkLoadBalancersProtocols - // operation. - // Example: `TCP` - Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` - - // IP version associated with the listener. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` -} - -func (m Listener) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_collection.go deleted file mode 100644 index 09def44c7e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ListenerCollection Wrapper object for an array of ListenerSummary objects. -type ListenerCollection struct { - - // Array of ListenerSummary objects. - Items []ListenerSummary `mandatory:"false" json:"items"` -} - -func (m ListenerCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_details.go deleted file mode 100644 index d722ba29c8..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_details.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ListenerDetails The listener's configuration. -// For more information about backend set configuration, see -// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -type ListenerDetails struct { - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Example: `example_listener` - Name *string `mandatory:"true" json:"name"` - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // For public network load balancers, ANY protocol refers to TCP/UDP. - // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). - // To get a list of valid protocols, use the ListNetworkLoadBalancersProtocols - // operation. - // Example: `TCP` - Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` - - // IP version associated with the listener. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` -} - -func (m ListenerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_protocols.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_protocols.go deleted file mode 100644 index 34ed0fbebc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_protocols.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// ListenerProtocolsEnum Enum with underlying type: string -type ListenerProtocolsEnum string - -// Set of constants representing the allowable values for ListenerProtocolsEnum -const ( - ListenerProtocolsAny ListenerProtocolsEnum = "ANY" - ListenerProtocolsTcp ListenerProtocolsEnum = "TCP" - ListenerProtocolsUdp ListenerProtocolsEnum = "UDP" -) - -var mappingListenerProtocols = map[string]ListenerProtocolsEnum{ - "ANY": ListenerProtocolsAny, - "TCP": ListenerProtocolsTcp, - "UDP": ListenerProtocolsUdp, -} - -// GetListenerProtocolsEnumValues Enumerates the set of values for ListenerProtocolsEnum -func GetListenerProtocolsEnumValues() []ListenerProtocolsEnum { - values := make([]ListenerProtocolsEnum, 0) - for _, v := range mappingListenerProtocols { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_summary.go deleted file mode 100644 index 1f6280aa1d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/listener_summary.go +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ListenerSummary The configuration of the listener. -// For more information about backend set configuration, see -// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -type ListenerSummary struct { - - // A friendly name for the listener. It must be unique and it cannot be changed. - // Example: `example_listener` - Name *string `mandatory:"true" json:"name"` - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"true" json:"port"` - - // The protocol on which the listener accepts connection requests. - // For public network load balancers, ANY protocol refers to TCP/UDP. - // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). - // To get a list of valid protocols, use the ListNetworkLoadBalancersProtocols - // operation. - // Example: `TCP` - Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` - - // IP version associated with the listener. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` -} - -func (m ListenerSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_collection.go deleted file mode 100644 index 61f693cbcc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkLoadBalancerCollection Wrapper object for an array of NetworkLoadBalancerSummary objects. -type NetworkLoadBalancerCollection struct { - - // Array of NetworkLoadBalancerSummary objects. - Items []NetworkLoadBalancerSummary `mandatory:"false" json:"items"` -} - -func (m NetworkLoadBalancerCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health.go deleted file mode 100644 index 9101958d16..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health.go +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkLoadBalancerHealth The health status details for the specified network load balancer. -// This object does not explicitly enumerate backend sets with a status of `OK`. However, the backend sets are included in the -// `totalBackendSetCount` sum. -type NetworkLoadBalancerHealth struct { - - // The overall health status of the network load balancer. - // * **OK:** All backend sets associated with the network load balancer return a status of `OK`. - // * **WARNING:** At least one of the backend sets associated with the network load balancer returns a status of `WARNING`, - // no backend sets return a status of `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. - // * **CRITICAL:** One or more of the backend sets associated with the network load balancer return a status of `CRITICAL`. - // * **UNKNOWN:** If any one of the following conditions is true: - // * The network load balancer life cycle state is not `ACTIVE`. - // * No backend sets are defined for the network load balancer. - // * More than half of the backend sets associated with the network load balancer return a status of `UNKNOWN`, none of the backend - // sets return a status of `WARNING` or `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. - // * The system could not retrieve metrics for any reason. - Status NetworkLoadBalancerHealthStatusEnum `mandatory:"true" json:"status"` - - // A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the - // user-friendly name you assigned when you created the backend set. - // Example: `example_backend_set3` - WarningStateBackendSetNames []string `mandatory:"true" json:"warningStateBackendSetNames"` - - // A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the - // user-friendly name you assigned when you created the backend set. - // Example: `example_backend_set` - CriticalStateBackendSetNames []string `mandatory:"true" json:"criticalStateBackendSetNames"` - - // A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the - // user-friendly name you assigned when you created the backend set. - // Example: `example_backend_set2` - UnknownStateBackendSetNames []string `mandatory:"true" json:"unknownStateBackendSetNames"` - - // The total number of backend sets associated with this network load balancer. - // Example: `4` - TotalBackendSetCount *int `mandatory:"true" json:"totalBackendSetCount"` -} - -func (m NetworkLoadBalancerHealth) String() string { - return common.PointerString(m) -} - -// NetworkLoadBalancerHealthStatusEnum Enum with underlying type: string -type NetworkLoadBalancerHealthStatusEnum string - -// Set of constants representing the allowable values for NetworkLoadBalancerHealthStatusEnum -const ( - NetworkLoadBalancerHealthStatusOk NetworkLoadBalancerHealthStatusEnum = "OK" - NetworkLoadBalancerHealthStatusWarning NetworkLoadBalancerHealthStatusEnum = "WARNING" - NetworkLoadBalancerHealthStatusCritical NetworkLoadBalancerHealthStatusEnum = "CRITICAL" - NetworkLoadBalancerHealthStatusUnknown NetworkLoadBalancerHealthStatusEnum = "UNKNOWN" -) - -var mappingNetworkLoadBalancerHealthStatus = map[string]NetworkLoadBalancerHealthStatusEnum{ - "OK": NetworkLoadBalancerHealthStatusOk, - "WARNING": NetworkLoadBalancerHealthStatusWarning, - "CRITICAL": NetworkLoadBalancerHealthStatusCritical, - "UNKNOWN": NetworkLoadBalancerHealthStatusUnknown, -} - -// GetNetworkLoadBalancerHealthStatusEnumValues Enumerates the set of values for NetworkLoadBalancerHealthStatusEnum -func GetNetworkLoadBalancerHealthStatusEnumValues() []NetworkLoadBalancerHealthStatusEnum { - values := make([]NetworkLoadBalancerHealthStatusEnum, 0) - for _, v := range mappingNetworkLoadBalancerHealthStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_collection.go deleted file mode 100644 index c198d9964c..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkLoadBalancerHealthCollection Wrapper object for an array of NetworkLoadBalancerHealthSummary objects. -type NetworkLoadBalancerHealthCollection struct { - - // An array of BackendSetSummary objects. - Items []NetworkLoadBalancerHealthSummary `mandatory:"false" json:"items"` -} - -func (m NetworkLoadBalancerHealthCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_summary.go deleted file mode 100644 index 673b79e5cc..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_health_summary.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkLoadBalancerHealthSummary A health status summary for the specified network load balancer -type NetworkLoadBalancerHealthSummary struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer with which the health status is associated. - NetworkLoadBalancerId *string `mandatory:"true" json:"networkLoadBalancerId"` - - // The overall health status of the network load balancer. - // * **OK:** All backend sets associated with the network load balancer return a status of `OK`. - // * **WARNING:** At least one of the backend sets associated with the network load balancer returns a status of `WARNING`, - // no backend sets return a status of `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. - // * **CRITICAL:** One or more of the backend sets associated with the network load balancer returns a status of `CRITICAL`. - // * **UNKNOWN:** If any one of the following conditions is true: - // * The network load balancer life cycle state is not `ACTIVE`. - // * No backend sets are defined for the network load balancer. - // * More than half of the backend sets associated with the network load balancer return a status of `UNKNOWN`, none of the backend - // sets returns a status of `WARNING` or `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. - // * The system could not retrieve metrics for any reason. - Status NetworkLoadBalancerHealthSummaryStatusEnum `mandatory:"true" json:"status"` -} - -func (m NetworkLoadBalancerHealthSummary) String() string { - return common.PointerString(m) -} - -// NetworkLoadBalancerHealthSummaryStatusEnum Enum with underlying type: string -type NetworkLoadBalancerHealthSummaryStatusEnum string - -// Set of constants representing the allowable values for NetworkLoadBalancerHealthSummaryStatusEnum -const ( - NetworkLoadBalancerHealthSummaryStatusOk NetworkLoadBalancerHealthSummaryStatusEnum = "OK" - NetworkLoadBalancerHealthSummaryStatusWarning NetworkLoadBalancerHealthSummaryStatusEnum = "WARNING" - NetworkLoadBalancerHealthSummaryStatusCritical NetworkLoadBalancerHealthSummaryStatusEnum = "CRITICAL" - NetworkLoadBalancerHealthSummaryStatusUnknown NetworkLoadBalancerHealthSummaryStatusEnum = "UNKNOWN" -) - -var mappingNetworkLoadBalancerHealthSummaryStatus = map[string]NetworkLoadBalancerHealthSummaryStatusEnum{ - "OK": NetworkLoadBalancerHealthSummaryStatusOk, - "WARNING": NetworkLoadBalancerHealthSummaryStatusWarning, - "CRITICAL": NetworkLoadBalancerHealthSummaryStatusCritical, - "UNKNOWN": NetworkLoadBalancerHealthSummaryStatusUnknown, -} - -// GetNetworkLoadBalancerHealthSummaryStatusEnumValues Enumerates the set of values for NetworkLoadBalancerHealthSummaryStatusEnum -func GetNetworkLoadBalancerHealthSummaryStatusEnumValues() []NetworkLoadBalancerHealthSummaryStatusEnum { - values := make([]NetworkLoadBalancerHealthSummaryStatusEnum, 0) - for _, v := range mappingNetworkLoadBalancerHealthSummaryStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_collection.go deleted file mode 100644 index 114e8f45e9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkLoadBalancersPolicyCollection Wrapper object for array of NetworkLoadBalancersPolicySummary objects. -type NetworkLoadBalancersPolicyCollection struct { - - // Array of NetworkLoadBalancersPolicySummary objects. - Items []NetworkLoadBalancersPolicySummaryEnum `mandatory:"false" json:"items"` -} - -func (m NetworkLoadBalancersPolicyCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_summary.go deleted file mode 100644 index 0ce66ee869..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_policy_summary.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// NetworkLoadBalancersPolicySummaryEnum Enum with underlying type: string -type NetworkLoadBalancersPolicySummaryEnum string - -// Set of constants representing the allowable values for NetworkLoadBalancersPolicySummaryEnum -const ( - NetworkLoadBalancersPolicySummaryTwoTuple NetworkLoadBalancersPolicySummaryEnum = "TWO_TUPLE" - NetworkLoadBalancersPolicySummaryThreeTuple NetworkLoadBalancersPolicySummaryEnum = "THREE_TUPLE" - NetworkLoadBalancersPolicySummaryFiveTuple NetworkLoadBalancersPolicySummaryEnum = "FIVE_TUPLE" -) - -var mappingNetworkLoadBalancersPolicySummary = map[string]NetworkLoadBalancersPolicySummaryEnum{ - "TWO_TUPLE": NetworkLoadBalancersPolicySummaryTwoTuple, - "THREE_TUPLE": NetworkLoadBalancersPolicySummaryThreeTuple, - "FIVE_TUPLE": NetworkLoadBalancersPolicySummaryFiveTuple, -} - -// GetNetworkLoadBalancersPolicySummaryEnumValues Enumerates the set of values for NetworkLoadBalancersPolicySummaryEnum -func GetNetworkLoadBalancersPolicySummaryEnumValues() []NetworkLoadBalancersPolicySummaryEnum { - values := make([]NetworkLoadBalancersPolicySummaryEnum, 0) - for _, v := range mappingNetworkLoadBalancersPolicySummary { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_collection.go deleted file mode 100644 index f0ac0505c0..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// NetworkLoadBalancersProtocolCollection Wrapper object for array of ProtocolSummary objects. -type NetworkLoadBalancersProtocolCollection struct { - - // Array of NetworkLoadBalancersProtocolSummary objects. - Items []NetworkLoadBalancersProtocolSummaryEnum `mandatory:"false" json:"items"` -} - -func (m NetworkLoadBalancersProtocolCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_summary.go deleted file mode 100644 index 7cd414c6e2..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancers_protocol_summary.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// NetworkLoadBalancersProtocolSummaryEnum Enum with underlying type: string -type NetworkLoadBalancersProtocolSummaryEnum string - -// Set of constants representing the allowable values for NetworkLoadBalancersProtocolSummaryEnum -const ( - NetworkLoadBalancersProtocolSummaryAny NetworkLoadBalancersProtocolSummaryEnum = "ANY" - NetworkLoadBalancersProtocolSummaryTcp NetworkLoadBalancersProtocolSummaryEnum = "TCP" - NetworkLoadBalancersProtocolSummaryUdp NetworkLoadBalancersProtocolSummaryEnum = "UDP" -) - -var mappingNetworkLoadBalancersProtocolSummary = map[string]NetworkLoadBalancersProtocolSummaryEnum{ - "ANY": NetworkLoadBalancersProtocolSummaryAny, - "TCP": NetworkLoadBalancersProtocolSummaryTcp, - "UDP": NetworkLoadBalancersProtocolSummaryUdp, -} - -// GetNetworkLoadBalancersProtocolSummaryEnumValues Enumerates the set of values for NetworkLoadBalancersProtocolSummaryEnum -func GetNetworkLoadBalancersProtocolSummaryEnumValues() []NetworkLoadBalancersProtocolSummaryEnum { - values := make([]NetworkLoadBalancersProtocolSummaryEnum, 0) - for _, v := range mappingNetworkLoadBalancersProtocolSummary { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancing_policy.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancing_policy.go deleted file mode 100644 index 0edd770bbb..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancing_policy.go +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// NetworkLoadBalancingPolicyEnum Enum with underlying type: string -type NetworkLoadBalancingPolicyEnum string - -// Set of constants representing the allowable values for NetworkLoadBalancingPolicyEnum -const ( - NetworkLoadBalancingPolicyTwoTuple NetworkLoadBalancingPolicyEnum = "TWO_TUPLE" - NetworkLoadBalancingPolicyThreeTuple NetworkLoadBalancingPolicyEnum = "THREE_TUPLE" - NetworkLoadBalancingPolicyFiveTuple NetworkLoadBalancingPolicyEnum = "FIVE_TUPLE" -) - -var mappingNetworkLoadBalancingPolicy = map[string]NetworkLoadBalancingPolicyEnum{ - "TWO_TUPLE": NetworkLoadBalancingPolicyTwoTuple, - "THREE_TUPLE": NetworkLoadBalancingPolicyThreeTuple, - "FIVE_TUPLE": NetworkLoadBalancingPolicyFiveTuple, -} - -// GetNetworkLoadBalancingPolicyEnumValues Enumerates the set of values for NetworkLoadBalancingPolicyEnum -func GetNetworkLoadBalancingPolicyEnumValues() []NetworkLoadBalancingPolicyEnum { - values := make([]NetworkLoadBalancingPolicyEnum, 0) - for _, v := range mappingNetworkLoadBalancingPolicy { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/networkloadbalancer_client.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/networkloadbalancer_client.go deleted file mode 100644 index c1352c6df1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/networkloadbalancer_client.go +++ /dev/null @@ -1,1874 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "context" - "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" - "net/http" -) - -//NetworkLoadBalancerClient a client for NetworkLoadBalancer -type NetworkLoadBalancerClient struct { - common.BaseClient - config *common.ConfigurationProvider -} - -// NewNetworkLoadBalancerClientWithConfigurationProvider Creates a new default NetworkLoadBalancer client with the given configuration provider. -// the configuration provider will be used for the default signer as well as reading the region -func NewNetworkLoadBalancerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client NetworkLoadBalancerClient, err error) { - provider, err := auth.GetGenericConfigurationProvider(configProvider) - if err != nil { - return client, err - } - baseClient, e := common.NewClientWithConfig(provider) - if e != nil { - return client, e - } - return newNetworkLoadBalancerClientFromBaseClient(baseClient, provider) -} - -// NewNetworkLoadBalancerClientWithOboToken Creates a new default NetworkLoadBalancer client with the given configuration provider. -// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer -// as well as reading the region -func NewNetworkLoadBalancerClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client NetworkLoadBalancerClient, err error) { - baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) - if err != nil { - return client, err - } - - return newNetworkLoadBalancerClientFromBaseClient(baseClient, configProvider) -} - -func newNetworkLoadBalancerClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client NetworkLoadBalancerClient, err error) { - common.ConfigCircuitBreakerFromEnvVar(&baseClient) - common.ConfigCircuitBreakerFromGlobalVar(&baseClient) - - client = NetworkLoadBalancerClient{BaseClient: baseClient} - client.BasePath = "20200501" - err = client.setConfigurationProvider(configProvider) - return -} - -// SetRegion overrides the region of this client. -func (client *NetworkLoadBalancerClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).EndpointForTemplate("networkloadbalancer", "https://network-load-balancer-api.{region}.oci.{secondLevelDomain}") -} - -// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid -func (client *NetworkLoadBalancerClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { - if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { - return err - } - - // Error has been checked already - region, _ := configProvider.Region() - client.SetRegion(region) - client.config = &configProvider - return nil -} - -// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set -func (client *NetworkLoadBalancerClient) ConfigurationProvider() *common.ConfigurationProvider { - return client.config -} - -// ChangeNetworkLoadBalancerCompartment Moves a network load balancer into a different compartment within the same tenancy. For information about moving resources -// between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). -func (client NetworkLoadBalancerClient) ChangeNetworkLoadBalancerCompartment(ctx context.Context, request ChangeNetworkLoadBalancerCompartmentRequest) (response ChangeNetworkLoadBalancerCompartmentResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.changeNetworkLoadBalancerCompartment, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ChangeNetworkLoadBalancerCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ChangeNetworkLoadBalancerCompartmentResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ChangeNetworkLoadBalancerCompartmentResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ChangeNetworkLoadBalancerCompartmentResponse") - } - return -} - -// changeNetworkLoadBalancerCompartment implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) changeNetworkLoadBalancerCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/actions/changeCompartment", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ChangeNetworkLoadBalancerCompartmentResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateBackend Adds a backend server to a backend set. -func (client NetworkLoadBalancerClient) CreateBackend(ctx context.Context, request CreateBackendRequest) (response CreateBackendResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createBackend, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateBackendResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateBackendResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateBackendResponse") - } - return -} - -// createBackend implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) createBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateBackendResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateBackendSet Adds a backend set to a network load balancer. -func (client NetworkLoadBalancerClient) CreateBackendSet(ctx context.Context, request CreateBackendSetRequest) (response CreateBackendSetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createBackendSet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateBackendSetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateBackendSetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateBackendSetResponse") - } - return -} - -// createBackendSet implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) createBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateBackendSetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateListener Adds a listener to a network load balancer. -func (client NetworkLoadBalancerClient) CreateListener(ctx context.Context, request CreateListenerRequest) (response CreateListenerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createListener, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateListenerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateListenerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateListenerResponse") - } - return -} - -// createListener implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) createListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/listeners", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateListenerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// CreateNetworkLoadBalancer Creates a network load balancer. -func (client NetworkLoadBalancerClient) CreateNetworkLoadBalancer(ctx context.Context, request CreateNetworkLoadBalancerRequest) (response CreateNetworkLoadBalancerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.createNetworkLoadBalancer, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = CreateNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = CreateNetworkLoadBalancerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(CreateNetworkLoadBalancerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into CreateNetworkLoadBalancerResponse") - } - return -} - -// createNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) createNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response CreateNetworkLoadBalancerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteBackend Removes a backend server from a given network load balancer and backend set. -func (client NetworkLoadBalancerClient) DeleteBackend(ctx context.Context, request DeleteBackendRequest) (response DeleteBackendResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteBackend, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteBackendResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteBackendResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteBackendResponse") - } - return -} - -// deleteBackend implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) deleteBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteBackendResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteBackendSet Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the network load balancer. -// Before you can delete a backend set, you must remove it from any active listeners. -func (client NetworkLoadBalancerClient) DeleteBackendSet(ctx context.Context, request DeleteBackendSetRequest) (response DeleteBackendSetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteBackendSet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteBackendSetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteBackendSetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteBackendSetResponse") - } - return -} - -// deleteBackendSet implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) deleteBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteBackendSetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteListener Deletes a listener from a network load balancer. -func (client NetworkLoadBalancerClient) DeleteListener(ctx context.Context, request DeleteListenerRequest) (response DeleteListenerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteListener, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteListenerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteListenerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteListenerResponse") - } - return -} - -// deleteListener implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) deleteListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteListenerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// DeleteNetworkLoadBalancer Deletes a network load balancer resource by identifier. -func (client NetworkLoadBalancerClient) DeleteNetworkLoadBalancer(ctx context.Context, request DeleteNetworkLoadBalancerRequest) (response DeleteNetworkLoadBalancerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.deleteNetworkLoadBalancer, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = DeleteNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = DeleteNetworkLoadBalancerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(DeleteNetworkLoadBalancerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into DeleteNetworkLoadBalancerResponse") - } - return -} - -// deleteNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) deleteNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response DeleteNetworkLoadBalancerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetBackend Retrieves the configuration information for the specified backend server. -func (client NetworkLoadBalancerClient) GetBackend(ctx context.Context, request GetBackendRequest) (response GetBackendResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getBackend, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetBackendResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetBackendResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetBackendResponse") - } - return -} - -// getBackend implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetBackendResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetBackendHealth Retrieves the current health status of the specified backend server. -func (client NetworkLoadBalancerClient) GetBackendHealth(ctx context.Context, request GetBackendHealthRequest) (response GetBackendHealthResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getBackendHealth, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetBackendHealthResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetBackendHealthResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetBackendHealthResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetBackendHealthResponse") - } - return -} - -// getBackendHealth implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getBackendHealth(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetBackendHealthResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetBackendSet Retrieves the configuration information for the specified backend set. -func (client NetworkLoadBalancerClient) GetBackendSet(ctx context.Context, request GetBackendSetRequest) (response GetBackendSetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getBackendSet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetBackendSetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetBackendSetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetBackendSetResponse") - } - return -} - -// getBackendSet implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetBackendSetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetBackendSetHealth Retrieves the health status for the specified backend set. -func (client NetworkLoadBalancerClient) GetBackendSetHealth(ctx context.Context, request GetBackendSetHealthRequest) (response GetBackendSetHealthResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getBackendSetHealth, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetBackendSetHealthResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetBackendSetHealthResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetBackendSetHealthResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetBackendSetHealthResponse") - } - return -} - -// getBackendSetHealth implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getBackendSetHealth(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/health", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetBackendSetHealthResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetHealthChecker Retrieves the health check policy information for a given network load balancer and backend set. -func (client NetworkLoadBalancerClient) GetHealthChecker(ctx context.Context, request GetHealthCheckerRequest) (response GetHealthCheckerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.getHealthChecker, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetHealthCheckerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetHealthCheckerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetHealthCheckerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetHealthCheckerResponse") - } - return -} - -// getHealthChecker implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getHealthChecker(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/healthChecker", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetHealthCheckerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetListener Retrieves listener properties associated with a given network load balancer and listener name. -func (client NetworkLoadBalancerClient) GetListener(ctx context.Context, request GetListenerRequest) (response GetListenerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getListener, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetListenerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetListenerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetListenerResponse") - } - return -} - -// getListener implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetListenerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetNetworkLoadBalancer Retrieves network load balancer configuration information by identifier. -func (client NetworkLoadBalancerClient) GetNetworkLoadBalancer(ctx context.Context, request GetNetworkLoadBalancerRequest) (response GetNetworkLoadBalancerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getNetworkLoadBalancer, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetNetworkLoadBalancerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetNetworkLoadBalancerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetNetworkLoadBalancerResponse") - } - return -} - -// getNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetNetworkLoadBalancerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetNetworkLoadBalancerHealth Retrieves the health status for the specified network load balancer. -func (client NetworkLoadBalancerClient) GetNetworkLoadBalancerHealth(ctx context.Context, request GetNetworkLoadBalancerHealthRequest) (response GetNetworkLoadBalancerHealthResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getNetworkLoadBalancerHealth, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetNetworkLoadBalancerHealthResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetNetworkLoadBalancerHealthResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetNetworkLoadBalancerHealthResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetNetworkLoadBalancerHealthResponse") - } - return -} - -// getNetworkLoadBalancerHealth implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getNetworkLoadBalancerHealth(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/health", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetNetworkLoadBalancerHealthResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// GetWorkRequest Retrieves the details of the work request with the given identifier. -func (client NetworkLoadBalancerClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = GetWorkRequestResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") - } - return -} - -// getWorkRequest implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response GetWorkRequestResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListBackendSets Lists all backend sets associated with a given network load balancer. -func (client NetworkLoadBalancerClient) ListBackendSets(ctx context.Context, request ListBackendSetsRequest) (response ListBackendSetsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listBackendSets, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListBackendSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListBackendSetsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListBackendSetsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListBackendSetsResponse") - } - return -} - -// listBackendSets implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listBackendSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListBackendSetsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListBackends Lists the backend servers for a given network load balancer and backend set. -func (client NetworkLoadBalancerClient) ListBackends(ctx context.Context, request ListBackendsRequest) (response ListBackendsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listBackends, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListBackendsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListBackendsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListBackendsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListBackendsResponse") - } - return -} - -// listBackends implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listBackends(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListBackendsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListListeners Lists all listeners associated with a given network load balancer. -func (client NetworkLoadBalancerClient) ListListeners(ctx context.Context, request ListListenersRequest) (response ListListenersResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listListeners, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListListenersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListListenersResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListListenersResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListListenersResponse") - } - return -} - -// listListeners implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listListeners(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/listeners", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListListenersResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListNetworkLoadBalancerHealths Lists the summary health statuses for all network load balancers in the specified compartment. -func (client NetworkLoadBalancerClient) ListNetworkLoadBalancerHealths(ctx context.Context, request ListNetworkLoadBalancerHealthsRequest) (response ListNetworkLoadBalancerHealthsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancerHealths, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListNetworkLoadBalancerHealthsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListNetworkLoadBalancerHealthsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancerHealthsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancerHealthsResponse") - } - return -} - -// listNetworkLoadBalancerHealths implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listNetworkLoadBalancerHealths(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/health", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListNetworkLoadBalancerHealthsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListNetworkLoadBalancers Returns a list of network load balancers. -func (client NetworkLoadBalancerClient) ListNetworkLoadBalancers(ctx context.Context, request ListNetworkLoadBalancersRequest) (response ListNetworkLoadBalancersResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancers, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListNetworkLoadBalancersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListNetworkLoadBalancersResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancersResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancersResponse") - } - return -} - -// listNetworkLoadBalancers implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listNetworkLoadBalancers(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListNetworkLoadBalancersResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListNetworkLoadBalancersPolicies Lists the available network load balancer policies. -func (client NetworkLoadBalancerClient) ListNetworkLoadBalancersPolicies(ctx context.Context, request ListNetworkLoadBalancersPoliciesRequest) (response ListNetworkLoadBalancersPoliciesResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancersPolicies, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListNetworkLoadBalancersPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListNetworkLoadBalancersPoliciesResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancersPoliciesResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancersPoliciesResponse") - } - return -} - -// listNetworkLoadBalancersPolicies implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listNetworkLoadBalancersPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancersPolicies", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListNetworkLoadBalancersPoliciesResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListNetworkLoadBalancersProtocols Lists all supported traffic protocols. -func (client NetworkLoadBalancerClient) ListNetworkLoadBalancersProtocols(ctx context.Context, request ListNetworkLoadBalancersProtocolsRequest) (response ListNetworkLoadBalancersProtocolsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancersProtocols, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListNetworkLoadBalancersProtocolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListNetworkLoadBalancersProtocolsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancersProtocolsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancersProtocolsResponse") - } - return -} - -// listNetworkLoadBalancersProtocols implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listNetworkLoadBalancersProtocols(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancersProtocols", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListNetworkLoadBalancersProtocolsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListWorkRequestErrors Return a (paginated) list of errors for a given work request. -func (client NetworkLoadBalancerClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListWorkRequestErrorsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") - } - return -} - -// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListWorkRequestErrorsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListWorkRequestLogs Returns a (paginated) list of logs for a given work request. -func (client NetworkLoadBalancerClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListWorkRequestLogsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") - } - return -} - -// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListWorkRequestLogsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// ListWorkRequests Lists all work requests. -func (client NetworkLoadBalancerClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = ListWorkRequestsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") - } - return -} - -// listWorkRequests implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response ListWorkRequestsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateBackend Updates the configuration of a backend server within the specified backend set. -func (client NetworkLoadBalancerClient) UpdateBackend(ctx context.Context, request UpdateBackendRequest) (response UpdateBackendResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.updateBackend, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateBackendResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateBackendResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateBackendResponse") - } - return -} - -// updateBackend implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) updateBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateBackendResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateBackendSet Updates a backend set. -func (client NetworkLoadBalancerClient) UpdateBackendSet(ctx context.Context, request UpdateBackendSetRequest) (response UpdateBackendSetResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.updateBackendSet, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateBackendSetResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateBackendSetResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateBackendSetResponse") - } - return -} - -// updateBackendSet implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) updateBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateBackendSetResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateHealthChecker Updates the health check policy for a given network load balancer and backend set. -func (client NetworkLoadBalancerClient) UpdateHealthChecker(ctx context.Context, request UpdateHealthCheckerRequest) (response UpdateHealthCheckerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.updateHealthChecker, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateHealthCheckerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateHealthCheckerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateHealthCheckerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateHealthCheckerResponse") - } - return -} - -// updateHealthChecker implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) updateHealthChecker(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/healthChecker", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateHealthCheckerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateListener Updates a listener for a given network load balancer. -func (client NetworkLoadBalancerClient) UpdateListener(ctx context.Context, request UpdateListenerRequest) (response UpdateListenerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.updateListener, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateListenerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateListenerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateListenerResponse") - } - return -} - -// updateListener implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) updateListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateListenerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateNetworkLoadBalancer Updates the network load balancer -func (client NetworkLoadBalancerClient) UpdateNetworkLoadBalancer(ctx context.Context, request UpdateNetworkLoadBalancerRequest) (response UpdateNetworkLoadBalancerResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - ociResponse, err = common.Retry(ctx, request, client.updateNetworkLoadBalancer, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateNetworkLoadBalancerResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateNetworkLoadBalancerResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateNetworkLoadBalancerResponse") - } - return -} - -// updateNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) updateNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateNetworkLoadBalancerResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// UpdateNetworkSecurityGroups Updates the network security groups associated with the specified network load balancer. -func (client NetworkLoadBalancerClient) UpdateNetworkSecurityGroups(ctx context.Context, request UpdateNetworkSecurityGroupsRequest) (response UpdateNetworkSecurityGroupsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.updateNetworkSecurityGroups, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = UpdateNetworkSecurityGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = UpdateNetworkSecurityGroupsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(UpdateNetworkSecurityGroupsResponse); ok { - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into UpdateNetworkSecurityGroupsResponse") - } - return -} - -// updateNetworkSecurityGroups implements the OCIOperation interface (enables retrying operations) -func (client NetworkLoadBalancerClient) updateNetworkSecurityGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/networkSecurityGroups", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response UpdateNetworkSecurityGroupsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/nlb_ip_version.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/nlb_ip_version.go deleted file mode 100644 index 95391a1ec7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/nlb_ip_version.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// NlbIpVersionEnum Enum with underlying type: string -type NlbIpVersionEnum string - -// Set of constants representing the allowable values for NlbIpVersionEnum -const ( - NlbIpVersionIpv4 NlbIpVersionEnum = "IPV4" - NlbIpVersionIpv4AndIpv6 NlbIpVersionEnum = "IPV4_AND_IPV6" -) - -var mappingNlbIpVersion = map[string]NlbIpVersionEnum{ - "IPV4": NlbIpVersionIpv4, - "IPV4_AND_IPV6": NlbIpVersionIpv4AndIpv6, -} - -// GetNlbIpVersionEnumValues Enumerates the set of values for NlbIpVersionEnum -func GetNlbIpVersionEnumValues() []NlbIpVersionEnum { - values := make([]NlbIpVersionEnum, 0) - for _, v := range mappingNlbIpVersion { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_status.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_status.go deleted file mode 100644 index c6a73c290e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_status.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// OperationStatusEnum Enum with underlying type: string -type OperationStatusEnum string - -// Set of constants representing the allowable values for OperationStatusEnum -const ( - OperationStatusAccepted OperationStatusEnum = "ACCEPTED" - OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS" - OperationStatusFailed OperationStatusEnum = "FAILED" - OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" - OperationStatusCanceling OperationStatusEnum = "CANCELING" - OperationStatusCanceled OperationStatusEnum = "CANCELED" -) - -var mappingOperationStatus = map[string]OperationStatusEnum{ - "ACCEPTED": OperationStatusAccepted, - "IN_PROGRESS": OperationStatusInProgress, - "FAILED": OperationStatusFailed, - "SUCCEEDED": OperationStatusSucceeded, - "CANCELING": OperationStatusCanceling, - "CANCELED": OperationStatusCanceled, -} - -// GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum -func GetOperationStatusEnumValues() []OperationStatusEnum { - values := make([]OperationStatusEnum, 0) - for _, v := range mappingOperationStatus { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_type.go deleted file mode 100644 index 832f85fee9..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/operation_type.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// OperationTypeEnum Enum with underlying type: string -type OperationTypeEnum string - -// Set of constants representing the allowable values for OperationTypeEnum -const ( - OperationTypeCreateNetworkLoadBalancer OperationTypeEnum = "CREATE_NETWORK_LOAD_BALANCER" - OperationTypeUpdateNetworkLoadBalancer OperationTypeEnum = "UPDATE_NETWORK_LOAD_BALANCER" - OperationTypeDeleteNetworkLoadBalancer OperationTypeEnum = "DELETE_NETWORK_LOAD_BALANCER" - OperationTypeCreateBackend OperationTypeEnum = "CREATE_BACKEND" - OperationTypeUpdateBackend OperationTypeEnum = "UPDATE_BACKEND" - OperationTypeDeleteBackend OperationTypeEnum = "DELETE_BACKEND" - OperationTypeCreateListener OperationTypeEnum = "CREATE_LISTENER" - OperationTypeUpdateListener OperationTypeEnum = "UPDATE_LISTENER" - OperationTypeDeleteListener OperationTypeEnum = "DELETE_LISTENER" - OperationTypeCreateBackendset OperationTypeEnum = "CREATE_BACKENDSET" - OperationTypeUpdateBackendset OperationTypeEnum = "UPDATE_BACKENDSET" - OperationTypeDeleteBackendset OperationTypeEnum = "DELETE_BACKENDSET" - OperationTypeUpdateNsgs OperationTypeEnum = "UPDATE_NSGS" - OperationTypeUpdateHealthChecker OperationTypeEnum = "UPDATE_HEALTH_CHECKER" - OperationTypeChangeCompartment OperationTypeEnum = "CHANGE_COMPARTMENT" - OperationTypeAttachNlbToPod OperationTypeEnum = "ATTACH_NLB_TO_POD" - OperationTypeDetachNlbFromPod OperationTypeEnum = "DETACH_NLB_FROM_POD" -) - -var mappingOperationType = map[string]OperationTypeEnum{ - "CREATE_NETWORK_LOAD_BALANCER": OperationTypeCreateNetworkLoadBalancer, - "UPDATE_NETWORK_LOAD_BALANCER": OperationTypeUpdateNetworkLoadBalancer, - "DELETE_NETWORK_LOAD_BALANCER": OperationTypeDeleteNetworkLoadBalancer, - "CREATE_BACKEND": OperationTypeCreateBackend, - "UPDATE_BACKEND": OperationTypeUpdateBackend, - "DELETE_BACKEND": OperationTypeDeleteBackend, - "CREATE_LISTENER": OperationTypeCreateListener, - "UPDATE_LISTENER": OperationTypeUpdateListener, - "DELETE_LISTENER": OperationTypeDeleteListener, - "CREATE_BACKENDSET": OperationTypeCreateBackendset, - "UPDATE_BACKENDSET": OperationTypeUpdateBackendset, - "DELETE_BACKENDSET": OperationTypeDeleteBackendset, - "UPDATE_NSGS": OperationTypeUpdateNsgs, - "UPDATE_HEALTH_CHECKER": OperationTypeUpdateHealthChecker, - "CHANGE_COMPARTMENT": OperationTypeChangeCompartment, - "ATTACH_NLB_TO_POD": OperationTypeAttachNlbToPod, - "DETACH_NLB_FROM_POD": OperationTypeDetachNlbFromPod, -} - -// GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum -func GetOperationTypeEnumValues() []OperationTypeEnum { - values := make([]OperationTypeEnum, 0) - for _, v := range mappingOperationType { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/reserved_ip.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/reserved_ip.go deleted file mode 100644 index 9cda61605d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/reserved_ip.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// ReservedIp An object representing a reserved IP address to be attached or that is already attached to a network load balancer. -type ReservedIp struct { - - // OCID of the reserved public IP address created with the virtual cloud network. - // Reserved public IP addresses are IP addresses that are registered using the virtual cloud network API. - // Create a reserved public IP address. When you create the network load balancer, enter the OCID of the reserved public IP address in the - // reservedIp field to attach the IP address to the network load balancer. This task configures the network load balancer to listen to traffic on this IP address. - // Reserved public IP addresses are not deleted when the network load balancer is deleted. The IP addresses become unattached from the network load balancer. - // Example: "ocid1.publicip.oc1.phx.unique_ID" - Id *string `mandatory:"false" json:"id"` -} - -func (m ReservedIp) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/sort_order.go deleted file mode 100644 index 80f0e10d7f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/sort_order.go +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -// SortOrderEnum Enum with underlying type: string -type SortOrderEnum string - -// Set of constants representing the allowable values for SortOrderEnum -const ( - SortOrderAsc SortOrderEnum = "ASC" - SortOrderDesc SortOrderEnum = "DESC" -) - -var mappingSortOrder = map[string]SortOrderEnum{ - "ASC": SortOrderAsc, - "DESC": SortOrderDesc, -} - -// GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum -func GetSortOrderEnumValues() []SortOrderEnum { - values := make([]SortOrderEnum, 0) - for _, v := range mappingSortOrder { - values = append(values, v) - } - return values -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_details.go deleted file mode 100644 index acc63a2096..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBackendDetails The configuration details for updating a backend server. -type UpdateBackendDetails struct { - - // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger - // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections - // as a server weighted '1'. - // For more information about load balancing policies, see - // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). - // Example: `3` - Weight *int `mandatory:"false" json:"weight"` - - // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress - // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. - // Example: `false` - IsBackup *bool `mandatory:"false" json:"isBackup"` - - // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no - // incoming traffic. - // Example: `false` - IsDrain *bool `mandatory:"false" json:"isDrain"` - - // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming - // traffic. - // Example: `false` - IsOffline *bool `mandatory:"false" json:"isOffline"` -} - -func (m UpdateBackendDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_request_response.go deleted file mode 100644 index e5da8d2e5d..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_request_response.go +++ /dev/null @@ -1,98 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateBackendRequest wrapper for the UpdateBackend operation -type UpdateBackendRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // Details for updating a backend server. - UpdateBackendDetails `contributesTo:"body"` - - // The name of the backend set associated with the backend server. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The name of the backend server to update. - // If the backend was created with an explicitly specified name, that name should be used here. - // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. - // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. - // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` - BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateBackendRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateBackendRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateBackendResponse wrapper for the UpdateBackend operation -type UpdateBackendResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateBackendResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateBackendResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_details.go deleted file mode 100644 index befc7df27a..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateBackendSetDetails The configuration details for updating a load balancer backend set. -// For more information about backend set configuration, see -// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type UpdateBackendSetDetails struct { - - // The network load balancer policy for the backend set. To get a list of available policies, use the - // ListNetworkLoadBalancersPolicies operation. - // Example: `FIVE_TUPLE` - Policy *string `mandatory:"false" json:"policy"` - - // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. - // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. - // The value is true by default. - IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` - - // The IP version associated with the backend set. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` - - // An array of backends associated with the backend set. - Backends []BackendDetails `mandatory:"false" json:"backends"` - - HealthChecker *HealthCheckerDetails `mandatory:"false" json:"healthChecker"` -} - -func (m UpdateBackendSetDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_request_response.go deleted file mode 100644 index 4d40839fe1..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_backend_set_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateBackendSetRequest wrapper for the UpdateBackendSet operation -type UpdateBackendSetRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The details to update a backend set. - UpdateBackendSetDetails `contributesTo:"body"` - - // The name of the backend set to update. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateBackendSetRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateBackendSetRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateBackendSetResponse wrapper for the UpdateBackendSet operation -type UpdateBackendSetResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateBackendSetResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateBackendSetResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_details.go deleted file mode 100644 index c73f9b0add..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_details.go +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateHealthCheckerDetails The configuration details of the health checker. -type UpdateHealthCheckerDetails struct { - - // The protocol that the health check must use; either HTTP, UDP, or TCP. - // Example: `HTTP` - Protocol HealthCheckProtocolsEnum `mandatory:"false" json:"protocol,omitempty"` - - // The backend server port against which to run the health check. - // Example: `8080` - Port *int `mandatory:"false" json:"port"` - - // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies - // when recovering a server to the "healthy" state. - // Example: `3` - Retries *int `mandatory:"false" json:"retries"` - - // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply - // returns within this timeout period. - // Example: `3000` - TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` - - // The interval between health checks, in milliseconds. - // Example: `10000` - IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` - - // The path against which to run the health check. - // Example: `/healthcheck` - UrlPath *string `mandatory:"false" json:"urlPath"` - - // A regular expression for parsing the response body from the backend server. - // Example: `^((?!false).|\s)*$` - ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` - - // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, - // then you can use common HTTP status codes such as "200". - // Example: `200` - ReturnCode *int `mandatory:"false" json:"returnCode"` - - // Base64 encoded pattern to be sent as UDP or TCP health check probe. - RequestData []byte `mandatory:"false" json:"requestData"` - - // Base64 encoded pattern to be validated as UDP or TCP health check probe response. - ResponseData []byte `mandatory:"false" json:"responseData"` -} - -func (m UpdateHealthCheckerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_request_response.go deleted file mode 100644 index 5ee7c1af3f..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_health_checker_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateHealthCheckerRequest wrapper for the UpdateHealthChecker operation -type UpdateHealthCheckerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The health check policy configuration details. - UpdateHealthCheckerDetails `contributesTo:"body"` - - // The name of the backend set associated with the health check policy to be retrieved. - // Example: `example_backend_set` - BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateHealthCheckerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateHealthCheckerResponse wrapper for the UpdateHealthChecker operation -type UpdateHealthCheckerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateHealthCheckerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateHealthCheckerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_details.go deleted file mode 100644 index 30b220a3d7..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_details.go +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateListenerDetails The configuration of the listener. -// For more information about backend set configuration, see -// Managing Network Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). -type UpdateListenerDetails struct { - - // The name of the associated backend set. - // Example: `example_backend_set` - DefaultBackendSetName *string `mandatory:"false" json:"defaultBackendSetName"` - - // The communication port for the listener. - // Example: `80` - Port *int `mandatory:"false" json:"port"` - - // The protocol on which the listener accepts connection requests. - // For public network load balancers, ANY protocol refers to TCP/UDP. - // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). - // To get a list of valid protocols, use the ListNetworkLoadBalancersProtocols - // operation. - // Example: `TCP` - Protocol ListenerProtocolsEnum `mandatory:"false" json:"protocol,omitempty"` - - // IP version associated with the listener. - IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` -} - -func (m UpdateListenerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_request_response.go deleted file mode 100644 index a60f64d798..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_listener_request_response.go +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateListenerRequest wrapper for the UpdateListener operation -type UpdateListenerRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // Details to update a listener. - UpdateListenerDetails `contributesTo:"body"` - - // The name of the listener to update. - // Example: `example_listener` - ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateListenerRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateListenerRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateListenerResponse wrapper for the UpdateListener operation -type UpdateListenerResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateListenerResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateListenerResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_details.go deleted file mode 100644 index 52192b023e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_details.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNetworkLoadBalancerDetails Configuration details to update a network load balancer. -// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. -type UpdateNetworkLoadBalancerDetails struct { - - // The user-friendly display name for the network load balancer, which does not have to be unique and can be changed. - // Avoid entering confidential information. - // Example: `example_network_load_balancer` - DisplayName *string `mandatory:"false" json:"displayName"` - - // This parameter can be enabled only if backends are compute OCIDs. When enabled, the skipSourceDestinationCheck parameter is automatically - // enabled on the load balancer VNIC, and packets are sent to the backend with the entire IP header intact. - IsPreserveSourceDestination *bool `mandatory:"false" json:"isPreserveSourceDestination"` - - // IP version associated with the NLB. - NlbIpVersion NlbIpVersionEnum `mandatory:"false" json:"nlbIpVersion,omitempty"` - - // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Department": "Finance"}` - FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - - // Defined tags for this resource. Each key is predefined and scoped to a namespace. - // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). - // Example: `{"Operations": {"CostCenter": "42"}}` - DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` -} - -func (m UpdateNetworkLoadBalancerDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_details.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_details.go deleted file mode 100644 index 4e914c9b36..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_details.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// UpdateNetworkSecurityGroupsDetails An object representing an updated list of network security groups that overwrites the existing list of network security groups. -// * If the network load balancer has no configured network security groups, then the network load balancer uses the network security groups in this list. -// * If the network load balancer has a list of configured network security groups, then this list replaces the existing list. -// * If the network load balancer has a list of configured network security groups and this list is empty, then the operation removes all of the network security groups associated with the network load balancer. -type UpdateNetworkSecurityGroupsDetails struct { - - // An array of network security group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the network load - // balancer. - // During the creation of the network load balancer, the service adds the new network load balancer to the specified network security groups. - // The benefits of associating the network load balancer with network security groups include: - // * Network security groups define network security rules to govern ingress and egress traffic for the network load balancer. - // * The network security rules of other resources can reference the network security groups associated with the network load balancer - // to ensure access. - NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` -} - -func (m UpdateNetworkSecurityGroupsDetails) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_request_response.go deleted file mode 100644 index af9059b9f4..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_security_groups_request_response.go +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" -) - -// UpdateNetworkSecurityGroupsRequest wrapper for the UpdateNetworkSecurityGroups operation -type UpdateNetworkSecurityGroupsRequest struct { - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. - NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` - - // The details for updating the network security groups associated with the specified network load balancer. - UpdateNetworkSecurityGroupsDetails `contributesTo:"body"` - - // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a - // particular request, then provide the request identifier. - OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` - - // A token that uniquely identifies a request so that it can be retried in case of a timeout or - // server error without risk of rerunning that same action. Retry tokens expire after 24 - // hours but they can be invalidated before then due to conflicting operations. For example, if a resource - // has been deleted and purged from the system, then a retry of the original creation request - // might be rejected. - OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` - - // For optimistic concurrency control. In the PUT or DELETE call - // for a resource, set the `if-match` parameter to the value of the - // etag from a previous GET or POST response for that resource. - // The resource will be updated or deleted only if the etag you - // provide matches the current etag value of the resource. - IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` - - // Metadata about the request. This information will not be transmitted to the service, but - // represents information that the SDK will consume to drive retry behavior. - RequestMetadata common.RequestMetadata -} - -func (request UpdateNetworkSecurityGroupsRequest) String() string { - return common.PointerString(request) -} - -// HTTPRequest implements the OCIRequest interface -func (request UpdateNetworkSecurityGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { - - return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) -} - -// BinaryRequestBody implements the OCIRequest interface -func (request UpdateNetworkSecurityGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { - - return nil, false - -} - -// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. -func (request UpdateNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPolicy { - return request.RequestMetadata.RetryPolicy -} - -// UpdateNetworkSecurityGroupsResponse wrapper for the UpdateNetworkSecurityGroups operation -type UpdateNetworkSecurityGroupsResponse struct { - - // The underlying http response - RawResponse *http.Response - - // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. - OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - - // Unique Oracle-assigned identifier for the request. If you must contact - // Oracle about a particular request, then provide the request identifier. - OpcRequestId *string `presentIn:"header" name:"opc-request-id"` -} - -func (response UpdateNetworkSecurityGroupsResponse) String() string { - return common.PointerString(response) -} - -// HTTPResponse implements the OCIResponse interface -func (response UpdateNetworkSecurityGroupsResponse) HTTPResponse() *http.Response { - return response.RawResponse -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request.go deleted file mode 100644 index ffb4daa6ee..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequest A description of work request status. -type WorkRequest struct { - - // Type of work request. - OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` - - // Status of current work request. - Status OperationStatusEnum `mandatory:"true" json:"status"` - - // The identifier of the work request. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment that contains the work request. Work requests are scoped to - // the same compartment as the resource that the work request affects. If the work request affects multiple resources, - // and those resources are not in the same compartment, then the service team must choose the primary - // resource whose compartment is to be used. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The resources affected by this work request. - Resources []WorkRequestResource `mandatory:"true" json:"resources"` - - // Percentage of the request completed. - PercentComplete *float32 `mandatory:"true" json:"percentComplete"` - - // The date and time that the request was created, as described in - // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. - TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` - - // The date and time that the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), - // section 14.29. - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The date and time that the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m WorkRequest) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_collection.go deleted file mode 100644 index c1adf17c8b..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestCollection Wrapper object for an array of WorkRequest objects. -type WorkRequestCollection struct { - - // An array of WorkRequest objects. - Items []WorkRequestSummary `mandatory:"false" json:"items"` -} - -func (m WorkRequestCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error.go deleted file mode 100644 index a9b471f89e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestError An error encountered while running a work request. -type WorkRequestError struct { - - // A machine-usable code for the error that occured. Error codes are listed here: - // (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) - Code *string `mandatory:"true" json:"code"` - - // A human-readable description of the issue encountered. - Message *string `mandatory:"true" json:"message"` - - // The time the error occured in the form of an RFC3339 formatted date-time string. - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` -} - -func (m WorkRequestError) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error_collection.go deleted file mode 100644 index ccde159144..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_error_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestErrorCollection Wrapper object for an array of WorkRequestErrorSummary objects. -type WorkRequestErrorCollection struct { - - // An array of WorkRequestErrorSummary objects. - Items []WorkRequestError `mandatory:"false" json:"items"` -} - -func (m WorkRequestErrorCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry.go deleted file mode 100644 index b062a4107e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestLogEntry A log message from the running of a work request. -type WorkRequestLogEntry struct { - - // Human-readable log message. - Message *string `mandatory:"true" json:"message"` - - // The time the log message was written displayed as an RFC3339 formatted date-time string. - Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` -} - -func (m WorkRequestLogEntry) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry_collection.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry_collection.go deleted file mode 100644 index 07133b75bf..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_log_entry_collection.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestLogEntryCollection Wrapper object for an array of WorkRequestLogEntry objects. -type WorkRequestLogEntryCollection struct { - - // An array of WorkRequestLogEntry objects. - Items []WorkRequestLogEntry `mandatory:"false" json:"items"` -} - -func (m WorkRequestLogEntryCollection) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_resource.go deleted file mode 100644 index 97a7440b29..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_resource.go +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestResource A resource that a work request creates or on which the work request operates. -type WorkRequestResource struct { - - // The resource type that the work request affects. - EntityType *string `mandatory:"true" json:"entityType"` - - // The way in which this resource is affected by the work tracked in the work request. - // A resource being created, updated, or deleted remains in the IN_PROGRESS state until - // work is complete for that resource, at which point the resource transitions to CREATED, UPDATED, - // or DELETED, respectively. - ActionType ActionTypeEnum `mandatory:"true" json:"actionType"` - - // The identifier of the resource the work request affects. - Identifier *string `mandatory:"true" json:"identifier"` - - // The URI path on which the user can perform a GET request to access the resource metadata. - EntityUri *string `mandatory:"false" json:"entityUri"` -} - -func (m WorkRequestResource) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_summary.go deleted file mode 100644 index cf2da1113e..0000000000 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/work_request_summary.go +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. -// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. -// Code generated. DO NOT EDIT. - -// NetworkLoadBalancer API -// -// This describes the network load balancer API. -// - -package networkloadbalancer - -import ( - "github.com/oracle/oci-go-sdk/v49/common" -) - -// WorkRequestSummary Summary of work request object. -type WorkRequestSummary struct { - - // Type of work request. - OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` - - // Status of current work request. - Status OperationStatusEnum `mandatory:"true" json:"status"` - - // The identifier of the work request. - Id *string `mandatory:"true" json:"id"` - - // The OCID of the compartment that contains the work request. Work requests are scoped to - // the same compartment as the resource that the work request affects. If the work request affects multiple resources, - // and those resources are not in the same compartment, then the service team must choose the primary - // resource whose compartment is to be used. - CompartmentId *string `mandatory:"true" json:"compartmentId"` - - // The resources affected by this work request. - Resources []WorkRequestResource `mandatory:"true" json:"resources"` - - // Percentage of the request completed. - PercentComplete *float32 `mandatory:"true" json:"percentComplete"` - - // The date and time that the request was created, as described in - // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. - TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` - - // The date and time that the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), - // section 14.29. - TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` - - // The date and time that the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). - TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` -} - -func (m WorkRequestSummary) String() string { - return common.PointerString(m) -} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/LICENSE.txt b/vendor/github.com/oracle/oci-go-sdk/v65/LICENSE.txt similarity index 100% rename from vendor/github.com/oracle/oci-go-sdk/v49/LICENSE.txt rename to vendor/github.com/oracle/oci-go-sdk/v65/LICENSE.txt diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/NOTICE.txt b/vendor/github.com/oracle/oci-go-sdk/v65/NOTICE.txt similarity index 100% rename from vendor/github.com/oracle/oci-go-sdk/v49/NOTICE.txt rename to vendor/github.com/oracle/oci-go-sdk/v65/NOTICE.txt diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/certificate_retriever.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/certificate_retriever.go similarity index 98% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/certificate_retriever.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/certificate_retriever.go index 49a15cb08b..35f41c9910 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/certificate_retriever.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/certificate_retriever.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -9,7 +9,7 @@ import ( "crypto/x509" "encoding/pem" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "sync" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/configuration.go new file mode 100644 index 0000000000..4ffe5acc8b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/configuration.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package auth + +import ( + "crypto/rsa" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" +) + +type instancePrincipalConfigurationProvider struct { + keyProvider instancePrincipalKeyProvider + region *common.Region +} + +//defaultTokenPurpose used by the instance principal configuration provider when requesting instance principal tokens +const defaultTokenPurpose = "DEFAULT" + +//servicePrincipalTokenPurpose used by the instance principal configuration provider when requesting service principals tokens +const servicePrincipalTokenPurpose = "SERVICE_PRINCIPAL" + +//InstancePrincipalConfigurationProvider returns a configuration for instance principals +func InstancePrincipalConfigurationProvider() (common.ConfigurationProvider, error) { + return newInstancePrincipalConfigurationProvider("", defaultTokenPurpose, nil) +} + +//InstancePrincipalConfigurationProviderForRegion returns a configuration for instance principals with a given region +func InstancePrincipalConfigurationProviderForRegion(region common.Region) (common.ConfigurationProvider, error) { + return newInstancePrincipalConfigurationProvider(region, defaultTokenPurpose, nil) +} + +//InstancePrincipalConfigurationProviderWithCustomClient returns a configuration for instance principals using a modifier function to modify the HTTPRequestDispatcher +func InstancePrincipalConfigurationProviderWithCustomClient(modifier func(common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { + return newInstancePrincipalConfigurationProvider("", defaultTokenPurpose, modifier) +} + +//InstancePrincipalConfigurationForRegionWithCustomClient returns a configuration for instance principals with a given region using a modifier function to modify the HTTPRequestDispatcher +func InstancePrincipalConfigurationForRegionWithCustomClient(region common.Region, modifier func(common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { + return newInstancePrincipalConfigurationProvider(region, defaultTokenPurpose, modifier) +} + +func newInstancePrincipalConfigurationProvider(region common.Region, tokenPurpose string, modifier func(common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { + var err error + var keyProvider *instancePrincipalKeyProvider + if keyProvider, err = newInstancePrincipalKeyProvider(modifier, tokenPurpose); err != nil { + return nil, fmt.Errorf("failed to create a new key provider for instance principal: %s", err.Error()) + } + if len(region) > 0 { + return instancePrincipalConfigurationProvider{keyProvider: *keyProvider, region: ®ion}, nil + } + return instancePrincipalConfigurationProvider{keyProvider: *keyProvider, region: nil}, nil +} + +//InstancePrincipalConfigurationWithCerts returns a configuration for instance principals with a given region and hardcoded certificates in lieu of metadata service certs +func InstancePrincipalConfigurationWithCerts(region common.Region, leafCertificate, leafPassphrase, leafPrivateKey []byte, intermediateCertificates [][]byte) (common.ConfigurationProvider, error) { + return instancePrincipalConfigurationWithCertsAndPurpose(region, leafCertificate, leafPassphrase, leafPrivateKey, intermediateCertificates, defaultTokenPurpose, nil) +} + +//instancePrincipalConfigurationWithCertsAndPurpose returns a configuration for instance principals with a given region and hardcoded certificates in lieu of metadata service certs +func instancePrincipalConfigurationWithCertsAndPurpose(region common.Region, leafCertificate, leafPassphrase, leafPrivateKey []byte, + intermediateCertificates [][]byte, purpose string, modifier func(dispatcher common.HTTPRequestDispatcher) (common.HTTPRequestDispatcher, error)) (common.ConfigurationProvider, error) { + leafCertificateRetriever := staticCertificateRetriever{Passphrase: leafPassphrase, CertificatePem: leafCertificate, PrivateKeyPem: leafPrivateKey} + + //The .Refresh() call actually reads the certificates from the inputs + err := leafCertificateRetriever.Refresh() + if err != nil { + return nil, err + } + + certificate := leafCertificateRetriever.Certificate() + + tenancyID := extractTenancyIDFromCertificate(certificate) + fedClient, err := newX509FederationClientWithCerts(region, tenancyID, leafCertificate, leafPassphrase, leafPrivateKey, + intermediateCertificates, *newDispatcherModifier(modifier), purpose) + if err != nil { + return nil, err + } + + provider := instancePrincipalConfigurationProvider{ + keyProvider: instancePrincipalKeyProvider{ + Region: region, + FederationClient: fedClient, + TenancyID: tenancyID, + }, + region: ®ion, + } + return provider, nil + +} + +func (p instancePrincipalConfigurationProvider) PrivateRSAKey() (*rsa.PrivateKey, error) { + return p.keyProvider.PrivateRSAKey() +} + +func (p instancePrincipalConfigurationProvider) KeyID() (string, error) { + return p.keyProvider.KeyID() +} + +func (p instancePrincipalConfigurationProvider) TenancyOCID() (string, error) { + return p.keyProvider.TenancyOCID() +} + +func (p instancePrincipalConfigurationProvider) UserOCID() (string, error) { + return "", nil +} + +func (p instancePrincipalConfigurationProvider) KeyFingerprint() (string, error) { + return "", nil +} + +func (p instancePrincipalConfigurationProvider) Region() (string, error) { + if p.region == nil { + region := p.keyProvider.RegionForFederationClient() + common.Debugf("Region in instance principal configuration provider is nil. Returning federation clients region: %s", region) + return string(region), nil + } + return string(*p.region), nil +} + +func (p instancePrincipalConfigurationProvider) AuthType() (common.AuthConfig, error) { + return common.AuthConfig{common.InstancePrincipal, false, nil}, fmt.Errorf("unsupported, keep the interface") +} + +func (p instancePrincipalConfigurationProvider) Refreshable() bool { + return true +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/dispatcher_modifier.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/dispatcher_modifier.go similarity index 93% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/dispatcher_modifier.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/dispatcher_modifier.go index 4772a420b2..02f81a61a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/dispatcher_modifier.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/dispatcher_modifier.go @@ -1,9 +1,9 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth -import "github.com/oracle/oci-go-sdk/v49/common" +import "github.com/oracle/oci-go-sdk/v65/common" //dispatcherModifier gives ability to modify a HTTPRequestDispatcher before use. type dispatcherModifier struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/federation_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client.go similarity index 97% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/federation_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client.go index 81d831abec..c44f74dbba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/federation_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/federation_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Package auth provides supporting functions and structs for authentication @@ -12,13 +12,15 @@ import ( "encoding/pem" "errors" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" "io/ioutil" + "math" "net/http" "os" "strings" "sync" "time" + + "github.com/oracle/oci-go-sdk/v65/common" ) // federationClient is a client to retrieve the security token necessary to sign a request. @@ -290,22 +292,24 @@ func (c *x509FederationClient) renewSecurityToken() (err error) { } func (c *x509FederationClient) getSecurityToken() (securityToken, error) { - request := c.makeX509FederationRequest() - var err error var httpRequest http.Request - if httpRequest, err = common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "", request); err != nil { - return nil, fmt.Errorf("failed to make http request: %s", err.Error()) - } - var httpResponse *http.Response defer common.CloseBodyIfValid(httpResponse) for retry := 0; retry < 5; retry++ { + request := c.makeX509FederationRequest() + + if httpRequest, err = common.MakeDefaultHTTPRequestWithTaggedStruct(http.MethodPost, "", request); err != nil { + return nil, fmt.Errorf("failed to make http request: %s", err.Error()) + } + if httpResponse, err = c.authClient.Call(context.Background(), &httpRequest); err == nil { break } - time.Sleep(250 * time.Microsecond) + + nextDuration := time.Duration(1000.0*(math.Pow(2.0, float64(retry)))) * time.Millisecond + time.Sleep(nextDuration) } if err != nil { return nil, fmt.Errorf("failed to call: %s", err.Error()) diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/instance_principal_delegation_token_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_delegation_token_provider.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/instance_principal_delegation_token_provider.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_delegation_token_provider.go index f80bb06fb0..0dac669459 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/instance_principal_delegation_token_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_delegation_token_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -7,7 +7,7 @@ import ( "crypto/rsa" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) type instancePrincipalDelegationTokenConfigurationProvider struct { @@ -15,11 +15,18 @@ type instancePrincipalDelegationTokenConfigurationProvider struct { delegationToken string region *common.Region } +type instancePrincipalDelegationTokenError struct { + err error +} + +func (ipe instancePrincipalDelegationTokenError) Error() string { + return fmt.Sprintf("%s\nInstance principals delegation token authentication can only be used on specific OCI services. Please confirm this code is running on the correct environment", ipe.err.Error()) +} //InstancePrincipalDelegationTokenConfigurationProvider returns a configuration for obo token instance principals func InstancePrincipalDelegationTokenConfigurationProvider(delegationToken *string) (common.ConfigurationProvider, error) { if delegationToken == nil || len(*delegationToken) == 0 { - return nil, fmt.Errorf("failed to create a delagationTokenConfigurationProvider: token is a mondatory input paras") + return nil, instancePrincipalDelegationTokenError{err: fmt.Errorf("failed to create a delagationTokenConfigurationProvider: token is a mondatory input paras")} } return newInstancePrincipalDelegationTokenConfigurationProvider(delegationToken, "", nil) } @@ -27,7 +34,7 @@ func InstancePrincipalDelegationTokenConfigurationProvider(delegationToken *stri //InstancePrincipalDelegationTokenConfigurationProviderForRegion returns a configuration for obo token instance principals with a given region func InstancePrincipalDelegationTokenConfigurationProviderForRegion(delegationToken *string, region common.Region) (common.ConfigurationProvider, error) { if delegationToken == nil || len(*delegationToken) == 0 { - return nil, fmt.Errorf("failed to create a delagationTokenConfigurationProvider: token is a mondatory input paras") + return nil, instancePrincipalDelegationTokenError{err: fmt.Errorf("failed to create a delagationTokenConfigurationProvider: token is a mondatory input paras")} } return newInstancePrincipalDelegationTokenConfigurationProvider(delegationToken, region, nil) } @@ -37,7 +44,7 @@ func newInstancePrincipalDelegationTokenConfigurationProvider(delegationToken *s keyProvider, err := newInstancePrincipalKeyProvider(modifier, "") if err != nil { - return nil, fmt.Errorf("failed to create a new key provider for instance principal: %s", err.Error()) + return nil, instancePrincipalDelegationTokenError{err: fmt.Errorf("failed to create a new key provider for instance principal: %s", err.Error())} } if len(region) > 0 { return instancePrincipalDelegationTokenConfigurationProvider{*keyProvider, *delegationToken, ®ion}, err @@ -82,3 +89,7 @@ func (p instancePrincipalDelegationTokenConfigurationProvider) AuthType() (commo token := p.delegationToken return common.AuthConfig{common.InstancePrincipalDelegationToken, false, &token}, nil } + +func (p instancePrincipalDelegationTokenConfigurationProvider) Refreshable() bool { + return true +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/instance_principal_key_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_key_provider.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/instance_principal_key_provider.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_key_provider.go index c23f775c9b..ccefcade8e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/instance_principal_key_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/instance_principal_key_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) const ( @@ -42,6 +42,14 @@ type instancePrincipalKeyProvider struct { TenancyID string } +type instancePrincipalError struct { + err error +} + +func (ipe instancePrincipalError) Error() string { + return fmt.Sprintf("%s\nInstance principals authentication can only be used on OCI compute instances. Please confirm this code is running on an OCI compute instance.\nSee https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm for more info", ipe.err.Error()) +} + // newInstancePrincipalKeyProvider creates and returns an instancePrincipalKeyProvider instance based on // x509FederationClient. // @@ -58,7 +66,7 @@ func newInstancePrincipalKeyProvider(modifier func(common.HTTPRequestDispatcher) client, err := clientModifier.Modify(&http.Client{}) if err != nil { err = fmt.Errorf("failed to modify client: %s", err.Error()) - return nil, err + return nil, instancePrincipalError{err: err} } var region common.Region @@ -66,7 +74,7 @@ func newInstancePrincipalKeyProvider(modifier func(common.HTTPRequestDispatcher) if region, err = getRegionForFederationClient(client, regionURL); err != nil { err = fmt.Errorf("failed to get the region name from %s: %s", regionURL, err.Error()) common.Logf("%v\n", err) - return nil, err + return nil, instancePrincipalError{err: err} } leafCertificateRetriever := newURLBasedX509CertificateRetriever(client, @@ -79,7 +87,7 @@ func newInstancePrincipalKeyProvider(modifier func(common.HTTPRequestDispatcher) if err = leafCertificateRetriever.Refresh(); err != nil { err = fmt.Errorf("failed to refresh the leaf certificate: %s", err.Error()) - return nil, err + return nil, instancePrincipalError{err: err} } tenancyID := extractTenancyIDFromCertificate(leafCertificateRetriever.Certificate()) @@ -88,7 +96,7 @@ func newInstancePrincipalKeyProvider(modifier func(common.HTTPRequestDispatcher) if err != nil { err = fmt.Errorf("failed to create federation client: %s", err.Error()) - return nil, err + return nil, instancePrincipalError{err: err} } provider = &instancePrincipalKeyProvider{FederationClient: federationClient, TenancyID: tenancyID, Region: region} @@ -130,7 +138,7 @@ func (p *instancePrincipalKeyProvider) RegionForFederationClient() common.Region func (p *instancePrincipalKeyProvider) PrivateRSAKey() (privateKey *rsa.PrivateKey, err error) { if privateKey, err = p.FederationClient.PrivateKey(); err != nil { err = fmt.Errorf("failed to get private key: %s", err.Error()) - return nil, err + return nil, instancePrincipalError{err: err} } return privateKey, nil } @@ -139,7 +147,8 @@ func (p *instancePrincipalKeyProvider) KeyID() (string, error) { var securityToken string var err error if securityToken, err = p.FederationClient.SecurityToken(); err != nil { - return "", fmt.Errorf("failed to get security token: %s", err.Error()) + err = fmt.Errorf("failed to get security token: %s", err.Error()) + return "", instancePrincipalError{err: err} } return fmt.Sprintf("ST$%s", securityToken), nil } @@ -147,3 +156,7 @@ func (p *instancePrincipalKeyProvider) KeyID() (string, error) { func (p *instancePrincipalKeyProvider) TenancyOCID() (string, error) { return p.TenancyID, nil } + +func (p *instancePrincipalKeyProvider) Refreshable() bool { + return true +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/jwt.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/jwt.go similarity index 94% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/jwt.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/jwt.go index b9a589aa8b..ae3a853544 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/jwt.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/jwt.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -8,7 +8,7 @@ import ( "encoding/base64" "encoding/json" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" "strings" "time" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resouce_principal_key_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resouce_principal_key_provider.go new file mode 100644 index 0000000000..43c6804608 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resouce_principal_key_provider.go @@ -0,0 +1,260 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package auth + +import ( + "crypto/rsa" + "errors" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "os" + "path" +) + +const ( + //ResourcePrincipalVersion2_2 is a supported version for resource principals + ResourcePrincipalVersion2_2 = "2.2" + //ResourcePrincipalVersionEnvVar environment var name for version + ResourcePrincipalVersionEnvVar = "OCI_RESOURCE_PRINCIPAL_VERSION" + //ResourcePrincipalRPSTEnvVar environment var name holding the token or a path to the token + ResourcePrincipalRPSTEnvVar = "OCI_RESOURCE_PRINCIPAL_RPST" + //ResourcePrincipalPrivatePEMEnvVar environment var holding a rsa private key in pem format or a path to one + ResourcePrincipalPrivatePEMEnvVar = "OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM" + //ResourcePrincipalPrivatePEMPassphraseEnvVar environment var holding the passphrase to a key or a path to one + ResourcePrincipalPrivatePEMPassphraseEnvVar = "OCI_RESOURCE_PRINCIPAL_PRIVATE_PEM_PASSPHRASE" + //ResourcePrincipalRegionEnvVar environment variable holding a region + ResourcePrincipalRegionEnvVar = "OCI_RESOURCE_PRINCIPAL_REGION" + + //ResourcePrincipalVersion1_1 is a supported version for resource principals + ResourcePrincipalVersion1_1 = "1.1" + //ResourcePrincipalSessionTokenEndpoint endpoint for retrieving the Resource Principal Session Token + ResourcePrincipalSessionTokenEndpoint = "OCI_RESOURCE_PRINCIPAL_RPST_ENDPOINT" + //ResourcePrincipalTokenEndpoint endpoint for retrieving the Resource Principal Token + ResourcePrincipalTokenEndpoint = "OCI_RESOURCE_PRINCIPAL_RPT_ENDPOINT" + + // TenancyOCIDClaimKey is the key used to look up the resource tenancy in an RPST + TenancyOCIDClaimKey = "res_tenant" + // CompartmentOCIDClaimKey is the key used to look up the resource compartment in an RPST + CompartmentOCIDClaimKey = "res_compartment" +) + +// ConfigurationProviderWithClaimAccess mixes in a method to access the claims held on the underlying security token +type ConfigurationProviderWithClaimAccess interface { + common.ConfigurationProvider + ClaimHolder +} + +// ResourcePrincipalConfigurationProvider returns a resource principal configuration provider using well known +// environment variables to look up token information. The environment variables can either paths or contain the material value +// of the keys. However in the case of the keys and tokens paths and values can not be mixed +func ResourcePrincipalConfigurationProvider() (ConfigurationProviderWithClaimAccess, error) { + var version string + var ok bool + if version, ok = os.LookupEnv(ResourcePrincipalVersionEnvVar); !ok { + err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) + return nil, resourcePrincipalError{err: err} + } + + switch version { + case ResourcePrincipalVersion2_2: + rpst := requireEnv(ResourcePrincipalRPSTEnvVar) + if rpst == nil { + err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) + return nil, resourcePrincipalError{err: err} + } + private := requireEnv(ResourcePrincipalPrivatePEMEnvVar) + if private == nil { + err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) + return nil, resourcePrincipalError{err: err} + } + passphrase := requireEnv(ResourcePrincipalPrivatePEMPassphraseEnvVar) + region := requireEnv(ResourcePrincipalRegionEnvVar) + if region == nil { + err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalRegionEnvVar) + return nil, resourcePrincipalError{err: err} + } + return newResourcePrincipalKeyProvider22( + *rpst, *private, passphrase, *region) + case ResourcePrincipalVersion1_1: + return newResourcePrincipalKeyProvider11(DefaultRptPathProvider{}) + default: + err := fmt.Errorf("can not create resource principal, environment variable: %s, must be valid", ResourcePrincipalVersionEnvVar) + return nil, resourcePrincipalError{err: err} + } +} + +// ResourcePrincipalConfigurationProviderWithPathProvider returns a resource principal configuration provider using path provider. +func ResourcePrincipalConfigurationProviderWithPathProvider(pathProvider PathProvider) (ConfigurationProviderWithClaimAccess, error) { + var version string + var ok bool + if version, ok = os.LookupEnv(ResourcePrincipalVersionEnvVar); !ok { + err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalVersionEnvVar) + return nil, resourcePrincipalError{err: err} + } else if version != ResourcePrincipalVersion1_1 { + err := fmt.Errorf("can not create resource principal, environment variable: %s, must be %s", ResourcePrincipalVersionEnvVar, ResourcePrincipalVersion1_1) + return nil, resourcePrincipalError{err: err} + } + return newResourcePrincipalKeyProvider11(pathProvider) +} + +func newResourcePrincipalKeyProvider11(pathProvider PathProvider) (ConfigurationProviderWithClaimAccess, error) { + rptEndpoint := requireEnv(ResourcePrincipalTokenEndpoint) + if rptEndpoint == nil { + err := fmt.Errorf("can not create resource principal, environment variable: %s, not present", ResourcePrincipalTokenEndpoint) + return nil, resourcePrincipalError{err: err} + } + rptPath, err := pathProvider.Path() + if err != nil { + err := fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) + return nil, resourcePrincipalError{err: err} + } + resourceID, err := pathProvider.ResourceID() + if err != nil { + err := fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) + return nil, resourcePrincipalError{err: err} + } + rp, err := resourcePrincipalConfigurationProviderV1(*rptEndpoint+*rptPath, *resourceID) + if err != nil { + err := fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) + return nil, resourcePrincipalError{err: err} + } + return rp, nil +} + +func requireEnv(key string) *string { + if val, ok := os.LookupEnv(key); ok { + return &val + } + return nil +} + +// resourcePrincipalKeyProvider22 is key provider that reads from specified the specified environment variables +// the environment variables can host the material keys/passphrases or they can be paths to files that need to be read +type resourcePrincipalKeyProvider struct { + FederationClient federationClient + KeyProviderRegion common.Region +} + +func newResourcePrincipalKeyProvider22(sessionTokenLocation, privatePemLocation string, + passphraseLocation *string, region string) (*resourcePrincipalKeyProvider, error) { + + //Check both the the passphrase and the key are paths + if passphraseLocation != nil && (!isPath(privatePemLocation) && isPath(*passphraseLocation) || + isPath(privatePemLocation) && !isPath(*passphraseLocation)) { + err := fmt.Errorf("cant not create resource principal: both key and passphrase need to be path or none needs to be path") + return nil, resourcePrincipalError{err: err} + } + + var supplier sessionKeySupplier + var err error + + //File based case + if isPath(privatePemLocation) { + supplier, err = newFileBasedKeySessionSupplier(privatePemLocation, passphraseLocation) + if err != nil { + err := fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) + return nil, resourcePrincipalError{err: err} + } + } else { + //else the content is in the env vars + var passphrase []byte + if passphraseLocation != nil { + passphrase = []byte(*passphraseLocation) + } + supplier, err = newStaticKeySessionSupplier([]byte(privatePemLocation), passphrase) + if err != nil { + err := fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) + return nil, resourcePrincipalError{err: err} + } + } + + var fd federationClient + if isPath(sessionTokenLocation) { + fd, _ = newFileBasedFederationClient(sessionTokenLocation, supplier) + } else { + fd, err = newStaticFederationClient(sessionTokenLocation, supplier) + if err != nil { + err := fmt.Errorf("can not create resource principal, due to: %s ", err.Error()) + return nil, resourcePrincipalError{err: err} + } + } + + rs := resourcePrincipalKeyProvider{ + FederationClient: fd, + KeyProviderRegion: common.StringToRegion(region), + } + return &rs, nil +} + +func (p *resourcePrincipalKeyProvider) PrivateRSAKey() (privateKey *rsa.PrivateKey, err error) { + if privateKey, err = p.FederationClient.PrivateKey(); err != nil { + err = fmt.Errorf("failed to get private key: %s", err.Error()) + return nil, resourcePrincipalError{err: err} + } + return privateKey, nil +} + +func (p *resourcePrincipalKeyProvider) KeyID() (string, error) { + var securityToken string + var err error + if securityToken, err = p.FederationClient.SecurityToken(); err != nil { + err = fmt.Errorf("failed to get security token: %s", err.Error()) + return "", resourcePrincipalError{err: err} + } + return fmt.Sprintf("ST$%s", securityToken), nil +} + +func (p *resourcePrincipalKeyProvider) Region() (string, error) { + return string(p.KeyProviderRegion), nil +} + +var ( + // ErrNonStringClaim is returned if the token has a claim for a key, but it's not a string value + ErrNonStringClaim = errors.New("claim does not have a string value") +) + +func (p *resourcePrincipalKeyProvider) TenancyOCID() (string, error) { + if claim, err := p.GetClaim(TenancyOCIDClaimKey); err != nil { + return "", err + } else if tenancy, ok := claim.(string); ok { + return tenancy, nil + } else { + return "", ErrNonStringClaim + } +} + +func (p *resourcePrincipalKeyProvider) GetClaim(claim string) (interface{}, error) { + return p.FederationClient.GetClaim(claim) +} + +func (p *resourcePrincipalKeyProvider) KeyFingerprint() (string, error) { + return "", nil +} + +func (p *resourcePrincipalKeyProvider) UserOCID() (string, error) { + return "", nil +} + +func (p *resourcePrincipalKeyProvider) AuthType() (common.AuthConfig, error) { + return common.AuthConfig{common.UnknownAuthenticationType, false, nil}, + fmt.Errorf("unsupported, keep the interface") +} + +func (p *resourcePrincipalKeyProvider) Refreshable() bool { + return true +} + +// By contract for the the content of a resource principal to be considered path, it needs to be +// an absolute path. +func isPath(str string) bool { + return path.IsAbs(str) +} + +type resourcePrincipalError struct { + err error +} + +func (ipe resourcePrincipalError) Error() string { + return fmt.Sprintf("%s\nResource principals authentication can only be used in certain OCI services. Please check that the OCI service you're running this code from supports Resource principals.\nSee https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm for more info.", ipe.err.Error()) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resource_principal_token_path_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_token_path_provider.go similarity index 98% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resource_principal_token_path_provider.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_token_path_provider.go index 5bc58ccced..9e6c211538 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resource_principal_token_path_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principal_token_path_provider.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resource_principals_v1.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v1.go similarity index 98% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resource_principals_v1.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v1.go index 8f9e017639..143b8ee26f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/resource_principals_v1.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/resource_principals_v1.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -7,12 +7,12 @@ import ( "context" "crypto/rsa" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "net/http" "net/url" "sync" "time" + + "github.com/oracle/oci-go-sdk/v65/common" ) // resourcePrincipalFederationClient is the client used to to talk acquire resource principals @@ -270,6 +270,10 @@ func (p resourcePrincipalConfigurationProvider) Region() (string, error) { return string(*p.region), nil } +func (p resourcePrincipalConfigurationProvider) Refreshable() bool { + return true +} + // resourcePrincipalConfigurationProviderForInstanceWithClients returns a configuration for instance principals // resourcePrincipalTargetServiceTokenClient and resourcePrincipalSessionTokenClient are clients that at last need to have // their base path and host properly set for their respective services. Additionally the clients can be further customized diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/service_principal.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/service_principal.go similarity index 98% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/service_principal.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/service_principal.go index fe28104730..8a273b28c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/service_principal.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/service_principal.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -9,7 +9,7 @@ import ( "io/ioutil" "path" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) type servicePrincipalKeyProvider struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/utils.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/utils.go similarity index 96% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/auth/utils.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/auth/utils.go index e74ec93a4e..a6bfc193f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/auth/utils.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/auth/utils.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package auth @@ -12,7 +12,7 @@ import ( "net/http/httputil" "strings" - "github.com/oracle/oci-go-sdk/v49/common" + "github.com/oracle/oci-go-sdk/v65/common" ) // httpGet makes a simple HTTP GET request to the given URL, expecting only "200 OK" status code. diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/circuit_breaker.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/circuit_breaker.go new file mode 100644 index 0000000000..abedd7f261 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/circuit_breaker.go @@ -0,0 +1,383 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package common + +import ( + "fmt" + "net/http" + "os" + "strconv" + "sync" + "time" + + "github.com/sony/gobreaker" +) + +const ( + // CircuitBreakerDefaultFailureRateThreshold is the requests failure rate which calculates in at most 120 seconds, once reaches to this rate, the circuit breaker state changes from closed to open + CircuitBreakerDefaultFailureRateThreshold float64 = 0.80 + // CircuitBreakerDefaultClosedWindow is the default value of closeStateWindow, which is the cyclic period of the closed state + CircuitBreakerDefaultClosedWindow time.Duration = 120 * time.Second + // CircuitBreakerDefaultResetTimeout is the default value of openStateWindow, which is the wait time before setting the breaker to halfOpen state from open state + CircuitBreakerDefaultResetTimeout time.Duration = 30 * time.Second + // CircuitBreakerDefaultVolumeThreshold is the default value of minimumRequests in closed status + CircuitBreakerDefaultVolumeThreshold uint32 = 10 + // DefaultCircuitBreakerName is the name of the circuit breaker + DefaultCircuitBreakerName string = "DefaultCircuitBreaker" + // DefaultCircuitBreakerServiceName is the servicename of the circuit breaker + DefaultCircuitBreakerServiceName string = "" + // DefaultCircuitBreakerHistoryCount is the default count of failed response history in circuit breaker + DefaultCircuitBreakerHistoryCount int = 5 +) + +// CircuitBreakerSetting wraps all exposed configurable params of circuit breaker +type CircuitBreakerSetting struct { + // Name is the Circuit Breaker's identifier + name string + // isEnabled is the switch of the circuit breaker, used for disable circuit breaker + isEnabled bool + // closeStateWindow is the cyclic period of the closed state, the default value is 120 seconds + closeStateWindow time.Duration + // openStateWindow is the wait time before setting the breaker to halfOpen state from open state, the default value is 30 seconds + openStateWindow time.Duration + // failureRateThreshold is the failure rate which calculates in at most closeStateWindow seconds, once reaches to this rate, the circuit breaker state changes from closed to open + // the circuit will transition from closed to open, the default value is 80% + failureRateThreshold float64 + // minimumRequests is the minimum number of counted requests in closed state, the default value is 10 requests + minimumRequests uint32 + // successStatCodeMap is the error(s) of StatusCode returned from service, which should be considered as the success or failure accounted by circuit breaker + // successStatCodeMap and successStatErrCodeMap are combined to use, if both StatusCode and ErrorCode are required, no need to add it to successStatCodeMap, + // the default value is [429, 500, 502, 503, 504] + successStatCodeMap map[int]bool + // successStatErrCodeMap is the error(s) of StatusCode and ErrorCode returned from service, which should be considered + // as the success or failure accounted by circuit breaker + // the default value is {409, "IncorrectState"} + successStatErrCodeMap map[StatErrCode]bool + // serviceName is the name of the service which can be set using withServiceName option for NewCircuitBreaker. + // the default value is empty string + serviceName string + // numberOfRecordedHistoryResponse is the number of failure responses stored in Circuit breaker history for debugging purpose + // the default value is 5 + numberOfRecordedHistoryResponse int +} + +// Convert CircuitBreakerSetting to human-readable string representation +func (cbst CircuitBreakerSetting) String() string { + return fmt.Sprintf("{name=%v, isEnabled=%v, closeStateWindow=%v, openStateWindow=%v, failureRateThreshold=%v, minimumRequests=%v, successStatCodeMap=%v, successStatErrCodeMap=%v, serviceName=%v, historyCount=%v}", + cbst.name, cbst.isEnabled, cbst.closeStateWindow, cbst.openStateWindow, cbst.failureRateThreshold, cbst.minimumRequests, cbst.successStatCodeMap, cbst.successStatErrCodeMap, cbst.serviceName, cbst.numberOfRecordedHistoryResponse) +} + +// ResponseHistory wraps the response params +type ResponseHistory struct { + timestamp time.Time + opcReqID string + errorCode string + errorMessage string + statusCode int +} + +//Convert ResponseHistory to human-readable string representation +func (rh ResponseHistory) String() string { + return fmt.Sprintf("Opc-Req-id - %v\nErrorCode - %v - %v\nErrorMessage - %v\n\n", rh.opcReqID, rh.statusCode, rh.errorCode, rh.errorMessage) +} + +// AddToHistory processed the response and adds to response history queue +func (ocb *OciCircuitBreaker) AddToHistory(resp *http.Response, err ServiceError) { + respHist := new(ResponseHistory) + respHist.opcReqID = err.GetOpcRequestID() + respHist.errorCode = err.GetCode() + respHist.errorMessage = err.GetMessage() + respHist.statusCode = err.GetHTTPStatusCode() + respHist.timestamp, _ = time.Parse(time.RFC1123, resp.Header.Get("Date")) + ocb.historyQueueMutex.Lock() + defer ocb.historyQueueMutex.Unlock() + ocb.historyQueue = append(ocb.historyQueue, *respHist) + // cleaning up older values + if len(ocb.historyQueue) > ocb.Cbst.numberOfRecordedHistoryResponse { + // We have reached the capacity. Clean up the oldest value + ocb.historyQueue = ocb.historyQueue[1:] + } + for index := len(ocb.historyQueue) - 1; index >= 0; index-- { + if time.Since(ocb.historyQueue[index].timestamp) > ocb.Cbst.closeStateWindow { + // This response is older than the circuit breaker closeStateWindow. + // Remove all the older responses from 0 to index + ocb.historyQueue = ocb.historyQueue[index+1:] + break + } + } + return +} + +// GetHistory processes the rsponse in queue to construct a String +func (ocb *OciCircuitBreaker) GetHistory() string { + getHistoryString := "" + ocb.historyQueueMutex.Lock() + defer ocb.historyQueueMutex.Unlock() + for _, value := range ocb.historyQueue { + getHistoryString += value.String() + } + return getHistoryString +} + +// OciCircuitBreaker wraps all exposed configurable params of circuit breaker and 3P gobreaker CircuirBreaker +type OciCircuitBreaker struct { + Cbst *CircuitBreakerSetting + Cb *gobreaker.CircuitBreaker + historyQueue []ResponseHistory + historyQueueMutex sync.Mutex +} + +// NewOciCircuitBreaker is used for initializing specified oci circuit breaker configuration with circuit breaker settings +func NewOciCircuitBreaker(cbst *CircuitBreakerSetting, gbcb *gobreaker.CircuitBreaker) *OciCircuitBreaker { + ocb := new(OciCircuitBreaker) + ocb.Cbst = cbst + if ocb.Cbst.numberOfRecordedHistoryResponse == 0 { + ocb.Cbst.numberOfRecordedHistoryResponse = getDefaultNumHistoryCount() + } + ocb.Cb = gbcb + ocb.historyQueue = make([]ResponseHistory, 0, ocb.Cbst.numberOfRecordedHistoryResponse) + + return ocb +} + +// CircuitBreakerOption is the type of the options for NewCircuitBreakerWithOptions. +type CircuitBreakerOption func(cbst *CircuitBreakerSetting) + +// NewGoCircuitBreaker is a function to initialize a CircuitBreaker object with the specified configuration +// Add the interface, to allow the user directly use the 3P gobreaker.Setting's params. +func NewGoCircuitBreaker(st gobreaker.Settings) *gobreaker.CircuitBreaker { + return gobreaker.NewCircuitBreaker(st) +} + +// DefaultCircuitBreakerSetting is used for set circuit breaker with default config +func DefaultCircuitBreakerSetting() *CircuitBreakerSetting { + successStatErrCodeMap := map[StatErrCode]bool{ + {409, "IncorrectState"}: false, + } + successStatCodeMap := map[int]bool{ + 429: false, + 500: false, + 502: false, + 503: false, + 504: false, + } + return newCircuitBreakerSetting( + WithName(DefaultCircuitBreakerName), + WithIsEnabled(true), + WithCloseStateWindow(CircuitBreakerDefaultClosedWindow), + WithOpenStateWindow(CircuitBreakerDefaultResetTimeout), + WithFailureRateThreshold(CircuitBreakerDefaultFailureRateThreshold), + WithMinimumRequests(CircuitBreakerDefaultVolumeThreshold), + WithSuccessStatErrCodeMap(successStatErrCodeMap), + WithSuccessStatCodeMap(successStatCodeMap), + WithHistoryCount(getDefaultNumHistoryCount())) +} + +// DefaultCircuitBreakerSettingWithServiceName is used for set circuit breaker with default config +func DefaultCircuitBreakerSettingWithServiceName(servicename string) *CircuitBreakerSetting { + successStatErrCodeMap := map[StatErrCode]bool{ + {409, "IncorrectState"}: false, + } + successStatCodeMap := map[int]bool{ + 429: false, + 500: false, + 502: false, + 503: false, + 504: false, + } + return newCircuitBreakerSetting( + WithName(DefaultCircuitBreakerName), + WithIsEnabled(true), + WithCloseStateWindow(CircuitBreakerDefaultClosedWindow), + WithOpenStateWindow(CircuitBreakerDefaultResetTimeout), + WithFailureRateThreshold(CircuitBreakerDefaultFailureRateThreshold), + WithMinimumRequests(CircuitBreakerDefaultVolumeThreshold), + WithSuccessStatErrCodeMap(successStatErrCodeMap), + WithSuccessStatCodeMap(successStatCodeMap), + WithServiceName(servicename), + WithHistoryCount(getDefaultNumHistoryCount())) +} + +// NoCircuitBreakerSetting is used for disable Circuit Breaker +func NoCircuitBreakerSetting() *CircuitBreakerSetting { + return NewCircuitBreakerSettingWithOptions(WithIsEnabled(false)) +} + +// NewCircuitBreakerSettingWithOptions is a helper method to assemble a CircuitBreakerSetting object. +// It starts out with the values returned by defaultCircuitBreakerSetting(). +func NewCircuitBreakerSettingWithOptions(opts ...CircuitBreakerOption) *CircuitBreakerSetting { + cbst := DefaultCircuitBreakerSettingWithServiceName(DefaultCircuitBreakerServiceName) + // allow changing values + for _, opt := range opts { + opt(cbst) + } + if defaultLogger.LogLevel() == verboseLogging { + Debugf("Circuit Breaker setting: %s\n", cbst.String()) + } + + return cbst +} + +// NewCircuitBreaker is used for initialing specified circuit breaker configuration with base client +func NewCircuitBreaker(cbst *CircuitBreakerSetting) *OciCircuitBreaker { + if !cbst.isEnabled { + return nil + } + st := gobreaker.Settings{} + customizeGoBreakerSetting(&st, cbst) + gbcb := gobreaker.NewCircuitBreaker(st) + + return NewOciCircuitBreaker(cbst, gbcb) +} + +func newCircuitBreakerSetting(opts ...CircuitBreakerOption) *CircuitBreakerSetting { + cbSetting := CircuitBreakerSetting{} + + // allow changing values + for _, opt := range opts { + opt(&cbSetting) + } + return &cbSetting +} + +// customizeGoBreakerSetting is used for converting CircuitBreakerSetting to 3P gobreaker's setting type +func customizeGoBreakerSetting(st *gobreaker.Settings, cbst *CircuitBreakerSetting) { + st.Name = cbst.name + st.Timeout = cbst.openStateWindow + st.Interval = cbst.closeStateWindow + st.OnStateChange = func(name string, from gobreaker.State, to gobreaker.State) { + if to == gobreaker.StateOpen { + Debugf("Circuit Breaker %s is now in Open State\n", name) + } + } + st.ReadyToTrip = func(counts gobreaker.Counts) bool { + failureRatio := float64(counts.TotalFailures) / float64(counts.Requests) + return counts.Requests >= cbst.minimumRequests && failureRatio >= cbst.failureRateThreshold + } + st.IsSuccessful = func(err error) bool { + if serviceErr, ok := IsServiceError(err); ok { + if isSuccessful, ok := cbst.successStatCodeMap[serviceErr.GetHTTPStatusCode()]; ok { + return isSuccessful + } + if isSuccessful, ok := cbst.successStatErrCodeMap[StatErrCode{serviceErr.GetHTTPStatusCode(), serviceErr.GetCode()}]; ok { + return isSuccessful + } + } + return true + } +} + +// WithName is the option for NewCircuitBreaker that sets the Name. +func WithName(name string) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.name = name + } +} + +// WithIsEnabled is the option for NewCircuitBreaker that sets the isEnabled. +func WithIsEnabled(isEnabled bool) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.isEnabled = isEnabled + } +} + +// WithCloseStateWindow is the option for NewCircuitBreaker that sets the closeStateWindow. +func WithCloseStateWindow(window time.Duration) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.closeStateWindow = window + } +} + +// WithOpenStateWindow is the option for NewCircuitBreaker that sets the openStateWindow. +func WithOpenStateWindow(window time.Duration) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.openStateWindow = window + } +} + +// WithFailureRateThreshold is the option for NewCircuitBreaker that sets the failureRateThreshold. +func WithFailureRateThreshold(threshold float64) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.failureRateThreshold = threshold + } +} + +// WithMinimumRequests is the option for NewCircuitBreaker that sets the minimumRequests. +func WithMinimumRequests(num uint32) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.minimumRequests = num + } +} + +// WithSuccessStatCodeMap is the option for NewCircuitBreaker that sets the successStatCodeMap. +func WithSuccessStatCodeMap(successStatCodeMap map[int]bool) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.successStatCodeMap = successStatCodeMap + } +} + +// WithSuccessStatErrCodeMap is the option for NewCircuitBreaker that sets the successStatErrCodeMap. +func WithSuccessStatErrCodeMap(successStatErrCodeMap map[StatErrCode]bool) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.successStatErrCodeMap = successStatErrCodeMap + } +} + +// WithServiceName is the option for NewCircuitBreaker that sets the ServiceName. +func WithServiceName(serviceName string) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.serviceName = serviceName + } +} + +// WithHistoryCount to set the number of failed responses +func WithHistoryCount(count int) CircuitBreakerOption { + // this is the CircuitBreakerOption function type + return func(cbst *CircuitBreakerSetting) { + cbst.numberOfRecordedHistoryResponse = count + } +} + +// getDefaultNumHistoryCount to set the number of failed responses +func getDefaultNumHistoryCount() int { + if val, isSet := os.LookupEnv(circuitBreakerNumberOfHistoryResponseEnv); isSet { + count, err := strconv.Atoi(val) + if err == nil && count > 0 { + return count + } + Debugf("Invalid history count specified. Resetting to default value") + } + return DefaultCircuitBreakerHistoryCount +} + +// GlobalCircuitBreakerSetting is global level circuit breaker setting, it would impact all services, the precedence is lower +// than client level circuit breaker +var GlobalCircuitBreakerSetting *CircuitBreakerSetting = nil + +// ConfigCircuitBreakerFromEnvVar is used for checking the circuit breaker environment variable setting, default value is nil +func ConfigCircuitBreakerFromEnvVar(baseClient *BaseClient) { + if IsEnvVarTrue(isDefaultCircuitBreakerEnabled) { + baseClient.Configuration.CircuitBreaker = NewCircuitBreaker(DefaultCircuitBreakerSetting()) + return + } + if IsEnvVarFalse(isDefaultCircuitBreakerEnabled) { + baseClient.Configuration.CircuitBreaker = nil + } +} + +// ConfigCircuitBreakerFromGlobalVar is used for checking if global circuitBreakerSetting is configured, the priority is higher than cb env var +func ConfigCircuitBreakerFromGlobalVar(baseClient *BaseClient) { + if GlobalCircuitBreakerSetting != nil { + baseClient.Configuration.CircuitBreaker = NewCircuitBreaker(GlobalCircuitBreakerSetting) + } +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/client.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/client.go similarity index 88% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/client.go index b7ba1c4ac4..6884ef14d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Package common provides supporting functions and structs used by service packages @@ -8,7 +8,6 @@ import ( "bytes" "context" "fmt" - "github.com/sony/gobreaker" "io" "io/ioutil" "math/rand" @@ -93,6 +92,11 @@ const ( // isDefaultCircuitBreakerEnabled is the key for set default circuit breaker disabled from env var isDefaultCircuitBreakerEnabled = "OCI_SDK_DEFAULT_CIRCUITBREAKER_ENABLED" + + //circuitBreakerNumberOfHistoryResponseEnv is the number of recorded history responses + circuitBreakerNumberOfHistoryResponseEnv = "OCI_SDK_CIRCUITBREAKER_NUM_HISTORY_RESPONSE" + + maxAttemptsForRefreshableRetry = 3 ) // RequestInterceptor function used to customize the request before calling the underlying service @@ -107,7 +111,7 @@ type HTTPRequestDispatcher interface { // CustomClientConfiguration contains configurations set at client level, currently it only includes RetryPolicy type CustomClientConfiguration struct { RetryPolicy *RetryPolicy - CircuitBreaker *gobreaker.CircuitBreaker + CircuitBreaker *OciCircuitBreaker } // BaseClient struct implements all basic operations to call oci web services. @@ -334,6 +338,28 @@ func getDefaultConfigFilePath() string { return fallbackConfigFile } +// setRawPath sets the Path and RawPath fields of the URL based on the provided +// escaped path p. It maintains the invariant that RawPath is only specified +// when it differs from the default encoding of the path. +// For example: +// - setPath("/foo/bar") will set Path="/foo/bar" and RawPath="" +// - setPath("/foo%2fbar") will set Path="/foo/bar" and RawPath="/foo%2fbar" +func setRawPath(u *url.URL) error { + oldPath := u.Path + path, err := url.PathUnescape(u.Path) + if err != nil { + return err + } + u.Path = path + if escp := u.EscapedPath(); oldPath == escp { + // Default encoding is fine. + u.RawPath = "" + } else { + u.RawPath = oldPath + } + return nil +} + // CustomProfileConfigProvider returns the config provider of given profile. The custom profile config provider // will look for configurations in 2 places: file in $HOME/.oci/config, and variables names starting with the // string TF_VAR. If the same configuration is found in multiple places the provider will prefer the first one. @@ -375,6 +401,10 @@ func (client *BaseClient) prepareRequest(request *http.Request) (err error) { currentPath := request.URL.Path if !strings.Contains(currentPath, fmt.Sprintf("/%s", client.BasePath)) { request.URL.Path = path.Clean(fmt.Sprintf("/%s/%s", client.BasePath, currentPath)) + err := setRawPath(request.URL) + if err != nil { + return err + } } return } @@ -552,9 +582,25 @@ type ClientCallDetails struct { // Call executes the http request with the given context func (client BaseClient) Call(ctx context.Context, request *http.Request) (response *http.Response, err error) { + if client.IsRefreshableAuthType() { + return client.RefreshableTokenWrappedCallWithDetails(ctx, request, ClientCallDetails{Signer: client.Signer}) + } return client.CallWithDetails(ctx, request, ClientCallDetails{Signer: client.Signer}) } +// RefreshableTokenWrappedCallWithDetails wraps the CallWithDetails with retry on 401 for Refreshable Toekn (Instance Principal, Resource Principal etc.) +// This is to intimitate the race condition on refresh +func (client BaseClient) RefreshableTokenWrappedCallWithDetails(ctx context.Context, request *http.Request, details ClientCallDetails) (response *http.Response, err error) { + for i := 0; i < maxAttemptsForRefreshableRetry; i++ { + response, err = client.CallWithDetails(ctx, request, ClientCallDetails{Signer: client.Signer}) + if response != nil && response.StatusCode != 401 { + return response, err + } + time.Sleep(1 * time.Second) + } + return +} + // CallWithDetails executes the http request, the given context using details specified in the parameters, this function // provides a way to override some settings present in the client func (client BaseClient) CallWithDetails(ctx context.Context, request *http.Request, details ClientCallDetails) (response *http.Response, err error) { @@ -579,18 +625,38 @@ func (client BaseClient) CallWithDetails(ctx context.Context, request *http.Requ } //Execute the http request - if goBreaker := client.Configuration.CircuitBreaker; goBreaker != nil { - resp, cbErr := goBreaker.Execute(func() (interface{}, error) { + if ociGoBreaker := client.Configuration.CircuitBreaker; ociGoBreaker != nil { + resp, cbErr := ociGoBreaker.Cb.Execute(func() (interface{}, error) { return client.httpDo(request) }) - if cbErr != nil { + if httpResp, ok := resp.(*http.Response); ok { + if httpResp != nil && httpResp.StatusCode != 200 { + if failure, ok := IsServiceError(cbErr); ok { + ociGoBreaker.AddToHistory(resp.(*http.Response), failure) + } + } + } + if cbErr != nil && IsCircuitBreakerError(cbErr) { + cbErr = getCircuitBreakerError(request, cbErr, ociGoBreaker) + } + if _, ok := resp.(*http.Response); !ok { return nil, cbErr } - return resp.(*http.Response), nil + return resp.(*http.Response), cbErr } return client.httpDo(request) } +// IsRefreshableAuthType validates if a signer is from a refreshable config provider +func (client BaseClient) IsRefreshableAuthType() bool { + if signer, ok := client.Signer.(ociRequestSigner); ok { + if provider, ok := signer.KeyProvider.(RefreshableConfigurationProvider); ok { + return provider.Refreshable() + } + } + return false +} + func (client BaseClient) httpDo(request *http.Request) (response *http.Response, err error) { //Copy request body and save for logging diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/common.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/common.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/common.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/common.go index ca7b2205c3..71b41ed76f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/common.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/common.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package common @@ -28,6 +28,12 @@ const ( // Region Metadata Environment Variable regionMetadataEnvVarName = "OCI_REGION_METADATA" + // Default Realm Environment Variable + defaultRealmEnvVarName = "OCI_DEFAULT_REALM" + + //EndpointTemplateForRegionWithDot Environment Variable + EndpointTemplateForRegionWithDot = "https://{endpoint_service_name}.{region}" + // Region Metadata regionIdentifierPropertyName = "regionIdentifier" // e.g. "ap-sydney-1" realmKeyPropertyName = "realmKey" // e.g. "oc1" @@ -48,6 +54,15 @@ func (region Region) Endpoint(service string) string { // EndpointForTemplate returns a endpoint for a service based on template, only unknown region name can fall back to "oc1", but not short code region name. func (region Region) EndpointForTemplate(service string, serviceEndpointTemplate string) string { + if strings.Contains(string(region), ".") { + endpoint, error := region.EndpointForTemplateDottedRegion(service, serviceEndpointTemplate, "") + if error != nil { + Debugf("%v", error) + return "" + } + return endpoint + } + if serviceEndpointTemplate == "" { return region.Endpoint(service) } @@ -61,13 +76,42 @@ func (region Region) EndpointForTemplate(service string, serviceEndpointTemplate return endpoint } +// EndpointForTemplateDottedRegion returns a endpoint for a service based on template, only unknown region name can fall back to "oc1", but not short code region name. +func (region Region) EndpointForTemplateDottedRegion(service string, serviceEndpointTemplate string, endpointServiceName string) (string, error) { + if endpointServiceName != "" { + endpoint := strings.Replace(EndpointTemplateForRegionWithDot, "{endpoint_service_name}", endpointServiceName, 1) + endpoint = strings.Replace(endpoint, "{region}", string(region), 1) + Debugf("Constructing endpoint from service name %s and region %s", endpointServiceName, region) + return endpoint, nil + } + if serviceEndpointTemplate != "" { + var endpoint = "" + res := strings.Split(serviceEndpointTemplate, "//") + if len(res) > 1 { + res = strings.Split(res[1], ".") + if len(res) > 1 { + endpoint = strings.Replace(EndpointTemplateForRegionWithDot, "{endpoint_service_name}", res[0], 1) + endpoint = strings.Replace(endpoint, "{region}", string(region), 1) + } else { + return endpoint, fmt.Errorf("Endpoint service name not present in endpoint template") + } + } else { + return endpoint, fmt.Errorf("Invalid serviceEndpointTemplates. ServiceEndpointTemplate should start with https://") + } + return endpoint, nil + } + return "", fmt.Errorf("EndpointForTemplateDottedRegion function requires endpointServiceName or serviceEndpointTemplate, no endpointServiceName or serviceEndpointTemplate provided") +} + func (region Region) secondLevelDomain() string { if realmID, ok := regionRealm[region]; ok { if secondLevelDomain, ok := realm[realmID]; ok { return secondLevelDomain } } - + if value, ok := os.LookupEnv(defaultRealmEnvVarName); ok { + return value + } Debugf("cannot find realm for region : %s, return default realm value.", region) return realm["oc1"] } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/configuration.go new file mode 100644 index 0000000000..42a9f7c89b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/configuration.go @@ -0,0 +1,699 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package common + +import ( + "crypto/rsa" + "errors" + "fmt" + "io/ioutil" + "os" + "path" + "regexp" + "strings" +) + +// AuthenticationType for auth +type AuthenticationType string + +const ( + // UserPrincipal is default auth type + UserPrincipal AuthenticationType = "user_principal" + // InstancePrincipal is used for instance principle auth type + InstancePrincipal AuthenticationType = "instance_principal" + // InstancePrincipalDelegationToken is used for instance principle delegation token auth type + InstancePrincipalDelegationToken AuthenticationType = "instance_principle_delegation_token" + // UnknownAuthenticationType is used for none meaningful auth type + UnknownAuthenticationType AuthenticationType = "unknown_auth_type" +) + +// AuthConfig is used for getting auth related paras in config file +type AuthConfig struct { + AuthType AuthenticationType + // IsFromConfigFile is used to point out the if the AuthConfig is from configuration file + IsFromConfigFile bool + OboToken *string +} + +// ConfigurationProvider wraps information about the account owner +type ConfigurationProvider interface { + KeyProvider + TenancyOCID() (string, error) + UserOCID() (string, error) + KeyFingerprint() (string, error) + Region() (string, error) + // AuthType() is used for specify the needed auth type, like UserPrincipal, InstancePrincipal, etc. + AuthType() (AuthConfig, error) +} + +// IsConfigurationProviderValid Tests all parts of the configuration provider do not return an error, this method will +// not check AuthType(), since authType() is not required to be there. +func IsConfigurationProviderValid(conf ConfigurationProvider) (ok bool, err error) { + baseFn := []func() (string, error){conf.TenancyOCID, conf.UserOCID, conf.KeyFingerprint, conf.Region, conf.KeyID} + for _, fn := range baseFn { + _, err = fn() + ok = err == nil + if err != nil { + return + } + } + + _, err = conf.PrivateRSAKey() + ok = err == nil + if err != nil { + return + } + return true, nil +} + +// rawConfigurationProvider allows a user to simply construct a configuration provider from raw values. +type rawConfigurationProvider struct { + tenancy string + user string + region string + fingerprint string + privateKey string + privateKeyPassphrase *string +} + +// NewRawConfigurationProvider will create a rawConfigurationProvider +func NewRawConfigurationProvider(tenancy, user, region, fingerprint, privateKey string, privateKeyPassphrase *string) ConfigurationProvider { + return rawConfigurationProvider{tenancy, user, region, fingerprint, privateKey, privateKeyPassphrase} +} + +func (p rawConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) { + return PrivateKeyFromBytes([]byte(p.privateKey), p.privateKeyPassphrase) +} + +func (p rawConfigurationProvider) KeyID() (keyID string, err error) { + tenancy, err := p.TenancyOCID() + if err != nil { + return + } + + user, err := p.UserOCID() + if err != nil { + return + } + + fingerprint, err := p.KeyFingerprint() + if err != nil { + return + } + + return fmt.Sprintf("%s/%s/%s", tenancy, user, fingerprint), nil +} + +func (p rawConfigurationProvider) TenancyOCID() (string, error) { + if p.tenancy == "" { + return "", fmt.Errorf("tenancy OCID can not be empty") + } + return p.tenancy, nil +} + +func (p rawConfigurationProvider) UserOCID() (string, error) { + if p.user == "" { + return "", fmt.Errorf("user OCID can not be empty") + } + return p.user, nil +} + +func (p rawConfigurationProvider) KeyFingerprint() (string, error) { + if p.fingerprint == "" { + return "", fmt.Errorf("fingerprint can not be empty") + } + return p.fingerprint, nil +} + +func (p rawConfigurationProvider) Region() (string, error) { + return canStringBeRegion(p.region) +} + +func (p rawConfigurationProvider) AuthType() (AuthConfig, error) { + return AuthConfig{UnknownAuthenticationType, false, nil}, + fmt.Errorf("unsupported, keep the interface") +} + +// environmentConfigurationProvider reads configuration from environment variables +type environmentConfigurationProvider struct { + PrivateKeyPassword string + EnvironmentVariablePrefix string +} + +// ConfigurationProviderEnvironmentVariables creates a ConfigurationProvider from a uniform set of environment variables starting with a prefix +// The env variables should look like: [prefix]_private_key_path, [prefix]_tenancy_ocid, [prefix]_user_ocid, [prefix]_fingerprint +// [prefix]_region +func ConfigurationProviderEnvironmentVariables(environmentVariablePrefix, privateKeyPassword string) ConfigurationProvider { + return environmentConfigurationProvider{EnvironmentVariablePrefix: environmentVariablePrefix, + PrivateKeyPassword: privateKeyPassword} +} + +func (p environmentConfigurationProvider) String() string { + return fmt.Sprintf("Configuration provided by environment variables prefixed with: %s", p.EnvironmentVariablePrefix) +} + +func (p environmentConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) { + environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "private_key_path") + var ok bool + var value string + if value, ok = os.LookupEnv(environmentVariable); !ok { + return nil, fmt.Errorf("can not read PrivateKey from env variable: %s", environmentVariable) + } + + expandedPath := expandPath(value) + pemFileContent, err := ioutil.ReadFile(expandedPath) + if err != nil { + Debugln("Can not read PrivateKey location from environment variable: " + environmentVariable) + return + } + + key, err = PrivateKeyFromBytes(pemFileContent, &p.PrivateKeyPassword) + return +} + +func (p environmentConfigurationProvider) KeyID() (keyID string, err error) { + ocid, err := p.TenancyOCID() + if err != nil { + return + } + + userocid, err := p.UserOCID() + if err != nil { + return + } + + fingerprint, err := p.KeyFingerprint() + if err != nil { + return + } + + return fmt.Sprintf("%s/%s/%s", ocid, userocid, fingerprint), nil +} + +func (p environmentConfigurationProvider) TenancyOCID() (value string, err error) { + environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "tenancy_ocid") + var ok bool + if value, ok = os.LookupEnv(environmentVariable); !ok { + err = fmt.Errorf("can not read Tenancy from environment variable %s", environmentVariable) + } else if value == "" { + err = fmt.Errorf("tenancy OCID can not be empty when reading from environmental variable") + } + return +} + +func (p environmentConfigurationProvider) UserOCID() (value string, err error) { + environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "user_ocid") + var ok bool + if value, ok = os.LookupEnv(environmentVariable); !ok { + err = fmt.Errorf("can not read user id from environment variable %s", environmentVariable) + } else if value == "" { + err = fmt.Errorf("user OCID can not be empty when reading from environmental variable") + } + return +} + +func (p environmentConfigurationProvider) KeyFingerprint() (value string, err error) { + environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "fingerprint") + var ok bool + if value, ok = os.LookupEnv(environmentVariable); !ok { + err = fmt.Errorf("can not read fingerprint from environment variable %s", environmentVariable) + } else if value == "" { + err = fmt.Errorf("fingerprint can not be empty when reading from environmental variable") + } + return +} + +func (p environmentConfigurationProvider) Region() (value string, err error) { + environmentVariable := fmt.Sprintf("%s_%s", p.EnvironmentVariablePrefix, "region") + var ok bool + if value, ok = os.LookupEnv(environmentVariable); !ok { + err = fmt.Errorf("can not read region from environment variable %s", environmentVariable) + return value, err + } + + return canStringBeRegion(value) +} + +func (p environmentConfigurationProvider) AuthType() (AuthConfig, error) { + return AuthConfig{UnknownAuthenticationType, false, nil}, + fmt.Errorf("unsupported, keep the interface") +} + +// fileConfigurationProvider. reads configuration information from a file +type fileConfigurationProvider struct { + //The path to the configuration file + ConfigPath string + + //The password for the private key + PrivateKeyPassword string + + //The profile for the configuration + Profile string + + //ConfigFileInfo + FileInfo *configFileInfo +} + +type fileConfigurationProviderError struct { + err error +} + +func (fpe fileConfigurationProviderError) Error() string { + return fmt.Sprintf("%s\nFor more info about config file and how to get required information, see https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm for more info on OCI configuration files", fpe.err) +} + +// ConfigurationProviderFromFile creates a configuration provider from a configuration file +// by reading the "DEFAULT" profile +func ConfigurationProviderFromFile(configFilePath, privateKeyPassword string) (ConfigurationProvider, error) { + if configFilePath == "" { + return nil, fmt.Errorf("config file path can not be empty") + } + + return fileConfigurationProvider{ + ConfigPath: configFilePath, + PrivateKeyPassword: privateKeyPassword, + Profile: "DEFAULT"}, nil +} + +// ConfigurationProviderFromFileWithProfile creates a configuration provider from a configuration file +// and the given profile +func ConfigurationProviderFromFileWithProfile(configFilePath, profile, privateKeyPassword string) (ConfigurationProvider, error) { + if configFilePath == "" { + return nil, fileConfigurationProviderError{err: fmt.Errorf("config file path can not be empty")} + } + + return fileConfigurationProvider{ + ConfigPath: configFilePath, + PrivateKeyPassword: privateKeyPassword, + Profile: profile}, nil +} + +type configFileInfo struct { + UserOcid, Fingerprint, KeyFilePath, TenancyOcid, Region, Passphrase, SecurityTokenFilePath, DelegationTokenFilePath, + AuthenticationType string + PresentConfiguration rune +} + +const ( + hasTenancy = 1 << iota + hasUser + hasFingerprint + hasRegion + hasKeyFile + hasPassphrase + hasSecurityTokenFile + hasDelegationTokenFile + hasAuthenticationType + none +) + +var profileRegex = regexp.MustCompile(`^\[(.*)\]`) + +func parseConfigFile(data []byte, profile string) (info *configFileInfo, err error) { + + if len(data) == 0 { + return nil, fileConfigurationProviderError{err: fmt.Errorf("configuration file content is empty")} + } + + content := string(data) + splitContent := strings.Split(content, "\n") + + //Look for profile + for i, line := range splitContent { + if match := profileRegex.FindStringSubmatch(line); match != nil && len(match) > 1 && match[1] == profile { + start := i + 1 + return parseConfigAtLine(start, splitContent) + } + } + + return nil, fileConfigurationProviderError{err: fmt.Errorf("configuration file did not contain profile: %s", profile)} +} + +func parseConfigAtLine(start int, content []string) (info *configFileInfo, err error) { + var configurationPresent rune + info = &configFileInfo{} + for i := start; i < len(content); i++ { + line := content[i] + if profileRegex.MatchString(line) { + break + } + + if !strings.Contains(line, "=") { + continue + } + + splits := strings.Split(line, "=") + switch key, value := strings.TrimSpace(splits[0]), strings.TrimSpace(splits[1]); strings.ToLower(key) { + case "passphrase", "pass_phrase": + configurationPresent = configurationPresent | hasPassphrase + info.Passphrase = value + case "user": + configurationPresent = configurationPresent | hasUser + info.UserOcid = value + case "fingerprint": + configurationPresent = configurationPresent | hasFingerprint + info.Fingerprint = value + case "key_file": + configurationPresent = configurationPresent | hasKeyFile + info.KeyFilePath = value + case "tenancy": + configurationPresent = configurationPresent | hasTenancy + info.TenancyOcid = value + case "region": + configurationPresent = configurationPresent | hasRegion + info.Region = value + case "security_token_file": + configurationPresent = configurationPresent | hasSecurityTokenFile + info.SecurityTokenFilePath = value + case "delegation_token_file": + configurationPresent = configurationPresent | hasDelegationTokenFile + info.DelegationTokenFilePath = value + case "authentication_type": + configurationPresent = configurationPresent | hasAuthenticationType + info.AuthenticationType = value + } + } + info.PresentConfiguration = configurationPresent + return + +} + +// cleans and expands the path if it contains a tilde , returns the expanded path or the input path as is if not expansion +// was performed +func expandPath(filepath string) (expandedPath string) { + cleanedPath := path.Clean(filepath) + expandedPath = cleanedPath + if strings.HasPrefix(cleanedPath, "~") { + rest := cleanedPath[2:] + expandedPath = path.Join(getHomeFolder(), rest) + } + return +} + +func openConfigFile(configFilePath string) (data []byte, err error) { + expandedPath := expandPath(configFilePath) + data, err = ioutil.ReadFile(expandedPath) + if err != nil { + err = fmt.Errorf("can not read config file: %s due to: %s", configFilePath, err.Error()) + } + + return +} + +func (p fileConfigurationProvider) String() string { + return fmt.Sprintf("Configuration provided by file: %s", p.ConfigPath) +} + +func (p fileConfigurationProvider) readAndParseConfigFile() (info *configFileInfo, err error) { + if p.FileInfo != nil { + return p.FileInfo, nil + } + + if p.ConfigPath == "" { + return nil, fileConfigurationProviderError{err: fmt.Errorf("configuration path can not be empty")} + } + + data, err := openConfigFile(p.ConfigPath) + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("error while parsing config file: %s. Due to: %s", p.ConfigPath, err.Error())} + return + } + + p.FileInfo, err = parseConfigFile(data, p.Profile) + return p.FileInfo, err +} + +func presentOrError(value string, expectedConf, presentConf rune, confMissing string) (string, error) { + if presentConf&expectedConf == expectedConf { + return value, nil + } + return "", fileConfigurationProviderError{err: errors.New(confMissing + " configuration is missing from file")} +} + +func (p fileConfigurationProvider) TenancyOCID() (value string, err error) { + info, err := p.readAndParseConfigFile() + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read tenancy configuration due to: %s", err.Error())} + return + } + + value, err = presentOrError(info.TenancyOcid, hasTenancy, info.PresentConfiguration, "tenancy") + if err == nil && value == "" { + err = fileConfigurationProviderError{err: fmt.Errorf("tenancy OCID can not be empty when reading from config file")} + } + return +} + +func (p fileConfigurationProvider) UserOCID() (value string, err error) { + info, err := p.readAndParseConfigFile() + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read tenancy configuration due to: %s", err.Error())} + return + } + + if value, err = presentOrError(info.UserOcid, hasUser, info.PresentConfiguration, "user"); err != nil { + // need to check if securityTokenPath is provided, if security token is provided, userOCID can be "". + if _, stErr := presentOrError(info.SecurityTokenFilePath, hasSecurityTokenFile, info.PresentConfiguration, + "securityTokenPath"); stErr == nil { + err = nil + } + } + return +} + +func (p fileConfigurationProvider) KeyFingerprint() (value string, err error) { + info, err := p.readAndParseConfigFile() + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read tenancy configuration due to: %s", err.Error())} + return + } + value, err = presentOrError(info.Fingerprint, hasFingerprint, info.PresentConfiguration, "fingerprint") + if err == nil && value == "" { + return "", fmt.Errorf("fingerprint can not be empty when reading from config file") + } + return +} + +func (p fileConfigurationProvider) KeyID() (keyID string, err error) { + tenancy, err := p.TenancyOCID() + if err != nil { + return + } + + fingerprint, err := p.KeyFingerprint() + if err != nil { + return + } + + info, err := p.readAndParseConfigFile() + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read tenancy configuration due to: %s", err.Error())} + return + } + if info.PresentConfiguration&hasUser == hasUser { + if info.UserOcid == "" { + err = fileConfigurationProviderError{err: fmt.Errorf("user cannot be empty in the config file")} + return + } + return fmt.Sprintf("%s/%s/%s", tenancy, info.UserOcid, fingerprint), nil + } + filePath, pathErr := presentOrError(info.SecurityTokenFilePath, hasSecurityTokenFile, info.PresentConfiguration, "securityTokenFilePath") + if pathErr == nil { + rawString, err := getTokenContent(filePath) + if err != nil { + return "", fileConfigurationProviderError{err: err} + } + return "ST$" + rawString, nil + } + err = fileConfigurationProviderError{err: fmt.Errorf("can not read SecurityTokenFilePath from configuration file due to: %s", pathErr.Error())} + return +} + +func (p fileConfigurationProvider) PrivateRSAKey() (key *rsa.PrivateKey, err error) { + info, err := p.readAndParseConfigFile() + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read tenancy configuration due to: %s", err.Error())} + return + } + + filePath, err := presentOrError(info.KeyFilePath, hasKeyFile, info.PresentConfiguration, "key file path") + if err != nil { + return + } + + expandedPath := expandPath(filePath) + pemFileContent, err := ioutil.ReadFile(expandedPath) + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read PrivateKey from configuration file due to: %s", err.Error())} + return + } + + password := p.PrivateKeyPassword + + if password == "" && ((info.PresentConfiguration & hasPassphrase) == hasPassphrase) { + password = info.Passphrase + } + + key, err = PrivateKeyFromBytes(pemFileContent, &password) + return +} + +func (p fileConfigurationProvider) Region() (value string, err error) { + info, err := p.readAndParseConfigFile() + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read region configuration due to: %s", err.Error())} + return + } + + value, err = presentOrError(info.Region, hasRegion, info.PresentConfiguration, "region") + if err != nil { + val, error := getRegionFromEnvVar() + if error != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("region configuration is missing from file, nor for OCI_REGION env var")} + return + } + value = val + } + + return canStringBeRegion(value) +} + +func (p fileConfigurationProvider) AuthType() (AuthConfig, error) { + info, err := p.readAndParseConfigFile() + if err != nil { + err = fmt.Errorf("can not read tenancy configuration due to: %s", err.Error()) + return AuthConfig{UnknownAuthenticationType, true, nil}, err + } + val, err := presentOrError(info.AuthenticationType, hasAuthenticationType, info.PresentConfiguration, "authentication_type") + + if val == "instance_principal" { + if filePath, err := presentOrError(info.DelegationTokenFilePath, hasDelegationTokenFile, info.PresentConfiguration, "delegationTokenFilePath"); err == nil { + if delegationToken, err := getTokenContent(filePath); err == nil && delegationToken != "" { + Debugf("delegation token content is %s, and error is %s ", delegationToken, err) + return AuthConfig{InstancePrincipalDelegationToken, true, &delegationToken}, nil + } + return AuthConfig{UnknownAuthenticationType, true, nil}, err + } + // normal instance principle + return AuthConfig{InstancePrincipal, true, nil}, nil + } + + // by default, if no "authentication_type" is provided, just treated as user principle type, and will not return error + return AuthConfig{UserPrincipal, true, nil}, nil +} + +func getTokenContent(filePath string) (string, error) { + expandedPath := expandPath(filePath) + tokenFileContent, err := ioutil.ReadFile(expandedPath) + if err != nil { + err = fileConfigurationProviderError{err: fmt.Errorf("can not read token content from configuration file due to: %s", err.Error())} + return "", err + } + return fmt.Sprintf("%s", tokenFileContent), nil +} + +// A configuration provider that look for information in multiple configuration providers +type composingConfigurationProvider struct { + Providers []ConfigurationProvider +} + +// ComposingConfigurationProvider creates a composing configuration provider with the given slice of configuration providers +// A composing provider will return the configuration of the first provider that has the required property +// if no provider has the property it will return an error. +func ComposingConfigurationProvider(providers []ConfigurationProvider) (ConfigurationProvider, error) { + if len(providers) == 0 { + return nil, fmt.Errorf("providers can not be an empty slice") + } + + for i, p := range providers { + if p == nil { + return nil, fmt.Errorf("provider in position: %d is nil. ComposingConfiurationProvider does not support nil values", i) + } + } + return composingConfigurationProvider{Providers: providers}, nil +} + +func (c composingConfigurationProvider) TenancyOCID() (string, error) { + for _, p := range c.Providers { + val, err := p.TenancyOCID() + if err == nil { + return val, nil + } + } + return "", fmt.Errorf("did not find a proper configuration for tenancy") +} + +func (c composingConfigurationProvider) UserOCID() (string, error) { + for _, p := range c.Providers { + val, err := p.UserOCID() + if err == nil { + return val, nil + } + } + return "", fmt.Errorf("did not find a proper configuration for user") +} + +func (c composingConfigurationProvider) KeyFingerprint() (string, error) { + for _, p := range c.Providers { + val, err := p.KeyFingerprint() + if err == nil { + return val, nil + } + } + return "", fmt.Errorf("did not find a proper configuration for keyFingerprint") +} +func (c composingConfigurationProvider) Region() (string, error) { + for _, p := range c.Providers { + val, err := p.Region() + if err == nil { + return val, nil + } + } + if val, err := getRegionFromEnvVar(); err == nil { + return val, nil + } + return "", fmt.Errorf("did not find a proper configuration for region, nor for OCI_REGION env var") +} + +func (c composingConfigurationProvider) KeyID() (string, error) { + for _, p := range c.Providers { + val, err := p.KeyID() + if err == nil { + return val, nil + } + } + return "", fmt.Errorf("did not find a proper configuration for key id") +} + +func (c composingConfigurationProvider) PrivateRSAKey() (*rsa.PrivateKey, error) { + for _, p := range c.Providers { + val, err := p.PrivateRSAKey() + if err == nil { + return val, nil + } + } + return nil, fmt.Errorf("did not find a proper configuration for private key") +} + +func (c composingConfigurationProvider) AuthType() (AuthConfig, error) { + // only check the first default fileConfigProvider + authConfig, err := c.Providers[0].AuthType() + if err == nil && authConfig.AuthType != UnknownAuthenticationType { + return authConfig, nil + } + return AuthConfig{UnknownAuthenticationType, false, nil}, fmt.Errorf("did not find a proper configuration for auth type") +} + +func getRegionFromEnvVar() (string, error) { + regionEnvVar := "OCI_REGION" + if region, existed := os.LookupEnv(regionEnvVar); existed { + return region, nil + } + return "", fmt.Errorf("did not find OCI_REGION env var") +} + +// RefreshableConfigurationProvider the interface to identity if the config provider is refreshable +type RefreshableConfigurationProvider interface { + Refreshable() bool +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/errors.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/errors.go new file mode 100644 index 0000000000..746502f833 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/errors.go @@ -0,0 +1,299 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package common + +import ( + "encoding/json" + "fmt" + "io/ioutil" + "net" + "net/http" + "strings" + + "github.com/sony/gobreaker" +) + +// ServiceError models all potential errors generated the service call +type ServiceError interface { + // The http status code of the error + GetHTTPStatusCode() int + + // The human-readable error string as sent by the service + GetMessage() string + + // A short error code that defines the error, meant for programmatic parsing. + // See https://docs.cloud.oracle.com/Content/API/References/apierrors.htm + GetCode() string + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + GetOpcRequestID() string +} + +// ServiceErrorRichInfo models all potential errors generated the service call and contains rich info for debugging purpose +type ServiceErrorRichInfo interface { + ServiceError + // The service this service call is sending to + GetTargetService() string + + // The API name this service call is sending to + GetOperationName() string + + // The timestamp when this request is made + GetTimestamp() SDKTime + + // The endpoint and the Http method of this service call + GetRequestTarget() string + + // The client version, in this case the oci go sdk version + GetClientVersion() string + + // The API reference doc link for this API, optional and maybe empty + GetOperationReferenceLink() string + + // Troubleshooting doc link + GetErrorTroubleshootingLink() string +} + +// ServiceErrorLocalizationMessage models all potential errors generated the service call and has localized error message info +type ServiceErrorLocalizationMessage interface { + ServiceErrorRichInfo + // The original error message string as sent by the service + GetOriginalMessage() string + + // The values to be substituted into the originalMessageTemplate, expressed as a string-to-string map. + GetMessageArgument() map[string]string + + // Template in ICU MessageFormat for the human-readable error string in English, but without the values replaced + GetOriginalMessageTemplate() string +} + +type servicefailure struct { + StatusCode int + Code string `json:"code,omitempty"` + Message string `json:"message,omitempty"` + OriginalMessage string `json:"originalMessage"` + OriginalMessageTemplate string `json:"originalMessageTemplate"` + MessageArgument map[string]string `json:"messageArguments"` + OpcRequestID string `json:"opc-request-id"` + // debugging information + TargetService string `json:"target-service"` + OperationName string `json:"operation-name"` + Timestamp SDKTime `json:"timestamp"` + RequestTarget string `json:"request-target"` + ClientVersion string `json:"client-version"` + + // troubleshooting guidance + OperationReferenceLink string `json:"operation-reference-link"` + ErrorTroubleshootingLink string `json:"error-troubleshooting-link"` +} + +func newServiceFailureFromResponse(response *http.Response) error { + var err error + var timestamp SDKTime + t, err := tryParsingTimeWithValidFormatsForHeaders([]byte(response.Header.Get("Date")), "Date") + + if err != nil { + timestamp = *now() + } else { + timestamp = sdkTimeFromTime(t) + } + + se := servicefailure{ + StatusCode: response.StatusCode, + Code: "BadErrorResponse", + OpcRequestID: response.Header.Get("opc-request-id"), + Timestamp: timestamp, + ClientVersion: defaultSDKMarker + "/" + Version(), + RequestTarget: fmt.Sprintf("%s %s", response.Request.Method, response.Request.URL), + } + + //If there is an error consume the body, entirely + body, err := ioutil.ReadAll(response.Body) + if err != nil { + se.Message = fmt.Sprintf("The body of the response was not readable, due to :%s", err.Error()) + return se + } + + err = json.Unmarshal(body, &se) + if err != nil { + Debugf("Error response could not be parsed due to: %s", err.Error()) + se.Message = fmt.Sprintf("Failed to parse json from response body due to: %s. With response body %s.", err.Error(), string(body[:])) + return se + } + return se +} + +// PostProcessServiceError process the service error after an error is raised and complete it with extra information +func PostProcessServiceError(err error, service string, method string, apiReferenceLink string) error { + var serviceFailure servicefailure + if _, ok := err.(servicefailure); !ok { + return err + } + serviceFailure = err.(servicefailure) + serviceFailure.OperationName = method + serviceFailure.TargetService = service + serviceFailure.ErrorTroubleshootingLink = fmt.Sprintf("https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_%v__%v_%s", serviceFailure.StatusCode, serviceFailure.StatusCode, strings.ToLower(serviceFailure.Code)) + serviceFailure.OperationReferenceLink = apiReferenceLink + return serviceFailure +} + +func (se servicefailure) Error() string { + return fmt.Sprintf(`Error returned by %s Service. Http Status Code: %d. Error Code: %s. Opc request id: %s. Message: %s. +Operation Name: %s +Timestamp: %s +Client Version: %s +Request Endpoint: %s +Troubleshooting Tips: See %s for more information about resolving this error.%s +To get more info on the failing request, you can set OCI_GO_SDK_DEBUG env var to info or higher level to log the request/response details. +If you are unable to resolve this %s issue, please contact Oracle support and provide them this full error message.`, + se.TargetService, se.StatusCode, se.Code, se.OpcRequestID, se.Message, se.OperationName, se.Timestamp, se.ClientVersion, se.RequestTarget, se.ErrorTroubleshootingLink, se.getOperationReferenceMessage(), se.TargetService) +} + +func (se servicefailure) getOperationReferenceMessage() string { + if se.OperationReferenceLink == "" { + return "" + } + return fmt.Sprintf("\nAlso see %s for details on this operation's requirements.", se.OperationReferenceLink) +} + +func (se servicefailure) GetHTTPStatusCode() int { + return se.StatusCode + +} + +func (se servicefailure) GetMessage() string { + return se.Message +} + +func (se servicefailure) GetOriginalMessage() string { + return se.OriginalMessage +} + +func (se servicefailure) GetOriginalMessageTemplate() string { + return se.OriginalMessageTemplate +} + +func (se servicefailure) GetMessageArgument() map[string]string { + return se.MessageArgument +} + +func (se servicefailure) GetCode() string { + return se.Code +} + +func (se servicefailure) GetOpcRequestID() string { + return se.OpcRequestID +} + +func (se servicefailure) GetTargetService() string { + return se.TargetService +} + +func (se servicefailure) GetOperationName() string { + return se.OperationName +} + +func (se servicefailure) GetTimestamp() SDKTime { + return se.Timestamp +} + +func (se servicefailure) GetRequestTarget() string { + return se.RequestTarget +} + +func (se servicefailure) GetClientVersion() string { + return se.ClientVersion +} + +func (se servicefailure) GetOperationReferenceLink() string { + return se.OperationReferenceLink +} + +func (se servicefailure) GetErrorTroubleshootingLink() string { + return se.ErrorTroubleshootingLink +} + +// IsServiceError returns false if the error is not service side, otherwise true +// additionally it returns an interface representing the ServiceError +func IsServiceError(err error) (failure ServiceError, ok bool) { + failure, ok = err.(ServiceError) + return +} + +// IsServiceErrorRichInfo returns false if the error is not service side or is not containing rich info, otherwise true +// additionally it returns an interface representing the ServiceErrorRichInfo +func IsServiceErrorRichInfo(err error) (failure ServiceErrorRichInfo, ok bool) { + failure, ok = err.(ServiceErrorRichInfo) + return +} + +// IsServiceErrorLocalizationMessage returns false if the error is not service side, otherwise true +// additionally it returns an interface representing the ServiceErrorOriginalMessage +func IsServiceErrorLocalizationMessage(err error) (failure ServiceErrorLocalizationMessage, ok bool) { + failure, ok = err.(ServiceErrorLocalizationMessage) + return +} + +type deadlineExceededByBackoffError struct{} + +func (deadlineExceededByBackoffError) Error() string { + return "now() + computed backoff duration exceeds request deadline" +} + +// DeadlineExceededByBackoff is the error returned by Call() when GetNextDuration() returns a time.Duration that would +// force the user to wait past the request deadline before re-issuing a request. This enables us to exit early, since +// we cannot succeed based on the configured retry policy. +var DeadlineExceededByBackoff error = deadlineExceededByBackoffError{} + +// NonSeekableRequestRetryFailure is the error returned when the request is with binary request body, and is configured +// retry, but the request body is not retryable +type NonSeekableRequestRetryFailure struct { + err error +} + +func (ne NonSeekableRequestRetryFailure) Error() string { + if ne.err == nil { + return fmt.Sprintf("Unable to perform Retry on this request body type, which did not implement seek() interface") + } + return fmt.Sprintf("%s. Unable to perform Retry on this request body type, which did not implement seek() interface", ne.err.Error()) +} + +// IsNetworkError validates if an error is a net.Error and check if it's temporary or timeout +func IsNetworkError(err error) bool { + if err == nil { + return false + } + + if r, ok := err.(net.Error); ok && (r.Temporary() || r.Timeout()) || strings.Contains(err.Error(), "net/http: HTTP/1.x transport connection broken") { + return true + } + return false +} + +// IsCircuitBreakerError validates if an error's text is Open state ErrOpenState or HalfOpen state ErrTooManyRequests +func IsCircuitBreakerError(err error) bool { + if err == nil { + return false + } + + if err.Error() == gobreaker.ErrOpenState.Error() || err.Error() == gobreaker.ErrTooManyRequests.Error() { + return true + } + return false +} + +func getCircuitBreakerError(request *http.Request, err error, cbr *OciCircuitBreaker) error { + cbErr := fmt.Errorf("%s, so this request was not sent to the %s service.\n\n The circuit breaker was opened because the %s service failed too many times recently. "+ + "Because the circuit breaker has been opened, requests within a %.2f second window of when the circuit breaker opened will not be sent to the %s service.\n\n"+ + "URL which circuit breaker prevented request to - %s \n Circuit Breaker Info \n Name - %s \n State - %s \n\n Errors from %s service which opened the circuit breaker:\n\n%s \n", + err, cbr.Cbst.serviceName, cbr.Cbst.serviceName, cbr.Cbst.openStateWindow.Seconds(), cbr.Cbst.serviceName, request.URL.Host+request.URL.Path, cbr.Cbst.name, cbr.Cb.State().String(), cbr.Cbst.serviceName, cbr.GetHistory()) + return cbErr +} + +// StatErrCode is a type which wraps error's statusCode and errorCode from service end +type StatErrCode struct { + statusCode int + errorCode string +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/eventual_consistency.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/eventual_consistency.go new file mode 100644 index 0000000000..28192f49f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/eventual_consistency.go @@ -0,0 +1,466 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package common + +import ( + "bytes" + "errors" + "fmt" + "os" + "runtime" + "strconv" + "strings" + "sync" + "sync/atomic" + "time" + + "github.com/gofrs/flock" +) + +const ( + // OciGoSdkEcConfigEnvVarName contains the name of the environment variable that can be used to configure the eventual consistency (EC) communication mode. + // Allowed values for environment variable: + // 1. OCI_GO_SDK_EC_CONFIG = "file,/path/to/shared/timestamp/file" + // 2. OCI_GO_SDK_EC_CONFIG = "inprocess" + // 3. absent -- same as OCI_GO_SDK_EC_CONFIG = "inprocess" + OciGoSdkEcConfigEnvVarName string = "OCI_GO_SDK_EC_CONFIG" +) + +// +// Eventual consistency communication mode +// + +// EcMode is the eventual consistency (EC) communication mode used. +type EcMode int64 + +const ( + // Uninitialized means the EC communication mode has not been set yet. + Uninitialized EcMode = iota // 0 + + // InProcess is the default EC communication mode which only communicates the end-of-window timestamp inside the same process. + InProcess + + // File is the EC communication mode that uses a file to communicate the end-of-window timestamp using a file visible across processes. + // Locking is performed using a lock file. + File +) + +var ( + affectedByEventualConsistencyRetryStatusCodeMap = map[StatErrCode]bool{ + {400, "RelatedResourceNotAuthorizedOrNotFound"}: true, + {404, "NotAuthorizedOrNotFound"}: true, + {409, "NotAuthorizedOrResourceAlreadyExists"}: true, + {400, "InsufficientServicePermissions"}: true, + {400, "ResourceDisabled"}: true, + } +) + +// IsErrorAffectedByEventualConsistency returns true if the error is affected by eventual consistency. +func IsErrorAffectedByEventualConsistency(Error error) bool { + if err, ok := IsServiceError(Error); ok { + return affectedByEventualConsistencyRetryStatusCodeMap[StatErrCode{err.GetHTTPStatusCode(), err.GetCode()}] + } + return false +} + +func getEcMode(mode string) EcMode { + var lmode = strings.ToLower(mode) + switch lmode { + case "file": + return File + case "inprocess": + return InProcess + } + ecLogf("%s: Unknown ec mode '%s', assuming 'inprocess'", OciGoSdkEcConfigEnvVarName, mode) + return InProcess +} + +// EventuallyConsistentContext contains the information about the end of the eventually consistent window. +type EventuallyConsistentContext struct { + // memory-based + endOfWindow atomic.Value + lock sync.RWMutex + timeNowProvider func() time.Time + + // mode selector + ecMode EcMode + + // file-based + + // timestampFileName and timestampLockFile should be set to files that + // are accessible by all processes that need to share information about + // eventual consistency. + // A sensible choice are files inside the temp directory, as returned by os.TempDir() + timestampFileName *string + timestampFileLock *flock.Flock + + // lock and unlock functions + readLock func(e *EventuallyConsistentContext) error + readUnlock func(e *EventuallyConsistentContext) error + writeLock func(e *EventuallyConsistentContext) error + writeUnlock func(e *EventuallyConsistentContext) error + + // get/set functions + getEndOfWindowUnsynchronized func(e *EventuallyConsistentContext) (*time.Time, error) + setEndOfWindowUnsynchronized func(e *EventuallyConsistentContext, newEndOfWindowTime *time.Time) error +} + +// newEcContext creates a new EC context based on the OCI_GO_SDK_EC_CONFIG environment variable. +func newEcContext() *EventuallyConsistentContext { + ecConfig, ecConfigProvided := os.LookupEnv(OciGoSdkEcConfigEnvVarName) + if !ecConfigProvided { + ecConfig = "" + } + + commaIndex := strings.Index(ecConfig, ",") + var ecConfigMode = ecConfig + var ecConfigRest = "" + if commaIndex >= 0 { + ecConfigMode = ecConfig[:commaIndex] + ecConfigRest = ecConfig[commaIndex+1:] + } + ecMode := getEcMode(ecConfigMode) + + switch ecMode { + case File: + if len(ecConfigRest) < 1 { + ecLogf("%s: Expected file name after comma for 'File' mode ('file,/path/to/file'), was: '%s'", OciGoSdkEcConfigEnvVarName, ecConfig) + return nil + } + return newEcContextFile(ecConfigRest) + } + + return newEcContextInProcess() +} + +// newEcContextInProcess creates a new in-process EC context. +func newEcContextInProcess() *EventuallyConsistentContext { + ecContext := EventuallyConsistentContext{ + ecMode: InProcess, + readLock: ecInProcessReadLock, + readUnlock: ecInProcessReadUnlock, + writeLock: ecInProcessWriteLock, + writeUnlock: ecInProcessWriteUnlock, + getEndOfWindowUnsynchronized: ecInProcessGetEndOfWindowUnsynchronized, + setEndOfWindowUnsynchronized: ecInProcessSetEndOfWindowUnsynchronized, + timeNowProvider: func() time.Time { return time.Now() }, + } + return &ecContext +} + +// newEcContextFile creates a new EC context kept in a file. +// timestampFileName should be set to a file accessible by all processes that +// need to share information about eventual consistency. +// A sensible choice are files inside the temp directory, as returned by os.TempDir() +// The lock file will use the same name, with the suffix ".lock" added. +func newEcContextFile(timestampFileName string) *EventuallyConsistentContext { + timestampLockFileName := timestampFileName + ".lock" + ecContext := EventuallyConsistentContext{ + ecMode: File, + readLock: ecFileReadLock, + readUnlock: ecFileReadUnlock, + writeLock: ecFileWriteLock, + writeUnlock: ecFileWriteUnlock, + getEndOfWindowUnsynchronized: ecFileGetEndOfWindowUnsynchronized, + setEndOfWindowUnsynchronized: ecFileSetEndOfWindowUnsynchronized, + timeNowProvider: func() time.Time { return time.Now() }, + timestampFileName: ×tampFileName, + timestampFileLock: flock.New(timestampLockFileName), + } + ecDebugf("%s: Using file modification time of file '%s' and lock file '%s'", OciGoSdkEcConfigEnvVarName, *ecContext.timestampFileName, timestampLockFileName) + return &ecContext +} + +// InitializeEcContextFromEnvVar initializes the EcContext variable as configured +// in the OCI_GO_SDK_EC_CONFIG environment variable. +func InitializeEcContextFromEnvVar() { + EcContext = newEcContext() +} + +// InitializeEcContextInProcess initializes the EcContext variable to be in-process only. +func InitializeEcContextInProcess() { + EcContext = newEcContextInProcess() +} + +// InitializeEcContextFile initializes the EcContext variable to be kept in a timestamp file, +// protected by a lock file. +// timestampFileName should be set to a file accessible by all processes that +// need to share information about eventual consistency. +// A sensible choice are files inside the temp directory, as returned by os.TempDir() +// The lock file will use the same name, with the suffix ".lock" added. +func InitializeEcContextFile(timestampFileName string) { + EcContext = newEcContextFile(timestampFileName) +} + +// +// InProcess functions +// + +func ecInProcessReadLock(e *EventuallyConsistentContext) error { + e.lock.RLock() + return nil +} + +func ecInProcessReadUnlock(e *EventuallyConsistentContext) error { + e.lock.RUnlock() + return nil +} + +func ecInProcessWriteLock(e *EventuallyConsistentContext) error { + e.lock.Lock() + return nil +} + +func ecInProcessWriteUnlock(e *EventuallyConsistentContext) error { + e.lock.Unlock() + return nil +} + +// ecInProcessGetEndOfWindowUnsynchronized returns the end time of an eventually consistent window, +// or nil if no eventually consistent requests were made. +// There is no mutex synchronization. +func ecInProcessGetEndOfWindowUnsynchronized(e *EventuallyConsistentContext) (*time.Time, error) { + untyped := e.endOfWindow.Load() // returns nil if there has been no call to Store for this Value + if untyped == nil { + return (*time.Time)(nil), nil + } + t := untyped.(*time.Time) + + return t, nil +} + +// ecInProcessSetEndOfWindowUnsynchronized sets the end time of the eventually consistent window. +// There is no mutex synchronization. +func ecInProcessSetEndOfWindowUnsynchronized(e *EventuallyConsistentContext, newEndOfWindowTime *time.Time) error { + e.endOfWindow.Store(newEndOfWindowTime) // atomically replace the current object with the new one + return nil +} + +// +// File functions +// + +func ecFileReadLock(e *EventuallyConsistentContext) error { + return e.timestampFileLock.RLock() +} + +func ecFileReadUnlock(e *EventuallyConsistentContext) error { + return e.timestampFileLock.Unlock() +} + +func ecFileWriteLock(e *EventuallyConsistentContext) error { + return e.timestampFileLock.Lock() +} + +func ecFileWriteUnlock(e *EventuallyConsistentContext) error { + return e.timestampFileLock.Unlock() +} + +// ecFileGetEndOfWindowUnsynchronized returns the end time of an eventually consistent window, +// or nil if no eventually consistent requests were made. +// There is no mutex synchronization. +func ecFileGetEndOfWindowUnsynchronized(e *EventuallyConsistentContext) (*time.Time, error) { + file, err := os.Stat(*e.timestampFileName) + + if errors.Is(err, os.ErrNotExist) { + ecDebugf("%s: File '%s' does not exist, meaning no EC in effect", OciGoSdkEcConfigEnvVarName, *e.timestampFileName) + return (*time.Time)(nil), nil + } + if err != nil { + ecLogf("%s: Error getting modified time from file '%s', assuming no EC in effect: %s", OciGoSdkEcConfigEnvVarName, *e.timestampFileName, err) + return (*time.Time)(nil), err + } + + t := file.ModTime() + ecDebugf("%s: Read modified time of file '%s' as '%s'", OciGoSdkEcConfigEnvVarName, *e.timestampFileName, t) + + return &t, nil +} + +// ecFileSetEndOfWindowUnsynchronized sets the end time of the eventually consistent window. +// There is no mutex synchronization. +func ecFileSetEndOfWindowUnsynchronized(e *EventuallyConsistentContext, newEndOfWindowTime *time.Time) error { + if newEndOfWindowTime != nil { + ecDebugf("%s: Updating modified time of file '%s' to '%s'", OciGoSdkEcConfigEnvVarName, *e.timestampFileName, *newEndOfWindowTime) + } else { + ecDebugf("%s: Updating modified time of file '%s' to ", OciGoSdkEcConfigEnvVarName, *e.timestampFileName) + } + + if newEndOfWindowTime == nil { + err := os.Remove(*e.timestampFileName) + if err != nil && !errors.Is(err, os.ErrNotExist) { + ecLogf("%s: Error removing file '%s', may draw wrong EC conflusions: %s", OciGoSdkEcConfigEnvVarName, *e.timestampFileName, err) + } + return err + } + + atime := time.Now() + var err = os.Chtimes(*e.timestampFileName, atime, *newEndOfWindowTime) + if errors.Is(err, os.ErrNotExist) { + _, createErr := os.Create(*e.timestampFileName) + if createErr != nil { + ecLogf("%s: Error creating file '%s', will have to assume no EC in effect: %s", OciGoSdkEcConfigEnvVarName, *e.timestampFileName, createErr) + return createErr + } + err = os.Chtimes(*e.timestampFileName, atime, *newEndOfWindowTime) + } + if err != nil { + ecLogf("%s: Error changing modified time for file '%s', will have to assume no EC in effect: %s", OciGoSdkEcConfigEnvVarName, *e.timestampFileName, err) + return err + } + return nil +} + +// +// General functions for EC window handling, for all EC communication modes +// + +// GetEndOfWindow returns the end time an eventually consistent window, +// or nil if no eventually consistent requests were made +func (e *EventuallyConsistentContext) GetEndOfWindow() *time.Time { + e.readLock(e) // synchronize with potential writers + defer e.readUnlock(e) + + endOfWindowTime, _ := e.getEndOfWindowUnsynchronized(e) + + // TODO: this is noisy logging, consider removing + if endOfWindowTime != nil { + ecDebugln(fmt.Sprintf("EcContext.GetEndOfWindow returns %s", endOfWindowTime)) + } else { + ecDebugln("EcContext.GetEndOfWindow returns ") + } + + return endOfWindowTime +} + +// UpdateEndOfWindow sets the end time of the eventually consistent window the specified +// duration into the future +func (e *EventuallyConsistentContext) UpdateEndOfWindow(windowSize time.Duration) *time.Time { + e.writeLock(e) // synchronize with other potential writers + defer e.writeUnlock(e) + + currentEndOfWindowTime, _ := e.getEndOfWindowUnsynchronized(e) + var newEndOfWindowTime = e.timeNowProvider().Add(windowSize) + if currentEndOfWindowTime == nil || newEndOfWindowTime.After(*currentEndOfWindowTime) { + e.setEndOfWindowUnsynchronized(e, &newEndOfWindowTime) + + // TODO: this is noisy logging, consider removing + ecDebugln(fmt.Sprintf("EcContext.UpdateEndOfWindow to %s", newEndOfWindowTime)) + + return &newEndOfWindowTime + } + return currentEndOfWindowTime +} + +// setEndTimeOfEventuallyConsistentWindow sets the last time an eventually consistent request was made +// to the specified time +func (e *EventuallyConsistentContext) setEndOfWindow(newTime *time.Time) *time.Time { + e.writeLock(e) // synchronize with other potential writers + defer e.writeUnlock(e) + + e.setEndOfWindowUnsynchronized(e, newTime) + + // TODO: this is noisy logging, consider removing + if newTime != nil { + ecDebugln(fmt.Sprintf("EcContext.setEndOfWindow to %s", *newTime)) + } else { + ecDebugln("EcContext.setEndOfWindow to ") + } + + return newTime +} + +// EcContext contains the information about the end of the eventually consistent window for this process. +var EcContext = newEcContext() + +// +// Logging helpers +// + +// getGID returns the Goroutine id. This is purely for logging and debugging. +// See https://blog.sgmansfield.com/2015/12/goroutine-ids/ +func getGID() uint64 { + b := make([]byte, 64) + b = b[:runtime.Stack(b, false)] + b = bytes.TrimPrefix(b, []byte("goroutine ")) + b = b[:bytes.IndexByte(b, ' ')] + n, _ := strconv.ParseUint(string(b), 10, 64) + return n +} + +// some of these errors happen so early, defaultLogger may not have been +// initialized yet. +func initLogIfNecessary() { + if defaultLogger == nil { + l, _ := NewSDKLogger() + SetSDKLogger(l) + } +} + +// Debugf logs v with the provided format if debug mode is set. +// There is no mutex synchronization. You should have acquired e.lock first. +func ecDebugf(format string, v ...interface{}) { + defer func() { + // recover from panic if one occured. + if recover() != nil { + Debugln("ecDebugf failed") + } + }() + + str := fmt.Sprintf(format, v...) + + initLogIfNecessary() + + // prefix message with "(pid=25140, gid=5)" + Debugf("(pid=%d, gid=%d) %s", os.Getpid(), getGID(), str) +} + +// Debug logs v if debug mode is set. +// There is no mutex synchronization. You should have acquired e.lock first. +func ecDebug(v ...interface{}) { + defer func() { + // recover from panic if one occured. + if recover() != nil { + Debugln("ecDebug failed") + } + }() + + initLogIfNecessary() + + // prefix message with "(pid=25140, gid=5)" + Debug(append([]interface{}{"(pid=", os.Getpid(), ", gid=", getGID(), ") "}, v...)...) +} + +// Debugln logs v appending a new line if debug mode is set +// There is no mutex synchronization. You should have acquired e.lock first. +func ecDebugln(v ...interface{}) { + defer func() { + // recover from panic if one occured. + if recover() != nil { + Debugln("ecDebugln failed") + } + }() + + initLogIfNecessary() + + // prefix message with "(pid=25140, gid=5)" + Debugln(append([]interface{}{"(pid=", os.Getpid(), ", gid=", getGID(), ") "}, v...)...) +} + +// Logf logs v with the provided format if info mode is set. +// There is no mutex synchronization. You should have acquired e.lock first. +func ecLogf(format string, v ...interface{}) { + defer func() { + // recover from panic if one occured. + if recover() != nil { + Debugln("ecLogf failed") + } + }() + + initLogIfNecessary() + + str := fmt.Sprintf(format, v...) + // prefix message with "(pid=25140, gid=5)" + Logf("(pid=%d, gid=%d) %s", os.Getpid(), getGID(), str) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/helpers.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/helpers.go similarity index 99% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/helpers.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/helpers.go index bf00d89c7f..a6284f5664 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/helpers.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/helpers.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package common diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/http.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/http.go similarity index 99% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/http.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/http.go index 6014a4a110..acd6bbd4c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/http.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/http.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package common @@ -588,6 +588,14 @@ func structToRequestPart(request *http.Request, val reflect.Value) (err error) { } sv := val.Field(i) + if method := sv.MethodByName("ValidateEnumValue"); reflect.Value.IsValid(method) { + if validateResult := method.Call([]reflect.Value{})[1].Interface(); validateResult != nil { + if err = validateResult.(error); err != nil { + return + } + } + } + tag := sf.Tag.Get("contributesTo") switch tag { case "header": diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/http_signer.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/http_signer.go similarity index 99% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/http_signer.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/http_signer.go index 02fe013535..c0fd9a9f7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/http_signer.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/http_signer.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package common diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/log.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/log.go similarity index 88% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/log.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/log.go index b9578fa356..a7dc2b61cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/log.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/log.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package common @@ -35,8 +35,8 @@ const debugLogging = 2 //verboseLogging all logging messages const verboseLogging = 3 -//defaultSDKLogger the default implementation of the sdkLogger -type defaultSDKLogger struct { +//DefaultSDKLogger the default implementation of the sdkLogger +type DefaultSDKLogger struct { currentLoggingLevel int verboseLogger *log.Logger debugLogger *log.Logger @@ -51,26 +51,26 @@ var file *os.File //initializes the SDK defaultLogger as a defaultLogger func init() { - l, _ := newSDKLogger() - setSDKLogger(l) + l, _ := NewSDKLogger() + SetSDKLogger(l) } -//setSDKLogger sets the logger used by the sdk -func setSDKLogger(logger sdkLogger) { +//SetSDKLogger sets the logger used by the sdk +func SetSDKLogger(logger sdkLogger) { loggerLock.Lock() defaultLogger = logger loggerLock.Unlock() } -// newSDKLogger creates a defaultSDKLogger +// NewSDKLogger creates a defaultSDKLogger // Debug logging is turned on/off by the presence of the environment variable "OCI_GO_SDK_DEBUG" // The value of the "OCI_GO_SDK_DEBUG" environment variable controls the logging level. // "null" outputs no log messages // "i" or "info" outputs minimal log messages // "d" or "debug" outputs some logs messages // "v" or "verbose" outputs all logs messages, including body of requests -func newSDKLogger() (defaultSDKLogger, error) { - logger := defaultSDKLogger{} +func NewSDKLogger() (DefaultSDKLogger, error) { + logger := DefaultSDKLogger{} logger.currentLoggingLevel = noLogging logger.verboseLogger = log.New(os.Stderr, "VERBOSE ", log.Ldate|log.Lmicroseconds|log.Lshortfile) @@ -109,7 +109,7 @@ func newSDKLogger() (defaultSDKLogger, error) { return logger, nil } -func (l defaultSDKLogger) getLoggerForLevel(logLevel int) *log.Logger { +func (l DefaultSDKLogger) getLoggerForLevel(logLevel int) *log.Logger { if logLevel > l.currentLoggingLevel { return l.nullLogger } @@ -135,7 +135,7 @@ func (l defaultSDKLogger) getLoggerForLevel(logLevel int) *log.Logger { // other unsupported value outputs log to stderr // output file can be set via environment variable "OCI_GO_SDK_LOG_FILE" // if this environment variable is not set, a default log file will be created under project root path -func logOutputModeConfig(logger defaultSDKLogger) { +func logOutputModeConfig(logger DefaultSDKLogger) { logMode, isLogOutputModeEnabled := os.LookupEnv("OCI_GO_SDK_LOG_OUTPUT_MODE") if !isLogOutputModeEnabled { return @@ -163,7 +163,7 @@ func logOutputModeConfig(logger defaultSDKLogger) { } } -func openLogOutputFile(logger defaultSDKLogger, fileName string) *os.File { +func openLogOutputFile(logger DefaultSDKLogger, fileName string) *os.File { file, err := os.OpenFile(fileName, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644) if err != nil { logger.verboseLogger.Fatal(err) @@ -177,11 +177,12 @@ func CloseLogFile() error { } //LogLevel returns the current debug level -func (l defaultSDKLogger) LogLevel() int { +func (l DefaultSDKLogger) LogLevel() int { return l.currentLoggingLevel } -func (l defaultSDKLogger) Log(logLevel int, format string, v ...interface{}) error { +//Log logs v with the provided format if the current log level is loglevel +func (l DefaultSDKLogger) Log(logLevel int, format string, v ...interface{}) error { logger := l.getLoggerForLevel(logLevel) logger.Output(4, fmt.Sprintf(format, v...)) return nil diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go new file mode 100644 index 0000000000..7194e1df41 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.go @@ -0,0 +1,271 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + +package common + +const ( + //RegionAPChuncheon1 region Chuncheon + RegionAPChuncheon1 Region = "ap-chuncheon-1" + //RegionAPHyderabad1 region Hyderabad + RegionAPHyderabad1 Region = "ap-hyderabad-1" + //RegionAPMelbourne1 region Melbourne + RegionAPMelbourne1 Region = "ap-melbourne-1" + //RegionAPMumbai1 region Mumbai + RegionAPMumbai1 Region = "ap-mumbai-1" + //RegionAPOsaka1 region Osaka + RegionAPOsaka1 Region = "ap-osaka-1" + //RegionAPSeoul1 region Seoul + RegionAPSeoul1 Region = "ap-seoul-1" + //RegionAPSydney1 region Sydney + RegionAPSydney1 Region = "ap-sydney-1" + //RegionAPTokyo1 region Tokyo + RegionAPTokyo1 Region = "ap-tokyo-1" + //RegionAPSingapore1 region Singapore + RegionAPSingapore1 Region = "ap-singapore-1" + //RegionCAMontreal1 region Montreal + RegionCAMontreal1 Region = "ca-montreal-1" + //RegionCAToronto1 region Toronto + RegionCAToronto1 Region = "ca-toronto-1" + //RegionEUAmsterdam1 region Amsterdam + RegionEUAmsterdam1 Region = "eu-amsterdam-1" + //RegionFRA region Frankfurt + RegionFRA Region = "eu-frankfurt-1" + //RegionEUZurich1 region Zurich + RegionEUZurich1 Region = "eu-zurich-1" + //RegionMEJeddah1 region Jeddah + RegionMEJeddah1 Region = "me-jeddah-1" + //RegionMEDubai1 region Dubai + RegionMEDubai1 Region = "me-dubai-1" + //RegionSASaopaulo1 region Saopaulo + RegionSASaopaulo1 Region = "sa-saopaulo-1" + //RegionUKCardiff1 region Cardiff + RegionUKCardiff1 Region = "uk-cardiff-1" + //RegionLHR region London + RegionLHR Region = "uk-london-1" + //RegionIAD region Ashburn + RegionIAD Region = "us-ashburn-1" + //RegionPHX region Phoenix + RegionPHX Region = "us-phoenix-1" + //RegionSJC1 region Sanjose + RegionSJC1 Region = "us-sanjose-1" + //RegionMEAbudhabi1 region Abudhabi + RegionMEAbudhabi1 Region = "me-abudhabi-1" + //RegionSAVinhedo1 region Vinhedo + RegionSAVinhedo1 Region = "sa-vinhedo-1" + //RegionSASantiago1 region Santiago + RegionSASantiago1 Region = "sa-santiago-1" + //RegionEUMarseille1 region Marseille + RegionEUMarseille1 Region = "eu-marseille-1" + //RegionILJerusalem1 region Jerusalem + RegionILJerusalem1 Region = "il-jerusalem-1" + //RegionEUStockholm1 region Stockholm + RegionEUStockholm1 Region = "eu-stockholm-1" + //RegionEUMilan1 region Milan + RegionEUMilan1 Region = "eu-milan-1" + //RegionAFJohannesburg1 region Johannesburg + RegionAFJohannesburg1 Region = "af-johannesburg-1" + //RegionEUParis1 region Paris + RegionEUParis1 Region = "eu-paris-1" + //RegionMXQueretaro1 region Queretaro + RegionMXQueretaro1 Region = "mx-queretaro-1" + //RegionEUMadrid1 region Madrid + RegionEUMadrid1 Region = "eu-madrid-1" + //RegionUSChicago1 region Chicago + RegionUSChicago1 Region = "us-chicago-1" + //RegionMENeom1 region Neom + RegionMENeom1 Region = "me-neom-1" + //RegionEUKragujevac1 region Kragujevac + RegionEUKragujevac1 Region = "eu-kragujevac-1" + //RegionUSLangley1 region Langley + RegionUSLangley1 Region = "us-langley-1" + //RegionUSLuke1 region Luke + RegionUSLuke1 Region = "us-luke-1" + //RegionUSGovAshburn1 gov region Ashburn + RegionUSGovAshburn1 Region = "us-gov-ashburn-1" + //RegionUSGovChicago1 gov region Chicago + RegionUSGovChicago1 Region = "us-gov-chicago-1" + //RegionUSGovPhoenix1 gov region Phoenix + RegionUSGovPhoenix1 Region = "us-gov-phoenix-1" + //RegionUKGovLondon1 gov region London + RegionUKGovLondon1 Region = "uk-gov-london-1" + //RegionUKGovCardiff1 gov region Cardiff + RegionUKGovCardiff1 Region = "uk-gov-cardiff-1" + //RegionAPChiyoda1 region Chiyoda + RegionAPChiyoda1 Region = "ap-chiyoda-1" + //RegionAPIbaraki1 region Ibaraki + RegionAPIbaraki1 Region = "ap-ibaraki-1" + //RegionMEDccMuscat1 region Muscat + RegionMEDccMuscat1 Region = "me-dcc-muscat-1" + //RegionAPDccCanberra1 region Canberra + RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" + //RegionEUDccMilan1 region Milan + RegionEUDccMilan1 Region = "eu-dcc-milan-1" + //RegionEUDccDublin1 region Dublin + RegionEUDccDublin1 Region = "eu-dcc-dublin-1" + //RegionEUDccDublin2 region Dublin + RegionEUDccDublin2 Region = "eu-dcc-dublin-2" + //RegionEUDccRating2 region Rating + RegionEUDccRating2 Region = "eu-dcc-rating-2" + //RegionEUDccMilan2 region Milan + RegionEUDccMilan2 Region = "eu-dcc-milan-2" + //RegionEUDccRating1 region Rating + RegionEUDccRating1 Region = "eu-dcc-rating-1" + //RegionAPDccGazipur1 region Gazipur + RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" + //RegionUSWestjordan1 region Westjordan + RegionUSWestjordan1 Region = "us-westjordan-1" + //RegionUSDccPhoenix1 region Phoenix + RegionUSDccPhoenix1 Region = "us-dcc-phoenix-1" + //RegionUSDccPhoenix2 region Phoenix + RegionUSDccPhoenix2 Region = "us-dcc-phoenix-2" + //RegionUSDccPhoenix3 region Phoenix + RegionUSDccPhoenix3 Region = "us-dcc-phoenix-3" +) + +var shortNameRegion = map[string]Region{ + "yny": RegionAPChuncheon1, + "hyd": RegionAPHyderabad1, + "mel": RegionAPMelbourne1, + "bom": RegionAPMumbai1, + "kix": RegionAPOsaka1, + "icn": RegionAPSeoul1, + "syd": RegionAPSydney1, + "nrt": RegionAPTokyo1, + "sin": RegionAPSingapore1, + "yul": RegionCAMontreal1, + "yyz": RegionCAToronto1, + "ams": RegionEUAmsterdam1, + "fra": RegionFRA, + "zrh": RegionEUZurich1, + "jed": RegionMEJeddah1, + "dxb": RegionMEDubai1, + "gru": RegionSASaopaulo1, + "cwl": RegionUKCardiff1, + "lhr": RegionLHR, + "iad": RegionIAD, + "phx": RegionPHX, + "sjc": RegionSJC1, + "auh": RegionMEAbudhabi1, + "vcp": RegionSAVinhedo1, + "scl": RegionSASantiago1, + "mrs": RegionEUMarseille1, + "mtz": RegionILJerusalem1, + "arn": RegionEUStockholm1, + "lin": RegionEUMilan1, + "jnb": RegionAFJohannesburg1, + "cdg": RegionEUParis1, + "qro": RegionMXQueretaro1, + "mad": RegionEUMadrid1, + "ord": RegionUSChicago1, + "num": RegionMENeom1, + "kvo": RegionEUKragujevac1, + "lfi": RegionUSLangley1, + "luf": RegionUSLuke1, + "ric": RegionUSGovAshburn1, + "pia": RegionUSGovChicago1, + "tus": RegionUSGovPhoenix1, + "ltn": RegionUKGovLondon1, + "brs": RegionUKGovCardiff1, + "nja": RegionAPChiyoda1, + "ukb": RegionAPIbaraki1, + "mct": RegionMEDccMuscat1, + "wga": RegionAPDccCanberra1, + "bgy": RegionEUDccMilan1, + "ork": RegionEUDccDublin1, + "snn": RegionEUDccDublin2, + "dtm": RegionEUDccRating2, + "mxp": RegionEUDccMilan2, + "dus": RegionEUDccRating1, + "dac": RegionAPDccGazipur1, + "sgu": RegionUSWestjordan1, + "ifp": RegionUSDccPhoenix1, + "gcn": RegionUSDccPhoenix2, + "prc": RegionUSDccPhoenix3, +} + +var realm = map[string]string{ + "oc1": "oraclecloud.com", + "oc2": "oraclegovcloud.com", + "oc3": "oraclegovcloud.com", + "oc4": "oraclegovcloud.uk", + "oc8": "oraclecloud8.com", + "oc9": "oraclecloud9.com", + "oc10": "oraclecloud10.com", + "oc14": "oraclecloud14.com", + "oc15": "oraclecloud15.com", + "oc16": "oraclecloud16.com", + "oc17": "oraclecloud17.com", + "oc18": "oraclecloud18.com", +} + +var regionRealm = map[Region]string{ + RegionAPChuncheon1: "oc1", + RegionAPHyderabad1: "oc1", + RegionAPMelbourne1: "oc1", + RegionAPMumbai1: "oc1", + RegionAPOsaka1: "oc1", + RegionAPSeoul1: "oc1", + RegionAPSydney1: "oc1", + RegionAPTokyo1: "oc1", + RegionAPSingapore1: "oc1", + RegionCAMontreal1: "oc1", + RegionCAToronto1: "oc1", + RegionEUAmsterdam1: "oc1", + RegionFRA: "oc1", + RegionEUZurich1: "oc1", + RegionMEJeddah1: "oc1", + RegionMEDubai1: "oc1", + RegionSASaopaulo1: "oc1", + RegionUKCardiff1: "oc1", + RegionLHR: "oc1", + RegionIAD: "oc1", + RegionPHX: "oc1", + RegionSJC1: "oc1", + RegionMEAbudhabi1: "oc1", + RegionSAVinhedo1: "oc1", + RegionSASantiago1: "oc1", + RegionEUMarseille1: "oc1", + RegionILJerusalem1: "oc1", + RegionEUStockholm1: "oc1", + RegionEUMilan1: "oc1", + RegionAFJohannesburg1: "oc1", + RegionEUParis1: "oc1", + RegionMXQueretaro1: "oc1", + RegionEUMadrid1: "oc1", + RegionUSChicago1: "oc1", + RegionMENeom1: "oc1", + RegionEUKragujevac1: "oc1", + + RegionUSLangley1: "oc2", + RegionUSLuke1: "oc2", + + RegionUSGovAshburn1: "oc3", + RegionUSGovChicago1: "oc3", + RegionUSGovPhoenix1: "oc3", + + RegionUKGovLondon1: "oc4", + RegionUKGovCardiff1: "oc4", + + RegionAPChiyoda1: "oc8", + RegionAPIbaraki1: "oc8", + + RegionMEDccMuscat1: "oc9", + + RegionAPDccCanberra1: "oc10", + + RegionEUDccMilan1: "oc14", + RegionEUDccDublin1: "oc14", + RegionEUDccDublin2: "oc14", + RegionEUDccRating2: "oc14", + RegionEUDccMilan2: "oc14", + RegionEUDccRating1: "oc14", + + RegionAPDccGazipur1: "oc15", + + RegionUSWestjordan1: "oc16", + + RegionUSDccPhoenix1: "oc17", + RegionUSDccPhoenix2: "oc17", + + RegionUSDccPhoenix3: "oc18", +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json new file mode 100644 index 0000000000..b9d59b01db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/regions.json @@ -0,0 +1,350 @@ +[ + { + "regionKey": "yny", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-chuncheon-1", + "realmKey": "oc1" + }, + { + "regionKey": "hyd", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-hyderabad-1", + "realmKey": "oc1" + }, + { + "regionKey": "mel", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-melbourne-1", + "realmKey": "oc1" + }, + { + "regionKey": "bom", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-mumbai-1", + "realmKey": "oc1" + }, + { + "regionKey": "kix", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-osaka-1", + "realmKey": "oc1" + }, + { + "regionKey": "icn", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-seoul-1", + "realmKey": "oc1" + }, + { + "regionKey": "syd", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-sydney-1", + "realmKey": "oc1" + }, + { + "regionKey": "nrt", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-tokyo-1", + "realmKey": "oc1" + }, + { + "regionKey": "sin", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ap-singapore-1", + "realmKey": "oc1" + }, + { + "regionKey": "yul", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ca-montreal-1", + "realmKey": "oc1" + }, + { + "regionKey": "yyz", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "ca-toronto-1", + "realmKey": "oc1" + }, + { + "regionKey": "ams", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-amsterdam-1", + "realmKey": "oc1" + }, + { + "regionKey": "fra", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-frankfurt-1", + "realmKey": "oc1" + }, + { + "regionKey": "zrh", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-zurich-1", + "realmKey": "oc1" + }, + { + "regionKey": "jed", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "me-jeddah-1", + "realmKey": "oc1" + }, + { + "regionKey": "dxb", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "me-dubai-1", + "realmKey": "oc1" + }, + { + "regionKey": "gru", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "sa-saopaulo-1", + "realmKey": "oc1" + }, + { + "regionKey": "cwl", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "uk-cardiff-1", + "realmKey": "oc1" + }, + { + "regionKey": "lhr", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "uk-london-1", + "realmKey": "oc1" + }, + { + "regionKey": "iad", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "us-ashburn-1", + "realmKey": "oc1" + }, + { + "regionKey": "phx", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "us-phoenix-1", + "realmKey": "oc1" + }, + { + "regionKey": "sjc", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "us-sanjose-1", + "realmKey": "oc1" + }, + { + "regionKey": "auh", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "me-abudhabi-1", + "realmKey": "oc1" + }, + { + "regionKey": "vcp", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "sa-vinhedo-1", + "realmKey": "oc1" + }, + { + "regionKey": "scl", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "sa-santiago-1", + "realmKey": "oc1" + }, + { + "regionKey": "mrs", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-marseille-1", + "realmKey": "oc1" + }, + { + "regionKey": "mtz", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "il-jerusalem-1", + "realmKey": "oc1" + }, + { + "regionKey": "arn", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-stockholm-1", + "realmKey": "oc1" + }, + { + "regionKey": "lin", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-milan-1", + "realmKey": "oc1" + }, + { + "regionKey": "jnb", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "af-johannesburg-1", + "realmKey": "oc1" + }, + { + "regionKey": "cdg", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-paris-1", + "realmKey": "oc1" + }, + { + "regionKey": "lfi", + "realmDomainComponent": "oraclegovcloud.com", + "regionIdentifier": "us-langley-1", + "realmKey": "oc2" + }, + { + "regionKey": "luf", + "realmDomainComponent": "oraclegovcloud.com", + "regionIdentifier": "us-luke-1", + "realmKey": "oc2" + }, + { + "regionKey": "ric", + "realmDomainComponent": "oraclegovcloud.com", + "regionIdentifier": "us-gov-ashburn-1", + "realmKey": "oc3" + }, + { + "regionKey": "pia", + "realmDomainComponent": "oraclegovcloud.com", + "regionIdentifier": "us-gov-chicago-1", + "realmKey": "oc3" + }, + { + "regionKey": "tus", + "realmDomainComponent": "oraclegovcloud.com", + "regionIdentifier": "us-gov-phoenix-1", + "realmKey": "oc3" + }, + { + "regionKey": "ltn", + "realmDomainComponent": "oraclegovcloud.uk", + "regionIdentifier": "uk-gov-london-1", + "realmKey": "oc4" + }, + { + "regionKey": "brs", + "realmDomainComponent": "oraclegovcloud.uk", + "regionIdentifier": "uk-gov-cardiff-1", + "realmKey": "oc4" + }, + { + "regionKey": "nja", + "realmDomainComponent": "oraclecloud8.com", + "regionIdentifier": "ap-chiyoda-1", + "realmKey": "oc8" + }, + { + "regionKey": "ukb", + "realmDomainComponent": "oraclecloud8.com", + "regionIdentifier": "ap-ibaraki-1", + "realmKey": "oc8" + }, + { + "regionKey": "mct", + "realmDomainComponent": "oraclecloud9.com", + "regionIdentifier": "me-dcc-muscat-1", + "realmKey": "oc9" + }, + { + "regionKey": "wga", + "realmDomainComponent": "oraclecloud10.com", + "regionIdentifier": "ap-dcc-canberra-1", + "realmKey": "oc10" + }, + { + "regionKey": "qro", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "mx-queretaro-1", + "realmKey": "oc1" + }, + { + "regionKey": "bgy", + "realmDomainComponent": "oraclecloud14.com", + "regionIdentifier": "eu-dcc-milan-1", + "realmKey": "oc14" + }, + { + "regionKey": "mad", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-madrid-1", + "realmKey": "oc1" + }, + { + "regionKey": "sgu", + "realmDomainComponent": "oraclecloud16.com", + "regionIdentifier": "us-westjordan-1", + "realmKey": "oc16" + }, + { + "regionKey": "dac", + "realmDomainComponent": "oraclecloud15.com", + "regionIdentifier": "ap-dcc-gazipur-1", + "realmKey": "oc15" + }, + { + "regionKey": "ord", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "us-chicago-1", + "realmKey": "oc1" + }, + { + "regionKey": "ifp", + "realmDomainComponent": "oraclecloud17.com", + "regionIdentifier": "us-dcc-phoenix-1", + "realmKey": "oc17" + }, + { + "regionKey": "ork", + "realmDomainComponent": "oraclecloud14.com", + "regionIdentifier": "eu-dcc-dublin-1", + "realmKey": "oc14" + }, + { + "regionKey": "snn", + "realmDomainComponent": "oraclecloud14.com", + "regionIdentifier": "eu-dcc-dublin-2", + "realmKey": "oc14" + }, + { + "regionKey": "num", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "me-neom-1", + "realmKey": "oc1" + }, + { + "regionKey": "gcn", + "realmDomainComponent": "oraclecloud17.com", + "regionIdentifier": "us-dcc-phoenix-2", + "realmKey": "oc17" + }, + { + "regionKey": "dtm", + "realmDomainComponent": "oraclecloud14.com", + "regionIdentifier": "eu-dcc-rating-2", + "realmKey": "oc14" + }, + { + "regionKey": "prc", + "realmDomainComponent": "oraclecloud18.com", + "regionIdentifier": "us-dcc-phoenix-3", + "realmKey": "oc18" + }, + { + "regionKey": "mxp", + "realmDomainComponent": "oraclecloud14.com", + "regionIdentifier": "eu-dcc-milan-2", + "realmKey": "oc14" + }, + { + "regionKey": "dus", + "realmDomainComponent": "oraclecloud14.com", + "regionIdentifier": "eu-dcc-rating-1", + "realmKey": "oc14" + }, + { + "regionKey": "kvo", + "realmDomainComponent": "oraclecloud.com", + "regionIdentifier": "eu-kragujevac-1", + "realmKey": "oc1" + } +] \ No newline at end of file diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/retry.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go similarity index 94% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/retry.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go index ea790c53c1..3134ad05e4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/retry.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/retry.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. package common @@ -12,8 +12,6 @@ import ( "math/rand" "runtime" "strings" - "sync" - "sync/atomic" "time" ) @@ -61,52 +59,6 @@ type OCIOperationResponse struct { InitialAttemptTime time.Time } -// EventuallyConsistentContext contains the information about the end of the eventually consistent window. -type EventuallyConsistentContext struct { - endOfWindow atomic.Value - lock sync.Mutex - timeNowProvider func() time.Time -} - -// GetEndOfWindow returns the end time an eventually consistent window, -// or nil if no eventually consistent requests were made -func (e *EventuallyConsistentContext) GetEndOfWindow() *time.Time { - untyped := e.endOfWindow.Load() // returns nil if there has been no call to Store for this Value - if untyped == nil { - return (*time.Time)(nil) - } - t := untyped.(*time.Time) - return t -} - -// UpdateEndOfWindow sets the end time of the eventually consistent window the specified -// duration into the future -func (e *EventuallyConsistentContext) UpdateEndOfWindow(windowSize time.Duration) *time.Time { - e.lock.Lock() // synchronize with other potential writers - defer e.lock.Unlock() - currentEndOfWindowTime := e.GetEndOfWindow() - var newEndOfWindowTime = e.timeNowProvider().Add(windowSize) - if currentEndOfWindowTime == nil || newEndOfWindowTime.After(*currentEndOfWindowTime) { - e.endOfWindow.Store(&newEndOfWindowTime) // atomically replace the current object with the new one - return &newEndOfWindowTime - } - return currentEndOfWindowTime -} - -// setEndTimeOfEventuallyConsistentWindow sets the last time an eventually consistent request was made -// to the specified time -func (e *EventuallyConsistentContext) setEndOfWindow(newTime *time.Time) *time.Time { - e.lock.Lock() // synchronize with other potential writers - defer e.lock.Unlock() - e.endOfWindow.Store(newTime) // atomically replace the current object with the new one - return newTime -} - -// EcContext contains the information about the end of the eventually consistent window for this process. -var EcContext = EventuallyConsistentContext{ - timeNowProvider: func() time.Time { return time.Now() }, -} - const ( defaultMaximumNumberAttempts = uint(8) defaultExponentialBackoffBase = 2.0 @@ -126,21 +78,8 @@ var ( {501, "MethodNotImplemented"}: false, } - affectedByEventualConsistencyRetryStatusCodeMap = map[StatErrCode]bool{ - {400, "RelatedResourceNotAuthorizedOrNotFound"}: true, - {404, "NotAuthorizedOrNotFound"}: true, - {409, "NotAuthorizedOrResourceAlreadyExists"}: true, - } ) -// IsErrorAffectedByEventualConsistency returns true if the error is affected by eventual consistency. -func IsErrorAffectedByEventualConsistency(Error error) bool { - if err, ok := IsServiceError(Error); ok { - return affectedByEventualConsistencyRetryStatusCodeMap[StatErrCode{err.GetHTTPStatusCode(), err.GetCode()}] - } - return false -} - // IsErrorRetryableByDefault returns true if the error is retryable by OCI default retry policy func IsErrorRetryableByDefault(Error error) bool { if Error == nil { @@ -395,7 +334,8 @@ func returnSamePolicy(policy RetryPolicy) (RetryPolicy, *time.Time, float64) { // we're returning the end of window time nonetheless, even though the default non-eventual consistency (EC) // retry policy doesn't use it; this is useful in case developers wants to write an EC-aware retry policy // on their own - return policy, EcContext.GetEndOfWindow(), 1.0 + eowt := EcContext.GetEndOfWindow() + return policy, eowt, 1.0 } // NoRetryPolicy is a helper method that assembles and returns a return policy that indicates an operation should @@ -896,6 +836,7 @@ func Retry(ctx context.Context, request OCIRetryableRequest, operation OCIOperat // scaling factor should be policyToUse, endOfWindowTime, backoffScalingFactor := policy.DeterminePolicyToUse(policy) Debugln(fmt.Sprintf("Retry policy to use: %v", policyToUse)) + retryStartTime := time.Now() extraHeaders := make(map[string]string) @@ -920,6 +861,7 @@ func Retry(ctx context.Context, request OCIRetryableRequest, operation OCIOperat if !policyToUse.ShouldRetryOperation(operationResponse) { // we should NOT retry operation based on response and/or error => return retrierChannel <- retrierResult{response, err} + Debugln(fmt.Sprintf("Http Status Code: %v. Not Matching retry policy", operationResponse.Response.HTTPResponse().StatusCode)) return } // if the request body type is stream, requested retry but doesn't resettable, throw error and stop retrying @@ -941,7 +883,8 @@ func Retry(ctx context.Context, request OCIRetryableRequest, operation OCIOperat // sleep before retrying the operation <-time.After(duration) } - + retryEndTime := time.Now() + Debugln(fmt.Sprintf("Total Latency for this API call is: %v ms", retryEndTime.Sub(retryStartTime).Milliseconds())) retrierChannel <- retrierResult{response, err} }() diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/common/version.go b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go similarity index 95% rename from vendor/github.com/oracle/oci-go-sdk/v49/common/version.go rename to vendor/github.com/oracle/oci-go-sdk/v65/common/version.go index 989954e120..6aeb91743e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/common/version.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/common/version.go @@ -11,9 +11,9 @@ import ( ) const ( - major = "49" - minor = "2" - patch = "0" + major = "65" + minor = "18" + patch = "1" tag = "preview" ) diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_options.go new file mode 100644 index 0000000000..ff3d1a08c5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/addon_options.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddonOptions The properties that define options for supported addons. +type AddonOptions struct { + + // Whether or not to enable the Kubernetes Dashboard addon. + IsKubernetesDashboardEnabled *bool `mandatory:"false" json:"isKubernetesDashboardEnabled"` + + // Whether or not to enable the Tiller addon. + IsTillerEnabled *bool `mandatory:"false" json:"isTillerEnabled"` +} + +func (m AddonOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddonOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/admission_controller_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/admission_controller_options.go new file mode 100644 index 0000000000..13510ee602 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/admission_controller_options.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AdmissionControllerOptions The properties that define supported admission controllers. +type AdmissionControllerOptions struct { + + // Whether or not to enable the Pod Security Policy admission controller. + IsPodSecurityPolicyEnabled *bool `mandatory:"false" json:"isPodSecurityPolicyEnabled"` +} + +func (m AdmissionControllerOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AdmissionControllerOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster.go new file mode 100644 index 0000000000..26a4697767 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster.go @@ -0,0 +1,182 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Cluster A Kubernetes cluster. Avoid entering confidential information. +type Cluster struct { + + // The OCID of the cluster. + Id *string `mandatory:"false" json:"id"` + + // The name of the cluster. + Name *string `mandatory:"false" json:"name"` + + // The OCID of the compartment in which the cluster exists. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The network configuration for access to the Cluster control plane. + EndpointConfig *ClusterEndpointConfig `mandatory:"false" json:"endpointConfig"` + + // The OCID of the virtual cloud network (VCN) in which the cluster exists. + VcnId *string `mandatory:"false" json:"vcnId"` + + // The version of Kubernetes running on the cluster masters. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // Optional attributes for the cluster. + Options *ClusterCreateOptions `mandatory:"false" json:"options"` + + // Metadata about the cluster. + Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` + + // The state of the cluster masters. + LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the cluster masters. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Endpoints served up by the cluster masters. + Endpoints *ClusterEndpoints `mandatory:"false" json:"endpoints"` + + // Available Kubernetes versions to which the clusters masters may be upgraded. + AvailableKubernetesUpgrades []string `mandatory:"false" json:"availableKubernetesUpgrades"` + + // The image verification policy for signature validation. + ImagePolicyConfig *ImagePolicyConfig `mandatory:"false" json:"imagePolicyConfig"` + + // Available CNIs and network options for existing and new node pools of the cluster + ClusterPodNetworkOptions []ClusterPodNetworkOptionDetails `mandatory:"false" json:"clusterPodNetworkOptions"` +} + +func (m Cluster) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Cluster) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClusterLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClusterLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *Cluster) UnmarshalJSON(data []byte) (e error) { + model := struct { + Id *string `json:"id"` + Name *string `json:"name"` + CompartmentId *string `json:"compartmentId"` + EndpointConfig *ClusterEndpointConfig `json:"endpointConfig"` + VcnId *string `json:"vcnId"` + KubernetesVersion *string `json:"kubernetesVersion"` + KmsKeyId *string `json:"kmsKeyId"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Options *ClusterCreateOptions `json:"options"` + Metadata *ClusterMetadata `json:"metadata"` + LifecycleState ClusterLifecycleStateEnum `json:"lifecycleState"` + LifecycleDetails *string `json:"lifecycleDetails"` + Endpoints *ClusterEndpoints `json:"endpoints"` + AvailableKubernetesUpgrades []string `json:"availableKubernetesUpgrades"` + ImagePolicyConfig *ImagePolicyConfig `json:"imagePolicyConfig"` + ClusterPodNetworkOptions []clusterpodnetworkoptiondetails `json:"clusterPodNetworkOptions"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Id = model.Id + + m.Name = model.Name + + m.CompartmentId = model.CompartmentId + + m.EndpointConfig = model.EndpointConfig + + m.VcnId = model.VcnId + + m.KubernetesVersion = model.KubernetesVersion + + m.KmsKeyId = model.KmsKeyId + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.Options = model.Options + + m.Metadata = model.Metadata + + m.LifecycleState = model.LifecycleState + + m.LifecycleDetails = model.LifecycleDetails + + m.Endpoints = model.Endpoints + + m.AvailableKubernetesUpgrades = make([]string, len(model.AvailableKubernetesUpgrades)) + for i, n := range model.AvailableKubernetesUpgrades { + m.AvailableKubernetesUpgrades[i] = n + } + + m.ImagePolicyConfig = model.ImagePolicyConfig + + m.ClusterPodNetworkOptions = make([]ClusterPodNetworkOptionDetails, len(model.ClusterPodNetworkOptions)) + for i, n := range model.ClusterPodNetworkOptions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ClusterPodNetworkOptions[i] = nn.(ClusterPodNetworkOptionDetails) + } else { + m.ClusterPodNetworkOptions[i] = nil + } + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_create_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_create_options.go new file mode 100644 index 0000000000..5f06a8e355 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_create_options.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterCreateOptions The properties that define extra options for a cluster. +type ClusterCreateOptions struct { + + // The OCIDs of the subnets used for Kubernetes services load balancers. + ServiceLbSubnetIds []string `mandatory:"false" json:"serviceLbSubnetIds"` + + // Network configuration for Kubernetes. + KubernetesNetworkConfig *KubernetesNetworkConfig `mandatory:"false" json:"kubernetesNetworkConfig"` + + // Configurable cluster addons + Addons *AddonOptions `mandatory:"false" json:"addons"` + + // Configurable cluster admission controllers + AdmissionControllerOptions *AdmissionControllerOptions `mandatory:"false" json:"admissionControllerOptions"` + + PersistentVolumeConfig *PersistentVolumeConfigDetails `mandatory:"false" json:"persistentVolumeConfig"` + + ServiceLbConfig *ServiceLbConfigDetails `mandatory:"false" json:"serviceLbConfig"` +} + +func (m ClusterCreateOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterCreateOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoint_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoint_config.go new file mode 100644 index 0000000000..f0745c9102 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoint_config.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterEndpointConfig The properties that define the network configuration for the Cluster endpoint. +type ClusterEndpointConfig struct { + + // The OCID of the regional subnet in which to place the Cluster endpoint. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // A list of the OCIDs of the network security groups (NSGs) to apply to the cluster endpoint. For more information about NSGs, see NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Whether the cluster should be assigned a public IP address. Defaults to false. If set to true on a private subnet, the cluster provisioning will fail. + IsPublicIpEnabled *bool `mandatory:"false" json:"isPublicIpEnabled"` +} + +func (m ClusterEndpointConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterEndpointConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoints.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoints.go new file mode 100644 index 0000000000..f12b337e4f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_endpoints.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterEndpoints The properties that define endpoints for a cluster. +type ClusterEndpoints struct { + + // The non-native networking Kubernetes API server endpoint. + Kubernetes *string `mandatory:"false" json:"kubernetes"` + + // The public native networking Kubernetes API server endpoint, if one was requested. + PublicEndpoint *string `mandatory:"false" json:"publicEndpoint"` + + // The private native networking Kubernetes API server endpoint. + PrivateEndpoint *string `mandatory:"false" json:"privateEndpoint"` + + // The FQDN assigned to the Kubernetes API private endpoint. + // Example: 'https://yourVcnHostnameEndpoint' + VcnHostnameEndpoint *string `mandatory:"false" json:"vcnHostnameEndpoint"` +} + +func (m ClusterEndpoints) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterEndpoints) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_lifecycle_state.go new file mode 100644 index 0000000000..cc7f2c60b5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_lifecycle_state.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// ClusterLifecycleStateEnum Enum with underlying type: string +type ClusterLifecycleStateEnum string + +// Set of constants representing the allowable values for ClusterLifecycleStateEnum +const ( + ClusterLifecycleStateCreating ClusterLifecycleStateEnum = "CREATING" + ClusterLifecycleStateActive ClusterLifecycleStateEnum = "ACTIVE" + ClusterLifecycleStateFailed ClusterLifecycleStateEnum = "FAILED" + ClusterLifecycleStateDeleting ClusterLifecycleStateEnum = "DELETING" + ClusterLifecycleStateDeleted ClusterLifecycleStateEnum = "DELETED" + ClusterLifecycleStateUpdating ClusterLifecycleStateEnum = "UPDATING" +) + +var mappingClusterLifecycleStateEnum = map[string]ClusterLifecycleStateEnum{ + "CREATING": ClusterLifecycleStateCreating, + "ACTIVE": ClusterLifecycleStateActive, + "FAILED": ClusterLifecycleStateFailed, + "DELETING": ClusterLifecycleStateDeleting, + "DELETED": ClusterLifecycleStateDeleted, + "UPDATING": ClusterLifecycleStateUpdating, +} + +var mappingClusterLifecycleStateEnumLowerCase = map[string]ClusterLifecycleStateEnum{ + "creating": ClusterLifecycleStateCreating, + "active": ClusterLifecycleStateActive, + "failed": ClusterLifecycleStateFailed, + "deleting": ClusterLifecycleStateDeleting, + "deleted": ClusterLifecycleStateDeleted, + "updating": ClusterLifecycleStateUpdating, +} + +// GetClusterLifecycleStateEnumValues Enumerates the set of values for ClusterLifecycleStateEnum +func GetClusterLifecycleStateEnumValues() []ClusterLifecycleStateEnum { + values := make([]ClusterLifecycleStateEnum, 0) + for _, v := range mappingClusterLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetClusterLifecycleStateEnumStringValues Enumerates the set of values in String for ClusterLifecycleStateEnum +func GetClusterLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "FAILED", + "DELETING", + "DELETED", + "UPDATING", + } +} + +// GetMappingClusterLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClusterLifecycleStateEnum(val string) (ClusterLifecycleStateEnum, bool) { + enum, ok := mappingClusterLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_metadata.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go index 88f5bf0c62..d1f7848fc7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_metadata.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_metadata.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ClusterMetadata The properties that define meta data for a cluster. @@ -49,3 +51,15 @@ type ClusterMetadata struct { func (m ClusterMetadata) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterMetadata) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_details.go new file mode 100644 index 0000000000..5cb302397e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterMigrateToNativeVcnDetails The properties that define a request to migrate a cluster to Native VCN. +type ClusterMigrateToNativeVcnDetails struct { + + // The network configuration for access to the Cluster control plane. + EndpointConfig *ClusterEndpointConfig `mandatory:"true" json:"endpointConfig"` + + // The optional override of the non-native endpoint decommission time after migration is complete. Defaults to 30 days. + DecommissionDelayDuration *string `mandatory:"false" json:"decommissionDelayDuration"` +} + +func (m ClusterMigrateToNativeVcnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterMigrateToNativeVcnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_request_response.go index b29b89676e..065c097f33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/cluster_migrate_to_native_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ClusterMigrateToNativeVcnRequest wrapper for the ClusterMigrateToNativeVcn operation @@ -39,6 +41,10 @@ func (request ClusterMigrateToNativeVcnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ClusterMigrateToNativeVcnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request ClusterMigrateToNativeVcnRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ClusterMigrateToNativeVcnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ClusterMigrateToNativeVcnResponse wrapper for the ClusterMigrateToNativeVcn operation type ClusterMigrateToNativeVcnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_status.go new file mode 100644 index 0000000000..1f48da6133 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_migrate_to_native_vcn_status.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterMigrateToNativeVcnStatus Information regarding a cluster's move to Native VCN. +type ClusterMigrateToNativeVcnStatus struct { + + // The current migration status of the cluster. + State ClusterMigrateToNativeVcnStatusStateEnum `mandatory:"true" json:"state"` + + // The date and time the non-native VCN is due to be decommissioned. + TimeDecommissionScheduled *common.SDKTime `mandatory:"false" json:"timeDecommissionScheduled"` +} + +func (m ClusterMigrateToNativeVcnStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterMigrateToNativeVcnStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingClusterMigrateToNativeVcnStatusStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetClusterMigrateToNativeVcnStatusStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClusterMigrateToNativeVcnStatusStateEnum Enum with underlying type: string +type ClusterMigrateToNativeVcnStatusStateEnum string + +// Set of constants representing the allowable values for ClusterMigrateToNativeVcnStatusStateEnum +const ( + ClusterMigrateToNativeVcnStatusStateNotStarted ClusterMigrateToNativeVcnStatusStateEnum = "NOT_STARTED" + ClusterMigrateToNativeVcnStatusStateRequested ClusterMigrateToNativeVcnStatusStateEnum = "REQUESTED" + ClusterMigrateToNativeVcnStatusStateInProgress ClusterMigrateToNativeVcnStatusStateEnum = "IN_PROGRESS" + ClusterMigrateToNativeVcnStatusStatePendingDecommission ClusterMigrateToNativeVcnStatusStateEnum = "PENDING_DECOMMISSION" + ClusterMigrateToNativeVcnStatusStateCompleted ClusterMigrateToNativeVcnStatusStateEnum = "COMPLETED" +) + +var mappingClusterMigrateToNativeVcnStatusStateEnum = map[string]ClusterMigrateToNativeVcnStatusStateEnum{ + "NOT_STARTED": ClusterMigrateToNativeVcnStatusStateNotStarted, + "REQUESTED": ClusterMigrateToNativeVcnStatusStateRequested, + "IN_PROGRESS": ClusterMigrateToNativeVcnStatusStateInProgress, + "PENDING_DECOMMISSION": ClusterMigrateToNativeVcnStatusStatePendingDecommission, + "COMPLETED": ClusterMigrateToNativeVcnStatusStateCompleted, +} + +var mappingClusterMigrateToNativeVcnStatusStateEnumLowerCase = map[string]ClusterMigrateToNativeVcnStatusStateEnum{ + "not_started": ClusterMigrateToNativeVcnStatusStateNotStarted, + "requested": ClusterMigrateToNativeVcnStatusStateRequested, + "in_progress": ClusterMigrateToNativeVcnStatusStateInProgress, + "pending_decommission": ClusterMigrateToNativeVcnStatusStatePendingDecommission, + "completed": ClusterMigrateToNativeVcnStatusStateCompleted, +} + +// GetClusterMigrateToNativeVcnStatusStateEnumValues Enumerates the set of values for ClusterMigrateToNativeVcnStatusStateEnum +func GetClusterMigrateToNativeVcnStatusStateEnumValues() []ClusterMigrateToNativeVcnStatusStateEnum { + values := make([]ClusterMigrateToNativeVcnStatusStateEnum, 0) + for _, v := range mappingClusterMigrateToNativeVcnStatusStateEnum { + values = append(values, v) + } + return values +} + +// GetClusterMigrateToNativeVcnStatusStateEnumStringValues Enumerates the set of values in String for ClusterMigrateToNativeVcnStatusStateEnum +func GetClusterMigrateToNativeVcnStatusStateEnumStringValues() []string { + return []string{ + "NOT_STARTED", + "REQUESTED", + "IN_PROGRESS", + "PENDING_DECOMMISSION", + "COMPLETED", + } +} + +// GetMappingClusterMigrateToNativeVcnStatusStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClusterMigrateToNativeVcnStatusStateEnum(val string) (ClusterMigrateToNativeVcnStatusStateEnum, bool) { + enum, ok := mappingClusterMigrateToNativeVcnStatusStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_options.go new file mode 100644 index 0000000000..e0e5a5f2a0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_options.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterOptions Options for creating or updating clusters. +type ClusterOptions struct { + + // Available Kubernetes versions. + KubernetesVersions []string `mandatory:"false" json:"kubernetesVersions"` + + // Available CNIs and network options for existing and new node pools of the cluster + ClusterPodNetworkOptions []ClusterPodNetworkOptionDetails `mandatory:"false" json:"clusterPodNetworkOptions"` +} + +func (m ClusterOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *ClusterOptions) UnmarshalJSON(data []byte) (e error) { + model := struct { + KubernetesVersions []string `json:"kubernetesVersions"` + ClusterPodNetworkOptions []clusterpodnetworkoptiondetails `json:"clusterPodNetworkOptions"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.KubernetesVersions = make([]string, len(model.KubernetesVersions)) + for i, n := range model.KubernetesVersions { + m.KubernetesVersions[i] = n + } + + m.ClusterPodNetworkOptions = make([]ClusterPodNetworkOptionDetails, len(model.ClusterPodNetworkOptions)) + for i, n := range model.ClusterPodNetworkOptions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ClusterPodNetworkOptions[i] = nn.(ClusterPodNetworkOptionDetails) + } else { + m.ClusterPodNetworkOptions[i] = nil + } + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_pod_network_option_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_pod_network_option_details.go new file mode 100644 index 0000000000..aba3b26035 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_pod_network_option_details.go @@ -0,0 +1,125 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterPodNetworkOptionDetails The CNI type and relevant network details potentially applicable to the node pools of the cluster +type ClusterPodNetworkOptionDetails interface { +} + +type clusterpodnetworkoptiondetails struct { + JsonData []byte + CniType string `json:"cniType"` +} + +// UnmarshalJSON unmarshals json +func (m *clusterpodnetworkoptiondetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerclusterpodnetworkoptiondetails clusterpodnetworkoptiondetails + s := struct { + Model Unmarshalerclusterpodnetworkoptiondetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CniType = s.Model.CniType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *clusterpodnetworkoptiondetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.CniType { + case "FLANNEL_OVERLAY": + mm := FlannelOverlayClusterPodNetworkOptionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "OCI_VCN_IP_NATIVE": + mm := OciVcnIpNativeClusterPodNetworkOptionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ClusterPodNetworkOptionDetails: %s.", m.CniType) + return *m, nil + } +} + +func (m clusterpodnetworkoptiondetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m clusterpodnetworkoptiondetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClusterPodNetworkOptionDetailsCniTypeEnum Enum with underlying type: string +type ClusterPodNetworkOptionDetailsCniTypeEnum string + +// Set of constants representing the allowable values for ClusterPodNetworkOptionDetailsCniTypeEnum +const ( + ClusterPodNetworkOptionDetailsCniTypeOciVcnIpNative ClusterPodNetworkOptionDetailsCniTypeEnum = "OCI_VCN_IP_NATIVE" + ClusterPodNetworkOptionDetailsCniTypeFlannelOverlay ClusterPodNetworkOptionDetailsCniTypeEnum = "FLANNEL_OVERLAY" +) + +var mappingClusterPodNetworkOptionDetailsCniTypeEnum = map[string]ClusterPodNetworkOptionDetailsCniTypeEnum{ + "OCI_VCN_IP_NATIVE": ClusterPodNetworkOptionDetailsCniTypeOciVcnIpNative, + "FLANNEL_OVERLAY": ClusterPodNetworkOptionDetailsCniTypeFlannelOverlay, +} + +var mappingClusterPodNetworkOptionDetailsCniTypeEnumLowerCase = map[string]ClusterPodNetworkOptionDetailsCniTypeEnum{ + "oci_vcn_ip_native": ClusterPodNetworkOptionDetailsCniTypeOciVcnIpNative, + "flannel_overlay": ClusterPodNetworkOptionDetailsCniTypeFlannelOverlay, +} + +// GetClusterPodNetworkOptionDetailsCniTypeEnumValues Enumerates the set of values for ClusterPodNetworkOptionDetailsCniTypeEnum +func GetClusterPodNetworkOptionDetailsCniTypeEnumValues() []ClusterPodNetworkOptionDetailsCniTypeEnum { + values := make([]ClusterPodNetworkOptionDetailsCniTypeEnum, 0) + for _, v := range mappingClusterPodNetworkOptionDetailsCniTypeEnum { + values = append(values, v) + } + return values +} + +// GetClusterPodNetworkOptionDetailsCniTypeEnumStringValues Enumerates the set of values in String for ClusterPodNetworkOptionDetailsCniTypeEnum +func GetClusterPodNetworkOptionDetailsCniTypeEnumStringValues() []string { + return []string{ + "OCI_VCN_IP_NATIVE", + "FLANNEL_OVERLAY", + } +} + +// GetMappingClusterPodNetworkOptionDetailsCniTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClusterPodNetworkOptionDetailsCniTypeEnum(val string) (ClusterPodNetworkOptionDetailsCniTypeEnum, bool) { + enum, ok := mappingClusterPodNetworkOptionDetailsCniTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_summary.go new file mode 100644 index 0000000000..c0003909c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/cluster_summary.go @@ -0,0 +1,197 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterSummary The properties that define a cluster summary. +type ClusterSummary struct { + + // The OCID of the cluster. + Id *string `mandatory:"false" json:"id"` + + // The name of the cluster. + Name *string `mandatory:"false" json:"name"` + + // The OCID of the compartment in which the cluster exists. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The network configuration for access to the Cluster control plane. + EndpointConfig *ClusterEndpointConfig `mandatory:"false" json:"endpointConfig"` + + // The OCID of the virtual cloud network (VCN) in which the cluster exists + VcnId *string `mandatory:"false" json:"vcnId"` + + // The version of Kubernetes running on the cluster masters. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // Optional attributes for the cluster. + Options *ClusterCreateOptions `mandatory:"false" json:"options"` + + // Metadata about the cluster. + Metadata *ClusterMetadata `mandatory:"false" json:"metadata"` + + // The state of the cluster masters. + LifecycleState ClusterLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the cluster masters. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Endpoints served up by the cluster masters. + Endpoints *ClusterEndpoints `mandatory:"false" json:"endpoints"` + + // Available Kubernetes versions to which the clusters masters may be upgraded. + AvailableKubernetesUpgrades []string `mandatory:"false" json:"availableKubernetesUpgrades"` + + // The image verification policy for signature validation. + ImagePolicyConfig *ImagePolicyConfig `mandatory:"false" json:"imagePolicyConfig"` + + // Available CNIs and network options for existing and new node pools of the cluster + ClusterPodNetworkOptions []ClusterPodNetworkOptionDetails `mandatory:"false" json:"clusterPodNetworkOptions"` +} + +func (m ClusterSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClusterLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClusterLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *ClusterSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + Id *string `json:"id"` + Name *string `json:"name"` + CompartmentId *string `json:"compartmentId"` + EndpointConfig *ClusterEndpointConfig `json:"endpointConfig"` + VcnId *string `json:"vcnId"` + KubernetesVersion *string `json:"kubernetesVersion"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + Options *ClusterCreateOptions `json:"options"` + Metadata *ClusterMetadata `json:"metadata"` + LifecycleState ClusterLifecycleStateEnum `json:"lifecycleState"` + LifecycleDetails *string `json:"lifecycleDetails"` + Endpoints *ClusterEndpoints `json:"endpoints"` + AvailableKubernetesUpgrades []string `json:"availableKubernetesUpgrades"` + ImagePolicyConfig *ImagePolicyConfig `json:"imagePolicyConfig"` + ClusterPodNetworkOptions []clusterpodnetworkoptiondetails `json:"clusterPodNetworkOptions"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Id = model.Id + + m.Name = model.Name + + m.CompartmentId = model.CompartmentId + + m.EndpointConfig = model.EndpointConfig + + m.VcnId = model.VcnId + + m.KubernetesVersion = model.KubernetesVersion + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.Options = model.Options + + m.Metadata = model.Metadata + + m.LifecycleState = model.LifecycleState + + m.LifecycleDetails = model.LifecycleDetails + + m.Endpoints = model.Endpoints + + m.AvailableKubernetesUpgrades = make([]string, len(model.AvailableKubernetesUpgrades)) + for i, n := range model.AvailableKubernetesUpgrades { + m.AvailableKubernetesUpgrades[i] = n + } + + m.ImagePolicyConfig = model.ImagePolicyConfig + + m.ClusterPodNetworkOptions = make([]ClusterPodNetworkOptionDetails, len(model.ClusterPodNetworkOptions)) + for i, n := range model.ClusterPodNetworkOptions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ClusterPodNetworkOptions[i] = nn.(ClusterPodNetworkOptionDetails) + } else { + m.ClusterPodNetworkOptions[i] = nil + } + } + + return +} + +// ClusterSummaryLifecycleStateEnum is an alias to type: ClusterLifecycleStateEnum +// Consider using ClusterLifecycleStateEnum instead +// Deprecated +type ClusterSummaryLifecycleStateEnum = ClusterLifecycleStateEnum + +// Set of constants representing the allowable values for ClusterLifecycleStateEnum +// Deprecated +const ( + ClusterSummaryLifecycleStateCreating ClusterLifecycleStateEnum = "CREATING" + ClusterSummaryLifecycleStateActive ClusterLifecycleStateEnum = "ACTIVE" + ClusterSummaryLifecycleStateFailed ClusterLifecycleStateEnum = "FAILED" + ClusterSummaryLifecycleStateDeleting ClusterLifecycleStateEnum = "DELETING" + ClusterSummaryLifecycleStateDeleted ClusterLifecycleStateEnum = "DELETED" + ClusterSummaryLifecycleStateUpdating ClusterLifecycleStateEnum = "UPDATING" +) + +// GetClusterSummaryLifecycleStateEnumValues Enumerates the set of values for ClusterLifecycleStateEnum +// Consider using GetClusterLifecycleStateEnumValue +// Deprecated +var GetClusterSummaryLifecycleStateEnumValues = GetClusterLifecycleStateEnumValues diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go new file mode 100644 index 0000000000..c5eae1e932 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/containerengine_client.go @@ -0,0 +1,1837 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +//ContainerEngineClient a client for ContainerEngine +type ContainerEngineClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewContainerEngineClientWithConfigurationProvider Creates a new default ContainerEngine client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewContainerEngineClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client ContainerEngineClient, err error) { + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newContainerEngineClientFromBaseClient(baseClient, provider) +} + +// NewContainerEngineClientWithOboToken Creates a new default ContainerEngine client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// as well as reading the region +func NewContainerEngineClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client ContainerEngineClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newContainerEngineClientFromBaseClient(baseClient, configProvider) +} + +func newContainerEngineClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ContainerEngineClient, err error) { + // ContainerEngine service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("ContainerEngine")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = ContainerEngineClient{BaseClient: baseClient} + client.BasePath = "20180222" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *ContainerEngineClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("containerengine", "https://containerengine.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *ContainerEngineClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *ContainerEngineClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// ClusterMigrateToNativeVcn Initiates cluster migration to use native VCN. +// A default retry strategy applies to this operation ClusterMigrateToNativeVcn() +func (client ContainerEngineClient) ClusterMigrateToNativeVcn(ctx context.Context, request ClusterMigrateToNativeVcnRequest) (response ClusterMigrateToNativeVcnResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.clusterMigrateToNativeVcn, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ClusterMigrateToNativeVcnResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ClusterMigrateToNativeVcnResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ClusterMigrateToNativeVcnResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ClusterMigrateToNativeVcnResponse") + } + return +} + +// clusterMigrateToNativeVcn implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) clusterMigrateToNativeVcn(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/migrateToNativeVcn", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ClusterMigrateToNativeVcnResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/ClusterMigrateToNativeVcn" + err = common.PostProcessServiceError(err, "ContainerEngine", "ClusterMigrateToNativeVcn", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateCluster Create a new cluster. +// A default retry strategy applies to this operation CreateCluster() +func (client ContainerEngineClient) CreateCluster(ctx context.Context, request CreateClusterRequest) (response CreateClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateClusterResponse") + } + return +} + +// createCluster implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) createCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateCluster" + err = common.PostProcessServiceError(err, "ContainerEngine", "CreateCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateKubeconfig Create the Kubeconfig YAML for a cluster. +// A default retry strategy applies to this operation CreateKubeconfig() +func (client ContainerEngineClient) CreateKubeconfig(ctx context.Context, request CreateKubeconfigRequest) (response CreateKubeconfigResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.createKubeconfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateKubeconfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateKubeconfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateKubeconfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateKubeconfigResponse") + } + return +} + +// createKubeconfig implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) createKubeconfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/kubeconfig/content", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateKubeconfigResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/CreateKubeconfig" + err = common.PostProcessServiceError(err, "ContainerEngine", "CreateKubeconfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateNodePool Create a new node pool. +// A default retry strategy applies to this operation CreateNodePool() +func (client ContainerEngineClient) CreateNodePool(ctx context.Context, request CreateNodePoolRequest) (response CreateNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateNodePoolResponse") + } + return +} + +// createNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) createNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/nodePools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/CreateNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "CreateNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateVirtualNodePool Create a new virtual node pool. +// A default retry strategy applies to this operation CreateVirtualNodePool() +func (client ContainerEngineClient) CreateVirtualNodePool(ctx context.Context, request CreateVirtualNodePoolRequest) (response CreateVirtualNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createVirtualNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateVirtualNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateVirtualNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateVirtualNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateVirtualNodePoolResponse") + } + return +} + +// createVirtualNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) createVirtualNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/virtualNodePools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateVirtualNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/CreateVirtualNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "CreateVirtualNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteCluster Delete a cluster. +// A default retry strategy applies to this operation DeleteCluster() +func (client ContainerEngineClient) DeleteCluster(ctx context.Context, request DeleteClusterRequest) (response DeleteClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteClusterResponse") + } + return +} + +// deleteCluster implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) deleteCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/clusters/{clusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/DeleteCluster" + err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteNode Delete node. +// A default retry strategy applies to this operation DeleteNode() +func (client ContainerEngineClient) DeleteNode(ctx context.Context, request DeleteNodeRequest) (response DeleteNodeResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteNodeResponse") + } + return +} + +// deleteNode implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) deleteNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/nodePools/{nodePoolId}/node/{nodeId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteNodeResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNode" + err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteNodePool Delete a node pool. +// A default retry strategy applies to this operation DeleteNodePool() +func (client ContainerEngineClient) DeleteNodePool(ctx context.Context, request DeleteNodePoolRequest) (response DeleteNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteNodePoolResponse") + } + return +} + +// deleteNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) deleteNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/nodePools/{nodePoolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/DeleteNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteVirtualNode Delete virtual node. +// A default retry strategy applies to this operation DeleteVirtualNode() +func (client ContainerEngineClient) DeleteVirtualNode(ctx context.Context, request DeleteVirtualNodeRequest) (response DeleteVirtualNodeResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteVirtualNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteVirtualNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteVirtualNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteVirtualNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteVirtualNodeResponse") + } + return +} + +// deleteVirtualNode implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) deleteVirtualNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/virtualNodePools/{virtualNodePoolId}/virtualNodes/{virtualNodeId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteVirtualNodeResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/DeleteVirtualNode" + err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteVirtualNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteVirtualNodePool Delete a virtual node pool. +// A default retry strategy applies to this operation DeleteVirtualNodePool() +func (client ContainerEngineClient) DeleteVirtualNodePool(ctx context.Context, request DeleteVirtualNodePoolRequest) (response DeleteVirtualNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteVirtualNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteVirtualNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteVirtualNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteVirtualNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteVirtualNodePoolResponse") + } + return +} + +// deleteVirtualNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) deleteVirtualNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/virtualNodePools/{virtualNodePoolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteVirtualNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/DeleteVirtualNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteVirtualNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteWorkRequest Cancel a work request that has not started. +// A default retry strategy applies to this operation DeleteWorkRequest() +func (client ContainerEngineClient) DeleteWorkRequest(ctx context.Context, request DeleteWorkRequestRequest) (response DeleteWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteWorkRequestResponse") + } + return +} + +// deleteWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) deleteWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/DeleteWorkRequest" + err = common.PostProcessServiceError(err, "ContainerEngine", "DeleteWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetCluster Get the details of a cluster. +// A default retry strategy applies to this operation GetCluster() +func (client ContainerEngineClient) GetCluster(ctx context.Context, request GetClusterRequest) (response GetClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetClusterResponse") + } + return +} + +// getCluster implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/GetCluster" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetClusterMigrateToNativeVcnStatus Get details on a cluster's migration to native VCN. +// A default retry strategy applies to this operation GetClusterMigrateToNativeVcnStatus() +func (client ContainerEngineClient) GetClusterMigrateToNativeVcnStatus(ctx context.Context, request GetClusterMigrateToNativeVcnStatusRequest) (response GetClusterMigrateToNativeVcnStatusResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getClusterMigrateToNativeVcnStatus, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetClusterMigrateToNativeVcnStatusResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetClusterMigrateToNativeVcnStatusResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetClusterMigrateToNativeVcnStatusResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetClusterMigrateToNativeVcnStatusResponse") + } + return +} + +// getClusterMigrateToNativeVcnStatus implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getClusterMigrateToNativeVcnStatus(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters/{clusterId}/migrateToNativeVcnStatus", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetClusterMigrateToNativeVcnStatusResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterMigrateToNativeVcnStatus/GetClusterMigrateToNativeVcnStatus" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetClusterMigrateToNativeVcnStatus", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetClusterOptions Get options available for clusters. +// A default retry strategy applies to this operation GetClusterOptions() +func (client ContainerEngineClient) GetClusterOptions(ctx context.Context, request GetClusterOptionsRequest) (response GetClusterOptionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getClusterOptions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetClusterOptionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetClusterOptionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetClusterOptionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetClusterOptionsResponse") + } + return +} + +// getClusterOptions implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getClusterOptions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusterOptions/{clusterOptionId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetClusterOptionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterOptions/GetClusterOptions" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetClusterOptions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetNodePool Get the details of a node pool. +// A default retry strategy applies to this operation GetNodePool() +func (client ContainerEngineClient) GetNodePool(ctx context.Context, request GetNodePoolRequest) (response GetNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNodePoolResponse") + } + return +} + +// getNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/nodePools/{nodePoolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/GetNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetNodePoolOptions Get options available for node pools. +// A default retry strategy applies to this operation GetNodePoolOptions() +func (client ContainerEngineClient) GetNodePoolOptions(ctx context.Context, request GetNodePoolOptionsRequest) (response GetNodePoolOptionsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getNodePoolOptions, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetNodePoolOptionsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetNodePoolOptionsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetNodePoolOptionsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNodePoolOptionsResponse") + } + return +} + +// getNodePoolOptions implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getNodePoolOptions(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/nodePoolOptions/{nodePoolOptionId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetNodePoolOptionsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolOptions/GetNodePoolOptions" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetNodePoolOptions", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetVirtualNode Get the details of a virtual node. +// A default retry strategy applies to this operation GetVirtualNode() +func (client ContainerEngineClient) GetVirtualNode(ctx context.Context, request GetVirtualNodeRequest) (response GetVirtualNodeResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getVirtualNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetVirtualNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetVirtualNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetVirtualNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetVirtualNodeResponse") + } + return +} + +// getVirtualNode implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getVirtualNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/virtualNodePools/{virtualNodePoolId}/virtualNodes/{virtualNodeId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetVirtualNodeResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNode" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetVirtualNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetVirtualNodePool Get the details of a virtual node pool. +// A default retry strategy applies to this operation GetVirtualNodePool() +func (client ContainerEngineClient) GetVirtualNodePool(ctx context.Context, request GetVirtualNodePoolRequest) (response GetVirtualNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getVirtualNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetVirtualNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetVirtualNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetVirtualNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetVirtualNodePoolResponse") + } + return +} + +// getVirtualNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getVirtualNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/virtualNodePools/{virtualNodePoolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetVirtualNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/GetVirtualNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetVirtualNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetWorkRequest Get the details of a work request. +// A default retry strategy applies to this operation GetWorkRequest() +func (client ContainerEngineClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + } + return +} + +// getWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "ContainerEngine", "GetWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListClusters List all the cluster objects in a compartment. +// A default retry strategy applies to this operation ListClusters() +func (client ContainerEngineClient) ListClusters(ctx context.Context, request ListClustersRequest) (response ListClustersResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listClusters, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListClustersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListClustersResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListClustersResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListClustersResponse") + } + return +} + +// listClusters implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listClusters(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/clusters", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListClustersResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/ClusterSummary/ListClusters" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListClusters", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListNodePools List all the node pools in a compartment, and optionally filter by cluster. +// A default retry strategy applies to this operation ListNodePools() +func (client ContainerEngineClient) ListNodePools(ctx context.Context, request ListNodePoolsRequest) (response ListNodePoolsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listNodePools, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNodePoolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNodePoolsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNodePoolsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNodePoolsResponse") + } + return +} + +// listNodePools implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listNodePools(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/nodePools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNodePoolsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePoolSummary/ListNodePools" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListNodePools", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListPodShapes List all the Pod Shapes in a compartment. +// A default retry strategy applies to this operation ListPodShapes() +func (client ContainerEngineClient) ListPodShapes(ctx context.Context, request ListPodShapesRequest) (response ListPodShapesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listPodShapes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListPodShapesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListPodShapesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListPodShapesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListPodShapesResponse") + } + return +} + +// listPodShapes implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listPodShapes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/podShapes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListPodShapesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/PodShapeSummary/ListPodShapes" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListPodShapes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListVirtualNodePools List all the virtual node pools in a compartment, and optionally filter by cluster. +// A default retry strategy applies to this operation ListVirtualNodePools() +func (client ContainerEngineClient) ListVirtualNodePools(ctx context.Context, request ListVirtualNodePoolsRequest) (response ListVirtualNodePoolsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listVirtualNodePools, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListVirtualNodePoolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListVirtualNodePoolsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListVirtualNodePoolsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListVirtualNodePoolsResponse") + } + return +} + +// listVirtualNodePools implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listVirtualNodePools(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/virtualNodePools", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListVirtualNodePoolsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePoolSummary/ListVirtualNodePools" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListVirtualNodePools", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListVirtualNodes List virtual nodes in a virtual node pool. +// A default retry strategy applies to this operation ListVirtualNodes() +func (client ContainerEngineClient) ListVirtualNodes(ctx context.Context, request ListVirtualNodesRequest) (response ListVirtualNodesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listVirtualNodes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListVirtualNodesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListVirtualNodesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListVirtualNodesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListVirtualNodesResponse") + } + return +} + +// listVirtualNodes implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listVirtualNodes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/virtualNodePools/{virtualNodePoolId}/virtualNodes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListVirtualNodesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/ListVirtualNodes" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListVirtualNodes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestErrors Get the errors of a work request. +// A default retry strategy applies to this operation ListWorkRequestErrors() +func (client ContainerEngineClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestErrorsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") + } + return +} + +// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestErrorsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestError/ListWorkRequestErrors" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkRequestErrors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestLogs Get the logs of a work request. +// A default retry strategy applies to this operation ListWorkRequestLogs() +func (client ContainerEngineClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestLogsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") + } + return +} + +// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestLogsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestLogEntry/ListWorkRequestLogs" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkRequestLogs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequests List all work requests in a compartment. +// A default retry strategy applies to this operation ListWorkRequests() +func (client ContainerEngineClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") + } + return +} + +// listWorkRequests implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/WorkRequestSummary/ListWorkRequests" + err = common.PostProcessServiceError(err, "ContainerEngine", "ListWorkRequests", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateCluster Update the details of a cluster. +// A default retry strategy applies to this operation UpdateCluster() +func (client ContainerEngineClient) UpdateCluster(ctx context.Context, request UpdateClusterRequest) (response UpdateClusterResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateCluster, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateClusterResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateClusterResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateClusterResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateClusterResponse") + } + return +} + +// updateCluster implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) updateCluster(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/clusters/{clusterId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateClusterResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateCluster" + err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateCluster", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateClusterEndpointConfig Update the details of the cluster endpoint configuration. +// A default retry strategy applies to this operation UpdateClusterEndpointConfig() +func (client ContainerEngineClient) UpdateClusterEndpointConfig(ctx context.Context, request UpdateClusterEndpointConfigRequest) (response UpdateClusterEndpointConfigResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateClusterEndpointConfig, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateClusterEndpointConfigResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateClusterEndpointConfigResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateClusterEndpointConfigResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateClusterEndpointConfigResponse") + } + return +} + +// updateClusterEndpointConfig implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) updateClusterEndpointConfig(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/clusters/{clusterId}/actions/updateEndpointConfig", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateClusterEndpointConfigResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/Cluster/UpdateClusterEndpointConfig" + err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateClusterEndpointConfig", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateNodePool Update the details of a node pool. +// A default retry strategy applies to this operation UpdateNodePool() +func (client ContainerEngineClient) UpdateNodePool(ctx context.Context, request UpdateNodePoolRequest) (response UpdateNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateNodePoolResponse") + } + return +} + +// updateNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) updateNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/nodePools/{nodePoolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/NodePool/UpdateNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateVirtualNode Update the details of a virtual node. +// A default retry strategy applies to this operation UpdateVirtualNode() +func (client ContainerEngineClient) UpdateVirtualNode(ctx context.Context, request UpdateVirtualNodeRequest) (response UpdateVirtualNodeResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateVirtualNode, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateVirtualNodeResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateVirtualNodeResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateVirtualNodeResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateVirtualNodeResponse") + } + return +} + +// updateVirtualNode implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) updateVirtualNode(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/virtualNodePools/{virtualNodePoolId}/virtualNodes/{virtualNodeId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateVirtualNodeResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/UpdateVirtualNode" + err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateVirtualNode", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateVirtualNodePool Update the details of a virtual node pool. +// A default retry strategy applies to this operation UpdateVirtualNodePool() +func (client ContainerEngineClient) UpdateVirtualNodePool(ctx context.Context, request UpdateVirtualNodePoolRequest) (response UpdateVirtualNodePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateVirtualNodePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateVirtualNodePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateVirtualNodePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateVirtualNodePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateVirtualNodePoolResponse") + } + return +} + +// updateVirtualNodePool implements the OCIOperation interface (enables retrying operations) +func (client ContainerEngineClient) updateVirtualNodePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/virtualNodePools/{virtualNodePoolId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateVirtualNodePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/containerengine/20180222/VirtualNodePool/UpdateVirtualNodePool" + err = common.PostProcessServiceError(err, "ContainerEngine", "UpdateVirtualNodePool", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_details.go new file mode 100644 index 0000000000..f35dc468f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_details.go @@ -0,0 +1,136 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClusterDetails The properties that define a request to create a cluster. +type CreateClusterDetails struct { + + // The name of the cluster. Avoid entering confidential information. + Name *string `mandatory:"true" json:"name"` + + // The OCID of the compartment in which to create the cluster. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the virtual cloud network (VCN) in which to create the cluster. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The version of Kubernetes to install into the cluster masters. + KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` + + // The network configuration for access to the Cluster control plane. + EndpointConfig *CreateClusterEndpointConfigDetails `mandatory:"false" json:"endpointConfig"` + + // The OCID of the KMS key to be used as the master encryption key for Kubernetes secret encryption. + // When used, `kubernetesVersion` must be at least `v1.13.0`. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Optional attributes for the cluster. + Options *ClusterCreateOptions `mandatory:"false" json:"options"` + + // The image verification policy for signature validation. Once a policy is created and enabled with + // one or more kms keys, the policy will ensure all images deployed has been signed with the key(s) + // attached to the policy. + ImagePolicyConfig *CreateImagePolicyConfigDetails `mandatory:"false" json:"imagePolicyConfig"` + + // Available CNIs and network options for existing and new node pools of the cluster + ClusterPodNetworkOptions []ClusterPodNetworkOptionDetails `mandatory:"false" json:"clusterPodNetworkOptions"` +} + +func (m CreateClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateClusterDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + EndpointConfig *CreateClusterEndpointConfigDetails `json:"endpointConfig"` + KmsKeyId *string `json:"kmsKeyId"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + Options *ClusterCreateOptions `json:"options"` + ImagePolicyConfig *CreateImagePolicyConfigDetails `json:"imagePolicyConfig"` + ClusterPodNetworkOptions []clusterpodnetworkoptiondetails `json:"clusterPodNetworkOptions"` + Name *string `json:"name"` + CompartmentId *string `json:"compartmentId"` + VcnId *string `json:"vcnId"` + KubernetesVersion *string `json:"kubernetesVersion"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.EndpointConfig = model.EndpointConfig + + m.KmsKeyId = model.KmsKeyId + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.Options = model.Options + + m.ImagePolicyConfig = model.ImagePolicyConfig + + m.ClusterPodNetworkOptions = make([]ClusterPodNetworkOptionDetails, len(model.ClusterPodNetworkOptions)) + for i, n := range model.ClusterPodNetworkOptions { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ClusterPodNetworkOptions[i] = nn.(ClusterPodNetworkOptionDetails) + } else { + m.ClusterPodNetworkOptions[i] = nil + } + } + + m.Name = model.Name + + m.CompartmentId = model.CompartmentId + + m.VcnId = model.VcnId + + m.KubernetesVersion = model.KubernetesVersion + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_endpoint_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_endpoint_config_details.go new file mode 100644 index 0000000000..b1e3d59134 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_endpoint_config_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClusterEndpointConfigDetails The properties that define the network configuration for the Cluster endpoint. +type CreateClusterEndpointConfigDetails struct { + + // The OCID of the regional subnet in which to place the Cluster endpoint. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // A list of the OCIDs of the network security groups (NSGs) to apply to the cluster endpoint. For more information about NSGs, see NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Whether the cluster should be assigned a public IP address. Defaults to false. If set to true on a private subnet, the cluster provisioning will fail. + IsPublicIpEnabled *bool `mandatory:"false" json:"isPublicIpEnabled"` +} + +func (m CreateClusterEndpointConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClusterEndpointConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_kubeconfig_content_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_kubeconfig_content_details.go new file mode 100644 index 0000000000..6254810f91 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_kubeconfig_content_details.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClusterKubeconfigContentDetails The properties that define a request to create a cluster kubeconfig. +type CreateClusterKubeconfigContentDetails struct { + + // The version of the kubeconfig token. Supported value 2.0.0 + TokenVersion *string `mandatory:"false" json:"tokenVersion"` + + // Deprecated. This field is no longer used. + Expiration *int `mandatory:"false" json:"expiration"` + + // The endpoint to target. A cluster may have multiple endpoints exposed but the kubeconfig can only target one at a time. + Endpoint CreateClusterKubeconfigContentDetailsEndpointEnum `mandatory:"false" json:"endpoint,omitempty"` +} + +func (m CreateClusterKubeconfigContentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClusterKubeconfigContentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateClusterKubeconfigContentDetailsEndpointEnum(string(m.Endpoint)); !ok && m.Endpoint != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Endpoint: %s. Supported values are: %s.", m.Endpoint, strings.Join(GetCreateClusterKubeconfigContentDetailsEndpointEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateClusterKubeconfigContentDetailsEndpointEnum Enum with underlying type: string +type CreateClusterKubeconfigContentDetailsEndpointEnum string + +// Set of constants representing the allowable values for CreateClusterKubeconfigContentDetailsEndpointEnum +const ( + CreateClusterKubeconfigContentDetailsEndpointLegacyKubernetes CreateClusterKubeconfigContentDetailsEndpointEnum = "LEGACY_KUBERNETES" + CreateClusterKubeconfigContentDetailsEndpointPublicEndpoint CreateClusterKubeconfigContentDetailsEndpointEnum = "PUBLIC_ENDPOINT" + CreateClusterKubeconfigContentDetailsEndpointPrivateEndpoint CreateClusterKubeconfigContentDetailsEndpointEnum = "PRIVATE_ENDPOINT" + CreateClusterKubeconfigContentDetailsEndpointVcnHostname CreateClusterKubeconfigContentDetailsEndpointEnum = "VCN_HOSTNAME" +) + +var mappingCreateClusterKubeconfigContentDetailsEndpointEnum = map[string]CreateClusterKubeconfigContentDetailsEndpointEnum{ + "LEGACY_KUBERNETES": CreateClusterKubeconfigContentDetailsEndpointLegacyKubernetes, + "PUBLIC_ENDPOINT": CreateClusterKubeconfigContentDetailsEndpointPublicEndpoint, + "PRIVATE_ENDPOINT": CreateClusterKubeconfigContentDetailsEndpointPrivateEndpoint, + "VCN_HOSTNAME": CreateClusterKubeconfigContentDetailsEndpointVcnHostname, +} + +var mappingCreateClusterKubeconfigContentDetailsEndpointEnumLowerCase = map[string]CreateClusterKubeconfigContentDetailsEndpointEnum{ + "legacy_kubernetes": CreateClusterKubeconfigContentDetailsEndpointLegacyKubernetes, + "public_endpoint": CreateClusterKubeconfigContentDetailsEndpointPublicEndpoint, + "private_endpoint": CreateClusterKubeconfigContentDetailsEndpointPrivateEndpoint, + "vcn_hostname": CreateClusterKubeconfigContentDetailsEndpointVcnHostname, +} + +// GetCreateClusterKubeconfigContentDetailsEndpointEnumValues Enumerates the set of values for CreateClusterKubeconfigContentDetailsEndpointEnum +func GetCreateClusterKubeconfigContentDetailsEndpointEnumValues() []CreateClusterKubeconfigContentDetailsEndpointEnum { + values := make([]CreateClusterKubeconfigContentDetailsEndpointEnum, 0) + for _, v := range mappingCreateClusterKubeconfigContentDetailsEndpointEnum { + values = append(values, v) + } + return values +} + +// GetCreateClusterKubeconfigContentDetailsEndpointEnumStringValues Enumerates the set of values in String for CreateClusterKubeconfigContentDetailsEndpointEnum +func GetCreateClusterKubeconfigContentDetailsEndpointEnumStringValues() []string { + return []string{ + "LEGACY_KUBERNETES", + "PUBLIC_ENDPOINT", + "PRIVATE_ENDPOINT", + "VCN_HOSTNAME", + } +} + +// GetMappingCreateClusterKubeconfigContentDetailsEndpointEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateClusterKubeconfigContentDetailsEndpointEnum(val string) (CreateClusterKubeconfigContentDetailsEndpointEnum, bool) { + enum, ok := mappingCreateClusterKubeconfigContentDetailsEndpointEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go index a5f1adb0e1..be575216af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_cluster_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateClusterRequest wrapper for the CreateCluster operation @@ -35,6 +37,10 @@ func (request CreateClusterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request CreateClusterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateClusterResponse wrapper for the CreateCluster operation type CreateClusterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_image_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_image_policy_config_details.go new file mode 100644 index 0000000000..18e186b2a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_image_policy_config_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateImagePolicyConfigDetails The properties that define a image verification policy. +type CreateImagePolicyConfigDetails struct { + + // Whether the image verification policy is enabled. Defaults to false. If set to true, the images will be verified against the policy at runtime. + IsPolicyEnabled *bool `mandatory:"false" json:"isPolicyEnabled"` + + // A list of KMS key details. + KeyDetails []KeyDetails `mandatory:"false" json:"keyDetails"` +} + +func (m CreateImagePolicyConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateImagePolicyConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_kubeconfig_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_kubeconfig_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go index 48673e6891..365536d34f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_kubeconfig_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_kubeconfig_request_response.go @@ -1,13 +1,15 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // CreateKubeconfigRequest wrapper for the CreateKubeconfig operation @@ -35,6 +37,10 @@ func (request CreateKubeconfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateKubeconfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request CreateKubeconfigRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateKubeconfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateKubeconfigResponse wrapper for the CreateKubeconfig operation type CreateKubeconfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_details.go new file mode 100644 index 0000000000..1bda2bdb7a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_details.go @@ -0,0 +1,177 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateNodePoolDetails The properties that define a request to create a node pool. +type CreateNodePoolDetails struct { + + // The OCID of the compartment in which the node pool exists. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the cluster to which this node pool is attached. + ClusterId *string `mandatory:"true" json:"clusterId"` + + // The name of the node pool. Avoid entering confidential information. + Name *string `mandatory:"true" json:"name"` + + // The name of the node shape of the nodes in the node pool. + NodeShape *string `mandatory:"true" json:"nodeShape"` + + // The version of Kubernetes to install on the nodes in the node pool. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. + NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"` + + // Deprecated. Use `nodeSourceDetails` instead. + // If you specify values for both, this value is ignored. + // The name of the image running on the nodes in the node pool. + NodeImageName *string `mandatory:"false" json:"nodeImageName"` + + // Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source. + NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` + + // Specify the configuration of the shape to launch nodes in the node pool. + NodeShapeConfig *CreateNodeShapeConfigDetails `mandatory:"false" json:"nodeShapeConfig"` + + // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. + InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` + + // The SSH public key on each node in the node pool on launch. + SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` + + // Optional, default to 1. The number of nodes to create in each subnet specified in subnetIds property. + // When used, subnetIds is required. This property is deprecated, use nodeConfigDetails instead. + QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` + + // The OCIDs of the subnets in which to place nodes for this node pool. When used, quantityPerSubnet + // can be provided. This property is deprecated, use nodeConfigDetails. Exactly one of the + // subnetIds or nodeConfigDetails properties must be specified. + SubnetIds []string `mandatory:"false" json:"subnetIds"` + + // The configuration of nodes in the node pool. Exactly one of the + // subnetIds or nodeConfigDetails properties must be specified. + NodeConfigDetails *CreateNodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `mandatory:"false" json:"nodeEvictionNodePoolSettings"` +} + +func (m CreateNodePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNodePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateNodePoolDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + KubernetesVersion *string `json:"kubernetesVersion"` + NodeMetadata map[string]string `json:"nodeMetadata"` + NodeImageName *string `json:"nodeImageName"` + NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` + NodeShapeConfig *CreateNodeShapeConfigDetails `json:"nodeShapeConfig"` + InitialNodeLabels []KeyValue `json:"initialNodeLabels"` + SshPublicKey *string `json:"sshPublicKey"` + QuantityPerSubnet *int `json:"quantityPerSubnet"` + SubnetIds []string `json:"subnetIds"` + NodeConfigDetails *CreateNodePoolNodeConfigDetails `json:"nodeConfigDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `json:"nodeEvictionNodePoolSettings"` + CompartmentId *string `json:"compartmentId"` + ClusterId *string `json:"clusterId"` + Name *string `json:"name"` + NodeShape *string `json:"nodeShape"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.KubernetesVersion = model.KubernetesVersion + + m.NodeMetadata = model.NodeMetadata + + m.NodeImageName = model.NodeImageName + + nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodeSourceDetails = nn.(NodeSourceDetails) + } else { + m.NodeSourceDetails = nil + } + + m.NodeShapeConfig = model.NodeShapeConfig + + m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) + for i, n := range model.InitialNodeLabels { + m.InitialNodeLabels[i] = n + } + + m.SshPublicKey = model.SshPublicKey + + m.QuantityPerSubnet = model.QuantityPerSubnet + + m.SubnetIds = make([]string, len(model.SubnetIds)) + for i, n := range model.SubnetIds { + m.SubnetIds[i] = n + } + + m.NodeConfigDetails = model.NodeConfigDetails + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.NodeEvictionNodePoolSettings = model.NodeEvictionNodePoolSettings + + m.CompartmentId = model.CompartmentId + + m.ClusterId = model.ClusterId + + m.Name = model.Name + + m.NodeShape = model.NodeShape + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_node_config_details.go new file mode 100644 index 0000000000..e7c35563b2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_node_config_details.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateNodePoolNodeConfigDetails The size and placement configuration of nodes in the node pool. +type CreateNodePoolNodeConfigDetails struct { + + // The number of nodes that should be in the node pool. + Size *int `mandatory:"true" json:"size"` + + // The placement configurations for the node pool. Provide one placement + // configuration for each availability domain in which you intend to launch a node. + // To use the node pool with a regional subnet, provide a placement configuration for + // each availability domain, and include the regional subnet in each placement + // configuration. + PlacementConfigs []NodePoolPlacementConfigDetails `mandatory:"true" json:"placementConfigs"` + + // The OCIDs of the Network Security Group(s) to associate nodes for this node pool with. For more information about NSGs, see NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID of the Key Management Service key assigned to the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The CNI related configuration of pods in the node pool. + NodePoolPodNetworkOptionDetails NodePoolPodNetworkOptionDetails `mandatory:"false" json:"nodePoolPodNetworkOptionDetails"` +} + +func (m CreateNodePoolNodeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNodePoolNodeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateNodePoolNodeConfigDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + NsgIds []string `json:"nsgIds"` + KmsKeyId *string `json:"kmsKeyId"` + IsPvEncryptionInTransitEnabled *bool `json:"isPvEncryptionInTransitEnabled"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + NodePoolPodNetworkOptionDetails nodepoolpodnetworkoptiondetails `json:"nodePoolPodNetworkOptionDetails"` + Size *int `json:"size"` + PlacementConfigs []NodePoolPlacementConfigDetails `json:"placementConfigs"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.NsgIds = make([]string, len(model.NsgIds)) + for i, n := range model.NsgIds { + m.NsgIds[i] = n + } + + m.KmsKeyId = model.KmsKeyId + + m.IsPvEncryptionInTransitEnabled = model.IsPvEncryptionInTransitEnabled + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + nn, e = model.NodePoolPodNetworkOptionDetails.UnmarshalPolymorphicJSON(model.NodePoolPodNetworkOptionDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodePoolPodNetworkOptionDetails = nn.(NodePoolPodNetworkOptionDetails) + } else { + m.NodePoolPodNetworkOptionDetails = nil + } + + m.Size = model.Size + + m.PlacementConfigs = make([]NodePoolPlacementConfigDetails, len(model.PlacementConfigs)) + for i, n := range model.PlacementConfigs { + m.PlacementConfigs[i] = n + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go index 2f1297c1bd..543b6f2b21 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/create_node_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateNodePoolRequest wrapper for the CreateNodePool operation @@ -35,6 +37,10 @@ func (request CreateNodePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request CreateNodePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateNodePoolResponse wrapper for the CreateNodePool operation type CreateNodePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_shape_config_details.go new file mode 100644 index 0000000000..d28f0b8e52 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_node_shape_config_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateNodeShapeConfigDetails The shape configuration of the nodes. +type CreateNodeShapeConfigDetails struct { + + // The total number of OCPUs available to each node in the node pool. + // See here (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to each node, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` +} + +func (m CreateNodeShapeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNodeShapeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_details.go new file mode 100644 index 0000000000..18b4bb2307 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVirtualNodePoolDetails The properties that define a request to create a virtual node pool. +type CreateVirtualNodePoolDetails struct { + + // Compartment of the virtual node pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. + ClusterId *string `mandatory:"true" json:"clusterId"` + + // Display name of the virtual node pool. This is a non-unique value. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The version of Kubernetes running on the nodes in the node pool. + KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` + + // The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations + PlacementConfigurations []PlacementConfiguration `mandatory:"true" json:"placementConfigurations"` + + // Initial labels that will be added to the Kubernetes Virtual Node object when it registers. + InitialVirtualNodeLabels []InitialVirtualNodeLabel `mandatory:"false" json:"initialVirtualNodeLabels"` + + // A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. + Taints []Taint `mandatory:"false" json:"taints"` + + // The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. + Size *int `mandatory:"false" json:"size"` + + // List of network security group id's applied to the Virtual Node VNIC. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The pod configuration for pods run on virtual nodes of this virtual node pool. + PodConfiguration *PodConfiguration `mandatory:"false" json:"podConfiguration"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateVirtualNodePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVirtualNodePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_request_response.go new file mode 100644 index 0000000000..792efdab8b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/create_virtual_node_pool_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateVirtualNodePoolRequest wrapper for the CreateVirtualNodePool operation +type CreateVirtualNodePoolRequest struct { + + // The details of the virtual node pool to create. + CreateVirtualNodePoolDetails `contributesTo:"body"` + + // A token you supply to uniquely identify the request and provide idempotency if + // the request is retried. Idempotency tokens expire after 24 hours. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateVirtualNodePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateVirtualNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateVirtualNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateVirtualNodePoolResponse wrapper for the CreateVirtualNodePool operation +type CreateVirtualNodePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateVirtualNodePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateVirtualNodePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_cluster_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go index 3f71846335..5826904d03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_cluster_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteClusterRequest wrapper for the DeleteCluster operation @@ -36,6 +38,10 @@ func (request DeleteClusterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteClusterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteClusterResponse wrapper for the DeleteCluster operation type DeleteClusterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_pool_request_response.go new file mode 100644 index 0000000000..5ff227013a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_pool_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteNodePoolRequest wrapper for the DeleteNodePool operation +type DeleteNodePoolRequest struct { + + // The OCID of the node pool. + NodePoolId *string `mandatory:"true" contributesTo:"path" name:"nodePoolId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Duration after which OKE will give up eviction of the pods on the node. + // PT0M will indicate you want to delete the node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + OverrideEvictionGraceDuration *string `mandatory:"false" contributesTo:"query" name:"overrideEvictionGraceDuration"` + + // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + IsForceDeletionAfterOverrideGraceDuration *bool `mandatory:"false" contributesTo:"query" name:"isForceDeletionAfterOverrideGraceDuration"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteNodePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteNodePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteNodePoolResponse wrapper for the DeleteNodePool operation +type DeleteNodePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteNodePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteNodePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_request_response.go new file mode 100644 index 0000000000..e87a6f202a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_node_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteNodeRequest wrapper for the DeleteNode operation +type DeleteNodeRequest struct { + + // The OCID of the node pool. + NodePoolId *string `mandatory:"true" contributesTo:"path" name:"nodePoolId"` + + // The OCID of the compute instance. + NodeId *string `mandatory:"true" contributesTo:"path" name:"nodeId"` + + // If the nodepool should be scaled down after the node is deleted. + IsDecrementSize *bool `mandatory:"false" contributesTo:"query" name:"isDecrementSize"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Duration after which OKE will give up eviction of the pods on the node. + // PT0M will indicate you want to delete the node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + OverrideEvictionGraceDuration *string `mandatory:"false" contributesTo:"query" name:"overrideEvictionGraceDuration"` + + // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + IsForceDeletionAfterOverrideGraceDuration *bool `mandatory:"false" contributesTo:"query" name:"isForceDeletionAfterOverrideGraceDuration"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteNodeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteNodeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteNodeResponse wrapper for the DeleteNode operation +type DeleteNodeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_pool_request_response.go new file mode 100644 index 0000000000..4ee75da5c8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_pool_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteVirtualNodePoolRequest wrapper for the DeleteVirtualNodePool operation +type DeleteVirtualNodePoolRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Duration after which Sk8s will give up eviction of the pods on the node. + // PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + OverrideEvictionGraceDurationVnp *string `mandatory:"false" contributesTo:"query" name:"overrideEvictionGraceDurationVnp"` + + // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + IsForceDeletionAfterOverrideGraceDurationVnp *bool `mandatory:"false" contributesTo:"query" name:"isForceDeletionAfterOverrideGraceDurationVnp"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteVirtualNodePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteVirtualNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteVirtualNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteVirtualNodePoolResponse wrapper for the DeleteVirtualNodePool operation +type DeleteVirtualNodePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteVirtualNodePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteVirtualNodePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_request_response.go new file mode 100644 index 0000000000..38abf2b4b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_virtual_node_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteVirtualNodeRequest wrapper for the DeleteVirtualNode operation +type DeleteVirtualNodeRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // The OCID of the virtual node. + VirtualNodeId *string `mandatory:"true" contributesTo:"path" name:"virtualNodeId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // If the nodepool should be scaled down after the node is deleted. + IsDecrementSize *bool `mandatory:"false" contributesTo:"query" name:"isDecrementSize"` + + // Duration after which Sk8s will give up eviction of the pods on the node. + // PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + OverrideEvictionGraceDurationVnp *string `mandatory:"false" contributesTo:"query" name:"overrideEvictionGraceDurationVnp"` + + // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + IsForceDeletionAfterOverrideGraceDurationVnp *bool `mandatory:"false" contributesTo:"query" name:"isForceDeletionAfterOverrideGraceDurationVnp"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteVirtualNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteVirtualNodeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteVirtualNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteVirtualNodeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVirtualNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteVirtualNodeResponse wrapper for the DeleteVirtualNode operation +type DeleteVirtualNodeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteVirtualNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteVirtualNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_work_request_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go index 3b0b62d519..0f3d8c8862 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/delete_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/delete_work_request_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteWorkRequestRequest wrapper for the DeleteWorkRequest operation @@ -36,6 +38,10 @@ func (request DeleteWorkRequestRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteWorkRequestRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteWorkRequestResponse wrapper for the DeleteWorkRequest operation type DeleteWorkRequestResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_cluster_pod_network_option_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_cluster_pod_network_option_details.go new file mode 100644 index 0000000000..41c74c24be --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_cluster_pod_network_option_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FlannelOverlayClusterPodNetworkOptionDetails Network options specific to using the flannel (FLANNEL_OVERLAY) CNI +type FlannelOverlayClusterPodNetworkOptionDetails struct { +} + +func (m FlannelOverlayClusterPodNetworkOptionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FlannelOverlayClusterPodNetworkOptionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m FlannelOverlayClusterPodNetworkOptionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFlannelOverlayClusterPodNetworkOptionDetails FlannelOverlayClusterPodNetworkOptionDetails + s := struct { + DiscriminatorParam string `json:"cniType"` + MarshalTypeFlannelOverlayClusterPodNetworkOptionDetails + }{ + "FLANNEL_OVERLAY", + (MarshalTypeFlannelOverlayClusterPodNetworkOptionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_node_pool_pod_network_option_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_node_pool_pod_network_option_details.go new file mode 100644 index 0000000000..c7070577f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/flannel_overlay_node_pool_pod_network_option_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FlannelOverlayNodePoolPodNetworkOptionDetails Network options specific to using the flannel (FLANNEL_OVERLAY) CNI +type FlannelOverlayNodePoolPodNetworkOptionDetails struct { +} + +func (m FlannelOverlayNodePoolPodNetworkOptionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FlannelOverlayNodePoolPodNetworkOptionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m FlannelOverlayNodePoolPodNetworkOptionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFlannelOverlayNodePoolPodNetworkOptionDetails FlannelOverlayNodePoolPodNetworkOptionDetails + s := struct { + DiscriminatorParam string `json:"cniType"` + MarshalTypeFlannelOverlayNodePoolPodNetworkOptionDetails + }{ + "FLANNEL_OVERLAY", + (MarshalTypeFlannelOverlayNodePoolPodNetworkOptionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go index 1a92ad44c7..2c9f9a999a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_migrate_to_native_vcn_status_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClusterMigrateToNativeVcnStatusRequest wrapper for the GetClusterMigrateToNativeVcnStatus operation @@ -31,6 +33,10 @@ func (request GetClusterMigrateToNativeVcnStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClusterMigrateToNativeVcnStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetClusterMigrateToNativeVcnStatusRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClusterMigrateToNativeVcnStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClusterMigrateToNativeVcnStatusResponse wrapper for the GetClusterMigrateToNativeVcnStatus operation type GetClusterMigrateToNativeVcnStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_options_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go index bb8795666d..86a87c70b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_options_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClusterOptionsRequest wrapper for the GetClusterOptions operation @@ -34,6 +36,10 @@ func (request GetClusterOptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClusterOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetClusterOptionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClusterOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClusterOptionsResponse wrapper for the GetClusterOptions operation type GetClusterOptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go index 7ce4f31639..7c737cc311 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_cluster_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClusterRequest wrapper for the GetCluster operation @@ -31,6 +33,10 @@ func (request GetClusterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetClusterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClusterResponse wrapper for the GetCluster operation type GetClusterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_node_pool_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_options_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_node_pool_options_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_options_request_response.go index b4bbd05f6d..4f154b6b95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_node_pool_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_options_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNodePoolOptionsRequest wrapper for the GetNodePoolOptions operation @@ -34,6 +36,10 @@ func (request GetNodePoolOptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNodePoolOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetNodePoolOptionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNodePoolOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNodePoolOptionsResponse wrapper for the GetNodePoolOptions operation type GetNodePoolOptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_node_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go index 49a9d51e99..cf88c7d96b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/get_node_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_node_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNodePoolRequest wrapper for the GetNodePool operation @@ -31,6 +33,10 @@ func (request GetNodePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetNodePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNodePoolResponse wrapper for the GetNodePool operation type GetNodePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_pool_request_response.go new file mode 100644 index 0000000000..9549b38b35 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_pool_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetVirtualNodePoolRequest wrapper for the GetVirtualNodePool operation +type GetVirtualNodePoolRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetVirtualNodePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetVirtualNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetVirtualNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetVirtualNodePoolResponse wrapper for the GetVirtualNodePool operation +type GetVirtualNodePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VirtualNodePool instance + VirtualNodePool `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetVirtualNodePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetVirtualNodePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_request_response.go new file mode 100644 index 0000000000..31648ca740 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_virtual_node_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetVirtualNodeRequest wrapper for the GetVirtualNode operation +type GetVirtualNodeRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // The OCID of the virtual node. + VirtualNodeId *string `mandatory:"true" contributesTo:"path" name:"virtualNodeId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetVirtualNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetVirtualNodeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetVirtualNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetVirtualNodeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVirtualNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetVirtualNodeResponse wrapper for the GetVirtualNode operation +type GetVirtualNodeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VirtualNode instance + VirtualNode `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetVirtualNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetVirtualNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_work_request_request_response.go new file mode 100644 index 0000000000..fcd211a063 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/get_work_request_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +type GetWorkRequestRequest struct { + + // The OCID of the work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetWorkRequestResponse wrapper for the GetWorkRequest operation +type GetWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The WorkRequest instance + WorkRequest `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // the number of seconds to should wait before polling this endpoint again + RetryAfter *int `presentIn:"header" name:"retry-after"` +} + +func (response GetWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image_policy_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image_policy_config.go new file mode 100644 index 0000000000..de55c7a63d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/image_policy_config.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImagePolicyConfig The properties that define a image verification policy. +type ImagePolicyConfig struct { + + // Whether the image verification policy is enabled. Defaults to false. If set to true, the images will be verified against the policy at runtime. + IsPolicyEnabled *bool `mandatory:"false" json:"isPolicyEnabled"` + + // A list of KMS key details. + KeyDetails []KeyDetails `mandatory:"false" json:"keyDetails"` +} + +func (m ImagePolicyConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImagePolicyConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/initial_virtual_node_label.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/initial_virtual_node_label.go new file mode 100644 index 0000000000..a89c44613c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/initial_virtual_node_label.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InitialVirtualNodeLabel The properties that define a key value pair. +type InitialVirtualNodeLabel struct { + + // The key of the pair. + Key *string `mandatory:"false" json:"key"` + + // The value of the pair. + Value *string `mandatory:"false" json:"value"` +} + +func (m InitialVirtualNodeLabel) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InitialVirtualNodeLabel) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_details.go new file mode 100644 index 0000000000..0d0c978aa0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// KeyDetails The properties that define the kms keys used by OKE for Image Signature verification. +type KeyDetails struct { + + // The OCIDs of the KMS key that will be used to verify whether the images are signed by an approved source. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m KeyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m KeyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_value.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_value.go new file mode 100644 index 0000000000..4822084726 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/key_value.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// KeyValue The properties that define a key value pair. +type KeyValue struct { + + // The key of the pair. + Key *string `mandatory:"false" json:"key"` + + // The value of the pair. + Value *string `mandatory:"false" json:"value"` +} + +func (m KeyValue) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m KeyValue) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_network_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_network_config.go new file mode 100644 index 0000000000..06ee497145 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/kubernetes_network_config.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// KubernetesNetworkConfig The properties that define the network configuration for Kubernetes. +type KubernetesNetworkConfig struct { + + // The CIDR block for Kubernetes pods. Optional, defaults to 10.244.0.0/16. + PodsCidr *string `mandatory:"false" json:"podsCidr"` + + // The CIDR block for Kubernetes services. Optional, defaults to 10.96.0.0/16. + ServicesCidr *string `mandatory:"false" json:"servicesCidr"` +} + +func (m KubernetesNetworkConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m KubernetesNetworkConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_clusters_request_response.go new file mode 100644 index 0000000000..d9d46d7497 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_clusters_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListClustersRequest wrapper for the ListClusters operation +type ListClustersRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A cluster lifecycle state to filter on. Can have multiple parameters of this name. + LifecycleState []ClusterLifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` + + // The name to filter on. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The optional order in which to sort the results. + SortOrder ListClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The optional field to sort the results by. + SortBy ListClustersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListClustersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListClustersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListClustersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + for _, val := range request.LifecycleState { + if _, ok := GetMappingClusterLifecycleStateEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", val, strings.Join(GetClusterLifecycleStateEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingListClustersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListClustersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListClustersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListClustersSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListClustersResponse wrapper for the ListClusters operation +type ListClustersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ClusterSummary instances + Items []ClusterSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListClustersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListClustersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListClustersSortOrderEnum Enum with underlying type: string +type ListClustersSortOrderEnum string + +// Set of constants representing the allowable values for ListClustersSortOrderEnum +const ( + ListClustersSortOrderAsc ListClustersSortOrderEnum = "ASC" + ListClustersSortOrderDesc ListClustersSortOrderEnum = "DESC" +) + +var mappingListClustersSortOrderEnum = map[string]ListClustersSortOrderEnum{ + "ASC": ListClustersSortOrderAsc, + "DESC": ListClustersSortOrderDesc, +} + +var mappingListClustersSortOrderEnumLowerCase = map[string]ListClustersSortOrderEnum{ + "asc": ListClustersSortOrderAsc, + "desc": ListClustersSortOrderDesc, +} + +// GetListClustersSortOrderEnumValues Enumerates the set of values for ListClustersSortOrderEnum +func GetListClustersSortOrderEnumValues() []ListClustersSortOrderEnum { + values := make([]ListClustersSortOrderEnum, 0) + for _, v := range mappingListClustersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListClustersSortOrderEnumStringValues Enumerates the set of values in String for ListClustersSortOrderEnum +func GetListClustersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListClustersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClustersSortOrderEnum(val string) (ListClustersSortOrderEnum, bool) { + enum, ok := mappingListClustersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListClustersSortByEnum Enum with underlying type: string +type ListClustersSortByEnum string + +// Set of constants representing the allowable values for ListClustersSortByEnum +const ( + ListClustersSortById ListClustersSortByEnum = "ID" + ListClustersSortByName ListClustersSortByEnum = "NAME" + ListClustersSortByTimeCreated ListClustersSortByEnum = "TIME_CREATED" +) + +var mappingListClustersSortByEnum = map[string]ListClustersSortByEnum{ + "ID": ListClustersSortById, + "NAME": ListClustersSortByName, + "TIME_CREATED": ListClustersSortByTimeCreated, +} + +var mappingListClustersSortByEnumLowerCase = map[string]ListClustersSortByEnum{ + "id": ListClustersSortById, + "name": ListClustersSortByName, + "time_created": ListClustersSortByTimeCreated, +} + +// GetListClustersSortByEnumValues Enumerates the set of values for ListClustersSortByEnum +func GetListClustersSortByEnumValues() []ListClustersSortByEnum { + values := make([]ListClustersSortByEnum, 0) + for _, v := range mappingListClustersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListClustersSortByEnumStringValues Enumerates the set of values in String for ListClustersSortByEnum +func GetListClustersSortByEnumStringValues() []string { + return []string{ + "ID", + "NAME", + "TIME_CREATED", + } +} + +// GetMappingListClustersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClustersSortByEnum(val string) (ListClustersSortByEnum, bool) { + enum, ok := mappingListClustersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_node_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_node_pools_request_response.go new file mode 100644 index 0000000000..77e54acea0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_node_pools_request_response.go @@ -0,0 +1,215 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNodePoolsRequest wrapper for the ListNodePools operation +type ListNodePoolsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the cluster. + ClusterId *string `mandatory:"false" contributesTo:"query" name:"clusterId"` + + // The name to filter on. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The optional order in which to sort the results. + SortOrder ListNodePoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The optional field to sort the results by. + SortBy ListNodePoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A list of nodepool lifecycle states on which to filter on, matching any of the list items (OR logic). eg. [ACTIVE, DELETING] + LifecycleState []NodePoolLifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNodePoolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNodePoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNodePoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNodePoolsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNodePoolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNodePoolsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNodePoolsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNodePoolsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNodePoolsSortByEnumStringValues(), ","))) + } + for _, val := range request.LifecycleState { + if _, ok := GetMappingNodePoolLifecycleStateEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", val, strings.Join(GetNodePoolLifecycleStateEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNodePoolsResponse wrapper for the ListNodePools operation +type ListNodePoolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []NodePoolSummary instances + Items []NodePoolSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNodePoolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNodePoolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNodePoolsSortOrderEnum Enum with underlying type: string +type ListNodePoolsSortOrderEnum string + +// Set of constants representing the allowable values for ListNodePoolsSortOrderEnum +const ( + ListNodePoolsSortOrderAsc ListNodePoolsSortOrderEnum = "ASC" + ListNodePoolsSortOrderDesc ListNodePoolsSortOrderEnum = "DESC" +) + +var mappingListNodePoolsSortOrderEnum = map[string]ListNodePoolsSortOrderEnum{ + "ASC": ListNodePoolsSortOrderAsc, + "DESC": ListNodePoolsSortOrderDesc, +} + +var mappingListNodePoolsSortOrderEnumLowerCase = map[string]ListNodePoolsSortOrderEnum{ + "asc": ListNodePoolsSortOrderAsc, + "desc": ListNodePoolsSortOrderDesc, +} + +// GetListNodePoolsSortOrderEnumValues Enumerates the set of values for ListNodePoolsSortOrderEnum +func GetListNodePoolsSortOrderEnumValues() []ListNodePoolsSortOrderEnum { + values := make([]ListNodePoolsSortOrderEnum, 0) + for _, v := range mappingListNodePoolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNodePoolsSortOrderEnumStringValues Enumerates the set of values in String for ListNodePoolsSortOrderEnum +func GetListNodePoolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNodePoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNodePoolsSortOrderEnum(val string) (ListNodePoolsSortOrderEnum, bool) { + enum, ok := mappingListNodePoolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNodePoolsSortByEnum Enum with underlying type: string +type ListNodePoolsSortByEnum string + +// Set of constants representing the allowable values for ListNodePoolsSortByEnum +const ( + ListNodePoolsSortById ListNodePoolsSortByEnum = "ID" + ListNodePoolsSortByName ListNodePoolsSortByEnum = "NAME" + ListNodePoolsSortByTimeCreated ListNodePoolsSortByEnum = "TIME_CREATED" +) + +var mappingListNodePoolsSortByEnum = map[string]ListNodePoolsSortByEnum{ + "ID": ListNodePoolsSortById, + "NAME": ListNodePoolsSortByName, + "TIME_CREATED": ListNodePoolsSortByTimeCreated, +} + +var mappingListNodePoolsSortByEnumLowerCase = map[string]ListNodePoolsSortByEnum{ + "id": ListNodePoolsSortById, + "name": ListNodePoolsSortByName, + "time_created": ListNodePoolsSortByTimeCreated, +} + +// GetListNodePoolsSortByEnumValues Enumerates the set of values for ListNodePoolsSortByEnum +func GetListNodePoolsSortByEnumValues() []ListNodePoolsSortByEnum { + values := make([]ListNodePoolsSortByEnum, 0) + for _, v := range mappingListNodePoolsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNodePoolsSortByEnumStringValues Enumerates the set of values in String for ListNodePoolsSortByEnum +func GetListNodePoolsSortByEnumStringValues() []string { + return []string{ + "ID", + "NAME", + "TIME_CREATED", + } +} + +// GetMappingListNodePoolsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNodePoolsSortByEnum(val string) (ListNodePoolsSortByEnum, bool) { + enum, ok := mappingListNodePoolsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_pod_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_pod_shapes_request_response.go new file mode 100644 index 0000000000..77362559c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_pod_shapes_request_response.go @@ -0,0 +1,206 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPodShapesRequest wrapper for the ListPodShapes operation +type ListPodShapesRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The availability domain of the pod shape. + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The name to filter on. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The optional order in which to sort the results. + SortOrder ListPodShapesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The optional field to sort the results by. + SortBy ListPodShapesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPodShapesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPodShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPodShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPodShapesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPodShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPodShapesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPodShapesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListPodShapesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPodShapesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPodShapesResponse wrapper for the ListPodShapes operation +type ListPodShapesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []PodShapeSummary instances + Items []PodShapeSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPodShapesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPodShapesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPodShapesSortOrderEnum Enum with underlying type: string +type ListPodShapesSortOrderEnum string + +// Set of constants representing the allowable values for ListPodShapesSortOrderEnum +const ( + ListPodShapesSortOrderAsc ListPodShapesSortOrderEnum = "ASC" + ListPodShapesSortOrderDesc ListPodShapesSortOrderEnum = "DESC" +) + +var mappingListPodShapesSortOrderEnum = map[string]ListPodShapesSortOrderEnum{ + "ASC": ListPodShapesSortOrderAsc, + "DESC": ListPodShapesSortOrderDesc, +} + +var mappingListPodShapesSortOrderEnumLowerCase = map[string]ListPodShapesSortOrderEnum{ + "asc": ListPodShapesSortOrderAsc, + "desc": ListPodShapesSortOrderDesc, +} + +// GetListPodShapesSortOrderEnumValues Enumerates the set of values for ListPodShapesSortOrderEnum +func GetListPodShapesSortOrderEnumValues() []ListPodShapesSortOrderEnum { + values := make([]ListPodShapesSortOrderEnum, 0) + for _, v := range mappingListPodShapesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPodShapesSortOrderEnumStringValues Enumerates the set of values in String for ListPodShapesSortOrderEnum +func GetListPodShapesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPodShapesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPodShapesSortOrderEnum(val string) (ListPodShapesSortOrderEnum, bool) { + enum, ok := mappingListPodShapesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPodShapesSortByEnum Enum with underlying type: string +type ListPodShapesSortByEnum string + +// Set of constants representing the allowable values for ListPodShapesSortByEnum +const ( + ListPodShapesSortById ListPodShapesSortByEnum = "ID" + ListPodShapesSortByName ListPodShapesSortByEnum = "NAME" + ListPodShapesSortByTimeCreated ListPodShapesSortByEnum = "TIME_CREATED" +) + +var mappingListPodShapesSortByEnum = map[string]ListPodShapesSortByEnum{ + "ID": ListPodShapesSortById, + "NAME": ListPodShapesSortByName, + "TIME_CREATED": ListPodShapesSortByTimeCreated, +} + +var mappingListPodShapesSortByEnumLowerCase = map[string]ListPodShapesSortByEnum{ + "id": ListPodShapesSortById, + "name": ListPodShapesSortByName, + "time_created": ListPodShapesSortByTimeCreated, +} + +// GetListPodShapesSortByEnumValues Enumerates the set of values for ListPodShapesSortByEnum +func GetListPodShapesSortByEnumValues() []ListPodShapesSortByEnum { + values := make([]ListPodShapesSortByEnum, 0) + for _, v := range mappingListPodShapesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPodShapesSortByEnumStringValues Enumerates the set of values in String for ListPodShapesSortByEnum +func GetListPodShapesSortByEnumStringValues() []string { + return []string{ + "ID", + "NAME", + "TIME_CREATED", + } +} + +// GetMappingListPodShapesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPodShapesSortByEnum(val string) (ListPodShapesSortByEnum, bool) { + enum, ok := mappingListPodShapesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_node_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_node_pools_request_response.go new file mode 100644 index 0000000000..ff9dbb7917 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_node_pools_request_response.go @@ -0,0 +1,215 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVirtualNodePoolsRequest wrapper for the ListVirtualNodePools operation +type ListVirtualNodePoolsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID of the cluster. + ClusterId *string `mandatory:"false" contributesTo:"query" name:"clusterId"` + + // The name to filter on. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The optional order in which to sort the results. + SortOrder ListVirtualNodePoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The optional field to sort the results by. + SortBy ListVirtualNodePoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // A virtual node pool lifecycle state to filter on. Can have multiple parameters of this name. + LifecycleState []VirtualNodePoolLifecycleStateEnum `contributesTo:"query" name:"lifecycleState" omitEmpty:"true" collectionFormat:"multi"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVirtualNodePoolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVirtualNodePoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVirtualNodePoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVirtualNodePoolsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVirtualNodePoolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVirtualNodePoolsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVirtualNodePoolsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListVirtualNodePoolsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVirtualNodePoolsSortByEnumStringValues(), ","))) + } + for _, val := range request.LifecycleState { + if _, ok := GetMappingVirtualNodePoolLifecycleStateEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", val, strings.Join(GetVirtualNodePoolLifecycleStateEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVirtualNodePoolsResponse wrapper for the ListVirtualNodePools operation +type ListVirtualNodePoolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VirtualNodePoolSummary instances + Items []VirtualNodePoolSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVirtualNodePoolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVirtualNodePoolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVirtualNodePoolsSortOrderEnum Enum with underlying type: string +type ListVirtualNodePoolsSortOrderEnum string + +// Set of constants representing the allowable values for ListVirtualNodePoolsSortOrderEnum +const ( + ListVirtualNodePoolsSortOrderAsc ListVirtualNodePoolsSortOrderEnum = "ASC" + ListVirtualNodePoolsSortOrderDesc ListVirtualNodePoolsSortOrderEnum = "DESC" +) + +var mappingListVirtualNodePoolsSortOrderEnum = map[string]ListVirtualNodePoolsSortOrderEnum{ + "ASC": ListVirtualNodePoolsSortOrderAsc, + "DESC": ListVirtualNodePoolsSortOrderDesc, +} + +var mappingListVirtualNodePoolsSortOrderEnumLowerCase = map[string]ListVirtualNodePoolsSortOrderEnum{ + "asc": ListVirtualNodePoolsSortOrderAsc, + "desc": ListVirtualNodePoolsSortOrderDesc, +} + +// GetListVirtualNodePoolsSortOrderEnumValues Enumerates the set of values for ListVirtualNodePoolsSortOrderEnum +func GetListVirtualNodePoolsSortOrderEnumValues() []ListVirtualNodePoolsSortOrderEnum { + values := make([]ListVirtualNodePoolsSortOrderEnum, 0) + for _, v := range mappingListVirtualNodePoolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVirtualNodePoolsSortOrderEnumStringValues Enumerates the set of values in String for ListVirtualNodePoolsSortOrderEnum +func GetListVirtualNodePoolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVirtualNodePoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVirtualNodePoolsSortOrderEnum(val string) (ListVirtualNodePoolsSortOrderEnum, bool) { + enum, ok := mappingListVirtualNodePoolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVirtualNodePoolsSortByEnum Enum with underlying type: string +type ListVirtualNodePoolsSortByEnum string + +// Set of constants representing the allowable values for ListVirtualNodePoolsSortByEnum +const ( + ListVirtualNodePoolsSortById ListVirtualNodePoolsSortByEnum = "ID" + ListVirtualNodePoolsSortByName ListVirtualNodePoolsSortByEnum = "NAME" + ListVirtualNodePoolsSortByTimeCreated ListVirtualNodePoolsSortByEnum = "TIME_CREATED" +) + +var mappingListVirtualNodePoolsSortByEnum = map[string]ListVirtualNodePoolsSortByEnum{ + "ID": ListVirtualNodePoolsSortById, + "NAME": ListVirtualNodePoolsSortByName, + "TIME_CREATED": ListVirtualNodePoolsSortByTimeCreated, +} + +var mappingListVirtualNodePoolsSortByEnumLowerCase = map[string]ListVirtualNodePoolsSortByEnum{ + "id": ListVirtualNodePoolsSortById, + "name": ListVirtualNodePoolsSortByName, + "time_created": ListVirtualNodePoolsSortByTimeCreated, +} + +// GetListVirtualNodePoolsSortByEnumValues Enumerates the set of values for ListVirtualNodePoolsSortByEnum +func GetListVirtualNodePoolsSortByEnumValues() []ListVirtualNodePoolsSortByEnum { + values := make([]ListVirtualNodePoolsSortByEnum, 0) + for _, v := range mappingListVirtualNodePoolsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVirtualNodePoolsSortByEnumStringValues Enumerates the set of values in String for ListVirtualNodePoolsSortByEnum +func GetListVirtualNodePoolsSortByEnumStringValues() []string { + return []string{ + "ID", + "NAME", + "TIME_CREATED", + } +} + +// GetMappingListVirtualNodePoolsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVirtualNodePoolsSortByEnum(val string) (ListVirtualNodePoolsSortByEnum, bool) { + enum, ok := mappingListVirtualNodePoolsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_nodes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_nodes_request_response.go new file mode 100644 index 0000000000..6bcbf42405 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_virtual_nodes_request_response.go @@ -0,0 +1,203 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVirtualNodesRequest wrapper for the ListVirtualNodes operation +type ListVirtualNodesRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The name to filter on. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The optional order in which to sort the results. + SortOrder ListVirtualNodesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The optional field to sort the results by. + SortBy ListVirtualNodesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVirtualNodesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVirtualNodesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVirtualNodesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVirtualNodesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVirtualNodesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVirtualNodesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVirtualNodesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListVirtualNodesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVirtualNodesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVirtualNodesResponse wrapper for the ListVirtualNodes operation +type ListVirtualNodesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VirtualNodeSummary instances + Items []VirtualNodeSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVirtualNodesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVirtualNodesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVirtualNodesSortOrderEnum Enum with underlying type: string +type ListVirtualNodesSortOrderEnum string + +// Set of constants representing the allowable values for ListVirtualNodesSortOrderEnum +const ( + ListVirtualNodesSortOrderAsc ListVirtualNodesSortOrderEnum = "ASC" + ListVirtualNodesSortOrderDesc ListVirtualNodesSortOrderEnum = "DESC" +) + +var mappingListVirtualNodesSortOrderEnum = map[string]ListVirtualNodesSortOrderEnum{ + "ASC": ListVirtualNodesSortOrderAsc, + "DESC": ListVirtualNodesSortOrderDesc, +} + +var mappingListVirtualNodesSortOrderEnumLowerCase = map[string]ListVirtualNodesSortOrderEnum{ + "asc": ListVirtualNodesSortOrderAsc, + "desc": ListVirtualNodesSortOrderDesc, +} + +// GetListVirtualNodesSortOrderEnumValues Enumerates the set of values for ListVirtualNodesSortOrderEnum +func GetListVirtualNodesSortOrderEnumValues() []ListVirtualNodesSortOrderEnum { + values := make([]ListVirtualNodesSortOrderEnum, 0) + for _, v := range mappingListVirtualNodesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVirtualNodesSortOrderEnumStringValues Enumerates the set of values in String for ListVirtualNodesSortOrderEnum +func GetListVirtualNodesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVirtualNodesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVirtualNodesSortOrderEnum(val string) (ListVirtualNodesSortOrderEnum, bool) { + enum, ok := mappingListVirtualNodesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVirtualNodesSortByEnum Enum with underlying type: string +type ListVirtualNodesSortByEnum string + +// Set of constants representing the allowable values for ListVirtualNodesSortByEnum +const ( + ListVirtualNodesSortById ListVirtualNodesSortByEnum = "ID" + ListVirtualNodesSortByName ListVirtualNodesSortByEnum = "NAME" + ListVirtualNodesSortByTimeCreated ListVirtualNodesSortByEnum = "TIME_CREATED" +) + +var mappingListVirtualNodesSortByEnum = map[string]ListVirtualNodesSortByEnum{ + "ID": ListVirtualNodesSortById, + "NAME": ListVirtualNodesSortByName, + "TIME_CREATED": ListVirtualNodesSortByTimeCreated, +} + +var mappingListVirtualNodesSortByEnumLowerCase = map[string]ListVirtualNodesSortByEnum{ + "id": ListVirtualNodesSortById, + "name": ListVirtualNodesSortByName, + "time_created": ListVirtualNodesSortByTimeCreated, +} + +// GetListVirtualNodesSortByEnumValues Enumerates the set of values for ListVirtualNodesSortByEnum +func GetListVirtualNodesSortByEnumValues() []ListVirtualNodesSortByEnum { + values := make([]ListVirtualNodesSortByEnum, 0) + for _, v := range mappingListVirtualNodesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVirtualNodesSortByEnumStringValues Enumerates the set of values in String for ListVirtualNodesSortByEnum +func GetListVirtualNodesSortByEnumStringValues() []string { + return []string{ + "ID", + "NAME", + "TIME_CREATED", + } +} + +// GetMappingListVirtualNodesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVirtualNodesSortByEnum(val string) (ListVirtualNodesSortByEnum, bool) { + enum, ok := mappingListVirtualNodesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_errors_request_response.go new file mode 100644 index 0000000000..a570db1ddc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_errors_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestErrorsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []WorkRequestError instance + Items []WorkRequestError `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestErrorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_logs_request_response.go new file mode 100644 index 0000000000..0373f84b8a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_request_logs_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestLogsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []WorkRequestLogEntry instance + Items []WorkRequestLogEntry `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestLogsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_requests_request_response.go new file mode 100644 index 0000000000..8788acef16 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/list_work_requests_request_response.go @@ -0,0 +1,269 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +type ListWorkRequestsRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the cluster. + ClusterId *string `mandatory:"false" contributesTo:"query" name:"clusterId"` + + // The OCID of the resource associated with a work request + ResourceId *string `mandatory:"false" contributesTo:"query" name:"resourceId"` + + // Type of the resource associated with a work request + ResourceType ListWorkRequestsResourceTypeEnum `mandatory:"false" contributesTo:"query" name:"resourceType" omitEmpty:"true"` + + // A work request status to filter on. Can have multiple parameters of this name. + Status []string `contributesTo:"query" name:"status" collectionFormat:"multi"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The optional order in which to sort the results. + SortOrder ListWorkRequestsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The optional field to sort the results by. + SortBy ListWorkRequestsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListWorkRequestsResourceTypeEnum(string(request.ResourceType)); !ok && request.ResourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ResourceType: %s. Supported values are: %s.", request.ResourceType, strings.Join(GetListWorkRequestsResourceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListWorkRequestsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListWorkRequestsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListWorkRequestsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestsResponse wrapper for the ListWorkRequests operation +type ListWorkRequestsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []WorkRequestSummary instances + Items []WorkRequestSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListWorkRequestsResourceTypeEnum Enum with underlying type: string +type ListWorkRequestsResourceTypeEnum string + +// Set of constants representing the allowable values for ListWorkRequestsResourceTypeEnum +const ( + ListWorkRequestsResourceTypeCluster ListWorkRequestsResourceTypeEnum = "CLUSTER" + ListWorkRequestsResourceTypeNodepool ListWorkRequestsResourceTypeEnum = "NODEPOOL" +) + +var mappingListWorkRequestsResourceTypeEnum = map[string]ListWorkRequestsResourceTypeEnum{ + "CLUSTER": ListWorkRequestsResourceTypeCluster, + "NODEPOOL": ListWorkRequestsResourceTypeNodepool, +} + +var mappingListWorkRequestsResourceTypeEnumLowerCase = map[string]ListWorkRequestsResourceTypeEnum{ + "cluster": ListWorkRequestsResourceTypeCluster, + "nodepool": ListWorkRequestsResourceTypeNodepool, +} + +// GetListWorkRequestsResourceTypeEnumValues Enumerates the set of values for ListWorkRequestsResourceTypeEnum +func GetListWorkRequestsResourceTypeEnumValues() []ListWorkRequestsResourceTypeEnum { + values := make([]ListWorkRequestsResourceTypeEnum, 0) + for _, v := range mappingListWorkRequestsResourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsResourceTypeEnumStringValues Enumerates the set of values in String for ListWorkRequestsResourceTypeEnum +func GetListWorkRequestsResourceTypeEnumStringValues() []string { + return []string{ + "CLUSTER", + "NODEPOOL", + } +} + +// GetMappingListWorkRequestsResourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsResourceTypeEnum(val string) (ListWorkRequestsResourceTypeEnum, bool) { + enum, ok := mappingListWorkRequestsResourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestsSortOrderEnum Enum with underlying type: string +type ListWorkRequestsSortOrderEnum string + +// Set of constants representing the allowable values for ListWorkRequestsSortOrderEnum +const ( + ListWorkRequestsSortOrderAsc ListWorkRequestsSortOrderEnum = "ASC" + ListWorkRequestsSortOrderDesc ListWorkRequestsSortOrderEnum = "DESC" +) + +var mappingListWorkRequestsSortOrderEnum = map[string]ListWorkRequestsSortOrderEnum{ + "ASC": ListWorkRequestsSortOrderAsc, + "DESC": ListWorkRequestsSortOrderDesc, +} + +var mappingListWorkRequestsSortOrderEnumLowerCase = map[string]ListWorkRequestsSortOrderEnum{ + "asc": ListWorkRequestsSortOrderAsc, + "desc": ListWorkRequestsSortOrderDesc, +} + +// GetListWorkRequestsSortOrderEnumValues Enumerates the set of values for ListWorkRequestsSortOrderEnum +func GetListWorkRequestsSortOrderEnumValues() []ListWorkRequestsSortOrderEnum { + values := make([]ListWorkRequestsSortOrderEnum, 0) + for _, v := range mappingListWorkRequestsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsSortOrderEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortOrderEnum +func GetListWorkRequestsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListWorkRequestsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsSortOrderEnum(val string) (ListWorkRequestsSortOrderEnum, bool) { + enum, ok := mappingListWorkRequestsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListWorkRequestsSortByEnum Enum with underlying type: string +type ListWorkRequestsSortByEnum string + +// Set of constants representing the allowable values for ListWorkRequestsSortByEnum +const ( + ListWorkRequestsSortById ListWorkRequestsSortByEnum = "ID" + ListWorkRequestsSortByOperationType ListWorkRequestsSortByEnum = "OPERATION_TYPE" + ListWorkRequestsSortByStatus ListWorkRequestsSortByEnum = "STATUS" + ListWorkRequestsSortByTimeAccepted ListWorkRequestsSortByEnum = "TIME_ACCEPTED" + ListWorkRequestsSortByTimeStarted ListWorkRequestsSortByEnum = "TIME_STARTED" + ListWorkRequestsSortByTimeFinished ListWorkRequestsSortByEnum = "TIME_FINISHED" +) + +var mappingListWorkRequestsSortByEnum = map[string]ListWorkRequestsSortByEnum{ + "ID": ListWorkRequestsSortById, + "OPERATION_TYPE": ListWorkRequestsSortByOperationType, + "STATUS": ListWorkRequestsSortByStatus, + "TIME_ACCEPTED": ListWorkRequestsSortByTimeAccepted, + "TIME_STARTED": ListWorkRequestsSortByTimeStarted, + "TIME_FINISHED": ListWorkRequestsSortByTimeFinished, +} + +var mappingListWorkRequestsSortByEnumLowerCase = map[string]ListWorkRequestsSortByEnum{ + "id": ListWorkRequestsSortById, + "operation_type": ListWorkRequestsSortByOperationType, + "status": ListWorkRequestsSortByStatus, + "time_accepted": ListWorkRequestsSortByTimeAccepted, + "time_started": ListWorkRequestsSortByTimeStarted, + "time_finished": ListWorkRequestsSortByTimeFinished, +} + +// GetListWorkRequestsSortByEnumValues Enumerates the set of values for ListWorkRequestsSortByEnum +func GetListWorkRequestsSortByEnumValues() []ListWorkRequestsSortByEnum { + values := make([]ListWorkRequestsSortByEnum, 0) + for _, v := range mappingListWorkRequestsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListWorkRequestsSortByEnumStringValues Enumerates the set of values in String for ListWorkRequestsSortByEnum +func GetListWorkRequestsSortByEnumStringValues() []string { + return []string{ + "ID", + "OPERATION_TYPE", + "STATUS", + "TIME_ACCEPTED", + "TIME_STARTED", + "TIME_FINISHED", + } +} + +// GetMappingListWorkRequestsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListWorkRequestsSortByEnum(val string) (ListWorkRequestsSortByEnum, bool) { + enum, ok := mappingListWorkRequestsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node.go new file mode 100644 index 0000000000..8979ce0aff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node.go @@ -0,0 +1,153 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Node The properties that define a node. +type Node struct { + + // The OCID of the compute instance backing this node. + Id *string `mandatory:"false" json:"id"` + + // The name of the node. + Name *string `mandatory:"false" json:"name"` + + // The version of Kubernetes this node is running. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // The name of the availability domain in which this node is placed. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID of the subnet in which this node is placed. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // The OCID of the node pool to which this node belongs. + NodePoolId *string `mandatory:"false" json:"nodePoolId"` + + // The fault domain of this node. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The private IP address of this node. + PrivateIp *string `mandatory:"false" json:"privateIp"` + + // The public IP address of this node. + PublicIp *string `mandatory:"false" json:"publicIp"` + + // An error that may be associated with the node. + NodeError *NodeError `mandatory:"false" json:"nodeError"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The state of the node. + LifecycleState NodeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the node. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` +} + +func (m Node) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Node) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNodeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetNodeLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NodeLifecycleStateEnum Enum with underlying type: string +type NodeLifecycleStateEnum string + +// Set of constants representing the allowable values for NodeLifecycleStateEnum +const ( + NodeLifecycleStateCreating NodeLifecycleStateEnum = "CREATING" + NodeLifecycleStateActive NodeLifecycleStateEnum = "ACTIVE" + NodeLifecycleStateUpdating NodeLifecycleStateEnum = "UPDATING" + NodeLifecycleStateDeleting NodeLifecycleStateEnum = "DELETING" + NodeLifecycleStateDeleted NodeLifecycleStateEnum = "DELETED" + NodeLifecycleStateFailing NodeLifecycleStateEnum = "FAILING" + NodeLifecycleStateInactive NodeLifecycleStateEnum = "INACTIVE" +) + +var mappingNodeLifecycleStateEnum = map[string]NodeLifecycleStateEnum{ + "CREATING": NodeLifecycleStateCreating, + "ACTIVE": NodeLifecycleStateActive, + "UPDATING": NodeLifecycleStateUpdating, + "DELETING": NodeLifecycleStateDeleting, + "DELETED": NodeLifecycleStateDeleted, + "FAILING": NodeLifecycleStateFailing, + "INACTIVE": NodeLifecycleStateInactive, +} + +var mappingNodeLifecycleStateEnumLowerCase = map[string]NodeLifecycleStateEnum{ + "creating": NodeLifecycleStateCreating, + "active": NodeLifecycleStateActive, + "updating": NodeLifecycleStateUpdating, + "deleting": NodeLifecycleStateDeleting, + "deleted": NodeLifecycleStateDeleted, + "failing": NodeLifecycleStateFailing, + "inactive": NodeLifecycleStateInactive, +} + +// GetNodeLifecycleStateEnumValues Enumerates the set of values for NodeLifecycleStateEnum +func GetNodeLifecycleStateEnumValues() []NodeLifecycleStateEnum { + values := make([]NodeLifecycleStateEnum, 0) + for _, v := range mappingNodeLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetNodeLifecycleStateEnumStringValues Enumerates the set of values in String for NodeLifecycleStateEnum +func GetNodeLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILING", + "INACTIVE", + } +} + +// GetMappingNodeLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNodeLifecycleStateEnum(val string) (NodeLifecycleStateEnum, bool) { + enum, ok := mappingNodeLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_error.go new file mode 100644 index 0000000000..6f6eb79c07 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_error.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeError The properties that define an upstream error while managing a node. +type NodeError struct { + + // A short error code that defines the upstream error, meant for programmatic parsing. See API Errors (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). + Code *string `mandatory:"true" json:"code"` + + // A human-readable error string of the upstream error. + Message *string `mandatory:"true" json:"message"` + + // The status of the HTTP response encountered in the upstream error. + Status *string `mandatory:"false" json:"status"` + + // Unique Oracle-assigned identifier for the upstream request. If you need to contact Oracle about a particular upstream request, please provide the request ID. + OpcRequestId *string `mandatory:"false" json:"opc-request-id"` +} + +func (m NodeError) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodeError) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_node_pool_settings.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_node_pool_settings.go new file mode 100644 index 0000000000..61b4c4655d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_eviction_node_pool_settings.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeEvictionNodePoolSettings Node Eviction Details configuration +type NodeEvictionNodePoolSettings struct { + + // Duration after which OKE will give up eviction of the pods on the node. PT0M will indicate you want to delete the node without cordon and drain. + // Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + EvictionGraceDuration *string `mandatory:"false" json:"evictionGraceDuration"` + + // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + IsForceDeleteAfterGraceDuration *bool `mandatory:"false" json:"isForceDeleteAfterGraceDuration"` +} + +func (m NodeEvictionNodePoolSettings) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodeEvictionNodePoolSettings) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool.go new file mode 100644 index 0000000000..f37e1d4fb5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool.go @@ -0,0 +1,228 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodePool A pool of compute nodes attached to a cluster. Avoid entering confidential information. +type NodePool struct { + + // The OCID of the node pool. + Id *string `mandatory:"false" json:"id"` + + // The state of the nodepool. + LifecycleState NodePoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the nodepool. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The OCID of the compartment in which the node pool exists. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the cluster to which this node pool is attached. + ClusterId *string `mandatory:"false" json:"clusterId"` + + // The name of the node pool. + Name *string `mandatory:"false" json:"name"` + + // The version of Kubernetes running on the nodes in the node pool. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. + NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"` + + // Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. + NodeImageId *string `mandatory:"false" json:"nodeImageId"` + + // Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. + NodeImageName *string `mandatory:"false" json:"nodeImageName"` + + // The shape configuration of the nodes. + NodeShapeConfig *NodeShapeConfig `mandatory:"false" json:"nodeShapeConfig"` + + // Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. + NodeSource NodeSourceOption `mandatory:"false" json:"nodeSource"` + + // Source running on the nodes in the node pool. + NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` + + // The name of the node shape of the nodes in the node pool. + NodeShape *string `mandatory:"false" json:"nodeShape"` + + // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. + InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` + + // The SSH public key on each node in the node pool on launch. + SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` + + // The number of nodes in each subnet. + QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` + + // The OCIDs of the subnets in which to place nodes for this node pool. + SubnetIds []string `mandatory:"false" json:"subnetIds"` + + // The nodes in the node pool. + Nodes []Node `mandatory:"false" json:"nodes"` + + // The configuration of nodes in the node pool. + NodeConfigDetails *NodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `mandatory:"false" json:"nodeEvictionNodePoolSettings"` +} + +func (m NodePool) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodePool) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNodePoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetNodePoolLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *NodePool) UnmarshalJSON(data []byte) (e error) { + model := struct { + Id *string `json:"id"` + LifecycleState NodePoolLifecycleStateEnum `json:"lifecycleState"` + LifecycleDetails *string `json:"lifecycleDetails"` + CompartmentId *string `json:"compartmentId"` + ClusterId *string `json:"clusterId"` + Name *string `json:"name"` + KubernetesVersion *string `json:"kubernetesVersion"` + NodeMetadata map[string]string `json:"nodeMetadata"` + NodeImageId *string `json:"nodeImageId"` + NodeImageName *string `json:"nodeImageName"` + NodeShapeConfig *NodeShapeConfig `json:"nodeShapeConfig"` + NodeSource nodesourceoption `json:"nodeSource"` + NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` + NodeShape *string `json:"nodeShape"` + InitialNodeLabels []KeyValue `json:"initialNodeLabels"` + SshPublicKey *string `json:"sshPublicKey"` + QuantityPerSubnet *int `json:"quantityPerSubnet"` + SubnetIds []string `json:"subnetIds"` + Nodes []Node `json:"nodes"` + NodeConfigDetails *NodePoolNodeConfigDetails `json:"nodeConfigDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `json:"nodeEvictionNodePoolSettings"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.LifecycleDetails = model.LifecycleDetails + + m.CompartmentId = model.CompartmentId + + m.ClusterId = model.ClusterId + + m.Name = model.Name + + m.KubernetesVersion = model.KubernetesVersion + + m.NodeMetadata = model.NodeMetadata + + m.NodeImageId = model.NodeImageId + + m.NodeImageName = model.NodeImageName + + m.NodeShapeConfig = model.NodeShapeConfig + + nn, e = model.NodeSource.UnmarshalPolymorphicJSON(model.NodeSource.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodeSource = nn.(NodeSourceOption) + } else { + m.NodeSource = nil + } + + nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodeSourceDetails = nn.(NodeSourceDetails) + } else { + m.NodeSourceDetails = nil + } + + m.NodeShape = model.NodeShape + + m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) + for i, n := range model.InitialNodeLabels { + m.InitialNodeLabels[i] = n + } + + m.SshPublicKey = model.SshPublicKey + + m.QuantityPerSubnet = model.QuantityPerSubnet + + m.SubnetIds = make([]string, len(model.SubnetIds)) + for i, n := range model.SubnetIds { + m.SubnetIds[i] = n + } + + m.Nodes = make([]Node, len(model.Nodes)) + for i, n := range model.Nodes { + m.Nodes[i] = n + } + + m.NodeConfigDetails = model.NodeConfigDetails + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.NodeEvictionNodePoolSettings = model.NodeEvictionNodePoolSettings + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_lifecycle_state.go new file mode 100644 index 0000000000..571a32ac51 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_lifecycle_state.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// NodePoolLifecycleStateEnum Enum with underlying type: string +type NodePoolLifecycleStateEnum string + +// Set of constants representing the allowable values for NodePoolLifecycleStateEnum +const ( + NodePoolLifecycleStateDeleted NodePoolLifecycleStateEnum = "DELETED" + NodePoolLifecycleStateCreating NodePoolLifecycleStateEnum = "CREATING" + NodePoolLifecycleStateActive NodePoolLifecycleStateEnum = "ACTIVE" + NodePoolLifecycleStateUpdating NodePoolLifecycleStateEnum = "UPDATING" + NodePoolLifecycleStateDeleting NodePoolLifecycleStateEnum = "DELETING" + NodePoolLifecycleStateFailed NodePoolLifecycleStateEnum = "FAILED" + NodePoolLifecycleStateInactive NodePoolLifecycleStateEnum = "INACTIVE" + NodePoolLifecycleStateNeedsAttention NodePoolLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingNodePoolLifecycleStateEnum = map[string]NodePoolLifecycleStateEnum{ + "DELETED": NodePoolLifecycleStateDeleted, + "CREATING": NodePoolLifecycleStateCreating, + "ACTIVE": NodePoolLifecycleStateActive, + "UPDATING": NodePoolLifecycleStateUpdating, + "DELETING": NodePoolLifecycleStateDeleting, + "FAILED": NodePoolLifecycleStateFailed, + "INACTIVE": NodePoolLifecycleStateInactive, + "NEEDS_ATTENTION": NodePoolLifecycleStateNeedsAttention, +} + +var mappingNodePoolLifecycleStateEnumLowerCase = map[string]NodePoolLifecycleStateEnum{ + "deleted": NodePoolLifecycleStateDeleted, + "creating": NodePoolLifecycleStateCreating, + "active": NodePoolLifecycleStateActive, + "updating": NodePoolLifecycleStateUpdating, + "deleting": NodePoolLifecycleStateDeleting, + "failed": NodePoolLifecycleStateFailed, + "inactive": NodePoolLifecycleStateInactive, + "needs_attention": NodePoolLifecycleStateNeedsAttention, +} + +// GetNodePoolLifecycleStateEnumValues Enumerates the set of values for NodePoolLifecycleStateEnum +func GetNodePoolLifecycleStateEnumValues() []NodePoolLifecycleStateEnum { + values := make([]NodePoolLifecycleStateEnum, 0) + for _, v := range mappingNodePoolLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetNodePoolLifecycleStateEnumStringValues Enumerates the set of values in String for NodePoolLifecycleStateEnum +func GetNodePoolLifecycleStateEnumStringValues() []string { + return []string{ + "DELETED", + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "FAILED", + "INACTIVE", + "NEEDS_ATTENTION", + } +} + +// GetMappingNodePoolLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNodePoolLifecycleStateEnum(val string) (NodePoolLifecycleStateEnum, bool) { + enum, ok := mappingNodePoolLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_node_config_details.go new file mode 100644 index 0000000000..dfd4844f25 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_node_config_details.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodePoolNodeConfigDetails The size and placement configuration of nodes in the node pool. +type NodePoolNodeConfigDetails struct { + + // The number of nodes in the node pool. + Size *int `mandatory:"false" json:"size"` + + // The OCIDs of the Network Security Group(s) to associate nodes for this node pool with. For more information about NSGs, see NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID of the Key Management Service key assigned to the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The placement configurations for the node pool. Provide one placement + // configuration for each availability domain in which you intend to launch a node. + // To use the node pool with a regional subnet, provide a placement configuration for + // each availability domain, and include the regional subnet in each placement + // configuration. + PlacementConfigs []NodePoolPlacementConfigDetails `mandatory:"false" json:"placementConfigs"` + + // The CNI related configuration of pods in the node pool. + NodePoolPodNetworkOptionDetails NodePoolPodNetworkOptionDetails `mandatory:"false" json:"nodePoolPodNetworkOptionDetails"` +} + +func (m NodePoolNodeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodePoolNodeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *NodePoolNodeConfigDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Size *int `json:"size"` + NsgIds []string `json:"nsgIds"` + KmsKeyId *string `json:"kmsKeyId"` + IsPvEncryptionInTransitEnabled *bool `json:"isPvEncryptionInTransitEnabled"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + PlacementConfigs []NodePoolPlacementConfigDetails `json:"placementConfigs"` + NodePoolPodNetworkOptionDetails nodepoolpodnetworkoptiondetails `json:"nodePoolPodNetworkOptionDetails"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Size = model.Size + + m.NsgIds = make([]string, len(model.NsgIds)) + for i, n := range model.NsgIds { + m.NsgIds[i] = n + } + + m.KmsKeyId = model.KmsKeyId + + m.IsPvEncryptionInTransitEnabled = model.IsPvEncryptionInTransitEnabled + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.PlacementConfigs = make([]NodePoolPlacementConfigDetails, len(model.PlacementConfigs)) + for i, n := range model.PlacementConfigs { + m.PlacementConfigs[i] = n + } + + nn, e = model.NodePoolPodNetworkOptionDetails.UnmarshalPolymorphicJSON(model.NodePoolPodNetworkOptionDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodePoolPodNetworkOptionDetails = nn.(NodePoolPodNetworkOptionDetails) + } else { + m.NodePoolPodNetworkOptionDetails = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_options.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_options.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_options.go index dd4006e971..00b0dbc791 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_pool_options.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_options.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -13,7 +13,9 @@ package containerengine import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NodePoolOptions Options for creating or updating node pools. @@ -38,6 +40,18 @@ func (m NodePoolOptions) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodePoolOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *NodePoolOptions) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_placement_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_placement_config_details.go new file mode 100644 index 0000000000..720ecfa6c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_placement_config_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodePoolPlacementConfigDetails The location where a node pool will place nodes. +type NodePoolPlacementConfigDetails struct { + + // The availability domain in which to place nodes. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the subnet in which to place nodes. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The OCID of the compute capacity reservation in which to place the compute instance. + CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + + // A list of fault domains in which to place nodes. + FaultDomains []string `mandatory:"false" json:"faultDomains"` +} + +func (m NodePoolPlacementConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodePoolPlacementConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_pod_network_option_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_pod_network_option_details.go new file mode 100644 index 0000000000..49f39cd925 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_pod_network_option_details.go @@ -0,0 +1,125 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodePoolPodNetworkOptionDetails The CNI type and relevant network details for the pods of a given node pool +type NodePoolPodNetworkOptionDetails interface { +} + +type nodepoolpodnetworkoptiondetails struct { + JsonData []byte + CniType string `json:"cniType"` +} + +// UnmarshalJSON unmarshals json +func (m *nodepoolpodnetworkoptiondetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalernodepoolpodnetworkoptiondetails nodepoolpodnetworkoptiondetails + s := struct { + Model Unmarshalernodepoolpodnetworkoptiondetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CniType = s.Model.CniType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *nodepoolpodnetworkoptiondetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.CniType { + case "OCI_VCN_IP_NATIVE": + mm := OciVcnIpNativeNodePoolPodNetworkOptionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "FLANNEL_OVERLAY": + mm := FlannelOverlayNodePoolPodNetworkOptionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for NodePoolPodNetworkOptionDetails: %s.", m.CniType) + return *m, nil + } +} + +func (m nodepoolpodnetworkoptiondetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m nodepoolpodnetworkoptiondetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NodePoolPodNetworkOptionDetailsCniTypeEnum Enum with underlying type: string +type NodePoolPodNetworkOptionDetailsCniTypeEnum string + +// Set of constants representing the allowable values for NodePoolPodNetworkOptionDetailsCniTypeEnum +const ( + NodePoolPodNetworkOptionDetailsCniTypeOciVcnIpNative NodePoolPodNetworkOptionDetailsCniTypeEnum = "OCI_VCN_IP_NATIVE" + NodePoolPodNetworkOptionDetailsCniTypeFlannelOverlay NodePoolPodNetworkOptionDetailsCniTypeEnum = "FLANNEL_OVERLAY" +) + +var mappingNodePoolPodNetworkOptionDetailsCniTypeEnum = map[string]NodePoolPodNetworkOptionDetailsCniTypeEnum{ + "OCI_VCN_IP_NATIVE": NodePoolPodNetworkOptionDetailsCniTypeOciVcnIpNative, + "FLANNEL_OVERLAY": NodePoolPodNetworkOptionDetailsCniTypeFlannelOverlay, +} + +var mappingNodePoolPodNetworkOptionDetailsCniTypeEnumLowerCase = map[string]NodePoolPodNetworkOptionDetailsCniTypeEnum{ + "oci_vcn_ip_native": NodePoolPodNetworkOptionDetailsCniTypeOciVcnIpNative, + "flannel_overlay": NodePoolPodNetworkOptionDetailsCniTypeFlannelOverlay, +} + +// GetNodePoolPodNetworkOptionDetailsCniTypeEnumValues Enumerates the set of values for NodePoolPodNetworkOptionDetailsCniTypeEnum +func GetNodePoolPodNetworkOptionDetailsCniTypeEnumValues() []NodePoolPodNetworkOptionDetailsCniTypeEnum { + values := make([]NodePoolPodNetworkOptionDetailsCniTypeEnum, 0) + for _, v := range mappingNodePoolPodNetworkOptionDetailsCniTypeEnum { + values = append(values, v) + } + return values +} + +// GetNodePoolPodNetworkOptionDetailsCniTypeEnumStringValues Enumerates the set of values in String for NodePoolPodNetworkOptionDetailsCniTypeEnum +func GetNodePoolPodNetworkOptionDetailsCniTypeEnumStringValues() []string { + return []string{ + "OCI_VCN_IP_NATIVE", + "FLANNEL_OVERLAY", + } +} + +// GetMappingNodePoolPodNetworkOptionDetailsCniTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNodePoolPodNetworkOptionDetailsCniTypeEnum(val string) (NodePoolPodNetworkOptionDetailsCniTypeEnum, bool) { + enum, ok := mappingNodePoolPodNetworkOptionDetailsCniTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_summary.go new file mode 100644 index 0000000000..0b87ad2728 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_pool_summary.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodePoolSummary The properties that define a node pool summary. +type NodePoolSummary struct { + + // The OCID of the node pool. + Id *string `mandatory:"false" json:"id"` + + // The state of the nodepool. + LifecycleState NodePoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the nodepool. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The OCID of the compartment in which the node pool exists. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the cluster to which this node pool is attached. + ClusterId *string `mandatory:"false" json:"clusterId"` + + // The name of the node pool. + Name *string `mandatory:"false" json:"name"` + + // The version of Kubernetes running on the nodes in the node pool. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // Deprecated. see `nodeSource`. The OCID of the image running on the nodes in the node pool. + NodeImageId *string `mandatory:"false" json:"nodeImageId"` + + // Deprecated. see `nodeSource`. The name of the image running on the nodes in the node pool. + NodeImageName *string `mandatory:"false" json:"nodeImageName"` + + // The shape configuration of the nodes. + NodeShapeConfig *NodeShapeConfig `mandatory:"false" json:"nodeShapeConfig"` + + // Deprecated. see `nodeSourceDetails`. Source running on the nodes in the node pool. + NodeSource NodeSourceOption `mandatory:"false" json:"nodeSource"` + + // Source running on the nodes in the node pool. + NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` + + // The name of the node shape of the nodes in the node pool. + NodeShape *string `mandatory:"false" json:"nodeShape"` + + // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. + InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` + + // The SSH public key on each node in the node pool on launch. + SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` + + // The number of nodes in each subnet. + QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` + + // The OCIDs of the subnets in which to place nodes for this node pool. + SubnetIds []string `mandatory:"false" json:"subnetIds"` + + // The configuration of nodes in the node pool. + NodeConfigDetails *NodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `mandatory:"false" json:"nodeEvictionNodePoolSettings"` +} + +func (m NodePoolSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodePoolSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNodePoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetNodePoolLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *NodePoolSummary) UnmarshalJSON(data []byte) (e error) { + model := struct { + Id *string `json:"id"` + LifecycleState NodePoolLifecycleStateEnum `json:"lifecycleState"` + LifecycleDetails *string `json:"lifecycleDetails"` + CompartmentId *string `json:"compartmentId"` + ClusterId *string `json:"clusterId"` + Name *string `json:"name"` + KubernetesVersion *string `json:"kubernetesVersion"` + NodeImageId *string `json:"nodeImageId"` + NodeImageName *string `json:"nodeImageName"` + NodeShapeConfig *NodeShapeConfig `json:"nodeShapeConfig"` + NodeSource nodesourceoption `json:"nodeSource"` + NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` + NodeShape *string `json:"nodeShape"` + InitialNodeLabels []KeyValue `json:"initialNodeLabels"` + SshPublicKey *string `json:"sshPublicKey"` + QuantityPerSubnet *int `json:"quantityPerSubnet"` + SubnetIds []string `json:"subnetIds"` + NodeConfigDetails *NodePoolNodeConfigDetails `json:"nodeConfigDetails"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `json:"nodeEvictionNodePoolSettings"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.LifecycleDetails = model.LifecycleDetails + + m.CompartmentId = model.CompartmentId + + m.ClusterId = model.ClusterId + + m.Name = model.Name + + m.KubernetesVersion = model.KubernetesVersion + + m.NodeImageId = model.NodeImageId + + m.NodeImageName = model.NodeImageName + + m.NodeShapeConfig = model.NodeShapeConfig + + nn, e = model.NodeSource.UnmarshalPolymorphicJSON(model.NodeSource.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodeSource = nn.(NodeSourceOption) + } else { + m.NodeSource = nil + } + + nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodeSourceDetails = nn.(NodeSourceDetails) + } else { + m.NodeSourceDetails = nil + } + + m.NodeShape = model.NodeShape + + m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) + for i, n := range model.InitialNodeLabels { + m.InitialNodeLabels[i] = n + } + + m.SshPublicKey = model.SshPublicKey + + m.QuantityPerSubnet = model.QuantityPerSubnet + + m.SubnetIds = make([]string, len(model.SubnetIds)) + for i, n := range model.SubnetIds { + m.SubnetIds[i] = n + } + + m.NodeConfigDetails = model.NodeConfigDetails + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.NodeEvictionNodePoolSettings = model.NodeEvictionNodePoolSettings + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_shape_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_shape_config.go new file mode 100644 index 0000000000..93de10a8cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_shape_config.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeShapeConfig The shape configuration of the nodes. +type NodeShapeConfig struct { + + // The total number of OCPUs available to each node in the node pool. + // See here (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to each node, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` +} + +func (m NodeShapeConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodeShapeConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_details.go new file mode 100644 index 0000000000..cda816265e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_details.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NodeSourceDetails The details of the node's source. +type NodeSourceDetails interface { +} + +type nodesourcedetails struct { + JsonData []byte + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *nodesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalernodesourcedetails nodesourcedetails + s := struct { + Model Unmarshalernodesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *nodesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "IMAGE": + mm := NodeSourceViaImageDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for NodeSourceDetails: %s.", m.SourceType) + return *m, nil + } +} + +func (m nodesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m nodesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_option.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_option.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_option.go index a74acc030e..09617ec9ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_option.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -13,7 +13,9 @@ package containerengine import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NodeSourceOption The source option for the node. @@ -60,6 +62,7 @@ func (m *nodesourceoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: + common.Logf("Recieved unsupported enum value for NodeSourceOption: %s.", m.SourceType) return *m, nil } } @@ -72,3 +75,15 @@ func (m nodesourceoption) GetSourceName() *string { func (m nodesourceoption) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m nodesourceoption) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_type.go new file mode 100644 index 0000000000..d61d3289ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_type.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// NodeSourceTypeEnum Enum with underlying type: string +type NodeSourceTypeEnum string + +// Set of constants representing the allowable values for NodeSourceTypeEnum +const ( + NodeSourceTypeImage NodeSourceTypeEnum = "IMAGE" +) + +var mappingNodeSourceTypeEnum = map[string]NodeSourceTypeEnum{ + "IMAGE": NodeSourceTypeImage, +} + +var mappingNodeSourceTypeEnumLowerCase = map[string]NodeSourceTypeEnum{ + "image": NodeSourceTypeImage, +} + +// GetNodeSourceTypeEnumValues Enumerates the set of values for NodeSourceTypeEnum +func GetNodeSourceTypeEnumValues() []NodeSourceTypeEnum { + values := make([]NodeSourceTypeEnum, 0) + for _, v := range mappingNodeSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetNodeSourceTypeEnumStringValues Enumerates the set of values in String for NodeSourceTypeEnum +func GetNodeSourceTypeEnumStringValues() []string { + return []string{ + "IMAGE", + } +} + +// GetMappingNodeSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNodeSourceTypeEnum(val string) (NodeSourceTypeEnum, bool) { + enum, ok := mappingNodeSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_via_image_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_details.go index 7d87b5e20e..5fb74c92b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_via_image_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -13,7 +13,9 @@ package containerengine import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NodeSourceViaImageDetails Details of the image running on the node. @@ -30,6 +32,18 @@ func (m NodeSourceViaImageDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodeSourceViaImageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m NodeSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { type MarshalTypeNodeSourceViaImageDetails NodeSourceViaImageDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_via_image_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_option.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_via_image_option.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_option.go index 19200de383..c2583d6abb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/node_source_via_image_option.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/node_source_via_image_option.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -13,7 +13,9 @@ package containerengine import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NodeSourceViaImageOption An image can be specified as the source of nodes when launching a node pool using the `nodeSourceDetails` object. @@ -35,6 +37,18 @@ func (m NodeSourceViaImageOption) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NodeSourceViaImageOption) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m NodeSourceViaImageOption) MarshalJSON() (buff []byte, e error) { type MarshalTypeNodeSourceViaImageOption NodeSourceViaImageOption diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_cluster_pod_network_option_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_cluster_pod_network_option_details.go new file mode 100644 index 0000000000..f8d6b9666b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_cluster_pod_network_option_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciVcnIpNativeClusterPodNetworkOptionDetails Network options specific to using the OCI VCN Native CNI +type OciVcnIpNativeClusterPodNetworkOptionDetails struct { +} + +func (m OciVcnIpNativeClusterPodNetworkOptionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OciVcnIpNativeClusterPodNetworkOptionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m OciVcnIpNativeClusterPodNetworkOptionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeOciVcnIpNativeClusterPodNetworkOptionDetails OciVcnIpNativeClusterPodNetworkOptionDetails + s := struct { + DiscriminatorParam string `json:"cniType"` + MarshalTypeOciVcnIpNativeClusterPodNetworkOptionDetails + }{ + "OCI_VCN_IP_NATIVE", + (MarshalTypeOciVcnIpNativeClusterPodNetworkOptionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_node_pool_pod_network_option_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_node_pool_pod_network_option_details.go new file mode 100644 index 0000000000..fb81d9d128 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/oci_vcn_ip_native_node_pool_pod_network_option_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciVcnIpNativeNodePoolPodNetworkOptionDetails Network options specific to using the OCI VCN Native CNI +type OciVcnIpNativeNodePoolPodNetworkOptionDetails struct { + + // The OCIDs of the subnets in which to place pods for this node pool. This can be one of the node pool subnet IDs + PodSubnetIds []string `mandatory:"true" json:"podSubnetIds"` + + // The max number of pods per node in the node pool. This value will be limited by the number of VNICs attachable to the node pool shape + MaxPodsPerNode *int `mandatory:"false" json:"maxPodsPerNode"` + + // The OCIDs of the Network Security Group(s) to associate pods for this node pool with. For more information about NSGs, see NetworkSecurityGroup. + PodNsgIds []string `mandatory:"false" json:"podNsgIds"` +} + +func (m OciVcnIpNativeNodePoolPodNetworkOptionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OciVcnIpNativeNodePoolPodNetworkOptionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m OciVcnIpNativeNodePoolPodNetworkOptionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeOciVcnIpNativeNodePoolPodNetworkOptionDetails OciVcnIpNativeNodePoolPodNetworkOptionDetails + s := struct { + DiscriminatorParam string `json:"cniType"` + MarshalTypeOciVcnIpNativeNodePoolPodNetworkOptionDetails + }{ + "OCI_VCN_IP_NATIVE", + (MarshalTypeOciVcnIpNativeNodePoolPodNetworkOptionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/persistent_volume_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/persistent_volume_config_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/persistent_volume_config_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/persistent_volume_config_details.go index 1cc881833e..22c40ffb43 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/persistent_volume_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/persistent_volume_config_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // PersistentVolumeConfigDetails Configuration to be applied to block volumes created by Kubernetes Persistent Volume Claims (PVC) @@ -32,3 +34,15 @@ type PersistentVolumeConfigDetails struct { func (m PersistentVolumeConfigDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PersistentVolumeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/placement_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/placement_configuration.go new file mode 100644 index 0000000000..5b70ca9fae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/placement_configuration.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PlacementConfiguration The information of virtual node placement in the virtual node pool. +type PlacementConfiguration struct { + + // The availability domain in which to place virtual nodes. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The fault domain of this virtual node. + FaultDomain []string `mandatory:"false" json:"faultDomain"` + + // The OCID of the subnet in which to place virtual nodes. + SubnetId *string `mandatory:"false" json:"subnetId"` +} + +func (m PlacementConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PlacementConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_configuration.go new file mode 100644 index 0000000000..49d51f956b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_configuration.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PodConfiguration The pod configuration for pods run on virtual nodes of this virtual node pool. +type PodConfiguration struct { + + // The regional subnet where pods' VNIC will be placed. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // List of network security group IDs applied to the Pod VNIC. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Shape of the pods. + Shape *string `mandatory:"false" json:"shape"` +} + +func (m PodConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PodConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape.go new file mode 100644 index 0000000000..9022ef48f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PodShape Pod shape. +type PodShape struct { + + // The name of the identifying shape. + Name *string `mandatory:"true" json:"name"` + + // A short description of the VM's processor (CPU). + ProcessorDescription *string `mandatory:"false" json:"processorDescription"` + + // Options for OCPU shape. + OcpuOptions []ShapeOcpuOptions `mandatory:"false" json:"ocpuOptions"` + + // ShapeMemoryOptions. + MemoryOptions []ShapeMemoryOptions `mandatory:"false" json:"memoryOptions"` + + // ShapeNetworkBandwidthOptions. + NetworkBandwidthOptions []ShapeNetworkBandwidthOptions `mandatory:"false" json:"networkBandwidthOptions"` +} + +func (m PodShape) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PodShape) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape_summary.go new file mode 100644 index 0000000000..12a75d35b0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/pod_shape_summary.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PodShapeSummary Pod shape. +type PodShapeSummary struct { + + // The name of the identifying shape. + Name *string `mandatory:"true" json:"name"` + + // A short description of the VM's processor (CPU). + ProcessorDescription *string `mandatory:"false" json:"processorDescription"` + + // Options for OCPU shape. + OcpuOptions []ShapeOcpuOptions `mandatory:"false" json:"ocpuOptions"` + + // ShapeMemoryOptions. + MemoryOptions []ShapeMemoryOptions `mandatory:"false" json:"memoryOptions"` + + // ShapeNetworkBandwidthOptions. + NetworkBandwidthOptions []ShapeNetworkBandwidthOptions `mandatory:"false" json:"networkBandwidthOptions"` +} + +func (m PodShapeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PodShapeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/service_lb_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/service_lb_config_details.go new file mode 100644 index 0000000000..3a4c436531 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/service_lb_config_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ServiceLbConfigDetails Configuration to be applied to load balancers created by Kubernetes services +type ServiceLbConfigDetails struct { + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m ServiceLbConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ServiceLbConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_memory_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_memory_options.go new file mode 100644 index 0000000000..4d73c78dc4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_memory_options.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeMemoryOptions Memory properties. +type ShapeMemoryOptions struct { + + // The minimum amount of memory, in gigabytes. + MinInGBs *float32 `mandatory:"false" json:"minInGBs"` + + // The maximum amount of memory, in gigabytes. + MaxInGBs *float32 `mandatory:"false" json:"maxInGBs"` + + // The default amount of memory per OCPU available for this shape, in gigabytes. + DefaultPerOcpuInGBs *float32 `mandatory:"false" json:"defaultPerOcpuInGBs"` + + // The minimum amount of memory per OCPU available for this shape, in gigabytes. + MinPerOcpuInGBs *float32 `mandatory:"false" json:"minPerOcpuInGBs"` + + // The maximum amount of memory per OCPU available for this shape, in gigabytes. + MaxPerOcpuInGBs *float32 `mandatory:"false" json:"maxPerOcpuInGBs"` +} + +func (m ShapeMemoryOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeMemoryOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_network_bandwidth_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_network_bandwidth_options.go new file mode 100644 index 0000000000..809167eaa4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_network_bandwidth_options.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeNetworkBandwidthOptions Properties of network bandwidth. +type ShapeNetworkBandwidthOptions struct { + + // The minimum amount of networking bandwidth, in gigabits per second. + MinInGbps *float32 `mandatory:"false" json:"minInGbps"` + + // The maximum amount of networking bandwidth, in gigabits per second. + MaxInGbps *float32 `mandatory:"false" json:"maxInGbps"` + + // The default amount of networking bandwidth per OCPU, in gigabits per second. + DefaultPerOcpuInGbps *float32 `mandatory:"false" json:"defaultPerOcpuInGbps"` +} + +func (m ShapeNetworkBandwidthOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeNetworkBandwidthOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_ocpu_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_ocpu_options.go new file mode 100644 index 0000000000..0be96ed9b9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/shape_ocpu_options.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeOcpuOptions Properties of OCPUs. +type ShapeOcpuOptions struct { + + // The minimum number of OCPUs. + Min *float32 `mandatory:"false" json:"min"` + + // The maximum number of OCPUs. + Max *float32 `mandatory:"false" json:"max"` +} + +func (m ShapeOcpuOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeOcpuOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/sort_order.go new file mode 100644 index 0000000000..cf7e117e1e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/sort_order.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// SortOrderEnum Enum with underlying type: string +type SortOrderEnum string + +// Set of constants representing the allowable values for SortOrderEnum +const ( + SortOrderAsc SortOrderEnum = "ASC" + SortOrderDesc SortOrderEnum = "DESC" +) + +var mappingSortOrderEnum = map[string]SortOrderEnum{ + "ASC": SortOrderAsc, + "DESC": SortOrderDesc, +} + +var mappingSortOrderEnumLowerCase = map[string]SortOrderEnum{ + "asc": SortOrderAsc, + "desc": SortOrderDesc, +} + +// GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum +func GetSortOrderEnumValues() []SortOrderEnum { + values := make([]SortOrderEnum, 0) + for _, v := range mappingSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum +func GetSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool) { + enum, ok := mappingSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/taint.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/taint.go new file mode 100644 index 0000000000..c4317fe48f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/taint.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Taint taints +type Taint struct { + + // The key of the pair. + Key *string `mandatory:"false" json:"key"` + + // The value of the pair. + Value *string `mandatory:"false" json:"value"` + + // The effect of the pair. + Effect *string `mandatory:"false" json:"effect"` +} + +func (m Taint) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Taint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_details.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_details.go index 80c072074b..4d127b4d0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateClusterDetails The properties that define a request to update a cluster. @@ -45,3 +47,15 @@ type UpdateClusterDetails struct { func (m UpdateClusterDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_details.go new file mode 100644 index 0000000000..0816aa7dc6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateClusterEndpointConfigDetails The properties that define a request to update a cluster endpoint config. +type UpdateClusterEndpointConfigDetails struct { + + // A list of the OCIDs of the network security groups (NSGs) to apply to the cluster endpoint. For more information about NSGs, see NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Whether the cluster should be assigned a public IP address. Defaults to false. If set to true on a private subnet, the cluster update will fail. + IsPublicIpEnabled *bool `mandatory:"false" json:"isPublicIpEnabled"` +} + +func (m UpdateClusterEndpointConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClusterEndpointConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_request_response.go index 28fd10f9d9..18a905b84f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_endpoint_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_endpoint_config_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateClusterEndpointConfigRequest wrapper for the UpdateClusterEndpointConfig operation @@ -39,6 +41,10 @@ func (request UpdateClusterEndpointConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateClusterEndpointConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateClusterEndpointConfigRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateClusterEndpointConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateClusterEndpointConfigResponse wrapper for the UpdateClusterEndpointConfig operation type UpdateClusterEndpointConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_options_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_options_details.go new file mode 100644 index 0000000000..a6a02f8796 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_options_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateClusterOptionsDetails The properties that define extra options updating a cluster. +type UpdateClusterOptionsDetails struct { + + // Configurable cluster admission controllers + AdmissionControllerOptions *AdmissionControllerOptions `mandatory:"false" json:"admissionControllerOptions"` + + PersistentVolumeConfig *PersistentVolumeConfigDetails `mandatory:"false" json:"persistentVolumeConfig"` + + ServiceLbConfig *ServiceLbConfigDetails `mandatory:"false" json:"serviceLbConfig"` +} + +func (m UpdateClusterOptionsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClusterOptionsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go index ec7c7c10a1..881429302a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/containerengine/update_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_cluster_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package containerengine import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateClusterRequest wrapper for the UpdateCluster operation @@ -39,6 +41,10 @@ func (request UpdateClusterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateClusterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateClusterResponse wrapper for the UpdateCluster operation type UpdateClusterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_image_policy_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_image_policy_config_details.go new file mode 100644 index 0000000000..2184e8be33 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_image_policy_config_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateImagePolicyConfigDetails The properties that define a image verification policy. +type UpdateImagePolicyConfigDetails struct { + + // Whether the image verification policy is enabled. Defaults to false. If set to true, the images will be verified against the policy at runtime. + IsPolicyEnabled *bool `mandatory:"false" json:"isPolicyEnabled"` + + // A list of KMS key details. + KeyDetails []KeyDetails `mandatory:"false" json:"keyDetails"` +} + +func (m UpdateImagePolicyConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateImagePolicyConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_details.go new file mode 100644 index 0000000000..e885204908 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_details.go @@ -0,0 +1,162 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNodePoolDetails The properties that define a request to update a node pool. +type UpdateNodePoolDetails struct { + + // The new name for the cluster. Avoid entering confidential information. + Name *string `mandatory:"false" json:"name"` + + // The version of Kubernetes to which the nodes in the node pool should be upgraded. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // A list of key/value pairs to add to nodes after they join the Kubernetes cluster. + InitialNodeLabels []KeyValue `mandatory:"false" json:"initialNodeLabels"` + + // The number of nodes to have in each subnet specified in the subnetIds property. This property is deprecated, + // use nodeConfigDetails instead. If the current value of quantityPerSubnet is greater than 0, you can only + // use quantityPerSubnet to scale the node pool. If the current value of quantityPerSubnet is equal to 0 and + // the current value of size in nodeConfigDetails is greater than 0, before you can use quantityPerSubnet, + // you must first scale the node pool to 0 nodes using nodeConfigDetails. + QuantityPerSubnet *int `mandatory:"false" json:"quantityPerSubnet"` + + // The OCIDs of the subnets in which to place nodes for this node pool. This property is deprecated, + // use nodeConfigDetails instead. Only one of the subnetIds or nodeConfigDetails + // properties can be specified. + SubnetIds []string `mandatory:"false" json:"subnetIds"` + + // The configuration of nodes in the node pool. Only one of the subnetIds or nodeConfigDetails + // properties should be specified. If the current value of quantityPerSubnet is greater than 0, the node + // pool may still be scaled using quantityPerSubnet. Before you can use nodeConfigDetails, + // you must first scale the node pool to 0 nodes using quantityPerSubnet. + NodeConfigDetails *UpdateNodePoolNodeConfigDetails `mandatory:"false" json:"nodeConfigDetails"` + + // A list of key/value pairs to add to each underlying OCI instance in the node pool on launch. + NodeMetadata map[string]string `mandatory:"false" json:"nodeMetadata"` + + // Specify the source to use to launch nodes in the node pool. Currently, image is the only supported source. + NodeSourceDetails NodeSourceDetails `mandatory:"false" json:"nodeSourceDetails"` + + // The SSH public key to add to each node in the node pool on launch. + SshPublicKey *string `mandatory:"false" json:"sshPublicKey"` + + // The name of the node shape of the nodes in the node pool used on launch. + NodeShape *string `mandatory:"false" json:"nodeShape"` + + // Specify the configuration of the shape to launch nodes in the node pool. + NodeShapeConfig *UpdateNodeShapeConfigDetails `mandatory:"false" json:"nodeShapeConfig"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `mandatory:"false" json:"nodeEvictionNodePoolSettings"` +} + +func (m UpdateNodePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNodePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateNodePoolDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Name *string `json:"name"` + KubernetesVersion *string `json:"kubernetesVersion"` + InitialNodeLabels []KeyValue `json:"initialNodeLabels"` + QuantityPerSubnet *int `json:"quantityPerSubnet"` + SubnetIds []string `json:"subnetIds"` + NodeConfigDetails *UpdateNodePoolNodeConfigDetails `json:"nodeConfigDetails"` + NodeMetadata map[string]string `json:"nodeMetadata"` + NodeSourceDetails nodesourcedetails `json:"nodeSourceDetails"` + SshPublicKey *string `json:"sshPublicKey"` + NodeShape *string `json:"nodeShape"` + NodeShapeConfig *UpdateNodeShapeConfigDetails `json:"nodeShapeConfig"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + NodeEvictionNodePoolSettings *NodeEvictionNodePoolSettings `json:"nodeEvictionNodePoolSettings"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Name = model.Name + + m.KubernetesVersion = model.KubernetesVersion + + m.InitialNodeLabels = make([]KeyValue, len(model.InitialNodeLabels)) + for i, n := range model.InitialNodeLabels { + m.InitialNodeLabels[i] = n + } + + m.QuantityPerSubnet = model.QuantityPerSubnet + + m.SubnetIds = make([]string, len(model.SubnetIds)) + for i, n := range model.SubnetIds { + m.SubnetIds[i] = n + } + + m.NodeConfigDetails = model.NodeConfigDetails + + m.NodeMetadata = model.NodeMetadata + + nn, e = model.NodeSourceDetails.UnmarshalPolymorphicJSON(model.NodeSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodeSourceDetails = nn.(NodeSourceDetails) + } else { + m.NodeSourceDetails = nil + } + + m.SshPublicKey = model.SshPublicKey + + m.NodeShape = model.NodeShape + + m.NodeShapeConfig = model.NodeShapeConfig + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.NodeEvictionNodePoolSettings = model.NodeEvictionNodePoolSettings + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_node_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_node_config_details.go new file mode 100644 index 0000000000..08cdf4e017 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_node_config_details.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNodePoolNodeConfigDetails The size and placement configuration of nodes in the node pool. +type UpdateNodePoolNodeConfigDetails struct { + + // The number of nodes in the node pool. + Size *int `mandatory:"false" json:"size"` + + // The OCIDs of the Network Security Group(s) to associate nodes for this node pool with. For more information about NSGs, see NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID of the Key Management Service key assigned to the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. This field applies to both block volumes and boot volumes. The default value is false. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The placement configurations for the node pool. Provide one placement + // configuration for each availability domain in which you intend to launch a node. + // To use the node pool with a regional subnet, provide a placement configuration for + // each availability domain, and include the regional subnet in each placement + // configuration. + PlacementConfigs []NodePoolPlacementConfigDetails `mandatory:"false" json:"placementConfigs"` + + // The CNI related configuration of pods in the node pool. + NodePoolPodNetworkOptionDetails NodePoolPodNetworkOptionDetails `mandatory:"false" json:"nodePoolPodNetworkOptionDetails"` +} + +func (m UpdateNodePoolNodeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNodePoolNodeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateNodePoolNodeConfigDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Size *int `json:"size"` + NsgIds []string `json:"nsgIds"` + KmsKeyId *string `json:"kmsKeyId"` + IsPvEncryptionInTransitEnabled *bool `json:"isPvEncryptionInTransitEnabled"` + FreeformTags map[string]string `json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + PlacementConfigs []NodePoolPlacementConfigDetails `json:"placementConfigs"` + NodePoolPodNetworkOptionDetails nodepoolpodnetworkoptiondetails `json:"nodePoolPodNetworkOptionDetails"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Size = model.Size + + m.NsgIds = make([]string, len(model.NsgIds)) + for i, n := range model.NsgIds { + m.NsgIds[i] = n + } + + m.KmsKeyId = model.KmsKeyId + + m.IsPvEncryptionInTransitEnabled = model.IsPvEncryptionInTransitEnabled + + m.FreeformTags = model.FreeformTags + + m.DefinedTags = model.DefinedTags + + m.PlacementConfigs = make([]NodePoolPlacementConfigDetails, len(model.PlacementConfigs)) + for i, n := range model.PlacementConfigs { + m.PlacementConfigs[i] = n + } + + nn, e = model.NodePoolPodNetworkOptionDetails.UnmarshalPolymorphicJSON(model.NodePoolPodNetworkOptionDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NodePoolPodNetworkOptionDetails = nn.(NodePoolPodNetworkOptionDetails) + } else { + m.NodePoolPodNetworkOptionDetails = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_request_response.go new file mode 100644 index 0000000000..6eb9904397 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_pool_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateNodePoolRequest wrapper for the UpdateNodePool operation +type UpdateNodePoolRequest struct { + + // The OCID of the node pool. + NodePoolId *string `mandatory:"true" contributesTo:"path" name:"nodePoolId"` + + // The fields to update in a node pool. + UpdateNodePoolDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Duration after which OKE will give up eviction of the pods on the node. + // PT0M will indicate you want to delete the node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M + OverrideEvictionGraceDuration *string `mandatory:"false" contributesTo:"query" name:"overrideEvictionGraceDuration"` + + // If the underlying compute instance should be deleted if you cannot evict all the pods in grace period + IsForceDeletionAfterOverrideGraceDuration *bool `mandatory:"false" contributesTo:"query" name:"isForceDeletionAfterOverrideGraceDuration"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateNodePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateNodePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateNodePoolResponse wrapper for the UpdateNodePool operation +type UpdateNodePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateNodePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateNodePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_shape_config_details.go new file mode 100644 index 0000000000..b5296ba1f2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_node_shape_config_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNodeShapeConfigDetails The shape configuration of the nodes. +type UpdateNodeShapeConfigDetails struct { + + // The total number of OCPUs available to each node in the node pool. + // See here (https://docs.cloud.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Shape/) for details. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to each node, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` +} + +func (m UpdateNodeShapeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNodeShapeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_details.go new file mode 100644 index 0000000000..fd29b5afd0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVirtualNodeDetails The properties that define a request to update a virtual node. +type UpdateVirtualNodeDetails struct { + + // The state of the Virtual Node. + LifecycleState VirtualNodeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m UpdateVirtualNodeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVirtualNodeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVirtualNodeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVirtualNodeLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_details.go new file mode 100644 index 0000000000..7febd87bfa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_details.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVirtualNodePoolDetails The properties that define a request to update a virtual node pool. +type UpdateVirtualNodePoolDetails struct { + + // Display name of the virtual node pool. This is a non-unique value. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The version of Kubernetes running on the nodes in the node pool. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // Initial labels that will be added to the Kubernetes Virtual Node object when it registers. + InitialVirtualNodeLabels []InitialVirtualNodeLabel `mandatory:"false" json:"initialVirtualNodeLabels"` + + // A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. + Taints []Taint `mandatory:"false" json:"taints"` + + // The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. + Size *int `mandatory:"false" json:"size"` + + // The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations + PlacementConfigurations []PlacementConfiguration `mandatory:"false" json:"placementConfigurations"` + + // List of network security group id's applied to the Virtual Node VNIC. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The pod configuration for pods run on virtual nodes of this virtual node pool. + PodConfiguration *PodConfiguration `mandatory:"false" json:"podConfiguration"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateVirtualNodePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVirtualNodePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_request_response.go new file mode 100644 index 0000000000..594433e2c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_pool_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateVirtualNodePoolRequest wrapper for the UpdateVirtualNodePool operation +type UpdateVirtualNodePoolRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // The fields to update in a virtual node pool. + UpdateVirtualNodePoolDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateVirtualNodePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateVirtualNodePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateVirtualNodePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateVirtualNodePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVirtualNodePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVirtualNodePoolResponse wrapper for the UpdateVirtualNodePool operation +type UpdateVirtualNodePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateVirtualNodePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateVirtualNodePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_request_response.go new file mode 100644 index 0000000000..11a428d8fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/update_virtual_node_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateVirtualNodeRequest wrapper for the UpdateVirtualNode operation +type UpdateVirtualNodeRequest struct { + + // The OCID of the virtual node pool. + VirtualNodePoolId *string `mandatory:"true" contributesTo:"path" name:"virtualNodePoolId"` + + // The OCID of the virtual node. + VirtualNodeId *string `mandatory:"true" contributesTo:"path" name:"virtualNodeId"` + + // The fields to update in a virtual node. + UpdateVirtualNodeDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token you supply to uniquely identify the request and provide idempotency if + // the request is retried. Idempotency tokens expire after 24 hours. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateVirtualNodeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateVirtualNodeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateVirtualNodeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateVirtualNodeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVirtualNodeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVirtualNodeResponse wrapper for the UpdateVirtualNode operation +type UpdateVirtualNodeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID of the work request handling the operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateVirtualNodeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateVirtualNodeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node.go new file mode 100644 index 0000000000..f6b3972d14 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualNode The properties that define a virtual node. +type VirtualNode struct { + + // The ocid of the virtual node. + Id *string `mandatory:"true" json:"id"` + + // The name of the virtual node. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The ocid of the virtual node pool this virtual node belongs to. + VirtualNodePoolId *string `mandatory:"true" json:"virtualNodePoolId"` + + // The version of Kubernetes this virtual node is running. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // The name of the availability domain in which this virtual node is placed + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The fault domain of this virtual node. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The OCID of the subnet in which this Virtual Node is placed. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // NSG Ids applied to virtual node vnic. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The private IP address of this Virtual Node. + PrivateIp *string `mandatory:"false" json:"privateIp"` + + // An error that may be associated with the virtual node. + VirtualNodeError *string `mandatory:"false" json:"virtualNodeError"` + + // The state of the Virtual Node. + LifecycleState VirtualNodeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the Virtual Node. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time at which the virtual node was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m VirtualNode) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualNode) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVirtualNodeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVirtualNodeLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_lifecycle_state.go new file mode 100644 index 0000000000..50e09f1138 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_lifecycle_state.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// VirtualNodeLifecycleStateEnum Enum with underlying type: string +type VirtualNodeLifecycleStateEnum string + +// Set of constants representing the allowable values for VirtualNodeLifecycleStateEnum +const ( + VirtualNodeLifecycleStateCreating VirtualNodeLifecycleStateEnum = "CREATING" + VirtualNodeLifecycleStateActive VirtualNodeLifecycleStateEnum = "ACTIVE" + VirtualNodeLifecycleStateUpdating VirtualNodeLifecycleStateEnum = "UPDATING" + VirtualNodeLifecycleStateDeleting VirtualNodeLifecycleStateEnum = "DELETING" + VirtualNodeLifecycleStateDeleted VirtualNodeLifecycleStateEnum = "DELETED" + VirtualNodeLifecycleStateFailed VirtualNodeLifecycleStateEnum = "FAILED" + VirtualNodeLifecycleStateNeedsAttention VirtualNodeLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingVirtualNodeLifecycleStateEnum = map[string]VirtualNodeLifecycleStateEnum{ + "CREATING": VirtualNodeLifecycleStateCreating, + "ACTIVE": VirtualNodeLifecycleStateActive, + "UPDATING": VirtualNodeLifecycleStateUpdating, + "DELETING": VirtualNodeLifecycleStateDeleting, + "DELETED": VirtualNodeLifecycleStateDeleted, + "FAILED": VirtualNodeLifecycleStateFailed, + "NEEDS_ATTENTION": VirtualNodeLifecycleStateNeedsAttention, +} + +var mappingVirtualNodeLifecycleStateEnumLowerCase = map[string]VirtualNodeLifecycleStateEnum{ + "creating": VirtualNodeLifecycleStateCreating, + "active": VirtualNodeLifecycleStateActive, + "updating": VirtualNodeLifecycleStateUpdating, + "deleting": VirtualNodeLifecycleStateDeleting, + "deleted": VirtualNodeLifecycleStateDeleted, + "failed": VirtualNodeLifecycleStateFailed, + "needs_attention": VirtualNodeLifecycleStateNeedsAttention, +} + +// GetVirtualNodeLifecycleStateEnumValues Enumerates the set of values for VirtualNodeLifecycleStateEnum +func GetVirtualNodeLifecycleStateEnumValues() []VirtualNodeLifecycleStateEnum { + values := make([]VirtualNodeLifecycleStateEnum, 0) + for _, v := range mappingVirtualNodeLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualNodeLifecycleStateEnumStringValues Enumerates the set of values in String for VirtualNodeLifecycleStateEnum +func GetVirtualNodeLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + "NEEDS_ATTENTION", + } +} + +// GetMappingVirtualNodeLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualNodeLifecycleStateEnum(val string) (VirtualNodeLifecycleStateEnum, bool) { + enum, ok := mappingVirtualNodeLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool.go new file mode 100644 index 0000000000..b86dae7f93 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualNodePool A pool of virtual nodes attached to a cluster. +type VirtualNodePool struct { + + // The OCID of the virtual node pool. + Id *string `mandatory:"true" json:"id"` + + // Compartment of the virtual node pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. + ClusterId *string `mandatory:"true" json:"clusterId"` + + // Display name of the virtual node pool. This is a non-unique value. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The version of Kubernetes running on the nodes in the node pool. + KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` + + // The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations + PlacementConfigurations []PlacementConfiguration `mandatory:"true" json:"placementConfigurations"` + + // Initial labels that will be added to the Kubernetes Virtual Node object when it registers. This is the same as virtualNodePool resources. + InitialVirtualNodeLabels []InitialVirtualNodeLabel `mandatory:"false" json:"initialVirtualNodeLabels"` + + // A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. + Taints []Taint `mandatory:"false" json:"taints"` + + // The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. + Size *int `mandatory:"false" json:"size"` + + // List of network security group id's applied to the Virtual Node VNIC. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The pod configuration for pods run on virtual nodes of this virtual node pool. + PodConfiguration *PodConfiguration `mandatory:"false" json:"podConfiguration"` + + // The state of the Virtual Node Pool. + LifecycleState VirtualNodePoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the Virtual Node Pool. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time the virtual node pool was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the virtual node pool was updated. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m VirtualNodePool) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualNodePool) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVirtualNodePoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVirtualNodePoolLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_lifecycle_state.go new file mode 100644 index 0000000000..8437d6171f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_lifecycle_state.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// VirtualNodePoolLifecycleStateEnum Enum with underlying type: string +type VirtualNodePoolLifecycleStateEnum string + +// Set of constants representing the allowable values for VirtualNodePoolLifecycleStateEnum +const ( + VirtualNodePoolLifecycleStateCreating VirtualNodePoolLifecycleStateEnum = "CREATING" + VirtualNodePoolLifecycleStateActive VirtualNodePoolLifecycleStateEnum = "ACTIVE" + VirtualNodePoolLifecycleStateUpdating VirtualNodePoolLifecycleStateEnum = "UPDATING" + VirtualNodePoolLifecycleStateDeleting VirtualNodePoolLifecycleStateEnum = "DELETING" + VirtualNodePoolLifecycleStateDeleted VirtualNodePoolLifecycleStateEnum = "DELETED" + VirtualNodePoolLifecycleStateFailed VirtualNodePoolLifecycleStateEnum = "FAILED" + VirtualNodePoolLifecycleStateNeedsAttention VirtualNodePoolLifecycleStateEnum = "NEEDS_ATTENTION" +) + +var mappingVirtualNodePoolLifecycleStateEnum = map[string]VirtualNodePoolLifecycleStateEnum{ + "CREATING": VirtualNodePoolLifecycleStateCreating, + "ACTIVE": VirtualNodePoolLifecycleStateActive, + "UPDATING": VirtualNodePoolLifecycleStateUpdating, + "DELETING": VirtualNodePoolLifecycleStateDeleting, + "DELETED": VirtualNodePoolLifecycleStateDeleted, + "FAILED": VirtualNodePoolLifecycleStateFailed, + "NEEDS_ATTENTION": VirtualNodePoolLifecycleStateNeedsAttention, +} + +var mappingVirtualNodePoolLifecycleStateEnumLowerCase = map[string]VirtualNodePoolLifecycleStateEnum{ + "creating": VirtualNodePoolLifecycleStateCreating, + "active": VirtualNodePoolLifecycleStateActive, + "updating": VirtualNodePoolLifecycleStateUpdating, + "deleting": VirtualNodePoolLifecycleStateDeleting, + "deleted": VirtualNodePoolLifecycleStateDeleted, + "failed": VirtualNodePoolLifecycleStateFailed, + "needs_attention": VirtualNodePoolLifecycleStateNeedsAttention, +} + +// GetVirtualNodePoolLifecycleStateEnumValues Enumerates the set of values for VirtualNodePoolLifecycleStateEnum +func GetVirtualNodePoolLifecycleStateEnumValues() []VirtualNodePoolLifecycleStateEnum { + values := make([]VirtualNodePoolLifecycleStateEnum, 0) + for _, v := range mappingVirtualNodePoolLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualNodePoolLifecycleStateEnumStringValues Enumerates the set of values in String for VirtualNodePoolLifecycleStateEnum +func GetVirtualNodePoolLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + "NEEDS_ATTENTION", + } +} + +// GetMappingVirtualNodePoolLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualNodePoolLifecycleStateEnum(val string) (VirtualNodePoolLifecycleStateEnum, bool) { + enum, ok := mappingVirtualNodePoolLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_summary.go new file mode 100644 index 0000000000..8eda398ce4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_pool_summary.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualNodePoolSummary The properties that define a virtual node pool summary. +type VirtualNodePoolSummary struct { + + // The OCID of the virtual node pool. + Id *string `mandatory:"true" json:"id"` + + // Compartment of the virtual node pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. + ClusterId *string `mandatory:"true" json:"clusterId"` + + // Display name of the virtual node pool. This is a non-unique value. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The version of Kubernetes running on the nodes in the node pool. + KubernetesVersion *string `mandatory:"true" json:"kubernetesVersion"` + + // The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations + PlacementConfigurations []PlacementConfiguration `mandatory:"true" json:"placementConfigurations"` + + // Initial labels that will be added to the Kubernetes Virtual Node object when it registers. This is the same as virtualNodePool resources. + InitialVirtualNodeLabels []InitialVirtualNodeLabel `mandatory:"false" json:"initialVirtualNodeLabels"` + + // A taint is a collection of . These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. + Taints []Taint `mandatory:"false" json:"taints"` + + // The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. + Size *int `mandatory:"false" json:"size"` + + // List of network security group id's applied to the Virtual Node VNIC. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The pod configuration for pods run on virtual nodes of this virtual node pool. + PodConfiguration *PodConfiguration `mandatory:"false" json:"podConfiguration"` + + // The state of the Virtual Node Pool. + LifecycleState VirtualNodePoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the Virtual Node Pool. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time the virtual node pool was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The time the virtual node pool was updated. + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m VirtualNodePoolSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualNodePoolSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVirtualNodePoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVirtualNodePoolLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_summary.go new file mode 100644 index 0000000000..8583993bb3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/virtual_node_summary.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualNodeSummary The properties that define a virtual node summary. +type VirtualNodeSummary struct { + + // The ocid of the virtual node. + Id *string `mandatory:"true" json:"id"` + + // The name of the virtual node. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The ocid of the virtual node pool this virtual node belongs to. + VirtualNodePoolId *string `mandatory:"true" json:"virtualNodePoolId"` + + // The version of Kubernetes this virtual node is running. + KubernetesVersion *string `mandatory:"false" json:"kubernetesVersion"` + + // The name of the availability domain in which this virtual node is placed + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The fault domain of this virtual node. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The OCID of the subnet in which this Virtual Node is placed. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // NSG Ids applied to virtual node vnic. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The private IP address of this Virtual Node. + PrivateIp *string `mandatory:"false" json:"privateIp"` + + // An error that may be associated with the virtual node. + VirtualNodeError *string `mandatory:"false" json:"virtualNodeError"` + + // The state of the Virtual Node. + LifecycleState VirtualNodeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Details about the state of the Virtual Node. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The time at which the virtual node was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` +} + +func (m VirtualNodeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualNodeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVirtualNodeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVirtualNodeLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request.go new file mode 100644 index 0000000000..6bdd3a61dd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequest An asynchronous work request. +type WorkRequest struct { + + // The OCID of the work request. + Id *string `mandatory:"false" json:"id"` + + // The type of work the work request is doing. + OperationType WorkRequestOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` + + // The current status of the work request. + Status WorkRequestStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The OCID of the compartment in which the work request exists. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // The time the work request was accepted. + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // The time the work request was started. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The time the work request was finished. + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingWorkRequestOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetWorkRequestOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingWorkRequestStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetWorkRequestStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_error.go new file mode 100644 index 0000000000..599b9cba0f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_error.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestError Errors related to a specific work request. +type WorkRequestError struct { + + // A short error code that defines the error, meant for programmatic parsing. See API Errors (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm). + Code *string `mandatory:"true" json:"code"` + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // The date and time the error occurred. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m WorkRequestError) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestError) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_log_entry.go new file mode 100644 index 0000000000..dd7a160de3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_log_entry.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntry Log entries related to a specific work request. +type WorkRequestLogEntry struct { + + // The description of an action that occurred. + Message *string `mandatory:"false" json:"message"` + + // The date and time the log entry occurred. + Timestamp *string `mandatory:"false" json:"timestamp"` +} + +func (m WorkRequestLogEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_operation_type.go new file mode 100644 index 0000000000..81bda91785 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_operation_type.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// WorkRequestOperationTypeEnum Enum with underlying type: string +type WorkRequestOperationTypeEnum string + +// Set of constants representing the allowable values for WorkRequestOperationTypeEnum +const ( + WorkRequestOperationTypeClusterCreate WorkRequestOperationTypeEnum = "CLUSTER_CREATE" + WorkRequestOperationTypeClusterUpdate WorkRequestOperationTypeEnum = "CLUSTER_UPDATE" + WorkRequestOperationTypeClusterDelete WorkRequestOperationTypeEnum = "CLUSTER_DELETE" + WorkRequestOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" + WorkRequestOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" + WorkRequestOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" + WorkRequestOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" + WorkRequestOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" + WorkRequestOperationTypeVirtualnodepoolCreate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_CREATE" + WorkRequestOperationTypeVirtualnodepoolUpdate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_UPDATE" + WorkRequestOperationTypeVirtualnodepoolDelete WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_DELETE" +) + +var mappingWorkRequestOperationTypeEnum = map[string]WorkRequestOperationTypeEnum{ + "CLUSTER_CREATE": WorkRequestOperationTypeClusterCreate, + "CLUSTER_UPDATE": WorkRequestOperationTypeClusterUpdate, + "CLUSTER_DELETE": WorkRequestOperationTypeClusterDelete, + "NODEPOOL_CREATE": WorkRequestOperationTypeNodepoolCreate, + "NODEPOOL_UPDATE": WorkRequestOperationTypeNodepoolUpdate, + "NODEPOOL_DELETE": WorkRequestOperationTypeNodepoolDelete, + "NODEPOOL_RECONCILE": WorkRequestOperationTypeNodepoolReconcile, + "WORKREQUEST_CANCEL": WorkRequestOperationTypeWorkrequestCancel, + "VIRTUALNODEPOOL_CREATE": WorkRequestOperationTypeVirtualnodepoolCreate, + "VIRTUALNODEPOOL_UPDATE": WorkRequestOperationTypeVirtualnodepoolUpdate, + "VIRTUALNODEPOOL_DELETE": WorkRequestOperationTypeVirtualnodepoolDelete, +} + +var mappingWorkRequestOperationTypeEnumLowerCase = map[string]WorkRequestOperationTypeEnum{ + "cluster_create": WorkRequestOperationTypeClusterCreate, + "cluster_update": WorkRequestOperationTypeClusterUpdate, + "cluster_delete": WorkRequestOperationTypeClusterDelete, + "nodepool_create": WorkRequestOperationTypeNodepoolCreate, + "nodepool_update": WorkRequestOperationTypeNodepoolUpdate, + "nodepool_delete": WorkRequestOperationTypeNodepoolDelete, + "nodepool_reconcile": WorkRequestOperationTypeNodepoolReconcile, + "workrequest_cancel": WorkRequestOperationTypeWorkrequestCancel, + "virtualnodepool_create": WorkRequestOperationTypeVirtualnodepoolCreate, + "virtualnodepool_update": WorkRequestOperationTypeVirtualnodepoolUpdate, + "virtualnodepool_delete": WorkRequestOperationTypeVirtualnodepoolDelete, +} + +// GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum +func GetWorkRequestOperationTypeEnumValues() []WorkRequestOperationTypeEnum { + values := make([]WorkRequestOperationTypeEnum, 0) + for _, v := range mappingWorkRequestOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestOperationTypeEnumStringValues Enumerates the set of values in String for WorkRequestOperationTypeEnum +func GetWorkRequestOperationTypeEnumStringValues() []string { + return []string{ + "CLUSTER_CREATE", + "CLUSTER_UPDATE", + "CLUSTER_DELETE", + "NODEPOOL_CREATE", + "NODEPOOL_UPDATE", + "NODEPOOL_DELETE", + "NODEPOOL_RECONCILE", + "WORKREQUEST_CANCEL", + "VIRTUALNODEPOOL_CREATE", + "VIRTUALNODEPOOL_UPDATE", + "VIRTUALNODEPOOL_DELETE", + } +} + +// GetMappingWorkRequestOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestOperationTypeEnum(val string) (WorkRequestOperationTypeEnum, bool) { + enum, ok := mappingWorkRequestOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_resource.go new file mode 100644 index 0000000000..a0d17e9b4f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_resource.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestResource The properties that define a work request resource. +type WorkRequestResource struct { + + // The way in which this resource was affected by the work tracked by the work request. + ActionType WorkRequestResourceActionTypeEnum `mandatory:"false" json:"actionType,omitempty"` + + // The resource type the work request affects. + EntityType *string `mandatory:"false" json:"entityType"` + + // The OCID of the resource the work request affects. + Identifier *string `mandatory:"false" json:"identifier"` + + // The URI path on which the user can issue a GET request to access the resource metadata. + EntityUri *string `mandatory:"false" json:"entityUri"` +} + +func (m WorkRequestResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingWorkRequestResourceActionTypeEnum(string(m.ActionType)); !ok && m.ActionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ActionType: %s. Supported values are: %s.", m.ActionType, strings.Join(GetWorkRequestResourceActionTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestResourceActionTypeEnum Enum with underlying type: string +type WorkRequestResourceActionTypeEnum string + +// Set of constants representing the allowable values for WorkRequestResourceActionTypeEnum +const ( + WorkRequestResourceActionTypeCreated WorkRequestResourceActionTypeEnum = "CREATED" + WorkRequestResourceActionTypeUpdated WorkRequestResourceActionTypeEnum = "UPDATED" + WorkRequestResourceActionTypeDeleted WorkRequestResourceActionTypeEnum = "DELETED" + WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" + WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" + WorkRequestResourceActionTypeFailed WorkRequestResourceActionTypeEnum = "FAILED" + WorkRequestResourceActionTypeCanceledCreate WorkRequestResourceActionTypeEnum = "CANCELED_CREATE" + WorkRequestResourceActionTypeCanceledUpdate WorkRequestResourceActionTypeEnum = "CANCELED_UPDATE" + WorkRequestResourceActionTypeCanceledDelete WorkRequestResourceActionTypeEnum = "CANCELED_DELETE" +) + +var mappingWorkRequestResourceActionTypeEnum = map[string]WorkRequestResourceActionTypeEnum{ + "CREATED": WorkRequestResourceActionTypeCreated, + "UPDATED": WorkRequestResourceActionTypeUpdated, + "DELETED": WorkRequestResourceActionTypeDeleted, + "RELATED": WorkRequestResourceActionTypeRelated, + "IN_PROGRESS": WorkRequestResourceActionTypeInProgress, + "FAILED": WorkRequestResourceActionTypeFailed, + "CANCELED_CREATE": WorkRequestResourceActionTypeCanceledCreate, + "CANCELED_UPDATE": WorkRequestResourceActionTypeCanceledUpdate, + "CANCELED_DELETE": WorkRequestResourceActionTypeCanceledDelete, +} + +var mappingWorkRequestResourceActionTypeEnumLowerCase = map[string]WorkRequestResourceActionTypeEnum{ + "created": WorkRequestResourceActionTypeCreated, + "updated": WorkRequestResourceActionTypeUpdated, + "deleted": WorkRequestResourceActionTypeDeleted, + "related": WorkRequestResourceActionTypeRelated, + "in_progress": WorkRequestResourceActionTypeInProgress, + "failed": WorkRequestResourceActionTypeFailed, + "canceled_create": WorkRequestResourceActionTypeCanceledCreate, + "canceled_update": WorkRequestResourceActionTypeCanceledUpdate, + "canceled_delete": WorkRequestResourceActionTypeCanceledDelete, +} + +// GetWorkRequestResourceActionTypeEnumValues Enumerates the set of values for WorkRequestResourceActionTypeEnum +func GetWorkRequestResourceActionTypeEnumValues() []WorkRequestResourceActionTypeEnum { + values := make([]WorkRequestResourceActionTypeEnum, 0) + for _, v := range mappingWorkRequestResourceActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestResourceActionTypeEnumStringValues Enumerates the set of values in String for WorkRequestResourceActionTypeEnum +func GetWorkRequestResourceActionTypeEnumStringValues() []string { + return []string{ + "CREATED", + "UPDATED", + "DELETED", + "RELATED", + "IN_PROGRESS", + "FAILED", + "CANCELED_CREATE", + "CANCELED_UPDATE", + "CANCELED_DELETE", + } +} + +// GetMappingWorkRequestResourceActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestResourceActionTypeEnum(val string) (WorkRequestResourceActionTypeEnum, bool) { + enum, ok := mappingWorkRequestResourceActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_status.go new file mode 100644 index 0000000000..37198e16ff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_status.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "strings" +) + +// WorkRequestStatusEnum Enum with underlying type: string +type WorkRequestStatusEnum string + +// Set of constants representing the allowable values for WorkRequestStatusEnum +const ( + WorkRequestStatusAccepted WorkRequestStatusEnum = "ACCEPTED" + WorkRequestStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" + WorkRequestStatusFailed WorkRequestStatusEnum = "FAILED" + WorkRequestStatusSucceeded WorkRequestStatusEnum = "SUCCEEDED" + WorkRequestStatusCanceling WorkRequestStatusEnum = "CANCELING" + WorkRequestStatusCanceled WorkRequestStatusEnum = "CANCELED" +) + +var mappingWorkRequestStatusEnum = map[string]WorkRequestStatusEnum{ + "ACCEPTED": WorkRequestStatusAccepted, + "IN_PROGRESS": WorkRequestStatusInProgress, + "FAILED": WorkRequestStatusFailed, + "SUCCEEDED": WorkRequestStatusSucceeded, + "CANCELING": WorkRequestStatusCanceling, + "CANCELED": WorkRequestStatusCanceled, +} + +var mappingWorkRequestStatusEnumLowerCase = map[string]WorkRequestStatusEnum{ + "accepted": WorkRequestStatusAccepted, + "in_progress": WorkRequestStatusInProgress, + "failed": WorkRequestStatusFailed, + "succeeded": WorkRequestStatusSucceeded, + "canceling": WorkRequestStatusCanceling, + "canceled": WorkRequestStatusCanceled, +} + +// GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum +func GetWorkRequestStatusEnumValues() []WorkRequestStatusEnum { + values := make([]WorkRequestStatusEnum, 0) + for _, v := range mappingWorkRequestStatusEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestStatusEnumStringValues Enumerates the set of values in String for WorkRequestStatusEnum +func GetWorkRequestStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingWorkRequestStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestStatusEnum(val string) (WorkRequestStatusEnum, bool) { + enum, ok := mappingWorkRequestStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_summary.go new file mode 100644 index 0000000000..15923da571 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/containerengine/work_request_summary.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Container Engine for Kubernetes API +// +// API for the Container Engine for Kubernetes service. Use this API to build, deploy, +// and manage cloud-native applications. For more information, see +// Overview of Container Engine for Kubernetes (https://docs.cloud.oracle.com/iaas/Content/ContEng/Concepts/contengoverview.htm). +// + +package containerengine + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummary The properties that define a work request summary. +type WorkRequestSummary struct { + + // The OCID of the work request. + Id *string `mandatory:"false" json:"id"` + + // The type of work the work request is doing. + OperationType WorkRequestOperationTypeEnum `mandatory:"false" json:"operationType,omitempty"` + + // The current status of the work request. + Status WorkRequestStatusEnum `mandatory:"false" json:"status,omitempty"` + + // The OCID of the compartment in which the work request exists. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // The time the work request was accepted. + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // The time the work request was started. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The time the work request was finished. + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequestSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingWorkRequestOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetWorkRequestOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingWorkRequestStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetWorkRequestStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestSummaryOperationTypeEnum is an alias to type: WorkRequestOperationTypeEnum +// Consider using WorkRequestOperationTypeEnum instead +// Deprecated +type WorkRequestSummaryOperationTypeEnum = WorkRequestOperationTypeEnum + +// Set of constants representing the allowable values for WorkRequestOperationTypeEnum +// Deprecated +const ( + WorkRequestSummaryOperationTypeClusterCreate WorkRequestOperationTypeEnum = "CLUSTER_CREATE" + WorkRequestSummaryOperationTypeClusterUpdate WorkRequestOperationTypeEnum = "CLUSTER_UPDATE" + WorkRequestSummaryOperationTypeClusterDelete WorkRequestOperationTypeEnum = "CLUSTER_DELETE" + WorkRequestSummaryOperationTypeNodepoolCreate WorkRequestOperationTypeEnum = "NODEPOOL_CREATE" + WorkRequestSummaryOperationTypeNodepoolUpdate WorkRequestOperationTypeEnum = "NODEPOOL_UPDATE" + WorkRequestSummaryOperationTypeNodepoolDelete WorkRequestOperationTypeEnum = "NODEPOOL_DELETE" + WorkRequestSummaryOperationTypeNodepoolReconcile WorkRequestOperationTypeEnum = "NODEPOOL_RECONCILE" + WorkRequestSummaryOperationTypeWorkrequestCancel WorkRequestOperationTypeEnum = "WORKREQUEST_CANCEL" + WorkRequestSummaryOperationTypeVirtualnodepoolCreate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_CREATE" + WorkRequestSummaryOperationTypeVirtualnodepoolUpdate WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_UPDATE" + WorkRequestSummaryOperationTypeVirtualnodepoolDelete WorkRequestOperationTypeEnum = "VIRTUALNODEPOOL_DELETE" +) + +// GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum +// Consider using GetWorkRequestOperationTypeEnumValue +// Deprecated +var GetWorkRequestSummaryOperationTypeEnumValues = GetWorkRequestOperationTypeEnumValues + +// WorkRequestSummaryStatusEnum is an alias to type: WorkRequestStatusEnum +// Consider using WorkRequestStatusEnum instead +// Deprecated +type WorkRequestSummaryStatusEnum = WorkRequestStatusEnum + +// Set of constants representing the allowable values for WorkRequestStatusEnum +// Deprecated +const ( + WorkRequestSummaryStatusAccepted WorkRequestStatusEnum = "ACCEPTED" + WorkRequestSummaryStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" + WorkRequestSummaryStatusFailed WorkRequestStatusEnum = "FAILED" + WorkRequestSummaryStatusSucceeded WorkRequestStatusEnum = "SUCCEEDED" + WorkRequestSummaryStatusCanceling WorkRequestStatusEnum = "CANCELING" + WorkRequestSummaryStatusCanceled WorkRequestStatusEnum = "CANCELED" +) + +// GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum +// Consider using GetWorkRequestStatusEnumValue +// Deprecated +var GetWorkRequestSummaryStatusEnumValues = GetWorkRequestStatusEnumValues diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_details.go new file mode 100644 index 0000000000..06b0a39788 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AcceptLocalPeeringTokenDetails Contains a peering token generated by a peer. By accepting a peering token, you are facilitating a peering handshake. Once both sides accept peering tokens, a peering is established. +type AcceptLocalPeeringTokenDetails struct { + + // An opaque token obtained from a peer. + TokenFromPeer *string `mandatory:"true" json:"tokenFromPeer"` +} + +func (m AcceptLocalPeeringTokenDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AcceptLocalPeeringTokenDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_request_response.go index 6e684563ff..481c62963d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_local_peering_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_local_peering_token_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AcceptLocalPeeringTokenRequest wrapper for the AcceptLocalPeeringToken operation type AcceptLocalPeeringTokenRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. LocalPeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"localPeeringConnectionId"` // Details regarding the token to accept. @@ -34,6 +36,10 @@ func (request AcceptLocalPeeringTokenRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AcceptLocalPeeringTokenRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request AcceptLocalPeeringTokenRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AcceptLocalPeeringTokenRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AcceptLocalPeeringTokenResponse wrapper for the AcceptLocalPeeringToken operation type AcceptLocalPeeringTokenResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_shielded_integrity_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_shielded_integrity_policy_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/accept_shielded_integrity_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/accept_shielded_integrity_policy_request_response.go index 70b04cb50d..63f21f002f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/accept_shielded_integrity_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/accept_shielded_integrity_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AcceptShieldedIntegrityPolicyRequest wrapper for the AcceptShieldedIntegrityPolicy operation @@ -43,6 +45,10 @@ func (request AcceptShieldedIntegrityPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AcceptShieldedIntegrityPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request AcceptShieldedIntegrityPolicyRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AcceptShieldedIntegrityPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AcceptShieldedIntegrityPolicyResponse wrapper for the AcceptShieldedIntegrityPolicy operation type AcceptShieldedIntegrityPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_details.go new file mode 100644 index 0000000000..c7a6b0b770 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddAdditionalRouteRulesDetails The configuration details for the add rules operation. +type AddAdditionalRouteRulesDetails struct { + + // The collection of rules used for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"false" json:"routeRules"` +} + +func (m AddAdditionalRouteRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddAdditionalRouteRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_request_response.go index 329e209e51..6ba2c61db2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_additional_route_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_additional_route_rules_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddAdditionalRouteRulesRequest wrapper for the AddAdditionalRouteRules operation type AddAdditionalRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // Request to add route rules to a given route table. @@ -39,6 +41,10 @@ func (request AddAdditionalRouteRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddAdditionalRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request AddAdditionalRouteRulesRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddAdditionalRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddAdditionalRouteRulesResponse wrapper for the AddAdditionalRouteRules operation type AddAdditionalRouteRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statement_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statement_details.go new file mode 100644 index 0000000000..f0ac032a85 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statement_details.go @@ -0,0 +1,128 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddDrgRouteDistributionStatementDetails Details used to add a route distribution statement. +type AddDrgRouteDistributionStatementDetails struct { + + // The action is applied only if all of the match criteria is met. + MatchCriteria []DrgRouteDistributionMatchCriteria `mandatory:"true" json:"matchCriteria"` + + // Accept: import/export the route "as is" + Action AddDrgRouteDistributionStatementDetailsActionEnum `mandatory:"true" json:"action"` + + // This field is used to specify the priority of each statement in a route distribution. + // The priority will be represented as a number between 0 and 65535 where a lower number + // indicates a higher priority. When a route is processed, statements are applied in the order + // defined by their priority. The first matching rule dictates the action that will be taken + // on the route. + Priority *int `mandatory:"true" json:"priority"` +} + +func (m AddDrgRouteDistributionStatementDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddDrgRouteDistributionStatementDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAddDrgRouteDistributionStatementDetailsActionEnum(string(m.Action)); !ok && m.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetAddDrgRouteDistributionStatementDetailsActionEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *AddDrgRouteDistributionStatementDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + MatchCriteria []drgroutedistributionmatchcriteria `json:"matchCriteria"` + Action AddDrgRouteDistributionStatementDetailsActionEnum `json:"action"` + Priority *int `json:"priority"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.MatchCriteria = make([]DrgRouteDistributionMatchCriteria, len(model.MatchCriteria)) + for i, n := range model.MatchCriteria { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.MatchCriteria[i] = nn.(DrgRouteDistributionMatchCriteria) + } else { + m.MatchCriteria[i] = nil + } + } + + m.Action = model.Action + + m.Priority = model.Priority + + return +} + +// AddDrgRouteDistributionStatementDetailsActionEnum Enum with underlying type: string +type AddDrgRouteDistributionStatementDetailsActionEnum string + +// Set of constants representing the allowable values for AddDrgRouteDistributionStatementDetailsActionEnum +const ( + AddDrgRouteDistributionStatementDetailsActionAccept AddDrgRouteDistributionStatementDetailsActionEnum = "ACCEPT" +) + +var mappingAddDrgRouteDistributionStatementDetailsActionEnum = map[string]AddDrgRouteDistributionStatementDetailsActionEnum{ + "ACCEPT": AddDrgRouteDistributionStatementDetailsActionAccept, +} + +var mappingAddDrgRouteDistributionStatementDetailsActionEnumLowerCase = map[string]AddDrgRouteDistributionStatementDetailsActionEnum{ + "accept": AddDrgRouteDistributionStatementDetailsActionAccept, +} + +// GetAddDrgRouteDistributionStatementDetailsActionEnumValues Enumerates the set of values for AddDrgRouteDistributionStatementDetailsActionEnum +func GetAddDrgRouteDistributionStatementDetailsActionEnumValues() []AddDrgRouteDistributionStatementDetailsActionEnum { + values := make([]AddDrgRouteDistributionStatementDetailsActionEnum, 0) + for _, v := range mappingAddDrgRouteDistributionStatementDetailsActionEnum { + values = append(values, v) + } + return values +} + +// GetAddDrgRouteDistributionStatementDetailsActionEnumStringValues Enumerates the set of values in String for AddDrgRouteDistributionStatementDetailsActionEnum +func GetAddDrgRouteDistributionStatementDetailsActionEnumStringValues() []string { + return []string{ + "ACCEPT", + } +} + +// GetMappingAddDrgRouteDistributionStatementDetailsActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAddDrgRouteDistributionStatementDetailsActionEnum(val string) (AddDrgRouteDistributionStatementDetailsActionEnum, bool) { + enum, ok := mappingAddDrgRouteDistributionStatementDetailsActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_details.go new file mode 100644 index 0000000000..00c0728d29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddDrgRouteDistributionStatementsDetails Details request to add statements to a route distribution. +type AddDrgRouteDistributionStatementsDetails struct { + + // The collection of route distribution statements to insert into the route distribution. + Statements []AddDrgRouteDistributionStatementDetails `mandatory:"true" json:"statements"` +} + +func (m AddDrgRouteDistributionStatementsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddDrgRouteDistributionStatementsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_request_response.go index 57fd6a1552..9907ce9c58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_distribution_statements_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_distribution_statements_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddDrgRouteDistributionStatementsRequest wrapper for the AddDrgRouteDistributionStatements operation @@ -34,6 +36,10 @@ func (request AddDrgRouteDistributionStatementsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddDrgRouteDistributionStatementsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request AddDrgRouteDistributionStatementsRequest) RetryPolicy() *common.Re return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddDrgRouteDistributionStatementsResponse wrapper for the AddDrgRouteDistributionStatements operation type AddDrgRouteDistributionStatementsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rule_details.go new file mode 100644 index 0000000000..8d718a5ae7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rule_details.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddDrgRouteRuleDetails Details needed when adding a DRG route rule. +type AddDrgRouteRuleDetails struct { + + // Type of destination for the rule. Required if `direction` = `EGRESS`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + DestinationType AddDrgRouteRuleDetailsDestinationTypeEnum `mandatory:"true" json:"destinationType"` + + // This is the range of IP addresses used for matching when routing + // traffic. Only CIDR_BLOCK values are allowed. + // Potential values: + // * IP address range in CIDR notation. This can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` + // or `2001:0db8:0123:45::/56`. + Destination *string `mandatory:"true" json:"destination"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the next hop DRG attachment. The next hop DRG attachment is responsible + // for reaching the network destination. + NextHopDrgAttachmentId *string `mandatory:"true" json:"nextHopDrgAttachmentId"` +} + +func (m AddDrgRouteRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddDrgRouteRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAddDrgRouteRuleDetailsDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetAddDrgRouteRuleDetailsDestinationTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddDrgRouteRuleDetailsDestinationTypeEnum Enum with underlying type: string +type AddDrgRouteRuleDetailsDestinationTypeEnum string + +// Set of constants representing the allowable values for AddDrgRouteRuleDetailsDestinationTypeEnum +const ( + AddDrgRouteRuleDetailsDestinationTypeCidrBlock AddDrgRouteRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" +) + +var mappingAddDrgRouteRuleDetailsDestinationTypeEnum = map[string]AddDrgRouteRuleDetailsDestinationTypeEnum{ + "CIDR_BLOCK": AddDrgRouteRuleDetailsDestinationTypeCidrBlock, +} + +var mappingAddDrgRouteRuleDetailsDestinationTypeEnumLowerCase = map[string]AddDrgRouteRuleDetailsDestinationTypeEnum{ + "cidr_block": AddDrgRouteRuleDetailsDestinationTypeCidrBlock, +} + +// GetAddDrgRouteRuleDetailsDestinationTypeEnumValues Enumerates the set of values for AddDrgRouteRuleDetailsDestinationTypeEnum +func GetAddDrgRouteRuleDetailsDestinationTypeEnumValues() []AddDrgRouteRuleDetailsDestinationTypeEnum { + values := make([]AddDrgRouteRuleDetailsDestinationTypeEnum, 0) + for _, v := range mappingAddDrgRouteRuleDetailsDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetAddDrgRouteRuleDetailsDestinationTypeEnumStringValues Enumerates the set of values in String for AddDrgRouteRuleDetailsDestinationTypeEnum +func GetAddDrgRouteRuleDetailsDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + } +} + +// GetMappingAddDrgRouteRuleDetailsDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAddDrgRouteRuleDetailsDestinationTypeEnum(val string) (AddDrgRouteRuleDetailsDestinationTypeEnum, bool) { + enum, ok := mappingAddDrgRouteRuleDetailsDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_details.go new file mode 100644 index 0000000000..ff6b7e09dd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddDrgRouteRulesDetails Details used in a request to add static routes to a DRG route table. +type AddDrgRouteRulesDetails struct { + + // The collection of static rules used to insert routes into the DRG route table. + RouteRules []AddDrgRouteRuleDetails `mandatory:"false" json:"routeRules"` +} + +func (m AddDrgRouteRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddDrgRouteRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_request_response.go index f27bc25285..8778eb1815 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_drg_route_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_drg_route_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddDrgRouteRulesRequest wrapper for the AddDrgRouteRules operation @@ -41,6 +43,10 @@ func (request AddDrgRouteRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddDrgRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request AddDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddDrgRouteRulesResponse wrapper for the AddDrgRouteRules operation type AddDrgRouteRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_details.go new file mode 100644 index 0000000000..7884a8bdc8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddImageShapeCompatibilityEntryDetails Image shape compatibility details. +type AddImageShapeCompatibilityEntryDetails struct { + MemoryConstraints *ImageMemoryConstraints `mandatory:"false" json:"memoryConstraints"` + + OcpuConstraints *ImageOcpuConstraints `mandatory:"false" json:"ocpuConstraints"` +} + +func (m AddImageShapeCompatibilityEntryDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddImageShapeCompatibilityEntryDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_request_response.go index 43f641bc2f..ab7aa5a398 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_image_shape_compatibility_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_image_shape_compatibility_entry_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddImageShapeCompatibilityEntryRequest wrapper for the AddImageShapeCompatibilityEntry operation @@ -37,6 +39,10 @@ func (request AddImageShapeCompatibilityEntryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddImageShapeCompatibilityEntryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request AddImageShapeCompatibilityEntryRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddImageShapeCompatibilityEntryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddImageShapeCompatibilityEntryResponse wrapper for the AddImageShapeCompatibilityEntry operation type AddImageShapeCompatibilityEntryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_subnet_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_subnet_cidr_request_response.go new file mode 100644 index 0000000000..6dde03202a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_subnet_cidr_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// AddIpv6SubnetCidrRequest wrapper for the AddIpv6SubnetCidr operation +type AddIpv6SubnetCidrRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // Details object for adding an IPv6 CIDR to a subnet. + AddSubnetIpv6CidrDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request AddIpv6SubnetCidrRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request AddIpv6SubnetCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request AddIpv6SubnetCidrRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request AddIpv6SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddIpv6SubnetCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddIpv6SubnetCidrResponse wrapper for the AddIpv6SubnetCidr operation +type AddIpv6SubnetCidrResponse struct { + + // The underlying http response + RawResponse *http.Response + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response AddIpv6SubnetCidrResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response AddIpv6SubnetCidrResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_ipv6_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_vcn_cidr_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_ipv6_vcn_cidr_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_vcn_cidr_request_response.go index 733f896417..ca6123218b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_ipv6_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_ipv6_vcn_cidr_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddIpv6VcnCidrRequest wrapper for the AddIpv6VcnCidr operation @@ -31,6 +33,9 @@ type AddIpv6VcnCidrRequest struct { // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + // Details object for adding an IPv6 VCN CIDR. + AddVcnIpv6CidrDetails `contributesTo:"body"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -43,6 +48,10 @@ func (request AddIpv6VcnCidrRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddIpv6VcnCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +67,17 @@ func (request AddIpv6VcnCidrRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddIpv6VcnCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddIpv6VcnCidrResponse wrapper for the AddIpv6VcnCidr operation type AddIpv6VcnCidrResponse struct { @@ -68,7 +88,8 @@ type AddIpv6VcnCidrResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_details.go new file mode 100644 index 0000000000..beda1c1bff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddNetworkSecurityGroupSecurityRulesDetails The representation of AddNetworkSecurityGroupSecurityRulesDetails +type AddNetworkSecurityGroupSecurityRulesDetails struct { + + // The NSG security rules to add. + SecurityRules []AddSecurityRuleDetails `mandatory:"false" json:"securityRules"` +} + +func (m AddNetworkSecurityGroupSecurityRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddNetworkSecurityGroupSecurityRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_request_response.go index f2e9fa8b54..211c658e49 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_network_security_group_security_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_network_security_group_security_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddNetworkSecurityGroupSecurityRulesRequest wrapper for the AddNetworkSecurityGroupSecurityRules operation @@ -34,6 +36,10 @@ func (request AddNetworkSecurityGroupSecurityRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddNetworkSecurityGroupSecurityRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request AddNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddNetworkSecurityGroupSecurityRulesResponse wrapper for the AddNetworkSecurityGroupSecurityRules operation type AddNetworkSecurityGroupSecurityRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_details.go new file mode 100644 index 0000000000..7f5a778d6e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddPublicIpPoolCapacityDetails The information used to add capacity to an IP pool. +type AddPublicIpPoolCapacityDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource to which the CIDR block belongs. + ByoipRangeId *string `mandatory:"true" json:"byoipRangeId"` + + // The CIDR block to add to the public IP pool. It could be all of the CIDR block identified in `byoipRangeId`, or a subrange. + // Example: `10.0.1.0/24` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` +} + +func (m AddPublicIpPoolCapacityDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddPublicIpPoolCapacityDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_request_response.go index 2cf0d2a188..70bcf2fc9b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_public_ip_pool_capacity_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_public_ip_pool_capacity_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddPublicIpPoolCapacityRequest wrapper for the AddPublicIpPoolCapacity operation @@ -41,6 +43,10 @@ func (request AddPublicIpPoolCapacityRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddPublicIpPoolCapacityRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request AddPublicIpPoolCapacityRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddPublicIpPoolCapacityRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddPublicIpPoolCapacityResponse wrapper for the AddPublicIpPoolCapacity operation type AddPublicIpPoolCapacityResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_security_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_security_rule_details.go new file mode 100644 index 0000000000..12be95837c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_security_rule_details.go @@ -0,0 +1,256 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddSecurityRuleDetails A rule for allowing inbound (INGRESS) or outbound (EGRESS) IP packets. +type AddSecurityRuleDetails struct { + + // Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + // or `INGRESS` for rules to allow inbound IP packets. + Direction AddSecurityRuleDetailsDirectionEnum `mandatory:"true" json:"direction"` + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). + Protocol *string `mandatory:"true" json:"protocol"` + + // An optional description of your choice for the rule. Avoid entering confidential information. + Description *string `mandatory:"false" json:"description"` + + // Conceptually, this is the range of IP addresses that a packet originating from the instance + // can go to. + // Allowed values: + // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // IPv6 addressing is supported for all commercial and government regions. See + // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security rule for traffic destined for a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same + // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control + // traffic between VNICs in the same NSG. + Destination *string `mandatory:"false" json:"destination"` + + // Type of destination for the rule. Required if `direction` = `EGRESS`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a + // NetworkSecurityGroup. + DestinationType AddSecurityRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if egress traffic allows TCP destination port 80, there should be an ingress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + // Conceptually, this is the range of IP addresses that a packet coming into the instance + // can come from. + // Allowed values: + // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // IPv6 addressing is supported for all commercial and government regions. See + // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security rule for traffic coming from a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same + // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control + // traffic between VNICs in the same NSG. + Source *string `mandatory:"false" json:"source"` + + // Type of source for the rule. Required if `direction` = `INGRESS`. + // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a + // Service (the rule is for traffic coming from a + // particular `Service` through a service gateway). + // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a + // NetworkSecurityGroup. + SourceType AddSecurityRuleDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` +} + +func (m AddSecurityRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddSecurityRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAddSecurityRuleDetailsDirectionEnum(string(m.Direction)); !ok && m.Direction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Direction: %s. Supported values are: %s.", m.Direction, strings.Join(GetAddSecurityRuleDetailsDirectionEnumStringValues(), ","))) + } + + if _, ok := GetMappingAddSecurityRuleDetailsDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetAddSecurityRuleDetailsDestinationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingAddSecurityRuleDetailsSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetAddSecurityRuleDetailsSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddSecurityRuleDetailsDestinationTypeEnum Enum with underlying type: string +type AddSecurityRuleDetailsDestinationTypeEnum string + +// Set of constants representing the allowable values for AddSecurityRuleDetailsDestinationTypeEnum +const ( + AddSecurityRuleDetailsDestinationTypeCidrBlock AddSecurityRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" + AddSecurityRuleDetailsDestinationTypeServiceCidrBlock AddSecurityRuleDetailsDestinationTypeEnum = "SERVICE_CIDR_BLOCK" + AddSecurityRuleDetailsDestinationTypeNetworkSecurityGroup AddSecurityRuleDetailsDestinationTypeEnum = "NETWORK_SECURITY_GROUP" +) + +var mappingAddSecurityRuleDetailsDestinationTypeEnum = map[string]AddSecurityRuleDetailsDestinationTypeEnum{ + "CIDR_BLOCK": AddSecurityRuleDetailsDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": AddSecurityRuleDetailsDestinationTypeServiceCidrBlock, + "NETWORK_SECURITY_GROUP": AddSecurityRuleDetailsDestinationTypeNetworkSecurityGroup, +} + +var mappingAddSecurityRuleDetailsDestinationTypeEnumLowerCase = map[string]AddSecurityRuleDetailsDestinationTypeEnum{ + "cidr_block": AddSecurityRuleDetailsDestinationTypeCidrBlock, + "service_cidr_block": AddSecurityRuleDetailsDestinationTypeServiceCidrBlock, + "network_security_group": AddSecurityRuleDetailsDestinationTypeNetworkSecurityGroup, +} + +// GetAddSecurityRuleDetailsDestinationTypeEnumValues Enumerates the set of values for AddSecurityRuleDetailsDestinationTypeEnum +func GetAddSecurityRuleDetailsDestinationTypeEnumValues() []AddSecurityRuleDetailsDestinationTypeEnum { + values := make([]AddSecurityRuleDetailsDestinationTypeEnum, 0) + for _, v := range mappingAddSecurityRuleDetailsDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetAddSecurityRuleDetailsDestinationTypeEnumStringValues Enumerates the set of values in String for AddSecurityRuleDetailsDestinationTypeEnum +func GetAddSecurityRuleDetailsDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + "NETWORK_SECURITY_GROUP", + } +} + +// GetMappingAddSecurityRuleDetailsDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAddSecurityRuleDetailsDestinationTypeEnum(val string) (AddSecurityRuleDetailsDestinationTypeEnum, bool) { + enum, ok := mappingAddSecurityRuleDetailsDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AddSecurityRuleDetailsDirectionEnum Enum with underlying type: string +type AddSecurityRuleDetailsDirectionEnum string + +// Set of constants representing the allowable values for AddSecurityRuleDetailsDirectionEnum +const ( + AddSecurityRuleDetailsDirectionEgress AddSecurityRuleDetailsDirectionEnum = "EGRESS" + AddSecurityRuleDetailsDirectionIngress AddSecurityRuleDetailsDirectionEnum = "INGRESS" +) + +var mappingAddSecurityRuleDetailsDirectionEnum = map[string]AddSecurityRuleDetailsDirectionEnum{ + "EGRESS": AddSecurityRuleDetailsDirectionEgress, + "INGRESS": AddSecurityRuleDetailsDirectionIngress, +} + +var mappingAddSecurityRuleDetailsDirectionEnumLowerCase = map[string]AddSecurityRuleDetailsDirectionEnum{ + "egress": AddSecurityRuleDetailsDirectionEgress, + "ingress": AddSecurityRuleDetailsDirectionIngress, +} + +// GetAddSecurityRuleDetailsDirectionEnumValues Enumerates the set of values for AddSecurityRuleDetailsDirectionEnum +func GetAddSecurityRuleDetailsDirectionEnumValues() []AddSecurityRuleDetailsDirectionEnum { + values := make([]AddSecurityRuleDetailsDirectionEnum, 0) + for _, v := range mappingAddSecurityRuleDetailsDirectionEnum { + values = append(values, v) + } + return values +} + +// GetAddSecurityRuleDetailsDirectionEnumStringValues Enumerates the set of values in String for AddSecurityRuleDetailsDirectionEnum +func GetAddSecurityRuleDetailsDirectionEnumStringValues() []string { + return []string{ + "EGRESS", + "INGRESS", + } +} + +// GetMappingAddSecurityRuleDetailsDirectionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAddSecurityRuleDetailsDirectionEnum(val string) (AddSecurityRuleDetailsDirectionEnum, bool) { + enum, ok := mappingAddSecurityRuleDetailsDirectionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AddSecurityRuleDetailsSourceTypeEnum Enum with underlying type: string +type AddSecurityRuleDetailsSourceTypeEnum string + +// Set of constants representing the allowable values for AddSecurityRuleDetailsSourceTypeEnum +const ( + AddSecurityRuleDetailsSourceTypeCidrBlock AddSecurityRuleDetailsSourceTypeEnum = "CIDR_BLOCK" + AddSecurityRuleDetailsSourceTypeServiceCidrBlock AddSecurityRuleDetailsSourceTypeEnum = "SERVICE_CIDR_BLOCK" + AddSecurityRuleDetailsSourceTypeNetworkSecurityGroup AddSecurityRuleDetailsSourceTypeEnum = "NETWORK_SECURITY_GROUP" +) + +var mappingAddSecurityRuleDetailsSourceTypeEnum = map[string]AddSecurityRuleDetailsSourceTypeEnum{ + "CIDR_BLOCK": AddSecurityRuleDetailsSourceTypeCidrBlock, + "SERVICE_CIDR_BLOCK": AddSecurityRuleDetailsSourceTypeServiceCidrBlock, + "NETWORK_SECURITY_GROUP": AddSecurityRuleDetailsSourceTypeNetworkSecurityGroup, +} + +var mappingAddSecurityRuleDetailsSourceTypeEnumLowerCase = map[string]AddSecurityRuleDetailsSourceTypeEnum{ + "cidr_block": AddSecurityRuleDetailsSourceTypeCidrBlock, + "service_cidr_block": AddSecurityRuleDetailsSourceTypeServiceCidrBlock, + "network_security_group": AddSecurityRuleDetailsSourceTypeNetworkSecurityGroup, +} + +// GetAddSecurityRuleDetailsSourceTypeEnumValues Enumerates the set of values for AddSecurityRuleDetailsSourceTypeEnum +func GetAddSecurityRuleDetailsSourceTypeEnumValues() []AddSecurityRuleDetailsSourceTypeEnum { + values := make([]AddSecurityRuleDetailsSourceTypeEnum, 0) + for _, v := range mappingAddSecurityRuleDetailsSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetAddSecurityRuleDetailsSourceTypeEnumStringValues Enumerates the set of values in String for AddSecurityRuleDetailsSourceTypeEnum +func GetAddSecurityRuleDetailsSourceTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + "NETWORK_SECURITY_GROUP", + } +} + +// GetMappingAddSecurityRuleDetailsSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAddSecurityRuleDetailsSourceTypeEnum(val string) (AddSecurityRuleDetailsSourceTypeEnum, bool) { + enum, ok := mappingAddSecurityRuleDetailsSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_subnet_ipv6_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_subnet_ipv6_cidr_details.go new file mode 100644 index 0000000000..12eef36976 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_subnet_ipv6_cidr_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddSubnetIpv6CidrDetails Details used when adding an IPv6 CIDR block to a subnet. +type AddSubnetIpv6CidrDetails struct { + + // This field is not required and should only be specified when adding an IPv6 CIDR + // to a subnet's IPv6 address space. + // SeeIPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `2001:0db8:0123::/64` + Ipv6CidrBlock *string `mandatory:"true" json:"ipv6CidrBlock"` +} + +func (m AddSubnetIpv6CidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddSubnetIpv6CidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_details.go new file mode 100644 index 0000000000..3b5a0cbbff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddVcnCidrDetails Details used to add a CIDR block to a VCN. +type AddVcnCidrDetails struct { + + // The CIDR block to add. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` +} + +func (m AddVcnCidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddVcnCidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go index d238668f6b..ec474fec62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/add_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_cidr_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddVcnCidrRequest wrapper for the AddVcnCidr operation @@ -46,6 +48,10 @@ func (request AddVcnCidrRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddVcnCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request AddVcnCidrRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddVcnCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddVcnCidrResponse wrapper for the AddVcnCidr operation type AddVcnCidrResponse struct { @@ -71,7 +88,8 @@ type AddVcnCidrResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_ipv6_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_ipv6_cidr_details.go new file mode 100644 index 0000000000..6b568d7be8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/add_vcn_ipv6_cidr_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddVcnIpv6CidrDetails Details used when adding a ULA or private IPv6 prefix or an IPv6 GUA assigned by Oracle or a BYOIPv6 prefix. You can add only one of these per request. +type AddVcnIpv6CidrDetails struct { + + // This field is not required and should only be specified if a ULA or private IPv6 prefix is desired for VCN's private IP address space. + // SeeIPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `2001:0db8:0123::/48` or `fd00:1000:0:1::/64` + Ipv6PrivateCidrBlock *string `mandatory:"false" json:"ipv6PrivateCidrBlock"` + + // Indicates whether Oracle will allocate an IPv6 GUA. Only one prefix of /56 size can be allocated by Oracle as a GUA. + IsOracleGuaAllocationEnabled *bool `mandatory:"false" json:"isOracleGuaAllocationEnabled"` + + Byoipv6CidrDetail *Byoipv6CidrDetails `mandatory:"false" json:"byoipv6CidrDetail"` +} + +func (m AddVcnIpv6CidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddVcnIpv6CidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/added_additional_route_rules.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/added_additional_route_rules.go new file mode 100644 index 0000000000..a34e080608 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/added_additional_route_rules.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddedAdditionalRouteRules The route rules that were added. +type AddedAdditionalRouteRules struct { + + // List of route rules that were added. + RouteRules []AdditionalRouteRule `mandatory:"true" json:"routeRules"` +} + +func (m AddedAdditionalRouteRules) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddedAdditionalRouteRules) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/added_network_security_group_security_rules.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/added_network_security_group_security_rules.go new file mode 100644 index 0000000000..c7dbcd94fa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/added_network_security_group_security_rules.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddedNetworkSecurityGroupSecurityRules The representation of AddedNetworkSecurityGroupSecurityRules +type AddedNetworkSecurityGroupSecurityRules struct { + + // The NSG security rules that were added. + SecurityRules []SecurityRule `mandatory:"false" json:"securityRules"` +} + +func (m AddedNetworkSecurityGroupSecurityRules) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddedNetworkSecurityGroupSecurityRules) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/additional_route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/additional_route_rule.go new file mode 100644 index 0000000000..33feab9ad2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/additional_route_rule.go @@ -0,0 +1,172 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AdditionalRouteRule A mapping between a destination IP address range and a virtual device to route matching +// packets to (a target). This is used only by a large route table. +type AdditionalRouteRule struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the route rule's target. For information about the type of + // targets you can specify, see + // Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). + NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` + + // An identifier for the route rule. You specify this identifier when you want to delete the rule. + Id *string `mandatory:"true" json:"id"` + + // Deprecated. Instead use `destination` and `destinationType`. Requests that include both + // `cidrBlock` and `destination` will be rejected. + // A destination IP address range in CIDR notation. Matching packets will + // be routed to the indicated network entity (the target). + // Cannot be an IPv6 CIDR. + // Example: `0.0.0.0/0` + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // Conceptually, this is the range of IP addresses used for matching when routing + // traffic. Required if you provide a `destinationType`. + // Allowed values: + // * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` + // or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target + // can only be a DRG or internet gateway. IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a route rule for traffic destined for a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + Destination *string `mandatory:"false" json:"destination"` + + // Type of destination for the rule. Required if you provide a `destination`. + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + DestinationType AdditionalRouteRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + // An optional description of your choice for the rule. + Description *string `mandatory:"false" json:"description"` + + // A route rule can be STATIC if manually added to the route table, LOCAL if added by OCI to the route table. + RouteType AdditionalRouteRuleRouteTypeEnum `mandatory:"false" json:"routeType,omitempty"` +} + +func (m AdditionalRouteRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AdditionalRouteRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingAdditionalRouteRuleDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetAdditionalRouteRuleDestinationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingAdditionalRouteRuleRouteTypeEnum(string(m.RouteType)); !ok && m.RouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RouteType: %s. Supported values are: %s.", m.RouteType, strings.Join(GetAdditionalRouteRuleRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AdditionalRouteRuleDestinationTypeEnum Enum with underlying type: string +type AdditionalRouteRuleDestinationTypeEnum string + +// Set of constants representing the allowable values for AdditionalRouteRuleDestinationTypeEnum +const ( + AdditionalRouteRuleDestinationTypeCidrBlock AdditionalRouteRuleDestinationTypeEnum = "CIDR_BLOCK" + AdditionalRouteRuleDestinationTypeServiceCidrBlock AdditionalRouteRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" +) + +var mappingAdditionalRouteRuleDestinationTypeEnum = map[string]AdditionalRouteRuleDestinationTypeEnum{ + "CIDR_BLOCK": AdditionalRouteRuleDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": AdditionalRouteRuleDestinationTypeServiceCidrBlock, +} + +var mappingAdditionalRouteRuleDestinationTypeEnumLowerCase = map[string]AdditionalRouteRuleDestinationTypeEnum{ + "cidr_block": AdditionalRouteRuleDestinationTypeCidrBlock, + "service_cidr_block": AdditionalRouteRuleDestinationTypeServiceCidrBlock, +} + +// GetAdditionalRouteRuleDestinationTypeEnumValues Enumerates the set of values for AdditionalRouteRuleDestinationTypeEnum +func GetAdditionalRouteRuleDestinationTypeEnumValues() []AdditionalRouteRuleDestinationTypeEnum { + values := make([]AdditionalRouteRuleDestinationTypeEnum, 0) + for _, v := range mappingAdditionalRouteRuleDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetAdditionalRouteRuleDestinationTypeEnumStringValues Enumerates the set of values in String for AdditionalRouteRuleDestinationTypeEnum +func GetAdditionalRouteRuleDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + } +} + +// GetMappingAdditionalRouteRuleDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAdditionalRouteRuleDestinationTypeEnum(val string) (AdditionalRouteRuleDestinationTypeEnum, bool) { + enum, ok := mappingAdditionalRouteRuleDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AdditionalRouteRuleRouteTypeEnum Enum with underlying type: string +type AdditionalRouteRuleRouteTypeEnum string + +// Set of constants representing the allowable values for AdditionalRouteRuleRouteTypeEnum +const ( + AdditionalRouteRuleRouteTypeStatic AdditionalRouteRuleRouteTypeEnum = "STATIC" + AdditionalRouteRuleRouteTypeLocal AdditionalRouteRuleRouteTypeEnum = "LOCAL" +) + +var mappingAdditionalRouteRuleRouteTypeEnum = map[string]AdditionalRouteRuleRouteTypeEnum{ + "STATIC": AdditionalRouteRuleRouteTypeStatic, + "LOCAL": AdditionalRouteRuleRouteTypeLocal, +} + +var mappingAdditionalRouteRuleRouteTypeEnumLowerCase = map[string]AdditionalRouteRuleRouteTypeEnum{ + "static": AdditionalRouteRuleRouteTypeStatic, + "local": AdditionalRouteRuleRouteTypeLocal, +} + +// GetAdditionalRouteRuleRouteTypeEnumValues Enumerates the set of values for AdditionalRouteRuleRouteTypeEnum +func GetAdditionalRouteRuleRouteTypeEnumValues() []AdditionalRouteRuleRouteTypeEnum { + values := make([]AdditionalRouteRuleRouteTypeEnum, 0) + for _, v := range mappingAdditionalRouteRuleRouteTypeEnum { + values = append(values, v) + } + return values +} + +// GetAdditionalRouteRuleRouteTypeEnumStringValues Enumerates the set of values in String for AdditionalRouteRuleRouteTypeEnum +func GetAdditionalRouteRuleRouteTypeEnumStringValues() []string { + return []string{ + "STATIC", + "LOCAL", + } +} + +// GetMappingAdditionalRouteRuleRouteTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAdditionalRouteRuleRouteTypeEnum(val string) (AdditionalRouteRuleRouteTypeEnum, bool) { + enum, ok := mappingAdditionalRouteRuleRouteTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/advertise_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/advertise_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go index 66eb4615b2..dd7978ddb8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/advertise_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/advertise_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AdvertiseByoipRangeRequest wrapper for the AdvertiseByoipRange operation @@ -31,6 +33,10 @@ func (request AdvertiseByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AdvertiseByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request AdvertiseByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AdvertiseByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AdvertiseByoipRangeResponse wrapper for the AdvertiseByoipRange operation type AdvertiseByoipRangeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_ike_ip_sec_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_ike_ip_sec_parameters.go new file mode 100644 index 0000000000..ba3e914224 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_ike_ip_sec_parameters.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AllowedIkeIpSecParameters Lists the current allowed and default IPSec tunnel parameters. +type AllowedIkeIpSecParameters struct { + AllowedPhaseOneParameters *AllowedPhaseOneParameters `mandatory:"true" json:"allowedPhaseOneParameters"` + + AllowedPhaseTwoParameters *AllowedPhaseTwoParameters `mandatory:"true" json:"allowedPhaseTwoParameters"` + + DefaultPhaseOneParameters *DefaultPhaseOneParameters `mandatory:"true" json:"defaultPhaseOneParameters"` + + DefaultPhaseTwoParameters *DefaultPhaseTwoParameters `mandatory:"true" json:"defaultPhaseTwoParameters"` +} + +func (m AllowedIkeIpSecParameters) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AllowedIkeIpSecParameters) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_one_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_one_parameters.go new file mode 100644 index 0000000000..9051664cdd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_one_parameters.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AllowedPhaseOneParameters Allowed phase one parameters. +type AllowedPhaseOneParameters struct { + + // Allowed phase one encryption algorithms. + EncryptionAlgorithms []string `mandatory:"false" json:"encryptionAlgorithms"` + + // Allowed phase one authentication algorithms. + AuthenticationAlgorithms []string `mandatory:"false" json:"authenticationAlgorithms"` + + // Allowed phase one Diffie-Hellman groups. + DhGroups []string `mandatory:"false" json:"dhGroups"` +} + +func (m AllowedPhaseOneParameters) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AllowedPhaseOneParameters) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_two_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_two_parameters.go new file mode 100644 index 0000000000..91d1a68151 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/allowed_phase_two_parameters.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AllowedPhaseTwoParameters Allowed phase two parameters. +type AllowedPhaseTwoParameters struct { + + // Allowed phase two encryption algorithms. + EncryptionAlgorithms []string `mandatory:"false" json:"encryptionAlgorithms"` + + // Allowed phase two authentication algorithms. + AuthenticationAlgorithms []string `mandatory:"false" json:"authenticationAlgorithms"` + + // Allowed perfect forward secrecy Diffie-Hellman groups. + PfsDhGroups []string `mandatory:"false" json:"pfsDhGroups"` +} + +func (m AllowedPhaseTwoParameters) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AllowedPhaseTwoParameters) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..8691e73e67 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_launch_instance_platform_config.go @@ -0,0 +1,171 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdMilanBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with one of the following shapes: BM.Standard.E4.128 +// or BM.DenseIO.E4.128 (the AMD Milan platform). +type AmdMilanBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdMilanBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdMilanBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdMilanBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdMilanBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdMilanBmLaunchInstancePlatformConfig AmdMilanBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdMilanBmLaunchInstancePlatformConfig + }{ + "AMD_MILAN_BM", + (MarshalTypeAmdMilanBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" + AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" + AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS0": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "NPS1": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "NPS4": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +var mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps0": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "nps1": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "nps4": AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +// GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (AmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_platform_config.go new file mode 100644 index 0000000000..5f54757279 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_milan_bm_platform_config.go @@ -0,0 +1,171 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdMilanBmPlatformConfig The platform configuration used when launching a bare metal instance with one of the following shapes: BM.Standard.E4.128 +// or BM.DenseIO.E4.128 (the AMD Milan platform). +type AmdMilanBmPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket AmdMilanBmPlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdMilanBmPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdMilanBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdMilanBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdMilanBmPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdMilanBmPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdMilanBmPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdMilanBmPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdMilanBmPlatformConfig AmdMilanBmPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdMilanBmPlatformConfig + }{ + "AMD_MILAN_BM", + (MarshalTypeAmdMilanBmPlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// AmdMilanBmPlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type AmdMilanBmPlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for AmdMilanBmPlatformConfigNumaNodesPerSocketEnum +const ( + AmdMilanBmPlatformConfigNumaNodesPerSocketNps0 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS0" + AmdMilanBmPlatformConfigNumaNodesPerSocketNps1 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" + AmdMilanBmPlatformConfigNumaNodesPerSocketNps2 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" + AmdMilanBmPlatformConfigNumaNodesPerSocketNps4 AmdMilanBmPlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum = map[string]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum{ + "NPS0": AmdMilanBmPlatformConfigNumaNodesPerSocketNps0, + "NPS1": AmdMilanBmPlatformConfigNumaNodesPerSocketNps1, + "NPS2": AmdMilanBmPlatformConfigNumaNodesPerSocketNps2, + "NPS4": AmdMilanBmPlatformConfigNumaNodesPerSocketNps4, +} + +var mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum{ + "nps0": AmdMilanBmPlatformConfigNumaNodesPerSocketNps0, + "nps1": AmdMilanBmPlatformConfigNumaNodesPerSocketNps1, + "nps2": AmdMilanBmPlatformConfigNumaNodesPerSocketNps2, + "nps4": AmdMilanBmPlatformConfigNumaNodesPerSocketNps4, +} + +// GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdMilanBmPlatformConfigNumaNodesPerSocketEnum +func GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumValues() []AmdMilanBmPlatformConfigNumaNodesPerSocketEnum { + values := make([]AmdMilanBmPlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for AmdMilanBmPlatformConfigNumaNodesPerSocketEnum +func GetAmdMilanBmPlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnum(val string) (AmdMilanBmPlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingAmdMilanBmPlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_launch_instance_platform_config.go new file mode 100644 index 0000000000..581bef3b82 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_launch_instance_platform_config.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdRomeBmGpuLaunchInstancePlatformConfig The platform configuration used when launching a bare metal GPU instance with the BM.GPU4.8 shape +// (the AMD Rome platform). +type AmdRomeBmGpuLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdRomeBmGpuLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdRomeBmGpuLaunchInstancePlatformConfig AmdRomeBmGpuLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdRomeBmGpuLaunchInstancePlatformConfig + }{ + "AMD_ROME_BM_GPU", + (MarshalTypeAmdRomeBmGpuLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps0 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" + AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" + AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS0": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "NPS1": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "NPS4": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +var mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps0": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "nps1": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "nps4": AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +// GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (AmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_platform_config.go new file mode 100644 index 0000000000..6a99a6c097 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_gpu_platform_config.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdRomeBmGpuPlatformConfig The platform configuration of a bare metal GPU instance that uses the BM.GPU4.8 shape +// (the AMD Rome platform). +type AmdRomeBmGpuPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdRomeBmGpuPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdRomeBmGpuPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdRomeBmGpuPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdRomeBmGpuPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdRomeBmGpuPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdRomeBmGpuPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdRomeBmGpuPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdRomeBmGpuPlatformConfig AmdRomeBmGpuPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdRomeBmGpuPlatformConfig + }{ + "AMD_ROME_BM_GPU", + (MarshalTypeAmdRomeBmGpuPlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum +const ( + AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps0 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS0" + AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps1 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS1" + AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps2 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS2" + AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps4 AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum{ + "NPS0": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps0, + "NPS1": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps1, + "NPS2": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps2, + "NPS4": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps4, +} + +var mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum{ + "nps0": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps0, + "nps1": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps1, + "nps2": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps2, + "nps4": AmdRomeBmGpuPlatformConfigNumaNodesPerSocketNps4, +} + +// GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumValues() []AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum { + values := make([]AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum(val string) (AmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingAmdRomeBmGpuPlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..ba7651f41f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_launch_instance_platform_config.go @@ -0,0 +1,171 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdRomeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the BM.Standard.E3.128 shape +// (the AMD Rome platform). +type AmdRomeBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdRomeBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdRomeBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdRomeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdRomeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdRomeBmLaunchInstancePlatformConfig AmdRomeBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdRomeBmLaunchInstancePlatformConfig + }{ + "AMD_ROME_BM", + (MarshalTypeAmdRomeBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" + AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" + AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS0": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "NPS1": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "NPS4": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +var mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps0": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "nps1": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "nps4": AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +// GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (AmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_platform_config.go new file mode 100644 index 0000000000..cf77fed5ad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_rome_bm_platform_config.go @@ -0,0 +1,170 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdRomeBmPlatformConfig The platform configuration of a bare metal instance that uses the BM.Standard.E3.128 shape (the AMD Rome platform). +type AmdRomeBmPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket AmdRomeBmPlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdRomeBmPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdRomeBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdRomeBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdRomeBmPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdRomeBmPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdRomeBmPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdRomeBmPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdRomeBmPlatformConfig AmdRomeBmPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdRomeBmPlatformConfig + }{ + "AMD_ROME_BM", + (MarshalTypeAmdRomeBmPlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// AmdRomeBmPlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type AmdRomeBmPlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for AmdRomeBmPlatformConfigNumaNodesPerSocketEnum +const ( + AmdRomeBmPlatformConfigNumaNodesPerSocketNps0 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS0" + AmdRomeBmPlatformConfigNumaNodesPerSocketNps1 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" + AmdRomeBmPlatformConfigNumaNodesPerSocketNps2 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" + AmdRomeBmPlatformConfigNumaNodesPerSocketNps4 AmdRomeBmPlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum = map[string]AmdRomeBmPlatformConfigNumaNodesPerSocketEnum{ + "NPS0": AmdRomeBmPlatformConfigNumaNodesPerSocketNps0, + "NPS1": AmdRomeBmPlatformConfigNumaNodesPerSocketNps1, + "NPS2": AmdRomeBmPlatformConfigNumaNodesPerSocketNps2, + "NPS4": AmdRomeBmPlatformConfigNumaNodesPerSocketNps4, +} + +var mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]AmdRomeBmPlatformConfigNumaNodesPerSocketEnum{ + "nps0": AmdRomeBmPlatformConfigNumaNodesPerSocketNps0, + "nps1": AmdRomeBmPlatformConfigNumaNodesPerSocketNps1, + "nps2": AmdRomeBmPlatformConfigNumaNodesPerSocketNps2, + "nps4": AmdRomeBmPlatformConfigNumaNodesPerSocketNps4, +} + +// GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for AmdRomeBmPlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumValues() []AmdRomeBmPlatformConfigNumaNodesPerSocketEnum { + values := make([]AmdRomeBmPlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for AmdRomeBmPlatformConfigNumaNodesPerSocketEnum +func GetAmdRomeBmPlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnum(val string) (AmdRomeBmPlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingAmdRomeBmPlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_launch_instance_platform_config.go new file mode 100644 index 0000000000..316c8c198c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_launch_instance_platform_config.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the AMD platform. +type AmdVmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdVmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdVmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdVmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdVmLaunchInstancePlatformConfig AmdVmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdVmLaunchInstancePlatformConfig + }{ + "AMD_VM", + (MarshalTypeAmdVmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_platform_config.go new file mode 100644 index 0000000000..69c57c521b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/amd_vm_platform_config.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AmdVmPlatformConfig The platform configuration of a virtual machine instance that uses the AMD platform. +type AmdVmPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m AmdVmPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m AmdVmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m AmdVmPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m AmdVmPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m AmdVmPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AmdVmPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AmdVmPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAmdVmPlatformConfig AmdVmPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAmdVmPlatformConfig + }{ + "AMD_VM", + (MarshalTypeAmdVmPlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing.go new file mode 100644 index 0000000000..078a6dd675 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogListing Listing details. +type AppCatalogListing struct { + + // Listing's contact URL. + ContactUrl *string `mandatory:"false" json:"contactUrl"` + + // Description of the listing. + Description *string `mandatory:"false" json:"description"` + + // The OCID of the listing. + ListingId *string `mandatory:"false" json:"listingId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Date and time the listing was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` + + // Publisher's logo URL. + PublisherLogoUrl *string `mandatory:"false" json:"publisherLogoUrl"` + + // Name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` + + // Summary of the listing. + Summary *string `mandatory:"false" json:"summary"` +} + +func (m AppCatalogListing) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogListing) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version.go new file mode 100644 index 0000000000..5772549665 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version.go @@ -0,0 +1,138 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogListingResourceVersion Listing Resource Version +type AppCatalogListingResourceVersion struct { + + // The OCID of the listing this resource version belongs to. + ListingId *string `mandatory:"false" json:"listingId"` + + // Date and time the listing resource version was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` + + // OCID of the listing resource. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // Resource Version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // List of regions that this listing resource version is available. + // For information about regions, see + // Regions and Availability Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm). + // Example: `["us-ashburn-1", "us-phoenix-1"]` + AvailableRegions []string `mandatory:"false" json:"availableRegions"` + + // Array of shapes compatible with this resource. + // You can enumerate all available shapes by calling ListShapes. + // Example: `["VM.Standard1.1", "VM.Standard1.2"]` + CompatibleShapes []string `mandatory:"false" json:"compatibleShapes"` + + // List of accessible ports for instances launched with this listing resource version. + AccessiblePorts []int `mandatory:"false" json:"accessiblePorts"` + + // Allowed actions for the listing resource. + AllowedActions []AppCatalogListingResourceVersionAllowedActionsEnum `mandatory:"false" json:"allowedActions,omitempty"` +} + +func (m AppCatalogListingResourceVersion) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogListingResourceVersion) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.AllowedActions { + if _, ok := GetMappingAppCatalogListingResourceVersionAllowedActionsEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AllowedActions: %s. Supported values are: %s.", val, strings.Join(GetAppCatalogListingResourceVersionAllowedActionsEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AppCatalogListingResourceVersionAllowedActionsEnum Enum with underlying type: string +type AppCatalogListingResourceVersionAllowedActionsEnum string + +// Set of constants representing the allowable values for AppCatalogListingResourceVersionAllowedActionsEnum +const ( + AppCatalogListingResourceVersionAllowedActionsSnapshot AppCatalogListingResourceVersionAllowedActionsEnum = "SNAPSHOT" + AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_VOLUME_DETACH" + AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "PRESERVE_BOOT_VOLUME" + AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess AppCatalogListingResourceVersionAllowedActionsEnum = "SERIAL_CONSOLE_ACCESS" + AppCatalogListingResourceVersionAllowedActionsBootRecovery AppCatalogListingResourceVersionAllowedActionsEnum = "BOOT_RECOVERY" + AppCatalogListingResourceVersionAllowedActionsBackupBootVolume AppCatalogListingResourceVersionAllowedActionsEnum = "BACKUP_BOOT_VOLUME" + AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory AppCatalogListingResourceVersionAllowedActionsEnum = "CAPTURE_CONSOLE_HISTORY" +) + +var mappingAppCatalogListingResourceVersionAllowedActionsEnum = map[string]AppCatalogListingResourceVersionAllowedActionsEnum{ + "SNAPSHOT": AppCatalogListingResourceVersionAllowedActionsSnapshot, + "BOOT_VOLUME_DETACH": AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach, + "PRESERVE_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume, + "SERIAL_CONSOLE_ACCESS": AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess, + "BOOT_RECOVERY": AppCatalogListingResourceVersionAllowedActionsBootRecovery, + "BACKUP_BOOT_VOLUME": AppCatalogListingResourceVersionAllowedActionsBackupBootVolume, + "CAPTURE_CONSOLE_HISTORY": AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory, +} + +var mappingAppCatalogListingResourceVersionAllowedActionsEnumLowerCase = map[string]AppCatalogListingResourceVersionAllowedActionsEnum{ + "snapshot": AppCatalogListingResourceVersionAllowedActionsSnapshot, + "boot_volume_detach": AppCatalogListingResourceVersionAllowedActionsBootVolumeDetach, + "preserve_boot_volume": AppCatalogListingResourceVersionAllowedActionsPreserveBootVolume, + "serial_console_access": AppCatalogListingResourceVersionAllowedActionsSerialConsoleAccess, + "boot_recovery": AppCatalogListingResourceVersionAllowedActionsBootRecovery, + "backup_boot_volume": AppCatalogListingResourceVersionAllowedActionsBackupBootVolume, + "capture_console_history": AppCatalogListingResourceVersionAllowedActionsCaptureConsoleHistory, +} + +// GetAppCatalogListingResourceVersionAllowedActionsEnumValues Enumerates the set of values for AppCatalogListingResourceVersionAllowedActionsEnum +func GetAppCatalogListingResourceVersionAllowedActionsEnumValues() []AppCatalogListingResourceVersionAllowedActionsEnum { + values := make([]AppCatalogListingResourceVersionAllowedActionsEnum, 0) + for _, v := range mappingAppCatalogListingResourceVersionAllowedActionsEnum { + values = append(values, v) + } + return values +} + +// GetAppCatalogListingResourceVersionAllowedActionsEnumStringValues Enumerates the set of values in String for AppCatalogListingResourceVersionAllowedActionsEnum +func GetAppCatalogListingResourceVersionAllowedActionsEnumStringValues() []string { + return []string{ + "SNAPSHOT", + "BOOT_VOLUME_DETACH", + "PRESERVE_BOOT_VOLUME", + "SERIAL_CONSOLE_ACCESS", + "BOOT_RECOVERY", + "BACKUP_BOOT_VOLUME", + "CAPTURE_CONSOLE_HISTORY", + } +} + +// GetMappingAppCatalogListingResourceVersionAllowedActionsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAppCatalogListingResourceVersionAllowedActionsEnum(val string) (AppCatalogListingResourceVersionAllowedActionsEnum, bool) { + enum, ok := mappingAppCatalogListingResourceVersionAllowedActionsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_agreements.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_agreements.go new file mode 100644 index 0000000000..f7e8b105e7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_agreements.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogListingResourceVersionAgreements Agreements for a listing resource version. +type AppCatalogListingResourceVersionAgreements struct { + + // The OCID of the listing associated with these agreements. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version associated with these agreements. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Oracle TOU link + OracleTermsOfUseLink *string `mandatory:"false" json:"oracleTermsOfUseLink"` + + // EULA link + EulaLink *string `mandatory:"false" json:"eulaLink"` + + // Date and time the agreements were retrieved, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimeRetrieved *common.SDKTime `mandatory:"false" json:"timeRetrieved"` + + // A generated signature for this agreement retrieval operation which should be used in the create subscription call. + Signature *string `mandatory:"false" json:"signature"` +} + +func (m AppCatalogListingResourceVersionAgreements) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogListingResourceVersionAgreements) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_summary.go new file mode 100644 index 0000000000..7755df0611 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_resource_version_summary.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogListingResourceVersionSummary Listing Resource Version summary +type AppCatalogListingResourceVersionSummary struct { + + // The OCID of the listing this resource version belongs to. + ListingId *string `mandatory:"false" json:"listingId"` + + // Date and time the listing resource version was published, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimePublished *common.SDKTime `mandatory:"false" json:"timePublished"` + + // OCID of the listing resource. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // Resource Version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` +} + +func (m AppCatalogListingResourceVersionSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogListingResourceVersionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_summary.go new file mode 100644 index 0000000000..6e78084753 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_listing_summary.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogListingSummary A summary of a listing. +type AppCatalogListingSummary struct { + + // the region free ocid of the listing resource. + ListingId *string `mandatory:"false" json:"listingId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The short summary for the listing. + Summary *string `mandatory:"false" json:"summary"` + + // The name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` +} + +func (m AppCatalogListingSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogListingSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription.go new file mode 100644 index 0000000000..623de085fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogSubscription a subscription for a listing resource version. +type AppCatalogSubscription struct { + + // Name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` + + // The ocid of the listing resource. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Listing resource id. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The short summary to the listing. + Summary *string `mandatory:"false" json:"summary"` + + // The compartmentID of the subscription. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Date and time at which the subscription was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AppCatalogSubscription) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogSubscription) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription_summary.go new file mode 100644 index 0000000000..034230fef7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/app_catalog_subscription_summary.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AppCatalogSubscriptionSummary a subscription summary for a listing resource version. +type AppCatalogSubscriptionSummary struct { + + // Name of the publisher who published this listing. + PublisherName *string `mandatory:"false" json:"publisherName"` + + // The ocid of the listing resource. + ListingId *string `mandatory:"false" json:"listingId"` + + // Listing resource version. + ListingResourceVersion *string `mandatory:"false" json:"listingResourceVersion"` + + // Listing resource id. + ListingResourceId *string `mandatory:"false" json:"listingResourceId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The short summary to the listing. + Summary *string `mandatory:"false" json:"summary"` + + // The compartmentID of the subscription. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Date and time at which the subscription was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m AppCatalogSubscriptionSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AppCatalogSubscriptionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_details.go new file mode 100644 index 0000000000..9fdbf49d7a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachBootVolumeDetails The representation of AttachBootVolumeDetails +type AttachBootVolumeDetails struct { + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Refer the top-level definition of encryptionInTransitType. + // The default value is NONE. + EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` +} + +func (m AttachBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEncryptionInTransitTypeEnum(string(m.EncryptionInTransitType)); !ok && m.EncryptionInTransitType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionInTransitType: %s. Supported values are: %s.", m.EncryptionInTransitType, strings.Join(GetEncryptionInTransitTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go index 4e6d8a6727..79b119e63e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_boot_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachBootVolumeRequest wrapper for the AttachBootVolume operation @@ -38,6 +40,10 @@ func (request AttachBootVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachBootVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request AttachBootVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachBootVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachBootVolumeResponse wrapper for the AttachBootVolume operation type AttachBootVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_details.go new file mode 100644 index 0000000000..a8ccd38d68 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachDavDetails Details to attach a Direct Attached Vnic to an instance. +type AttachDavDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the host instance. + HostInstanceId *string `mandatory:"true" json:"hostInstanceId"` +} + +func (m AttachDavDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachDavDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_request_response.go index 32fa932750..8692f79461 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_dav_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_dav_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachDavRequest wrapper for the AttachDav operation @@ -46,6 +48,10 @@ func (request AttachDavRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachDavRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request AttachDavRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachDavRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachDavResponse wrapper for the AttachDav operation type AttachDavResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_emulated_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_emulated_volume_details.go new file mode 100644 index 0000000000..a4f41bcd4d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_emulated_volume_details.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachEmulatedVolumeDetails The representation of AttachEmulatedVolumeDetails +type AttachEmulatedVolumeDetails struct { + + // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. + Device *string `mandatory:"false" json:"device"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the instance. For AttachVolume operation, this is a required field for the request, + // see AttachVolume. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + + // The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request. + VolumeId *string `mandatory:"false" json:"volumeId"` + + CreateVolumeDetails *CreateVolumeDetails `mandatory:"false" json:"createVolumeDetails"` +} + +//GetDevice returns Device +func (m AttachEmulatedVolumeDetails) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m AttachEmulatedVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetInstanceId returns InstanceId +func (m AttachEmulatedVolumeDetails) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m AttachEmulatedVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m AttachEmulatedVolumeDetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m AttachEmulatedVolumeDetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +//GetVolumeId returns VolumeId +func (m AttachEmulatedVolumeDetails) GetVolumeId() *string { + return m.VolumeId +} + +//GetCreateVolumeDetails returns CreateVolumeDetails +func (m AttachEmulatedVolumeDetails) GetCreateVolumeDetails() *CreateVolumeDetails { + return m.CreateVolumeDetails +} + +func (m AttachEmulatedVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachEmulatedVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AttachEmulatedVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttachEmulatedVolumeDetails AttachEmulatedVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAttachEmulatedVolumeDetails + }{ + "emulated", + (MarshalTypeAttachEmulatedVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_i_scsi_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_i_scsi_volume_details.go new file mode 100644 index 0000000000..336b99ac4b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_i_scsi_volume_details.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachIScsiVolumeDetails The representation of AttachIScsiVolumeDetails +type AttachIScsiVolumeDetails struct { + + // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. + Device *string `mandatory:"false" json:"device"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the instance. For AttachVolume operation, this is a required field for the request, + // see AttachVolume. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + + // The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request. + VolumeId *string `mandatory:"false" json:"volumeId"` + + CreateVolumeDetails *CreateVolumeDetails `mandatory:"false" json:"createVolumeDetails"` + + // Whether to use CHAP authentication for the volume attachment. Defaults to false. + UseChap *bool `mandatory:"false" json:"useChap"` + + // Whether to enable Oracle Cloud Agent to perform the iSCSI login and logout commands after the volume attach or detach operations for non multipath-enabled iSCSI attachments. + IsAgentAutoIscsiLoginEnabled *bool `mandatory:"false" json:"isAgentAutoIscsiLoginEnabled"` + + // Refer the top-level definition of encryptionInTransitType. + // The default value is NONE. + EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` +} + +//GetDevice returns Device +func (m AttachIScsiVolumeDetails) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m AttachIScsiVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetInstanceId returns InstanceId +func (m AttachIScsiVolumeDetails) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m AttachIScsiVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m AttachIScsiVolumeDetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m AttachIScsiVolumeDetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +//GetVolumeId returns VolumeId +func (m AttachIScsiVolumeDetails) GetVolumeId() *string { + return m.VolumeId +} + +//GetCreateVolumeDetails returns CreateVolumeDetails +func (m AttachIScsiVolumeDetails) GetCreateVolumeDetails() *CreateVolumeDetails { + return m.CreateVolumeDetails +} + +func (m AttachIScsiVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachIScsiVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEncryptionInTransitTypeEnum(string(m.EncryptionInTransitType)); !ok && m.EncryptionInTransitType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionInTransitType: %s. Supported values are: %s.", m.EncryptionInTransitType, strings.Join(GetEncryptionInTransitTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AttachIScsiVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttachIScsiVolumeDetails AttachIScsiVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAttachIScsiVolumeDetails + }{ + "iscsi", + (MarshalTypeAttachIScsiVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_details.go new file mode 100644 index 0000000000..5f4a922503 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachInstancePoolInstanceDetails An instance that is to be attached to an instance pool. +type AttachInstancePoolInstanceDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` +} + +func (m AttachInstancePoolInstanceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachInstancePoolInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_request_response.go index d1b78879fc..633c218e80 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_instance_pool_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_instance_pool_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachInstancePoolInstanceRequest wrapper for the AttachInstancePoolInstance operation @@ -41,6 +43,10 @@ func (request AttachInstancePoolInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachInstancePoolInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request AttachInstancePoolInstanceRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachInstancePoolInstanceResponse wrapper for the AttachInstancePoolInstance operation type AttachInstancePoolInstanceResponse struct { @@ -72,7 +89,8 @@ type AttachInstancePoolInstanceResponse struct { // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_details.go new file mode 100644 index 0000000000..542393de78 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachLoadBalancerDetails Represents a load balancer that is to be attached to an instance pool. +type AttachLoadBalancerDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to attach to the instance pool. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The name of the backend set on the load balancer to add instances to. + BackendSetName *string `mandatory:"true" json:"backendSetName"` + + // The port value to use when creating the backend set. + Port *int `mandatory:"true" json:"port"` + + // Indicates which VNIC on each instance in the pool should be used to associate with the load balancer. + // Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration + // that is associated with the instance pool. + VnicSelection *string `mandatory:"true" json:"vnicSelection"` +} + +func (m AttachLoadBalancerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachLoadBalancerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go index 5a1c0b62f3..925510dbe8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachLoadBalancerRequest wrapper for the AttachLoadBalancer operation @@ -46,6 +48,10 @@ func (request AttachLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request AttachLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachLoadBalancerResponse wrapper for the AttachLoadBalancer operation type AttachLoadBalancerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_paravirtualized_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_paravirtualized_volume_details.go new file mode 100644 index 0000000000..478465df54 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_paravirtualized_volume_details.go @@ -0,0 +1,130 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachParavirtualizedVolumeDetails The representation of AttachParavirtualizedVolumeDetails +type AttachParavirtualizedVolumeDetails struct { + + // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. + Device *string `mandatory:"false" json:"device"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the instance. For AttachVolume operation, this is a required field for the request, + // see AttachVolume. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + + // The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request. + VolumeId *string `mandatory:"false" json:"volumeId"` + + CreateVolumeDetails *CreateVolumeDetails `mandatory:"false" json:"createVolumeDetails"` + + // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` +} + +//GetDevice returns Device +func (m AttachParavirtualizedVolumeDetails) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m AttachParavirtualizedVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetInstanceId returns InstanceId +func (m AttachParavirtualizedVolumeDetails) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m AttachParavirtualizedVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m AttachParavirtualizedVolumeDetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m AttachParavirtualizedVolumeDetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +//GetVolumeId returns VolumeId +func (m AttachParavirtualizedVolumeDetails) GetVolumeId() *string { + return m.VolumeId +} + +//GetCreateVolumeDetails returns CreateVolumeDetails +func (m AttachParavirtualizedVolumeDetails) GetCreateVolumeDetails() *CreateVolumeDetails { + return m.CreateVolumeDetails +} + +func (m AttachParavirtualizedVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachParavirtualizedVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AttachParavirtualizedVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttachParavirtualizedVolumeDetails AttachParavirtualizedVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAttachParavirtualizedVolumeDetails + }{ + "paravirtualized", + (MarshalTypeAttachParavirtualizedVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_determined_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_determined_volume_details.go new file mode 100644 index 0000000000..aeffeed305 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_determined_volume_details.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachServiceDeterminedVolumeDetails The representation of AttachServiceDeterminedVolumeDetails +type AttachServiceDeterminedVolumeDetails struct { + + // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. + Device *string `mandatory:"false" json:"device"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the instance. For AttachVolume operation, this is a required field for the request, + // see AttachVolume. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + + // The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request. + VolumeId *string `mandatory:"false" json:"volumeId"` + + CreateVolumeDetails *CreateVolumeDetails `mandatory:"false" json:"createVolumeDetails"` +} + +//GetDevice returns Device +func (m AttachServiceDeterminedVolumeDetails) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m AttachServiceDeterminedVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetInstanceId returns InstanceId +func (m AttachServiceDeterminedVolumeDetails) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m AttachServiceDeterminedVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m AttachServiceDeterminedVolumeDetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m AttachServiceDeterminedVolumeDetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +//GetVolumeId returns VolumeId +func (m AttachServiceDeterminedVolumeDetails) GetVolumeId() *string { + return m.VolumeId +} + +//GetCreateVolumeDetails returns CreateVolumeDetails +func (m AttachServiceDeterminedVolumeDetails) GetCreateVolumeDetails() *CreateVolumeDetails { + return m.CreateVolumeDetails +} + +func (m AttachServiceDeterminedVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachServiceDeterminedVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m AttachServiceDeterminedVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeAttachServiceDeterminedVolumeDetails AttachServiceDeterminedVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeAttachServiceDeterminedVolumeDetails + }{ + "service_determined", + (MarshalTypeAttachServiceDeterminedVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_id_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go index 66d6b4e6eb..9601a88b46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_service_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_service_id_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachServiceIdRequest wrapper for the AttachServiceId operation @@ -39,6 +41,10 @@ func (request AttachServiceIdRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachServiceIdRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request AttachServiceIdRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachServiceIdRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachServiceIdResponse wrapper for the AttachServiceId operation type AttachServiceIdResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_details.go new file mode 100644 index 0000000000..e71d0276b4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachVnicDetails The representation of AttachVnicDetails +type AttachVnicDetails struct { + CreateVnicDetails *CreateVnicDetails `mandatory:"true" json:"createVnicDetails"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the instance. For AttachVnic operation, this is a required field for the request, + // see AttachVnic. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Which physical network interface card (NIC) the VNIC will use. Defaults to 0. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a secondary VNIC to one of these instances, you can specify which NIC + // the VNIC will use. For more information, see + // Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). + NicIndex *int `mandatory:"false" json:"nicIndex"` +} + +func (m AttachVnicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go index 795f928c7c..8bce7a8966 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachVnicRequest wrapper for the AttachVnic operation @@ -38,6 +40,10 @@ func (request AttachVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request AttachVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachVnicResponse wrapper for the AttachVnic operation type AttachVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_details.go new file mode 100644 index 0000000000..3e40ff365b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachVnicToDestinationSmartNicDetails This structure is used when attaching VNIC to destination smartNIC. +type AttachVnicToDestinationSmartNicDetails struct { + + // Live migration session ID + MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` + + // Destination smart NIC's substrate IP address + DestinationSubstrateIp *string `mandatory:"true" json:"destinationSubstrateIp"` + + // Index of NIC that VNIC is attaching to + DestinationNicIndex *int `mandatory:"true" json:"destinationNicIndex"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on source hypervisor that will be used for hypervisor - VCN DP communication. + SourceHypervisorVnicId *string `mandatory:"false" json:"sourceHypervisorVnicId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on destination hypervisor that will be used for hypervisor - VCN DP communication. + DestinationHypervisorVnicId *string `mandatory:"false" json:"destinationHypervisorVnicId"` +} + +func (m AttachVnicToDestinationSmartNicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachVnicToDestinationSmartNicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_request_response.go index 6c6bc66be7..93daaccb26 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_to_destination_smart_nic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_to_destination_smart_nic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachVnicToDestinationSmartNicRequest wrapper for the AttachVnicToDestinationSmartNic operation type AttachVnicToDestinationSmartNicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // Request to attach internal VNIC to destination smart NIC for live migration @@ -46,6 +48,10 @@ func (request AttachVnicToDestinationSmartNicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachVnicToDestinationSmartNicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request AttachVnicToDestinationSmartNicRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachVnicToDestinationSmartNicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachVnicToDestinationSmartNicResponse wrapper for the AttachVnicToDestinationSmartNic operation type AttachVnicToDestinationSmartNicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_details.go new file mode 100644 index 0000000000..d1ac6fc22a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachVnicWorkerDetails the data to attach a vnicWorker to a VM instance +type AttachVnicWorkerDetails struct { + + // The instance where vnicWorker needs to be attached. + WorkerInstanceId *string `mandatory:"true" json:"workerInstanceId"` +} + +func (m AttachVnicWorkerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachVnicWorkerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_request_response.go index 7fabd6f4e1..bf784d3695 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachVnicWorkerRequest wrapper for the AttachVnicWorker operation type AttachVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // Request to Attach a VnicWorker to a VM instance @@ -46,6 +48,10 @@ func (request AttachVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request AttachVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachVnicWorkerResponse wrapper for the AttachVnicWorker operation type AttachVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_details.go new file mode 100644 index 0000000000..e85f3d1ba1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_details.go @@ -0,0 +1,181 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachVolumeDetails The representation of AttachVolumeDetails +type AttachVolumeDetails interface { + + // The device name. To retrieve a list of devices for a given instance, see ListInstanceDevices. + GetDevice() *string + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + GetDisplayName() *string + + // The OCID of the instance. For AttachVolume operation, this is a required field for the request, + // see AttachVolume. + GetInstanceId() *string + + // Whether the attachment was created in read-only mode. + GetIsReadOnly() *bool + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + GetIsShareable() *bool + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + GetImageVolumeIndex() *int + + // The OCID of the volume. If CreateVolumeDetails is specified, this field must be omitted from the request. + GetVolumeId() *string + + GetCreateVolumeDetails() *CreateVolumeDetails +} + +type attachvolumedetails struct { + JsonData []byte + Device *string `mandatory:"false" json:"device"` + DisplayName *string `mandatory:"false" json:"displayName"` + InstanceId *string `mandatory:"false" json:"instanceId"` + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + IsShareable *bool `mandatory:"false" json:"isShareable"` + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + VolumeId *string `mandatory:"false" json:"volumeId"` + CreateVolumeDetails *CreateVolumeDetails `mandatory:"false" json:"createVolumeDetails"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *attachvolumedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerattachvolumedetails attachvolumedetails + s := struct { + Model Unmarshalerattachvolumedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Device = s.Model.Device + m.DisplayName = s.Model.DisplayName + m.InstanceId = s.Model.InstanceId + m.IsReadOnly = s.Model.IsReadOnly + m.IsShareable = s.Model.IsShareable + m.ImageVolumeIndex = s.Model.ImageVolumeIndex + m.VolumeId = s.Model.VolumeId + m.CreateVolumeDetails = s.Model.CreateVolumeDetails + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *attachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "service_determined": + mm := AttachServiceDeterminedVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "emulated": + mm := AttachEmulatedVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "iscsi": + mm := AttachIScsiVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "paravirtualized": + mm := AttachParavirtualizedVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for AttachVolumeDetails: %s.", m.Type) + return *m, nil + } +} + +//GetDevice returns Device +func (m attachvolumedetails) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m attachvolumedetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetInstanceId returns InstanceId +func (m attachvolumedetails) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m attachvolumedetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m attachvolumedetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m attachvolumedetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +//GetVolumeId returns VolumeId +func (m attachvolumedetails) GetVolumeId() *string { + return m.VolumeId +} + +//GetCreateVolumeDetails returns CreateVolumeDetails +func (m attachvolumedetails) GetCreateVolumeDetails() *CreateVolumeDetails { + return m.CreateVolumeDetails +} + +func (m attachvolumedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m attachvolumedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go index 21cd8e20c4..649d6bf5af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/attach_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/attach_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AttachVolumeRequest wrapper for the AttachVolume operation @@ -38,6 +40,10 @@ func (request AttachVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AttachVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request AttachVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AttachVolumeResponse wrapper for the AttachVolume operation type AttachVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/autotune_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/autotune_policy.go new file mode 100644 index 0000000000..7b1d891c5b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/autotune_policy.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AutotunePolicy An autotune policy automatically tunes the volume's performace based on the type of the policy. +type AutotunePolicy interface { +} + +type autotunepolicy struct { + JsonData []byte + AutotuneType string `json:"autotuneType"` +} + +// UnmarshalJSON unmarshals json +func (m *autotunepolicy) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerautotunepolicy autotunepolicy + s := struct { + Model Unmarshalerautotunepolicy + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.AutotuneType = s.Model.AutotuneType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *autotunepolicy) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.AutotuneType { + case "DETACHED_VOLUME": + mm := DetachedVolumeAutotunePolicy{} + err = json.Unmarshal(data, &mm) + return mm, err + case "PERFORMANCE_BASED": + mm := PerformanceBasedAutotunePolicy{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for AutotunePolicy: %s.", m.AutotuneType) + return *m, nil + } +} + +func (m autotunepolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m autotunepolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AutotunePolicyAutotuneTypeEnum Enum with underlying type: string +type AutotunePolicyAutotuneTypeEnum string + +// Set of constants representing the allowable values for AutotunePolicyAutotuneTypeEnum +const ( + AutotunePolicyAutotuneTypeDetachedVolume AutotunePolicyAutotuneTypeEnum = "DETACHED_VOLUME" + AutotunePolicyAutotuneTypePerformanceBased AutotunePolicyAutotuneTypeEnum = "PERFORMANCE_BASED" +) + +var mappingAutotunePolicyAutotuneTypeEnum = map[string]AutotunePolicyAutotuneTypeEnum{ + "DETACHED_VOLUME": AutotunePolicyAutotuneTypeDetachedVolume, + "PERFORMANCE_BASED": AutotunePolicyAutotuneTypePerformanceBased, +} + +var mappingAutotunePolicyAutotuneTypeEnumLowerCase = map[string]AutotunePolicyAutotuneTypeEnum{ + "detached_volume": AutotunePolicyAutotuneTypeDetachedVolume, + "performance_based": AutotunePolicyAutotuneTypePerformanceBased, +} + +// GetAutotunePolicyAutotuneTypeEnumValues Enumerates the set of values for AutotunePolicyAutotuneTypeEnum +func GetAutotunePolicyAutotuneTypeEnumValues() []AutotunePolicyAutotuneTypeEnum { + values := make([]AutotunePolicyAutotuneTypeEnum, 0) + for _, v := range mappingAutotunePolicyAutotuneTypeEnum { + values = append(values, v) + } + return values +} + +// GetAutotunePolicyAutotuneTypeEnumStringValues Enumerates the set of values in String for AutotunePolicyAutotuneTypeEnum +func GetAutotunePolicyAutotuneTypeEnumStringValues() []string { + return []string{ + "DETACHED_VOLUME", + "PERFORMANCE_BASED", + } +} + +// GetMappingAutotunePolicyAutotuneTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAutotunePolicyAutotuneTypeEnum(val string) (AutotunePolicyAutotuneTypeEnum, bool) { + enum, ok := mappingAutotunePolicyAutotuneTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill.go new file mode 100644 index 0000000000..161a854117 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Backfill Response of DRG Backfill +type Backfill struct { + + // The number of successfully mirrored drgs from the given batch + SuccessCount *int `mandatory:"true" json:"successCount"` +} + +func (m Backfill) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Backfill) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_details.go new file mode 100644 index 0000000000..b57798f5a5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_details.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackfillDetails Request details for DRG backfill from VCN to EP-DB +type BackfillDetails struct { + + // The tenancy OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of drgs to be backfilled + TenancyId *string `mandatory:"false" json:"tenancyId"` + + // The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of drgs to be backfilled + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a specific drg to be mirrored + DrgId *string `mandatory:"false" json:"drgId"` +} + +func (m BackfillDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackfillDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_request_response.go index 7e19a953db..96542fae1d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/backfill_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/backfill_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BackfillRequest wrapper for the Backfill operation @@ -38,6 +40,10 @@ func (request BackfillRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BackfillRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request BackfillRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BackfillRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BackfillResponse wrapper for the Backfill operation type BackfillResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/base64_ssl_cert_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/base64_ssl_cert_details.go new file mode 100644 index 0000000000..79243f537a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/base64_ssl_cert_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Base64SslCertDetails The 64-based encoded SslCert. +type Base64SslCertDetails struct { + + // The base 64 encoded string for the Ssl Certificate. + CertContent *string `mandatory:"false" json:"certContent"` +} + +func (m Base64SslCertDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Base64SslCertDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m Base64SslCertDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeBase64SslCertDetails Base64SslCertDetails + s := struct { + DiscriminatorParam string `json:"contentType"` + MarshalTypeBase64SslCertDetails + }{ + "BASE64ENCODED", + (MarshalTypeBase64SslCertDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/bgp_session_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bgp_session_info.go new file mode 100644 index 0000000000..a27b7a699f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bgp_session_info.go @@ -0,0 +1,187 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BgpSessionInfo Information for establishing a BGP session for the IPSec tunnel. +type BgpSessionInfo struct { + + // The IP address for the Oracle end of the inside tunnel interface. + // If the tunnel's `routing` attribute is set to `BGP` + // (see IPSecConnectionTunnel), this IP address + // is required and used for the tunnel's BGP session. + // If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP + // address so you can troubleshoot or monitor the tunnel. + // The value must be a /30 or /31. + // Example: `10.0.0.4/31` + OracleInterfaceIp *string `mandatory:"false" json:"oracleInterfaceIp"` + + // The IP address for the CPE end of the inside tunnel interface. + // If the tunnel's `routing` attribute is set to `BGP` + // (see IPSecConnectionTunnel), this IP address + // is required and used for the tunnel's BGP session. + // If `routing` is instead set to `STATIC`, this IP address is optional. You can set this IP + // address so you can troubleshoot or monitor the tunnel. + // The value must be a /30 or /31. + // Example: `10.0.0.5/31` + CustomerInterfaceIp *string `mandatory:"false" json:"customerInterfaceIp"` + + // The IPv6 address for the Oracle end of the inside tunnel interface. This IP address is optional. + // If the tunnel's `routing` attribute is set to `BGP` + // (see IPSecConnectionTunnel), this IP address + // is used for the tunnel's BGP session. + // If `routing` is instead set to `STATIC`, you can set this IP + // address to troubleshoot or monitor the tunnel. + // Only subnet masks from /64 up to /127 are allowed. + // Example: `2001:db8::1/64` + OracleInterfaceIpv6 *string `mandatory:"false" json:"oracleInterfaceIpv6"` + + // The IPv6 address for the CPE end of the inside tunnel interface. This IP address is optional. + // If the tunnel's `routing` attribute is set to `BGP` + // (see IPSecConnectionTunnel), this IP address + // is used for the tunnel's BGP session. + // If `routing` is instead set to `STATIC`, you can set this IP + // address to troubleshoot or monitor the tunnel. + // Only subnet masks from /64 up to /127 are allowed. + // Example: `2001:db8::1/64` + CustomerInterfaceIpv6 *string `mandatory:"false" json:"customerInterfaceIpv6"` + + // The Oracle BGP ASN. + OracleBgpAsn *string `mandatory:"false" json:"oracleBgpAsn"` + + // If the tunnel's `routing` attribute is set to `BGP` + // (see IPSecConnectionTunnel), this ASN + // is required and used for the tunnel's BGP session. This is the ASN of the network on the + // CPE end of the BGP session. Can be a 2-byte or 4-byte ASN. Uses "asplain" format. + // If the tunnel uses static routing, the `customerBgpAsn` must be null. + // Example: `12345` (2-byte) or `1587232876` (4-byte) + CustomerBgpAsn *string `mandatory:"false" json:"customerBgpAsn"` + + // The state of the BGP session. + BgpState BgpSessionInfoBgpStateEnum `mandatory:"false" json:"bgpState,omitempty"` + + // The state of the BGP IPv6 session. + BgpIpv6State BgpSessionInfoBgpIpv6StateEnum `mandatory:"false" json:"bgpIpv6State,omitempty"` +} + +func (m BgpSessionInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BgpSessionInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingBgpSessionInfoBgpStateEnum(string(m.BgpState)); !ok && m.BgpState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpState: %s. Supported values are: %s.", m.BgpState, strings.Join(GetBgpSessionInfoBgpStateEnumStringValues(), ","))) + } + if _, ok := GetMappingBgpSessionInfoBgpIpv6StateEnum(string(m.BgpIpv6State)); !ok && m.BgpIpv6State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpIpv6State: %s. Supported values are: %s.", m.BgpIpv6State, strings.Join(GetBgpSessionInfoBgpIpv6StateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BgpSessionInfoBgpStateEnum Enum with underlying type: string +type BgpSessionInfoBgpStateEnum string + +// Set of constants representing the allowable values for BgpSessionInfoBgpStateEnum +const ( + BgpSessionInfoBgpStateUp BgpSessionInfoBgpStateEnum = "UP" + BgpSessionInfoBgpStateDown BgpSessionInfoBgpStateEnum = "DOWN" +) + +var mappingBgpSessionInfoBgpStateEnum = map[string]BgpSessionInfoBgpStateEnum{ + "UP": BgpSessionInfoBgpStateUp, + "DOWN": BgpSessionInfoBgpStateDown, +} + +var mappingBgpSessionInfoBgpStateEnumLowerCase = map[string]BgpSessionInfoBgpStateEnum{ + "up": BgpSessionInfoBgpStateUp, + "down": BgpSessionInfoBgpStateDown, +} + +// GetBgpSessionInfoBgpStateEnumValues Enumerates the set of values for BgpSessionInfoBgpStateEnum +func GetBgpSessionInfoBgpStateEnumValues() []BgpSessionInfoBgpStateEnum { + values := make([]BgpSessionInfoBgpStateEnum, 0) + for _, v := range mappingBgpSessionInfoBgpStateEnum { + values = append(values, v) + } + return values +} + +// GetBgpSessionInfoBgpStateEnumStringValues Enumerates the set of values in String for BgpSessionInfoBgpStateEnum +func GetBgpSessionInfoBgpStateEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingBgpSessionInfoBgpStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBgpSessionInfoBgpStateEnum(val string) (BgpSessionInfoBgpStateEnum, bool) { + enum, ok := mappingBgpSessionInfoBgpStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// BgpSessionInfoBgpIpv6StateEnum Enum with underlying type: string +type BgpSessionInfoBgpIpv6StateEnum string + +// Set of constants representing the allowable values for BgpSessionInfoBgpIpv6StateEnum +const ( + BgpSessionInfoBgpIpv6StateUp BgpSessionInfoBgpIpv6StateEnum = "UP" + BgpSessionInfoBgpIpv6StateDown BgpSessionInfoBgpIpv6StateEnum = "DOWN" +) + +var mappingBgpSessionInfoBgpIpv6StateEnum = map[string]BgpSessionInfoBgpIpv6StateEnum{ + "UP": BgpSessionInfoBgpIpv6StateUp, + "DOWN": BgpSessionInfoBgpIpv6StateDown, +} + +var mappingBgpSessionInfoBgpIpv6StateEnumLowerCase = map[string]BgpSessionInfoBgpIpv6StateEnum{ + "up": BgpSessionInfoBgpIpv6StateUp, + "down": BgpSessionInfoBgpIpv6StateDown, +} + +// GetBgpSessionInfoBgpIpv6StateEnumValues Enumerates the set of values for BgpSessionInfoBgpIpv6StateEnum +func GetBgpSessionInfoBgpIpv6StateEnumValues() []BgpSessionInfoBgpIpv6StateEnum { + values := make([]BgpSessionInfoBgpIpv6StateEnum, 0) + for _, v := range mappingBgpSessionInfoBgpIpv6StateEnum { + values = append(values, v) + } + return values +} + +// GetBgpSessionInfoBgpIpv6StateEnumStringValues Enumerates the set of values in String for BgpSessionInfoBgpIpv6StateEnum +func GetBgpSessionInfoBgpIpv6StateEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingBgpSessionInfoBgpIpv6StateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBgpSessionInfoBgpIpv6StateEnum(val string) (BgpSessionInfoBgpIpv6StateEnum, bool) { + enum, ok := mappingBgpSessionInfoBgpIpv6StateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica.go new file mode 100644 index 0000000000..10e9a50241 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica.go @@ -0,0 +1,156 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BlockVolumeReplica An asynchronous replica of a block volume that can then be used to create +// a new block volume or recover a block volume. For more information, see Overview +// of Cross-Region Volume Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumereplication.htm) +// To use any of the API operations, you must be authorized in an IAM policy. +// If you're not authorized, talk to an administrator. If you're an administrator +// who needs to write policies to give users access, see Getting Started with +// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type BlockVolumeReplica struct { + + // The availability domain of the block volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the block volume replica. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The block volume replica's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The current state of a block volume replica. + LifecycleState BlockVolumeReplicaLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The size of the source block volume, in GBs. + SizeInGBs *int64 `mandatory:"true" json:"sizeInGBs"` + + // The date and time the block volume replica was created. Format defined + // by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the block volume replica was last synced from the source block volume. + // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeLastSynced *common.SDKTime `mandatory:"true" json:"timeLastSynced"` + + // The OCID of the source block volume. + BlockVolumeId *string `mandatory:"true" json:"blockVolumeId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The total size of the data transferred from the source block volume to the block volume replica, in GBs. + TotalDataTransferredInGBs *int64 `mandatory:"false" json:"totalDataTransferredInGBs"` + + // The OCID of the volume group replica. + VolumeGroupReplicaId *string `mandatory:"false" json:"volumeGroupReplicaId"` +} + +func (m BlockVolumeReplica) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BlockVolumeReplica) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBlockVolumeReplicaLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBlockVolumeReplicaLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BlockVolumeReplicaLifecycleStateEnum Enum with underlying type: string +type BlockVolumeReplicaLifecycleStateEnum string + +// Set of constants representing the allowable values for BlockVolumeReplicaLifecycleStateEnum +const ( + BlockVolumeReplicaLifecycleStateProvisioning BlockVolumeReplicaLifecycleStateEnum = "PROVISIONING" + BlockVolumeReplicaLifecycleStateAvailable BlockVolumeReplicaLifecycleStateEnum = "AVAILABLE" + BlockVolumeReplicaLifecycleStateActivating BlockVolumeReplicaLifecycleStateEnum = "ACTIVATING" + BlockVolumeReplicaLifecycleStateTerminating BlockVolumeReplicaLifecycleStateEnum = "TERMINATING" + BlockVolumeReplicaLifecycleStateTerminated BlockVolumeReplicaLifecycleStateEnum = "TERMINATED" + BlockVolumeReplicaLifecycleStateFaulty BlockVolumeReplicaLifecycleStateEnum = "FAULTY" +) + +var mappingBlockVolumeReplicaLifecycleStateEnum = map[string]BlockVolumeReplicaLifecycleStateEnum{ + "PROVISIONING": BlockVolumeReplicaLifecycleStateProvisioning, + "AVAILABLE": BlockVolumeReplicaLifecycleStateAvailable, + "ACTIVATING": BlockVolumeReplicaLifecycleStateActivating, + "TERMINATING": BlockVolumeReplicaLifecycleStateTerminating, + "TERMINATED": BlockVolumeReplicaLifecycleStateTerminated, + "FAULTY": BlockVolumeReplicaLifecycleStateFaulty, +} + +var mappingBlockVolumeReplicaLifecycleStateEnumLowerCase = map[string]BlockVolumeReplicaLifecycleStateEnum{ + "provisioning": BlockVolumeReplicaLifecycleStateProvisioning, + "available": BlockVolumeReplicaLifecycleStateAvailable, + "activating": BlockVolumeReplicaLifecycleStateActivating, + "terminating": BlockVolumeReplicaLifecycleStateTerminating, + "terminated": BlockVolumeReplicaLifecycleStateTerminated, + "faulty": BlockVolumeReplicaLifecycleStateFaulty, +} + +// GetBlockVolumeReplicaLifecycleStateEnumValues Enumerates the set of values for BlockVolumeReplicaLifecycleStateEnum +func GetBlockVolumeReplicaLifecycleStateEnumValues() []BlockVolumeReplicaLifecycleStateEnum { + values := make([]BlockVolumeReplicaLifecycleStateEnum, 0) + for _, v := range mappingBlockVolumeReplicaLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetBlockVolumeReplicaLifecycleStateEnumStringValues Enumerates the set of values in String for BlockVolumeReplicaLifecycleStateEnum +func GetBlockVolumeReplicaLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "ACTIVATING", + "TERMINATING", + "TERMINATED", + "FAULTY", + } +} + +// GetMappingBlockVolumeReplicaLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBlockVolumeReplicaLifecycleStateEnum(val string) (BlockVolumeReplicaLifecycleStateEnum, bool) { + enum, ok := mappingBlockVolumeReplicaLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_details.go new file mode 100644 index 0000000000..c4e68e2ff2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BlockVolumeReplicaDetails Contains the details for the block volume replica +type BlockVolumeReplicaDetails struct { + + // The availability domain of the block volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m BlockVolumeReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BlockVolumeReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_info.go new file mode 100644 index 0000000000..e2cc6824cb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/block_volume_replica_info.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BlockVolumeReplicaInfo Information about the block volume replica in the destination availability domain. +type BlockVolumeReplicaInfo struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The block volume replica's Oracle ID (OCID). + BlockVolumeReplicaId *string `mandatory:"true" json:"blockVolumeReplicaId"` + + // The availability domain of the block volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` +} + +func (m BlockVolumeReplicaInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BlockVolumeReplicaInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boolean_image_capability_schema_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boolean_image_capability_schema_descriptor.go new file mode 100644 index 0000000000..a2d0d9a600 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boolean_image_capability_schema_descriptor.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BooleanImageCapabilitySchemaDescriptor Boolean type ImageCapabilitySchemaDescriptor +type BooleanImageCapabilitySchemaDescriptor struct { + + // the default value + DefaultValue *bool `mandatory:"false" json:"defaultValue"` + + Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` +} + +//GetSource returns Source +func (m BooleanImageCapabilitySchemaDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { + return m.Source +} + +func (m BooleanImageCapabilitySchemaDescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BooleanImageCapabilitySchemaDescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageCapabilitySchemaDescriptorSourceEnum(string(m.Source)); !ok && m.Source != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Source: %s. Supported values are: %s.", m.Source, strings.Join(GetImageCapabilitySchemaDescriptorSourceEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m BooleanImageCapabilitySchemaDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeBooleanImageCapabilitySchemaDescriptor BooleanImageCapabilitySchemaDescriptor + s := struct { + DiscriminatorParam string `json:"descriptorType"` + MarshalTypeBooleanImageCapabilitySchemaDescriptor + }{ + "boolean", + (MarshalTypeBooleanImageCapabilitySchemaDescriptor)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume.go new file mode 100644 index 0000000000..79e9474411 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume.go @@ -0,0 +1,286 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolume A detachable boot volume device that contains the image used to boot a Compute instance. For more information, see +// Overview of Boot Volumes (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumes.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type BootVolume struct { + + // The availability domain of the boot volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the boot volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The boot volume's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The current state of a boot volume. + LifecycleState BootVolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The size of the volume in MBs. The value must be a multiple of 1024. + // This field is deprecated. Please use sizeInGBs. + SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` + + // The date and time the boot volume was created. Format defined + // by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The image OCID used to create the boot volume. + ImageId *string `mandatory:"false" json:"imageId"` + + // Specifies whether the boot volume's data has finished copying + // from the source boot volume or boot volume backup. + IsHydrated *bool `mandatory:"false" json:"isHydrated"` + + // The number of volume performance units (VPUs) that will be applied to this boot volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // The size of the boot volume in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + SourceDetails BootVolumeSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The OCID of the source volume group. + VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` + + // The OCID of the Vault service master encryption key assigned to the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // Specifies whether the auto-tune performance is enabled for this boot volume. This field is deprecated. + // Use the `DetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The number of Volume Performance Units per GB that this boot volume is effectively tuned to. + AutoTunedVpusPerGB *int64 `mandatory:"false" json:"autoTunedVpusPerGB"` + + // The list of boot volume replicas of this boot volume + BootVolumeReplicas []BootVolumeReplicaInfo `mandatory:"false" json:"bootVolumeReplicas"` + + // The list of autotune policies enabled for this volume. + AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` +} + +func (m BootVolume) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolume) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBootVolumeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBootVolumeLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *BootVolume) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + ImageId *string `json:"imageId"` + IsHydrated *bool `json:"isHydrated"` + VpusPerGB *int64 `json:"vpusPerGB"` + SizeInGBs *int64 `json:"sizeInGBs"` + SourceDetails bootvolumesourcedetails `json:"sourceDetails"` + VolumeGroupId *string `json:"volumeGroupId"` + KmsKeyId *string `json:"kmsKeyId"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB"` + BootVolumeReplicas []BootVolumeReplicaInfo `json:"bootVolumeReplicas"` + AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + Id *string `json:"id"` + LifecycleState BootVolumeLifecycleStateEnum `json:"lifecycleState"` + SizeInMBs *int64 `json:"sizeInMBs"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.SystemTags = model.SystemTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.ImageId = model.ImageId + + m.IsHydrated = model.IsHydrated + + m.VpusPerGB = model.VpusPerGB + + m.SizeInGBs = model.SizeInGBs + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(BootVolumeSourceDetails) + } else { + m.SourceDetails = nil + } + + m.VolumeGroupId = model.VolumeGroupId + + m.KmsKeyId = model.KmsKeyId + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.AutoTunedVpusPerGB = model.AutoTunedVpusPerGB + + m.BootVolumeReplicas = make([]BootVolumeReplicaInfo, len(model.BootVolumeReplicas)) + for i, n := range model.BootVolumeReplicas { + m.BootVolumeReplicas[i] = n + } + + m.AutotunePolicies = make([]AutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(AutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + m.AvailabilityDomain = model.AvailabilityDomain + + m.CompartmentId = model.CompartmentId + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.SizeInMBs = model.SizeInMBs + + m.TimeCreated = model.TimeCreated + + return +} + +// BootVolumeLifecycleStateEnum Enum with underlying type: string +type BootVolumeLifecycleStateEnum string + +// Set of constants representing the allowable values for BootVolumeLifecycleStateEnum +const ( + BootVolumeLifecycleStateProvisioning BootVolumeLifecycleStateEnum = "PROVISIONING" + BootVolumeLifecycleStateRestoring BootVolumeLifecycleStateEnum = "RESTORING" + BootVolumeLifecycleStateAvailable BootVolumeLifecycleStateEnum = "AVAILABLE" + BootVolumeLifecycleStateTerminating BootVolumeLifecycleStateEnum = "TERMINATING" + BootVolumeLifecycleStateTerminated BootVolumeLifecycleStateEnum = "TERMINATED" + BootVolumeLifecycleStateFaulty BootVolumeLifecycleStateEnum = "FAULTY" +) + +var mappingBootVolumeLifecycleStateEnum = map[string]BootVolumeLifecycleStateEnum{ + "PROVISIONING": BootVolumeLifecycleStateProvisioning, + "RESTORING": BootVolumeLifecycleStateRestoring, + "AVAILABLE": BootVolumeLifecycleStateAvailable, + "TERMINATING": BootVolumeLifecycleStateTerminating, + "TERMINATED": BootVolumeLifecycleStateTerminated, + "FAULTY": BootVolumeLifecycleStateFaulty, +} + +var mappingBootVolumeLifecycleStateEnumLowerCase = map[string]BootVolumeLifecycleStateEnum{ + "provisioning": BootVolumeLifecycleStateProvisioning, + "restoring": BootVolumeLifecycleStateRestoring, + "available": BootVolumeLifecycleStateAvailable, + "terminating": BootVolumeLifecycleStateTerminating, + "terminated": BootVolumeLifecycleStateTerminated, + "faulty": BootVolumeLifecycleStateFaulty, +} + +// GetBootVolumeLifecycleStateEnumValues Enumerates the set of values for BootVolumeLifecycleStateEnum +func GetBootVolumeLifecycleStateEnumValues() []BootVolumeLifecycleStateEnum { + values := make([]BootVolumeLifecycleStateEnum, 0) + for _, v := range mappingBootVolumeLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetBootVolumeLifecycleStateEnumStringValues Enumerates the set of values in String for BootVolumeLifecycleStateEnum +func GetBootVolumeLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "RESTORING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "FAULTY", + } +} + +// GetMappingBootVolumeLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBootVolumeLifecycleStateEnum(val string) (BootVolumeLifecycleStateEnum, bool) { + enum, ok := mappingBootVolumeLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_attachment.go new file mode 100644 index 0000000000..deb875a104 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_attachment.go @@ -0,0 +1,132 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeAttachment Represents an attachment between a boot volume and an instance. +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type BootVolumeAttachment struct { + + // The availability domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the boot volume attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance the boot volume is attached to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the boot volume attachment. + LifecycleState BootVolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the boot volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether in-transit encryption for the boot volume's paravirtualized attachment is enabled or not. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Refer the top-level definition of encryptionInTransitType. + // The default value is NONE. + EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` +} + +func (m BootVolumeAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBootVolumeAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBootVolumeAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingEncryptionInTransitTypeEnum(string(m.EncryptionInTransitType)); !ok && m.EncryptionInTransitType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionInTransitType: %s. Supported values are: %s.", m.EncryptionInTransitType, strings.Join(GetEncryptionInTransitTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BootVolumeAttachmentLifecycleStateEnum Enum with underlying type: string +type BootVolumeAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for BootVolumeAttachmentLifecycleStateEnum +const ( + BootVolumeAttachmentLifecycleStateAttaching BootVolumeAttachmentLifecycleStateEnum = "ATTACHING" + BootVolumeAttachmentLifecycleStateAttached BootVolumeAttachmentLifecycleStateEnum = "ATTACHED" + BootVolumeAttachmentLifecycleStateDetaching BootVolumeAttachmentLifecycleStateEnum = "DETACHING" + BootVolumeAttachmentLifecycleStateDetached BootVolumeAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingBootVolumeAttachmentLifecycleStateEnum = map[string]BootVolumeAttachmentLifecycleStateEnum{ + "ATTACHING": BootVolumeAttachmentLifecycleStateAttaching, + "ATTACHED": BootVolumeAttachmentLifecycleStateAttached, + "DETACHING": BootVolumeAttachmentLifecycleStateDetaching, + "DETACHED": BootVolumeAttachmentLifecycleStateDetached, +} + +var mappingBootVolumeAttachmentLifecycleStateEnumLowerCase = map[string]BootVolumeAttachmentLifecycleStateEnum{ + "attaching": BootVolumeAttachmentLifecycleStateAttaching, + "attached": BootVolumeAttachmentLifecycleStateAttached, + "detaching": BootVolumeAttachmentLifecycleStateDetaching, + "detached": BootVolumeAttachmentLifecycleStateDetached, +} + +// GetBootVolumeAttachmentLifecycleStateEnumValues Enumerates the set of values for BootVolumeAttachmentLifecycleStateEnum +func GetBootVolumeAttachmentLifecycleStateEnumValues() []BootVolumeAttachmentLifecycleStateEnum { + values := make([]BootVolumeAttachmentLifecycleStateEnum, 0) + for _, v := range mappingBootVolumeAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetBootVolumeAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for BootVolumeAttachmentLifecycleStateEnum +func GetBootVolumeAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingBootVolumeAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBootVolumeAttachmentLifecycleStateEnum(val string) (BootVolumeAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingBootVolumeAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup.go new file mode 100644 index 0000000000..fe861d332a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup.go @@ -0,0 +1,271 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeBackup A point-in-time copy of a boot volume that can then be used to create +// a new boot volume or recover a boot volume. For more information, see Overview +// of Boot Volume Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/bootvolumebackups.htm) +// To use any of the API operations, you must be authorized in an IAM policy. +// If you're not authorized, talk to an administrator. If you're an administrator +// who needs to write policies to give users access, see Getting Started with +// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type BootVolumeBackup struct { + + // The OCID of the compartment that contains the boot volume backup. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the boot volume backup. + Id *string `mandatory:"true" json:"id"` + + // The current state of a boot volume backup. + LifecycleState BootVolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the boot volume backup was created. This is the time the actual point-in-time image + // of the volume data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"false" json:"bootVolumeId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The date and time the volume backup will expire and be automatically deleted. + // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for backups that + // were created automatically by a scheduled-backup policy. For manually created backups, + // it will be absent, signifying that there is no expiration time and the backup will + // last forever until manually deleted. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The image OCID used to create the boot volume the backup is taken from. + ImageId *string `mandatory:"false" json:"imageId"` + + // The OCID of the Vault service master encryption assigned to the boot volume backup. + // For more information about the Vault service and encryption keys, see + // Overview of Vault service (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The size of the boot volume, in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // The OCID of the source boot volume backup. + SourceBootVolumeBackupId *string `mandatory:"false" json:"sourceBootVolumeBackupId"` + + // Specifies whether the backup was created manually, or via scheduled backup policy. + SourceType BootVolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + // The date and time the request to create the boot volume backup was received. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` + + // The type of a volume backup. + Type BootVolumeBackupTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space + // consumed on the boot volume and whether the backup is full or incremental. + UniqueSizeInGBs *int64 `mandatory:"false" json:"uniqueSizeInGBs"` + + // The percentage complete of the operation to create the boot volume backup, based on the boot volume backup size. + BackupProgress *int `mandatory:"false" json:"backupProgress"` +} + +func (m BootVolumeBackup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeBackup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBootVolumeBackupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBootVolumeBackupLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingBootVolumeBackupSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetBootVolumeBackupSourceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingBootVolumeBackupTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetBootVolumeBackupTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BootVolumeBackupLifecycleStateEnum Enum with underlying type: string +type BootVolumeBackupLifecycleStateEnum string + +// Set of constants representing the allowable values for BootVolumeBackupLifecycleStateEnum +const ( + BootVolumeBackupLifecycleStateCreating BootVolumeBackupLifecycleStateEnum = "CREATING" + BootVolumeBackupLifecycleStateAvailable BootVolumeBackupLifecycleStateEnum = "AVAILABLE" + BootVolumeBackupLifecycleStateTerminating BootVolumeBackupLifecycleStateEnum = "TERMINATING" + BootVolumeBackupLifecycleStateTerminated BootVolumeBackupLifecycleStateEnum = "TERMINATED" + BootVolumeBackupLifecycleStateFaulty BootVolumeBackupLifecycleStateEnum = "FAULTY" + BootVolumeBackupLifecycleStateRequestReceived BootVolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" +) + +var mappingBootVolumeBackupLifecycleStateEnum = map[string]BootVolumeBackupLifecycleStateEnum{ + "CREATING": BootVolumeBackupLifecycleStateCreating, + "AVAILABLE": BootVolumeBackupLifecycleStateAvailable, + "TERMINATING": BootVolumeBackupLifecycleStateTerminating, + "TERMINATED": BootVolumeBackupLifecycleStateTerminated, + "FAULTY": BootVolumeBackupLifecycleStateFaulty, + "REQUEST_RECEIVED": BootVolumeBackupLifecycleStateRequestReceived, +} + +var mappingBootVolumeBackupLifecycleStateEnumLowerCase = map[string]BootVolumeBackupLifecycleStateEnum{ + "creating": BootVolumeBackupLifecycleStateCreating, + "available": BootVolumeBackupLifecycleStateAvailable, + "terminating": BootVolumeBackupLifecycleStateTerminating, + "terminated": BootVolumeBackupLifecycleStateTerminated, + "faulty": BootVolumeBackupLifecycleStateFaulty, + "request_received": BootVolumeBackupLifecycleStateRequestReceived, +} + +// GetBootVolumeBackupLifecycleStateEnumValues Enumerates the set of values for BootVolumeBackupLifecycleStateEnum +func GetBootVolumeBackupLifecycleStateEnumValues() []BootVolumeBackupLifecycleStateEnum { + values := make([]BootVolumeBackupLifecycleStateEnum, 0) + for _, v := range mappingBootVolumeBackupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetBootVolumeBackupLifecycleStateEnumStringValues Enumerates the set of values in String for BootVolumeBackupLifecycleStateEnum +func GetBootVolumeBackupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "FAULTY", + "REQUEST_RECEIVED", + } +} + +// GetMappingBootVolumeBackupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBootVolumeBackupLifecycleStateEnum(val string) (BootVolumeBackupLifecycleStateEnum, bool) { + enum, ok := mappingBootVolumeBackupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// BootVolumeBackupSourceTypeEnum Enum with underlying type: string +type BootVolumeBackupSourceTypeEnum string + +// Set of constants representing the allowable values for BootVolumeBackupSourceTypeEnum +const ( + BootVolumeBackupSourceTypeManual BootVolumeBackupSourceTypeEnum = "MANUAL" + BootVolumeBackupSourceTypeScheduled BootVolumeBackupSourceTypeEnum = "SCHEDULED" +) + +var mappingBootVolumeBackupSourceTypeEnum = map[string]BootVolumeBackupSourceTypeEnum{ + "MANUAL": BootVolumeBackupSourceTypeManual, + "SCHEDULED": BootVolumeBackupSourceTypeScheduled, +} + +var mappingBootVolumeBackupSourceTypeEnumLowerCase = map[string]BootVolumeBackupSourceTypeEnum{ + "manual": BootVolumeBackupSourceTypeManual, + "scheduled": BootVolumeBackupSourceTypeScheduled, +} + +// GetBootVolumeBackupSourceTypeEnumValues Enumerates the set of values for BootVolumeBackupSourceTypeEnum +func GetBootVolumeBackupSourceTypeEnumValues() []BootVolumeBackupSourceTypeEnum { + values := make([]BootVolumeBackupSourceTypeEnum, 0) + for _, v := range mappingBootVolumeBackupSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetBootVolumeBackupSourceTypeEnumStringValues Enumerates the set of values in String for BootVolumeBackupSourceTypeEnum +func GetBootVolumeBackupSourceTypeEnumStringValues() []string { + return []string{ + "MANUAL", + "SCHEDULED", + } +} + +// GetMappingBootVolumeBackupSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBootVolumeBackupSourceTypeEnum(val string) (BootVolumeBackupSourceTypeEnum, bool) { + enum, ok := mappingBootVolumeBackupSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// BootVolumeBackupTypeEnum Enum with underlying type: string +type BootVolumeBackupTypeEnum string + +// Set of constants representing the allowable values for BootVolumeBackupTypeEnum +const ( + BootVolumeBackupTypeFull BootVolumeBackupTypeEnum = "FULL" + BootVolumeBackupTypeIncremental BootVolumeBackupTypeEnum = "INCREMENTAL" +) + +var mappingBootVolumeBackupTypeEnum = map[string]BootVolumeBackupTypeEnum{ + "FULL": BootVolumeBackupTypeFull, + "INCREMENTAL": BootVolumeBackupTypeIncremental, +} + +var mappingBootVolumeBackupTypeEnumLowerCase = map[string]BootVolumeBackupTypeEnum{ + "full": BootVolumeBackupTypeFull, + "incremental": BootVolumeBackupTypeIncremental, +} + +// GetBootVolumeBackupTypeEnumValues Enumerates the set of values for BootVolumeBackupTypeEnum +func GetBootVolumeBackupTypeEnumValues() []BootVolumeBackupTypeEnum { + values := make([]BootVolumeBackupTypeEnum, 0) + for _, v := range mappingBootVolumeBackupTypeEnum { + values = append(values, v) + } + return values +} + +// GetBootVolumeBackupTypeEnumStringValues Enumerates the set of values in String for BootVolumeBackupTypeEnum +func GetBootVolumeBackupTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingBootVolumeBackupTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBootVolumeBackupTypeEnum(val string) (BootVolumeBackupTypeEnum, bool) { + enum, ok := mappingBootVolumeBackupTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup_source_details.go new file mode 100644 index 0000000000..803247da95 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_backup_source_details.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeBackupSourceDetails Define volume parameters that will be utilized to define a BootVolume and a BootVolumeAttachment on the +// creation of an Instance. +type BootVolumeBackupSourceDetails struct { + + // The ocid of the VolumeBackup that will be utilized as the source for creating the Volume to attach to the + // Instance. + // Warning: This VolumeBackup will not longer be usable or accessible once this operation is completed. It will + // become a part of the Image. + VolumeBackupId *string `mandatory:"true" json:"volumeBackupId"` +} + +//GetVolumeBackupId returns VolumeBackupId +func (m BootVolumeBackupSourceDetails) GetVolumeBackupId() *string { + return m.VolumeBackupId +} + +func (m BootVolumeBackupSourceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeBackupSourceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m BootVolumeBackupSourceDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeBootVolumeBackupSourceDetails BootVolumeBackupSourceDetails + s := struct { + DiscriminatorParam string `json:"volumeType"` + MarshalTypeBootVolumeBackupSourceDetails + }{ + "BOOT_VOLUME", + (MarshalTypeBootVolumeBackupSourceDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_kms_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_kms_key.go new file mode 100644 index 0000000000..b62ec7b598 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_kms_key.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeKmsKey The Vault service master encryption key associated with this volume. +type BootVolumeKmsKey struct { + + // The OCID of the Vault service key assigned to this volume. If the volume is not using Vault service, then the `kmsKeyId` will be a null string. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m BootVolumeKmsKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeKmsKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica.go new file mode 100644 index 0000000000..89c25d72a8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica.go @@ -0,0 +1,159 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeReplica An asynchronous replica of a boot volume that can then be used to create +// a new boot volume or recover a boot volume. For more information, see Overview +// of Cross-Region Volume Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumereplication.htm) +// To use any of the API operations, you must be authorized in an IAM policy. +// If you're not authorized, talk to an administrator. If you're an administrator +// who needs to write policies to give users access, see Getting Started with +// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type BootVolumeReplica struct { + + // The availability domain of the boot volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the boot volume replica. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The boot volume replica's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The current state of a boot volume replica. + LifecycleState BootVolumeReplicaLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The size of the source boot volume, in GBs. + SizeInGBs *int64 `mandatory:"true" json:"sizeInGBs"` + + // The date and time the boot volume replica was created. Format defined + // by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the boot volume replica was last synced from the source boot volume. + // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeLastSynced *common.SDKTime `mandatory:"true" json:"timeLastSynced"` + + // The OCID of the source boot volume. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The image OCID used to create the boot volume the replica is replicated from. + ImageId *string `mandatory:"false" json:"imageId"` + + // The total size of the data transferred from the source boot volume to the boot volume replica, in GBs. + TotalDataTransferredInGBs *int64 `mandatory:"false" json:"totalDataTransferredInGBs"` + + // The OCID of the volume group replica. + VolumeGroupReplicaId *string `mandatory:"false" json:"volumeGroupReplicaId"` +} + +func (m BootVolumeReplica) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeReplica) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBootVolumeReplicaLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetBootVolumeReplicaLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BootVolumeReplicaLifecycleStateEnum Enum with underlying type: string +type BootVolumeReplicaLifecycleStateEnum string + +// Set of constants representing the allowable values for BootVolumeReplicaLifecycleStateEnum +const ( + BootVolumeReplicaLifecycleStateProvisioning BootVolumeReplicaLifecycleStateEnum = "PROVISIONING" + BootVolumeReplicaLifecycleStateAvailable BootVolumeReplicaLifecycleStateEnum = "AVAILABLE" + BootVolumeReplicaLifecycleStateActivating BootVolumeReplicaLifecycleStateEnum = "ACTIVATING" + BootVolumeReplicaLifecycleStateTerminating BootVolumeReplicaLifecycleStateEnum = "TERMINATING" + BootVolumeReplicaLifecycleStateTerminated BootVolumeReplicaLifecycleStateEnum = "TERMINATED" + BootVolumeReplicaLifecycleStateFaulty BootVolumeReplicaLifecycleStateEnum = "FAULTY" +) + +var mappingBootVolumeReplicaLifecycleStateEnum = map[string]BootVolumeReplicaLifecycleStateEnum{ + "PROVISIONING": BootVolumeReplicaLifecycleStateProvisioning, + "AVAILABLE": BootVolumeReplicaLifecycleStateAvailable, + "ACTIVATING": BootVolumeReplicaLifecycleStateActivating, + "TERMINATING": BootVolumeReplicaLifecycleStateTerminating, + "TERMINATED": BootVolumeReplicaLifecycleStateTerminated, + "FAULTY": BootVolumeReplicaLifecycleStateFaulty, +} + +var mappingBootVolumeReplicaLifecycleStateEnumLowerCase = map[string]BootVolumeReplicaLifecycleStateEnum{ + "provisioning": BootVolumeReplicaLifecycleStateProvisioning, + "available": BootVolumeReplicaLifecycleStateAvailable, + "activating": BootVolumeReplicaLifecycleStateActivating, + "terminating": BootVolumeReplicaLifecycleStateTerminating, + "terminated": BootVolumeReplicaLifecycleStateTerminated, + "faulty": BootVolumeReplicaLifecycleStateFaulty, +} + +// GetBootVolumeReplicaLifecycleStateEnumValues Enumerates the set of values for BootVolumeReplicaLifecycleStateEnum +func GetBootVolumeReplicaLifecycleStateEnumValues() []BootVolumeReplicaLifecycleStateEnum { + values := make([]BootVolumeReplicaLifecycleStateEnum, 0) + for _, v := range mappingBootVolumeReplicaLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetBootVolumeReplicaLifecycleStateEnumStringValues Enumerates the set of values in String for BootVolumeReplicaLifecycleStateEnum +func GetBootVolumeReplicaLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "ACTIVATING", + "TERMINATING", + "TERMINATED", + "FAULTY", + } +} + +// GetMappingBootVolumeReplicaLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBootVolumeReplicaLifecycleStateEnum(val string) (BootVolumeReplicaLifecycleStateEnum, bool) { + enum, ok := mappingBootVolumeReplicaLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_details.go new file mode 100644 index 0000000000..d9225d85b0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeReplicaDetails Contains the details for the boot volume replica +type BootVolumeReplicaDetails struct { + + // The availability domain of the boot volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m BootVolumeReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_info.go new file mode 100644 index 0000000000..bd633558b4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_replica_info.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeReplicaInfo Information about the boot volume replica in the destination availability domain. +type BootVolumeReplicaInfo struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The boot volume replica's Oracle ID (OCID). + BootVolumeReplicaId *string `mandatory:"true" json:"bootVolumeReplicaId"` + + // The availability domain of the boot volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` +} + +func (m BootVolumeReplicaInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeReplicaInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_details.go new file mode 100644 index 0000000000..b02934c2eb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_details.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeSourceDetails The representation of BootVolumeSourceDetails +type BootVolumeSourceDetails interface { +} + +type bootvolumesourcedetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *bootvolumesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerbootvolumesourcedetails bootvolumesourcedetails + s := struct { + Model Unmarshalerbootvolumesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *bootvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "bootVolumeBackup": + mm := BootVolumeSourceFromBootVolumeBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "bootVolume": + mm := BootVolumeSourceFromBootVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "bootVolumeReplica": + mm := BootVolumeSourceFromBootVolumeReplicaDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for BootVolumeSourceDetails: %s.", m.Type) + return *m, nil + } +} + +func (m bootvolumesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m bootvolumesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_details.go new file mode 100644 index 0000000000..0bdb65b3c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_backup_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeSourceFromBootVolumeBackupDetails Specifies the boot volume backup. +type BootVolumeSourceFromBootVolumeBackupDetails struct { + + // The OCID of the boot volume backup. + Id *string `mandatory:"true" json:"id"` +} + +func (m BootVolumeSourceFromBootVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeSourceFromBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m BootVolumeSourceFromBootVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeBootVolumeSourceFromBootVolumeBackupDetails BootVolumeSourceFromBootVolumeBackupDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeBootVolumeSourceFromBootVolumeBackupDetails + }{ + "bootVolumeBackup", + (MarshalTypeBootVolumeSourceFromBootVolumeBackupDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_details.go new file mode 100644 index 0000000000..4e2f2f930c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeSourceFromBootVolumeDetails Specifies the source boot volume. +type BootVolumeSourceFromBootVolumeDetails struct { + + // The OCID of the boot volume. + Id *string `mandatory:"true" json:"id"` +} + +func (m BootVolumeSourceFromBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeSourceFromBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m BootVolumeSourceFromBootVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeBootVolumeSourceFromBootVolumeDetails BootVolumeSourceFromBootVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeBootVolumeSourceFromBootVolumeDetails + }{ + "bootVolume", + (MarshalTypeBootVolumeSourceFromBootVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_replica_details.go new file mode 100644 index 0000000000..a245108a1b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/boot_volume_source_from_boot_volume_replica_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BootVolumeSourceFromBootVolumeReplicaDetails Specifies the source boot volume replica which the boot volume will be created from. +// The boot volume replica shoulbe be in the same availability domain as the boot volume. +// Only one volume can be created from a replica at the same time. +type BootVolumeSourceFromBootVolumeReplicaDetails struct { + + // The OCID of the boot volume replica. + Id *string `mandatory:"true" json:"id"` +} + +func (m BootVolumeSourceFromBootVolumeReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BootVolumeSourceFromBootVolumeReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m BootVolumeSourceFromBootVolumeReplicaDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeBootVolumeSourceFromBootVolumeReplicaDetails BootVolumeSourceFromBootVolumeReplicaDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeBootVolumeSourceFromBootVolumeReplicaDetails + }{ + "bootVolumeReplica", + (MarshalTypeBootVolumeSourceFromBootVolumeReplicaDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_details.go new file mode 100644 index 0000000000..f6907027a9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkAddVirtualCircuitPublicPrefixesDetails The representation of BulkAddVirtualCircuitPublicPrefixesDetails +type BulkAddVirtualCircuitPublicPrefixesDetails struct { + + // The public IP prefixes (CIDRs) to add to the public virtual circuit. + PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` +} + +func (m BulkAddVirtualCircuitPublicPrefixesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkAddVirtualCircuitPublicPrefixesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_request_response.go index 292bf4dd33..171190b54d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_add_virtual_circuit_public_prefixes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_add_virtual_circuit_public_prefixes_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkAddVirtualCircuitPublicPrefixesRequest wrapper for the BulkAddVirtualCircuitPublicPrefixes operation type BulkAddVirtualCircuitPublicPrefixesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Request with publix prefixes to be added to the virtual circuit @@ -34,6 +36,10 @@ func (request BulkAddVirtualCircuitPublicPrefixesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkAddVirtualCircuitPublicPrefixesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request BulkAddVirtualCircuitPublicPrefixesRequest) RetryPolicy() *common. return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkAddVirtualCircuitPublicPrefixesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkAddVirtualCircuitPublicPrefixesResponse wrapper for the BulkAddVirtualCircuitPublicPrefixes operation type BulkAddVirtualCircuitPublicPrefixesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_details.go new file mode 100644 index 0000000000..6ec1094360 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkDeleteVirtualCircuitPublicPrefixesDetails The representation of BulkDeleteVirtualCircuitPublicPrefixesDetails +type BulkDeleteVirtualCircuitPublicPrefixesDetails struct { + + // The public IP prefixes (CIDRs) to remove from the public virtual circuit. + PublicPrefixes []DeleteVirtualCircuitPublicPrefixDetails `mandatory:"true" json:"publicPrefixes"` +} + +func (m BulkDeleteVirtualCircuitPublicPrefixesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkDeleteVirtualCircuitPublicPrefixesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go index 3bd5540e85..8ff6604056 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_delete_virtual_circuit_public_prefixes_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkDeleteVirtualCircuitPublicPrefixesRequest wrapper for the BulkDeleteVirtualCircuitPublicPrefixes operation type BulkDeleteVirtualCircuitPublicPrefixesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Request with public prefixes to be deleted from the virtual circuit. @@ -34,6 +36,10 @@ func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) RetryPolicy() *comm return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkDeleteVirtualCircuitPublicPrefixesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkDeleteVirtualCircuitPublicPrefixesResponse wrapper for the BulkDeleteVirtualCircuitPublicPrefixes operation type BulkDeleteVirtualCircuitPublicPrefixesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration.go new file mode 100644 index 0000000000..8ebe8844fd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkMigration Response from Bulk Migration API +type BulkMigration struct { + + // The count of succesfully migrated DRGS from the batch. + SuccessCount *int `mandatory:"true" json:"successCount"` + + // The count of failed during DRGS during migration from the batch. + FailureCount *int `mandatory:"true" json:"failureCount"` + + // The OCIDs of the drgs which were successfully backfilled. + SuccessfulBackfills []string `mandatory:"false" json:"successfulBackfills"` + + // The OCIDs of the drgs which were failed during backfill. + FailedBackfills []string `mandatory:"false" json:"failedBackfills"` + + // The OCIDs of the drgs which were successfully migrated. + SuccessfulMigrations []string `mandatory:"false" json:"successfulMigrations"` + + // The OCIDs of the drgs which were failed during migration. + FailedMigrations []string `mandatory:"false" json:"failedMigrations"` +} + +func (m BulkMigration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkMigration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_details.go new file mode 100644 index 0000000000..8086657eea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkMigrationDetails Request object to Bulk Migration API +type BulkMigrationDetails struct { + + // The size of migration batch. + BatchSize *int `mandatory:"true" json:"batchSize"` +} + +func (m BulkMigrationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkMigrationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_request_response.go index dbf1a3b529..bd82b8ea14 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/bulk_migration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/bulk_migration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkMigrationRequest wrapper for the BulkMigration operation @@ -38,6 +40,10 @@ func (request BulkMigrationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request BulkMigrationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkMigrationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkMigrationResponse wrapper for the BulkMigration operation type BulkMigrationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_collection.go new file mode 100644 index 0000000000..c3338baf39 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipAllocatedRangeCollection Results of a `ListByoipAllocatedRanges` operation. +type ByoipAllocatedRangeCollection struct { + + // A list of subranges of a BYOIP CIDR block allocated to an IP pool. + Items []ByoipAllocatedRangeSummary `mandatory:"true" json:"items"` +} + +func (m ByoipAllocatedRangeCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipAllocatedRangeCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_summary.go new file mode 100644 index 0000000000..bf642bab49 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_allocated_range_summary.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipAllocatedRangeSummary A summary of CIDR block subranges that are currently allocated to an IP pool. +type ByoipAllocatedRangeSummary struct { + + // The BYOIP CIDR block range or subrange allocated to an IP pool. This could be all or part of a BYOIP CIDR block. + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IP pool containing the CIDR block. + PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` +} + +func (m ByoipAllocatedRangeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipAllocatedRangeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range.go new file mode 100644 index 0000000000..a4ea42b31b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range.go @@ -0,0 +1,227 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipRange Oracle offers the ability to Bring Your Own IP (BYOIP), importing public IP addresses or IPv6 addresses that you currently own to Oracle Cloud Infrastructure. A `ByoipRange` resource is a record of the imported address block (a BYOIP CIDR block) and also some associated metadata. +// The process used to Bring Your Own IP (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm) is explained in the documentation. +type ByoipRange struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOIP CIDR block. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource. + Id *string `mandatory:"true" json:"id"` + + // The `ByoipRange` resource's current state. + LifecycleState ByoipRangeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the `ByoipRange` resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The validation token is an internally-generated ASCII string used in the validation process. See Importing a CIDR block (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/BYOIP.htm#import_cidr) for details. + ValidationToken *string `mandatory:"true" json:"validationToken"` + + // A list of `ByoipRangeVcnIpv6AllocationSummary` objects. + ByoipRangeVcnIpv6Allocations []ByoipRangeVcnIpv6AllocationSummary `mandatory:"false" json:"byoipRangeVcnIpv6Allocations"` + + // The public IPv4 CIDR block being imported from on-premises to the Oracle cloud. + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The IPv6 CIDR block being imported to the Oracle cloud. This CIDR block must be /48 or larger, and can be subdivided into sub-ranges used + // across multiple VCNs. A BYOIPv6 prefix can be also assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify + // a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size. + Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + + // The `ByoipRange` resource's current status. + LifecycleDetails ByoipRangeLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` + + // The date and time the `ByoipRange` resource was validated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeValidated *common.SDKTime `mandatory:"false" json:"timeValidated"` + + // The date and time the `ByoipRange` resource was advertised to the internet by BGP, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeAdvertised *common.SDKTime `mandatory:"false" json:"timeAdvertised"` + + // The date and time the `ByoipRange` resource was withdrawn from advertisement by BGP to the internet, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeWithdrawn *common.SDKTime `mandatory:"false" json:"timeWithdrawn"` +} + +func (m ByoipRange) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipRange) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingByoipRangeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetByoipRangeLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingByoipRangeLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetByoipRangeLifecycleDetailsEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ByoipRangeLifecycleDetailsEnum Enum with underlying type: string +type ByoipRangeLifecycleDetailsEnum string + +// Set of constants representing the allowable values for ByoipRangeLifecycleDetailsEnum +const ( + ByoipRangeLifecycleDetailsCreating ByoipRangeLifecycleDetailsEnum = "CREATING" + ByoipRangeLifecycleDetailsValidating ByoipRangeLifecycleDetailsEnum = "VALIDATING" + ByoipRangeLifecycleDetailsProvisioned ByoipRangeLifecycleDetailsEnum = "PROVISIONED" + ByoipRangeLifecycleDetailsActive ByoipRangeLifecycleDetailsEnum = "ACTIVE" + ByoipRangeLifecycleDetailsFailed ByoipRangeLifecycleDetailsEnum = "FAILED" + ByoipRangeLifecycleDetailsDeleting ByoipRangeLifecycleDetailsEnum = "DELETING" + ByoipRangeLifecycleDetailsDeleted ByoipRangeLifecycleDetailsEnum = "DELETED" + ByoipRangeLifecycleDetailsAdvertising ByoipRangeLifecycleDetailsEnum = "ADVERTISING" + ByoipRangeLifecycleDetailsWithdrawing ByoipRangeLifecycleDetailsEnum = "WITHDRAWING" +) + +var mappingByoipRangeLifecycleDetailsEnum = map[string]ByoipRangeLifecycleDetailsEnum{ + "CREATING": ByoipRangeLifecycleDetailsCreating, + "VALIDATING": ByoipRangeLifecycleDetailsValidating, + "PROVISIONED": ByoipRangeLifecycleDetailsProvisioned, + "ACTIVE": ByoipRangeLifecycleDetailsActive, + "FAILED": ByoipRangeLifecycleDetailsFailed, + "DELETING": ByoipRangeLifecycleDetailsDeleting, + "DELETED": ByoipRangeLifecycleDetailsDeleted, + "ADVERTISING": ByoipRangeLifecycleDetailsAdvertising, + "WITHDRAWING": ByoipRangeLifecycleDetailsWithdrawing, +} + +var mappingByoipRangeLifecycleDetailsEnumLowerCase = map[string]ByoipRangeLifecycleDetailsEnum{ + "creating": ByoipRangeLifecycleDetailsCreating, + "validating": ByoipRangeLifecycleDetailsValidating, + "provisioned": ByoipRangeLifecycleDetailsProvisioned, + "active": ByoipRangeLifecycleDetailsActive, + "failed": ByoipRangeLifecycleDetailsFailed, + "deleting": ByoipRangeLifecycleDetailsDeleting, + "deleted": ByoipRangeLifecycleDetailsDeleted, + "advertising": ByoipRangeLifecycleDetailsAdvertising, + "withdrawing": ByoipRangeLifecycleDetailsWithdrawing, +} + +// GetByoipRangeLifecycleDetailsEnumValues Enumerates the set of values for ByoipRangeLifecycleDetailsEnum +func GetByoipRangeLifecycleDetailsEnumValues() []ByoipRangeLifecycleDetailsEnum { + values := make([]ByoipRangeLifecycleDetailsEnum, 0) + for _, v := range mappingByoipRangeLifecycleDetailsEnum { + values = append(values, v) + } + return values +} + +// GetByoipRangeLifecycleDetailsEnumStringValues Enumerates the set of values in String for ByoipRangeLifecycleDetailsEnum +func GetByoipRangeLifecycleDetailsEnumStringValues() []string { + return []string{ + "CREATING", + "VALIDATING", + "PROVISIONED", + "ACTIVE", + "FAILED", + "DELETING", + "DELETED", + "ADVERTISING", + "WITHDRAWING", + } +} + +// GetMappingByoipRangeLifecycleDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingByoipRangeLifecycleDetailsEnum(val string) (ByoipRangeLifecycleDetailsEnum, bool) { + enum, ok := mappingByoipRangeLifecycleDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ByoipRangeLifecycleStateEnum Enum with underlying type: string +type ByoipRangeLifecycleStateEnum string + +// Set of constants representing the allowable values for ByoipRangeLifecycleStateEnum +const ( + ByoipRangeLifecycleStateInactive ByoipRangeLifecycleStateEnum = "INACTIVE" + ByoipRangeLifecycleStateUpdating ByoipRangeLifecycleStateEnum = "UPDATING" + ByoipRangeLifecycleStateActive ByoipRangeLifecycleStateEnum = "ACTIVE" + ByoipRangeLifecycleStateDeleting ByoipRangeLifecycleStateEnum = "DELETING" + ByoipRangeLifecycleStateDeleted ByoipRangeLifecycleStateEnum = "DELETED" +) + +var mappingByoipRangeLifecycleStateEnum = map[string]ByoipRangeLifecycleStateEnum{ + "INACTIVE": ByoipRangeLifecycleStateInactive, + "UPDATING": ByoipRangeLifecycleStateUpdating, + "ACTIVE": ByoipRangeLifecycleStateActive, + "DELETING": ByoipRangeLifecycleStateDeleting, + "DELETED": ByoipRangeLifecycleStateDeleted, +} + +var mappingByoipRangeLifecycleStateEnumLowerCase = map[string]ByoipRangeLifecycleStateEnum{ + "inactive": ByoipRangeLifecycleStateInactive, + "updating": ByoipRangeLifecycleStateUpdating, + "active": ByoipRangeLifecycleStateActive, + "deleting": ByoipRangeLifecycleStateDeleting, + "deleted": ByoipRangeLifecycleStateDeleted, +} + +// GetByoipRangeLifecycleStateEnumValues Enumerates the set of values for ByoipRangeLifecycleStateEnum +func GetByoipRangeLifecycleStateEnumValues() []ByoipRangeLifecycleStateEnum { + values := make([]ByoipRangeLifecycleStateEnum, 0) + for _, v := range mappingByoipRangeLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetByoipRangeLifecycleStateEnumStringValues Enumerates the set of values in String for ByoipRangeLifecycleStateEnum +func GetByoipRangeLifecycleStateEnumStringValues() []string { + return []string{ + "INACTIVE", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingByoipRangeLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingByoipRangeLifecycleStateEnum(val string) (ByoipRangeLifecycleStateEnum, bool) { + enum, ok := mappingByoipRangeLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_collection.go new file mode 100644 index 0000000000..a750563deb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipRangeCollection The results returned by a `ListByoipRange` operation. +type ByoipRangeCollection struct { + + // A list of `ByoipRange` resource summaries. + Items []ByoipRangeSummary `mandatory:"true" json:"items"` +} + +func (m ByoipRangeCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipRangeCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_lock_request_response.go new file mode 100644 index 0000000000..b2259d17bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_lock_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ByoipRangeLockRequest wrapper for the ByoipRangeLock operation +type ByoipRangeLockRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + ByoipRangeId *string `mandatory:"true" contributesTo:"path" name:"byoipRangeId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ByoipRangeLockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ByoipRangeLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ByoipRangeLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ByoipRangeLockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ByoipRangeLockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ByoipRangeLockResponse wrapper for the ByoipRangeLock operation +type ByoipRangeLockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ByoipRangeResponse instance + ByoipRangeResponse `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response ByoipRangeLockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ByoipRangeLockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_response.go new file mode 100644 index 0000000000..91351171e2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_response.go @@ -0,0 +1,201 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipRangeResponse A ByoipRange, is an IP address prefix that the user owns and wishes to import into OCI. +type ByoipRangeResponse struct { + + // The address range the user is on-boarding. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID of the compartment containing the Byoip Range. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The Oracle ID (OCID) of the Byoip Range. + Id *string `mandatory:"true" json:"id"` + + // The Byoip Range's current state. + LifecycleState ByoipRangeResponseLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // This is an internally generated ASCII string that the user will then use as part of the validation process. Specifically, they will need to add the token string generated by the service to their Internet Registry record. + ValidationToken *string `mandatory:"true" json:"validationToken"` + + // The date and time the public IP pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. Avoid + // entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The Byoip Range's current substate. + LifecycleDetails ByoipRangeResponseLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` + + // This field indicates the Byoip Range is locked for further modification or deletion + Locked *bool `mandatory:"false" json:"locked"` +} + +func (m ByoipRangeResponse) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipRangeResponse) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingByoipRangeResponseLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetByoipRangeResponseLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingByoipRangeResponseLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetByoipRangeResponseLifecycleDetailsEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ByoipRangeResponseLifecycleDetailsEnum Enum with underlying type: string +type ByoipRangeResponseLifecycleDetailsEnum string + +// Set of constants representing the allowable values for ByoipRangeResponseLifecycleDetailsEnum +const ( + ByoipRangeResponseLifecycleDetailsCreating ByoipRangeResponseLifecycleDetailsEnum = "CREATING" + ByoipRangeResponseLifecycleDetailsValidating ByoipRangeResponseLifecycleDetailsEnum = "VALIDATING" + ByoipRangeResponseLifecycleDetailsProvisioned ByoipRangeResponseLifecycleDetailsEnum = "PROVISIONED" + ByoipRangeResponseLifecycleDetailsActive ByoipRangeResponseLifecycleDetailsEnum = "ACTIVE" + ByoipRangeResponseLifecycleDetailsFailed ByoipRangeResponseLifecycleDetailsEnum = "FAILED" + ByoipRangeResponseLifecycleDetailsDeleting ByoipRangeResponseLifecycleDetailsEnum = "DELETING" + ByoipRangeResponseLifecycleDetailsDeleted ByoipRangeResponseLifecycleDetailsEnum = "DELETED" +) + +var mappingByoipRangeResponseLifecycleDetailsEnum = map[string]ByoipRangeResponseLifecycleDetailsEnum{ + "CREATING": ByoipRangeResponseLifecycleDetailsCreating, + "VALIDATING": ByoipRangeResponseLifecycleDetailsValidating, + "PROVISIONED": ByoipRangeResponseLifecycleDetailsProvisioned, + "ACTIVE": ByoipRangeResponseLifecycleDetailsActive, + "FAILED": ByoipRangeResponseLifecycleDetailsFailed, + "DELETING": ByoipRangeResponseLifecycleDetailsDeleting, + "DELETED": ByoipRangeResponseLifecycleDetailsDeleted, +} + +var mappingByoipRangeResponseLifecycleDetailsEnumLowerCase = map[string]ByoipRangeResponseLifecycleDetailsEnum{ + "creating": ByoipRangeResponseLifecycleDetailsCreating, + "validating": ByoipRangeResponseLifecycleDetailsValidating, + "provisioned": ByoipRangeResponseLifecycleDetailsProvisioned, + "active": ByoipRangeResponseLifecycleDetailsActive, + "failed": ByoipRangeResponseLifecycleDetailsFailed, + "deleting": ByoipRangeResponseLifecycleDetailsDeleting, + "deleted": ByoipRangeResponseLifecycleDetailsDeleted, +} + +// GetByoipRangeResponseLifecycleDetailsEnumValues Enumerates the set of values for ByoipRangeResponseLifecycleDetailsEnum +func GetByoipRangeResponseLifecycleDetailsEnumValues() []ByoipRangeResponseLifecycleDetailsEnum { + values := make([]ByoipRangeResponseLifecycleDetailsEnum, 0) + for _, v := range mappingByoipRangeResponseLifecycleDetailsEnum { + values = append(values, v) + } + return values +} + +// GetByoipRangeResponseLifecycleDetailsEnumStringValues Enumerates the set of values in String for ByoipRangeResponseLifecycleDetailsEnum +func GetByoipRangeResponseLifecycleDetailsEnumStringValues() []string { + return []string{ + "CREATING", + "VALIDATING", + "PROVISIONED", + "ACTIVE", + "FAILED", + "DELETING", + "DELETED", + } +} + +// GetMappingByoipRangeResponseLifecycleDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingByoipRangeResponseLifecycleDetailsEnum(val string) (ByoipRangeResponseLifecycleDetailsEnum, bool) { + enum, ok := mappingByoipRangeResponseLifecycleDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ByoipRangeResponseLifecycleStateEnum Enum with underlying type: string +type ByoipRangeResponseLifecycleStateEnum string + +// Set of constants representing the allowable values for ByoipRangeResponseLifecycleStateEnum +const ( + ByoipRangeResponseLifecycleStateInactive ByoipRangeResponseLifecycleStateEnum = "INACTIVE" + ByoipRangeResponseLifecycleStateUpdating ByoipRangeResponseLifecycleStateEnum = "UPDATING" + ByoipRangeResponseLifecycleStateActive ByoipRangeResponseLifecycleStateEnum = "ACTIVE" + ByoipRangeResponseLifecycleStateDeleting ByoipRangeResponseLifecycleStateEnum = "DELETING" + ByoipRangeResponseLifecycleStateDeleted ByoipRangeResponseLifecycleStateEnum = "DELETED" +) + +var mappingByoipRangeResponseLifecycleStateEnum = map[string]ByoipRangeResponseLifecycleStateEnum{ + "INACTIVE": ByoipRangeResponseLifecycleStateInactive, + "UPDATING": ByoipRangeResponseLifecycleStateUpdating, + "ACTIVE": ByoipRangeResponseLifecycleStateActive, + "DELETING": ByoipRangeResponseLifecycleStateDeleting, + "DELETED": ByoipRangeResponseLifecycleStateDeleted, +} + +var mappingByoipRangeResponseLifecycleStateEnumLowerCase = map[string]ByoipRangeResponseLifecycleStateEnum{ + "inactive": ByoipRangeResponseLifecycleStateInactive, + "updating": ByoipRangeResponseLifecycleStateUpdating, + "active": ByoipRangeResponseLifecycleStateActive, + "deleting": ByoipRangeResponseLifecycleStateDeleting, + "deleted": ByoipRangeResponseLifecycleStateDeleted, +} + +// GetByoipRangeResponseLifecycleStateEnumValues Enumerates the set of values for ByoipRangeResponseLifecycleStateEnum +func GetByoipRangeResponseLifecycleStateEnumValues() []ByoipRangeResponseLifecycleStateEnum { + values := make([]ByoipRangeResponseLifecycleStateEnum, 0) + for _, v := range mappingByoipRangeResponseLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetByoipRangeResponseLifecycleStateEnumStringValues Enumerates the set of values in String for ByoipRangeResponseLifecycleStateEnum +func GetByoipRangeResponseLifecycleStateEnumStringValues() []string { + return []string{ + "INACTIVE", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingByoipRangeResponseLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingByoipRangeResponseLifecycleStateEnum(val string) (ByoipRangeResponseLifecycleStateEnum, bool) { + enum, ok := mappingByoipRangeResponseLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_summary.go new file mode 100644 index 0000000000..9d2d5de6d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_summary.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipRangeSummary Information about a `ByoipRange` resource. +type ByoipRangeSummary struct { + + // A list of `ByoipRangeVcnIpv6AllocationSummary` objects. + ByoipRangeVcnIpv6Allocations []ByoipRangeVcnIpv6AllocationSummary `mandatory:"false" json:"byoipRangeVcnIpv6Allocations"` + + // The public IPv4 address range you are importing to the Oracle cloud. + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `ByoipRange` resource. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource. + Id *string `mandatory:"false" json:"id"` + + // The IPv6 CIDR block being imported to the Oracle cloud. This CIDR block must be /48 or larger, and can be subdivided into sub-ranges used + // across multiple VCNs. A BYOIPv6 prefix can be assigned across multiple VCNs, and each VCN must be /64 or larger. You may specify + // a ULA or private IPv6 prefix of /64 or larger to use in the VCN. IPv6-enabled subnets will remain a fixed /64 in size. + Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + + // The `ByoipRange` resource's current state. + LifecycleState ByoipRangeLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The Byoip Range's current lifeCycle substate. + LifecycleDetails ByoipRangeLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` + + // The date and time the `ByoipRange` resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m ByoipRangeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipRangeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingByoipRangeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetByoipRangeLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingByoipRangeLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetByoipRangeLifecycleDetailsEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_unlock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_unlock_request_response.go new file mode 100644 index 0000000000..feb35c6522 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_unlock_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ByoipRangeUnlockRequest wrapper for the ByoipRangeUnlock operation +type ByoipRangeUnlockRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource containing the BYOIP CIDR block. + ByoipRangeId *string `mandatory:"true" contributesTo:"path" name:"byoipRangeId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ByoipRangeUnlockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ByoipRangeUnlockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ByoipRangeUnlockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ByoipRangeUnlockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ByoipRangeUnlockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ByoipRangeUnlockResponse wrapper for the ByoipRangeUnlock operation +type ByoipRangeUnlockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ByoipRangeResponse instance + ByoipRangeResponse `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response ByoipRangeUnlockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ByoipRangeUnlockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_vcn_ipv6_allocation_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_vcn_ipv6_allocation_summary.go new file mode 100644 index 0000000000..63db861fe5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoip_range_vcn_ipv6_allocation_summary.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ByoipRangeVcnIpv6AllocationSummary A summary of IPv6 CIDR block subranges currently allocated to a VCN. +type ByoipRangeVcnIpv6AllocationSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource to which the CIDR block belongs. + ByoipRangeId *string `mandatory:"false" json:"byoipRangeId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `ByoipRange`. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The BYOIPv6 CIDR block range or subrange allocated to a VCN. This could be all or part of a BYOIPv6 CIDR block. + // Each VCN allocation must be /64 or larger. + Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `Vcn` resource to which the ByoipRange belongs. + VcnId *string `mandatory:"false" json:"vcnId"` +} + +func (m ByoipRangeVcnIpv6AllocationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ByoipRangeVcnIpv6AllocationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/byoipv6_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoipv6_cidr_details.go new file mode 100644 index 0000000000..9133d14560 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/byoipv6_cidr_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Byoipv6CidrDetails The list of one or more BYOIPv6 CIDR blocks for the VCN that meets the following criteria: +// - The CIDR must from a BYOIPv6 range. +// - The IPv6 CIDR blocks must be valid. +// - Multiple CIDR blocks must not overlap each other or the on-premises network CIDR block. +// - The number of CIDR blocks must not exceed the limit of IPv6 CIDR blocks allowed to a VCN. +type Byoipv6CidrDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `ByoipRange` resource to which the CIDR block belongs. + Byoipv6RangeId *string `mandatory:"true" json:"byoipv6RangeId"` + + // An IPv6 CIDR block required to create a VCN with a BYOIP prefix. It could be the whole CIDR block identified in `byoipv6RangeId`, or a subrange. + // Example: `2001:0db8:0123::/48` + Ipv6CidrBlock *string `mandatory:"true" json:"ipv6CidrBlock"` +} + +func (m Byoipv6CidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Byoipv6CidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_instance_shape_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_instance_shape_config.go new file mode 100644 index 0000000000..7cb51162a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_instance_shape_config.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReportInstanceShapeConfig The shape configuration for a shape in compute capacity availability report. +type CapacityReportInstanceShapeConfig struct { + + // The total number of OCPUs available to the instance. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to the instance, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` + + // The number of NVMe drives to be used for storage. + Nvmes *int `mandatory:"false" json:"nvmes"` +} + +func (m CapacityReportInstanceShapeConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReportInstanceShapeConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_shape_availability.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_shape_availability.go new file mode 100644 index 0000000000..4b37288ce1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_report_shape_availability.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReportShapeAvailability The capacity availability details for a requested shape. +type CapacityReportShapeAvailability struct { + + // A fault domain is a grouping of hardware and infrastructure within an availability domain. + // Each availability domain contains three fault domains. Fault domains let you distribute your + // instances so that they are not on the same physical hardware within a single availability domain. + // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect + // instances in other fault domains. + // If you do not specify the fault domain, the capacity report will be applicable to all fault domains. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The shape for the compute capacity report availability details. + InstanceShape *string `mandatory:"false" json:"instanceShape"` + + InstanceShapeConfig *CapacityReportInstanceShapeConfig `mandatory:"false" json:"instanceShapeConfig"` + + // The total number of instances that are available to launch new instances. + AvailableCount *int64 `mandatory:"false" json:"availableCount"` + + // The flag denoting whether capacity is available. + AvailabilityStatus CapacityReportShapeAvailabilityAvailabilityStatusEnum `mandatory:"false" json:"availabilityStatus,omitempty"` +} + +func (m CapacityReportShapeAvailability) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReportShapeAvailability) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCapacityReportShapeAvailabilityAvailabilityStatusEnum(string(m.AvailabilityStatus)); !ok && m.AvailabilityStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AvailabilityStatus: %s. Supported values are: %s.", m.AvailabilityStatus, strings.Join(GetCapacityReportShapeAvailabilityAvailabilityStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CapacityReportShapeAvailabilityAvailabilityStatusEnum Enum with underlying type: string +type CapacityReportShapeAvailabilityAvailabilityStatusEnum string + +// Set of constants representing the allowable values for CapacityReportShapeAvailabilityAvailabilityStatusEnum +const ( + CapacityReportShapeAvailabilityAvailabilityStatusOutOfHostCapacity CapacityReportShapeAvailabilityAvailabilityStatusEnum = "OUT_OF_HOST_CAPACITY" + CapacityReportShapeAvailabilityAvailabilityStatusHardwareNotSupported CapacityReportShapeAvailabilityAvailabilityStatusEnum = "HARDWARE_NOT_SUPPORTED" + CapacityReportShapeAvailabilityAvailabilityStatusAvailable CapacityReportShapeAvailabilityAvailabilityStatusEnum = "AVAILABLE" +) + +var mappingCapacityReportShapeAvailabilityAvailabilityStatusEnum = map[string]CapacityReportShapeAvailabilityAvailabilityStatusEnum{ + "OUT_OF_HOST_CAPACITY": CapacityReportShapeAvailabilityAvailabilityStatusOutOfHostCapacity, + "HARDWARE_NOT_SUPPORTED": CapacityReportShapeAvailabilityAvailabilityStatusHardwareNotSupported, + "AVAILABLE": CapacityReportShapeAvailabilityAvailabilityStatusAvailable, +} + +var mappingCapacityReportShapeAvailabilityAvailabilityStatusEnumLowerCase = map[string]CapacityReportShapeAvailabilityAvailabilityStatusEnum{ + "out_of_host_capacity": CapacityReportShapeAvailabilityAvailabilityStatusOutOfHostCapacity, + "hardware_not_supported": CapacityReportShapeAvailabilityAvailabilityStatusHardwareNotSupported, + "available": CapacityReportShapeAvailabilityAvailabilityStatusAvailable, +} + +// GetCapacityReportShapeAvailabilityAvailabilityStatusEnumValues Enumerates the set of values for CapacityReportShapeAvailabilityAvailabilityStatusEnum +func GetCapacityReportShapeAvailabilityAvailabilityStatusEnumValues() []CapacityReportShapeAvailabilityAvailabilityStatusEnum { + values := make([]CapacityReportShapeAvailabilityAvailabilityStatusEnum, 0) + for _, v := range mappingCapacityReportShapeAvailabilityAvailabilityStatusEnum { + values = append(values, v) + } + return values +} + +// GetCapacityReportShapeAvailabilityAvailabilityStatusEnumStringValues Enumerates the set of values in String for CapacityReportShapeAvailabilityAvailabilityStatusEnum +func GetCapacityReportShapeAvailabilityAvailabilityStatusEnumStringValues() []string { + return []string{ + "OUT_OF_HOST_CAPACITY", + "HARDWARE_NOT_SUPPORTED", + "AVAILABLE", + } +} + +// GetMappingCapacityReportShapeAvailabilityAvailabilityStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCapacityReportShapeAvailabilityAvailabilityStatusEnum(val string) (CapacityReportShapeAvailabilityAvailabilityStatusEnum, bool) { + enum, ok := mappingCapacityReportShapeAvailabilityAvailabilityStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_reservation_instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_reservation_instance_summary.go new file mode 100644 index 0000000000..f6e1c13a31 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capacity_reservation_instance_summary.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CapacityReservationInstanceSummary Condensed instance data when listing instances in a compute capacity reservation. +type CapacityReservationInstanceSummary struct { + + // The OCID of the instance. + Id *string `mandatory:"true" json:"id"` + + // The availability domain the instance is running in. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the instance. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The shape of the instance. The shape determines the number of CPUs, amount of memory, + // and other resources allocated to the instance. + // You can enumerate all available shapes by calling ListComputeCapacityReservationInstanceShapes. + Shape *string `mandatory:"true" json:"shape"` + + // The fault domain the instance is running in. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + ShapeConfig *InstanceReservationShapeConfigDetails `mandatory:"false" json:"shapeConfig"` +} + +func (m CapacityReservationInstanceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CapacityReservationInstanceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_details.go new file mode 100644 index 0000000000..d587d68495 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CaptureConsoleHistoryDetails The representation of CaptureConsoleHistoryDetails +type CaptureConsoleHistoryDetails struct { + + // The OCID of the instance to get the console history from. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CaptureConsoleHistoryDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CaptureConsoleHistoryDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go index bd0b79e611..e0ee493f81 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/capture_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_console_history_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CaptureConsoleHistoryRequest wrapper for the CaptureConsoleHistory operation @@ -38,6 +40,10 @@ func (request CaptureConsoleHistoryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CaptureConsoleHistoryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CaptureConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CaptureConsoleHistoryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CaptureConsoleHistoryResponse wrapper for the CaptureConsoleHistory operation type CaptureConsoleHistoryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_filter.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_filter.go new file mode 100644 index 0000000000..2ac4ac8054 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/capture_filter.go @@ -0,0 +1,172 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CaptureFilter A capture filter contains a set of *CaptureFilterRuleDetails* governing what traffic a *Vtap* mirrors. +// The capture filter is created with no rules defined, and it must have at least one rule for the VTAP to start mirroring traffic. +type CaptureFilter struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the capture filter. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The capture filter's current administrative state. + LifecycleState CaptureFilterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Indicates which service will use this capture filter + FilterType CaptureFilterFilterTypeEnum `mandatory:"false" json:"filterType,omitempty"` + + // The date and time the capture filter was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2021-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The set of rules governing what traffic a VTAP mirrors. + VtapCaptureFilterRules []VtapCaptureFilterRuleDetails `mandatory:"false" json:"vtapCaptureFilterRules"` +} + +func (m CaptureFilter) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CaptureFilter) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCaptureFilterLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCaptureFilterLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingCaptureFilterFilterTypeEnum(string(m.FilterType)); !ok && m.FilterType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FilterType: %s. Supported values are: %s.", m.FilterType, strings.Join(GetCaptureFilterFilterTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CaptureFilterLifecycleStateEnum Enum with underlying type: string +type CaptureFilterLifecycleStateEnum string + +// Set of constants representing the allowable values for CaptureFilterLifecycleStateEnum +const ( + CaptureFilterLifecycleStateProvisioning CaptureFilterLifecycleStateEnum = "PROVISIONING" + CaptureFilterLifecycleStateAvailable CaptureFilterLifecycleStateEnum = "AVAILABLE" + CaptureFilterLifecycleStateUpdating CaptureFilterLifecycleStateEnum = "UPDATING" + CaptureFilterLifecycleStateTerminating CaptureFilterLifecycleStateEnum = "TERMINATING" + CaptureFilterLifecycleStateTerminated CaptureFilterLifecycleStateEnum = "TERMINATED" +) + +var mappingCaptureFilterLifecycleStateEnum = map[string]CaptureFilterLifecycleStateEnum{ + "PROVISIONING": CaptureFilterLifecycleStateProvisioning, + "AVAILABLE": CaptureFilterLifecycleStateAvailable, + "UPDATING": CaptureFilterLifecycleStateUpdating, + "TERMINATING": CaptureFilterLifecycleStateTerminating, + "TERMINATED": CaptureFilterLifecycleStateTerminated, +} + +var mappingCaptureFilterLifecycleStateEnumLowerCase = map[string]CaptureFilterLifecycleStateEnum{ + "provisioning": CaptureFilterLifecycleStateProvisioning, + "available": CaptureFilterLifecycleStateAvailable, + "updating": CaptureFilterLifecycleStateUpdating, + "terminating": CaptureFilterLifecycleStateTerminating, + "terminated": CaptureFilterLifecycleStateTerminated, +} + +// GetCaptureFilterLifecycleStateEnumValues Enumerates the set of values for CaptureFilterLifecycleStateEnum +func GetCaptureFilterLifecycleStateEnumValues() []CaptureFilterLifecycleStateEnum { + values := make([]CaptureFilterLifecycleStateEnum, 0) + for _, v := range mappingCaptureFilterLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCaptureFilterLifecycleStateEnumStringValues Enumerates the set of values in String for CaptureFilterLifecycleStateEnum +func GetCaptureFilterLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingCaptureFilterLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCaptureFilterLifecycleStateEnum(val string) (CaptureFilterLifecycleStateEnum, bool) { + enum, ok := mappingCaptureFilterLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CaptureFilterFilterTypeEnum Enum with underlying type: string +type CaptureFilterFilterTypeEnum string + +// Set of constants representing the allowable values for CaptureFilterFilterTypeEnum +const ( + CaptureFilterFilterTypeVtap CaptureFilterFilterTypeEnum = "VTAP" +) + +var mappingCaptureFilterFilterTypeEnum = map[string]CaptureFilterFilterTypeEnum{ + "VTAP": CaptureFilterFilterTypeVtap, +} + +var mappingCaptureFilterFilterTypeEnumLowerCase = map[string]CaptureFilterFilterTypeEnum{ + "vtap": CaptureFilterFilterTypeVtap, +} + +// GetCaptureFilterFilterTypeEnumValues Enumerates the set of values for CaptureFilterFilterTypeEnum +func GetCaptureFilterFilterTypeEnumValues() []CaptureFilterFilterTypeEnum { + values := make([]CaptureFilterFilterTypeEnum, 0) + for _, v := range mappingCaptureFilterFilterTypeEnum { + values = append(values, v) + } + return values +} + +// GetCaptureFilterFilterTypeEnumStringValues Enumerates the set of values in String for CaptureFilterFilterTypeEnum +func GetCaptureFilterFilterTypeEnumStringValues() []string { + return []string{ + "VTAP", + } +} + +// GetMappingCaptureFilterFilterTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCaptureFilterFilterTypeEnum(val string) (CaptureFilterFilterTypeEnum, bool) { + enum, ok := mappingCaptureFilterFilterTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cfm_metadata.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cfm_metadata.go new file mode 100644 index 0000000000..f51531dd29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cfm_metadata.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CfmMetadata Customer facing metrics metadata in association with a Service VNIC. Each metadata item takes the form of a key-value pair. Arbitrary limit for the number of key-value pairs is 30. +type CfmMetadata struct { + + // Metadata entry key. Key comprises of namespace, resource_id, resource_name etc. + Key *string `mandatory:"false" json:"key"` + + // Corresponding value for the key + Value *string `mandatory:"false" json:"value"` +} + +func (m CfmMetadata) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CfmMetadata) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_details.go new file mode 100644 index 0000000000..5c6aca9f33 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeBootVolumeBackupCompartmentDetails Contains the details for the compartment to move the boot volume backup to. +type ChangeBootVolumeBackupCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the boot volume backup to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeBootVolumeBackupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeBootVolumeBackupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_request_response.go index 93b5478f01..a4f05f1f89 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_backup_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_backup_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeBootVolumeBackupCompartmentRequest wrapper for the ChangeBootVolumeBackupCompartment operation @@ -34,6 +36,10 @@ func (request ChangeBootVolumeBackupCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeBootVolumeBackupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeBootVolumeBackupCompartmentRequest) RetryPolicy() *common.Re return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeBootVolumeBackupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeBootVolumeBackupCompartmentResponse wrapper for the ChangeBootVolumeBackupCompartment operation type ChangeBootVolumeBackupCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_details.go new file mode 100644 index 0000000000..3b8c9196b7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeBootVolumeCompartmentDetails Contains the details for the compartment to move the boot volume to. +type ChangeBootVolumeCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the boot volume to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeBootVolumeCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeBootVolumeCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_request_response.go index 704c700fd4..03b0c59304 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_boot_volume_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_boot_volume_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeBootVolumeCompartmentRequest wrapper for the ChangeBootVolumeCompartment operation @@ -34,6 +36,10 @@ func (request ChangeBootVolumeCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeBootVolumeCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeBootVolumeCompartmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeBootVolumeCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeBootVolumeCompartmentResponse wrapper for the ChangeBootVolumeCompartment operation type ChangeBootVolumeCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_details.go new file mode 100644 index 0000000000..028d6b683c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeByoipRangeCompartmentDetails The configuration details for the move operation. +type ChangeByoipRangeCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the BYOIP CIDR block move. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeByoipRangeCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeByoipRangeCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_request_response.go index abde84f35c..52fb6f07a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_byoip_range_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_byoip_range_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeByoipRangeCompartmentRequest wrapper for the ChangeByoipRangeCompartment operation @@ -41,6 +43,10 @@ func (request ChangeByoipRangeCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeByoipRangeCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeByoipRangeCompartmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeByoipRangeCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeByoipRangeCompartmentResponse wrapper for the ChangeByoipRangeCompartment operation type ChangeByoipRangeCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_c3_drg_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_c3_drg_compartment_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_c3_drg_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_c3_drg_compartment_request_response.go index 8548a6104b..b7bc519c23 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_c3_drg_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_c3_drg_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeC3DrgCompartmentRequest wrapper for the ChangeC3DrgCompartment operation type ChangeC3DrgCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Request to change the compartment of a DRG. @@ -41,6 +43,10 @@ func (request ChangeC3DrgCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeC3DrgCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeC3DrgCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeC3DrgCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeC3DrgCompartmentResponse wrapper for the ChangeC3DrgCompartment operation type ChangeC3DrgCompartmentResponse struct { @@ -69,7 +86,8 @@ type ChangeC3DrgCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_details.go new file mode 100644 index 0000000000..80479bbb5e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeCaptureFilterCompartmentDetails These configuration details are used in the move operation when changing the compartment containing a virtual test access point (VTAP) capture filter. +type ChangeCaptureFilterCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the VTAP + // capture filter move. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeCaptureFilterCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeCaptureFilterCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_request_response.go index 4d21e9567a..5e3f71b4f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_capture_filter_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_capture_filter_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeCaptureFilterCompartmentRequest wrapper for the ChangeCaptureFilterCompartment operation type ChangeCaptureFilterCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. CaptureFilterId *string `mandatory:"true" contributesTo:"path" name:"captureFilterId"` // Request to change the compartment of a VTAP. @@ -46,6 +48,10 @@ func (request ChangeCaptureFilterCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeCaptureFilterCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeCaptureFilterCompartmentRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeCaptureFilterCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeCaptureFilterCompartmentResponse wrapper for the ChangeCaptureFilterCompartment operation type ChangeCaptureFilterCompartmentResponse struct { @@ -74,7 +91,8 @@ type ChangeCaptureFilterCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_details.go new file mode 100644 index 0000000000..df5f3425db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeClientVpnCompartmentDetails The configuration details for the move operation. +type ChangeClientVpnCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // remote peering connection to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeClientVpnCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeClientVpnCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_request_response.go index 524b001438..77d4782179 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_client_vpn_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_client_vpn_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeClientVpnCompartmentRequest wrapper for the ChangeClientVpnCompartment operation type ChangeClientVpnCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // Request to change the compartment of a clientVpn. @@ -46,6 +48,10 @@ func (request ChangeClientVpnCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeClientVpnCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeClientVpnCompartmentRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeClientVpnCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeClientVpnCompartmentResponse wrapper for the ChangeClientVpnCompartment operation type ChangeClientVpnCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_details.go new file mode 100644 index 0000000000..a4cefb5275 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeClusterNetworkCompartmentDetails The configuration details for the move operation. +type ChangeClusterNetworkCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the resource should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeClusterNetworkCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeClusterNetworkCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_request_response.go index 0ca546676c..13b3f8af57 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cluster_network_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cluster_network_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeClusterNetworkCompartmentRequest wrapper for the ChangeClusterNetworkCompartment operation @@ -46,6 +48,10 @@ func (request ChangeClusterNetworkCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeClusterNetworkCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeClusterNetworkCompartmentRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeClusterNetworkCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeClusterNetworkCompartmentResponse wrapper for the ChangeClusterNetworkCompartment operation type ChangeClusterNetworkCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_details.go new file mode 100644 index 0000000000..b52f8a81fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeCapacityReservationCompartmentDetails Specifies the compartment to move the compute capacity reservation to. +type ChangeComputeCapacityReservationCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // to move the compute capacity reservation to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeCapacityReservationCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeCapacityReservationCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_request_response.go index 25939d3b47..7d6ff001ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_capacity_reservation_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_capacity_reservation_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeComputeCapacityReservationCompartmentRequest wrapper for the ChangeComputeCapacityReservationCompartment operation @@ -46,6 +48,10 @@ func (request ChangeComputeCapacityReservationCompartmentRequest) String() strin // HTTPRequest implements the OCIRequest interface func (request ChangeComputeCapacityReservationCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeComputeCapacityReservationCompartmentRequest) RetryPolicy() return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeCapacityReservationCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeComputeCapacityReservationCompartmentResponse wrapper for the ChangeComputeCapacityReservationCompartment operation type ChangeComputeCapacityReservationCompartmentResponse struct { @@ -71,7 +88,8 @@ type ChangeComputeCapacityReservationCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_details.go new file mode 100644 index 0000000000..e30b1ea472 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeClusterCompartmentDetails The configuration details for the compartment to move the compute cluster to. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. +type ChangeComputeClusterCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the compute cluster to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeClusterCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeClusterCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_request_response.go index b3db4638de..5c6681bb3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_cluster_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_cluster_compartment_request_response.go @@ -1,18 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeComputeClusterCompartmentRequest wrapper for the ChangeComputeClusterCompartment operation type ChangeComputeClusterCompartmentRequest struct { - // The OCID of the compute cluster. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster is a remote direct memory access (RDMA) network group. + // For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` // The request to move the compute cluster to a different compartment. @@ -46,6 +50,10 @@ func (request ChangeComputeClusterCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeComputeClusterCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +69,17 @@ func (request ChangeComputeClusterCompartmentRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeClusterCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeComputeClusterCompartmentResponse wrapper for the ChangeComputeClusterCompartment operation type ChangeComputeClusterCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_details.go new file mode 100644 index 0000000000..160b3a24a7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeComputeImageCapabilitySchemaCompartmentDetails The configuration details for the move operation. +type ChangeComputeImageCapabilitySchemaCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to + // move the instance configuration to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeComputeImageCapabilitySchemaCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeComputeImageCapabilitySchemaCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_request_response.go index 0cd32b1621..04ec3a60eb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_compute_image_capability_schema_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_compute_image_capability_schema_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeComputeImageCapabilitySchemaCompartmentRequest wrapper for the ChangeComputeImageCapabilitySchemaCompartment operation @@ -46,6 +48,10 @@ func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) String() str // HTTPRequest implements the OCIRequest interface func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) RetryPolicy( return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeComputeImageCapabilitySchemaCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeComputeImageCapabilitySchemaCompartmentResponse wrapper for the ChangeComputeImageCapabilitySchemaCompartment operation type ChangeComputeImageCapabilitySchemaCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_details.go new file mode 100644 index 0000000000..ac439e5182 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeCpeCompartmentDetails The configuration details for the move operation. +type ChangeCpeCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // CPE object to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeCpeCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeCpeCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go index f14e5dd2ad..5572b65d46 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cpe_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cpe_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeCpeCompartmentRequest wrapper for the ChangeCpeCompartment operation type ChangeCpeCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` // Request to change the compartment of a CPE. @@ -41,6 +43,10 @@ func (request ChangeCpeCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeCpeCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeCpeCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeCpeCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeCpeCompartmentResponse wrapper for the ChangeCpeCompartment operation type ChangeCpeCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_details.go new file mode 100644 index 0000000000..22a1b9168e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeCrossConnectCompartmentDetails The configuration details for the move operation. +type ChangeCrossConnectCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // cross-connect to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeCrossConnectCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeCrossConnectCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_request_response.go index b3c382358f..721e45bcab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeCrossConnectCompartmentRequest wrapper for the ChangeCrossConnectCompartment operation type ChangeCrossConnectCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // Request to change the compartment of a Cross Connect. @@ -41,6 +43,10 @@ func (request ChangeCrossConnectCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeCrossConnectCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeCrossConnectCompartmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeCrossConnectCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeCrossConnectCompartmentResponse wrapper for the ChangeCrossConnectCompartment operation type ChangeCrossConnectCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_details.go new file mode 100644 index 0000000000..2eefb5f73b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeCrossConnectGroupCompartmentDetails The configuration details for the move operation. +type ChangeCrossConnectGroupCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // cross-connect group to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeCrossConnectGroupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeCrossConnectGroupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_request_response.go index b7f0eb2fe0..613049566e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_cross_connect_group_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_cross_connect_group_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeCrossConnectGroupCompartmentRequest wrapper for the ChangeCrossConnectGroupCompartment operation type ChangeCrossConnectGroupCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` // Request to change the compartment of a Cross Connect Group. @@ -41,6 +43,10 @@ func (request ChangeCrossConnectGroupCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeCrossConnectGroupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeCrossConnectGroupCompartmentRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeCrossConnectGroupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeCrossConnectGroupCompartmentResponse wrapper for the ChangeCrossConnectGroupCompartment operation type ChangeCrossConnectGroupCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_details.go new file mode 100644 index 0000000000..186c7d6ed7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeDedicatedVmHostCompartmentDetails Specifies the compartment to move the dedicated virtual machine host to. +type ChangeDedicatedVmHostCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // to move the dedicated virtual machine host to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeDedicatedVmHostCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeDedicatedVmHostCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_request_response.go index 3824031da1..235013328d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dedicated_vm_host_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dedicated_vm_host_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeDedicatedVmHostCompartmentRequest wrapper for the ChangeDedicatedVmHostCompartment operation @@ -46,6 +48,10 @@ func (request ChangeDedicatedVmHostCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeDedicatedVmHostCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeDedicatedVmHostCompartmentRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeDedicatedVmHostCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeDedicatedVmHostCompartmentResponse wrapper for the ChangeDedicatedVmHostCompartment operation type ChangeDedicatedVmHostCompartmentResponse struct { @@ -74,7 +91,8 @@ type ChangeDedicatedVmHostCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_details.go new file mode 100644 index 0000000000..7c8c43ef1d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeDhcpOptionsCompartmentDetails The configuration details for the move operation. +type ChangeDhcpOptionsCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // set of DHCP options to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeDhcpOptionsCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeDhcpOptionsCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_request_response.go index 985a591789..14e99b7ee6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_dhcp_options_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_dhcp_options_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeDhcpOptionsCompartmentRequest wrapper for the ChangeDhcpOptionsCompartment operation type ChangeDhcpOptionsCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` // Request to change the compartment of a set of DHCP Options. @@ -41,6 +43,10 @@ func (request ChangeDhcpOptionsCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeDhcpOptionsCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeDhcpOptionsCompartmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeDhcpOptionsCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeDhcpOptionsCompartmentResponse wrapper for the ChangeDhcpOptionsCompartment operation type ChangeDhcpOptionsCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_details.go new file mode 100644 index 0000000000..9811d58ef6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeDrgAttachmentCompartmentDetails The configuration details for the move operation. +type ChangeDrgAttachmentCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // DRG attachment to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeDrgAttachmentCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeDrgAttachmentCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_request_response.go index 63eaa544c5..b39f1ab5ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_attachment_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_attachment_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeDrgAttachmentCompartmentRequest wrapper for the ChangeDrgAttachmentCompartment operation @@ -41,6 +43,10 @@ func (request ChangeDrgAttachmentCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeDrgAttachmentCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeDrgAttachmentCompartmentRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeDrgAttachmentCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeDrgAttachmentCompartmentResponse wrapper for the ChangeDrgAttachmentCompartment operation type ChangeDrgAttachmentCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_details.go new file mode 100644 index 0000000000..34fa427688 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeDrgCompartmentDetails The configuration details for the move operation. +type ChangeDrgCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // DRG to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeDrgCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeDrgCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go index e5bec82429..5b57efc24b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_drg_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_drg_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeDrgCompartmentRequest wrapper for the ChangeDrgCompartment operation type ChangeDrgCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Request to change the compartment of a DRG. @@ -41,6 +43,10 @@ func (request ChangeDrgCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeDrgCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeDrgCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeDrgCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeDrgCompartmentResponse wrapper for the ChangeDrgCompartment operation type ChangeDrgCompartmentResponse struct { @@ -69,7 +86,8 @@ type ChangeDrgCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_i_p_sec_connection_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_i_p_sec_connection_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_i_p_sec_connection_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_i_p_sec_connection_compartment_request_response.go index 0224d8b3ed..59c8d2827a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_i_p_sec_connection_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_i_p_sec_connection_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeIPSecConnectionCompartmentRequest wrapper for the ChangeIPSecConnectionCompartment operation type ChangeIPSecConnectionCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Request to change the compartment of a IPSec connection. @@ -41,6 +43,10 @@ func (request ChangeIPSecConnectionCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeIPSecConnectionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeIPSecConnectionCompartmentRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeIPSecConnectionCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeIPSecConnectionCompartmentResponse wrapper for the ChangeIPSecConnectionCompartment operation type ChangeIPSecConnectionCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_details.go new file mode 100644 index 0000000000..2a5176e02a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeImageCompartmentDetails The configuration details for the move operation. +type ChangeImageCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the image to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeImageCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeImageCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go index 0401f54209..e4feeca96c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_image_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_image_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeImageCompartmentRequest wrapper for the ChangeImageCompartment operation @@ -46,6 +48,10 @@ func (request ChangeImageCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeImageCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeImageCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeImageCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeImageCompartmentResponse wrapper for the ChangeImageCompartment operation type ChangeImageCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_details.go new file mode 100644 index 0000000000..1e1e4d3c49 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeInstanceCompartmentDetails The configuration details for the move operation. +type ChangeInstanceCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the instance to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeInstanceCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeInstanceCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go index 6dd9e30608..9cebc3049c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeInstanceCompartmentRequest wrapper for the ChangeInstanceCompartment operation @@ -46,6 +48,10 @@ func (request ChangeInstanceCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeInstanceCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeInstanceCompartmentRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeInstanceCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeInstanceCompartmentResponse wrapper for the ChangeInstanceCompartment operation type ChangeInstanceCompartmentResponse struct { @@ -74,7 +91,8 @@ type ChangeInstanceCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_details.go new file mode 100644 index 0000000000..e1a1a00a12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeInstanceConfigurationCompartmentDetails The configuration details for the move operation. +type ChangeInstanceConfigurationCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to + // move the instance configuration to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeInstanceConfigurationCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeInstanceConfigurationCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_request_response.go index e5830c79f6..68da080c4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_configuration_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_configuration_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeInstanceConfigurationCompartmentRequest wrapper for the ChangeInstanceConfigurationCompartment operation @@ -46,6 +48,10 @@ func (request ChangeInstanceConfigurationCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeInstanceConfigurationCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeInstanceConfigurationCompartmentRequest) RetryPolicy() *comm return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeInstanceConfigurationCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeInstanceConfigurationCompartmentResponse wrapper for the ChangeInstanceConfigurationCompartment operation type ChangeInstanceConfigurationCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_details.go new file mode 100644 index 0000000000..8fb78006e5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeInstancePoolCompartmentDetails The configuration details for the move operation. +type ChangeInstancePoolCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to + // move the instance pool to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeInstancePoolCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeInstancePoolCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_request_response.go index a575087601..8acf44c4d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_instance_pool_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_instance_pool_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeInstancePoolCompartmentRequest wrapper for the ChangeInstancePoolCompartment operation @@ -46,6 +48,10 @@ func (request ChangeInstancePoolCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeInstancePoolCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeInstancePoolCompartmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeInstancePoolCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeInstancePoolCompartmentResponse wrapper for the ChangeInstancePoolCompartment operation type ChangeInstancePoolCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_details.go new file mode 100644 index 0000000000..e4c4d8aa9f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeInternalDrgCompartmentDetails The configuration details for the changing the compartment. +type ChangeInternalDrgCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // DRG to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeInternalDrgCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeInternalDrgCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_request_response.go index 37473b33f4..ab53e72fc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_drg_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_drg_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeInternalDrgCompartmentRequest wrapper for the ChangeInternalDrgCompartment operation @@ -34,6 +36,10 @@ func (request ChangeInternalDrgCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeInternalDrgCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeInternalDrgCompartmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeInternalDrgCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeInternalDrgCompartmentResponse wrapper for the ChangeInternalDrgCompartment operation type ChangeInternalDrgCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_details.go new file mode 100644 index 0000000000..ed0f9ca0d5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeInternalGenericGatewayCompartmentDetails Contains details indicating which compartment the resource should move to +type ChangeInternalGenericGatewayCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the new compartment + DestinationCompartmentId *string `mandatory:"true" json:"destinationCompartmentId"` +} + +func (m ChangeInternalGenericGatewayCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeInternalGenericGatewayCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_request_response.go index 20da6f554e..46c59115fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internal_generic_gateway_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internal_generic_gateway_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeInternalGenericGatewayCompartmentRequest wrapper for the ChangeInternalGenericGatewayCompartment operation @@ -41,6 +43,10 @@ func (request ChangeInternalGenericGatewayCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeInternalGenericGatewayCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeInternalGenericGatewayCompartmentRequest) RetryPolicy() *com return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeInternalGenericGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeInternalGenericGatewayCompartmentResponse wrapper for the ChangeInternalGenericGatewayCompartment operation type ChangeInternalGenericGatewayCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_details.go new file mode 100644 index 0000000000..3ea86447d6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeInternetGatewayCompartmentDetails The configuration details for the move operation. +type ChangeInternetGatewayCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // internet gateway to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeInternetGatewayCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeInternetGatewayCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_request_response.go index 520111112c..2694c54555 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_internet_gateway_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_internet_gateway_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeInternetGatewayCompartmentRequest wrapper for the ChangeInternetGatewayCompartment operation type ChangeInternetGatewayCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` // Request to change the compartment of an internet gateway. @@ -41,6 +43,10 @@ func (request ChangeInternetGatewayCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeInternetGatewayCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeInternetGatewayCompartmentRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeInternetGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeInternetGatewayCompartmentResponse wrapper for the ChangeInternetGatewayCompartment operation type ChangeInternetGatewayCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_ip_sec_connection_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_ip_sec_connection_compartment_details.go new file mode 100644 index 0000000000..c592b57a7d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_ip_sec_connection_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeIpSecConnectionCompartmentDetails The configuration details for the move operation. +type ChangeIpSecConnectionCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // IPSec connection to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeIpSecConnectionCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeIpSecConnectionCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_details.go new file mode 100644 index 0000000000..19f33068fa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeLocalPeeringGatewayCompartmentDetails The configuration details for the move operation. +type ChangeLocalPeeringGatewayCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // local peering gateway to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeLocalPeeringGatewayCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeLocalPeeringGatewayCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_request_response.go index 35c34a4f4b..eded5c7ea1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_local_peering_gateway_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_local_peering_gateway_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeLocalPeeringGatewayCompartmentRequest wrapper for the ChangeLocalPeeringGatewayCompartment operation type ChangeLocalPeeringGatewayCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` // Request to change the compartment of a given local peering gateway. @@ -41,6 +43,10 @@ func (request ChangeLocalPeeringGatewayCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeLocalPeeringGatewayCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeLocalPeeringGatewayCompartmentRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeLocalPeeringGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeLocalPeeringGatewayCompartmentResponse wrapper for the ChangeLocalPeeringGatewayCompartment operation type ChangeLocalPeeringGatewayCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_details.go new file mode 100644 index 0000000000..9f4ef6c70e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeNatGatewayCompartmentDetails The configuration details for the move operation. +type ChangeNatGatewayCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the NAT gateway to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeNatGatewayCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeNatGatewayCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_request_response.go index b3852a671a..4da3b25c8e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_nat_gateway_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_nat_gateway_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeNatGatewayCompartmentRequest wrapper for the ChangeNatGatewayCompartment operation @@ -41,6 +43,10 @@ func (request ChangeNatGatewayCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeNatGatewayCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeNatGatewayCompartmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeNatGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeNatGatewayCompartmentResponse wrapper for the ChangeNatGatewayCompartment operation type ChangeNatGatewayCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_details.go new file mode 100644 index 0000000000..32cbbdc5a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeNetworkSecurityGroupCompartmentDetails The representation of ChangeNetworkSecurityGroupCompartmentDetails +type ChangeNetworkSecurityGroupCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the network + // security group to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeNetworkSecurityGroupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeNetworkSecurityGroupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_request_response.go index 048aa4dd9a..00ecabe9d1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_network_security_group_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_network_security_group_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeNetworkSecurityGroupCompartmentRequest wrapper for the ChangeNetworkSecurityGroupCompartment operation @@ -41,6 +43,10 @@ func (request ChangeNetworkSecurityGroupCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeNetworkSecurityGroupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeNetworkSecurityGroupCompartmentRequest) RetryPolicy() *commo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeNetworkSecurityGroupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeNetworkSecurityGroupCompartmentResponse wrapper for the ChangeNetworkSecurityGroupCompartment operation type ChangeNetworkSecurityGroupCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_details.go new file mode 100644 index 0000000000..608bda7837 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangePrivateEndpointCompartmentDetails The configuration details for the move operation. +type ChangePrivateEndpointCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // into which the private endpoint should be moved. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangePrivateEndpointCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangePrivateEndpointCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_request_response.go index b26c133ff4..7f9d8de738 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_private_endpoint_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_private_endpoint_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangePrivateEndpointCompartmentRequest wrapper for the ChangePrivateEndpointCompartment operation @@ -46,6 +48,10 @@ func (request ChangePrivateEndpointCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangePrivateEndpointCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangePrivateEndpointCompartmentRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangePrivateEndpointCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangePrivateEndpointCompartmentResponse wrapper for the ChangePrivateEndpointCompartment operation type ChangePrivateEndpointCompartmentResponse struct { @@ -71,7 +88,8 @@ type ChangePrivateEndpointCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_details.go new file mode 100644 index 0000000000..71b6cfd76d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangePublicIpCompartmentDetails The configuration details for the move operation. +type ChangePublicIpCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // public IP to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangePublicIpCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangePublicIpCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_request_response.go index 5fa92861e7..c98ff0dcc7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangePublicIpCompartmentRequest wrapper for the ChangePublicIpCompartment operation type ChangePublicIpCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` // Request to change the compartment of a Public IP. @@ -41,6 +43,10 @@ func (request ChangePublicIpCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangePublicIpCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangePublicIpCompartmentRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangePublicIpCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangePublicIpCompartmentResponse wrapper for the ChangePublicIpCompartment operation type ChangePublicIpCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_details.go new file mode 100644 index 0000000000..9f39c7bc6e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangePublicIpPoolCompartmentDetails The configuration details for the move operation. +type ChangePublicIpPoolCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the public IP pool move. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangePublicIpPoolCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangePublicIpPoolCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_request_response.go index 5a6a283432..1d3b16a848 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_public_ip_pool_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_public_ip_pool_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangePublicIpPoolCompartmentRequest wrapper for the ChangePublicIpPoolCompartment operation @@ -41,6 +43,10 @@ func (request ChangePublicIpPoolCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangePublicIpPoolCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangePublicIpPoolCompartmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangePublicIpPoolCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangePublicIpPoolCompartmentResponse wrapper for the ChangePublicIpPoolCompartment operation type ChangePublicIpPoolCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_details.go new file mode 100644 index 0000000000..35e4a9fc4a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeRemotePeeringConnectionCompartmentDetails The configuration details for the move operation. +type ChangeRemotePeeringConnectionCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // remote peering connection to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeRemotePeeringConnectionCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeRemotePeeringConnectionCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_request_response.go index 729bbf1aee..b1a6355ef4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_remote_peering_connection_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_remote_peering_connection_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeRemotePeeringConnectionCompartmentRequest wrapper for the ChangeRemotePeeringConnectionCompartment operation type ChangeRemotePeeringConnectionCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` // Request to change the compartment of a remote peering connection. @@ -41,6 +43,10 @@ func (request ChangeRemotePeeringConnectionCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeRemotePeeringConnectionCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeRemotePeeringConnectionCompartmentRequest) RetryPolicy() *co return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeRemotePeeringConnectionCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeRemotePeeringConnectionCompartmentResponse wrapper for the ChangeRemotePeeringConnectionCompartment operation type ChangeRemotePeeringConnectionCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_details.go new file mode 100644 index 0000000000..b2edc53579 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeRouteTableCompartmentDetails The configuration details for the move operation. +type ChangeRouteTableCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // route table to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeRouteTableCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeRouteTableCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_request_response.go index d4484101c3..2f3a0666ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_route_table_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_route_table_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeRouteTableCompartmentRequest wrapper for the ChangeRouteTableCompartment operation type ChangeRouteTableCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // Request to change the compartment of a given route table. @@ -41,6 +43,10 @@ func (request ChangeRouteTableCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeRouteTableCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeRouteTableCompartmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeRouteTableCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeRouteTableCompartmentResponse wrapper for the ChangeRouteTableCompartment operation type ChangeRouteTableCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_details.go new file mode 100644 index 0000000000..e141d921dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeSecurityListCompartmentDetails The configuration details for the move operation. +type ChangeSecurityListCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // security list to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeSecurityListCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeSecurityListCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_request_response.go index efa4524add..f8c6ec73b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_security_list_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_security_list_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeSecurityListCompartmentRequest wrapper for the ChangeSecurityListCompartment operation type ChangeSecurityListCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` // Request to change the compartment of a given security list. @@ -41,6 +43,10 @@ func (request ChangeSecurityListCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeSecurityListCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeSecurityListCompartmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeSecurityListCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeSecurityListCompartmentResponse wrapper for the ChangeSecurityListCompartment operation type ChangeSecurityListCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_details.go new file mode 100644 index 0000000000..7f16a4b4bc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeServiceGatewayCompartmentDetails The configuration details for the move operation. +type ChangeServiceGatewayCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // service gateway to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeServiceGatewayCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeServiceGatewayCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_request_response.go index 6452aa26d0..6316df607b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_service_gateway_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_service_gateway_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeServiceGatewayCompartmentRequest wrapper for the ChangeServiceGatewayCompartment operation @@ -41,6 +43,10 @@ func (request ChangeServiceGatewayCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeServiceGatewayCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeServiceGatewayCompartmentRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeServiceGatewayCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeServiceGatewayCompartmentResponse wrapper for the ChangeServiceGatewayCompartment operation type ChangeServiceGatewayCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_details.go new file mode 100644 index 0000000000..0488810e08 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeSubnetCompartmentDetails The configuration details for the move operation. +type ChangeSubnetCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // subnet to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeSubnetCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeSubnetCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go index af8f1e2bbc..a20c53fb0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_subnet_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_subnet_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeSubnetCompartmentRequest wrapper for the ChangeSubnetCompartment operation type ChangeSubnetCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` // Request to change the compartment of a given subnet. @@ -41,6 +43,10 @@ func (request ChangeSubnetCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeSubnetCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeSubnetCompartmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeSubnetCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeSubnetCompartmentResponse wrapper for the ChangeSubnetCompartment operation type ChangeSubnetCompartmentResponse struct { @@ -69,7 +86,8 @@ type ChangeSubnetCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_details.go new file mode 100644 index 0000000000..a65d844fed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVcnCompartmentDetails The configuration details for the move operation. +type ChangeVcnCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // VCN to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVcnCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVcnCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go index 45edd0a2d9..74babe22cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVcnCompartmentRequest wrapper for the ChangeVcnCompartment operation @@ -41,6 +43,10 @@ func (request ChangeVcnCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVcnCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeVcnCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVcnCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVcnCompartmentResponse wrapper for the ChangeVcnCompartment operation type ChangeVcnCompartmentResponse struct { @@ -69,7 +86,8 @@ type ChangeVcnCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_drg_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_drg_compartment_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_drg_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_drg_compartment_request_response.go index a0a769073c..161b48deb5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vcn_drg_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vcn_drg_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVcnDrgCompartmentRequest wrapper for the ChangeVcnDrgCompartment operation type ChangeVcnDrgCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Request to change the compartment of a DRG. @@ -41,6 +43,10 @@ func (request ChangeVcnDrgCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVcnDrgCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeVcnDrgCompartmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVcnDrgCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVcnDrgCompartmentResponse wrapper for the ChangeVcnDrgCompartment operation type ChangeVcnDrgCompartmentResponse struct { @@ -69,7 +86,8 @@ type ChangeVcnDrgCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_details.go new file mode 100644 index 0000000000..61bd61ad54 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVirtualCircuitCompartmentDetails The configuration details for the move operation. +type ChangeVirtualCircuitCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the + // virtual circuit to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVirtualCircuitCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVirtualCircuitCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_request_response.go index 11b1ce52be..b89d546f8b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_virtual_circuit_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_virtual_circuit_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVirtualCircuitCompartmentRequest wrapper for the ChangeVirtualCircuitCompartment operation type ChangeVirtualCircuitCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Request to change the compartment of a virtual circuit. @@ -41,6 +43,10 @@ func (request ChangeVirtualCircuitCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVirtualCircuitCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeVirtualCircuitCompartmentRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVirtualCircuitCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVirtualCircuitCompartmentResponse wrapper for the ChangeVirtualCircuitCompartment operation type ChangeVirtualCircuitCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_details.go new file mode 100644 index 0000000000..a57d7f4b32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVlanCompartmentDetails The configuration details for the move operation. +type ChangeVlanCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the VLAN to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVlanCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVlanCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go index be40ea37ec..d103142a20 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vlan_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vlan_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVlanCompartmentRequest wrapper for the ChangeVlanCompartment operation @@ -46,6 +48,10 @@ func (request ChangeVlanCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVlanCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeVlanCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVlanCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVlanCompartmentResponse wrapper for the ChangeVlanCompartment operation type ChangeVlanCompartmentResponse struct { @@ -71,7 +88,8 @@ type ChangeVlanCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request.go new file mode 100644 index 0000000000..afeb7be583 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVnicAttachmentsCompartmentRequest This structure is used when changing vnic attachment compartment. +type ChangeVnicAttachmentsCompartmentRequest struct { + + // List of VNICs whose attachments need to move to the destination compartment + VnicIds []string `mandatory:"false" json:"vnicIds"` + + // The ID of the parent resource that these VNICs are attached to + ParentResourceId *string `mandatory:"false" json:"parentResourceId"` + + // The destination compartment ID + DestinationCompartmentId *string `mandatory:"false" json:"destinationCompartmentId"` + + // The compartment ID to create the work request in. This is NOT the customer's compartment + // but one that belongs to the calling service. Typically this is not the same as the destination + // compartment ID + WorkRequestCompartmentId *string `mandatory:"false" json:"workRequestCompartmentId"` +} + +func (m ChangeVnicAttachmentsCompartmentRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVnicAttachmentsCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request_request_response.go index 1b1a816c70..f12b006ebd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vnic_attachments_compartment_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vnic_attachments_compartment_request_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVnicAttachmentsCompartmentRequestRequest wrapper for the ChangeVnicAttachmentsCompartmentRequest operation @@ -38,6 +40,10 @@ func (request ChangeVnicAttachmentsCompartmentRequestRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVnicAttachmentsCompartmentRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request ChangeVnicAttachmentsCompartmentRequestRequest) RetryPolicy() *com return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVnicAttachmentsCompartmentRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVnicAttachmentsCompartmentRequestResponse wrapper for the ChangeVnicAttachmentsCompartmentRequest operation type ChangeVnicAttachmentsCompartmentRequestResponse struct { @@ -63,7 +80,8 @@ type ChangeVnicAttachmentsCompartmentRequestResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_details.go new file mode 100644 index 0000000000..83811ab34d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVolumeBackupCompartmentDetails Contains the details for the compartment to move the volume backup to. +type ChangeVolumeBackupCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume backup to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVolumeBackupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVolumeBackupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_request_response.go index 853ded0083..d859ef5755 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_backup_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_backup_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVolumeBackupCompartmentRequest wrapper for the ChangeVolumeBackupCompartment operation @@ -34,6 +36,10 @@ func (request ChangeVolumeBackupCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVolumeBackupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeVolumeBackupCompartmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVolumeBackupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVolumeBackupCompartmentResponse wrapper for the ChangeVolumeBackupCompartment operation type ChangeVolumeBackupCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_details.go new file mode 100644 index 0000000000..bde6a21cae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVolumeCompartmentDetails Contains the details for the compartment to move the volume to. +type ChangeVolumeCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVolumeCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVolumeCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go index eaa3f26a9c..21c4d23e37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVolumeCompartmentRequest wrapper for the ChangeVolumeCompartment operation @@ -34,6 +36,10 @@ func (request ChangeVolumeCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVolumeCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeVolumeCompartmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVolumeCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVolumeCompartmentResponse wrapper for the ChangeVolumeCompartment operation type ChangeVolumeCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_details.go new file mode 100644 index 0000000000..5fb8e74e2e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVolumeGroupBackupCompartmentDetails Contains the details for the compartment to move the volume group backup to. +type ChangeVolumeGroupBackupCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume group backup to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVolumeGroupBackupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVolumeGroupBackupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_request_response.go index 334384de85..d1104eda85 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_backup_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_backup_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVolumeGroupBackupCompartmentRequest wrapper for the ChangeVolumeGroupBackupCompartment operation @@ -34,6 +36,10 @@ func (request ChangeVolumeGroupBackupCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVolumeGroupBackupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeVolumeGroupBackupCompartmentRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVolumeGroupBackupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVolumeGroupBackupCompartmentResponse wrapper for the ChangeVolumeGroupBackupCompartment operation type ChangeVolumeGroupBackupCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_details.go new file mode 100644 index 0000000000..5331a2ff42 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVolumeGroupCompartmentDetails Contains the details for the compartment to move the volume group to. +type ChangeVolumeGroupCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the volume group to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVolumeGroupCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVolumeGroupCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_request_response.go index e57c5dba9f..fefcbf0056 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_volume_group_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_volume_group_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVolumeGroupCompartmentRequest wrapper for the ChangeVolumeGroupCompartment operation @@ -34,6 +36,10 @@ func (request ChangeVolumeGroupCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVolumeGroupCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ChangeVolumeGroupCompartmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVolumeGroupCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVolumeGroupCompartmentResponse wrapper for the ChangeVolumeGroupCompartment operation type ChangeVolumeGroupCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_details.go new file mode 100644 index 0000000000..25a77a3722 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeVtapCompartmentDetails These configuration details are used in the move operation when changing the compartment containing a virtual test access point (VTAP). +type ChangeVtapCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination compartment for the VTAP move. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeVtapCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeVtapCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go index 49b273efc7..b33ba60f82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/change_vtap_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/change_vtap_compartment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeVtapCompartmentRequest wrapper for the ChangeVtapCompartment operation type ChangeVtapCompartmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VTAP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` // Request to change the compartment that contains a VTAP. @@ -46,6 +48,10 @@ func (request ChangeVtapCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeVtapCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeVtapCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeVtapCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeVtapCompartmentResponse wrapper for the ChangeVtapCompartment operation type ChangeVtapCompartmentResponse struct { @@ -74,7 +91,8 @@ type ChangeVtapCompartmentResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn.go new file mode 100644 index 0000000000..c1d41d1be9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn.go @@ -0,0 +1,263 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpn The ClientVPNEnpoint is a server endpoint that allow customer get access to openVPN service. +type ClientVpn struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that user sent request. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of clientVPNEndpoint. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attachedSubnet (VNIC) in customer tenancy. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The IP address in attached subnet. + IpAddressInAttachedSubnet *string `mandatory:"true" json:"ipAddressInAttachedSubnet"` + + // Whether re-route Internet traffic or not. + IsRerouteEnabled *bool `mandatory:"true" json:"isRerouteEnabled"` + + // A list of accessible subnets from this clientVPNEndpoint. + AccessibleSubnetCidrs []string `mandatory:"true" json:"accessibleSubnetCidrs"` + + DnsConfig *DnsConfigDetails `mandatory:"true" json:"dnsConfig"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The current state of the ClientVPNenpoint. + LifecycleState ClientVpnLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // A limit that allows the maximum number of VPN concurrent connections. + MaxConnections *int `mandatory:"false" json:"maxConnections"` + + // A subnet for openVPN clients to access servers. + ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` + + // Allowed values: + // * `NAT`: NAT mode supports the one-way access. In NAT mode, client can access the Internet from server endpoint + // but server endpoint cannot access the Internet from client. + // * `ROUTING`: ROUTING mode supports the two-way access. In ROUTING mode, client and server endpoint can access the + // Internet to each other. + AddressingMode ClientVpnAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` + + // Allowed values: + // * `LOCAL`: Local authentication mode that applies users and password to get authentication through the server. + // * `RADIUS`: RADIUS authentication mode applies users and password to get authentication through the RADIUS server. + // * `LDAP`: LDAP authentication mode that applies users and passwords to get authentication through the LDAP server. + AuthenticationMode ClientVpnAuthenticationModeEnum `mandatory:"false" json:"authenticationMode,omitempty"` + + // The time ClientVpn was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + RadiusConfig *RadiusConfigDetails `mandatory:"false" json:"radiusConfig"` + + LdapConfig *LdapConfigDetails `mandatory:"false" json:"ldapConfig"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ClientVpn) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpn) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClientVpnLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClientVpnLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingClientVpnAddressingModeEnum(string(m.AddressingMode)); !ok && m.AddressingMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AddressingMode: %s. Supported values are: %s.", m.AddressingMode, strings.Join(GetClientVpnAddressingModeEnumStringValues(), ","))) + } + if _, ok := GetMappingClientVpnAuthenticationModeEnum(string(m.AuthenticationMode)); !ok && m.AuthenticationMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthenticationMode: %s. Supported values are: %s.", m.AuthenticationMode, strings.Join(GetClientVpnAuthenticationModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClientVpnLifecycleStateEnum Enum with underlying type: string +type ClientVpnLifecycleStateEnum string + +// Set of constants representing the allowable values for ClientVpnLifecycleStateEnum +const ( + ClientVpnLifecycleStateCreating ClientVpnLifecycleStateEnum = "CREATING" + ClientVpnLifecycleStateActive ClientVpnLifecycleStateEnum = "ACTIVE" + ClientVpnLifecycleStateInactive ClientVpnLifecycleStateEnum = "INACTIVE" + ClientVpnLifecycleStateFailed ClientVpnLifecycleStateEnum = "FAILED" + ClientVpnLifecycleStateDeleted ClientVpnLifecycleStateEnum = "DELETED" + ClientVpnLifecycleStateDeleting ClientVpnLifecycleStateEnum = "DELETING" + ClientVpnLifecycleStateUpdating ClientVpnLifecycleStateEnum = "UPDATING" +) + +var mappingClientVpnLifecycleStateEnum = map[string]ClientVpnLifecycleStateEnum{ + "CREATING": ClientVpnLifecycleStateCreating, + "ACTIVE": ClientVpnLifecycleStateActive, + "INACTIVE": ClientVpnLifecycleStateInactive, + "FAILED": ClientVpnLifecycleStateFailed, + "DELETED": ClientVpnLifecycleStateDeleted, + "DELETING": ClientVpnLifecycleStateDeleting, + "UPDATING": ClientVpnLifecycleStateUpdating, +} + +var mappingClientVpnLifecycleStateEnumLowerCase = map[string]ClientVpnLifecycleStateEnum{ + "creating": ClientVpnLifecycleStateCreating, + "active": ClientVpnLifecycleStateActive, + "inactive": ClientVpnLifecycleStateInactive, + "failed": ClientVpnLifecycleStateFailed, + "deleted": ClientVpnLifecycleStateDeleted, + "deleting": ClientVpnLifecycleStateDeleting, + "updating": ClientVpnLifecycleStateUpdating, +} + +// GetClientVpnLifecycleStateEnumValues Enumerates the set of values for ClientVpnLifecycleStateEnum +func GetClientVpnLifecycleStateEnumValues() []ClientVpnLifecycleStateEnum { + values := make([]ClientVpnLifecycleStateEnum, 0) + for _, v := range mappingClientVpnLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnLifecycleStateEnumStringValues Enumerates the set of values in String for ClientVpnLifecycleStateEnum +func GetClientVpnLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETED", + "DELETING", + "UPDATING", + } +} + +// GetMappingClientVpnLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnLifecycleStateEnum(val string) (ClientVpnLifecycleStateEnum, bool) { + enum, ok := mappingClientVpnLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ClientVpnAddressingModeEnum Enum with underlying type: string +type ClientVpnAddressingModeEnum string + +// Set of constants representing the allowable values for ClientVpnAddressingModeEnum +const ( + ClientVpnAddressingModeNat ClientVpnAddressingModeEnum = "NAT" + ClientVpnAddressingModeRouting ClientVpnAddressingModeEnum = "ROUTING" +) + +var mappingClientVpnAddressingModeEnum = map[string]ClientVpnAddressingModeEnum{ + "NAT": ClientVpnAddressingModeNat, + "ROUTING": ClientVpnAddressingModeRouting, +} + +var mappingClientVpnAddressingModeEnumLowerCase = map[string]ClientVpnAddressingModeEnum{ + "nat": ClientVpnAddressingModeNat, + "routing": ClientVpnAddressingModeRouting, +} + +// GetClientVpnAddressingModeEnumValues Enumerates the set of values for ClientVpnAddressingModeEnum +func GetClientVpnAddressingModeEnumValues() []ClientVpnAddressingModeEnum { + values := make([]ClientVpnAddressingModeEnum, 0) + for _, v := range mappingClientVpnAddressingModeEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnAddressingModeEnumStringValues Enumerates the set of values in String for ClientVpnAddressingModeEnum +func GetClientVpnAddressingModeEnumStringValues() []string { + return []string{ + "NAT", + "ROUTING", + } +} + +// GetMappingClientVpnAddressingModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnAddressingModeEnum(val string) (ClientVpnAddressingModeEnum, bool) { + enum, ok := mappingClientVpnAddressingModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ClientVpnAuthenticationModeEnum Enum with underlying type: string +type ClientVpnAuthenticationModeEnum string + +// Set of constants representing the allowable values for ClientVpnAuthenticationModeEnum +const ( + ClientVpnAuthenticationModeLocal ClientVpnAuthenticationModeEnum = "LOCAL" + ClientVpnAuthenticationModeRadius ClientVpnAuthenticationModeEnum = "RADIUS" + ClientVpnAuthenticationModeLdap ClientVpnAuthenticationModeEnum = "LDAP" +) + +var mappingClientVpnAuthenticationModeEnum = map[string]ClientVpnAuthenticationModeEnum{ + "LOCAL": ClientVpnAuthenticationModeLocal, + "RADIUS": ClientVpnAuthenticationModeRadius, + "LDAP": ClientVpnAuthenticationModeLdap, +} + +var mappingClientVpnAuthenticationModeEnumLowerCase = map[string]ClientVpnAuthenticationModeEnum{ + "local": ClientVpnAuthenticationModeLocal, + "radius": ClientVpnAuthenticationModeRadius, + "ldap": ClientVpnAuthenticationModeLdap, +} + +// GetClientVpnAuthenticationModeEnumValues Enumerates the set of values for ClientVpnAuthenticationModeEnum +func GetClientVpnAuthenticationModeEnumValues() []ClientVpnAuthenticationModeEnum { + values := make([]ClientVpnAuthenticationModeEnum, 0) + for _, v := range mappingClientVpnAuthenticationModeEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnAuthenticationModeEnumStringValues Enumerates the set of values in String for ClientVpnAuthenticationModeEnum +func GetClientVpnAuthenticationModeEnumStringValues() []string { + return []string{ + "LOCAL", + "RADIUS", + "LDAP", + } +} + +// GetMappingClientVpnAuthenticationModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnAuthenticationModeEnum(val string) (ClientVpnAuthenticationModeEnum, bool) { + enum, ok := mappingClientVpnAuthenticationModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_active_user.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_active_user.go new file mode 100644 index 0000000000..922c0b6e48 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_active_user.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnActiveUser An active user on an endpoint. +type ClientVpnActiveUser struct { + + // The common username of a user. + UserName *string `mandatory:"false" json:"userName"` + + // The originating IP address of a user. + RealIp *string `mandatory:"false" json:"realIp"` + + // The duration of the user's connection. + ConnectionDuration *string `mandatory:"false" json:"connectionDuration"` +} + +func (m ClientVpnActiveUser) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnActiveUser) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_status.go new file mode 100644 index 0000000000..e759476ea0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_status.go @@ -0,0 +1,114 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnStatus The status of ClientVpn. +type ClientVpnStatus struct { + + // The number of current connections on given clientVpn. + CurrentConnections *int `mandatory:"true" json:"currentConnections"` + + // The list of active users. + ActiveUsers []ClientVpnActiveUser `mandatory:"true" json:"activeUsers"` + + // The current state of the ClientVPNendpoint. + LifecycleState ClientVpnStatusLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` +} + +func (m ClientVpnStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingClientVpnStatusLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClientVpnStatusLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClientVpnStatusLifecycleStateEnum Enum with underlying type: string +type ClientVpnStatusLifecycleStateEnum string + +// Set of constants representing the allowable values for ClientVpnStatusLifecycleStateEnum +const ( + ClientVpnStatusLifecycleStateCreating ClientVpnStatusLifecycleStateEnum = "CREATING" + ClientVpnStatusLifecycleStateActive ClientVpnStatusLifecycleStateEnum = "ACTIVE" + ClientVpnStatusLifecycleStateInactive ClientVpnStatusLifecycleStateEnum = "INACTIVE" + ClientVpnStatusLifecycleStateFailed ClientVpnStatusLifecycleStateEnum = "FAILED" + ClientVpnStatusLifecycleStateDeleted ClientVpnStatusLifecycleStateEnum = "DELETED" + ClientVpnStatusLifecycleStateDeleting ClientVpnStatusLifecycleStateEnum = "DELETING" + ClientVpnStatusLifecycleStateUpdating ClientVpnStatusLifecycleStateEnum = "UPDATING" +) + +var mappingClientVpnStatusLifecycleStateEnum = map[string]ClientVpnStatusLifecycleStateEnum{ + "CREATING": ClientVpnStatusLifecycleStateCreating, + "ACTIVE": ClientVpnStatusLifecycleStateActive, + "INACTIVE": ClientVpnStatusLifecycleStateInactive, + "FAILED": ClientVpnStatusLifecycleStateFailed, + "DELETED": ClientVpnStatusLifecycleStateDeleted, + "DELETING": ClientVpnStatusLifecycleStateDeleting, + "UPDATING": ClientVpnStatusLifecycleStateUpdating, +} + +var mappingClientVpnStatusLifecycleStateEnumLowerCase = map[string]ClientVpnStatusLifecycleStateEnum{ + "creating": ClientVpnStatusLifecycleStateCreating, + "active": ClientVpnStatusLifecycleStateActive, + "inactive": ClientVpnStatusLifecycleStateInactive, + "failed": ClientVpnStatusLifecycleStateFailed, + "deleted": ClientVpnStatusLifecycleStateDeleted, + "deleting": ClientVpnStatusLifecycleStateDeleting, + "updating": ClientVpnStatusLifecycleStateUpdating, +} + +// GetClientVpnStatusLifecycleStateEnumValues Enumerates the set of values for ClientVpnStatusLifecycleStateEnum +func GetClientVpnStatusLifecycleStateEnumValues() []ClientVpnStatusLifecycleStateEnum { + values := make([]ClientVpnStatusLifecycleStateEnum, 0) + for _, v := range mappingClientVpnStatusLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnStatusLifecycleStateEnumStringValues Enumerates the set of values in String for ClientVpnStatusLifecycleStateEnum +func GetClientVpnStatusLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETED", + "DELETING", + "UPDATING", + } +} + +// GetMappingClientVpnStatusLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnStatusLifecycleStateEnum(val string) (ClientVpnStatusLifecycleStateEnum, bool) { + enum, ok := mappingClientVpnStatusLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary.go new file mode 100644 index 0000000000..4e75c42537 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary.go @@ -0,0 +1,192 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnSummary a summary of ClientVpn. +type ClientVpnSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that user sent request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of clientVPNEndpoint. + Id *string `mandatory:"false" json:"id"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A limit that allows the maximum number of VPN concurrent connections. + MaxConnections *int `mandatory:"false" json:"maxConnections"` + + // The current state of the ClientVpn. + LifecycleState ClientVpnLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // A subnet for openVPN clients to access servers. + ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attachedSubnet (VNIC) in customer tenancy. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // The IP address in attached subnet. + IpAddressInAttachedSubnet *string `mandatory:"false" json:"ipAddressInAttachedSubnet"` + + // Whether re-route Internet traffic or not. + IsRerouteEnabled *bool `mandatory:"false" json:"isRerouteEnabled"` + + // The date and time the ClientVpn was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Allowed values: + // * `NAT`: NAT mode supports the one-way access. In NAT mode, client can access the Internet from server endpoint + // but server endpoint cannot access the Internet from client. + // * `ROUTING`: ROUTING mode supports the two-way access. In ROUTING mode, client and server endpoint can access the + // Internet to each other. + AddressingMode ClientVpnSummaryAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` + + // Allowed values: + // * `LOCAL`: Local authentication mode that applies users and password to get authentication through the server. + // * `RADIUS`: RADIUS authentication mode applies users and password to get authentication through the RADIUS server. + // * `LDAP`: LDAP authentication mode that applies users and passwords to get authentication through the LDAP server. + AuthenticationMode ClientVpnSummaryAuthenticationModeEnum `mandatory:"false" json:"authenticationMode,omitempty"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ClientVpnSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClientVpnLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClientVpnLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingClientVpnSummaryAddressingModeEnum(string(m.AddressingMode)); !ok && m.AddressingMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AddressingMode: %s. Supported values are: %s.", m.AddressingMode, strings.Join(GetClientVpnSummaryAddressingModeEnumStringValues(), ","))) + } + if _, ok := GetMappingClientVpnSummaryAuthenticationModeEnum(string(m.AuthenticationMode)); !ok && m.AuthenticationMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthenticationMode: %s. Supported values are: %s.", m.AuthenticationMode, strings.Join(GetClientVpnSummaryAuthenticationModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClientVpnSummaryAddressingModeEnum Enum with underlying type: string +type ClientVpnSummaryAddressingModeEnum string + +// Set of constants representing the allowable values for ClientVpnSummaryAddressingModeEnum +const ( + ClientVpnSummaryAddressingModeNat ClientVpnSummaryAddressingModeEnum = "NAT" + ClientVpnSummaryAddressingModeRouting ClientVpnSummaryAddressingModeEnum = "ROUTING" +) + +var mappingClientVpnSummaryAddressingModeEnum = map[string]ClientVpnSummaryAddressingModeEnum{ + "NAT": ClientVpnSummaryAddressingModeNat, + "ROUTING": ClientVpnSummaryAddressingModeRouting, +} + +var mappingClientVpnSummaryAddressingModeEnumLowerCase = map[string]ClientVpnSummaryAddressingModeEnum{ + "nat": ClientVpnSummaryAddressingModeNat, + "routing": ClientVpnSummaryAddressingModeRouting, +} + +// GetClientVpnSummaryAddressingModeEnumValues Enumerates the set of values for ClientVpnSummaryAddressingModeEnum +func GetClientVpnSummaryAddressingModeEnumValues() []ClientVpnSummaryAddressingModeEnum { + values := make([]ClientVpnSummaryAddressingModeEnum, 0) + for _, v := range mappingClientVpnSummaryAddressingModeEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnSummaryAddressingModeEnumStringValues Enumerates the set of values in String for ClientVpnSummaryAddressingModeEnum +func GetClientVpnSummaryAddressingModeEnumStringValues() []string { + return []string{ + "NAT", + "ROUTING", + } +} + +// GetMappingClientVpnSummaryAddressingModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnSummaryAddressingModeEnum(val string) (ClientVpnSummaryAddressingModeEnum, bool) { + enum, ok := mappingClientVpnSummaryAddressingModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ClientVpnSummaryAuthenticationModeEnum Enum with underlying type: string +type ClientVpnSummaryAuthenticationModeEnum string + +// Set of constants representing the allowable values for ClientVpnSummaryAuthenticationModeEnum +const ( + ClientVpnSummaryAuthenticationModeLocal ClientVpnSummaryAuthenticationModeEnum = "LOCAL" + ClientVpnSummaryAuthenticationModeRadius ClientVpnSummaryAuthenticationModeEnum = "RADIUS" + ClientVpnSummaryAuthenticationModeLdap ClientVpnSummaryAuthenticationModeEnum = "LDAP" +) + +var mappingClientVpnSummaryAuthenticationModeEnum = map[string]ClientVpnSummaryAuthenticationModeEnum{ + "LOCAL": ClientVpnSummaryAuthenticationModeLocal, + "RADIUS": ClientVpnSummaryAuthenticationModeRadius, + "LDAP": ClientVpnSummaryAuthenticationModeLdap, +} + +var mappingClientVpnSummaryAuthenticationModeEnumLowerCase = map[string]ClientVpnSummaryAuthenticationModeEnum{ + "local": ClientVpnSummaryAuthenticationModeLocal, + "radius": ClientVpnSummaryAuthenticationModeRadius, + "ldap": ClientVpnSummaryAuthenticationModeLdap, +} + +// GetClientVpnSummaryAuthenticationModeEnumValues Enumerates the set of values for ClientVpnSummaryAuthenticationModeEnum +func GetClientVpnSummaryAuthenticationModeEnumValues() []ClientVpnSummaryAuthenticationModeEnum { + values := make([]ClientVpnSummaryAuthenticationModeEnum, 0) + for _, v := range mappingClientVpnSummaryAuthenticationModeEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnSummaryAuthenticationModeEnumStringValues Enumerates the set of values in String for ClientVpnSummaryAuthenticationModeEnum +func GetClientVpnSummaryAuthenticationModeEnumStringValues() []string { + return []string{ + "LOCAL", + "RADIUS", + "LDAP", + } +} + +// GetMappingClientVpnSummaryAuthenticationModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnSummaryAuthenticationModeEnum(val string) (ClientVpnSummaryAuthenticationModeEnum, bool) { + enum, ok := mappingClientVpnSummaryAuthenticationModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary_collection.go new file mode 100644 index 0000000000..fa383ff98f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_summary_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnSummaryCollection Result of list of ClientVpn. +type ClientVpnSummaryCollection struct { + + // List of ClientVpns. + Items []ClientVpnSummary `mandatory:"true" json:"items"` +} + +func (m ClientVpnSummaryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnSummaryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user.go new file mode 100644 index 0000000000..18a46cb03b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user.go @@ -0,0 +1,118 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnUser The user of a certain clientVpn. +type ClientVpnUser struct { + + // The unique username of the user want to create. + UserName *string `mandatory:"true" json:"userName"` + + // The current state of the ClientVPNendpointUser. + LifecycleState ClientVpnUserLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Whether to log in the user by cert-authentication only or not. + IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` + + // The time ClientVpnUser was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m ClientVpnUser) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnUser) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClientVpnUserLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClientVpnUserLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClientVpnUserLifecycleStateEnum Enum with underlying type: string +type ClientVpnUserLifecycleStateEnum string + +// Set of constants representing the allowable values for ClientVpnUserLifecycleStateEnum +const ( + ClientVpnUserLifecycleStateCreating ClientVpnUserLifecycleStateEnum = "CREATING" + ClientVpnUserLifecycleStateActive ClientVpnUserLifecycleStateEnum = "ACTIVE" + ClientVpnUserLifecycleStateInactive ClientVpnUserLifecycleStateEnum = "INACTIVE" + ClientVpnUserLifecycleStateFailed ClientVpnUserLifecycleStateEnum = "FAILED" + ClientVpnUserLifecycleStateDeleted ClientVpnUserLifecycleStateEnum = "DELETED" + ClientVpnUserLifecycleStateDeleting ClientVpnUserLifecycleStateEnum = "DELETING" + ClientVpnUserLifecycleStateUpdating ClientVpnUserLifecycleStateEnum = "UPDATING" +) + +var mappingClientVpnUserLifecycleStateEnum = map[string]ClientVpnUserLifecycleStateEnum{ + "CREATING": ClientVpnUserLifecycleStateCreating, + "ACTIVE": ClientVpnUserLifecycleStateActive, + "INACTIVE": ClientVpnUserLifecycleStateInactive, + "FAILED": ClientVpnUserLifecycleStateFailed, + "DELETED": ClientVpnUserLifecycleStateDeleted, + "DELETING": ClientVpnUserLifecycleStateDeleting, + "UPDATING": ClientVpnUserLifecycleStateUpdating, +} + +var mappingClientVpnUserLifecycleStateEnumLowerCase = map[string]ClientVpnUserLifecycleStateEnum{ + "creating": ClientVpnUserLifecycleStateCreating, + "active": ClientVpnUserLifecycleStateActive, + "inactive": ClientVpnUserLifecycleStateInactive, + "failed": ClientVpnUserLifecycleStateFailed, + "deleted": ClientVpnUserLifecycleStateDeleted, + "deleting": ClientVpnUserLifecycleStateDeleting, + "updating": ClientVpnUserLifecycleStateUpdating, +} + +// GetClientVpnUserLifecycleStateEnumValues Enumerates the set of values for ClientVpnUserLifecycleStateEnum +func GetClientVpnUserLifecycleStateEnumValues() []ClientVpnUserLifecycleStateEnum { + values := make([]ClientVpnUserLifecycleStateEnum, 0) + for _, v := range mappingClientVpnUserLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetClientVpnUserLifecycleStateEnumStringValues Enumerates the set of values in String for ClientVpnUserLifecycleStateEnum +func GetClientVpnUserLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "FAILED", + "DELETED", + "DELETING", + "UPDATING", + } +} + +// GetMappingClientVpnUserLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientVpnUserLifecycleStateEnum(val string) (ClientVpnUserLifecycleStateEnum, bool) { + enum, ok := mappingClientVpnUserLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary.go new file mode 100644 index 0000000000..9522af45a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnUserSummary a summary of clientVpn. +type ClientVpnUserSummary struct { + + // The unique username of the user want to create. + UserName *string `mandatory:"false" json:"userName"` + + // The current state of the ClientVpnUser. + LifecycleState ClientVpnUserLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Whether to log in the user by cert-authentication only or not. + IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` + + // The date and time the ClientVpnUser was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m ClientVpnUserSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnUserSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClientVpnUserLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClientVpnUserLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary_collection.go new file mode 100644 index 0000000000..d4eae81cfe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/client_vpn_user_summary_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientVpnUserSummaryCollection Result of list of ClientVpnUser. +type ClientVpnUserSummaryCollection struct { + + // List of ClientVpnUsers. + Items []ClientVpnUserSummary `mandatory:"true" json:"items"` +} + +func (m ClientVpnUserSummaryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientVpnUserSummaryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network.go new file mode 100644 index 0000000000..15328ab699 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterNetwork A cluster network is a group of high performance computing (HPC) bare metal instances that are connected +// with an ultra low latency network. For more information about cluster networks, see +// Managing Cluster Networks (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingclusternetworks.htm). +type ClusterNetwork struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cluster network. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The current state of the cluster network. + LifecycleState ClusterNetworkLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the resource was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The instance pools in the cluster network. + // Each cluster network can have one instance pool. + InstancePools []InstancePool `mandatory:"false" json:"instancePools"` + + PlacementConfiguration *ClusterNetworkPlacementConfigurationDetails `mandatory:"false" json:"placementConfiguration"` +} + +func (m ClusterNetwork) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterNetwork) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingClusterNetworkLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClusterNetworkLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClusterNetworkLifecycleStateEnum Enum with underlying type: string +type ClusterNetworkLifecycleStateEnum string + +// Set of constants representing the allowable values for ClusterNetworkLifecycleStateEnum +const ( + ClusterNetworkLifecycleStateProvisioning ClusterNetworkLifecycleStateEnum = "PROVISIONING" + ClusterNetworkLifecycleStateScaling ClusterNetworkLifecycleStateEnum = "SCALING" + ClusterNetworkLifecycleStateStarting ClusterNetworkLifecycleStateEnum = "STARTING" + ClusterNetworkLifecycleStateStopping ClusterNetworkLifecycleStateEnum = "STOPPING" + ClusterNetworkLifecycleStateTerminating ClusterNetworkLifecycleStateEnum = "TERMINATING" + ClusterNetworkLifecycleStateStopped ClusterNetworkLifecycleStateEnum = "STOPPED" + ClusterNetworkLifecycleStateTerminated ClusterNetworkLifecycleStateEnum = "TERMINATED" + ClusterNetworkLifecycleStateRunning ClusterNetworkLifecycleStateEnum = "RUNNING" +) + +var mappingClusterNetworkLifecycleStateEnum = map[string]ClusterNetworkLifecycleStateEnum{ + "PROVISIONING": ClusterNetworkLifecycleStateProvisioning, + "SCALING": ClusterNetworkLifecycleStateScaling, + "STARTING": ClusterNetworkLifecycleStateStarting, + "STOPPING": ClusterNetworkLifecycleStateStopping, + "TERMINATING": ClusterNetworkLifecycleStateTerminating, + "STOPPED": ClusterNetworkLifecycleStateStopped, + "TERMINATED": ClusterNetworkLifecycleStateTerminated, + "RUNNING": ClusterNetworkLifecycleStateRunning, +} + +var mappingClusterNetworkLifecycleStateEnumLowerCase = map[string]ClusterNetworkLifecycleStateEnum{ + "provisioning": ClusterNetworkLifecycleStateProvisioning, + "scaling": ClusterNetworkLifecycleStateScaling, + "starting": ClusterNetworkLifecycleStateStarting, + "stopping": ClusterNetworkLifecycleStateStopping, + "terminating": ClusterNetworkLifecycleStateTerminating, + "stopped": ClusterNetworkLifecycleStateStopped, + "terminated": ClusterNetworkLifecycleStateTerminated, + "running": ClusterNetworkLifecycleStateRunning, +} + +// GetClusterNetworkLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkLifecycleStateEnum +func GetClusterNetworkLifecycleStateEnumValues() []ClusterNetworkLifecycleStateEnum { + values := make([]ClusterNetworkLifecycleStateEnum, 0) + for _, v := range mappingClusterNetworkLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetClusterNetworkLifecycleStateEnumStringValues Enumerates the set of values in String for ClusterNetworkLifecycleStateEnum +func GetClusterNetworkLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "SCALING", + "STARTING", + "STOPPING", + "TERMINATING", + "STOPPED", + "TERMINATED", + "RUNNING", + } +} + +// GetMappingClusterNetworkLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClusterNetworkLifecycleStateEnum(val string) (ClusterNetworkLifecycleStateEnum, bool) { + enum, ok := mappingClusterNetworkLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_placement_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_placement_configuration_details.go new file mode 100644 index 0000000000..2f2a614ec8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_placement_configuration_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterNetworkPlacementConfigurationDetails The location for where the instance pools in a cluster network will place instances. +type ClusterNetworkPlacementConfigurationDetails struct { + + // The availability domain to place instances. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place + // instances. + PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` + + // The set of secondary VNIC data for instances in the pool. + SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` +} + +func (m ClusterNetworkPlacementConfigurationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterNetworkPlacementConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_summary.go new file mode 100644 index 0000000000..6fe4991c24 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cluster_network_summary.go @@ -0,0 +1,144 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClusterNetworkSummary Summary information for a cluster network. +type ClusterNetworkSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // cluster netowrk. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The current state of the cluster network. + LifecycleState ClusterNetworkSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the resource was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the resource was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The instance pools in the cluster network. + InstancePools []InstancePoolSummary `mandatory:"false" json:"instancePools"` +} + +func (m ClusterNetworkSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClusterNetworkSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingClusterNetworkSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetClusterNetworkSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClusterNetworkSummaryLifecycleStateEnum Enum with underlying type: string +type ClusterNetworkSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ClusterNetworkSummaryLifecycleStateEnum +const ( + ClusterNetworkSummaryLifecycleStateProvisioning ClusterNetworkSummaryLifecycleStateEnum = "PROVISIONING" + ClusterNetworkSummaryLifecycleStateScaling ClusterNetworkSummaryLifecycleStateEnum = "SCALING" + ClusterNetworkSummaryLifecycleStateStarting ClusterNetworkSummaryLifecycleStateEnum = "STARTING" + ClusterNetworkSummaryLifecycleStateStopping ClusterNetworkSummaryLifecycleStateEnum = "STOPPING" + ClusterNetworkSummaryLifecycleStateTerminating ClusterNetworkSummaryLifecycleStateEnum = "TERMINATING" + ClusterNetworkSummaryLifecycleStateStopped ClusterNetworkSummaryLifecycleStateEnum = "STOPPED" + ClusterNetworkSummaryLifecycleStateTerminated ClusterNetworkSummaryLifecycleStateEnum = "TERMINATED" + ClusterNetworkSummaryLifecycleStateRunning ClusterNetworkSummaryLifecycleStateEnum = "RUNNING" +) + +var mappingClusterNetworkSummaryLifecycleStateEnum = map[string]ClusterNetworkSummaryLifecycleStateEnum{ + "PROVISIONING": ClusterNetworkSummaryLifecycleStateProvisioning, + "SCALING": ClusterNetworkSummaryLifecycleStateScaling, + "STARTING": ClusterNetworkSummaryLifecycleStateStarting, + "STOPPING": ClusterNetworkSummaryLifecycleStateStopping, + "TERMINATING": ClusterNetworkSummaryLifecycleStateTerminating, + "STOPPED": ClusterNetworkSummaryLifecycleStateStopped, + "TERMINATED": ClusterNetworkSummaryLifecycleStateTerminated, + "RUNNING": ClusterNetworkSummaryLifecycleStateRunning, +} + +var mappingClusterNetworkSummaryLifecycleStateEnumLowerCase = map[string]ClusterNetworkSummaryLifecycleStateEnum{ + "provisioning": ClusterNetworkSummaryLifecycleStateProvisioning, + "scaling": ClusterNetworkSummaryLifecycleStateScaling, + "starting": ClusterNetworkSummaryLifecycleStateStarting, + "stopping": ClusterNetworkSummaryLifecycleStateStopping, + "terminating": ClusterNetworkSummaryLifecycleStateTerminating, + "stopped": ClusterNetworkSummaryLifecycleStateStopped, + "terminated": ClusterNetworkSummaryLifecycleStateTerminated, + "running": ClusterNetworkSummaryLifecycleStateRunning, +} + +// GetClusterNetworkSummaryLifecycleStateEnumValues Enumerates the set of values for ClusterNetworkSummaryLifecycleStateEnum +func GetClusterNetworkSummaryLifecycleStateEnumValues() []ClusterNetworkSummaryLifecycleStateEnum { + values := make([]ClusterNetworkSummaryLifecycleStateEnum, 0) + for _, v := range mappingClusterNetworkSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetClusterNetworkSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ClusterNetworkSummaryLifecycleStateEnum +func GetClusterNetworkSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "SCALING", + "STARTING", + "STOPPING", + "TERMINATING", + "STOPPED", + "TERMINATED", + "RUNNING", + } +} + +// GetMappingClusterNetworkSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClusterNetworkSummaryLifecycleStateEnum(val string) (ClusterNetworkSummaryLifecycleStateEnum, bool) { + enum, ok := mappingClusterNetworkSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compartment_internal.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compartment_internal.go new file mode 100644 index 0000000000..f67818ab2a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compartment_internal.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CompartmentInternal Helper definition required to perform authZ using SPLAT expressions on a Compartment +type CompartmentInternal struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + Id *string `mandatory:"false" json:"id"` +} + +func (m CompartmentInternal) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CompartmentInternal) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/complete_promotion_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/complete_promotion_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/complete_promotion_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/complete_promotion_request_response.go index 6fd676fa94..6801fc6dd3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/complete_promotion_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/complete_promotion_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CompletePromotionRequest wrapper for the CompletePromotion operation type CompletePromotionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request CompletePromotionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CompletePromotionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request CompletePromotionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CompletePromotionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CompletePromotionResponse wrapper for the CompletePromotion operation type CompletePromotionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/complete_unpromotion_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/complete_unpromotion_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/complete_unpromotion_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/complete_unpromotion_request_response.go index c23aa408db..6f6d108433 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/complete_unpromotion_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/complete_unpromotion_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CompleteUnpromotionRequest wrapper for the CompleteUnpromotion operation type CompleteUnpromotionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request CompleteUnpromotionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CompleteUnpromotionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request CompleteUnpromotionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CompleteUnpromotionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CompleteUnpromotionResponse wrapper for the CompleteUnpromotion operation type CompleteUnpromotionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_report.go new file mode 100644 index 0000000000..e0091dfd9b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_report.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeCapacityReport The availability domain for which the report was generated. +type ComputeCapacityReport struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root + // compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability to generate a report of the capacity availability. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The capacity availability details for the shapes customer provide, listed per shape. + ShapeAvailabilities []CapacityReportShapeAvailability `mandatory:"true" json:"shapeAvailabilities"` + + // The date and time the compute capacity report was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m ComputeCapacityReport) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeCapacityReport) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation.go new file mode 100644 index 0000000000..17aa37f86e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation.go @@ -0,0 +1,158 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeCapacityReservation A template that defines the settings to use when creating compute capacity reservations. +type ComputeCapacityReservation struct { + + // The availability domain of the compute capacity reservation. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // containing the compute capacity reservation. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute capacity reservation. + Id *string `mandatory:"true" json:"id"` + + // The current state of the compute capacity reservation. + LifecycleState ComputeCapacityReservationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the compute capacity reservation was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether this capacity reservation is the default. + // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). + IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` + + // The capacity configurations for the capacity reservation. + // To use the reservation for the desired shape, specify the shape, count, and + // optionally the fault domain where you want this configuration. + InstanceReservationConfigs []InstanceReservationConfig `mandatory:"false" json:"instanceReservationConfigs"` + + // The number of instances for which capacity will be held with this + // compute capacity reservation. This number is the sum of the values of the `reservedCount` fields + // for all of the instance capacity configurations under this reservation. + // The purpose of this field is to calculate the percentage usage of the reservation. + ReservedInstanceCount *int64 `mandatory:"false" json:"reservedInstanceCount"` + + // The date and time the compute capacity reservation was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The total number of instances currently consuming space in + // this compute capacity reservation. This number is the sum of the values of the `usedCount` fields + // for all of the instance capacity configurations under this reservation. + // The purpose of this field is to calculate the percentage usage of the reservation. + UsedInstanceCount *int64 `mandatory:"false" json:"usedInstanceCount"` +} + +func (m ComputeCapacityReservation) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeCapacityReservation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeCapacityReservationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetComputeCapacityReservationLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeCapacityReservationLifecycleStateEnum Enum with underlying type: string +type ComputeCapacityReservationLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeCapacityReservationLifecycleStateEnum +const ( + ComputeCapacityReservationLifecycleStateActive ComputeCapacityReservationLifecycleStateEnum = "ACTIVE" + ComputeCapacityReservationLifecycleStateCreating ComputeCapacityReservationLifecycleStateEnum = "CREATING" + ComputeCapacityReservationLifecycleStateUpdating ComputeCapacityReservationLifecycleStateEnum = "UPDATING" + ComputeCapacityReservationLifecycleStateMoving ComputeCapacityReservationLifecycleStateEnum = "MOVING" + ComputeCapacityReservationLifecycleStateDeleted ComputeCapacityReservationLifecycleStateEnum = "DELETED" + ComputeCapacityReservationLifecycleStateDeleting ComputeCapacityReservationLifecycleStateEnum = "DELETING" +) + +var mappingComputeCapacityReservationLifecycleStateEnum = map[string]ComputeCapacityReservationLifecycleStateEnum{ + "ACTIVE": ComputeCapacityReservationLifecycleStateActive, + "CREATING": ComputeCapacityReservationLifecycleStateCreating, + "UPDATING": ComputeCapacityReservationLifecycleStateUpdating, + "MOVING": ComputeCapacityReservationLifecycleStateMoving, + "DELETED": ComputeCapacityReservationLifecycleStateDeleted, + "DELETING": ComputeCapacityReservationLifecycleStateDeleting, +} + +var mappingComputeCapacityReservationLifecycleStateEnumLowerCase = map[string]ComputeCapacityReservationLifecycleStateEnum{ + "active": ComputeCapacityReservationLifecycleStateActive, + "creating": ComputeCapacityReservationLifecycleStateCreating, + "updating": ComputeCapacityReservationLifecycleStateUpdating, + "moving": ComputeCapacityReservationLifecycleStateMoving, + "deleted": ComputeCapacityReservationLifecycleStateDeleted, + "deleting": ComputeCapacityReservationLifecycleStateDeleting, +} + +// GetComputeCapacityReservationLifecycleStateEnumValues Enumerates the set of values for ComputeCapacityReservationLifecycleStateEnum +func GetComputeCapacityReservationLifecycleStateEnumValues() []ComputeCapacityReservationLifecycleStateEnum { + values := make([]ComputeCapacityReservationLifecycleStateEnum, 0) + for _, v := range mappingComputeCapacityReservationLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeCapacityReservationLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeCapacityReservationLifecycleStateEnum +func GetComputeCapacityReservationLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "CREATING", + "UPDATING", + "MOVING", + "DELETED", + "DELETING", + } +} + +// GetMappingComputeCapacityReservationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeCapacityReservationLifecycleStateEnum(val string) (ComputeCapacityReservationLifecycleStateEnum, bool) { + enum, ok := mappingComputeCapacityReservationLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_instance_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_instance_shape_summary.go new file mode 100644 index 0000000000..bf83cf871c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_instance_shape_summary.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeCapacityReservationInstanceShapeSummary An available shape used to launch instances in a compute capacity reservation. +type ComputeCapacityReservationInstanceShapeSummary struct { + + // The shape's availability domain. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The name of the available shape used to launch instances in a compute capacity reservation. + InstanceShape *string `mandatory:"true" json:"instanceShape"` +} + +func (m ComputeCapacityReservationInstanceShapeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeCapacityReservationInstanceShapeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_summary.go new file mode 100644 index 0000000000..c1b9d2ceb6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_capacity_reservation_summary.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeCapacityReservationSummary Summary information for a compute capacity reservation. +type ComputeCapacityReservationSummary struct { + + // The OCID of the instance reservation configuration. + Id *string `mandatory:"true" json:"id"` + + // The availability domain of the capacity reservation. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The date and time the capacity reservation was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The current state of the capacity reservation. + LifecycleState ComputeCapacityReservationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The number of instances for which capacity will be held in this + // compute capacity reservation. This number is the sum of the values of the `reservedCount` fields + // for all of the instance capacity configurations under this reservation. + // The purpose of this field is to calculate the percentage usage of the reservation. + ReservedInstanceCount *int64 `mandatory:"false" json:"reservedInstanceCount"` + + // The total number of instances currently consuming space in + // this compute capacity reservation. This number is the sum of the values of the `usedCount` fields + // for all of the instance capacity configurations under this reservation. + // The purpose of this field is to calculate the percentage usage of the reservation. + UsedInstanceCount *int64 `mandatory:"false" json:"usedInstanceCount"` + + // Whether this capacity reservation is the default. + // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). + IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` +} + +func (m ComputeCapacityReservationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeCapacityReservationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingComputeCapacityReservationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetComputeCapacityReservationLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster.go new file mode 100644 index 0000000000..21607a257c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeCluster A remote direct memory access (RDMA) network group. Compute clusters are groups +// of high performance computing (HPC) bare metal instances that are connected with an ultra low latency network. +// Compute clusters allow you to manage instances in the cluster individually. +// For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). +// For details about cluster networks that use intance pools to manage groups of identical instances, +// see ClusterNetwork. +type ComputeCluster struct { + + // The availability domain the compute cluster is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains this compute cluster. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this compute cluster. + Id *string `mandatory:"true" json:"id"` + + // The current state of the compute cluster. + LifecycleState ComputeClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the compute cluster was created, + // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ComputeCluster) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeCluster) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeClusterLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetComputeClusterLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ComputeClusterLifecycleStateEnum Enum with underlying type: string +type ComputeClusterLifecycleStateEnum string + +// Set of constants representing the allowable values for ComputeClusterLifecycleStateEnum +const ( + ComputeClusterLifecycleStateActive ComputeClusterLifecycleStateEnum = "ACTIVE" + ComputeClusterLifecycleStateDeleted ComputeClusterLifecycleStateEnum = "DELETED" +) + +var mappingComputeClusterLifecycleStateEnum = map[string]ComputeClusterLifecycleStateEnum{ + "ACTIVE": ComputeClusterLifecycleStateActive, + "DELETED": ComputeClusterLifecycleStateDeleted, +} + +var mappingComputeClusterLifecycleStateEnumLowerCase = map[string]ComputeClusterLifecycleStateEnum{ + "active": ComputeClusterLifecycleStateActive, + "deleted": ComputeClusterLifecycleStateDeleted, +} + +// GetComputeClusterLifecycleStateEnumValues Enumerates the set of values for ComputeClusterLifecycleStateEnum +func GetComputeClusterLifecycleStateEnumValues() []ComputeClusterLifecycleStateEnum { + values := make([]ComputeClusterLifecycleStateEnum, 0) + for _, v := range mappingComputeClusterLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetComputeClusterLifecycleStateEnumStringValues Enumerates the set of values in String for ComputeClusterLifecycleStateEnum +func GetComputeClusterLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "DELETED", + } +} + +// GetMappingComputeClusterLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingComputeClusterLifecycleStateEnum(val string) (ComputeClusterLifecycleStateEnum, bool) { + enum, ok := mappingComputeClusterLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_collection.go new file mode 100644 index 0000000000..52102209f8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeClusterCollection A list of compute clusters that match filter criteria, if any. A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. +type ComputeClusterCollection struct { + + // The list of compute clusters. + Items []ComputeClusterSummary `mandatory:"true" json:"items"` +} + +func (m ComputeClusterCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeClusterCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_summary.go new file mode 100644 index 0000000000..5847d3ed25 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_cluster_summary.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeClusterSummary Summary information for a compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm), which is a remote direct memory access (RDMA) network group. +type ComputeClusterSummary struct { + + // The availability domain the compute cluster is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains this compute cluster. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this compute cluster. + Id *string `mandatory:"true" json:"id"` + + // The current state of the compute cluster. + LifecycleState ComputeClusterLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the compute cluster was created, + // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ComputeClusterSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeClusterSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeClusterLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetComputeClusterLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema.go new file mode 100644 index 0000000000..b2cbd4ca13 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGlobalImageCapabilitySchema Compute Global Image Capability Schema is a container for a set of compute global image capability schema versions +type ComputeGlobalImageCapabilitySchema struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema + Id *string `mandatory:"true" json:"id"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the compute global image capability schema was created, in the format defined by + // RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the compartment that contains the resource. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the global capabilities version resource that is considered the current version. + CurrentVersionName *string `mandatory:"false" json:"currentVersionName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ComputeGlobalImageCapabilitySchema) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGlobalImageCapabilitySchema) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_summary.go new file mode 100644 index 0000000000..33bcba6a29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_summary.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGlobalImageCapabilitySchemaSummary Summary information for a compute global image capability schema +type ComputeGlobalImageCapabilitySchemaSummary struct { + + // The compute global image capability schema OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + Id *string `mandatory:"true" json:"id"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the compute global image capability schema was created, in the format defined by + // RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the compartment containing the compute global image capability schema + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the global capabilities version resource that is considered the current version. + CurrentVersionName *string `mandatory:"false" json:"currentVersionName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ComputeGlobalImageCapabilitySchemaSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGlobalImageCapabilitySchemaSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version.go index 7bc89e0e40..555ce117b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_global_image_capability_schema_version.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ComputeGlobalImageCapabilitySchemaVersion Compute Global Image Capability Schema Version is a set of all possible capabilities for a collection of images. @@ -44,6 +46,18 @@ func (m ComputeGlobalImageCapabilitySchemaVersion) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGlobalImageCapabilitySchemaVersion) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *ComputeGlobalImageCapabilitySchemaVersion) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version_summary.go new file mode 100644 index 0000000000..b3cb69bf27 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_global_image_capability_schema_version_summary.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeGlobalImageCapabilitySchemaVersionSummary Summary information for a compute global image capability schema +type ComputeGlobalImageCapabilitySchemaVersionSummary struct { + + // The compute global image capability schema version name + Name *string `mandatory:"true" json:"name"` + + // The OCID of the compute global image capability schema + ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" json:"computeGlobalImageCapabilitySchemaId"` + + // The date and time the compute global image capability schema version was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m ComputeGlobalImageCapabilitySchemaVersionSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeGlobalImageCapabilitySchemaVersionSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_image_capability_schema.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/compute_image_capability_schema.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go index 7995051fd1..168eb64b21 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_image_capability_schema.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ComputeImageCapabilitySchema Compute Image Capability Schema is a set of capabilities that filter the compute global capability schema @@ -64,6 +66,18 @@ func (m ComputeImageCapabilitySchema) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeImageCapabilitySchema) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *ComputeImageCapabilitySchema) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_image_capability_schema_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/compute_image_capability_schema_summary.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go index 5dfaeda1b4..e3b964cde8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/compute_image_capability_schema_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_image_capability_schema_summary.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ComputeImageCapabilitySchemaSummary Summary information for a compute image capability schema @@ -59,6 +61,18 @@ func (m ComputeImageCapabilitySchemaSummary) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeImageCapabilitySchemaSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *ComputeImageCapabilitySchemaSummary) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_details.go new file mode 100644 index 0000000000..ba6223f777 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/compute_instance_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ComputeInstanceDetails Compute Instance Configuration instance details. +type ComputeInstanceDetails struct { + BlockVolumes []InstanceConfigurationBlockVolumeDetails `mandatory:"false" json:"blockVolumes"` + + LaunchDetails *InstanceConfigurationLaunchInstanceDetails `mandatory:"false" json:"launchDetails"` + + SecondaryVnics []InstanceConfigurationAttachVnicDetails `mandatory:"false" json:"secondaryVnics"` +} + +func (m ComputeInstanceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ComputeInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ComputeInstanceDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeComputeInstanceDetails ComputeInstanceDetails + s := struct { + DiscriminatorParam string `json:"instanceType"` + MarshalTypeComputeInstanceDetails + }{ + "compute", + (MarshalTypeComputeInstanceDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_details.go new file mode 100644 index 0000000000..8ed909929f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConnectLocalPeeringConnectionsDetails Contains details indicating the local peering connection with which you wish to establish a peering relationship. +type ConnectLocalPeeringConnectionsDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other local peering connection. + PeerId *string `mandatory:"true" json:"peerId"` +} + +func (m ConnectLocalPeeringConnectionsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ConnectLocalPeeringConnectionsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_request_response.go index ae23e31b2c..29d881415f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_connections_request_response.go @@ -1,24 +1,26 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ConnectLocalPeeringConnectionsRequest wrapper for the ConnectLocalPeeringConnections operation type ConnectLocalPeeringConnectionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. LocalPeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"localPeeringConnectionId"` // Details regarding the local peering connection to connect. ConnectLocalPeeringConnectionsDetails `contributesTo:"body"` - // A comma separated list of tenancy OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)s that might be accessed by this request. Only required + // A comma separated list of tenancy OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s that might be accessed by this request. Only required // for cross tenancy requests. May be `null` for requests that do not cross tenancy boundaries. XCrossTenancyRequest *string `mandatory:"false" contributesTo:"header" name:"x-cross-tenancy-request"` @@ -38,6 +40,10 @@ func (request ConnectLocalPeeringConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ConnectLocalPeeringConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request ConnectLocalPeeringConnectionsRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ConnectLocalPeeringConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ConnectLocalPeeringConnectionsResponse wrapper for the ConnectLocalPeeringConnections operation type ConnectLocalPeeringConnectionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_details.go new file mode 100644 index 0000000000..d6a58cd8bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConnectLocalPeeringGatewaysDetails Information about the other local peering gateway (LPG). +type ConnectLocalPeeringGatewaysDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the LPG you want to peer with. + PeerId *string `mandatory:"true" json:"peerId"` +} + +func (m ConnectLocalPeeringGatewaysDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ConnectLocalPeeringGatewaysDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_request_response.go index c2cb592539..30cecb51df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_local_peering_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_local_peering_gateways_request_response.go @@ -1,24 +1,26 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ConnectLocalPeeringGatewaysRequest wrapper for the ConnectLocalPeeringGateways operation type ConnectLocalPeeringGatewaysRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` // Details regarding the local peering gateway to connect. ConnectLocalPeeringGatewaysDetails `contributesTo:"body"` - // A comma separated list of tenancy OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)s that might be accessed by this request. Only required + // A comma separated list of tenancy OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s that might be accessed by this request. Only required // for cross tenancy requests. May be `null` for requests that do not cross tenancy boundaries. XCrossTenancyRequest *string `mandatory:"false" contributesTo:"header" name:"x-cross-tenancy-request"` @@ -38,6 +40,10 @@ func (request ConnectLocalPeeringGatewaysRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ConnectLocalPeeringGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request ConnectLocalPeeringGatewaysRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ConnectLocalPeeringGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ConnectLocalPeeringGatewaysResponse wrapper for the ConnectLocalPeeringGateways operation type ConnectLocalPeeringGatewaysResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_details.go new file mode 100644 index 0000000000..d949dbb23e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConnectRemotePeeringConnectionsDetails Information about the other remote peering connection (RPC). +type ConnectRemotePeeringConnectionsDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the RPC you want to peer with. + PeerId *string `mandatory:"true" json:"peerId"` + + // The name of the region that contains the RPC you want to peer with. + // Example: `us-ashburn-1` + PeerRegionName *string `mandatory:"true" json:"peerRegionName"` +} + +func (m ConnectRemotePeeringConnectionsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ConnectRemotePeeringConnectionsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_request_response.go index 9e204c1f46..9e04afb738 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/connect_remote_peering_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/connect_remote_peering_connections_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ConnectRemotePeeringConnectionsRequest wrapper for the ConnectRemotePeeringConnections operation type ConnectRemotePeeringConnectionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` // Details to connect peering connection with peering connection from remote region @@ -34,6 +36,10 @@ func (request ConnectRemotePeeringConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ConnectRemotePeeringConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ConnectRemotePeeringConnectionsRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ConnectRemotePeeringConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ConnectRemotePeeringConnectionsResponse wrapper for the ConnectRemotePeeringConnections operation type ConnectRemotePeeringConnectionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/console_history.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/console_history.go new file mode 100644 index 0000000000..5f1cef5abb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/console_history.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConsoleHistory An instance's serial console data. It includes configuration messages that occur when the +// instance boots, such as kernel and BIOS messages, and is useful for checking the status of +// the instance or diagnosing problems. The console data is minimally formatted ASCII text. +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type ConsoleHistory struct { + + // The availability domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the console history metadata object. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance this console history was fetched from. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the console history. + LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the history was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m ConsoleHistory) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ConsoleHistory) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingConsoleHistoryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetConsoleHistoryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ConsoleHistoryLifecycleStateEnum Enum with underlying type: string +type ConsoleHistoryLifecycleStateEnum string + +// Set of constants representing the allowable values for ConsoleHistoryLifecycleStateEnum +const ( + ConsoleHistoryLifecycleStateRequested ConsoleHistoryLifecycleStateEnum = "REQUESTED" + ConsoleHistoryLifecycleStateGettingHistory ConsoleHistoryLifecycleStateEnum = "GETTING-HISTORY" + ConsoleHistoryLifecycleStateSucceeded ConsoleHistoryLifecycleStateEnum = "SUCCEEDED" + ConsoleHistoryLifecycleStateFailed ConsoleHistoryLifecycleStateEnum = "FAILED" +) + +var mappingConsoleHistoryLifecycleStateEnum = map[string]ConsoleHistoryLifecycleStateEnum{ + "REQUESTED": ConsoleHistoryLifecycleStateRequested, + "GETTING-HISTORY": ConsoleHistoryLifecycleStateGettingHistory, + "SUCCEEDED": ConsoleHistoryLifecycleStateSucceeded, + "FAILED": ConsoleHistoryLifecycleStateFailed, +} + +var mappingConsoleHistoryLifecycleStateEnumLowerCase = map[string]ConsoleHistoryLifecycleStateEnum{ + "requested": ConsoleHistoryLifecycleStateRequested, + "getting-history": ConsoleHistoryLifecycleStateGettingHistory, + "succeeded": ConsoleHistoryLifecycleStateSucceeded, + "failed": ConsoleHistoryLifecycleStateFailed, +} + +// GetConsoleHistoryLifecycleStateEnumValues Enumerates the set of values for ConsoleHistoryLifecycleStateEnum +func GetConsoleHistoryLifecycleStateEnumValues() []ConsoleHistoryLifecycleStateEnum { + values := make([]ConsoleHistoryLifecycleStateEnum, 0) + for _, v := range mappingConsoleHistoryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetConsoleHistoryLifecycleStateEnumStringValues Enumerates the set of values in String for ConsoleHistoryLifecycleStateEnum +func GetConsoleHistoryLifecycleStateEnumStringValues() []string { + return []string{ + "REQUESTED", + "GETTING-HISTORY", + "SUCCEEDED", + "FAILED", + } +} + +// GetMappingConsoleHistoryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConsoleHistoryLifecycleStateEnum(val string) (ConsoleHistoryLifecycleStateEnum, bool) { + enum, ok := mappingConsoleHistoryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_details.go new file mode 100644 index 0000000000..dc5506dda1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CopyBootVolumeBackupDetails The representation of CopyBootVolumeBackupDetails +type CopyBootVolumeBackupDetails struct { + + // The name of the destination region. + // Example: `us-ashburn-1` + DestinationRegion *string `mandatory:"true" json:"destinationRegion"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the Vault service key in the destination region which will be the master encryption key + // for the copied boot volume backup. If you do not specify this attribute the boot volume backup + // will be encrypted with the Oracle-provided encryption key when it is copied to the destination region. + // + // For more information about the Vault service and encryption keys, see + // Overview of Vault service (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m CopyBootVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CopyBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_request_response.go index 1441bfe595..a114305e33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_boot_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_boot_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CopyBootVolumeBackupRequest wrapper for the CopyBootVolumeBackup operation @@ -41,6 +43,10 @@ func (request CopyBootVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CopyBootVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CopyBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CopyBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CopyBootVolumeBackupResponse wrapper for the CopyBootVolumeBackup operation type CopyBootVolumeBackupResponse struct { @@ -72,7 +89,8 @@ type CopyBootVolumeBackupResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_details.go new file mode 100644 index 0000000000..ce60823792 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CopyVolumeBackupDetails The representation of CopyVolumeBackupDetails +type CopyVolumeBackupDetails struct { + + // The name of the destination region. + // Example: `us-ashburn-1` + DestinationRegion *string `mandatory:"true" json:"destinationRegion"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the Vault service key in the destination region which will be the master encryption key + // for the copied volume backup. + // If you do not specify this attribute the volume backup will be encrypted with the Oracle-provided encryption + // key when it is copied to the destination region. + // + // For more information about the Vault service and encryption keys, see + // Overview of Vault service (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m CopyVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CopyVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go index 68f1550bee..7156369563 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CopyVolumeBackupRequest wrapper for the CopyVolumeBackup operation @@ -41,6 +43,10 @@ func (request CopyVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CopyVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CopyVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CopyVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CopyVolumeBackupResponse wrapper for the CopyVolumeBackup operation type CopyVolumeBackupResponse struct { @@ -72,7 +89,8 @@ type CopyVolumeBackupResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_details.go new file mode 100644 index 0000000000..0ca3b00382 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CopyVolumeGroupBackupDetails The representation of CopyVolumeGroupBackupDetails +type CopyVolumeGroupBackupDetails struct { + + // The name of the destination region. + // Example: `us-ashburn-1` + DestinationRegion *string `mandatory:"true" json:"destinationRegion"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID of the Vault service key in the destination region which will be the master encryption key + // for the copied volume group backup. + // If you do not specify this attribute the volume group backup will be encrypted with the Oracle-provided encryption + // key when it is copied to the destination region. + // + // For more information about the Vault service and encryption keys, see + // Overview of Vault service (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m CopyVolumeGroupBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CopyVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_request_response.go index 566582b54c..0a0c4199f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/copy_volume_group_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/copy_volume_group_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CopyVolumeGroupBackupRequest wrapper for the CopyVolumeGroupBackup operation @@ -41,6 +43,10 @@ func (request CopyVolumeGroupBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CopyVolumeGroupBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CopyVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CopyVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CopyVolumeGroupBackupResponse wrapper for the CopyVolumeGroupBackup operation type CopyVolumeGroupBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_blockstorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go similarity index 90% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/core_blockstorage_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go index 83e0db2e97..a3fe8d273a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_blockstorage_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_blockstorage_client.go @@ -1,14 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core @@ -16,8 +16,8 @@ package core import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" ) @@ -54,6 +54,8 @@ func NewBlockstorageClientWithOboToken(configProvider common.ConfigurationProvid } func newBlockstorageClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client BlockstorageClient, err error) { + // Blockstorage service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Blockstorage")) common.ConfigCircuitBreakerFromEnvVar(&baseClient) common.ConfigCircuitBreakerFromGlobalVar(&baseClient) @@ -77,6 +79,9 @@ func (client *BlockstorageClient) setConfigurationProvider(configProvider common // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -132,6 +137,8 @@ func (client BlockstorageClient) changeBootVolumeBackupCompartment(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/ChangeBootVolumeBackupCompartment" + err = common.PostProcessServiceError(err, "Blockstorage", "ChangeBootVolumeBackupCompartment", apiReferenceLink) return response, err } @@ -185,6 +192,8 @@ func (client BlockstorageClient) changeBootVolumeCompartment(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolume/ChangeBootVolumeCompartment" + err = common.PostProcessServiceError(err, "Blockstorage", "ChangeBootVolumeCompartment", apiReferenceLink) return response, err } @@ -238,6 +247,8 @@ func (client BlockstorageClient) changeVolumeBackupCompartment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/ChangeVolumeBackupCompartment" + err = common.PostProcessServiceError(err, "Blockstorage", "ChangeVolumeBackupCompartment", apiReferenceLink) return response, err } @@ -291,6 +302,8 @@ func (client BlockstorageClient) changeVolumeCompartment(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Volume/ChangeVolumeCompartment" + err = common.PostProcessServiceError(err, "Blockstorage", "ChangeVolumeCompartment", apiReferenceLink) return response, err } @@ -344,6 +357,8 @@ func (client BlockstorageClient) changeVolumeGroupBackupCompartment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/ChangeVolumeGroupBackupCompartment" + err = common.PostProcessServiceError(err, "Blockstorage", "ChangeVolumeGroupBackupCompartment", apiReferenceLink) return response, err } @@ -397,6 +412,8 @@ func (client BlockstorageClient) changeVolumeGroupCompartment(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroup/ChangeVolumeGroupCompartment" + err = common.PostProcessServiceError(err, "Blockstorage", "ChangeVolumeGroupCompartment", apiReferenceLink) return response, err } @@ -454,6 +471,8 @@ func (client BlockstorageClient) copyBootVolumeBackup(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/CopyBootVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "CopyBootVolumeBackup", apiReferenceLink) return response, err } @@ -511,6 +530,8 @@ func (client BlockstorageClient) copyVolumeBackup(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/CopyVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "CopyVolumeBackup", apiReferenceLink) return response, err } @@ -519,7 +540,7 @@ func (client BlockstorageClient) copyVolumeBackup(ctx context.Context, request c } // CopyVolumeGroupBackup Creates a volume group backup copy in specified region. For general information about volume group backups, -// see Overview of Block Volume Service Backups (https://docs.cloud.oracle.com/Content/Block/Concepts/blockvolumebackups.htm) +// see Overview of Block Volume Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumebackups.htm). func (client BlockstorageClient) CopyVolumeGroupBackup(ctx context.Context, request CopyVolumeGroupBackupRequest) (response CopyVolumeGroupBackupResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -568,6 +589,8 @@ func (client BlockstorageClient) copyVolumeGroupBackup(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/CopyVolumeGroupBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "CopyVolumeGroupBackup", apiReferenceLink) return response, err } @@ -627,6 +650,8 @@ func (client BlockstorageClient) createBootVolume(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolume/CreateBootVolume" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateBootVolume", apiReferenceLink) return response, err } @@ -687,6 +712,8 @@ func (client BlockstorageClient) createBootVolumeBackup(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/CreateBootVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateBootVolumeBackup", apiReferenceLink) return response, err } @@ -698,6 +725,8 @@ func (client BlockstorageClient) createBootVolumeBackup(ctx context.Context, req // 50 GB (51200 MB) to 32 TB (33554432 MB), in 1 GB (1024 MB) increments. By default, volumes are 1 TB (1048576 MB). // For general information about block volumes, see // Overview of Block Volume Service (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). +// By default volumes are local to the AD specified in the request at creation. Regional volumes can be created by +// specifying *scope = REGIONAL* and availabilityDomain = null in the request. // A volume and instance can be in separate compartments but must be in the same availability domain. // For information about access control and compartments, see // Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). For information about @@ -754,6 +783,8 @@ func (client BlockstorageClient) createVolume(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Volume/CreateVolume" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateVolume", apiReferenceLink) return response, err } @@ -814,6 +845,8 @@ func (client BlockstorageClient) createVolumeBackup(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/CreateVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateVolumeBackup", apiReferenceLink) return response, err } @@ -872,6 +905,8 @@ func (client BlockstorageClient) createVolumeBackupPolicy(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicy/CreateVolumeBackupPolicy" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateVolumeBackupPolicy", apiReferenceLink) return response, err } @@ -925,6 +960,8 @@ func (client BlockstorageClient) createVolumeBackupPolicyAssignment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicyAssignment/CreateVolumeBackupPolicyAssignment" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateVolumeBackupPolicyAssignment", apiReferenceLink) return response, err } @@ -986,6 +1023,8 @@ func (client BlockstorageClient) createVolumeGroup(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroup/CreateVolumeGroup" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateVolumeGroup", apiReferenceLink) return response, err } @@ -1043,6 +1082,8 @@ func (client BlockstorageClient) createVolumeGroupBackup(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/CreateVolumeGroupBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "CreateVolumeGroupBackup", apiReferenceLink) return response, err } @@ -1097,6 +1138,8 @@ func (client BlockstorageClient) deleteBootVolume(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteBootVolume", apiReferenceLink) return response, err } @@ -1148,6 +1191,8 @@ func (client BlockstorageClient) deleteBootVolumeBackup(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteBootVolumeBackup", apiReferenceLink) return response, err } @@ -1155,7 +1200,7 @@ func (client BlockstorageClient) deleteBootVolumeBackup(ctx context.Context, req return response, err } -// DeleteBootVolumeKmsKey Removes the specified boot volume's assigned Key Management encryption key. +// DeleteBootVolumeKmsKey Removes the specified boot volume's assigned Vault Service encryption key. func (client BlockstorageClient) DeleteBootVolumeKmsKey(ctx context.Context, request DeleteBootVolumeKmsKeyRequest) (response DeleteBootVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1199,6 +1244,8 @@ func (client BlockstorageClient) deleteBootVolumeKmsKey(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteBootVolumeKmsKey", apiReferenceLink) return response, err } @@ -1253,6 +1300,8 @@ func (client BlockstorageClient) deleteVolume(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolume", apiReferenceLink) return response, err } @@ -1304,6 +1353,8 @@ func (client BlockstorageClient) deleteVolumeBackup(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolumeBackup", apiReferenceLink) return response, err } @@ -1358,6 +1409,8 @@ func (client BlockstorageClient) deleteVolumeBackupPolicy(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolumeBackupPolicy", apiReferenceLink) return response, err } @@ -1409,6 +1462,8 @@ func (client BlockstorageClient) deleteVolumeBackupPolicyAssignment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolumeBackupPolicyAssignment", apiReferenceLink) return response, err } @@ -1461,6 +1516,8 @@ func (client BlockstorageClient) deleteVolumeGroup(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolumeGroup", apiReferenceLink) return response, err } @@ -1513,6 +1570,8 @@ func (client BlockstorageClient) deleteVolumeGroupBackup(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolumeGroupBackup", apiReferenceLink) return response, err } @@ -1520,7 +1579,7 @@ func (client BlockstorageClient) deleteVolumeGroupBackup(ctx context.Context, re return response, err } -// DeleteVolumeKmsKey Removes the specified volume's assigned Key Management encryption key. +// DeleteVolumeKmsKey Removes the specified volume's assigned Vault service encryption key. func (client BlockstorageClient) DeleteVolumeKmsKey(ctx context.Context, request DeleteVolumeKmsKeyRequest) (response DeleteVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1564,6 +1623,8 @@ func (client BlockstorageClient) deleteVolumeKmsKey(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Blockstorage", "DeleteVolumeKmsKey", apiReferenceLink) return response, err } @@ -1615,6 +1676,8 @@ func (client BlockstorageClient) getBlockVolumeReplica(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BlockVolumeReplica/GetBlockVolumeReplica" + err = common.PostProcessServiceError(err, "Blockstorage", "GetBlockVolumeReplica", apiReferenceLink) return response, err } @@ -1666,6 +1729,8 @@ func (client BlockstorageClient) getBootVolume(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolume/GetBootVolume" + err = common.PostProcessServiceError(err, "Blockstorage", "GetBootVolume", apiReferenceLink) return response, err } @@ -1717,6 +1782,8 @@ func (client BlockstorageClient) getBootVolumeBackup(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/GetBootVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "GetBootVolumeBackup", apiReferenceLink) return response, err } @@ -1724,7 +1791,7 @@ func (client BlockstorageClient) getBootVolumeBackup(ctx context.Context, reques return response, err } -// GetBootVolumeKmsKey Gets the Key Management encryption key assigned to the specified boot volume. +// GetBootVolumeKmsKey Gets the Vault service encryption key assigned to the specified boot volume. func (client BlockstorageClient) GetBootVolumeKmsKey(ctx context.Context, request GetBootVolumeKmsKeyRequest) (response GetBootVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1768,6 +1835,8 @@ func (client BlockstorageClient) getBootVolumeKmsKey(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeKmsKey/GetBootVolumeKmsKey" + err = common.PostProcessServiceError(err, "Blockstorage", "GetBootVolumeKmsKey", apiReferenceLink) return response, err } @@ -1819,6 +1888,8 @@ func (client BlockstorageClient) getBootVolumeReplica(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeReplica/GetBootVolumeReplica" + err = common.PostProcessServiceError(err, "Blockstorage", "GetBootVolumeReplica", apiReferenceLink) return response, err } @@ -1870,6 +1941,8 @@ func (client BlockstorageClient) getVolume(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Volume/GetVolume" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolume", apiReferenceLink) return response, err } @@ -1921,6 +1994,8 @@ func (client BlockstorageClient) getVolumeBackup(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/GetVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeBackup", apiReferenceLink) return response, err } @@ -1972,6 +2047,8 @@ func (client BlockstorageClient) getVolumeBackupPolicy(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicy/GetVolumeBackupPolicy" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeBackupPolicy", apiReferenceLink) return response, err } @@ -2025,6 +2102,8 @@ func (client BlockstorageClient) getVolumeBackupPolicyAssetAssignment(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicyAssignment/GetVolumeBackupPolicyAssetAssignment" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeBackupPolicyAssetAssignment", apiReferenceLink) return response, err } @@ -2076,6 +2155,8 @@ func (client BlockstorageClient) getVolumeBackupPolicyAssignment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicyAssignment/GetVolumeBackupPolicyAssignment" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeBackupPolicyAssignment", apiReferenceLink) return response, err } @@ -2127,6 +2208,8 @@ func (client BlockstorageClient) getVolumeGroup(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroup/GetVolumeGroup" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeGroup", apiReferenceLink) return response, err } @@ -2178,6 +2261,8 @@ func (client BlockstorageClient) getVolumeGroupBackup(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/GetVolumeGroupBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeGroupBackup", apiReferenceLink) return response, err } @@ -2229,6 +2314,8 @@ func (client BlockstorageClient) getVolumeGroupReplica(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupReplica/GetVolumeGroupReplica" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeGroupReplica", apiReferenceLink) return response, err } @@ -2236,7 +2323,7 @@ func (client BlockstorageClient) getVolumeGroupReplica(ctx context.Context, requ return response, err } -// GetVolumeKmsKey Gets the Key Management encryption key assigned to the specified volume. +// GetVolumeKmsKey Gets the Vault service encryption key assigned to the specified volume. func (client BlockstorageClient) GetVolumeKmsKey(ctx context.Context, request GetVolumeKmsKeyRequest) (response GetVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2280,6 +2367,8 @@ func (client BlockstorageClient) getVolumeKmsKey(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeKmsKey/GetVolumeKmsKey" + err = common.PostProcessServiceError(err, "Blockstorage", "GetVolumeKmsKey", apiReferenceLink) return response, err } @@ -2331,6 +2420,8 @@ func (client BlockstorageClient) listBlockVolumeReplicas(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BlockVolumeReplica/ListBlockVolumeReplicas" + err = common.PostProcessServiceError(err, "Blockstorage", "ListBlockVolumeReplicas", apiReferenceLink) return response, err } @@ -2382,6 +2473,8 @@ func (client BlockstorageClient) listBootVolumeBackups(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/ListBootVolumeBackups" + err = common.PostProcessServiceError(err, "Blockstorage", "ListBootVolumeBackups", apiReferenceLink) return response, err } @@ -2433,6 +2526,8 @@ func (client BlockstorageClient) listBootVolumeReplicas(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeReplica/ListBootVolumeReplicas" + err = common.PostProcessServiceError(err, "Blockstorage", "ListBootVolumeReplicas", apiReferenceLink) return response, err } @@ -2484,6 +2579,8 @@ func (client BlockstorageClient) listBootVolumes(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolume/ListBootVolumes" + err = common.PostProcessServiceError(err, "Blockstorage", "ListBootVolumes", apiReferenceLink) return response, err } @@ -2537,6 +2634,8 @@ func (client BlockstorageClient) listVolumeBackupPolicies(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicy/ListVolumeBackupPolicies" + err = common.PostProcessServiceError(err, "Blockstorage", "ListVolumeBackupPolicies", apiReferenceLink) return response, err } @@ -2588,6 +2687,8 @@ func (client BlockstorageClient) listVolumeBackups(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/ListVolumeBackups" + err = common.PostProcessServiceError(err, "Blockstorage", "ListVolumeBackups", apiReferenceLink) return response, err } @@ -2640,6 +2741,8 @@ func (client BlockstorageClient) listVolumeGroupBackups(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/ListVolumeGroupBackups" + err = common.PostProcessServiceError(err, "Blockstorage", "ListVolumeGroupBackups", apiReferenceLink) return response, err } @@ -2692,6 +2795,8 @@ func (client BlockstorageClient) listVolumeGroupReplicas(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupReplica/ListVolumeGroupReplicas" + err = common.PostProcessServiceError(err, "Blockstorage", "ListVolumeGroupReplicas", apiReferenceLink) return response, err } @@ -2744,6 +2849,8 @@ func (client BlockstorageClient) listVolumeGroups(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroup/ListVolumeGroups" + err = common.PostProcessServiceError(err, "Blockstorage", "ListVolumeGroups", apiReferenceLink) return response, err } @@ -2795,6 +2902,8 @@ func (client BlockstorageClient) listVolumes(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Volume/ListVolumes" + err = common.PostProcessServiceError(err, "Blockstorage", "ListVolumes", apiReferenceLink) return response, err } @@ -2846,6 +2955,8 @@ func (client BlockstorageClient) updateBootVolume(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolume/UpdateBootVolume" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateBootVolume", apiReferenceLink) return response, err } @@ -2893,6 +3004,8 @@ func (client BlockstorageClient) updateBootVolumeBackup(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeBackup/UpdateBootVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateBootVolumeBackup", apiReferenceLink) return response, err } @@ -2900,7 +3013,7 @@ func (client BlockstorageClient) updateBootVolumeBackup(ctx context.Context, req return response, err } -// UpdateBootVolumeKmsKey Updates the specified volume with a new Key Management master encryption key. +// UpdateBootVolumeKmsKey Updates the specified volume with a new Vault service master encryption key. func (client BlockstorageClient) UpdateBootVolumeKmsKey(ctx context.Context, request UpdateBootVolumeKmsKeyRequest) (response UpdateBootVolumeKmsKeyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2944,6 +3057,8 @@ func (client BlockstorageClient) updateBootVolumeKmsKey(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeKmsKey/UpdateBootVolumeKmsKey" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateBootVolumeKmsKey", apiReferenceLink) return response, err } @@ -2996,6 +3111,8 @@ func (client BlockstorageClient) updateVolume(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Volume/UpdateVolume" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateVolume", apiReferenceLink) return response, err } @@ -3043,6 +3160,8 @@ func (client BlockstorageClient) updateVolumeBackup(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackup/UpdateVolumeBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateVolumeBackup", apiReferenceLink) return response, err } @@ -3102,6 +3221,8 @@ func (client BlockstorageClient) updateVolumeBackupPolicy(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeBackupPolicy/UpdateVolumeBackupPolicy" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateVolumeBackupPolicy", apiReferenceLink) return response, err } @@ -3157,6 +3278,8 @@ func (client BlockstorageClient) updateVolumeGroup(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroup/UpdateVolumeGroup" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateVolumeGroup", apiReferenceLink) return response, err } @@ -3203,6 +3326,8 @@ func (client BlockstorageClient) updateVolumeGroupBackup(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeGroupBackup/UpdateVolumeGroupBackup" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateVolumeGroupBackup", apiReferenceLink) return response, err } @@ -3254,6 +3379,8 @@ func (client BlockstorageClient) updateVolumeKmsKey(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeKmsKey/UpdateVolumeKmsKey" + err = common.PostProcessServiceError(err, "Blockstorage", "UpdateVolumeKmsKey", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_compute_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/core_compute_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go index e5402ad0cb..0201ff5044 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_compute_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_compute_client.go @@ -1,14 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core @@ -16,8 +16,8 @@ package core import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" ) @@ -77,6 +77,9 @@ func (client *ComputeClient) setConfigurationProvider(configProvider common.Conf // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -135,6 +138,8 @@ func (client ComputeClient) acceptShieldedIntegrityPolicy(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/MeasuredBootReport/AcceptShieldedIntegrityPolicy" + err = common.PostProcessServiceError(err, "Compute", "AcceptShieldedIntegrityPolicy", apiReferenceLink) return response, err } @@ -186,6 +191,8 @@ func (client ComputeClient) addImageShapeCompatibilityEntry(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ImageShapeCompatibilityEntry/AddImageShapeCompatibilityEntry" + err = common.PostProcessServiceError(err, "Compute", "AddImageShapeCompatibilityEntry", apiReferenceLink) return response, err } @@ -242,6 +249,8 @@ func (client ComputeClient) attachBootVolume(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeAttachment/AttachBootVolume" + err = common.PostProcessServiceError(err, "Compute", "AttachBootVolume", apiReferenceLink) return response, err } @@ -300,6 +309,8 @@ func (client ComputeClient) attachVnic(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicAttachment/AttachVnic" + err = common.PostProcessServiceError(err, "Compute", "AttachVnic", apiReferenceLink) return response, err } @@ -356,6 +367,8 @@ func (client ComputeClient) attachVolume(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeAttachment/AttachVolume" + err = common.PostProcessServiceError(err, "Compute", "AttachVolume", apiReferenceLink) return response, err } @@ -426,6 +439,8 @@ func (client ComputeClient) captureConsoleHistory(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/CaptureConsoleHistory" + err = common.PostProcessServiceError(err, "Compute", "CaptureConsoleHistory", apiReferenceLink) return response, err } @@ -484,6 +499,8 @@ func (client ComputeClient) changeComputeCapacityReservationCompartment(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservation/ChangeComputeCapacityReservationCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeCapacityReservationCompartment", apiReferenceLink) return response, err } @@ -491,7 +508,10 @@ func (client ComputeClient) changeComputeCapacityReservationCompartment(ctx cont return response, err } -// ChangeComputeClusterCompartment Move a compute cluster from one compartment to another. +// ChangeComputeClusterCompartment Moves a compute cluster into a different compartment within the same tenancy. +// A compute cluster is a remote direct memory access (RDMA) network group. +// For information about moving resources between compartments, see +// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). func (client ComputeClient) ChangeComputeClusterCompartment(ctx context.Context, request ChangeComputeClusterCompartmentRequest) (response ChangeComputeClusterCompartmentResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -540,6 +560,8 @@ func (client ComputeClient) changeComputeClusterCompartment(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/ChangeComputeClusterCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeClusterCompartment", apiReferenceLink) return response, err } @@ -598,6 +620,8 @@ func (client ComputeClient) changeComputeImageCapabilitySchemaCompartment(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchema/ChangeComputeImageCapabilitySchemaCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeComputeImageCapabilitySchemaCompartment", apiReferenceLink) return response, err } @@ -654,6 +678,8 @@ func (client ComputeClient) changeDedicatedVmHostCompartment(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHost/ChangeDedicatedVmHostCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeDedicatedVmHostCompartment", apiReferenceLink) return response, err } @@ -712,6 +738,8 @@ func (client ComputeClient) changeImageCompartment(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/ChangeImageCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeImageCompartment", apiReferenceLink) return response, err } @@ -772,6 +800,8 @@ func (client ComputeClient) changeInstanceCompartment(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/ChangeInstanceCompartment" + err = common.PostProcessServiceError(err, "Compute", "ChangeInstanceCompartment", apiReferenceLink) return response, err } @@ -828,6 +858,68 @@ func (client ComputeClient) createAppCatalogSubscription(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogSubscription/CreateAppCatalogSubscription" + err = common.PostProcessServiceError(err, "Compute", "CreateAppCatalogSubscription", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateComputeCapacityReport Generates a new compute capacity availability report for the availability domain. +// A compute capacity report lets you review capacity availability for the provided shapes. +// A default retry strategy applies to this operation CreateComputeCapacityReport() +func (client ComputeClient) CreateComputeCapacityReport(ctx context.Context, request CreateComputeCapacityReportRequest) (response CreateComputeCapacityReportResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createComputeCapacityReport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateComputeCapacityReportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateComputeCapacityReportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateComputeCapacityReportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateComputeCapacityReportResponse") + } + return +} + +// createComputeCapacityReport implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) createComputeCapacityReport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/computeCapacityReports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateComputeCapacityReportResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReport/CreateComputeCapacityReport" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeCapacityReport", apiReferenceLink) return response, err } @@ -888,6 +980,8 @@ func (client ComputeClient) createComputeCapacityReservation(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeCapacityReservation", apiReferenceLink) return response, err } @@ -895,7 +989,12 @@ func (client ComputeClient) createComputeCapacityReservation(ctx context.Context return response, err } -// CreateComputeCluster Create a compute cluster representing an RDMA network. +// CreateComputeCluster Creates an empty compute cluster, which is a remote direct memory access (RDMA) network group. +// After the compute cluster is created, you can use the compute cluster's OCID with the +// LaunchInstance operation to create instances in the compute cluster. +// For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). +// To create a cluster network that uses intance pools to manage groups of identical instances, +// see CreateClusterNetwork. func (client ComputeClient) CreateComputeCluster(ctx context.Context, request CreateComputeClusterRequest) (response CreateComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -944,6 +1043,8 @@ func (client ComputeClient) createComputeCluster(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/CreateComputeCluster" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeCluster", apiReferenceLink) return response, err } @@ -1000,6 +1101,8 @@ func (client ComputeClient) createComputeImageCapabilitySchema(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchema/CreateComputeImageCapabilitySchema" + err = common.PostProcessServiceError(err, "Compute", "CreateComputeImageCapabilitySchema", apiReferenceLink) return response, err } @@ -1059,6 +1162,8 @@ func (client ComputeClient) createDedicatedVmHost(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHost/CreateDedicatedVmHost" + err = common.PostProcessServiceError(err, "Compute", "CreateDedicatedVmHost", apiReferenceLink) return response, err } @@ -1131,6 +1236,8 @@ func (client ComputeClient) createImage(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/CreateImage" + err = common.PostProcessServiceError(err, "Compute", "CreateImage", apiReferenceLink) return response, err } @@ -1190,6 +1297,73 @@ func (client ComputeClient) createInstanceConsoleConnection(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/CreateInstanceConsoleConnection" + err = common.PostProcessServiceError(err, "Compute", "CreateInstanceConsoleConnection", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateInstanceScreenshot Captures the most recent screenshot data for the specified instance. +// The `createInstanceScreenshot` operation works with the other screenshot operations +// as described below. +// 1. Use `createInstanceScreenshot` to request the capture of the current instance +// screen state. The object will have a state of CREATING. +// 2. Optionally, use `GetInstanceScreenshot` to get the metadata of the screen capture. +// 3. Use `GetInstanceScreenshotContent` to get the actual screenshot data in base64 +// encoded string. +func (client ComputeClient) CreateInstanceScreenshot(ctx context.Context, request CreateInstanceScreenshotRequest) (response CreateInstanceScreenshotResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createInstanceScreenshot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateInstanceScreenshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateInstanceScreenshotResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateInstanceScreenshotResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateInstanceScreenshotResponse") + } + return +} + +// createInstanceScreenshot implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) createInstanceScreenshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/instances/{instanceId}/screenshots", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateInstanceScreenshotResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/CreateInstanceScreenshot" + err = common.PostProcessServiceError(err, "Compute", "CreateInstanceScreenshot", apiReferenceLink) return response, err } @@ -1241,6 +1415,8 @@ func (client ComputeClient) deleteAppCatalogSubscription(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Compute", "DeleteAppCatalogSubscription", apiReferenceLink) return response, err } @@ -1292,6 +1468,8 @@ func (client ComputeClient) deleteComputeCapacityReservation(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservation/DeleteComputeCapacityReservation" + err = common.PostProcessServiceError(err, "Compute", "DeleteComputeCapacityReservation", apiReferenceLink) return response, err } @@ -1299,7 +1477,8 @@ func (client ComputeClient) deleteComputeCapacityReservation(ctx context.Context return response, err } -// DeleteComputeCluster Delete the compute cluster. +// DeleteComputeCluster Deletes the compute cluster, which is a remote direct memory access (RDMA) network group. +// To delete a compute cluster, all instances in the cluster must be deleted first. func (client ComputeClient) DeleteComputeCluster(ctx context.Context, request DeleteComputeClusterRequest) (response DeleteComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -1343,6 +1522,8 @@ func (client ComputeClient) deleteComputeCluster(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/DeleteComputeCluster" + err = common.PostProcessServiceError(err, "Compute", "DeleteComputeCluster", apiReferenceLink) return response, err } @@ -1394,6 +1575,8 @@ func (client ComputeClient) deleteComputeImageCapabilitySchema(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchema/DeleteComputeImageCapabilitySchema" + err = common.PostProcessServiceError(err, "Compute", "DeleteComputeImageCapabilitySchema", apiReferenceLink) return response, err } @@ -1445,6 +1628,8 @@ func (client ComputeClient) deleteConsoleHistory(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/DeleteConsoleHistory" + err = common.PostProcessServiceError(err, "Compute", "DeleteConsoleHistory", apiReferenceLink) return response, err } @@ -1498,6 +1683,8 @@ func (client ComputeClient) deleteDedicatedVmHost(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHost/DeleteDedicatedVmHost" + err = common.PostProcessServiceError(err, "Compute", "DeleteDedicatedVmHost", apiReferenceLink) return response, err } @@ -1549,6 +1736,8 @@ func (client ComputeClient) deleteImage(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Compute", "DeleteImage", apiReferenceLink) return response, err } @@ -1600,6 +1789,8 @@ func (client ComputeClient) deleteInstanceConsoleConnection(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/DeleteInstanceConsoleConnection" + err = common.PostProcessServiceError(err, "Compute", "DeleteInstanceConsoleConnection", apiReferenceLink) return response, err } @@ -1653,6 +1844,8 @@ func (client ComputeClient) detachBootVolume(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Compute", "DetachBootVolume", apiReferenceLink) return response, err } @@ -1712,6 +1905,8 @@ func (client ComputeClient) detachVnic(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicAttachment/DetachVnic" + err = common.PostProcessServiceError(err, "Compute", "DetachVnic", apiReferenceLink) return response, err } @@ -1765,6 +1960,8 @@ func (client ComputeClient) detachVolume(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeAttachment/DetachVolume" + err = common.PostProcessServiceError(err, "Compute", "DetachVolume", apiReferenceLink) return response, err } @@ -1827,6 +2024,8 @@ func (client ComputeClient) exportImage(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/ExportImage" + err = common.PostProcessServiceError(err, "Compute", "ExportImage", apiReferenceLink) return response, err } @@ -1878,6 +2077,8 @@ func (client ComputeClient) getAppCatalogListing(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListing/GetAppCatalogListing" + err = common.PostProcessServiceError(err, "Compute", "GetAppCatalogListing", apiReferenceLink) return response, err } @@ -1929,6 +2130,8 @@ func (client ComputeClient) getAppCatalogListingAgreements(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListingResourceVersionAgreements/GetAppCatalogListingAgreements" + err = common.PostProcessServiceError(err, "Compute", "GetAppCatalogListingAgreements", apiReferenceLink) return response, err } @@ -1980,6 +2183,8 @@ func (client ComputeClient) getAppCatalogListingResourceVersion(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListingResourceVersion/GetAppCatalogListingResourceVersion" + err = common.PostProcessServiceError(err, "Compute", "GetAppCatalogListingResourceVersion", apiReferenceLink) return response, err } @@ -2031,6 +2236,8 @@ func (client ComputeClient) getBootVolumeAttachment(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeAttachment/GetBootVolumeAttachment" + err = common.PostProcessServiceError(err, "Compute", "GetBootVolumeAttachment", apiReferenceLink) return response, err } @@ -2082,6 +2289,8 @@ func (client ComputeClient) getComputeCapacityReservation(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservation/GetComputeCapacityReservation" + err = common.PostProcessServiceError(err, "Compute", "GetComputeCapacityReservation", apiReferenceLink) return response, err } @@ -2089,7 +2298,7 @@ func (client ComputeClient) getComputeCapacityReservation(ctx context.Context, r return response, err } -// GetComputeCluster Get the detailed information of a compute cluster. +// GetComputeCluster Gets information about the specified compute cluster. func (client ComputeClient) GetComputeCluster(ctx context.Context, request GetComputeClusterRequest) (response GetComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -2133,6 +2342,8 @@ func (client ComputeClient) getComputeCluster(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/GetComputeCluster" + err = common.PostProcessServiceError(err, "Compute", "GetComputeCluster", apiReferenceLink) return response, err } @@ -2184,6 +2395,8 @@ func (client ComputeClient) getComputeGlobalImageCapabilitySchema(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGlobalImageCapabilitySchema/GetComputeGlobalImageCapabilitySchema" + err = common.PostProcessServiceError(err, "Compute", "GetComputeGlobalImageCapabilitySchema", apiReferenceLink) return response, err } @@ -2235,6 +2448,8 @@ func (client ComputeClient) getComputeGlobalImageCapabilitySchemaVersion(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGlobalImageCapabilitySchemaVersion/GetComputeGlobalImageCapabilitySchemaVersion" + err = common.PostProcessServiceError(err, "Compute", "GetComputeGlobalImageCapabilitySchemaVersion", apiReferenceLink) return response, err } @@ -2286,6 +2501,8 @@ func (client ComputeClient) getComputeImageCapabilitySchema(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchema/GetComputeImageCapabilitySchema" + err = common.PostProcessServiceError(err, "Compute", "GetComputeImageCapabilitySchema", apiReferenceLink) return response, err } @@ -2339,6 +2556,8 @@ func (client ComputeClient) getConsoleHistory(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/GetConsoleHistory" + err = common.PostProcessServiceError(err, "Compute", "GetConsoleHistory", apiReferenceLink) return response, err } @@ -2392,6 +2611,8 @@ func (client ComputeClient) getConsoleHistoryContent(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/GetConsoleHistoryContent" + err = common.PostProcessServiceError(err, "Compute", "GetConsoleHistoryContent", apiReferenceLink) return response, err } @@ -2443,6 +2664,8 @@ func (client ComputeClient) getDedicatedVmHost(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHost/GetDedicatedVmHost" + err = common.PostProcessServiceError(err, "Compute", "GetDedicatedVmHost", apiReferenceLink) return response, err } @@ -2494,6 +2717,8 @@ func (client ComputeClient) getImage(ctx context.Context, request common.OCIRequ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/GetImage" + err = common.PostProcessServiceError(err, "Compute", "GetImage", apiReferenceLink) return response, err } @@ -2545,6 +2770,8 @@ func (client ComputeClient) getImageShapeCompatibilityEntry(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ImageShapeCompatibilityEntry/GetImageShapeCompatibilityEntry" + err = common.PostProcessServiceError(err, "Compute", "GetImageShapeCompatibilityEntry", apiReferenceLink) return response, err } @@ -2596,6 +2823,8 @@ func (client ComputeClient) getInstance(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/GetInstance" + err = common.PostProcessServiceError(err, "Compute", "GetInstance", apiReferenceLink) return response, err } @@ -2647,6 +2876,167 @@ func (client ComputeClient) getInstanceConsoleConnection(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/GetInstanceConsoleConnection" + err = common.PostProcessServiceError(err, "Compute", "GetInstanceConsoleConnection", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetInstanceMaintenanceReboot Gets the maximum possible date that a maintenance reboot can be extended. For more information, see +// Infrastructure Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm). +func (client ComputeClient) GetInstanceMaintenanceReboot(ctx context.Context, request GetInstanceMaintenanceRebootRequest) (response GetInstanceMaintenanceRebootResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getInstanceMaintenanceReboot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetInstanceMaintenanceRebootResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetInstanceMaintenanceRebootResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetInstanceMaintenanceRebootResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetInstanceMaintenanceRebootResponse") + } + return +} + +// getInstanceMaintenanceReboot implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getInstanceMaintenanceReboot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/instances/{instanceId}/maintenanceReboot", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetInstanceMaintenanceRebootResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceMaintenanceReboot/GetInstanceMaintenanceReboot" + err = common.PostProcessServiceError(err, "Compute", "GetInstanceMaintenanceReboot", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetInstanceScreenshot Retrieves the metadata of the specified screenshot taken for the specified instance. +func (client ComputeClient) GetInstanceScreenshot(ctx context.Context, request GetInstanceScreenshotRequest) (response GetInstanceScreenshotResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getInstanceScreenshot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetInstanceScreenshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetInstanceScreenshotResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetInstanceScreenshotResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetInstanceScreenshotResponse") + } + return +} + +// getInstanceScreenshot implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getInstanceScreenshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/instances/{instanceId}/screenshots/{instanceScreenshotId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetInstanceScreenshotResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceScreenshot/GetInstanceScreenshot" + err = common.PostProcessServiceError(err, "Compute", "GetInstanceScreenshot", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetInstanceScreenshotContent Retrieves the data of the specified screenshot taken for the specified instance. +func (client ComputeClient) GetInstanceScreenshotContent(ctx context.Context, request GetInstanceScreenshotContentRequest) (response GetInstanceScreenshotContentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getInstanceScreenshotContent, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetInstanceScreenshotContentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetInstanceScreenshotContentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetInstanceScreenshotContentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetInstanceScreenshotContentResponse") + } + return +} + +// getInstanceScreenshotContent implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) getInstanceScreenshotContent(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/instances/{instanceId}/screenshots/{instanceScreenshotId}/content", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetInstanceScreenshotContentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Compute", "GetInstanceScreenshotContent", apiReferenceLink) return response, err } @@ -2698,6 +3088,8 @@ func (client ComputeClient) getMeasuredBootReport(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/MeasuredBootReport/GetMeasuredBootReport" + err = common.PostProcessServiceError(err, "Compute", "GetMeasuredBootReport", apiReferenceLink) return response, err } @@ -2749,6 +3141,8 @@ func (client ComputeClient) getVnicAttachment(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicAttachment/GetVnicAttachment" + err = common.PostProcessServiceError(err, "Compute", "GetVnicAttachment", apiReferenceLink) return response, err } @@ -2800,6 +3194,8 @@ func (client ComputeClient) getVolumeAttachment(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeAttachment/GetVolumeAttachment" + err = common.PostProcessServiceError(err, "Compute", "GetVolumeAttachment", apiReferenceLink) return response, err } @@ -2852,6 +3248,8 @@ func (client ComputeClient) getWindowsInstanceInitialCredentials(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceCredentials/GetWindowsInstanceInitialCredentials" + err = common.PostProcessServiceError(err, "Compute", "GetWindowsInstanceInitialCredentials", apiReferenceLink) return response, err } @@ -2871,7 +3269,8 @@ func (client ComputeClient) getWindowsInstanceInitialCredentials(ctx context.Con // - **SOFTRESET** - Gracefully reboots the instance by sending a shutdown command to the operating system. // After waiting 15 minutes for the OS to shut down, the instance is powered off and // then powered back on. -// - **SENDDIAGNOSTICINTERRUPT** - For advanced users. **Warning: Sending a diagnostic interrupt to a live system can +// - **SUSPEND** - Powers off the instance and saves the contents from the instance's memory. +// - **SENDDIAGNOSTICINTERRUPT** - For advanced users. **Caution: Sending a diagnostic interrupt to a live system can // cause data corruption or system failure.** Sends a diagnostic interrupt that causes the instance's // OS to crash and then reboot. Before you send a diagnostic interrupt, you must configure the instance to generate a // crash dump file when it crashes. The crash dump captures information about the state of the OS at the time of @@ -2881,7 +3280,14 @@ func (client ComputeClient) getWindowsInstanceInitialCredentials(ctx context.Con // - **VALIDATELIVEMIGRATE** - Live migrate the instance to validate impact on the customer workload. // Live migrating an instance moves it to a different physical host while the instance is running. // -// - **DIAGNOSTICREBOOT** - **This feature currently only supports virtual machines** Powers off the VM instance then rebuilds and powers it back on. +// - **DIAGNOSTICREBOOT** - Powers off the instance, rebuilds it, and then powers it back on. +// Before you send a diagnostic reboot, restart the instance's OS, confirm that the instance and networking settings are configured +// correctly, and try other troubleshooting steps (https://docs.cloud.oracle.com/iaas/Content/Compute/References/troubleshooting-compute-instances.htm). +// Use diagnostic reboot as a final attempt to troubleshoot an unreachable instance. For virtual machine (VM) instances only. +// For more information, see Performing a Diagnostic Reboot (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/diagnostic-reboot.htm). +// +// - **REBOOTMIGRATE** - Powers off the instance, moves it to new hardware, and then powers it back on. For more information, see +// Infrastructure Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm). // // For more information about managing instance lifecycle states, see // Stopping and Starting an Instance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/restartinginstance.htm). @@ -2933,6 +3339,8 @@ func (client ComputeClient) instanceAction(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/InstanceAction" + err = common.PostProcessServiceError(err, "Compute", "InstanceAction", apiReferenceLink) return response, err } @@ -3020,6 +3428,8 @@ func (client ComputeClient) launchInstance(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/LaunchInstance" + err = common.PostProcessServiceError(err, "Compute", "LaunchInstance", apiReferenceLink) return response, err } @@ -3071,6 +3481,8 @@ func (client ComputeClient) listAppCatalogListingResourceVersions(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListingResourceVersionSummary/ListAppCatalogListingResourceVersions" + err = common.PostProcessServiceError(err, "Compute", "ListAppCatalogListingResourceVersions", apiReferenceLink) return response, err } @@ -3122,6 +3534,8 @@ func (client ComputeClient) listAppCatalogListings(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogListingSummary/ListAppCatalogListings" + err = common.PostProcessServiceError(err, "Compute", "ListAppCatalogListings", apiReferenceLink) return response, err } @@ -3173,6 +3587,8 @@ func (client ComputeClient) listAppCatalogSubscriptions(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AppCatalogSubscriptionSummary/ListAppCatalogSubscriptions" + err = common.PostProcessServiceError(err, "Compute", "ListAppCatalogSubscriptions", apiReferenceLink) return response, err } @@ -3225,6 +3641,8 @@ func (client ComputeClient) listBootVolumeAttachments(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BootVolumeAttachment/ListBootVolumeAttachments" + err = common.PostProcessServiceError(err, "Compute", "ListBootVolumeAttachments", apiReferenceLink) return response, err } @@ -3276,6 +3694,8 @@ func (client ComputeClient) listComputeCapacityReservationInstanceShapes(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservationInstanceShapeSummary/ListComputeCapacityReservationInstanceShapes" + err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityReservationInstanceShapes", apiReferenceLink) return response, err } @@ -3327,6 +3747,8 @@ func (client ComputeClient) listComputeCapacityReservationInstances(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CapacityReservationInstanceSummary/ListComputeCapacityReservationInstances" + err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityReservationInstances", apiReferenceLink) return response, err } @@ -3380,6 +3802,8 @@ func (client ComputeClient) listComputeCapacityReservations(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservation/ListComputeCapacityReservations" + err = common.PostProcessServiceError(err, "Compute", "ListComputeCapacityReservations", apiReferenceLink) return response, err } @@ -3388,6 +3812,7 @@ func (client ComputeClient) listComputeCapacityReservations(ctx context.Context, } // ListComputeClusters Lists the compute clusters in the specified compartment. +// A compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) is a remote direct memory access (RDMA) network group. func (client ComputeClient) ListComputeClusters(ctx context.Context, request ListComputeClustersRequest) (response ListComputeClustersResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -3431,6 +3856,8 @@ func (client ComputeClient) listComputeClusters(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/ListComputeClusters" + err = common.PostProcessServiceError(err, "Compute", "ListComputeClusters", apiReferenceLink) return response, err } @@ -3482,6 +3909,8 @@ func (client ComputeClient) listComputeGlobalImageCapabilitySchemaVersions(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGlobalImageCapabilitySchemaVersionSummary/ListComputeGlobalImageCapabilitySchemaVersions" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGlobalImageCapabilitySchemaVersions", apiReferenceLink) return response, err } @@ -3533,6 +3962,8 @@ func (client ComputeClient) listComputeGlobalImageCapabilitySchemas(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeGlobalImageCapabilitySchemaSummary/ListComputeGlobalImageCapabilitySchemas" + err = common.PostProcessServiceError(err, "Compute", "ListComputeGlobalImageCapabilitySchemas", apiReferenceLink) return response, err } @@ -3584,6 +4015,8 @@ func (client ComputeClient) listComputeImageCapabilitySchemas(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchemaSummary/ListComputeImageCapabilitySchemas" + err = common.PostProcessServiceError(err, "Compute", "ListComputeImageCapabilitySchemas", apiReferenceLink) return response, err } @@ -3635,6 +4068,8 @@ func (client ComputeClient) listConsoleHistories(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/ListConsoleHistories" + err = common.PostProcessServiceError(err, "Compute", "ListConsoleHistories", apiReferenceLink) return response, err } @@ -3687,6 +4122,8 @@ func (client ComputeClient) listDedicatedVmHostInstanceShapes(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHostInstanceShapeSummary/ListDedicatedVmHostInstanceShapes" + err = common.PostProcessServiceError(err, "Compute", "ListDedicatedVmHostInstanceShapes", apiReferenceLink) return response, err } @@ -3738,6 +4175,8 @@ func (client ComputeClient) listDedicatedVmHostInstances(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHostInstanceSummary/ListDedicatedVmHostInstances" + err = common.PostProcessServiceError(err, "Compute", "ListDedicatedVmHostInstances", apiReferenceLink) return response, err } @@ -3789,6 +4228,8 @@ func (client ComputeClient) listDedicatedVmHostShapes(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHostShapeSummary/ListDedicatedVmHostShapes" + err = common.PostProcessServiceError(err, "Compute", "ListDedicatedVmHostShapes", apiReferenceLink) return response, err } @@ -3842,6 +4283,8 @@ func (client ComputeClient) listDedicatedVmHosts(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHostSummary/ListDedicatedVmHosts" + err = common.PostProcessServiceError(err, "Compute", "ListDedicatedVmHosts", apiReferenceLink) return response, err } @@ -3893,6 +4336,8 @@ func (client ComputeClient) listImageShapeCompatibilityEntries(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ImageShapeCompatibilityEntry/ListImageShapeCompatibilityEntries" + err = common.PostProcessServiceError(err, "Compute", "ListImageShapeCompatibilityEntries", apiReferenceLink) return response, err } @@ -3904,7 +4349,7 @@ func (client ComputeClient) listImageShapeCompatibilityEntries(ctx context.Conte // platform images (https://docs.cloud.oracle.com/iaas/Content/Compute/References/images.htm) and // custom images (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm). // The list of platform images includes the three most recently published versions -// of each major distribution. +// of each major distribution. The list does not support filtering based on image tags. // The list of images returned is ordered to first show the recent platform images, // then all of the custom images. // **Caution:** Platform images are refreshed regularly. When new images are released, older versions are replaced. @@ -3952,6 +4397,8 @@ func (client ComputeClient) listImages(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/ListImages" + err = common.PostProcessServiceError(err, "Compute", "ListImages", apiReferenceLink) return response, err } @@ -4004,6 +4451,8 @@ func (client ComputeClient) listInstanceConsoleConnections(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/ListInstanceConsoleConnections" + err = common.PostProcessServiceError(err, "Compute", "ListInstanceConsoleConnections", apiReferenceLink) return response, err } @@ -4055,6 +4504,61 @@ func (client ComputeClient) listInstanceDevices(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Device/ListInstanceDevices" + err = common.PostProcessServiceError(err, "Compute", "ListInstanceDevices", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListInstanceScreenshots Lists the last screenshots taken for the specified instance. +func (client ComputeClient) ListInstanceScreenshots(ctx context.Context, request ListInstanceScreenshotsRequest) (response ListInstanceScreenshotsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listInstanceScreenshots, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListInstanceScreenshotsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListInstanceScreenshotsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListInstanceScreenshotsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListInstanceScreenshotsResponse") + } + return +} + +// listInstanceScreenshots implements the OCIOperation interface (enables retrying operations) +func (client ComputeClient) listInstanceScreenshots(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/instances/{instanceId}/screenshots", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListInstanceScreenshotsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/ListInstanceScreenshots" + err = common.PostProcessServiceError(err, "Compute", "ListInstanceScreenshots", apiReferenceLink) return response, err } @@ -4108,6 +4612,8 @@ func (client ComputeClient) listInstances(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/ListInstances" + err = common.PostProcessServiceError(err, "Compute", "ListInstances", apiReferenceLink) return response, err } @@ -4160,6 +4666,8 @@ func (client ComputeClient) listShapes(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Shape/ListShapes" + err = common.PostProcessServiceError(err, "Compute", "ListShapes", apiReferenceLink) return response, err } @@ -4213,6 +4721,8 @@ func (client ComputeClient) listVnicAttachments(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicAttachment/ListVnicAttachments" + err = common.PostProcessServiceError(err, "Compute", "ListVnicAttachments", apiReferenceLink) return response, err } @@ -4283,6 +4793,8 @@ func (client ComputeClient) listVolumeAttachments(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeAttachment/ListVolumeAttachments" + err = common.PostProcessServiceError(err, "Compute", "ListVolumeAttachments", apiReferenceLink) return response, err } @@ -4334,6 +4846,8 @@ func (client ComputeClient) removeImageShapeCompatibilityEntry(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ImageShapeCompatibilityEntry/RemoveImageShapeCompatibilityEntry" + err = common.PostProcessServiceError(err, "Compute", "RemoveImageShapeCompatibilityEntry", apiReferenceLink) return response, err } @@ -4390,6 +4904,8 @@ func (client ComputeClient) terminateInstance(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Compute", "TerminateInstance", apiReferenceLink) return response, err } @@ -4443,6 +4959,8 @@ func (client ComputeClient) updateComputeCapacityReservation(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCapacityReservation/UpdateComputeCapacityReservation" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeCapacityReservation", apiReferenceLink) return response, err } @@ -4450,7 +4968,7 @@ func (client ComputeClient) updateComputeCapacityReservation(ctx context.Context return response, err } -// UpdateComputeCluster Update a compute cluster representing an RDMA network. +// UpdateComputeCluster Updates the specified compute cluster. func (client ComputeClient) UpdateComputeCluster(ctx context.Context, request UpdateComputeClusterRequest) (response UpdateComputeClusterResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -4499,6 +5017,8 @@ func (client ComputeClient) updateComputeCluster(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeCluster/UpdateComputeCluster" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeCluster", apiReferenceLink) return response, err } @@ -4550,6 +5070,8 @@ func (client ComputeClient) updateComputeImageCapabilitySchema(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ComputeImageCapabilitySchema/UpdateComputeImageCapabilitySchema" + err = common.PostProcessServiceError(err, "Compute", "UpdateComputeImageCapabilitySchema", apiReferenceLink) return response, err } @@ -4601,6 +5123,8 @@ func (client ComputeClient) updateConsoleHistory(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ConsoleHistory/UpdateConsoleHistory" + err = common.PostProcessServiceError(err, "Compute", "UpdateConsoleHistory", apiReferenceLink) return response, err } @@ -4658,6 +5182,8 @@ func (client ComputeClient) updateDedicatedVmHost(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DedicatedVmHost/UpdateDedicatedVmHost" + err = common.PostProcessServiceError(err, "Compute", "UpdateDedicatedVmHost", apiReferenceLink) return response, err } @@ -4714,6 +5240,8 @@ func (client ComputeClient) updateImage(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Image/UpdateImage" + err = common.PostProcessServiceError(err, "Compute", "UpdateImage", apiReferenceLink) return response, err } @@ -4774,6 +5302,8 @@ func (client ComputeClient) updateInstance(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/UpdateInstance" + err = common.PostProcessServiceError(err, "Compute", "UpdateInstance", apiReferenceLink) return response, err } @@ -4825,6 +5355,8 @@ func (client ComputeClient) updateInstanceConsoleConnection(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConsoleConnection/UpdateInstanceConsoleConnection" + err = common.PostProcessServiceError(err, "Compute", "UpdateInstanceConsoleConnection", apiReferenceLink) return response, err } @@ -4876,6 +5408,8 @@ func (client ComputeClient) updateVolumeAttachment(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VolumeAttachment/UpdateVolumeAttachment" + err = common.PostProcessServiceError(err, "Compute", "UpdateVolumeAttachment", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_computemanagement_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go similarity index 90% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/core_computemanagement_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go index 24dc1fcec8..02f6481169 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_computemanagement_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_computemanagement_client.go @@ -1,14 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core @@ -16,8 +16,8 @@ package core import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" ) @@ -54,6 +54,8 @@ func NewComputeManagementClientWithOboToken(configProvider common.ConfigurationP } func newComputeManagementClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client ComputeManagementClient, err error) { + // ComputeManagement service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("ComputeManagement")) common.ConfigCircuitBreakerFromEnvVar(&baseClient) common.ConfigCircuitBreakerFromGlobalVar(&baseClient) @@ -77,6 +79,9 @@ func (client *ComputeManagementClient) setConfigurationProvider(configProvider c // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -137,6 +142,8 @@ func (client ComputeManagementClient) attachInstancePoolInstance(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "ComputeManagement", "AttachInstancePoolInstance", apiReferenceLink) return response, err } @@ -193,6 +200,8 @@ func (client ComputeManagementClient) attachLoadBalancer(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/AttachLoadBalancer" + err = common.PostProcessServiceError(err, "ComputeManagement", "AttachLoadBalancer", apiReferenceLink) return response, err } @@ -253,6 +262,8 @@ func (client ComputeManagementClient) changeClusterNetworkCompartment(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/ChangeClusterNetworkCompartment" + err = common.PostProcessServiceError(err, "ComputeManagement", "ChangeClusterNetworkCompartment", apiReferenceLink) return response, err } @@ -319,6 +330,8 @@ func (client ComputeManagementClient) changeInstanceConfigurationCompartment(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/ChangeInstanceConfigurationCompartment" + err = common.PostProcessServiceError(err, "ComputeManagement", "ChangeInstanceConfigurationCompartment", apiReferenceLink) return response, err } @@ -379,6 +392,8 @@ func (client ComputeManagementClient) changeInstancePoolCompartment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/ChangeInstancePoolCompartment" + err = common.PostProcessServiceError(err, "ComputeManagement", "ChangeInstancePoolCompartment", apiReferenceLink) return response, err } @@ -436,6 +451,8 @@ func (client ComputeManagementClient) createClusterNetwork(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/CreateClusterNetwork" + err = common.PostProcessServiceError(err, "ComputeManagement", "CreateClusterNetwork", apiReferenceLink) return response, err } @@ -493,6 +510,8 @@ func (client ComputeManagementClient) createInstanceConfiguration(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/CreateInstanceConfiguration" + err = common.PostProcessServiceError(err, "ComputeManagement", "CreateInstanceConfiguration", apiReferenceLink) return response, err } @@ -549,6 +568,8 @@ func (client ComputeManagementClient) createInstancePool(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/CreateInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "CreateInstancePool", apiReferenceLink) return response, err } @@ -600,6 +621,8 @@ func (client ComputeManagementClient) deleteInstanceConfiguration(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "ComputeManagement", "DeleteInstanceConfiguration", apiReferenceLink) return response, err } @@ -656,6 +679,8 @@ func (client ComputeManagementClient) detachInstancePoolInstance(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolInstance/DetachInstancePoolInstance" + err = common.PostProcessServiceError(err, "ComputeManagement", "DetachInstancePoolInstance", apiReferenceLink) return response, err } @@ -712,6 +737,8 @@ func (client ComputeManagementClient) detachLoadBalancer(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/DetachLoadBalancer" + err = common.PostProcessServiceError(err, "ComputeManagement", "DetachLoadBalancer", apiReferenceLink) return response, err } @@ -763,6 +790,8 @@ func (client ComputeManagementClient) getClusterNetwork(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/GetClusterNetwork" + err = common.PostProcessServiceError(err, "ComputeManagement", "GetClusterNetwork", apiReferenceLink) return response, err } @@ -814,6 +843,8 @@ func (client ComputeManagementClient) getInstanceConfiguration(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/GetInstanceConfiguration" + err = common.PostProcessServiceError(err, "ComputeManagement", "GetInstanceConfiguration", apiReferenceLink) return response, err } @@ -865,6 +896,8 @@ func (client ComputeManagementClient) getInstancePool(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/GetInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "GetInstancePool", apiReferenceLink) return response, err } @@ -916,6 +949,8 @@ func (client ComputeManagementClient) getInstancePoolInstance(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolInstance/GetInstancePoolInstance" + err = common.PostProcessServiceError(err, "ComputeManagement", "GetInstancePoolInstance", apiReferenceLink) return response, err } @@ -967,6 +1002,8 @@ func (client ComputeManagementClient) getInstancePoolLoadBalancerAttachment(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolLoadBalancerAttachment/GetInstancePoolLoadBalancerAttachment" + err = common.PostProcessServiceError(err, "ComputeManagement", "GetInstancePoolLoadBalancerAttachment", apiReferenceLink) return response, err } @@ -1028,6 +1065,8 @@ func (client ComputeManagementClient) launchInstanceConfiguration(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/LaunchInstanceConfiguration" + err = common.PostProcessServiceError(err, "ComputeManagement", "LaunchInstanceConfiguration", apiReferenceLink) return response, err } @@ -1079,6 +1118,8 @@ func (client ComputeManagementClient) listClusterNetworkInstances(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/ListClusterNetworkInstances" + err = common.PostProcessServiceError(err, "ComputeManagement", "ListClusterNetworkInstances", apiReferenceLink) return response, err } @@ -1130,6 +1171,8 @@ func (client ComputeManagementClient) listClusterNetworks(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/ListClusterNetworks" + err = common.PostProcessServiceError(err, "ComputeManagement", "ListClusterNetworks", apiReferenceLink) return response, err } @@ -1181,6 +1224,8 @@ func (client ComputeManagementClient) listInstanceConfigurations(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfigurationSummary/ListInstanceConfigurations" + err = common.PostProcessServiceError(err, "ComputeManagement", "ListInstanceConfigurations", apiReferenceLink) return response, err } @@ -1232,6 +1277,8 @@ func (client ComputeManagementClient) listInstancePoolInstances(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceSummary/ListInstancePoolInstances" + err = common.PostProcessServiceError(err, "ComputeManagement", "ListInstancePoolInstances", apiReferenceLink) return response, err } @@ -1283,6 +1330,8 @@ func (client ComputeManagementClient) listInstancePools(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePoolSummary/ListInstancePools" + err = common.PostProcessServiceError(err, "ComputeManagement", "ListInstancePools", apiReferenceLink) return response, err } @@ -1340,6 +1389,8 @@ func (client ComputeManagementClient) resetInstancePool(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/ResetInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "ResetInstancePool", apiReferenceLink) return response, err } @@ -1399,6 +1450,8 @@ func (client ComputeManagementClient) softresetInstancePool(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/SoftresetInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "SoftresetInstancePool", apiReferenceLink) return response, err } @@ -1458,6 +1511,8 @@ func (client ComputeManagementClient) softstopInstancePool(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/SoftstopInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "SoftstopInstancePool", apiReferenceLink) return response, err } @@ -1515,6 +1570,8 @@ func (client ComputeManagementClient) startInstancePool(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/StartInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "StartInstancePool", apiReferenceLink) return response, err } @@ -1572,6 +1629,8 @@ func (client ComputeManagementClient) stopInstancePool(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/StopInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "StopInstancePool", apiReferenceLink) return response, err } @@ -1625,6 +1684,8 @@ func (client ComputeManagementClient) terminateClusterNetwork(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/TerminateClusterNetwork" + err = common.PostProcessServiceError(err, "ComputeManagement", "TerminateClusterNetwork", apiReferenceLink) return response, err } @@ -1681,6 +1742,8 @@ func (client ComputeManagementClient) terminateInstancePool(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "ComputeManagement", "TerminateInstancePool", apiReferenceLink) return response, err } @@ -1737,6 +1800,8 @@ func (client ComputeManagementClient) updateClusterNetwork(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClusterNetwork/UpdateClusterNetwork" + err = common.PostProcessServiceError(err, "ComputeManagement", "UpdateClusterNetwork", apiReferenceLink) return response, err } @@ -1793,6 +1858,8 @@ func (client ComputeManagementClient) updateInstanceConfiguration(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstanceConfiguration/UpdateInstanceConfiguration" + err = common.PostProcessServiceError(err, "ComputeManagement", "UpdateInstanceConfiguration", apiReferenceLink) return response, err } @@ -1850,6 +1917,8 @@ func (client ComputeManagementClient) updateInstancePool(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InstancePool/UpdateInstancePool" + err = common.PostProcessServiceError(err, "ComputeManagement", "UpdateInstancePool", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/core_vcnipinternal_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_vcnipinternal_client.go new file mode 100644 index 0000000000..32eaa99b94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_vcnipinternal_client.go @@ -0,0 +1,198 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +//VcnipInternalClient a client for VcnipInternal +type VcnipInternalClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewVcnipInternalClientWithConfigurationProvider Creates a new default VcnipInternal client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewVcnipInternalClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client VcnipInternalClient, err error) { + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newVcnipInternalClientFromBaseClient(baseClient, provider) +} + +// NewVcnipInternalClientWithOboToken Creates a new default VcnipInternal client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// as well as reading the region +func NewVcnipInternalClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client VcnipInternalClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newVcnipInternalClientFromBaseClient(baseClient, configProvider) +} + +func newVcnipInternalClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client VcnipInternalClient, err error) { + // VcnipInternal service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("VcnipInternal")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = VcnipInternalClient{BaseClient: baseClient} + client.BasePath = "20160918" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *VcnipInternalClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("iaas", "https://iaas.{region}.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *VcnipInternalClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *VcnipInternalClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// ByoipRangeLock Lock ByoipRange +func (client VcnipInternalClient) ByoipRangeLock(ctx context.Context, request ByoipRangeLockRequest) (response ByoipRangeLockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.byoipRangeLock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ByoipRangeLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ByoipRangeLockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ByoipRangeLockResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ByoipRangeLockResponse") + } + return +} + +// byoipRangeLock implements the OCIOperation interface (enables retrying operations) +func (client VcnipInternalClient) byoipRangeLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/byoipRanges/{byoipRangeId}/actions/lock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ByoipRangeLockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRangeResponse/ByoipRangeLock" + err = common.PostProcessServiceError(err, "VcnipInternal", "ByoipRangeLock", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ByoipRangeUnlock Lock ByoipRange +func (client VcnipInternalClient) ByoipRangeUnlock(ctx context.Context, request ByoipRangeUnlockRequest) (response ByoipRangeUnlockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.byoipRangeUnlock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ByoipRangeUnlockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ByoipRangeUnlockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ByoipRangeUnlockResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ByoipRangeUnlockResponse") + } + return +} + +// byoipRangeUnlock implements the OCIOperation interface (enables retrying operations) +func (client VcnipInternalClient) byoipRangeUnlock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/byoipRanges/{byoipRangeId}/actions/unlock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ByoipRangeUnlockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRangeResponse/ByoipRangeUnlock" + err = common.PostProcessServiceError(err, "VcnipInternal", "ByoipRangeUnlock", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_virtualnetwork_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go similarity index 88% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/core_virtualnetwork_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go index abd008b143..f54122b242 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/core_virtualnetwork_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/core_virtualnetwork_client.go @@ -1,14 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core @@ -16,8 +16,8 @@ package core import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" ) @@ -54,6 +54,8 @@ func NewVirtualNetworkClientWithOboToken(configProvider common.ConfigurationProv } func newVirtualNetworkClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client VirtualNetworkClient, err error) { + // VirtualNetwork service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("VirtualNetwork")) common.ConfigCircuitBreakerFromEnvVar(&baseClient) common.ConfigCircuitBreakerFromGlobalVar(&baseClient) @@ -77,6 +79,9 @@ func (client *VirtualNetworkClient) setConfigurationProvider(configProvider comm // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -130,6 +135,8 @@ func (client VirtualNetworkClient) acceptLocalPeeringToken(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/AcceptLocalPeeringToken" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AcceptLocalPeeringToken", apiReferenceLink) return response, err } @@ -181,6 +188,8 @@ func (client VirtualNetworkClient) addAdditionalRouteRules(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/AddAdditionalRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddAdditionalRouteRules", apiReferenceLink) return response, err } @@ -232,6 +241,8 @@ func (client VirtualNetworkClient) addDrgRouteDistributionStatements(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/AddDrgRouteDistributionStatements" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddDrgRouteDistributionStatements", apiReferenceLink) return response, err } @@ -288,6 +299,66 @@ func (client VirtualNetworkClient) addDrgRouteRules(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteRule/AddDrgRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddDrgRouteRules", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// AddIpv6SubnetCidr Add an IPv6 CIDR to a subnet. +func (client VirtualNetworkClient) AddIpv6SubnetCidr(ctx context.Context, request AddIpv6SubnetCidrRequest) (response AddIpv6SubnetCidrResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.addIpv6SubnetCidr, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = AddIpv6SubnetCidrResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = AddIpv6SubnetCidrResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(AddIpv6SubnetCidrResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into AddIpv6SubnetCidrResponse") + } + return +} + +// addIpv6SubnetCidr implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) addIpv6SubnetCidr(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/subnets/{subnetId}/actions/addIpv6Cidr", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response AddIpv6SubnetCidrResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/AddIpv6SubnetCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddIpv6SubnetCidr", apiReferenceLink) return response, err } @@ -345,6 +416,8 @@ func (client VirtualNetworkClient) addIpv6VcnCidr(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/AddIpv6VcnCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddIpv6VcnCidr", apiReferenceLink) return response, err } @@ -396,6 +469,8 @@ func (client VirtualNetworkClient) addNetworkSecurityGroupSecurityRules(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/AddNetworkSecurityGroupSecurityRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddNetworkSecurityGroupSecurityRules", apiReferenceLink) return response, err } @@ -453,6 +528,8 @@ func (client VirtualNetworkClient) addPublicIpPoolCapacity(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/AddPublicIpPoolCapacity" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddPublicIpPoolCapacity", apiReferenceLink) return response, err } @@ -513,6 +590,8 @@ func (client VirtualNetworkClient) addVcnCidr(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/AddVcnCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AddVcnCidr", apiReferenceLink) return response, err } @@ -565,6 +644,8 @@ func (client VirtualNetworkClient) advertiseByoipRange(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/AdvertiseByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AdvertiseByoipRange", apiReferenceLink) return response, err } @@ -623,6 +704,8 @@ func (client VirtualNetworkClient) attachDav(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/AttachDav" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AttachDav", apiReferenceLink) return response, err } @@ -682,6 +765,8 @@ func (client VirtualNetworkClient) attachServiceId(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/AttachServiceId" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AttachServiceId", apiReferenceLink) return response, err } @@ -740,6 +825,8 @@ func (client VirtualNetworkClient) attachVnicToDestinationSmartNic(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/AttachVnicToDestinationSmartNic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AttachVnicToDestinationSmartNic", apiReferenceLink) return response, err } @@ -796,6 +883,8 @@ func (client VirtualNetworkClient) attachVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/AttachVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "AttachVnicWorker", apiReferenceLink) return response, err } @@ -852,6 +941,8 @@ func (client VirtualNetworkClient) backfill(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Backfill/Backfill" + err = common.PostProcessServiceError(err, "VirtualNetwork", "Backfill", apiReferenceLink) return response, err } @@ -863,9 +954,10 @@ func (client VirtualNetworkClient) backfill(ctx context.Context, request common. // Use this operation (and not UpdateVirtualCircuit) // to add prefixes to the virtual circuit. Oracle must verify the customer's ownership // of each prefix before traffic for that prefix will flow across the virtual circuit. +// A default retry strategy applies to this operation BulkAddVirtualCircuitPublicPrefixes() func (client VirtualNetworkClient) BulkAddVirtualCircuitPublicPrefixes(ctx context.Context, request BulkAddVirtualCircuitPublicPrefixesRequest) (response BulkAddVirtualCircuitPublicPrefixesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -901,6 +993,8 @@ func (client VirtualNetworkClient) bulkAddVirtualCircuitPublicPrefixes(ctx conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuitPublicPrefix/BulkAddVirtualCircuitPublicPrefixes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "BulkAddVirtualCircuitPublicPrefixes", apiReferenceLink) return response, err } @@ -912,9 +1006,10 @@ func (client VirtualNetworkClient) bulkAddVirtualCircuitPublicPrefixes(ctx conte // Use this operation (and not UpdateVirtualCircuit) // to remove prefixes from the virtual circuit. When the virtual circuit's state switches // back to PROVISIONED, Oracle stops advertising the specified prefixes across the connection. +// A default retry strategy applies to this operation BulkDeleteVirtualCircuitPublicPrefixes() func (client VirtualNetworkClient) BulkDeleteVirtualCircuitPublicPrefixes(ctx context.Context, request BulkDeleteVirtualCircuitPublicPrefixesRequest) (response BulkDeleteVirtualCircuitPublicPrefixesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -950,6 +1045,8 @@ func (client VirtualNetworkClient) bulkDeleteVirtualCircuitPublicPrefixes(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuitPublicPrefix/BulkDeleteVirtualCircuitPublicPrefixes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "BulkDeleteVirtualCircuitPublicPrefixes", apiReferenceLink) return response, err } @@ -1006,6 +1103,8 @@ func (client VirtualNetworkClient) bulkMigration(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/BulkMigration/BulkMigration" + err = common.PostProcessServiceError(err, "VirtualNetwork", "BulkMigration", apiReferenceLink) return response, err } @@ -1064,6 +1163,8 @@ func (client VirtualNetworkClient) changeByoipRangeCompartment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/ChangeByoipRangeCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeByoipRangeCompartment", apiReferenceLink) return response, err } @@ -1122,6 +1223,8 @@ func (client VirtualNetworkClient) changeC3DrgCompartment(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ChangeC3DrgCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeC3DrgCompartment", apiReferenceLink) return response, err } @@ -1180,6 +1283,8 @@ func (client VirtualNetworkClient) changeCaptureFilterCompartment(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/ChangeCaptureFilterCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeCaptureFilterCompartment", apiReferenceLink) return response, err } @@ -1188,9 +1293,10 @@ func (client VirtualNetworkClient) changeCaptureFilterCompartment(ctx context.Co } // ChangeClientVpnCompartment Moves a ClientVpn into a different compartment within the same tenancy. +// A default retry strategy applies to this operation ChangeClientVpnCompartment() func (client VirtualNetworkClient) ChangeClientVpnCompartment(ctx context.Context, request ChangeClientVpnCompartmentRequest) (response ChangeClientVpnCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1236,6 +1342,8 @@ func (client VirtualNetworkClient) changeClientVpnCompartment(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/ChangeClientVpnCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeClientVpnCompartment", apiReferenceLink) return response, err } @@ -1246,9 +1354,10 @@ func (client VirtualNetworkClient) changeClientVpnCompartment(ctx context.Contex // ChangeCpeCompartment Moves a CPE object into a different compartment within the same tenancy. For information // about moving resources between compartments, see // Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeCpeCompartment() func (client VirtualNetworkClient) ChangeCpeCompartment(ctx context.Context, request ChangeCpeCompartmentRequest) (response ChangeCpeCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1294,6 +1403,8 @@ func (client VirtualNetworkClient) changeCpeCompartment(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/ChangeCpeCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeCpeCompartment", apiReferenceLink) return response, err } @@ -1304,9 +1415,10 @@ func (client VirtualNetworkClient) changeCpeCompartment(ctx context.Context, req // ChangeCrossConnectCompartment Moves a cross-connect into a different compartment within the same tenancy. For information // about moving resources between compartments, see // Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeCrossConnectCompartment() func (client VirtualNetworkClient) ChangeCrossConnectCompartment(ctx context.Context, request ChangeCrossConnectCompartmentRequest) (response ChangeCrossConnectCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1352,6 +1464,8 @@ func (client VirtualNetworkClient) changeCrossConnectCompartment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnect/ChangeCrossConnectCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeCrossConnectCompartment", apiReferenceLink) return response, err } @@ -1362,9 +1476,10 @@ func (client VirtualNetworkClient) changeCrossConnectCompartment(ctx context.Con // ChangeCrossConnectGroupCompartment Moves a cross-connect group into a different compartment within the same tenancy. For information // about moving resources between compartments, see // Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeCrossConnectGroupCompartment() func (client VirtualNetworkClient) ChangeCrossConnectGroupCompartment(ctx context.Context, request ChangeCrossConnectGroupCompartmentRequest) (response ChangeCrossConnectGroupCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1410,6 +1525,8 @@ func (client VirtualNetworkClient) changeCrossConnectGroupCompartment(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectGroup/ChangeCrossConnectGroupCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeCrossConnectGroupCompartment", apiReferenceLink) return response, err } @@ -1468,6 +1585,8 @@ func (client VirtualNetworkClient) changeDhcpOptionsCompartment(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DhcpOptions/ChangeDhcpOptionsCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeDhcpOptionsCompartment", apiReferenceLink) return response, err } @@ -1526,6 +1645,8 @@ func (client VirtualNetworkClient) changeDrgAttachmentCompartment(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/ChangeDrgAttachmentCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeDrgAttachmentCompartment", apiReferenceLink) return response, err } @@ -1584,6 +1705,8 @@ func (client VirtualNetworkClient) changeDrgCompartment(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ChangeDrgCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeDrgCompartment", apiReferenceLink) return response, err } @@ -1594,9 +1717,10 @@ func (client VirtualNetworkClient) changeDrgCompartment(ctx context.Context, req // ChangeIPSecConnectionCompartment Moves an IPSec connection into a different compartment within the same tenancy. For information // about moving resources between compartments, see // Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeIPSecConnectionCompartment() func (client VirtualNetworkClient) ChangeIPSecConnectionCompartment(ctx context.Context, request ChangeIPSecConnectionCompartmentRequest) (response ChangeIPSecConnectionCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1642,6 +1766,8 @@ func (client VirtualNetworkClient) changeIPSecConnectionCompartment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/ChangeIPSecConnectionCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeIPSecConnectionCompartment", apiReferenceLink) return response, err } @@ -1695,6 +1821,8 @@ func (client VirtualNetworkClient) changeInternalDrgCompartment(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrg/ChangeInternalDrgCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeInternalDrgCompartment", apiReferenceLink) return response, err } @@ -1751,6 +1879,8 @@ func (client VirtualNetworkClient) changeInternalGenericGatewayCompartment(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/ChangeInternalGenericGatewayCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeInternalGenericGatewayCompartment", apiReferenceLink) return response, err } @@ -1809,6 +1939,8 @@ func (client VirtualNetworkClient) changeInternetGatewayCompartment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternetGateway/ChangeInternetGatewayCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeInternetGatewayCompartment", apiReferenceLink) return response, err } @@ -1867,6 +1999,8 @@ func (client VirtualNetworkClient) changeLocalPeeringGatewayCompartment(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/ChangeLocalPeeringGatewayCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeLocalPeeringGatewayCompartment", apiReferenceLink) return response, err } @@ -1925,6 +2059,8 @@ func (client VirtualNetworkClient) changeNatGatewayCompartment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NatGateway/ChangeNatGatewayCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeNatGatewayCompartment", apiReferenceLink) return response, err } @@ -1982,6 +2118,8 @@ func (client VirtualNetworkClient) changeNetworkSecurityGroupCompartment(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/ChangeNetworkSecurityGroupCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeNetworkSecurityGroupCompartment", apiReferenceLink) return response, err } @@ -2040,6 +2178,8 @@ func (client VirtualNetworkClient) changePrivateEndpointCompartment(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/ChangePrivateEndpointCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangePrivateEndpointCompartment", apiReferenceLink) return response, err } @@ -2100,6 +2240,8 @@ func (client VirtualNetworkClient) changePublicIpCompartment(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/ChangePublicIpCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangePublicIpCompartment", apiReferenceLink) return response, err } @@ -2158,6 +2300,8 @@ func (client VirtualNetworkClient) changePublicIpPoolCompartment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/ChangePublicIpPoolCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangePublicIpPoolCompartment", apiReferenceLink) return response, err } @@ -2168,9 +2312,10 @@ func (client VirtualNetworkClient) changePublicIpPoolCompartment(ctx context.Con // ChangeRemotePeeringConnectionCompartment Moves a remote peering connection (RPC) into a different compartment within the same tenancy. For information // about moving resources between compartments, see // Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeRemotePeeringConnectionCompartment() func (client VirtualNetworkClient) ChangeRemotePeeringConnectionCompartment(ctx context.Context, request ChangeRemotePeeringConnectionCompartmentRequest) (response ChangeRemotePeeringConnectionCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2216,6 +2361,8 @@ func (client VirtualNetworkClient) changeRemotePeeringConnectionCompartment(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/ChangeRemotePeeringConnectionCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeRemotePeeringConnectionCompartment", apiReferenceLink) return response, err } @@ -2274,6 +2421,8 @@ func (client VirtualNetworkClient) changeRouteTableCompartment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/ChangeRouteTableCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeRouteTableCompartment", apiReferenceLink) return response, err } @@ -2332,6 +2481,8 @@ func (client VirtualNetworkClient) changeSecurityListCompartment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityList/ChangeSecurityListCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeSecurityListCompartment", apiReferenceLink) return response, err } @@ -2390,6 +2541,8 @@ func (client VirtualNetworkClient) changeServiceGatewayCompartment(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/ChangeServiceGatewayCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeServiceGatewayCompartment", apiReferenceLink) return response, err } @@ -2448,6 +2601,8 @@ func (client VirtualNetworkClient) changeSubnetCompartment(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/ChangeSubnetCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeSubnetCompartment", apiReferenceLink) return response, err } @@ -2506,6 +2661,8 @@ func (client VirtualNetworkClient) changeVcnCompartment(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/ChangeVcnCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeVcnCompartment", apiReferenceLink) return response, err } @@ -2564,6 +2721,8 @@ func (client VirtualNetworkClient) changeVcnDrgCompartment(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ChangeVcnDrgCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeVcnDrgCompartment", apiReferenceLink) return response, err } @@ -2574,9 +2733,10 @@ func (client VirtualNetworkClient) changeVcnDrgCompartment(ctx context.Context, // ChangeVirtualCircuitCompartment Moves a virtual circuit into a different compartment within the same tenancy. For information // about moving resources between compartments, see // Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeVirtualCircuitCompartment() func (client VirtualNetworkClient) ChangeVirtualCircuitCompartment(ctx context.Context, request ChangeVirtualCircuitCompartmentRequest) (response ChangeVirtualCircuitCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2622,6 +2782,8 @@ func (client VirtualNetworkClient) changeVirtualCircuitCompartment(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuit/ChangeVirtualCircuitCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeVirtualCircuitCompartment", apiReferenceLink) return response, err } @@ -2680,6 +2842,8 @@ func (client VirtualNetworkClient) changeVlanCompartment(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vlan/ChangeVlanCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeVlanCompartment", apiReferenceLink) return response, err } @@ -2738,6 +2902,8 @@ func (client VirtualNetworkClient) changeVnicAttachmentsCompartmentRequest(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/ChangeVnicAttachmentsCompartmentRequest" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeVnicAttachmentsCompartmentRequest", apiReferenceLink) return response, err } @@ -2796,6 +2962,8 @@ func (client VirtualNetworkClient) changeVtapCompartment(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vtap/ChangeVtapCompartment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ChangeVtapCompartment", apiReferenceLink) return response, err } @@ -2847,6 +3015,8 @@ func (client VirtualNetworkClient) completePromotion(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/CompletePromotion" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CompletePromotion", apiReferenceLink) return response, err } @@ -2898,6 +3068,8 @@ func (client VirtualNetworkClient) completeUnpromotion(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/CompleteUnpromotion" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CompleteUnpromotion", apiReferenceLink) return response, err } @@ -2949,6 +3121,8 @@ func (client VirtualNetworkClient) connectLocalPeeringConnections(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/ConnectLocalPeeringConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ConnectLocalPeeringConnections", apiReferenceLink) return response, err } @@ -3006,6 +3180,8 @@ func (client VirtualNetworkClient) connectLocalPeeringGateways(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/ConnectLocalPeeringGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ConnectLocalPeeringGateways", apiReferenceLink) return response, err } @@ -3020,9 +3196,10 @@ func (client VirtualNetworkClient) connectLocalPeeringGateways(ctx context.Conte // to connect to RPCs in the acceptor's compartment. Without that permission, this // operation will fail. For more information, see // VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). +// A default retry strategy applies to this operation ConnectRemotePeeringConnections() func (client VirtualNetworkClient) ConnectRemotePeeringConnections(ctx context.Context, request ConnectRemotePeeringConnectionsRequest) (response ConnectRemotePeeringConnectionsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3063,6 +3240,8 @@ func (client VirtualNetworkClient) connectRemotePeeringConnections(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/ConnectRemotePeeringConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ConnectRemotePeeringConnections", apiReferenceLink) return response, err } @@ -3119,6 +3298,8 @@ func (client VirtualNetworkClient) createByoipRange(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/CreateByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateByoipRange", apiReferenceLink) return response, err } @@ -3184,6 +3365,8 @@ func (client VirtualNetworkClient) createC3Drg(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/CreateC3Drg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateC3Drg", apiReferenceLink) return response, err } @@ -3248,6 +3431,8 @@ func (client VirtualNetworkClient) createC3DrgAttachment(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/CreateC3DrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateC3DrgAttachment", apiReferenceLink) return response, err } @@ -3310,6 +3495,8 @@ func (client VirtualNetworkClient) createCaptureFilter(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/CreateCaptureFilter" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateCaptureFilter", apiReferenceLink) return response, err } @@ -3321,9 +3508,10 @@ func (client VirtualNetworkClient) createCaptureFilter(ctx context.Context, requ // specify a list of accessible subnets to manage the traffic access through this endpoint. Our service also provides // customers options like addressing mode and authentication method etc. // clientVpns. +// A default retry strategy applies to this operation CreateClientVpn() func (client VirtualNetworkClient) CreateClientVpn(ctx context.Context, request CreateClientVpnRequest) (response CreateClientVpnResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3369,6 +3557,8 @@ func (client VirtualNetworkClient) createClientVpn(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/CreateClientVpn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateClientVpn", apiReferenceLink) return response, err } @@ -3377,9 +3567,10 @@ func (client VirtualNetworkClient) createClientVpn(ctx context.Context, request } // CreateClientVpnUser Create a clientVpn user on a clientVpn. +// A default retry strategy applies to this operation CreateClientVpnUser() func (client VirtualNetworkClient) CreateClientVpnUser(ctx context.Context, request CreateClientVpnUserRequest) (response CreateClientVpnUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3425,6 +3616,8 @@ func (client VirtualNetworkClient) createClientVpnUser(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpnUser/CreateClientVpnUser" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateClientVpnUser", apiReferenceLink) return response, err } @@ -3434,7 +3627,7 @@ func (client VirtualNetworkClient) createClientVpnUser(ctx context.Context, requ // CreateCpe Creates a new virtual customer-premises equipment (CPE) object in the specified compartment. For // more information, see Site-to-Site VPN Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm). -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where you want +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want // the CPE to reside. Notice that the CPE doesn't have to be in the same compartment as the IPSec // connection or other Networking Service components. If you're not sure which compartment to // use, put the CPE in the same compartment as the DRG. For more information about @@ -3444,9 +3637,10 @@ func (client VirtualNetworkClient) createClientVpnUser(ctx context.Context, requ // CPE Configuration (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/configuringCPE.htm). // You may optionally specify a *display name* for the CPE, otherwise a default is provided. It does not have to // be unique, and you can change it. Avoid entering confidential information. +// A default retry strategy applies to this operation CreateCpe() func (client VirtualNetworkClient) CreateCpe(ctx context.Context, request CreateCpeRequest) (response CreateCpeResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3492,6 +3686,8 @@ func (client VirtualNetworkClient) createCpe(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/CreateCpe" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateCpe", apiReferenceLink) return response, err } @@ -3505,7 +3701,7 @@ func (client VirtualNetworkClient) createCpe(ctx context.Context, request common // After creating the `CrossConnect` object, you need to go the FastConnect location // and request to have the physical cable installed. For more information, see // FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the // compartment where you want the cross-connect to reside. If you're // not sure which compartment to use, put the cross-connect in the // same compartment with your VCN. For more information about @@ -3515,9 +3711,10 @@ func (client VirtualNetworkClient) createCpe(ctx context.Context, request common // Resource Identifiers (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the cross-connect. // It does not have to be unique, and you can change it. Avoid entering confidential information. +// A default retry strategy applies to this operation CreateCrossConnect() func (client VirtualNetworkClient) CreateCrossConnect(ctx context.Context, request CreateCrossConnectRequest) (response CreateCrossConnectResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3563,6 +3760,8 @@ func (client VirtualNetworkClient) createCrossConnect(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnect/CreateCrossConnect" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateCrossConnect", apiReferenceLink) return response, err } @@ -3573,7 +3772,7 @@ func (client VirtualNetworkClient) createCrossConnect(ctx context.Context, reque // CreateCrossConnectGroup Creates a new cross-connect group to use with Oracle Cloud Infrastructure // FastConnect. For more information, see // FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the // compartment where you want the cross-connect group to reside. If you're // not sure which compartment to use, put the cross-connect group in the // same compartment with your VCN. For more information about @@ -3583,9 +3782,10 @@ func (client VirtualNetworkClient) createCrossConnect(ctx context.Context, reque // Resource Identifiers (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // You may optionally specify a *display name* for the cross-connect group. // It does not have to be unique, and you can change it. Avoid entering confidential information. +// A default retry strategy applies to this operation CreateCrossConnectGroup() func (client VirtualNetworkClient) CreateCrossConnectGroup(ctx context.Context, request CreateCrossConnectGroupRequest) (response CreateCrossConnectGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3631,6 +3831,8 @@ func (client VirtualNetworkClient) createCrossConnectGroup(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectGroup/CreateCrossConnectGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateCrossConnectGroup", apiReferenceLink) return response, err } @@ -3687,6 +3889,8 @@ func (client VirtualNetworkClient) createDav(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/CreateDav" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateDav", apiReferenceLink) return response, err } @@ -3696,7 +3900,7 @@ func (client VirtualNetworkClient) createDav(ctx context.Context, request common // CreateDhcpOptions Creates a new set of DHCP options for the specified VCN. For more information, see // DhcpOptions. -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where you want the set of +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the set of // DHCP options to reside. Notice that the set of options doesn't have to be in the same compartment as the VCN, // subnets, or other Networking Service components. If you're not sure which compartment to use, put the set // of DHCP options in the same compartment as the VCN. For more information about compartments and access control, see @@ -3752,6 +3956,8 @@ func (client VirtualNetworkClient) createDhcpOptions(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DhcpOptions/CreateDhcpOptions" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateDhcpOptions", apiReferenceLink) return response, err } @@ -3817,6 +4023,8 @@ func (client VirtualNetworkClient) createDrg(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/CreateDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateDrg", apiReferenceLink) return response, err } @@ -3826,7 +4034,7 @@ func (client VirtualNetworkClient) createDrg(ctx context.Context, request common // CreateDrgAttachment Attaches the specified DRG to the specified network resource. A VCN can be attached to only one DRG // at a time, but a DRG can be attached to more than one VCN. The response includes a `DrgAttachment` -// object with its own OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). For more information about DRGs, see +// object with its own OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For more information about DRGs, see // Dynamic Routing Gateways (DRGs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm). // You may optionally specify a *display name* for the attachment, otherwise a default is provided. // It does not have to be unique, and you can change it. Avoid entering confidential information. @@ -3881,6 +4089,8 @@ func (client VirtualNetworkClient) createDrgAttachment(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/CreateDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateDrgAttachment", apiReferenceLink) return response, err } @@ -3940,6 +4150,8 @@ func (client VirtualNetworkClient) createDrgRouteDistribution(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistribution/CreateDrgRouteDistribution" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateDrgRouteDistribution", apiReferenceLink) return response, err } @@ -3997,6 +4209,8 @@ func (client VirtualNetworkClient) createDrgRouteTable(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteTable/CreateDrgRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateDrgRouteTable", apiReferenceLink) return response, err } @@ -4053,6 +4267,8 @@ func (client VirtualNetworkClient) createEndpointService(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointService/CreateEndpointService" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateEndpointService", apiReferenceLink) return response, err } @@ -4109,6 +4325,8 @@ func (client VirtualNetworkClient) createFlowLogConfig(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfig/CreateFlowLogConfig" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateFlowLogConfig", apiReferenceLink) return response, err } @@ -4168,6 +4386,8 @@ func (client VirtualNetworkClient) createFlowLogConfigAttachment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfigAttachment/CreateFlowLogConfigAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateFlowLogConfigAttachment", apiReferenceLink) return response, err } @@ -4182,7 +4402,7 @@ func (client VirtualNetworkClient) createFlowLogConfigAttachment(ctx context.Con // If you configure both tunnels to use BGP dynamic routing, you can provide an empty list for // the static routes. For more information, see the important note in // IPSecConnection. -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where you want the +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the // IPSec connection to reside. Notice that the IPSec connection doesn't have to be in the same compartment // as the DRG, CPE, or other Networking Service components. If you're not sure which compartment to // use, put the IPSec connection in the same compartment as the DRG. For more information about @@ -4197,9 +4417,10 @@ func (client VirtualNetworkClient) createFlowLogConfigAttachment(ctx context.Con // For each tunnel, you need the IP address of Oracle's VPN headend and the shared secret // (that is, the pre-shared key). For more information, see // CPE Configuration (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/configuringCPE.htm). +// A default retry strategy applies to this operation CreateIPSecConnection() func (client VirtualNetworkClient) CreateIPSecConnection(ctx context.Context, request CreateIPSecConnectionRequest) (response CreateIPSecConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4245,6 +4466,8 @@ func (client VirtualNetworkClient) createIPSecConnection(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/CreateIPSecConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateIPSecConnection", apiReferenceLink) return response, err } @@ -4301,6 +4524,8 @@ func (client VirtualNetworkClient) createInternalDnsRecord(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDnsRecord/CreateInternalDnsRecord" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalDnsRecord", apiReferenceLink) return response, err } @@ -4311,7 +4536,7 @@ func (client VirtualNetworkClient) createInternalDnsRecord(ctx context.Context, // CreateInternalDrg This is only used for internal operations to support TRANSIT HUB. Creates a new dynamic routing gateway (DRG) // of type DRG_TRANSIT_HUB in the specified compartment. Creates a new dynamic routing gateway (DRG) in the specified // compartment. For more information, see Dynamic Routing Gateways (DRGs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm). -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where you want +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want // the DRG to reside. Notice that the DRG doesn't have to be in the same compartment as the VCN, // the DRG attachment, or other Networking Service components. If you're not sure which compartment // to use, put the DRG in the same compartment as the VCN. For more information about compartments @@ -4366,6 +4591,8 @@ func (client VirtualNetworkClient) createInternalDrg(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrg/CreateInternalDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalDrg", apiReferenceLink) return response, err } @@ -4374,7 +4601,7 @@ func (client VirtualNetworkClient) createInternalDrg(ctx context.Context, reques } // CreateInternalDrgAttachment Connects the specified DRG to a specified network resource type. A VCN can be attached to only one DRG at a time, -// but a DRG can be attached to more than one VCN. The response includes a `DrgAttachment` object with its own OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). For more +// but a DRG can be attached to more than one VCN. The response includes a `DrgAttachment` object with its own OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For more // information about DRGs, see // Dynamic Routing Gateways (DRGs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm). // You may optionally specify a *display name* for the attachment, otherwise a default is provided. @@ -4430,6 +4657,66 @@ func (client VirtualNetworkClient) createInternalDrgAttachment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrgAttachment/CreateInternalDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalDrgAttachment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateInternalDrgRouteTable Creates a route table which can be used by VCN Dataplane to route DRG traffic. +func (client VirtualNetworkClient) CreateInternalDrgRouteTable(ctx context.Context, request CreateInternalDrgRouteTableRequest) (response CreateInternalDrgRouteTableResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createInternalDrgRouteTable, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateInternalDrgRouteTableResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateInternalDrgRouteTableResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateInternalDrgRouteTableResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateInternalDrgRouteTableResponse") + } + return +} + +// createInternalDrgRouteTable implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) createInternalDrgRouteTable(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/internal/drgRouteTable", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateInternalDrgRouteTableResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalDrgRouteTable", apiReferenceLink) return response, err } @@ -4486,6 +4773,8 @@ func (client VirtualNetworkClient) createInternalGenericGateway(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/CreateInternalGenericGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalGenericGateway", apiReferenceLink) return response, err } @@ -4558,6 +4847,8 @@ func (client VirtualNetworkClient) createInternalPublicIp(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalPublicIp/CreateInternalPublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalPublicIp", apiReferenceLink) return response, err } @@ -4614,6 +4905,8 @@ func (client VirtualNetworkClient) createInternalVnic(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnic/CreateInternalVnic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalVnic", apiReferenceLink) return response, err } @@ -4670,6 +4963,8 @@ func (client VirtualNetworkClient) createInternalVnicAttachment(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/CreateInternalVnicAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternalVnicAttachment", apiReferenceLink) return response, err } @@ -4679,7 +4974,7 @@ func (client VirtualNetworkClient) createInternalVnicAttachment(ctx context.Cont // CreateInternetGateway Creates a new internet gateway for the specified VCN. For more information, see // Access to the Internet (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIGs.htm). -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where you want the Internet +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want the Internet // Gateway to reside. Notice that the internet gateway doesn't have to be in the same compartment as the VCN or // other Networking Service components. If you're not sure which compartment to use, put the Internet // Gateway in the same compartment with the VCN. For more information about compartments and access control, see @@ -4741,6 +5036,8 @@ func (client VirtualNetworkClient) createInternetGateway(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternetGateway/CreateInternetGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateInternetGateway", apiReferenceLink) return response, err } @@ -4797,6 +5094,8 @@ func (client VirtualNetworkClient) createIpv6(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/CreateIpv6" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateIpv6", apiReferenceLink) return response, err } @@ -4853,6 +5152,8 @@ func (client VirtualNetworkClient) createLocalPeeringConnection(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/CreateLocalPeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateLocalPeeringConnection", apiReferenceLink) return response, err } @@ -4909,6 +5210,8 @@ func (client VirtualNetworkClient) createLocalPeeringGateway(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/CreateLocalPeeringGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateLocalPeeringGateway", apiReferenceLink) return response, err } @@ -4966,6 +5269,8 @@ func (client VirtualNetworkClient) createNatGateway(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NatGateway/CreateNatGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateNatGateway", apiReferenceLink) return response, err } @@ -5022,6 +5327,8 @@ func (client VirtualNetworkClient) createNetworkSecurityGroup(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/CreateNetworkSecurityGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateNetworkSecurityGroup", apiReferenceLink) return response, err } @@ -5080,6 +5387,8 @@ func (client VirtualNetworkClient) createPrivateAccessGateway(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateAccessGateway/CreatePrivateAccessGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreatePrivateAccessGateway", apiReferenceLink) return response, err } @@ -5137,6 +5446,8 @@ func (client VirtualNetworkClient) createPrivateEndpoint(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/CreatePrivateEndpoint" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreatePrivateEndpoint", apiReferenceLink) return response, err } @@ -5195,6 +5506,8 @@ func (client VirtualNetworkClient) createPrivateIp(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/CreatePrivateIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreatePrivateIp", apiReferenceLink) return response, err } @@ -5202,7 +5515,7 @@ func (client VirtualNetworkClient) createPrivateIp(ctx context.Context, request return response, err } -// CreatePrivateIpNextHop Creates the nextHop configuration for the specified private IP. +// CreatePrivateIpNextHop Creates the nextHop configuration for the specified private IP or IPv6. func (client VirtualNetworkClient) CreatePrivateIpNextHop(ctx context.Context, request CreatePrivateIpNextHopRequest) (response CreatePrivateIpNextHopResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -5251,6 +5564,8 @@ func (client VirtualNetworkClient) createPrivateIpNextHop(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIpNextHop/CreatePrivateIpNextHop" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreatePrivateIpNextHop", apiReferenceLink) return response, err } @@ -5323,6 +5638,8 @@ func (client VirtualNetworkClient) createPublicIp(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/CreatePublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreatePublicIp", apiReferenceLink) return response, err } @@ -5379,6 +5696,8 @@ func (client VirtualNetworkClient) createPublicIpPool(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/CreatePublicIpPool" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreatePublicIpPool", apiReferenceLink) return response, err } @@ -5387,9 +5706,10 @@ func (client VirtualNetworkClient) createPublicIpPool(ctx context.Context, reque } // CreateRemotePeeringConnection Creates a new remote peering connection (RPC) for the specified DRG. +// A default retry strategy applies to this operation CreateRemotePeeringConnection() func (client VirtualNetworkClient) CreateRemotePeeringConnection(ctx context.Context, request CreateRemotePeeringConnectionRequest) (response CreateRemotePeeringConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5435,6 +5755,8 @@ func (client VirtualNetworkClient) createRemotePeeringConnection(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/CreateRemotePeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateRemotePeeringConnection", apiReferenceLink) return response, err } @@ -5503,6 +5825,8 @@ func (client VirtualNetworkClient) createRouteTable(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/CreateRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateRouteTable", apiReferenceLink) return response, err } @@ -5560,6 +5884,8 @@ func (client VirtualNetworkClient) createScanProxy(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ScanProxy/CreateScanProxy" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateScanProxy", apiReferenceLink) return response, err } @@ -5627,6 +5953,8 @@ func (client VirtualNetworkClient) createSecurityList(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityList/CreateSecurityList" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateSecurityList", apiReferenceLink) return response, err } @@ -5689,6 +6017,8 @@ func (client VirtualNetworkClient) createServiceGateway(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/CreateServiceGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateServiceGateway", apiReferenceLink) return response, err } @@ -5769,6 +6099,8 @@ func (client VirtualNetworkClient) createSubnet(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/CreateSubnet" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateSubnet", apiReferenceLink) return response, err } @@ -5849,6 +6181,8 @@ func (client VirtualNetworkClient) createVcn(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/CreateVcn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVcn", apiReferenceLink) return response, err } @@ -5858,7 +6192,7 @@ func (client VirtualNetworkClient) createVcn(ctx context.Context, request common // CreateVcnDrg Creates a new dynamic routing gateway (DRG) in the specified compartment. For more information, // see Dynamic Routing Gateways (DRGs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm). -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment where you want +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment where you want // the DRG to reside. Notice that the DRG doesn't have to be in the same compartment as the VCN, // the DRG attachment, or other Networking Service components. If you're not sure which compartment // to use, put the DRG in the same compartment as the VCN. For more information about compartments @@ -5913,6 +6247,8 @@ func (client VirtualNetworkClient) createVcnDrg(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/CreateVcnDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVcnDrg", apiReferenceLink) return response, err } @@ -5921,7 +6257,7 @@ func (client VirtualNetworkClient) createVcnDrg(ctx context.Context, request com } // CreateVcnDrgAttachment Attaches the specified DRG to the specified VCN. A VCN can be attached to only one DRG at a time. -// The response includes a `DrgAttachment` object with its own OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). For more +// The response includes a `DrgAttachment` object with its own OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). For more // information about DRGs, see // Dynamic Routing Gateways (DRGs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDRGs.htm). // You may optionally specify a *display name* for the attachment, otherwise a default is provided. @@ -5977,6 +6313,8 @@ func (client VirtualNetworkClient) createVcnDrgAttachment(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/CreateVcnDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVcnDrgAttachment", apiReferenceLink) return response, err } @@ -6002,9 +6340,10 @@ func (client VirtualNetworkClient) createVcnDrgAttachment(ctx context.Context, r // VCN and confirm the VCN's routing sends traffic to the DRG. Otherwise // traffic will not flow. For more information, see // Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). +// A default retry strategy applies to this operation CreateVirtualCircuit() func (client VirtualNetworkClient) CreateVirtualCircuit(ctx context.Context, request CreateVirtualCircuitRequest) (response CreateVirtualCircuitResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6050,6 +6389,8 @@ func (client VirtualNetworkClient) createVirtualCircuit(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuit/CreateVirtualCircuit" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVirtualCircuit", apiReferenceLink) return response, err } @@ -6106,6 +6447,8 @@ func (client VirtualNetworkClient) createVlan(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vlan/CreateVlan" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVlan", apiReferenceLink) return response, err } @@ -6162,6 +6505,8 @@ func (client VirtualNetworkClient) createVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/CreateVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVnicWorker", apiReferenceLink) return response, err } @@ -6170,7 +6515,7 @@ func (client VirtualNetworkClient) createVnicWorker(ctx context.Context, request } // CreateVtap Creates a virtual test access point (VTAP) in the specified compartment. -// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the VTAP. +// For the purposes of access control, you must provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the VTAP. // For more information about compartments and access control, see // Overview of the IAM Service (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/overview.htm). // For information about OCIDs, see Resource Identifiers (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -6224,6 +6569,8 @@ func (client VirtualNetworkClient) createVtap(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vtap/CreateVtap" + err = common.PostProcessServiceError(err, "VirtualNetwork", "CreateVtap", apiReferenceLink) return response, err } @@ -6279,6 +6626,8 @@ func (client VirtualNetworkClient) deleteByoipRange(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/DeleteByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteByoipRange", apiReferenceLink) return response, err } @@ -6333,6 +6682,8 @@ func (client VirtualNetworkClient) deleteC3Drg(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteC3Drg", apiReferenceLink) return response, err } @@ -6388,6 +6739,8 @@ func (client VirtualNetworkClient) deleteC3DrgAttachment(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteC3DrgAttachment", apiReferenceLink) return response, err } @@ -6440,6 +6793,8 @@ func (client VirtualNetworkClient) deleteCaptureFilter(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/DeleteCaptureFilter" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteCaptureFilter", apiReferenceLink) return response, err } @@ -6448,9 +6803,10 @@ func (client VirtualNetworkClient) deleteCaptureFilter(ctx context.Context, requ } // DeleteClientVpn Delete the specific ClientVpn by given the clientVpnEndpointid. +// A default retry strategy applies to this operation DeleteClientVpn() func (client VirtualNetworkClient) DeleteClientVpn(ctx context.Context, request DeleteClientVpnRequest) (response DeleteClientVpnResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6491,6 +6847,8 @@ func (client VirtualNetworkClient) deleteClientVpn(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/DeleteClientVpn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteClientVpn", apiReferenceLink) return response, err } @@ -6499,9 +6857,10 @@ func (client VirtualNetworkClient) deleteClientVpn(ctx context.Context, request } // DeleteClientVpnUser Delete the specific ClientVpnUser by given an id of ClientVpn and a username. +// A default retry strategy applies to this operation DeleteClientVpnUser() func (client VirtualNetworkClient) DeleteClientVpnUser(ctx context.Context, request DeleteClientVpnUserRequest) (response DeleteClientVpnUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6542,6 +6901,8 @@ func (client VirtualNetworkClient) deleteClientVpnUser(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpnUser/DeleteClientVpnUser" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteClientVpnUser", apiReferenceLink) return response, err } @@ -6552,9 +6913,10 @@ func (client VirtualNetworkClient) deleteClientVpnUser(ctx context.Context, requ // DeleteCpe Deletes the specified CPE object. The CPE must not be connected to a DRG. This is an asynchronous // operation. The CPE's `lifecycleState` will change to TERMINATING temporarily until the CPE is completely // removed. +// A default retry strategy applies to this operation DeleteCpe() func (client VirtualNetworkClient) DeleteCpe(ctx context.Context, request DeleteCpeRequest) (response DeleteCpeResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6595,6 +6957,8 @@ func (client VirtualNetworkClient) deleteCpe(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteCpe", apiReferenceLink) return response, err } @@ -6604,9 +6968,10 @@ func (client VirtualNetworkClient) deleteCpe(ctx context.Context, request common // DeleteCrossConnect Deletes the specified cross-connect. It must not be mapped to a // VirtualCircuit. +// A default retry strategy applies to this operation DeleteCrossConnect() func (client VirtualNetworkClient) DeleteCrossConnect(ctx context.Context, request DeleteCrossConnectRequest) (response DeleteCrossConnectResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6647,6 +7012,8 @@ func (client VirtualNetworkClient) deleteCrossConnect(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteCrossConnect", apiReferenceLink) return response, err } @@ -6657,9 +7024,10 @@ func (client VirtualNetworkClient) deleteCrossConnect(ctx context.Context, reque // DeleteCrossConnectGroup Deletes the specified cross-connect group. It must not contain any // cross-connects, and it cannot be mapped to a // VirtualCircuit. +// A default retry strategy applies to this operation DeleteCrossConnectGroup() func (client VirtualNetworkClient) DeleteCrossConnectGroup(ctx context.Context, request DeleteCrossConnectGroupRequest) (response DeleteCrossConnectGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6700,6 +7068,8 @@ func (client VirtualNetworkClient) deleteCrossConnectGroup(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteCrossConnectGroup", apiReferenceLink) return response, err } @@ -6751,6 +7121,8 @@ func (client VirtualNetworkClient) deleteDav(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/DeleteDav" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteDav", apiReferenceLink) return response, err } @@ -6805,6 +7177,8 @@ func (client VirtualNetworkClient) deleteDhcpOptions(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteDhcpOptions", apiReferenceLink) return response, err } @@ -6859,6 +7233,8 @@ func (client VirtualNetworkClient) deleteDrg(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteDrg", apiReferenceLink) return response, err } @@ -6912,6 +7288,8 @@ func (client VirtualNetworkClient) deleteDrgAttachment(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteDrgAttachment", apiReferenceLink) return response, err } @@ -6964,6 +7342,8 @@ func (client VirtualNetworkClient) deleteDrgRouteDistribution(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/DeleteDrgRouteDistribution" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteDrgRouteDistribution", apiReferenceLink) return response, err } @@ -7015,6 +7395,8 @@ func (client VirtualNetworkClient) deleteDrgRouteTable(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalPublicIp/DeleteDrgRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteDrgRouteTable", apiReferenceLink) return response, err } @@ -7067,6 +7449,8 @@ func (client VirtualNetworkClient) deleteEndpointService(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointService/DeleteEndpointService" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteEndpointService", apiReferenceLink) return response, err } @@ -7118,6 +7502,8 @@ func (client VirtualNetworkClient) deleteFlowLogConfig(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteFlowLogConfig", apiReferenceLink) return response, err } @@ -7170,6 +7556,8 @@ func (client VirtualNetworkClient) deleteFlowLogConfigAttachment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteFlowLogConfigAttachment", apiReferenceLink) return response, err } @@ -7184,9 +7572,10 @@ func (client VirtualNetworkClient) deleteFlowLogConfigAttachment(ctx context.Con // CreateIPSecConnection. // This is an asynchronous operation. The connection's `lifecycleState` will change to TERMINATING temporarily // until the connection is completely removed. +// A default retry strategy applies to this operation DeleteIPSecConnection() func (client VirtualNetworkClient) DeleteIPSecConnection(ctx context.Context, request DeleteIPSecConnectionRequest) (response DeleteIPSecConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7227,6 +7616,8 @@ func (client VirtualNetworkClient) deleteIPSecConnection(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteIPSecConnection", apiReferenceLink) return response, err } @@ -7278,6 +7669,8 @@ func (client VirtualNetworkClient) deleteInternalDnsRecord(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalDnsRecord", apiReferenceLink) return response, err } @@ -7332,6 +7725,8 @@ func (client VirtualNetworkClient) deleteInternalDrg(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalDrg", apiReferenceLink) return response, err } @@ -7383,6 +7778,8 @@ func (client VirtualNetworkClient) deleteInternalDrgAttachment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalDrgAttachment", apiReferenceLink) return response, err } @@ -7434,6 +7831,8 @@ func (client VirtualNetworkClient) deleteInternalGenericGateway(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/DeleteInternalGenericGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalGenericGateway", apiReferenceLink) return response, err } @@ -7492,6 +7891,8 @@ func (client VirtualNetworkClient) deleteInternalPublicIp(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalPublicIp/DeleteInternalPublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalPublicIp", apiReferenceLink) return response, err } @@ -7543,6 +7944,8 @@ func (client VirtualNetworkClient) deleteInternalVnic(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnic/DeleteInternalVnic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalVnic", apiReferenceLink) return response, err } @@ -7594,6 +7997,8 @@ func (client VirtualNetworkClient) deleteInternalVnicAttachment(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/DeleteInternalVnicAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternalVnicAttachment", apiReferenceLink) return response, err } @@ -7648,6 +8053,8 @@ func (client VirtualNetworkClient) deleteInternetGateway(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteInternetGateway", apiReferenceLink) return response, err } @@ -7655,7 +8062,7 @@ func (client VirtualNetworkClient) deleteInternetGateway(ctx context.Context, re return response, err } -// DeleteIpv6 Unassigns and deletes the specified IPv6. You must specify the object's OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// DeleteIpv6 Unassigns and deletes the specified IPv6. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // The IPv6 address is returned to the subnet's pool of available addresses. func (client VirtualNetworkClient) DeleteIpv6(ctx context.Context, request DeleteIpv6Request) (response DeleteIpv6Response, err error) { var ociResponse common.OCIResponse @@ -7700,6 +8107,8 @@ func (client VirtualNetworkClient) deleteIpv6(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteIpv6", apiReferenceLink) return response, err } @@ -7753,6 +8162,8 @@ func (client VirtualNetworkClient) deleteLocalPeeringConnection(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/DeleteLocalPeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteLocalPeeringConnection", apiReferenceLink) return response, err } @@ -7806,6 +8217,8 @@ func (client VirtualNetworkClient) deleteLocalPeeringGateway(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteLocalPeeringGateway", apiReferenceLink) return response, err } @@ -7860,6 +8273,8 @@ func (client VirtualNetworkClient) deleteNatGateway(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteNatGateway", apiReferenceLink) return response, err } @@ -7916,6 +8331,8 @@ func (client VirtualNetworkClient) deleteNetworkSecurityGroup(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/DeleteNetworkSecurityGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteNetworkSecurityGroup", apiReferenceLink) return response, err } @@ -7967,6 +8384,8 @@ func (client VirtualNetworkClient) deletePrivateAccessGateway(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateAccessGateway/DeletePrivateAccessGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeletePrivateAccessGateway", apiReferenceLink) return response, err } @@ -8018,6 +8437,8 @@ func (client VirtualNetworkClient) deletePrivateEndpoint(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/DeletePrivateEndpoint" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeletePrivateEndpoint", apiReferenceLink) return response, err } @@ -8077,6 +8498,8 @@ func (client VirtualNetworkClient) deletePrivateIp(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeletePrivateIp", apiReferenceLink) return response, err } @@ -8084,7 +8507,7 @@ func (client VirtualNetworkClient) deletePrivateIp(ctx context.Context, request return response, err } -// DeletePrivateIpNextHop Deletes nextHop configuration for the specified private IP. +// DeletePrivateIpNextHop Deletes nextHop configuration for the specified private IP or IPv6. func (client VirtualNetworkClient) DeletePrivateIpNextHop(ctx context.Context, request DeletePrivateIpNextHopRequest) (response DeletePrivateIpNextHopResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -8128,6 +8551,8 @@ func (client VirtualNetworkClient) deletePrivateIpNextHop(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeletePrivateIpNextHop", apiReferenceLink) return response, err } @@ -8190,6 +8615,8 @@ func (client VirtualNetworkClient) deletePublicIp(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeletePublicIp", apiReferenceLink) return response, err } @@ -8243,6 +8670,8 @@ func (client VirtualNetworkClient) deletePublicIpPool(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/DeletePublicIpPool" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeletePublicIpPool", apiReferenceLink) return response, err } @@ -8253,9 +8682,10 @@ func (client VirtualNetworkClient) deletePublicIpPool(ctx context.Context, reque // DeleteRemotePeeringConnection Deletes the remote peering connection (RPC). // This is an asynchronous operation; the RPC's `lifecycleState` changes to TERMINATING temporarily // until the RPC is completely removed. +// A default retry strategy applies to this operation DeleteRemotePeeringConnection() func (client VirtualNetworkClient) DeleteRemotePeeringConnection(ctx context.Context, request DeleteRemotePeeringConnectionRequest) (response DeleteRemotePeeringConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8296,6 +8726,8 @@ func (client VirtualNetworkClient) deleteRemotePeeringConnection(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteRemotePeeringConnection", apiReferenceLink) return response, err } @@ -8347,6 +8779,8 @@ func (client VirtualNetworkClient) deleteReverseConnectionNatIp(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ReverseConnectionNatIp/DeleteReverseConnectionNatIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteReverseConnectionNatIp", apiReferenceLink) return response, err } @@ -8401,6 +8835,8 @@ func (client VirtualNetworkClient) deleteRouteTable(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteRouteTable", apiReferenceLink) return response, err } @@ -8452,6 +8888,8 @@ func (client VirtualNetworkClient) deleteScanProxy(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ScanProxy/DeleteScanProxy" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteScanProxy", apiReferenceLink) return response, err } @@ -8506,6 +8944,8 @@ func (client VirtualNetworkClient) deleteSecurityList(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteSecurityList", apiReferenceLink) return response, err } @@ -8558,6 +8998,8 @@ func (client VirtualNetworkClient) deleteServiceGateway(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteServiceGateway", apiReferenceLink) return response, err } @@ -8611,6 +9053,8 @@ func (client VirtualNetworkClient) deleteSubnet(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteSubnet", apiReferenceLink) return response, err } @@ -8664,6 +9108,8 @@ func (client VirtualNetworkClient) deleteVcn(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVcn", apiReferenceLink) return response, err } @@ -8718,6 +9164,8 @@ func (client VirtualNetworkClient) deleteVcnDrg(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVcnDrg", apiReferenceLink) return response, err } @@ -8771,6 +9219,8 @@ func (client VirtualNetworkClient) deleteVcnDrgAttachment(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVcnDrgAttachment", apiReferenceLink) return response, err } @@ -8782,9 +9232,10 @@ func (client VirtualNetworkClient) deleteVcnDrgAttachment(ctx context.Context, r // **Important:** If you're using FastConnect via a provider, // make sure to also terminate the connection with // the provider, or else the provider may continue to bill you. +// A default retry strategy applies to this operation DeleteVirtualCircuit() func (client VirtualNetworkClient) DeleteVirtualCircuit(ctx context.Context, request DeleteVirtualCircuitRequest) (response DeleteVirtualCircuitResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8825,6 +9276,8 @@ func (client VirtualNetworkClient) deleteVirtualCircuit(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVirtualCircuit", apiReferenceLink) return response, err } @@ -8876,6 +9329,8 @@ func (client VirtualNetworkClient) deleteVlan(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vlan/DeleteVlan" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVlan", apiReferenceLink) return response, err } @@ -8927,6 +9382,8 @@ func (client VirtualNetworkClient) deleteVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVnicWorker", apiReferenceLink) return response, err } @@ -8979,6 +9436,8 @@ func (client VirtualNetworkClient) deleteVtap(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vtap/DeleteVtap" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DeleteVtap", apiReferenceLink) return response, err } @@ -9035,6 +9494,8 @@ func (client VirtualNetworkClient) detachDav(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/DetachDav" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DetachDav", apiReferenceLink) return response, err } @@ -9096,6 +9557,8 @@ func (client VirtualNetworkClient) detachServiceId(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/DetachServiceId" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DetachServiceId", apiReferenceLink) return response, err } @@ -9154,6 +9617,8 @@ func (client VirtualNetworkClient) detachVnicFromDestinationSmartNic(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/DetachVnicFromDestinationSmartNic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DetachVnicFromDestinationSmartNic", apiReferenceLink) return response, err } @@ -9212,6 +9677,8 @@ func (client VirtualNetworkClient) detachVnicFromSourceSmartNic(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/DetachVnicFromSourceSmartNic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DetachVnicFromSourceSmartNic", apiReferenceLink) return response, err } @@ -9268,6 +9735,8 @@ func (client VirtualNetworkClient) detachVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/DetachVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DetachVnicWorker", apiReferenceLink) return response, err } @@ -9319,6 +9788,8 @@ func (client VirtualNetworkClient) disableReverseConnections(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/DisableReverseConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DisableReverseConnections", apiReferenceLink) return response, err } @@ -9370,6 +9841,8 @@ func (client VirtualNetworkClient) disableVnicWorker(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/DisableVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DisableVnicWorker", apiReferenceLink) return response, err } @@ -9421,6 +9894,8 @@ func (client VirtualNetworkClient) drainVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/DrainVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DrainVnicWorker", apiReferenceLink) return response, err } @@ -9477,6 +9952,8 @@ func (client VirtualNetworkClient) drgMigration(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgMigration/DrgMigration" + err = common.PostProcessServiceError(err, "VirtualNetwork", "DrgMigration", apiReferenceLink) return response, err } @@ -9533,6 +10010,8 @@ func (client VirtualNetworkClient) enableReverseConnections(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/EnableReverseConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "EnableReverseConnections", apiReferenceLink) return response, err } @@ -9584,6 +10063,8 @@ func (client VirtualNetworkClient) enableVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/EnableVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "EnableVnicWorker", apiReferenceLink) return response, err } @@ -9638,6 +10119,8 @@ func (client VirtualNetworkClient) generateLocalPeeringToken(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/GenerateLocalPeeringToken" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GenerateLocalPeeringToken", apiReferenceLink) return response, err } @@ -9689,6 +10172,8 @@ func (client VirtualNetworkClient) getAllDrgAttachments(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/GetAllDrgAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetAllDrgAttachments", apiReferenceLink) return response, err } @@ -9696,10 +10181,11 @@ func (client VirtualNetworkClient) getAllDrgAttachments(ctx context.Context, req return response, err } -// GetAllowedIkeIPSecParameters The allowed parameters for IKE IPSec +// GetAllowedIkeIPSecParameters The parameters allowed for IKE IPSec tunnels. +// A default retry strategy applies to this operation GetAllowedIkeIPSecParameters() func (client VirtualNetworkClient) GetAllowedIkeIPSecParameters(ctx context.Context, request GetAllowedIkeIPSecParametersRequest) (response GetAllowedIkeIPSecParametersResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -9740,6 +10226,8 @@ func (client VirtualNetworkClient) getAllowedIkeIPSecParameters(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/AllowedIkeIPSecParameters/GetAllowedIkeIPSecParameters" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetAllowedIkeIPSecParameters", apiReferenceLink) return response, err } @@ -9791,6 +10279,8 @@ func (client VirtualNetworkClient) getByoipRange(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/GetByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetByoipRange", apiReferenceLink) return response, err } @@ -9842,6 +10332,8 @@ func (client VirtualNetworkClient) getC3Drg(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/GetC3Drg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetC3Drg", apiReferenceLink) return response, err } @@ -9893,6 +10385,8 @@ func (client VirtualNetworkClient) getC3DrgAttachment(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/GetC3DrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetC3DrgAttachment", apiReferenceLink) return response, err } @@ -9944,6 +10438,8 @@ func (client VirtualNetworkClient) getCaptureFilter(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/GetCaptureFilter" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCaptureFilter", apiReferenceLink) return response, err } @@ -9952,9 +10448,10 @@ func (client VirtualNetworkClient) getCaptureFilter(ctx context.Context, request } // GetClientVpn Get the specific ClientVpn by given the id. +// A default retry strategy applies to this operation GetClientVpn() func (client VirtualNetworkClient) GetClientVpn(ctx context.Context, request GetClientVpnRequest) (response GetClientVpnResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -9995,6 +10492,8 @@ func (client VirtualNetworkClient) getClientVpn(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/GetClientVpn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetClientVpn", apiReferenceLink) return response, err } @@ -10003,9 +10502,10 @@ func (client VirtualNetworkClient) getClientVpn(ctx context.Context, request com } // GetClientVpnProfile Get the profile of the specific ClientVpn by given an id of ClientVpn. +// A default retry strategy applies to this operation GetClientVpnProfile() func (client VirtualNetworkClient) GetClientVpnProfile(ctx context.Context, request GetClientVpnProfileRequest) (response GetClientVpnProfileResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10045,6 +10545,8 @@ func (client VirtualNetworkClient) getClientVpnProfile(ctx context.Context, requ httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/GetClientVpnProfile" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetClientVpnProfile", apiReferenceLink) return response, err } @@ -10053,9 +10555,10 @@ func (client VirtualNetworkClient) getClientVpnProfile(ctx context.Context, requ } // GetClientVpnStatus Get the status of ClientVpn. +// A default retry strategy applies to this operation GetClientVpnStatus() func (client VirtualNetworkClient) GetClientVpnStatus(ctx context.Context, request GetClientVpnStatusRequest) (response GetClientVpnStatusResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10096,6 +10599,8 @@ func (client VirtualNetworkClient) getClientVpnStatus(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/GetClientVpnStatus" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetClientVpnStatus", apiReferenceLink) return response, err } @@ -10104,9 +10609,10 @@ func (client VirtualNetworkClient) getClientVpnStatus(ctx context.Context, reque } // GetClientVpnUser Get the specific ClientVpnUser by given an id of ClientVpn and an username. +// A default retry strategy applies to this operation GetClientVpnUser() func (client VirtualNetworkClient) GetClientVpnUser(ctx context.Context, request GetClientVpnUserRequest) (response GetClientVpnUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10147,6 +10653,8 @@ func (client VirtualNetworkClient) getClientVpnUser(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpnUser/GetClientVpnUser" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetClientVpnUser", apiReferenceLink) return response, err } @@ -10155,9 +10663,10 @@ func (client VirtualNetworkClient) getClientVpnUser(ctx context.Context, request } // GetClientVpnUserProfile Get the profile of the specific ClientVpnUser by given an id of ClientVpn and a username. +// A default retry strategy applies to this operation GetClientVpnUserProfile() func (client VirtualNetworkClient) GetClientVpnUserProfile(ctx context.Context, request GetClientVpnUserProfileRequest) (response GetClientVpnUserProfileResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10197,6 +10706,8 @@ func (client VirtualNetworkClient) getClientVpnUserProfile(ctx context.Context, httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpnUser/GetClientVpnUserProfile" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetClientVpnUserProfile", apiReferenceLink) return response, err } @@ -10205,9 +10716,10 @@ func (client VirtualNetworkClient) getClientVpnUserProfile(ctx context.Context, } // GetCpe Gets the specified CPE's information. +// A default retry strategy applies to this operation GetCpe() func (client VirtualNetworkClient) GetCpe(ctx context.Context, request GetCpeRequest) (response GetCpeResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10248,6 +10760,8 @@ func (client VirtualNetworkClient) getCpe(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/GetCpe" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCpe", apiReferenceLink) return response, err } @@ -10270,9 +10784,10 @@ func (client VirtualNetworkClient) getCpe(ctx context.Context, request common.OC // returns CPE configuration content for all IPSec tunnels in a single IPSec connection. // * GetTunnelCpeDeviceConfigContent // returns CPE configuration content for a specific IPSec tunnel in an IPSec connection. +// A default retry strategy applies to this operation GetCpeDeviceConfigContent() func (client VirtualNetworkClient) GetCpeDeviceConfigContent(ctx context.Context, request GetCpeDeviceConfigContentRequest) (response GetCpeDeviceConfigContentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10312,6 +10827,8 @@ func (client VirtualNetworkClient) getCpeDeviceConfigContent(ctx context.Context httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/GetCpeDeviceConfigContent" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCpeDeviceConfigContent", apiReferenceLink) return response, err } @@ -10327,9 +10844,10 @@ func (client VirtualNetworkClient) getCpeDeviceConfigContent(ctx context.Context // * GetCpeDeviceConfigContent // * GetIpsecCpeDeviceConfigContent // * GetTunnelCpeDeviceConfigContent +// A default retry strategy applies to this operation GetCpeDeviceShape() func (client VirtualNetworkClient) GetCpeDeviceShape(ctx context.Context, request GetCpeDeviceShapeRequest) (response GetCpeDeviceShapeResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10370,6 +10888,8 @@ func (client VirtualNetworkClient) getCpeDeviceShape(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CpeDeviceShapeDetail/GetCpeDeviceShape" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCpeDeviceShape", apiReferenceLink) return response, err } @@ -10430,6 +10950,8 @@ func (client VirtualNetworkClient) getCreateReverseConnectionNatIp(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ReverseConnectionNatIp/GetCreateReverseConnectionNatIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCreateReverseConnectionNatIp", apiReferenceLink) return response, err } @@ -10438,9 +10960,10 @@ func (client VirtualNetworkClient) getCreateReverseConnectionNatIp(ctx context.C } // GetCrossConnect Gets the specified cross-connect's information. +// A default retry strategy applies to this operation GetCrossConnect() func (client VirtualNetworkClient) GetCrossConnect(ctx context.Context, request GetCrossConnectRequest) (response GetCrossConnectResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10481,6 +11004,8 @@ func (client VirtualNetworkClient) getCrossConnect(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnect/GetCrossConnect" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCrossConnect", apiReferenceLink) return response, err } @@ -10489,9 +11014,10 @@ func (client VirtualNetworkClient) getCrossConnect(ctx context.Context, request } // GetCrossConnectGroup Gets the specified cross-connect group's information. +// A default retry strategy applies to this operation GetCrossConnectGroup() func (client VirtualNetworkClient) GetCrossConnectGroup(ctx context.Context, request GetCrossConnectGroupRequest) (response GetCrossConnectGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10532,6 +11058,8 @@ func (client VirtualNetworkClient) getCrossConnectGroup(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectGroup/GetCrossConnectGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCrossConnectGroup", apiReferenceLink) return response, err } @@ -10540,9 +11068,10 @@ func (client VirtualNetworkClient) getCrossConnectGroup(ctx context.Context, req } // GetCrossConnectLetterOfAuthority Gets the Letter of Authority for the specified cross-connect. +// A default retry strategy applies to this operation GetCrossConnectLetterOfAuthority() func (client VirtualNetworkClient) GetCrossConnectLetterOfAuthority(ctx context.Context, request GetCrossConnectLetterOfAuthorityRequest) (response GetCrossConnectLetterOfAuthorityResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10583,6 +11112,8 @@ func (client VirtualNetworkClient) getCrossConnectLetterOfAuthority(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LetterOfAuthority/GetCrossConnectLetterOfAuthority" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCrossConnectLetterOfAuthority", apiReferenceLink) return response, err } @@ -10591,9 +11122,10 @@ func (client VirtualNetworkClient) getCrossConnectLetterOfAuthority(ctx context. } // GetCrossConnectStatus Gets the status of the specified cross-connect. +// A default retry strategy applies to this operation GetCrossConnectStatus() func (client VirtualNetworkClient) GetCrossConnectStatus(ctx context.Context, request GetCrossConnectStatusRequest) (response GetCrossConnectStatusResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -10634,6 +11166,8 @@ func (client VirtualNetworkClient) getCrossConnectStatus(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectStatus/GetCrossConnectStatus" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetCrossConnectStatus", apiReferenceLink) return response, err } @@ -10685,6 +11219,8 @@ func (client VirtualNetworkClient) getDav(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/GetDav" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDav", apiReferenceLink) return response, err } @@ -10736,6 +11272,8 @@ func (client VirtualNetworkClient) getDhcpOptions(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DhcpOptions/GetDhcpOptions" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDhcpOptions", apiReferenceLink) return response, err } @@ -10787,6 +11325,8 @@ func (client VirtualNetworkClient) getDrg(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/GetDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrg", apiReferenceLink) return response, err } @@ -10838,6 +11378,8 @@ func (client VirtualNetworkClient) getDrgAttachedNetworkInfo(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachedNetworkInfo/GetDrgAttachedNetworkInfo" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgAttachedNetworkInfo", apiReferenceLink) return response, err } @@ -10889,6 +11431,8 @@ func (client VirtualNetworkClient) getDrgAttachment(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/GetDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgAttachment", apiReferenceLink) return response, err } @@ -10940,6 +11484,8 @@ func (client VirtualNetworkClient) getDrgMigrationCountRegion(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgMigrationCountRegion/GetDrgMigrationCountRegion" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgMigrationCountRegion", apiReferenceLink) return response, err } @@ -10991,6 +11537,8 @@ func (client VirtualNetworkClient) getDrgMigrationCountTenancy(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgMigrationCountTenancy/GetDrgMigrationCountTenancy" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgMigrationCountTenancy", apiReferenceLink) return response, err } @@ -11000,9 +11548,10 @@ func (client VirtualNetworkClient) getDrgMigrationCountTenancy(ctx context.Conte // GetDrgRedundancyStatus Gets the redundancy status for the specified DRG. For more information, see // Redundancy Remedies (https://docs.cloud.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). +// A default retry strategy applies to this operation GetDrgRedundancyStatus() func (client VirtualNetworkClient) GetDrgRedundancyStatus(ctx context.Context, request GetDrgRedundancyStatusRequest) (response GetDrgRedundancyStatusResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11043,6 +11592,8 @@ func (client VirtualNetworkClient) getDrgRedundancyStatus(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRedundancyStatus/GetDrgRedundancyStatus" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgRedundancyStatus", apiReferenceLink) return response, err } @@ -11094,6 +11645,8 @@ func (client VirtualNetworkClient) getDrgRouteDistribution(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistribution/GetDrgRouteDistribution" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgRouteDistribution", apiReferenceLink) return response, err } @@ -11145,6 +11698,8 @@ func (client VirtualNetworkClient) getDrgRouteTable(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteTable/GetDrgRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetDrgRouteTable", apiReferenceLink) return response, err } @@ -11196,6 +11751,8 @@ func (client VirtualNetworkClient) getEndpointService(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointService/GetEndpointService" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetEndpointService", apiReferenceLink) return response, err } @@ -11247,6 +11804,8 @@ func (client VirtualNetworkClient) getEndpointServiceNextHop(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointServiceNextHop/GetEndpointServiceNextHop" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetEndpointServiceNextHop", apiReferenceLink) return response, err } @@ -11256,9 +11815,10 @@ func (client VirtualNetworkClient) getEndpointServiceNextHop(ctx context.Context // GetFastConnectProviderService Gets the specified provider service. // For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// A default retry strategy applies to this operation GetFastConnectProviderService() func (client VirtualNetworkClient) GetFastConnectProviderService(ctx context.Context, request GetFastConnectProviderServiceRequest) (response GetFastConnectProviderServiceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11299,6 +11859,8 @@ func (client VirtualNetworkClient) getFastConnectProviderService(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FastConnectProviderService/GetFastConnectProviderService" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetFastConnectProviderService", apiReferenceLink) return response, err } @@ -11308,9 +11870,10 @@ func (client VirtualNetworkClient) getFastConnectProviderService(ctx context.Con // GetFastConnectProviderServiceKey Gets the specified provider service key's information. Use this operation to validate a // provider service key. An invalid key returns a 404 error. +// A default retry strategy applies to this operation GetFastConnectProviderServiceKey() func (client VirtualNetworkClient) GetFastConnectProviderServiceKey(ctx context.Context, request GetFastConnectProviderServiceKeyRequest) (response GetFastConnectProviderServiceKeyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11351,6 +11914,8 @@ func (client VirtualNetworkClient) getFastConnectProviderServiceKey(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FastConnectProviderServiceKey/GetFastConnectProviderServiceKey" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetFastConnectProviderServiceKey", apiReferenceLink) return response, err } @@ -11402,6 +11967,8 @@ func (client VirtualNetworkClient) getFlowLogConfig(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfig/GetFlowLogConfig" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetFlowLogConfig", apiReferenceLink) return response, err } @@ -11453,6 +12020,8 @@ func (client VirtualNetworkClient) getFlowLogConfigAttachment(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfigAttachment/GetFlowLogConfigAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetFlowLogConfigAttachment", apiReferenceLink) return response, err } @@ -11463,9 +12032,10 @@ func (client VirtualNetworkClient) getFlowLogConfigAttachment(ctx context.Contex // GetIPSecConnection Gets the specified IPSec connection's basic information, including the static routes for the // on-premises router. If you want the status of the connection (whether it's up or down), use // GetIPSecConnectionTunnel. +// A default retry strategy applies to this operation GetIPSecConnection() func (client VirtualNetworkClient) GetIPSecConnection(ctx context.Context, request GetIPSecConnectionRequest) (response GetIPSecConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11506,6 +12076,8 @@ func (client VirtualNetworkClient) getIPSecConnection(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/GetIPSecConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnection", apiReferenceLink) return response, err } @@ -11516,9 +12088,10 @@ func (client VirtualNetworkClient) getIPSecConnection(ctx context.Context, reque // GetIPSecConnectionDeviceConfig Deprecated. To get tunnel information, instead use: // * GetIPSecConnectionTunnel // * GetIPSecConnectionTunnelSharedSecret +// A default retry strategy applies to this operation GetIPSecConnectionDeviceConfig() func (client VirtualNetworkClient) GetIPSecConnectionDeviceConfig(ctx context.Context, request GetIPSecConnectionDeviceConfigRequest) (response GetIPSecConnectionDeviceConfigResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11559,6 +12132,8 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceConfig(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionDeviceConfig/GetIPSecConnectionDeviceConfig" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnectionDeviceConfig", apiReferenceLink) return response, err } @@ -11568,9 +12143,10 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceConfig(ctx context.Co // GetIPSecConnectionDeviceStatus Deprecated. To get the tunnel status, instead use // GetIPSecConnectionTunnel. +// A default retry strategy applies to this operation GetIPSecConnectionDeviceStatus() func (client VirtualNetworkClient) GetIPSecConnectionDeviceStatus(ctx context.Context, request GetIPSecConnectionDeviceStatusRequest) (response GetIPSecConnectionDeviceStatusResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11611,6 +12187,8 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceStatus(ctx context.Co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionDeviceStatus/GetIPSecConnectionDeviceStatus" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnectionDeviceStatus", apiReferenceLink) return response, err } @@ -11619,9 +12197,10 @@ func (client VirtualNetworkClient) getIPSecConnectionDeviceStatus(ctx context.Co } // GetIPSecConnectionMigrationStatus Gets the specified IPSec connection's migration status. +// A default retry strategy applies to this operation GetIPSecConnectionMigrationStatus() func (client VirtualNetworkClient) GetIPSecConnectionMigrationStatus(ctx context.Context, request GetIPSecConnectionMigrationStatusRequest) (response GetIPSecConnectionMigrationStatusResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11662,6 +12241,8 @@ func (client VirtualNetworkClient) getIPSecConnectionMigrationStatus(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionMigrationStatus/GetIPSecConnectionMigrationStatus" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnectionMigrationStatus", apiReferenceLink) return response, err } @@ -11672,9 +12253,10 @@ func (client VirtualNetworkClient) getIPSecConnectionMigrationStatus(ctx context // GetIPSecConnectionTunnel Gets the specified tunnel's information. The resulting object does not include the tunnel's // shared secret (pre-shared key). To retrieve that, use // GetIPSecConnectionTunnelSharedSecret. +// A default retry strategy applies to this operation GetIPSecConnectionTunnel() func (client VirtualNetworkClient) GetIPSecConnectionTunnel(ctx context.Context, request GetIPSecConnectionTunnelRequest) (response GetIPSecConnectionTunnelResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11715,6 +12297,8 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnel(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnel/GetIPSecConnectionTunnel" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnectionTunnel", apiReferenceLink) return response, err } @@ -11722,10 +12306,11 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnel(ctx context.Context, return response, err } -// GetIPSecConnectionTunnelError Get the identified error for the specified IPSec Tunnel ID. +// GetIPSecConnectionTunnelError Gets the identified error for the specified IPSec tunnel ID. +// A default retry strategy applies to this operation GetIPSecConnectionTunnelError() func (client VirtualNetworkClient) GetIPSecConnectionTunnelError(ctx context.Context, request GetIPSecConnectionTunnelErrorRequest) (response GetIPSecConnectionTunnelErrorResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11766,6 +12351,8 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnelError(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnelErrorDetails/GetIPSecConnectionTunnelError" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnectionTunnelError", apiReferenceLink) return response, err } @@ -11775,9 +12362,10 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnelError(ctx context.Con // GetIPSecConnectionTunnelSharedSecret Gets the specified tunnel's shared secret (pre-shared key). To get other information // about the tunnel, use GetIPSecConnectionTunnel. +// A default retry strategy applies to this operation GetIPSecConnectionTunnelSharedSecret() func (client VirtualNetworkClient) GetIPSecConnectionTunnelSharedSecret(ctx context.Context, request GetIPSecConnectionTunnelSharedSecretRequest) (response GetIPSecConnectionTunnelSharedSecretResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -11818,6 +12406,8 @@ func (client VirtualNetworkClient) getIPSecConnectionTunnelSharedSecret(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnelSharedSecret/GetIPSecConnectionTunnelSharedSecret" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIPSecConnectionTunnelSharedSecret", apiReferenceLink) return response, err } @@ -11869,6 +12459,8 @@ func (client VirtualNetworkClient) getInternalDnsRecord(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDnsRecord/GetInternalDnsRecord" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalDnsRecord", apiReferenceLink) return response, err } @@ -11920,6 +12512,8 @@ func (client VirtualNetworkClient) getInternalDrg(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrg/GetInternalDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalDrg", apiReferenceLink) return response, err } @@ -11971,6 +12565,8 @@ func (client VirtualNetworkClient) getInternalDrgAttachment(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrgAttachment/GetInternalDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalDrgAttachment", apiReferenceLink) return response, err } @@ -12022,6 +12618,8 @@ func (client VirtualNetworkClient) getInternalGenericGateway(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/GetInternalGenericGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalGenericGateway", apiReferenceLink) return response, err } @@ -12078,6 +12676,8 @@ func (client VirtualNetworkClient) getInternalGenericGatewayByGatewayId(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/GetInternalGenericGatewayByGatewayId" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalGenericGatewayByGatewayId", apiReferenceLink) return response, err } @@ -12132,6 +12732,8 @@ func (client VirtualNetworkClient) getInternalPublicIp(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalPublicIp/GetInternalPublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalPublicIp", apiReferenceLink) return response, err } @@ -12183,6 +12785,8 @@ func (client VirtualNetworkClient) getInternalSubnet(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalSubnet/GetInternalSubnet" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalSubnet", apiReferenceLink) return response, err } @@ -12234,6 +12838,8 @@ func (client VirtualNetworkClient) getInternalVnic(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnic/GetInternalVnic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalVnic", apiReferenceLink) return response, err } @@ -12285,6 +12891,8 @@ func (client VirtualNetworkClient) getInternalVnicAttachment(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/GetInternalVnicAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternalVnicAttachment", apiReferenceLink) return response, err } @@ -12336,6 +12944,8 @@ func (client VirtualNetworkClient) getInternetGateway(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternetGateway/GetInternetGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetInternetGateway", apiReferenceLink) return response, err } @@ -12359,9 +12969,10 @@ func (client VirtualNetworkClient) getInternetGateway(ctx context.Context, reque // returns CPE configuration content for a specific tunnel within an IPSec connection. // * GetCpeDeviceConfigContent // returns CPE configuration content for *all* IPSec connections that use a specific CPE. +// A default retry strategy applies to this operation GetIpsecCpeDeviceConfigContent() func (client VirtualNetworkClient) GetIpsecCpeDeviceConfigContent(ctx context.Context, request GetIpsecCpeDeviceConfigContentRequest) (response GetIpsecCpeDeviceConfigContentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -12401,6 +13012,8 @@ func (client VirtualNetworkClient) getIpsecCpeDeviceConfigContent(ctx context.Co httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/GetIpsecCpeDeviceConfigContent" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIpsecCpeDeviceConfigContent", apiReferenceLink) return response, err } @@ -12408,7 +13021,7 @@ func (client VirtualNetworkClient) getIpsecCpeDeviceConfigContent(ctx context.Co return response, err } -// GetIpv6 Gets the specified IPv6. You must specify the object's OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). +// GetIpv6 Gets the specified IPv6. You must specify the object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). // Alternatively, you can get the object by using // ListIpv6s // with the IPv6 address (for example, 2001:0db8:0123:1111:98fe:dcba:9876:4321) and subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). @@ -12455,6 +13068,8 @@ func (client VirtualNetworkClient) getIpv6(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/GetIpv6" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetIpv6", apiReferenceLink) return response, err } @@ -12506,6 +13121,8 @@ func (client VirtualNetworkClient) getLocalPeeringConnection(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/GetLocalPeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetLocalPeeringConnection", apiReferenceLink) return response, err } @@ -12557,6 +13174,8 @@ func (client VirtualNetworkClient) getLocalPeeringGateway(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/GetLocalPeeringGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetLocalPeeringGateway", apiReferenceLink) return response, err } @@ -12608,6 +13227,8 @@ func (client VirtualNetworkClient) getNatGateway(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NatGateway/GetNatGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetNatGateway", apiReferenceLink) return response, err } @@ -12663,6 +13284,8 @@ func (client VirtualNetworkClient) getNetworkSecurityGroup(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/GetNetworkSecurityGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetNetworkSecurityGroup", apiReferenceLink) return response, err } @@ -12714,6 +13337,8 @@ func (client VirtualNetworkClient) getNetworkingTopology(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkingTopology/GetNetworkingTopology" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetNetworkingTopology", apiReferenceLink) return response, err } @@ -12765,6 +13390,8 @@ func (client VirtualNetworkClient) getPrivateAccessGateway(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateAccessGateway/GetPrivateAccessGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPrivateAccessGateway", apiReferenceLink) return response, err } @@ -12816,6 +13443,8 @@ func (client VirtualNetworkClient) getPrivateEndpoint(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/GetPrivateEndpoint" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPrivateEndpoint", apiReferenceLink) return response, err } @@ -12870,6 +13499,8 @@ func (client VirtualNetworkClient) getPrivateEndpointAssociation(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpointAssociation/GetPrivateEndpointAssociation" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPrivateEndpointAssociation", apiReferenceLink) return response, err } @@ -12924,6 +13555,8 @@ func (client VirtualNetworkClient) getPrivateIp(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/GetPrivateIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPrivateIp", apiReferenceLink) return response, err } @@ -12931,7 +13564,7 @@ func (client VirtualNetworkClient) getPrivateIp(ctx context.Context, request com return response, err } -// GetPrivateIpNextHop Gets nextHop configuration for the specified private IP. +// GetPrivateIpNextHop Gets nextHop configuration for the specified private IP or IPv6. func (client VirtualNetworkClient) GetPrivateIpNextHop(ctx context.Context, request GetPrivateIpNextHopRequest) (response GetPrivateIpNextHopResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -12975,6 +13608,8 @@ func (client VirtualNetworkClient) getPrivateIpNextHop(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIpNextHop/GetPrivateIpNextHop" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPrivateIpNextHop", apiReferenceLink) return response, err } @@ -13033,6 +13668,8 @@ func (client VirtualNetworkClient) getPublicIp(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPublicIp", apiReferenceLink) return response, err } @@ -13087,6 +13724,8 @@ func (client VirtualNetworkClient) getPublicIpByIpAddress(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByIpAddress" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPublicIpByIpAddress", apiReferenceLink) return response, err } @@ -13147,6 +13786,8 @@ func (client VirtualNetworkClient) getPublicIpByPrivateIpId(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/GetPublicIpByPrivateIpId" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPublicIpByPrivateIpId", apiReferenceLink) return response, err } @@ -13198,6 +13839,8 @@ func (client VirtualNetworkClient) getPublicIpPool(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/GetPublicIpPool" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetPublicIpPool", apiReferenceLink) return response, err } @@ -13206,9 +13849,10 @@ func (client VirtualNetworkClient) getPublicIpPool(ctx context.Context, request } // GetRemotePeeringConnection Get the specified remote peering connection's information. +// A default retry strategy applies to this operation GetRemotePeeringConnection() func (client VirtualNetworkClient) GetRemotePeeringConnection(ctx context.Context, request GetRemotePeeringConnectionRequest) (response GetRemotePeeringConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -13249,6 +13893,8 @@ func (client VirtualNetworkClient) getRemotePeeringConnection(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/GetRemotePeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetRemotePeeringConnection", apiReferenceLink) return response, err } @@ -13301,6 +13947,8 @@ func (client VirtualNetworkClient) getReverseConnectionNatIp(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ReverseConnectionNatIp/GetReverseConnectionNatIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetReverseConnectionNatIp", apiReferenceLink) return response, err } @@ -13352,6 +14000,8 @@ func (client VirtualNetworkClient) getRouteTable(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/GetRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetRouteTable", apiReferenceLink) return response, err } @@ -13403,6 +14053,8 @@ func (client VirtualNetworkClient) getScanProxy(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ScanProxy/GetScanProxy" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetScanProxy", apiReferenceLink) return response, err } @@ -13454,6 +14106,8 @@ func (client VirtualNetworkClient) getSecurityList(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityList/GetSecurityList" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetSecurityList", apiReferenceLink) return response, err } @@ -13505,6 +14159,8 @@ func (client VirtualNetworkClient) getService(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Service/GetService" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetService", apiReferenceLink) return response, err } @@ -13556,6 +14212,8 @@ func (client VirtualNetworkClient) getServiceGateway(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/GetServiceGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetServiceGateway", apiReferenceLink) return response, err } @@ -13607,6 +14265,8 @@ func (client VirtualNetworkClient) getSubnet(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/GetSubnet" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetSubnet", apiReferenceLink) return response, err } @@ -13614,7 +14274,7 @@ func (client VirtualNetworkClient) getSubnet(ctx context.Context, request common return response, err } -// GetSubnetTopology Gets a virtual network topology for a given Subnet. +// GetSubnetTopology Gets a topology for a given subnet. func (client VirtualNetworkClient) GetSubnetTopology(ctx context.Context, request GetSubnetTopologyRequest) (response GetSubnetTopologyResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -13658,6 +14318,8 @@ func (client VirtualNetworkClient) getSubnetTopology(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SubnetTopology/GetSubnetTopology" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetSubnetTopology", apiReferenceLink) return response, err } @@ -13670,9 +14332,10 @@ func (client VirtualNetworkClient) getSubnetTopology(ctx context.Context, reques // To get the full set of content for the tunnel (any answers merged with the template of other // information specific to the CPE device type), use // GetTunnelCpeDeviceConfigContent. +// A default retry strategy applies to this operation GetTunnelCpeDeviceConfig() func (client VirtualNetworkClient) GetTunnelCpeDeviceConfig(ctx context.Context, request GetTunnelCpeDeviceConfigRequest) (response GetTunnelCpeDeviceConfigResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -13713,6 +14376,8 @@ func (client VirtualNetworkClient) getTunnelCpeDeviceConfig(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/TunnelCpeDeviceConfig/GetTunnelCpeDeviceConfig" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetTunnelCpeDeviceConfig", apiReferenceLink) return response, err } @@ -13735,9 +14400,10 @@ func (client VirtualNetworkClient) getTunnelCpeDeviceConfig(ctx context.Context, // returns CPE configuration content for all tunnels in a single IPSec connection. // * GetCpeDeviceConfigContent // returns CPE configuration content for *all* IPSec connections that use a specific CPE. +// A default retry strategy applies to this operation GetTunnelCpeDeviceConfigContent() func (client VirtualNetworkClient) GetTunnelCpeDeviceConfigContent(ctx context.Context, request GetTunnelCpeDeviceConfigContentRequest) (response GetTunnelCpeDeviceConfigContentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -13777,6 +14443,8 @@ func (client VirtualNetworkClient) getTunnelCpeDeviceConfigContent(ctx context.C httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/TunnelCpeDeviceConfig/GetTunnelCpeDeviceConfigContent" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetTunnelCpeDeviceConfigContent", apiReferenceLink) return response, err } @@ -13828,6 +14496,8 @@ func (client VirtualNetworkClient) getUpgradeStatus(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/GetUpgradeStatus" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetUpgradeStatus", apiReferenceLink) return response, err } @@ -13879,6 +14549,8 @@ func (client VirtualNetworkClient) getVcn(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/GetVcn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVcn", apiReferenceLink) return response, err } @@ -13930,6 +14602,8 @@ func (client VirtualNetworkClient) getVcnDnsResolverAssociation(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VcnDnsResolverAssociation/GetVcnDnsResolverAssociation" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVcnDnsResolverAssociation", apiReferenceLink) return response, err } @@ -13981,6 +14655,8 @@ func (client VirtualNetworkClient) getVcnDrg(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/GetVcnDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVcnDrg", apiReferenceLink) return response, err } @@ -14032,6 +14708,8 @@ func (client VirtualNetworkClient) getVcnDrgAttachment(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/GetVcnDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVcnDrgAttachment", apiReferenceLink) return response, err } @@ -14083,6 +14761,8 @@ func (client VirtualNetworkClient) getVcnTopology(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VcnTopology/GetVcnTopology" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVcnTopology", apiReferenceLink) return response, err } @@ -14091,9 +14771,10 @@ func (client VirtualNetworkClient) getVcnTopology(ctx context.Context, request c } // GetVirtualCircuit Gets the specified virtual circuit's information. +// A default retry strategy applies to this operation GetVirtualCircuit() func (client VirtualNetworkClient) GetVirtualCircuit(ctx context.Context, request GetVirtualCircuitRequest) (response GetVirtualCircuitResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14134,6 +14815,8 @@ func (client VirtualNetworkClient) getVirtualCircuit(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuit/GetVirtualCircuit" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVirtualCircuit", apiReferenceLink) return response, err } @@ -14185,6 +14868,8 @@ func (client VirtualNetworkClient) getVlan(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vlan/GetVlan" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVlan", apiReferenceLink) return response, err } @@ -14239,6 +14924,8 @@ func (client VirtualNetworkClient) getVnic(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vnic/GetVnic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVnic", apiReferenceLink) return response, err } @@ -14290,6 +14977,8 @@ func (client VirtualNetworkClient) getVnicWorker(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/GetVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVnicWorker", apiReferenceLink) return response, err } @@ -14341,6 +15030,8 @@ func (client VirtualNetworkClient) getVtap(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vtap/GetVtap" + err = common.PostProcessServiceError(err, "VirtualNetwork", "GetVtap", apiReferenceLink) return response, err } @@ -14392,6 +15083,8 @@ func (client VirtualNetworkClient) listAdditionalRouteRules(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/ListAdditionalRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListAdditionalRouteRules", apiReferenceLink) return response, err } @@ -14401,9 +15094,10 @@ func (client VirtualNetworkClient) listAdditionalRouteRules(ctx context.Context, // ListAllowedPeerRegionsForRemotePeering Lists the regions that support remote VCN peering (which is peering across regions). // For more information, see VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). +// A default retry strategy applies to this operation ListAllowedPeerRegionsForRemotePeering() func (client VirtualNetworkClient) ListAllowedPeerRegionsForRemotePeering(ctx context.Context, request ListAllowedPeerRegionsForRemotePeeringRequest) (response ListAllowedPeerRegionsForRemotePeeringResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14444,6 +15138,8 @@ func (client VirtualNetworkClient) listAllowedPeerRegionsForRemotePeering(ctx co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PeerRegionForRemotePeering/ListAllowedPeerRegionsForRemotePeering" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListAllowedPeerRegionsForRemotePeering", apiReferenceLink) return response, err } @@ -14496,6 +15192,8 @@ func (client VirtualNetworkClient) listByoipAllocatedRanges(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipAllocatedRangeSummary/ListByoipAllocatedRanges" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListByoipAllocatedRanges", apiReferenceLink) return response, err } @@ -14548,6 +15246,8 @@ func (client VirtualNetworkClient) listByoipRanges(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/ListByoipRanges" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListByoipRanges", apiReferenceLink) return response, err } @@ -14602,6 +15302,8 @@ func (client VirtualNetworkClient) listC3DrgAttachments(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/ListC3DrgAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListC3DrgAttachments", apiReferenceLink) return response, err } @@ -14653,6 +15355,8 @@ func (client VirtualNetworkClient) listC3Drgs(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ListC3Drgs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListC3Drgs", apiReferenceLink) return response, err } @@ -14704,6 +15408,8 @@ func (client VirtualNetworkClient) listCaptureFilters(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/ListCaptureFilters" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCaptureFilters", apiReferenceLink) return response, err } @@ -14712,9 +15418,10 @@ func (client VirtualNetworkClient) listCaptureFilters(ctx context.Context, reque } // ListClientVpnUsers List the ClientVpnUsers on a ClientClientVpnEnpoint in the specified compartement. +// A default retry strategy applies to this operation ListClientVpnUsers() func (client VirtualNetworkClient) ListClientVpnUsers(ctx context.Context, request ListClientVpnUsersRequest) (response ListClientVpnUsersResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14755,6 +15462,8 @@ func (client VirtualNetworkClient) listClientVpnUsers(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpnUser/ListClientVpnUsers" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListClientVpnUsers", apiReferenceLink) return response, err } @@ -14763,9 +15472,10 @@ func (client VirtualNetworkClient) listClientVpnUsers(ctx context.Context, reque } // ListClientVpns List the ClientVpns in the specified compartement. +// A default retry strategy applies to this operation ListClientVpns() func (client VirtualNetworkClient) ListClientVpns(ctx context.Context, request ListClientVpnsRequest) (response ListClientVpnsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14806,6 +15516,8 @@ func (client VirtualNetworkClient) listClientVpns(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/ListClientVpns" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListClientVpns", apiReferenceLink) return response, err } @@ -14818,14 +15530,15 @@ func (client VirtualNetworkClient) listClientVpns(ctx context.Context, request c // the actual CPE device represented by a Cpe object. // If you want to generate CPE configuration content for one of the returned CPE device types, // ensure that the Cpe object's `cpeDeviceShapeId` attribute is set -// to the CPE device type's OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) (returned by this operation). +// to the CPE device type's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) (returned by this operation). // For information about generating CPE configuration content, see these operations: // * GetCpeDeviceConfigContent // * GetIpsecCpeDeviceConfigContent // * GetTunnelCpeDeviceConfigContent +// A default retry strategy applies to this operation ListCpeDeviceShapes() func (client VirtualNetworkClient) ListCpeDeviceShapes(ctx context.Context, request ListCpeDeviceShapesRequest) (response ListCpeDeviceShapesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14866,6 +15579,8 @@ func (client VirtualNetworkClient) listCpeDeviceShapes(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CpeDeviceShapeSummary/ListCpeDeviceShapes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCpeDeviceShapes", apiReferenceLink) return response, err } @@ -14874,9 +15589,10 @@ func (client VirtualNetworkClient) listCpeDeviceShapes(ctx context.Context, requ } // ListCpes Lists the customer-premises equipment objects (CPEs) in the specified compartment. +// A default retry strategy applies to this operation ListCpes() func (client VirtualNetworkClient) ListCpes(ctx context.Context, request ListCpesRequest) (response ListCpesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14917,6 +15633,8 @@ func (client VirtualNetworkClient) listCpes(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/ListCpes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCpes", apiReferenceLink) return response, err } @@ -14925,9 +15643,10 @@ func (client VirtualNetworkClient) listCpes(ctx context.Context, request common. } // ListCrossConnectGroups Lists the cross-connect groups in the specified compartment. +// A default retry strategy applies to this operation ListCrossConnectGroups() func (client VirtualNetworkClient) ListCrossConnectGroups(ctx context.Context, request ListCrossConnectGroupsRequest) (response ListCrossConnectGroupsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -14968,6 +15687,8 @@ func (client VirtualNetworkClient) listCrossConnectGroups(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectGroup/ListCrossConnectGroups" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCrossConnectGroups", apiReferenceLink) return response, err } @@ -14977,9 +15698,10 @@ func (client VirtualNetworkClient) listCrossConnectGroups(ctx context.Context, r // ListCrossConnectLocations Lists the available FastConnect locations for cross-connect installation. You need // this information so you can specify your desired location when you create a cross-connect. +// A default retry strategy applies to this operation ListCrossConnectLocations() func (client VirtualNetworkClient) ListCrossConnectLocations(ctx context.Context, request ListCrossConnectLocationsRequest) (response ListCrossConnectLocationsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15020,6 +15742,8 @@ func (client VirtualNetworkClient) listCrossConnectLocations(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectLocation/ListCrossConnectLocations" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCrossConnectLocations", apiReferenceLink) return response, err } @@ -15029,9 +15753,10 @@ func (client VirtualNetworkClient) listCrossConnectLocations(ctx context.Context // ListCrossConnectMappings Lists the Cross Connect mapping Details for the specified // virtual circuit. +// A default retry strategy applies to this operation ListCrossConnectMappings() func (client VirtualNetworkClient) ListCrossConnectMappings(ctx context.Context, request ListCrossConnectMappingsRequest) (response ListCrossConnectMappingsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15072,6 +15797,8 @@ func (client VirtualNetworkClient) listCrossConnectMappings(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectMappingDetailsCollection/ListCrossConnectMappings" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCrossConnectMappings", apiReferenceLink) return response, err } @@ -15080,10 +15807,11 @@ func (client VirtualNetworkClient) listCrossConnectMappings(ctx context.Context, } // ListCrossConnects Lists the cross-connects in the specified compartment. You can filter the list -// by specifying the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a cross-connect group. +// by specifying the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a cross-connect group. +// A default retry strategy applies to this operation ListCrossConnects() func (client VirtualNetworkClient) ListCrossConnects(ctx context.Context, request ListCrossConnectsRequest) (response ListCrossConnectsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15124,6 +15852,8 @@ func (client VirtualNetworkClient) listCrossConnects(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnect/ListCrossConnects" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCrossConnects", apiReferenceLink) return response, err } @@ -15134,9 +15864,10 @@ func (client VirtualNetworkClient) listCrossConnects(ctx context.Context, reques // ListCrossconnectPortSpeedShapes Lists the available port speeds for cross-connects. You need this information // so you can specify your desired port speed (that is, shape) when you create a // cross-connect. +// A default retry strategy applies to this operation ListCrossconnectPortSpeedShapes() func (client VirtualNetworkClient) ListCrossconnectPortSpeedShapes(ctx context.Context, request ListCrossconnectPortSpeedShapesRequest) (response ListCrossconnectPortSpeedShapesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15177,6 +15908,8 @@ func (client VirtualNetworkClient) listCrossconnectPortSpeedShapes(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectPortSpeedShape/ListCrossconnectPortSpeedShapes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListCrossconnectPortSpeedShapes", apiReferenceLink) return response, err } @@ -15228,6 +15961,8 @@ func (client VirtualNetworkClient) listDavs(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/ListDavs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDavs", apiReferenceLink) return response, err } @@ -15282,6 +16017,8 @@ func (client VirtualNetworkClient) listDhcpOptions(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DhcpOptions/ListDhcpOptions" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDhcpOptions", apiReferenceLink) return response, err } @@ -15337,6 +16074,8 @@ func (client VirtualNetworkClient) listDrgAttachments(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/ListDrgAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgAttachments", apiReferenceLink) return response, err } @@ -15388,6 +16127,8 @@ func (client VirtualNetworkClient) listDrgRouteDistributionStatements(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/ListDrgRouteDistributionStatements" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgRouteDistributionStatements", apiReferenceLink) return response, err } @@ -15441,6 +16182,8 @@ func (client VirtualNetworkClient) listDrgRouteDistributions(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistribution/ListDrgRouteDistributions" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgRouteDistributions", apiReferenceLink) return response, err } @@ -15492,6 +16235,8 @@ func (client VirtualNetworkClient) listDrgRouteRules(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteRule/ListDrgRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgRouteRules", apiReferenceLink) return response, err } @@ -15544,6 +16289,61 @@ func (client VirtualNetworkClient) listDrgRouteTables(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteTable/ListDrgRouteTables" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgRouteTables", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListDrgUrtRouteRules Lists the urt route rules for a given DRG attachment. +func (client VirtualNetworkClient) ListDrgUrtRouteRules(ctx context.Context, request ListDrgUrtRouteRulesRequest) (response ListDrgUrtRouteRulesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listDrgUrtRouteRules, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListDrgUrtRouteRulesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListDrgUrtRouteRulesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListDrgUrtRouteRulesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListDrgUrtRouteRulesResponse") + } + return +} + +// listDrgUrtRouteRules implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) listDrgUrtRouteRules(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/drgUrtRouteRules/{drgAttachmentId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListDrgUrtRouteRulesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgUrtRouteRuleDetails/ListDrgUrtRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgUrtRouteRules", apiReferenceLink) return response, err } @@ -15595,6 +16395,8 @@ func (client VirtualNetworkClient) listDrgs(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ListDrgs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgs", apiReferenceLink) return response, err } @@ -15646,6 +16448,8 @@ func (client VirtualNetworkClient) listDrgsByStates(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ListDrgsByStates" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListDrgsByStates", apiReferenceLink) return response, err } @@ -15698,6 +16502,8 @@ func (client VirtualNetworkClient) listEndpointServices(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointServiceSummary/ListEndpointServices" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListEndpointServices", apiReferenceLink) return response, err } @@ -15708,11 +16514,12 @@ func (client VirtualNetworkClient) listEndpointServices(ctx context.Context, req // ListFastConnectProviderServices Lists the service offerings from supported providers. You need this // information so you can specify your desired provider and service // offering when you create a virtual circuit. -// For the compartment ID, provide the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of your tenancy (the root compartment). +// For the compartment ID, provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of your tenancy (the root compartment). // For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// A default retry strategy applies to this operation ListFastConnectProviderServices() func (client VirtualNetworkClient) ListFastConnectProviderServices(ctx context.Context, request ListFastConnectProviderServicesRequest) (response ListFastConnectProviderServicesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15753,6 +16560,8 @@ func (client VirtualNetworkClient) listFastConnectProviderServices(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FastConnectProviderService/ListFastConnectProviderServices" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListFastConnectProviderServices", apiReferenceLink) return response, err } @@ -15763,9 +16572,10 @@ func (client VirtualNetworkClient) listFastConnectProviderServices(ctx context.C // ListFastConnectProviderVirtualCircuitBandwidthShapes Gets the list of available virtual circuit bandwidth levels for a provider. // You need this information so you can specify your desired bandwidth level (shape) when you create a virtual circuit. // For more information about virtual circuits, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// A default retry strategy applies to this operation ListFastConnectProviderVirtualCircuitBandwidthShapes() func (client VirtualNetworkClient) ListFastConnectProviderVirtualCircuitBandwidthShapes(ctx context.Context, request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) (response ListFastConnectProviderVirtualCircuitBandwidthShapesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15806,6 +16616,8 @@ func (client VirtualNetworkClient) listFastConnectProviderVirtualCircuitBandwidt defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FastConnectProviderService/ListFastConnectProviderVirtualCircuitBandwidthShapes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListFastConnectProviderVirtualCircuitBandwidthShapes", apiReferenceLink) return response, err } @@ -15858,6 +16670,8 @@ func (client VirtualNetworkClient) listFlowLogConfigAttachments(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfigAttachment/ListFlowLogConfigAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListFlowLogConfigAttachments", apiReferenceLink) return response, err } @@ -15909,6 +16723,8 @@ func (client VirtualNetworkClient) listFlowLogConfigs(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfig/ListFlowLogConfigs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListFlowLogConfigs", apiReferenceLink) return response, err } @@ -15916,10 +16732,11 @@ func (client VirtualNetworkClient) listFlowLogConfigs(ctx context.Context, reque return response, err } -// ListIPSecConnectionTunnelRoutes The routes advertised to the Customer and the routes received from the Customer. +// ListIPSecConnectionTunnelRoutes The routes advertised to the on-premises network and the routes received from the on-premises network. +// A default retry strategy applies to this operation ListIPSecConnectionTunnelRoutes() func (client VirtualNetworkClient) ListIPSecConnectionTunnelRoutes(ctx context.Context, request ListIPSecConnectionTunnelRoutesRequest) (response ListIPSecConnectionTunnelRoutesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -15960,6 +16777,8 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnelRoutes(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/TunnelRouteSummary/ListIPSecConnectionTunnelRoutes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListIPSecConnectionTunnelRoutes", apiReferenceLink) return response, err } @@ -15967,10 +16786,11 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnelRoutes(ctx context.C return response, err } -// ListIPSecConnectionTunnelSecurityAssociations Lists the tunnel Security Associations information for the specified IPSec Tunnel ID. +// ListIPSecConnectionTunnelSecurityAssociations Lists the tunnel security associations information for the specified IPSec tunnel ID. +// A default retry strategy applies to this operation ListIPSecConnectionTunnelSecurityAssociations() func (client VirtualNetworkClient) ListIPSecConnectionTunnelSecurityAssociations(ctx context.Context, request ListIPSecConnectionTunnelSecurityAssociationsRequest) (response ListIPSecConnectionTunnelSecurityAssociationsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -16011,6 +16831,8 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnelSecurityAssociations defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/TunnelSecurityAssociationSummary/ListIPSecConnectionTunnelSecurityAssociations" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListIPSecConnectionTunnelSecurityAssociations", apiReferenceLink) return response, err } @@ -16019,9 +16841,10 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnelSecurityAssociations } // ListIPSecConnectionTunnels Lists the tunnel information for the specified IPSec connection. +// A default retry strategy applies to this operation ListIPSecConnectionTunnels() func (client VirtualNetworkClient) ListIPSecConnectionTunnels(ctx context.Context, request ListIPSecConnectionTunnelsRequest) (response ListIPSecConnectionTunnelsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -16062,6 +16885,8 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnels(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnel/ListIPSecConnectionTunnels" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListIPSecConnectionTunnels", apiReferenceLink) return response, err } @@ -16071,9 +16896,10 @@ func (client VirtualNetworkClient) listIPSecConnectionTunnels(ctx context.Contex // ListIPSecConnections Lists the IPSec connections for the specified compartment. You can filter the // results by DRG or CPE. +// A default retry strategy applies to this operation ListIPSecConnections() func (client VirtualNetworkClient) ListIPSecConnections(ctx context.Context, request ListIPSecConnectionsRequest) (response ListIPSecConnectionsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -16114,6 +16940,8 @@ func (client VirtualNetworkClient) listIPSecConnections(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/ListIPSecConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListIPSecConnections", apiReferenceLink) return response, err } @@ -16166,6 +16994,8 @@ func (client VirtualNetworkClient) listInternalDnsRecords(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDnsRecord/ListInternalDnsRecords" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalDnsRecords", apiReferenceLink) return response, err } @@ -16218,6 +17048,8 @@ func (client VirtualNetworkClient) listInternalDrgAttachments(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrgAttachment/ListInternalDrgAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalDrgAttachments", apiReferenceLink) return response, err } @@ -16269,6 +17101,8 @@ func (client VirtualNetworkClient) listInternalDrgs(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrg/ListInternalDrgs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalDrgs", apiReferenceLink) return response, err } @@ -16320,6 +17154,8 @@ func (client VirtualNetworkClient) listInternalGenericGateways(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/ListInternalGenericGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalGenericGateways", apiReferenceLink) return response, err } @@ -16386,6 +17222,8 @@ func (client VirtualNetworkClient) listInternalPublicIps(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalPublicIp/ListInternalPublicIps" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalPublicIps", apiReferenceLink) return response, err } @@ -16437,6 +17275,8 @@ func (client VirtualNetworkClient) listInternalVnicAttachments(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/ListInternalVnicAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalVnicAttachments", apiReferenceLink) return response, err } @@ -16488,6 +17328,8 @@ func (client VirtualNetworkClient) listInternalVnics(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnic/ListInternalVnics" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternalVnics", apiReferenceLink) return response, err } @@ -16540,6 +17382,8 @@ func (client VirtualNetworkClient) listInternetGateways(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternetGateway/ListInternetGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListInternetGateways", apiReferenceLink) return response, err } @@ -16597,6 +17441,8 @@ func (client VirtualNetworkClient) listIpv6s(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/ListIpv6s" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListIpv6s", apiReferenceLink) return response, err } @@ -16648,6 +17494,8 @@ func (client VirtualNetworkClient) listLocalPeeringConnections(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/ListLocalPeeringConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListLocalPeeringConnections", apiReferenceLink) return response, err } @@ -16700,6 +17548,8 @@ func (client VirtualNetworkClient) listLocalPeeringGateways(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/ListLocalPeeringGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListLocalPeeringGateways", apiReferenceLink) return response, err } @@ -16752,6 +17602,8 @@ func (client VirtualNetworkClient) listNatGateways(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NatGateway/ListNatGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListNatGateways", apiReferenceLink) return response, err } @@ -16803,6 +17655,8 @@ func (client VirtualNetworkClient) listNetworkSecurityGroupSecurityRules(ctx con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/ListNetworkSecurityGroupSecurityRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListNetworkSecurityGroupSecurityRules", apiReferenceLink) return response, err } @@ -16854,6 +17708,8 @@ func (client VirtualNetworkClient) listNetworkSecurityGroupVnics(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroupVnic/ListNetworkSecurityGroupVnics" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListNetworkSecurityGroupVnics", apiReferenceLink) return response, err } @@ -16906,6 +17762,8 @@ func (client VirtualNetworkClient) listNetworkSecurityGroups(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/ListNetworkSecurityGroups" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListNetworkSecurityGroups", apiReferenceLink) return response, err } @@ -16957,6 +17815,8 @@ func (client VirtualNetworkClient) listNextHops(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointServiceNextHop/ListNextHops" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListNextHops", apiReferenceLink) return response, err } @@ -17009,6 +17869,8 @@ func (client VirtualNetworkClient) listPrivateAccessGateways(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateAccessGatewaySummary/ListPrivateAccessGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListPrivateAccessGateways", apiReferenceLink) return response, err } @@ -17063,6 +17925,8 @@ func (client VirtualNetworkClient) listPrivateEndpointAssociations(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpointAssociation/ListPrivateEndpointAssociations" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListPrivateEndpointAssociations", apiReferenceLink) return response, err } @@ -17115,6 +17979,8 @@ func (client VirtualNetworkClient) listPrivateEndpoints(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpointSummary/ListPrivateEndpoints" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListPrivateEndpoints", apiReferenceLink) return response, err } @@ -17178,6 +18044,8 @@ func (client VirtualNetworkClient) listPrivateIps(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/ListPrivateIps" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListPrivateIps", apiReferenceLink) return response, err } @@ -17230,6 +18098,8 @@ func (client VirtualNetworkClient) listPublicIpPools(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/ListPublicIpPools" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListPublicIpPools", apiReferenceLink) return response, err } @@ -17296,6 +18166,8 @@ func (client VirtualNetworkClient) listPublicIps(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/ListPublicIps" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListPublicIps", apiReferenceLink) return response, err } @@ -17305,9 +18177,10 @@ func (client VirtualNetworkClient) listPublicIps(ctx context.Context, request co // ListRemotePeeringConnections Lists the remote peering connections (RPCs) for the specified DRG and compartment // (the RPC's compartment). +// A default retry strategy applies to this operation ListRemotePeeringConnections() func (client VirtualNetworkClient) ListRemotePeeringConnections(ctx context.Context, request ListRemotePeeringConnectionsRequest) (response ListRemotePeeringConnectionsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -17348,6 +18221,8 @@ func (client VirtualNetworkClient) listRemotePeeringConnections(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/ListRemotePeeringConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListRemotePeeringConnections", apiReferenceLink) return response, err } @@ -17399,6 +18274,8 @@ func (client VirtualNetworkClient) listReverseConnectionNatIpCidrs(ctx context.C defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ReverseConnectionNatIpCidrSummary/ListReverseConnectionNatIpCidrs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListReverseConnectionNatIpCidrs", apiReferenceLink) return response, err } @@ -17451,6 +18328,8 @@ func (client VirtualNetworkClient) listReverseConnectionNatIps(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ReverseConnectionNatIp/ListReverseConnectionNatIps" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListReverseConnectionNatIps", apiReferenceLink) return response, err } @@ -17505,6 +18384,8 @@ func (client VirtualNetworkClient) listRouteTables(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/ListRouteTables" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListRouteTables", apiReferenceLink) return response, err } @@ -17556,6 +18437,8 @@ func (client VirtualNetworkClient) listScanProxies(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ScanProxy/ListScanProxies" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListScanProxies", apiReferenceLink) return response, err } @@ -17608,6 +18491,8 @@ func (client VirtualNetworkClient) listSecurityLists(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityList/ListSecurityLists" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListSecurityLists", apiReferenceLink) return response, err } @@ -17660,6 +18545,8 @@ func (client VirtualNetworkClient) listServiceGateways(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/ListServiceGateways" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListServiceGateways", apiReferenceLink) return response, err } @@ -17712,6 +18599,8 @@ func (client VirtualNetworkClient) listServices(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Service/ListServices" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListServices", apiReferenceLink) return response, err } @@ -17764,6 +18653,8 @@ func (client VirtualNetworkClient) listSubnets(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/ListSubnets" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListSubnets", apiReferenceLink) return response, err } @@ -17819,6 +18710,8 @@ func (client VirtualNetworkClient) listVcnDrgAttachments(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/ListVcnDrgAttachments" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVcnDrgAttachments", apiReferenceLink) return response, err } @@ -17870,6 +18763,8 @@ func (client VirtualNetworkClient) listVcnDrgs(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/ListVcnDrgs" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVcnDrgs", apiReferenceLink) return response, err } @@ -17921,6 +18816,8 @@ func (client VirtualNetworkClient) listVcns(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/ListVcns" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVcns", apiReferenceLink) return response, err } @@ -17929,9 +18826,10 @@ func (client VirtualNetworkClient) listVcns(ctx context.Context, request common. } // ListVirtualCircuitBandwidthShapes The deprecated operation lists available bandwidth levels for virtual circuits. For the compartment ID, provide the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of your tenancy (the root compartment). +// A default retry strategy applies to this operation ListVirtualCircuitBandwidthShapes() func (client VirtualNetworkClient) ListVirtualCircuitBandwidthShapes(ctx context.Context, request ListVirtualCircuitBandwidthShapesRequest) (response ListVirtualCircuitBandwidthShapesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -17972,6 +18870,8 @@ func (client VirtualNetworkClient) listVirtualCircuitBandwidthShapes(ctx context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuitBandwidthShape/ListVirtualCircuitBandwidthShapes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVirtualCircuitBandwidthShapes", apiReferenceLink) return response, err } @@ -17981,9 +18881,10 @@ func (client VirtualNetworkClient) listVirtualCircuitBandwidthShapes(ctx context // ListVirtualCircuitPublicPrefixes Lists the public IP prefixes and their details for the specified // public virtual circuit. +// A default retry strategy applies to this operation ListVirtualCircuitPublicPrefixes() func (client VirtualNetworkClient) ListVirtualCircuitPublicPrefixes(ctx context.Context, request ListVirtualCircuitPublicPrefixesRequest) (response ListVirtualCircuitPublicPrefixesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -18024,6 +18925,8 @@ func (client VirtualNetworkClient) listVirtualCircuitPublicPrefixes(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuitPublicPrefix/ListVirtualCircuitPublicPrefixes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVirtualCircuitPublicPrefixes", apiReferenceLink) return response, err } @@ -18032,9 +18935,10 @@ func (client VirtualNetworkClient) listVirtualCircuitPublicPrefixes(ctx context. } // ListVirtualCircuits Lists the virtual circuits in the specified compartment. +// A default retry strategy applies to this operation ListVirtualCircuits() func (client VirtualNetworkClient) ListVirtualCircuits(ctx context.Context, request ListVirtualCircuitsRequest) (response ListVirtualCircuitsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -18075,6 +18979,8 @@ func (client VirtualNetworkClient) listVirtualCircuits(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuit/ListVirtualCircuits" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVirtualCircuits", apiReferenceLink) return response, err } @@ -18126,6 +19032,8 @@ func (client VirtualNetworkClient) listVlans(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vlan/ListVlans" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVlans", apiReferenceLink) return response, err } @@ -18179,6 +19087,8 @@ func (client VirtualNetworkClient) listVnicWorkers(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/ListVnicWorkers" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVnicWorkers", apiReferenceLink) return response, err } @@ -18230,6 +19140,8 @@ func (client VirtualNetworkClient) listVtaps(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vtap/ListVtaps" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ListVtaps", apiReferenceLink) return response, err } @@ -18282,6 +19194,8 @@ func (client VirtualNetworkClient) migrateDrg(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrg/MigrateDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "MigrateDrg", apiReferenceLink) return response, err } @@ -18290,9 +19204,10 @@ func (client VirtualNetworkClient) migrateDrg(ctx context.Context, request commo } // MigrateIPSecConnection Migrates an IPSec connection from Site-to-Site VPN v1 to Site-to-Site VPN v2. +// A default retry strategy applies to this operation MigrateIPSecConnection() func (client VirtualNetworkClient) MigrateIPSecConnection(ctx context.Context, request MigrateIPSecConnectionRequest) (response MigrateIPSecConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -18338,6 +19253,8 @@ func (client VirtualNetworkClient) migrateIPSecConnection(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/MigrateIPSecConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "MigrateIPSecConnection", apiReferenceLink) return response, err } @@ -18389,6 +19306,8 @@ func (client VirtualNetworkClient) modifyReverseConnections(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/ModifyReverseConnections" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ModifyReverseConnections", apiReferenceLink) return response, err } @@ -18451,6 +19370,8 @@ func (client VirtualNetworkClient) modifyVcnCidr(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/ModifyVcnCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ModifyVcnCidr", apiReferenceLink) return response, err } @@ -18502,6 +19423,8 @@ func (client VirtualNetworkClient) removeAdditionalRouteRules(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/RemoveAdditionalRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveAdditionalRouteRules", apiReferenceLink) return response, err } @@ -18553,6 +19476,8 @@ func (client VirtualNetworkClient) removeDrgPeeringConnection(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveDrgPeeringConnection", apiReferenceLink) return response, err } @@ -18604,6 +19529,8 @@ func (client VirtualNetworkClient) removeDrgRouteDistributionStatements(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/RemoveDrgRouteDistributionStatements" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveDrgRouteDistributionStatements", apiReferenceLink) return response, err } @@ -18655,6 +19582,8 @@ func (client VirtualNetworkClient) removeDrgRouteRules(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteRule/RemoveDrgRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveDrgRouteRules", apiReferenceLink) return response, err } @@ -18706,6 +19635,8 @@ func (client VirtualNetworkClient) removeExportDrgRouteDistribution(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/RemoveExportDrgRouteDistribution" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveExportDrgRouteDistribution", apiReferenceLink) return response, err } @@ -18758,6 +19689,124 @@ func (client VirtualNetworkClient) removeImportDrgRouteDistribution(ctx context. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteTable/RemoveImportDrgRouteDistribution" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveImportDrgRouteDistribution", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RemoveIpv6SubnetCidr Remove an IPv6 CIDR from a subnet. At least one IPv6 CIDR should remain. +func (client VirtualNetworkClient) RemoveIpv6SubnetCidr(ctx context.Context, request RemoveIpv6SubnetCidrRequest) (response RemoveIpv6SubnetCidrResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.removeIpv6SubnetCidr, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveIpv6SubnetCidrResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RemoveIpv6SubnetCidrResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RemoveIpv6SubnetCidrResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RemoveIpv6SubnetCidrResponse") + } + return +} + +// removeIpv6SubnetCidr implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) removeIpv6SubnetCidr(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/subnets/{subnetId}/actions/removeIpv6Cidr", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RemoveIpv6SubnetCidrResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/RemoveIpv6SubnetCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveIpv6SubnetCidr", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RemoveIpv6VcnCidr Removing an existing IPv6 CIDR from a VCN. +func (client VirtualNetworkClient) RemoveIpv6VcnCidr(ctx context.Context, request RemoveIpv6VcnCidrRequest) (response RemoveIpv6VcnCidrResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.removeIpv6VcnCidr, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveIpv6VcnCidrResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RemoveIpv6VcnCidrResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RemoveIpv6VcnCidrResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RemoveIpv6VcnCidrResponse") + } + return +} + +// removeIpv6VcnCidr implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) removeIpv6VcnCidr(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/vcns/{vcnId}/actions/removeIpv6Cidr", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RemoveIpv6VcnCidrResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/RemoveIpv6VcnCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveIpv6VcnCidr", apiReferenceLink) return response, err } @@ -18809,6 +19858,8 @@ func (client VirtualNetworkClient) removeNetworkSecurityGroupSecurityRules(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/RemoveNetworkSecurityGroupSecurityRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveNetworkSecurityGroupSecurityRules", apiReferenceLink) return response, err } @@ -18865,6 +19916,8 @@ func (client VirtualNetworkClient) removePublicIpPoolCapacity(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/RemovePublicIpPoolCapacity" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemovePublicIpPoolCapacity", apiReferenceLink) return response, err } @@ -18924,6 +19977,8 @@ func (client VirtualNetworkClient) removeVcnCidr(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/RemoveVcnCidr" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RemoveVcnCidr", apiReferenceLink) return response, err } @@ -18980,6 +20035,8 @@ func (client VirtualNetworkClient) rollbackDrgMigration(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RollbackDrgMigration/RollbackDrgMigration" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RollbackDrgMigration", apiReferenceLink) return response, err } @@ -18988,9 +20045,10 @@ func (client VirtualNetworkClient) rollbackDrgMigration(ctx context.Context, req } // RollbackIPSecConnection Rollback the migration of IPSec connection from Site-to-Site VPN v2 to Site-to-Site VPN v1. +// A default retry strategy applies to this operation RollbackIPSecConnection() func (client VirtualNetworkClient) RollbackIPSecConnection(ctx context.Context, request RollbackIPSecConnectionRequest) (response RollbackIPSecConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -19036,6 +20094,8 @@ func (client VirtualNetworkClient) rollbackIPSecConnection(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/RollbackIPSecConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RollbackIPSecConnection", apiReferenceLink) return response, err } @@ -19092,6 +20152,67 @@ func (client VirtualNetworkClient) rollbackUpgradeDrg(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/RollbackUpgradeDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RollbackUpgradeDrg", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RouteVnicIngressTrafficToDestinationSmartNic Starts routing VNIC's ingress traffic to destination smart NIC. This API is called by compute after +// resuming instances, getting live migrated, on the destination smart NIC. +func (client VirtualNetworkClient) RouteVnicIngressTrafficToDestinationSmartNic(ctx context.Context, request RouteVnicIngressTrafficToDestinationSmartNicRequest) (response RouteVnicIngressTrafficToDestinationSmartNicResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.routeVnicIngressTrafficToDestinationSmartNic, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RouteVnicIngressTrafficToDestinationSmartNicResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RouteVnicIngressTrafficToDestinationSmartNicResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RouteVnicIngressTrafficToDestinationSmartNicResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RouteVnicIngressTrafficToDestinationSmartNicResponse") + } + return +} + +// routeVnicIngressTrafficToDestinationSmartNic implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) routeVnicIngressTrafficToDestinationSmartNic(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/internalVnics/{internalVnicId}/attachment/action/routeVnicIngressTrafficToDestinationSmartNic", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RouteVnicIngressTrafficToDestinationSmartNicResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/RouteVnicIngressTrafficToDestinationSmartNic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "RouteVnicIngressTrafficToDestinationSmartNic", apiReferenceLink) return response, err } @@ -19143,6 +20264,8 @@ func (client VirtualNetworkClient) setDrgPeeringConnection(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "SetDrgPeeringConnection", apiReferenceLink) return response, err } @@ -19194,6 +20317,8 @@ func (client VirtualNetworkClient) undrainVnicWorker(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/UndrainVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UndrainVnicWorker", apiReferenceLink) return response, err } @@ -19245,6 +20370,8 @@ func (client VirtualNetworkClient) updateByoipRange(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/UpdateByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateByoipRange", apiReferenceLink) return response, err } @@ -19296,6 +20423,8 @@ func (client VirtualNetworkClient) updateC3Drg(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/UpdateC3Drg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateC3Drg", apiReferenceLink) return response, err } @@ -19348,6 +20477,8 @@ func (client VirtualNetworkClient) updateC3DrgAttachment(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/UpdateC3DrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateC3DrgAttachment", apiReferenceLink) return response, err } @@ -19399,6 +20530,8 @@ func (client VirtualNetworkClient) updateCaptureFilter(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CaptureFilter/UpdateCaptureFilter" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateCaptureFilter", apiReferenceLink) return response, err } @@ -19407,9 +20540,10 @@ func (client VirtualNetworkClient) updateCaptureFilter(ctx context.Context, requ } // UpdateClientVpn Update the specific ClientVpn by given the clientVpnId. +// A default retry strategy applies to this operation UpdateClientVpn() func (client VirtualNetworkClient) UpdateClientVpn(ctx context.Context, request UpdateClientVpnRequest) (response UpdateClientVpnResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -19455,6 +20589,8 @@ func (client VirtualNetworkClient) updateClientVpn(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpn/UpdateClientVpn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateClientVpn", apiReferenceLink) return response, err } @@ -19463,9 +20599,10 @@ func (client VirtualNetworkClient) updateClientVpn(ctx context.Context, request } // UpdateClientVpnUser Update the specific ClientVpnUser by given an id of ClientVpn and a username. +// A default retry strategy applies to this operation UpdateClientVpnUser() func (client VirtualNetworkClient) UpdateClientVpnUser(ctx context.Context, request UpdateClientVpnUserRequest) (response UpdateClientVpnUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -19506,6 +20643,8 @@ func (client VirtualNetworkClient) updateClientVpnUser(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ClientVpnUser/UpdateClientVpnUser" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateClientVpnUser", apiReferenceLink) return response, err } @@ -19515,9 +20654,10 @@ func (client VirtualNetworkClient) updateClientVpnUser(ctx context.Context, requ // UpdateCpe Updates the specified CPE's display name or tags. // Avoid entering confidential information. +// A default retry strategy applies to this operation UpdateCpe() func (client VirtualNetworkClient) UpdateCpe(ctx context.Context, request UpdateCpeRequest) (response UpdateCpeResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -19558,6 +20698,8 @@ func (client VirtualNetworkClient) updateCpe(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Cpe/UpdateCpe" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateCpe", apiReferenceLink) return response, err } @@ -19566,9 +20708,10 @@ func (client VirtualNetworkClient) updateCpe(ctx context.Context, request common } // UpdateCrossConnect Updates the specified cross-connect. +// A default retry strategy applies to this operation UpdateCrossConnect() func (client VirtualNetworkClient) UpdateCrossConnect(ctx context.Context, request UpdateCrossConnectRequest) (response UpdateCrossConnectResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -19609,6 +20752,8 @@ func (client VirtualNetworkClient) updateCrossConnect(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnect/UpdateCrossConnect" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateCrossConnect", apiReferenceLink) return response, err } @@ -19618,9 +20763,10 @@ func (client VirtualNetworkClient) updateCrossConnect(ctx context.Context, reque // UpdateCrossConnectGroup Updates the specified cross-connect group's display name. // Avoid entering confidential information. +// A default retry strategy applies to this operation UpdateCrossConnectGroup() func (client VirtualNetworkClient) UpdateCrossConnectGroup(ctx context.Context, request UpdateCrossConnectGroupRequest) (response UpdateCrossConnectGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -19661,6 +20807,8 @@ func (client VirtualNetworkClient) updateCrossConnectGroup(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/CrossConnectGroup/UpdateCrossConnectGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateCrossConnectGroup", apiReferenceLink) return response, err } @@ -19717,6 +20865,8 @@ func (client VirtualNetworkClient) updateDav(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Dav/UpdateDav" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDav", apiReferenceLink) return response, err } @@ -19770,6 +20920,8 @@ func (client VirtualNetworkClient) updateDhcpOptions(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DhcpOptions/UpdateDhcpOptions" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDhcpOptions", apiReferenceLink) return response, err } @@ -19821,6 +20973,8 @@ func (client VirtualNetworkClient) updateDrg(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/UpdateDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDrg", apiReferenceLink) return response, err } @@ -19873,6 +21027,8 @@ func (client VirtualNetworkClient) updateDrgAttachment(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/UpdateDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDrgAttachment", apiReferenceLink) return response, err } @@ -19924,6 +21080,8 @@ func (client VirtualNetworkClient) updateDrgRouteDistribution(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistribution/UpdateDrgRouteDistribution" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDrgRouteDistribution", apiReferenceLink) return response, err } @@ -19975,6 +21133,8 @@ func (client VirtualNetworkClient) updateDrgRouteDistributionStatements(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteDistributionStatement/UpdateDrgRouteDistributionStatements" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDrgRouteDistributionStatements", apiReferenceLink) return response, err } @@ -20026,6 +21186,8 @@ func (client VirtualNetworkClient) updateDrgRouteRules(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteRule/UpdateDrgRouteRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDrgRouteRules", apiReferenceLink) return response, err } @@ -20077,6 +21239,8 @@ func (client VirtualNetworkClient) updateDrgRouteTable(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgRouteTable/UpdateDrgRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateDrgRouteTable", apiReferenceLink) return response, err } @@ -20128,6 +21292,8 @@ func (client VirtualNetworkClient) updateEndpointService(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointService/UpdateEndpointService" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateEndpointService", apiReferenceLink) return response, err } @@ -20184,6 +21350,8 @@ func (client VirtualNetworkClient) updateEndpointServiceNextHop(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/EndpointServiceNextHop/UpdateEndpointServiceNextHop" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateEndpointServiceNextHop", apiReferenceLink) return response, err } @@ -20235,6 +21403,8 @@ func (client VirtualNetworkClient) updateFlowLogConfig(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfig/UpdateFlowLogConfig" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateFlowLogConfig", apiReferenceLink) return response, err } @@ -20286,6 +21456,8 @@ func (client VirtualNetworkClient) updateFlowLogConfigAttachment(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/FlowLogConfigAttachment/UpdateFlowLogConfigAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateFlowLogConfigAttachment", apiReferenceLink) return response, err } @@ -20296,9 +21468,10 @@ func (client VirtualNetworkClient) updateFlowLogConfigAttachment(ctx context.Con // UpdateIPSecConnection Updates the specified IPSec connection. // To update an individual IPSec tunnel's attributes, use // UpdateIPSecConnectionTunnel. +// A default retry strategy applies to this operation UpdateIPSecConnection() func (client VirtualNetworkClient) UpdateIPSecConnection(ctx context.Context, request UpdateIPSecConnectionRequest) (response UpdateIPSecConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -20339,6 +21512,8 @@ func (client VirtualNetworkClient) updateIPSecConnection(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnection/UpdateIPSecConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateIPSecConnection", apiReferenceLink) return response, err } @@ -20355,9 +21530,10 @@ func (client VirtualNetworkClient) updateIPSecConnection(ctx context.Context, re // * If you want to switch the tunnel's `routing` from `BGP` to `STATIC`, make sure the // IPSecConnection already has at least one valid CIDR // static route. +// A default retry strategy applies to this operation UpdateIPSecConnectionTunnel() func (client VirtualNetworkClient) UpdateIPSecConnectionTunnel(ctx context.Context, request UpdateIPSecConnectionTunnelRequest) (response UpdateIPSecConnectionTunnelResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -20398,6 +21574,8 @@ func (client VirtualNetworkClient) updateIPSecConnectionTunnel(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnel/UpdateIPSecConnectionTunnel" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateIPSecConnectionTunnel", apiReferenceLink) return response, err } @@ -20407,9 +21585,10 @@ func (client VirtualNetworkClient) updateIPSecConnectionTunnel(ctx context.Conte // UpdateIPSecConnectionTunnelSharedSecret Updates the shared secret (pre-shared key) for the specified tunnel. // **Important:** If you change the shared secret, the tunnel will go down while it's reprovisioned. +// A default retry strategy applies to this operation UpdateIPSecConnectionTunnelSharedSecret() func (client VirtualNetworkClient) UpdateIPSecConnectionTunnelSharedSecret(ctx context.Context, request UpdateIPSecConnectionTunnelSharedSecretRequest) (response UpdateIPSecConnectionTunnelSharedSecretResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -20450,6 +21629,8 @@ func (client VirtualNetworkClient) updateIPSecConnectionTunnelSharedSecret(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/IPSecConnectionTunnelSharedSecret/UpdateIPSecConnectionTunnelSharedSecret" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateIPSecConnectionTunnelSharedSecret", apiReferenceLink) return response, err } @@ -20502,6 +21683,8 @@ func (client VirtualNetworkClient) updateInternalDnsRecord(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDnsRecord/UpdateInternalDnsRecord" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalDnsRecord", apiReferenceLink) return response, err } @@ -20553,6 +21736,8 @@ func (client VirtualNetworkClient) updateInternalDrg(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrg/UpdateInternalDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalDrg", apiReferenceLink) return response, err } @@ -20605,6 +21790,8 @@ func (client VirtualNetworkClient) updateInternalDrgAttachment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalDrgAttachment/UpdateInternalDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalDrgAttachment", apiReferenceLink) return response, err } @@ -20651,6 +21838,8 @@ func (client VirtualNetworkClient) updateInternalGenericGateway(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalGenericGateway/UpdateInternalGenericGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalGenericGateway", apiReferenceLink) return response, err } @@ -20732,6 +21921,8 @@ func (client VirtualNetworkClient) updateInternalPublicIp(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalPublicIp/UpdateInternalPublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalPublicIp", apiReferenceLink) return response, err } @@ -20783,6 +21974,8 @@ func (client VirtualNetworkClient) updateInternalVnic(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnic/UpdateInternalVnic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalVnic", apiReferenceLink) return response, err } @@ -20839,6 +22032,8 @@ func (client VirtualNetworkClient) updateInternalVnicMetadata(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/UpdateInternalVnicMetadata" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternalVnicMetadata", apiReferenceLink) return response, err } @@ -20893,6 +22088,8 @@ func (client VirtualNetworkClient) updateInternetGateway(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternetGateway/UpdateInternetGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateInternetGateway", apiReferenceLink) return response, err } @@ -20949,6 +22146,8 @@ func (client VirtualNetworkClient) updateIpv6(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Ipv6/UpdateIpv6" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateIpv6", apiReferenceLink) return response, err } @@ -21000,6 +22199,8 @@ func (client VirtualNetworkClient) updateLocalPeeringConnection(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringConnection/UpdateLocalPeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateLocalPeeringConnection", apiReferenceLink) return response, err } @@ -21051,6 +22252,8 @@ func (client VirtualNetworkClient) updateLocalPeeringGateway(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/LocalPeeringGateway/UpdateLocalPeeringGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateLocalPeeringGateway", apiReferenceLink) return response, err } @@ -21102,6 +22305,8 @@ func (client VirtualNetworkClient) updateNatGateway(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NatGateway/UpdateNatGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateNatGateway", apiReferenceLink) return response, err } @@ -21163,6 +22368,8 @@ func (client VirtualNetworkClient) updateNetworkSecurityGroup(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/NetworkSecurityGroup/UpdateNetworkSecurityGroup" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateNetworkSecurityGroup", apiReferenceLink) return response, err } @@ -21214,6 +22421,8 @@ func (client VirtualNetworkClient) updateNetworkSecurityGroupSecurityRules(ctx c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityRule/UpdateNetworkSecurityGroupSecurityRules" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateNetworkSecurityGroupSecurityRules", apiReferenceLink) return response, err } @@ -21265,6 +22474,8 @@ func (client VirtualNetworkClient) updatePrivateAccessGateway(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateAccessGateway/UpdatePrivateAccessGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdatePrivateAccessGateway", apiReferenceLink) return response, err } @@ -21316,6 +22527,8 @@ func (client VirtualNetworkClient) updatePrivateEndpoint(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateEndpoint/UpdatePrivateEndpoint" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdatePrivateEndpoint", apiReferenceLink) return response, err } @@ -21374,6 +22587,8 @@ func (client VirtualNetworkClient) updatePrivateIp(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIp/UpdatePrivateIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdatePrivateIp", apiReferenceLink) return response, err } @@ -21381,7 +22596,7 @@ func (client VirtualNetworkClient) updatePrivateIp(ctx context.Context, request return response, err } -// UpdatePrivateIpNextHop Updates the nextHop configuration for the specified private IP. +// UpdatePrivateIpNextHop Updates the nextHop configuration for the specified private IP or IPv6. func (client VirtualNetworkClient) UpdatePrivateIpNextHop(ctx context.Context, request UpdatePrivateIpNextHopRequest) (response UpdatePrivateIpNextHopResponse, err error) { var ociResponse common.OCIResponse policy := common.NoRetryPolicy() @@ -21425,6 +22640,8 @@ func (client VirtualNetworkClient) updatePrivateIpNextHop(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PrivateIpNextHop/UpdatePrivateIpNextHop" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdatePrivateIpNextHop", apiReferenceLink) return response, err } @@ -21507,6 +22724,8 @@ func (client VirtualNetworkClient) updatePublicIp(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIp/UpdatePublicIp" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdatePublicIp", apiReferenceLink) return response, err } @@ -21558,6 +22777,8 @@ func (client VirtualNetworkClient) updatePublicIpPool(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/PublicIpPool/UpdatePublicIpPool" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdatePublicIpPool", apiReferenceLink) return response, err } @@ -21566,9 +22787,10 @@ func (client VirtualNetworkClient) updatePublicIpPool(ctx context.Context, reque } // UpdateRemotePeeringConnection Updates the specified remote peering connection (RPC). +// A default retry strategy applies to this operation UpdateRemotePeeringConnection() func (client VirtualNetworkClient) UpdateRemotePeeringConnection(ctx context.Context, request UpdateRemotePeeringConnectionRequest) (response UpdateRemotePeeringConnectionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -21609,6 +22831,66 @@ func (client VirtualNetworkClient) updateRemotePeeringConnection(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RemotePeeringConnection/UpdateRemotePeeringConnection" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateRemotePeeringConnection", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateResourcePool Update the Relevant Resource Pool +func (client VirtualNetworkClient) UpdateResourcePool(ctx context.Context, request UpdateResourcePoolRequest) (response UpdateResourcePoolResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateResourcePool, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateResourcePoolResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateResourcePoolResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateResourcePoolResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateResourcePoolResponse") + } + return +} + +// updateResourcePool implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) updateResourcePool(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/internal/resourcePools/{resourcePoolIdOrInstanceId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateResourcePoolResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateResourcePool", apiReferenceLink) return response, err } @@ -21662,6 +22944,8 @@ func (client VirtualNetworkClient) updateRouteTable(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/RouteTable/UpdateRouteTable" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateRouteTable", apiReferenceLink) return response, err } @@ -21713,6 +22997,8 @@ func (client VirtualNetworkClient) updateScanProxy(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ScanProxy/UpdateScanProxy" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateScanProxy", apiReferenceLink) return response, err } @@ -21767,6 +23053,8 @@ func (client VirtualNetworkClient) updateSecurityList(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/SecurityList/UpdateSecurityList" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateSecurityList", apiReferenceLink) return response, err } @@ -21819,6 +23107,66 @@ func (client VirtualNetworkClient) updateServiceGateway(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ServiceGateway/UpdateServiceGateway" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateServiceGateway", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateSmtpPortActionUnblock Unblock smtp port for email service +func (client VirtualNetworkClient) UpdateSmtpPortActionUnblock(ctx context.Context, request UpdateSmtpPortActionUnblockRequest) (response UpdateSmtpPortActionUnblockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateSmtpPortActionUnblock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateSmtpPortActionUnblockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateSmtpPortActionUnblockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateSmtpPortActionUnblockResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateSmtpPortActionUnblockResponse") + } + return +} + +// updateSmtpPortActionUnblock implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) updateSmtpPortActionUnblock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/internal/smtpPort/{tenancyId}/actions/unblock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateSmtpPortActionUnblockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateSmtpPortActionUnblock", apiReferenceLink) return response, err } @@ -21870,6 +23218,8 @@ func (client VirtualNetworkClient) updateSubnet(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Subnet/UpdateSubnet" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateSubnet", apiReferenceLink) return response, err } @@ -21880,9 +23230,10 @@ func (client VirtualNetworkClient) updateSubnet(ctx context.Context, request com // UpdateTunnelCpeDeviceConfig Creates or updates the set of CPE configuration answers for the specified tunnel. // The answers correlate to the questions that are specific to the CPE device type (see the // `parameters` attribute of CpeDeviceShapeDetail). +// A default retry strategy applies to this operation UpdateTunnelCpeDeviceConfig() func (client VirtualNetworkClient) UpdateTunnelCpeDeviceConfig(ctx context.Context, request UpdateTunnelCpeDeviceConfigRequest) (response UpdateTunnelCpeDeviceConfigResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -21928,6 +23279,8 @@ func (client VirtualNetworkClient) updateTunnelCpeDeviceConfig(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/TunnelCpeDeviceConfig/UpdateTunnelCpeDeviceConfig" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateTunnelCpeDeviceConfig", apiReferenceLink) return response, err } @@ -21979,6 +23332,8 @@ func (client VirtualNetworkClient) updateVcn(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vcn/UpdateVcn" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVcn", apiReferenceLink) return response, err } @@ -22030,6 +23385,8 @@ func (client VirtualNetworkClient) updateVcnDrg(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/UpdateVcnDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVcnDrg", apiReferenceLink) return response, err } @@ -22082,6 +23439,8 @@ func (client VirtualNetworkClient) updateVcnDrgAttachment(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/DrgAttachment/UpdateVcnDrgAttachment" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVcnDrgAttachment", apiReferenceLink) return response, err } @@ -22111,9 +23470,10 @@ func (client VirtualNetworkClient) updateVcnDrgAttachment(ctx context.Context, r // Updating the list of prefixes does NOT cause the BGP session to go down. However, // Oracle must verify the customer's ownership of each added prefix before // traffic for that prefix will flow across the virtual circuit. +// A default retry strategy applies to this operation UpdateVirtualCircuit() func (client VirtualNetworkClient) UpdateVirtualCircuit(ctx context.Context, request UpdateVirtualCircuitRequest) (response UpdateVirtualCircuitResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -22154,6 +23514,8 @@ func (client VirtualNetworkClient) updateVirtualCircuit(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VirtualCircuit/UpdateVirtualCircuit" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVirtualCircuit", apiReferenceLink) return response, err } @@ -22206,6 +23568,8 @@ func (client VirtualNetworkClient) updateVlan(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vlan/UpdateVlan" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVlan", apiReferenceLink) return response, err } @@ -22257,6 +23621,8 @@ func (client VirtualNetworkClient) updateVnic(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Vnic/UpdateVnic" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVnic", apiReferenceLink) return response, err } @@ -22313,6 +23679,8 @@ func (client VirtualNetworkClient) updateVnicShape(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnicAttachment/UpdateVnicShape" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVnicShape", apiReferenceLink) return response, err } @@ -22364,6 +23732,8 @@ func (client VirtualNetworkClient) updateVnicWorker(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/VnicWorker/UpdateVnicWorker" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVnicWorker", apiReferenceLink) return response, err } @@ -22415,6 +23785,8 @@ func (client VirtualNetworkClient) updateVtap(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpdateVtap", apiReferenceLink) return response, err } @@ -22472,6 +23844,8 @@ func (client VirtualNetworkClient) upgradeDrg(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Drg/UpgradeDrg" + err = common.PostProcessServiceError(err, "VirtualNetwork", "UpgradeDrg", apiReferenceLink) return response, err } @@ -22524,6 +23898,64 @@ func (client VirtualNetworkClient) validateByoipRange(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/ValidateByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ValidateByoipRange", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ValidateCreateAndAttachVnicRequest Validates create and attach VNIC request. Used by internal customers like Compute as a fail fast check to catch +// any potential errors related to parameter validations, limits, etc. that might get hit during actual calls to +// create and attach VNIC. +// Note that success during this validation call does not guarantee success during the acutal create and attach calls. +func (client VirtualNetworkClient) ValidateCreateAndAttachVnicRequest(ctx context.Context, request ValidateCreateAndAttachVnicRequestRequest) (response ValidateCreateAndAttachVnicRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.validateCreateAndAttachVnicRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateCreateAndAttachVnicRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateCreateAndAttachVnicRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateCreateAndAttachVnicRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateCreateAndAttachVnicRequestResponse") + } + return +} + +// validateCreateAndAttachVnicRequest implements the OCIOperation interface (enables retrying operations) +func (client VirtualNetworkClient) validateCreateAndAttachVnicRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/internalVnics/validateCreateAndAttachVnicRequest", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateCreateAndAttachVnicRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/InternalVnic/ValidateCreateAndAttachVnicRequest" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ValidateCreateAndAttachVnicRequest", apiReferenceLink) return response, err } @@ -22575,6 +24007,8 @@ func (client VirtualNetworkClient) validateDrgRoutes(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ValidationStatusInfo/ValidateDrgRoutes" + err = common.PostProcessServiceError(err, "VirtualNetwork", "ValidateDrgRoutes", apiReferenceLink) return response, err } @@ -22626,6 +24060,8 @@ func (client VirtualNetworkClient) withdrawByoipRange(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/iaas/20160918/ByoipRange/WithdrawByoipRange" + err = common.PostProcessServiceError(err, "VirtualNetwork", "WithdrawByoipRange", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/cpe.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go index 6048a5bff8..b77ea9347e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cpe.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Cpe An object you create when setting up a Site-to-Site VPN between your on-premises network @@ -72,3 +74,15 @@ type Cpe struct { func (m Cpe) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Cpe) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_answer.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_answer.go new file mode 100644 index 0000000000..cf28e28ea1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_answer.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpeDeviceConfigAnswer An individual answer to a CPE device question. +// The answers correlate to the questions that are specific to the CPE device type (see the +// `parameters` attribute of CpeDeviceShapeDetail). +type CpeDeviceConfigAnswer struct { + + // A string that identifies the question to be answered. See the `key` attribute in + // CpeDeviceConfigQuestion. + Key *string `mandatory:"false" json:"key"` + + // The answer to the question. + Value *string `mandatory:"false" json:"value"` +} + +func (m CpeDeviceConfigAnswer) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpeDeviceConfigAnswer) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_question.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_question.go new file mode 100644 index 0000000000..d106c62460 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_config_question.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpeDeviceConfigQuestion An individual question that the customer can answer about the CPE device. +// The customer provides answers to these questions in +// UpdateTunnelCpeDeviceConfig. +type CpeDeviceConfigQuestion struct { + + // A string that identifies the question. + Key *string `mandatory:"false" json:"key"` + + // A descriptive label for the question (for example, to display in a form in a graphical interface). + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A description or explanation of the question, to help the customer answer accurately. + Explanation *string `mandatory:"false" json:"explanation"` +} + +func (m CpeDeviceConfigQuestion) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpeDeviceConfigQuestion) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_info.go new file mode 100644 index 0000000000..69cf14831b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_info.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpeDeviceInfo Basic information about a particular CPE device type. +type CpeDeviceInfo struct { + + // The vendor that makes the CPE device. + Vendor *string `mandatory:"false" json:"vendor"` + + // The platform or software version of the CPE device. + PlatformSoftwareVersion *string `mandatory:"false" json:"platformSoftwareVersion"` +} + +func (m CpeDeviceInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpeDeviceInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_detail.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_detail.go new file mode 100644 index 0000000000..90066b535d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_detail.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpeDeviceShapeDetail The detailed information about a particular CPE device type. Compare with +// CpeDeviceShapeSummary. +type CpeDeviceShapeDetail struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. + // This value uniquely identifies the type of CPE device. + CpeDeviceShapeId *string `mandatory:"false" json:"cpeDeviceShapeId"` + + CpeDeviceInfo *CpeDeviceInfo `mandatory:"false" json:"cpeDeviceInfo"` + + // For certain CPE devices types, the customer can provide answers to + // questions that are specific to the device type. This attribute contains + // a list of those questions. The Networking service merges the answers with + // other information and renders a set of CPE configuration content. To + // provide the answers, use + // UpdateTunnelCpeDeviceConfig. + Parameters []CpeDeviceConfigQuestion `mandatory:"false" json:"parameters"` + + // A template of CPE device configuration information that will be merged with the customer's + // answers to the questions to render the final CPE device configuration content. Also see: + // * GetCpeDeviceConfigContent + // * GetIpsecCpeDeviceConfigContent + // * GetTunnelCpeDeviceConfigContent + Template *string `mandatory:"false" json:"template"` +} + +func (m CpeDeviceShapeDetail) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpeDeviceShapeDetail) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_summary.go new file mode 100644 index 0000000000..ba154e9b15 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cpe_device_shape_summary.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CpeDeviceShapeSummary A summary of information about a particular CPE device type. Compare with +// CpeDeviceShapeDetail. +type CpeDeviceShapeSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device shape. + // This value uniquely identifies the type of CPE device. + Id *string `mandatory:"false" json:"id"` + + CpeDeviceInfo *CpeDeviceInfo `mandatory:"false" json:"cpeDeviceInfo"` +} + +func (m CpeDeviceShapeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CpeDeviceShapeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_details.go new file mode 100644 index 0000000000..b69a9c4d80 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateAppCatalogSubscriptionDetails details for creating a subscription for a listing resource version. +type CreateAppCatalogSubscriptionDetails struct { + + // The compartmentID for the subscription. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the listing. + ListingId *string `mandatory:"true" json:"listingId"` + + // Listing resource version. + ListingResourceVersion *string `mandatory:"true" json:"listingResourceVersion"` + + // Oracle TOU link + OracleTermsOfUseLink *string `mandatory:"true" json:"oracleTermsOfUseLink"` + + // Date and time the agreements were retrieved, in RFC3339 (https://tools.ietf.org/html/rfc3339) format. + // Example: `2018-03-20T12:32:53.532Z` + TimeRetrieved *common.SDKTime `mandatory:"true" json:"timeRetrieved"` + + // A generated signature for this listing resource version retrieved the agreements API. + Signature *string `mandatory:"true" json:"signature"` + + // EULA link + EulaLink *string `mandatory:"false" json:"eulaLink"` +} + +func (m CreateAppCatalogSubscriptionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateAppCatalogSubscriptionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_request_response.go index 79bfe6c94a..2bf2df35c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_app_catalog_subscription_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_app_catalog_subscription_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateAppCatalogSubscriptionRequest wrapper for the CreateAppCatalogSubscription operation @@ -38,6 +40,10 @@ func (request CreateAppCatalogSubscriptionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateAppCatalogSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateAppCatalogSubscriptionRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateAppCatalogSubscriptionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateAppCatalogSubscriptionResponse wrapper for the CreateAppCatalogSubscription operation type CreateAppCatalogSubscriptionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_details.go new file mode 100644 index 0000000000..8d4b65a3e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_details.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateBootVolumeBackupDetails The representation of CreateBootVolumeBackupDetails +type CreateBootVolumeBackupDetails struct { + + // The OCID of the boot volume that needs to be backed up. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The type of backup to create. If omitted, defaults to incremental. + Type CreateBootVolumeBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` +} + +func (m CreateBootVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateBootVolumeBackupDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetCreateBootVolumeBackupDetailsTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateBootVolumeBackupDetailsTypeEnum Enum with underlying type: string +type CreateBootVolumeBackupDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateBootVolumeBackupDetailsTypeEnum +const ( + CreateBootVolumeBackupDetailsTypeFull CreateBootVolumeBackupDetailsTypeEnum = "FULL" + CreateBootVolumeBackupDetailsTypeIncremental CreateBootVolumeBackupDetailsTypeEnum = "INCREMENTAL" +) + +var mappingCreateBootVolumeBackupDetailsTypeEnum = map[string]CreateBootVolumeBackupDetailsTypeEnum{ + "FULL": CreateBootVolumeBackupDetailsTypeFull, + "INCREMENTAL": CreateBootVolumeBackupDetailsTypeIncremental, +} + +var mappingCreateBootVolumeBackupDetailsTypeEnumLowerCase = map[string]CreateBootVolumeBackupDetailsTypeEnum{ + "full": CreateBootVolumeBackupDetailsTypeFull, + "incremental": CreateBootVolumeBackupDetailsTypeIncremental, +} + +// GetCreateBootVolumeBackupDetailsTypeEnumValues Enumerates the set of values for CreateBootVolumeBackupDetailsTypeEnum +func GetCreateBootVolumeBackupDetailsTypeEnumValues() []CreateBootVolumeBackupDetailsTypeEnum { + values := make([]CreateBootVolumeBackupDetailsTypeEnum, 0) + for _, v := range mappingCreateBootVolumeBackupDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateBootVolumeBackupDetailsTypeEnumStringValues Enumerates the set of values in String for CreateBootVolumeBackupDetailsTypeEnum +func GetCreateBootVolumeBackupDetailsTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingCreateBootVolumeBackupDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateBootVolumeBackupDetailsTypeEnum(val string) (CreateBootVolumeBackupDetailsTypeEnum, bool) { + enum, ok := mappingCreateBootVolumeBackupDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_request_response.go index e3351c7b2e..a2191ee065 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateBootVolumeBackupRequest wrapper for the CreateBootVolumeBackup operation @@ -38,6 +40,10 @@ func (request CreateBootVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateBootVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateBootVolumeBackupResponse wrapper for the CreateBootVolumeBackup operation type CreateBootVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_details.go new file mode 100644 index 0000000000..fda6cb2f75 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_details.go @@ -0,0 +1,170 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateBootVolumeDetails The representation of CreateBootVolumeDetails +type CreateBootVolumeDetails struct { + + // The OCID of the compartment that contains the boot volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + SourceDetails BootVolumeSourceDetails `mandatory:"true" json:"sourceDetails"` + + // The availability domain of the volume. Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // If provided, specifies the ID of the boot volume backup policy to assign to the newly + // created boot volume. If omitted, no policy will be assigned. + BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID of the Vault service key to assign as the master encryption key + // for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The size of the volume in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `10`: Represents the Balanced option. + // * `20`: Represents the Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // Specifies whether the auto-tune performance is enabled for this boot volume. This field is deprecated. + // Use the `DetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The list of boot volume replicas to be enabled for this boot volume + // in the specified destination availability domains. + BootVolumeReplicas []BootVolumeReplicaDetails `mandatory:"false" json:"bootVolumeReplicas"` + + // The list of autotune policies to be enabled for this volume. + AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` +} + +func (m CreateBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + AvailabilityDomain *string `json:"availabilityDomain"` + BackupPolicyId *string `json:"backupPolicyId"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + KmsKeyId *string `json:"kmsKeyId"` + SizeInGBs *int64 `json:"sizeInGBs"` + VpusPerGB *int64 `json:"vpusPerGB"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + BootVolumeReplicas []BootVolumeReplicaDetails `json:"bootVolumeReplicas"` + AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + CompartmentId *string `json:"compartmentId"` + SourceDetails bootvolumesourcedetails `json:"sourceDetails"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.AvailabilityDomain = model.AvailabilityDomain + + m.BackupPolicyId = model.BackupPolicyId + + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.KmsKeyId = model.KmsKeyId + + m.SizeInGBs = model.SizeInGBs + + m.VpusPerGB = model.VpusPerGB + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.BootVolumeReplicas = make([]BootVolumeReplicaDetails, len(model.BootVolumeReplicas)) + for i, n := range model.BootVolumeReplicas { + m.BootVolumeReplicas[i] = n + } + + m.AutotunePolicies = make([]AutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(AutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + m.CompartmentId = model.CompartmentId + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(BootVolumeSourceDetails) + } else { + m.SourceDetails = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go index 0b3b9da43e..58daa51d16 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_boot_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateBootVolumeRequest wrapper for the CreateBootVolume operation @@ -38,6 +40,10 @@ func (request CreateBootVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateBootVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateBootVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateBootVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateBootVolumeResponse wrapper for the CreateBootVolume operation type CreateBootVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_details.go new file mode 100644 index 0000000000..3ad77be187 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateByoipRangeDetails The information used to create a `ByoipRange` resource. +type CreateByoipRangeDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the BYOIP CIDR block. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The BYOIP CIDR block. You can assign some or all of it to a public IP pool after it is validated. + // Example: `10.0.1.0/24` + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // The BYOIPv6 CIDR block. You can assign some or all of it to a VCN after it is validated. + Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateByoipRangeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateByoipRangeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go index 019daba3ae..cdfe9c1886 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateByoipRangeRequest wrapper for the CreateByoipRange operation @@ -38,6 +40,10 @@ func (request CreateByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateByoipRangeResponse wrapper for the CreateByoipRange operation type CreateByoipRangeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_c3_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_c3_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_c3_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_c3_drg_attachment_request_response.go index a218675b0e..ac6a8a3da8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_c3_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_c3_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateC3DrgAttachmentRequest wrapper for the CreateC3DrgAttachment operation @@ -38,6 +40,10 @@ func (request CreateC3DrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateC3DrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateC3DrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateC3DrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateC3DrgAttachmentResponse wrapper for the CreateC3DrgAttachment operation type CreateC3DrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_c3_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_c3_drg_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_c3_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_c3_drg_request_response.go index a50454b586..bd0b608d69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_c3_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_c3_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateC3DrgRequest wrapper for the CreateC3Drg operation @@ -38,6 +40,10 @@ func (request CreateC3DrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateC3DrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateC3DrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateC3DrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateC3DrgResponse wrapper for the CreateC3Drg operation type CreateC3DrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_report_shape_availability_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_report_shape_availability_details.go new file mode 100644 index 0000000000..fae8234a73 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capacity_report_shape_availability_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCapacityReportShapeAvailabilityDetails The capacity availability details for the requested shapes. +type CreateCapacityReportShapeAvailabilityDetails struct { + + // The shape for the compute capacity report availability details. + InstanceShape *string `mandatory:"true" json:"instanceShape"` + + // A fault domain is a grouping of hardware and infrastructure within an availability domain. + // Each availability domain contains three fault domains. Fault domains let you distribute your + // instances so that they are not on the same physical hardware within a single availability domain. + // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect + // instances in other fault domains. + // If you do not specify the fault domain, the capacity report will be applicable to all fault domains. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + InstanceShapeConfig *CapacityReportInstanceShapeConfig `mandatory:"false" json:"instanceShapeConfig"` +} + +func (m CreateCapacityReportShapeAvailabilityDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCapacityReportShapeAvailabilityDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_details.go new file mode 100644 index 0000000000..4cdf122d13 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_details.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCaptureFilterDetails A capture filter contains a set of rules governing what traffic a VTAP mirrors. +type CreateCaptureFilterDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the capture filter. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Indicates which service will use this capture filter + FilterType CreateCaptureFilterDetailsFilterTypeEnum `mandatory:"true" json:"filterType"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The set of rules governing what traffic a VTAP mirrors. + VtapCaptureFilterRules []VtapCaptureFilterRuleDetails `mandatory:"false" json:"vtapCaptureFilterRules"` +} + +func (m CreateCaptureFilterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCaptureFilterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateCaptureFilterDetailsFilterTypeEnum(string(m.FilterType)); !ok && m.FilterType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FilterType: %s. Supported values are: %s.", m.FilterType, strings.Join(GetCreateCaptureFilterDetailsFilterTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateCaptureFilterDetailsFilterTypeEnum Enum with underlying type: string +type CreateCaptureFilterDetailsFilterTypeEnum string + +// Set of constants representing the allowable values for CreateCaptureFilterDetailsFilterTypeEnum +const ( + CreateCaptureFilterDetailsFilterTypeVtap CreateCaptureFilterDetailsFilterTypeEnum = "VTAP" +) + +var mappingCreateCaptureFilterDetailsFilterTypeEnum = map[string]CreateCaptureFilterDetailsFilterTypeEnum{ + "VTAP": CreateCaptureFilterDetailsFilterTypeVtap, +} + +var mappingCreateCaptureFilterDetailsFilterTypeEnumLowerCase = map[string]CreateCaptureFilterDetailsFilterTypeEnum{ + "vtap": CreateCaptureFilterDetailsFilterTypeVtap, +} + +// GetCreateCaptureFilterDetailsFilterTypeEnumValues Enumerates the set of values for CreateCaptureFilterDetailsFilterTypeEnum +func GetCreateCaptureFilterDetailsFilterTypeEnumValues() []CreateCaptureFilterDetailsFilterTypeEnum { + values := make([]CreateCaptureFilterDetailsFilterTypeEnum, 0) + for _, v := range mappingCreateCaptureFilterDetailsFilterTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateCaptureFilterDetailsFilterTypeEnumStringValues Enumerates the set of values in String for CreateCaptureFilterDetailsFilterTypeEnum +func GetCreateCaptureFilterDetailsFilterTypeEnumStringValues() []string { + return []string{ + "VTAP", + } +} + +// GetMappingCreateCaptureFilterDetailsFilterTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateCaptureFilterDetailsFilterTypeEnum(val string) (CreateCaptureFilterDetailsFilterTypeEnum, bool) { + enum, ok := mappingCreateCaptureFilterDetailsFilterTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go index 615adc12eb..8415f2d82c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_capture_filter_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCaptureFilterRequest wrapper for the CreateCaptureFilter operation @@ -38,6 +40,10 @@ func (request CreateCaptureFilterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCaptureFilterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCaptureFilterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCaptureFilterResponse wrapper for the CreateCaptureFilter operation type CreateCaptureFilterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_details.go new file mode 100644 index 0000000000..a158fca500 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_details.go @@ -0,0 +1,257 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClientVpnDetails A request to create clientVpn. +type CreateClientVpnDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that user sent request. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attachedSubnet (VNIC) in customer tenancy. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // A list of accessible subnets from this clientVpnEnpoint. + AccessibleSubnetCidrs []string `mandatory:"true" json:"accessibleSubnetCidrs"` + + DnsConfig *DnsConfigDetails `mandatory:"true" json:"dnsConfig"` + + // Whether re-route Internet traffic or not. + IsRerouteEnabled *bool `mandatory:"true" json:"isRerouteEnabled"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A limit that allows the maximum number of VPN concurrent connections. + MaxConnections *int `mandatory:"false" json:"maxConnections"` + + // A subnet for openVPN clients to access servers. Default is 172.27.224.0/20 + ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` + + // Allowed values: + // * `NAT`: NAT mode supports the one-way access. In NAT mode, client can access the Internet from server endpoint + // but server endpoint cannot access the Internet from client. + // * `ROUTING`: ROUTING mode supports the two-way access. In ROUTING mode, client and server endpoint can access the + // Internet to each other. + AddressingMode CreateClientVpnDetailsAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` + + // Allowed values: + // * `LOCAL`: Local authentication mode that applies users and password to get authentication through the server. + // * `RADIUS`: RADIUS authentication mode applies users and password to get authentication through the RADIUS server. + // * `LDAP`: LDAP authentication mode that applies users and passwords to get authentication through the LDAP server. + AuthenticationMode CreateClientVpnDetailsAuthenticationModeEnum `mandatory:"false" json:"authenticationMode,omitempty"` + + RadiusConfig *RadiusConfigDetails `mandatory:"false" json:"radiusConfig"` + + LdapConfig *LdapConfigDetails `mandatory:"false" json:"ldapConfig"` + + SslCert SslCertDetails `mandatory:"false" json:"sslCert"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateClientVpnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClientVpnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateClientVpnDetailsAddressingModeEnum(string(m.AddressingMode)); !ok && m.AddressingMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AddressingMode: %s. Supported values are: %s.", m.AddressingMode, strings.Join(GetCreateClientVpnDetailsAddressingModeEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateClientVpnDetailsAuthenticationModeEnum(string(m.AuthenticationMode)); !ok && m.AuthenticationMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthenticationMode: %s. Supported values are: %s.", m.AuthenticationMode, strings.Join(GetCreateClientVpnDetailsAuthenticationModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateClientVpnDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + MaxConnections *int `json:"maxConnections"` + ClientSubnetCidr *string `json:"clientSubnetCidr"` + AddressingMode CreateClientVpnDetailsAddressingModeEnum `json:"addressingMode"` + AuthenticationMode CreateClientVpnDetailsAuthenticationModeEnum `json:"authenticationMode"` + RadiusConfig *RadiusConfigDetails `json:"radiusConfig"` + LdapConfig *LdapConfigDetails `json:"ldapConfig"` + SslCert sslcertdetails `json:"sslCert"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + CompartmentId *string `json:"compartmentId"` + SubnetId *string `json:"subnetId"` + AccessibleSubnetCidrs []string `json:"accessibleSubnetCidrs"` + DnsConfig *DnsConfigDetails `json:"dnsConfig"` + IsRerouteEnabled *bool `json:"isRerouteEnabled"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.MaxConnections = model.MaxConnections + + m.ClientSubnetCidr = model.ClientSubnetCidr + + m.AddressingMode = model.AddressingMode + + m.AuthenticationMode = model.AuthenticationMode + + m.RadiusConfig = model.RadiusConfig + + m.LdapConfig = model.LdapConfig + + nn, e = model.SslCert.UnmarshalPolymorphicJSON(model.SslCert.JsonData) + if e != nil { + return + } + if nn != nil { + m.SslCert = nn.(SslCertDetails) + } else { + m.SslCert = nil + } + + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + m.CompartmentId = model.CompartmentId + + m.SubnetId = model.SubnetId + + m.AccessibleSubnetCidrs = make([]string, len(model.AccessibleSubnetCidrs)) + for i, n := range model.AccessibleSubnetCidrs { + m.AccessibleSubnetCidrs[i] = n + } + + m.DnsConfig = model.DnsConfig + + m.IsRerouteEnabled = model.IsRerouteEnabled + + return +} + +// CreateClientVpnDetailsAddressingModeEnum Enum with underlying type: string +type CreateClientVpnDetailsAddressingModeEnum string + +// Set of constants representing the allowable values for CreateClientVpnDetailsAddressingModeEnum +const ( + CreateClientVpnDetailsAddressingModeNat CreateClientVpnDetailsAddressingModeEnum = "NAT" + CreateClientVpnDetailsAddressingModeRouting CreateClientVpnDetailsAddressingModeEnum = "ROUTING" +) + +var mappingCreateClientVpnDetailsAddressingModeEnum = map[string]CreateClientVpnDetailsAddressingModeEnum{ + "NAT": CreateClientVpnDetailsAddressingModeNat, + "ROUTING": CreateClientVpnDetailsAddressingModeRouting, +} + +var mappingCreateClientVpnDetailsAddressingModeEnumLowerCase = map[string]CreateClientVpnDetailsAddressingModeEnum{ + "nat": CreateClientVpnDetailsAddressingModeNat, + "routing": CreateClientVpnDetailsAddressingModeRouting, +} + +// GetCreateClientVpnDetailsAddressingModeEnumValues Enumerates the set of values for CreateClientVpnDetailsAddressingModeEnum +func GetCreateClientVpnDetailsAddressingModeEnumValues() []CreateClientVpnDetailsAddressingModeEnum { + values := make([]CreateClientVpnDetailsAddressingModeEnum, 0) + for _, v := range mappingCreateClientVpnDetailsAddressingModeEnum { + values = append(values, v) + } + return values +} + +// GetCreateClientVpnDetailsAddressingModeEnumStringValues Enumerates the set of values in String for CreateClientVpnDetailsAddressingModeEnum +func GetCreateClientVpnDetailsAddressingModeEnumStringValues() []string { + return []string{ + "NAT", + "ROUTING", + } +} + +// GetMappingCreateClientVpnDetailsAddressingModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateClientVpnDetailsAddressingModeEnum(val string) (CreateClientVpnDetailsAddressingModeEnum, bool) { + enum, ok := mappingCreateClientVpnDetailsAddressingModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateClientVpnDetailsAuthenticationModeEnum Enum with underlying type: string +type CreateClientVpnDetailsAuthenticationModeEnum string + +// Set of constants representing the allowable values for CreateClientVpnDetailsAuthenticationModeEnum +const ( + CreateClientVpnDetailsAuthenticationModeLocal CreateClientVpnDetailsAuthenticationModeEnum = "LOCAL" + CreateClientVpnDetailsAuthenticationModeRadius CreateClientVpnDetailsAuthenticationModeEnum = "RADIUS" + CreateClientVpnDetailsAuthenticationModeLdap CreateClientVpnDetailsAuthenticationModeEnum = "LDAP" +) + +var mappingCreateClientVpnDetailsAuthenticationModeEnum = map[string]CreateClientVpnDetailsAuthenticationModeEnum{ + "LOCAL": CreateClientVpnDetailsAuthenticationModeLocal, + "RADIUS": CreateClientVpnDetailsAuthenticationModeRadius, + "LDAP": CreateClientVpnDetailsAuthenticationModeLdap, +} + +var mappingCreateClientVpnDetailsAuthenticationModeEnumLowerCase = map[string]CreateClientVpnDetailsAuthenticationModeEnum{ + "local": CreateClientVpnDetailsAuthenticationModeLocal, + "radius": CreateClientVpnDetailsAuthenticationModeRadius, + "ldap": CreateClientVpnDetailsAuthenticationModeLdap, +} + +// GetCreateClientVpnDetailsAuthenticationModeEnumValues Enumerates the set of values for CreateClientVpnDetailsAuthenticationModeEnum +func GetCreateClientVpnDetailsAuthenticationModeEnumValues() []CreateClientVpnDetailsAuthenticationModeEnum { + values := make([]CreateClientVpnDetailsAuthenticationModeEnum, 0) + for _, v := range mappingCreateClientVpnDetailsAuthenticationModeEnum { + values = append(values, v) + } + return values +} + +// GetCreateClientVpnDetailsAuthenticationModeEnumStringValues Enumerates the set of values in String for CreateClientVpnDetailsAuthenticationModeEnum +func GetCreateClientVpnDetailsAuthenticationModeEnumStringValues() []string { + return []string{ + "LOCAL", + "RADIUS", + "LDAP", + } +} + +// GetMappingCreateClientVpnDetailsAuthenticationModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateClientVpnDetailsAuthenticationModeEnum(val string) (CreateClientVpnDetailsAuthenticationModeEnum, bool) { + enum, ok := mappingCreateClientVpnDetailsAuthenticationModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_request_response.go index 46c3f132f7..a2b03744a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateClientVpnRequest wrapper for the CreateClientVpn operation @@ -38,6 +40,10 @@ func (request CreateClientVpnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateClientVpnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateClientVpnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateClientVpnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateClientVpnResponse wrapper for the CreateClientVpn operation type CreateClientVpnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_details.go new file mode 100644 index 0000000000..dc632b6492 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_details.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClientVpnUserDetails The request to create clientVpnUser. +type CreateClientVpnUserDetails struct { + + // The username of the user want to create. + UserName *string `mandatory:"true" json:"userName"` + + // The password of the user want to create. + Password *string `mandatory:"false" json:"password"` + + // Whether to log in the user by certificate-authentication only or not. + IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` +} + +func (m CreateClientVpnUserDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClientVpnUserDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_request_response.go index 102e110672..6bfc626b3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_client_vpn_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_client_vpn_user_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateClientVpnUserRequest wrapper for the CreateClientVpnUser operation @@ -15,7 +17,7 @@ type CreateClientVpnUserRequest struct { // Details for creating a `ClientVpnUser`. CreateClientVpnUserDetails `contributesTo:"body"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -41,6 +43,10 @@ func (request CreateClientVpnUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateClientVpnUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateClientVpnUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateClientVpnUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateClientVpnUserResponse wrapper for the CreateClientVpnUser operation type CreateClientVpnUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_details.go new file mode 100644 index 0000000000..fb4dafcc0f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClusterNetworkDetails The data to create a cluster network. +type CreateClusterNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // containing the cluster network. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The data to create the instance pools in the cluster network. + // Each cluster network can have one instance pool. + InstancePools []CreateClusterNetworkInstancePoolDetails `mandatory:"true" json:"instancePools"` + + PlacementConfiguration *ClusterNetworkPlacementConfigurationDetails `mandatory:"true" json:"placementConfiguration"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateClusterNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClusterNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_instance_pool_details.go new file mode 100644 index 0000000000..ef55a3df55 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_instance_pool_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateClusterNetworkInstancePoolDetails The data to create an instance pool in a cluster network. +type CreateClusterNetworkInstancePoolDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration + // associated with the instance pool. + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The number of instances that should be in the instance pool. + Size *int `mandatory:"true" json:"size"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateClusterNetworkInstancePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateClusterNetworkInstancePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go index 0612068476..99616b7018 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cluster_network_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateClusterNetworkRequest wrapper for the CreateClusterNetwork operation @@ -38,6 +40,10 @@ func (request CreateClusterNetworkRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateClusterNetworkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateClusterNetworkRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateClusterNetworkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateClusterNetworkResponse wrapper for the CreateClusterNetwork operation type CreateClusterNetworkResponse struct { @@ -69,7 +86,8 @@ type CreateClusterNetworkResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_details.go new file mode 100644 index 0000000000..0e503749e6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateComputeCapacityReportDetails The details for creating a new compute capacity availability report. +type CreateComputeCapacityReportDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the compartment. This should always be the root + // compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain of this compute capacity report. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The capacity configurations for the capacity report. + ShapeAvailabilities []CreateCapacityReportShapeAvailabilityDetails `mandatory:"true" json:"shapeAvailabilities"` +} + +func (m CreateComputeCapacityReportDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateComputeCapacityReportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_request_response.go new file mode 100644 index 0000000000..2f822d024b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_report_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateComputeCapacityReportRequest wrapper for the CreateComputeCapacityReport operation +type CreateComputeCapacityReportRequest struct { + + // Details for creating a new compute capacity report. + CreateComputeCapacityReportDetails `contributesTo:"body"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateComputeCapacityReportRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateComputeCapacityReportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateComputeCapacityReportRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateComputeCapacityReportRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateComputeCapacityReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateComputeCapacityReportResponse wrapper for the CreateComputeCapacityReport operation +type CreateComputeCapacityReportResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeCapacityReport instance + ComputeCapacityReport `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateComputeCapacityReportResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateComputeCapacityReportResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_capacity_reservation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_capacity_reservation_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go index 6bb36f2424..88248c7d0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_capacity_reservation_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateComputeCapacityReservationDetails The details for creating a new compute capacity reservation. @@ -54,3 +56,15 @@ type CreateComputeCapacityReservationDetails struct { func (m CreateComputeCapacityReservationDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateComputeCapacityReservationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_capacity_reservation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_capacity_reservation_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_request_response.go index 136e5a579c..ffe295a799 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_capacity_reservation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_capacity_reservation_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateComputeCapacityReservationRequest wrapper for the CreateComputeCapacityReservation operation @@ -39,6 +41,10 @@ func (request CreateComputeCapacityReservationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateComputeCapacityReservationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request CreateComputeCapacityReservationRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateComputeCapacityReservationResponse wrapper for the CreateComputeCapacityReservation operation type CreateComputeCapacityReservationResponse struct { @@ -70,7 +87,8 @@ type CreateComputeCapacityReservationResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_details.go new file mode 100644 index 0000000000..c80df638f4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_details.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateComputeClusterDetails The data for creating a compute cluster, which is an empty remote direct memory access (RDMA) network group. +// After the compute cluster is created, you can use the compute cluster's OCID with the +// LaunchInstance operation to create instances in the compute cluster. +// Compute clusters allow you to manage instances in the cluster individually. +// For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). +// For details about creating a cluster network that uses intance pools to manage groups of identical instances, +// see CreateClusterNetworkDetails. +type CreateComputeClusterDetails struct { + + // The availability domain that the compute cluster is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains this compute cluster. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateComputeClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateComputeClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_request_response.go new file mode 100644 index 0000000000..a6abee2e54 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_cluster_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateComputeClusterRequest wrapper for the CreateComputeCluster operation +type CreateComputeClusterRequest struct { + + // Details for creating a compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm), which is a remote direct memory access (RDMA) network group. + // When first created, the compute cluster is empty. + // After the compute cluster is created, you can use the compute cluster's OCID with the LaunchInstance + // operation to create instances in the compute cluster. + // Compute clusters allow you to manage instances in the cluster individually. + // For details about creating a cluster network that uses intance pools to manage groups of identical instances, + // see CreateClusterNetworkDetails. + CreateComputeClusterDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateComputeClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateComputeClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateComputeClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateComputeClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateComputeClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateComputeClusterResponse wrapper for the CreateComputeCluster operation +type CreateComputeClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeCluster instance + ComputeCluster `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateComputeClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateComputeClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_image_capability_schema_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_image_capability_schema_details.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_image_capability_schema_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_image_capability_schema_details.go index f447d39443..0ab38f33bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_image_capability_schema_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_image_capability_schema_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateComputeImageCapabilitySchemaDetails Create Image Capability Schema for an image. @@ -52,6 +54,18 @@ func (m CreateComputeImageCapabilitySchemaDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateComputeImageCapabilitySchemaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *CreateComputeImageCapabilitySchemaDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_image_capability_schema_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_image_capability_schema_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_image_capability_schema_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_image_capability_schema_request_response.go index 8fe007e149..306f9ccfed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_compute_image_capability_schema_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_compute_image_capability_schema_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateComputeImageCapabilitySchemaRequest wrapper for the CreateComputeImageCapabilitySchema operation @@ -38,6 +40,10 @@ func (request CreateComputeImageCapabilitySchemaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateComputeImageCapabilitySchemaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateComputeImageCapabilitySchemaRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateComputeImageCapabilitySchemaResponse wrapper for the CreateComputeImageCapabilitySchema operation type CreateComputeImageCapabilitySchemaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cpe_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_cpe_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go index e0dfaa16ae..d696fae981 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cpe_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateCpeDetails The representation of CreateCpeDetails @@ -57,3 +59,15 @@ type CreateCpeDetails struct { func (m CreateCpeDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCpeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_cpe_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go index f6e650f5d3..42d23228e5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cpe_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCpeRequest wrapper for the CreateCpe operation @@ -38,6 +40,10 @@ func (request CreateCpeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCpeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateCpeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCpeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCpeResponse wrapper for the CreateCpe operation type CreateCpeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go index 4127b0eb3b..8c0f0644b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateCrossConnectDetails The representation of CreateCrossConnectDetails @@ -72,3 +74,15 @@ type CreateCrossConnectDetails struct { func (m CreateCrossConnectDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCrossConnectDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_details.go new file mode 100644 index 0000000000..fe6cfdd5c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_details.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCrossConnectGroupDetails The representation of CreateCrossConnectGroupDetails +type CreateCrossConnectGroupDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the cross-connect group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A reference name or identifier for the physical fiber connection that this cross-connect + // group uses. + CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + MacsecProperties *CreateMacsecProperties `mandatory:"false" json:"macsecProperties"` +} + +func (m CreateCrossConnectGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCrossConnectGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_request_response.go index 033f98647a..c0c7289009 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCrossConnectGroupRequest wrapper for the CreateCrossConnectGroup operation @@ -38,6 +40,10 @@ func (request CreateCrossConnectGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCrossConnectGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCrossConnectGroupResponse wrapper for the CreateCrossConnectGroup operation type CreateCrossConnectGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go index 8849d0be39..d5c0e99482 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_cross_connect_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCrossConnectRequest wrapper for the CreateCrossConnect operation @@ -38,6 +40,10 @@ func (request CreateCrossConnectRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCrossConnectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateCrossConnectRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCrossConnectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCrossConnectResponse wrapper for the CreateCrossConnect operation type CreateCrossConnectResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_details.go new file mode 100644 index 0000000000..c86a094b56 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_details.go @@ -0,0 +1,113 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDavDetails Details to create a Direct Attached Vnic. +type CreateDavDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Direct Attached Vnic's compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Index of NIC for Direct Attached Vnic. + NicIndex *int `mandatory:"true" json:"nicIndex"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Substrate IP address of the remote endpoint. This is a required property if + // vcnxAttachmentIds property is not defined. + RemoteEndpointSubstrateIp *string `mandatory:"false" json:"remoteEndpointSubstrateIp"` + + // The label type for Direct Attached Vnic. This is used to determine the + // label forwarding to be used by the Direct Attached Vnic. + LabelType CreateDavDetailsLabelTypeEnum `mandatory:"false" json:"labelType,omitempty"` + + // List of VCNx Attachments to a DRG. This is a required property + // if remoteEndpointSubstrateIp property is not defined. + VcnxAttachmentIds []string `mandatory:"false" json:"vcnxAttachmentIds"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateDavDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDavDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateDavDetailsLabelTypeEnum(string(m.LabelType)); !ok && m.LabelType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LabelType: %s. Supported values are: %s.", m.LabelType, strings.Join(GetCreateDavDetailsLabelTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateDavDetailsLabelTypeEnum Enum with underlying type: string +type CreateDavDetailsLabelTypeEnum string + +// Set of constants representing the allowable values for CreateDavDetailsLabelTypeEnum +const ( + CreateDavDetailsLabelTypeMpls CreateDavDetailsLabelTypeEnum = "MPLS" +) + +var mappingCreateDavDetailsLabelTypeEnum = map[string]CreateDavDetailsLabelTypeEnum{ + "MPLS": CreateDavDetailsLabelTypeMpls, +} + +var mappingCreateDavDetailsLabelTypeEnumLowerCase = map[string]CreateDavDetailsLabelTypeEnum{ + "mpls": CreateDavDetailsLabelTypeMpls, +} + +// GetCreateDavDetailsLabelTypeEnumValues Enumerates the set of values for CreateDavDetailsLabelTypeEnum +func GetCreateDavDetailsLabelTypeEnumValues() []CreateDavDetailsLabelTypeEnum { + values := make([]CreateDavDetailsLabelTypeEnum, 0) + for _, v := range mappingCreateDavDetailsLabelTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateDavDetailsLabelTypeEnumStringValues Enumerates the set of values in String for CreateDavDetailsLabelTypeEnum +func GetCreateDavDetailsLabelTypeEnumStringValues() []string { + return []string{ + "MPLS", + } +} + +// GetMappingCreateDavDetailsLabelTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateDavDetailsLabelTypeEnum(val string) (CreateDavDetailsLabelTypeEnum, bool) { + enum, ok := mappingCreateDavDetailsLabelTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_request_response.go index 3b5db9e41d..0efc4b1787 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dav_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dav_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDavRequest wrapper for the CreateDav operation @@ -38,6 +40,10 @@ func (request CreateDavRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDavRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDavRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDavRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDavResponse wrapper for the CreateDav operation type CreateDavResponse struct { @@ -63,7 +80,8 @@ type CreateDavResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dedicated_vm_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_dedicated_vm_host_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go index b16bd55ed6..44aa32acd2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dedicated_vm_host_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateDedicatedVmHostDetails The details for creating a new dedicated virtual machine host. @@ -58,3 +60,15 @@ type CreateDedicatedVmHostDetails struct { func (m CreateDedicatedVmHostDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDedicatedVmHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dedicated_vm_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_dedicated_vm_host_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_request_response.go index 240dd5ac96..05f25c3783 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dedicated_vm_host_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dedicated_vm_host_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDedicatedVmHostRequest wrapper for the CreateDedicatedVmHost operation @@ -38,6 +40,10 @@ func (request CreateDedicatedVmHostRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDedicatedVmHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDedicatedVmHostResponse wrapper for the CreateDedicatedVmHost operation type CreateDedicatedVmHostResponse struct { @@ -69,7 +86,8 @@ type CreateDedicatedVmHostResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_details.go new file mode 100644 index 0000000000..809927b80f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_details.go @@ -0,0 +1,161 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDhcpDetails The representation of CreateDhcpDetails +type CreateDhcpDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the set of DHCP options. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A set of DHCP options. + Options []DhcpOption `mandatory:"true" json:"options"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the set of DHCP options belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The search domain name type of DHCP options + DomainNameType CreateDhcpDetailsDomainNameTypeEnum `mandatory:"false" json:"domainNameType,omitempty"` +} + +func (m CreateDhcpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDhcpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateDhcpDetailsDomainNameTypeEnum(string(m.DomainNameType)); !ok && m.DomainNameType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DomainNameType: %s. Supported values are: %s.", m.DomainNameType, strings.Join(GetCreateDhcpDetailsDomainNameTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateDhcpDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DomainNameType CreateDhcpDetailsDomainNameTypeEnum `json:"domainNameType"` + CompartmentId *string `json:"compartmentId"` + Options []dhcpoption `json:"options"` + VcnId *string `json:"vcnId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DomainNameType = model.DomainNameType + + m.CompartmentId = model.CompartmentId + + m.Options = make([]DhcpOption, len(model.Options)) + for i, n := range model.Options { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Options[i] = nn.(DhcpOption) + } else { + m.Options[i] = nil + } + } + + m.VcnId = model.VcnId + + return +} + +// CreateDhcpDetailsDomainNameTypeEnum Enum with underlying type: string +type CreateDhcpDetailsDomainNameTypeEnum string + +// Set of constants representing the allowable values for CreateDhcpDetailsDomainNameTypeEnum +const ( + CreateDhcpDetailsDomainNameTypeSubnetDomain CreateDhcpDetailsDomainNameTypeEnum = "SUBNET_DOMAIN" + CreateDhcpDetailsDomainNameTypeVcnDomain CreateDhcpDetailsDomainNameTypeEnum = "VCN_DOMAIN" + CreateDhcpDetailsDomainNameTypeCustomDomain CreateDhcpDetailsDomainNameTypeEnum = "CUSTOM_DOMAIN" +) + +var mappingCreateDhcpDetailsDomainNameTypeEnum = map[string]CreateDhcpDetailsDomainNameTypeEnum{ + "SUBNET_DOMAIN": CreateDhcpDetailsDomainNameTypeSubnetDomain, + "VCN_DOMAIN": CreateDhcpDetailsDomainNameTypeVcnDomain, + "CUSTOM_DOMAIN": CreateDhcpDetailsDomainNameTypeCustomDomain, +} + +var mappingCreateDhcpDetailsDomainNameTypeEnumLowerCase = map[string]CreateDhcpDetailsDomainNameTypeEnum{ + "subnet_domain": CreateDhcpDetailsDomainNameTypeSubnetDomain, + "vcn_domain": CreateDhcpDetailsDomainNameTypeVcnDomain, + "custom_domain": CreateDhcpDetailsDomainNameTypeCustomDomain, +} + +// GetCreateDhcpDetailsDomainNameTypeEnumValues Enumerates the set of values for CreateDhcpDetailsDomainNameTypeEnum +func GetCreateDhcpDetailsDomainNameTypeEnumValues() []CreateDhcpDetailsDomainNameTypeEnum { + values := make([]CreateDhcpDetailsDomainNameTypeEnum, 0) + for _, v := range mappingCreateDhcpDetailsDomainNameTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateDhcpDetailsDomainNameTypeEnumStringValues Enumerates the set of values in String for CreateDhcpDetailsDomainNameTypeEnum +func GetCreateDhcpDetailsDomainNameTypeEnumStringValues() []string { + return []string{ + "SUBNET_DOMAIN", + "VCN_DOMAIN", + "CUSTOM_DOMAIN", + } +} + +// GetMappingCreateDhcpDetailsDomainNameTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateDhcpDetailsDomainNameTypeEnum(val string) (CreateDhcpDetailsDomainNameTypeEnum, bool) { + enum, ok := mappingCreateDhcpDetailsDomainNameTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_options_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go index 946cf37bf7..0041f41833 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_dhcp_options_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDhcpOptionsRequest wrapper for the CreateDhcpOptions operation @@ -38,6 +40,10 @@ func (request CreateDhcpOptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDhcpOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDhcpOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDhcpOptionsResponse wrapper for the CreateDhcpOptions operation type CreateDhcpOptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_details.go new file mode 100644 index 0000000000..595648c17d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_details.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDrgAttachmentDetails The representation of CreateDrgAttachmentDetails +type CreateDrgAttachmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table that is assigned to this attachment. + // The DRG route table manages traffic inside the DRG. + DrgRouteTableId *string `mandatory:"false" json:"drgRouteTableId"` + + NetworkDetails DrgAttachmentNetworkCreateDetails `mandatory:"false" json:"networkDetails"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table used by the DRG attachment. + // If you don't specify a route table here, the DRG attachment is created without an associated route + // table. The Networking service does NOT automatically associate the attached VCN's default route table + // with the DRG attachment. + // For information about why you would associate a route table with a DRG attachment, see: + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) + // This field is deprecated. Instead, use the networkDetails field to specify the VCN route table for this attachment. + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // This field is deprecated. Instead, use the `networkDetails` field to specify the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attached resource. + VcnId *string `mandatory:"false" json:"vcnId"` +} + +func (m CreateDrgAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDrgAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateDrgAttachmentDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + DrgRouteTableId *string `json:"drgRouteTableId"` + NetworkDetails drgattachmentnetworkcreatedetails `json:"networkDetails"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + RouteTableId *string `json:"routeTableId"` + VcnId *string `json:"vcnId"` + DrgId *string `json:"drgId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.DrgRouteTableId = model.DrgRouteTableId + + nn, e = model.NetworkDetails.UnmarshalPolymorphicJSON(model.NetworkDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NetworkDetails = nn.(DrgAttachmentNetworkCreateDetails) + } else { + m.NetworkDetails = nil + } + + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + m.RouteTableId = model.RouteTableId + + m.VcnId = model.VcnId + + m.DrgId = model.DrgId + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go index 28ddcddde4..ef51c327ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDrgAttachmentRequest wrapper for the CreateDrgAttachment operation @@ -38,6 +40,10 @@ func (request CreateDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDrgAttachmentResponse wrapper for the CreateDrgAttachment operation type CreateDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_details.go new file mode 100644 index 0000000000..3710cc7adf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDrgDetails The representation of CreateDrgDetails +type CreateDrgDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateDrgDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDrgDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go index 2c0d96b72a..b461b60d2d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDrgRequest wrapper for the CreateDrg operation @@ -38,6 +40,10 @@ func (request CreateDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDrgResponse wrapper for the CreateDrg operation type CreateDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go new file mode 100644 index 0000000000..00869590dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_details.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDrgRouteDistributionDetails Details used to create a route distribution. +type CreateDrgRouteDistributionDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the DRG route table belongs to. + DrgId *string `mandatory:"true" json:"drgId"` + + // Whether this distribution defines how routes get imported into route tables or exported through DRG Attachments + DistributionType CreateDrgRouteDistributionDetailsDistributionTypeEnum `mandatory:"true" json:"distributionType"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateDrgRouteDistributionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDrgRouteDistributionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateDrgRouteDistributionDetailsDistributionTypeEnum(string(m.DistributionType)); !ok && m.DistributionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DistributionType: %s. Supported values are: %s.", m.DistributionType, strings.Join(GetCreateDrgRouteDistributionDetailsDistributionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateDrgRouteDistributionDetailsDistributionTypeEnum Enum with underlying type: string +type CreateDrgRouteDistributionDetailsDistributionTypeEnum string + +// Set of constants representing the allowable values for CreateDrgRouteDistributionDetailsDistributionTypeEnum +const ( + CreateDrgRouteDistributionDetailsDistributionTypeImport CreateDrgRouteDistributionDetailsDistributionTypeEnum = "IMPORT" +) + +var mappingCreateDrgRouteDistributionDetailsDistributionTypeEnum = map[string]CreateDrgRouteDistributionDetailsDistributionTypeEnum{ + "IMPORT": CreateDrgRouteDistributionDetailsDistributionTypeImport, +} + +var mappingCreateDrgRouteDistributionDetailsDistributionTypeEnumLowerCase = map[string]CreateDrgRouteDistributionDetailsDistributionTypeEnum{ + "import": CreateDrgRouteDistributionDetailsDistributionTypeImport, +} + +// GetCreateDrgRouteDistributionDetailsDistributionTypeEnumValues Enumerates the set of values for CreateDrgRouteDistributionDetailsDistributionTypeEnum +func GetCreateDrgRouteDistributionDetailsDistributionTypeEnumValues() []CreateDrgRouteDistributionDetailsDistributionTypeEnum { + values := make([]CreateDrgRouteDistributionDetailsDistributionTypeEnum, 0) + for _, v := range mappingCreateDrgRouteDistributionDetailsDistributionTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateDrgRouteDistributionDetailsDistributionTypeEnumStringValues Enumerates the set of values in String for CreateDrgRouteDistributionDetailsDistributionTypeEnum +func GetCreateDrgRouteDistributionDetailsDistributionTypeEnumStringValues() []string { + return []string{ + "IMPORT", + } +} + +// GetMappingCreateDrgRouteDistributionDetailsDistributionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateDrgRouteDistributionDetailsDistributionTypeEnum(val string) (CreateDrgRouteDistributionDetailsDistributionTypeEnum, bool) { + enum, ok := mappingCreateDrgRouteDistributionDetailsDistributionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_request_response.go index c5f5bffcee..75f44470e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_distribution_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_distribution_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDrgRouteDistributionRequest wrapper for the CreateDrgRouteDistribution operation @@ -38,6 +40,10 @@ func (request CreateDrgRouteDistributionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDrgRouteDistributionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDrgRouteDistributionRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDrgRouteDistributionResponse wrapper for the CreateDrgRouteDistribution operation type CreateDrgRouteDistributionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_details.go new file mode 100644 index 0000000000..54e392f21d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDrgRouteTableDetails Details used in a request to create a DRG route table. +type CreateDrgRouteTableDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the DRG route table belongs to. + DrgId *string `mandatory:"true" json:"drgId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the import route distribution used to specify how incoming route advertisements through + // referenced attachments are inserted into the DRG route table. + ImportDrgRouteDistributionId *string `mandatory:"false" json:"importDrgRouteDistributionId"` + + // If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to + // your on-premises networks, enable ECMP on the DRG route table. + IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` +} + +func (m CreateDrgRouteTableDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDrgRouteTableDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_request_response.go index d4b2515c58..12c38f4621 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_drg_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_drg_route_table_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDrgRouteTableRequest wrapper for the CreateDrgRouteTable operation @@ -38,6 +40,10 @@ func (request CreateDrgRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDrgRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDrgRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDrgRouteTableResponse wrapper for the CreateDrgRouteTable operation type CreateDrgRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_endpoint_service_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_endpoint_service_details.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_endpoint_service_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_endpoint_service_details.go index 465fe4462a..3fb4e9c23d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_endpoint_service_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_endpoint_service_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateEndpointServiceDetails Details for creating an endpoint service. @@ -81,3 +83,15 @@ type CreateEndpointServiceDetails struct { func (m CreateEndpointServiceDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateEndpointServiceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_endpoint_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_endpoint_service_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_endpoint_service_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_endpoint_service_request_response.go index 6536c14d1f..20188a9e4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_endpoint_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_endpoint_service_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateEndpointServiceRequest wrapper for the CreateEndpointService operation @@ -38,6 +40,10 @@ func (request CreateEndpointServiceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateEndpointServiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateEndpointServiceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateEndpointServiceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateEndpointServiceResponse wrapper for the CreateEndpointService operation type CreateEndpointServiceResponse struct { @@ -69,7 +86,8 @@ type CreateEndpointServiceResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_details.go new file mode 100644 index 0000000000..d6b5fec95a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateFlowLogConfigAttachmentDetails The representation of CreateFlowLogConfigAttachmentDetails +type CreateFlowLogConfigAttachmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource to attach the + // flow log configuration to. Attaching the configuration enables flow logs for the resource. + TargetEntityId *string `mandatory:"true" json:"targetEntityId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the flow log configuration to attach. + FlowLogConfigId *string `mandatory:"true" json:"flowLogConfigId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m CreateFlowLogConfigAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateFlowLogConfigAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_request_response.go index 10add2a01d..14398c39d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateFlowLogConfigAttachmentRequest wrapper for the CreateFlowLogConfigAttachment operation @@ -38,6 +40,10 @@ func (request CreateFlowLogConfigAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateFlowLogConfigAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateFlowLogConfigAttachmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateFlowLogConfigAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateFlowLogConfigAttachmentResponse wrapper for the CreateFlowLogConfigAttachment operation type CreateFlowLogConfigAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_details.go new file mode 100644 index 0000000000..59d27c5ab1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_details.go @@ -0,0 +1,145 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateFlowLogConfigDetails The representation of CreateFlowLogConfigDetails +type CreateFlowLogConfigDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the + // flow log configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Type or types of flow logs to store. `ALL` includes records for both accepted traffic and + // rejected traffic. + FlowLogType CreateFlowLogConfigDetailsFlowLogTypeEnum `mandatory:"true" json:"flowLogType"` + + Destination FlowLogDestination `mandatory:"true" json:"destination"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateFlowLogConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateFlowLogConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateFlowLogConfigDetailsFlowLogTypeEnum(string(m.FlowLogType)); !ok && m.FlowLogType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FlowLogType: %s. Supported values are: %s.", m.FlowLogType, strings.Join(GetCreateFlowLogConfigDetailsFlowLogTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateFlowLogConfigDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + CompartmentId *string `json:"compartmentId"` + FlowLogType CreateFlowLogConfigDetailsFlowLogTypeEnum `json:"flowLogType"` + Destination flowlogdestination `json:"destination"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.CompartmentId = model.CompartmentId + + m.FlowLogType = model.FlowLogType + + nn, e = model.Destination.UnmarshalPolymorphicJSON(model.Destination.JsonData) + if e != nil { + return + } + if nn != nil { + m.Destination = nn.(FlowLogDestination) + } else { + m.Destination = nil + } + + return +} + +// CreateFlowLogConfigDetailsFlowLogTypeEnum Enum with underlying type: string +type CreateFlowLogConfigDetailsFlowLogTypeEnum string + +// Set of constants representing the allowable values for CreateFlowLogConfigDetailsFlowLogTypeEnum +const ( + CreateFlowLogConfigDetailsFlowLogTypeAll CreateFlowLogConfigDetailsFlowLogTypeEnum = "ALL" +) + +var mappingCreateFlowLogConfigDetailsFlowLogTypeEnum = map[string]CreateFlowLogConfigDetailsFlowLogTypeEnum{ + "ALL": CreateFlowLogConfigDetailsFlowLogTypeAll, +} + +var mappingCreateFlowLogConfigDetailsFlowLogTypeEnumLowerCase = map[string]CreateFlowLogConfigDetailsFlowLogTypeEnum{ + "all": CreateFlowLogConfigDetailsFlowLogTypeAll, +} + +// GetCreateFlowLogConfigDetailsFlowLogTypeEnumValues Enumerates the set of values for CreateFlowLogConfigDetailsFlowLogTypeEnum +func GetCreateFlowLogConfigDetailsFlowLogTypeEnumValues() []CreateFlowLogConfigDetailsFlowLogTypeEnum { + values := make([]CreateFlowLogConfigDetailsFlowLogTypeEnum, 0) + for _, v := range mappingCreateFlowLogConfigDetailsFlowLogTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateFlowLogConfigDetailsFlowLogTypeEnumStringValues Enumerates the set of values in String for CreateFlowLogConfigDetailsFlowLogTypeEnum +func GetCreateFlowLogConfigDetailsFlowLogTypeEnumStringValues() []string { + return []string{ + "ALL", + } +} + +// GetMappingCreateFlowLogConfigDetailsFlowLogTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateFlowLogConfigDetailsFlowLogTypeEnum(val string) (CreateFlowLogConfigDetailsFlowLogTypeEnum, bool) { + enum, ok := mappingCreateFlowLogConfigDetailsFlowLogTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_request_response.go index ed4cba5f97..03252ad0e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_flow_log_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_flow_log_config_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateFlowLogConfigRequest wrapper for the CreateFlowLogConfig operation @@ -38,6 +40,10 @@ func (request CreateFlowLogConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateFlowLogConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateFlowLogConfigRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateFlowLogConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateFlowLogConfigResponse wrapper for the CreateFlowLogConfig operation type CreateFlowLogConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_i_p_sec_connection_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_i_p_sec_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_i_p_sec_connection_request_response.go index 7ef0d24045..19b548817c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_i_p_sec_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateIPSecConnectionRequest wrapper for the CreateIPSecConnection operation @@ -38,6 +40,10 @@ func (request CreateIPSecConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateIPSecConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateIPSecConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateIPSecConnectionResponse wrapper for the CreateIPSecConnection operation type CreateIPSecConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_details.go new file mode 100644 index 0000000000..d1a74bd9ac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_details.go @@ -0,0 +1,174 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateImageDetails Either instanceId or imageSourceDetails must be provided in addition to other required parameters. +type CreateImageDetails struct { + + // The OCID of the compartment you want the image to be created in. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name for the image. It does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // You cannot use a platform image name as a custom image name. + // Example: `My Oracle Linux image` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + ImageSourceDetails ImageSourceDetails `mandatory:"false" json:"imageSourceDetails"` + + // The OCID of the instance you want to use as the basis for the image. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Indicates whether attached data volumes should be included in the created image when creating an image from an Instance. + // This is only valid if instanceId is provided. + ShouldIncludeDataVolumes *bool `mandatory:"false" json:"shouldIncludeDataVolumes"` + + // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: + // * `NATIVE` - VM instances launch with paravirtualized boot and VFIO devices. The default value for platform images. + // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. + // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. + LaunchMode CreateImageDetailsLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` +} + +func (m CreateImageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateImageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateImageDetailsLaunchModeEnum(string(m.LaunchMode)); !ok && m.LaunchMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LaunchMode: %s. Supported values are: %s.", m.LaunchMode, strings.Join(GetCreateImageDetailsLaunchModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateImageDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + ImageSourceDetails imagesourcedetails `json:"imageSourceDetails"` + InstanceId *string `json:"instanceId"` + ShouldIncludeDataVolumes *bool `json:"shouldIncludeDataVolumes"` + LaunchMode CreateImageDetailsLaunchModeEnum `json:"launchMode"` + CompartmentId *string `json:"compartmentId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + nn, e = model.ImageSourceDetails.UnmarshalPolymorphicJSON(model.ImageSourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.ImageSourceDetails = nn.(ImageSourceDetails) + } else { + m.ImageSourceDetails = nil + } + + m.InstanceId = model.InstanceId + + m.ShouldIncludeDataVolumes = model.ShouldIncludeDataVolumes + + m.LaunchMode = model.LaunchMode + + m.CompartmentId = model.CompartmentId + + return +} + +// CreateImageDetailsLaunchModeEnum Enum with underlying type: string +type CreateImageDetailsLaunchModeEnum string + +// Set of constants representing the allowable values for CreateImageDetailsLaunchModeEnum +const ( + CreateImageDetailsLaunchModeNative CreateImageDetailsLaunchModeEnum = "NATIVE" + CreateImageDetailsLaunchModeEmulated CreateImageDetailsLaunchModeEnum = "EMULATED" + CreateImageDetailsLaunchModeParavirtualized CreateImageDetailsLaunchModeEnum = "PARAVIRTUALIZED" + CreateImageDetailsLaunchModeCustom CreateImageDetailsLaunchModeEnum = "CUSTOM" +) + +var mappingCreateImageDetailsLaunchModeEnum = map[string]CreateImageDetailsLaunchModeEnum{ + "NATIVE": CreateImageDetailsLaunchModeNative, + "EMULATED": CreateImageDetailsLaunchModeEmulated, + "PARAVIRTUALIZED": CreateImageDetailsLaunchModeParavirtualized, + "CUSTOM": CreateImageDetailsLaunchModeCustom, +} + +var mappingCreateImageDetailsLaunchModeEnumLowerCase = map[string]CreateImageDetailsLaunchModeEnum{ + "native": CreateImageDetailsLaunchModeNative, + "emulated": CreateImageDetailsLaunchModeEmulated, + "paravirtualized": CreateImageDetailsLaunchModeParavirtualized, + "custom": CreateImageDetailsLaunchModeCustom, +} + +// GetCreateImageDetailsLaunchModeEnumValues Enumerates the set of values for CreateImageDetailsLaunchModeEnum +func GetCreateImageDetailsLaunchModeEnumValues() []CreateImageDetailsLaunchModeEnum { + values := make([]CreateImageDetailsLaunchModeEnum, 0) + for _, v := range mappingCreateImageDetailsLaunchModeEnum { + values = append(values, v) + } + return values +} + +// GetCreateImageDetailsLaunchModeEnumStringValues Enumerates the set of values in String for CreateImageDetailsLaunchModeEnum +func GetCreateImageDetailsLaunchModeEnumStringValues() []string { + return []string{ + "NATIVE", + "EMULATED", + "PARAVIRTUALIZED", + "CUSTOM", + } +} + +// GetMappingCreateImageDetailsLaunchModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateImageDetailsLaunchModeEnum(val string) (CreateImageDetailsLaunchModeEnum, bool) { + enum, ok := mappingCreateImageDetailsLaunchModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go index e1aaa0c6c1..c27d08e4ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_image_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateImageRequest wrapper for the CreateImage operation @@ -38,6 +40,10 @@ func (request CreateImageRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateImageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateImageRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateImageRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateImageResponse wrapper for the CreateImage operation type CreateImageResponse struct { @@ -69,7 +86,8 @@ type CreateImageResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_base.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_base.go new file mode 100644 index 0000000000..63e2f69df8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_base.go @@ -0,0 +1,173 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInstanceConfigurationBase Creation details for an instance configuration. +type CreateInstanceConfigurationBase interface { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment + // containing the instance configuration. + GetCompartmentId() *string + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + GetDisplayName() *string + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string +} + +type createinstanceconfigurationbase struct { + JsonData []byte + CompartmentId *string `mandatory:"true" json:"compartmentId"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + DisplayName *string `mandatory:"false" json:"displayName"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + Source string `json:"source"` +} + +// UnmarshalJSON unmarshals json +func (m *createinstanceconfigurationbase) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalercreateinstanceconfigurationbase createinstanceconfigurationbase + s := struct { + Model Unmarshalercreateinstanceconfigurationbase + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CompartmentId = s.Model.CompartmentId + m.DefinedTags = s.Model.DefinedTags + m.DisplayName = s.Model.DisplayName + m.FreeformTags = s.Model.FreeformTags + m.Source = s.Model.Source + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *createinstanceconfigurationbase) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Source { + case "NONE": + mm := CreateInstanceConfigurationDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INSTANCE": + mm := CreateInstanceConfigurationFromInstanceDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for CreateInstanceConfigurationBase: %s.", m.Source) + return *m, nil + } +} + +//GetCompartmentId returns CompartmentId +func (m createinstanceconfigurationbase) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDefinedTags returns DefinedTags +func (m createinstanceconfigurationbase) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +//GetDisplayName returns DisplayName +func (m createinstanceconfigurationbase) GetDisplayName() *string { + return m.DisplayName +} + +//GetFreeformTags returns FreeformTags +func (m createinstanceconfigurationbase) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +func (m createinstanceconfigurationbase) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m createinstanceconfigurationbase) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInstanceConfigurationBaseSourceEnum Enum with underlying type: string +type CreateInstanceConfigurationBaseSourceEnum string + +// Set of constants representing the allowable values for CreateInstanceConfigurationBaseSourceEnum +const ( + CreateInstanceConfigurationBaseSourceNone CreateInstanceConfigurationBaseSourceEnum = "NONE" + CreateInstanceConfigurationBaseSourceInstance CreateInstanceConfigurationBaseSourceEnum = "INSTANCE" +) + +var mappingCreateInstanceConfigurationBaseSourceEnum = map[string]CreateInstanceConfigurationBaseSourceEnum{ + "NONE": CreateInstanceConfigurationBaseSourceNone, + "INSTANCE": CreateInstanceConfigurationBaseSourceInstance, +} + +var mappingCreateInstanceConfigurationBaseSourceEnumLowerCase = map[string]CreateInstanceConfigurationBaseSourceEnum{ + "none": CreateInstanceConfigurationBaseSourceNone, + "instance": CreateInstanceConfigurationBaseSourceInstance, +} + +// GetCreateInstanceConfigurationBaseSourceEnumValues Enumerates the set of values for CreateInstanceConfigurationBaseSourceEnum +func GetCreateInstanceConfigurationBaseSourceEnumValues() []CreateInstanceConfigurationBaseSourceEnum { + values := make([]CreateInstanceConfigurationBaseSourceEnum, 0) + for _, v := range mappingCreateInstanceConfigurationBaseSourceEnum { + values = append(values, v) + } + return values +} + +// GetCreateInstanceConfigurationBaseSourceEnumStringValues Enumerates the set of values in String for CreateInstanceConfigurationBaseSourceEnum +func GetCreateInstanceConfigurationBaseSourceEnumStringValues() []string { + return []string{ + "NONE", + "INSTANCE", + } +} + +// GetMappingCreateInstanceConfigurationBaseSourceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInstanceConfigurationBaseSourceEnum(val string) (CreateInstanceConfigurationBaseSourceEnum, bool) { + enum, ok := mappingCreateInstanceConfigurationBaseSourceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go index cb3b205e86..379ed9589d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateInstanceConfigurationDetails Details for creating an instance configuration by providing a list of configuration settings. @@ -66,6 +68,18 @@ func (m CreateInstanceConfigurationDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInstanceConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m CreateInstanceConfigurationDetails) MarshalJSON() (buff []byte, e error) { type MarshalTypeCreateInstanceConfigurationDetails CreateInstanceConfigurationDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_from_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_from_instance_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_from_instance_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_from_instance_details.go index ab12751729..a9555c4f84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_from_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_from_instance_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateInstanceConfigurationFromInstanceDetails Details for creating an instance configuration using an existing instance as a template. @@ -68,6 +70,18 @@ func (m CreateInstanceConfigurationFromInstanceDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInstanceConfigurationFromInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m CreateInstanceConfigurationFromInstanceDetails) MarshalJSON() (buff []byte, e error) { type MarshalTypeCreateInstanceConfigurationFromInstanceDetails CreateInstanceConfigurationFromInstanceDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go index aa409cda90..ffa1281049 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_configuration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInstanceConfigurationRequest wrapper for the CreateInstanceConfiguration operation @@ -38,6 +40,10 @@ func (request CreateInstanceConfigurationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInstanceConfigurationRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInstanceConfigurationResponse wrapper for the CreateInstanceConfiguration operation type CreateInstanceConfigurationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_details.go new file mode 100644 index 0000000000..447069678f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInstanceConsoleConnectionDetails The details for creating a instance console connection. +// The instance console connection is created in the same compartment as the instance. +type CreateInstanceConsoleConnectionDetails struct { + + // The OCID of the instance to create the console connection to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The SSH public key used to authenticate the console connection. + PublicKey *string `mandatory:"true" json:"publicKey"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateInstanceConsoleConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInstanceConsoleConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_request_response.go index a044f70549..b0c04c2a8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_console_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInstanceConsoleConnectionRequest wrapper for the CreateInstanceConsoleConnection operation @@ -38,6 +40,10 @@ func (request CreateInstanceConsoleConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInstanceConsoleConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInstanceConsoleConnectionRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInstanceConsoleConnectionResponse wrapper for the CreateInstanceConsoleConnection operation type CreateInstanceConsoleConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go index 0596110bad..7c90b49c3a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateInstancePoolDetails The data to create an instance pool. @@ -66,3 +68,15 @@ type CreateInstancePoolDetails struct { func (m CreateInstancePoolDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInstancePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_placement_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_placement_configuration_details.go new file mode 100644 index 0000000000..47f96996ed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_placement_configuration_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInstancePoolPlacementConfigurationDetails The location for where an instance pool will place instances. +type CreateInstancePoolPlacementConfigurationDetails struct { + + // The availability domain to place instances. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place instances. + PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` + + // The fault domains to place instances. + // If you don't provide any values, the system makes a best effort to distribute + // instances across all fault domains based on capacity. + // To distribute the instances evenly across selected fault domains, provide a + // set of fault domains. For example, you might want instances to be evenly + // distributed if your applications require high availability. + // To get a list of fault domains, use the + // ListFaultDomains operation + // in the Identity and Access Management Service API. + // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` + FaultDomains []string `mandatory:"false" json:"faultDomains"` + + // The set of secondary VNIC data for instances in the pool. + SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` +} + +func (m CreateInstancePoolPlacementConfigurationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInstancePoolPlacementConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go index 1dacf4f716..f2d423a00e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInstancePoolRequest wrapper for the CreateInstancePool operation @@ -38,6 +40,10 @@ func (request CreateInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInstancePoolResponse wrapper for the CreateInstancePool operation type CreateInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_screenshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_screenshot_request_response.go new file mode 100644 index 0000000000..9103adbe10 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_instance_screenshot_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateInstanceScreenshotRequest wrapper for the CreateInstanceScreenshot operation +type CreateInstanceScreenshotRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateInstanceScreenshotRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateInstanceScreenshotRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateInstanceScreenshotRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateInstanceScreenshotRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInstanceScreenshotRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInstanceScreenshotResponse wrapper for the CreateInstanceScreenshot operation +type CreateInstanceScreenshotResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The InstanceScreenshot instance + InstanceScreenshot `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response CreateInstanceScreenshotResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateInstanceScreenshotResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_details.go new file mode 100644 index 0000000000..446d29c5d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_details.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalDnsRecordDetails This structure is used when creating DnsRecord for internal clients. +type CreateInternalDnsRecordDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DnsRecord. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Internal Hosted Zone the DnsRecord belongs to. + InternalHostedZoneId *string `mandatory:"true" json:"internalHostedZoneId"` + + // Name of the DnsRecord. + // -*A:* Partially Qualified DNS Name that will be mapped to the IPv4 address + Name *string `mandatory:"true" json:"name"` + + // Type of Dns Record according to RFC 1035 (https://tools.ietf.org/html/rfc1035). + // Currently supported list of types are the following. + // -*A:* Type 1, a hostname to IPv4 address + Type CreateInternalDnsRecordDetailsTypeEnum `mandatory:"true" json:"type"` + + // Value for the DnsRecord. + // -*A:* One or more IPv4 addresses. Comma separated. + Value *string `mandatory:"true" json:"value"` + + // Time to live value in seconds for the DnsRecord, according to RFC 1035 (https://tools.ietf.org/html/rfc1035). + // Defaults to 86400. + Ttl *int `mandatory:"false" json:"ttl"` +} + +func (m CreateInternalDnsRecordDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalDnsRecordDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateInternalDnsRecordDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetCreateInternalDnsRecordDetailsTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInternalDnsRecordDetailsTypeEnum Enum with underlying type: string +type CreateInternalDnsRecordDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateInternalDnsRecordDetailsTypeEnum +const ( + CreateInternalDnsRecordDetailsTypeA CreateInternalDnsRecordDetailsTypeEnum = "A" +) + +var mappingCreateInternalDnsRecordDetailsTypeEnum = map[string]CreateInternalDnsRecordDetailsTypeEnum{ + "A": CreateInternalDnsRecordDetailsTypeA, +} + +var mappingCreateInternalDnsRecordDetailsTypeEnumLowerCase = map[string]CreateInternalDnsRecordDetailsTypeEnum{ + "a": CreateInternalDnsRecordDetailsTypeA, +} + +// GetCreateInternalDnsRecordDetailsTypeEnumValues Enumerates the set of values for CreateInternalDnsRecordDetailsTypeEnum +func GetCreateInternalDnsRecordDetailsTypeEnumValues() []CreateInternalDnsRecordDetailsTypeEnum { + values := make([]CreateInternalDnsRecordDetailsTypeEnum, 0) + for _, v := range mappingCreateInternalDnsRecordDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalDnsRecordDetailsTypeEnumStringValues Enumerates the set of values in String for CreateInternalDnsRecordDetailsTypeEnum +func GetCreateInternalDnsRecordDetailsTypeEnumStringValues() []string { + return []string{ + "A", + } +} + +// GetMappingCreateInternalDnsRecordDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalDnsRecordDetailsTypeEnum(val string) (CreateInternalDnsRecordDetailsTypeEnum, bool) { + enum, ok := mappingCreateInternalDnsRecordDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_request_response.go index 5a3cce742a..b50b1b8322 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_dns_record_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_dns_record_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalDnsRecordRequest wrapper for the CreateInternalDnsRecord operation @@ -38,6 +40,10 @@ func (request CreateInternalDnsRecordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalDnsRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInternalDnsRecordRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalDnsRecordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalDnsRecordResponse wrapper for the CreateInternalDnsRecord operation type CreateInternalDnsRecordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_details.go new file mode 100644 index 0000000000..4a32b1d4b3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalDrgAttachmentDetails The request to create a new InternalDrgAttachment. +type CreateInternalDrgAttachmentDetails struct { + + // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"true" json:"vcnId"` + + // NextHop target's MPLS label. + MplsLabel *string `mandatory:"true" json:"mplsLabel"` + + // The string in the form ASN:mplsLabel. + RouteTarget *string `mandatory:"true" json:"routeTarget"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. + // If you don't specify a route table here, the DRG attachment is created without an associated route + // table. The Networking service does NOT automatically associate the attached VCN's default route table + // with the DRG attachment. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m CreateInternalDrgAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalDrgAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_request_response.go index e253f550e8..5892cad8b8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalDrgAttachmentRequest wrapper for the CreateInternalDrgAttachment operation @@ -38,6 +40,10 @@ func (request CreateInternalDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInternalDrgAttachmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalDrgAttachmentResponse wrapper for the CreateInternalDrgAttachment operation type CreateInternalDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_details.go new file mode 100644 index 0000000000..b100b17e30 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalDrgDetails The request to create a new InternalDrg. +type CreateInternalDrgDetails struct { + + // The DRG's Oracle ID (OCID). + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Anycast IP of the El Paso fleet handling the ingress traffic. + IngressIP *string `mandatory:"true" json:"ingressIP"` + + // Anycast IP of the El Paso fleet handling the egress traffic. + EgressIP *string `mandatory:"true" json:"egressIP"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Route data for the Drg. + RouteData *string `mandatory:"false" json:"routeData"` +} + +func (m CreateInternalDrgDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalDrgDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_request_response.go index 96b9a05d01..f75f3e1280 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalDrgRequest wrapper for the CreateInternalDrg operation @@ -38,6 +40,10 @@ func (request CreateInternalDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInternalDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalDrgResponse wrapper for the CreateInternalDrg operation type CreateInternalDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_details.go new file mode 100644 index 0000000000..38bd8ee16a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_details.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalDrgRouteTableDetails Details to create internal Drg route table. +type CreateInternalDrgRouteTableDetails struct { + + // The label of the drg attachment. + DrgAttachmentLabel *int64 `mandatory:"true" json:"drgAttachmentLabel"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG which contains this route table. + DrgId *string `mandatory:"true" json:"drgId"` + + // The collection of rules which will be used by VCN Dataplane to route DRG traffic. + Rules []InternalDrgRouteRule `mandatory:"true" json:"rules"` +} + +func (m CreateInternalDrgRouteTableDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalDrgRouteTableDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_request_response.go new file mode 100644 index 0000000000..7880fccf76 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_drg_route_table_request_response.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateInternalDrgRouteTableRequest wrapper for the CreateInternalDrgRouteTable operation +type CreateInternalDrgRouteTableRequest struct { + + // Internal Drg Route Table details. + CreateInternalDrgRouteTableDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateInternalDrgRouteTableRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateInternalDrgRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateInternalDrgRouteTableRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateInternalDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalDrgRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInternalDrgRouteTableResponse wrapper for the CreateInternalDrgRouteTable operation +type CreateInternalDrgRouteTableResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateInternalDrgRouteTableResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateInternalDrgRouteTableResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_details.go new file mode 100644 index 0000000000..d470ed5b9e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_details.go @@ -0,0 +1,124 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalGenericGatewayDetails Details to create an internal generic gateway. +type CreateInternalGenericGatewayDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the gateway's compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Information required to fill headers of packets to be sent to the gateway. + GatewayHeaderData *int64 `mandatory:"true" json:"gatewayHeaderData"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway represents. + GatewayId *string `mandatory:"true" json:"gatewayId"` + + // The type of the gateway. + GatewayType CreateInternalGenericGatewayDetailsGatewayTypeEnum `mandatory:"true" json:"gatewayType"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the generic gateway belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // IP address of the gateway. + GatewayIpAddresses []string `mandatory:"false" json:"gatewayIpAddresses"` + + // Tuples, mapping AD and regional identifiers to the corresponding routing data + GatewayRouteMap []GatewayRouteData `mandatory:"false" json:"gatewayRouteMap"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table associated with the gateway + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateInternalGenericGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalGenericGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateInternalGenericGatewayDetailsGatewayTypeEnum(string(m.GatewayType)); !ok && m.GatewayType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for GatewayType: %s. Supported values are: %s.", m.GatewayType, strings.Join(GetCreateInternalGenericGatewayDetailsGatewayTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInternalGenericGatewayDetailsGatewayTypeEnum Enum with underlying type: string +type CreateInternalGenericGatewayDetailsGatewayTypeEnum string + +// Set of constants representing the allowable values for CreateInternalGenericGatewayDetailsGatewayTypeEnum +const ( + CreateInternalGenericGatewayDetailsGatewayTypeServicegateway CreateInternalGenericGatewayDetailsGatewayTypeEnum = "SERVICEGATEWAY" + CreateInternalGenericGatewayDetailsGatewayTypeNatgateway CreateInternalGenericGatewayDetailsGatewayTypeEnum = "NATGATEWAY" + CreateInternalGenericGatewayDetailsGatewayTypePrivateaccessgateway CreateInternalGenericGatewayDetailsGatewayTypeEnum = "PRIVATEACCESSGATEWAY" +) + +var mappingCreateInternalGenericGatewayDetailsGatewayTypeEnum = map[string]CreateInternalGenericGatewayDetailsGatewayTypeEnum{ + "SERVICEGATEWAY": CreateInternalGenericGatewayDetailsGatewayTypeServicegateway, + "NATGATEWAY": CreateInternalGenericGatewayDetailsGatewayTypeNatgateway, + "PRIVATEACCESSGATEWAY": CreateInternalGenericGatewayDetailsGatewayTypePrivateaccessgateway, +} + +var mappingCreateInternalGenericGatewayDetailsGatewayTypeEnumLowerCase = map[string]CreateInternalGenericGatewayDetailsGatewayTypeEnum{ + "servicegateway": CreateInternalGenericGatewayDetailsGatewayTypeServicegateway, + "natgateway": CreateInternalGenericGatewayDetailsGatewayTypeNatgateway, + "privateaccessgateway": CreateInternalGenericGatewayDetailsGatewayTypePrivateaccessgateway, +} + +// GetCreateInternalGenericGatewayDetailsGatewayTypeEnumValues Enumerates the set of values for CreateInternalGenericGatewayDetailsGatewayTypeEnum +func GetCreateInternalGenericGatewayDetailsGatewayTypeEnumValues() []CreateInternalGenericGatewayDetailsGatewayTypeEnum { + values := make([]CreateInternalGenericGatewayDetailsGatewayTypeEnum, 0) + for _, v := range mappingCreateInternalGenericGatewayDetailsGatewayTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalGenericGatewayDetailsGatewayTypeEnumStringValues Enumerates the set of values in String for CreateInternalGenericGatewayDetailsGatewayTypeEnum +func GetCreateInternalGenericGatewayDetailsGatewayTypeEnumStringValues() []string { + return []string{ + "SERVICEGATEWAY", + "NATGATEWAY", + "PRIVATEACCESSGATEWAY", + } +} + +// GetMappingCreateInternalGenericGatewayDetailsGatewayTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalGenericGatewayDetailsGatewayTypeEnum(val string) (CreateInternalGenericGatewayDetailsGatewayTypeEnum, bool) { + enum, ok := mappingCreateInternalGenericGatewayDetailsGatewayTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_request_response.go index 06035d6b4b..5647cc24c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_generic_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_generic_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalGenericGatewayRequest wrapper for the CreateInternalGenericGateway operation @@ -44,6 +46,10 @@ func (request CreateInternalGenericGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalGenericGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -59,6 +65,17 @@ func (request CreateInternalGenericGatewayRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalGenericGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalGenericGatewayResponse wrapper for the CreateInternalGenericGateway operation type CreateInternalGenericGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_details.go new file mode 100644 index 0000000000..5f24e1d476 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_details.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalPublicIpDetails This structure is used when creating publicIps for internal clients. +type CreateInternalPublicIpDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the public IP. For ephemeral public IPs, + // you must set this to the private IP's + // compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defines when the public IP is deleted and released back to the Oracle Cloud + // Infrastructure public IP pool. For more information, see + // Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). + Lifetime CreateInternalPublicIpDetailsLifetimeEnum `mandatory:"true" json:"lifetime"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity to assign the public IP to. + AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created by the current tenancy + PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` + + // Only provided when no publicIpPoolId is specified. + InternalPoolName CreateInternalPublicIpDetailsInternalPoolNameEnum `mandatory:"false" json:"internalPoolName,omitempty"` +} + +func (m CreateInternalPublicIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalPublicIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateInternalPublicIpDetailsLifetimeEnum(string(m.Lifetime)); !ok && m.Lifetime != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Lifetime: %s. Supported values are: %s.", m.Lifetime, strings.Join(GetCreateInternalPublicIpDetailsLifetimeEnumStringValues(), ","))) + } + + if _, ok := GetMappingCreateInternalPublicIpDetailsInternalPoolNameEnum(string(m.InternalPoolName)); !ok && m.InternalPoolName != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InternalPoolName: %s. Supported values are: %s.", m.InternalPoolName, strings.Join(GetCreateInternalPublicIpDetailsInternalPoolNameEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInternalPublicIpDetailsLifetimeEnum Enum with underlying type: string +type CreateInternalPublicIpDetailsLifetimeEnum string + +// Set of constants representing the allowable values for CreateInternalPublicIpDetailsLifetimeEnum +const ( + CreateInternalPublicIpDetailsLifetimeEphemeral CreateInternalPublicIpDetailsLifetimeEnum = "EPHEMERAL" + CreateInternalPublicIpDetailsLifetimeReserved CreateInternalPublicIpDetailsLifetimeEnum = "RESERVED" +) + +var mappingCreateInternalPublicIpDetailsLifetimeEnum = map[string]CreateInternalPublicIpDetailsLifetimeEnum{ + "EPHEMERAL": CreateInternalPublicIpDetailsLifetimeEphemeral, + "RESERVED": CreateInternalPublicIpDetailsLifetimeReserved, +} + +var mappingCreateInternalPublicIpDetailsLifetimeEnumLowerCase = map[string]CreateInternalPublicIpDetailsLifetimeEnum{ + "ephemeral": CreateInternalPublicIpDetailsLifetimeEphemeral, + "reserved": CreateInternalPublicIpDetailsLifetimeReserved, +} + +// GetCreateInternalPublicIpDetailsLifetimeEnumValues Enumerates the set of values for CreateInternalPublicIpDetailsLifetimeEnum +func GetCreateInternalPublicIpDetailsLifetimeEnumValues() []CreateInternalPublicIpDetailsLifetimeEnum { + values := make([]CreateInternalPublicIpDetailsLifetimeEnum, 0) + for _, v := range mappingCreateInternalPublicIpDetailsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalPublicIpDetailsLifetimeEnumStringValues Enumerates the set of values in String for CreateInternalPublicIpDetailsLifetimeEnum +func GetCreateInternalPublicIpDetailsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingCreateInternalPublicIpDetailsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalPublicIpDetailsLifetimeEnum(val string) (CreateInternalPublicIpDetailsLifetimeEnum, bool) { + enum, ok := mappingCreateInternalPublicIpDetailsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateInternalPublicIpDetailsInternalPoolNameEnum Enum with underlying type: string +type CreateInternalPublicIpDetailsInternalPoolNameEnum string + +// Set of constants representing the allowable values for CreateInternalPublicIpDetailsInternalPoolNameEnum +const ( + CreateInternalPublicIpDetailsInternalPoolNameExternal CreateInternalPublicIpDetailsInternalPoolNameEnum = "EXTERNAL" + CreateInternalPublicIpDetailsInternalPoolNameSociEgress CreateInternalPublicIpDetailsInternalPoolNameEnum = "SOCI_EGRESS" +) + +var mappingCreateInternalPublicIpDetailsInternalPoolNameEnum = map[string]CreateInternalPublicIpDetailsInternalPoolNameEnum{ + "EXTERNAL": CreateInternalPublicIpDetailsInternalPoolNameExternal, + "SOCI_EGRESS": CreateInternalPublicIpDetailsInternalPoolNameSociEgress, +} + +var mappingCreateInternalPublicIpDetailsInternalPoolNameEnumLowerCase = map[string]CreateInternalPublicIpDetailsInternalPoolNameEnum{ + "external": CreateInternalPublicIpDetailsInternalPoolNameExternal, + "soci_egress": CreateInternalPublicIpDetailsInternalPoolNameSociEgress, +} + +// GetCreateInternalPublicIpDetailsInternalPoolNameEnumValues Enumerates the set of values for CreateInternalPublicIpDetailsInternalPoolNameEnum +func GetCreateInternalPublicIpDetailsInternalPoolNameEnumValues() []CreateInternalPublicIpDetailsInternalPoolNameEnum { + values := make([]CreateInternalPublicIpDetailsInternalPoolNameEnum, 0) + for _, v := range mappingCreateInternalPublicIpDetailsInternalPoolNameEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalPublicIpDetailsInternalPoolNameEnumStringValues Enumerates the set of values in String for CreateInternalPublicIpDetailsInternalPoolNameEnum +func GetCreateInternalPublicIpDetailsInternalPoolNameEnumStringValues() []string { + return []string{ + "EXTERNAL", + "SOCI_EGRESS", + } +} + +// GetMappingCreateInternalPublicIpDetailsInternalPoolNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalPublicIpDetailsInternalPoolNameEnum(val string) (CreateInternalPublicIpDetailsInternalPoolNameEnum, bool) { + enum, ok := mappingCreateInternalPublicIpDetailsInternalPoolNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_request_response.go index 95f94d0fa8..dbcfdd10b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_public_ip_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalPublicIpRequest wrapper for the CreateInternalPublicIp operation @@ -44,6 +46,10 @@ func (request CreateInternalPublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalPublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -59,6 +65,17 @@ func (request CreateInternalPublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalPublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalPublicIpResponse wrapper for the CreateInternalPublicIp operation type CreateInternalPublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_details.go new file mode 100644 index 0000000000..46f811f4e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_details.go @@ -0,0 +1,4350 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalVnicAttachmentDetails Details for attaching a service VNIC to VNICaaS fleet. +type CreateInternalVnicAttachmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the VNIC attachment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A private IP address of your choice to assign to the VNIC. Must be an + // available IP address within the subnet's CIDR. If you don't specify a + // value, Oracle automatically assigns a private IP address from the subnet. + // This is the VNIC's *primary* private IP address. The value appears in + // the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. + // Example: `10.0.3.3` + PrivateIp *string `mandatory:"false" json:"privateIp"` + + // The compute instance id + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Id for a group of vnics sharing same resource pool, e.g. a group id could be a site/gateway id for + // Ambassador SVNICs under the same site/gateway. + GroupId *string `mandatory:"false" json:"groupId"` + + // The compute instance id of the resource pool to be used for the vnic + InstanceIdForResourcePool *string `mandatory:"false" json:"instanceIdForResourcePool"` + + // The availability domain of the VNIC attachment + InternalAvailabilityDomain *string `mandatory:"false" json:"internalAvailabilityDomain"` + + // The overlay MAC address of the instance + MacAddress *string `mandatory:"false" json:"macAddress"` + + // index of NIC that VNIC is attaching to (OS boot order) + NicIndex *int `mandatory:"false" json:"nicIndex"` + + // The tag used internally to identify the sending VNIC. It can be specified in scenarios where a specific + // tag needs to be assigned. Examples of such scenarios include reboot migration and VMware support. + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // Shape of VNIC that is used to allocate resource in the data plane. + VnicShape CreateInternalVnicAttachmentDetailsVnicShapeEnum `mandatory:"false" json:"vnicShape,omitempty"` + + // The substrate IP address of the instance + SubstrateIp *string `mandatory:"false" json:"substrateIp"` + + // Indicates if vlanTag 0 can be assigned to this vnic or not. + IsSkipVlanTag0 *bool `mandatory:"false" json:"isSkipVlanTag0"` + + // Specifies the shard to attach the VNIC to + ShardId *string `mandatory:"false" json:"shardId"` + + // Property describing customer facing metrics + MetadataList []CfmMetadata `mandatory:"false" json:"metadataList"` + + // Identifier of how the target instance is going be launched. For example, launch from marketplace. + // STANDARD is the default type if not specified. + LaunchType CreateInternalVnicAttachmentDetailsLaunchTypeEnum `mandatory:"false" json:"launchType,omitempty"` +} + +func (m CreateInternalVnicAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalVnicAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateInternalVnicAttachmentDetailsVnicShapeEnum(string(m.VnicShape)); !ok && m.VnicShape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VnicShape: %s. Supported values are: %s.", m.VnicShape, strings.Join(GetCreateInternalVnicAttachmentDetailsVnicShapeEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateInternalVnicAttachmentDetailsLaunchTypeEnum(string(m.LaunchType)); !ok && m.LaunchType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LaunchType: %s. Supported values are: %s.", m.LaunchType, strings.Join(GetCreateInternalVnicAttachmentDetailsLaunchTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInternalVnicAttachmentDetailsVnicShapeEnum Enum with underlying type: string +type CreateInternalVnicAttachmentDetailsVnicShapeEnum string + +// Set of constants representing the allowable values for CreateInternalVnicAttachmentDetailsVnicShapeEnum +const ( + CreateInternalVnicAttachmentDetailsVnicShapeDynamic CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0060 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0060" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0060Psm CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0060_PSM" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0100 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0120 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0120" + CreateInternalVnicAttachmentDetailsVnicShapeFixed01202x CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0120_2X" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0200 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0240 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0240" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0480 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0480" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehost CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST" + CreateInternalVnicAttachmentDetailsVnicShapeDynamic25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed004025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed010025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed020025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed040025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed080025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed160025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed240025g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_25G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehost25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_25G" + CreateInternalVnicAttachmentDetailsVnicShapeDynamicE125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0070E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0070_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0140E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0140_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0280E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0280_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0560E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0560_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1120E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1120_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1680E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1680_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeDynamicB125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0060B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0060_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0120B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0120_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0240B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0240_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0480B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0480_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0960B125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0960_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehostB125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_B1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0048E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeMicroLbFixed0001E125g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0200 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FIXED0200" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0400 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FIXED0400" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0700 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FIXED0700" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved10g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis25g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_TELESIS_25G" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis10g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_TELESIS_10G" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasAmbassadorFixed0100 CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesisGamma CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_TELESIS_GAMMA" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasPrivatedns CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_PRIVATEDNS" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFwaas CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_FWAAS" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaasFree CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_FREE" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g512k CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_512K" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g2m CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_2M" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g3m CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_3M" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m8ghost CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_8GHOST" + CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m16ghost CreateInternalVnicAttachmentDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_16GHOST" + CreateInternalVnicAttachmentDetailsVnicShapeDynamicE350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeDynamicE450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "Micro_VM_Fixed0050_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "Micro_VM_Fixed0050_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E350g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E450g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4020A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4060A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4080A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4120A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4160A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4180A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4220A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4240A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4260A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4280A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4340A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4360A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4380A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4420A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4440A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4460A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4480A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4520A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4540A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4560A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4580A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4620A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4640A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4660A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4720A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4740A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4760A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4780A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4820A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4840A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4880A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4920A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4940A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4960A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4980A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0090X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0270X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0630X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0810X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0990X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1170X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1530X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1710X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1890X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2070X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2430X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2610X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2790X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2970X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3330X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3510X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3690X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3870X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4230X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4410X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4590X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4770X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeDynamicA150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3100A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3100_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3200A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3300A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3300_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3400A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3400_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3500A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3500_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3600A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3700A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3700_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3800A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3800_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3900A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3900_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed4000A150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed5000TelesisA150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED5000_TELESIS_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehostA150g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_A1_50G" + CreateInternalVnicAttachmentDetailsVnicShapeDynamicX950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "DYNAMIC_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0040X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0040_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed0800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED0800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed1600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED1600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed2800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED2800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED3600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeFixed4000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "FIXED4000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED0900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED1900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED2900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED3900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed4000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0025X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0025_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0050_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0075X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0075_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0125X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0125_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0150X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0150_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0175X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0175_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0225X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0225_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0250_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0275X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0275_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0325X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0325_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0350X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0350_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0375X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0375_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0425X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0425_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0450X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0450_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0475X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0475_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0525X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0525_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0550X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0550_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0575X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0575_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0625X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0625_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0650X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0650_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0675X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0675_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0725X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0725_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0750X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0750_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0775X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0775_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0825X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0825_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0850X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0850_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0875X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0875_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0925X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0925_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0950X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0950_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0975X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0975_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1025X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1025_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1050_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1075X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1075_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1125X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1125_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1150X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1150_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1175X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1175_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1225X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1225_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1250_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1275X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1275_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1325X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1325_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1350X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1350_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1375X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1375_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1425X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1425_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1450X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1450_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1475X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1475_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1525X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1525_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1550X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1550_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1575X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1575_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1625X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1625_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1650X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1650_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1725X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1725_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1750X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1750_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1850X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1850_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1875X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1875_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1925X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1925_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1950X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1950_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2025X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2025_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2050_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2125X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2125_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2150X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2150_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2175X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2175_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2250_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2275X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2275_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2325X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2325_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2350X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2350_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2375X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2375_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2450X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2450_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2475X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2475_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2550X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2550_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2625X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2625_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2650X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2650_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2750X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2750_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2775X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2775_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2850X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2850_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2875X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2875_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2925X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2925_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2950X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2950_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2975X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2975_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3025X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3025_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3050_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3075X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3075_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3125X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3125_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3150X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3150_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3225X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3225_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3250_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3325X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3325_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3375X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3375_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3450X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3450_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3525X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3525_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3575X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3575_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3625X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3625_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3675X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3675_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3750X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3750_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3825X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3825_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3850X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3850_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3875X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3875_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3975X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3975_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4025X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4025_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4050X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4050_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4100X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4100_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4125X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4125_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4200X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4200_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4225X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4225_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4250X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4250_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4275X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4275_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4300X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4300_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4350X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4350_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4375X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4375_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4400X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4400_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4425X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4425_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4500X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4500_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4550X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4550_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4575X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4575_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4600X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4600_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4625X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4625_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4650X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4650_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4675X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4675_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4700X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4700_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4725X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4725_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4750X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4750_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4800X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4800_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4875X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4875_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4900X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4900_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4950X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4950_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed5000X950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED5000_X9_50G" + CreateInternalVnicAttachmentDetailsVnicShapeEntirehostX950g CreateInternalVnicAttachmentDetailsVnicShapeEnum = "ENTIREHOST_X9_50G" +) + +var mappingCreateInternalVnicAttachmentDetailsVnicShapeEnum = map[string]CreateInternalVnicAttachmentDetailsVnicShapeEnum{ + "DYNAMIC": CreateInternalVnicAttachmentDetailsVnicShapeDynamic, + "FIXED0040": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040, + "FIXED0060": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060, + "FIXED0060_PSM": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060Psm, + "FIXED0100": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100, + "FIXED0120": CreateInternalVnicAttachmentDetailsVnicShapeFixed0120, + "FIXED0120_2X": CreateInternalVnicAttachmentDetailsVnicShapeFixed01202x, + "FIXED0200": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200, + "FIXED0240": CreateInternalVnicAttachmentDetailsVnicShapeFixed0240, + "FIXED0480": CreateInternalVnicAttachmentDetailsVnicShapeFixed0480, + "ENTIREHOST": CreateInternalVnicAttachmentDetailsVnicShapeEntirehost, + "DYNAMIC_25G": CreateInternalVnicAttachmentDetailsVnicShapeDynamic25g, + "FIXED0040_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed004025g, + "FIXED0100_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed010025g, + "FIXED0200_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed020025g, + "FIXED0400_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed040025g, + "FIXED0800_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed080025g, + "FIXED1600_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed160025g, + "FIXED2400_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed240025g, + "ENTIREHOST_25G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehost25g, + "DYNAMIC_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE125g, + "FIXED0040_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E125g, + "FIXED0070_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0070E125g, + "FIXED0140_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0140E125g, + "FIXED0280_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0280E125g, + "FIXED0560_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0560E125g, + "FIXED1120_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1120E125g, + "FIXED1680_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1680E125g, + "ENTIREHOST_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE125g, + "DYNAMIC_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicB125g, + "FIXED0040_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040B125g, + "FIXED0060_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060B125g, + "FIXED0120_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0120B125g, + "FIXED0240_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0240B125g, + "FIXED0480_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0480B125g, + "FIXED0960_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0960B125g, + "ENTIREHOST_B1_25G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostB125g, + "MICRO_VM_FIXED0048_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0048E125g, + "MICRO_LB_FIXED0001_E1_25G": CreateInternalVnicAttachmentDetailsVnicShapeMicroLbFixed0001E125g, + "VNICAAS_FIXED0200": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0200, + "VNICAAS_FIXED0400": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0400, + "VNICAAS_FIXED0700": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0700, + "VNICAAS_NLB_APPROVED_10G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved10g, + "VNICAAS_NLB_APPROVED_25G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved25g, + "VNICAAS_TELESIS_25G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis25g, + "VNICAAS_TELESIS_10G": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis10g, + "VNICAAS_AMBASSADOR_FIXED0100": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasAmbassadorFixed0100, + "VNICAAS_TELESIS_GAMMA": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesisGamma, + "VNICAAS_PRIVATEDNS": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasPrivatedns, + "VNICAAS_FWAAS": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFwaas, + "VNICAAS_LBAAS_FREE": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaasFree, + "VNICAAS_LBAAS_8G_512K": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g512k, + "VNICAAS_LBAAS_8G_1M": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m, + "VNICAAS_LBAAS_8G_2M": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g2m, + "VNICAAS_LBAAS_8G_3M": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g3m, + "VNICAAS_LBAAS_8G_1M_8GHOST": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m8ghost, + "VNICAAS_LBAAS_8G_1M_16GHOST": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m16ghost, + "DYNAMIC_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE350g, + "FIXED0040_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E350g, + "FIXED0100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E350g, + "FIXED0200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E350g, + "FIXED0300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E350g, + "FIXED0400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E350g, + "FIXED0500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E350g, + "FIXED0600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E350g, + "FIXED0700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E350g, + "FIXED0800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E350g, + "FIXED0900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E350g, + "FIXED1000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E350g, + "FIXED1100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E350g, + "FIXED1200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E350g, + "FIXED1300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E350g, + "FIXED1400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E350g, + "FIXED1500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E350g, + "FIXED1600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E350g, + "FIXED1700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E350g, + "FIXED1800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E350g, + "FIXED1900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E350g, + "FIXED2000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E350g, + "FIXED2100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E350g, + "FIXED2200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E350g, + "FIXED2300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E350g, + "FIXED2400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E350g, + "FIXED2500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E350g, + "FIXED2600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E350g, + "FIXED2700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E350g, + "FIXED2800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E350g, + "FIXED2900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E350g, + "FIXED3000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E350g, + "FIXED3100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E350g, + "FIXED3200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E350g, + "FIXED3300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E350g, + "FIXED3400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E350g, + "FIXED3500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E350g, + "FIXED3600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E350g, + "FIXED3700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E350g, + "FIXED3800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E350g, + "FIXED3900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E350g, + "FIXED4000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E350g, + "ENTIREHOST_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE350g, + "DYNAMIC_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE450g, + "FIXED0040_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E450g, + "FIXED0100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E450g, + "FIXED0200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E450g, + "FIXED0300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E450g, + "FIXED0400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E450g, + "FIXED0500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E450g, + "FIXED0600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E450g, + "FIXED0700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E450g, + "FIXED0800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E450g, + "FIXED0900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E450g, + "FIXED1000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E450g, + "FIXED1100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E450g, + "FIXED1200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E450g, + "FIXED1300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E450g, + "FIXED1400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E450g, + "FIXED1500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E450g, + "FIXED1600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E450g, + "FIXED1700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E450g, + "FIXED1800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E450g, + "FIXED1900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E450g, + "FIXED2000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E450g, + "FIXED2100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E450g, + "FIXED2200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E450g, + "FIXED2300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E450g, + "FIXED2400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E450g, + "FIXED2500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E450g, + "FIXED2600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E450g, + "FIXED2700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E450g, + "FIXED2800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E450g, + "FIXED2900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E450g, + "FIXED3000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E450g, + "FIXED3100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E450g, + "FIXED3200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E450g, + "FIXED3300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E450g, + "FIXED3400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E450g, + "FIXED3500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E450g, + "FIXED3600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E450g, + "FIXED3700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E450g, + "FIXED3800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E450g, + "FIXED3900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E450g, + "FIXED4000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E450g, + "ENTIREHOST_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE450g, + "Micro_VM_Fixed0050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E350g, + "Micro_VM_Fixed0050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E450g, + "SUBCORE_VM_FIXED0025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E350g, + "SUBCORE_VM_FIXED0050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E350g, + "SUBCORE_VM_FIXED0075_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E350g, + "SUBCORE_VM_FIXED0100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E350g, + "SUBCORE_VM_FIXED0125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E350g, + "SUBCORE_VM_FIXED0150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E350g, + "SUBCORE_VM_FIXED0175_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E350g, + "SUBCORE_VM_FIXED0200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E350g, + "SUBCORE_VM_FIXED0225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E350g, + "SUBCORE_VM_FIXED0250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E350g, + "SUBCORE_VM_FIXED0275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E350g, + "SUBCORE_VM_FIXED0300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E350g, + "SUBCORE_VM_FIXED0325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E350g, + "SUBCORE_VM_FIXED0350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E350g, + "SUBCORE_VM_FIXED0375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E350g, + "SUBCORE_VM_FIXED0400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E350g, + "SUBCORE_VM_FIXED0425_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E350g, + "SUBCORE_VM_FIXED0450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E350g, + "SUBCORE_VM_FIXED0475_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E350g, + "SUBCORE_VM_FIXED0500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E350g, + "SUBCORE_VM_FIXED0525_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E350g, + "SUBCORE_VM_FIXED0550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E350g, + "SUBCORE_VM_FIXED0575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E350g, + "SUBCORE_VM_FIXED0600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E350g, + "SUBCORE_VM_FIXED0625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E350g, + "SUBCORE_VM_FIXED0650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E350g, + "SUBCORE_VM_FIXED0675_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E350g, + "SUBCORE_VM_FIXED0700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E350g, + "SUBCORE_VM_FIXED0725_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E350g, + "SUBCORE_VM_FIXED0750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E350g, + "SUBCORE_VM_FIXED0775_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E350g, + "SUBCORE_VM_FIXED0800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E350g, + "SUBCORE_VM_FIXED0825_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E350g, + "SUBCORE_VM_FIXED0850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E350g, + "SUBCORE_VM_FIXED0875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E350g, + "SUBCORE_VM_FIXED0900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E350g, + "SUBCORE_VM_FIXED0925_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E350g, + "SUBCORE_VM_FIXED0950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E350g, + "SUBCORE_VM_FIXED0975_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E350g, + "SUBCORE_VM_FIXED1000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E350g, + "SUBCORE_VM_FIXED1025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E350g, + "SUBCORE_VM_FIXED1050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E350g, + "SUBCORE_VM_FIXED1075_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E350g, + "SUBCORE_VM_FIXED1100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E350g, + "SUBCORE_VM_FIXED1125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E350g, + "SUBCORE_VM_FIXED1150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E350g, + "SUBCORE_VM_FIXED1175_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E350g, + "SUBCORE_VM_FIXED1200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E350g, + "SUBCORE_VM_FIXED1225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E350g, + "SUBCORE_VM_FIXED1250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E350g, + "SUBCORE_VM_FIXED1275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E350g, + "SUBCORE_VM_FIXED1300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E350g, + "SUBCORE_VM_FIXED1325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E350g, + "SUBCORE_VM_FIXED1350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E350g, + "SUBCORE_VM_FIXED1375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E350g, + "SUBCORE_VM_FIXED1400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E350g, + "SUBCORE_VM_FIXED1425_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E350g, + "SUBCORE_VM_FIXED1450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E350g, + "SUBCORE_VM_FIXED1475_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E350g, + "SUBCORE_VM_FIXED1500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E350g, + "SUBCORE_VM_FIXED1525_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E350g, + "SUBCORE_VM_FIXED1550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E350g, + "SUBCORE_VM_FIXED1575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E350g, + "SUBCORE_VM_FIXED1600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E350g, + "SUBCORE_VM_FIXED1625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E350g, + "SUBCORE_VM_FIXED1650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E350g, + "SUBCORE_VM_FIXED1700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E350g, + "SUBCORE_VM_FIXED1725_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E350g, + "SUBCORE_VM_FIXED1750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E350g, + "SUBCORE_VM_FIXED1800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E350g, + "SUBCORE_VM_FIXED1850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E350g, + "SUBCORE_VM_FIXED1875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E350g, + "SUBCORE_VM_FIXED1900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E350g, + "SUBCORE_VM_FIXED1925_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E350g, + "SUBCORE_VM_FIXED1950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E350g, + "SUBCORE_VM_FIXED2000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E350g, + "SUBCORE_VM_FIXED2025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E350g, + "SUBCORE_VM_FIXED2050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E350g, + "SUBCORE_VM_FIXED2100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E350g, + "SUBCORE_VM_FIXED2125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E350g, + "SUBCORE_VM_FIXED2150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E350g, + "SUBCORE_VM_FIXED2175_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E350g, + "SUBCORE_VM_FIXED2200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E350g, + "SUBCORE_VM_FIXED2250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E350g, + "SUBCORE_VM_FIXED2275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E350g, + "SUBCORE_VM_FIXED2300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E350g, + "SUBCORE_VM_FIXED2325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E350g, + "SUBCORE_VM_FIXED2350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E350g, + "SUBCORE_VM_FIXED2375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E350g, + "SUBCORE_VM_FIXED2400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E350g, + "SUBCORE_VM_FIXED2450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E350g, + "SUBCORE_VM_FIXED2475_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E350g, + "SUBCORE_VM_FIXED2500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E350g, + "SUBCORE_VM_FIXED2550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E350g, + "SUBCORE_VM_FIXED2600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E350g, + "SUBCORE_VM_FIXED2625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E350g, + "SUBCORE_VM_FIXED2650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E350g, + "SUBCORE_VM_FIXED2700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E350g, + "SUBCORE_VM_FIXED2750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E350g, + "SUBCORE_VM_FIXED2775_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E350g, + "SUBCORE_VM_FIXED2800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E350g, + "SUBCORE_VM_FIXED2850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E350g, + "SUBCORE_VM_FIXED2875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E350g, + "SUBCORE_VM_FIXED2900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E350g, + "SUBCORE_VM_FIXED2925_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E350g, + "SUBCORE_VM_FIXED2950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E350g, + "SUBCORE_VM_FIXED2975_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E350g, + "SUBCORE_VM_FIXED3000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E350g, + "SUBCORE_VM_FIXED3025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E350g, + "SUBCORE_VM_FIXED3050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E350g, + "SUBCORE_VM_FIXED3075_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E350g, + "SUBCORE_VM_FIXED3100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E350g, + "SUBCORE_VM_FIXED3125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E350g, + "SUBCORE_VM_FIXED3150_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E350g, + "SUBCORE_VM_FIXED3200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E350g, + "SUBCORE_VM_FIXED3225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E350g, + "SUBCORE_VM_FIXED3250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E350g, + "SUBCORE_VM_FIXED3300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E350g, + "SUBCORE_VM_FIXED3325_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E350g, + "SUBCORE_VM_FIXED3375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E350g, + "SUBCORE_VM_FIXED3400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E350g, + "SUBCORE_VM_FIXED3450_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E350g, + "SUBCORE_VM_FIXED3500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E350g, + "SUBCORE_VM_FIXED3525_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E350g, + "SUBCORE_VM_FIXED3575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E350g, + "SUBCORE_VM_FIXED3600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E350g, + "SUBCORE_VM_FIXED3625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E350g, + "SUBCORE_VM_FIXED3675_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E350g, + "SUBCORE_VM_FIXED3700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E350g, + "SUBCORE_VM_FIXED3750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E350g, + "SUBCORE_VM_FIXED3800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E350g, + "SUBCORE_VM_FIXED3825_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E350g, + "SUBCORE_VM_FIXED3850_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E350g, + "SUBCORE_VM_FIXED3875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E350g, + "SUBCORE_VM_FIXED3900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E350g, + "SUBCORE_VM_FIXED3975_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E350g, + "SUBCORE_VM_FIXED4000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E350g, + "SUBCORE_VM_FIXED4025_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E350g, + "SUBCORE_VM_FIXED4050_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E350g, + "SUBCORE_VM_FIXED4100_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E350g, + "SUBCORE_VM_FIXED4125_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E350g, + "SUBCORE_VM_FIXED4200_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E350g, + "SUBCORE_VM_FIXED4225_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E350g, + "SUBCORE_VM_FIXED4250_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E350g, + "SUBCORE_VM_FIXED4275_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E350g, + "SUBCORE_VM_FIXED4300_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E350g, + "SUBCORE_VM_FIXED4350_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E350g, + "SUBCORE_VM_FIXED4375_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E350g, + "SUBCORE_VM_FIXED4400_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E350g, + "SUBCORE_VM_FIXED4425_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E350g, + "SUBCORE_VM_FIXED4500_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E350g, + "SUBCORE_VM_FIXED4550_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E350g, + "SUBCORE_VM_FIXED4575_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E350g, + "SUBCORE_VM_FIXED4600_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E350g, + "SUBCORE_VM_FIXED4625_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E350g, + "SUBCORE_VM_FIXED4650_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E350g, + "SUBCORE_VM_FIXED4675_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E350g, + "SUBCORE_VM_FIXED4700_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E350g, + "SUBCORE_VM_FIXED4725_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E350g, + "SUBCORE_VM_FIXED4750_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E350g, + "SUBCORE_VM_FIXED4800_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E350g, + "SUBCORE_VM_FIXED4875_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E350g, + "SUBCORE_VM_FIXED4900_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E350g, + "SUBCORE_VM_FIXED4950_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E350g, + "SUBCORE_VM_FIXED5000_E3_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E350g, + "SUBCORE_VM_FIXED0025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E450g, + "SUBCORE_VM_FIXED0050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E450g, + "SUBCORE_VM_FIXED0075_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E450g, + "SUBCORE_VM_FIXED0100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E450g, + "SUBCORE_VM_FIXED0125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E450g, + "SUBCORE_VM_FIXED0150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E450g, + "SUBCORE_VM_FIXED0175_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E450g, + "SUBCORE_VM_FIXED0200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E450g, + "SUBCORE_VM_FIXED0225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E450g, + "SUBCORE_VM_FIXED0250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E450g, + "SUBCORE_VM_FIXED0275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E450g, + "SUBCORE_VM_FIXED0300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E450g, + "SUBCORE_VM_FIXED0325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E450g, + "SUBCORE_VM_FIXED0350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E450g, + "SUBCORE_VM_FIXED0375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E450g, + "SUBCORE_VM_FIXED0400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E450g, + "SUBCORE_VM_FIXED0425_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E450g, + "SUBCORE_VM_FIXED0450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E450g, + "SUBCORE_VM_FIXED0475_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E450g, + "SUBCORE_VM_FIXED0500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E450g, + "SUBCORE_VM_FIXED0525_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E450g, + "SUBCORE_VM_FIXED0550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E450g, + "SUBCORE_VM_FIXED0575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E450g, + "SUBCORE_VM_FIXED0600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E450g, + "SUBCORE_VM_FIXED0625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E450g, + "SUBCORE_VM_FIXED0650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E450g, + "SUBCORE_VM_FIXED0675_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E450g, + "SUBCORE_VM_FIXED0700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E450g, + "SUBCORE_VM_FIXED0725_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E450g, + "SUBCORE_VM_FIXED0750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E450g, + "SUBCORE_VM_FIXED0775_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E450g, + "SUBCORE_VM_FIXED0800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E450g, + "SUBCORE_VM_FIXED0825_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E450g, + "SUBCORE_VM_FIXED0850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E450g, + "SUBCORE_VM_FIXED0875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E450g, + "SUBCORE_VM_FIXED0900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E450g, + "SUBCORE_VM_FIXED0925_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E450g, + "SUBCORE_VM_FIXED0950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E450g, + "SUBCORE_VM_FIXED0975_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E450g, + "SUBCORE_VM_FIXED1000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E450g, + "SUBCORE_VM_FIXED1025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E450g, + "SUBCORE_VM_FIXED1050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E450g, + "SUBCORE_VM_FIXED1075_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E450g, + "SUBCORE_VM_FIXED1100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E450g, + "SUBCORE_VM_FIXED1125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E450g, + "SUBCORE_VM_FIXED1150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E450g, + "SUBCORE_VM_FIXED1175_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E450g, + "SUBCORE_VM_FIXED1200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E450g, + "SUBCORE_VM_FIXED1225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E450g, + "SUBCORE_VM_FIXED1250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E450g, + "SUBCORE_VM_FIXED1275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E450g, + "SUBCORE_VM_FIXED1300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E450g, + "SUBCORE_VM_FIXED1325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E450g, + "SUBCORE_VM_FIXED1350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E450g, + "SUBCORE_VM_FIXED1375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E450g, + "SUBCORE_VM_FIXED1400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E450g, + "SUBCORE_VM_FIXED1425_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E450g, + "SUBCORE_VM_FIXED1450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E450g, + "SUBCORE_VM_FIXED1475_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E450g, + "SUBCORE_VM_FIXED1500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E450g, + "SUBCORE_VM_FIXED1525_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E450g, + "SUBCORE_VM_FIXED1550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E450g, + "SUBCORE_VM_FIXED1575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E450g, + "SUBCORE_VM_FIXED1600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E450g, + "SUBCORE_VM_FIXED1625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E450g, + "SUBCORE_VM_FIXED1650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E450g, + "SUBCORE_VM_FIXED1700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E450g, + "SUBCORE_VM_FIXED1725_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E450g, + "SUBCORE_VM_FIXED1750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E450g, + "SUBCORE_VM_FIXED1800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E450g, + "SUBCORE_VM_FIXED1850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E450g, + "SUBCORE_VM_FIXED1875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E450g, + "SUBCORE_VM_FIXED1900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E450g, + "SUBCORE_VM_FIXED1925_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E450g, + "SUBCORE_VM_FIXED1950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E450g, + "SUBCORE_VM_FIXED2000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E450g, + "SUBCORE_VM_FIXED2025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E450g, + "SUBCORE_VM_FIXED2050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E450g, + "SUBCORE_VM_FIXED2100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E450g, + "SUBCORE_VM_FIXED2125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E450g, + "SUBCORE_VM_FIXED2150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E450g, + "SUBCORE_VM_FIXED2175_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E450g, + "SUBCORE_VM_FIXED2200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E450g, + "SUBCORE_VM_FIXED2250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E450g, + "SUBCORE_VM_FIXED2275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E450g, + "SUBCORE_VM_FIXED2300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E450g, + "SUBCORE_VM_FIXED2325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E450g, + "SUBCORE_VM_FIXED2350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E450g, + "SUBCORE_VM_FIXED2375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E450g, + "SUBCORE_VM_FIXED2400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E450g, + "SUBCORE_VM_FIXED2450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E450g, + "SUBCORE_VM_FIXED2475_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E450g, + "SUBCORE_VM_FIXED2500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E450g, + "SUBCORE_VM_FIXED2550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E450g, + "SUBCORE_VM_FIXED2600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E450g, + "SUBCORE_VM_FIXED2625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E450g, + "SUBCORE_VM_FIXED2650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E450g, + "SUBCORE_VM_FIXED2700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E450g, + "SUBCORE_VM_FIXED2750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E450g, + "SUBCORE_VM_FIXED2775_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E450g, + "SUBCORE_VM_FIXED2800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E450g, + "SUBCORE_VM_FIXED2850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E450g, + "SUBCORE_VM_FIXED2875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E450g, + "SUBCORE_VM_FIXED2900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E450g, + "SUBCORE_VM_FIXED2925_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E450g, + "SUBCORE_VM_FIXED2950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E450g, + "SUBCORE_VM_FIXED2975_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E450g, + "SUBCORE_VM_FIXED3000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E450g, + "SUBCORE_VM_FIXED3025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E450g, + "SUBCORE_VM_FIXED3050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E450g, + "SUBCORE_VM_FIXED3075_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E450g, + "SUBCORE_VM_FIXED3100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E450g, + "SUBCORE_VM_FIXED3125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E450g, + "SUBCORE_VM_FIXED3150_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E450g, + "SUBCORE_VM_FIXED3200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E450g, + "SUBCORE_VM_FIXED3225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E450g, + "SUBCORE_VM_FIXED3250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E450g, + "SUBCORE_VM_FIXED3300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E450g, + "SUBCORE_VM_FIXED3325_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E450g, + "SUBCORE_VM_FIXED3375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E450g, + "SUBCORE_VM_FIXED3400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E450g, + "SUBCORE_VM_FIXED3450_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E450g, + "SUBCORE_VM_FIXED3500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E450g, + "SUBCORE_VM_FIXED3525_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E450g, + "SUBCORE_VM_FIXED3575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E450g, + "SUBCORE_VM_FIXED3600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E450g, + "SUBCORE_VM_FIXED3625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E450g, + "SUBCORE_VM_FIXED3675_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E450g, + "SUBCORE_VM_FIXED3700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E450g, + "SUBCORE_VM_FIXED3750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E450g, + "SUBCORE_VM_FIXED3800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E450g, + "SUBCORE_VM_FIXED3825_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E450g, + "SUBCORE_VM_FIXED3850_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E450g, + "SUBCORE_VM_FIXED3875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E450g, + "SUBCORE_VM_FIXED3900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E450g, + "SUBCORE_VM_FIXED3975_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E450g, + "SUBCORE_VM_FIXED4000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E450g, + "SUBCORE_VM_FIXED4025_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E450g, + "SUBCORE_VM_FIXED4050_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E450g, + "SUBCORE_VM_FIXED4100_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E450g, + "SUBCORE_VM_FIXED4125_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E450g, + "SUBCORE_VM_FIXED4200_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E450g, + "SUBCORE_VM_FIXED4225_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E450g, + "SUBCORE_VM_FIXED4250_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E450g, + "SUBCORE_VM_FIXED4275_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E450g, + "SUBCORE_VM_FIXED4300_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E450g, + "SUBCORE_VM_FIXED4350_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E450g, + "SUBCORE_VM_FIXED4375_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E450g, + "SUBCORE_VM_FIXED4400_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E450g, + "SUBCORE_VM_FIXED4425_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E450g, + "SUBCORE_VM_FIXED4500_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E450g, + "SUBCORE_VM_FIXED4550_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E450g, + "SUBCORE_VM_FIXED4575_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E450g, + "SUBCORE_VM_FIXED4600_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E450g, + "SUBCORE_VM_FIXED4625_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E450g, + "SUBCORE_VM_FIXED4650_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E450g, + "SUBCORE_VM_FIXED4675_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E450g, + "SUBCORE_VM_FIXED4700_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E450g, + "SUBCORE_VM_FIXED4725_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E450g, + "SUBCORE_VM_FIXED4750_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E450g, + "SUBCORE_VM_FIXED4800_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E450g, + "SUBCORE_VM_FIXED4875_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E450g, + "SUBCORE_VM_FIXED4900_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E450g, + "SUBCORE_VM_FIXED4950_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E450g, + "SUBCORE_VM_FIXED5000_E4_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E450g, + "SUBCORE_VM_FIXED0020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0020A150g, + "SUBCORE_VM_FIXED0040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0040A150g, + "SUBCORE_VM_FIXED0060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0060A150g, + "SUBCORE_VM_FIXED0080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0080A150g, + "SUBCORE_VM_FIXED0100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100A150g, + "SUBCORE_VM_FIXED0120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0120A150g, + "SUBCORE_VM_FIXED0140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0140A150g, + "SUBCORE_VM_FIXED0160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0160A150g, + "SUBCORE_VM_FIXED0180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180A150g, + "SUBCORE_VM_FIXED0200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200A150g, + "SUBCORE_VM_FIXED0220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0220A150g, + "SUBCORE_VM_FIXED0240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0240A150g, + "SUBCORE_VM_FIXED0260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0260A150g, + "SUBCORE_VM_FIXED0280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0280A150g, + "SUBCORE_VM_FIXED0300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300A150g, + "SUBCORE_VM_FIXED0320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0320A150g, + "SUBCORE_VM_FIXED0340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0340A150g, + "SUBCORE_VM_FIXED0360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360A150g, + "SUBCORE_VM_FIXED0380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0380A150g, + "SUBCORE_VM_FIXED0400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400A150g, + "SUBCORE_VM_FIXED0420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0420A150g, + "SUBCORE_VM_FIXED0440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0440A150g, + "SUBCORE_VM_FIXED0460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0460A150g, + "SUBCORE_VM_FIXED0480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0480A150g, + "SUBCORE_VM_FIXED0500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500A150g, + "SUBCORE_VM_FIXED0520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0520A150g, + "SUBCORE_VM_FIXED0540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540A150g, + "SUBCORE_VM_FIXED0560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0560A150g, + "SUBCORE_VM_FIXED0580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0580A150g, + "SUBCORE_VM_FIXED0600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600A150g, + "SUBCORE_VM_FIXED0620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0620A150g, + "SUBCORE_VM_FIXED0640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0640A150g, + "SUBCORE_VM_FIXED0660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0660A150g, + "SUBCORE_VM_FIXED0680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0680A150g, + "SUBCORE_VM_FIXED0700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700A150g, + "SUBCORE_VM_FIXED0720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720A150g, + "SUBCORE_VM_FIXED0740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0740A150g, + "SUBCORE_VM_FIXED0760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0760A150g, + "SUBCORE_VM_FIXED0780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0780A150g, + "SUBCORE_VM_FIXED0800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800A150g, + "SUBCORE_VM_FIXED0820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0820A150g, + "SUBCORE_VM_FIXED0840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0840A150g, + "SUBCORE_VM_FIXED0860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0860A150g, + "SUBCORE_VM_FIXED0880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0880A150g, + "SUBCORE_VM_FIXED0900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900A150g, + "SUBCORE_VM_FIXED0920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0920A150g, + "SUBCORE_VM_FIXED0940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0940A150g, + "SUBCORE_VM_FIXED0960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0960A150g, + "SUBCORE_VM_FIXED0980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0980A150g, + "SUBCORE_VM_FIXED1000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000A150g, + "SUBCORE_VM_FIXED1020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1020A150g, + "SUBCORE_VM_FIXED1040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1040A150g, + "SUBCORE_VM_FIXED1060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1060A150g, + "SUBCORE_VM_FIXED1080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080A150g, + "SUBCORE_VM_FIXED1100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100A150g, + "SUBCORE_VM_FIXED1120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1120A150g, + "SUBCORE_VM_FIXED1140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1140A150g, + "SUBCORE_VM_FIXED1160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1160A150g, + "SUBCORE_VM_FIXED1180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1180A150g, + "SUBCORE_VM_FIXED1200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200A150g, + "SUBCORE_VM_FIXED1220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1220A150g, + "SUBCORE_VM_FIXED1240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1240A150g, + "SUBCORE_VM_FIXED1260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260A150g, + "SUBCORE_VM_FIXED1280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1280A150g, + "SUBCORE_VM_FIXED1300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300A150g, + "SUBCORE_VM_FIXED1320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1320A150g, + "SUBCORE_VM_FIXED1340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1340A150g, + "SUBCORE_VM_FIXED1360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1360A150g, + "SUBCORE_VM_FIXED1380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1380A150g, + "SUBCORE_VM_FIXED1400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400A150g, + "SUBCORE_VM_FIXED1420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1420A150g, + "SUBCORE_VM_FIXED1440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440A150g, + "SUBCORE_VM_FIXED1460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1460A150g, + "SUBCORE_VM_FIXED1480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1480A150g, + "SUBCORE_VM_FIXED1500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500A150g, + "SUBCORE_VM_FIXED1520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1520A150g, + "SUBCORE_VM_FIXED1540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1540A150g, + "SUBCORE_VM_FIXED1560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1560A150g, + "SUBCORE_VM_FIXED1580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1580A150g, + "SUBCORE_VM_FIXED1600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600A150g, + "SUBCORE_VM_FIXED1620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620A150g, + "SUBCORE_VM_FIXED1640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1640A150g, + "SUBCORE_VM_FIXED1660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1660A150g, + "SUBCORE_VM_FIXED1680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1680A150g, + "SUBCORE_VM_FIXED1700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700A150g, + "SUBCORE_VM_FIXED1720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1720A150g, + "SUBCORE_VM_FIXED1740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1740A150g, + "SUBCORE_VM_FIXED1760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1760A150g, + "SUBCORE_VM_FIXED1780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1780A150g, + "SUBCORE_VM_FIXED1800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800A150g, + "SUBCORE_VM_FIXED1820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1820A150g, + "SUBCORE_VM_FIXED1840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1840A150g, + "SUBCORE_VM_FIXED1860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1860A150g, + "SUBCORE_VM_FIXED1880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1880A150g, + "SUBCORE_VM_FIXED1900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900A150g, + "SUBCORE_VM_FIXED1920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1920A150g, + "SUBCORE_VM_FIXED1940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1940A150g, + "SUBCORE_VM_FIXED1960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1960A150g, + "SUBCORE_VM_FIXED1980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980A150g, + "SUBCORE_VM_FIXED2000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000A150g, + "SUBCORE_VM_FIXED2020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2020A150g, + "SUBCORE_VM_FIXED2040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2040A150g, + "SUBCORE_VM_FIXED2060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2060A150g, + "SUBCORE_VM_FIXED2080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2080A150g, + "SUBCORE_VM_FIXED2100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100A150g, + "SUBCORE_VM_FIXED2120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2120A150g, + "SUBCORE_VM_FIXED2140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2140A150g, + "SUBCORE_VM_FIXED2160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160A150g, + "SUBCORE_VM_FIXED2180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2180A150g, + "SUBCORE_VM_FIXED2200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200A150g, + "SUBCORE_VM_FIXED2220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2220A150g, + "SUBCORE_VM_FIXED2240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2240A150g, + "SUBCORE_VM_FIXED2260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2260A150g, + "SUBCORE_VM_FIXED2280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2280A150g, + "SUBCORE_VM_FIXED2300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300A150g, + "SUBCORE_VM_FIXED2320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2320A150g, + "SUBCORE_VM_FIXED2340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340A150g, + "SUBCORE_VM_FIXED2360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2360A150g, + "SUBCORE_VM_FIXED2380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2380A150g, + "SUBCORE_VM_FIXED2400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400A150g, + "SUBCORE_VM_FIXED2420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2420A150g, + "SUBCORE_VM_FIXED2440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2440A150g, + "SUBCORE_VM_FIXED2460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2460A150g, + "SUBCORE_VM_FIXED2480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2480A150g, + "SUBCORE_VM_FIXED2500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500A150g, + "SUBCORE_VM_FIXED2520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520A150g, + "SUBCORE_VM_FIXED2540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2540A150g, + "SUBCORE_VM_FIXED2560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2560A150g, + "SUBCORE_VM_FIXED2580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2580A150g, + "SUBCORE_VM_FIXED2600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600A150g, + "SUBCORE_VM_FIXED2620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2620A150g, + "SUBCORE_VM_FIXED2640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2640A150g, + "SUBCORE_VM_FIXED2660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2660A150g, + "SUBCORE_VM_FIXED2680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2680A150g, + "SUBCORE_VM_FIXED2700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700A150g, + "SUBCORE_VM_FIXED2720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2720A150g, + "SUBCORE_VM_FIXED2740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2740A150g, + "SUBCORE_VM_FIXED2760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2760A150g, + "SUBCORE_VM_FIXED2780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2780A150g, + "SUBCORE_VM_FIXED2800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800A150g, + "SUBCORE_VM_FIXED2820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2820A150g, + "SUBCORE_VM_FIXED2840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2840A150g, + "SUBCORE_VM_FIXED2860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2860A150g, + "SUBCORE_VM_FIXED2880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880A150g, + "SUBCORE_VM_FIXED2900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900A150g, + "SUBCORE_VM_FIXED2920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2920A150g, + "SUBCORE_VM_FIXED2940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2940A150g, + "SUBCORE_VM_FIXED2960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2960A150g, + "SUBCORE_VM_FIXED2980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2980A150g, + "SUBCORE_VM_FIXED3000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000A150g, + "SUBCORE_VM_FIXED3020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3020A150g, + "SUBCORE_VM_FIXED3040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3040A150g, + "SUBCORE_VM_FIXED3060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060A150g, + "SUBCORE_VM_FIXED3080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3080A150g, + "SUBCORE_VM_FIXED3100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100A150g, + "SUBCORE_VM_FIXED3120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3120A150g, + "SUBCORE_VM_FIXED3140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3140A150g, + "SUBCORE_VM_FIXED3160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3160A150g, + "SUBCORE_VM_FIXED3180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3180A150g, + "SUBCORE_VM_FIXED3200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200A150g, + "SUBCORE_VM_FIXED3220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3220A150g, + "SUBCORE_VM_FIXED3240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240A150g, + "SUBCORE_VM_FIXED3260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3260A150g, + "SUBCORE_VM_FIXED3280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3280A150g, + "SUBCORE_VM_FIXED3300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300A150g, + "SUBCORE_VM_FIXED3320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3320A150g, + "SUBCORE_VM_FIXED3340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3340A150g, + "SUBCORE_VM_FIXED3360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3360A150g, + "SUBCORE_VM_FIXED3380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3380A150g, + "SUBCORE_VM_FIXED3400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400A150g, + "SUBCORE_VM_FIXED3420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420A150g, + "SUBCORE_VM_FIXED3440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3440A150g, + "SUBCORE_VM_FIXED3460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3460A150g, + "SUBCORE_VM_FIXED3480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3480A150g, + "SUBCORE_VM_FIXED3500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500A150g, + "SUBCORE_VM_FIXED3520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3520A150g, + "SUBCORE_VM_FIXED3540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3540A150g, + "SUBCORE_VM_FIXED3560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3560A150g, + "SUBCORE_VM_FIXED3580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3580A150g, + "SUBCORE_VM_FIXED3600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600A150g, + "SUBCORE_VM_FIXED3620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3620A150g, + "SUBCORE_VM_FIXED3640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3640A150g, + "SUBCORE_VM_FIXED3660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3660A150g, + "SUBCORE_VM_FIXED3680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3680A150g, + "SUBCORE_VM_FIXED3700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700A150g, + "SUBCORE_VM_FIXED3720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3720A150g, + "SUBCORE_VM_FIXED3740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3740A150g, + "SUBCORE_VM_FIXED3760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3760A150g, + "SUBCORE_VM_FIXED3780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780A150g, + "SUBCORE_VM_FIXED3800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800A150g, + "SUBCORE_VM_FIXED3820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3820A150g, + "SUBCORE_VM_FIXED3840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3840A150g, + "SUBCORE_VM_FIXED3860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3860A150g, + "SUBCORE_VM_FIXED3880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3880A150g, + "SUBCORE_VM_FIXED3900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900A150g, + "SUBCORE_VM_FIXED3920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3920A150g, + "SUBCORE_VM_FIXED3940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3940A150g, + "SUBCORE_VM_FIXED3960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960A150g, + "SUBCORE_VM_FIXED3980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3980A150g, + "SUBCORE_VM_FIXED4000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000A150g, + "SUBCORE_VM_FIXED4020_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4020A150g, + "SUBCORE_VM_FIXED4040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4040A150g, + "SUBCORE_VM_FIXED4060_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4060A150g, + "SUBCORE_VM_FIXED4080_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4080A150g, + "SUBCORE_VM_FIXED4100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100A150g, + "SUBCORE_VM_FIXED4120_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4120A150g, + "SUBCORE_VM_FIXED4140_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140A150g, + "SUBCORE_VM_FIXED4160_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4160A150g, + "SUBCORE_VM_FIXED4180_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4180A150g, + "SUBCORE_VM_FIXED4200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200A150g, + "SUBCORE_VM_FIXED4220_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4220A150g, + "SUBCORE_VM_FIXED4240_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4240A150g, + "SUBCORE_VM_FIXED4260_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4260A150g, + "SUBCORE_VM_FIXED4280_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4280A150g, + "SUBCORE_VM_FIXED4300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300A150g, + "SUBCORE_VM_FIXED4320_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320A150g, + "SUBCORE_VM_FIXED4340_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4340A150g, + "SUBCORE_VM_FIXED4360_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4360A150g, + "SUBCORE_VM_FIXED4380_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4380A150g, + "SUBCORE_VM_FIXED4400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400A150g, + "SUBCORE_VM_FIXED4420_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4420A150g, + "SUBCORE_VM_FIXED4440_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4440A150g, + "SUBCORE_VM_FIXED4460_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4460A150g, + "SUBCORE_VM_FIXED4480_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4480A150g, + "SUBCORE_VM_FIXED4500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500A150g, + "SUBCORE_VM_FIXED4520_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4520A150g, + "SUBCORE_VM_FIXED4540_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4540A150g, + "SUBCORE_VM_FIXED4560_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4560A150g, + "SUBCORE_VM_FIXED4580_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4580A150g, + "SUBCORE_VM_FIXED4600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600A150g, + "SUBCORE_VM_FIXED4620_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4620A150g, + "SUBCORE_VM_FIXED4640_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4640A150g, + "SUBCORE_VM_FIXED4660_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4660A150g, + "SUBCORE_VM_FIXED4680_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680A150g, + "SUBCORE_VM_FIXED4700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700A150g, + "SUBCORE_VM_FIXED4720_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4720A150g, + "SUBCORE_VM_FIXED4740_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4740A150g, + "SUBCORE_VM_FIXED4760_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4760A150g, + "SUBCORE_VM_FIXED4780_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4780A150g, + "SUBCORE_VM_FIXED4800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800A150g, + "SUBCORE_VM_FIXED4820_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4820A150g, + "SUBCORE_VM_FIXED4840_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4840A150g, + "SUBCORE_VM_FIXED4860_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860A150g, + "SUBCORE_VM_FIXED4880_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4880A150g, + "SUBCORE_VM_FIXED4900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900A150g, + "SUBCORE_VM_FIXED4920_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4920A150g, + "SUBCORE_VM_FIXED4940_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4940A150g, + "SUBCORE_VM_FIXED4960_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4960A150g, + "SUBCORE_VM_FIXED4980_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4980A150g, + "SUBCORE_VM_FIXED5000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000A150g, + "SUBCORE_VM_FIXED0090_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0090X950g, + "SUBCORE_VM_FIXED0180_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180X950g, + "SUBCORE_VM_FIXED0270_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0270X950g, + "SUBCORE_VM_FIXED0360_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360X950g, + "SUBCORE_VM_FIXED0450_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450X950g, + "SUBCORE_VM_FIXED0540_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540X950g, + "SUBCORE_VM_FIXED0630_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0630X950g, + "SUBCORE_VM_FIXED0720_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720X950g, + "SUBCORE_VM_FIXED0810_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0810X950g, + "SUBCORE_VM_FIXED0900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900X950g, + "SUBCORE_VM_FIXED0990_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0990X950g, + "SUBCORE_VM_FIXED1080_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080X950g, + "SUBCORE_VM_FIXED1170_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1170X950g, + "SUBCORE_VM_FIXED1260_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260X950g, + "SUBCORE_VM_FIXED1350_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350X950g, + "SUBCORE_VM_FIXED1440_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440X950g, + "SUBCORE_VM_FIXED1530_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1530X950g, + "SUBCORE_VM_FIXED1620_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620X950g, + "SUBCORE_VM_FIXED1710_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1710X950g, + "SUBCORE_VM_FIXED1800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800X950g, + "SUBCORE_VM_FIXED1890_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1890X950g, + "SUBCORE_VM_FIXED1980_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980X950g, + "SUBCORE_VM_FIXED2070_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2070X950g, + "SUBCORE_VM_FIXED2160_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160X950g, + "SUBCORE_VM_FIXED2250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250X950g, + "SUBCORE_VM_FIXED2340_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340X950g, + "SUBCORE_VM_FIXED2430_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2430X950g, + "SUBCORE_VM_FIXED2520_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520X950g, + "SUBCORE_VM_FIXED2610_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2610X950g, + "SUBCORE_VM_FIXED2700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700X950g, + "SUBCORE_VM_FIXED2790_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2790X950g, + "SUBCORE_VM_FIXED2880_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880X950g, + "SUBCORE_VM_FIXED2970_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2970X950g, + "SUBCORE_VM_FIXED3060_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060X950g, + "SUBCORE_VM_FIXED3150_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150X950g, + "SUBCORE_VM_FIXED3240_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240X950g, + "SUBCORE_VM_FIXED3330_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3330X950g, + "SUBCORE_VM_FIXED3420_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420X950g, + "SUBCORE_VM_FIXED3510_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3510X950g, + "SUBCORE_VM_FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600X950g, + "SUBCORE_VM_FIXED3690_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3690X950g, + "SUBCORE_VM_FIXED3780_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780X950g, + "SUBCORE_VM_FIXED3870_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3870X950g, + "SUBCORE_VM_FIXED3960_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960X950g, + "SUBCORE_VM_FIXED4050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050X950g, + "SUBCORE_VM_FIXED4140_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140X950g, + "SUBCORE_VM_FIXED4230_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4230X950g, + "SUBCORE_VM_FIXED4320_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320X950g, + "SUBCORE_VM_FIXED4410_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4410X950g, + "SUBCORE_VM_FIXED4500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500X950g, + "SUBCORE_VM_FIXED4590_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4590X950g, + "SUBCORE_VM_FIXED4680_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680X950g, + "SUBCORE_VM_FIXED4770_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4770X950g, + "SUBCORE_VM_FIXED4860_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860X950g, + "SUBCORE_VM_FIXED4950_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950X950g, + "DYNAMIC_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicA150g, + "FIXED0040_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040A150g, + "FIXED0100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100A150g, + "FIXED0200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200A150g, + "FIXED0300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300A150g, + "FIXED0400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400A150g, + "FIXED0500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500A150g, + "FIXED0600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600A150g, + "FIXED0700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700A150g, + "FIXED0800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800A150g, + "FIXED0900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900A150g, + "FIXED1000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000A150g, + "FIXED1100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100A150g, + "FIXED1200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200A150g, + "FIXED1300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300A150g, + "FIXED1400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400A150g, + "FIXED1500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500A150g, + "FIXED1600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600A150g, + "FIXED1700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700A150g, + "FIXED1800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800A150g, + "FIXED1900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900A150g, + "FIXED2000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000A150g, + "FIXED2100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100A150g, + "FIXED2200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200A150g, + "FIXED2300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300A150g, + "FIXED2400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400A150g, + "FIXED2500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500A150g, + "FIXED2600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600A150g, + "FIXED2700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700A150g, + "FIXED2800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800A150g, + "FIXED2900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900A150g, + "FIXED3000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000A150g, + "FIXED3100_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100A150g, + "FIXED3200_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200A150g, + "FIXED3300_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300A150g, + "FIXED3400_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400A150g, + "FIXED3500_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500A150g, + "FIXED3600_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600A150g, + "FIXED3700_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700A150g, + "FIXED3800_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800A150g, + "FIXED3900_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900A150g, + "FIXED4000_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000A150g, + "FIXED5000_TELESIS_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed5000TelesisA150g, + "ENTIREHOST_A1_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostA150g, + "DYNAMIC_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeDynamicX950g, + "FIXED0040_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040X950g, + "FIXED0400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400X950g, + "FIXED0800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800X950g, + "FIXED1200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200X950g, + "FIXED1600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600X950g, + "FIXED2000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000X950g, + "FIXED2400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400X950g, + "FIXED2800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800X950g, + "FIXED3200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200X950g, + "FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600X950g, + "FIXED4000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000X950g, + "STANDARD_VM_FIXED0100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0100X950g, + "STANDARD_VM_FIXED0200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0200X950g, + "STANDARD_VM_FIXED0300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0300X950g, + "STANDARD_VM_FIXED0400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0400X950g, + "STANDARD_VM_FIXED0500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0500X950g, + "STANDARD_VM_FIXED0600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0600X950g, + "STANDARD_VM_FIXED0700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0700X950g, + "STANDARD_VM_FIXED0800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0800X950g, + "STANDARD_VM_FIXED0900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0900X950g, + "STANDARD_VM_FIXED1000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1000X950g, + "STANDARD_VM_FIXED1100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1100X950g, + "STANDARD_VM_FIXED1200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1200X950g, + "STANDARD_VM_FIXED1300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1300X950g, + "STANDARD_VM_FIXED1400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1400X950g, + "STANDARD_VM_FIXED1500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1500X950g, + "STANDARD_VM_FIXED1600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1600X950g, + "STANDARD_VM_FIXED1700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1700X950g, + "STANDARD_VM_FIXED1800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1800X950g, + "STANDARD_VM_FIXED1900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1900X950g, + "STANDARD_VM_FIXED2000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2000X950g, + "STANDARD_VM_FIXED2100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2100X950g, + "STANDARD_VM_FIXED2200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2200X950g, + "STANDARD_VM_FIXED2300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2300X950g, + "STANDARD_VM_FIXED2400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2400X950g, + "STANDARD_VM_FIXED2500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2500X950g, + "STANDARD_VM_FIXED2600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2600X950g, + "STANDARD_VM_FIXED2700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2700X950g, + "STANDARD_VM_FIXED2800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2800X950g, + "STANDARD_VM_FIXED2900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2900X950g, + "STANDARD_VM_FIXED3000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3000X950g, + "STANDARD_VM_FIXED3100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3100X950g, + "STANDARD_VM_FIXED3200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3200X950g, + "STANDARD_VM_FIXED3300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3300X950g, + "STANDARD_VM_FIXED3400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3400X950g, + "STANDARD_VM_FIXED3500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3500X950g, + "STANDARD_VM_FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3600X950g, + "STANDARD_VM_FIXED3700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3700X950g, + "STANDARD_VM_FIXED3800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3800X950g, + "STANDARD_VM_FIXED3900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3900X950g, + "STANDARD_VM_FIXED4000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0025X950g, + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0050X950g, + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0075X950g, + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0100X950g, + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0125X950g, + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0150X950g, + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0175X950g, + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0200X950g, + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0225X950g, + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0250X950g, + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0275X950g, + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0300X950g, + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0325X950g, + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0350X950g, + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0375X950g, + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0400X950g, + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0425X950g, + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0450X950g, + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0475X950g, + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0500X950g, + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0525X950g, + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0550X950g, + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0575X950g, + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0600X950g, + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0625X950g, + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0650X950g, + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0675X950g, + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0700X950g, + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0725X950g, + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0750X950g, + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0775X950g, + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0800X950g, + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0825X950g, + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0850X950g, + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0875X950g, + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0900X950g, + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0925X950g, + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0950X950g, + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0975X950g, + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1000X950g, + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1025X950g, + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1050X950g, + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1075X950g, + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1100X950g, + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1125X950g, + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1150X950g, + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1175X950g, + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1200X950g, + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1225X950g, + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1250X950g, + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1275X950g, + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1300X950g, + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1325X950g, + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1350X950g, + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1375X950g, + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1400X950g, + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1425X950g, + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1450X950g, + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1475X950g, + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1500X950g, + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1525X950g, + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1550X950g, + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1575X950g, + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1600X950g, + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1625X950g, + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1650X950g, + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1700X950g, + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1725X950g, + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1750X950g, + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1800X950g, + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1850X950g, + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1875X950g, + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1900X950g, + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1925X950g, + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1950X950g, + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2000X950g, + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2025X950g, + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2050X950g, + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2100X950g, + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2125X950g, + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2150X950g, + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2175X950g, + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2200X950g, + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2250X950g, + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2275X950g, + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2300X950g, + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2325X950g, + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2350X950g, + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2375X950g, + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2400X950g, + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2450X950g, + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2475X950g, + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2500X950g, + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2550X950g, + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2600X950g, + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2625X950g, + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2650X950g, + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2700X950g, + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2750X950g, + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2775X950g, + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2800X950g, + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2850X950g, + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2875X950g, + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2900X950g, + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2925X950g, + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2950X950g, + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2975X950g, + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3000X950g, + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3025X950g, + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3050X950g, + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3075X950g, + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3100X950g, + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3125X950g, + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3150X950g, + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3200X950g, + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3225X950g, + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3250X950g, + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3300X950g, + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3325X950g, + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3375X950g, + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3400X950g, + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3450X950g, + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3500X950g, + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3525X950g, + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3575X950g, + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3600X950g, + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3625X950g, + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3675X950g, + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3700X950g, + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3750X950g, + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3800X950g, + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3825X950g, + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3850X950g, + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3875X950g, + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3900X950g, + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3975X950g, + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4025X950g, + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4050X950g, + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4100X950g, + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4125X950g, + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4200X950g, + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4225X950g, + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4250X950g, + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4275X950g, + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4300X950g, + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4350X950g, + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4375X950g, + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4400X950g, + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4425X950g, + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4500X950g, + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4550X950g, + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4575X950g, + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4600X950g, + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4625X950g, + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4650X950g, + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4675X950g, + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4700X950g, + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4725X950g, + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4750X950g, + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4800X950g, + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4875X950g, + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4900X950g, + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4950X950g, + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed5000X950g, + "ENTIREHOST_X9_50G": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostX950g, +} + +var mappingCreateInternalVnicAttachmentDetailsVnicShapeEnumLowerCase = map[string]CreateInternalVnicAttachmentDetailsVnicShapeEnum{ + "dynamic": CreateInternalVnicAttachmentDetailsVnicShapeDynamic, + "fixed0040": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040, + "fixed0060": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060, + "fixed0060_psm": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060Psm, + "fixed0100": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100, + "fixed0120": CreateInternalVnicAttachmentDetailsVnicShapeFixed0120, + "fixed0120_2x": CreateInternalVnicAttachmentDetailsVnicShapeFixed01202x, + "fixed0200": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200, + "fixed0240": CreateInternalVnicAttachmentDetailsVnicShapeFixed0240, + "fixed0480": CreateInternalVnicAttachmentDetailsVnicShapeFixed0480, + "entirehost": CreateInternalVnicAttachmentDetailsVnicShapeEntirehost, + "dynamic_25g": CreateInternalVnicAttachmentDetailsVnicShapeDynamic25g, + "fixed0040_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed004025g, + "fixed0100_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed010025g, + "fixed0200_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed020025g, + "fixed0400_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed040025g, + "fixed0800_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed080025g, + "fixed1600_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed160025g, + "fixed2400_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed240025g, + "entirehost_25g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehost25g, + "dynamic_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE125g, + "fixed0040_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E125g, + "fixed0070_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0070E125g, + "fixed0140_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0140E125g, + "fixed0280_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0280E125g, + "fixed0560_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0560E125g, + "fixed1120_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1120E125g, + "fixed1680_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1680E125g, + "entirehost_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE125g, + "dynamic_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeDynamicB125g, + "fixed0040_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040B125g, + "fixed0060_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0060B125g, + "fixed0120_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0120B125g, + "fixed0240_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0240B125g, + "fixed0480_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0480B125g, + "fixed0960_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0960B125g, + "entirehost_b1_25g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostB125g, + "micro_vm_fixed0048_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0048E125g, + "micro_lb_fixed0001_e1_25g": CreateInternalVnicAttachmentDetailsVnicShapeMicroLbFixed0001E125g, + "vnicaas_fixed0200": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0200, + "vnicaas_fixed0400": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0400, + "vnicaas_fixed0700": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFixed0700, + "vnicaas_nlb_approved_10g": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved10g, + "vnicaas_nlb_approved_25g": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasNlbApproved25g, + "vnicaas_telesis_25g": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis25g, + "vnicaas_telesis_10g": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesis10g, + "vnicaas_ambassador_fixed0100": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasAmbassadorFixed0100, + "vnicaas_telesis_gamma": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasTelesisGamma, + "vnicaas_privatedns": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasPrivatedns, + "vnicaas_fwaas": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasFwaas, + "vnicaas_lbaas_free": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaasFree, + "vnicaas_lbaas_8g_512k": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g512k, + "vnicaas_lbaas_8g_1m": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m, + "vnicaas_lbaas_8g_2m": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g2m, + "vnicaas_lbaas_8g_3m": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g3m, + "vnicaas_lbaas_8g_1m_8ghost": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m8ghost, + "vnicaas_lbaas_8g_1m_16ghost": CreateInternalVnicAttachmentDetailsVnicShapeVnicaasLbaas8g1m16ghost, + "dynamic_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE350g, + "fixed0040_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E350g, + "fixed0100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E350g, + "fixed0200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E350g, + "fixed0300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E350g, + "fixed0400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E350g, + "fixed0500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E350g, + "fixed0600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E350g, + "fixed0700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E350g, + "fixed0800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E350g, + "fixed0900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E350g, + "fixed1000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E350g, + "fixed1100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E350g, + "fixed1200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E350g, + "fixed1300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E350g, + "fixed1400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E350g, + "fixed1500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E350g, + "fixed1600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E350g, + "fixed1700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E350g, + "fixed1800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E350g, + "fixed1900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E350g, + "fixed2000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E350g, + "fixed2100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E350g, + "fixed2200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E350g, + "fixed2300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E350g, + "fixed2400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E350g, + "fixed2500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E350g, + "fixed2600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E350g, + "fixed2700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E350g, + "fixed2800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E350g, + "fixed2900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E350g, + "fixed3000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E350g, + "fixed3100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E350g, + "fixed3200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E350g, + "fixed3300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E350g, + "fixed3400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E350g, + "fixed3500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E350g, + "fixed3600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E350g, + "fixed3700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E350g, + "fixed3800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E350g, + "fixed3900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E350g, + "fixed4000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E350g, + "entirehost_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE350g, + "dynamic_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeDynamicE450g, + "fixed0040_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040E450g, + "fixed0100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100E450g, + "fixed0200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200E450g, + "fixed0300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300E450g, + "fixed0400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400E450g, + "fixed0500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500E450g, + "fixed0600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600E450g, + "fixed0700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700E450g, + "fixed0800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800E450g, + "fixed0900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900E450g, + "fixed1000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000E450g, + "fixed1100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100E450g, + "fixed1200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200E450g, + "fixed1300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300E450g, + "fixed1400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400E450g, + "fixed1500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500E450g, + "fixed1600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600E450g, + "fixed1700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700E450g, + "fixed1800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800E450g, + "fixed1900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900E450g, + "fixed2000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000E450g, + "fixed2100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100E450g, + "fixed2200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200E450g, + "fixed2300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300E450g, + "fixed2400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400E450g, + "fixed2500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500E450g, + "fixed2600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600E450g, + "fixed2700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700E450g, + "fixed2800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800E450g, + "fixed2900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900E450g, + "fixed3000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000E450g, + "fixed3100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100E450g, + "fixed3200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200E450g, + "fixed3300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300E450g, + "fixed3400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400E450g, + "fixed3500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500E450g, + "fixed3600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600E450g, + "fixed3700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700E450g, + "fixed3800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800E450g, + "fixed3900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900E450g, + "fixed4000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000E450g, + "entirehost_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostE450g, + "micro_vm_fixed0050_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E350g, + "micro_vm_fixed0050_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeMicroVmFixed0050E450g, + "subcore_vm_fixed0025_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E350g, + "subcore_vm_fixed0050_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E350g, + "subcore_vm_fixed0075_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E350g, + "subcore_vm_fixed0100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E350g, + "subcore_vm_fixed0125_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E350g, + "subcore_vm_fixed0150_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E350g, + "subcore_vm_fixed0175_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E350g, + "subcore_vm_fixed0200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E350g, + "subcore_vm_fixed0225_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E350g, + "subcore_vm_fixed0250_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E350g, + "subcore_vm_fixed0275_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E350g, + "subcore_vm_fixed0300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E350g, + "subcore_vm_fixed0325_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E350g, + "subcore_vm_fixed0350_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E350g, + "subcore_vm_fixed0375_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E350g, + "subcore_vm_fixed0400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E350g, + "subcore_vm_fixed0425_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E350g, + "subcore_vm_fixed0450_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E350g, + "subcore_vm_fixed0475_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E350g, + "subcore_vm_fixed0500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E350g, + "subcore_vm_fixed0525_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E350g, + "subcore_vm_fixed0550_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E350g, + "subcore_vm_fixed0575_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E350g, + "subcore_vm_fixed0600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E350g, + "subcore_vm_fixed0625_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E350g, + "subcore_vm_fixed0650_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E350g, + "subcore_vm_fixed0675_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E350g, + "subcore_vm_fixed0700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E350g, + "subcore_vm_fixed0725_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E350g, + "subcore_vm_fixed0750_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E350g, + "subcore_vm_fixed0775_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E350g, + "subcore_vm_fixed0800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E350g, + "subcore_vm_fixed0825_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E350g, + "subcore_vm_fixed0850_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E350g, + "subcore_vm_fixed0875_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E350g, + "subcore_vm_fixed0900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E350g, + "subcore_vm_fixed0925_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E350g, + "subcore_vm_fixed0950_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E350g, + "subcore_vm_fixed0975_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E350g, + "subcore_vm_fixed1000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E350g, + "subcore_vm_fixed1025_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E350g, + "subcore_vm_fixed1050_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E350g, + "subcore_vm_fixed1075_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E350g, + "subcore_vm_fixed1100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E350g, + "subcore_vm_fixed1125_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E350g, + "subcore_vm_fixed1150_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E350g, + "subcore_vm_fixed1175_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E350g, + "subcore_vm_fixed1200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E350g, + "subcore_vm_fixed1225_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E350g, + "subcore_vm_fixed1250_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E350g, + "subcore_vm_fixed1275_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E350g, + "subcore_vm_fixed1300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E350g, + "subcore_vm_fixed1325_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E350g, + "subcore_vm_fixed1350_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E350g, + "subcore_vm_fixed1375_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E350g, + "subcore_vm_fixed1400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E350g, + "subcore_vm_fixed1425_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E350g, + "subcore_vm_fixed1450_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E350g, + "subcore_vm_fixed1475_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E350g, + "subcore_vm_fixed1500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E350g, + "subcore_vm_fixed1525_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E350g, + "subcore_vm_fixed1550_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E350g, + "subcore_vm_fixed1575_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E350g, + "subcore_vm_fixed1600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E350g, + "subcore_vm_fixed1625_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E350g, + "subcore_vm_fixed1650_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E350g, + "subcore_vm_fixed1700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E350g, + "subcore_vm_fixed1725_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E350g, + "subcore_vm_fixed1750_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E350g, + "subcore_vm_fixed1800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E350g, + "subcore_vm_fixed1850_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E350g, + "subcore_vm_fixed1875_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E350g, + "subcore_vm_fixed1900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E350g, + "subcore_vm_fixed1925_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E350g, + "subcore_vm_fixed1950_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E350g, + "subcore_vm_fixed2000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E350g, + "subcore_vm_fixed2025_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E350g, + "subcore_vm_fixed2050_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E350g, + "subcore_vm_fixed2100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E350g, + "subcore_vm_fixed2125_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E350g, + "subcore_vm_fixed2150_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E350g, + "subcore_vm_fixed2175_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E350g, + "subcore_vm_fixed2200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E350g, + "subcore_vm_fixed2250_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E350g, + "subcore_vm_fixed2275_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E350g, + "subcore_vm_fixed2300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E350g, + "subcore_vm_fixed2325_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E350g, + "subcore_vm_fixed2350_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E350g, + "subcore_vm_fixed2375_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E350g, + "subcore_vm_fixed2400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E350g, + "subcore_vm_fixed2450_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E350g, + "subcore_vm_fixed2475_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E350g, + "subcore_vm_fixed2500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E350g, + "subcore_vm_fixed2550_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E350g, + "subcore_vm_fixed2600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E350g, + "subcore_vm_fixed2625_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E350g, + "subcore_vm_fixed2650_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E350g, + "subcore_vm_fixed2700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E350g, + "subcore_vm_fixed2750_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E350g, + "subcore_vm_fixed2775_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E350g, + "subcore_vm_fixed2800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E350g, + "subcore_vm_fixed2850_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E350g, + "subcore_vm_fixed2875_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E350g, + "subcore_vm_fixed2900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E350g, + "subcore_vm_fixed2925_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E350g, + "subcore_vm_fixed2950_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E350g, + "subcore_vm_fixed2975_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E350g, + "subcore_vm_fixed3000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E350g, + "subcore_vm_fixed3025_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E350g, + "subcore_vm_fixed3050_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E350g, + "subcore_vm_fixed3075_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E350g, + "subcore_vm_fixed3100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E350g, + "subcore_vm_fixed3125_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E350g, + "subcore_vm_fixed3150_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E350g, + "subcore_vm_fixed3200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E350g, + "subcore_vm_fixed3225_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E350g, + "subcore_vm_fixed3250_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E350g, + "subcore_vm_fixed3300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E350g, + "subcore_vm_fixed3325_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E350g, + "subcore_vm_fixed3375_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E350g, + "subcore_vm_fixed3400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E350g, + "subcore_vm_fixed3450_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E350g, + "subcore_vm_fixed3500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E350g, + "subcore_vm_fixed3525_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E350g, + "subcore_vm_fixed3575_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E350g, + "subcore_vm_fixed3600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E350g, + "subcore_vm_fixed3625_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E350g, + "subcore_vm_fixed3675_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E350g, + "subcore_vm_fixed3700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E350g, + "subcore_vm_fixed3750_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E350g, + "subcore_vm_fixed3800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E350g, + "subcore_vm_fixed3825_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E350g, + "subcore_vm_fixed3850_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E350g, + "subcore_vm_fixed3875_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E350g, + "subcore_vm_fixed3900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E350g, + "subcore_vm_fixed3975_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E350g, + "subcore_vm_fixed4000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E350g, + "subcore_vm_fixed4025_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E350g, + "subcore_vm_fixed4050_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E350g, + "subcore_vm_fixed4100_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E350g, + "subcore_vm_fixed4125_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E350g, + "subcore_vm_fixed4200_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E350g, + "subcore_vm_fixed4225_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E350g, + "subcore_vm_fixed4250_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E350g, + "subcore_vm_fixed4275_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E350g, + "subcore_vm_fixed4300_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E350g, + "subcore_vm_fixed4350_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E350g, + "subcore_vm_fixed4375_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E350g, + "subcore_vm_fixed4400_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E350g, + "subcore_vm_fixed4425_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E350g, + "subcore_vm_fixed4500_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E350g, + "subcore_vm_fixed4550_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E350g, + "subcore_vm_fixed4575_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E350g, + "subcore_vm_fixed4600_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E350g, + "subcore_vm_fixed4625_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E350g, + "subcore_vm_fixed4650_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E350g, + "subcore_vm_fixed4675_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E350g, + "subcore_vm_fixed4700_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E350g, + "subcore_vm_fixed4725_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E350g, + "subcore_vm_fixed4750_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E350g, + "subcore_vm_fixed4800_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E350g, + "subcore_vm_fixed4875_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E350g, + "subcore_vm_fixed4900_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E350g, + "subcore_vm_fixed4950_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E350g, + "subcore_vm_fixed5000_e3_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E350g, + "subcore_vm_fixed0025_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0025E450g, + "subcore_vm_fixed0050_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0050E450g, + "subcore_vm_fixed0075_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0075E450g, + "subcore_vm_fixed0100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100E450g, + "subcore_vm_fixed0125_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0125E450g, + "subcore_vm_fixed0150_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0150E450g, + "subcore_vm_fixed0175_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0175E450g, + "subcore_vm_fixed0200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200E450g, + "subcore_vm_fixed0225_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0225E450g, + "subcore_vm_fixed0250_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0250E450g, + "subcore_vm_fixed0275_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0275E450g, + "subcore_vm_fixed0300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300E450g, + "subcore_vm_fixed0325_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0325E450g, + "subcore_vm_fixed0350_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0350E450g, + "subcore_vm_fixed0375_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0375E450g, + "subcore_vm_fixed0400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400E450g, + "subcore_vm_fixed0425_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0425E450g, + "subcore_vm_fixed0450_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450E450g, + "subcore_vm_fixed0475_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0475E450g, + "subcore_vm_fixed0500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500E450g, + "subcore_vm_fixed0525_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0525E450g, + "subcore_vm_fixed0550_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0550E450g, + "subcore_vm_fixed0575_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0575E450g, + "subcore_vm_fixed0600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600E450g, + "subcore_vm_fixed0625_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0625E450g, + "subcore_vm_fixed0650_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0650E450g, + "subcore_vm_fixed0675_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0675E450g, + "subcore_vm_fixed0700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700E450g, + "subcore_vm_fixed0725_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0725E450g, + "subcore_vm_fixed0750_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0750E450g, + "subcore_vm_fixed0775_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0775E450g, + "subcore_vm_fixed0800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800E450g, + "subcore_vm_fixed0825_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0825E450g, + "subcore_vm_fixed0850_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0850E450g, + "subcore_vm_fixed0875_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0875E450g, + "subcore_vm_fixed0900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900E450g, + "subcore_vm_fixed0925_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0925E450g, + "subcore_vm_fixed0950_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0950E450g, + "subcore_vm_fixed0975_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0975E450g, + "subcore_vm_fixed1000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000E450g, + "subcore_vm_fixed1025_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1025E450g, + "subcore_vm_fixed1050_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1050E450g, + "subcore_vm_fixed1075_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1075E450g, + "subcore_vm_fixed1100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100E450g, + "subcore_vm_fixed1125_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1125E450g, + "subcore_vm_fixed1150_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1150E450g, + "subcore_vm_fixed1175_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1175E450g, + "subcore_vm_fixed1200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200E450g, + "subcore_vm_fixed1225_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1225E450g, + "subcore_vm_fixed1250_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1250E450g, + "subcore_vm_fixed1275_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1275E450g, + "subcore_vm_fixed1300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300E450g, + "subcore_vm_fixed1325_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1325E450g, + "subcore_vm_fixed1350_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350E450g, + "subcore_vm_fixed1375_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1375E450g, + "subcore_vm_fixed1400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400E450g, + "subcore_vm_fixed1425_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1425E450g, + "subcore_vm_fixed1450_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1450E450g, + "subcore_vm_fixed1475_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1475E450g, + "subcore_vm_fixed1500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500E450g, + "subcore_vm_fixed1525_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1525E450g, + "subcore_vm_fixed1550_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1550E450g, + "subcore_vm_fixed1575_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1575E450g, + "subcore_vm_fixed1600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600E450g, + "subcore_vm_fixed1625_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1625E450g, + "subcore_vm_fixed1650_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1650E450g, + "subcore_vm_fixed1700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700E450g, + "subcore_vm_fixed1725_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1725E450g, + "subcore_vm_fixed1750_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1750E450g, + "subcore_vm_fixed1800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800E450g, + "subcore_vm_fixed1850_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1850E450g, + "subcore_vm_fixed1875_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1875E450g, + "subcore_vm_fixed1900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900E450g, + "subcore_vm_fixed1925_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1925E450g, + "subcore_vm_fixed1950_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1950E450g, + "subcore_vm_fixed2000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000E450g, + "subcore_vm_fixed2025_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2025E450g, + "subcore_vm_fixed2050_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2050E450g, + "subcore_vm_fixed2100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100E450g, + "subcore_vm_fixed2125_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2125E450g, + "subcore_vm_fixed2150_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2150E450g, + "subcore_vm_fixed2175_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2175E450g, + "subcore_vm_fixed2200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200E450g, + "subcore_vm_fixed2250_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250E450g, + "subcore_vm_fixed2275_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2275E450g, + "subcore_vm_fixed2300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300E450g, + "subcore_vm_fixed2325_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2325E450g, + "subcore_vm_fixed2350_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2350E450g, + "subcore_vm_fixed2375_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2375E450g, + "subcore_vm_fixed2400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400E450g, + "subcore_vm_fixed2450_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2450E450g, + "subcore_vm_fixed2475_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2475E450g, + "subcore_vm_fixed2500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500E450g, + "subcore_vm_fixed2550_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2550E450g, + "subcore_vm_fixed2600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600E450g, + "subcore_vm_fixed2625_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2625E450g, + "subcore_vm_fixed2650_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2650E450g, + "subcore_vm_fixed2700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700E450g, + "subcore_vm_fixed2750_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2750E450g, + "subcore_vm_fixed2775_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2775E450g, + "subcore_vm_fixed2800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800E450g, + "subcore_vm_fixed2850_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2850E450g, + "subcore_vm_fixed2875_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2875E450g, + "subcore_vm_fixed2900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900E450g, + "subcore_vm_fixed2925_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2925E450g, + "subcore_vm_fixed2950_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2950E450g, + "subcore_vm_fixed2975_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2975E450g, + "subcore_vm_fixed3000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000E450g, + "subcore_vm_fixed3025_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3025E450g, + "subcore_vm_fixed3050_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3050E450g, + "subcore_vm_fixed3075_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3075E450g, + "subcore_vm_fixed3100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100E450g, + "subcore_vm_fixed3125_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3125E450g, + "subcore_vm_fixed3150_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150E450g, + "subcore_vm_fixed3200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200E450g, + "subcore_vm_fixed3225_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3225E450g, + "subcore_vm_fixed3250_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3250E450g, + "subcore_vm_fixed3300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300E450g, + "subcore_vm_fixed3325_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3325E450g, + "subcore_vm_fixed3375_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3375E450g, + "subcore_vm_fixed3400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400E450g, + "subcore_vm_fixed3450_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3450E450g, + "subcore_vm_fixed3500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500E450g, + "subcore_vm_fixed3525_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3525E450g, + "subcore_vm_fixed3575_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3575E450g, + "subcore_vm_fixed3600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600E450g, + "subcore_vm_fixed3625_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3625E450g, + "subcore_vm_fixed3675_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3675E450g, + "subcore_vm_fixed3700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700E450g, + "subcore_vm_fixed3750_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3750E450g, + "subcore_vm_fixed3800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800E450g, + "subcore_vm_fixed3825_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3825E450g, + "subcore_vm_fixed3850_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3850E450g, + "subcore_vm_fixed3875_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3875E450g, + "subcore_vm_fixed3900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900E450g, + "subcore_vm_fixed3975_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3975E450g, + "subcore_vm_fixed4000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000E450g, + "subcore_vm_fixed4025_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4025E450g, + "subcore_vm_fixed4050_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050E450g, + "subcore_vm_fixed4100_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100E450g, + "subcore_vm_fixed4125_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4125E450g, + "subcore_vm_fixed4200_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200E450g, + "subcore_vm_fixed4225_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4225E450g, + "subcore_vm_fixed4250_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4250E450g, + "subcore_vm_fixed4275_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4275E450g, + "subcore_vm_fixed4300_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300E450g, + "subcore_vm_fixed4350_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4350E450g, + "subcore_vm_fixed4375_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4375E450g, + "subcore_vm_fixed4400_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400E450g, + "subcore_vm_fixed4425_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4425E450g, + "subcore_vm_fixed4500_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500E450g, + "subcore_vm_fixed4550_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4550E450g, + "subcore_vm_fixed4575_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4575E450g, + "subcore_vm_fixed4600_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600E450g, + "subcore_vm_fixed4625_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4625E450g, + "subcore_vm_fixed4650_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4650E450g, + "subcore_vm_fixed4675_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4675E450g, + "subcore_vm_fixed4700_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700E450g, + "subcore_vm_fixed4725_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4725E450g, + "subcore_vm_fixed4750_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4750E450g, + "subcore_vm_fixed4800_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800E450g, + "subcore_vm_fixed4875_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4875E450g, + "subcore_vm_fixed4900_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900E450g, + "subcore_vm_fixed4950_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950E450g, + "subcore_vm_fixed5000_e4_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000E450g, + "subcore_vm_fixed0020_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0020A150g, + "subcore_vm_fixed0040_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0040A150g, + "subcore_vm_fixed0060_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0060A150g, + "subcore_vm_fixed0080_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0080A150g, + "subcore_vm_fixed0100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0100A150g, + "subcore_vm_fixed0120_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0120A150g, + "subcore_vm_fixed0140_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0140A150g, + "subcore_vm_fixed0160_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0160A150g, + "subcore_vm_fixed0180_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180A150g, + "subcore_vm_fixed0200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0200A150g, + "subcore_vm_fixed0220_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0220A150g, + "subcore_vm_fixed0240_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0240A150g, + "subcore_vm_fixed0260_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0260A150g, + "subcore_vm_fixed0280_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0280A150g, + "subcore_vm_fixed0300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0300A150g, + "subcore_vm_fixed0320_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0320A150g, + "subcore_vm_fixed0340_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0340A150g, + "subcore_vm_fixed0360_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360A150g, + "subcore_vm_fixed0380_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0380A150g, + "subcore_vm_fixed0400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0400A150g, + "subcore_vm_fixed0420_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0420A150g, + "subcore_vm_fixed0440_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0440A150g, + "subcore_vm_fixed0460_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0460A150g, + "subcore_vm_fixed0480_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0480A150g, + "subcore_vm_fixed0500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0500A150g, + "subcore_vm_fixed0520_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0520A150g, + "subcore_vm_fixed0540_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540A150g, + "subcore_vm_fixed0560_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0560A150g, + "subcore_vm_fixed0580_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0580A150g, + "subcore_vm_fixed0600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0600A150g, + "subcore_vm_fixed0620_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0620A150g, + "subcore_vm_fixed0640_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0640A150g, + "subcore_vm_fixed0660_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0660A150g, + "subcore_vm_fixed0680_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0680A150g, + "subcore_vm_fixed0700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0700A150g, + "subcore_vm_fixed0720_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720A150g, + "subcore_vm_fixed0740_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0740A150g, + "subcore_vm_fixed0760_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0760A150g, + "subcore_vm_fixed0780_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0780A150g, + "subcore_vm_fixed0800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0800A150g, + "subcore_vm_fixed0820_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0820A150g, + "subcore_vm_fixed0840_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0840A150g, + "subcore_vm_fixed0860_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0860A150g, + "subcore_vm_fixed0880_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0880A150g, + "subcore_vm_fixed0900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900A150g, + "subcore_vm_fixed0920_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0920A150g, + "subcore_vm_fixed0940_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0940A150g, + "subcore_vm_fixed0960_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0960A150g, + "subcore_vm_fixed0980_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0980A150g, + "subcore_vm_fixed1000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1000A150g, + "subcore_vm_fixed1020_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1020A150g, + "subcore_vm_fixed1040_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1040A150g, + "subcore_vm_fixed1060_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1060A150g, + "subcore_vm_fixed1080_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080A150g, + "subcore_vm_fixed1100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1100A150g, + "subcore_vm_fixed1120_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1120A150g, + "subcore_vm_fixed1140_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1140A150g, + "subcore_vm_fixed1160_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1160A150g, + "subcore_vm_fixed1180_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1180A150g, + "subcore_vm_fixed1200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1200A150g, + "subcore_vm_fixed1220_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1220A150g, + "subcore_vm_fixed1240_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1240A150g, + "subcore_vm_fixed1260_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260A150g, + "subcore_vm_fixed1280_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1280A150g, + "subcore_vm_fixed1300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1300A150g, + "subcore_vm_fixed1320_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1320A150g, + "subcore_vm_fixed1340_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1340A150g, + "subcore_vm_fixed1360_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1360A150g, + "subcore_vm_fixed1380_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1380A150g, + "subcore_vm_fixed1400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1400A150g, + "subcore_vm_fixed1420_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1420A150g, + "subcore_vm_fixed1440_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440A150g, + "subcore_vm_fixed1460_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1460A150g, + "subcore_vm_fixed1480_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1480A150g, + "subcore_vm_fixed1500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1500A150g, + "subcore_vm_fixed1520_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1520A150g, + "subcore_vm_fixed1540_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1540A150g, + "subcore_vm_fixed1560_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1560A150g, + "subcore_vm_fixed1580_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1580A150g, + "subcore_vm_fixed1600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1600A150g, + "subcore_vm_fixed1620_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620A150g, + "subcore_vm_fixed1640_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1640A150g, + "subcore_vm_fixed1660_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1660A150g, + "subcore_vm_fixed1680_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1680A150g, + "subcore_vm_fixed1700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1700A150g, + "subcore_vm_fixed1720_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1720A150g, + "subcore_vm_fixed1740_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1740A150g, + "subcore_vm_fixed1760_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1760A150g, + "subcore_vm_fixed1780_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1780A150g, + "subcore_vm_fixed1800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800A150g, + "subcore_vm_fixed1820_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1820A150g, + "subcore_vm_fixed1840_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1840A150g, + "subcore_vm_fixed1860_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1860A150g, + "subcore_vm_fixed1880_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1880A150g, + "subcore_vm_fixed1900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1900A150g, + "subcore_vm_fixed1920_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1920A150g, + "subcore_vm_fixed1940_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1940A150g, + "subcore_vm_fixed1960_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1960A150g, + "subcore_vm_fixed1980_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980A150g, + "subcore_vm_fixed2000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2000A150g, + "subcore_vm_fixed2020_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2020A150g, + "subcore_vm_fixed2040_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2040A150g, + "subcore_vm_fixed2060_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2060A150g, + "subcore_vm_fixed2080_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2080A150g, + "subcore_vm_fixed2100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2100A150g, + "subcore_vm_fixed2120_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2120A150g, + "subcore_vm_fixed2140_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2140A150g, + "subcore_vm_fixed2160_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160A150g, + "subcore_vm_fixed2180_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2180A150g, + "subcore_vm_fixed2200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2200A150g, + "subcore_vm_fixed2220_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2220A150g, + "subcore_vm_fixed2240_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2240A150g, + "subcore_vm_fixed2260_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2260A150g, + "subcore_vm_fixed2280_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2280A150g, + "subcore_vm_fixed2300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2300A150g, + "subcore_vm_fixed2320_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2320A150g, + "subcore_vm_fixed2340_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340A150g, + "subcore_vm_fixed2360_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2360A150g, + "subcore_vm_fixed2380_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2380A150g, + "subcore_vm_fixed2400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2400A150g, + "subcore_vm_fixed2420_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2420A150g, + "subcore_vm_fixed2440_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2440A150g, + "subcore_vm_fixed2460_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2460A150g, + "subcore_vm_fixed2480_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2480A150g, + "subcore_vm_fixed2500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2500A150g, + "subcore_vm_fixed2520_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520A150g, + "subcore_vm_fixed2540_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2540A150g, + "subcore_vm_fixed2560_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2560A150g, + "subcore_vm_fixed2580_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2580A150g, + "subcore_vm_fixed2600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2600A150g, + "subcore_vm_fixed2620_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2620A150g, + "subcore_vm_fixed2640_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2640A150g, + "subcore_vm_fixed2660_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2660A150g, + "subcore_vm_fixed2680_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2680A150g, + "subcore_vm_fixed2700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700A150g, + "subcore_vm_fixed2720_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2720A150g, + "subcore_vm_fixed2740_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2740A150g, + "subcore_vm_fixed2760_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2760A150g, + "subcore_vm_fixed2780_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2780A150g, + "subcore_vm_fixed2800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2800A150g, + "subcore_vm_fixed2820_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2820A150g, + "subcore_vm_fixed2840_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2840A150g, + "subcore_vm_fixed2860_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2860A150g, + "subcore_vm_fixed2880_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880A150g, + "subcore_vm_fixed2900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2900A150g, + "subcore_vm_fixed2920_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2920A150g, + "subcore_vm_fixed2940_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2940A150g, + "subcore_vm_fixed2960_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2960A150g, + "subcore_vm_fixed2980_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2980A150g, + "subcore_vm_fixed3000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3000A150g, + "subcore_vm_fixed3020_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3020A150g, + "subcore_vm_fixed3040_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3040A150g, + "subcore_vm_fixed3060_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060A150g, + "subcore_vm_fixed3080_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3080A150g, + "subcore_vm_fixed3100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3100A150g, + "subcore_vm_fixed3120_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3120A150g, + "subcore_vm_fixed3140_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3140A150g, + "subcore_vm_fixed3160_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3160A150g, + "subcore_vm_fixed3180_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3180A150g, + "subcore_vm_fixed3200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3200A150g, + "subcore_vm_fixed3220_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3220A150g, + "subcore_vm_fixed3240_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240A150g, + "subcore_vm_fixed3260_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3260A150g, + "subcore_vm_fixed3280_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3280A150g, + "subcore_vm_fixed3300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3300A150g, + "subcore_vm_fixed3320_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3320A150g, + "subcore_vm_fixed3340_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3340A150g, + "subcore_vm_fixed3360_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3360A150g, + "subcore_vm_fixed3380_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3380A150g, + "subcore_vm_fixed3400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3400A150g, + "subcore_vm_fixed3420_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420A150g, + "subcore_vm_fixed3440_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3440A150g, + "subcore_vm_fixed3460_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3460A150g, + "subcore_vm_fixed3480_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3480A150g, + "subcore_vm_fixed3500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3500A150g, + "subcore_vm_fixed3520_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3520A150g, + "subcore_vm_fixed3540_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3540A150g, + "subcore_vm_fixed3560_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3560A150g, + "subcore_vm_fixed3580_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3580A150g, + "subcore_vm_fixed3600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600A150g, + "subcore_vm_fixed3620_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3620A150g, + "subcore_vm_fixed3640_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3640A150g, + "subcore_vm_fixed3660_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3660A150g, + "subcore_vm_fixed3680_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3680A150g, + "subcore_vm_fixed3700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3700A150g, + "subcore_vm_fixed3720_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3720A150g, + "subcore_vm_fixed3740_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3740A150g, + "subcore_vm_fixed3760_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3760A150g, + "subcore_vm_fixed3780_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780A150g, + "subcore_vm_fixed3800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3800A150g, + "subcore_vm_fixed3820_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3820A150g, + "subcore_vm_fixed3840_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3840A150g, + "subcore_vm_fixed3860_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3860A150g, + "subcore_vm_fixed3880_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3880A150g, + "subcore_vm_fixed3900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3900A150g, + "subcore_vm_fixed3920_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3920A150g, + "subcore_vm_fixed3940_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3940A150g, + "subcore_vm_fixed3960_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960A150g, + "subcore_vm_fixed3980_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3980A150g, + "subcore_vm_fixed4000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4000A150g, + "subcore_vm_fixed4020_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4020A150g, + "subcore_vm_fixed4040_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4040A150g, + "subcore_vm_fixed4060_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4060A150g, + "subcore_vm_fixed4080_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4080A150g, + "subcore_vm_fixed4100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4100A150g, + "subcore_vm_fixed4120_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4120A150g, + "subcore_vm_fixed4140_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140A150g, + "subcore_vm_fixed4160_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4160A150g, + "subcore_vm_fixed4180_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4180A150g, + "subcore_vm_fixed4200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4200A150g, + "subcore_vm_fixed4220_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4220A150g, + "subcore_vm_fixed4240_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4240A150g, + "subcore_vm_fixed4260_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4260A150g, + "subcore_vm_fixed4280_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4280A150g, + "subcore_vm_fixed4300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4300A150g, + "subcore_vm_fixed4320_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320A150g, + "subcore_vm_fixed4340_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4340A150g, + "subcore_vm_fixed4360_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4360A150g, + "subcore_vm_fixed4380_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4380A150g, + "subcore_vm_fixed4400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4400A150g, + "subcore_vm_fixed4420_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4420A150g, + "subcore_vm_fixed4440_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4440A150g, + "subcore_vm_fixed4460_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4460A150g, + "subcore_vm_fixed4480_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4480A150g, + "subcore_vm_fixed4500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500A150g, + "subcore_vm_fixed4520_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4520A150g, + "subcore_vm_fixed4540_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4540A150g, + "subcore_vm_fixed4560_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4560A150g, + "subcore_vm_fixed4580_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4580A150g, + "subcore_vm_fixed4600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4600A150g, + "subcore_vm_fixed4620_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4620A150g, + "subcore_vm_fixed4640_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4640A150g, + "subcore_vm_fixed4660_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4660A150g, + "subcore_vm_fixed4680_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680A150g, + "subcore_vm_fixed4700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4700A150g, + "subcore_vm_fixed4720_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4720A150g, + "subcore_vm_fixed4740_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4740A150g, + "subcore_vm_fixed4760_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4760A150g, + "subcore_vm_fixed4780_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4780A150g, + "subcore_vm_fixed4800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4800A150g, + "subcore_vm_fixed4820_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4820A150g, + "subcore_vm_fixed4840_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4840A150g, + "subcore_vm_fixed4860_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860A150g, + "subcore_vm_fixed4880_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4880A150g, + "subcore_vm_fixed4900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4900A150g, + "subcore_vm_fixed4920_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4920A150g, + "subcore_vm_fixed4940_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4940A150g, + "subcore_vm_fixed4960_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4960A150g, + "subcore_vm_fixed4980_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4980A150g, + "subcore_vm_fixed5000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed5000A150g, + "subcore_vm_fixed0090_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0090X950g, + "subcore_vm_fixed0180_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0180X950g, + "subcore_vm_fixed0270_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0270X950g, + "subcore_vm_fixed0360_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0360X950g, + "subcore_vm_fixed0450_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0450X950g, + "subcore_vm_fixed0540_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0540X950g, + "subcore_vm_fixed0630_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0630X950g, + "subcore_vm_fixed0720_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0720X950g, + "subcore_vm_fixed0810_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0810X950g, + "subcore_vm_fixed0900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0900X950g, + "subcore_vm_fixed0990_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed0990X950g, + "subcore_vm_fixed1080_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1080X950g, + "subcore_vm_fixed1170_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1170X950g, + "subcore_vm_fixed1260_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1260X950g, + "subcore_vm_fixed1350_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1350X950g, + "subcore_vm_fixed1440_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1440X950g, + "subcore_vm_fixed1530_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1530X950g, + "subcore_vm_fixed1620_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1620X950g, + "subcore_vm_fixed1710_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1710X950g, + "subcore_vm_fixed1800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1800X950g, + "subcore_vm_fixed1890_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1890X950g, + "subcore_vm_fixed1980_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed1980X950g, + "subcore_vm_fixed2070_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2070X950g, + "subcore_vm_fixed2160_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2160X950g, + "subcore_vm_fixed2250_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2250X950g, + "subcore_vm_fixed2340_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2340X950g, + "subcore_vm_fixed2430_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2430X950g, + "subcore_vm_fixed2520_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2520X950g, + "subcore_vm_fixed2610_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2610X950g, + "subcore_vm_fixed2700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2700X950g, + "subcore_vm_fixed2790_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2790X950g, + "subcore_vm_fixed2880_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2880X950g, + "subcore_vm_fixed2970_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed2970X950g, + "subcore_vm_fixed3060_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3060X950g, + "subcore_vm_fixed3150_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3150X950g, + "subcore_vm_fixed3240_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3240X950g, + "subcore_vm_fixed3330_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3330X950g, + "subcore_vm_fixed3420_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3420X950g, + "subcore_vm_fixed3510_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3510X950g, + "subcore_vm_fixed3600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3600X950g, + "subcore_vm_fixed3690_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3690X950g, + "subcore_vm_fixed3780_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3780X950g, + "subcore_vm_fixed3870_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3870X950g, + "subcore_vm_fixed3960_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed3960X950g, + "subcore_vm_fixed4050_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4050X950g, + "subcore_vm_fixed4140_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4140X950g, + "subcore_vm_fixed4230_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4230X950g, + "subcore_vm_fixed4320_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4320X950g, + "subcore_vm_fixed4410_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4410X950g, + "subcore_vm_fixed4500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4500X950g, + "subcore_vm_fixed4590_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4590X950g, + "subcore_vm_fixed4680_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4680X950g, + "subcore_vm_fixed4770_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4770X950g, + "subcore_vm_fixed4860_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4860X950g, + "subcore_vm_fixed4950_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreVmFixed4950X950g, + "dynamic_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeDynamicA150g, + "fixed0040_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040A150g, + "fixed0100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0100A150g, + "fixed0200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0200A150g, + "fixed0300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0300A150g, + "fixed0400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400A150g, + "fixed0500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0500A150g, + "fixed0600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0600A150g, + "fixed0700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0700A150g, + "fixed0800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800A150g, + "fixed0900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0900A150g, + "fixed1000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1000A150g, + "fixed1100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1100A150g, + "fixed1200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200A150g, + "fixed1300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1300A150g, + "fixed1400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1400A150g, + "fixed1500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1500A150g, + "fixed1600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600A150g, + "fixed1700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1700A150g, + "fixed1800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1800A150g, + "fixed1900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1900A150g, + "fixed2000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000A150g, + "fixed2100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2100A150g, + "fixed2200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2200A150g, + "fixed2300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2300A150g, + "fixed2400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400A150g, + "fixed2500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2500A150g, + "fixed2600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2600A150g, + "fixed2700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2700A150g, + "fixed2800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800A150g, + "fixed2900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2900A150g, + "fixed3000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3000A150g, + "fixed3100_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3100A150g, + "fixed3200_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200A150g, + "fixed3300_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3300A150g, + "fixed3400_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3400A150g, + "fixed3500_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3500A150g, + "fixed3600_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600A150g, + "fixed3700_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3700A150g, + "fixed3800_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3800A150g, + "fixed3900_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3900A150g, + "fixed4000_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000A150g, + "fixed5000_telesis_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed5000TelesisA150g, + "entirehost_a1_50g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostA150g, + "dynamic_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeDynamicX950g, + "fixed0040_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0040X950g, + "fixed0400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0400X950g, + "fixed0800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed0800X950g, + "fixed1200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1200X950g, + "fixed1600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed1600X950g, + "fixed2000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2000X950g, + "fixed2400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2400X950g, + "fixed2800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed2800X950g, + "fixed3200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3200X950g, + "fixed3600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed3600X950g, + "fixed4000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeFixed4000X950g, + "standard_vm_fixed0100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0100X950g, + "standard_vm_fixed0200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0200X950g, + "standard_vm_fixed0300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0300X950g, + "standard_vm_fixed0400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0400X950g, + "standard_vm_fixed0500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0500X950g, + "standard_vm_fixed0600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0600X950g, + "standard_vm_fixed0700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0700X950g, + "standard_vm_fixed0800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0800X950g, + "standard_vm_fixed0900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed0900X950g, + "standard_vm_fixed1000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1000X950g, + "standard_vm_fixed1100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1100X950g, + "standard_vm_fixed1200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1200X950g, + "standard_vm_fixed1300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1300X950g, + "standard_vm_fixed1400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1400X950g, + "standard_vm_fixed1500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1500X950g, + "standard_vm_fixed1600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1600X950g, + "standard_vm_fixed1700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1700X950g, + "standard_vm_fixed1800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1800X950g, + "standard_vm_fixed1900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed1900X950g, + "standard_vm_fixed2000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2000X950g, + "standard_vm_fixed2100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2100X950g, + "standard_vm_fixed2200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2200X950g, + "standard_vm_fixed2300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2300X950g, + "standard_vm_fixed2400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2400X950g, + "standard_vm_fixed2500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2500X950g, + "standard_vm_fixed2600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2600X950g, + "standard_vm_fixed2700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2700X950g, + "standard_vm_fixed2800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2800X950g, + "standard_vm_fixed2900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed2900X950g, + "standard_vm_fixed3000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3000X950g, + "standard_vm_fixed3100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3100X950g, + "standard_vm_fixed3200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3200X950g, + "standard_vm_fixed3300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3300X950g, + "standard_vm_fixed3400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3400X950g, + "standard_vm_fixed3500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3500X950g, + "standard_vm_fixed3600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3600X950g, + "standard_vm_fixed3700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3700X950g, + "standard_vm_fixed3800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3800X950g, + "standard_vm_fixed3900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed3900X950g, + "standard_vm_fixed4000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeStandardVmFixed4000X950g, + "subcore_standard_vm_fixed0025_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0025X950g, + "subcore_standard_vm_fixed0050_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0050X950g, + "subcore_standard_vm_fixed0075_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0075X950g, + "subcore_standard_vm_fixed0100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0100X950g, + "subcore_standard_vm_fixed0125_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0125X950g, + "subcore_standard_vm_fixed0150_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0150X950g, + "subcore_standard_vm_fixed0175_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0175X950g, + "subcore_standard_vm_fixed0200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0200X950g, + "subcore_standard_vm_fixed0225_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0225X950g, + "subcore_standard_vm_fixed0250_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0250X950g, + "subcore_standard_vm_fixed0275_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0275X950g, + "subcore_standard_vm_fixed0300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0300X950g, + "subcore_standard_vm_fixed0325_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0325X950g, + "subcore_standard_vm_fixed0350_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0350X950g, + "subcore_standard_vm_fixed0375_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0375X950g, + "subcore_standard_vm_fixed0400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0400X950g, + "subcore_standard_vm_fixed0425_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0425X950g, + "subcore_standard_vm_fixed0450_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0450X950g, + "subcore_standard_vm_fixed0475_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0475X950g, + "subcore_standard_vm_fixed0500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0500X950g, + "subcore_standard_vm_fixed0525_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0525X950g, + "subcore_standard_vm_fixed0550_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0550X950g, + "subcore_standard_vm_fixed0575_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0575X950g, + "subcore_standard_vm_fixed0600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0600X950g, + "subcore_standard_vm_fixed0625_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0625X950g, + "subcore_standard_vm_fixed0650_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0650X950g, + "subcore_standard_vm_fixed0675_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0675X950g, + "subcore_standard_vm_fixed0700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0700X950g, + "subcore_standard_vm_fixed0725_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0725X950g, + "subcore_standard_vm_fixed0750_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0750X950g, + "subcore_standard_vm_fixed0775_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0775X950g, + "subcore_standard_vm_fixed0800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0800X950g, + "subcore_standard_vm_fixed0825_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0825X950g, + "subcore_standard_vm_fixed0850_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0850X950g, + "subcore_standard_vm_fixed0875_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0875X950g, + "subcore_standard_vm_fixed0900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0900X950g, + "subcore_standard_vm_fixed0925_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0925X950g, + "subcore_standard_vm_fixed0950_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0950X950g, + "subcore_standard_vm_fixed0975_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed0975X950g, + "subcore_standard_vm_fixed1000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1000X950g, + "subcore_standard_vm_fixed1025_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1025X950g, + "subcore_standard_vm_fixed1050_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1050X950g, + "subcore_standard_vm_fixed1075_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1075X950g, + "subcore_standard_vm_fixed1100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1100X950g, + "subcore_standard_vm_fixed1125_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1125X950g, + "subcore_standard_vm_fixed1150_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1150X950g, + "subcore_standard_vm_fixed1175_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1175X950g, + "subcore_standard_vm_fixed1200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1200X950g, + "subcore_standard_vm_fixed1225_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1225X950g, + "subcore_standard_vm_fixed1250_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1250X950g, + "subcore_standard_vm_fixed1275_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1275X950g, + "subcore_standard_vm_fixed1300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1300X950g, + "subcore_standard_vm_fixed1325_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1325X950g, + "subcore_standard_vm_fixed1350_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1350X950g, + "subcore_standard_vm_fixed1375_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1375X950g, + "subcore_standard_vm_fixed1400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1400X950g, + "subcore_standard_vm_fixed1425_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1425X950g, + "subcore_standard_vm_fixed1450_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1450X950g, + "subcore_standard_vm_fixed1475_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1475X950g, + "subcore_standard_vm_fixed1500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1500X950g, + "subcore_standard_vm_fixed1525_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1525X950g, + "subcore_standard_vm_fixed1550_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1550X950g, + "subcore_standard_vm_fixed1575_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1575X950g, + "subcore_standard_vm_fixed1600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1600X950g, + "subcore_standard_vm_fixed1625_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1625X950g, + "subcore_standard_vm_fixed1650_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1650X950g, + "subcore_standard_vm_fixed1700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1700X950g, + "subcore_standard_vm_fixed1725_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1725X950g, + "subcore_standard_vm_fixed1750_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1750X950g, + "subcore_standard_vm_fixed1800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1800X950g, + "subcore_standard_vm_fixed1850_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1850X950g, + "subcore_standard_vm_fixed1875_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1875X950g, + "subcore_standard_vm_fixed1900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1900X950g, + "subcore_standard_vm_fixed1925_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1925X950g, + "subcore_standard_vm_fixed1950_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed1950X950g, + "subcore_standard_vm_fixed2000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2000X950g, + "subcore_standard_vm_fixed2025_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2025X950g, + "subcore_standard_vm_fixed2050_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2050X950g, + "subcore_standard_vm_fixed2100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2100X950g, + "subcore_standard_vm_fixed2125_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2125X950g, + "subcore_standard_vm_fixed2150_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2150X950g, + "subcore_standard_vm_fixed2175_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2175X950g, + "subcore_standard_vm_fixed2200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2200X950g, + "subcore_standard_vm_fixed2250_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2250X950g, + "subcore_standard_vm_fixed2275_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2275X950g, + "subcore_standard_vm_fixed2300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2300X950g, + "subcore_standard_vm_fixed2325_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2325X950g, + "subcore_standard_vm_fixed2350_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2350X950g, + "subcore_standard_vm_fixed2375_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2375X950g, + "subcore_standard_vm_fixed2400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2400X950g, + "subcore_standard_vm_fixed2450_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2450X950g, + "subcore_standard_vm_fixed2475_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2475X950g, + "subcore_standard_vm_fixed2500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2500X950g, + "subcore_standard_vm_fixed2550_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2550X950g, + "subcore_standard_vm_fixed2600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2600X950g, + "subcore_standard_vm_fixed2625_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2625X950g, + "subcore_standard_vm_fixed2650_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2650X950g, + "subcore_standard_vm_fixed2700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2700X950g, + "subcore_standard_vm_fixed2750_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2750X950g, + "subcore_standard_vm_fixed2775_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2775X950g, + "subcore_standard_vm_fixed2800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2800X950g, + "subcore_standard_vm_fixed2850_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2850X950g, + "subcore_standard_vm_fixed2875_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2875X950g, + "subcore_standard_vm_fixed2900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2900X950g, + "subcore_standard_vm_fixed2925_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2925X950g, + "subcore_standard_vm_fixed2950_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2950X950g, + "subcore_standard_vm_fixed2975_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed2975X950g, + "subcore_standard_vm_fixed3000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3000X950g, + "subcore_standard_vm_fixed3025_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3025X950g, + "subcore_standard_vm_fixed3050_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3050X950g, + "subcore_standard_vm_fixed3075_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3075X950g, + "subcore_standard_vm_fixed3100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3100X950g, + "subcore_standard_vm_fixed3125_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3125X950g, + "subcore_standard_vm_fixed3150_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3150X950g, + "subcore_standard_vm_fixed3200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3200X950g, + "subcore_standard_vm_fixed3225_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3225X950g, + "subcore_standard_vm_fixed3250_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3250X950g, + "subcore_standard_vm_fixed3300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3300X950g, + "subcore_standard_vm_fixed3325_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3325X950g, + "subcore_standard_vm_fixed3375_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3375X950g, + "subcore_standard_vm_fixed3400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3400X950g, + "subcore_standard_vm_fixed3450_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3450X950g, + "subcore_standard_vm_fixed3500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3500X950g, + "subcore_standard_vm_fixed3525_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3525X950g, + "subcore_standard_vm_fixed3575_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3575X950g, + "subcore_standard_vm_fixed3600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3600X950g, + "subcore_standard_vm_fixed3625_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3625X950g, + "subcore_standard_vm_fixed3675_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3675X950g, + "subcore_standard_vm_fixed3700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3700X950g, + "subcore_standard_vm_fixed3750_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3750X950g, + "subcore_standard_vm_fixed3800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3800X950g, + "subcore_standard_vm_fixed3825_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3825X950g, + "subcore_standard_vm_fixed3850_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3850X950g, + "subcore_standard_vm_fixed3875_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3875X950g, + "subcore_standard_vm_fixed3900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3900X950g, + "subcore_standard_vm_fixed3975_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed3975X950g, + "subcore_standard_vm_fixed4000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4000X950g, + "subcore_standard_vm_fixed4025_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4025X950g, + "subcore_standard_vm_fixed4050_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4050X950g, + "subcore_standard_vm_fixed4100_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4100X950g, + "subcore_standard_vm_fixed4125_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4125X950g, + "subcore_standard_vm_fixed4200_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4200X950g, + "subcore_standard_vm_fixed4225_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4225X950g, + "subcore_standard_vm_fixed4250_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4250X950g, + "subcore_standard_vm_fixed4275_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4275X950g, + "subcore_standard_vm_fixed4300_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4300X950g, + "subcore_standard_vm_fixed4350_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4350X950g, + "subcore_standard_vm_fixed4375_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4375X950g, + "subcore_standard_vm_fixed4400_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4400X950g, + "subcore_standard_vm_fixed4425_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4425X950g, + "subcore_standard_vm_fixed4500_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4500X950g, + "subcore_standard_vm_fixed4550_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4550X950g, + "subcore_standard_vm_fixed4575_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4575X950g, + "subcore_standard_vm_fixed4600_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4600X950g, + "subcore_standard_vm_fixed4625_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4625X950g, + "subcore_standard_vm_fixed4650_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4650X950g, + "subcore_standard_vm_fixed4675_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4675X950g, + "subcore_standard_vm_fixed4700_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4700X950g, + "subcore_standard_vm_fixed4725_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4725X950g, + "subcore_standard_vm_fixed4750_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4750X950g, + "subcore_standard_vm_fixed4800_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4800X950g, + "subcore_standard_vm_fixed4875_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4875X950g, + "subcore_standard_vm_fixed4900_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4900X950g, + "subcore_standard_vm_fixed4950_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed4950X950g, + "subcore_standard_vm_fixed5000_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeSubcoreStandardVmFixed5000X950g, + "entirehost_x9_50g": CreateInternalVnicAttachmentDetailsVnicShapeEntirehostX950g, +} + +// GetCreateInternalVnicAttachmentDetailsVnicShapeEnumValues Enumerates the set of values for CreateInternalVnicAttachmentDetailsVnicShapeEnum +func GetCreateInternalVnicAttachmentDetailsVnicShapeEnumValues() []CreateInternalVnicAttachmentDetailsVnicShapeEnum { + values := make([]CreateInternalVnicAttachmentDetailsVnicShapeEnum, 0) + for _, v := range mappingCreateInternalVnicAttachmentDetailsVnicShapeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalVnicAttachmentDetailsVnicShapeEnumStringValues Enumerates the set of values in String for CreateInternalVnicAttachmentDetailsVnicShapeEnum +func GetCreateInternalVnicAttachmentDetailsVnicShapeEnumStringValues() []string { + return []string{ + "DYNAMIC", + "FIXED0040", + "FIXED0060", + "FIXED0060_PSM", + "FIXED0100", + "FIXED0120", + "FIXED0120_2X", + "FIXED0200", + "FIXED0240", + "FIXED0480", + "ENTIREHOST", + "DYNAMIC_25G", + "FIXED0040_25G", + "FIXED0100_25G", + "FIXED0200_25G", + "FIXED0400_25G", + "FIXED0800_25G", + "FIXED1600_25G", + "FIXED2400_25G", + "ENTIREHOST_25G", + "DYNAMIC_E1_25G", + "FIXED0040_E1_25G", + "FIXED0070_E1_25G", + "FIXED0140_E1_25G", + "FIXED0280_E1_25G", + "FIXED0560_E1_25G", + "FIXED1120_E1_25G", + "FIXED1680_E1_25G", + "ENTIREHOST_E1_25G", + "DYNAMIC_B1_25G", + "FIXED0040_B1_25G", + "FIXED0060_B1_25G", + "FIXED0120_B1_25G", + "FIXED0240_B1_25G", + "FIXED0480_B1_25G", + "FIXED0960_B1_25G", + "ENTIREHOST_B1_25G", + "MICRO_VM_FIXED0048_E1_25G", + "MICRO_LB_FIXED0001_E1_25G", + "VNICAAS_FIXED0200", + "VNICAAS_FIXED0400", + "VNICAAS_FIXED0700", + "VNICAAS_NLB_APPROVED_10G", + "VNICAAS_NLB_APPROVED_25G", + "VNICAAS_TELESIS_25G", + "VNICAAS_TELESIS_10G", + "VNICAAS_AMBASSADOR_FIXED0100", + "VNICAAS_TELESIS_GAMMA", + "VNICAAS_PRIVATEDNS", + "VNICAAS_FWAAS", + "VNICAAS_LBAAS_FREE", + "VNICAAS_LBAAS_8G_512K", + "VNICAAS_LBAAS_8G_1M", + "VNICAAS_LBAAS_8G_2M", + "VNICAAS_LBAAS_8G_3M", + "VNICAAS_LBAAS_8G_1M_8GHOST", + "VNICAAS_LBAAS_8G_1M_16GHOST", + "DYNAMIC_E3_50G", + "FIXED0040_E3_50G", + "FIXED0100_E3_50G", + "FIXED0200_E3_50G", + "FIXED0300_E3_50G", + "FIXED0400_E3_50G", + "FIXED0500_E3_50G", + "FIXED0600_E3_50G", + "FIXED0700_E3_50G", + "FIXED0800_E3_50G", + "FIXED0900_E3_50G", + "FIXED1000_E3_50G", + "FIXED1100_E3_50G", + "FIXED1200_E3_50G", + "FIXED1300_E3_50G", + "FIXED1400_E3_50G", + "FIXED1500_E3_50G", + "FIXED1600_E3_50G", + "FIXED1700_E3_50G", + "FIXED1800_E3_50G", + "FIXED1900_E3_50G", + "FIXED2000_E3_50G", + "FIXED2100_E3_50G", + "FIXED2200_E3_50G", + "FIXED2300_E3_50G", + "FIXED2400_E3_50G", + "FIXED2500_E3_50G", + "FIXED2600_E3_50G", + "FIXED2700_E3_50G", + "FIXED2800_E3_50G", + "FIXED2900_E3_50G", + "FIXED3000_E3_50G", + "FIXED3100_E3_50G", + "FIXED3200_E3_50G", + "FIXED3300_E3_50G", + "FIXED3400_E3_50G", + "FIXED3500_E3_50G", + "FIXED3600_E3_50G", + "FIXED3700_E3_50G", + "FIXED3800_E3_50G", + "FIXED3900_E3_50G", + "FIXED4000_E3_50G", + "ENTIREHOST_E3_50G", + "DYNAMIC_E4_50G", + "FIXED0040_E4_50G", + "FIXED0100_E4_50G", + "FIXED0200_E4_50G", + "FIXED0300_E4_50G", + "FIXED0400_E4_50G", + "FIXED0500_E4_50G", + "FIXED0600_E4_50G", + "FIXED0700_E4_50G", + "FIXED0800_E4_50G", + "FIXED0900_E4_50G", + "FIXED1000_E4_50G", + "FIXED1100_E4_50G", + "FIXED1200_E4_50G", + "FIXED1300_E4_50G", + "FIXED1400_E4_50G", + "FIXED1500_E4_50G", + "FIXED1600_E4_50G", + "FIXED1700_E4_50G", + "FIXED1800_E4_50G", + "FIXED1900_E4_50G", + "FIXED2000_E4_50G", + "FIXED2100_E4_50G", + "FIXED2200_E4_50G", + "FIXED2300_E4_50G", + "FIXED2400_E4_50G", + "FIXED2500_E4_50G", + "FIXED2600_E4_50G", + "FIXED2700_E4_50G", + "FIXED2800_E4_50G", + "FIXED2900_E4_50G", + "FIXED3000_E4_50G", + "FIXED3100_E4_50G", + "FIXED3200_E4_50G", + "FIXED3300_E4_50G", + "FIXED3400_E4_50G", + "FIXED3500_E4_50G", + "FIXED3600_E4_50G", + "FIXED3700_E4_50G", + "FIXED3800_E4_50G", + "FIXED3900_E4_50G", + "FIXED4000_E4_50G", + "ENTIREHOST_E4_50G", + "Micro_VM_Fixed0050_E3_50G", + "Micro_VM_Fixed0050_E4_50G", + "SUBCORE_VM_FIXED0025_E3_50G", + "SUBCORE_VM_FIXED0050_E3_50G", + "SUBCORE_VM_FIXED0075_E3_50G", + "SUBCORE_VM_FIXED0100_E3_50G", + "SUBCORE_VM_FIXED0125_E3_50G", + "SUBCORE_VM_FIXED0150_E3_50G", + "SUBCORE_VM_FIXED0175_E3_50G", + "SUBCORE_VM_FIXED0200_E3_50G", + "SUBCORE_VM_FIXED0225_E3_50G", + "SUBCORE_VM_FIXED0250_E3_50G", + "SUBCORE_VM_FIXED0275_E3_50G", + "SUBCORE_VM_FIXED0300_E3_50G", + "SUBCORE_VM_FIXED0325_E3_50G", + "SUBCORE_VM_FIXED0350_E3_50G", + "SUBCORE_VM_FIXED0375_E3_50G", + "SUBCORE_VM_FIXED0400_E3_50G", + "SUBCORE_VM_FIXED0425_E3_50G", + "SUBCORE_VM_FIXED0450_E3_50G", + "SUBCORE_VM_FIXED0475_E3_50G", + "SUBCORE_VM_FIXED0500_E3_50G", + "SUBCORE_VM_FIXED0525_E3_50G", + "SUBCORE_VM_FIXED0550_E3_50G", + "SUBCORE_VM_FIXED0575_E3_50G", + "SUBCORE_VM_FIXED0600_E3_50G", + "SUBCORE_VM_FIXED0625_E3_50G", + "SUBCORE_VM_FIXED0650_E3_50G", + "SUBCORE_VM_FIXED0675_E3_50G", + "SUBCORE_VM_FIXED0700_E3_50G", + "SUBCORE_VM_FIXED0725_E3_50G", + "SUBCORE_VM_FIXED0750_E3_50G", + "SUBCORE_VM_FIXED0775_E3_50G", + "SUBCORE_VM_FIXED0800_E3_50G", + "SUBCORE_VM_FIXED0825_E3_50G", + "SUBCORE_VM_FIXED0850_E3_50G", + "SUBCORE_VM_FIXED0875_E3_50G", + "SUBCORE_VM_FIXED0900_E3_50G", + "SUBCORE_VM_FIXED0925_E3_50G", + "SUBCORE_VM_FIXED0950_E3_50G", + "SUBCORE_VM_FIXED0975_E3_50G", + "SUBCORE_VM_FIXED1000_E3_50G", + "SUBCORE_VM_FIXED1025_E3_50G", + "SUBCORE_VM_FIXED1050_E3_50G", + "SUBCORE_VM_FIXED1075_E3_50G", + "SUBCORE_VM_FIXED1100_E3_50G", + "SUBCORE_VM_FIXED1125_E3_50G", + "SUBCORE_VM_FIXED1150_E3_50G", + "SUBCORE_VM_FIXED1175_E3_50G", + "SUBCORE_VM_FIXED1200_E3_50G", + "SUBCORE_VM_FIXED1225_E3_50G", + "SUBCORE_VM_FIXED1250_E3_50G", + "SUBCORE_VM_FIXED1275_E3_50G", + "SUBCORE_VM_FIXED1300_E3_50G", + "SUBCORE_VM_FIXED1325_E3_50G", + "SUBCORE_VM_FIXED1350_E3_50G", + "SUBCORE_VM_FIXED1375_E3_50G", + "SUBCORE_VM_FIXED1400_E3_50G", + "SUBCORE_VM_FIXED1425_E3_50G", + "SUBCORE_VM_FIXED1450_E3_50G", + "SUBCORE_VM_FIXED1475_E3_50G", + "SUBCORE_VM_FIXED1500_E3_50G", + "SUBCORE_VM_FIXED1525_E3_50G", + "SUBCORE_VM_FIXED1550_E3_50G", + "SUBCORE_VM_FIXED1575_E3_50G", + "SUBCORE_VM_FIXED1600_E3_50G", + "SUBCORE_VM_FIXED1625_E3_50G", + "SUBCORE_VM_FIXED1650_E3_50G", + "SUBCORE_VM_FIXED1700_E3_50G", + "SUBCORE_VM_FIXED1725_E3_50G", + "SUBCORE_VM_FIXED1750_E3_50G", + "SUBCORE_VM_FIXED1800_E3_50G", + "SUBCORE_VM_FIXED1850_E3_50G", + "SUBCORE_VM_FIXED1875_E3_50G", + "SUBCORE_VM_FIXED1900_E3_50G", + "SUBCORE_VM_FIXED1925_E3_50G", + "SUBCORE_VM_FIXED1950_E3_50G", + "SUBCORE_VM_FIXED2000_E3_50G", + "SUBCORE_VM_FIXED2025_E3_50G", + "SUBCORE_VM_FIXED2050_E3_50G", + "SUBCORE_VM_FIXED2100_E3_50G", + "SUBCORE_VM_FIXED2125_E3_50G", + "SUBCORE_VM_FIXED2150_E3_50G", + "SUBCORE_VM_FIXED2175_E3_50G", + "SUBCORE_VM_FIXED2200_E3_50G", + "SUBCORE_VM_FIXED2250_E3_50G", + "SUBCORE_VM_FIXED2275_E3_50G", + "SUBCORE_VM_FIXED2300_E3_50G", + "SUBCORE_VM_FIXED2325_E3_50G", + "SUBCORE_VM_FIXED2350_E3_50G", + "SUBCORE_VM_FIXED2375_E3_50G", + "SUBCORE_VM_FIXED2400_E3_50G", + "SUBCORE_VM_FIXED2450_E3_50G", + "SUBCORE_VM_FIXED2475_E3_50G", + "SUBCORE_VM_FIXED2500_E3_50G", + "SUBCORE_VM_FIXED2550_E3_50G", + "SUBCORE_VM_FIXED2600_E3_50G", + "SUBCORE_VM_FIXED2625_E3_50G", + "SUBCORE_VM_FIXED2650_E3_50G", + "SUBCORE_VM_FIXED2700_E3_50G", + "SUBCORE_VM_FIXED2750_E3_50G", + "SUBCORE_VM_FIXED2775_E3_50G", + "SUBCORE_VM_FIXED2800_E3_50G", + "SUBCORE_VM_FIXED2850_E3_50G", + "SUBCORE_VM_FIXED2875_E3_50G", + "SUBCORE_VM_FIXED2900_E3_50G", + "SUBCORE_VM_FIXED2925_E3_50G", + "SUBCORE_VM_FIXED2950_E3_50G", + "SUBCORE_VM_FIXED2975_E3_50G", + "SUBCORE_VM_FIXED3000_E3_50G", + "SUBCORE_VM_FIXED3025_E3_50G", + "SUBCORE_VM_FIXED3050_E3_50G", + "SUBCORE_VM_FIXED3075_E3_50G", + "SUBCORE_VM_FIXED3100_E3_50G", + "SUBCORE_VM_FIXED3125_E3_50G", + "SUBCORE_VM_FIXED3150_E3_50G", + "SUBCORE_VM_FIXED3200_E3_50G", + "SUBCORE_VM_FIXED3225_E3_50G", + "SUBCORE_VM_FIXED3250_E3_50G", + "SUBCORE_VM_FIXED3300_E3_50G", + "SUBCORE_VM_FIXED3325_E3_50G", + "SUBCORE_VM_FIXED3375_E3_50G", + "SUBCORE_VM_FIXED3400_E3_50G", + "SUBCORE_VM_FIXED3450_E3_50G", + "SUBCORE_VM_FIXED3500_E3_50G", + "SUBCORE_VM_FIXED3525_E3_50G", + "SUBCORE_VM_FIXED3575_E3_50G", + "SUBCORE_VM_FIXED3600_E3_50G", + "SUBCORE_VM_FIXED3625_E3_50G", + "SUBCORE_VM_FIXED3675_E3_50G", + "SUBCORE_VM_FIXED3700_E3_50G", + "SUBCORE_VM_FIXED3750_E3_50G", + "SUBCORE_VM_FIXED3800_E3_50G", + "SUBCORE_VM_FIXED3825_E3_50G", + "SUBCORE_VM_FIXED3850_E3_50G", + "SUBCORE_VM_FIXED3875_E3_50G", + "SUBCORE_VM_FIXED3900_E3_50G", + "SUBCORE_VM_FIXED3975_E3_50G", + "SUBCORE_VM_FIXED4000_E3_50G", + "SUBCORE_VM_FIXED4025_E3_50G", + "SUBCORE_VM_FIXED4050_E3_50G", + "SUBCORE_VM_FIXED4100_E3_50G", + "SUBCORE_VM_FIXED4125_E3_50G", + "SUBCORE_VM_FIXED4200_E3_50G", + "SUBCORE_VM_FIXED4225_E3_50G", + "SUBCORE_VM_FIXED4250_E3_50G", + "SUBCORE_VM_FIXED4275_E3_50G", + "SUBCORE_VM_FIXED4300_E3_50G", + "SUBCORE_VM_FIXED4350_E3_50G", + "SUBCORE_VM_FIXED4375_E3_50G", + "SUBCORE_VM_FIXED4400_E3_50G", + "SUBCORE_VM_FIXED4425_E3_50G", + "SUBCORE_VM_FIXED4500_E3_50G", + "SUBCORE_VM_FIXED4550_E3_50G", + "SUBCORE_VM_FIXED4575_E3_50G", + "SUBCORE_VM_FIXED4600_E3_50G", + "SUBCORE_VM_FIXED4625_E3_50G", + "SUBCORE_VM_FIXED4650_E3_50G", + "SUBCORE_VM_FIXED4675_E3_50G", + "SUBCORE_VM_FIXED4700_E3_50G", + "SUBCORE_VM_FIXED4725_E3_50G", + "SUBCORE_VM_FIXED4750_E3_50G", + "SUBCORE_VM_FIXED4800_E3_50G", + "SUBCORE_VM_FIXED4875_E3_50G", + "SUBCORE_VM_FIXED4900_E3_50G", + "SUBCORE_VM_FIXED4950_E3_50G", + "SUBCORE_VM_FIXED5000_E3_50G", + "SUBCORE_VM_FIXED0025_E4_50G", + "SUBCORE_VM_FIXED0050_E4_50G", + "SUBCORE_VM_FIXED0075_E4_50G", + "SUBCORE_VM_FIXED0100_E4_50G", + "SUBCORE_VM_FIXED0125_E4_50G", + "SUBCORE_VM_FIXED0150_E4_50G", + "SUBCORE_VM_FIXED0175_E4_50G", + "SUBCORE_VM_FIXED0200_E4_50G", + "SUBCORE_VM_FIXED0225_E4_50G", + "SUBCORE_VM_FIXED0250_E4_50G", + "SUBCORE_VM_FIXED0275_E4_50G", + "SUBCORE_VM_FIXED0300_E4_50G", + "SUBCORE_VM_FIXED0325_E4_50G", + "SUBCORE_VM_FIXED0350_E4_50G", + "SUBCORE_VM_FIXED0375_E4_50G", + "SUBCORE_VM_FIXED0400_E4_50G", + "SUBCORE_VM_FIXED0425_E4_50G", + "SUBCORE_VM_FIXED0450_E4_50G", + "SUBCORE_VM_FIXED0475_E4_50G", + "SUBCORE_VM_FIXED0500_E4_50G", + "SUBCORE_VM_FIXED0525_E4_50G", + "SUBCORE_VM_FIXED0550_E4_50G", + "SUBCORE_VM_FIXED0575_E4_50G", + "SUBCORE_VM_FIXED0600_E4_50G", + "SUBCORE_VM_FIXED0625_E4_50G", + "SUBCORE_VM_FIXED0650_E4_50G", + "SUBCORE_VM_FIXED0675_E4_50G", + "SUBCORE_VM_FIXED0700_E4_50G", + "SUBCORE_VM_FIXED0725_E4_50G", + "SUBCORE_VM_FIXED0750_E4_50G", + "SUBCORE_VM_FIXED0775_E4_50G", + "SUBCORE_VM_FIXED0800_E4_50G", + "SUBCORE_VM_FIXED0825_E4_50G", + "SUBCORE_VM_FIXED0850_E4_50G", + "SUBCORE_VM_FIXED0875_E4_50G", + "SUBCORE_VM_FIXED0900_E4_50G", + "SUBCORE_VM_FIXED0925_E4_50G", + "SUBCORE_VM_FIXED0950_E4_50G", + "SUBCORE_VM_FIXED0975_E4_50G", + "SUBCORE_VM_FIXED1000_E4_50G", + "SUBCORE_VM_FIXED1025_E4_50G", + "SUBCORE_VM_FIXED1050_E4_50G", + "SUBCORE_VM_FIXED1075_E4_50G", + "SUBCORE_VM_FIXED1100_E4_50G", + "SUBCORE_VM_FIXED1125_E4_50G", + "SUBCORE_VM_FIXED1150_E4_50G", + "SUBCORE_VM_FIXED1175_E4_50G", + "SUBCORE_VM_FIXED1200_E4_50G", + "SUBCORE_VM_FIXED1225_E4_50G", + "SUBCORE_VM_FIXED1250_E4_50G", + "SUBCORE_VM_FIXED1275_E4_50G", + "SUBCORE_VM_FIXED1300_E4_50G", + "SUBCORE_VM_FIXED1325_E4_50G", + "SUBCORE_VM_FIXED1350_E4_50G", + "SUBCORE_VM_FIXED1375_E4_50G", + "SUBCORE_VM_FIXED1400_E4_50G", + "SUBCORE_VM_FIXED1425_E4_50G", + "SUBCORE_VM_FIXED1450_E4_50G", + "SUBCORE_VM_FIXED1475_E4_50G", + "SUBCORE_VM_FIXED1500_E4_50G", + "SUBCORE_VM_FIXED1525_E4_50G", + "SUBCORE_VM_FIXED1550_E4_50G", + "SUBCORE_VM_FIXED1575_E4_50G", + "SUBCORE_VM_FIXED1600_E4_50G", + "SUBCORE_VM_FIXED1625_E4_50G", + "SUBCORE_VM_FIXED1650_E4_50G", + "SUBCORE_VM_FIXED1700_E4_50G", + "SUBCORE_VM_FIXED1725_E4_50G", + "SUBCORE_VM_FIXED1750_E4_50G", + "SUBCORE_VM_FIXED1800_E4_50G", + "SUBCORE_VM_FIXED1850_E4_50G", + "SUBCORE_VM_FIXED1875_E4_50G", + "SUBCORE_VM_FIXED1900_E4_50G", + "SUBCORE_VM_FIXED1925_E4_50G", + "SUBCORE_VM_FIXED1950_E4_50G", + "SUBCORE_VM_FIXED2000_E4_50G", + "SUBCORE_VM_FIXED2025_E4_50G", + "SUBCORE_VM_FIXED2050_E4_50G", + "SUBCORE_VM_FIXED2100_E4_50G", + "SUBCORE_VM_FIXED2125_E4_50G", + "SUBCORE_VM_FIXED2150_E4_50G", + "SUBCORE_VM_FIXED2175_E4_50G", + "SUBCORE_VM_FIXED2200_E4_50G", + "SUBCORE_VM_FIXED2250_E4_50G", + "SUBCORE_VM_FIXED2275_E4_50G", + "SUBCORE_VM_FIXED2300_E4_50G", + "SUBCORE_VM_FIXED2325_E4_50G", + "SUBCORE_VM_FIXED2350_E4_50G", + "SUBCORE_VM_FIXED2375_E4_50G", + "SUBCORE_VM_FIXED2400_E4_50G", + "SUBCORE_VM_FIXED2450_E4_50G", + "SUBCORE_VM_FIXED2475_E4_50G", + "SUBCORE_VM_FIXED2500_E4_50G", + "SUBCORE_VM_FIXED2550_E4_50G", + "SUBCORE_VM_FIXED2600_E4_50G", + "SUBCORE_VM_FIXED2625_E4_50G", + "SUBCORE_VM_FIXED2650_E4_50G", + "SUBCORE_VM_FIXED2700_E4_50G", + "SUBCORE_VM_FIXED2750_E4_50G", + "SUBCORE_VM_FIXED2775_E4_50G", + "SUBCORE_VM_FIXED2800_E4_50G", + "SUBCORE_VM_FIXED2850_E4_50G", + "SUBCORE_VM_FIXED2875_E4_50G", + "SUBCORE_VM_FIXED2900_E4_50G", + "SUBCORE_VM_FIXED2925_E4_50G", + "SUBCORE_VM_FIXED2950_E4_50G", + "SUBCORE_VM_FIXED2975_E4_50G", + "SUBCORE_VM_FIXED3000_E4_50G", + "SUBCORE_VM_FIXED3025_E4_50G", + "SUBCORE_VM_FIXED3050_E4_50G", + "SUBCORE_VM_FIXED3075_E4_50G", + "SUBCORE_VM_FIXED3100_E4_50G", + "SUBCORE_VM_FIXED3125_E4_50G", + "SUBCORE_VM_FIXED3150_E4_50G", + "SUBCORE_VM_FIXED3200_E4_50G", + "SUBCORE_VM_FIXED3225_E4_50G", + "SUBCORE_VM_FIXED3250_E4_50G", + "SUBCORE_VM_FIXED3300_E4_50G", + "SUBCORE_VM_FIXED3325_E4_50G", + "SUBCORE_VM_FIXED3375_E4_50G", + "SUBCORE_VM_FIXED3400_E4_50G", + "SUBCORE_VM_FIXED3450_E4_50G", + "SUBCORE_VM_FIXED3500_E4_50G", + "SUBCORE_VM_FIXED3525_E4_50G", + "SUBCORE_VM_FIXED3575_E4_50G", + "SUBCORE_VM_FIXED3600_E4_50G", + "SUBCORE_VM_FIXED3625_E4_50G", + "SUBCORE_VM_FIXED3675_E4_50G", + "SUBCORE_VM_FIXED3700_E4_50G", + "SUBCORE_VM_FIXED3750_E4_50G", + "SUBCORE_VM_FIXED3800_E4_50G", + "SUBCORE_VM_FIXED3825_E4_50G", + "SUBCORE_VM_FIXED3850_E4_50G", + "SUBCORE_VM_FIXED3875_E4_50G", + "SUBCORE_VM_FIXED3900_E4_50G", + "SUBCORE_VM_FIXED3975_E4_50G", + "SUBCORE_VM_FIXED4000_E4_50G", + "SUBCORE_VM_FIXED4025_E4_50G", + "SUBCORE_VM_FIXED4050_E4_50G", + "SUBCORE_VM_FIXED4100_E4_50G", + "SUBCORE_VM_FIXED4125_E4_50G", + "SUBCORE_VM_FIXED4200_E4_50G", + "SUBCORE_VM_FIXED4225_E4_50G", + "SUBCORE_VM_FIXED4250_E4_50G", + "SUBCORE_VM_FIXED4275_E4_50G", + "SUBCORE_VM_FIXED4300_E4_50G", + "SUBCORE_VM_FIXED4350_E4_50G", + "SUBCORE_VM_FIXED4375_E4_50G", + "SUBCORE_VM_FIXED4400_E4_50G", + "SUBCORE_VM_FIXED4425_E4_50G", + "SUBCORE_VM_FIXED4500_E4_50G", + "SUBCORE_VM_FIXED4550_E4_50G", + "SUBCORE_VM_FIXED4575_E4_50G", + "SUBCORE_VM_FIXED4600_E4_50G", + "SUBCORE_VM_FIXED4625_E4_50G", + "SUBCORE_VM_FIXED4650_E4_50G", + "SUBCORE_VM_FIXED4675_E4_50G", + "SUBCORE_VM_FIXED4700_E4_50G", + "SUBCORE_VM_FIXED4725_E4_50G", + "SUBCORE_VM_FIXED4750_E4_50G", + "SUBCORE_VM_FIXED4800_E4_50G", + "SUBCORE_VM_FIXED4875_E4_50G", + "SUBCORE_VM_FIXED4900_E4_50G", + "SUBCORE_VM_FIXED4950_E4_50G", + "SUBCORE_VM_FIXED5000_E4_50G", + "SUBCORE_VM_FIXED0020_A1_50G", + "SUBCORE_VM_FIXED0040_A1_50G", + "SUBCORE_VM_FIXED0060_A1_50G", + "SUBCORE_VM_FIXED0080_A1_50G", + "SUBCORE_VM_FIXED0100_A1_50G", + "SUBCORE_VM_FIXED0120_A1_50G", + "SUBCORE_VM_FIXED0140_A1_50G", + "SUBCORE_VM_FIXED0160_A1_50G", + "SUBCORE_VM_FIXED0180_A1_50G", + "SUBCORE_VM_FIXED0200_A1_50G", + "SUBCORE_VM_FIXED0220_A1_50G", + "SUBCORE_VM_FIXED0240_A1_50G", + "SUBCORE_VM_FIXED0260_A1_50G", + "SUBCORE_VM_FIXED0280_A1_50G", + "SUBCORE_VM_FIXED0300_A1_50G", + "SUBCORE_VM_FIXED0320_A1_50G", + "SUBCORE_VM_FIXED0340_A1_50G", + "SUBCORE_VM_FIXED0360_A1_50G", + "SUBCORE_VM_FIXED0380_A1_50G", + "SUBCORE_VM_FIXED0400_A1_50G", + "SUBCORE_VM_FIXED0420_A1_50G", + "SUBCORE_VM_FIXED0440_A1_50G", + "SUBCORE_VM_FIXED0460_A1_50G", + "SUBCORE_VM_FIXED0480_A1_50G", + "SUBCORE_VM_FIXED0500_A1_50G", + "SUBCORE_VM_FIXED0520_A1_50G", + "SUBCORE_VM_FIXED0540_A1_50G", + "SUBCORE_VM_FIXED0560_A1_50G", + "SUBCORE_VM_FIXED0580_A1_50G", + "SUBCORE_VM_FIXED0600_A1_50G", + "SUBCORE_VM_FIXED0620_A1_50G", + "SUBCORE_VM_FIXED0640_A1_50G", + "SUBCORE_VM_FIXED0660_A1_50G", + "SUBCORE_VM_FIXED0680_A1_50G", + "SUBCORE_VM_FIXED0700_A1_50G", + "SUBCORE_VM_FIXED0720_A1_50G", + "SUBCORE_VM_FIXED0740_A1_50G", + "SUBCORE_VM_FIXED0760_A1_50G", + "SUBCORE_VM_FIXED0780_A1_50G", + "SUBCORE_VM_FIXED0800_A1_50G", + "SUBCORE_VM_FIXED0820_A1_50G", + "SUBCORE_VM_FIXED0840_A1_50G", + "SUBCORE_VM_FIXED0860_A1_50G", + "SUBCORE_VM_FIXED0880_A1_50G", + "SUBCORE_VM_FIXED0900_A1_50G", + "SUBCORE_VM_FIXED0920_A1_50G", + "SUBCORE_VM_FIXED0940_A1_50G", + "SUBCORE_VM_FIXED0960_A1_50G", + "SUBCORE_VM_FIXED0980_A1_50G", + "SUBCORE_VM_FIXED1000_A1_50G", + "SUBCORE_VM_FIXED1020_A1_50G", + "SUBCORE_VM_FIXED1040_A1_50G", + "SUBCORE_VM_FIXED1060_A1_50G", + "SUBCORE_VM_FIXED1080_A1_50G", + "SUBCORE_VM_FIXED1100_A1_50G", + "SUBCORE_VM_FIXED1120_A1_50G", + "SUBCORE_VM_FIXED1140_A1_50G", + "SUBCORE_VM_FIXED1160_A1_50G", + "SUBCORE_VM_FIXED1180_A1_50G", + "SUBCORE_VM_FIXED1200_A1_50G", + "SUBCORE_VM_FIXED1220_A1_50G", + "SUBCORE_VM_FIXED1240_A1_50G", + "SUBCORE_VM_FIXED1260_A1_50G", + "SUBCORE_VM_FIXED1280_A1_50G", + "SUBCORE_VM_FIXED1300_A1_50G", + "SUBCORE_VM_FIXED1320_A1_50G", + "SUBCORE_VM_FIXED1340_A1_50G", + "SUBCORE_VM_FIXED1360_A1_50G", + "SUBCORE_VM_FIXED1380_A1_50G", + "SUBCORE_VM_FIXED1400_A1_50G", + "SUBCORE_VM_FIXED1420_A1_50G", + "SUBCORE_VM_FIXED1440_A1_50G", + "SUBCORE_VM_FIXED1460_A1_50G", + "SUBCORE_VM_FIXED1480_A1_50G", + "SUBCORE_VM_FIXED1500_A1_50G", + "SUBCORE_VM_FIXED1520_A1_50G", + "SUBCORE_VM_FIXED1540_A1_50G", + "SUBCORE_VM_FIXED1560_A1_50G", + "SUBCORE_VM_FIXED1580_A1_50G", + "SUBCORE_VM_FIXED1600_A1_50G", + "SUBCORE_VM_FIXED1620_A1_50G", + "SUBCORE_VM_FIXED1640_A1_50G", + "SUBCORE_VM_FIXED1660_A1_50G", + "SUBCORE_VM_FIXED1680_A1_50G", + "SUBCORE_VM_FIXED1700_A1_50G", + "SUBCORE_VM_FIXED1720_A1_50G", + "SUBCORE_VM_FIXED1740_A1_50G", + "SUBCORE_VM_FIXED1760_A1_50G", + "SUBCORE_VM_FIXED1780_A1_50G", + "SUBCORE_VM_FIXED1800_A1_50G", + "SUBCORE_VM_FIXED1820_A1_50G", + "SUBCORE_VM_FIXED1840_A1_50G", + "SUBCORE_VM_FIXED1860_A1_50G", + "SUBCORE_VM_FIXED1880_A1_50G", + "SUBCORE_VM_FIXED1900_A1_50G", + "SUBCORE_VM_FIXED1920_A1_50G", + "SUBCORE_VM_FIXED1940_A1_50G", + "SUBCORE_VM_FIXED1960_A1_50G", + "SUBCORE_VM_FIXED1980_A1_50G", + "SUBCORE_VM_FIXED2000_A1_50G", + "SUBCORE_VM_FIXED2020_A1_50G", + "SUBCORE_VM_FIXED2040_A1_50G", + "SUBCORE_VM_FIXED2060_A1_50G", + "SUBCORE_VM_FIXED2080_A1_50G", + "SUBCORE_VM_FIXED2100_A1_50G", + "SUBCORE_VM_FIXED2120_A1_50G", + "SUBCORE_VM_FIXED2140_A1_50G", + "SUBCORE_VM_FIXED2160_A1_50G", + "SUBCORE_VM_FIXED2180_A1_50G", + "SUBCORE_VM_FIXED2200_A1_50G", + "SUBCORE_VM_FIXED2220_A1_50G", + "SUBCORE_VM_FIXED2240_A1_50G", + "SUBCORE_VM_FIXED2260_A1_50G", + "SUBCORE_VM_FIXED2280_A1_50G", + "SUBCORE_VM_FIXED2300_A1_50G", + "SUBCORE_VM_FIXED2320_A1_50G", + "SUBCORE_VM_FIXED2340_A1_50G", + "SUBCORE_VM_FIXED2360_A1_50G", + "SUBCORE_VM_FIXED2380_A1_50G", + "SUBCORE_VM_FIXED2400_A1_50G", + "SUBCORE_VM_FIXED2420_A1_50G", + "SUBCORE_VM_FIXED2440_A1_50G", + "SUBCORE_VM_FIXED2460_A1_50G", + "SUBCORE_VM_FIXED2480_A1_50G", + "SUBCORE_VM_FIXED2500_A1_50G", + "SUBCORE_VM_FIXED2520_A1_50G", + "SUBCORE_VM_FIXED2540_A1_50G", + "SUBCORE_VM_FIXED2560_A1_50G", + "SUBCORE_VM_FIXED2580_A1_50G", + "SUBCORE_VM_FIXED2600_A1_50G", + "SUBCORE_VM_FIXED2620_A1_50G", + "SUBCORE_VM_FIXED2640_A1_50G", + "SUBCORE_VM_FIXED2660_A1_50G", + "SUBCORE_VM_FIXED2680_A1_50G", + "SUBCORE_VM_FIXED2700_A1_50G", + "SUBCORE_VM_FIXED2720_A1_50G", + "SUBCORE_VM_FIXED2740_A1_50G", + "SUBCORE_VM_FIXED2760_A1_50G", + "SUBCORE_VM_FIXED2780_A1_50G", + "SUBCORE_VM_FIXED2800_A1_50G", + "SUBCORE_VM_FIXED2820_A1_50G", + "SUBCORE_VM_FIXED2840_A1_50G", + "SUBCORE_VM_FIXED2860_A1_50G", + "SUBCORE_VM_FIXED2880_A1_50G", + "SUBCORE_VM_FIXED2900_A1_50G", + "SUBCORE_VM_FIXED2920_A1_50G", + "SUBCORE_VM_FIXED2940_A1_50G", + "SUBCORE_VM_FIXED2960_A1_50G", + "SUBCORE_VM_FIXED2980_A1_50G", + "SUBCORE_VM_FIXED3000_A1_50G", + "SUBCORE_VM_FIXED3020_A1_50G", + "SUBCORE_VM_FIXED3040_A1_50G", + "SUBCORE_VM_FIXED3060_A1_50G", + "SUBCORE_VM_FIXED3080_A1_50G", + "SUBCORE_VM_FIXED3100_A1_50G", + "SUBCORE_VM_FIXED3120_A1_50G", + "SUBCORE_VM_FIXED3140_A1_50G", + "SUBCORE_VM_FIXED3160_A1_50G", + "SUBCORE_VM_FIXED3180_A1_50G", + "SUBCORE_VM_FIXED3200_A1_50G", + "SUBCORE_VM_FIXED3220_A1_50G", + "SUBCORE_VM_FIXED3240_A1_50G", + "SUBCORE_VM_FIXED3260_A1_50G", + "SUBCORE_VM_FIXED3280_A1_50G", + "SUBCORE_VM_FIXED3300_A1_50G", + "SUBCORE_VM_FIXED3320_A1_50G", + "SUBCORE_VM_FIXED3340_A1_50G", + "SUBCORE_VM_FIXED3360_A1_50G", + "SUBCORE_VM_FIXED3380_A1_50G", + "SUBCORE_VM_FIXED3400_A1_50G", + "SUBCORE_VM_FIXED3420_A1_50G", + "SUBCORE_VM_FIXED3440_A1_50G", + "SUBCORE_VM_FIXED3460_A1_50G", + "SUBCORE_VM_FIXED3480_A1_50G", + "SUBCORE_VM_FIXED3500_A1_50G", + "SUBCORE_VM_FIXED3520_A1_50G", + "SUBCORE_VM_FIXED3540_A1_50G", + "SUBCORE_VM_FIXED3560_A1_50G", + "SUBCORE_VM_FIXED3580_A1_50G", + "SUBCORE_VM_FIXED3600_A1_50G", + "SUBCORE_VM_FIXED3620_A1_50G", + "SUBCORE_VM_FIXED3640_A1_50G", + "SUBCORE_VM_FIXED3660_A1_50G", + "SUBCORE_VM_FIXED3680_A1_50G", + "SUBCORE_VM_FIXED3700_A1_50G", + "SUBCORE_VM_FIXED3720_A1_50G", + "SUBCORE_VM_FIXED3740_A1_50G", + "SUBCORE_VM_FIXED3760_A1_50G", + "SUBCORE_VM_FIXED3780_A1_50G", + "SUBCORE_VM_FIXED3800_A1_50G", + "SUBCORE_VM_FIXED3820_A1_50G", + "SUBCORE_VM_FIXED3840_A1_50G", + "SUBCORE_VM_FIXED3860_A1_50G", + "SUBCORE_VM_FIXED3880_A1_50G", + "SUBCORE_VM_FIXED3900_A1_50G", + "SUBCORE_VM_FIXED3920_A1_50G", + "SUBCORE_VM_FIXED3940_A1_50G", + "SUBCORE_VM_FIXED3960_A1_50G", + "SUBCORE_VM_FIXED3980_A1_50G", + "SUBCORE_VM_FIXED4000_A1_50G", + "SUBCORE_VM_FIXED4020_A1_50G", + "SUBCORE_VM_FIXED4040_A1_50G", + "SUBCORE_VM_FIXED4060_A1_50G", + "SUBCORE_VM_FIXED4080_A1_50G", + "SUBCORE_VM_FIXED4100_A1_50G", + "SUBCORE_VM_FIXED4120_A1_50G", + "SUBCORE_VM_FIXED4140_A1_50G", + "SUBCORE_VM_FIXED4160_A1_50G", + "SUBCORE_VM_FIXED4180_A1_50G", + "SUBCORE_VM_FIXED4200_A1_50G", + "SUBCORE_VM_FIXED4220_A1_50G", + "SUBCORE_VM_FIXED4240_A1_50G", + "SUBCORE_VM_FIXED4260_A1_50G", + "SUBCORE_VM_FIXED4280_A1_50G", + "SUBCORE_VM_FIXED4300_A1_50G", + "SUBCORE_VM_FIXED4320_A1_50G", + "SUBCORE_VM_FIXED4340_A1_50G", + "SUBCORE_VM_FIXED4360_A1_50G", + "SUBCORE_VM_FIXED4380_A1_50G", + "SUBCORE_VM_FIXED4400_A1_50G", + "SUBCORE_VM_FIXED4420_A1_50G", + "SUBCORE_VM_FIXED4440_A1_50G", + "SUBCORE_VM_FIXED4460_A1_50G", + "SUBCORE_VM_FIXED4480_A1_50G", + "SUBCORE_VM_FIXED4500_A1_50G", + "SUBCORE_VM_FIXED4520_A1_50G", + "SUBCORE_VM_FIXED4540_A1_50G", + "SUBCORE_VM_FIXED4560_A1_50G", + "SUBCORE_VM_FIXED4580_A1_50G", + "SUBCORE_VM_FIXED4600_A1_50G", + "SUBCORE_VM_FIXED4620_A1_50G", + "SUBCORE_VM_FIXED4640_A1_50G", + "SUBCORE_VM_FIXED4660_A1_50G", + "SUBCORE_VM_FIXED4680_A1_50G", + "SUBCORE_VM_FIXED4700_A1_50G", + "SUBCORE_VM_FIXED4720_A1_50G", + "SUBCORE_VM_FIXED4740_A1_50G", + "SUBCORE_VM_FIXED4760_A1_50G", + "SUBCORE_VM_FIXED4780_A1_50G", + "SUBCORE_VM_FIXED4800_A1_50G", + "SUBCORE_VM_FIXED4820_A1_50G", + "SUBCORE_VM_FIXED4840_A1_50G", + "SUBCORE_VM_FIXED4860_A1_50G", + "SUBCORE_VM_FIXED4880_A1_50G", + "SUBCORE_VM_FIXED4900_A1_50G", + "SUBCORE_VM_FIXED4920_A1_50G", + "SUBCORE_VM_FIXED4940_A1_50G", + "SUBCORE_VM_FIXED4960_A1_50G", + "SUBCORE_VM_FIXED4980_A1_50G", + "SUBCORE_VM_FIXED5000_A1_50G", + "SUBCORE_VM_FIXED0090_X9_50G", + "SUBCORE_VM_FIXED0180_X9_50G", + "SUBCORE_VM_FIXED0270_X9_50G", + "SUBCORE_VM_FIXED0360_X9_50G", + "SUBCORE_VM_FIXED0450_X9_50G", + "SUBCORE_VM_FIXED0540_X9_50G", + "SUBCORE_VM_FIXED0630_X9_50G", + "SUBCORE_VM_FIXED0720_X9_50G", + "SUBCORE_VM_FIXED0810_X9_50G", + "SUBCORE_VM_FIXED0900_X9_50G", + "SUBCORE_VM_FIXED0990_X9_50G", + "SUBCORE_VM_FIXED1080_X9_50G", + "SUBCORE_VM_FIXED1170_X9_50G", + "SUBCORE_VM_FIXED1260_X9_50G", + "SUBCORE_VM_FIXED1350_X9_50G", + "SUBCORE_VM_FIXED1440_X9_50G", + "SUBCORE_VM_FIXED1530_X9_50G", + "SUBCORE_VM_FIXED1620_X9_50G", + "SUBCORE_VM_FIXED1710_X9_50G", + "SUBCORE_VM_FIXED1800_X9_50G", + "SUBCORE_VM_FIXED1890_X9_50G", + "SUBCORE_VM_FIXED1980_X9_50G", + "SUBCORE_VM_FIXED2070_X9_50G", + "SUBCORE_VM_FIXED2160_X9_50G", + "SUBCORE_VM_FIXED2250_X9_50G", + "SUBCORE_VM_FIXED2340_X9_50G", + "SUBCORE_VM_FIXED2430_X9_50G", + "SUBCORE_VM_FIXED2520_X9_50G", + "SUBCORE_VM_FIXED2610_X9_50G", + "SUBCORE_VM_FIXED2700_X9_50G", + "SUBCORE_VM_FIXED2790_X9_50G", + "SUBCORE_VM_FIXED2880_X9_50G", + "SUBCORE_VM_FIXED2970_X9_50G", + "SUBCORE_VM_FIXED3060_X9_50G", + "SUBCORE_VM_FIXED3150_X9_50G", + "SUBCORE_VM_FIXED3240_X9_50G", + "SUBCORE_VM_FIXED3330_X9_50G", + "SUBCORE_VM_FIXED3420_X9_50G", + "SUBCORE_VM_FIXED3510_X9_50G", + "SUBCORE_VM_FIXED3600_X9_50G", + "SUBCORE_VM_FIXED3690_X9_50G", + "SUBCORE_VM_FIXED3780_X9_50G", + "SUBCORE_VM_FIXED3870_X9_50G", + "SUBCORE_VM_FIXED3960_X9_50G", + "SUBCORE_VM_FIXED4050_X9_50G", + "SUBCORE_VM_FIXED4140_X9_50G", + "SUBCORE_VM_FIXED4230_X9_50G", + "SUBCORE_VM_FIXED4320_X9_50G", + "SUBCORE_VM_FIXED4410_X9_50G", + "SUBCORE_VM_FIXED4500_X9_50G", + "SUBCORE_VM_FIXED4590_X9_50G", + "SUBCORE_VM_FIXED4680_X9_50G", + "SUBCORE_VM_FIXED4770_X9_50G", + "SUBCORE_VM_FIXED4860_X9_50G", + "SUBCORE_VM_FIXED4950_X9_50G", + "DYNAMIC_A1_50G", + "FIXED0040_A1_50G", + "FIXED0100_A1_50G", + "FIXED0200_A1_50G", + "FIXED0300_A1_50G", + "FIXED0400_A1_50G", + "FIXED0500_A1_50G", + "FIXED0600_A1_50G", + "FIXED0700_A1_50G", + "FIXED0800_A1_50G", + "FIXED0900_A1_50G", + "FIXED1000_A1_50G", + "FIXED1100_A1_50G", + "FIXED1200_A1_50G", + "FIXED1300_A1_50G", + "FIXED1400_A1_50G", + "FIXED1500_A1_50G", + "FIXED1600_A1_50G", + "FIXED1700_A1_50G", + "FIXED1800_A1_50G", + "FIXED1900_A1_50G", + "FIXED2000_A1_50G", + "FIXED2100_A1_50G", + "FIXED2200_A1_50G", + "FIXED2300_A1_50G", + "FIXED2400_A1_50G", + "FIXED2500_A1_50G", + "FIXED2600_A1_50G", + "FIXED2700_A1_50G", + "FIXED2800_A1_50G", + "FIXED2900_A1_50G", + "FIXED3000_A1_50G", + "FIXED3100_A1_50G", + "FIXED3200_A1_50G", + "FIXED3300_A1_50G", + "FIXED3400_A1_50G", + "FIXED3500_A1_50G", + "FIXED3600_A1_50G", + "FIXED3700_A1_50G", + "FIXED3800_A1_50G", + "FIXED3900_A1_50G", + "FIXED4000_A1_50G", + "FIXED5000_TELESIS_A1_50G", + "ENTIREHOST_A1_50G", + "DYNAMIC_X9_50G", + "FIXED0040_X9_50G", + "FIXED0400_X9_50G", + "FIXED0800_X9_50G", + "FIXED1200_X9_50G", + "FIXED1600_X9_50G", + "FIXED2000_X9_50G", + "FIXED2400_X9_50G", + "FIXED2800_X9_50G", + "FIXED3200_X9_50G", + "FIXED3600_X9_50G", + "FIXED4000_X9_50G", + "STANDARD_VM_FIXED0100_X9_50G", + "STANDARD_VM_FIXED0200_X9_50G", + "STANDARD_VM_FIXED0300_X9_50G", + "STANDARD_VM_FIXED0400_X9_50G", + "STANDARD_VM_FIXED0500_X9_50G", + "STANDARD_VM_FIXED0600_X9_50G", + "STANDARD_VM_FIXED0700_X9_50G", + "STANDARD_VM_FIXED0800_X9_50G", + "STANDARD_VM_FIXED0900_X9_50G", + "STANDARD_VM_FIXED1000_X9_50G", + "STANDARD_VM_FIXED1100_X9_50G", + "STANDARD_VM_FIXED1200_X9_50G", + "STANDARD_VM_FIXED1300_X9_50G", + "STANDARD_VM_FIXED1400_X9_50G", + "STANDARD_VM_FIXED1500_X9_50G", + "STANDARD_VM_FIXED1600_X9_50G", + "STANDARD_VM_FIXED1700_X9_50G", + "STANDARD_VM_FIXED1800_X9_50G", + "STANDARD_VM_FIXED1900_X9_50G", + "STANDARD_VM_FIXED2000_X9_50G", + "STANDARD_VM_FIXED2100_X9_50G", + "STANDARD_VM_FIXED2200_X9_50G", + "STANDARD_VM_FIXED2300_X9_50G", + "STANDARD_VM_FIXED2400_X9_50G", + "STANDARD_VM_FIXED2500_X9_50G", + "STANDARD_VM_FIXED2600_X9_50G", + "STANDARD_VM_FIXED2700_X9_50G", + "STANDARD_VM_FIXED2800_X9_50G", + "STANDARD_VM_FIXED2900_X9_50G", + "STANDARD_VM_FIXED3000_X9_50G", + "STANDARD_VM_FIXED3100_X9_50G", + "STANDARD_VM_FIXED3200_X9_50G", + "STANDARD_VM_FIXED3300_X9_50G", + "STANDARD_VM_FIXED3400_X9_50G", + "STANDARD_VM_FIXED3500_X9_50G", + "STANDARD_VM_FIXED3600_X9_50G", + "STANDARD_VM_FIXED3700_X9_50G", + "STANDARD_VM_FIXED3800_X9_50G", + "STANDARD_VM_FIXED3900_X9_50G", + "STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G", + "ENTIREHOST_X9_50G", + } +} + +// GetMappingCreateInternalVnicAttachmentDetailsVnicShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalVnicAttachmentDetailsVnicShapeEnum(val string) (CreateInternalVnicAttachmentDetailsVnicShapeEnum, bool) { + enum, ok := mappingCreateInternalVnicAttachmentDetailsVnicShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateInternalVnicAttachmentDetailsLaunchTypeEnum Enum with underlying type: string +type CreateInternalVnicAttachmentDetailsLaunchTypeEnum string + +// Set of constants representing the allowable values for CreateInternalVnicAttachmentDetailsLaunchTypeEnum +const ( + CreateInternalVnicAttachmentDetailsLaunchTypeMarketplace CreateInternalVnicAttachmentDetailsLaunchTypeEnum = "MARKETPLACE" + CreateInternalVnicAttachmentDetailsLaunchTypeStandard CreateInternalVnicAttachmentDetailsLaunchTypeEnum = "STANDARD" +) + +var mappingCreateInternalVnicAttachmentDetailsLaunchTypeEnum = map[string]CreateInternalVnicAttachmentDetailsLaunchTypeEnum{ + "MARKETPLACE": CreateInternalVnicAttachmentDetailsLaunchTypeMarketplace, + "STANDARD": CreateInternalVnicAttachmentDetailsLaunchTypeStandard, +} + +var mappingCreateInternalVnicAttachmentDetailsLaunchTypeEnumLowerCase = map[string]CreateInternalVnicAttachmentDetailsLaunchTypeEnum{ + "marketplace": CreateInternalVnicAttachmentDetailsLaunchTypeMarketplace, + "standard": CreateInternalVnicAttachmentDetailsLaunchTypeStandard, +} + +// GetCreateInternalVnicAttachmentDetailsLaunchTypeEnumValues Enumerates the set of values for CreateInternalVnicAttachmentDetailsLaunchTypeEnum +func GetCreateInternalVnicAttachmentDetailsLaunchTypeEnumValues() []CreateInternalVnicAttachmentDetailsLaunchTypeEnum { + values := make([]CreateInternalVnicAttachmentDetailsLaunchTypeEnum, 0) + for _, v := range mappingCreateInternalVnicAttachmentDetailsLaunchTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalVnicAttachmentDetailsLaunchTypeEnumStringValues Enumerates the set of values in String for CreateInternalVnicAttachmentDetailsLaunchTypeEnum +func GetCreateInternalVnicAttachmentDetailsLaunchTypeEnumStringValues() []string { + return []string{ + "MARKETPLACE", + "STANDARD", + } +} + +// GetMappingCreateInternalVnicAttachmentDetailsLaunchTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalVnicAttachmentDetailsLaunchTypeEnum(val string) (CreateInternalVnicAttachmentDetailsLaunchTypeEnum, bool) { + enum, ok := mappingCreateInternalVnicAttachmentDetailsLaunchTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_request_response.go index 345f3bec50..60954a01af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_attachment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalVnicAttachmentRequest wrapper for the CreateInternalVnicAttachment operation type CreateInternalVnicAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // VNIC attachment details. @@ -45,6 +47,10 @@ func (request CreateInternalVnicAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalVnicAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request CreateInternalVnicAttachmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalVnicAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalVnicAttachmentResponse wrapper for the CreateInternalVnicAttachment operation type CreateInternalVnicAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_details.go new file mode 100644 index 0000000000..c5b11c2c6a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_details.go @@ -0,0 +1,4524 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternalVnicDetails This structure is used when creating vnic for internal clients. +// For more information about VNICs, see +// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). +type CreateInternalVnicDetails struct { + + // Whether the VNIC should be assigned a public IP address. Defaults to whether + // the subnet is public or private. If not set and the VNIC is being created + // in a private subnet (that is, where `prohibitPublicIpOnVnic` = true in the + // Subnet), then no public IP address is assigned. + // If not set and the subnet is public (`prohibitPublicIpOnVnic` = false), then + // a public IP address is assigned. If set to true and + // `prohibitPublicIpOnVnic` = true, an error is returned. + // **Note:** This public IP address is associated with the primary private IP + // on the VNIC. For more information, see + // IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPaddresses.htm). + // **Note:** There's a limit to the number of PublicIp + // a VNIC or instance can have. If you try to create a secondary VNIC + // with an assigned public IP for an instance that has already + // reached its public IP limit, an error is returned. For information + // about the public IP limits, see + // Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). + // Example: `false` + AssignPublicIp *bool `mandatory:"false" json:"assignPublicIp"` + + // The availability domain of the instance. + // Availability domain can not be provided if isServiceVnic is true, it is required otherwise. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Not for general use! + // Contact sic_vcn_us_grp@oracle.com before setting this flag. + // Indicates that the Cavium should not enforce Internet ingress/egress throttling. + // Defaults to `false`, in which case we do enforce that throttling. + // At least one of subnetId OR the vlanId are required + BypassInternetThrottle *bool `mandatory:"false" json:"bypassInternetThrottle"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The hostname for the VNIC's primary private IP. Used for DNS. The value is the hostname + // portion of the primary private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // The value appears in the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // When launching an instance, use this `hostnameLabel` instead + // of the deprecated `hostnameLabel` in + // LaunchInstanceDetails. + // If you provide both, the values must match. + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // Indicates if the VNIC is associated with (and will be attached to) a BM instance. + IsBmVnic *bool `mandatory:"false" json:"isBmVnic"` + + // Indicates if the VNIC is bridge which means cavium will ARP for its MAC address. + IsBridgeVnic *bool `mandatory:"false" json:"isBridgeVnic"` + + // Indicates if this VNIC can issue GARP requests. False by default. + IsGarpEnabled *bool `mandatory:"false" json:"isGarpEnabled"` + + // Indicates if MAC learning is enabled for the VNIC. The default is `false`. + // When this flag is enabled, then VCN CP does not allocate MAC address, + // hence MAC address will be set as null as part of the VNIC that is returned. + IsMacLearningEnabled *bool `mandatory:"false" json:"isMacLearningEnabled"` + + // Indicates if the VNIC is managed by a internal partner team. And customer is not allowed + // the perform update/delete operations on it directly. + // Defaults to `False` + IsManaged *bool `mandatory:"false" json:"isManaged"` + + // Indicates if the VNIC is primary which means it cannot be detached. + IsPrimary *bool `mandatory:"false" json:"isPrimary"` + + // Indicates if the VNIC is a service vnic. + IsServiceVnic *bool `mandatory:"false" json:"isServiceVnic"` + + // Only provided when no publicIpPoolId is specified. + InternalPoolName CreateInternalVnicDetailsInternalPoolNameEnum `mandatory:"false" json:"internalPoolName,omitempty"` + + // The overlay MAC address of the instance + MacAddress *string `mandatory:"false" json:"macAddress"` + + // A list of the OCIDs of the network security groups (NSGs) to add the VNIC to. For more + // information about NSGs, see + // NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // ID of the entity owning the VNIC. This is passed in the create vnic call. + // If none is passed and if there is an attachment then the attached instanceId is the ownerId. + OwnerId *string `mandatory:"false" json:"ownerId"` + + // A private IP address of your choice to assign to the VNIC. Must be an + // available IP address within the subnet's CIDR. If you don't specify a + // value, Oracle automatically assigns a private IP address from the subnet. + // This is the VNIC's *primary* private IP address. The value appears in + // the Vnic object and also the + // PrivateIp object returned by + // ListPrivateIps and + // GetPrivateIp. + // Example: `10.0.3.3` + PrivateIp *string `mandatory:"false" json:"privateIp"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created by the current tenancy + PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` + + // ID of the customer visible upstream resource that the VNIC is associated with. This property is + // exposed to customers as part of API to list members of a network security group. + // For example, if the VNIC is associated with a loadbalancer or dbsystem instance, then it needs + // to be set to corresponding customer visible loadbalancer or dbsystem instance OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + // Note that the partner team creating/managing the VNIC is owner of this metadata. + ResourceId *string `mandatory:"false" json:"resourceId"` + + // Type of the customer visible upstream resource that the VNIC is associated with. This property can be + // exposed to customers as part of API to list members of a network security group. + // For example, it can be set as, + // - `loadbalancer` if corresponding resourceId is a loadbalancer instance's OCID + // - `dbsystem` if corresponding resourceId is a dbsystem instance's OCID + // Note that the partner team creating/managing the VNIC is owner of this metadata. + ResourceType *string `mandatory:"false" json:"resourceType"` + + // Whether the source/destination check is disabled on the VNIC. + // Defaults to `false`, which means the check is performed. For information + // about why you would skip the source/destination check, see + // Using a Private IP as a Route Target (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm#privateip). + // Example: `true` + SkipSourceDestCheck *bool `mandatory:"false" json:"skipSourceDestCheck"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet to create the VNIC in. When launching an instance, + // use this `subnetId` instead of the deprecated `subnetId` in + // LaunchInstanceDetails. + // At least one of them is required; if you provide both, the values must match. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // Usage of system tag keys. These predefined keys are scoped to namespaces. + // Example: `{"orcl-cloud": {"free-tier-retained": "true"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN that the VNIC belongs to + VlanId *string `mandatory:"false" json:"vlanId"` + + // ID of the compartment + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Indicates if generation of NAT IP should be skipped if the associated VNIC has this flag set to true. + IsNatIpAllocationDisabled *bool `mandatory:"false" json:"isNatIpAllocationDisabled"` + + // Indicates if private IP creation should be blocked for external customers. Default to false. + // For example, Exadata team can create private IP through internal api. External customers who call public api + // are prohibited to add private IP to Exadata node. + IsPrivateIpCreationBlocked *bool `mandatory:"false" json:"isPrivateIpCreationBlocked"` + + // Indicates if the VNIC should get a public IP. + HasPublicIp *bool `mandatory:"false" json:"hasPublicIp"` + + // Indicates if the VNIC is connected to VNIC as a Service. Defaults to `False`. + IsVnicServiceVnic *bool `mandatory:"false" json:"isVnicServiceVnic"` + + // MPLS label to be used with a VNIC connected to VNIC as a Service. Required if isVnicServiceVnic is `True`. + ServiceMplsLabel *int `mandatory:"false" json:"serviceMplsLabel"` + + // Type of service VNIC. Feature or use case that is creating this service VNIC. Used for forecasting, resource limits enforcement, and capacity management. + ServiceVnicType CreateInternalVnicDetailsServiceVnicTypeEnum `mandatory:"false" json:"serviceVnicType,omitempty"` + + // Shape of VNIC that will be used to allocate resource in the data plane once the VNIC is attached + VnicShape CreateInternalVnicDetailsVnicShapeEnum `mandatory:"false" json:"vnicShape,omitempty"` +} + +func (m CreateInternalVnicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternalVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateInternalVnicDetailsInternalPoolNameEnum(string(m.InternalPoolName)); !ok && m.InternalPoolName != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InternalPoolName: %s. Supported values are: %s.", m.InternalPoolName, strings.Join(GetCreateInternalVnicDetailsInternalPoolNameEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateInternalVnicDetailsServiceVnicTypeEnum(string(m.ServiceVnicType)); !ok && m.ServiceVnicType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceVnicType: %s. Supported values are: %s.", m.ServiceVnicType, strings.Join(GetCreateInternalVnicDetailsServiceVnicTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateInternalVnicDetailsVnicShapeEnum(string(m.VnicShape)); !ok && m.VnicShape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VnicShape: %s. Supported values are: %s.", m.VnicShape, strings.Join(GetCreateInternalVnicDetailsVnicShapeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateInternalVnicDetailsInternalPoolNameEnum Enum with underlying type: string +type CreateInternalVnicDetailsInternalPoolNameEnum string + +// Set of constants representing the allowable values for CreateInternalVnicDetailsInternalPoolNameEnum +const ( + CreateInternalVnicDetailsInternalPoolNameExternal CreateInternalVnicDetailsInternalPoolNameEnum = "EXTERNAL" + CreateInternalVnicDetailsInternalPoolNameSociEgress CreateInternalVnicDetailsInternalPoolNameEnum = "SOCI_EGRESS" +) + +var mappingCreateInternalVnicDetailsInternalPoolNameEnum = map[string]CreateInternalVnicDetailsInternalPoolNameEnum{ + "EXTERNAL": CreateInternalVnicDetailsInternalPoolNameExternal, + "SOCI_EGRESS": CreateInternalVnicDetailsInternalPoolNameSociEgress, +} + +var mappingCreateInternalVnicDetailsInternalPoolNameEnumLowerCase = map[string]CreateInternalVnicDetailsInternalPoolNameEnum{ + "external": CreateInternalVnicDetailsInternalPoolNameExternal, + "soci_egress": CreateInternalVnicDetailsInternalPoolNameSociEgress, +} + +// GetCreateInternalVnicDetailsInternalPoolNameEnumValues Enumerates the set of values for CreateInternalVnicDetailsInternalPoolNameEnum +func GetCreateInternalVnicDetailsInternalPoolNameEnumValues() []CreateInternalVnicDetailsInternalPoolNameEnum { + values := make([]CreateInternalVnicDetailsInternalPoolNameEnum, 0) + for _, v := range mappingCreateInternalVnicDetailsInternalPoolNameEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalVnicDetailsInternalPoolNameEnumStringValues Enumerates the set of values in String for CreateInternalVnicDetailsInternalPoolNameEnum +func GetCreateInternalVnicDetailsInternalPoolNameEnumStringValues() []string { + return []string{ + "EXTERNAL", + "SOCI_EGRESS", + } +} + +// GetMappingCreateInternalVnicDetailsInternalPoolNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalVnicDetailsInternalPoolNameEnum(val string) (CreateInternalVnicDetailsInternalPoolNameEnum, bool) { + enum, ok := mappingCreateInternalVnicDetailsInternalPoolNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateInternalVnicDetailsServiceVnicTypeEnum Enum with underlying type: string +type CreateInternalVnicDetailsServiceVnicTypeEnum string + +// Set of constants representing the allowable values for CreateInternalVnicDetailsServiceVnicTypeEnum +const ( + CreateInternalVnicDetailsServiceVnicTypePrivateEndpoint CreateInternalVnicDetailsServiceVnicTypeEnum = "PRIVATE_ENDPOINT" + CreateInternalVnicDetailsServiceVnicTypeReverseConnectionEndpoint CreateInternalVnicDetailsServiceVnicTypeEnum = "REVERSE_CONNECTION_ENDPOINT" + CreateInternalVnicDetailsServiceVnicTypeRealVirtualRouter CreateInternalVnicDetailsServiceVnicTypeEnum = "REAL_VIRTUAL_ROUTER" + CreateInternalVnicDetailsServiceVnicTypePrivateDnsEndpoint CreateInternalVnicDetailsServiceVnicTypeEnum = "PRIVATE_DNS_ENDPOINT" +) + +var mappingCreateInternalVnicDetailsServiceVnicTypeEnum = map[string]CreateInternalVnicDetailsServiceVnicTypeEnum{ + "PRIVATE_ENDPOINT": CreateInternalVnicDetailsServiceVnicTypePrivateEndpoint, + "REVERSE_CONNECTION_ENDPOINT": CreateInternalVnicDetailsServiceVnicTypeReverseConnectionEndpoint, + "REAL_VIRTUAL_ROUTER": CreateInternalVnicDetailsServiceVnicTypeRealVirtualRouter, + "PRIVATE_DNS_ENDPOINT": CreateInternalVnicDetailsServiceVnicTypePrivateDnsEndpoint, +} + +var mappingCreateInternalVnicDetailsServiceVnicTypeEnumLowerCase = map[string]CreateInternalVnicDetailsServiceVnicTypeEnum{ + "private_endpoint": CreateInternalVnicDetailsServiceVnicTypePrivateEndpoint, + "reverse_connection_endpoint": CreateInternalVnicDetailsServiceVnicTypeReverseConnectionEndpoint, + "real_virtual_router": CreateInternalVnicDetailsServiceVnicTypeRealVirtualRouter, + "private_dns_endpoint": CreateInternalVnicDetailsServiceVnicTypePrivateDnsEndpoint, +} + +// GetCreateInternalVnicDetailsServiceVnicTypeEnumValues Enumerates the set of values for CreateInternalVnicDetailsServiceVnicTypeEnum +func GetCreateInternalVnicDetailsServiceVnicTypeEnumValues() []CreateInternalVnicDetailsServiceVnicTypeEnum { + values := make([]CreateInternalVnicDetailsServiceVnicTypeEnum, 0) + for _, v := range mappingCreateInternalVnicDetailsServiceVnicTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalVnicDetailsServiceVnicTypeEnumStringValues Enumerates the set of values in String for CreateInternalVnicDetailsServiceVnicTypeEnum +func GetCreateInternalVnicDetailsServiceVnicTypeEnumStringValues() []string { + return []string{ + "PRIVATE_ENDPOINT", + "REVERSE_CONNECTION_ENDPOINT", + "REAL_VIRTUAL_ROUTER", + "PRIVATE_DNS_ENDPOINT", + } +} + +// GetMappingCreateInternalVnicDetailsServiceVnicTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalVnicDetailsServiceVnicTypeEnum(val string) (CreateInternalVnicDetailsServiceVnicTypeEnum, bool) { + enum, ok := mappingCreateInternalVnicDetailsServiceVnicTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateInternalVnicDetailsVnicShapeEnum Enum with underlying type: string +type CreateInternalVnicDetailsVnicShapeEnum string + +// Set of constants representing the allowable values for CreateInternalVnicDetailsVnicShapeEnum +const ( + CreateInternalVnicDetailsVnicShapeDynamic CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC" + CreateInternalVnicDetailsVnicShapeFixed0040 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040" + CreateInternalVnicDetailsVnicShapeFixed0060 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0060" + CreateInternalVnicDetailsVnicShapeFixed0060Psm CreateInternalVnicDetailsVnicShapeEnum = "FIXED0060_PSM" + CreateInternalVnicDetailsVnicShapeFixed0100 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100" + CreateInternalVnicDetailsVnicShapeFixed0120 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0120" + CreateInternalVnicDetailsVnicShapeFixed01202x CreateInternalVnicDetailsVnicShapeEnum = "FIXED0120_2X" + CreateInternalVnicDetailsVnicShapeFixed0200 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200" + CreateInternalVnicDetailsVnicShapeFixed0240 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0240" + CreateInternalVnicDetailsVnicShapeFixed0480 CreateInternalVnicDetailsVnicShapeEnum = "FIXED0480" + CreateInternalVnicDetailsVnicShapeEntirehost CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST" + CreateInternalVnicDetailsVnicShapeDynamic25g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_25G" + CreateInternalVnicDetailsVnicShapeFixed004025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_25G" + CreateInternalVnicDetailsVnicShapeFixed010025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_25G" + CreateInternalVnicDetailsVnicShapeFixed020025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_25G" + CreateInternalVnicDetailsVnicShapeFixed040025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_25G" + CreateInternalVnicDetailsVnicShapeFixed080025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_25G" + CreateInternalVnicDetailsVnicShapeFixed160025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_25G" + CreateInternalVnicDetailsVnicShapeFixed240025g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_25G" + CreateInternalVnicDetailsVnicShapeEntirehost25g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_25G" + CreateInternalVnicDetailsVnicShapeDynamicE125g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed0040E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed0070E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0070_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed0140E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0140_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed0280E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0280_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed0560E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0560_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed1120E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1120_E1_25G" + CreateInternalVnicDetailsVnicShapeFixed1680E125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1680_E1_25G" + CreateInternalVnicDetailsVnicShapeEntirehostE125g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_E1_25G" + CreateInternalVnicDetailsVnicShapeDynamicB125g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_B1_25G" + CreateInternalVnicDetailsVnicShapeFixed0040B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_B1_25G" + CreateInternalVnicDetailsVnicShapeFixed0060B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0060_B1_25G" + CreateInternalVnicDetailsVnicShapeFixed0120B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0120_B1_25G" + CreateInternalVnicDetailsVnicShapeFixed0240B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0240_B1_25G" + CreateInternalVnicDetailsVnicShapeFixed0480B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0480_B1_25G" + CreateInternalVnicDetailsVnicShapeFixed0960B125g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0960_B1_25G" + CreateInternalVnicDetailsVnicShapeEntirehostB125g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_B1_25G" + CreateInternalVnicDetailsVnicShapeMicroVmFixed0048E125g CreateInternalVnicDetailsVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" + CreateInternalVnicDetailsVnicShapeMicroLbFixed0001E125g CreateInternalVnicDetailsVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" + CreateInternalVnicDetailsVnicShapeVnicaasFixed0200 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FIXED0200" + CreateInternalVnicDetailsVnicShapeVnicaasFixed0400 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FIXED0400" + CreateInternalVnicDetailsVnicShapeVnicaasFixed0700 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FIXED0700" + CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved10g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" + CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved25g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" + CreateInternalVnicDetailsVnicShapeVnicaasTelesis25g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_TELESIS_25G" + CreateInternalVnicDetailsVnicShapeVnicaasTelesis10g CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_TELESIS_10G" + CreateInternalVnicDetailsVnicShapeVnicaasAmbassadorFixed0100 CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" + CreateInternalVnicDetailsVnicShapeVnicaasTelesisGamma CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_TELESIS_GAMMA" + CreateInternalVnicDetailsVnicShapeVnicaasPrivatedns CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_PRIVATEDNS" + CreateInternalVnicDetailsVnicShapeVnicaasFwaas CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_FWAAS" + CreateInternalVnicDetailsVnicShapeVnicaasLbaasFree CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_FREE" + CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g512k CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_512K" + CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M" + CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g2m CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_2M" + CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g3m CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_3M" + CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m8ghost CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_8GHOST" + CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m16ghost CreateInternalVnicDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_16GHOST" + CreateInternalVnicDetailsVnicShapeDynamicE350g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0040E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0300_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0500_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0600_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0700_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed0900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0900_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1000_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1100_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1300_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1400_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1500_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1700_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1800_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed1900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1900_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2100_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2200_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2300_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2500_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2600_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2700_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed2900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2900_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3000_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3100E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3100_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3200E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3300E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3300_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3400E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3400_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3500E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3500_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3600E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3700E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3700_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3800E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3800_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed3900E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3900_E3_50G" + CreateInternalVnicDetailsVnicShapeFixed4000E350g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_E3_50G" + CreateInternalVnicDetailsVnicShapeEntirehostE350g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_E3_50G" + CreateInternalVnicDetailsVnicShapeDynamicE450g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0040E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0300_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0500_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0600_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0700_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed0900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0900_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1000_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1100_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1300_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1400_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1500_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1700_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1800_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed1900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1900_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2100_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2200_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2300_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2500_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2600_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2700_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed2900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2900_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3000_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3100E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3100_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3200E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3300E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3300_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3400E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3400_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3500E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3500_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3600E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3700E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3700_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3800E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3800_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed3900E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3900_E4_50G" + CreateInternalVnicDetailsVnicShapeFixed4000E450g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_E4_50G" + CreateInternalVnicDetailsVnicShapeEntirehostE450g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_E4_50G" + CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E350g CreateInternalVnicDetailsVnicShapeEnum = "Micro_VM_Fixed0050_E3_50G" + CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E450g CreateInternalVnicDetailsVnicShapeEnum = "Micro_VM_Fixed0050_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E350g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E450g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4020A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4040A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4060A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4080A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4120A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4160A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4180A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4220A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4240A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4260A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4280A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4340A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4360A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4380A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4420A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4440A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4460A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4480A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4520A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4540A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4560A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4580A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4620A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4640A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4660A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4720A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4740A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4760A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4780A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4820A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4840A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4880A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4920A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4940A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4960A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4980A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000A150g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0090X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0270X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0630X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0810X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0990X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1170X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1530X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1710X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1890X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2070X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2430X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2610X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2790X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2970X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3330X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3510X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3690X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3870X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4230X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4410X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4590X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4770X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" + CreateInternalVnicDetailsVnicShapeDynamicA150g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0040A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0100_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0200_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0300_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0500_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0600_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0700_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed0900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0900_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1000_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1100_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1300_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1400_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1500_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1700_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1800_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed1900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1900_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2100_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2200_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2300_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2500_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2600_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2700_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed2900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2900_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3000_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3100A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3100_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3200A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3300A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3300_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3400A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3400_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3500A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3500_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3600A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3700A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3700_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3800A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3800_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed3900A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3900_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed4000A150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_A1_50G" + CreateInternalVnicDetailsVnicShapeFixed5000TelesisA150g CreateInternalVnicDetailsVnicShapeEnum = "FIXED5000_TELESIS_A1_50G" + CreateInternalVnicDetailsVnicShapeEntirehostA150g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_A1_50G" + CreateInternalVnicDetailsVnicShapeDynamicX950g CreateInternalVnicDetailsVnicShapeEnum = "DYNAMIC_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed0040X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0040_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed0400X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0400_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed0800X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED0800_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed1200X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1200_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed1600X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED1600_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed2000X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2000_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed2400X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2400_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed2800X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED2800_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed3200X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3200_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED3600_X9_50G" + CreateInternalVnicDetailsVnicShapeFixed4000X950g CreateInternalVnicDetailsVnicShapeEnum = "FIXED4000_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0100X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0100_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0300X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0300_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0500X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0500_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0700X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0700_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed0900X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED0900_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1100X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1100_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1300X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1300_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1500X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1500_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1700X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1700_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed1900X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED1900_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2100X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2100_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2300X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2300_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2500X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2500_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2700X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2700_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed2900X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED2900_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3100X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3100_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3200X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3300X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3300_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3400X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3500X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3500_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3700X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3700_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3800X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed3900X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED3900_X9_50G" + CreateInternalVnicDetailsVnicShapeStandardVmFixed4000X950g CreateInternalVnicDetailsVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0025X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0025_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0050_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0075X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0075_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0100X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0100_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0125X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0125_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0150X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0150_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0175X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0175_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0200X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0200_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0225X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0225_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0250_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0275X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0275_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0300X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0300_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0325X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0325_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0350X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0350_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0375X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0375_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0400X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0400_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0425X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0425_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0450X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0450_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0475X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0475_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0500_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0525X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0525_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0550X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0550_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0575X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0575_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0600_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0625X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0625_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0650X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0650_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0675X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0675_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0700_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0725X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0725_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0750X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0750_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0775X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0775_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0800_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0825X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0825_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0850X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0850_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0875X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0875_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0900_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0925X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0925_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0950X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0950_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0975X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0975_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1000X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1000_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1025X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1025_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1050_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1075X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1075_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1100X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1100_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1125X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1125_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1150X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1150_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1175X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1175_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1200X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1200_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1225X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1225_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1250_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1275X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1275_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1300X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1300_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1325X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1325_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1350X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1350_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1375X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1375_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1400X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1400_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1425X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1425_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1450X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1450_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1475X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1475_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1500_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1525X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1525_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1550X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1550_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1575X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1575_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1600_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1625X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1625_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1650X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1650_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1700_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1725X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1725_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1750X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1750_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1800_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1850X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1850_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1875X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1875_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1900_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1925X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1925_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1950X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1950_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2000X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2000_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2025X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2025_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2050_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2100X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2100_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2125X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2125_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2150X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2150_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2175X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2175_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2200X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2200_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2250_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2275X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2275_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2300X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2300_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2325X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2325_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2350X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2350_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2375X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2375_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2400X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2400_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2450X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2450_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2475X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2475_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2500_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2550X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2550_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2600_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2625X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2625_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2650X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2650_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2700_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2750X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2750_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2775X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2775_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2800_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2850X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2850_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2875X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2875_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2900_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2925X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2925_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2950X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2950_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2975X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2975_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3000X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3000_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3025X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3025_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3050_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3075X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3075_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3100X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3100_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3125X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3125_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3150X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3150_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3200X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3200_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3225X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3225_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3250_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3300X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3300_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3325X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3325_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3375X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3375_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3400X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3400_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3450X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3450_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3500_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3525X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3525_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3575X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3575_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3600_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3625X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3625_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3675X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3675_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3700_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3750X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3750_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3800_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3825X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3825_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3850X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3850_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3875X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3875_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3900_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3975X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3975_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4000X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4000_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4025X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4025_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4050X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4050_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4100X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4100_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4125X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4125_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4200X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4200_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4225X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4225_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4250X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4250_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4275X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4275_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4300X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4300_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4350X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4350_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4375X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4375_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4400X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4400_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4425X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4425_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4500X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4500_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4550X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4550_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4575X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4575_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4600X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4600_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4625X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4625_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4650X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4650_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4675X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4675_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4700X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4700_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4725X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4725_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4750X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4750_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4800X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4800_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4875X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4875_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4900X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4900_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4950X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4950_X9_50G" + CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed5000X950g CreateInternalVnicDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED5000_X9_50G" + CreateInternalVnicDetailsVnicShapeEntirehostX950g CreateInternalVnicDetailsVnicShapeEnum = "ENTIREHOST_X9_50G" +) + +var mappingCreateInternalVnicDetailsVnicShapeEnum = map[string]CreateInternalVnicDetailsVnicShapeEnum{ + "DYNAMIC": CreateInternalVnicDetailsVnicShapeDynamic, + "FIXED0040": CreateInternalVnicDetailsVnicShapeFixed0040, + "FIXED0060": CreateInternalVnicDetailsVnicShapeFixed0060, + "FIXED0060_PSM": CreateInternalVnicDetailsVnicShapeFixed0060Psm, + "FIXED0100": CreateInternalVnicDetailsVnicShapeFixed0100, + "FIXED0120": CreateInternalVnicDetailsVnicShapeFixed0120, + "FIXED0120_2X": CreateInternalVnicDetailsVnicShapeFixed01202x, + "FIXED0200": CreateInternalVnicDetailsVnicShapeFixed0200, + "FIXED0240": CreateInternalVnicDetailsVnicShapeFixed0240, + "FIXED0480": CreateInternalVnicDetailsVnicShapeFixed0480, + "ENTIREHOST": CreateInternalVnicDetailsVnicShapeEntirehost, + "DYNAMIC_25G": CreateInternalVnicDetailsVnicShapeDynamic25g, + "FIXED0040_25G": CreateInternalVnicDetailsVnicShapeFixed004025g, + "FIXED0100_25G": CreateInternalVnicDetailsVnicShapeFixed010025g, + "FIXED0200_25G": CreateInternalVnicDetailsVnicShapeFixed020025g, + "FIXED0400_25G": CreateInternalVnicDetailsVnicShapeFixed040025g, + "FIXED0800_25G": CreateInternalVnicDetailsVnicShapeFixed080025g, + "FIXED1600_25G": CreateInternalVnicDetailsVnicShapeFixed160025g, + "FIXED2400_25G": CreateInternalVnicDetailsVnicShapeFixed240025g, + "ENTIREHOST_25G": CreateInternalVnicDetailsVnicShapeEntirehost25g, + "DYNAMIC_E1_25G": CreateInternalVnicDetailsVnicShapeDynamicE125g, + "FIXED0040_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0040E125g, + "FIXED0070_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0070E125g, + "FIXED0140_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0140E125g, + "FIXED0280_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0280E125g, + "FIXED0560_E1_25G": CreateInternalVnicDetailsVnicShapeFixed0560E125g, + "FIXED1120_E1_25G": CreateInternalVnicDetailsVnicShapeFixed1120E125g, + "FIXED1680_E1_25G": CreateInternalVnicDetailsVnicShapeFixed1680E125g, + "ENTIREHOST_E1_25G": CreateInternalVnicDetailsVnicShapeEntirehostE125g, + "DYNAMIC_B1_25G": CreateInternalVnicDetailsVnicShapeDynamicB125g, + "FIXED0040_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0040B125g, + "FIXED0060_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0060B125g, + "FIXED0120_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0120B125g, + "FIXED0240_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0240B125g, + "FIXED0480_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0480B125g, + "FIXED0960_B1_25G": CreateInternalVnicDetailsVnicShapeFixed0960B125g, + "ENTIREHOST_B1_25G": CreateInternalVnicDetailsVnicShapeEntirehostB125g, + "MICRO_VM_FIXED0048_E1_25G": CreateInternalVnicDetailsVnicShapeMicroVmFixed0048E125g, + "MICRO_LB_FIXED0001_E1_25G": CreateInternalVnicDetailsVnicShapeMicroLbFixed0001E125g, + "VNICAAS_FIXED0200": CreateInternalVnicDetailsVnicShapeVnicaasFixed0200, + "VNICAAS_FIXED0400": CreateInternalVnicDetailsVnicShapeVnicaasFixed0400, + "VNICAAS_FIXED0700": CreateInternalVnicDetailsVnicShapeVnicaasFixed0700, + "VNICAAS_NLB_APPROVED_10G": CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved10g, + "VNICAAS_NLB_APPROVED_25G": CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved25g, + "VNICAAS_TELESIS_25G": CreateInternalVnicDetailsVnicShapeVnicaasTelesis25g, + "VNICAAS_TELESIS_10G": CreateInternalVnicDetailsVnicShapeVnicaasTelesis10g, + "VNICAAS_AMBASSADOR_FIXED0100": CreateInternalVnicDetailsVnicShapeVnicaasAmbassadorFixed0100, + "VNICAAS_TELESIS_GAMMA": CreateInternalVnicDetailsVnicShapeVnicaasTelesisGamma, + "VNICAAS_PRIVATEDNS": CreateInternalVnicDetailsVnicShapeVnicaasPrivatedns, + "VNICAAS_FWAAS": CreateInternalVnicDetailsVnicShapeVnicaasFwaas, + "VNICAAS_LBAAS_FREE": CreateInternalVnicDetailsVnicShapeVnicaasLbaasFree, + "VNICAAS_LBAAS_8G_512K": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g512k, + "VNICAAS_LBAAS_8G_1M": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m, + "VNICAAS_LBAAS_8G_2M": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g2m, + "VNICAAS_LBAAS_8G_3M": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g3m, + "VNICAAS_LBAAS_8G_1M_8GHOST": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m8ghost, + "VNICAAS_LBAAS_8G_1M_16GHOST": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m16ghost, + "DYNAMIC_E3_50G": CreateInternalVnicDetailsVnicShapeDynamicE350g, + "FIXED0040_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0040E350g, + "FIXED0100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0100E350g, + "FIXED0200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0200E350g, + "FIXED0300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0300E350g, + "FIXED0400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0400E350g, + "FIXED0500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0500E350g, + "FIXED0600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0600E350g, + "FIXED0700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0700E350g, + "FIXED0800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0800E350g, + "FIXED0900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed0900E350g, + "FIXED1000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1000E350g, + "FIXED1100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1100E350g, + "FIXED1200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1200E350g, + "FIXED1300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1300E350g, + "FIXED1400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1400E350g, + "FIXED1500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1500E350g, + "FIXED1600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1600E350g, + "FIXED1700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1700E350g, + "FIXED1800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1800E350g, + "FIXED1900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed1900E350g, + "FIXED2000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2000E350g, + "FIXED2100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2100E350g, + "FIXED2200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2200E350g, + "FIXED2300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2300E350g, + "FIXED2400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2400E350g, + "FIXED2500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2500E350g, + "FIXED2600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2600E350g, + "FIXED2700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2700E350g, + "FIXED2800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2800E350g, + "FIXED2900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed2900E350g, + "FIXED3000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3000E350g, + "FIXED3100_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3100E350g, + "FIXED3200_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3200E350g, + "FIXED3300_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3300E350g, + "FIXED3400_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3400E350g, + "FIXED3500_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3500E350g, + "FIXED3600_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3600E350g, + "FIXED3700_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3700E350g, + "FIXED3800_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3800E350g, + "FIXED3900_E3_50G": CreateInternalVnicDetailsVnicShapeFixed3900E350g, + "FIXED4000_E3_50G": CreateInternalVnicDetailsVnicShapeFixed4000E350g, + "ENTIREHOST_E3_50G": CreateInternalVnicDetailsVnicShapeEntirehostE350g, + "DYNAMIC_E4_50G": CreateInternalVnicDetailsVnicShapeDynamicE450g, + "FIXED0040_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0040E450g, + "FIXED0100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0100E450g, + "FIXED0200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0200E450g, + "FIXED0300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0300E450g, + "FIXED0400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0400E450g, + "FIXED0500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0500E450g, + "FIXED0600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0600E450g, + "FIXED0700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0700E450g, + "FIXED0800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0800E450g, + "FIXED0900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed0900E450g, + "FIXED1000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1000E450g, + "FIXED1100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1100E450g, + "FIXED1200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1200E450g, + "FIXED1300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1300E450g, + "FIXED1400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1400E450g, + "FIXED1500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1500E450g, + "FIXED1600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1600E450g, + "FIXED1700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1700E450g, + "FIXED1800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1800E450g, + "FIXED1900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed1900E450g, + "FIXED2000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2000E450g, + "FIXED2100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2100E450g, + "FIXED2200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2200E450g, + "FIXED2300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2300E450g, + "FIXED2400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2400E450g, + "FIXED2500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2500E450g, + "FIXED2600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2600E450g, + "FIXED2700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2700E450g, + "FIXED2800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2800E450g, + "FIXED2900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed2900E450g, + "FIXED3000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3000E450g, + "FIXED3100_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3100E450g, + "FIXED3200_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3200E450g, + "FIXED3300_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3300E450g, + "FIXED3400_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3400E450g, + "FIXED3500_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3500E450g, + "FIXED3600_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3600E450g, + "FIXED3700_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3700E450g, + "FIXED3800_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3800E450g, + "FIXED3900_E4_50G": CreateInternalVnicDetailsVnicShapeFixed3900E450g, + "FIXED4000_E4_50G": CreateInternalVnicDetailsVnicShapeFixed4000E450g, + "ENTIREHOST_E4_50G": CreateInternalVnicDetailsVnicShapeEntirehostE450g, + "Micro_VM_Fixed0050_E3_50G": CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E350g, + "Micro_VM_Fixed0050_E4_50G": CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E450g, + "SUBCORE_VM_FIXED0025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E350g, + "SUBCORE_VM_FIXED0050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E350g, + "SUBCORE_VM_FIXED0075_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E350g, + "SUBCORE_VM_FIXED0100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E350g, + "SUBCORE_VM_FIXED0125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E350g, + "SUBCORE_VM_FIXED0150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E350g, + "SUBCORE_VM_FIXED0175_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E350g, + "SUBCORE_VM_FIXED0200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E350g, + "SUBCORE_VM_FIXED0225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E350g, + "SUBCORE_VM_FIXED0250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E350g, + "SUBCORE_VM_FIXED0275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E350g, + "SUBCORE_VM_FIXED0300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E350g, + "SUBCORE_VM_FIXED0325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E350g, + "SUBCORE_VM_FIXED0350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E350g, + "SUBCORE_VM_FIXED0375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E350g, + "SUBCORE_VM_FIXED0400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E350g, + "SUBCORE_VM_FIXED0425_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E350g, + "SUBCORE_VM_FIXED0450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E350g, + "SUBCORE_VM_FIXED0475_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E350g, + "SUBCORE_VM_FIXED0500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E350g, + "SUBCORE_VM_FIXED0525_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E350g, + "SUBCORE_VM_FIXED0550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E350g, + "SUBCORE_VM_FIXED0575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E350g, + "SUBCORE_VM_FIXED0600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E350g, + "SUBCORE_VM_FIXED0625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E350g, + "SUBCORE_VM_FIXED0650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E350g, + "SUBCORE_VM_FIXED0675_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E350g, + "SUBCORE_VM_FIXED0700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E350g, + "SUBCORE_VM_FIXED0725_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E350g, + "SUBCORE_VM_FIXED0750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E350g, + "SUBCORE_VM_FIXED0775_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E350g, + "SUBCORE_VM_FIXED0800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E350g, + "SUBCORE_VM_FIXED0825_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E350g, + "SUBCORE_VM_FIXED0850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E350g, + "SUBCORE_VM_FIXED0875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E350g, + "SUBCORE_VM_FIXED0900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E350g, + "SUBCORE_VM_FIXED0925_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E350g, + "SUBCORE_VM_FIXED0950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E350g, + "SUBCORE_VM_FIXED0975_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E350g, + "SUBCORE_VM_FIXED1000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E350g, + "SUBCORE_VM_FIXED1025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E350g, + "SUBCORE_VM_FIXED1050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E350g, + "SUBCORE_VM_FIXED1075_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E350g, + "SUBCORE_VM_FIXED1100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E350g, + "SUBCORE_VM_FIXED1125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E350g, + "SUBCORE_VM_FIXED1150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E350g, + "SUBCORE_VM_FIXED1175_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E350g, + "SUBCORE_VM_FIXED1200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E350g, + "SUBCORE_VM_FIXED1225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E350g, + "SUBCORE_VM_FIXED1250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E350g, + "SUBCORE_VM_FIXED1275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E350g, + "SUBCORE_VM_FIXED1300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E350g, + "SUBCORE_VM_FIXED1325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E350g, + "SUBCORE_VM_FIXED1350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E350g, + "SUBCORE_VM_FIXED1375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E350g, + "SUBCORE_VM_FIXED1400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E350g, + "SUBCORE_VM_FIXED1425_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E350g, + "SUBCORE_VM_FIXED1450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E350g, + "SUBCORE_VM_FIXED1475_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E350g, + "SUBCORE_VM_FIXED1500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E350g, + "SUBCORE_VM_FIXED1525_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E350g, + "SUBCORE_VM_FIXED1550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E350g, + "SUBCORE_VM_FIXED1575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E350g, + "SUBCORE_VM_FIXED1600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E350g, + "SUBCORE_VM_FIXED1625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E350g, + "SUBCORE_VM_FIXED1650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E350g, + "SUBCORE_VM_FIXED1700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E350g, + "SUBCORE_VM_FIXED1725_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E350g, + "SUBCORE_VM_FIXED1750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E350g, + "SUBCORE_VM_FIXED1800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E350g, + "SUBCORE_VM_FIXED1850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E350g, + "SUBCORE_VM_FIXED1875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E350g, + "SUBCORE_VM_FIXED1900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E350g, + "SUBCORE_VM_FIXED1925_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E350g, + "SUBCORE_VM_FIXED1950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E350g, + "SUBCORE_VM_FIXED2000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E350g, + "SUBCORE_VM_FIXED2025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E350g, + "SUBCORE_VM_FIXED2050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E350g, + "SUBCORE_VM_FIXED2100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E350g, + "SUBCORE_VM_FIXED2125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E350g, + "SUBCORE_VM_FIXED2150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E350g, + "SUBCORE_VM_FIXED2175_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E350g, + "SUBCORE_VM_FIXED2200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E350g, + "SUBCORE_VM_FIXED2250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E350g, + "SUBCORE_VM_FIXED2275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E350g, + "SUBCORE_VM_FIXED2300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E350g, + "SUBCORE_VM_FIXED2325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E350g, + "SUBCORE_VM_FIXED2350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E350g, + "SUBCORE_VM_FIXED2375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E350g, + "SUBCORE_VM_FIXED2400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E350g, + "SUBCORE_VM_FIXED2450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E350g, + "SUBCORE_VM_FIXED2475_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E350g, + "SUBCORE_VM_FIXED2500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E350g, + "SUBCORE_VM_FIXED2550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E350g, + "SUBCORE_VM_FIXED2600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E350g, + "SUBCORE_VM_FIXED2625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E350g, + "SUBCORE_VM_FIXED2650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E350g, + "SUBCORE_VM_FIXED2700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E350g, + "SUBCORE_VM_FIXED2750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E350g, + "SUBCORE_VM_FIXED2775_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E350g, + "SUBCORE_VM_FIXED2800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E350g, + "SUBCORE_VM_FIXED2850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E350g, + "SUBCORE_VM_FIXED2875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E350g, + "SUBCORE_VM_FIXED2900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E350g, + "SUBCORE_VM_FIXED2925_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E350g, + "SUBCORE_VM_FIXED2950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E350g, + "SUBCORE_VM_FIXED2975_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E350g, + "SUBCORE_VM_FIXED3000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E350g, + "SUBCORE_VM_FIXED3025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E350g, + "SUBCORE_VM_FIXED3050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E350g, + "SUBCORE_VM_FIXED3075_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E350g, + "SUBCORE_VM_FIXED3100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E350g, + "SUBCORE_VM_FIXED3125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E350g, + "SUBCORE_VM_FIXED3150_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E350g, + "SUBCORE_VM_FIXED3200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E350g, + "SUBCORE_VM_FIXED3225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E350g, + "SUBCORE_VM_FIXED3250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E350g, + "SUBCORE_VM_FIXED3300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E350g, + "SUBCORE_VM_FIXED3325_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E350g, + "SUBCORE_VM_FIXED3375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E350g, + "SUBCORE_VM_FIXED3400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E350g, + "SUBCORE_VM_FIXED3450_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E350g, + "SUBCORE_VM_FIXED3500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E350g, + "SUBCORE_VM_FIXED3525_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E350g, + "SUBCORE_VM_FIXED3575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E350g, + "SUBCORE_VM_FIXED3600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E350g, + "SUBCORE_VM_FIXED3625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E350g, + "SUBCORE_VM_FIXED3675_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E350g, + "SUBCORE_VM_FIXED3700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E350g, + "SUBCORE_VM_FIXED3750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E350g, + "SUBCORE_VM_FIXED3800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E350g, + "SUBCORE_VM_FIXED3825_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E350g, + "SUBCORE_VM_FIXED3850_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E350g, + "SUBCORE_VM_FIXED3875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E350g, + "SUBCORE_VM_FIXED3900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E350g, + "SUBCORE_VM_FIXED3975_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E350g, + "SUBCORE_VM_FIXED4000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E350g, + "SUBCORE_VM_FIXED4025_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E350g, + "SUBCORE_VM_FIXED4050_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E350g, + "SUBCORE_VM_FIXED4100_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E350g, + "SUBCORE_VM_FIXED4125_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E350g, + "SUBCORE_VM_FIXED4200_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E350g, + "SUBCORE_VM_FIXED4225_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E350g, + "SUBCORE_VM_FIXED4250_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E350g, + "SUBCORE_VM_FIXED4275_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E350g, + "SUBCORE_VM_FIXED4300_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E350g, + "SUBCORE_VM_FIXED4350_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E350g, + "SUBCORE_VM_FIXED4375_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E350g, + "SUBCORE_VM_FIXED4400_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E350g, + "SUBCORE_VM_FIXED4425_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E350g, + "SUBCORE_VM_FIXED4500_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E350g, + "SUBCORE_VM_FIXED4550_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E350g, + "SUBCORE_VM_FIXED4575_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E350g, + "SUBCORE_VM_FIXED4600_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E350g, + "SUBCORE_VM_FIXED4625_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E350g, + "SUBCORE_VM_FIXED4650_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E350g, + "SUBCORE_VM_FIXED4675_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E350g, + "SUBCORE_VM_FIXED4700_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E350g, + "SUBCORE_VM_FIXED4725_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E350g, + "SUBCORE_VM_FIXED4750_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E350g, + "SUBCORE_VM_FIXED4800_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E350g, + "SUBCORE_VM_FIXED4875_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E350g, + "SUBCORE_VM_FIXED4900_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E350g, + "SUBCORE_VM_FIXED4950_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E350g, + "SUBCORE_VM_FIXED5000_E3_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E350g, + "SUBCORE_VM_FIXED0025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E450g, + "SUBCORE_VM_FIXED0050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E450g, + "SUBCORE_VM_FIXED0075_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E450g, + "SUBCORE_VM_FIXED0100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E450g, + "SUBCORE_VM_FIXED0125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E450g, + "SUBCORE_VM_FIXED0150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E450g, + "SUBCORE_VM_FIXED0175_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E450g, + "SUBCORE_VM_FIXED0200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E450g, + "SUBCORE_VM_FIXED0225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E450g, + "SUBCORE_VM_FIXED0250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E450g, + "SUBCORE_VM_FIXED0275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E450g, + "SUBCORE_VM_FIXED0300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E450g, + "SUBCORE_VM_FIXED0325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E450g, + "SUBCORE_VM_FIXED0350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E450g, + "SUBCORE_VM_FIXED0375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E450g, + "SUBCORE_VM_FIXED0400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E450g, + "SUBCORE_VM_FIXED0425_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E450g, + "SUBCORE_VM_FIXED0450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E450g, + "SUBCORE_VM_FIXED0475_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E450g, + "SUBCORE_VM_FIXED0500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E450g, + "SUBCORE_VM_FIXED0525_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E450g, + "SUBCORE_VM_FIXED0550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E450g, + "SUBCORE_VM_FIXED0575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E450g, + "SUBCORE_VM_FIXED0600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E450g, + "SUBCORE_VM_FIXED0625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E450g, + "SUBCORE_VM_FIXED0650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E450g, + "SUBCORE_VM_FIXED0675_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E450g, + "SUBCORE_VM_FIXED0700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E450g, + "SUBCORE_VM_FIXED0725_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E450g, + "SUBCORE_VM_FIXED0750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E450g, + "SUBCORE_VM_FIXED0775_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E450g, + "SUBCORE_VM_FIXED0800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E450g, + "SUBCORE_VM_FIXED0825_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E450g, + "SUBCORE_VM_FIXED0850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E450g, + "SUBCORE_VM_FIXED0875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E450g, + "SUBCORE_VM_FIXED0900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E450g, + "SUBCORE_VM_FIXED0925_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E450g, + "SUBCORE_VM_FIXED0950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E450g, + "SUBCORE_VM_FIXED0975_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E450g, + "SUBCORE_VM_FIXED1000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E450g, + "SUBCORE_VM_FIXED1025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E450g, + "SUBCORE_VM_FIXED1050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E450g, + "SUBCORE_VM_FIXED1075_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E450g, + "SUBCORE_VM_FIXED1100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E450g, + "SUBCORE_VM_FIXED1125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E450g, + "SUBCORE_VM_FIXED1150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E450g, + "SUBCORE_VM_FIXED1175_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E450g, + "SUBCORE_VM_FIXED1200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E450g, + "SUBCORE_VM_FIXED1225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E450g, + "SUBCORE_VM_FIXED1250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E450g, + "SUBCORE_VM_FIXED1275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E450g, + "SUBCORE_VM_FIXED1300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E450g, + "SUBCORE_VM_FIXED1325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E450g, + "SUBCORE_VM_FIXED1350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E450g, + "SUBCORE_VM_FIXED1375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E450g, + "SUBCORE_VM_FIXED1400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E450g, + "SUBCORE_VM_FIXED1425_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E450g, + "SUBCORE_VM_FIXED1450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E450g, + "SUBCORE_VM_FIXED1475_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E450g, + "SUBCORE_VM_FIXED1500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E450g, + "SUBCORE_VM_FIXED1525_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E450g, + "SUBCORE_VM_FIXED1550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E450g, + "SUBCORE_VM_FIXED1575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E450g, + "SUBCORE_VM_FIXED1600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E450g, + "SUBCORE_VM_FIXED1625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E450g, + "SUBCORE_VM_FIXED1650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E450g, + "SUBCORE_VM_FIXED1700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E450g, + "SUBCORE_VM_FIXED1725_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E450g, + "SUBCORE_VM_FIXED1750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E450g, + "SUBCORE_VM_FIXED1800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E450g, + "SUBCORE_VM_FIXED1850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E450g, + "SUBCORE_VM_FIXED1875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E450g, + "SUBCORE_VM_FIXED1900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E450g, + "SUBCORE_VM_FIXED1925_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E450g, + "SUBCORE_VM_FIXED1950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E450g, + "SUBCORE_VM_FIXED2000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E450g, + "SUBCORE_VM_FIXED2025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E450g, + "SUBCORE_VM_FIXED2050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E450g, + "SUBCORE_VM_FIXED2100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E450g, + "SUBCORE_VM_FIXED2125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E450g, + "SUBCORE_VM_FIXED2150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E450g, + "SUBCORE_VM_FIXED2175_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E450g, + "SUBCORE_VM_FIXED2200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E450g, + "SUBCORE_VM_FIXED2250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E450g, + "SUBCORE_VM_FIXED2275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E450g, + "SUBCORE_VM_FIXED2300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E450g, + "SUBCORE_VM_FIXED2325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E450g, + "SUBCORE_VM_FIXED2350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E450g, + "SUBCORE_VM_FIXED2375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E450g, + "SUBCORE_VM_FIXED2400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E450g, + "SUBCORE_VM_FIXED2450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E450g, + "SUBCORE_VM_FIXED2475_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E450g, + "SUBCORE_VM_FIXED2500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E450g, + "SUBCORE_VM_FIXED2550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E450g, + "SUBCORE_VM_FIXED2600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E450g, + "SUBCORE_VM_FIXED2625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E450g, + "SUBCORE_VM_FIXED2650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E450g, + "SUBCORE_VM_FIXED2700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E450g, + "SUBCORE_VM_FIXED2750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E450g, + "SUBCORE_VM_FIXED2775_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E450g, + "SUBCORE_VM_FIXED2800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E450g, + "SUBCORE_VM_FIXED2850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E450g, + "SUBCORE_VM_FIXED2875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E450g, + "SUBCORE_VM_FIXED2900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E450g, + "SUBCORE_VM_FIXED2925_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E450g, + "SUBCORE_VM_FIXED2950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E450g, + "SUBCORE_VM_FIXED2975_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E450g, + "SUBCORE_VM_FIXED3000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E450g, + "SUBCORE_VM_FIXED3025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E450g, + "SUBCORE_VM_FIXED3050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E450g, + "SUBCORE_VM_FIXED3075_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E450g, + "SUBCORE_VM_FIXED3100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E450g, + "SUBCORE_VM_FIXED3125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E450g, + "SUBCORE_VM_FIXED3150_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E450g, + "SUBCORE_VM_FIXED3200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E450g, + "SUBCORE_VM_FIXED3225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E450g, + "SUBCORE_VM_FIXED3250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E450g, + "SUBCORE_VM_FIXED3300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E450g, + "SUBCORE_VM_FIXED3325_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E450g, + "SUBCORE_VM_FIXED3375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E450g, + "SUBCORE_VM_FIXED3400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E450g, + "SUBCORE_VM_FIXED3450_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E450g, + "SUBCORE_VM_FIXED3500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E450g, + "SUBCORE_VM_FIXED3525_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E450g, + "SUBCORE_VM_FIXED3575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E450g, + "SUBCORE_VM_FIXED3600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E450g, + "SUBCORE_VM_FIXED3625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E450g, + "SUBCORE_VM_FIXED3675_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E450g, + "SUBCORE_VM_FIXED3700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E450g, + "SUBCORE_VM_FIXED3750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E450g, + "SUBCORE_VM_FIXED3800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E450g, + "SUBCORE_VM_FIXED3825_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E450g, + "SUBCORE_VM_FIXED3850_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E450g, + "SUBCORE_VM_FIXED3875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E450g, + "SUBCORE_VM_FIXED3900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E450g, + "SUBCORE_VM_FIXED3975_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E450g, + "SUBCORE_VM_FIXED4000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E450g, + "SUBCORE_VM_FIXED4025_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E450g, + "SUBCORE_VM_FIXED4050_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E450g, + "SUBCORE_VM_FIXED4100_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E450g, + "SUBCORE_VM_FIXED4125_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E450g, + "SUBCORE_VM_FIXED4200_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E450g, + "SUBCORE_VM_FIXED4225_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E450g, + "SUBCORE_VM_FIXED4250_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E450g, + "SUBCORE_VM_FIXED4275_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E450g, + "SUBCORE_VM_FIXED4300_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E450g, + "SUBCORE_VM_FIXED4350_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E450g, + "SUBCORE_VM_FIXED4375_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E450g, + "SUBCORE_VM_FIXED4400_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E450g, + "SUBCORE_VM_FIXED4425_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E450g, + "SUBCORE_VM_FIXED4500_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E450g, + "SUBCORE_VM_FIXED4550_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E450g, + "SUBCORE_VM_FIXED4575_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E450g, + "SUBCORE_VM_FIXED4600_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E450g, + "SUBCORE_VM_FIXED4625_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E450g, + "SUBCORE_VM_FIXED4650_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E450g, + "SUBCORE_VM_FIXED4675_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E450g, + "SUBCORE_VM_FIXED4700_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E450g, + "SUBCORE_VM_FIXED4725_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E450g, + "SUBCORE_VM_FIXED4750_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E450g, + "SUBCORE_VM_FIXED4800_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E450g, + "SUBCORE_VM_FIXED4875_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E450g, + "SUBCORE_VM_FIXED4900_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E450g, + "SUBCORE_VM_FIXED4950_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E450g, + "SUBCORE_VM_FIXED5000_E4_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E450g, + "SUBCORE_VM_FIXED0020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0020A150g, + "SUBCORE_VM_FIXED0040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0040A150g, + "SUBCORE_VM_FIXED0060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0060A150g, + "SUBCORE_VM_FIXED0080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0080A150g, + "SUBCORE_VM_FIXED0100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100A150g, + "SUBCORE_VM_FIXED0120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0120A150g, + "SUBCORE_VM_FIXED0140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0140A150g, + "SUBCORE_VM_FIXED0160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0160A150g, + "SUBCORE_VM_FIXED0180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180A150g, + "SUBCORE_VM_FIXED0200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200A150g, + "SUBCORE_VM_FIXED0220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0220A150g, + "SUBCORE_VM_FIXED0240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0240A150g, + "SUBCORE_VM_FIXED0260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0260A150g, + "SUBCORE_VM_FIXED0280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0280A150g, + "SUBCORE_VM_FIXED0300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300A150g, + "SUBCORE_VM_FIXED0320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0320A150g, + "SUBCORE_VM_FIXED0340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0340A150g, + "SUBCORE_VM_FIXED0360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360A150g, + "SUBCORE_VM_FIXED0380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0380A150g, + "SUBCORE_VM_FIXED0400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400A150g, + "SUBCORE_VM_FIXED0420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0420A150g, + "SUBCORE_VM_FIXED0440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0440A150g, + "SUBCORE_VM_FIXED0460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0460A150g, + "SUBCORE_VM_FIXED0480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0480A150g, + "SUBCORE_VM_FIXED0500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500A150g, + "SUBCORE_VM_FIXED0520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0520A150g, + "SUBCORE_VM_FIXED0540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540A150g, + "SUBCORE_VM_FIXED0560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0560A150g, + "SUBCORE_VM_FIXED0580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0580A150g, + "SUBCORE_VM_FIXED0600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600A150g, + "SUBCORE_VM_FIXED0620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0620A150g, + "SUBCORE_VM_FIXED0640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0640A150g, + "SUBCORE_VM_FIXED0660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0660A150g, + "SUBCORE_VM_FIXED0680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0680A150g, + "SUBCORE_VM_FIXED0700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700A150g, + "SUBCORE_VM_FIXED0720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720A150g, + "SUBCORE_VM_FIXED0740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0740A150g, + "SUBCORE_VM_FIXED0760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0760A150g, + "SUBCORE_VM_FIXED0780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0780A150g, + "SUBCORE_VM_FIXED0800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800A150g, + "SUBCORE_VM_FIXED0820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0820A150g, + "SUBCORE_VM_FIXED0840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0840A150g, + "SUBCORE_VM_FIXED0860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0860A150g, + "SUBCORE_VM_FIXED0880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0880A150g, + "SUBCORE_VM_FIXED0900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900A150g, + "SUBCORE_VM_FIXED0920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0920A150g, + "SUBCORE_VM_FIXED0940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0940A150g, + "SUBCORE_VM_FIXED0960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0960A150g, + "SUBCORE_VM_FIXED0980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0980A150g, + "SUBCORE_VM_FIXED1000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000A150g, + "SUBCORE_VM_FIXED1020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1020A150g, + "SUBCORE_VM_FIXED1040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1040A150g, + "SUBCORE_VM_FIXED1060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1060A150g, + "SUBCORE_VM_FIXED1080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080A150g, + "SUBCORE_VM_FIXED1100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100A150g, + "SUBCORE_VM_FIXED1120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1120A150g, + "SUBCORE_VM_FIXED1140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1140A150g, + "SUBCORE_VM_FIXED1160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1160A150g, + "SUBCORE_VM_FIXED1180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1180A150g, + "SUBCORE_VM_FIXED1200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200A150g, + "SUBCORE_VM_FIXED1220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1220A150g, + "SUBCORE_VM_FIXED1240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1240A150g, + "SUBCORE_VM_FIXED1260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260A150g, + "SUBCORE_VM_FIXED1280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1280A150g, + "SUBCORE_VM_FIXED1300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300A150g, + "SUBCORE_VM_FIXED1320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1320A150g, + "SUBCORE_VM_FIXED1340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1340A150g, + "SUBCORE_VM_FIXED1360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1360A150g, + "SUBCORE_VM_FIXED1380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1380A150g, + "SUBCORE_VM_FIXED1400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400A150g, + "SUBCORE_VM_FIXED1420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1420A150g, + "SUBCORE_VM_FIXED1440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440A150g, + "SUBCORE_VM_FIXED1460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1460A150g, + "SUBCORE_VM_FIXED1480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1480A150g, + "SUBCORE_VM_FIXED1500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500A150g, + "SUBCORE_VM_FIXED1520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1520A150g, + "SUBCORE_VM_FIXED1540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1540A150g, + "SUBCORE_VM_FIXED1560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1560A150g, + "SUBCORE_VM_FIXED1580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1580A150g, + "SUBCORE_VM_FIXED1600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600A150g, + "SUBCORE_VM_FIXED1620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620A150g, + "SUBCORE_VM_FIXED1640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1640A150g, + "SUBCORE_VM_FIXED1660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1660A150g, + "SUBCORE_VM_FIXED1680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1680A150g, + "SUBCORE_VM_FIXED1700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700A150g, + "SUBCORE_VM_FIXED1720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1720A150g, + "SUBCORE_VM_FIXED1740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1740A150g, + "SUBCORE_VM_FIXED1760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1760A150g, + "SUBCORE_VM_FIXED1780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1780A150g, + "SUBCORE_VM_FIXED1800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800A150g, + "SUBCORE_VM_FIXED1820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1820A150g, + "SUBCORE_VM_FIXED1840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1840A150g, + "SUBCORE_VM_FIXED1860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1860A150g, + "SUBCORE_VM_FIXED1880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1880A150g, + "SUBCORE_VM_FIXED1900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900A150g, + "SUBCORE_VM_FIXED1920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1920A150g, + "SUBCORE_VM_FIXED1940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1940A150g, + "SUBCORE_VM_FIXED1960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1960A150g, + "SUBCORE_VM_FIXED1980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980A150g, + "SUBCORE_VM_FIXED2000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000A150g, + "SUBCORE_VM_FIXED2020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2020A150g, + "SUBCORE_VM_FIXED2040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2040A150g, + "SUBCORE_VM_FIXED2060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2060A150g, + "SUBCORE_VM_FIXED2080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2080A150g, + "SUBCORE_VM_FIXED2100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100A150g, + "SUBCORE_VM_FIXED2120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2120A150g, + "SUBCORE_VM_FIXED2140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2140A150g, + "SUBCORE_VM_FIXED2160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160A150g, + "SUBCORE_VM_FIXED2180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2180A150g, + "SUBCORE_VM_FIXED2200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200A150g, + "SUBCORE_VM_FIXED2220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2220A150g, + "SUBCORE_VM_FIXED2240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2240A150g, + "SUBCORE_VM_FIXED2260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2260A150g, + "SUBCORE_VM_FIXED2280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2280A150g, + "SUBCORE_VM_FIXED2300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300A150g, + "SUBCORE_VM_FIXED2320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2320A150g, + "SUBCORE_VM_FIXED2340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340A150g, + "SUBCORE_VM_FIXED2360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2360A150g, + "SUBCORE_VM_FIXED2380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2380A150g, + "SUBCORE_VM_FIXED2400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400A150g, + "SUBCORE_VM_FIXED2420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2420A150g, + "SUBCORE_VM_FIXED2440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2440A150g, + "SUBCORE_VM_FIXED2460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2460A150g, + "SUBCORE_VM_FIXED2480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2480A150g, + "SUBCORE_VM_FIXED2500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500A150g, + "SUBCORE_VM_FIXED2520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520A150g, + "SUBCORE_VM_FIXED2540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2540A150g, + "SUBCORE_VM_FIXED2560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2560A150g, + "SUBCORE_VM_FIXED2580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2580A150g, + "SUBCORE_VM_FIXED2600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600A150g, + "SUBCORE_VM_FIXED2620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2620A150g, + "SUBCORE_VM_FIXED2640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2640A150g, + "SUBCORE_VM_FIXED2660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2660A150g, + "SUBCORE_VM_FIXED2680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2680A150g, + "SUBCORE_VM_FIXED2700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700A150g, + "SUBCORE_VM_FIXED2720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2720A150g, + "SUBCORE_VM_FIXED2740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2740A150g, + "SUBCORE_VM_FIXED2760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2760A150g, + "SUBCORE_VM_FIXED2780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2780A150g, + "SUBCORE_VM_FIXED2800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800A150g, + "SUBCORE_VM_FIXED2820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2820A150g, + "SUBCORE_VM_FIXED2840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2840A150g, + "SUBCORE_VM_FIXED2860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2860A150g, + "SUBCORE_VM_FIXED2880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880A150g, + "SUBCORE_VM_FIXED2900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900A150g, + "SUBCORE_VM_FIXED2920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2920A150g, + "SUBCORE_VM_FIXED2940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2940A150g, + "SUBCORE_VM_FIXED2960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2960A150g, + "SUBCORE_VM_FIXED2980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2980A150g, + "SUBCORE_VM_FIXED3000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000A150g, + "SUBCORE_VM_FIXED3020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3020A150g, + "SUBCORE_VM_FIXED3040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3040A150g, + "SUBCORE_VM_FIXED3060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060A150g, + "SUBCORE_VM_FIXED3080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3080A150g, + "SUBCORE_VM_FIXED3100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100A150g, + "SUBCORE_VM_FIXED3120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3120A150g, + "SUBCORE_VM_FIXED3140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3140A150g, + "SUBCORE_VM_FIXED3160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3160A150g, + "SUBCORE_VM_FIXED3180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3180A150g, + "SUBCORE_VM_FIXED3200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200A150g, + "SUBCORE_VM_FIXED3220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3220A150g, + "SUBCORE_VM_FIXED3240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240A150g, + "SUBCORE_VM_FIXED3260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3260A150g, + "SUBCORE_VM_FIXED3280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3280A150g, + "SUBCORE_VM_FIXED3300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300A150g, + "SUBCORE_VM_FIXED3320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3320A150g, + "SUBCORE_VM_FIXED3340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3340A150g, + "SUBCORE_VM_FIXED3360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3360A150g, + "SUBCORE_VM_FIXED3380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3380A150g, + "SUBCORE_VM_FIXED3400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400A150g, + "SUBCORE_VM_FIXED3420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420A150g, + "SUBCORE_VM_FIXED3440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3440A150g, + "SUBCORE_VM_FIXED3460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3460A150g, + "SUBCORE_VM_FIXED3480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3480A150g, + "SUBCORE_VM_FIXED3500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500A150g, + "SUBCORE_VM_FIXED3520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3520A150g, + "SUBCORE_VM_FIXED3540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3540A150g, + "SUBCORE_VM_FIXED3560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3560A150g, + "SUBCORE_VM_FIXED3580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3580A150g, + "SUBCORE_VM_FIXED3600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600A150g, + "SUBCORE_VM_FIXED3620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3620A150g, + "SUBCORE_VM_FIXED3640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3640A150g, + "SUBCORE_VM_FIXED3660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3660A150g, + "SUBCORE_VM_FIXED3680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3680A150g, + "SUBCORE_VM_FIXED3700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700A150g, + "SUBCORE_VM_FIXED3720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3720A150g, + "SUBCORE_VM_FIXED3740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3740A150g, + "SUBCORE_VM_FIXED3760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3760A150g, + "SUBCORE_VM_FIXED3780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780A150g, + "SUBCORE_VM_FIXED3800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800A150g, + "SUBCORE_VM_FIXED3820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3820A150g, + "SUBCORE_VM_FIXED3840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3840A150g, + "SUBCORE_VM_FIXED3860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3860A150g, + "SUBCORE_VM_FIXED3880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3880A150g, + "SUBCORE_VM_FIXED3900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900A150g, + "SUBCORE_VM_FIXED3920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3920A150g, + "SUBCORE_VM_FIXED3940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3940A150g, + "SUBCORE_VM_FIXED3960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960A150g, + "SUBCORE_VM_FIXED3980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3980A150g, + "SUBCORE_VM_FIXED4000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000A150g, + "SUBCORE_VM_FIXED4020_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4020A150g, + "SUBCORE_VM_FIXED4040_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4040A150g, + "SUBCORE_VM_FIXED4060_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4060A150g, + "SUBCORE_VM_FIXED4080_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4080A150g, + "SUBCORE_VM_FIXED4100_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100A150g, + "SUBCORE_VM_FIXED4120_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4120A150g, + "SUBCORE_VM_FIXED4140_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140A150g, + "SUBCORE_VM_FIXED4160_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4160A150g, + "SUBCORE_VM_FIXED4180_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4180A150g, + "SUBCORE_VM_FIXED4200_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200A150g, + "SUBCORE_VM_FIXED4220_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4220A150g, + "SUBCORE_VM_FIXED4240_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4240A150g, + "SUBCORE_VM_FIXED4260_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4260A150g, + "SUBCORE_VM_FIXED4280_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4280A150g, + "SUBCORE_VM_FIXED4300_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300A150g, + "SUBCORE_VM_FIXED4320_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320A150g, + "SUBCORE_VM_FIXED4340_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4340A150g, + "SUBCORE_VM_FIXED4360_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4360A150g, + "SUBCORE_VM_FIXED4380_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4380A150g, + "SUBCORE_VM_FIXED4400_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400A150g, + "SUBCORE_VM_FIXED4420_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4420A150g, + "SUBCORE_VM_FIXED4440_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4440A150g, + "SUBCORE_VM_FIXED4460_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4460A150g, + "SUBCORE_VM_FIXED4480_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4480A150g, + "SUBCORE_VM_FIXED4500_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500A150g, + "SUBCORE_VM_FIXED4520_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4520A150g, + "SUBCORE_VM_FIXED4540_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4540A150g, + "SUBCORE_VM_FIXED4560_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4560A150g, + "SUBCORE_VM_FIXED4580_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4580A150g, + "SUBCORE_VM_FIXED4600_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600A150g, + "SUBCORE_VM_FIXED4620_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4620A150g, + "SUBCORE_VM_FIXED4640_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4640A150g, + "SUBCORE_VM_FIXED4660_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4660A150g, + "SUBCORE_VM_FIXED4680_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680A150g, + "SUBCORE_VM_FIXED4700_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700A150g, + "SUBCORE_VM_FIXED4720_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4720A150g, + "SUBCORE_VM_FIXED4740_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4740A150g, + "SUBCORE_VM_FIXED4760_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4760A150g, + "SUBCORE_VM_FIXED4780_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4780A150g, + "SUBCORE_VM_FIXED4800_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800A150g, + "SUBCORE_VM_FIXED4820_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4820A150g, + "SUBCORE_VM_FIXED4840_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4840A150g, + "SUBCORE_VM_FIXED4860_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860A150g, + "SUBCORE_VM_FIXED4880_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4880A150g, + "SUBCORE_VM_FIXED4900_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900A150g, + "SUBCORE_VM_FIXED4920_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4920A150g, + "SUBCORE_VM_FIXED4940_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4940A150g, + "SUBCORE_VM_FIXED4960_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4960A150g, + "SUBCORE_VM_FIXED4980_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4980A150g, + "SUBCORE_VM_FIXED5000_A1_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000A150g, + "SUBCORE_VM_FIXED0090_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0090X950g, + "SUBCORE_VM_FIXED0180_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180X950g, + "SUBCORE_VM_FIXED0270_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0270X950g, + "SUBCORE_VM_FIXED0360_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360X950g, + "SUBCORE_VM_FIXED0450_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450X950g, + "SUBCORE_VM_FIXED0540_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540X950g, + "SUBCORE_VM_FIXED0630_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0630X950g, + "SUBCORE_VM_FIXED0720_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720X950g, + "SUBCORE_VM_FIXED0810_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0810X950g, + "SUBCORE_VM_FIXED0900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900X950g, + "SUBCORE_VM_FIXED0990_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0990X950g, + "SUBCORE_VM_FIXED1080_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080X950g, + "SUBCORE_VM_FIXED1170_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1170X950g, + "SUBCORE_VM_FIXED1260_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260X950g, + "SUBCORE_VM_FIXED1350_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350X950g, + "SUBCORE_VM_FIXED1440_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440X950g, + "SUBCORE_VM_FIXED1530_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1530X950g, + "SUBCORE_VM_FIXED1620_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620X950g, + "SUBCORE_VM_FIXED1710_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1710X950g, + "SUBCORE_VM_FIXED1800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800X950g, + "SUBCORE_VM_FIXED1890_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1890X950g, + "SUBCORE_VM_FIXED1980_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980X950g, + "SUBCORE_VM_FIXED2070_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2070X950g, + "SUBCORE_VM_FIXED2160_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160X950g, + "SUBCORE_VM_FIXED2250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250X950g, + "SUBCORE_VM_FIXED2340_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340X950g, + "SUBCORE_VM_FIXED2430_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2430X950g, + "SUBCORE_VM_FIXED2520_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520X950g, + "SUBCORE_VM_FIXED2610_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2610X950g, + "SUBCORE_VM_FIXED2700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700X950g, + "SUBCORE_VM_FIXED2790_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2790X950g, + "SUBCORE_VM_FIXED2880_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880X950g, + "SUBCORE_VM_FIXED2970_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2970X950g, + "SUBCORE_VM_FIXED3060_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060X950g, + "SUBCORE_VM_FIXED3150_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150X950g, + "SUBCORE_VM_FIXED3240_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240X950g, + "SUBCORE_VM_FIXED3330_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3330X950g, + "SUBCORE_VM_FIXED3420_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420X950g, + "SUBCORE_VM_FIXED3510_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3510X950g, + "SUBCORE_VM_FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600X950g, + "SUBCORE_VM_FIXED3690_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3690X950g, + "SUBCORE_VM_FIXED3780_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780X950g, + "SUBCORE_VM_FIXED3870_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3870X950g, + "SUBCORE_VM_FIXED3960_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960X950g, + "SUBCORE_VM_FIXED4050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050X950g, + "SUBCORE_VM_FIXED4140_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140X950g, + "SUBCORE_VM_FIXED4230_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4230X950g, + "SUBCORE_VM_FIXED4320_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320X950g, + "SUBCORE_VM_FIXED4410_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4410X950g, + "SUBCORE_VM_FIXED4500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500X950g, + "SUBCORE_VM_FIXED4590_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4590X950g, + "SUBCORE_VM_FIXED4680_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680X950g, + "SUBCORE_VM_FIXED4770_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4770X950g, + "SUBCORE_VM_FIXED4860_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860X950g, + "SUBCORE_VM_FIXED4950_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950X950g, + "DYNAMIC_A1_50G": CreateInternalVnicDetailsVnicShapeDynamicA150g, + "FIXED0040_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0040A150g, + "FIXED0100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0100A150g, + "FIXED0200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0200A150g, + "FIXED0300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0300A150g, + "FIXED0400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0400A150g, + "FIXED0500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0500A150g, + "FIXED0600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0600A150g, + "FIXED0700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0700A150g, + "FIXED0800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0800A150g, + "FIXED0900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed0900A150g, + "FIXED1000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1000A150g, + "FIXED1100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1100A150g, + "FIXED1200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1200A150g, + "FIXED1300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1300A150g, + "FIXED1400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1400A150g, + "FIXED1500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1500A150g, + "FIXED1600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1600A150g, + "FIXED1700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1700A150g, + "FIXED1800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1800A150g, + "FIXED1900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed1900A150g, + "FIXED2000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2000A150g, + "FIXED2100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2100A150g, + "FIXED2200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2200A150g, + "FIXED2300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2300A150g, + "FIXED2400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2400A150g, + "FIXED2500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2500A150g, + "FIXED2600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2600A150g, + "FIXED2700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2700A150g, + "FIXED2800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2800A150g, + "FIXED2900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed2900A150g, + "FIXED3000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3000A150g, + "FIXED3100_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3100A150g, + "FIXED3200_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3200A150g, + "FIXED3300_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3300A150g, + "FIXED3400_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3400A150g, + "FIXED3500_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3500A150g, + "FIXED3600_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3600A150g, + "FIXED3700_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3700A150g, + "FIXED3800_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3800A150g, + "FIXED3900_A1_50G": CreateInternalVnicDetailsVnicShapeFixed3900A150g, + "FIXED4000_A1_50G": CreateInternalVnicDetailsVnicShapeFixed4000A150g, + "FIXED5000_TELESIS_A1_50G": CreateInternalVnicDetailsVnicShapeFixed5000TelesisA150g, + "ENTIREHOST_A1_50G": CreateInternalVnicDetailsVnicShapeEntirehostA150g, + "DYNAMIC_X9_50G": CreateInternalVnicDetailsVnicShapeDynamicX950g, + "FIXED0040_X9_50G": CreateInternalVnicDetailsVnicShapeFixed0040X950g, + "FIXED0400_X9_50G": CreateInternalVnicDetailsVnicShapeFixed0400X950g, + "FIXED0800_X9_50G": CreateInternalVnicDetailsVnicShapeFixed0800X950g, + "FIXED1200_X9_50G": CreateInternalVnicDetailsVnicShapeFixed1200X950g, + "FIXED1600_X9_50G": CreateInternalVnicDetailsVnicShapeFixed1600X950g, + "FIXED2000_X9_50G": CreateInternalVnicDetailsVnicShapeFixed2000X950g, + "FIXED2400_X9_50G": CreateInternalVnicDetailsVnicShapeFixed2400X950g, + "FIXED2800_X9_50G": CreateInternalVnicDetailsVnicShapeFixed2800X950g, + "FIXED3200_X9_50G": CreateInternalVnicDetailsVnicShapeFixed3200X950g, + "FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeFixed3600X950g, + "FIXED4000_X9_50G": CreateInternalVnicDetailsVnicShapeFixed4000X950g, + "STANDARD_VM_FIXED0100_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0100X950g, + "STANDARD_VM_FIXED0200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0200X950g, + "STANDARD_VM_FIXED0300_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0300X950g, + "STANDARD_VM_FIXED0400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0400X950g, + "STANDARD_VM_FIXED0500_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0500X950g, + "STANDARD_VM_FIXED0600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0600X950g, + "STANDARD_VM_FIXED0700_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0700X950g, + "STANDARD_VM_FIXED0800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0800X950g, + "STANDARD_VM_FIXED0900_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed0900X950g, + "STANDARD_VM_FIXED1000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1000X950g, + "STANDARD_VM_FIXED1100_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1100X950g, + "STANDARD_VM_FIXED1200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1200X950g, + "STANDARD_VM_FIXED1300_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1300X950g, + "STANDARD_VM_FIXED1400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1400X950g, + "STANDARD_VM_FIXED1500_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1500X950g, + "STANDARD_VM_FIXED1600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1600X950g, + "STANDARD_VM_FIXED1700_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1700X950g, + "STANDARD_VM_FIXED1800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1800X950g, + "STANDARD_VM_FIXED1900_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed1900X950g, + "STANDARD_VM_FIXED2000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2000X950g, + "STANDARD_VM_FIXED2100_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2100X950g, + "STANDARD_VM_FIXED2200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2200X950g, + "STANDARD_VM_FIXED2300_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2300X950g, + "STANDARD_VM_FIXED2400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2400X950g, + "STANDARD_VM_FIXED2500_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2500X950g, + "STANDARD_VM_FIXED2600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2600X950g, + "STANDARD_VM_FIXED2700_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2700X950g, + "STANDARD_VM_FIXED2800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2800X950g, + "STANDARD_VM_FIXED2900_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed2900X950g, + "STANDARD_VM_FIXED3000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3000X950g, + "STANDARD_VM_FIXED3100_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3100X950g, + "STANDARD_VM_FIXED3200_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3200X950g, + "STANDARD_VM_FIXED3300_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3300X950g, + "STANDARD_VM_FIXED3400_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3400X950g, + "STANDARD_VM_FIXED3500_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3500X950g, + "STANDARD_VM_FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3600X950g, + "STANDARD_VM_FIXED3700_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3700X950g, + "STANDARD_VM_FIXED3800_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3800X950g, + "STANDARD_VM_FIXED3900_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed3900X950g, + "STANDARD_VM_FIXED4000_X9_50G": CreateInternalVnicDetailsVnicShapeStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0025X950g, + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0050X950g, + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0075X950g, + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0100X950g, + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0125X950g, + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0150X950g, + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0175X950g, + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0200X950g, + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0225X950g, + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0250X950g, + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0275X950g, + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0300X950g, + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0325X950g, + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0350X950g, + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0375X950g, + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0400X950g, + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0425X950g, + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0450X950g, + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0475X950g, + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0500X950g, + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0525X950g, + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0550X950g, + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0575X950g, + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0600X950g, + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0625X950g, + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0650X950g, + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0675X950g, + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0700X950g, + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0725X950g, + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0750X950g, + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0775X950g, + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0800X950g, + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0825X950g, + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0850X950g, + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0875X950g, + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0900X950g, + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0925X950g, + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0950X950g, + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0975X950g, + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1000X950g, + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1025X950g, + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1050X950g, + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1075X950g, + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1100X950g, + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1125X950g, + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1150X950g, + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1175X950g, + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1200X950g, + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1225X950g, + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1250X950g, + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1275X950g, + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1300X950g, + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1325X950g, + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1350X950g, + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1375X950g, + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1400X950g, + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1425X950g, + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1450X950g, + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1475X950g, + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1500X950g, + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1525X950g, + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1550X950g, + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1575X950g, + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1600X950g, + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1625X950g, + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1650X950g, + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1700X950g, + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1725X950g, + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1750X950g, + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1800X950g, + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1850X950g, + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1875X950g, + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1900X950g, + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1925X950g, + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1950X950g, + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2000X950g, + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2025X950g, + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2050X950g, + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2100X950g, + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2125X950g, + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2150X950g, + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2175X950g, + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2200X950g, + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2250X950g, + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2275X950g, + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2300X950g, + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2325X950g, + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2350X950g, + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2375X950g, + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2400X950g, + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2450X950g, + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2475X950g, + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2500X950g, + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2550X950g, + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2600X950g, + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2625X950g, + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2650X950g, + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2700X950g, + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2750X950g, + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2775X950g, + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2800X950g, + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2850X950g, + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2875X950g, + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2900X950g, + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2925X950g, + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2950X950g, + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2975X950g, + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3000X950g, + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3025X950g, + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3050X950g, + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3075X950g, + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3100X950g, + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3125X950g, + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3150X950g, + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3200X950g, + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3225X950g, + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3250X950g, + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3300X950g, + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3325X950g, + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3375X950g, + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3400X950g, + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3450X950g, + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3500X950g, + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3525X950g, + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3575X950g, + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3600X950g, + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3625X950g, + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3675X950g, + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3700X950g, + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3750X950g, + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3800X950g, + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3825X950g, + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3850X950g, + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3875X950g, + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3900X950g, + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3975X950g, + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4025X950g, + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4050X950g, + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4100X950g, + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4125X950g, + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4200X950g, + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4225X950g, + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4250X950g, + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4275X950g, + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4300X950g, + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4350X950g, + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4375X950g, + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4400X950g, + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4425X950g, + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4500X950g, + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4550X950g, + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4575X950g, + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4600X950g, + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4625X950g, + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4650X950g, + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4675X950g, + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4700X950g, + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4725X950g, + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4750X950g, + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4800X950g, + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4875X950g, + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4900X950g, + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4950X950g, + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed5000X950g, + "ENTIREHOST_X9_50G": CreateInternalVnicDetailsVnicShapeEntirehostX950g, +} + +var mappingCreateInternalVnicDetailsVnicShapeEnumLowerCase = map[string]CreateInternalVnicDetailsVnicShapeEnum{ + "dynamic": CreateInternalVnicDetailsVnicShapeDynamic, + "fixed0040": CreateInternalVnicDetailsVnicShapeFixed0040, + "fixed0060": CreateInternalVnicDetailsVnicShapeFixed0060, + "fixed0060_psm": CreateInternalVnicDetailsVnicShapeFixed0060Psm, + "fixed0100": CreateInternalVnicDetailsVnicShapeFixed0100, + "fixed0120": CreateInternalVnicDetailsVnicShapeFixed0120, + "fixed0120_2x": CreateInternalVnicDetailsVnicShapeFixed01202x, + "fixed0200": CreateInternalVnicDetailsVnicShapeFixed0200, + "fixed0240": CreateInternalVnicDetailsVnicShapeFixed0240, + "fixed0480": CreateInternalVnicDetailsVnicShapeFixed0480, + "entirehost": CreateInternalVnicDetailsVnicShapeEntirehost, + "dynamic_25g": CreateInternalVnicDetailsVnicShapeDynamic25g, + "fixed0040_25g": CreateInternalVnicDetailsVnicShapeFixed004025g, + "fixed0100_25g": CreateInternalVnicDetailsVnicShapeFixed010025g, + "fixed0200_25g": CreateInternalVnicDetailsVnicShapeFixed020025g, + "fixed0400_25g": CreateInternalVnicDetailsVnicShapeFixed040025g, + "fixed0800_25g": CreateInternalVnicDetailsVnicShapeFixed080025g, + "fixed1600_25g": CreateInternalVnicDetailsVnicShapeFixed160025g, + "fixed2400_25g": CreateInternalVnicDetailsVnicShapeFixed240025g, + "entirehost_25g": CreateInternalVnicDetailsVnicShapeEntirehost25g, + "dynamic_e1_25g": CreateInternalVnicDetailsVnicShapeDynamicE125g, + "fixed0040_e1_25g": CreateInternalVnicDetailsVnicShapeFixed0040E125g, + "fixed0070_e1_25g": CreateInternalVnicDetailsVnicShapeFixed0070E125g, + "fixed0140_e1_25g": CreateInternalVnicDetailsVnicShapeFixed0140E125g, + "fixed0280_e1_25g": CreateInternalVnicDetailsVnicShapeFixed0280E125g, + "fixed0560_e1_25g": CreateInternalVnicDetailsVnicShapeFixed0560E125g, + "fixed1120_e1_25g": CreateInternalVnicDetailsVnicShapeFixed1120E125g, + "fixed1680_e1_25g": CreateInternalVnicDetailsVnicShapeFixed1680E125g, + "entirehost_e1_25g": CreateInternalVnicDetailsVnicShapeEntirehostE125g, + "dynamic_b1_25g": CreateInternalVnicDetailsVnicShapeDynamicB125g, + "fixed0040_b1_25g": CreateInternalVnicDetailsVnicShapeFixed0040B125g, + "fixed0060_b1_25g": CreateInternalVnicDetailsVnicShapeFixed0060B125g, + "fixed0120_b1_25g": CreateInternalVnicDetailsVnicShapeFixed0120B125g, + "fixed0240_b1_25g": CreateInternalVnicDetailsVnicShapeFixed0240B125g, + "fixed0480_b1_25g": CreateInternalVnicDetailsVnicShapeFixed0480B125g, + "fixed0960_b1_25g": CreateInternalVnicDetailsVnicShapeFixed0960B125g, + "entirehost_b1_25g": CreateInternalVnicDetailsVnicShapeEntirehostB125g, + "micro_vm_fixed0048_e1_25g": CreateInternalVnicDetailsVnicShapeMicroVmFixed0048E125g, + "micro_lb_fixed0001_e1_25g": CreateInternalVnicDetailsVnicShapeMicroLbFixed0001E125g, + "vnicaas_fixed0200": CreateInternalVnicDetailsVnicShapeVnicaasFixed0200, + "vnicaas_fixed0400": CreateInternalVnicDetailsVnicShapeVnicaasFixed0400, + "vnicaas_fixed0700": CreateInternalVnicDetailsVnicShapeVnicaasFixed0700, + "vnicaas_nlb_approved_10g": CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved10g, + "vnicaas_nlb_approved_25g": CreateInternalVnicDetailsVnicShapeVnicaasNlbApproved25g, + "vnicaas_telesis_25g": CreateInternalVnicDetailsVnicShapeVnicaasTelesis25g, + "vnicaas_telesis_10g": CreateInternalVnicDetailsVnicShapeVnicaasTelesis10g, + "vnicaas_ambassador_fixed0100": CreateInternalVnicDetailsVnicShapeVnicaasAmbassadorFixed0100, + "vnicaas_telesis_gamma": CreateInternalVnicDetailsVnicShapeVnicaasTelesisGamma, + "vnicaas_privatedns": CreateInternalVnicDetailsVnicShapeVnicaasPrivatedns, + "vnicaas_fwaas": CreateInternalVnicDetailsVnicShapeVnicaasFwaas, + "vnicaas_lbaas_free": CreateInternalVnicDetailsVnicShapeVnicaasLbaasFree, + "vnicaas_lbaas_8g_512k": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g512k, + "vnicaas_lbaas_8g_1m": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m, + "vnicaas_lbaas_8g_2m": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g2m, + "vnicaas_lbaas_8g_3m": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g3m, + "vnicaas_lbaas_8g_1m_8ghost": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m8ghost, + "vnicaas_lbaas_8g_1m_16ghost": CreateInternalVnicDetailsVnicShapeVnicaasLbaas8g1m16ghost, + "dynamic_e3_50g": CreateInternalVnicDetailsVnicShapeDynamicE350g, + "fixed0040_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0040E350g, + "fixed0100_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0100E350g, + "fixed0200_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0200E350g, + "fixed0300_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0300E350g, + "fixed0400_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0400E350g, + "fixed0500_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0500E350g, + "fixed0600_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0600E350g, + "fixed0700_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0700E350g, + "fixed0800_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0800E350g, + "fixed0900_e3_50g": CreateInternalVnicDetailsVnicShapeFixed0900E350g, + "fixed1000_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1000E350g, + "fixed1100_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1100E350g, + "fixed1200_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1200E350g, + "fixed1300_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1300E350g, + "fixed1400_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1400E350g, + "fixed1500_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1500E350g, + "fixed1600_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1600E350g, + "fixed1700_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1700E350g, + "fixed1800_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1800E350g, + "fixed1900_e3_50g": CreateInternalVnicDetailsVnicShapeFixed1900E350g, + "fixed2000_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2000E350g, + "fixed2100_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2100E350g, + "fixed2200_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2200E350g, + "fixed2300_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2300E350g, + "fixed2400_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2400E350g, + "fixed2500_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2500E350g, + "fixed2600_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2600E350g, + "fixed2700_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2700E350g, + "fixed2800_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2800E350g, + "fixed2900_e3_50g": CreateInternalVnicDetailsVnicShapeFixed2900E350g, + "fixed3000_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3000E350g, + "fixed3100_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3100E350g, + "fixed3200_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3200E350g, + "fixed3300_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3300E350g, + "fixed3400_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3400E350g, + "fixed3500_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3500E350g, + "fixed3600_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3600E350g, + "fixed3700_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3700E350g, + "fixed3800_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3800E350g, + "fixed3900_e3_50g": CreateInternalVnicDetailsVnicShapeFixed3900E350g, + "fixed4000_e3_50g": CreateInternalVnicDetailsVnicShapeFixed4000E350g, + "entirehost_e3_50g": CreateInternalVnicDetailsVnicShapeEntirehostE350g, + "dynamic_e4_50g": CreateInternalVnicDetailsVnicShapeDynamicE450g, + "fixed0040_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0040E450g, + "fixed0100_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0100E450g, + "fixed0200_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0200E450g, + "fixed0300_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0300E450g, + "fixed0400_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0400E450g, + "fixed0500_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0500E450g, + "fixed0600_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0600E450g, + "fixed0700_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0700E450g, + "fixed0800_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0800E450g, + "fixed0900_e4_50g": CreateInternalVnicDetailsVnicShapeFixed0900E450g, + "fixed1000_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1000E450g, + "fixed1100_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1100E450g, + "fixed1200_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1200E450g, + "fixed1300_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1300E450g, + "fixed1400_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1400E450g, + "fixed1500_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1500E450g, + "fixed1600_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1600E450g, + "fixed1700_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1700E450g, + "fixed1800_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1800E450g, + "fixed1900_e4_50g": CreateInternalVnicDetailsVnicShapeFixed1900E450g, + "fixed2000_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2000E450g, + "fixed2100_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2100E450g, + "fixed2200_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2200E450g, + "fixed2300_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2300E450g, + "fixed2400_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2400E450g, + "fixed2500_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2500E450g, + "fixed2600_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2600E450g, + "fixed2700_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2700E450g, + "fixed2800_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2800E450g, + "fixed2900_e4_50g": CreateInternalVnicDetailsVnicShapeFixed2900E450g, + "fixed3000_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3000E450g, + "fixed3100_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3100E450g, + "fixed3200_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3200E450g, + "fixed3300_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3300E450g, + "fixed3400_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3400E450g, + "fixed3500_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3500E450g, + "fixed3600_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3600E450g, + "fixed3700_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3700E450g, + "fixed3800_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3800E450g, + "fixed3900_e4_50g": CreateInternalVnicDetailsVnicShapeFixed3900E450g, + "fixed4000_e4_50g": CreateInternalVnicDetailsVnicShapeFixed4000E450g, + "entirehost_e4_50g": CreateInternalVnicDetailsVnicShapeEntirehostE450g, + "micro_vm_fixed0050_e3_50g": CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E350g, + "micro_vm_fixed0050_e4_50g": CreateInternalVnicDetailsVnicShapeMicroVmFixed0050E450g, + "subcore_vm_fixed0025_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E350g, + "subcore_vm_fixed0050_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E350g, + "subcore_vm_fixed0075_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E350g, + "subcore_vm_fixed0100_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E350g, + "subcore_vm_fixed0125_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E350g, + "subcore_vm_fixed0150_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E350g, + "subcore_vm_fixed0175_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E350g, + "subcore_vm_fixed0200_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E350g, + "subcore_vm_fixed0225_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E350g, + "subcore_vm_fixed0250_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E350g, + "subcore_vm_fixed0275_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E350g, + "subcore_vm_fixed0300_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E350g, + "subcore_vm_fixed0325_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E350g, + "subcore_vm_fixed0350_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E350g, + "subcore_vm_fixed0375_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E350g, + "subcore_vm_fixed0400_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E350g, + "subcore_vm_fixed0425_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E350g, + "subcore_vm_fixed0450_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E350g, + "subcore_vm_fixed0475_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E350g, + "subcore_vm_fixed0500_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E350g, + "subcore_vm_fixed0525_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E350g, + "subcore_vm_fixed0550_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E350g, + "subcore_vm_fixed0575_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E350g, + "subcore_vm_fixed0600_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E350g, + "subcore_vm_fixed0625_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E350g, + "subcore_vm_fixed0650_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E350g, + "subcore_vm_fixed0675_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E350g, + "subcore_vm_fixed0700_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E350g, + "subcore_vm_fixed0725_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E350g, + "subcore_vm_fixed0750_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E350g, + "subcore_vm_fixed0775_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E350g, + "subcore_vm_fixed0800_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E350g, + "subcore_vm_fixed0825_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E350g, + "subcore_vm_fixed0850_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E350g, + "subcore_vm_fixed0875_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E350g, + "subcore_vm_fixed0900_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E350g, + "subcore_vm_fixed0925_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E350g, + "subcore_vm_fixed0950_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E350g, + "subcore_vm_fixed0975_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E350g, + "subcore_vm_fixed1000_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E350g, + "subcore_vm_fixed1025_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E350g, + "subcore_vm_fixed1050_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E350g, + "subcore_vm_fixed1075_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E350g, + "subcore_vm_fixed1100_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E350g, + "subcore_vm_fixed1125_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E350g, + "subcore_vm_fixed1150_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E350g, + "subcore_vm_fixed1175_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E350g, + "subcore_vm_fixed1200_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E350g, + "subcore_vm_fixed1225_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E350g, + "subcore_vm_fixed1250_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E350g, + "subcore_vm_fixed1275_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E350g, + "subcore_vm_fixed1300_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E350g, + "subcore_vm_fixed1325_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E350g, + "subcore_vm_fixed1350_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E350g, + "subcore_vm_fixed1375_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E350g, + "subcore_vm_fixed1400_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E350g, + "subcore_vm_fixed1425_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E350g, + "subcore_vm_fixed1450_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E350g, + "subcore_vm_fixed1475_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E350g, + "subcore_vm_fixed1500_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E350g, + "subcore_vm_fixed1525_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E350g, + "subcore_vm_fixed1550_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E350g, + "subcore_vm_fixed1575_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E350g, + "subcore_vm_fixed1600_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E350g, + "subcore_vm_fixed1625_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E350g, + "subcore_vm_fixed1650_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E350g, + "subcore_vm_fixed1700_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E350g, + "subcore_vm_fixed1725_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E350g, + "subcore_vm_fixed1750_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E350g, + "subcore_vm_fixed1800_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E350g, + "subcore_vm_fixed1850_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E350g, + "subcore_vm_fixed1875_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E350g, + "subcore_vm_fixed1900_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E350g, + "subcore_vm_fixed1925_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E350g, + "subcore_vm_fixed1950_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E350g, + "subcore_vm_fixed2000_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E350g, + "subcore_vm_fixed2025_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E350g, + "subcore_vm_fixed2050_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E350g, + "subcore_vm_fixed2100_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E350g, + "subcore_vm_fixed2125_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E350g, + "subcore_vm_fixed2150_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E350g, + "subcore_vm_fixed2175_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E350g, + "subcore_vm_fixed2200_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E350g, + "subcore_vm_fixed2250_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E350g, + "subcore_vm_fixed2275_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E350g, + "subcore_vm_fixed2300_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E350g, + "subcore_vm_fixed2325_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E350g, + "subcore_vm_fixed2350_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E350g, + "subcore_vm_fixed2375_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E350g, + "subcore_vm_fixed2400_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E350g, + "subcore_vm_fixed2450_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E350g, + "subcore_vm_fixed2475_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E350g, + "subcore_vm_fixed2500_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E350g, + "subcore_vm_fixed2550_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E350g, + "subcore_vm_fixed2600_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E350g, + "subcore_vm_fixed2625_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E350g, + "subcore_vm_fixed2650_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E350g, + "subcore_vm_fixed2700_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E350g, + "subcore_vm_fixed2750_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E350g, + "subcore_vm_fixed2775_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E350g, + "subcore_vm_fixed2800_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E350g, + "subcore_vm_fixed2850_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E350g, + "subcore_vm_fixed2875_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E350g, + "subcore_vm_fixed2900_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E350g, + "subcore_vm_fixed2925_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E350g, + "subcore_vm_fixed2950_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E350g, + "subcore_vm_fixed2975_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E350g, + "subcore_vm_fixed3000_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E350g, + "subcore_vm_fixed3025_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E350g, + "subcore_vm_fixed3050_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E350g, + "subcore_vm_fixed3075_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E350g, + "subcore_vm_fixed3100_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E350g, + "subcore_vm_fixed3125_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E350g, + "subcore_vm_fixed3150_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E350g, + "subcore_vm_fixed3200_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E350g, + "subcore_vm_fixed3225_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E350g, + "subcore_vm_fixed3250_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E350g, + "subcore_vm_fixed3300_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E350g, + "subcore_vm_fixed3325_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E350g, + "subcore_vm_fixed3375_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E350g, + "subcore_vm_fixed3400_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E350g, + "subcore_vm_fixed3450_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E350g, + "subcore_vm_fixed3500_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E350g, + "subcore_vm_fixed3525_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E350g, + "subcore_vm_fixed3575_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E350g, + "subcore_vm_fixed3600_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E350g, + "subcore_vm_fixed3625_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E350g, + "subcore_vm_fixed3675_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E350g, + "subcore_vm_fixed3700_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E350g, + "subcore_vm_fixed3750_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E350g, + "subcore_vm_fixed3800_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E350g, + "subcore_vm_fixed3825_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E350g, + "subcore_vm_fixed3850_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E350g, + "subcore_vm_fixed3875_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E350g, + "subcore_vm_fixed3900_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E350g, + "subcore_vm_fixed3975_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E350g, + "subcore_vm_fixed4000_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E350g, + "subcore_vm_fixed4025_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E350g, + "subcore_vm_fixed4050_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E350g, + "subcore_vm_fixed4100_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E350g, + "subcore_vm_fixed4125_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E350g, + "subcore_vm_fixed4200_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E350g, + "subcore_vm_fixed4225_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E350g, + "subcore_vm_fixed4250_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E350g, + "subcore_vm_fixed4275_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E350g, + "subcore_vm_fixed4300_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E350g, + "subcore_vm_fixed4350_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E350g, + "subcore_vm_fixed4375_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E350g, + "subcore_vm_fixed4400_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E350g, + "subcore_vm_fixed4425_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E350g, + "subcore_vm_fixed4500_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E350g, + "subcore_vm_fixed4550_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E350g, + "subcore_vm_fixed4575_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E350g, + "subcore_vm_fixed4600_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E350g, + "subcore_vm_fixed4625_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E350g, + "subcore_vm_fixed4650_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E350g, + "subcore_vm_fixed4675_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E350g, + "subcore_vm_fixed4700_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E350g, + "subcore_vm_fixed4725_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E350g, + "subcore_vm_fixed4750_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E350g, + "subcore_vm_fixed4800_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E350g, + "subcore_vm_fixed4875_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E350g, + "subcore_vm_fixed4900_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E350g, + "subcore_vm_fixed4950_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E350g, + "subcore_vm_fixed5000_e3_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E350g, + "subcore_vm_fixed0025_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0025E450g, + "subcore_vm_fixed0050_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0050E450g, + "subcore_vm_fixed0075_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0075E450g, + "subcore_vm_fixed0100_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100E450g, + "subcore_vm_fixed0125_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0125E450g, + "subcore_vm_fixed0150_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0150E450g, + "subcore_vm_fixed0175_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0175E450g, + "subcore_vm_fixed0200_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200E450g, + "subcore_vm_fixed0225_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0225E450g, + "subcore_vm_fixed0250_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0250E450g, + "subcore_vm_fixed0275_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0275E450g, + "subcore_vm_fixed0300_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300E450g, + "subcore_vm_fixed0325_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0325E450g, + "subcore_vm_fixed0350_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0350E450g, + "subcore_vm_fixed0375_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0375E450g, + "subcore_vm_fixed0400_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400E450g, + "subcore_vm_fixed0425_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0425E450g, + "subcore_vm_fixed0450_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450E450g, + "subcore_vm_fixed0475_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0475E450g, + "subcore_vm_fixed0500_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500E450g, + "subcore_vm_fixed0525_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0525E450g, + "subcore_vm_fixed0550_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0550E450g, + "subcore_vm_fixed0575_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0575E450g, + "subcore_vm_fixed0600_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600E450g, + "subcore_vm_fixed0625_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0625E450g, + "subcore_vm_fixed0650_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0650E450g, + "subcore_vm_fixed0675_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0675E450g, + "subcore_vm_fixed0700_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700E450g, + "subcore_vm_fixed0725_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0725E450g, + "subcore_vm_fixed0750_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0750E450g, + "subcore_vm_fixed0775_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0775E450g, + "subcore_vm_fixed0800_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800E450g, + "subcore_vm_fixed0825_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0825E450g, + "subcore_vm_fixed0850_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0850E450g, + "subcore_vm_fixed0875_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0875E450g, + "subcore_vm_fixed0900_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900E450g, + "subcore_vm_fixed0925_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0925E450g, + "subcore_vm_fixed0950_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0950E450g, + "subcore_vm_fixed0975_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0975E450g, + "subcore_vm_fixed1000_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000E450g, + "subcore_vm_fixed1025_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1025E450g, + "subcore_vm_fixed1050_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1050E450g, + "subcore_vm_fixed1075_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1075E450g, + "subcore_vm_fixed1100_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100E450g, + "subcore_vm_fixed1125_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1125E450g, + "subcore_vm_fixed1150_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1150E450g, + "subcore_vm_fixed1175_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1175E450g, + "subcore_vm_fixed1200_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200E450g, + "subcore_vm_fixed1225_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1225E450g, + "subcore_vm_fixed1250_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1250E450g, + "subcore_vm_fixed1275_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1275E450g, + "subcore_vm_fixed1300_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300E450g, + "subcore_vm_fixed1325_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1325E450g, + "subcore_vm_fixed1350_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350E450g, + "subcore_vm_fixed1375_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1375E450g, + "subcore_vm_fixed1400_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400E450g, + "subcore_vm_fixed1425_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1425E450g, + "subcore_vm_fixed1450_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1450E450g, + "subcore_vm_fixed1475_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1475E450g, + "subcore_vm_fixed1500_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500E450g, + "subcore_vm_fixed1525_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1525E450g, + "subcore_vm_fixed1550_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1550E450g, + "subcore_vm_fixed1575_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1575E450g, + "subcore_vm_fixed1600_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600E450g, + "subcore_vm_fixed1625_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1625E450g, + "subcore_vm_fixed1650_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1650E450g, + "subcore_vm_fixed1700_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700E450g, + "subcore_vm_fixed1725_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1725E450g, + "subcore_vm_fixed1750_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1750E450g, + "subcore_vm_fixed1800_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800E450g, + "subcore_vm_fixed1850_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1850E450g, + "subcore_vm_fixed1875_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1875E450g, + "subcore_vm_fixed1900_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900E450g, + "subcore_vm_fixed1925_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1925E450g, + "subcore_vm_fixed1950_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1950E450g, + "subcore_vm_fixed2000_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000E450g, + "subcore_vm_fixed2025_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2025E450g, + "subcore_vm_fixed2050_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2050E450g, + "subcore_vm_fixed2100_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100E450g, + "subcore_vm_fixed2125_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2125E450g, + "subcore_vm_fixed2150_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2150E450g, + "subcore_vm_fixed2175_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2175E450g, + "subcore_vm_fixed2200_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200E450g, + "subcore_vm_fixed2250_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250E450g, + "subcore_vm_fixed2275_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2275E450g, + "subcore_vm_fixed2300_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300E450g, + "subcore_vm_fixed2325_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2325E450g, + "subcore_vm_fixed2350_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2350E450g, + "subcore_vm_fixed2375_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2375E450g, + "subcore_vm_fixed2400_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400E450g, + "subcore_vm_fixed2450_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2450E450g, + "subcore_vm_fixed2475_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2475E450g, + "subcore_vm_fixed2500_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500E450g, + "subcore_vm_fixed2550_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2550E450g, + "subcore_vm_fixed2600_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600E450g, + "subcore_vm_fixed2625_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2625E450g, + "subcore_vm_fixed2650_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2650E450g, + "subcore_vm_fixed2700_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700E450g, + "subcore_vm_fixed2750_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2750E450g, + "subcore_vm_fixed2775_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2775E450g, + "subcore_vm_fixed2800_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800E450g, + "subcore_vm_fixed2850_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2850E450g, + "subcore_vm_fixed2875_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2875E450g, + "subcore_vm_fixed2900_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900E450g, + "subcore_vm_fixed2925_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2925E450g, + "subcore_vm_fixed2950_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2950E450g, + "subcore_vm_fixed2975_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2975E450g, + "subcore_vm_fixed3000_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000E450g, + "subcore_vm_fixed3025_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3025E450g, + "subcore_vm_fixed3050_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3050E450g, + "subcore_vm_fixed3075_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3075E450g, + "subcore_vm_fixed3100_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100E450g, + "subcore_vm_fixed3125_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3125E450g, + "subcore_vm_fixed3150_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150E450g, + "subcore_vm_fixed3200_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200E450g, + "subcore_vm_fixed3225_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3225E450g, + "subcore_vm_fixed3250_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3250E450g, + "subcore_vm_fixed3300_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300E450g, + "subcore_vm_fixed3325_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3325E450g, + "subcore_vm_fixed3375_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3375E450g, + "subcore_vm_fixed3400_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400E450g, + "subcore_vm_fixed3450_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3450E450g, + "subcore_vm_fixed3500_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500E450g, + "subcore_vm_fixed3525_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3525E450g, + "subcore_vm_fixed3575_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3575E450g, + "subcore_vm_fixed3600_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600E450g, + "subcore_vm_fixed3625_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3625E450g, + "subcore_vm_fixed3675_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3675E450g, + "subcore_vm_fixed3700_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700E450g, + "subcore_vm_fixed3750_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3750E450g, + "subcore_vm_fixed3800_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800E450g, + "subcore_vm_fixed3825_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3825E450g, + "subcore_vm_fixed3850_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3850E450g, + "subcore_vm_fixed3875_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3875E450g, + "subcore_vm_fixed3900_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900E450g, + "subcore_vm_fixed3975_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3975E450g, + "subcore_vm_fixed4000_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000E450g, + "subcore_vm_fixed4025_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4025E450g, + "subcore_vm_fixed4050_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050E450g, + "subcore_vm_fixed4100_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100E450g, + "subcore_vm_fixed4125_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4125E450g, + "subcore_vm_fixed4200_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200E450g, + "subcore_vm_fixed4225_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4225E450g, + "subcore_vm_fixed4250_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4250E450g, + "subcore_vm_fixed4275_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4275E450g, + "subcore_vm_fixed4300_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300E450g, + "subcore_vm_fixed4350_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4350E450g, + "subcore_vm_fixed4375_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4375E450g, + "subcore_vm_fixed4400_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400E450g, + "subcore_vm_fixed4425_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4425E450g, + "subcore_vm_fixed4500_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500E450g, + "subcore_vm_fixed4550_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4550E450g, + "subcore_vm_fixed4575_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4575E450g, + "subcore_vm_fixed4600_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600E450g, + "subcore_vm_fixed4625_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4625E450g, + "subcore_vm_fixed4650_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4650E450g, + "subcore_vm_fixed4675_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4675E450g, + "subcore_vm_fixed4700_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700E450g, + "subcore_vm_fixed4725_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4725E450g, + "subcore_vm_fixed4750_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4750E450g, + "subcore_vm_fixed4800_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800E450g, + "subcore_vm_fixed4875_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4875E450g, + "subcore_vm_fixed4900_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900E450g, + "subcore_vm_fixed4950_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950E450g, + "subcore_vm_fixed5000_e4_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000E450g, + "subcore_vm_fixed0020_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0020A150g, + "subcore_vm_fixed0040_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0040A150g, + "subcore_vm_fixed0060_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0060A150g, + "subcore_vm_fixed0080_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0080A150g, + "subcore_vm_fixed0100_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0100A150g, + "subcore_vm_fixed0120_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0120A150g, + "subcore_vm_fixed0140_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0140A150g, + "subcore_vm_fixed0160_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0160A150g, + "subcore_vm_fixed0180_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180A150g, + "subcore_vm_fixed0200_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0200A150g, + "subcore_vm_fixed0220_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0220A150g, + "subcore_vm_fixed0240_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0240A150g, + "subcore_vm_fixed0260_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0260A150g, + "subcore_vm_fixed0280_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0280A150g, + "subcore_vm_fixed0300_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0300A150g, + "subcore_vm_fixed0320_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0320A150g, + "subcore_vm_fixed0340_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0340A150g, + "subcore_vm_fixed0360_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360A150g, + "subcore_vm_fixed0380_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0380A150g, + "subcore_vm_fixed0400_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0400A150g, + "subcore_vm_fixed0420_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0420A150g, + "subcore_vm_fixed0440_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0440A150g, + "subcore_vm_fixed0460_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0460A150g, + "subcore_vm_fixed0480_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0480A150g, + "subcore_vm_fixed0500_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0500A150g, + "subcore_vm_fixed0520_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0520A150g, + "subcore_vm_fixed0540_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540A150g, + "subcore_vm_fixed0560_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0560A150g, + "subcore_vm_fixed0580_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0580A150g, + "subcore_vm_fixed0600_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0600A150g, + "subcore_vm_fixed0620_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0620A150g, + "subcore_vm_fixed0640_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0640A150g, + "subcore_vm_fixed0660_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0660A150g, + "subcore_vm_fixed0680_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0680A150g, + "subcore_vm_fixed0700_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0700A150g, + "subcore_vm_fixed0720_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720A150g, + "subcore_vm_fixed0740_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0740A150g, + "subcore_vm_fixed0760_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0760A150g, + "subcore_vm_fixed0780_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0780A150g, + "subcore_vm_fixed0800_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0800A150g, + "subcore_vm_fixed0820_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0820A150g, + "subcore_vm_fixed0840_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0840A150g, + "subcore_vm_fixed0860_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0860A150g, + "subcore_vm_fixed0880_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0880A150g, + "subcore_vm_fixed0900_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900A150g, + "subcore_vm_fixed0920_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0920A150g, + "subcore_vm_fixed0940_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0940A150g, + "subcore_vm_fixed0960_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0960A150g, + "subcore_vm_fixed0980_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0980A150g, + "subcore_vm_fixed1000_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1000A150g, + "subcore_vm_fixed1020_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1020A150g, + "subcore_vm_fixed1040_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1040A150g, + "subcore_vm_fixed1060_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1060A150g, + "subcore_vm_fixed1080_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080A150g, + "subcore_vm_fixed1100_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1100A150g, + "subcore_vm_fixed1120_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1120A150g, + "subcore_vm_fixed1140_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1140A150g, + "subcore_vm_fixed1160_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1160A150g, + "subcore_vm_fixed1180_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1180A150g, + "subcore_vm_fixed1200_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1200A150g, + "subcore_vm_fixed1220_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1220A150g, + "subcore_vm_fixed1240_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1240A150g, + "subcore_vm_fixed1260_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260A150g, + "subcore_vm_fixed1280_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1280A150g, + "subcore_vm_fixed1300_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1300A150g, + "subcore_vm_fixed1320_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1320A150g, + "subcore_vm_fixed1340_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1340A150g, + "subcore_vm_fixed1360_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1360A150g, + "subcore_vm_fixed1380_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1380A150g, + "subcore_vm_fixed1400_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1400A150g, + "subcore_vm_fixed1420_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1420A150g, + "subcore_vm_fixed1440_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440A150g, + "subcore_vm_fixed1460_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1460A150g, + "subcore_vm_fixed1480_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1480A150g, + "subcore_vm_fixed1500_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1500A150g, + "subcore_vm_fixed1520_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1520A150g, + "subcore_vm_fixed1540_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1540A150g, + "subcore_vm_fixed1560_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1560A150g, + "subcore_vm_fixed1580_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1580A150g, + "subcore_vm_fixed1600_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1600A150g, + "subcore_vm_fixed1620_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620A150g, + "subcore_vm_fixed1640_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1640A150g, + "subcore_vm_fixed1660_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1660A150g, + "subcore_vm_fixed1680_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1680A150g, + "subcore_vm_fixed1700_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1700A150g, + "subcore_vm_fixed1720_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1720A150g, + "subcore_vm_fixed1740_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1740A150g, + "subcore_vm_fixed1760_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1760A150g, + "subcore_vm_fixed1780_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1780A150g, + "subcore_vm_fixed1800_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800A150g, + "subcore_vm_fixed1820_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1820A150g, + "subcore_vm_fixed1840_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1840A150g, + "subcore_vm_fixed1860_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1860A150g, + "subcore_vm_fixed1880_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1880A150g, + "subcore_vm_fixed1900_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1900A150g, + "subcore_vm_fixed1920_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1920A150g, + "subcore_vm_fixed1940_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1940A150g, + "subcore_vm_fixed1960_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1960A150g, + "subcore_vm_fixed1980_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980A150g, + "subcore_vm_fixed2000_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2000A150g, + "subcore_vm_fixed2020_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2020A150g, + "subcore_vm_fixed2040_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2040A150g, + "subcore_vm_fixed2060_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2060A150g, + "subcore_vm_fixed2080_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2080A150g, + "subcore_vm_fixed2100_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2100A150g, + "subcore_vm_fixed2120_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2120A150g, + "subcore_vm_fixed2140_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2140A150g, + "subcore_vm_fixed2160_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160A150g, + "subcore_vm_fixed2180_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2180A150g, + "subcore_vm_fixed2200_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2200A150g, + "subcore_vm_fixed2220_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2220A150g, + "subcore_vm_fixed2240_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2240A150g, + "subcore_vm_fixed2260_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2260A150g, + "subcore_vm_fixed2280_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2280A150g, + "subcore_vm_fixed2300_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2300A150g, + "subcore_vm_fixed2320_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2320A150g, + "subcore_vm_fixed2340_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340A150g, + "subcore_vm_fixed2360_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2360A150g, + "subcore_vm_fixed2380_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2380A150g, + "subcore_vm_fixed2400_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2400A150g, + "subcore_vm_fixed2420_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2420A150g, + "subcore_vm_fixed2440_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2440A150g, + "subcore_vm_fixed2460_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2460A150g, + "subcore_vm_fixed2480_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2480A150g, + "subcore_vm_fixed2500_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2500A150g, + "subcore_vm_fixed2520_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520A150g, + "subcore_vm_fixed2540_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2540A150g, + "subcore_vm_fixed2560_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2560A150g, + "subcore_vm_fixed2580_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2580A150g, + "subcore_vm_fixed2600_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2600A150g, + "subcore_vm_fixed2620_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2620A150g, + "subcore_vm_fixed2640_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2640A150g, + "subcore_vm_fixed2660_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2660A150g, + "subcore_vm_fixed2680_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2680A150g, + "subcore_vm_fixed2700_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700A150g, + "subcore_vm_fixed2720_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2720A150g, + "subcore_vm_fixed2740_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2740A150g, + "subcore_vm_fixed2760_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2760A150g, + "subcore_vm_fixed2780_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2780A150g, + "subcore_vm_fixed2800_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2800A150g, + "subcore_vm_fixed2820_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2820A150g, + "subcore_vm_fixed2840_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2840A150g, + "subcore_vm_fixed2860_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2860A150g, + "subcore_vm_fixed2880_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880A150g, + "subcore_vm_fixed2900_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2900A150g, + "subcore_vm_fixed2920_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2920A150g, + "subcore_vm_fixed2940_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2940A150g, + "subcore_vm_fixed2960_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2960A150g, + "subcore_vm_fixed2980_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2980A150g, + "subcore_vm_fixed3000_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3000A150g, + "subcore_vm_fixed3020_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3020A150g, + "subcore_vm_fixed3040_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3040A150g, + "subcore_vm_fixed3060_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060A150g, + "subcore_vm_fixed3080_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3080A150g, + "subcore_vm_fixed3100_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3100A150g, + "subcore_vm_fixed3120_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3120A150g, + "subcore_vm_fixed3140_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3140A150g, + "subcore_vm_fixed3160_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3160A150g, + "subcore_vm_fixed3180_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3180A150g, + "subcore_vm_fixed3200_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3200A150g, + "subcore_vm_fixed3220_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3220A150g, + "subcore_vm_fixed3240_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240A150g, + "subcore_vm_fixed3260_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3260A150g, + "subcore_vm_fixed3280_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3280A150g, + "subcore_vm_fixed3300_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3300A150g, + "subcore_vm_fixed3320_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3320A150g, + "subcore_vm_fixed3340_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3340A150g, + "subcore_vm_fixed3360_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3360A150g, + "subcore_vm_fixed3380_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3380A150g, + "subcore_vm_fixed3400_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3400A150g, + "subcore_vm_fixed3420_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420A150g, + "subcore_vm_fixed3440_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3440A150g, + "subcore_vm_fixed3460_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3460A150g, + "subcore_vm_fixed3480_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3480A150g, + "subcore_vm_fixed3500_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3500A150g, + "subcore_vm_fixed3520_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3520A150g, + "subcore_vm_fixed3540_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3540A150g, + "subcore_vm_fixed3560_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3560A150g, + "subcore_vm_fixed3580_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3580A150g, + "subcore_vm_fixed3600_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600A150g, + "subcore_vm_fixed3620_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3620A150g, + "subcore_vm_fixed3640_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3640A150g, + "subcore_vm_fixed3660_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3660A150g, + "subcore_vm_fixed3680_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3680A150g, + "subcore_vm_fixed3700_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3700A150g, + "subcore_vm_fixed3720_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3720A150g, + "subcore_vm_fixed3740_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3740A150g, + "subcore_vm_fixed3760_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3760A150g, + "subcore_vm_fixed3780_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780A150g, + "subcore_vm_fixed3800_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3800A150g, + "subcore_vm_fixed3820_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3820A150g, + "subcore_vm_fixed3840_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3840A150g, + "subcore_vm_fixed3860_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3860A150g, + "subcore_vm_fixed3880_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3880A150g, + "subcore_vm_fixed3900_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3900A150g, + "subcore_vm_fixed3920_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3920A150g, + "subcore_vm_fixed3940_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3940A150g, + "subcore_vm_fixed3960_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960A150g, + "subcore_vm_fixed3980_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3980A150g, + "subcore_vm_fixed4000_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4000A150g, + "subcore_vm_fixed4020_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4020A150g, + "subcore_vm_fixed4040_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4040A150g, + "subcore_vm_fixed4060_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4060A150g, + "subcore_vm_fixed4080_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4080A150g, + "subcore_vm_fixed4100_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4100A150g, + "subcore_vm_fixed4120_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4120A150g, + "subcore_vm_fixed4140_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140A150g, + "subcore_vm_fixed4160_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4160A150g, + "subcore_vm_fixed4180_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4180A150g, + "subcore_vm_fixed4200_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4200A150g, + "subcore_vm_fixed4220_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4220A150g, + "subcore_vm_fixed4240_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4240A150g, + "subcore_vm_fixed4260_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4260A150g, + "subcore_vm_fixed4280_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4280A150g, + "subcore_vm_fixed4300_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4300A150g, + "subcore_vm_fixed4320_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320A150g, + "subcore_vm_fixed4340_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4340A150g, + "subcore_vm_fixed4360_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4360A150g, + "subcore_vm_fixed4380_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4380A150g, + "subcore_vm_fixed4400_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4400A150g, + "subcore_vm_fixed4420_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4420A150g, + "subcore_vm_fixed4440_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4440A150g, + "subcore_vm_fixed4460_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4460A150g, + "subcore_vm_fixed4480_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4480A150g, + "subcore_vm_fixed4500_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500A150g, + "subcore_vm_fixed4520_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4520A150g, + "subcore_vm_fixed4540_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4540A150g, + "subcore_vm_fixed4560_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4560A150g, + "subcore_vm_fixed4580_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4580A150g, + "subcore_vm_fixed4600_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4600A150g, + "subcore_vm_fixed4620_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4620A150g, + "subcore_vm_fixed4640_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4640A150g, + "subcore_vm_fixed4660_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4660A150g, + "subcore_vm_fixed4680_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680A150g, + "subcore_vm_fixed4700_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4700A150g, + "subcore_vm_fixed4720_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4720A150g, + "subcore_vm_fixed4740_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4740A150g, + "subcore_vm_fixed4760_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4760A150g, + "subcore_vm_fixed4780_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4780A150g, + "subcore_vm_fixed4800_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4800A150g, + "subcore_vm_fixed4820_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4820A150g, + "subcore_vm_fixed4840_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4840A150g, + "subcore_vm_fixed4860_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860A150g, + "subcore_vm_fixed4880_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4880A150g, + "subcore_vm_fixed4900_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4900A150g, + "subcore_vm_fixed4920_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4920A150g, + "subcore_vm_fixed4940_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4940A150g, + "subcore_vm_fixed4960_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4960A150g, + "subcore_vm_fixed4980_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4980A150g, + "subcore_vm_fixed5000_a1_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed5000A150g, + "subcore_vm_fixed0090_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0090X950g, + "subcore_vm_fixed0180_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0180X950g, + "subcore_vm_fixed0270_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0270X950g, + "subcore_vm_fixed0360_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0360X950g, + "subcore_vm_fixed0450_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0450X950g, + "subcore_vm_fixed0540_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0540X950g, + "subcore_vm_fixed0630_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0630X950g, + "subcore_vm_fixed0720_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0720X950g, + "subcore_vm_fixed0810_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0810X950g, + "subcore_vm_fixed0900_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0900X950g, + "subcore_vm_fixed0990_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed0990X950g, + "subcore_vm_fixed1080_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1080X950g, + "subcore_vm_fixed1170_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1170X950g, + "subcore_vm_fixed1260_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1260X950g, + "subcore_vm_fixed1350_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1350X950g, + "subcore_vm_fixed1440_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1440X950g, + "subcore_vm_fixed1530_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1530X950g, + "subcore_vm_fixed1620_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1620X950g, + "subcore_vm_fixed1710_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1710X950g, + "subcore_vm_fixed1800_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1800X950g, + "subcore_vm_fixed1890_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1890X950g, + "subcore_vm_fixed1980_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed1980X950g, + "subcore_vm_fixed2070_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2070X950g, + "subcore_vm_fixed2160_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2160X950g, + "subcore_vm_fixed2250_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2250X950g, + "subcore_vm_fixed2340_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2340X950g, + "subcore_vm_fixed2430_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2430X950g, + "subcore_vm_fixed2520_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2520X950g, + "subcore_vm_fixed2610_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2610X950g, + "subcore_vm_fixed2700_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2700X950g, + "subcore_vm_fixed2790_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2790X950g, + "subcore_vm_fixed2880_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2880X950g, + "subcore_vm_fixed2970_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed2970X950g, + "subcore_vm_fixed3060_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3060X950g, + "subcore_vm_fixed3150_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3150X950g, + "subcore_vm_fixed3240_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3240X950g, + "subcore_vm_fixed3330_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3330X950g, + "subcore_vm_fixed3420_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3420X950g, + "subcore_vm_fixed3510_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3510X950g, + "subcore_vm_fixed3600_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3600X950g, + "subcore_vm_fixed3690_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3690X950g, + "subcore_vm_fixed3780_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3780X950g, + "subcore_vm_fixed3870_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3870X950g, + "subcore_vm_fixed3960_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed3960X950g, + "subcore_vm_fixed4050_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4050X950g, + "subcore_vm_fixed4140_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4140X950g, + "subcore_vm_fixed4230_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4230X950g, + "subcore_vm_fixed4320_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4320X950g, + "subcore_vm_fixed4410_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4410X950g, + "subcore_vm_fixed4500_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4500X950g, + "subcore_vm_fixed4590_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4590X950g, + "subcore_vm_fixed4680_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4680X950g, + "subcore_vm_fixed4770_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4770X950g, + "subcore_vm_fixed4860_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4860X950g, + "subcore_vm_fixed4950_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreVmFixed4950X950g, + "dynamic_a1_50g": CreateInternalVnicDetailsVnicShapeDynamicA150g, + "fixed0040_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0040A150g, + "fixed0100_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0100A150g, + "fixed0200_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0200A150g, + "fixed0300_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0300A150g, + "fixed0400_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0400A150g, + "fixed0500_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0500A150g, + "fixed0600_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0600A150g, + "fixed0700_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0700A150g, + "fixed0800_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0800A150g, + "fixed0900_a1_50g": CreateInternalVnicDetailsVnicShapeFixed0900A150g, + "fixed1000_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1000A150g, + "fixed1100_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1100A150g, + "fixed1200_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1200A150g, + "fixed1300_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1300A150g, + "fixed1400_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1400A150g, + "fixed1500_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1500A150g, + "fixed1600_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1600A150g, + "fixed1700_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1700A150g, + "fixed1800_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1800A150g, + "fixed1900_a1_50g": CreateInternalVnicDetailsVnicShapeFixed1900A150g, + "fixed2000_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2000A150g, + "fixed2100_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2100A150g, + "fixed2200_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2200A150g, + "fixed2300_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2300A150g, + "fixed2400_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2400A150g, + "fixed2500_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2500A150g, + "fixed2600_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2600A150g, + "fixed2700_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2700A150g, + "fixed2800_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2800A150g, + "fixed2900_a1_50g": CreateInternalVnicDetailsVnicShapeFixed2900A150g, + "fixed3000_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3000A150g, + "fixed3100_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3100A150g, + "fixed3200_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3200A150g, + "fixed3300_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3300A150g, + "fixed3400_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3400A150g, + "fixed3500_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3500A150g, + "fixed3600_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3600A150g, + "fixed3700_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3700A150g, + "fixed3800_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3800A150g, + "fixed3900_a1_50g": CreateInternalVnicDetailsVnicShapeFixed3900A150g, + "fixed4000_a1_50g": CreateInternalVnicDetailsVnicShapeFixed4000A150g, + "fixed5000_telesis_a1_50g": CreateInternalVnicDetailsVnicShapeFixed5000TelesisA150g, + "entirehost_a1_50g": CreateInternalVnicDetailsVnicShapeEntirehostA150g, + "dynamic_x9_50g": CreateInternalVnicDetailsVnicShapeDynamicX950g, + "fixed0040_x9_50g": CreateInternalVnicDetailsVnicShapeFixed0040X950g, + "fixed0400_x9_50g": CreateInternalVnicDetailsVnicShapeFixed0400X950g, + "fixed0800_x9_50g": CreateInternalVnicDetailsVnicShapeFixed0800X950g, + "fixed1200_x9_50g": CreateInternalVnicDetailsVnicShapeFixed1200X950g, + "fixed1600_x9_50g": CreateInternalVnicDetailsVnicShapeFixed1600X950g, + "fixed2000_x9_50g": CreateInternalVnicDetailsVnicShapeFixed2000X950g, + "fixed2400_x9_50g": CreateInternalVnicDetailsVnicShapeFixed2400X950g, + "fixed2800_x9_50g": CreateInternalVnicDetailsVnicShapeFixed2800X950g, + "fixed3200_x9_50g": CreateInternalVnicDetailsVnicShapeFixed3200X950g, + "fixed3600_x9_50g": CreateInternalVnicDetailsVnicShapeFixed3600X950g, + "fixed4000_x9_50g": CreateInternalVnicDetailsVnicShapeFixed4000X950g, + "standard_vm_fixed0100_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0100X950g, + "standard_vm_fixed0200_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0200X950g, + "standard_vm_fixed0300_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0300X950g, + "standard_vm_fixed0400_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0400X950g, + "standard_vm_fixed0500_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0500X950g, + "standard_vm_fixed0600_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0600X950g, + "standard_vm_fixed0700_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0700X950g, + "standard_vm_fixed0800_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0800X950g, + "standard_vm_fixed0900_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed0900X950g, + "standard_vm_fixed1000_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1000X950g, + "standard_vm_fixed1100_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1100X950g, + "standard_vm_fixed1200_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1200X950g, + "standard_vm_fixed1300_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1300X950g, + "standard_vm_fixed1400_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1400X950g, + "standard_vm_fixed1500_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1500X950g, + "standard_vm_fixed1600_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1600X950g, + "standard_vm_fixed1700_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1700X950g, + "standard_vm_fixed1800_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1800X950g, + "standard_vm_fixed1900_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed1900X950g, + "standard_vm_fixed2000_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2000X950g, + "standard_vm_fixed2100_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2100X950g, + "standard_vm_fixed2200_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2200X950g, + "standard_vm_fixed2300_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2300X950g, + "standard_vm_fixed2400_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2400X950g, + "standard_vm_fixed2500_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2500X950g, + "standard_vm_fixed2600_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2600X950g, + "standard_vm_fixed2700_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2700X950g, + "standard_vm_fixed2800_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2800X950g, + "standard_vm_fixed2900_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed2900X950g, + "standard_vm_fixed3000_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3000X950g, + "standard_vm_fixed3100_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3100X950g, + "standard_vm_fixed3200_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3200X950g, + "standard_vm_fixed3300_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3300X950g, + "standard_vm_fixed3400_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3400X950g, + "standard_vm_fixed3500_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3500X950g, + "standard_vm_fixed3600_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3600X950g, + "standard_vm_fixed3700_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3700X950g, + "standard_vm_fixed3800_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3800X950g, + "standard_vm_fixed3900_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed3900X950g, + "standard_vm_fixed4000_x9_50g": CreateInternalVnicDetailsVnicShapeStandardVmFixed4000X950g, + "subcore_standard_vm_fixed0025_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0025X950g, + "subcore_standard_vm_fixed0050_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0050X950g, + "subcore_standard_vm_fixed0075_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0075X950g, + "subcore_standard_vm_fixed0100_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0100X950g, + "subcore_standard_vm_fixed0125_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0125X950g, + "subcore_standard_vm_fixed0150_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0150X950g, + "subcore_standard_vm_fixed0175_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0175X950g, + "subcore_standard_vm_fixed0200_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0200X950g, + "subcore_standard_vm_fixed0225_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0225X950g, + "subcore_standard_vm_fixed0250_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0250X950g, + "subcore_standard_vm_fixed0275_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0275X950g, + "subcore_standard_vm_fixed0300_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0300X950g, + "subcore_standard_vm_fixed0325_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0325X950g, + "subcore_standard_vm_fixed0350_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0350X950g, + "subcore_standard_vm_fixed0375_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0375X950g, + "subcore_standard_vm_fixed0400_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0400X950g, + "subcore_standard_vm_fixed0425_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0425X950g, + "subcore_standard_vm_fixed0450_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0450X950g, + "subcore_standard_vm_fixed0475_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0475X950g, + "subcore_standard_vm_fixed0500_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0500X950g, + "subcore_standard_vm_fixed0525_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0525X950g, + "subcore_standard_vm_fixed0550_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0550X950g, + "subcore_standard_vm_fixed0575_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0575X950g, + "subcore_standard_vm_fixed0600_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0600X950g, + "subcore_standard_vm_fixed0625_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0625X950g, + "subcore_standard_vm_fixed0650_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0650X950g, + "subcore_standard_vm_fixed0675_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0675X950g, + "subcore_standard_vm_fixed0700_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0700X950g, + "subcore_standard_vm_fixed0725_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0725X950g, + "subcore_standard_vm_fixed0750_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0750X950g, + "subcore_standard_vm_fixed0775_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0775X950g, + "subcore_standard_vm_fixed0800_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0800X950g, + "subcore_standard_vm_fixed0825_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0825X950g, + "subcore_standard_vm_fixed0850_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0850X950g, + "subcore_standard_vm_fixed0875_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0875X950g, + "subcore_standard_vm_fixed0900_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0900X950g, + "subcore_standard_vm_fixed0925_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0925X950g, + "subcore_standard_vm_fixed0950_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0950X950g, + "subcore_standard_vm_fixed0975_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed0975X950g, + "subcore_standard_vm_fixed1000_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1000X950g, + "subcore_standard_vm_fixed1025_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1025X950g, + "subcore_standard_vm_fixed1050_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1050X950g, + "subcore_standard_vm_fixed1075_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1075X950g, + "subcore_standard_vm_fixed1100_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1100X950g, + "subcore_standard_vm_fixed1125_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1125X950g, + "subcore_standard_vm_fixed1150_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1150X950g, + "subcore_standard_vm_fixed1175_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1175X950g, + "subcore_standard_vm_fixed1200_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1200X950g, + "subcore_standard_vm_fixed1225_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1225X950g, + "subcore_standard_vm_fixed1250_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1250X950g, + "subcore_standard_vm_fixed1275_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1275X950g, + "subcore_standard_vm_fixed1300_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1300X950g, + "subcore_standard_vm_fixed1325_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1325X950g, + "subcore_standard_vm_fixed1350_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1350X950g, + "subcore_standard_vm_fixed1375_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1375X950g, + "subcore_standard_vm_fixed1400_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1400X950g, + "subcore_standard_vm_fixed1425_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1425X950g, + "subcore_standard_vm_fixed1450_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1450X950g, + "subcore_standard_vm_fixed1475_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1475X950g, + "subcore_standard_vm_fixed1500_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1500X950g, + "subcore_standard_vm_fixed1525_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1525X950g, + "subcore_standard_vm_fixed1550_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1550X950g, + "subcore_standard_vm_fixed1575_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1575X950g, + "subcore_standard_vm_fixed1600_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1600X950g, + "subcore_standard_vm_fixed1625_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1625X950g, + "subcore_standard_vm_fixed1650_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1650X950g, + "subcore_standard_vm_fixed1700_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1700X950g, + "subcore_standard_vm_fixed1725_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1725X950g, + "subcore_standard_vm_fixed1750_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1750X950g, + "subcore_standard_vm_fixed1800_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1800X950g, + "subcore_standard_vm_fixed1850_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1850X950g, + "subcore_standard_vm_fixed1875_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1875X950g, + "subcore_standard_vm_fixed1900_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1900X950g, + "subcore_standard_vm_fixed1925_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1925X950g, + "subcore_standard_vm_fixed1950_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed1950X950g, + "subcore_standard_vm_fixed2000_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2000X950g, + "subcore_standard_vm_fixed2025_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2025X950g, + "subcore_standard_vm_fixed2050_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2050X950g, + "subcore_standard_vm_fixed2100_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2100X950g, + "subcore_standard_vm_fixed2125_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2125X950g, + "subcore_standard_vm_fixed2150_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2150X950g, + "subcore_standard_vm_fixed2175_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2175X950g, + "subcore_standard_vm_fixed2200_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2200X950g, + "subcore_standard_vm_fixed2250_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2250X950g, + "subcore_standard_vm_fixed2275_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2275X950g, + "subcore_standard_vm_fixed2300_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2300X950g, + "subcore_standard_vm_fixed2325_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2325X950g, + "subcore_standard_vm_fixed2350_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2350X950g, + "subcore_standard_vm_fixed2375_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2375X950g, + "subcore_standard_vm_fixed2400_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2400X950g, + "subcore_standard_vm_fixed2450_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2450X950g, + "subcore_standard_vm_fixed2475_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2475X950g, + "subcore_standard_vm_fixed2500_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2500X950g, + "subcore_standard_vm_fixed2550_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2550X950g, + "subcore_standard_vm_fixed2600_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2600X950g, + "subcore_standard_vm_fixed2625_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2625X950g, + "subcore_standard_vm_fixed2650_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2650X950g, + "subcore_standard_vm_fixed2700_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2700X950g, + "subcore_standard_vm_fixed2750_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2750X950g, + "subcore_standard_vm_fixed2775_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2775X950g, + "subcore_standard_vm_fixed2800_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2800X950g, + "subcore_standard_vm_fixed2850_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2850X950g, + "subcore_standard_vm_fixed2875_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2875X950g, + "subcore_standard_vm_fixed2900_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2900X950g, + "subcore_standard_vm_fixed2925_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2925X950g, + "subcore_standard_vm_fixed2950_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2950X950g, + "subcore_standard_vm_fixed2975_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed2975X950g, + "subcore_standard_vm_fixed3000_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3000X950g, + "subcore_standard_vm_fixed3025_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3025X950g, + "subcore_standard_vm_fixed3050_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3050X950g, + "subcore_standard_vm_fixed3075_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3075X950g, + "subcore_standard_vm_fixed3100_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3100X950g, + "subcore_standard_vm_fixed3125_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3125X950g, + "subcore_standard_vm_fixed3150_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3150X950g, + "subcore_standard_vm_fixed3200_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3200X950g, + "subcore_standard_vm_fixed3225_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3225X950g, + "subcore_standard_vm_fixed3250_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3250X950g, + "subcore_standard_vm_fixed3300_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3300X950g, + "subcore_standard_vm_fixed3325_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3325X950g, + "subcore_standard_vm_fixed3375_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3375X950g, + "subcore_standard_vm_fixed3400_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3400X950g, + "subcore_standard_vm_fixed3450_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3450X950g, + "subcore_standard_vm_fixed3500_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3500X950g, + "subcore_standard_vm_fixed3525_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3525X950g, + "subcore_standard_vm_fixed3575_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3575X950g, + "subcore_standard_vm_fixed3600_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3600X950g, + "subcore_standard_vm_fixed3625_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3625X950g, + "subcore_standard_vm_fixed3675_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3675X950g, + "subcore_standard_vm_fixed3700_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3700X950g, + "subcore_standard_vm_fixed3750_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3750X950g, + "subcore_standard_vm_fixed3800_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3800X950g, + "subcore_standard_vm_fixed3825_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3825X950g, + "subcore_standard_vm_fixed3850_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3850X950g, + "subcore_standard_vm_fixed3875_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3875X950g, + "subcore_standard_vm_fixed3900_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3900X950g, + "subcore_standard_vm_fixed3975_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed3975X950g, + "subcore_standard_vm_fixed4000_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4000X950g, + "subcore_standard_vm_fixed4025_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4025X950g, + "subcore_standard_vm_fixed4050_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4050X950g, + "subcore_standard_vm_fixed4100_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4100X950g, + "subcore_standard_vm_fixed4125_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4125X950g, + "subcore_standard_vm_fixed4200_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4200X950g, + "subcore_standard_vm_fixed4225_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4225X950g, + "subcore_standard_vm_fixed4250_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4250X950g, + "subcore_standard_vm_fixed4275_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4275X950g, + "subcore_standard_vm_fixed4300_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4300X950g, + "subcore_standard_vm_fixed4350_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4350X950g, + "subcore_standard_vm_fixed4375_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4375X950g, + "subcore_standard_vm_fixed4400_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4400X950g, + "subcore_standard_vm_fixed4425_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4425X950g, + "subcore_standard_vm_fixed4500_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4500X950g, + "subcore_standard_vm_fixed4550_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4550X950g, + "subcore_standard_vm_fixed4575_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4575X950g, + "subcore_standard_vm_fixed4600_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4600X950g, + "subcore_standard_vm_fixed4625_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4625X950g, + "subcore_standard_vm_fixed4650_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4650X950g, + "subcore_standard_vm_fixed4675_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4675X950g, + "subcore_standard_vm_fixed4700_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4700X950g, + "subcore_standard_vm_fixed4725_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4725X950g, + "subcore_standard_vm_fixed4750_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4750X950g, + "subcore_standard_vm_fixed4800_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4800X950g, + "subcore_standard_vm_fixed4875_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4875X950g, + "subcore_standard_vm_fixed4900_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4900X950g, + "subcore_standard_vm_fixed4950_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed4950X950g, + "subcore_standard_vm_fixed5000_x9_50g": CreateInternalVnicDetailsVnicShapeSubcoreStandardVmFixed5000X950g, + "entirehost_x9_50g": CreateInternalVnicDetailsVnicShapeEntirehostX950g, +} + +// GetCreateInternalVnicDetailsVnicShapeEnumValues Enumerates the set of values for CreateInternalVnicDetailsVnicShapeEnum +func GetCreateInternalVnicDetailsVnicShapeEnumValues() []CreateInternalVnicDetailsVnicShapeEnum { + values := make([]CreateInternalVnicDetailsVnicShapeEnum, 0) + for _, v := range mappingCreateInternalVnicDetailsVnicShapeEnum { + values = append(values, v) + } + return values +} + +// GetCreateInternalVnicDetailsVnicShapeEnumStringValues Enumerates the set of values in String for CreateInternalVnicDetailsVnicShapeEnum +func GetCreateInternalVnicDetailsVnicShapeEnumStringValues() []string { + return []string{ + "DYNAMIC", + "FIXED0040", + "FIXED0060", + "FIXED0060_PSM", + "FIXED0100", + "FIXED0120", + "FIXED0120_2X", + "FIXED0200", + "FIXED0240", + "FIXED0480", + "ENTIREHOST", + "DYNAMIC_25G", + "FIXED0040_25G", + "FIXED0100_25G", + "FIXED0200_25G", + "FIXED0400_25G", + "FIXED0800_25G", + "FIXED1600_25G", + "FIXED2400_25G", + "ENTIREHOST_25G", + "DYNAMIC_E1_25G", + "FIXED0040_E1_25G", + "FIXED0070_E1_25G", + "FIXED0140_E1_25G", + "FIXED0280_E1_25G", + "FIXED0560_E1_25G", + "FIXED1120_E1_25G", + "FIXED1680_E1_25G", + "ENTIREHOST_E1_25G", + "DYNAMIC_B1_25G", + "FIXED0040_B1_25G", + "FIXED0060_B1_25G", + "FIXED0120_B1_25G", + "FIXED0240_B1_25G", + "FIXED0480_B1_25G", + "FIXED0960_B1_25G", + "ENTIREHOST_B1_25G", + "MICRO_VM_FIXED0048_E1_25G", + "MICRO_LB_FIXED0001_E1_25G", + "VNICAAS_FIXED0200", + "VNICAAS_FIXED0400", + "VNICAAS_FIXED0700", + "VNICAAS_NLB_APPROVED_10G", + "VNICAAS_NLB_APPROVED_25G", + "VNICAAS_TELESIS_25G", + "VNICAAS_TELESIS_10G", + "VNICAAS_AMBASSADOR_FIXED0100", + "VNICAAS_TELESIS_GAMMA", + "VNICAAS_PRIVATEDNS", + "VNICAAS_FWAAS", + "VNICAAS_LBAAS_FREE", + "VNICAAS_LBAAS_8G_512K", + "VNICAAS_LBAAS_8G_1M", + "VNICAAS_LBAAS_8G_2M", + "VNICAAS_LBAAS_8G_3M", + "VNICAAS_LBAAS_8G_1M_8GHOST", + "VNICAAS_LBAAS_8G_1M_16GHOST", + "DYNAMIC_E3_50G", + "FIXED0040_E3_50G", + "FIXED0100_E3_50G", + "FIXED0200_E3_50G", + "FIXED0300_E3_50G", + "FIXED0400_E3_50G", + "FIXED0500_E3_50G", + "FIXED0600_E3_50G", + "FIXED0700_E3_50G", + "FIXED0800_E3_50G", + "FIXED0900_E3_50G", + "FIXED1000_E3_50G", + "FIXED1100_E3_50G", + "FIXED1200_E3_50G", + "FIXED1300_E3_50G", + "FIXED1400_E3_50G", + "FIXED1500_E3_50G", + "FIXED1600_E3_50G", + "FIXED1700_E3_50G", + "FIXED1800_E3_50G", + "FIXED1900_E3_50G", + "FIXED2000_E3_50G", + "FIXED2100_E3_50G", + "FIXED2200_E3_50G", + "FIXED2300_E3_50G", + "FIXED2400_E3_50G", + "FIXED2500_E3_50G", + "FIXED2600_E3_50G", + "FIXED2700_E3_50G", + "FIXED2800_E3_50G", + "FIXED2900_E3_50G", + "FIXED3000_E3_50G", + "FIXED3100_E3_50G", + "FIXED3200_E3_50G", + "FIXED3300_E3_50G", + "FIXED3400_E3_50G", + "FIXED3500_E3_50G", + "FIXED3600_E3_50G", + "FIXED3700_E3_50G", + "FIXED3800_E3_50G", + "FIXED3900_E3_50G", + "FIXED4000_E3_50G", + "ENTIREHOST_E3_50G", + "DYNAMIC_E4_50G", + "FIXED0040_E4_50G", + "FIXED0100_E4_50G", + "FIXED0200_E4_50G", + "FIXED0300_E4_50G", + "FIXED0400_E4_50G", + "FIXED0500_E4_50G", + "FIXED0600_E4_50G", + "FIXED0700_E4_50G", + "FIXED0800_E4_50G", + "FIXED0900_E4_50G", + "FIXED1000_E4_50G", + "FIXED1100_E4_50G", + "FIXED1200_E4_50G", + "FIXED1300_E4_50G", + "FIXED1400_E4_50G", + "FIXED1500_E4_50G", + "FIXED1600_E4_50G", + "FIXED1700_E4_50G", + "FIXED1800_E4_50G", + "FIXED1900_E4_50G", + "FIXED2000_E4_50G", + "FIXED2100_E4_50G", + "FIXED2200_E4_50G", + "FIXED2300_E4_50G", + "FIXED2400_E4_50G", + "FIXED2500_E4_50G", + "FIXED2600_E4_50G", + "FIXED2700_E4_50G", + "FIXED2800_E4_50G", + "FIXED2900_E4_50G", + "FIXED3000_E4_50G", + "FIXED3100_E4_50G", + "FIXED3200_E4_50G", + "FIXED3300_E4_50G", + "FIXED3400_E4_50G", + "FIXED3500_E4_50G", + "FIXED3600_E4_50G", + "FIXED3700_E4_50G", + "FIXED3800_E4_50G", + "FIXED3900_E4_50G", + "FIXED4000_E4_50G", + "ENTIREHOST_E4_50G", + "Micro_VM_Fixed0050_E3_50G", + "Micro_VM_Fixed0050_E4_50G", + "SUBCORE_VM_FIXED0025_E3_50G", + "SUBCORE_VM_FIXED0050_E3_50G", + "SUBCORE_VM_FIXED0075_E3_50G", + "SUBCORE_VM_FIXED0100_E3_50G", + "SUBCORE_VM_FIXED0125_E3_50G", + "SUBCORE_VM_FIXED0150_E3_50G", + "SUBCORE_VM_FIXED0175_E3_50G", + "SUBCORE_VM_FIXED0200_E3_50G", + "SUBCORE_VM_FIXED0225_E3_50G", + "SUBCORE_VM_FIXED0250_E3_50G", + "SUBCORE_VM_FIXED0275_E3_50G", + "SUBCORE_VM_FIXED0300_E3_50G", + "SUBCORE_VM_FIXED0325_E3_50G", + "SUBCORE_VM_FIXED0350_E3_50G", + "SUBCORE_VM_FIXED0375_E3_50G", + "SUBCORE_VM_FIXED0400_E3_50G", + "SUBCORE_VM_FIXED0425_E3_50G", + "SUBCORE_VM_FIXED0450_E3_50G", + "SUBCORE_VM_FIXED0475_E3_50G", + "SUBCORE_VM_FIXED0500_E3_50G", + "SUBCORE_VM_FIXED0525_E3_50G", + "SUBCORE_VM_FIXED0550_E3_50G", + "SUBCORE_VM_FIXED0575_E3_50G", + "SUBCORE_VM_FIXED0600_E3_50G", + "SUBCORE_VM_FIXED0625_E3_50G", + "SUBCORE_VM_FIXED0650_E3_50G", + "SUBCORE_VM_FIXED0675_E3_50G", + "SUBCORE_VM_FIXED0700_E3_50G", + "SUBCORE_VM_FIXED0725_E3_50G", + "SUBCORE_VM_FIXED0750_E3_50G", + "SUBCORE_VM_FIXED0775_E3_50G", + "SUBCORE_VM_FIXED0800_E3_50G", + "SUBCORE_VM_FIXED0825_E3_50G", + "SUBCORE_VM_FIXED0850_E3_50G", + "SUBCORE_VM_FIXED0875_E3_50G", + "SUBCORE_VM_FIXED0900_E3_50G", + "SUBCORE_VM_FIXED0925_E3_50G", + "SUBCORE_VM_FIXED0950_E3_50G", + "SUBCORE_VM_FIXED0975_E3_50G", + "SUBCORE_VM_FIXED1000_E3_50G", + "SUBCORE_VM_FIXED1025_E3_50G", + "SUBCORE_VM_FIXED1050_E3_50G", + "SUBCORE_VM_FIXED1075_E3_50G", + "SUBCORE_VM_FIXED1100_E3_50G", + "SUBCORE_VM_FIXED1125_E3_50G", + "SUBCORE_VM_FIXED1150_E3_50G", + "SUBCORE_VM_FIXED1175_E3_50G", + "SUBCORE_VM_FIXED1200_E3_50G", + "SUBCORE_VM_FIXED1225_E3_50G", + "SUBCORE_VM_FIXED1250_E3_50G", + "SUBCORE_VM_FIXED1275_E3_50G", + "SUBCORE_VM_FIXED1300_E3_50G", + "SUBCORE_VM_FIXED1325_E3_50G", + "SUBCORE_VM_FIXED1350_E3_50G", + "SUBCORE_VM_FIXED1375_E3_50G", + "SUBCORE_VM_FIXED1400_E3_50G", + "SUBCORE_VM_FIXED1425_E3_50G", + "SUBCORE_VM_FIXED1450_E3_50G", + "SUBCORE_VM_FIXED1475_E3_50G", + "SUBCORE_VM_FIXED1500_E3_50G", + "SUBCORE_VM_FIXED1525_E3_50G", + "SUBCORE_VM_FIXED1550_E3_50G", + "SUBCORE_VM_FIXED1575_E3_50G", + "SUBCORE_VM_FIXED1600_E3_50G", + "SUBCORE_VM_FIXED1625_E3_50G", + "SUBCORE_VM_FIXED1650_E3_50G", + "SUBCORE_VM_FIXED1700_E3_50G", + "SUBCORE_VM_FIXED1725_E3_50G", + "SUBCORE_VM_FIXED1750_E3_50G", + "SUBCORE_VM_FIXED1800_E3_50G", + "SUBCORE_VM_FIXED1850_E3_50G", + "SUBCORE_VM_FIXED1875_E3_50G", + "SUBCORE_VM_FIXED1900_E3_50G", + "SUBCORE_VM_FIXED1925_E3_50G", + "SUBCORE_VM_FIXED1950_E3_50G", + "SUBCORE_VM_FIXED2000_E3_50G", + "SUBCORE_VM_FIXED2025_E3_50G", + "SUBCORE_VM_FIXED2050_E3_50G", + "SUBCORE_VM_FIXED2100_E3_50G", + "SUBCORE_VM_FIXED2125_E3_50G", + "SUBCORE_VM_FIXED2150_E3_50G", + "SUBCORE_VM_FIXED2175_E3_50G", + "SUBCORE_VM_FIXED2200_E3_50G", + "SUBCORE_VM_FIXED2250_E3_50G", + "SUBCORE_VM_FIXED2275_E3_50G", + "SUBCORE_VM_FIXED2300_E3_50G", + "SUBCORE_VM_FIXED2325_E3_50G", + "SUBCORE_VM_FIXED2350_E3_50G", + "SUBCORE_VM_FIXED2375_E3_50G", + "SUBCORE_VM_FIXED2400_E3_50G", + "SUBCORE_VM_FIXED2450_E3_50G", + "SUBCORE_VM_FIXED2475_E3_50G", + "SUBCORE_VM_FIXED2500_E3_50G", + "SUBCORE_VM_FIXED2550_E3_50G", + "SUBCORE_VM_FIXED2600_E3_50G", + "SUBCORE_VM_FIXED2625_E3_50G", + "SUBCORE_VM_FIXED2650_E3_50G", + "SUBCORE_VM_FIXED2700_E3_50G", + "SUBCORE_VM_FIXED2750_E3_50G", + "SUBCORE_VM_FIXED2775_E3_50G", + "SUBCORE_VM_FIXED2800_E3_50G", + "SUBCORE_VM_FIXED2850_E3_50G", + "SUBCORE_VM_FIXED2875_E3_50G", + "SUBCORE_VM_FIXED2900_E3_50G", + "SUBCORE_VM_FIXED2925_E3_50G", + "SUBCORE_VM_FIXED2950_E3_50G", + "SUBCORE_VM_FIXED2975_E3_50G", + "SUBCORE_VM_FIXED3000_E3_50G", + "SUBCORE_VM_FIXED3025_E3_50G", + "SUBCORE_VM_FIXED3050_E3_50G", + "SUBCORE_VM_FIXED3075_E3_50G", + "SUBCORE_VM_FIXED3100_E3_50G", + "SUBCORE_VM_FIXED3125_E3_50G", + "SUBCORE_VM_FIXED3150_E3_50G", + "SUBCORE_VM_FIXED3200_E3_50G", + "SUBCORE_VM_FIXED3225_E3_50G", + "SUBCORE_VM_FIXED3250_E3_50G", + "SUBCORE_VM_FIXED3300_E3_50G", + "SUBCORE_VM_FIXED3325_E3_50G", + "SUBCORE_VM_FIXED3375_E3_50G", + "SUBCORE_VM_FIXED3400_E3_50G", + "SUBCORE_VM_FIXED3450_E3_50G", + "SUBCORE_VM_FIXED3500_E3_50G", + "SUBCORE_VM_FIXED3525_E3_50G", + "SUBCORE_VM_FIXED3575_E3_50G", + "SUBCORE_VM_FIXED3600_E3_50G", + "SUBCORE_VM_FIXED3625_E3_50G", + "SUBCORE_VM_FIXED3675_E3_50G", + "SUBCORE_VM_FIXED3700_E3_50G", + "SUBCORE_VM_FIXED3750_E3_50G", + "SUBCORE_VM_FIXED3800_E3_50G", + "SUBCORE_VM_FIXED3825_E3_50G", + "SUBCORE_VM_FIXED3850_E3_50G", + "SUBCORE_VM_FIXED3875_E3_50G", + "SUBCORE_VM_FIXED3900_E3_50G", + "SUBCORE_VM_FIXED3975_E3_50G", + "SUBCORE_VM_FIXED4000_E3_50G", + "SUBCORE_VM_FIXED4025_E3_50G", + "SUBCORE_VM_FIXED4050_E3_50G", + "SUBCORE_VM_FIXED4100_E3_50G", + "SUBCORE_VM_FIXED4125_E3_50G", + "SUBCORE_VM_FIXED4200_E3_50G", + "SUBCORE_VM_FIXED4225_E3_50G", + "SUBCORE_VM_FIXED4250_E3_50G", + "SUBCORE_VM_FIXED4275_E3_50G", + "SUBCORE_VM_FIXED4300_E3_50G", + "SUBCORE_VM_FIXED4350_E3_50G", + "SUBCORE_VM_FIXED4375_E3_50G", + "SUBCORE_VM_FIXED4400_E3_50G", + "SUBCORE_VM_FIXED4425_E3_50G", + "SUBCORE_VM_FIXED4500_E3_50G", + "SUBCORE_VM_FIXED4550_E3_50G", + "SUBCORE_VM_FIXED4575_E3_50G", + "SUBCORE_VM_FIXED4600_E3_50G", + "SUBCORE_VM_FIXED4625_E3_50G", + "SUBCORE_VM_FIXED4650_E3_50G", + "SUBCORE_VM_FIXED4675_E3_50G", + "SUBCORE_VM_FIXED4700_E3_50G", + "SUBCORE_VM_FIXED4725_E3_50G", + "SUBCORE_VM_FIXED4750_E3_50G", + "SUBCORE_VM_FIXED4800_E3_50G", + "SUBCORE_VM_FIXED4875_E3_50G", + "SUBCORE_VM_FIXED4900_E3_50G", + "SUBCORE_VM_FIXED4950_E3_50G", + "SUBCORE_VM_FIXED5000_E3_50G", + "SUBCORE_VM_FIXED0025_E4_50G", + "SUBCORE_VM_FIXED0050_E4_50G", + "SUBCORE_VM_FIXED0075_E4_50G", + "SUBCORE_VM_FIXED0100_E4_50G", + "SUBCORE_VM_FIXED0125_E4_50G", + "SUBCORE_VM_FIXED0150_E4_50G", + "SUBCORE_VM_FIXED0175_E4_50G", + "SUBCORE_VM_FIXED0200_E4_50G", + "SUBCORE_VM_FIXED0225_E4_50G", + "SUBCORE_VM_FIXED0250_E4_50G", + "SUBCORE_VM_FIXED0275_E4_50G", + "SUBCORE_VM_FIXED0300_E4_50G", + "SUBCORE_VM_FIXED0325_E4_50G", + "SUBCORE_VM_FIXED0350_E4_50G", + "SUBCORE_VM_FIXED0375_E4_50G", + "SUBCORE_VM_FIXED0400_E4_50G", + "SUBCORE_VM_FIXED0425_E4_50G", + "SUBCORE_VM_FIXED0450_E4_50G", + "SUBCORE_VM_FIXED0475_E4_50G", + "SUBCORE_VM_FIXED0500_E4_50G", + "SUBCORE_VM_FIXED0525_E4_50G", + "SUBCORE_VM_FIXED0550_E4_50G", + "SUBCORE_VM_FIXED0575_E4_50G", + "SUBCORE_VM_FIXED0600_E4_50G", + "SUBCORE_VM_FIXED0625_E4_50G", + "SUBCORE_VM_FIXED0650_E4_50G", + "SUBCORE_VM_FIXED0675_E4_50G", + "SUBCORE_VM_FIXED0700_E4_50G", + "SUBCORE_VM_FIXED0725_E4_50G", + "SUBCORE_VM_FIXED0750_E4_50G", + "SUBCORE_VM_FIXED0775_E4_50G", + "SUBCORE_VM_FIXED0800_E4_50G", + "SUBCORE_VM_FIXED0825_E4_50G", + "SUBCORE_VM_FIXED0850_E4_50G", + "SUBCORE_VM_FIXED0875_E4_50G", + "SUBCORE_VM_FIXED0900_E4_50G", + "SUBCORE_VM_FIXED0925_E4_50G", + "SUBCORE_VM_FIXED0950_E4_50G", + "SUBCORE_VM_FIXED0975_E4_50G", + "SUBCORE_VM_FIXED1000_E4_50G", + "SUBCORE_VM_FIXED1025_E4_50G", + "SUBCORE_VM_FIXED1050_E4_50G", + "SUBCORE_VM_FIXED1075_E4_50G", + "SUBCORE_VM_FIXED1100_E4_50G", + "SUBCORE_VM_FIXED1125_E4_50G", + "SUBCORE_VM_FIXED1150_E4_50G", + "SUBCORE_VM_FIXED1175_E4_50G", + "SUBCORE_VM_FIXED1200_E4_50G", + "SUBCORE_VM_FIXED1225_E4_50G", + "SUBCORE_VM_FIXED1250_E4_50G", + "SUBCORE_VM_FIXED1275_E4_50G", + "SUBCORE_VM_FIXED1300_E4_50G", + "SUBCORE_VM_FIXED1325_E4_50G", + "SUBCORE_VM_FIXED1350_E4_50G", + "SUBCORE_VM_FIXED1375_E4_50G", + "SUBCORE_VM_FIXED1400_E4_50G", + "SUBCORE_VM_FIXED1425_E4_50G", + "SUBCORE_VM_FIXED1450_E4_50G", + "SUBCORE_VM_FIXED1475_E4_50G", + "SUBCORE_VM_FIXED1500_E4_50G", + "SUBCORE_VM_FIXED1525_E4_50G", + "SUBCORE_VM_FIXED1550_E4_50G", + "SUBCORE_VM_FIXED1575_E4_50G", + "SUBCORE_VM_FIXED1600_E4_50G", + "SUBCORE_VM_FIXED1625_E4_50G", + "SUBCORE_VM_FIXED1650_E4_50G", + "SUBCORE_VM_FIXED1700_E4_50G", + "SUBCORE_VM_FIXED1725_E4_50G", + "SUBCORE_VM_FIXED1750_E4_50G", + "SUBCORE_VM_FIXED1800_E4_50G", + "SUBCORE_VM_FIXED1850_E4_50G", + "SUBCORE_VM_FIXED1875_E4_50G", + "SUBCORE_VM_FIXED1900_E4_50G", + "SUBCORE_VM_FIXED1925_E4_50G", + "SUBCORE_VM_FIXED1950_E4_50G", + "SUBCORE_VM_FIXED2000_E4_50G", + "SUBCORE_VM_FIXED2025_E4_50G", + "SUBCORE_VM_FIXED2050_E4_50G", + "SUBCORE_VM_FIXED2100_E4_50G", + "SUBCORE_VM_FIXED2125_E4_50G", + "SUBCORE_VM_FIXED2150_E4_50G", + "SUBCORE_VM_FIXED2175_E4_50G", + "SUBCORE_VM_FIXED2200_E4_50G", + "SUBCORE_VM_FIXED2250_E4_50G", + "SUBCORE_VM_FIXED2275_E4_50G", + "SUBCORE_VM_FIXED2300_E4_50G", + "SUBCORE_VM_FIXED2325_E4_50G", + "SUBCORE_VM_FIXED2350_E4_50G", + "SUBCORE_VM_FIXED2375_E4_50G", + "SUBCORE_VM_FIXED2400_E4_50G", + "SUBCORE_VM_FIXED2450_E4_50G", + "SUBCORE_VM_FIXED2475_E4_50G", + "SUBCORE_VM_FIXED2500_E4_50G", + "SUBCORE_VM_FIXED2550_E4_50G", + "SUBCORE_VM_FIXED2600_E4_50G", + "SUBCORE_VM_FIXED2625_E4_50G", + "SUBCORE_VM_FIXED2650_E4_50G", + "SUBCORE_VM_FIXED2700_E4_50G", + "SUBCORE_VM_FIXED2750_E4_50G", + "SUBCORE_VM_FIXED2775_E4_50G", + "SUBCORE_VM_FIXED2800_E4_50G", + "SUBCORE_VM_FIXED2850_E4_50G", + "SUBCORE_VM_FIXED2875_E4_50G", + "SUBCORE_VM_FIXED2900_E4_50G", + "SUBCORE_VM_FIXED2925_E4_50G", + "SUBCORE_VM_FIXED2950_E4_50G", + "SUBCORE_VM_FIXED2975_E4_50G", + "SUBCORE_VM_FIXED3000_E4_50G", + "SUBCORE_VM_FIXED3025_E4_50G", + "SUBCORE_VM_FIXED3050_E4_50G", + "SUBCORE_VM_FIXED3075_E4_50G", + "SUBCORE_VM_FIXED3100_E4_50G", + "SUBCORE_VM_FIXED3125_E4_50G", + "SUBCORE_VM_FIXED3150_E4_50G", + "SUBCORE_VM_FIXED3200_E4_50G", + "SUBCORE_VM_FIXED3225_E4_50G", + "SUBCORE_VM_FIXED3250_E4_50G", + "SUBCORE_VM_FIXED3300_E4_50G", + "SUBCORE_VM_FIXED3325_E4_50G", + "SUBCORE_VM_FIXED3375_E4_50G", + "SUBCORE_VM_FIXED3400_E4_50G", + "SUBCORE_VM_FIXED3450_E4_50G", + "SUBCORE_VM_FIXED3500_E4_50G", + "SUBCORE_VM_FIXED3525_E4_50G", + "SUBCORE_VM_FIXED3575_E4_50G", + "SUBCORE_VM_FIXED3600_E4_50G", + "SUBCORE_VM_FIXED3625_E4_50G", + "SUBCORE_VM_FIXED3675_E4_50G", + "SUBCORE_VM_FIXED3700_E4_50G", + "SUBCORE_VM_FIXED3750_E4_50G", + "SUBCORE_VM_FIXED3800_E4_50G", + "SUBCORE_VM_FIXED3825_E4_50G", + "SUBCORE_VM_FIXED3850_E4_50G", + "SUBCORE_VM_FIXED3875_E4_50G", + "SUBCORE_VM_FIXED3900_E4_50G", + "SUBCORE_VM_FIXED3975_E4_50G", + "SUBCORE_VM_FIXED4000_E4_50G", + "SUBCORE_VM_FIXED4025_E4_50G", + "SUBCORE_VM_FIXED4050_E4_50G", + "SUBCORE_VM_FIXED4100_E4_50G", + "SUBCORE_VM_FIXED4125_E4_50G", + "SUBCORE_VM_FIXED4200_E4_50G", + "SUBCORE_VM_FIXED4225_E4_50G", + "SUBCORE_VM_FIXED4250_E4_50G", + "SUBCORE_VM_FIXED4275_E4_50G", + "SUBCORE_VM_FIXED4300_E4_50G", + "SUBCORE_VM_FIXED4350_E4_50G", + "SUBCORE_VM_FIXED4375_E4_50G", + "SUBCORE_VM_FIXED4400_E4_50G", + "SUBCORE_VM_FIXED4425_E4_50G", + "SUBCORE_VM_FIXED4500_E4_50G", + "SUBCORE_VM_FIXED4550_E4_50G", + "SUBCORE_VM_FIXED4575_E4_50G", + "SUBCORE_VM_FIXED4600_E4_50G", + "SUBCORE_VM_FIXED4625_E4_50G", + "SUBCORE_VM_FIXED4650_E4_50G", + "SUBCORE_VM_FIXED4675_E4_50G", + "SUBCORE_VM_FIXED4700_E4_50G", + "SUBCORE_VM_FIXED4725_E4_50G", + "SUBCORE_VM_FIXED4750_E4_50G", + "SUBCORE_VM_FIXED4800_E4_50G", + "SUBCORE_VM_FIXED4875_E4_50G", + "SUBCORE_VM_FIXED4900_E4_50G", + "SUBCORE_VM_FIXED4950_E4_50G", + "SUBCORE_VM_FIXED5000_E4_50G", + "SUBCORE_VM_FIXED0020_A1_50G", + "SUBCORE_VM_FIXED0040_A1_50G", + "SUBCORE_VM_FIXED0060_A1_50G", + "SUBCORE_VM_FIXED0080_A1_50G", + "SUBCORE_VM_FIXED0100_A1_50G", + "SUBCORE_VM_FIXED0120_A1_50G", + "SUBCORE_VM_FIXED0140_A1_50G", + "SUBCORE_VM_FIXED0160_A1_50G", + "SUBCORE_VM_FIXED0180_A1_50G", + "SUBCORE_VM_FIXED0200_A1_50G", + "SUBCORE_VM_FIXED0220_A1_50G", + "SUBCORE_VM_FIXED0240_A1_50G", + "SUBCORE_VM_FIXED0260_A1_50G", + "SUBCORE_VM_FIXED0280_A1_50G", + "SUBCORE_VM_FIXED0300_A1_50G", + "SUBCORE_VM_FIXED0320_A1_50G", + "SUBCORE_VM_FIXED0340_A1_50G", + "SUBCORE_VM_FIXED0360_A1_50G", + "SUBCORE_VM_FIXED0380_A1_50G", + "SUBCORE_VM_FIXED0400_A1_50G", + "SUBCORE_VM_FIXED0420_A1_50G", + "SUBCORE_VM_FIXED0440_A1_50G", + "SUBCORE_VM_FIXED0460_A1_50G", + "SUBCORE_VM_FIXED0480_A1_50G", + "SUBCORE_VM_FIXED0500_A1_50G", + "SUBCORE_VM_FIXED0520_A1_50G", + "SUBCORE_VM_FIXED0540_A1_50G", + "SUBCORE_VM_FIXED0560_A1_50G", + "SUBCORE_VM_FIXED0580_A1_50G", + "SUBCORE_VM_FIXED0600_A1_50G", + "SUBCORE_VM_FIXED0620_A1_50G", + "SUBCORE_VM_FIXED0640_A1_50G", + "SUBCORE_VM_FIXED0660_A1_50G", + "SUBCORE_VM_FIXED0680_A1_50G", + "SUBCORE_VM_FIXED0700_A1_50G", + "SUBCORE_VM_FIXED0720_A1_50G", + "SUBCORE_VM_FIXED0740_A1_50G", + "SUBCORE_VM_FIXED0760_A1_50G", + "SUBCORE_VM_FIXED0780_A1_50G", + "SUBCORE_VM_FIXED0800_A1_50G", + "SUBCORE_VM_FIXED0820_A1_50G", + "SUBCORE_VM_FIXED0840_A1_50G", + "SUBCORE_VM_FIXED0860_A1_50G", + "SUBCORE_VM_FIXED0880_A1_50G", + "SUBCORE_VM_FIXED0900_A1_50G", + "SUBCORE_VM_FIXED0920_A1_50G", + "SUBCORE_VM_FIXED0940_A1_50G", + "SUBCORE_VM_FIXED0960_A1_50G", + "SUBCORE_VM_FIXED0980_A1_50G", + "SUBCORE_VM_FIXED1000_A1_50G", + "SUBCORE_VM_FIXED1020_A1_50G", + "SUBCORE_VM_FIXED1040_A1_50G", + "SUBCORE_VM_FIXED1060_A1_50G", + "SUBCORE_VM_FIXED1080_A1_50G", + "SUBCORE_VM_FIXED1100_A1_50G", + "SUBCORE_VM_FIXED1120_A1_50G", + "SUBCORE_VM_FIXED1140_A1_50G", + "SUBCORE_VM_FIXED1160_A1_50G", + "SUBCORE_VM_FIXED1180_A1_50G", + "SUBCORE_VM_FIXED1200_A1_50G", + "SUBCORE_VM_FIXED1220_A1_50G", + "SUBCORE_VM_FIXED1240_A1_50G", + "SUBCORE_VM_FIXED1260_A1_50G", + "SUBCORE_VM_FIXED1280_A1_50G", + "SUBCORE_VM_FIXED1300_A1_50G", + "SUBCORE_VM_FIXED1320_A1_50G", + "SUBCORE_VM_FIXED1340_A1_50G", + "SUBCORE_VM_FIXED1360_A1_50G", + "SUBCORE_VM_FIXED1380_A1_50G", + "SUBCORE_VM_FIXED1400_A1_50G", + "SUBCORE_VM_FIXED1420_A1_50G", + "SUBCORE_VM_FIXED1440_A1_50G", + "SUBCORE_VM_FIXED1460_A1_50G", + "SUBCORE_VM_FIXED1480_A1_50G", + "SUBCORE_VM_FIXED1500_A1_50G", + "SUBCORE_VM_FIXED1520_A1_50G", + "SUBCORE_VM_FIXED1540_A1_50G", + "SUBCORE_VM_FIXED1560_A1_50G", + "SUBCORE_VM_FIXED1580_A1_50G", + "SUBCORE_VM_FIXED1600_A1_50G", + "SUBCORE_VM_FIXED1620_A1_50G", + "SUBCORE_VM_FIXED1640_A1_50G", + "SUBCORE_VM_FIXED1660_A1_50G", + "SUBCORE_VM_FIXED1680_A1_50G", + "SUBCORE_VM_FIXED1700_A1_50G", + "SUBCORE_VM_FIXED1720_A1_50G", + "SUBCORE_VM_FIXED1740_A1_50G", + "SUBCORE_VM_FIXED1760_A1_50G", + "SUBCORE_VM_FIXED1780_A1_50G", + "SUBCORE_VM_FIXED1800_A1_50G", + "SUBCORE_VM_FIXED1820_A1_50G", + "SUBCORE_VM_FIXED1840_A1_50G", + "SUBCORE_VM_FIXED1860_A1_50G", + "SUBCORE_VM_FIXED1880_A1_50G", + "SUBCORE_VM_FIXED1900_A1_50G", + "SUBCORE_VM_FIXED1920_A1_50G", + "SUBCORE_VM_FIXED1940_A1_50G", + "SUBCORE_VM_FIXED1960_A1_50G", + "SUBCORE_VM_FIXED1980_A1_50G", + "SUBCORE_VM_FIXED2000_A1_50G", + "SUBCORE_VM_FIXED2020_A1_50G", + "SUBCORE_VM_FIXED2040_A1_50G", + "SUBCORE_VM_FIXED2060_A1_50G", + "SUBCORE_VM_FIXED2080_A1_50G", + "SUBCORE_VM_FIXED2100_A1_50G", + "SUBCORE_VM_FIXED2120_A1_50G", + "SUBCORE_VM_FIXED2140_A1_50G", + "SUBCORE_VM_FIXED2160_A1_50G", + "SUBCORE_VM_FIXED2180_A1_50G", + "SUBCORE_VM_FIXED2200_A1_50G", + "SUBCORE_VM_FIXED2220_A1_50G", + "SUBCORE_VM_FIXED2240_A1_50G", + "SUBCORE_VM_FIXED2260_A1_50G", + "SUBCORE_VM_FIXED2280_A1_50G", + "SUBCORE_VM_FIXED2300_A1_50G", + "SUBCORE_VM_FIXED2320_A1_50G", + "SUBCORE_VM_FIXED2340_A1_50G", + "SUBCORE_VM_FIXED2360_A1_50G", + "SUBCORE_VM_FIXED2380_A1_50G", + "SUBCORE_VM_FIXED2400_A1_50G", + "SUBCORE_VM_FIXED2420_A1_50G", + "SUBCORE_VM_FIXED2440_A1_50G", + "SUBCORE_VM_FIXED2460_A1_50G", + "SUBCORE_VM_FIXED2480_A1_50G", + "SUBCORE_VM_FIXED2500_A1_50G", + "SUBCORE_VM_FIXED2520_A1_50G", + "SUBCORE_VM_FIXED2540_A1_50G", + "SUBCORE_VM_FIXED2560_A1_50G", + "SUBCORE_VM_FIXED2580_A1_50G", + "SUBCORE_VM_FIXED2600_A1_50G", + "SUBCORE_VM_FIXED2620_A1_50G", + "SUBCORE_VM_FIXED2640_A1_50G", + "SUBCORE_VM_FIXED2660_A1_50G", + "SUBCORE_VM_FIXED2680_A1_50G", + "SUBCORE_VM_FIXED2700_A1_50G", + "SUBCORE_VM_FIXED2720_A1_50G", + "SUBCORE_VM_FIXED2740_A1_50G", + "SUBCORE_VM_FIXED2760_A1_50G", + "SUBCORE_VM_FIXED2780_A1_50G", + "SUBCORE_VM_FIXED2800_A1_50G", + "SUBCORE_VM_FIXED2820_A1_50G", + "SUBCORE_VM_FIXED2840_A1_50G", + "SUBCORE_VM_FIXED2860_A1_50G", + "SUBCORE_VM_FIXED2880_A1_50G", + "SUBCORE_VM_FIXED2900_A1_50G", + "SUBCORE_VM_FIXED2920_A1_50G", + "SUBCORE_VM_FIXED2940_A1_50G", + "SUBCORE_VM_FIXED2960_A1_50G", + "SUBCORE_VM_FIXED2980_A1_50G", + "SUBCORE_VM_FIXED3000_A1_50G", + "SUBCORE_VM_FIXED3020_A1_50G", + "SUBCORE_VM_FIXED3040_A1_50G", + "SUBCORE_VM_FIXED3060_A1_50G", + "SUBCORE_VM_FIXED3080_A1_50G", + "SUBCORE_VM_FIXED3100_A1_50G", + "SUBCORE_VM_FIXED3120_A1_50G", + "SUBCORE_VM_FIXED3140_A1_50G", + "SUBCORE_VM_FIXED3160_A1_50G", + "SUBCORE_VM_FIXED3180_A1_50G", + "SUBCORE_VM_FIXED3200_A1_50G", + "SUBCORE_VM_FIXED3220_A1_50G", + "SUBCORE_VM_FIXED3240_A1_50G", + "SUBCORE_VM_FIXED3260_A1_50G", + "SUBCORE_VM_FIXED3280_A1_50G", + "SUBCORE_VM_FIXED3300_A1_50G", + "SUBCORE_VM_FIXED3320_A1_50G", + "SUBCORE_VM_FIXED3340_A1_50G", + "SUBCORE_VM_FIXED3360_A1_50G", + "SUBCORE_VM_FIXED3380_A1_50G", + "SUBCORE_VM_FIXED3400_A1_50G", + "SUBCORE_VM_FIXED3420_A1_50G", + "SUBCORE_VM_FIXED3440_A1_50G", + "SUBCORE_VM_FIXED3460_A1_50G", + "SUBCORE_VM_FIXED3480_A1_50G", + "SUBCORE_VM_FIXED3500_A1_50G", + "SUBCORE_VM_FIXED3520_A1_50G", + "SUBCORE_VM_FIXED3540_A1_50G", + "SUBCORE_VM_FIXED3560_A1_50G", + "SUBCORE_VM_FIXED3580_A1_50G", + "SUBCORE_VM_FIXED3600_A1_50G", + "SUBCORE_VM_FIXED3620_A1_50G", + "SUBCORE_VM_FIXED3640_A1_50G", + "SUBCORE_VM_FIXED3660_A1_50G", + "SUBCORE_VM_FIXED3680_A1_50G", + "SUBCORE_VM_FIXED3700_A1_50G", + "SUBCORE_VM_FIXED3720_A1_50G", + "SUBCORE_VM_FIXED3740_A1_50G", + "SUBCORE_VM_FIXED3760_A1_50G", + "SUBCORE_VM_FIXED3780_A1_50G", + "SUBCORE_VM_FIXED3800_A1_50G", + "SUBCORE_VM_FIXED3820_A1_50G", + "SUBCORE_VM_FIXED3840_A1_50G", + "SUBCORE_VM_FIXED3860_A1_50G", + "SUBCORE_VM_FIXED3880_A1_50G", + "SUBCORE_VM_FIXED3900_A1_50G", + "SUBCORE_VM_FIXED3920_A1_50G", + "SUBCORE_VM_FIXED3940_A1_50G", + "SUBCORE_VM_FIXED3960_A1_50G", + "SUBCORE_VM_FIXED3980_A1_50G", + "SUBCORE_VM_FIXED4000_A1_50G", + "SUBCORE_VM_FIXED4020_A1_50G", + "SUBCORE_VM_FIXED4040_A1_50G", + "SUBCORE_VM_FIXED4060_A1_50G", + "SUBCORE_VM_FIXED4080_A1_50G", + "SUBCORE_VM_FIXED4100_A1_50G", + "SUBCORE_VM_FIXED4120_A1_50G", + "SUBCORE_VM_FIXED4140_A1_50G", + "SUBCORE_VM_FIXED4160_A1_50G", + "SUBCORE_VM_FIXED4180_A1_50G", + "SUBCORE_VM_FIXED4200_A1_50G", + "SUBCORE_VM_FIXED4220_A1_50G", + "SUBCORE_VM_FIXED4240_A1_50G", + "SUBCORE_VM_FIXED4260_A1_50G", + "SUBCORE_VM_FIXED4280_A1_50G", + "SUBCORE_VM_FIXED4300_A1_50G", + "SUBCORE_VM_FIXED4320_A1_50G", + "SUBCORE_VM_FIXED4340_A1_50G", + "SUBCORE_VM_FIXED4360_A1_50G", + "SUBCORE_VM_FIXED4380_A1_50G", + "SUBCORE_VM_FIXED4400_A1_50G", + "SUBCORE_VM_FIXED4420_A1_50G", + "SUBCORE_VM_FIXED4440_A1_50G", + "SUBCORE_VM_FIXED4460_A1_50G", + "SUBCORE_VM_FIXED4480_A1_50G", + "SUBCORE_VM_FIXED4500_A1_50G", + "SUBCORE_VM_FIXED4520_A1_50G", + "SUBCORE_VM_FIXED4540_A1_50G", + "SUBCORE_VM_FIXED4560_A1_50G", + "SUBCORE_VM_FIXED4580_A1_50G", + "SUBCORE_VM_FIXED4600_A1_50G", + "SUBCORE_VM_FIXED4620_A1_50G", + "SUBCORE_VM_FIXED4640_A1_50G", + "SUBCORE_VM_FIXED4660_A1_50G", + "SUBCORE_VM_FIXED4680_A1_50G", + "SUBCORE_VM_FIXED4700_A1_50G", + "SUBCORE_VM_FIXED4720_A1_50G", + "SUBCORE_VM_FIXED4740_A1_50G", + "SUBCORE_VM_FIXED4760_A1_50G", + "SUBCORE_VM_FIXED4780_A1_50G", + "SUBCORE_VM_FIXED4800_A1_50G", + "SUBCORE_VM_FIXED4820_A1_50G", + "SUBCORE_VM_FIXED4840_A1_50G", + "SUBCORE_VM_FIXED4860_A1_50G", + "SUBCORE_VM_FIXED4880_A1_50G", + "SUBCORE_VM_FIXED4900_A1_50G", + "SUBCORE_VM_FIXED4920_A1_50G", + "SUBCORE_VM_FIXED4940_A1_50G", + "SUBCORE_VM_FIXED4960_A1_50G", + "SUBCORE_VM_FIXED4980_A1_50G", + "SUBCORE_VM_FIXED5000_A1_50G", + "SUBCORE_VM_FIXED0090_X9_50G", + "SUBCORE_VM_FIXED0180_X9_50G", + "SUBCORE_VM_FIXED0270_X9_50G", + "SUBCORE_VM_FIXED0360_X9_50G", + "SUBCORE_VM_FIXED0450_X9_50G", + "SUBCORE_VM_FIXED0540_X9_50G", + "SUBCORE_VM_FIXED0630_X9_50G", + "SUBCORE_VM_FIXED0720_X9_50G", + "SUBCORE_VM_FIXED0810_X9_50G", + "SUBCORE_VM_FIXED0900_X9_50G", + "SUBCORE_VM_FIXED0990_X9_50G", + "SUBCORE_VM_FIXED1080_X9_50G", + "SUBCORE_VM_FIXED1170_X9_50G", + "SUBCORE_VM_FIXED1260_X9_50G", + "SUBCORE_VM_FIXED1350_X9_50G", + "SUBCORE_VM_FIXED1440_X9_50G", + "SUBCORE_VM_FIXED1530_X9_50G", + "SUBCORE_VM_FIXED1620_X9_50G", + "SUBCORE_VM_FIXED1710_X9_50G", + "SUBCORE_VM_FIXED1800_X9_50G", + "SUBCORE_VM_FIXED1890_X9_50G", + "SUBCORE_VM_FIXED1980_X9_50G", + "SUBCORE_VM_FIXED2070_X9_50G", + "SUBCORE_VM_FIXED2160_X9_50G", + "SUBCORE_VM_FIXED2250_X9_50G", + "SUBCORE_VM_FIXED2340_X9_50G", + "SUBCORE_VM_FIXED2430_X9_50G", + "SUBCORE_VM_FIXED2520_X9_50G", + "SUBCORE_VM_FIXED2610_X9_50G", + "SUBCORE_VM_FIXED2700_X9_50G", + "SUBCORE_VM_FIXED2790_X9_50G", + "SUBCORE_VM_FIXED2880_X9_50G", + "SUBCORE_VM_FIXED2970_X9_50G", + "SUBCORE_VM_FIXED3060_X9_50G", + "SUBCORE_VM_FIXED3150_X9_50G", + "SUBCORE_VM_FIXED3240_X9_50G", + "SUBCORE_VM_FIXED3330_X9_50G", + "SUBCORE_VM_FIXED3420_X9_50G", + "SUBCORE_VM_FIXED3510_X9_50G", + "SUBCORE_VM_FIXED3600_X9_50G", + "SUBCORE_VM_FIXED3690_X9_50G", + "SUBCORE_VM_FIXED3780_X9_50G", + "SUBCORE_VM_FIXED3870_X9_50G", + "SUBCORE_VM_FIXED3960_X9_50G", + "SUBCORE_VM_FIXED4050_X9_50G", + "SUBCORE_VM_FIXED4140_X9_50G", + "SUBCORE_VM_FIXED4230_X9_50G", + "SUBCORE_VM_FIXED4320_X9_50G", + "SUBCORE_VM_FIXED4410_X9_50G", + "SUBCORE_VM_FIXED4500_X9_50G", + "SUBCORE_VM_FIXED4590_X9_50G", + "SUBCORE_VM_FIXED4680_X9_50G", + "SUBCORE_VM_FIXED4770_X9_50G", + "SUBCORE_VM_FIXED4860_X9_50G", + "SUBCORE_VM_FIXED4950_X9_50G", + "DYNAMIC_A1_50G", + "FIXED0040_A1_50G", + "FIXED0100_A1_50G", + "FIXED0200_A1_50G", + "FIXED0300_A1_50G", + "FIXED0400_A1_50G", + "FIXED0500_A1_50G", + "FIXED0600_A1_50G", + "FIXED0700_A1_50G", + "FIXED0800_A1_50G", + "FIXED0900_A1_50G", + "FIXED1000_A1_50G", + "FIXED1100_A1_50G", + "FIXED1200_A1_50G", + "FIXED1300_A1_50G", + "FIXED1400_A1_50G", + "FIXED1500_A1_50G", + "FIXED1600_A1_50G", + "FIXED1700_A1_50G", + "FIXED1800_A1_50G", + "FIXED1900_A1_50G", + "FIXED2000_A1_50G", + "FIXED2100_A1_50G", + "FIXED2200_A1_50G", + "FIXED2300_A1_50G", + "FIXED2400_A1_50G", + "FIXED2500_A1_50G", + "FIXED2600_A1_50G", + "FIXED2700_A1_50G", + "FIXED2800_A1_50G", + "FIXED2900_A1_50G", + "FIXED3000_A1_50G", + "FIXED3100_A1_50G", + "FIXED3200_A1_50G", + "FIXED3300_A1_50G", + "FIXED3400_A1_50G", + "FIXED3500_A1_50G", + "FIXED3600_A1_50G", + "FIXED3700_A1_50G", + "FIXED3800_A1_50G", + "FIXED3900_A1_50G", + "FIXED4000_A1_50G", + "FIXED5000_TELESIS_A1_50G", + "ENTIREHOST_A1_50G", + "DYNAMIC_X9_50G", + "FIXED0040_X9_50G", + "FIXED0400_X9_50G", + "FIXED0800_X9_50G", + "FIXED1200_X9_50G", + "FIXED1600_X9_50G", + "FIXED2000_X9_50G", + "FIXED2400_X9_50G", + "FIXED2800_X9_50G", + "FIXED3200_X9_50G", + "FIXED3600_X9_50G", + "FIXED4000_X9_50G", + "STANDARD_VM_FIXED0100_X9_50G", + "STANDARD_VM_FIXED0200_X9_50G", + "STANDARD_VM_FIXED0300_X9_50G", + "STANDARD_VM_FIXED0400_X9_50G", + "STANDARD_VM_FIXED0500_X9_50G", + "STANDARD_VM_FIXED0600_X9_50G", + "STANDARD_VM_FIXED0700_X9_50G", + "STANDARD_VM_FIXED0800_X9_50G", + "STANDARD_VM_FIXED0900_X9_50G", + "STANDARD_VM_FIXED1000_X9_50G", + "STANDARD_VM_FIXED1100_X9_50G", + "STANDARD_VM_FIXED1200_X9_50G", + "STANDARD_VM_FIXED1300_X9_50G", + "STANDARD_VM_FIXED1400_X9_50G", + "STANDARD_VM_FIXED1500_X9_50G", + "STANDARD_VM_FIXED1600_X9_50G", + "STANDARD_VM_FIXED1700_X9_50G", + "STANDARD_VM_FIXED1800_X9_50G", + "STANDARD_VM_FIXED1900_X9_50G", + "STANDARD_VM_FIXED2000_X9_50G", + "STANDARD_VM_FIXED2100_X9_50G", + "STANDARD_VM_FIXED2200_X9_50G", + "STANDARD_VM_FIXED2300_X9_50G", + "STANDARD_VM_FIXED2400_X9_50G", + "STANDARD_VM_FIXED2500_X9_50G", + "STANDARD_VM_FIXED2600_X9_50G", + "STANDARD_VM_FIXED2700_X9_50G", + "STANDARD_VM_FIXED2800_X9_50G", + "STANDARD_VM_FIXED2900_X9_50G", + "STANDARD_VM_FIXED3000_X9_50G", + "STANDARD_VM_FIXED3100_X9_50G", + "STANDARD_VM_FIXED3200_X9_50G", + "STANDARD_VM_FIXED3300_X9_50G", + "STANDARD_VM_FIXED3400_X9_50G", + "STANDARD_VM_FIXED3500_X9_50G", + "STANDARD_VM_FIXED3600_X9_50G", + "STANDARD_VM_FIXED3700_X9_50G", + "STANDARD_VM_FIXED3800_X9_50G", + "STANDARD_VM_FIXED3900_X9_50G", + "STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G", + "ENTIREHOST_X9_50G", + } +} + +// GetMappingCreateInternalVnicDetailsVnicShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateInternalVnicDetailsVnicShapeEnum(val string) (CreateInternalVnicDetailsVnicShapeEnum, bool) { + enum, ok := mappingCreateInternalVnicDetailsVnicShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_request_response.go index 62fed50684..26710f2957 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internal_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internal_vnic_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternalVnicRequest wrapper for the CreateInternalVnic operation @@ -42,6 +44,10 @@ func (request CreateInternalVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternalVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request CreateInternalVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternalVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternalVnicResponse wrapper for the CreateInternalVnic operation type CreateInternalVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_details.go new file mode 100644 index 0000000000..3bf2e5093b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateInternetGatewayDetails The representation of CreateInternetGatewayDetails +type CreateInternetGatewayDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the internet gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Whether the gateway is enabled upon creation. + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the Internet Gateway is attached to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the Internet Gateway is using. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m CreateInternetGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateInternetGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go index 108ef32af1..0b1b2b408b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_internet_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateInternetGatewayRequest wrapper for the CreateInternetGateway operation @@ -38,6 +40,10 @@ func (request CreateInternetGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateInternetGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateInternetGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateInternetGatewayResponse wrapper for the CreateInternetGateway operation type CreateInternetGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go new file mode 100644 index 0000000000..095b930d97 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_details.go @@ -0,0 +1,141 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateIpSecConnectionDetails The representation of CreateIpSecConnectionDetails +type CreateIpSecConnectionDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cpe object. + CpeId *string `mandatory:"true" json:"cpeId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // Static routes to the CPE. A static route's CIDR must not be a + // multicast address or class E address. + // Used for routing a given IPSec tunnel's traffic only if the tunnel + // is using static routing. If you configure at least one tunnel to use static routing, then + // you must provide at least one valid static route. If you configure both + // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. + // For more information, see the important note in IPSecConnection. + // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"true" json:"staticRoutes"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the + // fully qualified domain name (FQDN)). The type of identifier you provide here must correspond + // to the value for `cpeLocalIdentifierType`. + // If you don't provide a value, the `ipAddress` attribute for the Cpe + // object specified by `cpeId` is used as the `cpeLocalIdentifier`. + // For information about why you'd provide this value, see + // If Your CPE Is Behind a NAT Device (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm#nat). + // Example IP address: `10.0.3.3` + // Example hostname: `cpe.example.com` + CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"` + + // The type of identifier for your CPE device. The value you provide here must correspond to the value + // for `cpeLocalIdentifier`. + CpeLocalIdentifierType CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + + // Information for creating the individual tunnels in the IPSec connection. You can provide a + // maximum of 2 `tunnelConfiguration` objects in the array (one for each of the + // two tunnels). + TunnelConfiguration []CreateIpSecConnectionTunnelDetails `mandatory:"false" json:"tunnelConfiguration"` +} + +func (m CreateIpSecConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateIpSecConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum(string(m.CpeLocalIdentifierType)); !ok && m.CpeLocalIdentifierType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CpeLocalIdentifierType: %s. Supported values are: %s.", m.CpeLocalIdentifierType, strings.Join(GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum Enum with underlying type: string +type CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum string + +// Set of constants representing the allowable values for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum +const ( + CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "IP_ADDRESS" + CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "HOSTNAME" +) + +var mappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = map[string]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{ + "IP_ADDRESS": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress, + "HOSTNAME": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname, +} + +var mappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumLowerCase = map[string]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{ + "ip_address": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress, + "hostname": CreateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname, +} + +// GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues Enumerates the set of values for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum +func GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues() []CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum { + values := make([]CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, 0) + for _, v := range mappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumStringValues Enumerates the set of values in String for CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum +func GetCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumStringValues() []string { + return []string{ + "IP_ADDRESS", + "HOSTNAME", + } +} + +// GetMappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum(val string) (CreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, bool) { + enum, ok := mappingCreateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_tunnel_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_tunnel_details.go new file mode 100644 index 0000000000..07867a08a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_connection_tunnel_details.go @@ -0,0 +1,265 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateIpSecConnectionTunnelDetails The representation of CreateIpSecConnectionTunnelDetails +type CreateIpSecConnectionTunnelDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The type of routing to use for this tunnel (BGP dynamic routing, static routing, or policy-based routing). + Routing CreateIpSecConnectionTunnelDetailsRoutingEnum `mandatory:"false" json:"routing,omitempty"` + + // Internet Key Exchange protocol version. + IkeVersion CreateIpSecConnectionTunnelDetailsIkeVersionEnum `mandatory:"false" json:"ikeVersion,omitempty"` + + // The shared secret (pre-shared key) to use for the IPSec tunnel. Only numbers, letters, and + // spaces are allowed. If you don't provide a value, + // Oracle generates a value for you. You can specify your own shared secret later if + // you like with UpdateIPSecConnectionTunnelSharedSecret. + SharedSecret *string `mandatory:"false" json:"sharedSecret"` + + BgpSessionConfig *CreateIpSecTunnelBgpSessionDetails `mandatory:"false" json:"bgpSessionConfig"` + + // Indicates whether the Oracle end of the IPSec connection is able to initiate starting up the IPSec tunnel. + OracleInitiation CreateIpSecConnectionTunnelDetailsOracleInitiationEnum `mandatory:"false" json:"oracleInitiation,omitempty"` + + // By default (the `AUTO` setting), IKE sends packets with a source and destination port set to 500, + // and when it detects that the port used to forward packets has changed (most likely because a NAT device + // is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T. + // The `ENABLED` option sets the IKE protocol to use port 4500 instead of 500 and forces encapsulating traffic with the ESP protocol inside UDP packets. + // The `DISABLED` option directs IKE to completely refuse to negotiate NAT-T + // even if it senses there may be a NAT device in use. + NatTranslationEnabled CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum `mandatory:"false" json:"natTranslationEnabled,omitempty"` + + PhaseOneConfig *PhaseOneConfigDetails `mandatory:"false" json:"phaseOneConfig"` + + PhaseTwoConfig *PhaseTwoConfigDetails `mandatory:"false" json:"phaseTwoConfig"` + + DpdConfig *DpdConfig `mandatory:"false" json:"dpdConfig"` + + EncryptionDomainConfig *CreateIpSecTunnelEncryptionDomainDetails `mandatory:"false" json:"encryptionDomainConfig"` +} + +func (m CreateIpSecConnectionTunnelDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateIpSecConnectionTunnelDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateIpSecConnectionTunnelDetailsRoutingEnum(string(m.Routing)); !ok && m.Routing != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Routing: %s. Supported values are: %s.", m.Routing, strings.Join(GetCreateIpSecConnectionTunnelDetailsRoutingEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateIpSecConnectionTunnelDetailsIkeVersionEnum(string(m.IkeVersion)); !ok && m.IkeVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IkeVersion: %s. Supported values are: %s.", m.IkeVersion, strings.Join(GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnum(string(m.OracleInitiation)); !ok && m.OracleInitiation != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OracleInitiation: %s. Supported values are: %s.", m.OracleInitiation, strings.Join(GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum(string(m.NatTranslationEnabled)); !ok && m.NatTranslationEnabled != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NatTranslationEnabled: %s. Supported values are: %s.", m.NatTranslationEnabled, strings.Join(GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateIpSecConnectionTunnelDetailsRoutingEnum Enum with underlying type: string +type CreateIpSecConnectionTunnelDetailsRoutingEnum string + +// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsRoutingEnum +const ( + CreateIpSecConnectionTunnelDetailsRoutingBgp CreateIpSecConnectionTunnelDetailsRoutingEnum = "BGP" + CreateIpSecConnectionTunnelDetailsRoutingStatic CreateIpSecConnectionTunnelDetailsRoutingEnum = "STATIC" + CreateIpSecConnectionTunnelDetailsRoutingPolicy CreateIpSecConnectionTunnelDetailsRoutingEnum = "POLICY" +) + +var mappingCreateIpSecConnectionTunnelDetailsRoutingEnum = map[string]CreateIpSecConnectionTunnelDetailsRoutingEnum{ + "BGP": CreateIpSecConnectionTunnelDetailsRoutingBgp, + "STATIC": CreateIpSecConnectionTunnelDetailsRoutingStatic, + "POLICY": CreateIpSecConnectionTunnelDetailsRoutingPolicy, +} + +var mappingCreateIpSecConnectionTunnelDetailsRoutingEnumLowerCase = map[string]CreateIpSecConnectionTunnelDetailsRoutingEnum{ + "bgp": CreateIpSecConnectionTunnelDetailsRoutingBgp, + "static": CreateIpSecConnectionTunnelDetailsRoutingStatic, + "policy": CreateIpSecConnectionTunnelDetailsRoutingPolicy, +} + +// GetCreateIpSecConnectionTunnelDetailsRoutingEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsRoutingEnum +func GetCreateIpSecConnectionTunnelDetailsRoutingEnumValues() []CreateIpSecConnectionTunnelDetailsRoutingEnum { + values := make([]CreateIpSecConnectionTunnelDetailsRoutingEnum, 0) + for _, v := range mappingCreateIpSecConnectionTunnelDetailsRoutingEnum { + values = append(values, v) + } + return values +} + +// GetCreateIpSecConnectionTunnelDetailsRoutingEnumStringValues Enumerates the set of values in String for CreateIpSecConnectionTunnelDetailsRoutingEnum +func GetCreateIpSecConnectionTunnelDetailsRoutingEnumStringValues() []string { + return []string{ + "BGP", + "STATIC", + "POLICY", + } +} + +// GetMappingCreateIpSecConnectionTunnelDetailsRoutingEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIpSecConnectionTunnelDetailsRoutingEnum(val string) (CreateIpSecConnectionTunnelDetailsRoutingEnum, bool) { + enum, ok := mappingCreateIpSecConnectionTunnelDetailsRoutingEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateIpSecConnectionTunnelDetailsIkeVersionEnum Enum with underlying type: string +type CreateIpSecConnectionTunnelDetailsIkeVersionEnum string + +// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsIkeVersionEnum +const ( + CreateIpSecConnectionTunnelDetailsIkeVersionV1 CreateIpSecConnectionTunnelDetailsIkeVersionEnum = "V1" + CreateIpSecConnectionTunnelDetailsIkeVersionV2 CreateIpSecConnectionTunnelDetailsIkeVersionEnum = "V2" +) + +var mappingCreateIpSecConnectionTunnelDetailsIkeVersionEnum = map[string]CreateIpSecConnectionTunnelDetailsIkeVersionEnum{ + "V1": CreateIpSecConnectionTunnelDetailsIkeVersionV1, + "V2": CreateIpSecConnectionTunnelDetailsIkeVersionV2, +} + +var mappingCreateIpSecConnectionTunnelDetailsIkeVersionEnumLowerCase = map[string]CreateIpSecConnectionTunnelDetailsIkeVersionEnum{ + "v1": CreateIpSecConnectionTunnelDetailsIkeVersionV1, + "v2": CreateIpSecConnectionTunnelDetailsIkeVersionV2, +} + +// GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsIkeVersionEnum +func GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumValues() []CreateIpSecConnectionTunnelDetailsIkeVersionEnum { + values := make([]CreateIpSecConnectionTunnelDetailsIkeVersionEnum, 0) + for _, v := range mappingCreateIpSecConnectionTunnelDetailsIkeVersionEnum { + values = append(values, v) + } + return values +} + +// GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumStringValues Enumerates the set of values in String for CreateIpSecConnectionTunnelDetailsIkeVersionEnum +func GetCreateIpSecConnectionTunnelDetailsIkeVersionEnumStringValues() []string { + return []string{ + "V1", + "V2", + } +} + +// GetMappingCreateIpSecConnectionTunnelDetailsIkeVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIpSecConnectionTunnelDetailsIkeVersionEnum(val string) (CreateIpSecConnectionTunnelDetailsIkeVersionEnum, bool) { + enum, ok := mappingCreateIpSecConnectionTunnelDetailsIkeVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateIpSecConnectionTunnelDetailsOracleInitiationEnum Enum with underlying type: string +type CreateIpSecConnectionTunnelDetailsOracleInitiationEnum string + +// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsOracleInitiationEnum +const ( + CreateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder CreateIpSecConnectionTunnelDetailsOracleInitiationEnum = "INITIATOR_OR_RESPONDER" + CreateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly CreateIpSecConnectionTunnelDetailsOracleInitiationEnum = "RESPONDER_ONLY" +) + +var mappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnum = map[string]CreateIpSecConnectionTunnelDetailsOracleInitiationEnum{ + "INITIATOR_OR_RESPONDER": CreateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder, + "RESPONDER_ONLY": CreateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly, +} + +var mappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnumLowerCase = map[string]CreateIpSecConnectionTunnelDetailsOracleInitiationEnum{ + "initiator_or_responder": CreateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder, + "responder_only": CreateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly, +} + +// GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsOracleInitiationEnum +func GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumValues() []CreateIpSecConnectionTunnelDetailsOracleInitiationEnum { + values := make([]CreateIpSecConnectionTunnelDetailsOracleInitiationEnum, 0) + for _, v := range mappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnum { + values = append(values, v) + } + return values +} + +// GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumStringValues Enumerates the set of values in String for CreateIpSecConnectionTunnelDetailsOracleInitiationEnum +func GetCreateIpSecConnectionTunnelDetailsOracleInitiationEnumStringValues() []string { + return []string{ + "INITIATOR_OR_RESPONDER", + "RESPONDER_ONLY", + } +} + +// GetMappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnum(val string) (CreateIpSecConnectionTunnelDetailsOracleInitiationEnum, bool) { + enum, ok := mappingCreateIpSecConnectionTunnelDetailsOracleInitiationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum Enum with underlying type: string +type CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum string + +// Set of constants representing the allowable values for CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum +const ( + CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "ENABLED" + CreateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "DISABLED" + CreateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "AUTO" +) + +var mappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = map[string]CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum{ + "ENABLED": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled, + "DISABLED": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled, + "AUTO": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto, +} + +var mappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumLowerCase = map[string]CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum{ + "enabled": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled, + "disabled": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled, + "auto": CreateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto, +} + +// GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues Enumerates the set of values for CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum +func GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues() []CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum { + values := make([]CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum, 0) + for _, v := range mappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum { + values = append(values, v) + } + return values +} + +// GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumStringValues Enumerates the set of values in String for CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum +func GetCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + "AUTO", + } +} + +// GetMappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum(val string) (CreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum, bool) { + enum, ok := mappingCreateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_bgp_session_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_bgp_session_details.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_bgp_session_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_bgp_session_details.go index e7e4cb18a8..dec09cdc97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ip_sec_tunnel_bgp_session_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_bgp_session_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateIpSecTunnelBgpSessionDetails The representation of CreateIpSecTunnelBgpSessionDetails @@ -72,3 +74,15 @@ type CreateIpSecTunnelBgpSessionDetails struct { func (m CreateIpSecTunnelBgpSessionDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateIpSecTunnelBgpSessionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_encryption_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_encryption_domain_details.go new file mode 100644 index 0000000000..5f933821c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ip_sec_tunnel_encryption_domain_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateIpSecTunnelEncryptionDomainDetails Request to enable a multi-encryption domain policy on the IPSec tunnel. +// There can't be more than 50 security associations in use at one time. See Encryption domain for policy-based +// tunnels (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/ipsecencryptiondomains.htm#spi_policy_based_tunnel) for more. +type CreateIpSecTunnelEncryptionDomainDetails struct { + + // Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. + OracleTrafficSelector []string `mandatory:"false" json:"oracleTrafficSelector"` + + // Lists IPv4 or IPv6-enabled subnets in your on-premises network. + CpeTrafficSelector []string `mandatory:"false" json:"cpeTrafficSelector"` +} + +func (m CreateIpSecTunnelEncryptionDomainDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateIpSecTunnelEncryptionDomainDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_details.go new file mode 100644 index 0000000000..6089db6da0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateIpv6Details The representation of CreateIpv6Details +type CreateIpv6Details struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to assign the IPv6 to. The + // IPv6 will be in the VNIC's subnet. + VnicId *string `mandatory:"true" json:"vnicId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // An IPv6 address of your choice. Must be an available IP address within + // the subnet's CIDR. If you don't specify a value, Oracle automatically + // assigns an IPv6 address from the subnet. The subnet is the one that + // contains the VNIC you specify in `vnicId`. + // Example: `2001:DB8::` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The IPv6 CIDR allocated to the subnet. This is required if more than one IPv6 CIDR exists on the subnet. + Ipv6SubnetCidr *string `mandatory:"false" json:"ipv6SubnetCidr"` +} + +func (m CreateIpv6Details) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateIpv6Details) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go index 36f6c2fc1a..f48e5a4fec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_ipv6_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateIpv6Request wrapper for the CreateIpv6 operation @@ -38,6 +40,10 @@ func (request CreateIpv6Request) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateIpv6Request) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateIpv6Request) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateIpv6Request) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateIpv6Response wrapper for the CreateIpv6 operation type CreateIpv6Response struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_details.go new file mode 100644 index 0000000000..57050ee9dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateLocalPeeringConnectionDetails The representation of CreateLocalPeeringConnectionDetails +type CreateLocalPeeringConnectionDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the local peering connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the local peering connection belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m CreateLocalPeeringConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLocalPeeringConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_request_response.go index d4ebab899c..70190ea3fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateLocalPeeringConnectionRequest wrapper for the CreateLocalPeeringConnection operation @@ -38,6 +40,10 @@ func (request CreateLocalPeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateLocalPeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateLocalPeeringConnectionRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateLocalPeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateLocalPeeringConnectionResponse wrapper for the CreateLocalPeeringConnection operation type CreateLocalPeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_gateway_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go index 9b20260740..a8e6e30038 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateLocalPeeringGatewayDetails The representation of CreateLocalPeeringGatewayDetails @@ -52,3 +54,15 @@ type CreateLocalPeeringGatewayDetails struct { func (m CreateLocalPeeringGatewayDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLocalPeeringGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_request_response.go index 7ac295f9e5..adb557e1ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_local_peering_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateLocalPeeringGatewayRequest wrapper for the CreateLocalPeeringGateway operation @@ -38,6 +40,10 @@ func (request CreateLocalPeeringGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateLocalPeeringGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateLocalPeeringGatewayResponse wrapper for the CreateLocalPeeringGateway operation type CreateLocalPeeringGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_key.go new file mode 100644 index 0000000000..767c6da4da --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_key.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateMacsecKey Defines the secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)s held in Vault that represent the MACsec key. +type CreateMacsecKey struct { + + // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity association Key Name (CKN) of this MACsec key. + // NOTE: Only the latest secret version will be used. + ConnectivityAssociationNameSecretId *string `mandatory:"true" json:"connectivityAssociationNameSecretId"` + + // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key (CAK) of this MACsec key. + // NOTE: Only the latest secret version will be used. + ConnectivityAssociationKeySecretId *string `mandatory:"true" json:"connectivityAssociationKeySecretId"` +} + +func (m CreateMacsecKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateMacsecKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_properties.go new file mode 100644 index 0000000000..aa0bb83202 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_macsec_properties.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateMacsecProperties Properties used to configure MACsec (if capable). +type CreateMacsecProperties struct { + + // Indicates whether or not MACsec is enabled. + State MacsecStateEnum `mandatory:"true" json:"state"` + + PrimaryKey *CreateMacsecKey `mandatory:"false" json:"primaryKey"` + + // Type of encryption cipher suite to use for the MACsec connection. + EncryptionCipher MacsecEncryptionCipherEnum `mandatory:"false" json:"encryptionCipher,omitempty"` +} + +func (m CreateMacsecProperties) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateMacsecProperties) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMacsecStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetMacsecStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingMacsecEncryptionCipherEnum(string(m.EncryptionCipher)); !ok && m.EncryptionCipher != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionCipher: %s. Supported values are: %s.", m.EncryptionCipher, strings.Join(GetMacsecEncryptionCipherEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_details.go new file mode 100644 index 0000000000..e763cdae5e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_details.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateNatGatewayDetails The representation of CreateNatGatewayDetails +type CreateNatGatewayDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the + // NAT gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the gateway belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether the NAT gateway blocks traffic through it. The default is `false`. + // Example: `true` + BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP address associated with the NAT gateway. + PublicIpId *string `mandatory:"false" json:"publicIpId"` + + // The name of the Oracle managed public IP Pool from which the IP address associated with the NAT gateway is allocated. + InternalPublicIpPoolName CreateNatGatewayDetailsInternalPublicIpPoolNameEnum `mandatory:"false" json:"internalPublicIpPoolName,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table used by the NAT gateway. + // If you don't specify a route table here, the NAT gateway is created without an associated route + // table. The Networking service does NOT automatically associate the attached VCN's default route table + // with the NAT gateway. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m CreateNatGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNatGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnum(string(m.InternalPublicIpPoolName)); !ok && m.InternalPublicIpPoolName != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InternalPublicIpPoolName: %s. Supported values are: %s.", m.InternalPublicIpPoolName, strings.Join(GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateNatGatewayDetailsInternalPublicIpPoolNameEnum Enum with underlying type: string +type CreateNatGatewayDetailsInternalPublicIpPoolNameEnum string + +// Set of constants representing the allowable values for CreateNatGatewayDetailsInternalPublicIpPoolNameEnum +const ( + CreateNatGatewayDetailsInternalPublicIpPoolNameExternal CreateNatGatewayDetailsInternalPublicIpPoolNameEnum = "EXTERNAL" + CreateNatGatewayDetailsInternalPublicIpPoolNameSociEgress CreateNatGatewayDetailsInternalPublicIpPoolNameEnum = "SOCI_EGRESS" +) + +var mappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnum = map[string]CreateNatGatewayDetailsInternalPublicIpPoolNameEnum{ + "EXTERNAL": CreateNatGatewayDetailsInternalPublicIpPoolNameExternal, + "SOCI_EGRESS": CreateNatGatewayDetailsInternalPublicIpPoolNameSociEgress, +} + +var mappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnumLowerCase = map[string]CreateNatGatewayDetailsInternalPublicIpPoolNameEnum{ + "external": CreateNatGatewayDetailsInternalPublicIpPoolNameExternal, + "soci_egress": CreateNatGatewayDetailsInternalPublicIpPoolNameSociEgress, +} + +// GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumValues Enumerates the set of values for CreateNatGatewayDetailsInternalPublicIpPoolNameEnum +func GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumValues() []CreateNatGatewayDetailsInternalPublicIpPoolNameEnum { + values := make([]CreateNatGatewayDetailsInternalPublicIpPoolNameEnum, 0) + for _, v := range mappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnum { + values = append(values, v) + } + return values +} + +// GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumStringValues Enumerates the set of values in String for CreateNatGatewayDetailsInternalPublicIpPoolNameEnum +func GetCreateNatGatewayDetailsInternalPublicIpPoolNameEnumStringValues() []string { + return []string{ + "EXTERNAL", + "SOCI_EGRESS", + } +} + +// GetMappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnum(val string) (CreateNatGatewayDetailsInternalPublicIpPoolNameEnum, bool) { + enum, ok := mappingCreateNatGatewayDetailsInternalPublicIpPoolNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go index 193579398d..f57138c6cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_nat_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateNatGatewayRequest wrapper for the CreateNatGateway operation @@ -38,6 +40,10 @@ func (request CreateNatGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateNatGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateNatGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateNatGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateNatGatewayResponse wrapper for the CreateNatGateway operation type CreateNatGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_details.go new file mode 100644 index 0000000000..e36f15dbfe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateNetworkSecurityGroupDetails The representation of CreateNetworkSecurityGroupDetails +type CreateNetworkSecurityGroupDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the + // network security group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN to create the network + // security group in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateNetworkSecurityGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNetworkSecurityGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_request_response.go index 7091d6f27f..054719545b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_network_security_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_network_security_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateNetworkSecurityGroupRequest wrapper for the CreateNetworkSecurityGroup operation @@ -38,6 +40,10 @@ func (request CreateNetworkSecurityGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateNetworkSecurityGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateNetworkSecurityGroupResponse wrapper for the CreateNetworkSecurityGroup operation type CreateNetworkSecurityGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_details.go new file mode 100644 index 0000000000..eedb08ca27 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePrivateAccessGatewayDetails Details to create a private access gateway (PAG). +type CreatePrivateAccessGatewayDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the PAG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the PAG belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreatePrivateAccessGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePrivateAccessGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_request_response.go index 8ed98a90cd..4114c465b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_access_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_access_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePrivateAccessGatewayRequest wrapper for the CreatePrivateAccessGateway operation @@ -38,6 +40,10 @@ func (request CreatePrivateAccessGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePrivateAccessGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreatePrivateAccessGatewayRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePrivateAccessGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePrivateAccessGatewayResponse wrapper for the CreatePrivateAccessGateway operation type CreatePrivateAccessGatewayResponse struct { @@ -69,7 +86,8 @@ type CreatePrivateAccessGatewayResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_endpoint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_endpoint_details.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_endpoint_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_endpoint_details.go index 7ef2ae037a..ca95a9747a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_endpoint_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_endpoint_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreatePrivateEndpointDetails Details to create a private endpoint. @@ -76,3 +78,15 @@ type CreatePrivateEndpointDetails struct { func (m CreatePrivateEndpointDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePrivateEndpointDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_endpoint_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_endpoint_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_endpoint_request_response.go index 2c46844d15..ae8e0f19b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_endpoint_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_endpoint_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePrivateEndpointRequest wrapper for the CreatePrivateEndpoint operation @@ -46,6 +48,10 @@ func (request CreatePrivateEndpointRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePrivateEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request CreatePrivateEndpointRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePrivateEndpointResponse wrapper for the CreatePrivateEndpoint operation type CreatePrivateEndpointResponse struct { @@ -77,7 +94,8 @@ type CreatePrivateEndpointResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go index b86d0776a5..36bd51e6d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreatePrivateIpDetails The representation of CreatePrivateIpDetails @@ -64,3 +66,15 @@ type CreatePrivateIpDetails struct { func (m CreatePrivateIpDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePrivateIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_details.go new file mode 100644 index 0000000000..5522ebdd94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePrivateIpNextHopDetails The data to create private IP's nextHop configuration. +type CreatePrivateIpNextHopDetails struct { + + // Details of nextHop targets. + Targets []PrivateIpNextHopTarget `mandatory:"true" json:"targets"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // VNICaaS will flow-hash traffic that matches the service protocol and port. + ServiceProtocolPorts []PrivateIpNextHopProtocolPort `mandatory:"false" json:"serviceProtocolPorts"` +} + +func (m CreatePrivateIpNextHopDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePrivateIpNextHopDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_request_response.go index cfb075a1a0..157446122d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_next_hop_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_next_hop_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePrivateIpNextHopRequest wrapper for the CreatePrivateIpNextHop operation type CreatePrivateIpNextHopRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // Private IP nextHop configuration details. @@ -41,6 +43,10 @@ func (request CreatePrivateIpNextHopRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePrivateIpNextHopRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreatePrivateIpNextHopRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePrivateIpNextHopRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePrivateIpNextHopResponse wrapper for the CreatePrivateIpNextHop operation type CreatePrivateIpNextHopResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go index 2a2ed8b3f2..18202fb6f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_private_ip_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePrivateIpRequest wrapper for the CreatePrivateIp operation @@ -38,6 +40,10 @@ func (request CreatePrivateIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePrivateIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreatePrivateIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePrivateIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePrivateIpResponse wrapper for the CreatePrivateIp operation type CreatePrivateIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_details.go new file mode 100644 index 0000000000..50d95aa49f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_details.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePublicIpDetails The representation of CreatePublicIpDetails +type CreatePublicIpDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the public IP. For ephemeral public IPs, + // you must set this to the private IP's compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defines when the public IP is deleted and released back to the Oracle Cloud + // Infrastructure public IP pool. For more information, see + // Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). + Lifetime CreatePublicIpDetailsLifetimeEnum `mandatory:"true" json:"lifetime"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP to assign the public IP to. + // Required for an ephemeral public IP because it must always be assigned to a private IP + // (specifically a *primary* private IP). + // Optional for a reserved public IP. If you don't provide it, the public IP is created but not + // assigned to a private IP. You can later assign the public IP with + // UpdatePublicIp. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` +} + +func (m CreatePublicIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePublicIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreatePublicIpDetailsLifetimeEnum(string(m.Lifetime)); !ok && m.Lifetime != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Lifetime: %s. Supported values are: %s.", m.Lifetime, strings.Join(GetCreatePublicIpDetailsLifetimeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreatePublicIpDetailsLifetimeEnum Enum with underlying type: string +type CreatePublicIpDetailsLifetimeEnum string + +// Set of constants representing the allowable values for CreatePublicIpDetailsLifetimeEnum +const ( + CreatePublicIpDetailsLifetimeEphemeral CreatePublicIpDetailsLifetimeEnum = "EPHEMERAL" + CreatePublicIpDetailsLifetimeReserved CreatePublicIpDetailsLifetimeEnum = "RESERVED" +) + +var mappingCreatePublicIpDetailsLifetimeEnum = map[string]CreatePublicIpDetailsLifetimeEnum{ + "EPHEMERAL": CreatePublicIpDetailsLifetimeEphemeral, + "RESERVED": CreatePublicIpDetailsLifetimeReserved, +} + +var mappingCreatePublicIpDetailsLifetimeEnumLowerCase = map[string]CreatePublicIpDetailsLifetimeEnum{ + "ephemeral": CreatePublicIpDetailsLifetimeEphemeral, + "reserved": CreatePublicIpDetailsLifetimeReserved, +} + +// GetCreatePublicIpDetailsLifetimeEnumValues Enumerates the set of values for CreatePublicIpDetailsLifetimeEnum +func GetCreatePublicIpDetailsLifetimeEnumValues() []CreatePublicIpDetailsLifetimeEnum { + values := make([]CreatePublicIpDetailsLifetimeEnum, 0) + for _, v := range mappingCreatePublicIpDetailsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetCreatePublicIpDetailsLifetimeEnumStringValues Enumerates the set of values in String for CreatePublicIpDetailsLifetimeEnum +func GetCreatePublicIpDetailsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingCreatePublicIpDetailsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreatePublicIpDetailsLifetimeEnum(val string) (CreatePublicIpDetailsLifetimeEnum, bool) { + enum, ok := mappingCreatePublicIpDetailsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_details.go new file mode 100644 index 0000000000..4a29ed829a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePublicIpPoolDetails The information used to create a public IP pool. +type CreatePublicIpPoolDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreatePublicIpPoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePublicIpPoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_request_response.go index 853de3b8b8..ab66abd44e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePublicIpPoolRequest wrapper for the CreatePublicIpPool operation @@ -38,6 +40,10 @@ func (request CreatePublicIpPoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePublicIpPoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreatePublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePublicIpPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePublicIpPoolResponse wrapper for the CreatePublicIpPool operation type CreatePublicIpPoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go index 09dfbc8ef1..e6a5ca7780 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_public_ip_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePublicIpRequest wrapper for the CreatePublicIp operation @@ -38,6 +40,10 @@ func (request CreatePublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreatePublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePublicIpResponse wrapper for the CreatePublicIp operation type CreatePublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_details.go new file mode 100644 index 0000000000..fbb9155eff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateRemotePeeringConnectionDetails The representation of CreateRemotePeeringConnectionDetails +type CreateRemotePeeringConnectionDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the RPC. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the RPC belongs to. + DrgId *string `mandatory:"true" json:"drgId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateRemotePeeringConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateRemotePeeringConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_request_response.go index 722737992f..a9348c0314 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_remote_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_remote_peering_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateRemotePeeringConnectionRequest wrapper for the CreateRemotePeeringConnection operation @@ -38,6 +40,10 @@ func (request CreateRemotePeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateRemotePeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateRemotePeeringConnectionRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateRemotePeeringConnectionResponse wrapper for the CreateRemotePeeringConnection operation type CreateRemotePeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_details.go new file mode 100644 index 0000000000..2960565ed9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateRouteTableDetails The representation of CreateRouteTableDetails +type CreateRouteTableDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the route table. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The collection of rules used for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"true" json:"routeRules"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the route table belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Indicates whether ECMP is enabled or not on the route table. + IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` +} + +func (m CreateRouteTableDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateRouteTableDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go index ff33d4e303..094ebca623 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_route_table_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateRouteTableRequest wrapper for the CreateRouteTable operation @@ -38,6 +40,10 @@ func (request CreateRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateRouteTableResponse wrapper for the CreateRouteTable operation type CreateRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_details.go new file mode 100644 index 0000000000..d06ce70ad0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateScanProxyDetails Details for adding a RAC's scan listener information. +type CreateScanProxyDetails struct { + + // Type indicating whether Scan listener is specified by its FQDN or list of IPs + ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"true" json:"scanListenerType"` + + // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN + // listeners. + ScanListenerInfo []ScanListenerInfo `mandatory:"true" json:"scanListenerInfo"` + + // The protocol to be used for communication between client, scanProxy and RAC's scan + // listeners + Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` + + ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` + + // Type indicating whether Scan proxy is IP multiplexing based or Port multiplexing based. + ScanMultiplexingType ScanProxyScanMultiplexingTypeEnum `mandatory:"false" json:"scanMultiplexingType,omitempty"` +} + +func (m CreateScanProxyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateScanProxyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingScanProxyScanListenerTypeEnum(string(m.ScanListenerType)); !ok && m.ScanListenerType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanListenerType: %s. Supported values are: %s.", m.ScanListenerType, strings.Join(GetScanProxyScanListenerTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingScanProxyProtocolEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetScanProxyProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyScanMultiplexingTypeEnum(string(m.ScanMultiplexingType)); !ok && m.ScanMultiplexingType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanMultiplexingType: %s. Supported values are: %s.", m.ScanMultiplexingType, strings.Join(GetScanProxyScanMultiplexingTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_request_response.go index cfd7059161..c75da3c29a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_scan_proxy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_scan_proxy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateScanProxyRequest wrapper for the CreateScanProxy operation @@ -50,6 +52,10 @@ func (request CreateScanProxyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateScanProxyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -65,6 +71,17 @@ func (request CreateScanProxyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateScanProxyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateScanProxyResponse wrapper for the CreateScanProxy operation type CreateScanProxyResponse struct { @@ -81,7 +98,8 @@ type CreateScanProxyResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_details.go new file mode 100644 index 0000000000..bbab7adfd9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSecurityListDetails The representation of CreateSecurityListDetails +type CreateSecurityListDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the security list. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Rules for allowing egress IP packets. + EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` + + // Rules for allowing ingress IP packets. + IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the security list belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m CreateSecurityListDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSecurityListDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go index 16c24458f9..07b4eb51d3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_security_list_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateSecurityListRequest wrapper for the CreateSecurityList operation @@ -38,6 +40,10 @@ func (request CreateSecurityListRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateSecurityListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateSecurityListRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateSecurityListRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateSecurityListResponse wrapper for the CreateSecurityList operation type CreateSecurityListResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_service_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_service_gateway_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go index dbf575e017..aa5fc17ffd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_service_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateServiceGatewayDetails The representation of CreateServiceGatewayDetails @@ -62,3 +64,15 @@ type CreateServiceGatewayDetails struct { func (m CreateServiceGatewayDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateServiceGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_service_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go index 57bf3aa331..1632ea09b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_service_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateServiceGatewayRequest wrapper for the CreateServiceGateway operation @@ -38,6 +40,10 @@ func (request CreateServiceGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateServiceGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateServiceGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateServiceGatewayResponse wrapper for the CreateServiceGateway operation type CreateServiceGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_subnet_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go index 9f9fe69fe1..5310680f8a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateSubnetDetails The representation of CreateSubnetDetails @@ -82,7 +84,13 @@ type CreateSubnetDetails struct { // Example: `2001:0db8:0123:1111::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` - // Whether learning mode is enabled for this subnet. The default is `false`. + // The list of all IPv6 CIDR blocks (Oracle allocated IPv6 GUA, ULA or private IPv6 CIDR blocks, BYOIPv6 CIDR blocks) for the subnet that meets the following criteria: + // - The CIDR blocks must be valid. + // - Multiple CIDR blocks must not overlap each other or the on-premises network CIDR block. + // - The number of CIDR blocks must not exceed the limit of IPv6 CIDR blocks allowed to a subnet. + Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` + + // Indicates whether learning mode is enabled for this subnet. The default is `false`. // **Note:** When a subnet has learning mode enabled, only certain types // of resources can be launched in the subnet. // Example: `true` @@ -128,3 +136,15 @@ type CreateSubnetDetails struct { func (m CreateSubnetDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSubnetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_subnet_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go index 2301f2f7a0..1bbc53307a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_subnet_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateSubnetRequest wrapper for the CreateSubnet operation @@ -38,6 +40,10 @@ func (request CreateSubnetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateSubnetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateSubnetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateSubnetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateSubnetResponse wrapper for the CreateSubnet operation type CreateSubnetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_details.go new file mode 100644 index 0000000000..b2f5313316 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_details.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVcnDetails The representation of CreateVcnDetails +type CreateVcnDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the VCN. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // **Deprecated.** Do *not* set this value. Use `cidrBlocks` instead. + // Example: `10.0.0.0/16` + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // The list of one or more IPv4 CIDR blocks for the VCN that meet the following criteria: + // - The CIDR blocks must be valid. + // - They must not overlap with each other or with the on-premises network CIDR block. + // - The number of CIDR blocks must not exceed the limit of CIDR blocks allowed per VCN. + // **Important:** Do *not* specify a value for `cidrBlock`. Use this parameter instead. + CidrBlocks []string `mandatory:"false" json:"cidrBlocks"` + + // The list of one or more ULA or Private IPv6 CIDR blocks for the vcn that meets the following criteria: + // - The CIDR blocks must be valid. + // - Multiple CIDR blocks must not overlap each other or the on-premises network CIDR block. + // - The number of CIDR blocks must not exceed the limit of IPv6 CIDR blocks allowed to a vcn. + // **Important:** Do *not* specify a value for `ipv6CidrBlock`. Use this parameter instead. + Ipv6PrivateCidrBlocks []string `mandatory:"false" json:"ipv6PrivateCidrBlocks"` + + // Specifies whether to skip Oracle allocated IPv6 GUA. By default, Oracle will allocate one GUA of /56 + // size for an IPv6 enabled VCN. + IsOracleGuaAllocationEnabled *bool `mandatory:"false" json:"isOracleGuaAllocationEnabled"` + + // The list of BYOIPv6 OCIDs and BYOIPv6 CIDR blocks required to create a VCN that uses BYOIPv6 ranges. + Byoipv6CidrDetails []Byoipv6CidrDetails `mandatory:"false" json:"byoipv6CidrDetails"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A DNS label for the VCN, used in conjunction with the VNIC's hostname and + // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Not required to be unique, but it's a best practice to set unique DNS labels + // for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. + // The value cannot be changed. + // You must set this value if you want instances to be able to use hostnames to + // resolve other instances in the VCN. Otherwise the Internet and VCN Resolver + // will not work. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // Example: `vcn1` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether IPv6 is enabled for the VCN. Default is `false`. + // If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block. + // You may skip having Oracle allocate the VCN a IPv6 /56 CIDR block by setting isOracleGuaAllocationEnabled to `false`. + // For important details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `true` + IsIpv6Enabled *bool `mandatory:"false" json:"isIpv6Enabled"` +} + +func (m CreateVcnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVcnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_drg_attachment_request_response.go index 0b9ce97c31..5bfc3f6f74 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVcnDrgAttachmentRequest wrapper for the CreateVcnDrgAttachment operation @@ -38,6 +40,10 @@ func (request CreateVcnDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVcnDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVcnDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVcnDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVcnDrgAttachmentResponse wrapper for the CreateVcnDrgAttachment operation type CreateVcnDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_drg_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_drg_request_response.go index cb29ce5bf9..27b27bba51 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVcnDrgRequest wrapper for the CreateVcnDrg operation @@ -38,6 +40,10 @@ func (request CreateVcnDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVcnDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVcnDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVcnDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVcnDrgResponse wrapper for the CreateVcnDrg operation type CreateVcnDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go index 09a65c9bdc..1241cab66f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vcn_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVcnRequest wrapper for the CreateVcn operation @@ -38,6 +40,10 @@ func (request CreateVcnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVcnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVcnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVcnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVcnResponse wrapper for the CreateVcn operation type CreateVcnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_details.go new file mode 100644 index 0000000000..3a7d2bb948 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_details.go @@ -0,0 +1,278 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVirtualCircuitDetails The representation of CreateVirtualCircuitDetails +type CreateVirtualCircuitDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the virtual circuit. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The type of IP addresses used in this virtual circuit. PRIVATE + // means RFC 1918 (https://tools.ietf.org/html/rfc1918) addresses + // (10.0.0.0/8, 172.16/12, and 192.168/16). + Type CreateVirtualCircuitDetailsTypeEnum `mandatory:"true" json:"type"` + + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // Example: `10 Gbps` + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // Create a `CrossConnectMapping` for each cross-connect or cross-connect + // group this virtual circuit will run on. + CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` + + // The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. + // Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`. + // See Route Filtering (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. + // By default, routing information is shared for all routes in the same market. + RoutingPolicy []CreateVirtualCircuitDetailsRoutingPolicyEnum `mandatory:"false" json:"routingPolicy,omitempty"` + + // Set to `ENABLED` (the default) to activate the BGP session of the virtual circuit, set to `DISABLED` to deactivate the virtual circuit. + BgpAdminState CreateVirtualCircuitDetailsBgpAdminStateEnum `mandatory:"false" json:"bgpAdminState,omitempty"` + + // Set to `true` to enable BFD for IPv4 BGP peering, or set to `false` to disable BFD. If this is not set, the default is `false`. + IsBfdEnabled *bool `mandatory:"false" json:"isBfdEnabled"` + + // Deprecated. Instead use `customerAsn`. + // If you specify values for both, the request will be rejected. + CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` + + // Your BGP ASN (either public or private). Provide this value only if + // there's a BGP session that goes from your edge router to Oracle. + // Otherwise, leave this empty or null. + // Can be a 2-byte or 4-byte ASN. Uses "asplain" format. + // Example: `12345` (2-byte) or `1587232876` (4-byte) + CustomerAsn *int64 `mandatory:"false" json:"customerAsn"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // For private virtual circuits only. The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Drg + // that this virtual circuit uses. + GatewayId *string `mandatory:"false" json:"gatewayId"` + + // Deprecated. Instead use `providerServiceId`. + // To get a list of the provider names, see + // ListFastConnectProviderServices. + ProviderName *string `mandatory:"false" json:"providerName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if you're connecting + // via a provider). To get a list of the available service offerings, see + // ListFastConnectProviderServices. + ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` + + // The service key name offered by the provider (if the customer is connecting via a provider). + ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"` + + // Deprecated. Instead use `providerServiceId`. + // To get a list of the provider names, see + // ListFastConnectProviderServices. + ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` + + // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to + // advertise across the connection. + PublicPrefixes []CreateVirtualCircuitPublicPrefixDetails `mandatory:"false" json:"publicPrefixes"` + + // The Oracle Cloud Infrastructure region where this virtual + // circuit is located. + // Example: `phx` + Region *string `mandatory:"false" json:"region"` + + // The layer 3 IP MTU to use with this virtual circuit. + IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` +} + +func (m CreateVirtualCircuitDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVirtualCircuitDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateVirtualCircuitDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetCreateVirtualCircuitDetailsTypeEnumStringValues(), ","))) + } + + for _, val := range m.RoutingPolicy { + if _, ok := GetMappingCreateVirtualCircuitDetailsRoutingPolicyEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RoutingPolicy: %s. Supported values are: %s.", val, strings.Join(GetCreateVirtualCircuitDetailsRoutingPolicyEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingCreateVirtualCircuitDetailsBgpAdminStateEnum(string(m.BgpAdminState)); !ok && m.BgpAdminState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpAdminState: %s. Supported values are: %s.", m.BgpAdminState, strings.Join(GetCreateVirtualCircuitDetailsBgpAdminStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitIpMtuEnum(string(m.IpMtu)); !ok && m.IpMtu != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpMtu: %s. Supported values are: %s.", m.IpMtu, strings.Join(GetVirtualCircuitIpMtuEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateVirtualCircuitDetailsRoutingPolicyEnum Enum with underlying type: string +type CreateVirtualCircuitDetailsRoutingPolicyEnum string + +// Set of constants representing the allowable values for CreateVirtualCircuitDetailsRoutingPolicyEnum +const ( + CreateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork CreateVirtualCircuitDetailsRoutingPolicyEnum = "ORACLE_SERVICE_NETWORK" + CreateVirtualCircuitDetailsRoutingPolicyRegional CreateVirtualCircuitDetailsRoutingPolicyEnum = "REGIONAL" + CreateVirtualCircuitDetailsRoutingPolicyMarketLevel CreateVirtualCircuitDetailsRoutingPolicyEnum = "MARKET_LEVEL" + CreateVirtualCircuitDetailsRoutingPolicyGlobal CreateVirtualCircuitDetailsRoutingPolicyEnum = "GLOBAL" +) + +var mappingCreateVirtualCircuitDetailsRoutingPolicyEnum = map[string]CreateVirtualCircuitDetailsRoutingPolicyEnum{ + "ORACLE_SERVICE_NETWORK": CreateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork, + "REGIONAL": CreateVirtualCircuitDetailsRoutingPolicyRegional, + "MARKET_LEVEL": CreateVirtualCircuitDetailsRoutingPolicyMarketLevel, + "GLOBAL": CreateVirtualCircuitDetailsRoutingPolicyGlobal, +} + +var mappingCreateVirtualCircuitDetailsRoutingPolicyEnumLowerCase = map[string]CreateVirtualCircuitDetailsRoutingPolicyEnum{ + "oracle_service_network": CreateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork, + "regional": CreateVirtualCircuitDetailsRoutingPolicyRegional, + "market_level": CreateVirtualCircuitDetailsRoutingPolicyMarketLevel, + "global": CreateVirtualCircuitDetailsRoutingPolicyGlobal, +} + +// GetCreateVirtualCircuitDetailsRoutingPolicyEnumValues Enumerates the set of values for CreateVirtualCircuitDetailsRoutingPolicyEnum +func GetCreateVirtualCircuitDetailsRoutingPolicyEnumValues() []CreateVirtualCircuitDetailsRoutingPolicyEnum { + values := make([]CreateVirtualCircuitDetailsRoutingPolicyEnum, 0) + for _, v := range mappingCreateVirtualCircuitDetailsRoutingPolicyEnum { + values = append(values, v) + } + return values +} + +// GetCreateVirtualCircuitDetailsRoutingPolicyEnumStringValues Enumerates the set of values in String for CreateVirtualCircuitDetailsRoutingPolicyEnum +func GetCreateVirtualCircuitDetailsRoutingPolicyEnumStringValues() []string { + return []string{ + "ORACLE_SERVICE_NETWORK", + "REGIONAL", + "MARKET_LEVEL", + "GLOBAL", + } +} + +// GetMappingCreateVirtualCircuitDetailsRoutingPolicyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVirtualCircuitDetailsRoutingPolicyEnum(val string) (CreateVirtualCircuitDetailsRoutingPolicyEnum, bool) { + enum, ok := mappingCreateVirtualCircuitDetailsRoutingPolicyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateVirtualCircuitDetailsBgpAdminStateEnum Enum with underlying type: string +type CreateVirtualCircuitDetailsBgpAdminStateEnum string + +// Set of constants representing the allowable values for CreateVirtualCircuitDetailsBgpAdminStateEnum +const ( + CreateVirtualCircuitDetailsBgpAdminStateEnabled CreateVirtualCircuitDetailsBgpAdminStateEnum = "ENABLED" + CreateVirtualCircuitDetailsBgpAdminStateDisabled CreateVirtualCircuitDetailsBgpAdminStateEnum = "DISABLED" +) + +var mappingCreateVirtualCircuitDetailsBgpAdminStateEnum = map[string]CreateVirtualCircuitDetailsBgpAdminStateEnum{ + "ENABLED": CreateVirtualCircuitDetailsBgpAdminStateEnabled, + "DISABLED": CreateVirtualCircuitDetailsBgpAdminStateDisabled, +} + +var mappingCreateVirtualCircuitDetailsBgpAdminStateEnumLowerCase = map[string]CreateVirtualCircuitDetailsBgpAdminStateEnum{ + "enabled": CreateVirtualCircuitDetailsBgpAdminStateEnabled, + "disabled": CreateVirtualCircuitDetailsBgpAdminStateDisabled, +} + +// GetCreateVirtualCircuitDetailsBgpAdminStateEnumValues Enumerates the set of values for CreateVirtualCircuitDetailsBgpAdminStateEnum +func GetCreateVirtualCircuitDetailsBgpAdminStateEnumValues() []CreateVirtualCircuitDetailsBgpAdminStateEnum { + values := make([]CreateVirtualCircuitDetailsBgpAdminStateEnum, 0) + for _, v := range mappingCreateVirtualCircuitDetailsBgpAdminStateEnum { + values = append(values, v) + } + return values +} + +// GetCreateVirtualCircuitDetailsBgpAdminStateEnumStringValues Enumerates the set of values in String for CreateVirtualCircuitDetailsBgpAdminStateEnum +func GetCreateVirtualCircuitDetailsBgpAdminStateEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingCreateVirtualCircuitDetailsBgpAdminStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVirtualCircuitDetailsBgpAdminStateEnum(val string) (CreateVirtualCircuitDetailsBgpAdminStateEnum, bool) { + enum, ok := mappingCreateVirtualCircuitDetailsBgpAdminStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateVirtualCircuitDetailsTypeEnum Enum with underlying type: string +type CreateVirtualCircuitDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateVirtualCircuitDetailsTypeEnum +const ( + CreateVirtualCircuitDetailsTypePublic CreateVirtualCircuitDetailsTypeEnum = "PUBLIC" + CreateVirtualCircuitDetailsTypePrivate CreateVirtualCircuitDetailsTypeEnum = "PRIVATE" +) + +var mappingCreateVirtualCircuitDetailsTypeEnum = map[string]CreateVirtualCircuitDetailsTypeEnum{ + "PUBLIC": CreateVirtualCircuitDetailsTypePublic, + "PRIVATE": CreateVirtualCircuitDetailsTypePrivate, +} + +var mappingCreateVirtualCircuitDetailsTypeEnumLowerCase = map[string]CreateVirtualCircuitDetailsTypeEnum{ + "public": CreateVirtualCircuitDetailsTypePublic, + "private": CreateVirtualCircuitDetailsTypePrivate, +} + +// GetCreateVirtualCircuitDetailsTypeEnumValues Enumerates the set of values for CreateVirtualCircuitDetailsTypeEnum +func GetCreateVirtualCircuitDetailsTypeEnumValues() []CreateVirtualCircuitDetailsTypeEnum { + values := make([]CreateVirtualCircuitDetailsTypeEnum, 0) + for _, v := range mappingCreateVirtualCircuitDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateVirtualCircuitDetailsTypeEnumStringValues Enumerates the set of values in String for CreateVirtualCircuitDetailsTypeEnum +func GetCreateVirtualCircuitDetailsTypeEnumStringValues() []string { + return []string{ + "PUBLIC", + "PRIVATE", + } +} + +// GetMappingCreateVirtualCircuitDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVirtualCircuitDetailsTypeEnum(val string) (CreateVirtualCircuitDetailsTypeEnum, bool) { + enum, ok := mappingCreateVirtualCircuitDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_public_prefix_details.go new file mode 100644 index 0000000000..7a0405b2e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_public_prefix_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVirtualCircuitPublicPrefixDetails The representation of CreateVirtualCircuitPublicPrefixDetails +type CreateVirtualCircuitPublicPrefixDetails struct { + + // An individual public IP prefix (CIDR) to add to the public virtual circuit. + // All prefix sizes are allowed. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` +} + +func (m CreateVirtualCircuitPublicPrefixDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVirtualCircuitPublicPrefixDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go index 433cefc464..1f8b50e103 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_virtual_circuit_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVirtualCircuitRequest wrapper for the CreateVirtualCircuit operation @@ -38,6 +40,10 @@ func (request CreateVirtualCircuitRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVirtualCircuitRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVirtualCircuitRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVirtualCircuitResponse wrapper for the CreateVirtualCircuit operation type CreateVirtualCircuitResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vlan_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vlan_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go index 63855f5bb5..7154b77966 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vlan_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateVlanDetails The representation of CreateVlanDetails @@ -75,3 +77,15 @@ type CreateVlanDetails struct { func (m CreateVlanDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVlanDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vlan_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go index a50572dd73..046ad621aa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vlan_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVlanRequest wrapper for the CreateVlan operation @@ -38,6 +40,10 @@ func (request CreateVlanRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVlanRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVlanRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVlanResponse wrapper for the CreateVlan operation type CreateVlanResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go similarity index 89% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go index f9d7e69401..b40411c924 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateVnicDetails Contains properties for a VNIC. You use this object when creating the @@ -139,3 +141,15 @@ type CreateVnicDetails struct { func (m CreateVnicDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_details.go new file mode 100644 index 0000000000..ceddbb2433 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVnicWorkerDetails The data to create vnicWorker. +type CreateVnicWorkerDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the VNIC worker. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of associated service VNIC. + ServiceVnicId *string `mandatory:"true" json:"serviceVnicId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // List of vnicWorker IP OCIDs. Each OCID can be either of private IP or IPv6. + WorkerIps []string `mandatory:"false" json:"workerIps"` + + // The instance where vnicWorker needs to be attached. + WorkerInstanceId *string `mandatory:"false" json:"workerInstanceId"` + + // Which physical network interface card (NIC) the VNIC worker uses. Defaults to 0. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a VNIC worker to one of these instances, you can specify which NIC + // the VNIC worker will use. Note that it is required for NIC to have at least a single + // VNIC attached before attaching a VNIC worker. + WorkerNicIndex *int `mandatory:"false" json:"workerNicIndex"` + + // Specifies whether the vnicworker is enabled for forwarding traffic at creation + IsEnabled *bool `mandatory:"false" json:"isEnabled"` +} + +func (m CreateVnicWorkerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVnicWorkerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_request_response.go index 623a00ed11..481f6e15c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vnic_worker_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVnicWorkerRequest wrapper for the CreateVnicWorker operation @@ -38,6 +40,10 @@ func (request CreateVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVnicWorkerResponse wrapper for the CreateVnicWorker operation type CreateVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_details.go new file mode 100644 index 0000000000..abd8018e2e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_details.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVolumeBackupDetails The representation of CreateVolumeBackupDetails +type CreateVolumeBackupDetails struct { + + // The OCID of the volume that needs to be backed up. + VolumeId *string `mandatory:"true" json:"volumeId"` + + // The OCID of the compartment that contains the backup. If omitted, the backup will be created in the compartment of the source volume. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The type of backup to create. If omitted, defaults to INCREMENTAL. + Type CreateVolumeBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` +} + +func (m CreateVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateVolumeBackupDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetCreateVolumeBackupDetailsTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateVolumeBackupDetailsTypeEnum Enum with underlying type: string +type CreateVolumeBackupDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateVolumeBackupDetailsTypeEnum +const ( + CreateVolumeBackupDetailsTypeFull CreateVolumeBackupDetailsTypeEnum = "FULL" + CreateVolumeBackupDetailsTypeIncremental CreateVolumeBackupDetailsTypeEnum = "INCREMENTAL" +) + +var mappingCreateVolumeBackupDetailsTypeEnum = map[string]CreateVolumeBackupDetailsTypeEnum{ + "FULL": CreateVolumeBackupDetailsTypeFull, + "INCREMENTAL": CreateVolumeBackupDetailsTypeIncremental, +} + +var mappingCreateVolumeBackupDetailsTypeEnumLowerCase = map[string]CreateVolumeBackupDetailsTypeEnum{ + "full": CreateVolumeBackupDetailsTypeFull, + "incremental": CreateVolumeBackupDetailsTypeIncremental, +} + +// GetCreateVolumeBackupDetailsTypeEnumValues Enumerates the set of values for CreateVolumeBackupDetailsTypeEnum +func GetCreateVolumeBackupDetailsTypeEnumValues() []CreateVolumeBackupDetailsTypeEnum { + values := make([]CreateVolumeBackupDetailsTypeEnum, 0) + for _, v := range mappingCreateVolumeBackupDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateVolumeBackupDetailsTypeEnumStringValues Enumerates the set of values in String for CreateVolumeBackupDetailsTypeEnum +func GetCreateVolumeBackupDetailsTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingCreateVolumeBackupDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVolumeBackupDetailsTypeEnum(val string) (CreateVolumeBackupDetailsTypeEnum, bool) { + enum, ok := mappingCreateVolumeBackupDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_details.go new file mode 100644 index 0000000000..850d271c5f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVolumeBackupPolicyAssignmentDetails The representation of CreateVolumeBackupPolicyAssignmentDetails +type CreateVolumeBackupPolicyAssignmentDetails struct { + + // The OCID of the volume to assign the policy to. + AssetId *string `mandatory:"true" json:"assetId"` + + // The OCID of the volume backup policy to assign to the volume. + PolicyId *string `mandatory:"true" json:"policyId"` +} + +func (m CreateVolumeBackupPolicyAssignmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVolumeBackupPolicyAssignmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_request_response.go index e52705c69a..1481a2b73c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_assignment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_assignment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVolumeBackupPolicyAssignmentRequest wrapper for the CreateVolumeBackupPolicyAssignment operation @@ -31,6 +33,10 @@ func (request CreateVolumeBackupPolicyAssignmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVolumeBackupPolicyAssignmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request CreateVolumeBackupPolicyAssignmentRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVolumeBackupPolicyAssignmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVolumeBackupPolicyAssignmentResponse wrapper for the CreateVolumeBackupPolicyAssignment operation type CreateVolumeBackupPolicyAssignmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go index 1dd89baae2..f9d48e35a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateVolumeBackupPolicyDetails Specifies the properties for creating user defined backup policy. @@ -53,3 +55,15 @@ type CreateVolumeBackupPolicyDetails struct { func (m CreateVolumeBackupPolicyDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVolumeBackupPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_request_response.go index 26ebe24b63..d7444dd70b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVolumeBackupPolicyRequest wrapper for the CreateVolumeBackupPolicy operation @@ -38,6 +40,10 @@ func (request CreateVolumeBackupPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVolumeBackupPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVolumeBackupPolicyResponse wrapper for the CreateVolumeBackupPolicy operation type CreateVolumeBackupPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go index 8f030a405c..0301c54dcd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVolumeBackupRequest wrapper for the CreateVolumeBackup operation @@ -38,6 +40,10 @@ func (request CreateVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVolumeBackupResponse wrapper for the CreateVolumeBackup operation type CreateVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_details.go new file mode 100644 index 0000000000..3b0a288258 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_details.go @@ -0,0 +1,199 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVolumeDetails The details of the volume to create. For CreateVolume operation, this field is required in the request, +// see CreateVolume. +type CreateVolumeDetails struct { + + // The OCID of the compartment that contains the volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain of the volume. Omissible for cloning a volume. The new volume will be created in the availability domain of the source volume. + // Omissible when creating a regional volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // If provided, specifies the ID of the volume backup policy to assign to the newly + // created volume. If omitted, no policy will be assigned. + BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID of the Vault service key to assign as the master encryption key + // for the volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `0`: Represents Lower Cost option. + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // The size of the volume in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // The size of the volume in MBs. The value must be a multiple of 1024. + // This field is deprecated. Use sizeInGBs instead. + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` + + SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The OCID of the volume backup from which the data should be restored on the newly created volume. + // This field is deprecated. Use the sourceDetails field instead to specify the + // backup for the volume. + VolumeBackupId *string `mandatory:"false" json:"volumeBackupId"` + + // Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. + // Use the `DetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The list of block volume replicas to be enabled for this volume + // in the specified destination availability domains. + BlockVolumeReplicas []BlockVolumeReplicaDetails `mandatory:"false" json:"blockVolumeReplicas"` + + // Indicates whether the volume is AD-local or Regional. Regional volume isn't restricted to any + // availability domain unlike AD-local volumes. This is an optional field. The default behavior is to create + // AD_LOCAL volumes. + VolumeScope VolumeVolumeScopeEnum `mandatory:"false" json:"volumeScope,omitempty"` + + // The list of autotune policies to be enabled for this volume. + AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` +} + +func (m CreateVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVolumeVolumeScopeEnum(string(m.VolumeScope)); !ok && m.VolumeScope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VolumeScope: %s. Supported values are: %s.", m.VolumeScope, strings.Join(GetVolumeVolumeScopeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *CreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + AvailabilityDomain *string `json:"availabilityDomain"` + BackupPolicyId *string `json:"backupPolicyId"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + KmsKeyId *string `json:"kmsKeyId"` + VpusPerGB *int64 `json:"vpusPerGB"` + SizeInGBs *int64 `json:"sizeInGBs"` + SizeInMBs *int64 `json:"sizeInMBs"` + SourceDetails volumesourcedetails `json:"sourceDetails"` + VolumeBackupId *string `json:"volumeBackupId"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + BlockVolumeReplicas []BlockVolumeReplicaDetails `json:"blockVolumeReplicas"` + VolumeScope VolumeVolumeScopeEnum `json:"volumeScope"` + AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + CompartmentId *string `json:"compartmentId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.AvailabilityDomain = model.AvailabilityDomain + + m.BackupPolicyId = model.BackupPolicyId + + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.KmsKeyId = model.KmsKeyId + + m.VpusPerGB = model.VpusPerGB + + m.SizeInGBs = model.SizeInGBs + + m.SizeInMBs = model.SizeInMBs + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(VolumeSourceDetails) + } else { + m.SourceDetails = nil + } + + m.VolumeBackupId = model.VolumeBackupId + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.BlockVolumeReplicas = make([]BlockVolumeReplicaDetails, len(model.BlockVolumeReplicas)) + for i, n := range model.BlockVolumeReplicas { + m.BlockVolumeReplicas[i] = n + } + + m.VolumeScope = model.VolumeScope + + m.AutotunePolicies = make([]AutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(AutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + m.CompartmentId = model.CompartmentId + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_details.go new file mode 100644 index 0000000000..aba0066b66 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_details.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVolumeGroupBackupDetails The representation of CreateVolumeGroupBackupDetails +type CreateVolumeGroupBackupDetails struct { + + // The OCID of the volume group that needs to be backed up. + VolumeGroupId *string `mandatory:"true" json:"volumeGroupId"` + + // The OCID of the compartment that will contain the volume group + // backup. This parameter is optional, by default backup will be created in + // the same compartment and source volume group. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The type of backup to create. If omitted, defaults to incremental. + Type CreateVolumeGroupBackupDetailsTypeEnum `mandatory:"false" json:"type,omitempty"` +} + +func (m CreateVolumeGroupBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateVolumeGroupBackupDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetCreateVolumeGroupBackupDetailsTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateVolumeGroupBackupDetailsTypeEnum Enum with underlying type: string +type CreateVolumeGroupBackupDetailsTypeEnum string + +// Set of constants representing the allowable values for CreateVolumeGroupBackupDetailsTypeEnum +const ( + CreateVolumeGroupBackupDetailsTypeFull CreateVolumeGroupBackupDetailsTypeEnum = "FULL" + CreateVolumeGroupBackupDetailsTypeIncremental CreateVolumeGroupBackupDetailsTypeEnum = "INCREMENTAL" +) + +var mappingCreateVolumeGroupBackupDetailsTypeEnum = map[string]CreateVolumeGroupBackupDetailsTypeEnum{ + "FULL": CreateVolumeGroupBackupDetailsTypeFull, + "INCREMENTAL": CreateVolumeGroupBackupDetailsTypeIncremental, +} + +var mappingCreateVolumeGroupBackupDetailsTypeEnumLowerCase = map[string]CreateVolumeGroupBackupDetailsTypeEnum{ + "full": CreateVolumeGroupBackupDetailsTypeFull, + "incremental": CreateVolumeGroupBackupDetailsTypeIncremental, +} + +// GetCreateVolumeGroupBackupDetailsTypeEnumValues Enumerates the set of values for CreateVolumeGroupBackupDetailsTypeEnum +func GetCreateVolumeGroupBackupDetailsTypeEnumValues() []CreateVolumeGroupBackupDetailsTypeEnum { + values := make([]CreateVolumeGroupBackupDetailsTypeEnum, 0) + for _, v := range mappingCreateVolumeGroupBackupDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateVolumeGroupBackupDetailsTypeEnumStringValues Enumerates the set of values in String for CreateVolumeGroupBackupDetailsTypeEnum +func GetCreateVolumeGroupBackupDetailsTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingCreateVolumeGroupBackupDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVolumeGroupBackupDetailsTypeEnum(val string) (CreateVolumeGroupBackupDetailsTypeEnum, bool) { + enum, ok := mappingCreateVolumeGroupBackupDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_request_response.go index 6797f24c9c..64e26654c5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVolumeGroupBackupRequest wrapper for the CreateVolumeGroupBackup operation @@ -38,6 +40,10 @@ func (request CreateVolumeGroupBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVolumeGroupBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVolumeGroupBackupResponse wrapper for the CreateVolumeGroupBackup operation type CreateVolumeGroupBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go index b6d0ccb255..533d898e52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateVolumeGroupDetails The representation of CreateVolumeGroupDetails @@ -56,6 +58,18 @@ func (m CreateVolumeGroupDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVolumeGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *CreateVolumeGroupDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go index 1a03bfeace..995a8ec3e3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVolumeGroupRequest wrapper for the CreateVolumeGroup operation @@ -38,6 +40,10 @@ func (request CreateVolumeGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVolumeGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVolumeGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVolumeGroupResponse wrapper for the CreateVolumeGroup operation type CreateVolumeGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go index 7372517771..33feb7edf7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVolumeRequest wrapper for the CreateVolume operation @@ -38,6 +40,10 @@ func (request CreateVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVolumeResponse wrapper for the CreateVolume operation type CreateVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_details.go new file mode 100644 index 0000000000..207f84553e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_details.go @@ -0,0 +1,297 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateVtapDetails These details are included in a request to create a virtual test access point (VTAP). +type CreateVtapDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `Vtap` resource. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN containing the `Vtap` resource. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source point where packets are captured. + SourceId *string `mandatory:"true" json:"sourceId"` + + // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + CaptureFilterId *string `mandatory:"true" json:"captureFilterId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination resource where mirrored packets are sent. + TargetId *string `mandatory:"false" json:"targetId"` + + // The IP address of the destination resource where mirrored packets are sent. + TargetIp *string `mandatory:"false" json:"targetIp"` + + // Defines an encapsulation header type for the VTAP's mirrored traffic. + EncapsulationProtocol CreateVtapDetailsEncapsulationProtocolEnum `mandatory:"false" json:"encapsulationProtocol,omitempty"` + + // The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN. + VxlanNetworkIdentifier *int64 `mandatory:"false" json:"vxlanNetworkIdentifier"` + + // Used to start or stop a `Vtap` resource. + // * `TRUE` directs the VTAP to start mirroring traffic. + // * `FALSE` (Default) directs the VTAP to stop mirroring traffic. + IsVtapEnabled *bool `mandatory:"false" json:"isVtapEnabled"` + + // The source type for the VTAP. + SourceType CreateVtapDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + // Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT + TrafficMode CreateVtapDetailsTrafficModeEnum `mandatory:"false" json:"trafficMode,omitempty"` + + // The maximum size of the packets to be included in the filter. + MaxPacketSize *int `mandatory:"false" json:"maxPacketSize"` + + // The target type for the VTAP. + TargetType CreateVtapDetailsTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The IP Address of the source private endpoint. + SourcePrivateEndpointIp *string `mandatory:"false" json:"sourcePrivateEndpointIp"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that source private endpoint belongs to. + SourcePrivateEndpointSubnetId *string `mandatory:"false" json:"sourcePrivateEndpointSubnetId"` +} + +func (m CreateVtapDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateVtapDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateVtapDetailsEncapsulationProtocolEnum(string(m.EncapsulationProtocol)); !ok && m.EncapsulationProtocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncapsulationProtocol: %s. Supported values are: %s.", m.EncapsulationProtocol, strings.Join(GetCreateVtapDetailsEncapsulationProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateVtapDetailsSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetCreateVtapDetailsSourceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateVtapDetailsTrafficModeEnum(string(m.TrafficMode)); !ok && m.TrafficMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TrafficMode: %s. Supported values are: %s.", m.TrafficMode, strings.Join(GetCreateVtapDetailsTrafficModeEnumStringValues(), ","))) + } + if _, ok := GetMappingCreateVtapDetailsTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetCreateVtapDetailsTargetTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateVtapDetailsEncapsulationProtocolEnum Enum with underlying type: string +type CreateVtapDetailsEncapsulationProtocolEnum string + +// Set of constants representing the allowable values for CreateVtapDetailsEncapsulationProtocolEnum +const ( + CreateVtapDetailsEncapsulationProtocolVxlan CreateVtapDetailsEncapsulationProtocolEnum = "VXLAN" +) + +var mappingCreateVtapDetailsEncapsulationProtocolEnum = map[string]CreateVtapDetailsEncapsulationProtocolEnum{ + "VXLAN": CreateVtapDetailsEncapsulationProtocolVxlan, +} + +var mappingCreateVtapDetailsEncapsulationProtocolEnumLowerCase = map[string]CreateVtapDetailsEncapsulationProtocolEnum{ + "vxlan": CreateVtapDetailsEncapsulationProtocolVxlan, +} + +// GetCreateVtapDetailsEncapsulationProtocolEnumValues Enumerates the set of values for CreateVtapDetailsEncapsulationProtocolEnum +func GetCreateVtapDetailsEncapsulationProtocolEnumValues() []CreateVtapDetailsEncapsulationProtocolEnum { + values := make([]CreateVtapDetailsEncapsulationProtocolEnum, 0) + for _, v := range mappingCreateVtapDetailsEncapsulationProtocolEnum { + values = append(values, v) + } + return values +} + +// GetCreateVtapDetailsEncapsulationProtocolEnumStringValues Enumerates the set of values in String for CreateVtapDetailsEncapsulationProtocolEnum +func GetCreateVtapDetailsEncapsulationProtocolEnumStringValues() []string { + return []string{ + "VXLAN", + } +} + +// GetMappingCreateVtapDetailsEncapsulationProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVtapDetailsEncapsulationProtocolEnum(val string) (CreateVtapDetailsEncapsulationProtocolEnum, bool) { + enum, ok := mappingCreateVtapDetailsEncapsulationProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateVtapDetailsSourceTypeEnum Enum with underlying type: string +type CreateVtapDetailsSourceTypeEnum string + +// Set of constants representing the allowable values for CreateVtapDetailsSourceTypeEnum +const ( + CreateVtapDetailsSourceTypeVnic CreateVtapDetailsSourceTypeEnum = "VNIC" + CreateVtapDetailsSourceTypeSubnet CreateVtapDetailsSourceTypeEnum = "SUBNET" + CreateVtapDetailsSourceTypeLoadBalancer CreateVtapDetailsSourceTypeEnum = "LOAD_BALANCER" + CreateVtapDetailsSourceTypeDbSystem CreateVtapDetailsSourceTypeEnum = "DB_SYSTEM" + CreateVtapDetailsSourceTypeExadataVmCluster CreateVtapDetailsSourceTypeEnum = "EXADATA_VM_CLUSTER" + CreateVtapDetailsSourceTypeAutonomousDataWarehouse CreateVtapDetailsSourceTypeEnum = "AUTONOMOUS_DATA_WAREHOUSE" +) + +var mappingCreateVtapDetailsSourceTypeEnum = map[string]CreateVtapDetailsSourceTypeEnum{ + "VNIC": CreateVtapDetailsSourceTypeVnic, + "SUBNET": CreateVtapDetailsSourceTypeSubnet, + "LOAD_BALANCER": CreateVtapDetailsSourceTypeLoadBalancer, + "DB_SYSTEM": CreateVtapDetailsSourceTypeDbSystem, + "EXADATA_VM_CLUSTER": CreateVtapDetailsSourceTypeExadataVmCluster, + "AUTONOMOUS_DATA_WAREHOUSE": CreateVtapDetailsSourceTypeAutonomousDataWarehouse, +} + +var mappingCreateVtapDetailsSourceTypeEnumLowerCase = map[string]CreateVtapDetailsSourceTypeEnum{ + "vnic": CreateVtapDetailsSourceTypeVnic, + "subnet": CreateVtapDetailsSourceTypeSubnet, + "load_balancer": CreateVtapDetailsSourceTypeLoadBalancer, + "db_system": CreateVtapDetailsSourceTypeDbSystem, + "exadata_vm_cluster": CreateVtapDetailsSourceTypeExadataVmCluster, + "autonomous_data_warehouse": CreateVtapDetailsSourceTypeAutonomousDataWarehouse, +} + +// GetCreateVtapDetailsSourceTypeEnumValues Enumerates the set of values for CreateVtapDetailsSourceTypeEnum +func GetCreateVtapDetailsSourceTypeEnumValues() []CreateVtapDetailsSourceTypeEnum { + values := make([]CreateVtapDetailsSourceTypeEnum, 0) + for _, v := range mappingCreateVtapDetailsSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateVtapDetailsSourceTypeEnumStringValues Enumerates the set of values in String for CreateVtapDetailsSourceTypeEnum +func GetCreateVtapDetailsSourceTypeEnumStringValues() []string { + return []string{ + "VNIC", + "SUBNET", + "LOAD_BALANCER", + "DB_SYSTEM", + "EXADATA_VM_CLUSTER", + "AUTONOMOUS_DATA_WAREHOUSE", + } +} + +// GetMappingCreateVtapDetailsSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVtapDetailsSourceTypeEnum(val string) (CreateVtapDetailsSourceTypeEnum, bool) { + enum, ok := mappingCreateVtapDetailsSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateVtapDetailsTrafficModeEnum Enum with underlying type: string +type CreateVtapDetailsTrafficModeEnum string + +// Set of constants representing the allowable values for CreateVtapDetailsTrafficModeEnum +const ( + CreateVtapDetailsTrafficModeDefault CreateVtapDetailsTrafficModeEnum = "DEFAULT" + CreateVtapDetailsTrafficModePriority CreateVtapDetailsTrafficModeEnum = "PRIORITY" +) + +var mappingCreateVtapDetailsTrafficModeEnum = map[string]CreateVtapDetailsTrafficModeEnum{ + "DEFAULT": CreateVtapDetailsTrafficModeDefault, + "PRIORITY": CreateVtapDetailsTrafficModePriority, +} + +var mappingCreateVtapDetailsTrafficModeEnumLowerCase = map[string]CreateVtapDetailsTrafficModeEnum{ + "default": CreateVtapDetailsTrafficModeDefault, + "priority": CreateVtapDetailsTrafficModePriority, +} + +// GetCreateVtapDetailsTrafficModeEnumValues Enumerates the set of values for CreateVtapDetailsTrafficModeEnum +func GetCreateVtapDetailsTrafficModeEnumValues() []CreateVtapDetailsTrafficModeEnum { + values := make([]CreateVtapDetailsTrafficModeEnum, 0) + for _, v := range mappingCreateVtapDetailsTrafficModeEnum { + values = append(values, v) + } + return values +} + +// GetCreateVtapDetailsTrafficModeEnumStringValues Enumerates the set of values in String for CreateVtapDetailsTrafficModeEnum +func GetCreateVtapDetailsTrafficModeEnumStringValues() []string { + return []string{ + "DEFAULT", + "PRIORITY", + } +} + +// GetMappingCreateVtapDetailsTrafficModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVtapDetailsTrafficModeEnum(val string) (CreateVtapDetailsTrafficModeEnum, bool) { + enum, ok := mappingCreateVtapDetailsTrafficModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateVtapDetailsTargetTypeEnum Enum with underlying type: string +type CreateVtapDetailsTargetTypeEnum string + +// Set of constants representing the allowable values for CreateVtapDetailsTargetTypeEnum +const ( + CreateVtapDetailsTargetTypeVnic CreateVtapDetailsTargetTypeEnum = "VNIC" + CreateVtapDetailsTargetTypeNetworkLoadBalancer CreateVtapDetailsTargetTypeEnum = "NETWORK_LOAD_BALANCER" + CreateVtapDetailsTargetTypeIpAddress CreateVtapDetailsTargetTypeEnum = "IP_ADDRESS" +) + +var mappingCreateVtapDetailsTargetTypeEnum = map[string]CreateVtapDetailsTargetTypeEnum{ + "VNIC": CreateVtapDetailsTargetTypeVnic, + "NETWORK_LOAD_BALANCER": CreateVtapDetailsTargetTypeNetworkLoadBalancer, + "IP_ADDRESS": CreateVtapDetailsTargetTypeIpAddress, +} + +var mappingCreateVtapDetailsTargetTypeEnumLowerCase = map[string]CreateVtapDetailsTargetTypeEnum{ + "vnic": CreateVtapDetailsTargetTypeVnic, + "network_load_balancer": CreateVtapDetailsTargetTypeNetworkLoadBalancer, + "ip_address": CreateVtapDetailsTargetTypeIpAddress, +} + +// GetCreateVtapDetailsTargetTypeEnumValues Enumerates the set of values for CreateVtapDetailsTargetTypeEnum +func GetCreateVtapDetailsTargetTypeEnumValues() []CreateVtapDetailsTargetTypeEnum { + values := make([]CreateVtapDetailsTargetTypeEnum, 0) + for _, v := range mappingCreateVtapDetailsTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateVtapDetailsTargetTypeEnumStringValues Enumerates the set of values in String for CreateVtapDetailsTargetTypeEnum +func GetCreateVtapDetailsTargetTypeEnumStringValues() []string { + return []string{ + "VNIC", + "NETWORK_LOAD_BALANCER", + "IP_ADDRESS", + } +} + +// GetMappingCreateVtapDetailsTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateVtapDetailsTargetTypeEnum(val string) (CreateVtapDetailsTargetTypeEnum, bool) { + enum, ok := mappingCreateVtapDetailsTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go index a6dbfd80d3..51e1fcee4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/create_vtap_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/create_vtap_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateVtapRequest wrapper for the CreateVtap operation @@ -38,6 +40,10 @@ func (request CreateVtapRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateVtapRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateVtapRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateVtapRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateVtapResponse wrapper for the CreateVtap operation type CreateVtapResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect.go new file mode 100644 index 0000000000..c53c7e9fd1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect.go @@ -0,0 +1,166 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnect For use with Oracle Cloud Infrastructure FastConnect. A cross-connect represents a +// physical connection between an existing network and Oracle. Customers who are colocated +// with Oracle in a FastConnect location create and use cross-connects. For more +// information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// Oracle recommends you create each cross-connect in a +// CrossConnectGroup so you can use link aggregation +// with the connection. +// **Note:** If you're a provider who is setting up a physical connection to Oracle so customers +// can use FastConnect over the connection, be aware that your connection is modeled the +// same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type CrossConnect struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cross-connect group. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group this cross-connect belongs to (if any). + CrossConnectGroupId *string `mandatory:"false" json:"crossConnectGroupId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The cross-connect's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + + // The cross-connect's current state. + LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The name of the FastConnect location where this cross-connect is installed. + LocationName *string `mandatory:"false" json:"locationName"` + + // A string identifying the meet-me room port for this cross-connect. + PortName *string `mandatory:"false" json:"portName"` + + // The port speed for this cross-connect. + // Example: `10 Gbps` + PortSpeedShapeName *string `mandatory:"false" json:"portSpeedShapeName"` + + // A reference name or identifier for the physical fiber connection that this cross-connect + // uses. + CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` + + // The date and time the cross-connect was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + MacsecProperties *MacsecProperties `mandatory:"false" json:"macsecProperties"` + + // The FastConnect device that terminates the physical connection. + OciPhysicalDeviceName *string `mandatory:"false" json:"ociPhysicalDeviceName"` + + // The FastConnect device that terminates the logical connection. + // This device might be different than the device that terminates the physical connection. + OciLogicalDeviceName *string `mandatory:"false" json:"ociLogicalDeviceName"` +} + +func (m CrossConnect) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnect) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCrossConnectLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCrossConnectLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CrossConnectLifecycleStateEnum Enum with underlying type: string +type CrossConnectLifecycleStateEnum string + +// Set of constants representing the allowable values for CrossConnectLifecycleStateEnum +const ( + CrossConnectLifecycleStatePendingCustomer CrossConnectLifecycleStateEnum = "PENDING_CUSTOMER" + CrossConnectLifecycleStateProvisioning CrossConnectLifecycleStateEnum = "PROVISIONING" + CrossConnectLifecycleStateProvisioned CrossConnectLifecycleStateEnum = "PROVISIONED" + CrossConnectLifecycleStateInactive CrossConnectLifecycleStateEnum = "INACTIVE" + CrossConnectLifecycleStateTerminating CrossConnectLifecycleStateEnum = "TERMINATING" + CrossConnectLifecycleStateTerminated CrossConnectLifecycleStateEnum = "TERMINATED" +) + +var mappingCrossConnectLifecycleStateEnum = map[string]CrossConnectLifecycleStateEnum{ + "PENDING_CUSTOMER": CrossConnectLifecycleStatePendingCustomer, + "PROVISIONING": CrossConnectLifecycleStateProvisioning, + "PROVISIONED": CrossConnectLifecycleStateProvisioned, + "INACTIVE": CrossConnectLifecycleStateInactive, + "TERMINATING": CrossConnectLifecycleStateTerminating, + "TERMINATED": CrossConnectLifecycleStateTerminated, +} + +var mappingCrossConnectLifecycleStateEnumLowerCase = map[string]CrossConnectLifecycleStateEnum{ + "pending_customer": CrossConnectLifecycleStatePendingCustomer, + "provisioning": CrossConnectLifecycleStateProvisioning, + "provisioned": CrossConnectLifecycleStateProvisioned, + "inactive": CrossConnectLifecycleStateInactive, + "terminating": CrossConnectLifecycleStateTerminating, + "terminated": CrossConnectLifecycleStateTerminated, +} + +// GetCrossConnectLifecycleStateEnumValues Enumerates the set of values for CrossConnectLifecycleStateEnum +func GetCrossConnectLifecycleStateEnumValues() []CrossConnectLifecycleStateEnum { + values := make([]CrossConnectLifecycleStateEnum, 0) + for _, v := range mappingCrossConnectLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectLifecycleStateEnumStringValues Enumerates the set of values in String for CrossConnectLifecycleStateEnum +func GetCrossConnectLifecycleStateEnumStringValues() []string { + return []string{ + "PENDING_CUSTOMER", + "PROVISIONING", + "PROVISIONED", + "INACTIVE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingCrossConnectLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectLifecycleStateEnum(val string) (CrossConnectLifecycleStateEnum, bool) { + enum, ok := mappingCrossConnectLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_group.go new file mode 100644 index 0000000000..884ec1783c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_group.go @@ -0,0 +1,147 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnectGroup For use with Oracle Cloud Infrastructure FastConnect. A cross-connect group +// is a link aggregation group (LAG), which can contain one or more +// CrossConnect. Customers who are colocated with +// Oracle in a FastConnect location create and use cross-connect groups. For more +// information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// **Note:** If you're a provider who is setting up a physical connection to Oracle so customers +// can use FastConnect over the connection, be aware that your connection is modeled the +// same way as a colocated customer's (with `CrossConnect` and `CrossConnectGroup` objects, and so on). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type CrossConnectGroup struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the cross-connect group. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The cross-connect group's Oracle ID (OCID). + Id *string `mandatory:"false" json:"id"` + + // The cross-connect group's current state. + LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // A reference name or identifier for the physical fiber connection that this cross-connect + // group uses. + CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` + + // The date and time the cross-connect group was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + MacsecProperties *MacsecProperties `mandatory:"false" json:"macsecProperties"` + + // The FastConnect device that terminates the physical connection. + OciPhysicalDeviceName *string `mandatory:"false" json:"ociPhysicalDeviceName"` + + // The FastConnect device that terminates the logical connection. + // This device might be different than the device that terminates the physical connection. + OciLogicalDeviceName *string `mandatory:"false" json:"ociLogicalDeviceName"` +} + +func (m CrossConnectGroup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCrossConnectGroupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCrossConnectGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CrossConnectGroupLifecycleStateEnum Enum with underlying type: string +type CrossConnectGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for CrossConnectGroupLifecycleStateEnum +const ( + CrossConnectGroupLifecycleStateProvisioning CrossConnectGroupLifecycleStateEnum = "PROVISIONING" + CrossConnectGroupLifecycleStateProvisioned CrossConnectGroupLifecycleStateEnum = "PROVISIONED" + CrossConnectGroupLifecycleStateInactive CrossConnectGroupLifecycleStateEnum = "INACTIVE" + CrossConnectGroupLifecycleStateTerminating CrossConnectGroupLifecycleStateEnum = "TERMINATING" + CrossConnectGroupLifecycleStateTerminated CrossConnectGroupLifecycleStateEnum = "TERMINATED" +) + +var mappingCrossConnectGroupLifecycleStateEnum = map[string]CrossConnectGroupLifecycleStateEnum{ + "PROVISIONING": CrossConnectGroupLifecycleStateProvisioning, + "PROVISIONED": CrossConnectGroupLifecycleStateProvisioned, + "INACTIVE": CrossConnectGroupLifecycleStateInactive, + "TERMINATING": CrossConnectGroupLifecycleStateTerminating, + "TERMINATED": CrossConnectGroupLifecycleStateTerminated, +} + +var mappingCrossConnectGroupLifecycleStateEnumLowerCase = map[string]CrossConnectGroupLifecycleStateEnum{ + "provisioning": CrossConnectGroupLifecycleStateProvisioning, + "provisioned": CrossConnectGroupLifecycleStateProvisioned, + "inactive": CrossConnectGroupLifecycleStateInactive, + "terminating": CrossConnectGroupLifecycleStateTerminating, + "terminated": CrossConnectGroupLifecycleStateTerminated, +} + +// GetCrossConnectGroupLifecycleStateEnumValues Enumerates the set of values for CrossConnectGroupLifecycleStateEnum +func GetCrossConnectGroupLifecycleStateEnumValues() []CrossConnectGroupLifecycleStateEnum { + values := make([]CrossConnectGroupLifecycleStateEnum, 0) + for _, v := range mappingCrossConnectGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectGroupLifecycleStateEnumStringValues Enumerates the set of values in String for CrossConnectGroupLifecycleStateEnum +func GetCrossConnectGroupLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "PROVISIONED", + "INACTIVE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingCrossConnectGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectGroupLifecycleStateEnum(val string) (CrossConnectGroupLifecycleStateEnum, bool) { + enum, ok := mappingCrossConnectGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_location.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_location.go new file mode 100644 index 0000000000..739bae2116 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_location.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnectLocation An individual FastConnect location. +type CrossConnectLocation struct { + + // A description of the location. + Description *string `mandatory:"true" json:"description"` + + // The name of the location. + // Example: `CyrusOne, Chandler, AZ` + Name *string `mandatory:"true" json:"name"` +} + +func (m CrossConnectLocation) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectLocation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go similarity index 87% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go index 9f51b90675..853f9de7ec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/cross_connect_mapping.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CrossConnectMapping For use with Oracle Cloud Infrastructure FastConnect. Each @@ -103,3 +105,15 @@ type CrossConnectMapping struct { func (m CrossConnectMapping) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectMapping) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details.go new file mode 100644 index 0000000000..447018c2b8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details.go @@ -0,0 +1,197 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnectMappingDetails For use with Oracle Cloud Infrastructure FastConnect. Each +// VirtualCircuit runs on one or +// more cross-connects or cross-connect groups. A `CrossConnectMappingDetails` +// contains the properties for an individual cross-connect or cross-connect group +// associated with a given virtual circuit. +// The details includes information about the cross-connect or +// cross-connect group, the VLAN, and the BGP peering session. +type CrossConnectMappingDetails struct { + + // The key for BGP MD5 authentication. Only applicable if your system + // requires MD5 authentication. If empty or not set (null), that + // means you don't use BGP MD5 authentication. + BgpMd5AuthKey *string `mandatory:"false" json:"bgpMd5AuthKey"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect or cross-connect group for this mapping. + // Specified by the owner of the cross-connect or cross-connect group (the + // customer if the customer is colocated with Oracle, or the provider if the + // customer is connecting via provider). + CrossConnectOrCrossConnectGroupId *string `mandatory:"false" json:"crossConnectOrCrossConnectGroupId"` + + // The BGP IPv4 address for the router on the other end of the BGP session from + // Oracle. Specified by the owner of that router. If the session goes from Oracle + // to a customer, this is the BGP IPv4 address of the customer's edge router. If the + // session goes from Oracle to a provider, this is the BGP IPv4 address of the + // provider's edge router. Must use a /30 or /31 subnet mask. + // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses. + // Example: `10.0.0.18/31` + CustomerBgpPeeringIp *string `mandatory:"false" json:"customerBgpPeeringIp"` + + // The IPv4 address for Oracle's end of the BGP session. Must use a /30 or /31 + // subnet mask. If the session goes from Oracle to a customer's edge router, + // the customer specifies this information. If the session goes from Oracle to + // a provider's edge router, the provider specifies this. + // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv4 addresses. + // Example: `10.0.0.19/31` + OracleBgpPeeringIp *string `mandatory:"false" json:"oracleBgpPeeringIp"` + + // The BGP IPv6 address for the router on the other end of the BGP session from + // Oracle. Specified by the owner of that router. If the session goes from Oracle + // to a customer, this is the BGP IPv6 address of the customer's edge router. If the + // session goes from Oracle to a provider, this is the BGP IPv6 address of the + // provider's edge router. Only subnet masks from /64 up to /127 are allowed. + // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses. + // Example: `2001:db8::1/64` + CustomerBgpPeeringIpv6 *string `mandatory:"false" json:"customerBgpPeeringIpv6"` + + // The IPv6 address for Oracle's end of the BGP session. Only subnet masks from /64 up to /127 are allowed. + // If the session goes from Oracle to a customer's edge router, + // the customer specifies this information. If the session goes from Oracle to + // a provider's edge router, the provider specifies this. + // There's one exception: for a public virtual circuit, Oracle specifies the BGP IPv6 addresses. + // Example: `2001:db8::2/64` + OracleBgpPeeringIpv6 *string `mandatory:"false" json:"oracleBgpPeeringIpv6"` + + // The number of the specific VLAN (on the cross-connect or cross-connect group) + // that is assigned to this virtual circuit. Specified by the owner of the cross-connect + // or cross-connect group (the customer if the customer is colocated with Oracle, or + // the provider if the customer is connecting via provider). + // Example: `200` + Vlan *int `mandatory:"false" json:"vlan"` + + // The state of the Ipv4 BGP session. + Ipv4BgpStatus CrossConnectMappingDetailsIpv4BgpStatusEnum `mandatory:"false" json:"ipv4BgpStatus,omitempty"` + + // The state of the Ipv6 BGP session. + Ipv6BgpStatus CrossConnectMappingDetailsIpv6BgpStatusEnum `mandatory:"false" json:"ipv6BgpStatus,omitempty"` + + // The FastConnect device that terminates the logical connection. + OciLogicalDeviceName *string `mandatory:"false" json:"ociLogicalDeviceName"` +} + +func (m CrossConnectMappingDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectMappingDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCrossConnectMappingDetailsIpv4BgpStatusEnum(string(m.Ipv4BgpStatus)); !ok && m.Ipv4BgpStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Ipv4BgpStatus: %s. Supported values are: %s.", m.Ipv4BgpStatus, strings.Join(GetCrossConnectMappingDetailsIpv4BgpStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingCrossConnectMappingDetailsIpv6BgpStatusEnum(string(m.Ipv6BgpStatus)); !ok && m.Ipv6BgpStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Ipv6BgpStatus: %s. Supported values are: %s.", m.Ipv6BgpStatus, strings.Join(GetCrossConnectMappingDetailsIpv6BgpStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CrossConnectMappingDetailsIpv4BgpStatusEnum Enum with underlying type: string +type CrossConnectMappingDetailsIpv4BgpStatusEnum string + +// Set of constants representing the allowable values for CrossConnectMappingDetailsIpv4BgpStatusEnum +const ( + CrossConnectMappingDetailsIpv4BgpStatusUp CrossConnectMappingDetailsIpv4BgpStatusEnum = "UP" + CrossConnectMappingDetailsIpv4BgpStatusDown CrossConnectMappingDetailsIpv4BgpStatusEnum = "DOWN" +) + +var mappingCrossConnectMappingDetailsIpv4BgpStatusEnum = map[string]CrossConnectMappingDetailsIpv4BgpStatusEnum{ + "UP": CrossConnectMappingDetailsIpv4BgpStatusUp, + "DOWN": CrossConnectMappingDetailsIpv4BgpStatusDown, +} + +var mappingCrossConnectMappingDetailsIpv4BgpStatusEnumLowerCase = map[string]CrossConnectMappingDetailsIpv4BgpStatusEnum{ + "up": CrossConnectMappingDetailsIpv4BgpStatusUp, + "down": CrossConnectMappingDetailsIpv4BgpStatusDown, +} + +// GetCrossConnectMappingDetailsIpv4BgpStatusEnumValues Enumerates the set of values for CrossConnectMappingDetailsIpv4BgpStatusEnum +func GetCrossConnectMappingDetailsIpv4BgpStatusEnumValues() []CrossConnectMappingDetailsIpv4BgpStatusEnum { + values := make([]CrossConnectMappingDetailsIpv4BgpStatusEnum, 0) + for _, v := range mappingCrossConnectMappingDetailsIpv4BgpStatusEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectMappingDetailsIpv4BgpStatusEnumStringValues Enumerates the set of values in String for CrossConnectMappingDetailsIpv4BgpStatusEnum +func GetCrossConnectMappingDetailsIpv4BgpStatusEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingCrossConnectMappingDetailsIpv4BgpStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectMappingDetailsIpv4BgpStatusEnum(val string) (CrossConnectMappingDetailsIpv4BgpStatusEnum, bool) { + enum, ok := mappingCrossConnectMappingDetailsIpv4BgpStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CrossConnectMappingDetailsIpv6BgpStatusEnum Enum with underlying type: string +type CrossConnectMappingDetailsIpv6BgpStatusEnum string + +// Set of constants representing the allowable values for CrossConnectMappingDetailsIpv6BgpStatusEnum +const ( + CrossConnectMappingDetailsIpv6BgpStatusUp CrossConnectMappingDetailsIpv6BgpStatusEnum = "UP" + CrossConnectMappingDetailsIpv6BgpStatusDown CrossConnectMappingDetailsIpv6BgpStatusEnum = "DOWN" +) + +var mappingCrossConnectMappingDetailsIpv6BgpStatusEnum = map[string]CrossConnectMappingDetailsIpv6BgpStatusEnum{ + "UP": CrossConnectMappingDetailsIpv6BgpStatusUp, + "DOWN": CrossConnectMappingDetailsIpv6BgpStatusDown, +} + +var mappingCrossConnectMappingDetailsIpv6BgpStatusEnumLowerCase = map[string]CrossConnectMappingDetailsIpv6BgpStatusEnum{ + "up": CrossConnectMappingDetailsIpv6BgpStatusUp, + "down": CrossConnectMappingDetailsIpv6BgpStatusDown, +} + +// GetCrossConnectMappingDetailsIpv6BgpStatusEnumValues Enumerates the set of values for CrossConnectMappingDetailsIpv6BgpStatusEnum +func GetCrossConnectMappingDetailsIpv6BgpStatusEnumValues() []CrossConnectMappingDetailsIpv6BgpStatusEnum { + values := make([]CrossConnectMappingDetailsIpv6BgpStatusEnum, 0) + for _, v := range mappingCrossConnectMappingDetailsIpv6BgpStatusEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectMappingDetailsIpv6BgpStatusEnumStringValues Enumerates the set of values in String for CrossConnectMappingDetailsIpv6BgpStatusEnum +func GetCrossConnectMappingDetailsIpv6BgpStatusEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingCrossConnectMappingDetailsIpv6BgpStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectMappingDetailsIpv6BgpStatusEnum(val string) (CrossConnectMappingDetailsIpv6BgpStatusEnum, bool) { + enum, ok := mappingCrossConnectMappingDetailsIpv6BgpStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details_collection.go new file mode 100644 index 0000000000..70b16c59b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_mapping_details_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnectMappingDetailsCollection An array of CrossConnectMappingDetails +type CrossConnectMappingDetailsCollection struct { + + // CrossConnectMappingDetails items + Items []CrossConnectMappingDetails `mandatory:"true" json:"items"` +} + +func (m CrossConnectMappingDetailsCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectMappingDetailsCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_port_speed_shape.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_port_speed_shape.go new file mode 100644 index 0000000000..5d6e338cd4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_port_speed_shape.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnectPortSpeedShape An individual port speed level for cross-connects. +type CrossConnectPortSpeedShape struct { + + // The name of the port speed shape. + // Example: `10 Gbps` + Name *string `mandatory:"true" json:"name"` + + // The port speed in Gbps. + // Example: `10` + PortSpeedInGbps *int `mandatory:"true" json:"portSpeedInGbps"` +} + +func (m CrossConnectPortSpeedShape) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectPortSpeedShape) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_status.go new file mode 100644 index 0000000000..c9d759a60a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/cross_connect_status.go @@ -0,0 +1,230 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CrossConnectStatus The status of the cross-connect. +type CrossConnectStatus struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + CrossConnectId *string `mandatory:"true" json:"crossConnectId"` + + // Indicates whether Oracle's side of the interface is up or down. + InterfaceState CrossConnectStatusInterfaceStateEnum `mandatory:"false" json:"interfaceState,omitempty"` + + // The light level of the cross-connect (in dBm). + // Example: `14.0` + LightLevelIndBm *float32 `mandatory:"false" json:"lightLevelIndBm"` + + // Status indicator corresponding to the light level. + // * **NO_LIGHT:** No measurable light + // * **LOW_WARN:** There's measurable light but it's too low + // * **HIGH_WARN:** Light level is too high + // * **BAD:** There's measurable light but the signal-to-noise ratio is bad + // * **GOOD:** Good light level + LightLevelIndicator CrossConnectStatusLightLevelIndicatorEnum `mandatory:"false" json:"lightLevelIndicator,omitempty"` + + // Encryption status of this cross connect. + // Possible values: + // * **UP:** Traffic is encrypted over this cross-connect + // * **DOWN:** Traffic is not encrypted over this cross-connect + // * **CIPHER_MISMATCH:** The MACsec encryption cipher doesn't match the cipher on the CPE + // * **CKN_MISMATCH:** The MACsec Connectivity association Key Name (CKN) doesn't match the CKN on the CPE + // * **CAK_MISMATCH:** The MACsec Connectivity Association Key (CAK) doesn't match the CAK on the CPE + EncryptionStatus CrossConnectStatusEncryptionStatusEnum `mandatory:"false" json:"encryptionStatus,omitempty"` + + // The light levels of the cross-connect (in dBm). + // Example: `[14.0, -14.0, 2.1, -10.1]` + LightLevelsInDBm []float32 `mandatory:"false" json:"lightLevelsInDBm"` +} + +func (m CrossConnectStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CrossConnectStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCrossConnectStatusInterfaceStateEnum(string(m.InterfaceState)); !ok && m.InterfaceState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for InterfaceState: %s. Supported values are: %s.", m.InterfaceState, strings.Join(GetCrossConnectStatusInterfaceStateEnumStringValues(), ","))) + } + if _, ok := GetMappingCrossConnectStatusLightLevelIndicatorEnum(string(m.LightLevelIndicator)); !ok && m.LightLevelIndicator != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LightLevelIndicator: %s. Supported values are: %s.", m.LightLevelIndicator, strings.Join(GetCrossConnectStatusLightLevelIndicatorEnumStringValues(), ","))) + } + if _, ok := GetMappingCrossConnectStatusEncryptionStatusEnum(string(m.EncryptionStatus)); !ok && m.EncryptionStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionStatus: %s. Supported values are: %s.", m.EncryptionStatus, strings.Join(GetCrossConnectStatusEncryptionStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CrossConnectStatusInterfaceStateEnum Enum with underlying type: string +type CrossConnectStatusInterfaceStateEnum string + +// Set of constants representing the allowable values for CrossConnectStatusInterfaceStateEnum +const ( + CrossConnectStatusInterfaceStateUp CrossConnectStatusInterfaceStateEnum = "UP" + CrossConnectStatusInterfaceStateDown CrossConnectStatusInterfaceStateEnum = "DOWN" +) + +var mappingCrossConnectStatusInterfaceStateEnum = map[string]CrossConnectStatusInterfaceStateEnum{ + "UP": CrossConnectStatusInterfaceStateUp, + "DOWN": CrossConnectStatusInterfaceStateDown, +} + +var mappingCrossConnectStatusInterfaceStateEnumLowerCase = map[string]CrossConnectStatusInterfaceStateEnum{ + "up": CrossConnectStatusInterfaceStateUp, + "down": CrossConnectStatusInterfaceStateDown, +} + +// GetCrossConnectStatusInterfaceStateEnumValues Enumerates the set of values for CrossConnectStatusInterfaceStateEnum +func GetCrossConnectStatusInterfaceStateEnumValues() []CrossConnectStatusInterfaceStateEnum { + values := make([]CrossConnectStatusInterfaceStateEnum, 0) + for _, v := range mappingCrossConnectStatusInterfaceStateEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectStatusInterfaceStateEnumStringValues Enumerates the set of values in String for CrossConnectStatusInterfaceStateEnum +func GetCrossConnectStatusInterfaceStateEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingCrossConnectStatusInterfaceStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectStatusInterfaceStateEnum(val string) (CrossConnectStatusInterfaceStateEnum, bool) { + enum, ok := mappingCrossConnectStatusInterfaceStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CrossConnectStatusLightLevelIndicatorEnum Enum with underlying type: string +type CrossConnectStatusLightLevelIndicatorEnum string + +// Set of constants representing the allowable values for CrossConnectStatusLightLevelIndicatorEnum +const ( + CrossConnectStatusLightLevelIndicatorNoLight CrossConnectStatusLightLevelIndicatorEnum = "NO_LIGHT" + CrossConnectStatusLightLevelIndicatorLowWarn CrossConnectStatusLightLevelIndicatorEnum = "LOW_WARN" + CrossConnectStatusLightLevelIndicatorHighWarn CrossConnectStatusLightLevelIndicatorEnum = "HIGH_WARN" + CrossConnectStatusLightLevelIndicatorBad CrossConnectStatusLightLevelIndicatorEnum = "BAD" + CrossConnectStatusLightLevelIndicatorGood CrossConnectStatusLightLevelIndicatorEnum = "GOOD" +) + +var mappingCrossConnectStatusLightLevelIndicatorEnum = map[string]CrossConnectStatusLightLevelIndicatorEnum{ + "NO_LIGHT": CrossConnectStatusLightLevelIndicatorNoLight, + "LOW_WARN": CrossConnectStatusLightLevelIndicatorLowWarn, + "HIGH_WARN": CrossConnectStatusLightLevelIndicatorHighWarn, + "BAD": CrossConnectStatusLightLevelIndicatorBad, + "GOOD": CrossConnectStatusLightLevelIndicatorGood, +} + +var mappingCrossConnectStatusLightLevelIndicatorEnumLowerCase = map[string]CrossConnectStatusLightLevelIndicatorEnum{ + "no_light": CrossConnectStatusLightLevelIndicatorNoLight, + "low_warn": CrossConnectStatusLightLevelIndicatorLowWarn, + "high_warn": CrossConnectStatusLightLevelIndicatorHighWarn, + "bad": CrossConnectStatusLightLevelIndicatorBad, + "good": CrossConnectStatusLightLevelIndicatorGood, +} + +// GetCrossConnectStatusLightLevelIndicatorEnumValues Enumerates the set of values for CrossConnectStatusLightLevelIndicatorEnum +func GetCrossConnectStatusLightLevelIndicatorEnumValues() []CrossConnectStatusLightLevelIndicatorEnum { + values := make([]CrossConnectStatusLightLevelIndicatorEnum, 0) + for _, v := range mappingCrossConnectStatusLightLevelIndicatorEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectStatusLightLevelIndicatorEnumStringValues Enumerates the set of values in String for CrossConnectStatusLightLevelIndicatorEnum +func GetCrossConnectStatusLightLevelIndicatorEnumStringValues() []string { + return []string{ + "NO_LIGHT", + "LOW_WARN", + "HIGH_WARN", + "BAD", + "GOOD", + } +} + +// GetMappingCrossConnectStatusLightLevelIndicatorEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectStatusLightLevelIndicatorEnum(val string) (CrossConnectStatusLightLevelIndicatorEnum, bool) { + enum, ok := mappingCrossConnectStatusLightLevelIndicatorEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CrossConnectStatusEncryptionStatusEnum Enum with underlying type: string +type CrossConnectStatusEncryptionStatusEnum string + +// Set of constants representing the allowable values for CrossConnectStatusEncryptionStatusEnum +const ( + CrossConnectStatusEncryptionStatusUp CrossConnectStatusEncryptionStatusEnum = "UP" + CrossConnectStatusEncryptionStatusDown CrossConnectStatusEncryptionStatusEnum = "DOWN" + CrossConnectStatusEncryptionStatusCipherMismatch CrossConnectStatusEncryptionStatusEnum = "CIPHER_MISMATCH" + CrossConnectStatusEncryptionStatusCknMismatch CrossConnectStatusEncryptionStatusEnum = "CKN_MISMATCH" + CrossConnectStatusEncryptionStatusCakMismatch CrossConnectStatusEncryptionStatusEnum = "CAK_MISMATCH" +) + +var mappingCrossConnectStatusEncryptionStatusEnum = map[string]CrossConnectStatusEncryptionStatusEnum{ + "UP": CrossConnectStatusEncryptionStatusUp, + "DOWN": CrossConnectStatusEncryptionStatusDown, + "CIPHER_MISMATCH": CrossConnectStatusEncryptionStatusCipherMismatch, + "CKN_MISMATCH": CrossConnectStatusEncryptionStatusCknMismatch, + "CAK_MISMATCH": CrossConnectStatusEncryptionStatusCakMismatch, +} + +var mappingCrossConnectStatusEncryptionStatusEnumLowerCase = map[string]CrossConnectStatusEncryptionStatusEnum{ + "up": CrossConnectStatusEncryptionStatusUp, + "down": CrossConnectStatusEncryptionStatusDown, + "cipher_mismatch": CrossConnectStatusEncryptionStatusCipherMismatch, + "ckn_mismatch": CrossConnectStatusEncryptionStatusCknMismatch, + "cak_mismatch": CrossConnectStatusEncryptionStatusCakMismatch, +} + +// GetCrossConnectStatusEncryptionStatusEnumValues Enumerates the set of values for CrossConnectStatusEncryptionStatusEnum +func GetCrossConnectStatusEncryptionStatusEnumValues() []CrossConnectStatusEncryptionStatusEnum { + values := make([]CrossConnectStatusEncryptionStatusEnum, 0) + for _, v := range mappingCrossConnectStatusEncryptionStatusEnum { + values = append(values, v) + } + return values +} + +// GetCrossConnectStatusEncryptionStatusEnumStringValues Enumerates the set of values in String for CrossConnectStatusEncryptionStatusEnum +func GetCrossConnectStatusEncryptionStatusEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + "CIPHER_MISMATCH", + "CKN_MISMATCH", + "CAK_MISMATCH", + } +} + +// GetMappingCrossConnectStatusEncryptionStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCrossConnectStatusEncryptionStatusEnum(val string) (CrossConnectStatusEncryptionStatusEnum, bool) { + enum, ok := mappingCrossConnectStatusEncryptionStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/data_volume_backup_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/data_volume_backup_source_details.go new file mode 100644 index 0000000000..42b769bb4b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/data_volume_backup_source_details.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DataVolumeBackupSourceDetails Define volume parameters that will be utilized to define a Volume and VolumeAttachment on the +// creation of an Instance. +type DataVolumeBackupSourceDetails struct { + + // The ocid of the VolumeBackup that will be utilized as the source for creating the Volume to attach to the + // Instance. + // Warning: This VolumeBackup will not longer be usable or accessible once this operation is completed. It will + // become a part of the Image. + VolumeBackupId *string `mandatory:"true" json:"volumeBackupId"` + + // A user-friendly name for the Volume. It does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +//GetVolumeBackupId returns VolumeBackupId +func (m DataVolumeBackupSourceDetails) GetVolumeBackupId() *string { + return m.VolumeBackupId +} + +func (m DataVolumeBackupSourceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DataVolumeBackupSourceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DataVolumeBackupSourceDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDataVolumeBackupSourceDetails DataVolumeBackupSourceDetails + s := struct { + DiscriminatorParam string `json:"volumeType"` + MarshalTypeDataVolumeBackupSourceDetails + }{ + "DATA_VOLUME", + (MarshalTypeDataVolumeBackupSourceDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dav.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dav.go new file mode 100644 index 0000000000..d46ee5c1bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dav.go @@ -0,0 +1,194 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Dav A Direct Attached Vnic. +type Dav struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Direct Attached Vnic. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Direct Attached Vnic's compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The current state of the Direct Attached Vnic. + LifecycleState DavLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Index of NIC for Direct Attached Vnic. + NicIndex *int `mandatory:"true" json:"nicIndex"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // The MAC address for the DAV. This will be a newly allocated MAC address + // and not the one used by the instance. + MacAddress *string `mandatory:"false" json:"macAddress"` + + // The substrate IP of DAV and primary VNIC attached to the instance. + // This field will be null in case the DAV is not attached. + SubstrateIp *string `mandatory:"false" json:"substrateIp"` + + // The allocated slot id for the Dav. + SlotId *int `mandatory:"false" json:"slotId"` + + // The VLAN Tag assigned to Direct Attached Vnic. + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // The MAC address of the Virtual Router. + VirtualRouterMac *string `mandatory:"false" json:"virtualRouterMac"` + + // Substrate IP address of the remote endpoint. + RemoteEndpointSubstrateIp *string `mandatory:"false" json:"remoteEndpointSubstrateIp"` + + // List of VCNx Attachments to a DRG. + VcnxAttachmentIds []string `mandatory:"false" json:"vcnxAttachmentIds"` + + // The label type for Direct Attached Vnic. This is used to determine the + // label forwarding to be used by the Direct Attached Vnic. + LabelType DavLabelTypeEnum `mandatory:"false" json:"labelType,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Dav) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Dav) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDavLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDavLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingDavLabelTypeEnum(string(m.LabelType)); !ok && m.LabelType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LabelType: %s. Supported values are: %s.", m.LabelType, strings.Join(GetDavLabelTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DavLifecycleStateEnum Enum with underlying type: string +type DavLifecycleStateEnum string + +// Set of constants representing the allowable values for DavLifecycleStateEnum +const ( + DavLifecycleStateProvisioning DavLifecycleStateEnum = "PROVISIONING" + DavLifecycleStateUpdating DavLifecycleStateEnum = "UPDATING" + DavLifecycleStateAvailable DavLifecycleStateEnum = "AVAILABLE" + DavLifecycleStateTerminating DavLifecycleStateEnum = "TERMINATING" + DavLifecycleStateTerminated DavLifecycleStateEnum = "TERMINATED" +) + +var mappingDavLifecycleStateEnum = map[string]DavLifecycleStateEnum{ + "PROVISIONING": DavLifecycleStateProvisioning, + "UPDATING": DavLifecycleStateUpdating, + "AVAILABLE": DavLifecycleStateAvailable, + "TERMINATING": DavLifecycleStateTerminating, + "TERMINATED": DavLifecycleStateTerminated, +} + +var mappingDavLifecycleStateEnumLowerCase = map[string]DavLifecycleStateEnum{ + "provisioning": DavLifecycleStateProvisioning, + "updating": DavLifecycleStateUpdating, + "available": DavLifecycleStateAvailable, + "terminating": DavLifecycleStateTerminating, + "terminated": DavLifecycleStateTerminated, +} + +// GetDavLifecycleStateEnumValues Enumerates the set of values for DavLifecycleStateEnum +func GetDavLifecycleStateEnumValues() []DavLifecycleStateEnum { + values := make([]DavLifecycleStateEnum, 0) + for _, v := range mappingDavLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDavLifecycleStateEnumStringValues Enumerates the set of values in String for DavLifecycleStateEnum +func GetDavLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "UPDATING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingDavLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDavLifecycleStateEnum(val string) (DavLifecycleStateEnum, bool) { + enum, ok := mappingDavLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DavLabelTypeEnum Enum with underlying type: string +type DavLabelTypeEnum string + +// Set of constants representing the allowable values for DavLabelTypeEnum +const ( + DavLabelTypeMpls DavLabelTypeEnum = "MPLS" +) + +var mappingDavLabelTypeEnum = map[string]DavLabelTypeEnum{ + "MPLS": DavLabelTypeMpls, +} + +var mappingDavLabelTypeEnumLowerCase = map[string]DavLabelTypeEnum{ + "mpls": DavLabelTypeMpls, +} + +// GetDavLabelTypeEnumValues Enumerates the set of values for DavLabelTypeEnum +func GetDavLabelTypeEnumValues() []DavLabelTypeEnum { + values := make([]DavLabelTypeEnum, 0) + for _, v := range mappingDavLabelTypeEnum { + values = append(values, v) + } + return values +} + +// GetDavLabelTypeEnumStringValues Enumerates the set of values in String for DavLabelTypeEnum +func GetDavLabelTypeEnumStringValues() []string { + return []string{ + "MPLS", + } +} + +// GetMappingDavLabelTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDavLabelTypeEnum(val string) (DavLabelTypeEnum, bool) { + enum, ok := mappingDavLabelTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host.go new file mode 100644 index 0000000000..ea35da3585 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host.go @@ -0,0 +1,157 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DedicatedVmHost A dedicated virtual machine host lets you host multiple VM instances +// on a dedicated server that is not shared with other tenancies. +type DedicatedVmHost struct { + + // The availability domain the dedicated virtual machine host is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the dedicated virtual machine host. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The dedicated virtual machine host shape. The shape determines the number of CPUs and + // other resources available for VMs. + DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated VM host. + Id *string `mandatory:"true" json:"id"` + + // The current state of the dedicated VM host. + LifecycleState DedicatedVmHostLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the dedicated VM host was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The total OCPUs of the dedicated VM host. + TotalOcpus *float32 `mandatory:"true" json:"totalOcpus"` + + // The available OCPUs of the dedicated VM host. + RemainingOcpus *float32 `mandatory:"true" json:"remainingOcpus"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The fault domain for the dedicated virtual machine host's assigned instances. + // For more information, see Fault Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). + // If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated virtual machine host, + // delete it, and then create a new dedicated virtual machine host in the preferred fault domain. + // To get a list of fault domains, use the `ListFaultDomains` operation in the Identity and Access Management Service API (https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The total memory of the dedicated VM host, in GBs. + TotalMemoryInGBs *float32 `mandatory:"false" json:"totalMemoryInGBs"` + + // The remaining memory of the dedicated VM host, in GBs. + RemainingMemoryInGBs *float32 `mandatory:"false" json:"remainingMemoryInGBs"` +} + +func (m DedicatedVmHost) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DedicatedVmHost) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDedicatedVmHostLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDedicatedVmHostLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DedicatedVmHostLifecycleStateEnum Enum with underlying type: string +type DedicatedVmHostLifecycleStateEnum string + +// Set of constants representing the allowable values for DedicatedVmHostLifecycleStateEnum +const ( + DedicatedVmHostLifecycleStateCreating DedicatedVmHostLifecycleStateEnum = "CREATING" + DedicatedVmHostLifecycleStateActive DedicatedVmHostLifecycleStateEnum = "ACTIVE" + DedicatedVmHostLifecycleStateUpdating DedicatedVmHostLifecycleStateEnum = "UPDATING" + DedicatedVmHostLifecycleStateDeleting DedicatedVmHostLifecycleStateEnum = "DELETING" + DedicatedVmHostLifecycleStateDeleted DedicatedVmHostLifecycleStateEnum = "DELETED" + DedicatedVmHostLifecycleStateFailed DedicatedVmHostLifecycleStateEnum = "FAILED" +) + +var mappingDedicatedVmHostLifecycleStateEnum = map[string]DedicatedVmHostLifecycleStateEnum{ + "CREATING": DedicatedVmHostLifecycleStateCreating, + "ACTIVE": DedicatedVmHostLifecycleStateActive, + "UPDATING": DedicatedVmHostLifecycleStateUpdating, + "DELETING": DedicatedVmHostLifecycleStateDeleting, + "DELETED": DedicatedVmHostLifecycleStateDeleted, + "FAILED": DedicatedVmHostLifecycleStateFailed, +} + +var mappingDedicatedVmHostLifecycleStateEnumLowerCase = map[string]DedicatedVmHostLifecycleStateEnum{ + "creating": DedicatedVmHostLifecycleStateCreating, + "active": DedicatedVmHostLifecycleStateActive, + "updating": DedicatedVmHostLifecycleStateUpdating, + "deleting": DedicatedVmHostLifecycleStateDeleting, + "deleted": DedicatedVmHostLifecycleStateDeleted, + "failed": DedicatedVmHostLifecycleStateFailed, +} + +// GetDedicatedVmHostLifecycleStateEnumValues Enumerates the set of values for DedicatedVmHostLifecycleStateEnum +func GetDedicatedVmHostLifecycleStateEnumValues() []DedicatedVmHostLifecycleStateEnum { + values := make([]DedicatedVmHostLifecycleStateEnum, 0) + for _, v := range mappingDedicatedVmHostLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDedicatedVmHostLifecycleStateEnumStringValues Enumerates the set of values in String for DedicatedVmHostLifecycleStateEnum +func GetDedicatedVmHostLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingDedicatedVmHostLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDedicatedVmHostLifecycleStateEnum(val string) (DedicatedVmHostLifecycleStateEnum, bool) { + enum, ok := mappingDedicatedVmHostLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_shape_summary.go new file mode 100644 index 0000000000..7488e358a8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_shape_summary.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DedicatedVmHostInstanceShapeSummary The shape used to launch instances associated with the dedicated VM host. +type DedicatedVmHostInstanceShapeSummary struct { + + // The name of the virtual machine instance shapes that can be launched on a dedicated VM host. + InstanceShapeName *string `mandatory:"true" json:"instanceShapeName"` + + // The shape's availability domain. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} + +func (m DedicatedVmHostInstanceShapeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DedicatedVmHostInstanceShapeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_summary.go new file mode 100644 index 0000000000..8f38af745a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_instance_summary.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DedicatedVmHostInstanceSummary Condensed instance data when listing instances on a dedicated VM host. +type DedicatedVmHostInstanceSummary struct { + + // The availability domain the virtual machine instance is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the virtual machine instance. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the virtual machine instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The shape of the VM instance. + Shape *string `mandatory:"true" json:"shape"` + + // The date and time the virtual machine instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m DedicatedVmHostInstanceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DedicatedVmHostInstanceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_shape_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_shape_summary.go new file mode 100644 index 0000000000..e28483ddd8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_shape_summary.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DedicatedVmHostShapeSummary The shape used to launch the dedicated virtual machine (VM) host. +type DedicatedVmHostShapeSummary struct { + + // The name of the dedicated VM host shape. You can enumerate all available shapes by calling + // dedicatedVmHostShapes. + DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` + + // The shape's availability domain. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} + +func (m DedicatedVmHostShapeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DedicatedVmHostShapeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_summary.go new file mode 100644 index 0000000000..821d3ceea2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dedicated_vm_host_summary.go @@ -0,0 +1,145 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DedicatedVmHostSummary A dedicated virtual machine (VM) host lets you host multiple instances on a dedicated server that is not shared with other tenancies. +type DedicatedVmHostSummary struct { + + // The availability domain the dedicated VM host is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the dedicated VM host. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The shape of the dedicated VM host. The shape determines the number of CPUs and + // other resources available for VMs. + DedicatedVmHostShape *string `mandatory:"true" json:"dedicatedVmHostShape"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the dedicated VM host. + Id *string `mandatory:"true" json:"id"` + + // The current state of the dedicated VM host. + LifecycleState DedicatedVmHostSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the dedicated VM host was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current available OCPUs of the dedicated VM host. + RemainingOcpus *float32 `mandatory:"true" json:"remainingOcpus"` + + // The current total OCPUs of the dedicated VM host. + TotalOcpus *float32 `mandatory:"true" json:"totalOcpus"` + + // The fault domain for the dedicated VM host's assigned instances. For more information, see Fault Domains. + // If you do not specify the fault domain, the system selects one for you. To change the fault domain for a dedicated VM host, + // delete it and create a new dedicated VM host in the preferred fault domain. + // To get a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API. + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The current total memory of the dedicated VM host, in GBs. + TotalMemoryInGBs *float32 `mandatory:"false" json:"totalMemoryInGBs"` + + // The current available memory of the dedicated VM host, in GBs. + RemainingMemoryInGBs *float32 `mandatory:"false" json:"remainingMemoryInGBs"` +} + +func (m DedicatedVmHostSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DedicatedVmHostSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDedicatedVmHostSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDedicatedVmHostSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DedicatedVmHostSummaryLifecycleStateEnum Enum with underlying type: string +type DedicatedVmHostSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for DedicatedVmHostSummaryLifecycleStateEnum +const ( + DedicatedVmHostSummaryLifecycleStateCreating DedicatedVmHostSummaryLifecycleStateEnum = "CREATING" + DedicatedVmHostSummaryLifecycleStateActive DedicatedVmHostSummaryLifecycleStateEnum = "ACTIVE" + DedicatedVmHostSummaryLifecycleStateUpdating DedicatedVmHostSummaryLifecycleStateEnum = "UPDATING" + DedicatedVmHostSummaryLifecycleStateDeleting DedicatedVmHostSummaryLifecycleStateEnum = "DELETING" + DedicatedVmHostSummaryLifecycleStateDeleted DedicatedVmHostSummaryLifecycleStateEnum = "DELETED" + DedicatedVmHostSummaryLifecycleStateFailed DedicatedVmHostSummaryLifecycleStateEnum = "FAILED" +) + +var mappingDedicatedVmHostSummaryLifecycleStateEnum = map[string]DedicatedVmHostSummaryLifecycleStateEnum{ + "CREATING": DedicatedVmHostSummaryLifecycleStateCreating, + "ACTIVE": DedicatedVmHostSummaryLifecycleStateActive, + "UPDATING": DedicatedVmHostSummaryLifecycleStateUpdating, + "DELETING": DedicatedVmHostSummaryLifecycleStateDeleting, + "DELETED": DedicatedVmHostSummaryLifecycleStateDeleted, + "FAILED": DedicatedVmHostSummaryLifecycleStateFailed, +} + +var mappingDedicatedVmHostSummaryLifecycleStateEnumLowerCase = map[string]DedicatedVmHostSummaryLifecycleStateEnum{ + "creating": DedicatedVmHostSummaryLifecycleStateCreating, + "active": DedicatedVmHostSummaryLifecycleStateActive, + "updating": DedicatedVmHostSummaryLifecycleStateUpdating, + "deleting": DedicatedVmHostSummaryLifecycleStateDeleting, + "deleted": DedicatedVmHostSummaryLifecycleStateDeleted, + "failed": DedicatedVmHostSummaryLifecycleStateFailed, +} + +// GetDedicatedVmHostSummaryLifecycleStateEnumValues Enumerates the set of values for DedicatedVmHostSummaryLifecycleStateEnum +func GetDedicatedVmHostSummaryLifecycleStateEnumValues() []DedicatedVmHostSummaryLifecycleStateEnum { + values := make([]DedicatedVmHostSummaryLifecycleStateEnum, 0) + for _, v := range mappingDedicatedVmHostSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDedicatedVmHostSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for DedicatedVmHostSummaryLifecycleStateEnum +func GetDedicatedVmHostSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingDedicatedVmHostSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDedicatedVmHostSummaryLifecycleStateEnum(val string) (DedicatedVmHostSummaryLifecycleStateEnum, bool) { + enum, ok := mappingDedicatedVmHostSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/default_drg_route_tables.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/default_drg_route_tables.go new file mode 100644 index 0000000000..982103544a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/default_drg_route_tables.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefaultDrgRouteTables The default DRG route table for this DRG. Each network type +// has a default DRG route table. +// You can update a network type to use a different DRG route table, but +// each network type must have a default DRG route table. You cannot delete +// a default DRG route table. +type DefaultDrgRouteTables struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table to be assigned to DRG attachments + // of type VCN on creation. + Vcn *string `mandatory:"false" json:"vcn"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table assigned to DRG attachments + // of type IPSEC_TUNNEL on creation. + IpsecTunnel *string `mandatory:"false" json:"ipsecTunnel"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table to be assigned to DRG attachments + // of type VIRTUAL_CIRCUIT on creation. + VirtualCircuit *string `mandatory:"false" json:"virtualCircuit"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the default DRG route table to be assigned to DRG attachments + // of type REMOTE_PEERING_CONNECTION on creation. + RemotePeeringConnection *string `mandatory:"false" json:"remotePeeringConnection"` +} + +func (m DefaultDrgRouteTables) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DefaultDrgRouteTables) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_one_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_one_parameters.go new file mode 100644 index 0000000000..d248014b56 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_one_parameters.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefaultPhaseOneParameters Default phase one parameters. +type DefaultPhaseOneParameters struct { + + // Default phase one encryption algorithms. + DefaultEncryptionAlgorithms []string `mandatory:"false" json:"defaultEncryptionAlgorithms"` + + // Default phase one authentication algorithms. + DefaultAuthenticationAlgorithms []string `mandatory:"false" json:"defaultAuthenticationAlgorithms"` + + // Default phase one Diffie-Hellman groups. + DefaultDhGroups []string `mandatory:"false" json:"defaultDhGroups"` +} + +func (m DefaultPhaseOneParameters) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DefaultPhaseOneParameters) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_two_parameters.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_two_parameters.go new file mode 100644 index 0000000000..439b8f8df6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/default_phase_two_parameters.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefaultPhaseTwoParameters Default phase two parameters. +type DefaultPhaseTwoParameters struct { + + // Default phase two encryption algorithms. + DefaultEncryptionAlgorithms []string `mandatory:"false" json:"defaultEncryptionAlgorithms"` + + // Default phase two authentication algorithms. + DefaultAuthenticationAlgorithms []string `mandatory:"false" json:"defaultAuthenticationAlgorithms"` + + // Default perfect forward secrecy Diffie-Hellman groups. + DefaultPfsDhGroup *string `mandatory:"false" json:"defaultPfsDhGroup"` +} + +func (m DefaultPhaseTwoParameters) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DefaultPhaseTwoParameters) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_app_catalog_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_app_catalog_subscription_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_app_catalog_subscription_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_app_catalog_subscription_request_response.go index b79db053b5..6dcb374d58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_app_catalog_subscription_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_app_catalog_subscription_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteAppCatalogSubscriptionRequest wrapper for the DeleteAppCatalogSubscription operation @@ -37,6 +39,10 @@ func (request DeleteAppCatalogSubscriptionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteAppCatalogSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request DeleteAppCatalogSubscriptionRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteAppCatalogSubscriptionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteAppCatalogSubscriptionResponse wrapper for the DeleteAppCatalogSubscription operation type DeleteAppCatalogSubscriptionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_backup_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_backup_request_response.go index 71b4178934..9ec4e2f59b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteBootVolumeBackupRequest wrapper for the DeleteBootVolumeBackup operation @@ -36,6 +38,10 @@ func (request DeleteBootVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteBootVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteBootVolumeBackupResponse wrapper for the DeleteBootVolumeBackup operation type DeleteBootVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_kms_key_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_kms_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_kms_key_request_response.go index da73f5e857..67bb76c382 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_kms_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_kms_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteBootVolumeKmsKeyRequest wrapper for the DeleteBootVolumeKmsKey operation @@ -36,6 +38,10 @@ func (request DeleteBootVolumeKmsKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteBootVolumeKmsKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBootVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteBootVolumeKmsKeyResponse wrapper for the DeleteBootVolumeKmsKey operation type DeleteBootVolumeKmsKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go index a3b2924165..8305b71e4d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_boot_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteBootVolumeRequest wrapper for the DeleteBootVolume operation @@ -36,6 +38,10 @@ func (request DeleteBootVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteBootVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteBootVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBootVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteBootVolumeResponse wrapper for the DeleteBootVolume operation type DeleteBootVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go index c7653f4ad2..fa9b5c83c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteByoipRangeRequest wrapper for the DeleteByoipRange operation @@ -36,6 +38,10 @@ func (request DeleteByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteByoipRangeResponse wrapper for the DeleteByoipRange operation type DeleteByoipRangeResponse struct { @@ -61,7 +78,8 @@ type DeleteByoipRangeResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_c3_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_c3_drg_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_c3_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_c3_drg_attachment_request_response.go index 149adb8d34..44a183969c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_c3_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_c3_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteC3DrgAttachmentRequest wrapper for the DeleteC3DrgAttachment operation @@ -36,6 +38,10 @@ func (request DeleteC3DrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteC3DrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteC3DrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteC3DrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteC3DrgAttachmentResponse wrapper for the DeleteC3DrgAttachment operation type DeleteC3DrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_c3_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_c3_drg_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_c3_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_c3_drg_request_response.go index 2e4ac15687..fb9d9e245e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_c3_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_c3_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteC3DrgRequest wrapper for the DeleteC3Drg operation type DeleteC3DrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteC3DrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteC3DrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteC3DrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteC3DrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteC3DrgResponse wrapper for the DeleteC3Drg operation type DeleteC3DrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_capture_filter_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_capture_filter_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_capture_filter_request_response.go index aa7ac8d9be..7b0af55dc6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_capture_filter_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteCaptureFilterRequest wrapper for the DeleteCaptureFilter operation type DeleteCaptureFilterRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. CaptureFilterId *string `mandatory:"true" contributesTo:"path" name:"captureFilterId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteCaptureFilterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteCaptureFilterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCaptureFilterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteCaptureFilterResponse wrapper for the DeleteCaptureFilter operation type DeleteCaptureFilterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_client_vpn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_client_vpn_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_client_vpn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_client_vpn_request_response.go index 7aac7bbd06..01a230042a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_client_vpn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_client_vpn_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteClientVpnRequest wrapper for the DeleteClientVpn operation type DeleteClientVpnRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteClientVpnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteClientVpnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteClientVpnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteClientVpnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteClientVpnResponse wrapper for the DeleteClientVpn operation type DeleteClientVpnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_client_vpn_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_client_vpn_user_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_client_vpn_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_client_vpn_user_request_response.go index 7aa36f57c0..0be4f8e373 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_client_vpn_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_client_vpn_user_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteClientVpnUserRequest wrapper for the DeleteClientVpnUser operation type DeleteClientVpnUserRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // The username of the ClientVpnUser. @@ -39,6 +41,10 @@ func (request DeleteClientVpnUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteClientVpnUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteClientVpnUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteClientVpnUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteClientVpnUserResponse wrapper for the DeleteClientVpnUser operation type DeleteClientVpnUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_capacity_reservation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_capacity_reservation_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_capacity_reservation_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_capacity_reservation_request_response.go index 9dd7db8e91..a6208cb7a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_capacity_reservation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_capacity_reservation_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteComputeCapacityReservationRequest wrapper for the DeleteComputeCapacityReservation operation @@ -36,6 +38,10 @@ func (request DeleteComputeCapacityReservationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteComputeCapacityReservationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteComputeCapacityReservationRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteComputeCapacityReservationResponse wrapper for the DeleteComputeCapacityReservation operation type DeleteComputeCapacityReservationResponse struct { @@ -61,7 +78,8 @@ type DeleteComputeCapacityReservationResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_cluster_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_cluster_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_cluster_request_response.go index ad7b8e6734..2701e10c22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_cluster_request_response.go @@ -1,18 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteComputeClusterRequest wrapper for the DeleteComputeCluster operation type DeleteComputeClusterRequest struct { - // The OCID of the compute cluster. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster is a remote direct memory access (RDMA) network group. + // For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` // Unique identifier for the request. @@ -36,6 +40,10 @@ func (request DeleteComputeClusterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteComputeClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +59,17 @@ func (request DeleteComputeClusterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteComputeClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteComputeClusterResponse wrapper for the DeleteComputeCluster operation type DeleteComputeClusterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_image_capability_schema_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_image_capability_schema_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_image_capability_schema_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_image_capability_schema_request_response.go index 3cbf5837e3..10d8f8704b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_compute_image_capability_schema_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_compute_image_capability_schema_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteComputeImageCapabilitySchemaRequest wrapper for the DeleteComputeImageCapabilitySchema operation @@ -36,6 +38,10 @@ func (request DeleteComputeImageCapabilitySchemaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteComputeImageCapabilitySchemaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteComputeImageCapabilitySchemaRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteComputeImageCapabilitySchemaResponse wrapper for the DeleteComputeImageCapabilitySchema operation type DeleteComputeImageCapabilitySchemaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_console_history_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go index af0d9b4a73..cbba8af6b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_console_history_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteConsoleHistoryRequest wrapper for the DeleteConsoleHistory operation @@ -36,6 +38,10 @@ func (request DeleteConsoleHistoryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteConsoleHistoryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteConsoleHistoryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteConsoleHistoryResponse wrapper for the DeleteConsoleHistory operation type DeleteConsoleHistoryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cpe_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go index ab8ded9a5c..63c88b9cd0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cpe_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteCpeRequest wrapper for the DeleteCpe operation type DeleteCpeRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteCpeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteCpeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteCpeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCpeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteCpeResponse wrapper for the DeleteCpe operation type DeleteCpeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_group_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cross_connect_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_group_request_response.go index f20a366150..9b8dd5cf40 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_group_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteCrossConnectGroupRequest wrapper for the DeleteCrossConnectGroup operation type DeleteCrossConnectGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteCrossConnectGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteCrossConnectGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteCrossConnectGroupResponse wrapper for the DeleteCrossConnectGroup operation type DeleteCrossConnectGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cross_connect_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go index 280d4d688a..55ee29d4b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_cross_connect_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteCrossConnectRequest wrapper for the DeleteCrossConnect operation type DeleteCrossConnectRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteCrossConnectRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteCrossConnectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteCrossConnectRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCrossConnectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteCrossConnectResponse wrapper for the DeleteCrossConnect operation type DeleteCrossConnectResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dav_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dav_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dav_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dav_request_response.go index 936d2c294b..5be8a1487a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dav_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dav_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDavRequest wrapper for the DeleteDav operation @@ -36,6 +38,10 @@ func (request DeleteDavRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDavRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDavRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDavRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDavResponse wrapper for the DeleteDav operation type DeleteDavResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dedicated_vm_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dedicated_vm_host_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dedicated_vm_host_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dedicated_vm_host_request_response.go index 6abe9dc3f0..56eb0a4293 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dedicated_vm_host_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dedicated_vm_host_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDedicatedVmHostRequest wrapper for the DeleteDedicatedVmHost operation @@ -31,6 +33,10 @@ func (request DeleteDedicatedVmHostRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDedicatedVmHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request DeleteDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDedicatedVmHostResponse wrapper for the DeleteDedicatedVmHost operation type DeleteDedicatedVmHostResponse struct { @@ -56,7 +73,8 @@ type DeleteDedicatedVmHostResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dhcp_options_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dhcp_options_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dhcp_options_request_response.go index 1db9f85a70..742ba348b0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_dhcp_options_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDhcpOptionsRequest wrapper for the DeleteDhcpOptions operation type DeleteDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteDhcpOptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDhcpOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDhcpOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDhcpOptionsResponse wrapper for the DeleteDhcpOptions operation type DeleteDhcpOptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go index 9bacec2da7..cc05d1bd0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDrgAttachmentRequest wrapper for the DeleteDrgAttachment operation @@ -36,6 +38,10 @@ func (request DeleteDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDrgAttachmentResponse wrapper for the DeleteDrgAttachment operation type DeleteDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go index 5428476bae..a5dcdafd5e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDrgRequest wrapper for the DeleteDrg operation type DeleteDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDrgResponse wrapper for the DeleteDrg operation type DeleteDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_route_distribution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_route_distribution_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_route_distribution_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_route_distribution_request_response.go index 44d682ae93..148fd9e8f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_route_distribution_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_route_distribution_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDrgRouteDistributionRequest wrapper for the DeleteDrgRouteDistribution operation @@ -36,6 +38,10 @@ func (request DeleteDrgRouteDistributionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDrgRouteDistributionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDrgRouteDistributionRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDrgRouteDistributionResponse wrapper for the DeleteDrgRouteDistribution operation type DeleteDrgRouteDistributionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_route_table_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_route_table_request_response.go index 7436cae875..f24c3c88df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_drg_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_drg_route_table_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDrgRouteTableRequest wrapper for the DeleteDrgRouteTable operation @@ -36,6 +38,10 @@ func (request DeleteDrgRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDrgRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDrgRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDrgRouteTableResponse wrapper for the DeleteDrgRouteTable operation type DeleteDrgRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_endpoint_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_endpoint_service_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_endpoint_service_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_endpoint_service_request_response.go index 399c7f4dea..94813ae3ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_endpoint_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_endpoint_service_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteEndpointServiceRequest wrapper for the DeleteEndpointService operation @@ -36,6 +38,10 @@ func (request DeleteEndpointServiceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteEndpointServiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteEndpointServiceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteEndpointServiceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteEndpointServiceResponse wrapper for the DeleteEndpointService operation type DeleteEndpointServiceResponse struct { @@ -61,7 +78,8 @@ type DeleteEndpointServiceResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_flow_log_config_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_flow_log_config_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_flow_log_config_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_flow_log_config_attachment_request_response.go index 0a255e9908..f8ff239d3d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_flow_log_config_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_flow_log_config_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteFlowLogConfigAttachmentRequest wrapper for the DeleteFlowLogConfigAttachment operation @@ -36,6 +38,10 @@ func (request DeleteFlowLogConfigAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteFlowLogConfigAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteFlowLogConfigAttachmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteFlowLogConfigAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteFlowLogConfigAttachmentResponse wrapper for the DeleteFlowLogConfigAttachment operation type DeleteFlowLogConfigAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_flow_log_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_flow_log_config_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_flow_log_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_flow_log_config_request_response.go index 8aa04febcc..c606ba8372 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_flow_log_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_flow_log_config_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteFlowLogConfigRequest wrapper for the DeleteFlowLogConfig operation @@ -36,6 +38,10 @@ func (request DeleteFlowLogConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteFlowLogConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteFlowLogConfigRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteFlowLogConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteFlowLogConfigResponse wrapper for the DeleteFlowLogConfig operation type DeleteFlowLogConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_i_p_sec_connection_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_i_p_sec_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_i_p_sec_connection_request_response.go index 23bd2eb249..b2f912a828 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_i_p_sec_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteIPSecConnectionRequest wrapper for the DeleteIPSecConnection operation type DeleteIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteIPSecConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteIPSecConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteIPSecConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteIPSecConnectionResponse wrapper for the DeleteIPSecConnection operation type DeleteIPSecConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_image_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go index 9a07f7a9c1..8cecbedb7f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_image_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteImageRequest wrapper for the DeleteImage operation @@ -36,6 +38,10 @@ func (request DeleteImageRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteImageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteImageRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteImageRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteImageResponse wrapper for the DeleteImage operation type DeleteImageResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_instance_configuration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go index a77a0ac5fc..92eb2c4d64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_configuration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInstanceConfigurationRequest wrapper for the DeleteInstanceConfiguration operation @@ -36,6 +38,10 @@ func (request DeleteInstanceConfigurationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInstanceConfigurationRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInstanceConfigurationResponse wrapper for the DeleteInstanceConfiguration operation type DeleteInstanceConfigurationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_console_connection_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_instance_console_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_console_connection_request_response.go index 866cbb0701..7539ea9ee1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_instance_console_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInstanceConsoleConnectionRequest wrapper for the DeleteInstanceConsoleConnection operation @@ -36,6 +38,10 @@ func (request DeleteInstanceConsoleConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInstanceConsoleConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInstanceConsoleConnectionRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInstanceConsoleConnectionResponse wrapper for the DeleteInstanceConsoleConnection operation type DeleteInstanceConsoleConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_dns_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_dns_record_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_dns_record_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_dns_record_request_response.go index 5469ad6926..216c171e52 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_dns_record_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_dns_record_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalDnsRecordRequest wrapper for the DeleteInternalDnsRecord operation @@ -36,6 +38,10 @@ func (request DeleteInternalDnsRecordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalDnsRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternalDnsRecordRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalDnsRecordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalDnsRecordResponse wrapper for the DeleteInternalDnsRecord operation type DeleteInternalDnsRecordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_drg_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_drg_attachment_request_response.go index 201cef24a2..072c51009c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalDrgAttachmentRequest wrapper for the DeleteInternalDrgAttachment operation @@ -36,6 +38,10 @@ func (request DeleteInternalDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternalDrgAttachmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalDrgAttachmentResponse wrapper for the DeleteInternalDrgAttachment operation type DeleteInternalDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_drg_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_drg_request_response.go index b25871c866..58b4e01038 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalDrgRequest wrapper for the DeleteInternalDrg operation @@ -36,6 +38,10 @@ func (request DeleteInternalDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternalDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalDrgResponse wrapper for the DeleteInternalDrg operation type DeleteInternalDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_generic_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_generic_gateway_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_generic_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_generic_gateway_request_response.go index 75e3f0233c..ca12f32d35 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_generic_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_generic_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalGenericGatewayRequest wrapper for the DeleteInternalGenericGateway operation @@ -42,6 +44,10 @@ func (request DeleteInternalGenericGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalGenericGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request DeleteInternalGenericGatewayRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalGenericGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalGenericGatewayResponse wrapper for the DeleteInternalGenericGateway operation type DeleteInternalGenericGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_public_ip_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_public_ip_request_response.go index cf0b754199..fcd8b4b643 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_public_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalPublicIpRequest wrapper for the DeleteInternalPublicIp operation type DeleteInternalPublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal public IP. InternalPublicIpId *string `mandatory:"true" contributesTo:"path" name:"internalPublicIpId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteInternalPublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalPublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternalPublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalPublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalPublicIpResponse wrapper for the DeleteInternalPublicIp operation type DeleteInternalPublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_vnic_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_vnic_attachment_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_vnic_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_vnic_attachment_request_response.go index 5d64080d7e..395799bf77 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_vnic_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_vnic_attachment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalVnicAttachmentRequest wrapper for the DeleteInternalVnicAttachment operation type DeleteInternalVnicAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteInternalVnicAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalVnicAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternalVnicAttachmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalVnicAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalVnicAttachmentResponse wrapper for the DeleteInternalVnicAttachment operation type DeleteInternalVnicAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_vnic_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_vnic_request_response.go index ef03de3a21..41a7fbacc0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internal_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internal_vnic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternalVnicRequest wrapper for the DeleteInternalVnic operation type DeleteInternalVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteInternalVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternalVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternalVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternalVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternalVnicResponse wrapper for the DeleteInternalVnic operation type DeleteInternalVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internet_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go index 4105f5d247..ad5f353ec7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_internet_gateway_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteInternetGatewayRequest wrapper for the DeleteInternetGateway operation type DeleteInternetGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteInternetGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteInternetGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteInternetGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteInternetGatewayResponse wrapper for the DeleteInternetGateway operation type DeleteInternetGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_ipv6_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go index e51b6cdb85..05af45c9fa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_ipv6_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteIpv6Request wrapper for the DeleteIpv6 operation @@ -36,6 +38,10 @@ func (request DeleteIpv6Request) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteIpv6Request) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteIpv6Request) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteIpv6Request) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteIpv6Response wrapper for the DeleteIpv6 operation type DeleteIpv6Response struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_local_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_local_peering_connection_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_local_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_local_peering_connection_request_response.go index bc1fea9961..171752a95c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_local_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_local_peering_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteLocalPeeringConnectionRequest wrapper for the DeleteLocalPeeringConnection operation type DeleteLocalPeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. LocalPeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"localPeeringConnectionId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteLocalPeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteLocalPeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteLocalPeeringConnectionRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteLocalPeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteLocalPeeringConnectionResponse wrapper for the DeleteLocalPeeringConnection operation type DeleteLocalPeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_local_peering_gateway_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_local_peering_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_local_peering_gateway_request_response.go index 73cae3fedb..3bef55893f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_local_peering_gateway_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteLocalPeeringGatewayRequest wrapper for the DeleteLocalPeeringGateway operation type DeleteLocalPeeringGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteLocalPeeringGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteLocalPeeringGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteLocalPeeringGatewayResponse wrapper for the DeleteLocalPeeringGateway operation type DeleteLocalPeeringGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_nat_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go index 3d5b0c8e11..ae03ef58e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_nat_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteNatGatewayRequest wrapper for the DeleteNatGateway operation @@ -36,6 +38,10 @@ func (request DeleteNatGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteNatGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteNatGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteNatGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteNatGatewayResponse wrapper for the DeleteNatGateway operation type DeleteNatGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_network_security_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_network_security_group_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_network_security_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_network_security_group_request_response.go index c62fa0a399..975982c0a5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_network_security_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_network_security_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteNetworkSecurityGroupRequest wrapper for the DeleteNetworkSecurityGroup operation @@ -36,6 +38,10 @@ func (request DeleteNetworkSecurityGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteNetworkSecurityGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteNetworkSecurityGroupResponse wrapper for the DeleteNetworkSecurityGroup operation type DeleteNetworkSecurityGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_access_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_access_gateway_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_access_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_access_gateway_request_response.go index d7c2278032..881080c19d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_access_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_access_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePrivateAccessGatewayRequest wrapper for the DeletePrivateAccessGateway operation @@ -36,6 +38,10 @@ func (request DeletePrivateAccessGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePrivateAccessGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeletePrivateAccessGatewayRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePrivateAccessGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePrivateAccessGatewayResponse wrapper for the DeletePrivateAccessGateway operation type DeletePrivateAccessGatewayResponse struct { @@ -61,7 +78,8 @@ type DeletePrivateAccessGatewayResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_endpoint_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_endpoint_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_endpoint_request_response.go index 77cacf6730..d3c7ba5867 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_endpoint_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_endpoint_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePrivateEndpointRequest wrapper for the DeletePrivateEndpoint operation @@ -43,6 +45,10 @@ func (request DeletePrivateEndpointRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePrivateEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request DeletePrivateEndpointRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePrivateEndpointResponse wrapper for the DeletePrivateEndpoint operation type DeletePrivateEndpointResponse struct { @@ -68,7 +85,8 @@ type DeletePrivateEndpointResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_ip_next_hop_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_next_hop_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_ip_next_hop_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_next_hop_request_response.go index 12d5fdefa2..a527a6c1ec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_ip_next_hop_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_next_hop_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePrivateIpNextHopRequest wrapper for the DeletePrivateIpNextHop operation type DeletePrivateIpNextHopRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeletePrivateIpNextHopRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePrivateIpNextHopRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeletePrivateIpNextHopRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePrivateIpNextHopRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePrivateIpNextHopResponse wrapper for the DeletePrivateIpNextHop operation type DeletePrivateIpNextHopResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go index d80b38f90c..15b2c3da04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_private_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePrivateIpRequest wrapper for the DeletePrivateIp operation type DeletePrivateIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeletePrivateIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePrivateIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeletePrivateIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePrivateIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePrivateIpResponse wrapper for the DeletePrivateIp operation type DeletePrivateIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_public_ip_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_pool_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_public_ip_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_pool_request_response.go index 73a754364e..c6e00b3145 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_public_ip_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePublicIpPoolRequest wrapper for the DeletePublicIpPool operation @@ -36,6 +38,10 @@ func (request DeletePublicIpPoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePublicIpPoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeletePublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePublicIpPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePublicIpPoolResponse wrapper for the DeletePublicIpPool operation type DeletePublicIpPoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go index 5957a2934f..3ef26cdeda 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_public_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePublicIpRequest wrapper for the DeletePublicIp operation type DeletePublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeletePublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeletePublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePublicIpResponse wrapper for the DeletePublicIp operation type DeletePublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_remote_peering_connection_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_remote_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_remote_peering_connection_request_response.go index 9ae3ab327d..8a62f8995d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_remote_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_remote_peering_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteRemotePeeringConnectionRequest wrapper for the DeleteRemotePeeringConnection operation type DeleteRemotePeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteRemotePeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteRemotePeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteRemotePeeringConnectionRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteRemotePeeringConnectionResponse wrapper for the DeleteRemotePeeringConnection operation type DeleteRemotePeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_reverse_connection_nat_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_reverse_connection_nat_ip_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_reverse_connection_nat_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_reverse_connection_nat_ip_request_response.go index c194bb9963..88427f6d6e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_reverse_connection_nat_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_reverse_connection_nat_ip_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteReverseConnectionNatIpRequest wrapper for the DeleteReverseConnectionNatIp operation @@ -34,6 +36,10 @@ func (request DeleteReverseConnectionNatIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteReverseConnectionNatIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request DeleteReverseConnectionNatIpRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteReverseConnectionNatIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteReverseConnectionNatIpResponse wrapper for the DeleteReverseConnectionNatIp operation type DeleteReverseConnectionNatIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go index bc791ff353..9a0e52158e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_route_table_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteRouteTableRequest wrapper for the DeleteRouteTable operation type DeleteRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteRouteTableResponse wrapper for the DeleteRouteTable operation type DeleteRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_scan_proxy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_scan_proxy_request_response.go new file mode 100644 index 0000000000..d5384bb815 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_scan_proxy_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteScanProxyRequest wrapper for the DeleteScanProxy operation +type DeleteScanProxyRequest struct { + + // A unique ID that identifies a scanProxy within a privateEndpoint. + ScanProxyId *string `mandatory:"true" contributesTo:"path" name:"scanProxyId"` + + // The private endpoint's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + PrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"privateEndpointId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Indicates whether Private Endpoint operation is being triggered in Management mode. + IsManagementMode *bool `mandatory:"false" contributesTo:"query" name:"isManagementMode"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteScanProxyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteScanProxyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteScanProxyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteScanProxyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteScanProxyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteScanProxyResponse wrapper for the DeleteScanProxy operation +type DeleteScanProxyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response DeleteScanProxyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteScanProxyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_security_list_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go index 5b5a7b2f0f..aaf97d1c66 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_security_list_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteSecurityListRequest wrapper for the DeleteSecurityList operation type DeleteSecurityListRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteSecurityListRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteSecurityListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteSecurityListRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteSecurityListRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteSecurityListResponse wrapper for the DeleteSecurityList operation type DeleteSecurityListResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_service_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go index 3365f619a0..e0ed1aae7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_service_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteServiceGatewayRequest wrapper for the DeleteServiceGateway operation @@ -36,6 +38,10 @@ func (request DeleteServiceGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteServiceGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteServiceGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteServiceGatewayResponse wrapper for the DeleteServiceGateway operation type DeleteServiceGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_subnet_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go index 22ee63eb7e..7260aa8c4e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_subnet_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteSubnetRequest wrapper for the DeleteSubnet operation type DeleteSubnetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteSubnetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteSubnetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteSubnetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteSubnetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteSubnetResponse wrapper for the DeleteSubnet operation type DeleteSubnetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_drg_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_drg_attachment_request_response.go index 5e68d4ae5d..188a8e4549 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVcnDrgAttachmentRequest wrapper for the DeleteVcnDrgAttachment operation @@ -36,6 +38,10 @@ func (request DeleteVcnDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVcnDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVcnDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVcnDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVcnDrgAttachmentResponse wrapper for the DeleteVcnDrgAttachment operation type DeleteVcnDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_drg_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_drg_request_response.go index 26f19cc550..f632e9c830 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVcnDrgRequest wrapper for the DeleteVcnDrg operation type DeleteVcnDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteVcnDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVcnDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVcnDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVcnDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVcnDrgResponse wrapper for the DeleteVcnDrg operation type DeleteVcnDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go index 54a9682efd..00ac63ee0a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vcn_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVcnRequest wrapper for the DeleteVcn operation @@ -36,6 +38,10 @@ func (request DeleteVcnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVcnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVcnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVcnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVcnResponse wrapper for the DeleteVcn operation type DeleteVcnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_public_prefix_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_public_prefix_details.go new file mode 100644 index 0000000000..9e88cfa126 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_public_prefix_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DeleteVirtualCircuitPublicPrefixDetails The representation of DeleteVirtualCircuitPublicPrefixDetails +type DeleteVirtualCircuitPublicPrefixDetails struct { + + // An individual public IP prefix (CIDR) to remove from the public virtual circuit. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` +} + +func (m DeleteVirtualCircuitPublicPrefixDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DeleteVirtualCircuitPublicPrefixDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go index e55523bd8a..d2c783f124 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_virtual_circuit_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVirtualCircuitRequest wrapper for the DeleteVirtualCircuit operation type DeleteVirtualCircuitRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteVirtualCircuitRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVirtualCircuitRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVirtualCircuitRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVirtualCircuitResponse wrapper for the DeleteVirtualCircuit operation type DeleteVirtualCircuitResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vlan_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go index 71cc2b2c71..d8f2ad924d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vlan_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVlanRequest wrapper for the DeleteVlan operation @@ -36,6 +38,10 @@ func (request DeleteVlanRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVlanRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVlanRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVlanResponse wrapper for the DeleteVlan operation type DeleteVlanResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vnic_worker_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vnic_worker_request_response.go index a390890565..3e9169a096 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVnicWorkerRequest wrapper for the DeleteVnicWorker operation type DeleteVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVnicWorkerResponse wrapper for the DeleteVnicWorker operation type DeleteVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_policy_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_policy_assignment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_policy_assignment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_policy_assignment_request_response.go index b7d2b34933..ff7e0dfdd5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_policy_assignment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_policy_assignment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeBackupPolicyAssignmentRequest wrapper for the DeleteVolumeBackupPolicyAssignment operation @@ -36,6 +38,10 @@ func (request DeleteVolumeBackupPolicyAssignmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeBackupPolicyAssignmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeBackupPolicyAssignmentRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeBackupPolicyAssignmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeBackupPolicyAssignmentResponse wrapper for the DeleteVolumeBackupPolicyAssignment operation type DeleteVolumeBackupPolicyAssignmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_policy_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_policy_request_response.go index 4d8b0e565f..9fe270a2c2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeBackupPolicyRequest wrapper for the DeleteVolumeBackupPolicy operation @@ -36,6 +38,10 @@ func (request DeleteVolumeBackupPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeBackupPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeBackupPolicyResponse wrapper for the DeleteVolumeBackupPolicy operation type DeleteVolumeBackupPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go index 3d9922ada4..cdc52e1c69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeBackupRequest wrapper for the DeleteVolumeBackup operation @@ -36,6 +38,10 @@ func (request DeleteVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeBackupResponse wrapper for the DeleteVolumeBackup operation type DeleteVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_group_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_backup_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_group_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_backup_request_response.go index 832af0feb1..1c9804e3f6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_group_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeGroupBackupRequest wrapper for the DeleteVolumeGroupBackup operation @@ -36,6 +38,10 @@ func (request DeleteVolumeGroupBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeGroupBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeGroupBackupResponse wrapper for the DeleteVolumeGroupBackup operation type DeleteVolumeGroupBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go index 2a6a0e4af2..9a9970446c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeGroupRequest wrapper for the DeleteVolumeGroup operation @@ -36,6 +38,10 @@ func (request DeleteVolumeGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeGroupResponse wrapper for the DeleteVolumeGroup operation type DeleteVolumeGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_kms_key_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_kms_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_kms_key_request_response.go index 5a4dab05a2..53897bc936 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_kms_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_kms_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeKmsKeyRequest wrapper for the DeleteVolumeKmsKey operation @@ -36,6 +38,10 @@ func (request DeleteVolumeKmsKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeKmsKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeKmsKeyResponse wrapper for the DeleteVolumeKmsKey operation type DeleteVolumeKmsKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go index 4563888ea6..327ea863b7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/delete_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteVolumeRequest wrapper for the DeleteVolume operation @@ -36,6 +38,10 @@ func (request DeleteVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteVolumeResponse wrapper for the DeleteVolume operation type DeleteVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vtap_request_response.go new file mode 100644 index 0000000000..8a90a63465 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/delete_vtap_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteVtapRequest wrapper for the DeleteVtap operation +type DeleteVtapRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. + VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteVtapRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteVtapRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteVtapRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteVtapRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteVtapRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteVtapResponse wrapper for the DeleteVtap operation +type DeleteVtapResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response DeleteVtapResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteVtapResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_boot_volume_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_boot_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_boot_volume_request_response.go index 03b33a8bf2..954e72e07e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_boot_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachBootVolumeRequest wrapper for the DetachBootVolume operation @@ -36,6 +38,10 @@ func (request DetachBootVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachBootVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DetachBootVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachBootVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachBootVolumeResponse wrapper for the DetachBootVolume operation type DetachBootVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_dav_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_dav_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_dav_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_dav_request_response.go index e2d2a5860f..c5fc854ed6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_dav_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_dav_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachDavRequest wrapper for the DetachDav operation @@ -43,6 +45,10 @@ func (request DetachDavRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachDavRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request DetachDavRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachDavRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachDavResponse wrapper for the DetachDav operation type DetachDavResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_details.go new file mode 100644 index 0000000000..4345977b0c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DetachInstancePoolInstanceDetails An instance that is to be detached from an instance pool. +type DetachInstancePoolInstanceDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // Whether to decrease the size of the instance pool when the instance is detached. If `true`, the + // pool size is decreased. If `false`, the pool will provision a new, replacement instance + // using the pool's instance configuration as a template. Default is `true`. + IsDecrementSize *bool `mandatory:"false" json:"isDecrementSize"` + + // Whether to permanently terminate (delete) the instance and its attached boot volume + // when detaching it from the instance pool. Default is `false`. + IsAutoTerminate *bool `mandatory:"false" json:"isAutoTerminate"` +} + +func (m DetachInstancePoolInstanceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DetachInstancePoolInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_request_response.go index a0c1bb5e23..a9d00348bb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_instance_pool_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_instance_pool_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachInstancePoolInstanceRequest wrapper for the DetachInstancePoolInstance operation @@ -41,6 +43,10 @@ func (request DetachInstancePoolInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachInstancePoolInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request DetachInstancePoolInstanceRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachInstancePoolInstanceResponse wrapper for the DetachInstancePoolInstance operation type DetachInstancePoolInstanceResponse struct { @@ -66,7 +83,8 @@ type DetachInstancePoolInstanceResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_details.go new file mode 100644 index 0000000000..629a659c27 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DetachLoadBalancerDetails Represents a load balancer that is to be detached from an instance pool. +type DetachLoadBalancerDetails struct { + + // The OCID of the load balancer to detach from the instance pool. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The name of the backend set on the load balancer to detach from the instance pool. + BackendSetName *string `mandatory:"true" json:"backendSetName"` +} + +func (m DetachLoadBalancerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DetachLoadBalancerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go index 239cd100cf..c5b1e5ccfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachLoadBalancerRequest wrapper for the DetachLoadBalancer operation @@ -46,6 +48,10 @@ func (request DetachLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request DetachLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachLoadBalancerResponse wrapper for the DetachLoadBalancer operation type DetachLoadBalancerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_service_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_service_id_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go index f05d90e696..35396a377d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_service_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_service_id_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachServiceIdRequest wrapper for the DetachServiceId operation @@ -39,6 +41,10 @@ func (request DetachServiceIdRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachServiceIdRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DetachServiceIdRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachServiceIdRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachServiceIdResponse wrapper for the DetachServiceId operation type DetachServiceIdResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_details.go new file mode 100644 index 0000000000..ee36ca4411 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DetachVnicFromDestinationSmartNicDetails This structure is used when detaching VNIC from destination smartNIC. +type DetachVnicFromDestinationSmartNicDetails struct { + + // Migration session ID associated with the VNIC getting live migrated + MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` +} + +func (m DetachVnicFromDestinationSmartNicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DetachVnicFromDestinationSmartNicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_request_response.go index c36430d42c..bb34c8e9fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_destination_smart_nic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_destination_smart_nic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachVnicFromDestinationSmartNicRequest wrapper for the DetachVnicFromDestinationSmartNic operation type DetachVnicFromDestinationSmartNicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // Request to detach internal VNIC from destination smart NIC for live migration @@ -46,6 +48,10 @@ func (request DetachVnicFromDestinationSmartNicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachVnicFromDestinationSmartNicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request DetachVnicFromDestinationSmartNicRequest) RetryPolicy() *common.Re return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachVnicFromDestinationSmartNicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachVnicFromDestinationSmartNicResponse wrapper for the DetachVnicFromDestinationSmartNic operation type DetachVnicFromDestinationSmartNicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_details.go new file mode 100644 index 0000000000..7368ed5a5f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DetachVnicFromSourceSmartNicDetails This structure is used when detaching VNIC from source smartNIC. +type DetachVnicFromSourceSmartNicDetails struct { + + // Migration session ID associated with the VNIC getting live migrated + MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` +} + +func (m DetachVnicFromSourceSmartNicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DetachVnicFromSourceSmartNicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_request_response.go index cf425adc82..f4488ab571 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_from_source_smart_nic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_from_source_smart_nic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachVnicFromSourceSmartNicRequest wrapper for the DetachVnicFromSourceSmartNic operation type DetachVnicFromSourceSmartNicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // Request to detach internal VNIC from source smart NIC for live migration @@ -46,6 +48,10 @@ func (request DetachVnicFromSourceSmartNicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachVnicFromSourceSmartNicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request DetachVnicFromSourceSmartNicRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachVnicFromSourceSmartNicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachVnicFromSourceSmartNicResponse wrapper for the DetachVnicFromSourceSmartNic operation type DetachVnicFromSourceSmartNicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go index 2f282abe79..acd8ca9650 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachVnicRequest wrapper for the DetachVnic operation @@ -36,6 +38,10 @@ func (request DetachVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DetachVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachVnicResponse wrapper for the DetachVnic operation type DetachVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_worker_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_worker_request_response.go index 5ac9d58835..0d073a268f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachVnicWorkerRequest wrapper for the DetachVnicWorker operation type DetachVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -43,6 +45,10 @@ func (request DetachVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request DetachVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachVnicWorkerResponse wrapper for the DetachVnicWorker operation type DetachVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/detach_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go index 65fe77e568..6567bec48e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/detach_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detach_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DetachVolumeRequest wrapper for the DetachVolume operation @@ -36,6 +38,10 @@ func (request DetachVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DetachVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DetachVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DetachVolumeResponse wrapper for the DetachVolume operation type DetachVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/detached_volume_autotune_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/detached_volume_autotune_policy.go new file mode 100644 index 0000000000..8e8a7755b8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/detached_volume_autotune_policy.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DetachedVolumeAutotunePolicy Volume's performace will be tuned to the lower cost settings once detached. +type DetachedVolumeAutotunePolicy struct { +} + +func (m DetachedVolumeAutotunePolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DetachedVolumeAutotunePolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DetachedVolumeAutotunePolicy) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDetachedVolumeAutotunePolicy DetachedVolumeAutotunePolicy + s := struct { + DiscriminatorParam string `json:"autotuneType"` + MarshalTypeDetachedVolumeAutotunePolicy + }{ + "DETACHED_VOLUME", + (MarshalTypeDetachedVolumeAutotunePolicy)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/device.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/device.go new file mode 100644 index 0000000000..3e94728b43 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/device.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Device Device Path corresponding to the block devices attached to instances having a name and isAvailable flag. +type Device struct { + + // The device name. + Name *string `mandatory:"true" json:"name"` + + // The flag denoting whether device is available. + IsAvailable *bool `mandatory:"true" json:"isAvailable"` +} + +func (m Device) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Device) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_dns_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_dns_option.go new file mode 100644 index 0000000000..a2473a8563 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_dns_option.go @@ -0,0 +1,125 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DhcpDnsOption DHCP option for specifying how DNS (hostname resolution) is handled in the subnets in the VCN. +// For more information, see +// DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). +type DhcpDnsOption struct { + + // If you set `serverType` to `CustomDnsServer`, specify the + // IP address of at least one DNS server of your choice (three maximum). + CustomDnsServers []string `mandatory:"false" json:"customDnsServers"` + + // * **VcnLocal:** Reserved for future use. + // * **VcnLocalPlusInternet:** Also referred to as "Internet and VCN Resolver". + // Instances can resolve internet hostnames (no internet gateway is required), + // and can resolve hostnames of instances in the VCN. This is the default + // value in the default set of DHCP options in the VCN. For the Internet and + // VCN Resolver to work across the VCN, there must also be a DNS label set for + // the VCN, a DNS label set for each subnet, and a hostname for each instance. + // The Internet and VCN Resolver also enables reverse DNS lookup, which lets + // you determine the hostname corresponding to the private IP address. For more + // information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // * **CustomDnsServer:** Instances use a DNS server of your choice (three + // maximum). + ServerType DhcpDnsOptionServerTypeEnum `mandatory:"true" json:"serverType"` +} + +func (m DhcpDnsOption) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DhcpDnsOption) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDhcpDnsOptionServerTypeEnum(string(m.ServerType)); !ok && m.ServerType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServerType: %s. Supported values are: %s.", m.ServerType, strings.Join(GetDhcpDnsOptionServerTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DhcpDnsOption) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDhcpDnsOption DhcpDnsOption + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeDhcpDnsOption + }{ + "DomainNameServer", + (MarshalTypeDhcpDnsOption)(m), + } + + return json.Marshal(&s) +} + +// DhcpDnsOptionServerTypeEnum Enum with underlying type: string +type DhcpDnsOptionServerTypeEnum string + +// Set of constants representing the allowable values for DhcpDnsOptionServerTypeEnum +const ( + DhcpDnsOptionServerTypeVcnlocal DhcpDnsOptionServerTypeEnum = "VcnLocal" + DhcpDnsOptionServerTypeVcnlocalplusinternet DhcpDnsOptionServerTypeEnum = "VcnLocalPlusInternet" + DhcpDnsOptionServerTypeCustomdnsserver DhcpDnsOptionServerTypeEnum = "CustomDnsServer" +) + +var mappingDhcpDnsOptionServerTypeEnum = map[string]DhcpDnsOptionServerTypeEnum{ + "VcnLocal": DhcpDnsOptionServerTypeVcnlocal, + "VcnLocalPlusInternet": DhcpDnsOptionServerTypeVcnlocalplusinternet, + "CustomDnsServer": DhcpDnsOptionServerTypeCustomdnsserver, +} + +var mappingDhcpDnsOptionServerTypeEnumLowerCase = map[string]DhcpDnsOptionServerTypeEnum{ + "vcnlocal": DhcpDnsOptionServerTypeVcnlocal, + "vcnlocalplusinternet": DhcpDnsOptionServerTypeVcnlocalplusinternet, + "customdnsserver": DhcpDnsOptionServerTypeCustomdnsserver, +} + +// GetDhcpDnsOptionServerTypeEnumValues Enumerates the set of values for DhcpDnsOptionServerTypeEnum +func GetDhcpDnsOptionServerTypeEnumValues() []DhcpDnsOptionServerTypeEnum { + values := make([]DhcpDnsOptionServerTypeEnum, 0) + for _, v := range mappingDhcpDnsOptionServerTypeEnum { + values = append(values, v) + } + return values +} + +// GetDhcpDnsOptionServerTypeEnumStringValues Enumerates the set of values in String for DhcpDnsOptionServerTypeEnum +func GetDhcpDnsOptionServerTypeEnumStringValues() []string { + return []string{ + "VcnLocal", + "VcnLocalPlusInternet", + "CustomDnsServer", + } +} + +// GetMappingDhcpDnsOptionServerTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDhcpDnsOptionServerTypeEnum(val string) (DhcpDnsOptionServerTypeEnum, bool) { + enum, ok := mappingDhcpDnsOptionServerTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_option.go new file mode 100644 index 0000000000..a66e647daa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_option.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DhcpOption A single DHCP option according to RFC 1533 (https://tools.ietf.org/html/rfc1533). +// The two options available to use are DhcpDnsOption +// and DhcpSearchDomainOption. For more +// information, see DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm) +// and DHCP Options (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). +type DhcpOption interface { +} + +type dhcpoption struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *dhcpoption) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerdhcpoption dhcpoption + s := struct { + Model Unmarshalerdhcpoption + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *dhcpoption) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "DomainNameServer": + mm := DhcpDnsOption{} + err = json.Unmarshal(data, &mm) + return mm, err + case "SearchDomain": + mm := DhcpSearchDomainOption{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for DhcpOption: %s.", m.Type) + return *m, nil + } +} + +func (m dhcpoption) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m dhcpoption) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_options.go new file mode 100644 index 0000000000..5ce8948e85 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_options.go @@ -0,0 +1,243 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DhcpOptions A set of DHCP options. Used by the VCN to automatically provide configuration +// information to the instances when they boot up. There are two options you can set: +// - DhcpDnsOption: Lets you specify how DNS (hostname resolution) is +// handled in the subnets in your VCN. +// - DhcpSearchDomainOption: Lets you specify +// a search domain name to use for DNS queries. +// For more information, see DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm) +// and DHCP Options (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingDHCP.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type DhcpOptions struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the set of DHCP options. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)) for the set of DHCP options. + Id *string `mandatory:"true" json:"id"` + + // The current state of the set of DHCP options. + LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The collection of individual DHCP options. + Options []DhcpOption `mandatory:"true" json:"options"` + + // Date and time the set of DHCP options was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the set of DHCP options belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The search domain name type of DHCP options + DomainNameType DhcpOptionsDomainNameTypeEnum `mandatory:"false" json:"domainNameType,omitempty"` +} + +func (m DhcpOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DhcpOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDhcpOptionsLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDhcpOptionsLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingDhcpOptionsDomainNameTypeEnum(string(m.DomainNameType)); !ok && m.DomainNameType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DomainNameType: %s. Supported values are: %s.", m.DomainNameType, strings.Join(GetDhcpOptionsDomainNameTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *DhcpOptions) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + DomainNameType DhcpOptionsDomainNameTypeEnum `json:"domainNameType"` + CompartmentId *string `json:"compartmentId"` + Id *string `json:"id"` + LifecycleState DhcpOptionsLifecycleStateEnum `json:"lifecycleState"` + Options []dhcpoption `json:"options"` + TimeCreated *common.SDKTime `json:"timeCreated"` + VcnId *string `json:"vcnId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.DomainNameType = model.DomainNameType + + m.CompartmentId = model.CompartmentId + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.Options = make([]DhcpOption, len(model.Options)) + for i, n := range model.Options { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Options[i] = nn.(DhcpOption) + } else { + m.Options[i] = nil + } + } + + m.TimeCreated = model.TimeCreated + + m.VcnId = model.VcnId + + return +} + +// DhcpOptionsLifecycleStateEnum Enum with underlying type: string +type DhcpOptionsLifecycleStateEnum string + +// Set of constants representing the allowable values for DhcpOptionsLifecycleStateEnum +const ( + DhcpOptionsLifecycleStateProvisioning DhcpOptionsLifecycleStateEnum = "PROVISIONING" + DhcpOptionsLifecycleStateAvailable DhcpOptionsLifecycleStateEnum = "AVAILABLE" + DhcpOptionsLifecycleStateTerminating DhcpOptionsLifecycleStateEnum = "TERMINATING" + DhcpOptionsLifecycleStateTerminated DhcpOptionsLifecycleStateEnum = "TERMINATED" +) + +var mappingDhcpOptionsLifecycleStateEnum = map[string]DhcpOptionsLifecycleStateEnum{ + "PROVISIONING": DhcpOptionsLifecycleStateProvisioning, + "AVAILABLE": DhcpOptionsLifecycleStateAvailable, + "TERMINATING": DhcpOptionsLifecycleStateTerminating, + "TERMINATED": DhcpOptionsLifecycleStateTerminated, +} + +var mappingDhcpOptionsLifecycleStateEnumLowerCase = map[string]DhcpOptionsLifecycleStateEnum{ + "provisioning": DhcpOptionsLifecycleStateProvisioning, + "available": DhcpOptionsLifecycleStateAvailable, + "terminating": DhcpOptionsLifecycleStateTerminating, + "terminated": DhcpOptionsLifecycleStateTerminated, +} + +// GetDhcpOptionsLifecycleStateEnumValues Enumerates the set of values for DhcpOptionsLifecycleStateEnum +func GetDhcpOptionsLifecycleStateEnumValues() []DhcpOptionsLifecycleStateEnum { + values := make([]DhcpOptionsLifecycleStateEnum, 0) + for _, v := range mappingDhcpOptionsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDhcpOptionsLifecycleStateEnumStringValues Enumerates the set of values in String for DhcpOptionsLifecycleStateEnum +func GetDhcpOptionsLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingDhcpOptionsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDhcpOptionsLifecycleStateEnum(val string) (DhcpOptionsLifecycleStateEnum, bool) { + enum, ok := mappingDhcpOptionsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DhcpOptionsDomainNameTypeEnum Enum with underlying type: string +type DhcpOptionsDomainNameTypeEnum string + +// Set of constants representing the allowable values for DhcpOptionsDomainNameTypeEnum +const ( + DhcpOptionsDomainNameTypeSubnetDomain DhcpOptionsDomainNameTypeEnum = "SUBNET_DOMAIN" + DhcpOptionsDomainNameTypeVcnDomain DhcpOptionsDomainNameTypeEnum = "VCN_DOMAIN" + DhcpOptionsDomainNameTypeCustomDomain DhcpOptionsDomainNameTypeEnum = "CUSTOM_DOMAIN" +) + +var mappingDhcpOptionsDomainNameTypeEnum = map[string]DhcpOptionsDomainNameTypeEnum{ + "SUBNET_DOMAIN": DhcpOptionsDomainNameTypeSubnetDomain, + "VCN_DOMAIN": DhcpOptionsDomainNameTypeVcnDomain, + "CUSTOM_DOMAIN": DhcpOptionsDomainNameTypeCustomDomain, +} + +var mappingDhcpOptionsDomainNameTypeEnumLowerCase = map[string]DhcpOptionsDomainNameTypeEnum{ + "subnet_domain": DhcpOptionsDomainNameTypeSubnetDomain, + "vcn_domain": DhcpOptionsDomainNameTypeVcnDomain, + "custom_domain": DhcpOptionsDomainNameTypeCustomDomain, +} + +// GetDhcpOptionsDomainNameTypeEnumValues Enumerates the set of values for DhcpOptionsDomainNameTypeEnum +func GetDhcpOptionsDomainNameTypeEnumValues() []DhcpOptionsDomainNameTypeEnum { + values := make([]DhcpOptionsDomainNameTypeEnum, 0) + for _, v := range mappingDhcpOptionsDomainNameTypeEnum { + values = append(values, v) + } + return values +} + +// GetDhcpOptionsDomainNameTypeEnumStringValues Enumerates the set of values in String for DhcpOptionsDomainNameTypeEnum +func GetDhcpOptionsDomainNameTypeEnumStringValues() []string { + return []string{ + "SUBNET_DOMAIN", + "VCN_DOMAIN", + "CUSTOM_DOMAIN", + } +} + +// GetMappingDhcpOptionsDomainNameTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDhcpOptionsDomainNameTypeEnum(val string) (DhcpOptionsDomainNameTypeEnum, bool) { + enum, ok := mappingDhcpOptionsDomainNameTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_search_domain_option.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_search_domain_option.go new file mode 100644 index 0000000000..47ebe590a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dhcp_search_domain_option.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DhcpSearchDomainOption DHCP option for specifying a search domain name for DNS queries. For more information, see +// DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). +type DhcpSearchDomainOption struct { + + // A single search domain name according to RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). During a DNS query, + // the OS will append this search domain name to the value being queried. + // If you set DhcpDnsOption to `VcnLocalPlusInternet`, + // and you assign a DNS label to the VCN during creation, the search domain name in the + // VCN's default set of DHCP options is automatically set to the VCN domain + // (for example, `vcn1.oraclevcn.com`). + // If you don't want to use a search domain name, omit this option from the + // set of DHCP options. Do not include this option with an empty list + // of search domain names, or with an empty string as the value for any search + // domain name. + SearchDomainNames []string `mandatory:"true" json:"searchDomainNames"` +} + +func (m DhcpSearchDomainOption) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DhcpSearchDomainOption) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DhcpSearchDomainOption) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDhcpSearchDomainOption DhcpSearchDomainOption + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeDhcpSearchDomainOption + }{ + "SearchDomain", + (MarshalTypeDhcpSearchDomainOption)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/disable_reverse_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/disable_reverse_connections_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/disable_reverse_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/disable_reverse_connections_request_response.go index d3b429efdf..2233f66a36 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/disable_reverse_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/disable_reverse_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DisableReverseConnectionsRequest wrapper for the DisableReverseConnections operation @@ -43,6 +45,10 @@ func (request DisableReverseConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DisableReverseConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request DisableReverseConnectionsRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DisableReverseConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DisableReverseConnectionsResponse wrapper for the DisableReverseConnections operation type DisableReverseConnectionsResponse struct { @@ -74,7 +91,8 @@ type DisableReverseConnectionsResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/disable_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/disable_vnic_worker_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/disable_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/disable_vnic_worker_request_response.go index 9dc954aa0b..a81df84208 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/disable_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/disable_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DisableVnicWorkerRequest wrapper for the DisableVnicWorker operation type DisableVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DisableVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DisableVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DisableVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DisableVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DisableVnicWorkerResponse wrapper for the DisableVnicWorker operation type DisableVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dns_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dns_config_details.go new file mode 100644 index 0000000000..b7f3ce464a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dns_config_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DnsConfigDetails The config of DNS server for ClientVPN in detail. +type DnsConfigDetails struct { + + // Whether to override assigned DNS server to private DNS server. + IsOverrideDns *bool `mandatory:"false" json:"isOverrideDns"` + + // List of IP address of DNS + DnsServers []string `mandatory:"false" json:"dnsServers"` +} + +func (m DnsConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DnsConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/dpd_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/dpd_config.go new file mode 100644 index 0000000000..b5d61fce97 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/dpd_config.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DpdConfig These configuration details are used for dead peer detection (DPD). DPD periodically checks the stability of the connection to the customer premises (CPE), and may be used to detect that the link to the CPE has gone down. +type DpdConfig struct { + + // This option defines whether DPD can be initiated from the Oracle side of the connection. + DpdMode DpdConfigDpdModeEnum `mandatory:"false" json:"dpdMode,omitempty"` + + // DPD timeout in seconds. This sets the longest interval between CPE device health messages before the IPSec connection indicates it has lost contact with the CPE. The default is 20 seconds. + DpdTimeoutInSec *int `mandatory:"false" json:"dpdTimeoutInSec"` +} + +func (m DpdConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DpdConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDpdConfigDpdModeEnum(string(m.DpdMode)); !ok && m.DpdMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DpdMode: %s. Supported values are: %s.", m.DpdMode, strings.Join(GetDpdConfigDpdModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DpdConfigDpdModeEnum Enum with underlying type: string +type DpdConfigDpdModeEnum string + +// Set of constants representing the allowable values for DpdConfigDpdModeEnum +const ( + DpdConfigDpdModeInitiateAndRespond DpdConfigDpdModeEnum = "INITIATE_AND_RESPOND" + DpdConfigDpdModeRespondOnly DpdConfigDpdModeEnum = "RESPOND_ONLY" +) + +var mappingDpdConfigDpdModeEnum = map[string]DpdConfigDpdModeEnum{ + "INITIATE_AND_RESPOND": DpdConfigDpdModeInitiateAndRespond, + "RESPOND_ONLY": DpdConfigDpdModeRespondOnly, +} + +var mappingDpdConfigDpdModeEnumLowerCase = map[string]DpdConfigDpdModeEnum{ + "initiate_and_respond": DpdConfigDpdModeInitiateAndRespond, + "respond_only": DpdConfigDpdModeRespondOnly, +} + +// GetDpdConfigDpdModeEnumValues Enumerates the set of values for DpdConfigDpdModeEnum +func GetDpdConfigDpdModeEnumValues() []DpdConfigDpdModeEnum { + values := make([]DpdConfigDpdModeEnum, 0) + for _, v := range mappingDpdConfigDpdModeEnum { + values = append(values, v) + } + return values +} + +// GetDpdConfigDpdModeEnumStringValues Enumerates the set of values in String for DpdConfigDpdModeEnum +func GetDpdConfigDpdModeEnumStringValues() []string { + return []string{ + "INITIATE_AND_RESPOND", + "RESPOND_ONLY", + } +} + +// GetMappingDpdConfigDpdModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDpdConfigDpdModeEnum(val string) (DpdConfigDpdModeEnum, bool) { + enum, ok := mappingDpdConfigDpdModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drain_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drain_vnic_worker_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/drain_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/drain_vnic_worker_request_response.go index 2c2c12afbb..8a99b92f48 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drain_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drain_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DrainVnicWorkerRequest wrapper for the DrainVnicWorker operation type DrainVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DrainVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DrainVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DrainVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DrainVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DrainVnicWorkerResponse wrapper for the DrainVnicWorker operation type DrainVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg.go new file mode 100644 index 0000000000..2f50e5cb1a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg.go @@ -0,0 +1,132 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Drg A dynamic routing gateway (DRG) is a virtual router that provides a path for private +// network traffic between networks. You use it with other Networking +// Service components to create a connection to your on-premises network using Site-to-Site VPN (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingIPsec.htm) or a connection that uses +// FastConnect (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). For more information, see +// Networking Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type Drg struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The DRG's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The DRG's current state. + LifecycleState DrgLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The date and time the DRG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + DefaultDrgRouteTables *DefaultDrgRouteTables `mandatory:"false" json:"defaultDrgRouteTables"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of this DRG's default export route distribution for the DRG attachments. + DefaultExportDrgRouteDistributionId *string `mandatory:"false" json:"defaultExportDrgRouteDistributionId"` +} + +func (m Drg) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Drg) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDrgLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgLifecycleStateEnum Enum with underlying type: string +type DrgLifecycleStateEnum string + +// Set of constants representing the allowable values for DrgLifecycleStateEnum +const ( + DrgLifecycleStateProvisioning DrgLifecycleStateEnum = "PROVISIONING" + DrgLifecycleStateAvailable DrgLifecycleStateEnum = "AVAILABLE" + DrgLifecycleStateTerminating DrgLifecycleStateEnum = "TERMINATING" + DrgLifecycleStateTerminated DrgLifecycleStateEnum = "TERMINATED" +) + +var mappingDrgLifecycleStateEnum = map[string]DrgLifecycleStateEnum{ + "PROVISIONING": DrgLifecycleStateProvisioning, + "AVAILABLE": DrgLifecycleStateAvailable, + "TERMINATING": DrgLifecycleStateTerminating, + "TERMINATED": DrgLifecycleStateTerminated, +} + +var mappingDrgLifecycleStateEnumLowerCase = map[string]DrgLifecycleStateEnum{ + "provisioning": DrgLifecycleStateProvisioning, + "available": DrgLifecycleStateAvailable, + "terminating": DrgLifecycleStateTerminating, + "terminated": DrgLifecycleStateTerminated, +} + +// GetDrgLifecycleStateEnumValues Enumerates the set of values for DrgLifecycleStateEnum +func GetDrgLifecycleStateEnumValues() []DrgLifecycleStateEnum { + values := make([]DrgLifecycleStateEnum, 0) + for _, v := range mappingDrgLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDrgLifecycleStateEnumStringValues Enumerates the set of values in String for DrgLifecycleStateEnum +func GetDrgLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingDrgLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgLifecycleStateEnum(val string) (DrgLifecycleStateEnum, bool) { + enum, ok := mappingDrgLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network.go new file mode 100644 index 0000000000..28b657f086 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachedNetwork The info on attached network of a DRG. +type DrgAttachedNetwork struct { + + // The display name of resource + DisplayName *string `mandatory:"false" json:"displayName"` + + // The compartment id of resource + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The state of resource + State *string `mandatory:"false" json:"state"` +} + +func (m DrgAttachedNetwork) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachedNetwork) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network_info.go new file mode 100644 index 0000000000..08a0af0719 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attached_network_info.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachedNetworkInfo The attached networks of a DRG. +type DrgAttachedNetworkInfo struct { + + // The `drgId` of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The remote peering connections on the DRG + RemotePeeringConnections []DrgAttachedNetwork `mandatory:"false" json:"remotePeeringConnections"` + + // The ipsec connections on the DRG + IpsecConnections []DrgAttachedNetwork `mandatory:"false" json:"ipsecConnections"` + + // The virtual circuits on the DRG + VirtualCircuitConnections []DrgAttachedNetwork `mandatory:"false" json:"virtualCircuitConnections"` +} + +func (m DrgAttachedNetworkInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachedNetworkInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment.go new file mode 100644 index 0000000000..8a7f230e33 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment.go @@ -0,0 +1,215 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachment A DRG attachment serves as a link between a DRG and a network resource. A DRG can be attached to a VCN, +// IPSec tunnel, remote peering connection, or virtual circuit. +// For more information, see Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +type DrgAttachment struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG attachment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The DRG attachment's current state. + LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The date and time the DRG attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table that is assigned to this attachment. + // The DRG route table manages traffic inside the DRG. + DrgRouteTableId *string `mandatory:"false" json:"drgRouteTableId"` + + NetworkDetails DrgAttachmentNetworkDetails `mandatory:"false" json:"networkDetails"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. + // For information about why you would associate a route table with a DRG attachment, see: + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) + // This field is deprecated. Instead, use the `networkDetails` field to view the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attached resource. + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + // This field is deprecated. Instead, use the `networkDetails` field to view the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the attached resource. + VcnId *string `mandatory:"false" json:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the export route distribution used to specify how routes in the assigned DRG route table + // are advertised to the attachment. + // If this value is null, no routes are advertised through this attachment. + ExportDrgRouteDistributionId *string `mandatory:"false" json:"exportDrgRouteDistributionId"` + + // Indicates whether the DRG attachment and attached network live in a different tenancy than the DRG. + // Example: `false` + IsCrossTenancy *bool `mandatory:"false" json:"isCrossTenancy"` +} + +func (m DrgAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDrgAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *DrgAttachment) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + TimeCreated *common.SDKTime `json:"timeCreated"` + DrgRouteTableId *string `json:"drgRouteTableId"` + NetworkDetails drgattachmentnetworkdetails `json:"networkDetails"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + RouteTableId *string `json:"routeTableId"` + VcnId *string `json:"vcnId"` + ExportDrgRouteDistributionId *string `json:"exportDrgRouteDistributionId"` + IsCrossTenancy *bool `json:"isCrossTenancy"` + CompartmentId *string `json:"compartmentId"` + DrgId *string `json:"drgId"` + Id *string `json:"id"` + LifecycleState DrgAttachmentLifecycleStateEnum `json:"lifecycleState"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.TimeCreated = model.TimeCreated + + m.DrgRouteTableId = model.DrgRouteTableId + + nn, e = model.NetworkDetails.UnmarshalPolymorphicJSON(model.NetworkDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.NetworkDetails = nn.(DrgAttachmentNetworkDetails) + } else { + m.NetworkDetails = nil + } + + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + m.RouteTableId = model.RouteTableId + + m.VcnId = model.VcnId + + m.ExportDrgRouteDistributionId = model.ExportDrgRouteDistributionId + + m.IsCrossTenancy = model.IsCrossTenancy + + m.CompartmentId = model.CompartmentId + + m.DrgId = model.DrgId + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + return +} + +// DrgAttachmentLifecycleStateEnum Enum with underlying type: string +type DrgAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for DrgAttachmentLifecycleStateEnum +const ( + DrgAttachmentLifecycleStateAttaching DrgAttachmentLifecycleStateEnum = "ATTACHING" + DrgAttachmentLifecycleStateAttached DrgAttachmentLifecycleStateEnum = "ATTACHED" + DrgAttachmentLifecycleStateDetaching DrgAttachmentLifecycleStateEnum = "DETACHING" + DrgAttachmentLifecycleStateDetached DrgAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingDrgAttachmentLifecycleStateEnum = map[string]DrgAttachmentLifecycleStateEnum{ + "ATTACHING": DrgAttachmentLifecycleStateAttaching, + "ATTACHED": DrgAttachmentLifecycleStateAttached, + "DETACHING": DrgAttachmentLifecycleStateDetaching, + "DETACHED": DrgAttachmentLifecycleStateDetached, +} + +var mappingDrgAttachmentLifecycleStateEnumLowerCase = map[string]DrgAttachmentLifecycleStateEnum{ + "attaching": DrgAttachmentLifecycleStateAttaching, + "attached": DrgAttachmentLifecycleStateAttached, + "detaching": DrgAttachmentLifecycleStateDetaching, + "detached": DrgAttachmentLifecycleStateDetached, +} + +// GetDrgAttachmentLifecycleStateEnumValues Enumerates the set of values for DrgAttachmentLifecycleStateEnum +func GetDrgAttachmentLifecycleStateEnumValues() []DrgAttachmentLifecycleStateEnum { + values := make([]DrgAttachmentLifecycleStateEnum, 0) + for _, v := range mappingDrgAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDrgAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for DrgAttachmentLifecycleStateEnum +func GetDrgAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingDrgAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgAttachmentLifecycleStateEnum(val string) (DrgAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingDrgAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_id_drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_id_drg_route_distribution_match_criteria.go new file mode 100644 index 0000000000..cbc5f428ed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_id_drg_route_distribution_match_criteria.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentIdDrgRouteDistributionMatchCriteria The criteria by which a specific attachment will import routes to the DRG. +type DrgAttachmentIdDrgRouteDistributionMatchCriteria struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. + DrgAttachmentId *string `mandatory:"true" json:"drgAttachmentId"` +} + +func (m DrgAttachmentIdDrgRouteDistributionMatchCriteria) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachmentIdDrgRouteDistributionMatchCriteria) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DrgAttachmentIdDrgRouteDistributionMatchCriteria) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDrgAttachmentIdDrgRouteDistributionMatchCriteria DrgAttachmentIdDrgRouteDistributionMatchCriteria + s := struct { + DiscriminatorParam string `json:"matchType"` + MarshalTypeDrgAttachmentIdDrgRouteDistributionMatchCriteria + }{ + "DRG_ATTACHMENT_ID", + (MarshalTypeDrgAttachmentIdDrgRouteDistributionMatchCriteria)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_info.go new file mode 100644 index 0000000000..f07f2370a5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_info.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentInfo The `DrgAttachmentInfo` resource contains the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. +type DrgAttachmentInfo struct { + + // The Oracle-assigned ID of the DRG attachment + Id *string `mandatory:"true" json:"id"` +} + +func (m DrgAttachmentInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachmentInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_match_all_drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_match_all_drg_route_distribution_match_criteria.go new file mode 100644 index 0000000000..00fd9f3246 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_match_all_drg_route_distribution_match_criteria.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria All routes are imported or exported. +type DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria struct { +} + +func (m DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDrgAttachmentMatchAllDrgRouteDistributionMatchCriteria DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria + s := struct { + DiscriminatorParam string `json:"matchType"` + MarshalTypeDrgAttachmentMatchAllDrgRouteDistributionMatchCriteria + }{ + "MATCH_ALL", + (MarshalTypeDrgAttachmentMatchAllDrgRouteDistributionMatchCriteria)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_create_details.go new file mode 100644 index 0000000000..86e758a757 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_create_details.go @@ -0,0 +1,169 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentNetworkCreateDetails The representation of DrgAttachmentNetworkCreateDetails +type DrgAttachmentNetworkCreateDetails interface { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + GetId() *string +} + +type drgattachmentnetworkcreatedetails struct { + JsonData []byte + Id *string `mandatory:"true" json:"id"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *drgattachmentnetworkcreatedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerdrgattachmentnetworkcreatedetails drgattachmentnetworkcreatedetails + s := struct { + Model Unmarshalerdrgattachmentnetworkcreatedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Id = s.Model.Id + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *drgattachmentnetworkcreatedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "IPSEC_TUNNEL": + mm := IpsecTunnelDrgAttachmentNetworkCreateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "LOOPBACK": + mm := LoopBackDrgAttachmentNetworkCreateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "VIRTUAL_CIRCUIT": + mm := VirtualCircuitDrgAttachmentNetworkCreateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "REMOTE_PEERING_CONNECTION": + mm := RemotePeeringConnectionDrgAttachmentNetworkCreateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTERNET": + mm := InternetDrgAttachmentNetworkCreateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "VCN": + mm := VcnDrgAttachmentNetworkCreateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for DrgAttachmentNetworkCreateDetails: %s.", m.Type) + return *m, nil + } +} + +//GetId returns Id +func (m drgattachmentnetworkcreatedetails) GetId() *string { + return m.Id +} + +func (m drgattachmentnetworkcreatedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m drgattachmentnetworkcreatedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgAttachmentNetworkCreateDetailsTypeEnum Enum with underlying type: string +type DrgAttachmentNetworkCreateDetailsTypeEnum string + +// Set of constants representing the allowable values for DrgAttachmentNetworkCreateDetailsTypeEnum +const ( + DrgAttachmentNetworkCreateDetailsTypeVcn DrgAttachmentNetworkCreateDetailsTypeEnum = "VCN" + DrgAttachmentNetworkCreateDetailsTypeVirtualCircuit DrgAttachmentNetworkCreateDetailsTypeEnum = "VIRTUAL_CIRCUIT" + DrgAttachmentNetworkCreateDetailsTypeRemotePeeringConnection DrgAttachmentNetworkCreateDetailsTypeEnum = "REMOTE_PEERING_CONNECTION" + DrgAttachmentNetworkCreateDetailsTypeIpsecTunnel DrgAttachmentNetworkCreateDetailsTypeEnum = "IPSEC_TUNNEL" + DrgAttachmentNetworkCreateDetailsTypeLoopback DrgAttachmentNetworkCreateDetailsTypeEnum = "LOOPBACK" + DrgAttachmentNetworkCreateDetailsTypeInternet DrgAttachmentNetworkCreateDetailsTypeEnum = "INTERNET" +) + +var mappingDrgAttachmentNetworkCreateDetailsTypeEnum = map[string]DrgAttachmentNetworkCreateDetailsTypeEnum{ + "VCN": DrgAttachmentNetworkCreateDetailsTypeVcn, + "VIRTUAL_CIRCUIT": DrgAttachmentNetworkCreateDetailsTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": DrgAttachmentNetworkCreateDetailsTypeRemotePeeringConnection, + "IPSEC_TUNNEL": DrgAttachmentNetworkCreateDetailsTypeIpsecTunnel, + "LOOPBACK": DrgAttachmentNetworkCreateDetailsTypeLoopback, + "INTERNET": DrgAttachmentNetworkCreateDetailsTypeInternet, +} + +var mappingDrgAttachmentNetworkCreateDetailsTypeEnumLowerCase = map[string]DrgAttachmentNetworkCreateDetailsTypeEnum{ + "vcn": DrgAttachmentNetworkCreateDetailsTypeVcn, + "virtual_circuit": DrgAttachmentNetworkCreateDetailsTypeVirtualCircuit, + "remote_peering_connection": DrgAttachmentNetworkCreateDetailsTypeRemotePeeringConnection, + "ipsec_tunnel": DrgAttachmentNetworkCreateDetailsTypeIpsecTunnel, + "loopback": DrgAttachmentNetworkCreateDetailsTypeLoopback, + "internet": DrgAttachmentNetworkCreateDetailsTypeInternet, +} + +// GetDrgAttachmentNetworkCreateDetailsTypeEnumValues Enumerates the set of values for DrgAttachmentNetworkCreateDetailsTypeEnum +func GetDrgAttachmentNetworkCreateDetailsTypeEnumValues() []DrgAttachmentNetworkCreateDetailsTypeEnum { + values := make([]DrgAttachmentNetworkCreateDetailsTypeEnum, 0) + for _, v := range mappingDrgAttachmentNetworkCreateDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgAttachmentNetworkCreateDetailsTypeEnumStringValues Enumerates the set of values in String for DrgAttachmentNetworkCreateDetailsTypeEnum +func GetDrgAttachmentNetworkCreateDetailsTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "IPSEC_TUNNEL", + "LOOPBACK", + "INTERNET", + } +} + +// GetMappingDrgAttachmentNetworkCreateDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgAttachmentNetworkCreateDetailsTypeEnum(val string) (DrgAttachmentNetworkCreateDetailsTypeEnum, bool) { + enum, ok := mappingDrgAttachmentNetworkCreateDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_details.go new file mode 100644 index 0000000000..ede8971d19 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_details.go @@ -0,0 +1,169 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentNetworkDetails The representation of DrgAttachmentNetworkDetails +type DrgAttachmentNetworkDetails interface { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + GetId() *string +} + +type drgattachmentnetworkdetails struct { + JsonData []byte + Id *string `mandatory:"true" json:"id"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *drgattachmentnetworkdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerdrgattachmentnetworkdetails drgattachmentnetworkdetails + s := struct { + Model Unmarshalerdrgattachmentnetworkdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Id = s.Model.Id + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *drgattachmentnetworkdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "VCN": + mm := VcnDrgAttachmentNetworkDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTERNET": + mm := InternetDrgAttachmentNetworkDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "LOOPBACK": + mm := LoopBackDrgAttachmentNetworkDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "IPSEC_TUNNEL": + mm := IpsecTunnelDrgAttachmentNetworkDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "VIRTUAL_CIRCUIT": + mm := VirtualCircuitDrgAttachmentNetworkDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "REMOTE_PEERING_CONNECTION": + mm := RemotePeeringConnectionDrgAttachmentNetworkDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for DrgAttachmentNetworkDetails: %s.", m.Type) + return *m, nil + } +} + +//GetId returns Id +func (m drgattachmentnetworkdetails) GetId() *string { + return m.Id +} + +func (m drgattachmentnetworkdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m drgattachmentnetworkdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgAttachmentNetworkDetailsTypeEnum Enum with underlying type: string +type DrgAttachmentNetworkDetailsTypeEnum string + +// Set of constants representing the allowable values for DrgAttachmentNetworkDetailsTypeEnum +const ( + DrgAttachmentNetworkDetailsTypeVcn DrgAttachmentNetworkDetailsTypeEnum = "VCN" + DrgAttachmentNetworkDetailsTypeIpsecTunnel DrgAttachmentNetworkDetailsTypeEnum = "IPSEC_TUNNEL" + DrgAttachmentNetworkDetailsTypeVirtualCircuit DrgAttachmentNetworkDetailsTypeEnum = "VIRTUAL_CIRCUIT" + DrgAttachmentNetworkDetailsTypeRemotePeeringConnection DrgAttachmentNetworkDetailsTypeEnum = "REMOTE_PEERING_CONNECTION" + DrgAttachmentNetworkDetailsTypeLoopback DrgAttachmentNetworkDetailsTypeEnum = "LOOPBACK" + DrgAttachmentNetworkDetailsTypeInternet DrgAttachmentNetworkDetailsTypeEnum = "INTERNET" +) + +var mappingDrgAttachmentNetworkDetailsTypeEnum = map[string]DrgAttachmentNetworkDetailsTypeEnum{ + "VCN": DrgAttachmentNetworkDetailsTypeVcn, + "IPSEC_TUNNEL": DrgAttachmentNetworkDetailsTypeIpsecTunnel, + "VIRTUAL_CIRCUIT": DrgAttachmentNetworkDetailsTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": DrgAttachmentNetworkDetailsTypeRemotePeeringConnection, + "LOOPBACK": DrgAttachmentNetworkDetailsTypeLoopback, + "INTERNET": DrgAttachmentNetworkDetailsTypeInternet, +} + +var mappingDrgAttachmentNetworkDetailsTypeEnumLowerCase = map[string]DrgAttachmentNetworkDetailsTypeEnum{ + "vcn": DrgAttachmentNetworkDetailsTypeVcn, + "ipsec_tunnel": DrgAttachmentNetworkDetailsTypeIpsecTunnel, + "virtual_circuit": DrgAttachmentNetworkDetailsTypeVirtualCircuit, + "remote_peering_connection": DrgAttachmentNetworkDetailsTypeRemotePeeringConnection, + "loopback": DrgAttachmentNetworkDetailsTypeLoopback, + "internet": DrgAttachmentNetworkDetailsTypeInternet, +} + +// GetDrgAttachmentNetworkDetailsTypeEnumValues Enumerates the set of values for DrgAttachmentNetworkDetailsTypeEnum +func GetDrgAttachmentNetworkDetailsTypeEnumValues() []DrgAttachmentNetworkDetailsTypeEnum { + values := make([]DrgAttachmentNetworkDetailsTypeEnum, 0) + for _, v := range mappingDrgAttachmentNetworkDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgAttachmentNetworkDetailsTypeEnumStringValues Enumerates the set of values in String for DrgAttachmentNetworkDetailsTypeEnum +func GetDrgAttachmentNetworkDetailsTypeEnumStringValues() []string { + return []string{ + "VCN", + "IPSEC_TUNNEL", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "LOOPBACK", + "INTERNET", + } +} + +// GetMappingDrgAttachmentNetworkDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgAttachmentNetworkDetailsTypeEnum(val string) (DrgAttachmentNetworkDetailsTypeEnum, bool) { + enum, ok := mappingDrgAttachmentNetworkDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_update_details.go new file mode 100644 index 0000000000..59cdb21bbb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_network_update_details.go @@ -0,0 +1,151 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentNetworkUpdateDetails The representation of DrgAttachmentNetworkUpdateDetails +type DrgAttachmentNetworkUpdateDetails interface { +} + +type drgattachmentnetworkupdatedetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *drgattachmentnetworkupdatedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerdrgattachmentnetworkupdatedetails drgattachmentnetworkupdatedetails + s := struct { + Model Unmarshalerdrgattachmentnetworkupdatedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *drgattachmentnetworkupdatedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "INTERNET": + mm := InternetDrgAttachmentNetworkUpdateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "VIRTUAL_CIRCUIT": + mm := VirtualCircuitDrgAttachmentNetworkUpdateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "IPSEC_TUNNEL": + mm := IpsecTunnelDrgAttachmentNetworkUpdateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "LOOPBACK": + mm := LoopbackDrgAttachmentNetworkUpdateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "VCN": + mm := VcnDrgAttachmentNetworkUpdateDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for DrgAttachmentNetworkUpdateDetails: %s.", m.Type) + return *m, nil + } +} + +func (m drgattachmentnetworkupdatedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m drgattachmentnetworkupdatedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgAttachmentNetworkUpdateDetailsTypeEnum Enum with underlying type: string +type DrgAttachmentNetworkUpdateDetailsTypeEnum string + +// Set of constants representing the allowable values for DrgAttachmentNetworkUpdateDetailsTypeEnum +const ( + DrgAttachmentNetworkUpdateDetailsTypeVcn DrgAttachmentNetworkUpdateDetailsTypeEnum = "VCN" + DrgAttachmentNetworkUpdateDetailsTypeVirtualCircuit DrgAttachmentNetworkUpdateDetailsTypeEnum = "VIRTUAL_CIRCUIT" + DrgAttachmentNetworkUpdateDetailsTypeIpsecTunnel DrgAttachmentNetworkUpdateDetailsTypeEnum = "IPSEC_TUNNEL" + DrgAttachmentNetworkUpdateDetailsTypeLoopback DrgAttachmentNetworkUpdateDetailsTypeEnum = "LOOPBACK" + DrgAttachmentNetworkUpdateDetailsTypeInternet DrgAttachmentNetworkUpdateDetailsTypeEnum = "INTERNET" +) + +var mappingDrgAttachmentNetworkUpdateDetailsTypeEnum = map[string]DrgAttachmentNetworkUpdateDetailsTypeEnum{ + "VCN": DrgAttachmentNetworkUpdateDetailsTypeVcn, + "VIRTUAL_CIRCUIT": DrgAttachmentNetworkUpdateDetailsTypeVirtualCircuit, + "IPSEC_TUNNEL": DrgAttachmentNetworkUpdateDetailsTypeIpsecTunnel, + "LOOPBACK": DrgAttachmentNetworkUpdateDetailsTypeLoopback, + "INTERNET": DrgAttachmentNetworkUpdateDetailsTypeInternet, +} + +var mappingDrgAttachmentNetworkUpdateDetailsTypeEnumLowerCase = map[string]DrgAttachmentNetworkUpdateDetailsTypeEnum{ + "vcn": DrgAttachmentNetworkUpdateDetailsTypeVcn, + "virtual_circuit": DrgAttachmentNetworkUpdateDetailsTypeVirtualCircuit, + "ipsec_tunnel": DrgAttachmentNetworkUpdateDetailsTypeIpsecTunnel, + "loopback": DrgAttachmentNetworkUpdateDetailsTypeLoopback, + "internet": DrgAttachmentNetworkUpdateDetailsTypeInternet, +} + +// GetDrgAttachmentNetworkUpdateDetailsTypeEnumValues Enumerates the set of values for DrgAttachmentNetworkUpdateDetailsTypeEnum +func GetDrgAttachmentNetworkUpdateDetailsTypeEnumValues() []DrgAttachmentNetworkUpdateDetailsTypeEnum { + values := make([]DrgAttachmentNetworkUpdateDetailsTypeEnum, 0) + for _, v := range mappingDrgAttachmentNetworkUpdateDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgAttachmentNetworkUpdateDetailsTypeEnumStringValues Enumerates the set of values in String for DrgAttachmentNetworkUpdateDetailsTypeEnum +func GetDrgAttachmentNetworkUpdateDetailsTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "IPSEC_TUNNEL", + "LOOPBACK", + "INTERNET", + } +} + +// GetMappingDrgAttachmentNetworkUpdateDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgAttachmentNetworkUpdateDetailsTypeEnum(val string) (DrgAttachmentNetworkUpdateDetailsTypeEnum, bool) { + enum, ok := mappingDrgAttachmentNetworkUpdateDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_type_drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_type_drg_route_distribution_match_criteria.go new file mode 100644 index 0000000000..27b5ac70b9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_attachment_type_drg_route_distribution_match_criteria.go @@ -0,0 +1,113 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgAttachmentTypeDrgRouteDistributionMatchCriteria The attachment type from which the DRG will import routes. Routes will be imported from +// all attachments of this type. +type DrgAttachmentTypeDrgRouteDistributionMatchCriteria struct { + + // The type of the network resource to be included in this match. A match for a network type implies that all + // DRG attachments of that type insert routes into the table. + AttachmentType DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum `mandatory:"true" json:"attachmentType"` +} + +func (m DrgAttachmentTypeDrgRouteDistributionMatchCriteria) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgAttachmentTypeDrgRouteDistributionMatchCriteria) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum(string(m.AttachmentType)); !ok && m.AttachmentType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttachmentType: %s. Supported values are: %s.", m.AttachmentType, strings.Join(GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DrgAttachmentTypeDrgRouteDistributionMatchCriteria) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDrgAttachmentTypeDrgRouteDistributionMatchCriteria DrgAttachmentTypeDrgRouteDistributionMatchCriteria + s := struct { + DiscriminatorParam string `json:"matchType"` + MarshalTypeDrgAttachmentTypeDrgRouteDistributionMatchCriteria + }{ + "DRG_ATTACHMENT_TYPE", + (MarshalTypeDrgAttachmentTypeDrgRouteDistributionMatchCriteria)(m), + } + + return json.Marshal(&s) +} + +// DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum Enum with underlying type: string +type DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum string + +// Set of constants representing the allowable values for DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum +const ( + DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVcn DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "VCN" + DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVirtualCircuit DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "VIRTUAL_CIRCUIT" + DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeRemotePeeringConnection DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" + DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeIpsecTunnel DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = "IPSEC_TUNNEL" +) + +var mappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum = map[string]DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum{ + "VCN": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVcn, + "VIRTUAL_CIRCUIT": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeRemotePeeringConnection, + "IPSEC_TUNNEL": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeIpsecTunnel, +} + +var mappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumLowerCase = map[string]DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum{ + "vcn": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVcn, + "virtual_circuit": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeVirtualCircuit, + "remote_peering_connection": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeRemotePeeringConnection, + "ipsec_tunnel": DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeIpsecTunnel, +} + +// GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumValues Enumerates the set of values for DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum +func GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumValues() []DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum { + values := make([]DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum, 0) + for _, v := range mappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumStringValues Enumerates the set of values in String for DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum +func GetDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "IPSEC_TUNNEL", + } +} + +// GetMappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum(val string) (DrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnum, bool) { + enum, ok := mappingDrgAttachmentTypeDrgRouteDistributionMatchCriteriaAttachmentTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration.go new file mode 100644 index 0000000000..5b0099f73c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgMigration Response from Drg Migration API +type DrgMigration struct { + + // The count of succesfully migrated DRGS from the batch. + SuccessCount *int `mandatory:"true" json:"successCount"` + + // The count of failed during DRGS during migration from the batch. + FailureCount *int `mandatory:"false" json:"failureCount"` + + // The OCIDs of the drgs which were successfully migrated. + SuccessfulDrgIds []string `mandatory:"false" json:"successfulDrgIds"` + + // The OCIDs of the drgs which were failed during migration. + FailedDrgIds []string `mandatory:"false" json:"failedDrgIds"` +} + +func (m DrgMigration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgMigration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_region.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_region.go new file mode 100644 index 0000000000..519842b41f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_region.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgMigrationCountRegion Response from get migration count by region API +type DrgMigrationCountRegion struct { + + // The count of total v1 drgs. + TotalCount *int `mandatory:"true" json:"totalCount"` + + // The count of succesfully migrated Drgs. + MigratedCount *int `mandatory:"true" json:"migratedCount"` + + // The name of the region to contain the DRG. + RegionId *string `mandatory:"false" json:"regionId"` +} + +func (m DrgMigrationCountRegion) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgMigrationCountRegion) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_tenancy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_tenancy.go new file mode 100644 index 0000000000..e1d326f048 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_count_tenancy.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgMigrationCountTenancy Response from get migration count by region API +type DrgMigrationCountTenancy struct { + + // The count of total v1 drgs. + TotalCount *int `mandatory:"true" json:"totalCount"` + + // The count of succesfully migrated Drgs. + MigratedCount *int `mandatory:"true" json:"migratedCount"` + + // The name of the tenancy to contain the DRG. + TenancyId *string `mandatory:"true" json:"tenancyId"` +} + +func (m DrgMigrationCountTenancy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgMigrationCountTenancy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_details.go new file mode 100644 index 0000000000..c5d31c6ad9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgMigrationDetails Request object to Drg Migration API +type DrgMigrationDetails struct { + + // The size of migration batch. + BatchSize *int `mandatory:"false" json:"batchSize"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG to migrate. + DrgId *string `mandatory:"false" json:"drgId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy to contain the DRG. + TenancyId *string `mandatory:"false" json:"tenancyId"` +} + +func (m DrgMigrationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgMigrationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_request_response.go index 9b5d57cbd5..a1e807d441 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/drg_migration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_migration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DrgMigrationRequest wrapper for the DrgMigration operation @@ -38,6 +40,10 @@ func (request DrgMigrationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DrgMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DrgMigrationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DrgMigrationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DrgMigrationResponse wrapper for the DrgMigration operation type DrgMigrationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_redundancy_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_redundancy_status.go new file mode 100644 index 0000000000..ad66cb62e6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_redundancy_status.go @@ -0,0 +1,116 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgRedundancyStatus The redundancy status of the DRG. For more information, see +// Redundancy Remedies (https://docs.cloud.oracle.com/iaas/Content/Network/Troubleshoot/drgredundancy.htm). +type DrgRedundancyStatus struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + Id *string `mandatory:"false" json:"id"` + + // The redundancy status of the DRG. + Status DrgRedundancyStatusStatusEnum `mandatory:"false" json:"status,omitempty"` +} + +func (m DrgRedundancyStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgRedundancyStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDrgRedundancyStatusStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetDrgRedundancyStatusStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgRedundancyStatusStatusEnum Enum with underlying type: string +type DrgRedundancyStatusStatusEnum string + +// Set of constants representing the allowable values for DrgRedundancyStatusStatusEnum +const ( + DrgRedundancyStatusStatusNotAvailable DrgRedundancyStatusStatusEnum = "NOT_AVAILABLE" + DrgRedundancyStatusStatusRedundant DrgRedundancyStatusStatusEnum = "REDUNDANT" + DrgRedundancyStatusStatusNotRedundantSingleIpsec DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_SINGLE_IPSEC" + DrgRedundancyStatusStatusNotRedundantSingleVirtualcircuit DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_SINGLE_VIRTUALCIRCUIT" + DrgRedundancyStatusStatusNotRedundantMultipleIpsecs DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_MULTIPLE_IPSECS" + DrgRedundancyStatusStatusNotRedundantMultipleVirtualcircuits DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_MULTIPLE_VIRTUALCIRCUITS" + DrgRedundancyStatusStatusNotRedundantMixConnections DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_MIX_CONNECTIONS" + DrgRedundancyStatusStatusNotRedundantNoConnection DrgRedundancyStatusStatusEnum = "NOT_REDUNDANT_NO_CONNECTION" +) + +var mappingDrgRedundancyStatusStatusEnum = map[string]DrgRedundancyStatusStatusEnum{ + "NOT_AVAILABLE": DrgRedundancyStatusStatusNotAvailable, + "REDUNDANT": DrgRedundancyStatusStatusRedundant, + "NOT_REDUNDANT_SINGLE_IPSEC": DrgRedundancyStatusStatusNotRedundantSingleIpsec, + "NOT_REDUNDANT_SINGLE_VIRTUALCIRCUIT": DrgRedundancyStatusStatusNotRedundantSingleVirtualcircuit, + "NOT_REDUNDANT_MULTIPLE_IPSECS": DrgRedundancyStatusStatusNotRedundantMultipleIpsecs, + "NOT_REDUNDANT_MULTIPLE_VIRTUALCIRCUITS": DrgRedundancyStatusStatusNotRedundantMultipleVirtualcircuits, + "NOT_REDUNDANT_MIX_CONNECTIONS": DrgRedundancyStatusStatusNotRedundantMixConnections, + "NOT_REDUNDANT_NO_CONNECTION": DrgRedundancyStatusStatusNotRedundantNoConnection, +} + +var mappingDrgRedundancyStatusStatusEnumLowerCase = map[string]DrgRedundancyStatusStatusEnum{ + "not_available": DrgRedundancyStatusStatusNotAvailable, + "redundant": DrgRedundancyStatusStatusRedundant, + "not_redundant_single_ipsec": DrgRedundancyStatusStatusNotRedundantSingleIpsec, + "not_redundant_single_virtualcircuit": DrgRedundancyStatusStatusNotRedundantSingleVirtualcircuit, + "not_redundant_multiple_ipsecs": DrgRedundancyStatusStatusNotRedundantMultipleIpsecs, + "not_redundant_multiple_virtualcircuits": DrgRedundancyStatusStatusNotRedundantMultipleVirtualcircuits, + "not_redundant_mix_connections": DrgRedundancyStatusStatusNotRedundantMixConnections, + "not_redundant_no_connection": DrgRedundancyStatusStatusNotRedundantNoConnection, +} + +// GetDrgRedundancyStatusStatusEnumValues Enumerates the set of values for DrgRedundancyStatusStatusEnum +func GetDrgRedundancyStatusStatusEnumValues() []DrgRedundancyStatusStatusEnum { + values := make([]DrgRedundancyStatusStatusEnum, 0) + for _, v := range mappingDrgRedundancyStatusStatusEnum { + values = append(values, v) + } + return values +} + +// GetDrgRedundancyStatusStatusEnumStringValues Enumerates the set of values in String for DrgRedundancyStatusStatusEnum +func GetDrgRedundancyStatusStatusEnumStringValues() []string { + return []string{ + "NOT_AVAILABLE", + "REDUNDANT", + "NOT_REDUNDANT_SINGLE_IPSEC", + "NOT_REDUNDANT_SINGLE_VIRTUALCIRCUIT", + "NOT_REDUNDANT_MULTIPLE_IPSECS", + "NOT_REDUNDANT_MULTIPLE_VIRTUALCIRCUITS", + "NOT_REDUNDANT_MIX_CONNECTIONS", + "NOT_REDUNDANT_NO_CONNECTION", + } +} + +// GetMappingDrgRedundancyStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRedundancyStatusStatusEnum(val string) (DrgRedundancyStatusStatusEnum, bool) { + enum, ok := mappingDrgRedundancyStatusStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go new file mode 100644 index 0000000000..ba72baf03e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution.go @@ -0,0 +1,183 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgRouteDistribution A route distribution establishes how routes get imported into DRG route tables and exported through the DRG attachments. +// A route distribution is a list of statements. Each statement consists of a set of matches, all of which must be `True` in order for +// the statement's action to take place. Each statement determines which routes are propagated. +// You can assign a route distribution as a route table's import distribution. The statements in an import +// route distribution specify how how incoming route advertisements through a referenced attachment or all attachments of a certain type are inserted into the route table. +// You can assign a route distribution as a DRG attachment's export distribution. Export route distribution statements specify how routes in a +// DRG attachment's assigned table are advertised out through the attachment. When a DRG attachment is created, a route distribution is created with a +// single ACCEPT statement with match criteria MATCH_ALL. +// Exporting routes through VCN attachments is unsupported, so no VCN attachments are assigned an export distribution. +// The two auto-generated DRG route tables (one as the default for VCN attachments, and the other for all other types of attachments) +// are each assigned an auto generated import route distribution. The default VCN table's import distribution has a single statement with match criteria MATCH_ALL to import routes from +// each DRG attachment type. The other table's import distribution has a statement to import routes from attachments with the VCN type. +// The route distribution is always in the same compartment as the DRG. +type DrgRouteDistribution struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG that contains this route distribution. + DrgId *string `mandatory:"true" json:"drgId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the route distribution. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The route distribution's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The route distribution's current state. + LifecycleState DrgRouteDistributionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the route distribution was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Whether this distribution defines how routes get imported into route tables or exported through DRG attachments. + DistributionType DrgRouteDistributionDistributionTypeEnum `mandatory:"true" json:"distributionType"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m DrgRouteDistribution) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgRouteDistribution) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgRouteDistributionLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDrgRouteDistributionLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgRouteDistributionDistributionTypeEnum(string(m.DistributionType)); !ok && m.DistributionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DistributionType: %s. Supported values are: %s.", m.DistributionType, strings.Join(GetDrgRouteDistributionDistributionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgRouteDistributionLifecycleStateEnum Enum with underlying type: string +type DrgRouteDistributionLifecycleStateEnum string + +// Set of constants representing the allowable values for DrgRouteDistributionLifecycleStateEnum +const ( + DrgRouteDistributionLifecycleStateProvisioning DrgRouteDistributionLifecycleStateEnum = "PROVISIONING" + DrgRouteDistributionLifecycleStateAvailable DrgRouteDistributionLifecycleStateEnum = "AVAILABLE" + DrgRouteDistributionLifecycleStateTerminating DrgRouteDistributionLifecycleStateEnum = "TERMINATING" + DrgRouteDistributionLifecycleStateTerminated DrgRouteDistributionLifecycleStateEnum = "TERMINATED" +) + +var mappingDrgRouteDistributionLifecycleStateEnum = map[string]DrgRouteDistributionLifecycleStateEnum{ + "PROVISIONING": DrgRouteDistributionLifecycleStateProvisioning, + "AVAILABLE": DrgRouteDistributionLifecycleStateAvailable, + "TERMINATING": DrgRouteDistributionLifecycleStateTerminating, + "TERMINATED": DrgRouteDistributionLifecycleStateTerminated, +} + +var mappingDrgRouteDistributionLifecycleStateEnumLowerCase = map[string]DrgRouteDistributionLifecycleStateEnum{ + "provisioning": DrgRouteDistributionLifecycleStateProvisioning, + "available": DrgRouteDistributionLifecycleStateAvailable, + "terminating": DrgRouteDistributionLifecycleStateTerminating, + "terminated": DrgRouteDistributionLifecycleStateTerminated, +} + +// GetDrgRouteDistributionLifecycleStateEnumValues Enumerates the set of values for DrgRouteDistributionLifecycleStateEnum +func GetDrgRouteDistributionLifecycleStateEnumValues() []DrgRouteDistributionLifecycleStateEnum { + values := make([]DrgRouteDistributionLifecycleStateEnum, 0) + for _, v := range mappingDrgRouteDistributionLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteDistributionLifecycleStateEnumStringValues Enumerates the set of values in String for DrgRouteDistributionLifecycleStateEnum +func GetDrgRouteDistributionLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingDrgRouteDistributionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteDistributionLifecycleStateEnum(val string) (DrgRouteDistributionLifecycleStateEnum, bool) { + enum, ok := mappingDrgRouteDistributionLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DrgRouteDistributionDistributionTypeEnum Enum with underlying type: string +type DrgRouteDistributionDistributionTypeEnum string + +// Set of constants representing the allowable values for DrgRouteDistributionDistributionTypeEnum +const ( + DrgRouteDistributionDistributionTypeImport DrgRouteDistributionDistributionTypeEnum = "IMPORT" + DrgRouteDistributionDistributionTypeExport DrgRouteDistributionDistributionTypeEnum = "EXPORT" +) + +var mappingDrgRouteDistributionDistributionTypeEnum = map[string]DrgRouteDistributionDistributionTypeEnum{ + "IMPORT": DrgRouteDistributionDistributionTypeImport, + "EXPORT": DrgRouteDistributionDistributionTypeExport, +} + +var mappingDrgRouteDistributionDistributionTypeEnumLowerCase = map[string]DrgRouteDistributionDistributionTypeEnum{ + "import": DrgRouteDistributionDistributionTypeImport, + "export": DrgRouteDistributionDistributionTypeExport, +} + +// GetDrgRouteDistributionDistributionTypeEnumValues Enumerates the set of values for DrgRouteDistributionDistributionTypeEnum +func GetDrgRouteDistributionDistributionTypeEnumValues() []DrgRouteDistributionDistributionTypeEnum { + values := make([]DrgRouteDistributionDistributionTypeEnum, 0) + for _, v := range mappingDrgRouteDistributionDistributionTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteDistributionDistributionTypeEnumStringValues Enumerates the set of values in String for DrgRouteDistributionDistributionTypeEnum +func GetDrgRouteDistributionDistributionTypeEnumStringValues() []string { + return []string{ + "IMPORT", + "EXPORT", + } +} + +// GetMappingDrgRouteDistributionDistributionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteDistributionDistributionTypeEnum(val string) (DrgRouteDistributionDistributionTypeEnum, bool) { + enum, ok := mappingDrgRouteDistributionDistributionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_match_criteria.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_match_criteria.go new file mode 100644 index 0000000000..0a66aff0ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_match_criteria.go @@ -0,0 +1,136 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgRouteDistributionMatchCriteria The match criteria in a route distribution statement. The match criteria outlines which routes +// should be imported or exported. +type DrgRouteDistributionMatchCriteria interface { +} + +type drgroutedistributionmatchcriteria struct { + JsonData []byte + MatchType string `json:"matchType"` +} + +// UnmarshalJSON unmarshals json +func (m *drgroutedistributionmatchcriteria) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerdrgroutedistributionmatchcriteria drgroutedistributionmatchcriteria + s := struct { + Model Unmarshalerdrgroutedistributionmatchcriteria + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.MatchType = s.Model.MatchType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *drgroutedistributionmatchcriteria) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.MatchType { + case "DRG_ATTACHMENT_ID": + mm := DrgAttachmentIdDrgRouteDistributionMatchCriteria{} + err = json.Unmarshal(data, &mm) + return mm, err + case "DRG_ATTACHMENT_TYPE": + mm := DrgAttachmentTypeDrgRouteDistributionMatchCriteria{} + err = json.Unmarshal(data, &mm) + return mm, err + case "MATCH_ALL": + mm := DrgAttachmentMatchAllDrgRouteDistributionMatchCriteria{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for DrgRouteDistributionMatchCriteria: %s.", m.MatchType) + return *m, nil + } +} + +func (m drgroutedistributionmatchcriteria) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m drgroutedistributionmatchcriteria) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgRouteDistributionMatchCriteriaMatchTypeEnum Enum with underlying type: string +type DrgRouteDistributionMatchCriteriaMatchTypeEnum string + +// Set of constants representing the allowable values for DrgRouteDistributionMatchCriteriaMatchTypeEnum +const ( + DrgRouteDistributionMatchCriteriaMatchTypeDrgAttachmentType DrgRouteDistributionMatchCriteriaMatchTypeEnum = "DRG_ATTACHMENT_TYPE" + DrgRouteDistributionMatchCriteriaMatchTypeDrgAttachmentId DrgRouteDistributionMatchCriteriaMatchTypeEnum = "DRG_ATTACHMENT_ID" + DrgRouteDistributionMatchCriteriaMatchTypeMatchAll DrgRouteDistributionMatchCriteriaMatchTypeEnum = "MATCH_ALL" +) + +var mappingDrgRouteDistributionMatchCriteriaMatchTypeEnum = map[string]DrgRouteDistributionMatchCriteriaMatchTypeEnum{ + "DRG_ATTACHMENT_TYPE": DrgRouteDistributionMatchCriteriaMatchTypeDrgAttachmentType, + "DRG_ATTACHMENT_ID": DrgRouteDistributionMatchCriteriaMatchTypeDrgAttachmentId, + "MATCH_ALL": DrgRouteDistributionMatchCriteriaMatchTypeMatchAll, +} + +var mappingDrgRouteDistributionMatchCriteriaMatchTypeEnumLowerCase = map[string]DrgRouteDistributionMatchCriteriaMatchTypeEnum{ + "drg_attachment_type": DrgRouteDistributionMatchCriteriaMatchTypeDrgAttachmentType, + "drg_attachment_id": DrgRouteDistributionMatchCriteriaMatchTypeDrgAttachmentId, + "match_all": DrgRouteDistributionMatchCriteriaMatchTypeMatchAll, +} + +// GetDrgRouteDistributionMatchCriteriaMatchTypeEnumValues Enumerates the set of values for DrgRouteDistributionMatchCriteriaMatchTypeEnum +func GetDrgRouteDistributionMatchCriteriaMatchTypeEnumValues() []DrgRouteDistributionMatchCriteriaMatchTypeEnum { + values := make([]DrgRouteDistributionMatchCriteriaMatchTypeEnum, 0) + for _, v := range mappingDrgRouteDistributionMatchCriteriaMatchTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteDistributionMatchCriteriaMatchTypeEnumStringValues Enumerates the set of values in String for DrgRouteDistributionMatchCriteriaMatchTypeEnum +func GetDrgRouteDistributionMatchCriteriaMatchTypeEnumStringValues() []string { + return []string{ + "DRG_ATTACHMENT_TYPE", + "DRG_ATTACHMENT_ID", + "MATCH_ALL", + } +} + +// GetMappingDrgRouteDistributionMatchCriteriaMatchTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteDistributionMatchCriteriaMatchTypeEnum(val string) (DrgRouteDistributionMatchCriteriaMatchTypeEnum, bool) { + enum, ok := mappingDrgRouteDistributionMatchCriteriaMatchTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_statement.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_statement.go new file mode 100644 index 0000000000..8cb3cb2b7a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_distribution_statement.go @@ -0,0 +1,137 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgRouteDistributionStatement A single statement within a route distribution. All match criteria in a statement must be met +// for the action to take place. +type DrgRouteDistributionStatement struct { + + // The action is applied only if all of the match criteria is met. + // If there are no match criteria in a statement, any input is considered a match and the action is applied. + MatchCriteria []DrgRouteDistributionMatchCriteria `mandatory:"true" json:"matchCriteria"` + + // `ACCEPT` indicates the route should be imported or exported as-is. + Action DrgRouteDistributionStatementActionEnum `mandatory:"true" json:"action"` + + // This field specifies the priority of each statement in a route distribution. + // Priorities must be unique within a particular route distribution. + // The priority will be represented as a number between 0 and 65535 where a lower number + // indicates a higher priority. When a route is processed, statements are applied in the order + // defined by their priority. The first matching rule dictates the action that will be taken + // on the route. + Priority *int `mandatory:"true" json:"priority"` + + // The Oracle-assigned ID of the route distribution statement. + Id *string `mandatory:"true" json:"id"` +} + +func (m DrgRouteDistributionStatement) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgRouteDistributionStatement) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgRouteDistributionStatementActionEnum(string(m.Action)); !ok && m.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", m.Action, strings.Join(GetDrgRouteDistributionStatementActionEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *DrgRouteDistributionStatement) UnmarshalJSON(data []byte) (e error) { + model := struct { + MatchCriteria []drgroutedistributionmatchcriteria `json:"matchCriteria"` + Action DrgRouteDistributionStatementActionEnum `json:"action"` + Priority *int `json:"priority"` + Id *string `json:"id"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.MatchCriteria = make([]DrgRouteDistributionMatchCriteria, len(model.MatchCriteria)) + for i, n := range model.MatchCriteria { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.MatchCriteria[i] = nn.(DrgRouteDistributionMatchCriteria) + } else { + m.MatchCriteria[i] = nil + } + } + + m.Action = model.Action + + m.Priority = model.Priority + + m.Id = model.Id + + return +} + +// DrgRouteDistributionStatementActionEnum Enum with underlying type: string +type DrgRouteDistributionStatementActionEnum string + +// Set of constants representing the allowable values for DrgRouteDistributionStatementActionEnum +const ( + DrgRouteDistributionStatementActionAccept DrgRouteDistributionStatementActionEnum = "ACCEPT" +) + +var mappingDrgRouteDistributionStatementActionEnum = map[string]DrgRouteDistributionStatementActionEnum{ + "ACCEPT": DrgRouteDistributionStatementActionAccept, +} + +var mappingDrgRouteDistributionStatementActionEnumLowerCase = map[string]DrgRouteDistributionStatementActionEnum{ + "accept": DrgRouteDistributionStatementActionAccept, +} + +// GetDrgRouteDistributionStatementActionEnumValues Enumerates the set of values for DrgRouteDistributionStatementActionEnum +func GetDrgRouteDistributionStatementActionEnumValues() []DrgRouteDistributionStatementActionEnum { + values := make([]DrgRouteDistributionStatementActionEnum, 0) + for _, v := range mappingDrgRouteDistributionStatementActionEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteDistributionStatementActionEnumStringValues Enumerates the set of values in String for DrgRouteDistributionStatementActionEnum +func GetDrgRouteDistributionStatementActionEnumStringValues() []string { + return []string{ + "ACCEPT", + } +} + +// GetMappingDrgRouteDistributionStatementActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteDistributionStatementActionEnum(val string) (DrgRouteDistributionStatementActionEnum, bool) { + enum, ok := mappingDrgRouteDistributionStatementActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_rule.go new file mode 100644 index 0000000000..1c4fb88dff --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_rule.go @@ -0,0 +1,229 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgRouteRule A DRG route rule is a mapping between a destination IP address range and a DRG attachment. +// The map is used to route matching packets. Traffic will be routed across the attachments using Equal-cost multi-path routing (ECMP) +// if there are multiple rules with identical destinations and none of the rules conflict. +type DrgRouteRule struct { + + // Represents the range of IP addresses to match against when routing traffic. + // Potential values: + // * An IP address range (IPv4 or IPv6) in CIDR notation. For example: `192.168.1.0/24` + // or `2001:0db8:0123:45::/56`. + // * When you're setting up a security rule for traffic destined for a particular `Service` through + // a service gateway, this is the `cidrBlock` value associated with that Service. For example: `oci-phx-objectstorage`. + Destination *string `mandatory:"true" json:"destination"` + + // The type of destination for the rule. the type is required if `direction` = `EGRESS`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + DestinationType DrgRouteRuleDestinationTypeEnum `mandatory:"true" json:"destinationType"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the next hop DRG attachment responsible + // for reaching the network destination. + // A value of `BLACKHOLE` means traffic for this route is discarded without notification. + NextHopDrgAttachmentId *string `mandatory:"true" json:"nextHopDrgAttachmentId"` + + // The Oracle-assigned ID of the DRG route rule. + Id *string `mandatory:"true" json:"id"` + + // The earliest origin of a route. If a route is advertised to a DRG through an IPsec tunnel attachment, + // and is propagated to peered DRGs via RPC attachments, the route's provenance in the peered DRGs remains `IPSEC_TUNNEL`, + // because that is the earliest origin. + // No routes with a provenance `IPSEC_TUNNEL` or `VIRTUAL_CIRCUIT` will be exported to IPsec tunnel or virtual circuit attachments, + // regardless of the attachment's export distribution. + RouteProvenance DrgRouteRuleRouteProvenanceEnum `mandatory:"true" json:"routeProvenance"` + + // You can specify static routes for the DRG route table using the API. + // The DRG learns dynamic routes from the DRG attachments using various routing protocols. + RouteType DrgRouteRuleRouteTypeEnum `mandatory:"false" json:"routeType,omitempty"` + + // Indicates that the route was not imported due to a conflict between route rules. + IsConflict *bool `mandatory:"false" json:"isConflict"` + + // Indicates that if the next hop attachment does not exist, so traffic for this route is discarded without notification. + IsBlackhole *bool `mandatory:"false" json:"isBlackhole"` + + // Additional properties for the route, computed by the service. + Attributes *interface{} `mandatory:"false" json:"attributes"` +} + +func (m DrgRouteRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgRouteRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgRouteRuleDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetDrgRouteRuleDestinationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgRouteRuleRouteProvenanceEnum(string(m.RouteProvenance)); !ok && m.RouteProvenance != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RouteProvenance: %s. Supported values are: %s.", m.RouteProvenance, strings.Join(GetDrgRouteRuleRouteProvenanceEnumStringValues(), ","))) + } + + if _, ok := GetMappingDrgRouteRuleRouteTypeEnum(string(m.RouteType)); !ok && m.RouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RouteType: %s. Supported values are: %s.", m.RouteType, strings.Join(GetDrgRouteRuleRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgRouteRuleDestinationTypeEnum Enum with underlying type: string +type DrgRouteRuleDestinationTypeEnum string + +// Set of constants representing the allowable values for DrgRouteRuleDestinationTypeEnum +const ( + DrgRouteRuleDestinationTypeCidrBlock DrgRouteRuleDestinationTypeEnum = "CIDR_BLOCK" + DrgRouteRuleDestinationTypeServiceCidrBlock DrgRouteRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" +) + +var mappingDrgRouteRuleDestinationTypeEnum = map[string]DrgRouteRuleDestinationTypeEnum{ + "CIDR_BLOCK": DrgRouteRuleDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": DrgRouteRuleDestinationTypeServiceCidrBlock, +} + +var mappingDrgRouteRuleDestinationTypeEnumLowerCase = map[string]DrgRouteRuleDestinationTypeEnum{ + "cidr_block": DrgRouteRuleDestinationTypeCidrBlock, + "service_cidr_block": DrgRouteRuleDestinationTypeServiceCidrBlock, +} + +// GetDrgRouteRuleDestinationTypeEnumValues Enumerates the set of values for DrgRouteRuleDestinationTypeEnum +func GetDrgRouteRuleDestinationTypeEnumValues() []DrgRouteRuleDestinationTypeEnum { + values := make([]DrgRouteRuleDestinationTypeEnum, 0) + for _, v := range mappingDrgRouteRuleDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteRuleDestinationTypeEnumStringValues Enumerates the set of values in String for DrgRouteRuleDestinationTypeEnum +func GetDrgRouteRuleDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + } +} + +// GetMappingDrgRouteRuleDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteRuleDestinationTypeEnum(val string) (DrgRouteRuleDestinationTypeEnum, bool) { + enum, ok := mappingDrgRouteRuleDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DrgRouteRuleRouteTypeEnum Enum with underlying type: string +type DrgRouteRuleRouteTypeEnum string + +// Set of constants representing the allowable values for DrgRouteRuleRouteTypeEnum +const ( + DrgRouteRuleRouteTypeStatic DrgRouteRuleRouteTypeEnum = "STATIC" + DrgRouteRuleRouteTypeDynamic DrgRouteRuleRouteTypeEnum = "DYNAMIC" +) + +var mappingDrgRouteRuleRouteTypeEnum = map[string]DrgRouteRuleRouteTypeEnum{ + "STATIC": DrgRouteRuleRouteTypeStatic, + "DYNAMIC": DrgRouteRuleRouteTypeDynamic, +} + +var mappingDrgRouteRuleRouteTypeEnumLowerCase = map[string]DrgRouteRuleRouteTypeEnum{ + "static": DrgRouteRuleRouteTypeStatic, + "dynamic": DrgRouteRuleRouteTypeDynamic, +} + +// GetDrgRouteRuleRouteTypeEnumValues Enumerates the set of values for DrgRouteRuleRouteTypeEnum +func GetDrgRouteRuleRouteTypeEnumValues() []DrgRouteRuleRouteTypeEnum { + values := make([]DrgRouteRuleRouteTypeEnum, 0) + for _, v := range mappingDrgRouteRuleRouteTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteRuleRouteTypeEnumStringValues Enumerates the set of values in String for DrgRouteRuleRouteTypeEnum +func GetDrgRouteRuleRouteTypeEnumStringValues() []string { + return []string{ + "STATIC", + "DYNAMIC", + } +} + +// GetMappingDrgRouteRuleRouteTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteRuleRouteTypeEnum(val string) (DrgRouteRuleRouteTypeEnum, bool) { + enum, ok := mappingDrgRouteRuleRouteTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DrgRouteRuleRouteProvenanceEnum Enum with underlying type: string +type DrgRouteRuleRouteProvenanceEnum string + +// Set of constants representing the allowable values for DrgRouteRuleRouteProvenanceEnum +const ( + DrgRouteRuleRouteProvenanceStatic DrgRouteRuleRouteProvenanceEnum = "STATIC" + DrgRouteRuleRouteProvenanceVcn DrgRouteRuleRouteProvenanceEnum = "VCN" + DrgRouteRuleRouteProvenanceVirtualCircuit DrgRouteRuleRouteProvenanceEnum = "VIRTUAL_CIRCUIT" + DrgRouteRuleRouteProvenanceIpsecTunnel DrgRouteRuleRouteProvenanceEnum = "IPSEC_TUNNEL" +) + +var mappingDrgRouteRuleRouteProvenanceEnum = map[string]DrgRouteRuleRouteProvenanceEnum{ + "STATIC": DrgRouteRuleRouteProvenanceStatic, + "VCN": DrgRouteRuleRouteProvenanceVcn, + "VIRTUAL_CIRCUIT": DrgRouteRuleRouteProvenanceVirtualCircuit, + "IPSEC_TUNNEL": DrgRouteRuleRouteProvenanceIpsecTunnel, +} + +var mappingDrgRouteRuleRouteProvenanceEnumLowerCase = map[string]DrgRouteRuleRouteProvenanceEnum{ + "static": DrgRouteRuleRouteProvenanceStatic, + "vcn": DrgRouteRuleRouteProvenanceVcn, + "virtual_circuit": DrgRouteRuleRouteProvenanceVirtualCircuit, + "ipsec_tunnel": DrgRouteRuleRouteProvenanceIpsecTunnel, +} + +// GetDrgRouteRuleRouteProvenanceEnumValues Enumerates the set of values for DrgRouteRuleRouteProvenanceEnum +func GetDrgRouteRuleRouteProvenanceEnumValues() []DrgRouteRuleRouteProvenanceEnum { + values := make([]DrgRouteRuleRouteProvenanceEnum, 0) + for _, v := range mappingDrgRouteRuleRouteProvenanceEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteRuleRouteProvenanceEnumStringValues Enumerates the set of values in String for DrgRouteRuleRouteProvenanceEnum +func GetDrgRouteRuleRouteProvenanceEnumStringValues() []string { + return []string{ + "STATIC", + "VCN", + "VIRTUAL_CIRCUIT", + "IPSEC_TUNNEL", + } +} + +// GetMappingDrgRouteRuleRouteProvenanceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteRuleRouteProvenanceEnum(val string) (DrgRouteRuleRouteProvenanceEnum, bool) { + enum, ok := mappingDrgRouteRuleRouteProvenanceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_table.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_table.go new file mode 100644 index 0000000000..1c8a6bda9c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_route_table.go @@ -0,0 +1,142 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgRouteTable All routing inside the DRG is driven by the contents of DRG route tables. +// DRG route tables contain rules which route packets to a particular network destination, +// represented as a DRG attachment. +// The routing decision for a packet entering a DRG is determined by the rules in the DRG route table +// assigned to the attachment-of-entry. +// Each DRG attachment can inject routes in any DRG route table, provided there is a statement corresponding to the attachment in the route table's `importDrgRouteDistribution`. +// You can also insert static routes into the DRG route tables. +// The DRG route table is always in the same compartment as the DRG. There must always be a default +// DRG route table for each attachment type. +type DrgRouteTable struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + // DRG route table. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment the DRG is in. The DRG route table + // is always in the same compartment as the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG the DRG that contains this route table. + DrgId *string `mandatory:"true" json:"drgId"` + + // The date and time the DRG route table was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The DRG route table's current state. + LifecycleState DrgRouteTableLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to + // your on-premises network, enable ECMP on the DRG route table to which these attachments + // import routes. + IsEcmpEnabled *bool `mandatory:"true" json:"isEcmpEnabled"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the import route distribution used to specify how incoming route advertisements from + // referenced attachments are inserted into the DRG route table. + ImportDrgRouteDistributionId *string `mandatory:"false" json:"importDrgRouteDistributionId"` +} + +func (m DrgRouteTable) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgRouteTable) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgRouteTableLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDrgRouteTableLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgRouteTableLifecycleStateEnum Enum with underlying type: string +type DrgRouteTableLifecycleStateEnum string + +// Set of constants representing the allowable values for DrgRouteTableLifecycleStateEnum +const ( + DrgRouteTableLifecycleStateProvisioning DrgRouteTableLifecycleStateEnum = "PROVISIONING" + DrgRouteTableLifecycleStateAvailable DrgRouteTableLifecycleStateEnum = "AVAILABLE" + DrgRouteTableLifecycleStateTerminating DrgRouteTableLifecycleStateEnum = "TERMINATING" + DrgRouteTableLifecycleStateTerminated DrgRouteTableLifecycleStateEnum = "TERMINATED" +) + +var mappingDrgRouteTableLifecycleStateEnum = map[string]DrgRouteTableLifecycleStateEnum{ + "PROVISIONING": DrgRouteTableLifecycleStateProvisioning, + "AVAILABLE": DrgRouteTableLifecycleStateAvailable, + "TERMINATING": DrgRouteTableLifecycleStateTerminating, + "TERMINATED": DrgRouteTableLifecycleStateTerminated, +} + +var mappingDrgRouteTableLifecycleStateEnumLowerCase = map[string]DrgRouteTableLifecycleStateEnum{ + "provisioning": DrgRouteTableLifecycleStateProvisioning, + "available": DrgRouteTableLifecycleStateAvailable, + "terminating": DrgRouteTableLifecycleStateTerminating, + "terminated": DrgRouteTableLifecycleStateTerminated, +} + +// GetDrgRouteTableLifecycleStateEnumValues Enumerates the set of values for DrgRouteTableLifecycleStateEnum +func GetDrgRouteTableLifecycleStateEnumValues() []DrgRouteTableLifecycleStateEnum { + values := make([]DrgRouteTableLifecycleStateEnum, 0) + for _, v := range mappingDrgRouteTableLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDrgRouteTableLifecycleStateEnumStringValues Enumerates the set of values in String for DrgRouteTableLifecycleStateEnum +func GetDrgRouteTableLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingDrgRouteTableLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgRouteTableLifecycleStateEnum(val string) (DrgRouteTableLifecycleStateEnum, bool) { + enum, ok := mappingDrgRouteTableLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_upgrade_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_upgrade_state.go new file mode 100644 index 0000000000..cf9c8a591c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_upgrade_state.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgUpgradeState A dynamic routing gateway (DRG) can be in different states during upgrade - Classical, Migrated, Upgraded(Transit-Hub) +type DrgUpgradeState struct { + + // The type of the DRG. + State DrgUpgradeStateStateEnum `mandatory:"false" json:"state,omitempty"` +} + +func (m DrgUpgradeState) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgUpgradeState) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDrgUpgradeStateStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetDrgUpgradeStateStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgUpgradeStateStateEnum Enum with underlying type: string +type DrgUpgradeStateStateEnum string + +// Set of constants representing the allowable values for DrgUpgradeStateStateEnum +const ( + DrgUpgradeStateStateClassical DrgUpgradeStateStateEnum = "CLASSICAL" + DrgUpgradeStateStateMigrated DrgUpgradeStateStateEnum = "MIGRATED" + DrgUpgradeStateStateUpgraded DrgUpgradeStateStateEnum = "UPGRADED" +) + +var mappingDrgUpgradeStateStateEnum = map[string]DrgUpgradeStateStateEnum{ + "CLASSICAL": DrgUpgradeStateStateClassical, + "MIGRATED": DrgUpgradeStateStateMigrated, + "UPGRADED": DrgUpgradeStateStateUpgraded, +} + +var mappingDrgUpgradeStateStateEnumLowerCase = map[string]DrgUpgradeStateStateEnum{ + "classical": DrgUpgradeStateStateClassical, + "migrated": DrgUpgradeStateStateMigrated, + "upgraded": DrgUpgradeStateStateUpgraded, +} + +// GetDrgUpgradeStateStateEnumValues Enumerates the set of values for DrgUpgradeStateStateEnum +func GetDrgUpgradeStateStateEnumValues() []DrgUpgradeStateStateEnum { + values := make([]DrgUpgradeStateStateEnum, 0) + for _, v := range mappingDrgUpgradeStateStateEnum { + values = append(values, v) + } + return values +} + +// GetDrgUpgradeStateStateEnumStringValues Enumerates the set of values in String for DrgUpgradeStateStateEnum +func GetDrgUpgradeStateStateEnumStringValues() []string { + return []string{ + "CLASSICAL", + "MIGRATED", + "UPGRADED", + } +} + +// GetMappingDrgUpgradeStateStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgUpgradeStateStateEnum(val string) (DrgUpgradeStateStateEnum, bool) { + enum, ok := mappingDrgUpgradeStateStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule.go new file mode 100644 index 0000000000..6bfa7a7015 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgUrtRouteRule Routing information needed by VCN DP to route DRG traffic. +type DrgUrtRouteRule struct { + + // The destination IP prefix (CIDR). + IpPrefix *string `mandatory:"true" json:"ipPrefix"` + + // Encapsulation type. + EncapType DrgUrtRouteRuleEncapTypeEnum `mandatory:"true" json:"encapType"` + + // The IP address of the next hop, for the destination prefix. + NextHopIp *string `mandatory:"true" json:"nextHopIp"` + + // The label used in the encapsulated packet. For MPLSoUDP packets, this will be the + // MPLS Label, and for VXLAN packets, this will be the VNI. + EncapLabel *int `mandatory:"true" json:"encapLabel"` + + // Mac address of the next-hop for VXLAN encapped packets. + NextHopMac *string `mandatory:"false" json:"nextHopMac"` + + // The max MTU size supported by the next hop. + Mtu *int `mandatory:"false" json:"mtu"` + + // To be used for building/AD affinity. + NextHopLocation *string `mandatory:"false" json:"nextHopLocation"` + + // The label of the next hop DRG attachment responsible for reaching the network destination. + NextHopAttachmentLabel *int64 `mandatory:"false" json:"nextHopAttachmentLabel"` + + // Not supported now, reserved for future use. + // The date and time the routes were last updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + LastModified *common.SDKTime `mandatory:"false" json:"lastModified"` +} + +func (m DrgUrtRouteRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgUrtRouteRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgUrtRouteRuleEncapTypeEnum(string(m.EncapType)); !ok && m.EncapType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncapType: %s. Supported values are: %s.", m.EncapType, strings.Join(GetDrgUrtRouteRuleEncapTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DrgUrtRouteRuleEncapTypeEnum Enum with underlying type: string +type DrgUrtRouteRuleEncapTypeEnum string + +// Set of constants representing the allowable values for DrgUrtRouteRuleEncapTypeEnum +const ( + DrgUrtRouteRuleEncapTypeVxlan DrgUrtRouteRuleEncapTypeEnum = "VXLAN" + DrgUrtRouteRuleEncapTypeMplsOUdp DrgUrtRouteRuleEncapTypeEnum = "MPLS_O_UDP" +) + +var mappingDrgUrtRouteRuleEncapTypeEnum = map[string]DrgUrtRouteRuleEncapTypeEnum{ + "VXLAN": DrgUrtRouteRuleEncapTypeVxlan, + "MPLS_O_UDP": DrgUrtRouteRuleEncapTypeMplsOUdp, +} + +var mappingDrgUrtRouteRuleEncapTypeEnumLowerCase = map[string]DrgUrtRouteRuleEncapTypeEnum{ + "vxlan": DrgUrtRouteRuleEncapTypeVxlan, + "mpls_o_udp": DrgUrtRouteRuleEncapTypeMplsOUdp, +} + +// GetDrgUrtRouteRuleEncapTypeEnumValues Enumerates the set of values for DrgUrtRouteRuleEncapTypeEnum +func GetDrgUrtRouteRuleEncapTypeEnumValues() []DrgUrtRouteRuleEncapTypeEnum { + values := make([]DrgUrtRouteRuleEncapTypeEnum, 0) + for _, v := range mappingDrgUrtRouteRuleEncapTypeEnum { + values = append(values, v) + } + return values +} + +// GetDrgUrtRouteRuleEncapTypeEnumStringValues Enumerates the set of values in String for DrgUrtRouteRuleEncapTypeEnum +func GetDrgUrtRouteRuleEncapTypeEnumStringValues() []string { + return []string{ + "VXLAN", + "MPLS_O_UDP", + } +} + +// GetMappingDrgUrtRouteRuleEncapTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDrgUrtRouteRuleEncapTypeEnum(val string) (DrgUrtRouteRuleEncapTypeEnum, bool) { + enum, ok := mappingDrgUrtRouteRuleEncapTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule_details.go new file mode 100644 index 0000000000..d13cfc9e3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_urt_route_rule_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgUrtRouteRuleDetails Details of Routing information needed by VCN DP to route DRG traffic. +type DrgUrtRouteRuleDetails struct { + + // The label of the attachment. + DrgAttachmentLabel *int64 `mandatory:"true" json:"drgAttachmentLabel"` + + // Routing information needed by VCN DP to route DRG traffic. + Rules []DrgUrtRouteRule `mandatory:"true" json:"rules"` + + // For debugging purposes. + VrfLabel *int64 `mandatory:"false" json:"vrfLabel"` + + // Not supported now, reserved for future use. + // The date and time the routes were last updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + LastModified *common.SDKTime `mandatory:"false" json:"lastModified"` + + // Not supported now, reserved for future use + PaginationToken *string `mandatory:"false" json:"paginationToken"` +} + +func (m DrgUrtRouteRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgUrtRouteRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_validation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_validation_status.go new file mode 100644 index 0000000000..692f67f733 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/drg_validation_status.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DrgValidationStatus Status of DRG route tables after migration or upgrade. isValid == true indicates that the routes tables before and after migration or upgrade match up as we would expect. +type DrgValidationStatus struct { + + // The `drgId` of the upgraded DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // isValid == true indicates that the routes tables before and after migration or upgrade match up as we would expect. + IsValid *bool `mandatory:"true" json:"isValid"` +} + +func (m DrgValidationStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DrgValidationStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/egress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/egress_security_rule.go new file mode 100644 index 0000000000..35402fd285 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/egress_security_rule.go @@ -0,0 +1,126 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EgressSecurityRule A rule for allowing outbound IP packets. +type EgressSecurityRule struct { + + // Conceptually, this is the range of IP addresses that a packet originating from the instance + // can go to. + // Allowed values: + // * IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // Note that IPv6 addressing is currently supported only in certain regions. See + // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security list rule for traffic destined for a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + Destination *string `mandatory:"true" json:"destination"` + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). + Protocol *string `mandatory:"true" json:"protocol"` + + // Type of destination for the rule. The default is `CIDR_BLOCK`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + DestinationType EgressSecurityRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if egress traffic allows TCP destination port 80, there should be an ingress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` + + // An optional description of your choice for the rule. + Description *string `mandatory:"false" json:"description"` +} + +func (m EgressSecurityRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EgressSecurityRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingEgressSecurityRuleDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetEgressSecurityRuleDestinationTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EgressSecurityRuleDestinationTypeEnum Enum with underlying type: string +type EgressSecurityRuleDestinationTypeEnum string + +// Set of constants representing the allowable values for EgressSecurityRuleDestinationTypeEnum +const ( + EgressSecurityRuleDestinationTypeCidrBlock EgressSecurityRuleDestinationTypeEnum = "CIDR_BLOCK" + EgressSecurityRuleDestinationTypeServiceCidrBlock EgressSecurityRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" +) + +var mappingEgressSecurityRuleDestinationTypeEnum = map[string]EgressSecurityRuleDestinationTypeEnum{ + "CIDR_BLOCK": EgressSecurityRuleDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": EgressSecurityRuleDestinationTypeServiceCidrBlock, +} + +var mappingEgressSecurityRuleDestinationTypeEnumLowerCase = map[string]EgressSecurityRuleDestinationTypeEnum{ + "cidr_block": EgressSecurityRuleDestinationTypeCidrBlock, + "service_cidr_block": EgressSecurityRuleDestinationTypeServiceCidrBlock, +} + +// GetEgressSecurityRuleDestinationTypeEnumValues Enumerates the set of values for EgressSecurityRuleDestinationTypeEnum +func GetEgressSecurityRuleDestinationTypeEnumValues() []EgressSecurityRuleDestinationTypeEnum { + values := make([]EgressSecurityRuleDestinationTypeEnum, 0) + for _, v := range mappingEgressSecurityRuleDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetEgressSecurityRuleDestinationTypeEnumStringValues Enumerates the set of values in String for EgressSecurityRuleDestinationTypeEnum +func GetEgressSecurityRuleDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + } +} + +// GetMappingEgressSecurityRuleDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEgressSecurityRuleDestinationTypeEnum(val string) (EgressSecurityRuleDestinationTypeEnum, bool) { + enum, ok := mappingEgressSecurityRuleDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/emulated_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/emulated_volume_attachment.go new file mode 100644 index 0000000000..5653e4d8b0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/emulated_volume_attachment.go @@ -0,0 +1,180 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EmulatedVolumeAttachment An Emulated volume attachment. +type EmulatedVolumeAttachment struct { + + // The availability domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the volume attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance the volume is attached to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the volume. + VolumeId *string `mandatory:"true" json:"volumeId"` + + // The device name. + Device *string `mandatory:"false" json:"device"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment. + IsMultipath *bool `mandatory:"false" json:"isMultipath"` + + // The current state of the volume attachment. + LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The iscsi login state of the volume attachment. For a Iscsi volume attachment, + // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. + IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m EmulatedVolumeAttachment) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m EmulatedVolumeAttachment) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDevice returns Device +func (m EmulatedVolumeAttachment) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m EmulatedVolumeAttachment) GetDisplayName() *string { + return m.DisplayName +} + +//GetId returns Id +func (m EmulatedVolumeAttachment) GetId() *string { + return m.Id +} + +//GetInstanceId returns InstanceId +func (m EmulatedVolumeAttachment) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m EmulatedVolumeAttachment) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m EmulatedVolumeAttachment) GetIsShareable() *bool { + return m.IsShareable +} + +//GetLifecycleState returns LifecycleState +func (m EmulatedVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { + return m.LifecycleState +} + +//GetTimeCreated returns TimeCreated +func (m EmulatedVolumeAttachment) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetVolumeId returns VolumeId +func (m EmulatedVolumeAttachment) GetVolumeId() *string { + return m.VolumeId +} + +//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled +func (m EmulatedVolumeAttachment) GetIsPvEncryptionInTransitEnabled() *bool { + return m.IsPvEncryptionInTransitEnabled +} + +//GetIsMultipath returns IsMultipath +func (m EmulatedVolumeAttachment) GetIsMultipath() *bool { + return m.IsMultipath +} + +//GetIscsiLoginState returns IscsiLoginState +func (m EmulatedVolumeAttachment) GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum { + return m.IscsiLoginState +} + +func (m EmulatedVolumeAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EmulatedVolumeAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVolumeAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeAttachmentLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeAttachmentIscsiLoginStateEnum(string(m.IscsiLoginState)); !ok && m.IscsiLoginState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IscsiLoginState: %s. Supported values are: %s.", m.IscsiLoginState, strings.Join(GetVolumeAttachmentIscsiLoginStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m EmulatedVolumeAttachment) MarshalJSON() (buff []byte, e error) { + type MarshalTypeEmulatedVolumeAttachment EmulatedVolumeAttachment + s := struct { + DiscriminatorParam string `json:"attachmentType"` + MarshalTypeEmulatedVolumeAttachment + }{ + "emulated", + (MarshalTypeEmulatedVolumeAttachment)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_details.go new file mode 100644 index 0000000000..474035dac7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_details.go @@ -0,0 +1,252 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EnableReverseConnectionsDetails Details for enabling reverse connections for a private endpoint. +type EnableReverseConnectionsDetails struct { + + // A list of IP addresses in the customer VCN to be used as the source IPs for reverse connection packets + // traveling from the service's VCN to the customer's VCN. If no list is specified or + // an empty list is provided, an IP address will be chosen from the customer subnet's CIDR. + ReverseConnectionsSourceIps []ReverseConnectionsSourceIpDetails `mandatory:"false" json:"reverseConnectionsSourceIps"` + + // Whether a proxy should be configured for the reverse connection. If the service + // does not intend to use any proxy, set this to `false`. + // Example: `false` + IsProxyEnabled *bool `mandatory:"false" json:"isProxyEnabled"` + + // List of proxies to be spawned for this reverse connection. All proxy types specified in + // this list will be spawned and they will use the proxyIp(below) as the address. + // If not specified, the field will default back to a list with DNS proxy only. + ProxyType []EnableReverseConnectionsDetailsProxyTypeEnum `mandatory:"false" json:"proxyType,omitempty"` + + // The IP address in the service VCN to be used to reach the reverse connection proxy + // services DNS & SCAN proxy. If no value is provided, an available IP address will + // be chosen from the service subnet's CIDR. + ProxyIp *string `mandatory:"false" json:"proxyIp"` + + // The IP address in the service VCN to be used to reach the DNS proxy that resolves the + // customer FQDN for reverse connections. If no value is provided, an available IP address will + // be chosen from the service subnet's CIDR. + // This field will be deprecated in favor of proxyIp in future. + DnsProxyIp *string `mandatory:"false" json:"dnsProxyIp"` + + // The context in which the DNS proxy will resolve the DNS queries. The default is `SERVICE`. + // For example: if the service does not know the specific DNS zones for the customer VCNs, set + // this to `CUSTOMER`, and set `excludedDnsZones` to the list of DNS zones in your service + // provider VCN. + // Allowed values: + // * `SERVICE`: All DNS queries will be resolved within the service VCN's DNS context, + // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. + // * `CUSTOMER`: All DNS queries will be resolved within the customer VCN's DNS context, + // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. + DefaultDnsResolutionContext EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum `mandatory:"false" json:"defaultDnsResolutionContext,omitempty"` + + // List of DNS zones to exclude from the default DNS resolution context. + ExcludedDnsZones []string `mandatory:"false" json:"excludedDnsZones"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service's subnet where + // the DNS proxy endpoint will be created. + ServiceSubnetId *string `mandatory:"false" json:"serviceSubnetId"` + + // A list of the OCIDs of the network security groups that the reverse connection's VNIC belongs to. + // For more information about NSGs, see + // NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Number of customer endpoints that the service provider expects to establish connections to using this RCE. The default is 0. + // When non-zero value is specified, reverse connection configuration will be allocated with a list of CIDRs, from + // which NAT IP addresses will be allocated. These list of CIDRs will not be shared by other reverse + // connection enabled private endpoints. + // When zero is specified, reverse connection configuration will get NAT IP addresses from common pool of CIDRs, + // which will be shared with other reverse connection enabled private endpoints. + // If the private endpoint was enabled with reverse connection with 0 already, the field is not updatable. + // The size may not be updated with smaller number than previously specified value, but may be increased. + CustomerEndpointsSize *int `mandatory:"false" json:"customerEndpointsSize"` + + // Layer 4 transport protocol to be used when resolving DNS queries within the default DNS resolution context. + DefaultDnsContextTransport EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum `mandatory:"false" json:"defaultDnsContextTransport,omitempty"` + + // List of CIDRs that this reverse connection configuration will allocate the NAT IP addresses from. + // CIDRs on this list should not be shared by other reverse connection enabled private endpoints. + // When not specified, if the customerEndpointSize is non null, reverse connection configuration will get + // NAT IP addresses from the dedicated pool of CIDRs, else will get specified from the common pool of CIDRs. + // This field cannot be specified if the customerEndpointsSize field is non null and vice versa. + ReverseConnectionNatIpCidrs []string `mandatory:"false" json:"reverseConnectionNatIpCidrs"` + + // Whether the reverse connection should be configured with single Ip. If the service + // does not intend to use single Ip for both forward and reverse connection, set this to `false`. + // Example: `false` + IsSingleIpEnabled *bool `mandatory:"false" json:"isSingleIpEnabled"` +} + +func (m EnableReverseConnectionsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EnableReverseConnectionsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.ProxyType { + if _, ok := GetMappingEnableReverseConnectionsDetailsProxyTypeEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProxyType: %s. Supported values are: %s.", val, strings.Join(GetEnableReverseConnectionsDetailsProxyTypeEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum(string(m.DefaultDnsResolutionContext)); !ok && m.DefaultDnsResolutionContext != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DefaultDnsResolutionContext: %s. Supported values are: %s.", m.DefaultDnsResolutionContext, strings.Join(GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumStringValues(), ","))) + } + if _, ok := GetMappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnum(string(m.DefaultDnsContextTransport)); !ok && m.DefaultDnsContextTransport != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DefaultDnsContextTransport: %s. Supported values are: %s.", m.DefaultDnsContextTransport, strings.Join(GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EnableReverseConnectionsDetailsProxyTypeEnum Enum with underlying type: string +type EnableReverseConnectionsDetailsProxyTypeEnum string + +// Set of constants representing the allowable values for EnableReverseConnectionsDetailsProxyTypeEnum +const ( + EnableReverseConnectionsDetailsProxyTypeDns EnableReverseConnectionsDetailsProxyTypeEnum = "DNS" + EnableReverseConnectionsDetailsProxyTypeScan EnableReverseConnectionsDetailsProxyTypeEnum = "SCAN" +) + +var mappingEnableReverseConnectionsDetailsProxyTypeEnum = map[string]EnableReverseConnectionsDetailsProxyTypeEnum{ + "DNS": EnableReverseConnectionsDetailsProxyTypeDns, + "SCAN": EnableReverseConnectionsDetailsProxyTypeScan, +} + +var mappingEnableReverseConnectionsDetailsProxyTypeEnumLowerCase = map[string]EnableReverseConnectionsDetailsProxyTypeEnum{ + "dns": EnableReverseConnectionsDetailsProxyTypeDns, + "scan": EnableReverseConnectionsDetailsProxyTypeScan, +} + +// GetEnableReverseConnectionsDetailsProxyTypeEnumValues Enumerates the set of values for EnableReverseConnectionsDetailsProxyTypeEnum +func GetEnableReverseConnectionsDetailsProxyTypeEnumValues() []EnableReverseConnectionsDetailsProxyTypeEnum { + values := make([]EnableReverseConnectionsDetailsProxyTypeEnum, 0) + for _, v := range mappingEnableReverseConnectionsDetailsProxyTypeEnum { + values = append(values, v) + } + return values +} + +// GetEnableReverseConnectionsDetailsProxyTypeEnumStringValues Enumerates the set of values in String for EnableReverseConnectionsDetailsProxyTypeEnum +func GetEnableReverseConnectionsDetailsProxyTypeEnumStringValues() []string { + return []string{ + "DNS", + "SCAN", + } +} + +// GetMappingEnableReverseConnectionsDetailsProxyTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEnableReverseConnectionsDetailsProxyTypeEnum(val string) (EnableReverseConnectionsDetailsProxyTypeEnum, bool) { + enum, ok := mappingEnableReverseConnectionsDetailsProxyTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum Enum with underlying type: string +type EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum string + +// Set of constants representing the allowable values for EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum +const ( + EnableReverseConnectionsDetailsDefaultDnsResolutionContextService EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum = "SERVICE" + EnableReverseConnectionsDetailsDefaultDnsResolutionContextCustomer EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum = "CUSTOMER" +) + +var mappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum = map[string]EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum{ + "SERVICE": EnableReverseConnectionsDetailsDefaultDnsResolutionContextService, + "CUSTOMER": EnableReverseConnectionsDetailsDefaultDnsResolutionContextCustomer, +} + +var mappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumLowerCase = map[string]EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum{ + "service": EnableReverseConnectionsDetailsDefaultDnsResolutionContextService, + "customer": EnableReverseConnectionsDetailsDefaultDnsResolutionContextCustomer, +} + +// GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumValues Enumerates the set of values for EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum +func GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumValues() []EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum { + values := make([]EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum, 0) + for _, v := range mappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum { + values = append(values, v) + } + return values +} + +// GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumStringValues Enumerates the set of values in String for EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum +func GetEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumStringValues() []string { + return []string{ + "SERVICE", + "CUSTOMER", + } +} + +// GetMappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum(val string) (EnableReverseConnectionsDetailsDefaultDnsResolutionContextEnum, bool) { + enum, ok := mappingEnableReverseConnectionsDetailsDefaultDnsResolutionContextEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum Enum with underlying type: string +type EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum string + +// Set of constants representing the allowable values for EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum +const ( + EnableReverseConnectionsDetailsDefaultDnsContextTransportTcp EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum = "TCP" + EnableReverseConnectionsDetailsDefaultDnsContextTransportUdp EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum = "UDP" +) + +var mappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnum = map[string]EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum{ + "TCP": EnableReverseConnectionsDetailsDefaultDnsContextTransportTcp, + "UDP": EnableReverseConnectionsDetailsDefaultDnsContextTransportUdp, +} + +var mappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumLowerCase = map[string]EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum{ + "tcp": EnableReverseConnectionsDetailsDefaultDnsContextTransportTcp, + "udp": EnableReverseConnectionsDetailsDefaultDnsContextTransportUdp, +} + +// GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumValues Enumerates the set of values for EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum +func GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumValues() []EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum { + values := make([]EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum, 0) + for _, v := range mappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnum { + values = append(values, v) + } + return values +} + +// GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumStringValues Enumerates the set of values in String for EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum +func GetEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumStringValues() []string { + return []string{ + "TCP", + "UDP", + } +} + +// GetMappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnum(val string) (EnableReverseConnectionsDetailsDefaultDnsContextTransportEnum, bool) { + enum, ok := mappingEnableReverseConnectionsDetailsDefaultDnsContextTransportEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_request_response.go index 7d5997f1b2..42ce33b296 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_reverse_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_reverse_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // EnableReverseConnectionsRequest wrapper for the EnableReverseConnections operation @@ -50,6 +52,10 @@ func (request EnableReverseConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request EnableReverseConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -65,6 +71,17 @@ func (request EnableReverseConnectionsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request EnableReverseConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // EnableReverseConnectionsResponse wrapper for the EnableReverseConnections operation type EnableReverseConnectionsResponse struct { @@ -81,7 +98,8 @@ type EnableReverseConnectionsResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_vnic_worker_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/enable_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/enable_vnic_worker_request_response.go index 30f502fdcf..08123bb9df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/enable_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/enable_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // EnableVnicWorkerRequest wrapper for the EnableVnicWorker operation type EnableVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request EnableVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request EnableVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request EnableVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request EnableVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // EnableVnicWorkerResponse wrapper for the EnableVnicWorker operation type EnableVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_domain_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_domain_config.go new file mode 100644 index 0000000000..7ac395db40 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_domain_config.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EncryptionDomainConfig Configuration information used by the encryption domain policy. +type EncryptionDomainConfig struct { + + // Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. + OracleTrafficSelector []string `mandatory:"false" json:"oracleTrafficSelector"` + + // Lists IPv4 or IPv6-enabled subnets in your on-premises network. + CpeTrafficSelector []string `mandatory:"false" json:"cpeTrafficSelector"` +} + +func (m EncryptionDomainConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EncryptionDomainConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_in_transit_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_in_transit_type.go new file mode 100644 index 0000000000..45164861af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/encryption_in_transit_type.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "strings" +) + +// EncryptionInTransitTypeEnum Enum with underlying type: string +type EncryptionInTransitTypeEnum string + +// Set of constants representing the allowable values for EncryptionInTransitTypeEnum +const ( + EncryptionInTransitTypeNone EncryptionInTransitTypeEnum = "NONE" + EncryptionInTransitTypeBmEncryptionInTransit EncryptionInTransitTypeEnum = "BM_ENCRYPTION_IN_TRANSIT" +) + +var mappingEncryptionInTransitTypeEnum = map[string]EncryptionInTransitTypeEnum{ + "NONE": EncryptionInTransitTypeNone, + "BM_ENCRYPTION_IN_TRANSIT": EncryptionInTransitTypeBmEncryptionInTransit, +} + +var mappingEncryptionInTransitTypeEnumLowerCase = map[string]EncryptionInTransitTypeEnum{ + "none": EncryptionInTransitTypeNone, + "bm_encryption_in_transit": EncryptionInTransitTypeBmEncryptionInTransit, +} + +// GetEncryptionInTransitTypeEnumValues Enumerates the set of values for EncryptionInTransitTypeEnum +func GetEncryptionInTransitTypeEnumValues() []EncryptionInTransitTypeEnum { + values := make([]EncryptionInTransitTypeEnum, 0) + for _, v := range mappingEncryptionInTransitTypeEnum { + values = append(values, v) + } + return values +} + +// GetEncryptionInTransitTypeEnumStringValues Enumerates the set of values in String for EncryptionInTransitTypeEnum +func GetEncryptionInTransitTypeEnumStringValues() []string { + return []string{ + "NONE", + "BM_ENCRYPTION_IN_TRANSIT", + } +} + +// GetMappingEncryptionInTransitTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEncryptionInTransitTypeEnum(val string) (EncryptionInTransitTypeEnum, bool) { + enum, ok := mappingEncryptionInTransitTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service.go new file mode 100644 index 0000000000..895a6d2b6b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service.go @@ -0,0 +1,178 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointService Required for Oracle services that offer customers private endpoints for private access to the +// service. +// An endpoint service is an object that resides in the Oracle service's VCN and represents the IP addresses +// for accessing the service. An endpoint service can be associated with one or more private +// endpoints, which reside in customer VCNs (see PrivateEndpoint). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type EndpointService struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the + // endpoint service. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // List of service IP addresses (in the service VCN) that handle requests to the endpoint service. + ServiceIps []EndpointServiceIpDetails `mandatory:"true" json:"serviceIps"` + + // The ports on the endpoint service IPs that are open for private endpoint traffic for this + // endpoint service. If you provide no ports, all open ports on the service IPs are accessible. + Ports []int `mandatory:"true" json:"ports"` + + // The three-label FQDN to use for all private endpoints associated with this endpoint + // service. This attribute's value cannot be changed. + // For important information about how this attribute is used, see the discussion + // of DNS and FQDNs in PrivateEndpoint. + // Example: `xyz.oraclecloud.com` + EndpointFqdn *string `mandatory:"true" json:"endpointFqdn"` + + // The date and time the endpoint service was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The endpoint service's current lifecycle state. + LifecycleState EndpointServiceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the endpoint + // service belongs to. + VcnId *string `mandatory:"false" json:"vcnId"` + + // A description of the endpoint service. For Oracle services that use the "trusted" mode of the + // private endpoint service, customers never see this description. + Description *string `mandatory:"false" json:"description"` + + // A friendly name for the endpoint service. Must be unique within the VCN. Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Some Oracle services want to restrict access to the resources represented by an endpoint service so + // that only a single private endpoint in the customer VCN has access. + // For example, the endpoint service might represent a particular service resource (such as a + // particular database). The service might want to allow access to that particular resource + // from only a single private endpoint. + // Defaults to `false`. + // Example: `true` + AreMultiplePrivateEndpointsPerVcnAllowed *bool `mandatory:"false" json:"areMultiplePrivateEndpointsPerVcnAllowed"` + + // Reserved for future use. + IsVcnMetadataEnabled *bool `mandatory:"false" json:"isVcnMetadataEnabled"` + + // ES from substrate or not + IsSubstrate *bool `mandatory:"false" json:"isSubstrate"` + + // RCE substrate anycast IP + ReverseConnectionAnycastIp *string `mandatory:"false" json:"reverseConnectionAnycastIp"` + + // MPLS label that identifies the substrate endpoint service + ReverseConnectionMplsLabel *int `mandatory:"false" json:"reverseConnectionMplsLabel"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m EndpointService) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EndpointService) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingEndpointServiceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetEndpointServiceLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EndpointServiceLifecycleStateEnum Enum with underlying type: string +type EndpointServiceLifecycleStateEnum string + +// Set of constants representing the allowable values for EndpointServiceLifecycleStateEnum +const ( + EndpointServiceLifecycleStateProvisioning EndpointServiceLifecycleStateEnum = "PROVISIONING" + EndpointServiceLifecycleStateAvailable EndpointServiceLifecycleStateEnum = "AVAILABLE" + EndpointServiceLifecycleStateTerminating EndpointServiceLifecycleStateEnum = "TERMINATING" + EndpointServiceLifecycleStateTerminated EndpointServiceLifecycleStateEnum = "TERMINATED" + EndpointServiceLifecycleStateUpdating EndpointServiceLifecycleStateEnum = "UPDATING" + EndpointServiceLifecycleStateFailed EndpointServiceLifecycleStateEnum = "FAILED" +) + +var mappingEndpointServiceLifecycleStateEnum = map[string]EndpointServiceLifecycleStateEnum{ + "PROVISIONING": EndpointServiceLifecycleStateProvisioning, + "AVAILABLE": EndpointServiceLifecycleStateAvailable, + "TERMINATING": EndpointServiceLifecycleStateTerminating, + "TERMINATED": EndpointServiceLifecycleStateTerminated, + "UPDATING": EndpointServiceLifecycleStateUpdating, + "FAILED": EndpointServiceLifecycleStateFailed, +} + +var mappingEndpointServiceLifecycleStateEnumLowerCase = map[string]EndpointServiceLifecycleStateEnum{ + "provisioning": EndpointServiceLifecycleStateProvisioning, + "available": EndpointServiceLifecycleStateAvailable, + "terminating": EndpointServiceLifecycleStateTerminating, + "terminated": EndpointServiceLifecycleStateTerminated, + "updating": EndpointServiceLifecycleStateUpdating, + "failed": EndpointServiceLifecycleStateFailed, +} + +// GetEndpointServiceLifecycleStateEnumValues Enumerates the set of values for EndpointServiceLifecycleStateEnum +func GetEndpointServiceLifecycleStateEnumValues() []EndpointServiceLifecycleStateEnum { + values := make([]EndpointServiceLifecycleStateEnum, 0) + for _, v := range mappingEndpointServiceLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetEndpointServiceLifecycleStateEnumStringValues Enumerates the set of values in String for EndpointServiceLifecycleStateEnum +func GetEndpointServiceLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + "FAILED", + } +} + +// GetMappingEndpointServiceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingEndpointServiceLifecycleStateEnum(val string) (EndpointServiceLifecycleStateEnum, bool) { + enum, ok := mappingEndpointServiceLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_ip_details.go new file mode 100644 index 0000000000..4b036c1896 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_ip_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointServiceIpDetails Information about an IP address (in the service VCN) that handles requests to the endpoint service. +type EndpointServiceIpDetails struct { + + // An IP address (in the service VCN) that handles requests to the endpoint service. + ServiceIp *string `mandatory:"true" json:"serviceIp"` +} + +func (m EndpointServiceIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EndpointServiceIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_next_hop.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_next_hop.go new file mode 100644 index 0000000000..aad9f9848e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_next_hop.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointServiceNextHop Information of a particular service's next hop +type EndpointServiceNextHop struct { + + // An IP address that handles requests to the endpoint service. + ServiceIp *string `mandatory:"true" json:"serviceIp"` + + // An Internal IP address that handles requests to the substrate anycast of endpoint service. + NextHopIp *string `mandatory:"true" json:"nextHopIp"` + + // MPLS label that identifies the substrate endpoint service + NextHopSlotId *int `mandatory:"true" json:"nextHopSlotId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service. + EndpointServiceId *string `mandatory:"false" json:"endpointServiceId"` +} + +func (m EndpointServiceNextHop) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EndpointServiceNextHop) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_summary.go new file mode 100644 index 0000000000..1b22809621 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/endpoint_service_summary.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EndpointServiceSummary A summary of endpoint service information. This object is returned when listing endpoint +// services. +type EndpointServiceSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the endpoint + // service belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` +} + +func (m EndpointServiceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EndpointServiceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/enum_integer_image_capability_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/enum_integer_image_capability_descriptor.go new file mode 100644 index 0000000000..457c703e2f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/enum_integer_image_capability_descriptor.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EnumIntegerImageCapabilityDescriptor Enum Integer type CapabilityDescriptor +type EnumIntegerImageCapabilityDescriptor struct { + + // the list of values for the enum + Values []int `mandatory:"true" json:"values"` + + // the default value + DefaultValue *int `mandatory:"false" json:"defaultValue"` + + Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` +} + +//GetSource returns Source +func (m EnumIntegerImageCapabilityDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { + return m.Source +} + +func (m EnumIntegerImageCapabilityDescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EnumIntegerImageCapabilityDescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageCapabilitySchemaDescriptorSourceEnum(string(m.Source)); !ok && m.Source != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Source: %s. Supported values are: %s.", m.Source, strings.Join(GetImageCapabilitySchemaDescriptorSourceEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m EnumIntegerImageCapabilityDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeEnumIntegerImageCapabilityDescriptor EnumIntegerImageCapabilityDescriptor + s := struct { + DiscriminatorParam string `json:"descriptorType"` + MarshalTypeEnumIntegerImageCapabilityDescriptor + }{ + "enuminteger", + (MarshalTypeEnumIntegerImageCapabilityDescriptor)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/enum_string_image_capability_schema_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/enum_string_image_capability_schema_descriptor.go new file mode 100644 index 0000000000..8ddce6e1ae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/enum_string_image_capability_schema_descriptor.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EnumStringImageCapabilitySchemaDescriptor Enum String type of ImageCapabilitySchemaDescriptor +type EnumStringImageCapabilitySchemaDescriptor struct { + + // the list of values for the enum + Values []string `mandatory:"true" json:"values"` + + // the default value + DefaultValue *string `mandatory:"false" json:"defaultValue"` + + Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` +} + +//GetSource returns Source +func (m EnumStringImageCapabilitySchemaDescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { + return m.Source +} + +func (m EnumStringImageCapabilitySchemaDescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EnumStringImageCapabilitySchemaDescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageCapabilitySchemaDescriptorSourceEnum(string(m.Source)); !ok && m.Source != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Source: %s. Supported values are: %s.", m.Source, strings.Join(GetImageCapabilitySchemaDescriptorSourceEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m EnumStringImageCapabilitySchemaDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeEnumStringImageCapabilitySchemaDescriptor EnumStringImageCapabilitySchemaDescriptor + s := struct { + DiscriminatorParam string `json:"descriptorType"` + MarshalTypeEnumStringImageCapabilitySchemaDescriptor + }{ + "enumstring", + (MarshalTypeEnumStringImageCapabilitySchemaDescriptor)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_details.go new file mode 100644 index 0000000000..d679a0f1b2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_details.go @@ -0,0 +1,165 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExportImageDetails The destination details for the image export. +// Set `destinationType` to `objectStorageTuple` +// and use ExportImageViaObjectStorageTupleDetails +// when specifying the namespace, bucket name, and object name. +// Set `destinationType` to `objectStorageUri` and +// use ExportImageViaObjectStorageUriDetails +// when specifying the Object Storage URL. +type ExportImageDetails interface { + + // The format to export the image to. The default value is `OCI`. + // The following image formats are available: + // - `OCI` - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci). + // Use this format to export a custom image that you want to import into other tenancies or regions. + // - `QCOW2` - QEMU Copy On Write (.qcow2) + // - `VDI` - Virtual Disk Image (.vdi) for Oracle VM VirtualBox + // - `VHD` - Virtual Hard Disk (.vhd) for Hyper-V + // - `VMDK` - Virtual Machine Disk (.vmdk) + GetExportFormat() ExportImageDetailsExportFormatEnum +} + +type exportimagedetails struct { + JsonData []byte + ExportFormat ExportImageDetailsExportFormatEnum `mandatory:"false" json:"exportFormat,omitempty"` + DestinationType string `json:"destinationType"` +} + +// UnmarshalJSON unmarshals json +func (m *exportimagedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerexportimagedetails exportimagedetails + s := struct { + Model Unmarshalerexportimagedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.ExportFormat = s.Model.ExportFormat + m.DestinationType = s.Model.DestinationType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *exportimagedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.DestinationType { + case "objectStorageUri": + mm := ExportImageViaObjectStorageUriDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "objectStorageTuple": + mm := ExportImageViaObjectStorageTupleDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ExportImageDetails: %s.", m.DestinationType) + return *m, nil + } +} + +//GetExportFormat returns ExportFormat +func (m exportimagedetails) GetExportFormat() ExportImageDetailsExportFormatEnum { + return m.ExportFormat +} + +func (m exportimagedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m exportimagedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingExportImageDetailsExportFormatEnum(string(m.ExportFormat)); !ok && m.ExportFormat != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExportFormat: %s. Supported values are: %s.", m.ExportFormat, strings.Join(GetExportImageDetailsExportFormatEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExportImageDetailsExportFormatEnum Enum with underlying type: string +type ExportImageDetailsExportFormatEnum string + +// Set of constants representing the allowable values for ExportImageDetailsExportFormatEnum +const ( + ExportImageDetailsExportFormatQcow2 ExportImageDetailsExportFormatEnum = "QCOW2" + ExportImageDetailsExportFormatVmdk ExportImageDetailsExportFormatEnum = "VMDK" + ExportImageDetailsExportFormatOci ExportImageDetailsExportFormatEnum = "OCI" + ExportImageDetailsExportFormatVhd ExportImageDetailsExportFormatEnum = "VHD" + ExportImageDetailsExportFormatVdi ExportImageDetailsExportFormatEnum = "VDI" +) + +var mappingExportImageDetailsExportFormatEnum = map[string]ExportImageDetailsExportFormatEnum{ + "QCOW2": ExportImageDetailsExportFormatQcow2, + "VMDK": ExportImageDetailsExportFormatVmdk, + "OCI": ExportImageDetailsExportFormatOci, + "VHD": ExportImageDetailsExportFormatVhd, + "VDI": ExportImageDetailsExportFormatVdi, +} + +var mappingExportImageDetailsExportFormatEnumLowerCase = map[string]ExportImageDetailsExportFormatEnum{ + "qcow2": ExportImageDetailsExportFormatQcow2, + "vmdk": ExportImageDetailsExportFormatVmdk, + "oci": ExportImageDetailsExportFormatOci, + "vhd": ExportImageDetailsExportFormatVhd, + "vdi": ExportImageDetailsExportFormatVdi, +} + +// GetExportImageDetailsExportFormatEnumValues Enumerates the set of values for ExportImageDetailsExportFormatEnum +func GetExportImageDetailsExportFormatEnumValues() []ExportImageDetailsExportFormatEnum { + values := make([]ExportImageDetailsExportFormatEnum, 0) + for _, v := range mappingExportImageDetailsExportFormatEnum { + values = append(values, v) + } + return values +} + +// GetExportImageDetailsExportFormatEnumStringValues Enumerates the set of values in String for ExportImageDetailsExportFormatEnum +func GetExportImageDetailsExportFormatEnumStringValues() []string { + return []string{ + "QCOW2", + "VMDK", + "OCI", + "VHD", + "VDI", + } +} + +// GetMappingExportImageDetailsExportFormatEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExportImageDetailsExportFormatEnum(val string) (ExportImageDetailsExportFormatEnum, bool) { + enum, ok := mappingExportImageDetailsExportFormatEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go index 6b3a6e3f75..2eb04a4d38 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/export_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ExportImageRequest wrapper for the ExportImage operation @@ -46,6 +48,10 @@ func (request ExportImageRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ExportImageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ExportImageRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ExportImageRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ExportImageResponse wrapper for the ExportImage operation type ExportImageResponse struct { @@ -77,7 +94,8 @@ type ExportImageResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_tuple_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_tuple_details.go new file mode 100644 index 0000000000..fb888d04ee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_tuple_details.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExportImageViaObjectStorageTupleDetails The representation of ExportImageViaObjectStorageTupleDetails +type ExportImageViaObjectStorageTupleDetails struct { + + // The Object Storage bucket to export the image to. + BucketName *string `mandatory:"true" json:"bucketName"` + + // The Object Storage namespace to export the image to. + NamespaceName *string `mandatory:"true" json:"namespaceName"` + + // The Object Storage object name for the exported image. + ObjectName *string `mandatory:"true" json:"objectName"` + + // The format to export the image to. The default value is `OCI`. + // The following image formats are available: + // - `OCI` - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci). + // Use this format to export a custom image that you want to import into other tenancies or regions. + // - `QCOW2` - QEMU Copy On Write (.qcow2) + // - `VDI` - Virtual Disk Image (.vdi) for Oracle VM VirtualBox + // - `VHD` - Virtual Hard Disk (.vhd) for Hyper-V + // - `VMDK` - Virtual Machine Disk (.vmdk) + ExportFormat ExportImageDetailsExportFormatEnum `mandatory:"false" json:"exportFormat,omitempty"` +} + +//GetExportFormat returns ExportFormat +func (m ExportImageViaObjectStorageTupleDetails) GetExportFormat() ExportImageDetailsExportFormatEnum { + return m.ExportFormat +} + +func (m ExportImageViaObjectStorageTupleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExportImageViaObjectStorageTupleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingExportImageDetailsExportFormatEnum(string(m.ExportFormat)); !ok && m.ExportFormat != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExportFormat: %s. Supported values are: %s.", m.ExportFormat, strings.Join(GetExportImageDetailsExportFormatEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ExportImageViaObjectStorageTupleDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeExportImageViaObjectStorageTupleDetails ExportImageViaObjectStorageTupleDetails + s := struct { + DiscriminatorParam string `json:"destinationType"` + MarshalTypeExportImageViaObjectStorageTupleDetails + }{ + "objectStorageTuple", + (MarshalTypeExportImageViaObjectStorageTupleDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_uri_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_uri_details.go new file mode 100644 index 0000000000..982586ba4e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/export_image_via_object_storage_uri_details.go @@ -0,0 +1,79 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExportImageViaObjectStorageUriDetails The representation of ExportImageViaObjectStorageUriDetails +type ExportImageViaObjectStorageUriDetails struct { + + // The Object Storage URL to export the image to. See Object + // Storage URLs (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/imageimportexport.htm#URLs) + // and Using Pre-Authenticated Requests (https://docs.cloud.oracle.com/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm) + // for constructing URLs for image import/export. + DestinationUri *string `mandatory:"true" json:"destinationUri"` + + // The format to export the image to. The default value is `OCI`. + // The following image formats are available: + // - `OCI` - Oracle Cloud Infrastructure file with a QCOW2 image and Oracle Cloud Infrastructure metadata (.oci). + // Use this format to export a custom image that you want to import into other tenancies or regions. + // - `QCOW2` - QEMU Copy On Write (.qcow2) + // - `VDI` - Virtual Disk Image (.vdi) for Oracle VM VirtualBox + // - `VHD` - Virtual Hard Disk (.vhd) for Hyper-V + // - `VMDK` - Virtual Machine Disk (.vmdk) + ExportFormat ExportImageDetailsExportFormatEnum `mandatory:"false" json:"exportFormat,omitempty"` +} + +//GetExportFormat returns ExportFormat +func (m ExportImageViaObjectStorageUriDetails) GetExportFormat() ExportImageDetailsExportFormatEnum { + return m.ExportFormat +} + +func (m ExportImageViaObjectStorageUriDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExportImageViaObjectStorageUriDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingExportImageDetailsExportFormatEnum(string(m.ExportFormat)); !ok && m.ExportFormat != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ExportFormat: %s. Supported values are: %s.", m.ExportFormat, strings.Join(GetExportImageDetailsExportFormatEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ExportImageViaObjectStorageUriDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeExportImageViaObjectStorageUriDetails ExportImageViaObjectStorageUriDetails + s := struct { + DiscriminatorParam string `json:"destinationType"` + MarshalTypeExportImageViaObjectStorageUriDetails + }{ + "objectStorageUri", + (MarshalTypeExportImageViaObjectStorageUriDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service.go new file mode 100644 index 0000000000..e51660492d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service.go @@ -0,0 +1,419 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FastConnectProviderService A service offering from a supported provider. For more information, +// see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +type FastConnectProviderService struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider. + Id *string `mandatory:"true" json:"id"` + + // Who is responsible for managing the private peering BGP information. + PrivatePeeringBgpManagement FastConnectProviderServicePrivatePeeringBgpManagementEnum `mandatory:"true" json:"privatePeeringBgpManagement"` + + // The name of the provider. + ProviderName *string `mandatory:"true" json:"providerName"` + + // The name of the service offered by the provider. + ProviderServiceName *string `mandatory:"true" json:"providerServiceName"` + + // Who is responsible for managing the public peering BGP information. + PublicPeeringBgpManagement FastConnectProviderServicePublicPeeringBgpManagementEnum `mandatory:"true" json:"publicPeeringBgpManagement"` + + // Who is responsible for managing the ASN information for the network at the other end + // of the connection from Oracle. + CustomerAsnManagement FastConnectProviderServiceCustomerAsnManagementEnum `mandatory:"true" json:"customerAsnManagement"` + + // Who is responsible for managing the provider service key. + ProviderServiceKeyManagement FastConnectProviderServiceProviderServiceKeyManagementEnum `mandatory:"true" json:"providerServiceKeyManagement"` + + // Who is responsible for managing the virtual circuit bandwidth. + BandwithShapeManagement FastConnectProviderServiceBandwithShapeManagementEnum `mandatory:"true" json:"bandwithShapeManagement"` + + // Total number of cross-connect or cross-connect groups required for the virtual circuit. + RequiredTotalCrossConnects *int `mandatory:"true" json:"requiredTotalCrossConnects"` + + // Provider service type. + Type FastConnectProviderServiceTypeEnum `mandatory:"true" json:"type"` + + // The location of the provider's website or portal. This portal is where you can get information + // about the provider service, create a virtual circuit connection from the provider to Oracle + // Cloud Infrastructure, and retrieve your provider service key for that virtual circuit connection. + // Example: `https://example.com` + Description *string `mandatory:"false" json:"description"` + + // An array of virtual circuit types supported by this service. + SupportedVirtualCircuitTypes []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum `mandatory:"false" json:"supportedVirtualCircuitTypes,omitempty"` +} + +func (m FastConnectProviderService) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FastConnectProviderService) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFastConnectProviderServicePrivatePeeringBgpManagementEnum(string(m.PrivatePeeringBgpManagement)); !ok && m.PrivatePeeringBgpManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PrivatePeeringBgpManagement: %s. Supported values are: %s.", m.PrivatePeeringBgpManagement, strings.Join(GetFastConnectProviderServicePrivatePeeringBgpManagementEnumStringValues(), ","))) + } + if _, ok := GetMappingFastConnectProviderServicePublicPeeringBgpManagementEnum(string(m.PublicPeeringBgpManagement)); !ok && m.PublicPeeringBgpManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PublicPeeringBgpManagement: %s. Supported values are: %s.", m.PublicPeeringBgpManagement, strings.Join(GetFastConnectProviderServicePublicPeeringBgpManagementEnumStringValues(), ","))) + } + if _, ok := GetMappingFastConnectProviderServiceCustomerAsnManagementEnum(string(m.CustomerAsnManagement)); !ok && m.CustomerAsnManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CustomerAsnManagement: %s. Supported values are: %s.", m.CustomerAsnManagement, strings.Join(GetFastConnectProviderServiceCustomerAsnManagementEnumStringValues(), ","))) + } + if _, ok := GetMappingFastConnectProviderServiceProviderServiceKeyManagementEnum(string(m.ProviderServiceKeyManagement)); !ok && m.ProviderServiceKeyManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProviderServiceKeyManagement: %s. Supported values are: %s.", m.ProviderServiceKeyManagement, strings.Join(GetFastConnectProviderServiceProviderServiceKeyManagementEnumStringValues(), ","))) + } + if _, ok := GetMappingFastConnectProviderServiceBandwithShapeManagementEnum(string(m.BandwithShapeManagement)); !ok && m.BandwithShapeManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BandwithShapeManagement: %s. Supported values are: %s.", m.BandwithShapeManagement, strings.Join(GetFastConnectProviderServiceBandwithShapeManagementEnumStringValues(), ","))) + } + if _, ok := GetMappingFastConnectProviderServiceTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetFastConnectProviderServiceTypeEnumStringValues(), ","))) + } + + for _, val := range m.SupportedVirtualCircuitTypes { + if _, ok := GetMappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SupportedVirtualCircuitTypes: %s. Supported values are: %s.", val, strings.Join(GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FastConnectProviderServicePrivatePeeringBgpManagementEnum Enum with underlying type: string +type FastConnectProviderServicePrivatePeeringBgpManagementEnum string + +// Set of constants representing the allowable values for FastConnectProviderServicePrivatePeeringBgpManagementEnum +const ( + FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged FastConnectProviderServicePrivatePeeringBgpManagementEnum = "ORACLE_MANAGED" +) + +var mappingFastConnectProviderServicePrivatePeeringBgpManagementEnum = map[string]FastConnectProviderServicePrivatePeeringBgpManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged, +} + +var mappingFastConnectProviderServicePrivatePeeringBgpManagementEnumLowerCase = map[string]FastConnectProviderServicePrivatePeeringBgpManagementEnum{ + "customer_managed": FastConnectProviderServicePrivatePeeringBgpManagementCustomerManaged, + "provider_managed": FastConnectProviderServicePrivatePeeringBgpManagementProviderManaged, + "oracle_managed": FastConnectProviderServicePrivatePeeringBgpManagementOracleManaged, +} + +// GetFastConnectProviderServicePrivatePeeringBgpManagementEnumValues Enumerates the set of values for FastConnectProviderServicePrivatePeeringBgpManagementEnum +func GetFastConnectProviderServicePrivatePeeringBgpManagementEnumValues() []FastConnectProviderServicePrivatePeeringBgpManagementEnum { + values := make([]FastConnectProviderServicePrivatePeeringBgpManagementEnum, 0) + for _, v := range mappingFastConnectProviderServicePrivatePeeringBgpManagementEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServicePrivatePeeringBgpManagementEnumStringValues Enumerates the set of values in String for FastConnectProviderServicePrivatePeeringBgpManagementEnum +func GetFastConnectProviderServicePrivatePeeringBgpManagementEnumStringValues() []string { + return []string{ + "CUSTOMER_MANAGED", + "PROVIDER_MANAGED", + "ORACLE_MANAGED", + } +} + +// GetMappingFastConnectProviderServicePrivatePeeringBgpManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServicePrivatePeeringBgpManagementEnum(val string) (FastConnectProviderServicePrivatePeeringBgpManagementEnum, bool) { + enum, ok := mappingFastConnectProviderServicePrivatePeeringBgpManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FastConnectProviderServicePublicPeeringBgpManagementEnum Enum with underlying type: string +type FastConnectProviderServicePublicPeeringBgpManagementEnum string + +// Set of constants representing the allowable values for FastConnectProviderServicePublicPeeringBgpManagementEnum +const ( + FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServicePublicPeeringBgpManagementProviderManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServicePublicPeeringBgpManagementOracleManaged FastConnectProviderServicePublicPeeringBgpManagementEnum = "ORACLE_MANAGED" +) + +var mappingFastConnectProviderServicePublicPeeringBgpManagementEnum = map[string]FastConnectProviderServicePublicPeeringBgpManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServicePublicPeeringBgpManagementOracleManaged, +} + +var mappingFastConnectProviderServicePublicPeeringBgpManagementEnumLowerCase = map[string]FastConnectProviderServicePublicPeeringBgpManagementEnum{ + "customer_managed": FastConnectProviderServicePublicPeeringBgpManagementCustomerManaged, + "provider_managed": FastConnectProviderServicePublicPeeringBgpManagementProviderManaged, + "oracle_managed": FastConnectProviderServicePublicPeeringBgpManagementOracleManaged, +} + +// GetFastConnectProviderServicePublicPeeringBgpManagementEnumValues Enumerates the set of values for FastConnectProviderServicePublicPeeringBgpManagementEnum +func GetFastConnectProviderServicePublicPeeringBgpManagementEnumValues() []FastConnectProviderServicePublicPeeringBgpManagementEnum { + values := make([]FastConnectProviderServicePublicPeeringBgpManagementEnum, 0) + for _, v := range mappingFastConnectProviderServicePublicPeeringBgpManagementEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServicePublicPeeringBgpManagementEnumStringValues Enumerates the set of values in String for FastConnectProviderServicePublicPeeringBgpManagementEnum +func GetFastConnectProviderServicePublicPeeringBgpManagementEnumStringValues() []string { + return []string{ + "CUSTOMER_MANAGED", + "PROVIDER_MANAGED", + "ORACLE_MANAGED", + } +} + +// GetMappingFastConnectProviderServicePublicPeeringBgpManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServicePublicPeeringBgpManagementEnum(val string) (FastConnectProviderServicePublicPeeringBgpManagementEnum, bool) { + enum, ok := mappingFastConnectProviderServicePublicPeeringBgpManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FastConnectProviderServiceSupportedVirtualCircuitTypesEnum Enum with underlying type: string +type FastConnectProviderServiceSupportedVirtualCircuitTypesEnum string + +// Set of constants representing the allowable values for FastConnectProviderServiceSupportedVirtualCircuitTypesEnum +const ( + FastConnectProviderServiceSupportedVirtualCircuitTypesPublic FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PUBLIC" + FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate FastConnectProviderServiceSupportedVirtualCircuitTypesEnum = "PRIVATE" +) + +var mappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnum = map[string]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum{ + "PUBLIC": FastConnectProviderServiceSupportedVirtualCircuitTypesPublic, + "PRIVATE": FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate, +} + +var mappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnumLowerCase = map[string]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum{ + "public": FastConnectProviderServiceSupportedVirtualCircuitTypesPublic, + "private": FastConnectProviderServiceSupportedVirtualCircuitTypesPrivate, +} + +// GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumValues Enumerates the set of values for FastConnectProviderServiceSupportedVirtualCircuitTypesEnum +func GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumValues() []FastConnectProviderServiceSupportedVirtualCircuitTypesEnum { + values := make([]FastConnectProviderServiceSupportedVirtualCircuitTypesEnum, 0) + for _, v := range mappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumStringValues Enumerates the set of values in String for FastConnectProviderServiceSupportedVirtualCircuitTypesEnum +func GetFastConnectProviderServiceSupportedVirtualCircuitTypesEnumStringValues() []string { + return []string{ + "PUBLIC", + "PRIVATE", + } +} + +// GetMappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnum(val string) (FastConnectProviderServiceSupportedVirtualCircuitTypesEnum, bool) { + enum, ok := mappingFastConnectProviderServiceSupportedVirtualCircuitTypesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FastConnectProviderServiceCustomerAsnManagementEnum Enum with underlying type: string +type FastConnectProviderServiceCustomerAsnManagementEnum string + +// Set of constants representing the allowable values for FastConnectProviderServiceCustomerAsnManagementEnum +const ( + FastConnectProviderServiceCustomerAsnManagementCustomerManaged FastConnectProviderServiceCustomerAsnManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServiceCustomerAsnManagementProviderManaged FastConnectProviderServiceCustomerAsnManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServiceCustomerAsnManagementOracleManaged FastConnectProviderServiceCustomerAsnManagementEnum = "ORACLE_MANAGED" +) + +var mappingFastConnectProviderServiceCustomerAsnManagementEnum = map[string]FastConnectProviderServiceCustomerAsnManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServiceCustomerAsnManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServiceCustomerAsnManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServiceCustomerAsnManagementOracleManaged, +} + +var mappingFastConnectProviderServiceCustomerAsnManagementEnumLowerCase = map[string]FastConnectProviderServiceCustomerAsnManagementEnum{ + "customer_managed": FastConnectProviderServiceCustomerAsnManagementCustomerManaged, + "provider_managed": FastConnectProviderServiceCustomerAsnManagementProviderManaged, + "oracle_managed": FastConnectProviderServiceCustomerAsnManagementOracleManaged, +} + +// GetFastConnectProviderServiceCustomerAsnManagementEnumValues Enumerates the set of values for FastConnectProviderServiceCustomerAsnManagementEnum +func GetFastConnectProviderServiceCustomerAsnManagementEnumValues() []FastConnectProviderServiceCustomerAsnManagementEnum { + values := make([]FastConnectProviderServiceCustomerAsnManagementEnum, 0) + for _, v := range mappingFastConnectProviderServiceCustomerAsnManagementEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServiceCustomerAsnManagementEnumStringValues Enumerates the set of values in String for FastConnectProviderServiceCustomerAsnManagementEnum +func GetFastConnectProviderServiceCustomerAsnManagementEnumStringValues() []string { + return []string{ + "CUSTOMER_MANAGED", + "PROVIDER_MANAGED", + "ORACLE_MANAGED", + } +} + +// GetMappingFastConnectProviderServiceCustomerAsnManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServiceCustomerAsnManagementEnum(val string) (FastConnectProviderServiceCustomerAsnManagementEnum, bool) { + enum, ok := mappingFastConnectProviderServiceCustomerAsnManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FastConnectProviderServiceProviderServiceKeyManagementEnum Enum with underlying type: string +type FastConnectProviderServiceProviderServiceKeyManagementEnum string + +// Set of constants representing the allowable values for FastConnectProviderServiceProviderServiceKeyManagementEnum +const ( + FastConnectProviderServiceProviderServiceKeyManagementCustomerManaged FastConnectProviderServiceProviderServiceKeyManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServiceProviderServiceKeyManagementProviderManaged FastConnectProviderServiceProviderServiceKeyManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServiceProviderServiceKeyManagementOracleManaged FastConnectProviderServiceProviderServiceKeyManagementEnum = "ORACLE_MANAGED" +) + +var mappingFastConnectProviderServiceProviderServiceKeyManagementEnum = map[string]FastConnectProviderServiceProviderServiceKeyManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServiceProviderServiceKeyManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServiceProviderServiceKeyManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServiceProviderServiceKeyManagementOracleManaged, +} + +var mappingFastConnectProviderServiceProviderServiceKeyManagementEnumLowerCase = map[string]FastConnectProviderServiceProviderServiceKeyManagementEnum{ + "customer_managed": FastConnectProviderServiceProviderServiceKeyManagementCustomerManaged, + "provider_managed": FastConnectProviderServiceProviderServiceKeyManagementProviderManaged, + "oracle_managed": FastConnectProviderServiceProviderServiceKeyManagementOracleManaged, +} + +// GetFastConnectProviderServiceProviderServiceKeyManagementEnumValues Enumerates the set of values for FastConnectProviderServiceProviderServiceKeyManagementEnum +func GetFastConnectProviderServiceProviderServiceKeyManagementEnumValues() []FastConnectProviderServiceProviderServiceKeyManagementEnum { + values := make([]FastConnectProviderServiceProviderServiceKeyManagementEnum, 0) + for _, v := range mappingFastConnectProviderServiceProviderServiceKeyManagementEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServiceProviderServiceKeyManagementEnumStringValues Enumerates the set of values in String for FastConnectProviderServiceProviderServiceKeyManagementEnum +func GetFastConnectProviderServiceProviderServiceKeyManagementEnumStringValues() []string { + return []string{ + "CUSTOMER_MANAGED", + "PROVIDER_MANAGED", + "ORACLE_MANAGED", + } +} + +// GetMappingFastConnectProviderServiceProviderServiceKeyManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServiceProviderServiceKeyManagementEnum(val string) (FastConnectProviderServiceProviderServiceKeyManagementEnum, bool) { + enum, ok := mappingFastConnectProviderServiceProviderServiceKeyManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FastConnectProviderServiceBandwithShapeManagementEnum Enum with underlying type: string +type FastConnectProviderServiceBandwithShapeManagementEnum string + +// Set of constants representing the allowable values for FastConnectProviderServiceBandwithShapeManagementEnum +const ( + FastConnectProviderServiceBandwithShapeManagementCustomerManaged FastConnectProviderServiceBandwithShapeManagementEnum = "CUSTOMER_MANAGED" + FastConnectProviderServiceBandwithShapeManagementProviderManaged FastConnectProviderServiceBandwithShapeManagementEnum = "PROVIDER_MANAGED" + FastConnectProviderServiceBandwithShapeManagementOracleManaged FastConnectProviderServiceBandwithShapeManagementEnum = "ORACLE_MANAGED" +) + +var mappingFastConnectProviderServiceBandwithShapeManagementEnum = map[string]FastConnectProviderServiceBandwithShapeManagementEnum{ + "CUSTOMER_MANAGED": FastConnectProviderServiceBandwithShapeManagementCustomerManaged, + "PROVIDER_MANAGED": FastConnectProviderServiceBandwithShapeManagementProviderManaged, + "ORACLE_MANAGED": FastConnectProviderServiceBandwithShapeManagementOracleManaged, +} + +var mappingFastConnectProviderServiceBandwithShapeManagementEnumLowerCase = map[string]FastConnectProviderServiceBandwithShapeManagementEnum{ + "customer_managed": FastConnectProviderServiceBandwithShapeManagementCustomerManaged, + "provider_managed": FastConnectProviderServiceBandwithShapeManagementProviderManaged, + "oracle_managed": FastConnectProviderServiceBandwithShapeManagementOracleManaged, +} + +// GetFastConnectProviderServiceBandwithShapeManagementEnumValues Enumerates the set of values for FastConnectProviderServiceBandwithShapeManagementEnum +func GetFastConnectProviderServiceBandwithShapeManagementEnumValues() []FastConnectProviderServiceBandwithShapeManagementEnum { + values := make([]FastConnectProviderServiceBandwithShapeManagementEnum, 0) + for _, v := range mappingFastConnectProviderServiceBandwithShapeManagementEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServiceBandwithShapeManagementEnumStringValues Enumerates the set of values in String for FastConnectProviderServiceBandwithShapeManagementEnum +func GetFastConnectProviderServiceBandwithShapeManagementEnumStringValues() []string { + return []string{ + "CUSTOMER_MANAGED", + "PROVIDER_MANAGED", + "ORACLE_MANAGED", + } +} + +// GetMappingFastConnectProviderServiceBandwithShapeManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServiceBandwithShapeManagementEnum(val string) (FastConnectProviderServiceBandwithShapeManagementEnum, bool) { + enum, ok := mappingFastConnectProviderServiceBandwithShapeManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FastConnectProviderServiceTypeEnum Enum with underlying type: string +type FastConnectProviderServiceTypeEnum string + +// Set of constants representing the allowable values for FastConnectProviderServiceTypeEnum +const ( + FastConnectProviderServiceTypeLayer2 FastConnectProviderServiceTypeEnum = "LAYER2" + FastConnectProviderServiceTypeLayer3 FastConnectProviderServiceTypeEnum = "LAYER3" +) + +var mappingFastConnectProviderServiceTypeEnum = map[string]FastConnectProviderServiceTypeEnum{ + "LAYER2": FastConnectProviderServiceTypeLayer2, + "LAYER3": FastConnectProviderServiceTypeLayer3, +} + +var mappingFastConnectProviderServiceTypeEnumLowerCase = map[string]FastConnectProviderServiceTypeEnum{ + "layer2": FastConnectProviderServiceTypeLayer2, + "layer3": FastConnectProviderServiceTypeLayer3, +} + +// GetFastConnectProviderServiceTypeEnumValues Enumerates the set of values for FastConnectProviderServiceTypeEnum +func GetFastConnectProviderServiceTypeEnumValues() []FastConnectProviderServiceTypeEnum { + values := make([]FastConnectProviderServiceTypeEnum, 0) + for _, v := range mappingFastConnectProviderServiceTypeEnum { + values = append(values, v) + } + return values +} + +// GetFastConnectProviderServiceTypeEnumStringValues Enumerates the set of values in String for FastConnectProviderServiceTypeEnum +func GetFastConnectProviderServiceTypeEnumStringValues() []string { + return []string{ + "LAYER2", + "LAYER3", + } +} + +// GetMappingFastConnectProviderServiceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFastConnectProviderServiceTypeEnum(val string) (FastConnectProviderServiceTypeEnum, bool) { + enum, ok := mappingFastConnectProviderServiceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service_key.go new file mode 100644 index 0000000000..24ee2d2ed2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/fast_connect_provider_service_key.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FastConnectProviderServiceKey A provider service key and its details. A provider service key is an identifier for a provider's +// virtual circuit. +type FastConnectProviderServiceKey struct { + + // The service key that the provider gives you when you set up a virtual circuit connection + // from the provider to Oracle Cloud Infrastructure. Use this value as the `providerServiceKeyName` + // query parameter for + // GetFastConnectProviderServiceKey. + Name *string `mandatory:"true" json:"name"` + + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // Example: `10 Gbps` + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // The provider's peering location. + PeeringLocation *string `mandatory:"false" json:"peeringLocation"` +} + +func (m FastConnectProviderServiceKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FastConnectProviderServiceKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/floating_ip_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/floating_ip_info.go new file mode 100644 index 0000000000..e962af1983 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/floating_ip_info.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FloatingIpInfo Detail info about floating IP. +type FloatingIpInfo struct { + + // ID of the floating IP + Id *string `mandatory:"true" json:"id"` + + // The IP address of the floating IP + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // HostName for the primary IP. Only the hostname label, not the FQDN. + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // The Network Address Translated IP to communicate with internal services + NatIpAddress *string `mandatory:"false" json:"natIpAddress"` +} + +func (m FloatingIpInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FloatingIpInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config.go new file mode 100644 index 0000000000..e123fe8b69 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config.go @@ -0,0 +1,232 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FlowLogConfig *Flow logs* record information about traffic that is either allowed or rejected by the +// SecurityList that control traffic in and out of a +// Vnic. +// A *flow log configuration* (`FlowLogConfig`) contains information about where to store flow +// logs (an Object Storage bucket in your tenancy), and the type of logs to store. +// **Important:** For logs to be placed in the Object Storage bucket listed in the configuration, +// an administrator must create an IAM policy in your tenancy that lets the Networking service +// put objects in that bucket. Otherwise, no flow logs can be written to the bucket. +// Here's the required policy (which consists of three separate statements): +// `define tenancy VcnFlowLogs as ocid1.tenancy.oc1..<unique_ID>` +// `define dynamic-group FlowLogsDynamicGroup as ocid1.dynamicgroup.oc1..<unique_ID>` +// `admit dynamic-group FlowLogsDynamicGroup of tenancy VcnFlowLogs to manage objects in tenancy where target.bucket.name='yourbucketname'` +// To enable flow logs for a subnet: after creating a flow +// log configuration, attach the flow log configuration to that subnet. See +// FlowLogConfigAttachment and +// CreateFlowLogConfigAttachment. +type FlowLogConfig struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the flow + // log configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The flow log configuration's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + Id *string `mandatory:"true" json:"id"` + + // The flow log configuration's current state. + LifecycleState FlowLogConfigLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Type or types of flow logs to store. `ALL` includes records for both accepted traffic and + // rejected traffic. + FlowLogType FlowLogConfigFlowLogTypeEnum `mandatory:"true" json:"flowLogType"` + + Destination FlowLogDestination `mandatory:"true" json:"destination"` + + // The date and time the flow log configuration was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m FlowLogConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FlowLogConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFlowLogConfigLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFlowLogConfigLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingFlowLogConfigFlowLogTypeEnum(string(m.FlowLogType)); !ok && m.FlowLogType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for FlowLogType: %s. Supported values are: %s.", m.FlowLogType, strings.Join(GetFlowLogConfigFlowLogTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *FlowLogConfig) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + Id *string `json:"id"` + LifecycleState FlowLogConfigLifecycleStateEnum `json:"lifecycleState"` + FlowLogType FlowLogConfigFlowLogTypeEnum `json:"flowLogType"` + Destination flowlogdestination `json:"destination"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + m.CompartmentId = model.CompartmentId + + m.DisplayName = model.DisplayName + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.FlowLogType = model.FlowLogType + + nn, e = model.Destination.UnmarshalPolymorphicJSON(model.Destination.JsonData) + if e != nil { + return + } + if nn != nil { + m.Destination = nn.(FlowLogDestination) + } else { + m.Destination = nil + } + + m.TimeCreated = model.TimeCreated + + return +} + +// FlowLogConfigLifecycleStateEnum Enum with underlying type: string +type FlowLogConfigLifecycleStateEnum string + +// Set of constants representing the allowable values for FlowLogConfigLifecycleStateEnum +const ( + FlowLogConfigLifecycleStateProvisioning FlowLogConfigLifecycleStateEnum = "PROVISIONING" + FlowLogConfigLifecycleStateAvailable FlowLogConfigLifecycleStateEnum = "AVAILABLE" + FlowLogConfigLifecycleStateTerminating FlowLogConfigLifecycleStateEnum = "TERMINATING" + FlowLogConfigLifecycleStateTerminated FlowLogConfigLifecycleStateEnum = "TERMINATED" +) + +var mappingFlowLogConfigLifecycleStateEnum = map[string]FlowLogConfigLifecycleStateEnum{ + "PROVISIONING": FlowLogConfigLifecycleStateProvisioning, + "AVAILABLE": FlowLogConfigLifecycleStateAvailable, + "TERMINATING": FlowLogConfigLifecycleStateTerminating, + "TERMINATED": FlowLogConfigLifecycleStateTerminated, +} + +var mappingFlowLogConfigLifecycleStateEnumLowerCase = map[string]FlowLogConfigLifecycleStateEnum{ + "provisioning": FlowLogConfigLifecycleStateProvisioning, + "available": FlowLogConfigLifecycleStateAvailable, + "terminating": FlowLogConfigLifecycleStateTerminating, + "terminated": FlowLogConfigLifecycleStateTerminated, +} + +// GetFlowLogConfigLifecycleStateEnumValues Enumerates the set of values for FlowLogConfigLifecycleStateEnum +func GetFlowLogConfigLifecycleStateEnumValues() []FlowLogConfigLifecycleStateEnum { + values := make([]FlowLogConfigLifecycleStateEnum, 0) + for _, v := range mappingFlowLogConfigLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetFlowLogConfigLifecycleStateEnumStringValues Enumerates the set of values in String for FlowLogConfigLifecycleStateEnum +func GetFlowLogConfigLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingFlowLogConfigLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFlowLogConfigLifecycleStateEnum(val string) (FlowLogConfigLifecycleStateEnum, bool) { + enum, ok := mappingFlowLogConfigLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FlowLogConfigFlowLogTypeEnum Enum with underlying type: string +type FlowLogConfigFlowLogTypeEnum string + +// Set of constants representing the allowable values for FlowLogConfigFlowLogTypeEnum +const ( + FlowLogConfigFlowLogTypeAll FlowLogConfigFlowLogTypeEnum = "ALL" +) + +var mappingFlowLogConfigFlowLogTypeEnum = map[string]FlowLogConfigFlowLogTypeEnum{ + "ALL": FlowLogConfigFlowLogTypeAll, +} + +var mappingFlowLogConfigFlowLogTypeEnumLowerCase = map[string]FlowLogConfigFlowLogTypeEnum{ + "all": FlowLogConfigFlowLogTypeAll, +} + +// GetFlowLogConfigFlowLogTypeEnumValues Enumerates the set of values for FlowLogConfigFlowLogTypeEnum +func GetFlowLogConfigFlowLogTypeEnumValues() []FlowLogConfigFlowLogTypeEnum { + values := make([]FlowLogConfigFlowLogTypeEnum, 0) + for _, v := range mappingFlowLogConfigFlowLogTypeEnum { + values = append(values, v) + } + return values +} + +// GetFlowLogConfigFlowLogTypeEnumStringValues Enumerates the set of values in String for FlowLogConfigFlowLogTypeEnum +func GetFlowLogConfigFlowLogTypeEnumStringValues() []string { + return []string{ + "ALL", + } +} + +// GetMappingFlowLogConfigFlowLogTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFlowLogConfigFlowLogTypeEnum(val string) (FlowLogConfigFlowLogTypeEnum, bool) { + enum, ok := mappingFlowLogConfigFlowLogTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config_attachment.go new file mode 100644 index 0000000000..6c3efbb821 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_config_attachment.go @@ -0,0 +1,165 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FlowLogConfigAttachment Represents an attachment between a flow log configuration and a resource such as a subnet. By +// creating a `FlowLogConfigAttachment`, you turn on flow logs for the attached resource. See +// CreateFlowLogConfigAttachment. +type FlowLogConfigAttachment struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // flow log configuration attachment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The flow log configuration attachment's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + Id *string `mandatory:"true" json:"id"` + + // The flow log configuration attachment's current state. + LifecycleState FlowLogConfigAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource that the flow log + // configuration is attached to. + TargetEntityId *string `mandatory:"true" json:"targetEntityId"` + + // The type of resource that the flow log configuration is attached to. + TargetEntityType FlowLogConfigAttachmentTargetEntityTypeEnum `mandatory:"true" json:"targetEntityType"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the flow log configuration that + // is attached to the resource. + FlowLogConfigId *string `mandatory:"true" json:"flowLogConfigId"` + + // The date and time the flow log configuration attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m FlowLogConfigAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FlowLogConfigAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFlowLogConfigAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFlowLogConfigAttachmentLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingFlowLogConfigAttachmentTargetEntityTypeEnum(string(m.TargetEntityType)); !ok && m.TargetEntityType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetEntityType: %s. Supported values are: %s.", m.TargetEntityType, strings.Join(GetFlowLogConfigAttachmentTargetEntityTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FlowLogConfigAttachmentLifecycleStateEnum Enum with underlying type: string +type FlowLogConfigAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for FlowLogConfigAttachmentLifecycleStateEnum +const ( + FlowLogConfigAttachmentLifecycleStateProvisioning FlowLogConfigAttachmentLifecycleStateEnum = "PROVISIONING" + FlowLogConfigAttachmentLifecycleStateAvailable FlowLogConfigAttachmentLifecycleStateEnum = "AVAILABLE" + FlowLogConfigAttachmentLifecycleStateTerminating FlowLogConfigAttachmentLifecycleStateEnum = "TERMINATING" + FlowLogConfigAttachmentLifecycleStateTerminated FlowLogConfigAttachmentLifecycleStateEnum = "TERMINATED" +) + +var mappingFlowLogConfigAttachmentLifecycleStateEnum = map[string]FlowLogConfigAttachmentLifecycleStateEnum{ + "PROVISIONING": FlowLogConfigAttachmentLifecycleStateProvisioning, + "AVAILABLE": FlowLogConfigAttachmentLifecycleStateAvailable, + "TERMINATING": FlowLogConfigAttachmentLifecycleStateTerminating, + "TERMINATED": FlowLogConfigAttachmentLifecycleStateTerminated, +} + +var mappingFlowLogConfigAttachmentLifecycleStateEnumLowerCase = map[string]FlowLogConfigAttachmentLifecycleStateEnum{ + "provisioning": FlowLogConfigAttachmentLifecycleStateProvisioning, + "available": FlowLogConfigAttachmentLifecycleStateAvailable, + "terminating": FlowLogConfigAttachmentLifecycleStateTerminating, + "terminated": FlowLogConfigAttachmentLifecycleStateTerminated, +} + +// GetFlowLogConfigAttachmentLifecycleStateEnumValues Enumerates the set of values for FlowLogConfigAttachmentLifecycleStateEnum +func GetFlowLogConfigAttachmentLifecycleStateEnumValues() []FlowLogConfigAttachmentLifecycleStateEnum { + values := make([]FlowLogConfigAttachmentLifecycleStateEnum, 0) + for _, v := range mappingFlowLogConfigAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetFlowLogConfigAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for FlowLogConfigAttachmentLifecycleStateEnum +func GetFlowLogConfigAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingFlowLogConfigAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFlowLogConfigAttachmentLifecycleStateEnum(val string) (FlowLogConfigAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingFlowLogConfigAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// FlowLogConfigAttachmentTargetEntityTypeEnum Enum with underlying type: string +type FlowLogConfigAttachmentTargetEntityTypeEnum string + +// Set of constants representing the allowable values for FlowLogConfigAttachmentTargetEntityTypeEnum +const ( + FlowLogConfigAttachmentTargetEntityTypeSubnet FlowLogConfigAttachmentTargetEntityTypeEnum = "SUBNET" +) + +var mappingFlowLogConfigAttachmentTargetEntityTypeEnum = map[string]FlowLogConfigAttachmentTargetEntityTypeEnum{ + "SUBNET": FlowLogConfigAttachmentTargetEntityTypeSubnet, +} + +var mappingFlowLogConfigAttachmentTargetEntityTypeEnumLowerCase = map[string]FlowLogConfigAttachmentTargetEntityTypeEnum{ + "subnet": FlowLogConfigAttachmentTargetEntityTypeSubnet, +} + +// GetFlowLogConfigAttachmentTargetEntityTypeEnumValues Enumerates the set of values for FlowLogConfigAttachmentTargetEntityTypeEnum +func GetFlowLogConfigAttachmentTargetEntityTypeEnumValues() []FlowLogConfigAttachmentTargetEntityTypeEnum { + values := make([]FlowLogConfigAttachmentTargetEntityTypeEnum, 0) + for _, v := range mappingFlowLogConfigAttachmentTargetEntityTypeEnum { + values = append(values, v) + } + return values +} + +// GetFlowLogConfigAttachmentTargetEntityTypeEnumStringValues Enumerates the set of values in String for FlowLogConfigAttachmentTargetEntityTypeEnum +func GetFlowLogConfigAttachmentTargetEntityTypeEnumStringValues() []string { + return []string{ + "SUBNET", + } +} + +// GetMappingFlowLogConfigAttachmentTargetEntityTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFlowLogConfigAttachmentTargetEntityTypeEnum(val string) (FlowLogConfigAttachmentTargetEntityTypeEnum, bool) { + enum, ok := mappingFlowLogConfigAttachmentTargetEntityTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_destination.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_destination.go new file mode 100644 index 0000000000..aa5df3c9f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_destination.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FlowLogDestination Where to store the flow logs. +type FlowLogDestination interface { +} + +type flowlogdestination struct { + JsonData []byte + DestinationType string `json:"destinationType"` +} + +// UnmarshalJSON unmarshals json +func (m *flowlogdestination) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerflowlogdestination flowlogdestination + s := struct { + Model Unmarshalerflowlogdestination + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.DestinationType = s.Model.DestinationType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *flowlogdestination) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.DestinationType { + case "OBJECT_STORAGE": + mm := FlowLogObjectStorageDestination{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for FlowLogDestination: %s.", m.DestinationType) + return *m, nil + } +} + +func (m flowlogdestination) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m flowlogdestination) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FlowLogDestinationDestinationTypeEnum Enum with underlying type: string +type FlowLogDestinationDestinationTypeEnum string + +// Set of constants representing the allowable values for FlowLogDestinationDestinationTypeEnum +const ( + FlowLogDestinationDestinationTypeObjectStorage FlowLogDestinationDestinationTypeEnum = "OBJECT_STORAGE" +) + +var mappingFlowLogDestinationDestinationTypeEnum = map[string]FlowLogDestinationDestinationTypeEnum{ + "OBJECT_STORAGE": FlowLogDestinationDestinationTypeObjectStorage, +} + +var mappingFlowLogDestinationDestinationTypeEnumLowerCase = map[string]FlowLogDestinationDestinationTypeEnum{ + "object_storage": FlowLogDestinationDestinationTypeObjectStorage, +} + +// GetFlowLogDestinationDestinationTypeEnumValues Enumerates the set of values for FlowLogDestinationDestinationTypeEnum +func GetFlowLogDestinationDestinationTypeEnumValues() []FlowLogDestinationDestinationTypeEnum { + values := make([]FlowLogDestinationDestinationTypeEnum, 0) + for _, v := range mappingFlowLogDestinationDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetFlowLogDestinationDestinationTypeEnumStringValues Enumerates the set of values in String for FlowLogDestinationDestinationTypeEnum +func GetFlowLogDestinationDestinationTypeEnumStringValues() []string { + return []string{ + "OBJECT_STORAGE", + } +} + +// GetMappingFlowLogDestinationDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFlowLogDestinationDestinationTypeEnum(val string) (FlowLogDestinationDestinationTypeEnum, bool) { + enum, ok := mappingFlowLogDestinationDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_object_storage_destination.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_object_storage_destination.go new file mode 100644 index 0000000000..5e567b27a5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/flow_log_object_storage_destination.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FlowLogObjectStorageDestination Information to identify the Object Storage bucket where the flow logs will be stored. +type FlowLogObjectStorageDestination struct { + + // The Object Storage bucket name. + BucketName *string `mandatory:"false" json:"bucketName"` + + // The Object Storage namespace. + NamespaceName *string `mandatory:"false" json:"namespaceName"` +} + +func (m FlowLogObjectStorageDestination) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FlowLogObjectStorageDestination) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m FlowLogObjectStorageDestination) MarshalJSON() (buff []byte, e error) { + type MarshalTypeFlowLogObjectStorageDestination FlowLogObjectStorageDestination + s := struct { + DiscriminatorParam string `json:"destinationType"` + MarshalTypeFlowLogObjectStorageDestination + }{ + "OBJECT_STORAGE", + (MarshalTypeFlowLogObjectStorageDestination)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/gateway_route_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/gateway_route_data.go new file mode 100644 index 0000000000..84c13c9a70 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/gateway_route_data.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GatewayRouteData Maps Region identifier and/or AD(s) to corresponding VIPs. Region identifier is required. Passed through as-is to El Paso. +// Region identifier is expected to be name of Region enum. +type GatewayRouteData struct { + AdLabel *string `mandatory:"true" json:"adLabel"` + + GatewayVip *string `mandatory:"true" json:"gatewayVip"` +} + +func (m GatewayRouteData) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m GatewayRouteData) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/generate_local_peering_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/generate_local_peering_token_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/generate_local_peering_token_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/generate_local_peering_token_request_response.go index 95400ef154..250ca4d39b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/generate_local_peering_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/generate_local_peering_token_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GenerateLocalPeeringTokenRequest wrapper for the GenerateLocalPeeringToken operation type GenerateLocalPeeringTokenRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. LocalPeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"localPeeringConnectionId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GenerateLocalPeeringTokenRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GenerateLocalPeeringTokenRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GenerateLocalPeeringTokenRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GenerateLocalPeeringTokenRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GenerateLocalPeeringTokenResponse wrapper for the GenerateLocalPeeringToken operation type GenerateLocalPeeringTokenResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_all_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_all_drg_attachments_request_response.go new file mode 100644 index 0000000000..143771573b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_all_drg_attachments_request_response.go @@ -0,0 +1,166 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetAllDrgAttachmentsRequest wrapper for the GetAllDrgAttachments operation +type GetAllDrgAttachmentsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The type for the network resource attached to the DRG. + AttachmentType GetAllDrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` + + // Whether the DRG attachment lives in a different tenancy than the DRG. + IsCrossTenancy *bool `mandatory:"false" contributesTo:"query" name:"isCrossTenancy"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAllDrgAttachmentsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAllDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetAllDrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAllDrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAllDrgAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetAllDrgAttachmentsAttachmentTypeEnum(string(request.AttachmentType)); !ok && request.AttachmentType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttachmentType: %s. Supported values are: %s.", request.AttachmentType, strings.Join(GetGetAllDrgAttachmentsAttachmentTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetAllDrgAttachmentsResponse wrapper for the GetAllDrgAttachments operation +type GetAllDrgAttachmentsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgAttachmentInfo instances + Items []DrgAttachmentInfo `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetAllDrgAttachmentsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAllDrgAttachmentsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetAllDrgAttachmentsAttachmentTypeEnum Enum with underlying type: string +type GetAllDrgAttachmentsAttachmentTypeEnum string + +// Set of constants representing the allowable values for GetAllDrgAttachmentsAttachmentTypeEnum +const ( + GetAllDrgAttachmentsAttachmentTypeVcn GetAllDrgAttachmentsAttachmentTypeEnum = "VCN" + GetAllDrgAttachmentsAttachmentTypeVirtualCircuit GetAllDrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" + GetAllDrgAttachmentsAttachmentTypeRemotePeeringConnection GetAllDrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" + GetAllDrgAttachmentsAttachmentTypeIpsecTunnel GetAllDrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" + GetAllDrgAttachmentsAttachmentTypeAll GetAllDrgAttachmentsAttachmentTypeEnum = "ALL" +) + +var mappingGetAllDrgAttachmentsAttachmentTypeEnum = map[string]GetAllDrgAttachmentsAttachmentTypeEnum{ + "VCN": GetAllDrgAttachmentsAttachmentTypeVcn, + "VIRTUAL_CIRCUIT": GetAllDrgAttachmentsAttachmentTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": GetAllDrgAttachmentsAttachmentTypeRemotePeeringConnection, + "IPSEC_TUNNEL": GetAllDrgAttachmentsAttachmentTypeIpsecTunnel, + "ALL": GetAllDrgAttachmentsAttachmentTypeAll, +} + +var mappingGetAllDrgAttachmentsAttachmentTypeEnumLowerCase = map[string]GetAllDrgAttachmentsAttachmentTypeEnum{ + "vcn": GetAllDrgAttachmentsAttachmentTypeVcn, + "virtual_circuit": GetAllDrgAttachmentsAttachmentTypeVirtualCircuit, + "remote_peering_connection": GetAllDrgAttachmentsAttachmentTypeRemotePeeringConnection, + "ipsec_tunnel": GetAllDrgAttachmentsAttachmentTypeIpsecTunnel, + "all": GetAllDrgAttachmentsAttachmentTypeAll, +} + +// GetGetAllDrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for GetAllDrgAttachmentsAttachmentTypeEnum +func GetGetAllDrgAttachmentsAttachmentTypeEnumValues() []GetAllDrgAttachmentsAttachmentTypeEnum { + values := make([]GetAllDrgAttachmentsAttachmentTypeEnum, 0) + for _, v := range mappingGetAllDrgAttachmentsAttachmentTypeEnum { + values = append(values, v) + } + return values +} + +// GetGetAllDrgAttachmentsAttachmentTypeEnumStringValues Enumerates the set of values in String for GetAllDrgAttachmentsAttachmentTypeEnum +func GetGetAllDrgAttachmentsAttachmentTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "IPSEC_TUNNEL", + "ALL", + } +} + +// GetMappingGetAllDrgAttachmentsAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetAllDrgAttachmentsAttachmentTypeEnum(val string) (GetAllDrgAttachmentsAttachmentTypeEnum, bool) { + enum, ok := mappingGetAllDrgAttachmentsAttachmentTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_allowed_ike_i_p_sec_parameters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_allowed_ike_i_p_sec_parameters_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_allowed_ike_i_p_sec_parameters_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_allowed_ike_i_p_sec_parameters_request_response.go index a0c27091aa..b46cc2eaed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_allowed_ike_i_p_sec_parameters_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_allowed_ike_i_p_sec_parameters_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAllowedIkeIPSecParametersRequest wrapper for the GetAllowedIkeIPSecParameters operation @@ -28,6 +30,10 @@ func (request GetAllowedIkeIPSecParametersRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAllowedIkeIPSecParametersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -43,6 +49,17 @@ func (request GetAllowedIkeIPSecParametersRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAllowedIkeIPSecParametersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAllowedIkeIPSecParametersResponse wrapper for the GetAllowedIkeIPSecParameters operation type GetAllowedIkeIPSecParametersResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_agreements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_agreements_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_agreements_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_agreements_request_response.go index 1197c3708c..ba907520dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_agreements_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_agreements_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAppCatalogListingAgreementsRequest wrapper for the GetAppCatalogListingAgreements operation @@ -34,6 +36,10 @@ func (request GetAppCatalogListingAgreementsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAppCatalogListingAgreementsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetAppCatalogListingAgreementsRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAppCatalogListingAgreementsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAppCatalogListingAgreementsResponse wrapper for the GetAppCatalogListingAgreements operation type GetAppCatalogListingAgreementsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_request_response.go index 8b64a2f7e4..2f36e0361e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAppCatalogListingRequest wrapper for the GetAppCatalogListing operation @@ -31,6 +33,10 @@ func (request GetAppCatalogListingRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAppCatalogListingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetAppCatalogListingRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAppCatalogListingRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAppCatalogListingResponse wrapper for the GetAppCatalogListing operation type GetAppCatalogListingResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_resource_version_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_resource_version_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_resource_version_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_resource_version_request_response.go index 650ca8425b..57a92aa71e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_app_catalog_listing_resource_version_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_app_catalog_listing_resource_version_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAppCatalogListingResourceVersionRequest wrapper for the GetAppCatalogListingResourceVersion operation @@ -34,6 +36,10 @@ func (request GetAppCatalogListingResourceVersionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAppCatalogListingResourceVersionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetAppCatalogListingResourceVersionRequest) RetryPolicy() *common. return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAppCatalogListingResourceVersionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAppCatalogListingResourceVersionResponse wrapper for the GetAppCatalogListingResourceVersion operation type GetAppCatalogListingResourceVersionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_block_volume_replica_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_block_volume_replica_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_block_volume_replica_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_block_volume_replica_request_response.go index 1df0e68836..c8c1d22c09 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_block_volume_replica_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_block_volume_replica_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetBlockVolumeReplicaRequest wrapper for the GetBlockVolumeReplica operation @@ -31,6 +33,10 @@ func (request GetBlockVolumeReplicaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetBlockVolumeReplicaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetBlockVolumeReplicaRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBlockVolumeReplicaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetBlockVolumeReplicaResponse wrapper for the GetBlockVolumeReplica operation type GetBlockVolumeReplicaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_attachment_request_response.go index e3c602d802..b8fb7e9ddb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetBootVolumeAttachmentRequest wrapper for the GetBootVolumeAttachment operation @@ -31,6 +33,10 @@ func (request GetBootVolumeAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetBootVolumeAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetBootVolumeAttachmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBootVolumeAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetBootVolumeAttachmentResponse wrapper for the GetBootVolumeAttachment operation type GetBootVolumeAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_backup_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_backup_request_response.go index 89a6532f8c..a658df4c17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetBootVolumeBackupRequest wrapper for the GetBootVolumeBackup operation @@ -31,6 +33,10 @@ func (request GetBootVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetBootVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetBootVolumeBackupResponse wrapper for the GetBootVolumeBackup operation type GetBootVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_kms_key_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_kms_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_kms_key_request_response.go index c302749974..8cf285eb65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_kms_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_kms_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetBootVolumeKmsKeyRequest wrapper for the GetBootVolumeKmsKey operation @@ -36,6 +38,10 @@ func (request GetBootVolumeKmsKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetBootVolumeKmsKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request GetBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBootVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetBootVolumeKmsKeyResponse wrapper for the GetBootVolumeKmsKey operation type GetBootVolumeKmsKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_replica_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_replica_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_replica_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_replica_request_response.go index a6a59e37fa..badd2b9c7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_replica_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_replica_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetBootVolumeReplicaRequest wrapper for the GetBootVolumeReplica operation @@ -31,6 +33,10 @@ func (request GetBootVolumeReplicaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetBootVolumeReplicaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetBootVolumeReplicaRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBootVolumeReplicaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetBootVolumeReplicaResponse wrapper for the GetBootVolumeReplica operation type GetBootVolumeReplicaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go index f5cf93d1d4..b5de9722b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_boot_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetBootVolumeRequest wrapper for the GetBootVolume operation @@ -31,6 +33,10 @@ func (request GetBootVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetBootVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetBootVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBootVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetBootVolumeResponse wrapper for the GetBootVolume operation type GetBootVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go index 6a6a695eec..b4321ffe5b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetByoipRangeRequest wrapper for the GetByoipRange operation @@ -31,6 +33,10 @@ func (request GetByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetByoipRangeResponse wrapper for the GetByoipRange operation type GetByoipRangeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_c3_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_c3_drg_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_c3_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_c3_drg_attachment_request_response.go index 5aae89ebe5..a2189ad63f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_c3_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_c3_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetC3DrgAttachmentRequest wrapper for the GetC3DrgAttachment operation @@ -31,6 +33,10 @@ func (request GetC3DrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetC3DrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetC3DrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetC3DrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetC3DrgAttachmentResponse wrapper for the GetC3DrgAttachment operation type GetC3DrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_c3_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_c3_drg_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_c3_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_c3_drg_request_response.go index 5fe7d8b789..9fb8a21d68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_c3_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_c3_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetC3DrgRequest wrapper for the GetC3Drg operation type GetC3DrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetC3DrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetC3DrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetC3DrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetC3DrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetC3DrgResponse wrapper for the GetC3Drg operation type GetC3DrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_capture_filter_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go index 71c45358b9..aa556166d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_capture_filter_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCaptureFilterRequest wrapper for the GetCaptureFilter operation type GetCaptureFilterRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. CaptureFilterId *string `mandatory:"true" contributesTo:"path" name:"captureFilterId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetCaptureFilterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCaptureFilterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCaptureFilterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCaptureFilterResponse wrapper for the GetCaptureFilter operation type GetCaptureFilterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_profile_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_profile_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_profile_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_profile_request_response.go index 5483d9d08c..bab6d776f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_profile_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_profile_request_response.go @@ -1,19 +1,21 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // GetClientVpnProfileRequest wrapper for the GetClientVpnProfile operation type GetClientVpnProfileRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // Unique identifier for the request. @@ -32,6 +34,10 @@ func (request GetClientVpnProfileRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClientVpnProfileRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -47,6 +53,17 @@ func (request GetClientVpnProfileRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClientVpnProfileRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClientVpnProfileResponse wrapper for the GetClientVpnProfile operation type GetClientVpnProfileResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_request_response.go index 5888339695..7e99c1396f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClientVpnRequest wrapper for the GetClientVpn operation type GetClientVpnRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetClientVpnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClientVpnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetClientVpnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClientVpnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClientVpnResponse wrapper for the GetClientVpn operation type GetClientVpnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_status_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_status_request_response.go index 8f7fae2d16..33c7fa2219 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_status_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClientVpnStatusRequest wrapper for the GetClientVpnStatus operation type GetClientVpnStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetClientVpnStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClientVpnStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetClientVpnStatusRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClientVpnStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClientVpnStatusResponse wrapper for the GetClientVpnStatus operation type GetClientVpnStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_user_profile_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_user_profile_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_user_profile_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_user_profile_request_response.go index 9ce868a958..9b6905ee5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_user_profile_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_user_profile_request_response.go @@ -1,19 +1,21 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // GetClientVpnUserProfileRequest wrapper for the GetClientVpnUserProfile operation type GetClientVpnUserProfileRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // The username of the ClientVpnUser. @@ -35,6 +37,10 @@ func (request GetClientVpnUserProfileRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClientVpnUserProfileRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request GetClientVpnUserProfileRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClientVpnUserProfileRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClientVpnUserProfileResponse wrapper for the GetClientVpnUserProfile operation type GetClientVpnUserProfileResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_user_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_user_request_response.go index 328da988d5..5fd28bc41c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_client_vpn_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_client_vpn_user_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClientVpnUserRequest wrapper for the GetClientVpnUser operation type GetClientVpnUserRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // The username of the ClientVpnUser. @@ -34,6 +36,10 @@ func (request GetClientVpnUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClientVpnUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetClientVpnUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClientVpnUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClientVpnUserResponse wrapper for the GetClientVpnUser operation type GetClientVpnUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cluster_network_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go index 660247690f..d4a65cbe43 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cluster_network_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetClusterNetworkRequest wrapper for the GetClusterNetwork operation @@ -31,6 +33,10 @@ func (request GetClusterNetworkRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetClusterNetworkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetClusterNetworkRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetClusterNetworkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetClusterNetworkResponse wrapper for the GetClusterNetwork operation type GetClusterNetworkResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_capacity_reservation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_reservation_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_capacity_reservation_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_reservation_request_response.go index 2f10efef41..b4707119dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_capacity_reservation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_capacity_reservation_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetComputeCapacityReservationRequest wrapper for the GetComputeCapacityReservation operation @@ -31,6 +33,10 @@ func (request GetComputeCapacityReservationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetComputeCapacityReservationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetComputeCapacityReservationRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetComputeCapacityReservationResponse wrapper for the GetComputeCapacityReservation operation type GetComputeCapacityReservationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_cluster_request_response.go new file mode 100644 index 0000000000..3cf2ebad61 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_cluster_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetComputeClusterRequest wrapper for the GetComputeCluster operation +type GetComputeClusterRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster is a remote direct memory access (RDMA) network group. + // For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). + ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetComputeClusterRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetComputeClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetComputeClusterRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetComputeClusterRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetComputeClusterResponse wrapper for the GetComputeCluster operation +type GetComputeClusterResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ComputeCluster instance + ComputeCluster `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetComputeClusterResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetComputeClusterResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_global_image_capability_schema_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_global_image_capability_schema_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_global_image_capability_schema_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_global_image_capability_schema_request_response.go index 05a47707f0..0fe7ea7312 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_global_image_capability_schema_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_global_image_capability_schema_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetComputeGlobalImageCapabilitySchemaRequest wrapper for the GetComputeGlobalImageCapabilitySchema operation @@ -31,6 +33,10 @@ func (request GetComputeGlobalImageCapabilitySchemaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetComputeGlobalImageCapabilitySchemaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetComputeGlobalImageCapabilitySchemaRequest) RetryPolicy() *commo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeGlobalImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetComputeGlobalImageCapabilitySchemaResponse wrapper for the GetComputeGlobalImageCapabilitySchema operation type GetComputeGlobalImageCapabilitySchemaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_global_image_capability_schema_version_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_global_image_capability_schema_version_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_global_image_capability_schema_version_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_global_image_capability_schema_version_request_response.go index d6e3a71e1c..588d720cdf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_global_image_capability_schema_version_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_global_image_capability_schema_version_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetComputeGlobalImageCapabilitySchemaVersionRequest wrapper for the GetComputeGlobalImageCapabilitySchemaVersion operation @@ -34,6 +36,10 @@ func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) String() stri // HTTPRequest implements the OCIRequest interface func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) RetryPolicy() return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeGlobalImageCapabilitySchemaVersionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetComputeGlobalImageCapabilitySchemaVersionResponse wrapper for the GetComputeGlobalImageCapabilitySchemaVersion operation type GetComputeGlobalImageCapabilitySchemaVersionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_image_capability_schema_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_image_capability_schema_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_image_capability_schema_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_image_capability_schema_request_response.go index 902e01c5b1..fe598ef0f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_compute_image_capability_schema_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_compute_image_capability_schema_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetComputeImageCapabilitySchemaRequest wrapper for the GetComputeImageCapabilitySchema operation @@ -34,6 +36,10 @@ func (request GetComputeImageCapabilitySchemaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetComputeImageCapabilitySchemaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetComputeImageCapabilitySchemaRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetComputeImageCapabilitySchemaResponse wrapper for the GetComputeImageCapabilitySchema operation type GetComputeImageCapabilitySchemaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_console_history_content_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_content_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_console_history_content_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_content_request_response.go index 0ed22ed877..523c4ea4be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_console_history_content_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_content_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetConsoleHistoryContentRequest wrapper for the GetConsoleHistoryContent operation @@ -37,6 +39,10 @@ func (request GetConsoleHistoryContentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetConsoleHistoryContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request GetConsoleHistoryContentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetConsoleHistoryContentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetConsoleHistoryContentResponse wrapper for the GetConsoleHistoryContent operation type GetConsoleHistoryContentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_console_history_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go index efff071247..42ffcd0e5a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_console_history_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetConsoleHistoryRequest wrapper for the GetConsoleHistory operation @@ -31,6 +33,10 @@ func (request GetConsoleHistoryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetConsoleHistoryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetConsoleHistoryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetConsoleHistoryResponse wrapper for the GetConsoleHistory operation type GetConsoleHistoryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_device_config_content_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_device_config_content_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_device_config_content_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_device_config_content_request_response.go index 557615c15c..6781b231eb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_device_config_content_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_device_config_content_request_response.go @@ -1,19 +1,21 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // GetCpeDeviceConfigContentRequest wrapper for the GetCpeDeviceConfigContent operation type GetCpeDeviceConfigContentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` // Unique identifier for the request. @@ -32,6 +34,10 @@ func (request GetCpeDeviceConfigContentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCpeDeviceConfigContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -47,6 +53,17 @@ func (request GetCpeDeviceConfigContentRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCpeDeviceConfigContentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCpeDeviceConfigContentResponse wrapper for the GetCpeDeviceConfigContent operation type GetCpeDeviceConfigContentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_device_shape_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_device_shape_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_device_shape_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_device_shape_request_response.go index 78539c9924..a38eed2c9f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_device_shape_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_device_shape_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCpeDeviceShapeRequest wrapper for the GetCpeDeviceShape operation @@ -31,6 +33,10 @@ func (request GetCpeDeviceShapeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCpeDeviceShapeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCpeDeviceShapeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCpeDeviceShapeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCpeDeviceShapeResponse wrapper for the GetCpeDeviceShape operation type GetCpeDeviceShapeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go index 8d99c9001d..38ca8e20f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cpe_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCpeRequest wrapper for the GetCpe operation type GetCpeRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetCpeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCpeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCpeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCpeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCpeResponse wrapper for the GetCpe operation type GetCpeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_details.go new file mode 100644 index 0000000000..d83a84bd9b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GetCreateReverseConnectionNatIpDetails Details for retrieving the reverse connection NAT IP address. +type GetCreateReverseConnectionNatIpDetails struct { + + // The customer's IP address that corresponds to the reverse connection NAT IP address. + ReverseConnectionCustomerIp *string `mandatory:"true" json:"reverseConnectionCustomerIp"` +} + +func (m GetCreateReverseConnectionNatIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m GetCreateReverseConnectionNatIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_request_response.go index f6f5f788b7..f03dc11446 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_create_reverse_connection_nat_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_create_reverse_connection_nat_ip_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCreateReverseConnectionNatIpRequest wrapper for the GetCreateReverseConnectionNatIp operation @@ -41,6 +43,10 @@ func (request GetCreateReverseConnectionNatIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCreateReverseConnectionNatIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request GetCreateReverseConnectionNatIpRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCreateReverseConnectionNatIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCreateReverseConnectionNatIpResponse wrapper for the GetCreateReverseConnectionNatIp operation type GetCreateReverseConnectionNatIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_group_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_group_request_response.go index 27d82e4ff1..b2052a5f51 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_group_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCrossConnectGroupRequest wrapper for the GetCrossConnectGroup operation type GetCrossConnectGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetCrossConnectGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCrossConnectGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCrossConnectGroupResponse wrapper for the GetCrossConnectGroup operation type GetCrossConnectGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_letter_of_authority_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_letter_of_authority_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_letter_of_authority_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_letter_of_authority_request_response.go index dfb83f4f8b..fb22c4288d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_letter_of_authority_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_letter_of_authority_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCrossConnectLetterOfAuthorityRequest wrapper for the GetCrossConnectLetterOfAuthority operation type GetCrossConnectLetterOfAuthorityRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetCrossConnectLetterOfAuthorityRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCrossConnectLetterOfAuthorityRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCrossConnectLetterOfAuthorityRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCrossConnectLetterOfAuthorityRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCrossConnectLetterOfAuthorityResponse wrapper for the GetCrossConnectLetterOfAuthority operation type GetCrossConnectLetterOfAuthorityResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go index db29441d12..6cf96e4981 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCrossConnectRequest wrapper for the GetCrossConnect operation type GetCrossConnectRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetCrossConnectRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCrossConnectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCrossConnectRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCrossConnectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCrossConnectResponse wrapper for the GetCrossConnect operation type GetCrossConnectResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_status_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_status_request_response.go index 0208e9cebc..a3bd26205d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_cross_connect_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_cross_connect_status_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetCrossConnectStatusRequest wrapper for the GetCrossConnectStatus operation type GetCrossConnectStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetCrossConnectStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetCrossConnectStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetCrossConnectStatusRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCrossConnectStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetCrossConnectStatusResponse wrapper for the GetCrossConnectStatus operation type GetCrossConnectStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_dav_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dav_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_dav_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_dav_request_response.go index 9fa7436b21..3afd29fbb5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_dav_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dav_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDavRequest wrapper for the GetDav operation @@ -31,6 +33,10 @@ func (request GetDavRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDavRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDavRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDavRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDavResponse wrapper for the GetDav operation type GetDavResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_dedicated_vm_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dedicated_vm_host_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_dedicated_vm_host_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_dedicated_vm_host_request_response.go index a0aad5e61a..146b275db7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_dedicated_vm_host_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dedicated_vm_host_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDedicatedVmHostRequest wrapper for the GetDedicatedVmHost operation @@ -31,6 +33,10 @@ func (request GetDedicatedVmHostRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDedicatedVmHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDedicatedVmHostResponse wrapper for the GetDedicatedVmHost operation type GetDedicatedVmHostResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_dhcp_options_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go index e18ae72d84..285f4a3aa6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_dhcp_options_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDhcpOptionsRequest wrapper for the GetDhcpOptions operation type GetDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetDhcpOptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDhcpOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDhcpOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDhcpOptionsResponse wrapper for the GetDhcpOptions operation type GetDhcpOptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_attached_network_info_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attached_network_info_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_attached_network_info_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attached_network_info_request_response.go index b17a0fce6b..888901cf0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_attached_network_info_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attached_network_info_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgAttachedNetworkInfoRequest wrapper for the GetDrgAttachedNetworkInfo operation type GetDrgAttachedNetworkInfoRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetDrgAttachedNetworkInfoRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgAttachedNetworkInfoRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgAttachedNetworkInfoRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgAttachedNetworkInfoRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgAttachedNetworkInfoResponse wrapper for the GetDrgAttachedNetworkInfo operation type GetDrgAttachedNetworkInfoResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go index 88660a3ab5..5bed133a1c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgAttachmentRequest wrapper for the GetDrgAttachment operation @@ -31,6 +33,10 @@ func (request GetDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgAttachmentResponse wrapper for the GetDrgAttachment operation type GetDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_migration_count_region_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_migration_count_region_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_migration_count_region_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_migration_count_region_request_response.go index f495aa44a1..fa50cf6bee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_migration_count_region_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_migration_count_region_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgMigrationCountRegionRequest wrapper for the GetDrgMigrationCountRegion operation @@ -31,6 +33,10 @@ func (request GetDrgMigrationCountRegionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgMigrationCountRegionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgMigrationCountRegionRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgMigrationCountRegionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgMigrationCountRegionResponse wrapper for the GetDrgMigrationCountRegion operation type GetDrgMigrationCountRegionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_migration_count_tenancy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_migration_count_tenancy_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_migration_count_tenancy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_migration_count_tenancy_request_response.go index b0645b1f8a..659a7f1c43 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_migration_count_tenancy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_migration_count_tenancy_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgMigrationCountTenancyRequest wrapper for the GetDrgMigrationCountTenancy operation type GetDrgMigrationCountTenancyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the tenancy. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy. TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetDrgMigrationCountTenancyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgMigrationCountTenancyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgMigrationCountTenancyRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgMigrationCountTenancyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgMigrationCountTenancyResponse wrapper for the GetDrgMigrationCountTenancy operation type GetDrgMigrationCountTenancyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_redundancy_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_redundancy_status_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_redundancy_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_redundancy_status_request_response.go index 47f4c6b7b3..4ba7382d22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_redundancy_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_redundancy_status_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgRedundancyStatusRequest wrapper for the GetDrgRedundancyStatus operation type GetDrgRedundancyStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetDrgRedundancyStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgRedundancyStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgRedundancyStatusRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgRedundancyStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgRedundancyStatusResponse wrapper for the GetDrgRedundancyStatus operation type GetDrgRedundancyStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go index 20ae664aef..798e8a25db 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgRequest wrapper for the GetDrg operation type GetDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgResponse wrapper for the GetDrg operation type GetDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_route_distribution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_route_distribution_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_route_distribution_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_route_distribution_request_response.go index 7af1d46c6a..e69ba8cad7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_route_distribution_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_route_distribution_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgRouteDistributionRequest wrapper for the GetDrgRouteDistribution operation @@ -31,6 +33,10 @@ func (request GetDrgRouteDistributionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgRouteDistributionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgRouteDistributionRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgRouteDistributionResponse wrapper for the GetDrgRouteDistribution operation type GetDrgRouteDistributionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_route_table_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_route_table_request_response.go index 4bacab5899..2557ade97e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_drg_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_drg_route_table_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDrgRouteTableRequest wrapper for the GetDrgRouteTable operation @@ -31,6 +33,10 @@ func (request GetDrgRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDrgRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDrgRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDrgRouteTableResponse wrapper for the GetDrgRouteTable operation type GetDrgRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_endpoint_service_next_hop_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_endpoint_service_next_hop_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_endpoint_service_next_hop_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_endpoint_service_next_hop_request_response.go index bdcbc4bab8..556bf3ab56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_endpoint_service_next_hop_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_endpoint_service_next_hop_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetEndpointServiceNextHopRequest wrapper for the GetEndpointServiceNextHop operation @@ -34,6 +36,10 @@ func (request GetEndpointServiceNextHopRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetEndpointServiceNextHopRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetEndpointServiceNextHopRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetEndpointServiceNextHopRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetEndpointServiceNextHopResponse wrapper for the GetEndpointServiceNextHop operation type GetEndpointServiceNextHopResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_endpoint_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_endpoint_service_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_endpoint_service_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_endpoint_service_request_response.go index 53507ec7e1..90681c7e2b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_endpoint_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_endpoint_service_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetEndpointServiceRequest wrapper for the GetEndpointService operation @@ -31,6 +33,10 @@ func (request GetEndpointServiceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetEndpointServiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetEndpointServiceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetEndpointServiceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetEndpointServiceResponse wrapper for the GetEndpointService operation type GetEndpointServiceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_fast_connect_provider_service_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_fast_connect_provider_service_key_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_fast_connect_provider_service_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_fast_connect_provider_service_key_request_response.go index 08070094d9..4c031d38a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_fast_connect_provider_service_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_fast_connect_provider_service_key_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetFastConnectProviderServiceKeyRequest wrapper for the GetFastConnectProviderServiceKey operation type GetFastConnectProviderServiceKeyRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the provider service. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` // The provider service key that the provider gives you when you set up a virtual circuit connection @@ -37,6 +39,10 @@ func (request GetFastConnectProviderServiceKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetFastConnectProviderServiceKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request GetFastConnectProviderServiceKeyRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetFastConnectProviderServiceKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetFastConnectProviderServiceKeyResponse wrapper for the GetFastConnectProviderServiceKey operation type GetFastConnectProviderServiceKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_fast_connect_provider_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_fast_connect_provider_service_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_fast_connect_provider_service_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_fast_connect_provider_service_request_response.go index 90ba25e1f1..4bd4aade87 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_fast_connect_provider_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_fast_connect_provider_service_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetFastConnectProviderServiceRequest wrapper for the GetFastConnectProviderService operation type GetFastConnectProviderServiceRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the provider service. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetFastConnectProviderServiceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetFastConnectProviderServiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetFastConnectProviderServiceRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetFastConnectProviderServiceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetFastConnectProviderServiceResponse wrapper for the GetFastConnectProviderService operation type GetFastConnectProviderServiceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_flow_log_config_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_flow_log_config_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_flow_log_config_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_flow_log_config_attachment_request_response.go index ccf0cb805c..a208f30f0a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_flow_log_config_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_flow_log_config_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetFlowLogConfigAttachmentRequest wrapper for the GetFlowLogConfigAttachment operation @@ -31,6 +33,10 @@ func (request GetFlowLogConfigAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetFlowLogConfigAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetFlowLogConfigAttachmentRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetFlowLogConfigAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetFlowLogConfigAttachmentResponse wrapper for the GetFlowLogConfigAttachment operation type GetFlowLogConfigAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_flow_log_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_flow_log_config_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_flow_log_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_flow_log_config_request_response.go index c4fd1e0fe7..ff8182e27d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_flow_log_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_flow_log_config_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetFlowLogConfigRequest wrapper for the GetFlowLogConfig operation @@ -31,6 +33,10 @@ func (request GetFlowLogConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetFlowLogConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetFlowLogConfigRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetFlowLogConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetFlowLogConfigResponse wrapper for the GetFlowLogConfig operation type GetFlowLogConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_device_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_device_config_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_device_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_device_config_request_response.go index 03c2267570..77be97bf47 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_device_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_device_config_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionDeviceConfigRequest wrapper for the GetIPSecConnectionDeviceConfig operation type GetIPSecConnectionDeviceConfigRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetIPSecConnectionDeviceConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionDeviceConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIPSecConnectionDeviceConfigRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionDeviceConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionDeviceConfigResponse wrapper for the GetIPSecConnectionDeviceConfig operation type GetIPSecConnectionDeviceConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_device_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_device_status_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_device_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_device_status_request_response.go index 35d3766c75..00db38c01d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_device_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_device_status_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionDeviceStatusRequest wrapper for the GetIPSecConnectionDeviceStatus operation type GetIPSecConnectionDeviceStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetIPSecConnectionDeviceStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionDeviceStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIPSecConnectionDeviceStatusRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionDeviceStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionDeviceStatusResponse wrapper for the GetIPSecConnectionDeviceStatus operation type GetIPSecConnectionDeviceStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_migration_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_migration_status_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_migration_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_migration_status_request_response.go index b11313b993..613823139c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_migration_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_migration_status_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionMigrationStatusRequest wrapper for the GetIPSecConnectionMigrationStatus operation type GetIPSecConnectionMigrationStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetIPSecConnectionMigrationStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionMigrationStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIPSecConnectionMigrationStatusRequest) RetryPolicy() *common.Re return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionMigrationStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionMigrationStatusResponse wrapper for the GetIPSecConnectionMigrationStatus operation type GetIPSecConnectionMigrationStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_request_response.go index 5069aaed64..490b38c893 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionRequest wrapper for the GetIPSecConnection operation type GetIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetIPSecConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionResponse wrapper for the GetIPSecConnection operation type GetIPSecConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_error_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_error_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_error_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_error_request_response.go index 72b311c282..1747527f83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_error_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_error_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionTunnelErrorRequest wrapper for the GetIPSecConnectionTunnelError operation type GetIPSecConnectionTunnelErrorRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -34,6 +36,10 @@ func (request GetIPSecConnectionTunnelErrorRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionTunnelErrorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetIPSecConnectionTunnelErrorRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionTunnelErrorRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionTunnelErrorResponse wrapper for the GetIPSecConnectionTunnelError operation type GetIPSecConnectionTunnelErrorResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_request_response.go index 57eba421c3..d88cc54a64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionTunnelRequest wrapper for the GetIPSecConnectionTunnel operation type GetIPSecConnectionTunnelRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -34,6 +36,10 @@ func (request GetIPSecConnectionTunnelRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionTunnelRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetIPSecConnectionTunnelRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionTunnelRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionTunnelResponse wrapper for the GetIPSecConnectionTunnel operation type GetIPSecConnectionTunnelResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go index bb8eac277e..54983727e7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_i_p_sec_connection_tunnel_shared_secret_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIPSecConnectionTunnelSharedSecretRequest wrapper for the GetIPSecConnectionTunnelSharedSecret operation type GetIPSecConnectionTunnelSharedSecretRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -34,6 +36,10 @@ func (request GetIPSecConnectionTunnelSharedSecretRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIPSecConnectionTunnelSharedSecretRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetIPSecConnectionTunnelSharedSecretRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIPSecConnectionTunnelSharedSecretRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIPSecConnectionTunnelSharedSecretResponse wrapper for the GetIPSecConnectionTunnelSharedSecret operation type GetIPSecConnectionTunnelSharedSecretResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_image_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go index 032d91d087..7de37c584f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetImageRequest wrapper for the GetImage operation @@ -31,6 +33,10 @@ func (request GetImageRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetImageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetImageRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetImageRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetImageResponse wrapper for the GetImage operation type GetImageResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_image_shape_compatibility_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_shape_compatibility_entry_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_image_shape_compatibility_entry_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_shape_compatibility_entry_request_response.go index 72d502ed87..447d01b7b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_image_shape_compatibility_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_image_shape_compatibility_entry_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetImageShapeCompatibilityEntryRequest wrapper for the GetImageShapeCompatibilityEntry operation @@ -34,6 +36,10 @@ func (request GetImageShapeCompatibilityEntryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetImageShapeCompatibilityEntryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetImageShapeCompatibilityEntryRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetImageShapeCompatibilityEntryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetImageShapeCompatibilityEntryResponse wrapper for the GetImageShapeCompatibilityEntry operation type GetImageShapeCompatibilityEntryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_configuration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go index c8e50de7cb..627d96d104 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_configuration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInstanceConfigurationRequest wrapper for the GetInstanceConfiguration operation @@ -31,6 +33,10 @@ func (request GetInstanceConfigurationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInstanceConfigurationRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInstanceConfigurationResponse wrapper for the GetInstanceConfiguration operation type GetInstanceConfigurationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_console_connection_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_console_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_console_connection_request_response.go index 6bfe4d191a..532963d8e6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_console_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInstanceConsoleConnectionRequest wrapper for the GetInstanceConsoleConnection operation @@ -31,6 +33,10 @@ func (request GetInstanceConsoleConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInstanceConsoleConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInstanceConsoleConnectionRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInstanceConsoleConnectionResponse wrapper for the GetInstanceConsoleConnection operation type GetInstanceConsoleConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_reboot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_reboot_request_response.go new file mode 100644 index 0000000000..e25dc88e88 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_maintenance_reboot_request_response.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetInstanceMaintenanceRebootRequest wrapper for the GetInstanceMaintenanceReboot operation +type GetInstanceMaintenanceRebootRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetInstanceMaintenanceRebootRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetInstanceMaintenanceRebootRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetInstanceMaintenanceRebootRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetInstanceMaintenanceRebootRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstanceMaintenanceRebootRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetInstanceMaintenanceRebootResponse wrapper for the GetInstanceMaintenanceReboot operation +type GetInstanceMaintenanceRebootResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The InstanceMaintenanceReboot instance + InstanceMaintenanceReboot `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetInstanceMaintenanceRebootResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetInstanceMaintenanceRebootResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_instance_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_instance_request_response.go index 6afc495b9b..de50ea4fa5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInstancePoolInstanceRequest wrapper for the GetInstancePoolInstance operation @@ -34,6 +36,10 @@ func (request GetInstancePoolInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInstancePoolInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetInstancePoolInstanceRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstancePoolInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInstancePoolInstanceResponse wrapper for the GetInstancePoolInstance operation type GetInstancePoolInstanceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_load_balancer_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_load_balancer_attachment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_load_balancer_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_load_balancer_attachment_request_response.go index 84c08e45a8..f189129b1a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_load_balancer_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_load_balancer_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInstancePoolLoadBalancerAttachmentRequest wrapper for the GetInstancePoolLoadBalancerAttachment operation @@ -34,6 +36,10 @@ func (request GetInstancePoolLoadBalancerAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInstancePoolLoadBalancerAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetInstancePoolLoadBalancerAttachmentRequest) RetryPolicy() *commo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstancePoolLoadBalancerAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInstancePoolLoadBalancerAttachmentResponse wrapper for the GetInstancePoolLoadBalancerAttachment operation type GetInstancePoolLoadBalancerAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go index 5fcf0cde20..4f5f0c5f56 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInstancePoolRequest wrapper for the GetInstancePool operation @@ -31,6 +33,10 @@ func (request GetInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInstancePoolResponse wrapper for the GetInstancePool operation type GetInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go index 1cc268ce5e..32330f276d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInstanceRequest wrapper for the GetInstance operation @@ -31,6 +33,10 @@ func (request GetInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInstanceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInstanceResponse wrapper for the GetInstance operation type GetInstanceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_content_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_content_request_response.go new file mode 100644 index 0000000000..4eb69c2be8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_content_request_response.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "io" + "net/http" + "strings" +) + +// GetInstanceScreenshotContentRequest wrapper for the GetInstanceScreenshotContent operation +type GetInstanceScreenshotContentRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // The OCID of the screenshot capture. + InstanceScreenshotId *string `mandatory:"true" contributesTo:"path" name:"instanceScreenshotId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetInstanceScreenshotContentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetInstanceScreenshotContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetInstanceScreenshotContentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetInstanceScreenshotContentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstanceScreenshotContentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetInstanceScreenshotContentResponse wrapper for the GetInstanceScreenshotContent operation +type GetInstanceScreenshotContentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The io.ReadCloser instance + Content io.ReadCloser `presentIn:"body" encoding:"binary"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetInstanceScreenshotContentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetInstanceScreenshotContentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_request_response.go new file mode 100644 index 0000000000..a00db0a2db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_instance_screenshot_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetInstanceScreenshotRequest wrapper for the GetInstanceScreenshot operation +type GetInstanceScreenshotRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // The OCID of the screenshot capture. + InstanceScreenshotId *string `mandatory:"true" contributesTo:"path" name:"instanceScreenshotId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetInstanceScreenshotRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetInstanceScreenshotRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetInstanceScreenshotRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetInstanceScreenshotRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInstanceScreenshotRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetInstanceScreenshotResponse wrapper for the GetInstanceScreenshot operation +type GetInstanceScreenshotResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The InstanceScreenshot instance + InstanceScreenshot `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetInstanceScreenshotResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetInstanceScreenshotResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_dns_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_dns_record_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_dns_record_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_dns_record_request_response.go index a37f2c7a41..0fb5eda58d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_dns_record_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_dns_record_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalDnsRecordRequest wrapper for the GetInternalDnsRecord operation @@ -31,6 +33,10 @@ func (request GetInternalDnsRecordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalDnsRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalDnsRecordRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalDnsRecordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalDnsRecordResponse wrapper for the GetInternalDnsRecord operation type GetInternalDnsRecordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_drg_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_drg_attachment_request_response.go index c1e354a1c1..4e5f69c6ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalDrgAttachmentRequest wrapper for the GetInternalDrgAttachment operation @@ -31,6 +33,10 @@ func (request GetInternalDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalDrgAttachmentResponse wrapper for the GetInternalDrgAttachment operation type GetInternalDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_drg_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_drg_request_response.go index 20bc51a356..43cad7db2c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalDrgRequest wrapper for the GetInternalDrg operation @@ -31,6 +33,10 @@ func (request GetInternalDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalDrgResponse wrapper for the GetInternalDrg operation type GetInternalDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_details.go new file mode 100644 index 0000000000..5a306bd949 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GetInternalGenericGatewayByGatewayIdDetails The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway stands for. +type GetInternalGenericGatewayByGatewayIdDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway stands for. + GatewayId *string `mandatory:"true" json:"gatewayId"` +} + +func (m GetInternalGenericGatewayByGatewayIdDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m GetInternalGenericGatewayByGatewayIdDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_request_response.go index 394b959ef5..5e86161d64 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_by_gateway_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_by_gateway_id_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalGenericGatewayByGatewayIdRequest wrapper for the GetInternalGenericGatewayByGatewayId operation @@ -43,6 +45,10 @@ func (request GetInternalGenericGatewayByGatewayIdRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalGenericGatewayByGatewayIdRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request GetInternalGenericGatewayByGatewayIdRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalGenericGatewayByGatewayIdRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalGenericGatewayByGatewayIdResponse wrapper for the GetInternalGenericGatewayByGatewayId operation type GetInternalGenericGatewayByGatewayIdResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_request_response.go index 65d4a4dced..5a12e9af8f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_generic_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_generic_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalGenericGatewayRequest wrapper for the GetInternalGenericGateway operation @@ -31,6 +33,10 @@ func (request GetInternalGenericGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalGenericGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalGenericGatewayRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalGenericGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalGenericGatewayResponse wrapper for the GetInternalGenericGateway operation type GetInternalGenericGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_public_ip_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_public_ip_request_response.go index 3ed769a55f..dd0a973532 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_public_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalPublicIpRequest wrapper for the GetInternalPublicIp operation type GetInternalPublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal public IP. InternalPublicIpId *string `mandatory:"true" contributesTo:"path" name:"internalPublicIpId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetInternalPublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalPublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalPublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalPublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalPublicIpResponse wrapper for the GetInternalPublicIp operation type GetInternalPublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_subnet_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_subnet_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_subnet_request_response.go index 2d1f41ee44..a5f543fcd3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_subnet_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalSubnetRequest wrapper for the GetInternalSubnet operation type GetInternalSubnetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. InternalSubnetId *string `mandatory:"true" contributesTo:"path" name:"internalSubnetId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetInternalSubnetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalSubnetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalSubnetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalSubnetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalSubnetResponse wrapper for the GetInternalSubnet operation type GetInternalSubnetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_vnic_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_vnic_attachment_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_vnic_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_vnic_attachment_request_response.go index 75ba7ccf09..be98fde20f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_vnic_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_vnic_attachment_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalVnicAttachmentRequest wrapper for the GetInternalVnicAttachment operation type GetInternalVnicAttachmentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetInternalVnicAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalVnicAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalVnicAttachmentRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalVnicAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalVnicAttachmentResponse wrapper for the GetInternalVnicAttachment operation type GetInternalVnicAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_vnic_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_vnic_request_response.go index 44caf4d4be..5cfa3a0ff2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internal_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internal_vnic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternalVnicRequest wrapper for the GetInternalVnic operation type GetInternalVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetInternalVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternalVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternalVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternalVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternalVnicResponse wrapper for the GetInternalVnic operation type GetInternalVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_internet_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go index a8a1162b0e..0957540ec8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_internet_gateway_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetInternetGatewayRequest wrapper for the GetInternetGateway operation type GetInternetGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetInternetGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetInternetGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetInternetGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetInternetGatewayResponse wrapper for the GetInternetGateway operation type GetInternetGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_ipsec_cpe_device_config_content_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipsec_cpe_device_config_content_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_ipsec_cpe_device_config_content_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipsec_cpe_device_config_content_request_response.go index 495e5c4577..c7541928a7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_ipsec_cpe_device_config_content_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipsec_cpe_device_config_content_request_response.go @@ -1,19 +1,21 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // GetIpsecCpeDeviceConfigContentRequest wrapper for the GetIpsecCpeDeviceConfigContent operation type GetIpsecCpeDeviceConfigContentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique identifier for the request. @@ -32,6 +34,10 @@ func (request GetIpsecCpeDeviceConfigContentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIpsecCpeDeviceConfigContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -47,6 +53,17 @@ func (request GetIpsecCpeDeviceConfigContentRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIpsecCpeDeviceConfigContentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIpsecCpeDeviceConfigContentResponse wrapper for the GetIpsecCpeDeviceConfigContent operation type GetIpsecCpeDeviceConfigContentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_ipv6_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go index a6202e6e25..b07d394b47 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_ipv6_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIpv6Request wrapper for the GetIpv6 operation @@ -31,6 +33,10 @@ func (request GetIpv6Request) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIpv6Request) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIpv6Request) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIpv6Request) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIpv6Response wrapper for the GetIpv6 operation type GetIpv6Response struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_local_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_local_peering_connection_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_local_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_local_peering_connection_request_response.go index fa7d2e8aa5..1d06240a30 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_local_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_local_peering_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetLocalPeeringConnectionRequest wrapper for the GetLocalPeeringConnection operation type GetLocalPeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. LocalPeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"localPeeringConnectionId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetLocalPeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetLocalPeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetLocalPeeringConnectionRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLocalPeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetLocalPeeringConnectionResponse wrapper for the GetLocalPeeringConnection operation type GetLocalPeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_local_peering_gateway_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_local_peering_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_local_peering_gateway_request_response.go index b9654e998a..24e7ab9c0a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_local_peering_gateway_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetLocalPeeringGatewayRequest wrapper for the GetLocalPeeringGateway operation type GetLocalPeeringGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetLocalPeeringGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetLocalPeeringGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetLocalPeeringGatewayResponse wrapper for the GetLocalPeeringGateway operation type GetLocalPeeringGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_measured_boot_report_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_measured_boot_report_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_measured_boot_report_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_measured_boot_report_request_response.go index 1da457fdd9..5909e1ca94 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_measured_boot_report_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_measured_boot_report_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetMeasuredBootReportRequest wrapper for the GetMeasuredBootReport operation @@ -31,6 +33,10 @@ func (request GetMeasuredBootReportRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetMeasuredBootReportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetMeasuredBootReportRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetMeasuredBootReportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetMeasuredBootReportResponse wrapper for the GetMeasuredBootReport operation type GetMeasuredBootReportResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_nat_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go index b448e85bfc..46354af156 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_nat_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNatGatewayRequest wrapper for the GetNatGateway operation @@ -31,6 +33,10 @@ func (request GetNatGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNatGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetNatGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNatGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNatGatewayResponse wrapper for the GetNatGateway operation type GetNatGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_network_security_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_network_security_group_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_network_security_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_network_security_group_request_response.go index 39312433b9..879ff86d30 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_network_security_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_network_security_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNetworkSecurityGroupRequest wrapper for the GetNetworkSecurityGroup operation @@ -31,6 +33,10 @@ func (request GetNetworkSecurityGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNetworkSecurityGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNetworkSecurityGroupResponse wrapper for the GetNetworkSecurityGroup operation type GetNetworkSecurityGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_networking_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_networking_topology_request_response.go new file mode 100644 index 0000000000..d4e7c9307a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_networking_topology_request_response.go @@ -0,0 +1,160 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetNetworkingTopologyRequest wrapper for the GetNetworkingTopology operation +type GetNetworkingTopologyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`. + // Setting this to `ACCESSIBLE` returns only compartments for which a + // user has INSPECT permissions, either directly or indirectly (permissions can be on a + // resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has + // indirect INSPECT permissions. + // When set to `ANY` permissions are not checked. + AccessLevel GetNetworkingTopologyAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // When set to true, the hierarchy of compartments is traversed + // and the specified compartment and its subcompartments are + // inspected depending on the the setting of `accessLevel`. + // Default is false. + QueryCompartmentSubtree *bool `mandatory:"false" contributesTo:"query" name:"queryCompartmentSubtree"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For querying if there is a cached value on the server. The If-None-Match HTTP request header + // makes the request conditional. For GET and HEAD methods, the server will send back the requested + // resource, with a 200 status, only if it doesn't have an ETag matching the given ones. + // For other methods, the request will be processed only if the eventually existing resource's + // ETag doesn't match any of the values listed. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The Cache-Control HTTP header holds directives (instructions) + // for caching in both requests and responses. + CacheControl *string `mandatory:"false" contributesTo:"header" name:"cache-control"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetNetworkingTopologyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetNetworkingTopologyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetNetworkingTopologyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetNetworkingTopologyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNetworkingTopologyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetNetworkingTopologyAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetGetNetworkingTopologyAccessLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetNetworkingTopologyResponse wrapper for the GetNetworkingTopology operation +type GetNetworkingTopologyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The NetworkingTopology instance + NetworkingTopology `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetNetworkingTopologyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetNetworkingTopologyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetNetworkingTopologyAccessLevelEnum Enum with underlying type: string +type GetNetworkingTopologyAccessLevelEnum string + +// Set of constants representing the allowable values for GetNetworkingTopologyAccessLevelEnum +const ( + GetNetworkingTopologyAccessLevelAny GetNetworkingTopologyAccessLevelEnum = "ANY" + GetNetworkingTopologyAccessLevelAccessible GetNetworkingTopologyAccessLevelEnum = "ACCESSIBLE" +) + +var mappingGetNetworkingTopologyAccessLevelEnum = map[string]GetNetworkingTopologyAccessLevelEnum{ + "ANY": GetNetworkingTopologyAccessLevelAny, + "ACCESSIBLE": GetNetworkingTopologyAccessLevelAccessible, +} + +var mappingGetNetworkingTopologyAccessLevelEnumLowerCase = map[string]GetNetworkingTopologyAccessLevelEnum{ + "any": GetNetworkingTopologyAccessLevelAny, + "accessible": GetNetworkingTopologyAccessLevelAccessible, +} + +// GetGetNetworkingTopologyAccessLevelEnumValues Enumerates the set of values for GetNetworkingTopologyAccessLevelEnum +func GetGetNetworkingTopologyAccessLevelEnumValues() []GetNetworkingTopologyAccessLevelEnum { + values := make([]GetNetworkingTopologyAccessLevelEnum, 0) + for _, v := range mappingGetNetworkingTopologyAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetGetNetworkingTopologyAccessLevelEnumStringValues Enumerates the set of values in String for GetNetworkingTopologyAccessLevelEnum +func GetGetNetworkingTopologyAccessLevelEnumStringValues() []string { + return []string{ + "ANY", + "ACCESSIBLE", + } +} + +// GetMappingGetNetworkingTopologyAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetNetworkingTopologyAccessLevelEnum(val string) (GetNetworkingTopologyAccessLevelEnum, bool) { + enum, ok := mappingGetNetworkingTopologyAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_access_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_access_gateway_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_access_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_access_gateway_request_response.go index 53ba00e93e..801f61cfee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_access_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_access_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPrivateAccessGatewayRequest wrapper for the GetPrivateAccessGateway operation @@ -31,6 +33,10 @@ func (request GetPrivateAccessGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPrivateAccessGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPrivateAccessGatewayRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPrivateAccessGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPrivateAccessGatewayResponse wrapper for the GetPrivateAccessGateway operation type GetPrivateAccessGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_endpoint_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_endpoint_association_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_endpoint_association_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_endpoint_association_request_response.go index 0b6c9105c7..8b6f5ce258 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_endpoint_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_endpoint_association_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPrivateEndpointAssociationRequest wrapper for the GetPrivateEndpointAssociation operation @@ -34,6 +36,10 @@ func (request GetPrivateEndpointAssociationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPrivateEndpointAssociationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetPrivateEndpointAssociationRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPrivateEndpointAssociationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPrivateEndpointAssociationResponse wrapper for the GetPrivateEndpointAssociation operation type GetPrivateEndpointAssociationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_endpoint_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_endpoint_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_endpoint_request_response.go index 051875b14c..9db8919d44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_endpoint_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_endpoint_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPrivateEndpointRequest wrapper for the GetPrivateEndpoint operation @@ -31,6 +33,10 @@ func (request GetPrivateEndpointRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPrivateEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPrivateEndpointRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPrivateEndpointResponse wrapper for the GetPrivateEndpoint operation type GetPrivateEndpointResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_ip_next_hop_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_next_hop_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_ip_next_hop_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_next_hop_request_response.go index 37cc11a1bb..fce58b3598 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_ip_next_hop_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_next_hop_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPrivateIpNextHopRequest wrapper for the GetPrivateIpNextHop operation type GetPrivateIpNextHopRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetPrivateIpNextHopRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPrivateIpNextHopRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPrivateIpNextHopRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPrivateIpNextHopRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPrivateIpNextHopResponse wrapper for the GetPrivateIpNextHop operation type GetPrivateIpNextHopResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go index 666342f627..ce6f92cd67 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_private_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPrivateIpRequest wrapper for the GetPrivateIp operation type GetPrivateIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetPrivateIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPrivateIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPrivateIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPrivateIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPrivateIpResponse wrapper for the GetPrivateIp operation type GetPrivateIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_details.go new file mode 100644 index 0000000000..c7f81a8177 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GetPublicIpByIpAddressDetails IP address of the public IP. +type GetPublicIpByIpAddressDetails struct { + + // The public IP address. + // Example: 203.0.113.2 + IpAddress *string `mandatory:"true" json:"ipAddress"` +} + +func (m GetPublicIpByIpAddressDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m GetPublicIpByIpAddressDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_request_response.go index 73135b3810..23a0c16735 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_ip_address_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_ip_address_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPublicIpByIpAddressRequest wrapper for the GetPublicIpByIpAddress operation @@ -31,6 +33,10 @@ func (request GetPublicIpByIpAddressRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPublicIpByIpAddressRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPublicIpByIpAddressRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPublicIpByIpAddressRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPublicIpByIpAddressResponse wrapper for the GetPublicIpByIpAddress operation type GetPublicIpByIpAddressResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_details.go new file mode 100644 index 0000000000..d5f50c056c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// GetPublicIpByPrivateIpIdDetails Details of the private IP that the public IP is assigned to. +type GetPublicIpByPrivateIpIdDetails struct { + + // OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP. + PrivateIpId *string `mandatory:"true" json:"privateIpId"` +} + +func (m GetPublicIpByPrivateIpIdDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m GetPublicIpByPrivateIpIdDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_request_response.go index 96e012dbb1..6b1d3f6b13 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_by_private_ip_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_by_private_ip_id_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPublicIpByPrivateIpIdRequest wrapper for the GetPublicIpByPrivateIpId operation @@ -31,6 +33,10 @@ func (request GetPublicIpByPrivateIpIdRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPublicIpByPrivateIpIdRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPublicIpByPrivateIpIdRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPublicIpByPrivateIpIdRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPublicIpByPrivateIpIdResponse wrapper for the GetPublicIpByPrivateIpId operation type GetPublicIpByPrivateIpIdResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_pool_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_pool_request_response.go index a0061b18ca..c37fc364c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPublicIpPoolRequest wrapper for the GetPublicIpPool operation @@ -31,6 +33,10 @@ func (request GetPublicIpPoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPublicIpPoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPublicIpPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPublicIpPoolResponse wrapper for the GetPublicIpPool operation type GetPublicIpPoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go index 62ebc1f6d6..2a8244b962 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_public_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPublicIpRequest wrapper for the GetPublicIp operation type GetPublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetPublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPublicIpResponse wrapper for the GetPublicIp operation type GetPublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_remote_peering_connection_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_remote_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_remote_peering_connection_request_response.go index 908f5bbd74..6fb5947223 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_remote_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_remote_peering_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetRemotePeeringConnectionRequest wrapper for the GetRemotePeeringConnection operation type GetRemotePeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetRemotePeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetRemotePeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetRemotePeeringConnectionRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetRemotePeeringConnectionResponse wrapper for the GetRemotePeeringConnection operation type GetRemotePeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_reverse_connection_nat_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_reverse_connection_nat_ip_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_reverse_connection_nat_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_reverse_connection_nat_ip_request_response.go index f79f5c91f0..bac763f3d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_reverse_connection_nat_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_reverse_connection_nat_ip_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetReverseConnectionNatIpRequest wrapper for the GetReverseConnectionNatIp operation @@ -34,6 +36,10 @@ func (request GetReverseConnectionNatIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetReverseConnectionNatIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetReverseConnectionNatIpRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetReverseConnectionNatIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetReverseConnectionNatIpResponse wrapper for the GetReverseConnectionNatIp operation type GetReverseConnectionNatIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go index e6908a6254..dcb6f542f9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_route_table_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetRouteTableRequest wrapper for the GetRouteTable operation type GetRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetRouteTableResponse wrapper for the GetRouteTable operation type GetRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_scan_proxy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_scan_proxy_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_scan_proxy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_scan_proxy_request_response.go index 74d1d35f1b..72467b2378 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_scan_proxy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_scan_proxy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetScanProxyRequest wrapper for the GetScanProxy operation @@ -34,6 +36,10 @@ func (request GetScanProxyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetScanProxyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetScanProxyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetScanProxyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetScanProxyResponse wrapper for the GetScanProxy operation type GetScanProxyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_security_list_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go index f4c2e31b34..902a809015 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_security_list_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetSecurityListRequest wrapper for the GetSecurityList operation type GetSecurityListRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetSecurityListRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetSecurityListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetSecurityListRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetSecurityListRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetSecurityListResponse wrapper for the GetSecurityList operation type GetSecurityListResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_service_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go index 367b97d784..ca51a20273 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetServiceGatewayRequest wrapper for the GetServiceGateway operation @@ -31,6 +33,10 @@ func (request GetServiceGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetServiceGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetServiceGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetServiceGatewayResponse wrapper for the GetServiceGateway operation type GetServiceGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_service_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go index f7f4727a83..dda72671b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_service_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetServiceRequest wrapper for the GetService operation @@ -31,6 +33,10 @@ func (request GetServiceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetServiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetServiceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetServiceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetServiceResponse wrapper for the GetService operation type GetServiceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go index 996ca51699..1691a26639 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetSubnetRequest wrapper for the GetSubnet operation type GetSubnetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetSubnetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetSubnetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetSubnetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetSubnetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetSubnetResponse wrapper for the GetSubnet operation type GetSubnetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_topology_request_response.go new file mode 100644 index 0000000000..b8c208cf85 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_subnet_topology_request_response.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetSubnetTopologyRequest wrapper for the GetSubnetTopology operation +type GetSubnetTopologyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"query" name:"subnetId"` + + // Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`. + // Setting this to `ACCESSIBLE` returns only compartments for which a + // user has INSPECT permissions, either directly or indirectly (permissions can be on a + // resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has + // indirect INSPECT permissions. + // When set to `ANY` permissions are not checked. + AccessLevel GetSubnetTopologyAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // When set to true, the hierarchy of compartments is traversed + // and the specified compartment and its subcompartments are + // inspected depending on the the setting of `accessLevel`. + // Default is false. + QueryCompartmentSubtree *bool `mandatory:"false" contributesTo:"query" name:"queryCompartmentSubtree"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For querying if there is a cached value on the server. The If-None-Match HTTP request header + // makes the request conditional. For GET and HEAD methods, the server will send back the requested + // resource, with a 200 status, only if it doesn't have an ETag matching the given ones. + // For other methods, the request will be processed only if the eventually existing resource's + // ETag doesn't match any of the values listed. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The Cache-Control HTTP header holds directives (instructions) + // for caching in both requests and responses. + CacheControl *string `mandatory:"false" contributesTo:"header" name:"cache-control"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetSubnetTopologyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetSubnetTopologyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetSubnetTopologyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetSubnetTopologyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetSubnetTopologyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetSubnetTopologyAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetGetSubnetTopologyAccessLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetSubnetTopologyResponse wrapper for the GetSubnetTopology operation +type GetSubnetTopologyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SubnetTopology instance + SubnetTopology `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetSubnetTopologyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetSubnetTopologyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetSubnetTopologyAccessLevelEnum Enum with underlying type: string +type GetSubnetTopologyAccessLevelEnum string + +// Set of constants representing the allowable values for GetSubnetTopologyAccessLevelEnum +const ( + GetSubnetTopologyAccessLevelAny GetSubnetTopologyAccessLevelEnum = "ANY" + GetSubnetTopologyAccessLevelAccessible GetSubnetTopologyAccessLevelEnum = "ACCESSIBLE" +) + +var mappingGetSubnetTopologyAccessLevelEnum = map[string]GetSubnetTopologyAccessLevelEnum{ + "ANY": GetSubnetTopologyAccessLevelAny, + "ACCESSIBLE": GetSubnetTopologyAccessLevelAccessible, +} + +var mappingGetSubnetTopologyAccessLevelEnumLowerCase = map[string]GetSubnetTopologyAccessLevelEnum{ + "any": GetSubnetTopologyAccessLevelAny, + "accessible": GetSubnetTopologyAccessLevelAccessible, +} + +// GetGetSubnetTopologyAccessLevelEnumValues Enumerates the set of values for GetSubnetTopologyAccessLevelEnum +func GetGetSubnetTopologyAccessLevelEnumValues() []GetSubnetTopologyAccessLevelEnum { + values := make([]GetSubnetTopologyAccessLevelEnum, 0) + for _, v := range mappingGetSubnetTopologyAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetGetSubnetTopologyAccessLevelEnumStringValues Enumerates the set of values in String for GetSubnetTopologyAccessLevelEnum +func GetGetSubnetTopologyAccessLevelEnumStringValues() []string { + return []string{ + "ANY", + "ACCESSIBLE", + } +} + +// GetMappingGetSubnetTopologyAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetSubnetTopologyAccessLevelEnum(val string) (GetSubnetTopologyAccessLevelEnum, bool) { + enum, ok := mappingGetSubnetTopologyAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_tunnel_cpe_device_config_content_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_tunnel_cpe_device_config_content_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_tunnel_cpe_device_config_content_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_tunnel_cpe_device_config_content_request_response.go index 3fec261446..001125c828 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_tunnel_cpe_device_config_content_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_tunnel_cpe_device_config_content_request_response.go @@ -1,19 +1,21 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // GetTunnelCpeDeviceConfigContentRequest wrapper for the GetTunnelCpeDeviceConfigContent operation type GetTunnelCpeDeviceConfigContentRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -35,6 +37,10 @@ func (request GetTunnelCpeDeviceConfigContentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTunnelCpeDeviceConfigContentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request GetTunnelCpeDeviceConfigContentRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTunnelCpeDeviceConfigContentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTunnelCpeDeviceConfigContentResponse wrapper for the GetTunnelCpeDeviceConfigContent operation type GetTunnelCpeDeviceConfigContentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_tunnel_cpe_device_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_tunnel_cpe_device_config_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_tunnel_cpe_device_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_tunnel_cpe_device_config_request_response.go index 42bbc090b8..df5ba11c63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_tunnel_cpe_device_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_tunnel_cpe_device_config_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTunnelCpeDeviceConfigRequest wrapper for the GetTunnelCpeDeviceConfig operation type GetTunnelCpeDeviceConfigRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -34,6 +36,10 @@ func (request GetTunnelCpeDeviceConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTunnelCpeDeviceConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetTunnelCpeDeviceConfigRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTunnelCpeDeviceConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTunnelCpeDeviceConfigResponse wrapper for the GetTunnelCpeDeviceConfig operation type GetTunnelCpeDeviceConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_upgrade_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_upgrade_status_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go index 6546f47ceb..a1dfde89c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_upgrade_status_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_upgrade_status_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetUpgradeStatusRequest wrapper for the GetUpgradeStatus operation type GetUpgradeStatusRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetUpgradeStatusRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetUpgradeStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetUpgradeStatusRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetUpgradeStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetUpgradeStatusResponse wrapper for the GetUpgradeStatus operation type GetUpgradeStatusResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_dns_resolver_association_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_dns_resolver_association_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_dns_resolver_association_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_dns_resolver_association_request_response.go index 816b49248b..659da329a7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_dns_resolver_association_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_dns_resolver_association_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVcnDnsResolverAssociationRequest wrapper for the GetVcnDnsResolverAssociation operation @@ -31,6 +33,10 @@ func (request GetVcnDnsResolverAssociationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVcnDnsResolverAssociationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVcnDnsResolverAssociationRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVcnDnsResolverAssociationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVcnDnsResolverAssociationResponse wrapper for the GetVcnDnsResolverAssociation operation type GetVcnDnsResolverAssociationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_drg_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_drg_attachment_request_response.go index 6ce395b962..5e638af588 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVcnDrgAttachmentRequest wrapper for the GetVcnDrgAttachment operation @@ -31,6 +33,10 @@ func (request GetVcnDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVcnDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVcnDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVcnDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVcnDrgAttachmentResponse wrapper for the GetVcnDrgAttachment operation type GetVcnDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_drg_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_drg_request_response.go index 3aa134b572..9539c4accf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVcnDrgRequest wrapper for the GetVcnDrg operation type GetVcnDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetVcnDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVcnDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVcnDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVcnDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVcnDrgResponse wrapper for the GetVcnDrg operation type GetVcnDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go index 44853fd0e9..ad235509f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVcnRequest wrapper for the GetVcn operation @@ -31,6 +33,10 @@ func (request GetVcnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVcnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVcnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVcnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVcnResponse wrapper for the GetVcn operation type GetVcnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_topology_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_topology_request_response.go new file mode 100644 index 0000000000..9ed0cb623d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vcn_topology_request_response.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetVcnTopologyRequest wrapper for the GetVcnTopology operation +type GetVcnTopologyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"true" contributesTo:"query" name:"vcnId"` + + // Valid values are `ANY` and `ACCESSIBLE`. The default is `ANY`. + // Setting this to `ACCESSIBLE` returns only compartments for which a + // user has INSPECT permissions, either directly or indirectly (permissions can be on a + // resource in a subcompartment). A restricted set of fields is returned for compartments in which a user has + // indirect INSPECT permissions. + // When set to `ANY` permissions are not checked. + AccessLevel GetVcnTopologyAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // When set to true, the hierarchy of compartments is traversed + // and the specified compartment and its subcompartments are + // inspected depending on the the setting of `accessLevel`. + // Default is false. + QueryCompartmentSubtree *bool `mandatory:"false" contributesTo:"query" name:"queryCompartmentSubtree"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For querying if there is a cached value on the server. The If-None-Match HTTP request header + // makes the request conditional. For GET and HEAD methods, the server will send back the requested + // resource, with a 200 status, only if it doesn't have an ETag matching the given ones. + // For other methods, the request will be processed only if the eventually existing resource's + // ETag doesn't match any of the values listed. + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The Cache-Control HTTP header holds directives (instructions) + // for caching in both requests and responses. + CacheControl *string `mandatory:"false" contributesTo:"header" name:"cache-control"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetVcnTopologyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetVcnTopologyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetVcnTopologyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetVcnTopologyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVcnTopologyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetVcnTopologyAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetGetVcnTopologyAccessLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetVcnTopologyResponse wrapper for the GetVcnTopology operation +type GetVcnTopologyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The VcnTopology instance + VcnTopology `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetVcnTopologyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetVcnTopologyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetVcnTopologyAccessLevelEnum Enum with underlying type: string +type GetVcnTopologyAccessLevelEnum string + +// Set of constants representing the allowable values for GetVcnTopologyAccessLevelEnum +const ( + GetVcnTopologyAccessLevelAny GetVcnTopologyAccessLevelEnum = "ANY" + GetVcnTopologyAccessLevelAccessible GetVcnTopologyAccessLevelEnum = "ACCESSIBLE" +) + +var mappingGetVcnTopologyAccessLevelEnum = map[string]GetVcnTopologyAccessLevelEnum{ + "ANY": GetVcnTopologyAccessLevelAny, + "ACCESSIBLE": GetVcnTopologyAccessLevelAccessible, +} + +var mappingGetVcnTopologyAccessLevelEnumLowerCase = map[string]GetVcnTopologyAccessLevelEnum{ + "any": GetVcnTopologyAccessLevelAny, + "accessible": GetVcnTopologyAccessLevelAccessible, +} + +// GetGetVcnTopologyAccessLevelEnumValues Enumerates the set of values for GetVcnTopologyAccessLevelEnum +func GetGetVcnTopologyAccessLevelEnumValues() []GetVcnTopologyAccessLevelEnum { + values := make([]GetVcnTopologyAccessLevelEnum, 0) + for _, v := range mappingGetVcnTopologyAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetGetVcnTopologyAccessLevelEnumStringValues Enumerates the set of values in String for GetVcnTopologyAccessLevelEnum +func GetGetVcnTopologyAccessLevelEnumStringValues() []string { + return []string{ + "ANY", + "ACCESSIBLE", + } +} + +// GetMappingGetVcnTopologyAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetVcnTopologyAccessLevelEnum(val string) (GetVcnTopologyAccessLevelEnum, bool) { + enum, ok := mappingGetVcnTopologyAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_virtual_circuit_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go index 6651e85f80..3e4d1c1ee8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_virtual_circuit_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVirtualCircuitRequest wrapper for the GetVirtualCircuit operation type GetVirtualCircuitRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetVirtualCircuitRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVirtualCircuitRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVirtualCircuitRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVirtualCircuitResponse wrapper for the GetVirtualCircuit operation type GetVirtualCircuitResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vlan_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go index 972930c87c..38964f5aa8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vlan_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVlanRequest wrapper for the GetVlan operation @@ -31,6 +33,10 @@ func (request GetVlanRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVlanRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVlanRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVlanResponse wrapper for the GetVlan operation type GetVlanResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go index 327c5ec8d6..437bde4aaf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVnicAttachmentRequest wrapper for the GetVnicAttachment operation @@ -31,6 +33,10 @@ func (request GetVnicAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVnicAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVnicAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVnicAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVnicAttachmentResponse wrapper for the GetVnicAttachment operation type GetVnicAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go index 0d0ee6fcaf..6974c86ed4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVnicRequest wrapper for the GetVnic operation type GetVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. VnicId *string `mandatory:"true" contributesTo:"path" name:"vnicId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVnicResponse wrapper for the GetVnic operation type GetVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_worker_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_worker_request_response.go index 049c0ac5bc..8e3163c87d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVnicWorkerRequest wrapper for the GetVnicWorker operation type GetVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // Unique Oracle-assigned identifier for the request. @@ -31,6 +33,10 @@ func (request GetVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVnicWorkerResponse wrapper for the GetVnicWorker operation type GetVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go index 730602a22d..032f944612 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeAttachmentRequest wrapper for the GetVolumeAttachment operation @@ -31,6 +33,10 @@ func (request GetVolumeAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeAttachmentResponse wrapper for the GetVolumeAttachment operation type GetVolumeAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_asset_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_asset_assignment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_asset_assignment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_asset_assignment_request_response.go index 203ac37469..fc4b49e2c0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_asset_assignment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_asset_assignment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeBackupPolicyAssetAssignmentRequest wrapper for the GetVolumeBackupPolicyAssetAssignment operation @@ -42,6 +44,10 @@ func (request GetVolumeBackupPolicyAssetAssignmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeBackupPolicyAssetAssignmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request GetVolumeBackupPolicyAssetAssignmentRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeBackupPolicyAssetAssignmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeBackupPolicyAssetAssignmentResponse wrapper for the GetVolumeBackupPolicyAssetAssignment operation type GetVolumeBackupPolicyAssetAssignmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_assignment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_assignment_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_assignment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_assignment_request_response.go index caab557672..d7d87d404f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_assignment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_assignment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeBackupPolicyAssignmentRequest wrapper for the GetVolumeBackupPolicyAssignment operation @@ -31,6 +33,10 @@ func (request GetVolumeBackupPolicyAssignmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeBackupPolicyAssignmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeBackupPolicyAssignmentRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeBackupPolicyAssignmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeBackupPolicyAssignmentResponse wrapper for the GetVolumeBackupPolicyAssignment operation type GetVolumeBackupPolicyAssignmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_request_response.go index 8360bdd8b0..be96b38038 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeBackupPolicyRequest wrapper for the GetVolumeBackupPolicy operation @@ -31,6 +33,10 @@ func (request GetVolumeBackupPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeBackupPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeBackupPolicyResponse wrapper for the GetVolumeBackupPolicy operation type GetVolumeBackupPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go index 3f3f43af22..4fe395d09f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeBackupRequest wrapper for the GetVolumeBackup operation @@ -31,6 +33,10 @@ func (request GetVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeBackupResponse wrapper for the GetVolumeBackup operation type GetVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_backup_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_backup_request_response.go index b701f04e86..599f1c32a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeGroupBackupRequest wrapper for the GetVolumeGroupBackup operation @@ -31,6 +33,10 @@ func (request GetVolumeGroupBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeGroupBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeGroupBackupResponse wrapper for the GetVolumeGroupBackup operation type GetVolumeGroupBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_replica_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_replica_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_replica_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_replica_request_response.go index ea6ff05792..dcc688bf3f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_replica_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_replica_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeGroupReplicaRequest wrapper for the GetVolumeGroupReplica operation @@ -31,6 +33,10 @@ func (request GetVolumeGroupReplicaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeGroupReplicaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeGroupReplicaRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeGroupReplicaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeGroupReplicaResponse wrapper for the GetVolumeGroupReplica operation type GetVolumeGroupReplicaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go index 105712c6eb..e09fef9110 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeGroupRequest wrapper for the GetVolumeGroup operation @@ -31,6 +33,10 @@ func (request GetVolumeGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeGroupResponse wrapper for the GetVolumeGroup operation type GetVolumeGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_kms_key_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_kms_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_kms_key_request_response.go index f7a6406367..8c8406bc60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_kms_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_kms_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeKmsKeyRequest wrapper for the GetVolumeKmsKey operation @@ -36,6 +38,10 @@ func (request GetVolumeKmsKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeKmsKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request GetVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeKmsKeyResponse wrapper for the GetVolumeKmsKey operation type GetVolumeKmsKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go index d22befcad6..931bff1995 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVolumeRequest wrapper for the GetVolume operation @@ -31,6 +33,10 @@ func (request GetVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVolumeResponse wrapper for the GetVolume operation type GetVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_vtap_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go index ba28520949..9799964310 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_vtap_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_vtap_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetVtapRequest wrapper for the GetVtap operation type GetVtapRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VTAP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request GetVtapRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetVtapRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetVtapRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetVtapRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetVtapResponse wrapper for the GetVtap operation type GetVtapResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_windows_instance_initial_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_windows_instance_initial_credentials_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/get_windows_instance_initial_credentials_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/get_windows_instance_initial_credentials_request_response.go index d591f1cff7..3468d3f54c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/get_windows_instance_initial_credentials_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/get_windows_instance_initial_credentials_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetWindowsInstanceInitialCredentialsRequest wrapper for the GetWindowsInstanceInitialCredentials operation @@ -31,6 +33,10 @@ func (request GetWindowsInstanceInitialCredentialsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetWindowsInstanceInitialCredentialsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetWindowsInstanceInitialCredentialsRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetWindowsInstanceInitialCredentialsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetWindowsInstanceInitialCredentialsResponse wrapper for the GetWindowsInstanceInitialCredentials operation type GetWindowsInstanceInitialCredentialsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/i_scsi_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/i_scsi_volume_attachment.go new file mode 100644 index 0000000000..399478ba7f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/i_scsi_volume_attachment.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IScsiVolumeAttachment An ISCSI volume attachment. +type IScsiVolumeAttachment struct { + + // The availability domain of an instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the volume attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance the volume is attached to. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the volume. + VolumeId *string `mandatory:"true" json:"volumeId"` + + // The volume's iSCSI IP address. + // Example: `169.254.0.2` + Ipv4 *string `mandatory:"true" json:"ipv4"` + + // The target volume's iSCSI Qualified Name in the format defined + // by RFC 3720 (https://tools.ietf.org/html/rfc3720#page-32). + // Example: `iqn.2015-12.us.oracle.com:` + Iqn *string `mandatory:"true" json:"iqn"` + + // The volume's iSCSI port, usually port 860 or 3260. + // Example: `3260` + Port *int `mandatory:"true" json:"port"` + + // The device name. + Device *string `mandatory:"false" json:"device"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether the attachment was created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment. + IsMultipath *bool `mandatory:"false" json:"isMultipath"` + + // The Challenge-Handshake-Authentication-Protocol (CHAP) secret + // valid for the associated CHAP user name. + // (Also called the "CHAP password".) + ChapSecret *string `mandatory:"false" json:"chapSecret"` + + // The volume's system-generated Challenge-Handshake-Authentication-Protocol + // (CHAP) user name. See RFC 1994 (https://tools.ietf.org/html/rfc1994) for more on CHAP. + // Example: `ocid1.volume.oc1.phx.` + ChapUsername *string `mandatory:"false" json:"chapUsername"` + + // A list of secondary multipath devices + MultipathDevices []MultipathDevice `mandatory:"false" json:"multipathDevices"` + + // Whether Oracle Cloud Agent is enabled perform the iSCSI login and logout commands after the volume attach or detach operations for non multipath-enabled iSCSI attachments. + IsAgentAutoIscsiLoginEnabled *bool `mandatory:"false" json:"isAgentAutoIscsiLoginEnabled"` + + // The current state of the volume attachment. + LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The iscsi login state of the volume attachment. For a Iscsi volume attachment, + // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. + IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` + + // Refer the top-level definition of encryptionInTransitType. + // The default value is NONE. + EncryptionInTransitType EncryptionInTransitTypeEnum `mandatory:"false" json:"encryptionInTransitType,omitempty"` +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m IScsiVolumeAttachment) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m IScsiVolumeAttachment) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDevice returns Device +func (m IScsiVolumeAttachment) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m IScsiVolumeAttachment) GetDisplayName() *string { + return m.DisplayName +} + +//GetId returns Id +func (m IScsiVolumeAttachment) GetId() *string { + return m.Id +} + +//GetInstanceId returns InstanceId +func (m IScsiVolumeAttachment) GetInstanceId() *string { + return m.InstanceId +} + +//GetIsReadOnly returns IsReadOnly +func (m IScsiVolumeAttachment) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m IScsiVolumeAttachment) GetIsShareable() *bool { + return m.IsShareable +} + +//GetLifecycleState returns LifecycleState +func (m IScsiVolumeAttachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { + return m.LifecycleState +} + +//GetTimeCreated returns TimeCreated +func (m IScsiVolumeAttachment) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetVolumeId returns VolumeId +func (m IScsiVolumeAttachment) GetVolumeId() *string { + return m.VolumeId +} + +//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled +func (m IScsiVolumeAttachment) GetIsPvEncryptionInTransitEnabled() *bool { + return m.IsPvEncryptionInTransitEnabled +} + +//GetIsMultipath returns IsMultipath +func (m IScsiVolumeAttachment) GetIsMultipath() *bool { + return m.IsMultipath +} + +//GetIscsiLoginState returns IscsiLoginState +func (m IScsiVolumeAttachment) GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum { + return m.IscsiLoginState +} + +func (m IScsiVolumeAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IScsiVolumeAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVolumeAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeAttachmentLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeAttachmentIscsiLoginStateEnum(string(m.IscsiLoginState)); !ok && m.IscsiLoginState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IscsiLoginState: %s. Supported values are: %s.", m.IscsiLoginState, strings.Join(GetVolumeAttachmentIscsiLoginStateEnumStringValues(), ","))) + } + if _, ok := GetMappingEncryptionInTransitTypeEnum(string(m.EncryptionInTransitType)); !ok && m.EncryptionInTransitType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionInTransitType: %s. Supported values are: %s.", m.EncryptionInTransitType, strings.Join(GetEncryptionInTransitTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IScsiVolumeAttachment) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIScsiVolumeAttachment IScsiVolumeAttachment + s := struct { + DiscriminatorParam string `json:"attachmentType"` + MarshalTypeIScsiVolumeAttachment + }{ + "iscsi", + (MarshalTypeIScsiVolumeAttachment)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/icmp_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/icmp_options.go new file mode 100644 index 0000000000..626ad24664 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/icmp_options.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IcmpOptions Optional and valid only for ICMP and ICMPv6. Use to specify a particular ICMP type and code +// as defined in: +// - ICMP Parameters (http://www.iana.org/assignments/icmp-parameters/icmp-parameters.xhtml) +// - ICMPv6 Parameters (https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml) +// If you specify ICMP or ICMPv6 as the protocol but omit this object, then all ICMP types and +// codes are allowed. If you do provide this object, the type is required and the code is optional. +// To enable MTU negotiation for ingress internet traffic via IPv4, make sure to allow type 3 ("Destination +// Unreachable") code 4 ("Fragmentation Needed and Don't Fragment was Set"). If you need to specify +// multiple codes for a single type, create a separate security list rule for each. +type IcmpOptions struct { + + // The ICMP type. + Type *int `mandatory:"true" json:"type"` + + // The ICMP code (optional). + Code *int `mandatory:"false" json:"code"` +} + +func (m IcmpOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IcmpOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image.go new file mode 100644 index 0000000000..92380b49f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image.go @@ -0,0 +1,274 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Image A boot disk image for launching an instance. For more information, see +// Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type Image struct { + + // The OCID of the compartment containing the instance you want to use as the basis for the image. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Whether instances launched with this image can be used to create new images. + // For example, you cannot create an image of an Oracle Database instance. + // Example: `true` + CreateImageAllowed *bool `mandatory:"true" json:"createImageAllowed"` + + // The OCID of the image. + Id *string `mandatory:"true" json:"id"` + + LifecycleState ImageLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The image's operating system. + // Example: `Oracle Linux` + OperatingSystem *string `mandatory:"true" json:"operatingSystem"` + + // The image's operating system version. + // Example: `7.2` + OperatingSystemVersion *string `mandatory:"true" json:"operatingSystemVersion"` + + // The date and time the image was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the image originally used to launch the instance. + BaseImageId *string `mandatory:"false" json:"baseImageId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name for the image. It does not have to be unique, and it's changeable. + // Avoid entering confidential information. + // You cannot use a platform image name as a custom image name. + // Example: `My custom Oracle Linux image` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: + // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. + // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. + // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. + LaunchMode ImageLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` + + LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"` + + AgentFeatures *InstanceAgentFeatures `mandatory:"false" json:"agentFeatures"` + + // The listing type of the image. The default value is "NONE". + ListingType ImageListingTypeEnum `mandatory:"false" json:"listingType,omitempty"` + + // The boot volume size for an instance launched from this image (1 MB = 1,048,576 bytes). + // Note this is not the same as the size of the image when it was exported or the actual size of the image. + // Example: `47694` + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` + + // The size of the internal storage for this image that is subject to billing (1 GB = 1,073,741,824 bytes). + // Example: `100` + BillableSizeInGBs *int64 `mandatory:"false" json:"billableSizeInGBs"` + + ImageVolumeDetails *ImageVolumeDetails `mandatory:"false" json:"imageVolumeDetails"` +} + +func (m Image) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Image) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingImageLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetImageLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingImageLaunchModeEnum(string(m.LaunchMode)); !ok && m.LaunchMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LaunchMode: %s. Supported values are: %s.", m.LaunchMode, strings.Join(GetImageLaunchModeEnumStringValues(), ","))) + } + if _, ok := GetMappingImageListingTypeEnum(string(m.ListingType)); !ok && m.ListingType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ListingType: %s. Supported values are: %s.", m.ListingType, strings.Join(GetImageListingTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImageLaunchModeEnum Enum with underlying type: string +type ImageLaunchModeEnum string + +// Set of constants representing the allowable values for ImageLaunchModeEnum +const ( + ImageLaunchModeNative ImageLaunchModeEnum = "NATIVE" + ImageLaunchModeEmulated ImageLaunchModeEnum = "EMULATED" + ImageLaunchModeParavirtualized ImageLaunchModeEnum = "PARAVIRTUALIZED" + ImageLaunchModeCustom ImageLaunchModeEnum = "CUSTOM" +) + +var mappingImageLaunchModeEnum = map[string]ImageLaunchModeEnum{ + "NATIVE": ImageLaunchModeNative, + "EMULATED": ImageLaunchModeEmulated, + "PARAVIRTUALIZED": ImageLaunchModeParavirtualized, + "CUSTOM": ImageLaunchModeCustom, +} + +var mappingImageLaunchModeEnumLowerCase = map[string]ImageLaunchModeEnum{ + "native": ImageLaunchModeNative, + "emulated": ImageLaunchModeEmulated, + "paravirtualized": ImageLaunchModeParavirtualized, + "custom": ImageLaunchModeCustom, +} + +// GetImageLaunchModeEnumValues Enumerates the set of values for ImageLaunchModeEnum +func GetImageLaunchModeEnumValues() []ImageLaunchModeEnum { + values := make([]ImageLaunchModeEnum, 0) + for _, v := range mappingImageLaunchModeEnum { + values = append(values, v) + } + return values +} + +// GetImageLaunchModeEnumStringValues Enumerates the set of values in String for ImageLaunchModeEnum +func GetImageLaunchModeEnumStringValues() []string { + return []string{ + "NATIVE", + "EMULATED", + "PARAVIRTUALIZED", + "CUSTOM", + } +} + +// GetMappingImageLaunchModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImageLaunchModeEnum(val string) (ImageLaunchModeEnum, bool) { + enum, ok := mappingImageLaunchModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ImageLifecycleStateEnum Enum with underlying type: string +type ImageLifecycleStateEnum string + +// Set of constants representing the allowable values for ImageLifecycleStateEnum +const ( + ImageLifecycleStateProvisioning ImageLifecycleStateEnum = "PROVISIONING" + ImageLifecycleStateImporting ImageLifecycleStateEnum = "IMPORTING" + ImageLifecycleStateAvailable ImageLifecycleStateEnum = "AVAILABLE" + ImageLifecycleStateExporting ImageLifecycleStateEnum = "EXPORTING" + ImageLifecycleStateDisabled ImageLifecycleStateEnum = "DISABLED" + ImageLifecycleStateDeleted ImageLifecycleStateEnum = "DELETED" +) + +var mappingImageLifecycleStateEnum = map[string]ImageLifecycleStateEnum{ + "PROVISIONING": ImageLifecycleStateProvisioning, + "IMPORTING": ImageLifecycleStateImporting, + "AVAILABLE": ImageLifecycleStateAvailable, + "EXPORTING": ImageLifecycleStateExporting, + "DISABLED": ImageLifecycleStateDisabled, + "DELETED": ImageLifecycleStateDeleted, +} + +var mappingImageLifecycleStateEnumLowerCase = map[string]ImageLifecycleStateEnum{ + "provisioning": ImageLifecycleStateProvisioning, + "importing": ImageLifecycleStateImporting, + "available": ImageLifecycleStateAvailable, + "exporting": ImageLifecycleStateExporting, + "disabled": ImageLifecycleStateDisabled, + "deleted": ImageLifecycleStateDeleted, +} + +// GetImageLifecycleStateEnumValues Enumerates the set of values for ImageLifecycleStateEnum +func GetImageLifecycleStateEnumValues() []ImageLifecycleStateEnum { + values := make([]ImageLifecycleStateEnum, 0) + for _, v := range mappingImageLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetImageLifecycleStateEnumStringValues Enumerates the set of values in String for ImageLifecycleStateEnum +func GetImageLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "IMPORTING", + "AVAILABLE", + "EXPORTING", + "DISABLED", + "DELETED", + } +} + +// GetMappingImageLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImageLifecycleStateEnum(val string) (ImageLifecycleStateEnum, bool) { + enum, ok := mappingImageLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ImageListingTypeEnum Enum with underlying type: string +type ImageListingTypeEnum string + +// Set of constants representing the allowable values for ImageListingTypeEnum +const ( + ImageListingTypeCommunity ImageListingTypeEnum = "COMMUNITY" + ImageListingTypeNone ImageListingTypeEnum = "NONE" +) + +var mappingImageListingTypeEnum = map[string]ImageListingTypeEnum{ + "COMMUNITY": ImageListingTypeCommunity, + "NONE": ImageListingTypeNone, +} + +var mappingImageListingTypeEnumLowerCase = map[string]ImageListingTypeEnum{ + "community": ImageListingTypeCommunity, + "none": ImageListingTypeNone, +} + +// GetImageListingTypeEnumValues Enumerates the set of values for ImageListingTypeEnum +func GetImageListingTypeEnumValues() []ImageListingTypeEnum { + values := make([]ImageListingTypeEnum, 0) + for _, v := range mappingImageListingTypeEnum { + values = append(values, v) + } + return values +} + +// GetImageListingTypeEnumStringValues Enumerates the set of values in String for ImageListingTypeEnum +func GetImageListingTypeEnumStringValues() []string { + return []string{ + "COMMUNITY", + "NONE", + } +} + +// GetMappingImageListingTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImageListingTypeEnum(val string) (ImageListingTypeEnum, bool) { + enum, ok := mappingImageListingTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_capability_schema_descriptor.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_capability_schema_descriptor.go new file mode 100644 index 0000000000..4db8319494 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_capability_schema_descriptor.go @@ -0,0 +1,142 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageCapabilitySchemaDescriptor Image Capability Schema Descriptor is a type of capability for an image. +type ImageCapabilitySchemaDescriptor interface { + GetSource() ImageCapabilitySchemaDescriptorSourceEnum +} + +type imagecapabilityschemadescriptor struct { + JsonData []byte + Source ImageCapabilitySchemaDescriptorSourceEnum `mandatory:"true" json:"source"` + DescriptorType string `json:"descriptorType"` +} + +// UnmarshalJSON unmarshals json +func (m *imagecapabilityschemadescriptor) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerimagecapabilityschemadescriptor imagecapabilityschemadescriptor + s := struct { + Model Unmarshalerimagecapabilityschemadescriptor + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Source = s.Model.Source + m.DescriptorType = s.Model.DescriptorType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *imagecapabilityschemadescriptor) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.DescriptorType { + case "enumstring": + mm := EnumStringImageCapabilitySchemaDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err + case "enuminteger": + mm := EnumIntegerImageCapabilityDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err + case "boolean": + mm := BooleanImageCapabilitySchemaDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ImageCapabilitySchemaDescriptor: %s.", m.DescriptorType) + return *m, nil + } +} + +//GetSource returns Source +func (m imagecapabilityschemadescriptor) GetSource() ImageCapabilitySchemaDescriptorSourceEnum { + return m.Source +} + +func (m imagecapabilityschemadescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m imagecapabilityschemadescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingImageCapabilitySchemaDescriptorSourceEnum(string(m.Source)); !ok && m.Source != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Source: %s. Supported values are: %s.", m.Source, strings.Join(GetImageCapabilitySchemaDescriptorSourceEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImageCapabilitySchemaDescriptorSourceEnum Enum with underlying type: string +type ImageCapabilitySchemaDescriptorSourceEnum string + +// Set of constants representing the allowable values for ImageCapabilitySchemaDescriptorSourceEnum +const ( + ImageCapabilitySchemaDescriptorSourceGlobal ImageCapabilitySchemaDescriptorSourceEnum = "GLOBAL" + ImageCapabilitySchemaDescriptorSourceImage ImageCapabilitySchemaDescriptorSourceEnum = "IMAGE" +) + +var mappingImageCapabilitySchemaDescriptorSourceEnum = map[string]ImageCapabilitySchemaDescriptorSourceEnum{ + "GLOBAL": ImageCapabilitySchemaDescriptorSourceGlobal, + "IMAGE": ImageCapabilitySchemaDescriptorSourceImage, +} + +var mappingImageCapabilitySchemaDescriptorSourceEnumLowerCase = map[string]ImageCapabilitySchemaDescriptorSourceEnum{ + "global": ImageCapabilitySchemaDescriptorSourceGlobal, + "image": ImageCapabilitySchemaDescriptorSourceImage, +} + +// GetImageCapabilitySchemaDescriptorSourceEnumValues Enumerates the set of values for ImageCapabilitySchemaDescriptorSourceEnum +func GetImageCapabilitySchemaDescriptorSourceEnumValues() []ImageCapabilitySchemaDescriptorSourceEnum { + values := make([]ImageCapabilitySchemaDescriptorSourceEnum, 0) + for _, v := range mappingImageCapabilitySchemaDescriptorSourceEnum { + values = append(values, v) + } + return values +} + +// GetImageCapabilitySchemaDescriptorSourceEnumStringValues Enumerates the set of values in String for ImageCapabilitySchemaDescriptorSourceEnum +func GetImageCapabilitySchemaDescriptorSourceEnumStringValues() []string { + return []string{ + "GLOBAL", + "IMAGE", + } +} + +// GetMappingImageCapabilitySchemaDescriptorSourceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImageCapabilitySchemaDescriptorSourceEnum(val string) (ImageCapabilitySchemaDescriptorSourceEnum, bool) { + enum, ok := mappingImageCapabilitySchemaDescriptorSourceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_memory_constraints.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_memory_constraints.go new file mode 100644 index 0000000000..f6b253fa23 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_memory_constraints.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageMemoryConstraints For a flexible image and shape, the amount of memory supported for instances that use this image. +type ImageMemoryConstraints struct { + + // The minimum amount of memory, in gigabytes. + MinInGBs *int `mandatory:"false" json:"minInGBs"` + + // The maximum amount of memory, in gigabytes. + MaxInGBs *int `mandatory:"false" json:"maxInGBs"` +} + +func (m ImageMemoryConstraints) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageMemoryConstraints) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_ocpu_constraints.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_ocpu_constraints.go new file mode 100644 index 0000000000..b298745372 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_ocpu_constraints.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageOcpuConstraints OCPU options for an image and shape. +type ImageOcpuConstraints struct { + + // The minimum number of OCPUs supported for this image and shape. + Min *int `mandatory:"false" json:"min"` + + // The maximum number of OCPUs supported for this image and shape. + Max *int `mandatory:"false" json:"max"` +} + +func (m ImageOcpuConstraints) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageOcpuConstraints) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_entry.go new file mode 100644 index 0000000000..904aae7cb7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_entry.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageShapeCompatibilityEntry An image and shape that are compatible. +type ImageShapeCompatibilityEntry struct { + + // The image OCID. + ImageId *string `mandatory:"true" json:"imageId"` + + // The shape name. + Shape *string `mandatory:"true" json:"shape"` + + MemoryConstraints *ImageMemoryConstraints `mandatory:"false" json:"memoryConstraints"` + + OcpuConstraints *ImageOcpuConstraints `mandatory:"false" json:"ocpuConstraints"` +} + +func (m ImageShapeCompatibilityEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageShapeCompatibilityEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_summary.go new file mode 100644 index 0000000000..a68c87486b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_shape_compatibility_summary.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageShapeCompatibilitySummary Summary information for a compatible image and shape. +type ImageShapeCompatibilitySummary struct { + + // The image OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + ImageId *string `mandatory:"true" json:"imageId"` + + // The shape name. + Shape *string `mandatory:"true" json:"shape"` + + MemoryConstraints *ImageMemoryConstraints `mandatory:"false" json:"memoryConstraints"` + + OcpuConstraints *ImageOcpuConstraints `mandatory:"false" json:"ocpuConstraints"` +} + +func (m ImageShapeCompatibilitySummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageShapeCompatibilitySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_details.go new file mode 100644 index 0000000000..f87bacfd05 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_details.go @@ -0,0 +1,162 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageSourceDetails The representation of ImageSourceDetails +type ImageSourceDetails interface { + GetOperatingSystem() *string + + GetOperatingSystemVersion() *string + + // The format of the image to be imported. Only monolithic + // images are supported. This attribute is not used for exported Oracle images with the OCI image format. + GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum +} + +type imagesourcedetails struct { + JsonData []byte + OperatingSystem *string `mandatory:"false" json:"operatingSystem"` + OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *imagesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerimagesourcedetails imagesourcedetails + s := struct { + Model Unmarshalerimagesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.OperatingSystem = s.Model.OperatingSystem + m.OperatingSystemVersion = s.Model.OperatingSystemVersion + m.SourceImageType = s.Model.SourceImageType + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *imagesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "volumeBackupDetails": + mm := ImageSourceViaVolumeBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "objectStorageTuple": + mm := ImageSourceViaObjectStorageTupleDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "objectStorageUri": + mm := ImageSourceViaObjectStorageUriDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for ImageSourceDetails: %s.", m.SourceType) + return *m, nil + } +} + +//GetOperatingSystem returns OperatingSystem +func (m imagesourcedetails) GetOperatingSystem() *string { + return m.OperatingSystem +} + +//GetOperatingSystemVersion returns OperatingSystemVersion +func (m imagesourcedetails) GetOperatingSystemVersion() *string { + return m.OperatingSystemVersion +} + +//GetSourceImageType returns SourceImageType +func (m imagesourcedetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType +} + +func (m imagesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m imagesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageSourceDetailsSourceImageTypeEnum(string(m.SourceImageType)); !ok && m.SourceImageType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceImageType: %s. Supported values are: %s.", m.SourceImageType, strings.Join(GetImageSourceDetailsSourceImageTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImageSourceDetailsSourceImageTypeEnum Enum with underlying type: string +type ImageSourceDetailsSourceImageTypeEnum string + +// Set of constants representing the allowable values for ImageSourceDetailsSourceImageTypeEnum +const ( + ImageSourceDetailsSourceImageTypeQcow2 ImageSourceDetailsSourceImageTypeEnum = "QCOW2" + ImageSourceDetailsSourceImageTypeVmdk ImageSourceDetailsSourceImageTypeEnum = "VMDK" +) + +var mappingImageSourceDetailsSourceImageTypeEnum = map[string]ImageSourceDetailsSourceImageTypeEnum{ + "QCOW2": ImageSourceDetailsSourceImageTypeQcow2, + "VMDK": ImageSourceDetailsSourceImageTypeVmdk, +} + +var mappingImageSourceDetailsSourceImageTypeEnumLowerCase = map[string]ImageSourceDetailsSourceImageTypeEnum{ + "qcow2": ImageSourceDetailsSourceImageTypeQcow2, + "vmdk": ImageSourceDetailsSourceImageTypeVmdk, +} + +// GetImageSourceDetailsSourceImageTypeEnumValues Enumerates the set of values for ImageSourceDetailsSourceImageTypeEnum +func GetImageSourceDetailsSourceImageTypeEnumValues() []ImageSourceDetailsSourceImageTypeEnum { + values := make([]ImageSourceDetailsSourceImageTypeEnum, 0) + for _, v := range mappingImageSourceDetailsSourceImageTypeEnum { + values = append(values, v) + } + return values +} + +// GetImageSourceDetailsSourceImageTypeEnumStringValues Enumerates the set of values in String for ImageSourceDetailsSourceImageTypeEnum +func GetImageSourceDetailsSourceImageTypeEnumStringValues() []string { + return []string{ + "QCOW2", + "VMDK", + } +} + +// GetMappingImageSourceDetailsSourceImageTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingImageSourceDetailsSourceImageTypeEnum(val string) (ImageSourceDetailsSourceImageTypeEnum, bool) { + enum, ok := mappingImageSourceDetailsSourceImageTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_tuple_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_tuple_details.go new file mode 100644 index 0000000000..befcb0b231 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_tuple_details.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageSourceViaObjectStorageTupleDetails The representation of ImageSourceViaObjectStorageTupleDetails +type ImageSourceViaObjectStorageTupleDetails struct { + + // The Object Storage bucket for the image. + BucketName *string `mandatory:"true" json:"bucketName"` + + // The Object Storage namespace for the image. + NamespaceName *string `mandatory:"true" json:"namespaceName"` + + // The Object Storage name for the image. + ObjectName *string `mandatory:"true" json:"objectName"` + + OperatingSystem *string `mandatory:"false" json:"operatingSystem"` + + OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` + + // The format of the image to be imported. Only monolithic + // images are supported. This attribute is not used for exported Oracle images with the OCI image format. + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` +} + +//GetOperatingSystem returns OperatingSystem +func (m ImageSourceViaObjectStorageTupleDetails) GetOperatingSystem() *string { + return m.OperatingSystem +} + +//GetOperatingSystemVersion returns OperatingSystemVersion +func (m ImageSourceViaObjectStorageTupleDetails) GetOperatingSystemVersion() *string { + return m.OperatingSystemVersion +} + +//GetSourceImageType returns SourceImageType +func (m ImageSourceViaObjectStorageTupleDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType +} + +func (m ImageSourceViaObjectStorageTupleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageSourceViaObjectStorageTupleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageSourceDetailsSourceImageTypeEnum(string(m.SourceImageType)); !ok && m.SourceImageType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceImageType: %s. Supported values are: %s.", m.SourceImageType, strings.Join(GetImageSourceDetailsSourceImageTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ImageSourceViaObjectStorageTupleDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeImageSourceViaObjectStorageTupleDetails ImageSourceViaObjectStorageTupleDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeImageSourceViaObjectStorageTupleDetails + }{ + "objectStorageTuple", + (MarshalTypeImageSourceViaObjectStorageTupleDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_uri_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_uri_details.go new file mode 100644 index 0000000000..0300ad1f25 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_object_storage_uri_details.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageSourceViaObjectStorageUriDetails The representation of ImageSourceViaObjectStorageUriDetails +type ImageSourceViaObjectStorageUriDetails struct { + + // The Object Storage URL for the image. + SourceUri *string `mandatory:"true" json:"sourceUri"` + + OperatingSystem *string `mandatory:"false" json:"operatingSystem"` + + OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` + + // The format of the image to be imported. Only monolithic + // images are supported. This attribute is not used for exported Oracle images with the OCI image format. + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` +} + +//GetOperatingSystem returns OperatingSystem +func (m ImageSourceViaObjectStorageUriDetails) GetOperatingSystem() *string { + return m.OperatingSystem +} + +//GetOperatingSystemVersion returns OperatingSystemVersion +func (m ImageSourceViaObjectStorageUriDetails) GetOperatingSystemVersion() *string { + return m.OperatingSystemVersion +} + +//GetSourceImageType returns SourceImageType +func (m ImageSourceViaObjectStorageUriDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType +} + +func (m ImageSourceViaObjectStorageUriDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageSourceViaObjectStorageUriDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageSourceDetailsSourceImageTypeEnum(string(m.SourceImageType)); !ok && m.SourceImageType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceImageType: %s. Supported values are: %s.", m.SourceImageType, strings.Join(GetImageSourceDetailsSourceImageTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ImageSourceViaObjectStorageUriDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeImageSourceViaObjectStorageUriDetails ImageSourceViaObjectStorageUriDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeImageSourceViaObjectStorageUriDetails + }{ + "objectStorageUri", + (MarshalTypeImageSourceViaObjectStorageUriDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_volume_backup_details.go new file mode 100644 index 0000000000..6441242b5a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_source_via_volume_backup_details.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageSourceViaVolumeBackupDetails Define an Image by providing a set of VolumeBackups that represent the BootVolume and additional, optional data Volumes. +// This is an alternative way of creating an Image from an OS image that is already represented as VolumeBackup[s] in OCI. +type ImageSourceViaVolumeBackupDetails struct { + BootVolume *BootVolumeBackupSourceDetails `mandatory:"true" json:"bootVolume"` + + OperatingSystem *string `mandatory:"false" json:"operatingSystem"` + + OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` + + DataVolumes []DataVolumeBackupSourceDetails `mandatory:"false" json:"dataVolumes"` + + // The format of the image to be imported. Only monolithic + // images are supported. This attribute is not used for exported Oracle images with the OCI image format. + SourceImageType ImageSourceDetailsSourceImageTypeEnum `mandatory:"false" json:"sourceImageType,omitempty"` +} + +//GetOperatingSystem returns OperatingSystem +func (m ImageSourceViaVolumeBackupDetails) GetOperatingSystem() *string { + return m.OperatingSystem +} + +//GetOperatingSystemVersion returns OperatingSystemVersion +func (m ImageSourceViaVolumeBackupDetails) GetOperatingSystemVersion() *string { + return m.OperatingSystemVersion +} + +//GetSourceImageType returns SourceImageType +func (m ImageSourceViaVolumeBackupDetails) GetSourceImageType() ImageSourceDetailsSourceImageTypeEnum { + return m.SourceImageType +} + +func (m ImageSourceViaVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageSourceViaVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingImageSourceDetailsSourceImageTypeEnum(string(m.SourceImageType)); !ok && m.SourceImageType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceImageType: %s. Supported values are: %s.", m.SourceImageType, strings.Join(GetImageSourceDetailsSourceImageTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ImageSourceViaVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeImageSourceViaVolumeBackupDetails ImageSourceViaVolumeBackupDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeImageSourceViaVolumeBackupDetails + }{ + "volumeBackupDetails", + (MarshalTypeImageSourceViaVolumeBackupDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume.go new file mode 100644 index 0000000000..9f04484230 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageVolume Describes a volume that will be created and attached when an Image is launched as an Instance. +type ImageVolume struct { + + // The relative index of this volume. This value is used to identity the volume by relative location for updates. + // The index values will begin at 1. + Index *int `mandatory:"true" json:"index"` + + // A user-friendly description for the Volume, provided by the user. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The size of this volume for an instance launched from this image (1 MB = 1,048,576 bytes). + // Example: `47694` + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` +} + +func (m ImageVolume) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageVolume) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume_details.go new file mode 100644 index 0000000000..ed7d270db0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/image_volume_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImageVolumeDetails Describes the Volumes that will be created when an Instance based on this Image is launched. +type ImageVolumeDetails struct { + + // An optional list of dataVolumes that will be defined at Instance creation time. This list will include any + // additional data volumes to be defined, but will not include the boot volume. + DataVolumes []ImageVolume `mandatory:"false" json:"dataVolumes"` +} + +func (m ImageVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImageVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ingress_security_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ingress_security_rule.go new file mode 100644 index 0000000000..a4558e4a85 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ingress_security_rule.go @@ -0,0 +1,125 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IngressSecurityRule A rule for allowing inbound IP packets. +type IngressSecurityRule struct { + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). + Protocol *string `mandatory:"true" json:"protocol"` + + // Conceptually, this is the range of IP addresses that a packet coming into the instance + // can come from. + // Allowed values: + // * IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56`. + // IPv6 addressing is supported for all commercial and government regions. See + // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security list rule for traffic coming from a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + Source *string `mandatory:"true" json:"source"` + + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if ingress traffic allows TCP destination port 80, there should be an egress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + // Type of source for the rule. The default is `CIDR_BLOCK`. + // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a + // Service (the rule is for traffic coming from a + // particular `Service` through a service gateway). + SourceType IngressSecurityRuleSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` + + // An optional description of your choice for the rule. + Description *string `mandatory:"false" json:"description"` +} + +func (m IngressSecurityRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IngressSecurityRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIngressSecurityRuleSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetIngressSecurityRuleSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IngressSecurityRuleSourceTypeEnum Enum with underlying type: string +type IngressSecurityRuleSourceTypeEnum string + +// Set of constants representing the allowable values for IngressSecurityRuleSourceTypeEnum +const ( + IngressSecurityRuleSourceTypeCidrBlock IngressSecurityRuleSourceTypeEnum = "CIDR_BLOCK" + IngressSecurityRuleSourceTypeServiceCidrBlock IngressSecurityRuleSourceTypeEnum = "SERVICE_CIDR_BLOCK" +) + +var mappingIngressSecurityRuleSourceTypeEnum = map[string]IngressSecurityRuleSourceTypeEnum{ + "CIDR_BLOCK": IngressSecurityRuleSourceTypeCidrBlock, + "SERVICE_CIDR_BLOCK": IngressSecurityRuleSourceTypeServiceCidrBlock, +} + +var mappingIngressSecurityRuleSourceTypeEnumLowerCase = map[string]IngressSecurityRuleSourceTypeEnum{ + "cidr_block": IngressSecurityRuleSourceTypeCidrBlock, + "service_cidr_block": IngressSecurityRuleSourceTypeServiceCidrBlock, +} + +// GetIngressSecurityRuleSourceTypeEnumValues Enumerates the set of values for IngressSecurityRuleSourceTypeEnum +func GetIngressSecurityRuleSourceTypeEnumValues() []IngressSecurityRuleSourceTypeEnum { + values := make([]IngressSecurityRuleSourceTypeEnum, 0) + for _, v := range mappingIngressSecurityRuleSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetIngressSecurityRuleSourceTypeEnumStringValues Enumerates the set of values in String for IngressSecurityRuleSourceTypeEnum +func GetIngressSecurityRuleSourceTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + } +} + +// GetMappingIngressSecurityRuleSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIngressSecurityRuleSourceTypeEnum(val string) (IngressSecurityRuleSourceTypeEnum, bool) { + enum, ok := mappingIngressSecurityRuleSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go new file mode 100644 index 0000000000..e1aa600158 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance.go @@ -0,0 +1,488 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Instance A compute host. The image used to launch the instance determines its operating system and other +// software. The shape specified during the launch process determines the number of CPUs and memory +// allocated to the instance. For more information, see +// Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type Instance struct { + + // The availability domain the instance is running in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the instance. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the instance. + Id *string `mandatory:"true" json:"id"` + + // The current state of the instance. + LifecycleState InstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The region that contains the availability domain the instance is running in. + // For the us-phoenix-1 and us-ashburn-1 regions, `phx` and `iad` are returned, respectively. + // For all other regions, the full region name is returned. + // Examples: `phx`, `eu-frankfurt-1` + Region *string `mandatory:"true" json:"region"` + + // The shape of the instance. The shape determines the number of CPUs and the amount of memory + // allocated to the instance. You can enumerate all available shapes by calling + // ListShapes. + Shape *string `mandatory:"true" json:"shape"` + + // The date and time the instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID of the compute capacity reservation this instance is launched under. + // When this field contains an empty string or is null, the instance is not currently in a capacity reservation. + // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). + CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + + // The OCID of dedicated VM host. + DedicatedVmHostId *string `mandatory:"false" json:"dedicatedVmHostId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Additional metadata key/value pairs that you provide. They serve the same purpose and functionality + // as fields in the `metadata` object. + // They are distinguished from `metadata` fields in that these can be nested JSON objects (whereas `metadata` + // fields are string/string maps only). + ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` + + // The name of the fault domain the instance is running in. + // A fault domain is a grouping of hardware and infrastructure within an availability domain. + // Each availability domain contains three fault domains. Fault domains let you distribute your + // instances so that they are not on the same physical hardware within a single availability domain. + // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect + // instances in other fault domains. + // If you do not specify the fault domain, the system selects one for you. + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Deprecated. Use `sourceDetails` instead. + ImageId *string `mandatory:"false" json:"imageId"` + + // When a bare metal or virtual machine + // instance boots, the iPXE firmware that runs on the instance is + // configured to run an iPXE script to continue the boot process. + // If you want more control over the boot process, you can provide + // your own custom iPXE script that will run when the instance boots. + // Be aware that the same iPXE script will run + // every time an instance boots, not only after the initial + // LaunchInstance call. + // The default iPXE script connects to the instance's local boot + // volume over iSCSI and performs a network boot. If you use a custom iPXE + // script and want to network-boot from the instance's local boot volume + // over iSCSI the same way as the default iPXE script, use the + // following iSCSI IP address: 169.254.0.2, and boot volume IQN: + // iqn.2015-02.oracle.boot. + // If your instance boot volume type is paravirtualized, + // the boot volume is attached to the instance through virtio-scsi and no iPXE script is used. + // If your instance boot volume type is paravirtualized + // and you use custom iPXE to network boot into your instance, + // the primary boot volume is attached as a data volume through virtio-scsi drive. + // For more information about the Bring Your Own Image feature of + // Oracle Cloud Infrastructure, see + // Bring Your Own Image (https://docs.cloud.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm). + // For more information about iPXE, see http://ipxe.org. + IpxeScript *string `mandatory:"false" json:"ipxeScript"` + + // Specifies the configuration mode for launching virtual machine (VM) instances. The configuration modes are: + // * `NATIVE` - VM instances launch with iSCSI boot and VFIO devices. The default value for platform images. + // * `EMULATED` - VM instances launch with emulated devices, such as the E1000 network driver and emulated SCSI disk controller. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. + // * `CUSTOM` - VM instances launch with custom configuration settings specified in the `LaunchOptions` parameter. + LaunchMode InstanceLaunchModeEnum `mandatory:"false" json:"launchMode,omitempty"` + + LaunchOptions *LaunchOptions `mandatory:"false" json:"launchOptions"` + + InstanceOptions *InstanceOptions `mandatory:"false" json:"instanceOptions"` + + AvailabilityConfig *InstanceAvailabilityConfig `mandatory:"false" json:"availabilityConfig"` + + PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `mandatory:"false" json:"preemptibleInstanceConfig"` + + // Custom metadata that you provide. + Metadata map[string]string `mandatory:"false" json:"metadata"` + + ShapeConfig *InstanceShapeConfig `mandatory:"false" json:"shapeConfig"` + + SourceDetails InstanceSourceDetails `mandatory:"false" json:"sourceDetails"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + AgentConfig *InstanceAgentConfig `mandatory:"false" json:"agentConfig"` + + // The date and time the instance is expected to be stopped / started, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // After that time if instance hasn't been rebooted, Oracle will reboot the instance within 24 hours of the due time. + // Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state. + // Example: `2018-05-25T21:10:29.600Z` + TimeMaintenanceRebootDue *common.SDKTime `mandatory:"false" json:"timeMaintenanceRebootDue"` + + // The date and time the instance is scheduled to be stopped. + // After that time if instance hasn't been stopped or terminated, Oracle will stop the instance automatically. + // Regardless of how the instance was stopped, the flag will be reset to empty as soon as instance reaches Stopped state. + // Example: `2018-05-25T21:10:29.600Z` + TimeStopScheduled *common.SDKTime `mandatory:"false" json:"timeStopScheduled"` + + // The preferred maintenance action for an instance. + // * `LIVE_MIGRATE` - Run maintenance using a live migration. + // * `REBOOT` - Run maintenance using a reboot. + PreferredMaintenanceAction InstancePreferredMaintenanceActionEnum `mandatory:"false" json:"preferredMaintenanceAction,omitempty"` + + PlatformConfig PlatformConfig `mandatory:"false" json:"platformConfig"` +} + +func (m Instance) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Instance) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstanceLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingInstanceLaunchModeEnum(string(m.LaunchMode)); !ok && m.LaunchMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LaunchMode: %s. Supported values are: %s.", m.LaunchMode, strings.Join(GetInstanceLaunchModeEnumStringValues(), ","))) + } + if _, ok := GetMappingInstancePreferredMaintenanceActionEnum(string(m.PreferredMaintenanceAction)); !ok && m.PreferredMaintenanceAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreferredMaintenanceAction: %s. Supported values are: %s.", m.PreferredMaintenanceAction, strings.Join(GetInstancePreferredMaintenanceActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *Instance) UnmarshalJSON(data []byte) (e error) { + model := struct { + CapacityReservationId *string `json:"capacityReservationId"` + DedicatedVmHostId *string `json:"dedicatedVmHostId"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + FaultDomain *string `json:"faultDomain"` + FreeformTags map[string]string `json:"freeformTags"` + ImageId *string `json:"imageId"` + IpxeScript *string `json:"ipxeScript"` + LaunchMode InstanceLaunchModeEnum `json:"launchMode"` + LaunchOptions *LaunchOptions `json:"launchOptions"` + InstanceOptions *InstanceOptions `json:"instanceOptions"` + AvailabilityConfig *InstanceAvailabilityConfig `json:"availabilityConfig"` + PreemptibleInstanceConfig *PreemptibleInstanceConfigDetails `json:"preemptibleInstanceConfig"` + Metadata map[string]string `json:"metadata"` + ShapeConfig *InstanceShapeConfig `json:"shapeConfig"` + SourceDetails instancesourcedetails `json:"sourceDetails"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + AgentConfig *InstanceAgentConfig `json:"agentConfig"` + TimeMaintenanceRebootDue *common.SDKTime `json:"timeMaintenanceRebootDue"` + TimeStopScheduled *common.SDKTime `json:"timeStopScheduled"` + PreferredMaintenanceAction InstancePreferredMaintenanceActionEnum `json:"preferredMaintenanceAction"` + PlatformConfig platformconfig `json:"platformConfig"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + Id *string `json:"id"` + LifecycleState InstanceLifecycleStateEnum `json:"lifecycleState"` + Region *string `json:"region"` + Shape *string `json:"shape"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.CapacityReservationId = model.CapacityReservationId + + m.DedicatedVmHostId = model.DedicatedVmHostId + + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.ExtendedMetadata = model.ExtendedMetadata + + m.FaultDomain = model.FaultDomain + + m.FreeformTags = model.FreeformTags + + m.ImageId = model.ImageId + + m.IpxeScript = model.IpxeScript + + m.LaunchMode = model.LaunchMode + + m.LaunchOptions = model.LaunchOptions + + m.InstanceOptions = model.InstanceOptions + + m.AvailabilityConfig = model.AvailabilityConfig + + m.PreemptibleInstanceConfig = model.PreemptibleInstanceConfig + + m.Metadata = model.Metadata + + m.ShapeConfig = model.ShapeConfig + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(InstanceSourceDetails) + } else { + m.SourceDetails = nil + } + + m.SystemTags = model.SystemTags + + m.AgentConfig = model.AgentConfig + + m.TimeMaintenanceRebootDue = model.TimeMaintenanceRebootDue + + m.TimeStopScheduled = model.TimeStopScheduled + + m.PreferredMaintenanceAction = model.PreferredMaintenanceAction + + nn, e = model.PlatformConfig.UnmarshalPolymorphicJSON(model.PlatformConfig.JsonData) + if e != nil { + return + } + if nn != nil { + m.PlatformConfig = nn.(PlatformConfig) + } else { + m.PlatformConfig = nil + } + + m.AvailabilityDomain = model.AvailabilityDomain + + m.CompartmentId = model.CompartmentId + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.Region = model.Region + + m.Shape = model.Shape + + m.TimeCreated = model.TimeCreated + + return +} + +// InstanceLaunchModeEnum Enum with underlying type: string +type InstanceLaunchModeEnum string + +// Set of constants representing the allowable values for InstanceLaunchModeEnum +const ( + InstanceLaunchModeNative InstanceLaunchModeEnum = "NATIVE" + InstanceLaunchModeEmulated InstanceLaunchModeEnum = "EMULATED" + InstanceLaunchModeParavirtualized InstanceLaunchModeEnum = "PARAVIRTUALIZED" + InstanceLaunchModeCustom InstanceLaunchModeEnum = "CUSTOM" +) + +var mappingInstanceLaunchModeEnum = map[string]InstanceLaunchModeEnum{ + "NATIVE": InstanceLaunchModeNative, + "EMULATED": InstanceLaunchModeEmulated, + "PARAVIRTUALIZED": InstanceLaunchModeParavirtualized, + "CUSTOM": InstanceLaunchModeCustom, +} + +var mappingInstanceLaunchModeEnumLowerCase = map[string]InstanceLaunchModeEnum{ + "native": InstanceLaunchModeNative, + "emulated": InstanceLaunchModeEmulated, + "paravirtualized": InstanceLaunchModeParavirtualized, + "custom": InstanceLaunchModeCustom, +} + +// GetInstanceLaunchModeEnumValues Enumerates the set of values for InstanceLaunchModeEnum +func GetInstanceLaunchModeEnumValues() []InstanceLaunchModeEnum { + values := make([]InstanceLaunchModeEnum, 0) + for _, v := range mappingInstanceLaunchModeEnum { + values = append(values, v) + } + return values +} + +// GetInstanceLaunchModeEnumStringValues Enumerates the set of values in String for InstanceLaunchModeEnum +func GetInstanceLaunchModeEnumStringValues() []string { + return []string{ + "NATIVE", + "EMULATED", + "PARAVIRTUALIZED", + "CUSTOM", + } +} + +// GetMappingInstanceLaunchModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceLaunchModeEnum(val string) (InstanceLaunchModeEnum, bool) { + enum, ok := mappingInstanceLaunchModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InstanceLifecycleStateEnum Enum with underlying type: string +type InstanceLifecycleStateEnum string + +// Set of constants representing the allowable values for InstanceLifecycleStateEnum +const ( + InstanceLifecycleStateMoving InstanceLifecycleStateEnum = "MOVING" + InstanceLifecycleStateProvisioning InstanceLifecycleStateEnum = "PROVISIONING" + InstanceLifecycleStateRunning InstanceLifecycleStateEnum = "RUNNING" + InstanceLifecycleStateStarting InstanceLifecycleStateEnum = "STARTING" + InstanceLifecycleStateStopping InstanceLifecycleStateEnum = "STOPPING" + InstanceLifecycleStateStopped InstanceLifecycleStateEnum = "STOPPED" + InstanceLifecycleStateSuspending InstanceLifecycleStateEnum = "SUSPENDING" + InstanceLifecycleStateSuspended InstanceLifecycleStateEnum = "SUSPENDED" + InstanceLifecycleStateCreatingImage InstanceLifecycleStateEnum = "CREATING_IMAGE" + InstanceLifecycleStateTerminating InstanceLifecycleStateEnum = "TERMINATING" + InstanceLifecycleStateTerminated InstanceLifecycleStateEnum = "TERMINATED" +) + +var mappingInstanceLifecycleStateEnum = map[string]InstanceLifecycleStateEnum{ + "MOVING": InstanceLifecycleStateMoving, + "PROVISIONING": InstanceLifecycleStateProvisioning, + "RUNNING": InstanceLifecycleStateRunning, + "STARTING": InstanceLifecycleStateStarting, + "STOPPING": InstanceLifecycleStateStopping, + "STOPPED": InstanceLifecycleStateStopped, + "SUSPENDING": InstanceLifecycleStateSuspending, + "SUSPENDED": InstanceLifecycleStateSuspended, + "CREATING_IMAGE": InstanceLifecycleStateCreatingImage, + "TERMINATING": InstanceLifecycleStateTerminating, + "TERMINATED": InstanceLifecycleStateTerminated, +} + +var mappingInstanceLifecycleStateEnumLowerCase = map[string]InstanceLifecycleStateEnum{ + "moving": InstanceLifecycleStateMoving, + "provisioning": InstanceLifecycleStateProvisioning, + "running": InstanceLifecycleStateRunning, + "starting": InstanceLifecycleStateStarting, + "stopping": InstanceLifecycleStateStopping, + "stopped": InstanceLifecycleStateStopped, + "suspending": InstanceLifecycleStateSuspending, + "suspended": InstanceLifecycleStateSuspended, + "creating_image": InstanceLifecycleStateCreatingImage, + "terminating": InstanceLifecycleStateTerminating, + "terminated": InstanceLifecycleStateTerminated, +} + +// GetInstanceLifecycleStateEnumValues Enumerates the set of values for InstanceLifecycleStateEnum +func GetInstanceLifecycleStateEnumValues() []InstanceLifecycleStateEnum { + values := make([]InstanceLifecycleStateEnum, 0) + for _, v := range mappingInstanceLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstanceLifecycleStateEnumStringValues Enumerates the set of values in String for InstanceLifecycleStateEnum +func GetInstanceLifecycleStateEnumStringValues() []string { + return []string{ + "MOVING", + "PROVISIONING", + "RUNNING", + "STARTING", + "STOPPING", + "STOPPED", + "SUSPENDING", + "SUSPENDED", + "CREATING_IMAGE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInstanceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceLifecycleStateEnum(val string) (InstanceLifecycleStateEnum, bool) { + enum, ok := mappingInstanceLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InstancePreferredMaintenanceActionEnum Enum with underlying type: string +type InstancePreferredMaintenanceActionEnum string + +// Set of constants representing the allowable values for InstancePreferredMaintenanceActionEnum +const ( + InstancePreferredMaintenanceActionLiveMigrate InstancePreferredMaintenanceActionEnum = "LIVE_MIGRATE" + InstancePreferredMaintenanceActionReboot InstancePreferredMaintenanceActionEnum = "REBOOT" +) + +var mappingInstancePreferredMaintenanceActionEnum = map[string]InstancePreferredMaintenanceActionEnum{ + "LIVE_MIGRATE": InstancePreferredMaintenanceActionLiveMigrate, + "REBOOT": InstancePreferredMaintenanceActionReboot, +} + +var mappingInstancePreferredMaintenanceActionEnumLowerCase = map[string]InstancePreferredMaintenanceActionEnum{ + "live_migrate": InstancePreferredMaintenanceActionLiveMigrate, + "reboot": InstancePreferredMaintenanceActionReboot, +} + +// GetInstancePreferredMaintenanceActionEnumValues Enumerates the set of values for InstancePreferredMaintenanceActionEnum +func GetInstancePreferredMaintenanceActionEnumValues() []InstancePreferredMaintenanceActionEnum { + values := make([]InstancePreferredMaintenanceActionEnum, 0) + for _, v := range mappingInstancePreferredMaintenanceActionEnum { + values = append(values, v) + } + return values +} + +// GetInstancePreferredMaintenanceActionEnumStringValues Enumerates the set of values in String for InstancePreferredMaintenanceActionEnum +func GetInstancePreferredMaintenanceActionEnumStringValues() []string { + return []string{ + "LIVE_MIGRATE", + "REBOOT", + } +} + +// GetMappingInstancePreferredMaintenanceActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePreferredMaintenanceActionEnum(val string) (InstancePreferredMaintenanceActionEnum, bool) { + enum, ok := mappingInstancePreferredMaintenanceActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_action_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_action_request_response.go new file mode 100644 index 0000000000..6ae0223888 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_action_request_response.go @@ -0,0 +1,189 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// InstanceActionRequest wrapper for the InstanceAction operation +type InstanceActionRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // The action to perform on the instance. + Action InstanceActionActionEnum `mandatory:"true" contributesTo:"query" name:"action" omitEmpty:"true"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Instance Power Action details + InstancePowerActionDetails `contributesTo:"body"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request InstanceActionRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request InstanceActionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request InstanceActionRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request InstanceActionRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request InstanceActionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceActionActionEnum(string(request.Action)); !ok && request.Action != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Action: %s. Supported values are: %s.", request.Action, strings.Join(GetInstanceActionActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceActionResponse wrapper for the InstanceAction operation +type InstanceActionResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Instance instance + Instance `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response InstanceActionResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response InstanceActionResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// InstanceActionActionEnum Enum with underlying type: string +type InstanceActionActionEnum string + +// Set of constants representing the allowable values for InstanceActionActionEnum +const ( + InstanceActionActionStop InstanceActionActionEnum = "STOP" + InstanceActionActionStart InstanceActionActionEnum = "START" + InstanceActionActionSoftreset InstanceActionActionEnum = "SOFTRESET" + InstanceActionActionReset InstanceActionActionEnum = "RESET" + InstanceActionActionSoftstop InstanceActionActionEnum = "SOFTSTOP" + InstanceActionActionValidatelivemigrate InstanceActionActionEnum = "VALIDATELIVEMIGRATE" + InstanceActionActionSenddiagnosticinterrupt InstanceActionActionEnum = "SENDDIAGNOSTICINTERRUPT" + InstanceActionActionExtendscheduledstop InstanceActionActionEnum = "EXTENDSCHEDULEDSTOP" + InstanceActionActionDiagnosticreboot InstanceActionActionEnum = "DIAGNOSTICREBOOT" + InstanceActionActionSuspend InstanceActionActionEnum = "SUSPEND" + InstanceActionActionRebootmigrate InstanceActionActionEnum = "REBOOTMIGRATE" +) + +var mappingInstanceActionActionEnum = map[string]InstanceActionActionEnum{ + "STOP": InstanceActionActionStop, + "START": InstanceActionActionStart, + "SOFTRESET": InstanceActionActionSoftreset, + "RESET": InstanceActionActionReset, + "SOFTSTOP": InstanceActionActionSoftstop, + "VALIDATELIVEMIGRATE": InstanceActionActionValidatelivemigrate, + "SENDDIAGNOSTICINTERRUPT": InstanceActionActionSenddiagnosticinterrupt, + "EXTENDSCHEDULEDSTOP": InstanceActionActionExtendscheduledstop, + "DIAGNOSTICREBOOT": InstanceActionActionDiagnosticreboot, + "SUSPEND": InstanceActionActionSuspend, + "REBOOTMIGRATE": InstanceActionActionRebootmigrate, +} + +var mappingInstanceActionActionEnumLowerCase = map[string]InstanceActionActionEnum{ + "stop": InstanceActionActionStop, + "start": InstanceActionActionStart, + "softreset": InstanceActionActionSoftreset, + "reset": InstanceActionActionReset, + "softstop": InstanceActionActionSoftstop, + "validatelivemigrate": InstanceActionActionValidatelivemigrate, + "senddiagnosticinterrupt": InstanceActionActionSenddiagnosticinterrupt, + "extendscheduledstop": InstanceActionActionExtendscheduledstop, + "diagnosticreboot": InstanceActionActionDiagnosticreboot, + "suspend": InstanceActionActionSuspend, + "rebootmigrate": InstanceActionActionRebootmigrate, +} + +// GetInstanceActionActionEnumValues Enumerates the set of values for InstanceActionActionEnum +func GetInstanceActionActionEnumValues() []InstanceActionActionEnum { + values := make([]InstanceActionActionEnum, 0) + for _, v := range mappingInstanceActionActionEnum { + values = append(values, v) + } + return values +} + +// GetInstanceActionActionEnumStringValues Enumerates the set of values in String for InstanceActionActionEnum +func GetInstanceActionActionEnumStringValues() []string { + return []string{ + "STOP", + "START", + "SOFTRESET", + "RESET", + "SOFTSTOP", + "VALIDATELIVEMIGRATE", + "SENDDIAGNOSTICINTERRUPT", + "EXTENDSCHEDULEDSTOP", + "DIAGNOSTICREBOOT", + "SUSPEND", + "REBOOTMIGRATE", + } +} + +// GetMappingInstanceActionActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceActionActionEnum(val string) (InstanceActionActionEnum, bool) { + enum, ok := mappingInstanceActionActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_config.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go index 3952fee58c..4e0e7b4ace 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_agent_config.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_config.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InstanceAgentConfig Configuration options for the Oracle Cloud Agent software running on the instance. @@ -58,3 +60,15 @@ type InstanceAgentConfig struct { func (m InstanceAgentConfig) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceAgentConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_features.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_features.go new file mode 100644 index 0000000000..013bd9983a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_features.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceAgentFeatures Oracle Cloud Agent features supported on the image. +type InstanceAgentFeatures struct { + + // This attribute is not used. + IsMonitoringSupported *bool `mandatory:"false" json:"isMonitoringSupported"` + + // This attribute is not used. + IsManagementSupported *bool `mandatory:"false" json:"isManagementSupported"` +} + +func (m InstanceAgentFeatures) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceAgentFeatures) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_plugin_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_plugin_config_details.go new file mode 100644 index 0000000000..71e1e7018e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_agent_plugin_config_details.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceAgentPluginConfigDetails The configuration of plugins associated with this instance. +type InstanceAgentPluginConfigDetails struct { + + // The plugin name. To get a list of available plugins, use the + // ListInstanceagentAvailablePlugins + // operation in the Oracle Cloud Agent API. For more information about the available plugins, see + // Managing Plugins with Oracle Cloud Agent (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/manage-plugins.htm). + Name *string `mandatory:"true" json:"name"` + + // Whether the plugin should be enabled or disabled. + // To enable the monitoring and management plugins, the `isMonitoringDisabled` and + // `isManagementDisabled` attributes must also be set to false. + DesiredState InstanceAgentPluginConfigDetailsDesiredStateEnum `mandatory:"true" json:"desiredState"` +} + +func (m InstanceAgentPluginConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceAgentPluginConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceAgentPluginConfigDetailsDesiredStateEnum(string(m.DesiredState)); !ok && m.DesiredState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DesiredState: %s. Supported values are: %s.", m.DesiredState, strings.Join(GetInstanceAgentPluginConfigDetailsDesiredStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceAgentPluginConfigDetailsDesiredStateEnum Enum with underlying type: string +type InstanceAgentPluginConfigDetailsDesiredStateEnum string + +// Set of constants representing the allowable values for InstanceAgentPluginConfigDetailsDesiredStateEnum +const ( + InstanceAgentPluginConfigDetailsDesiredStateEnabled InstanceAgentPluginConfigDetailsDesiredStateEnum = "ENABLED" + InstanceAgentPluginConfigDetailsDesiredStateDisabled InstanceAgentPluginConfigDetailsDesiredStateEnum = "DISABLED" +) + +var mappingInstanceAgentPluginConfigDetailsDesiredStateEnum = map[string]InstanceAgentPluginConfigDetailsDesiredStateEnum{ + "ENABLED": InstanceAgentPluginConfigDetailsDesiredStateEnabled, + "DISABLED": InstanceAgentPluginConfigDetailsDesiredStateDisabled, +} + +var mappingInstanceAgentPluginConfigDetailsDesiredStateEnumLowerCase = map[string]InstanceAgentPluginConfigDetailsDesiredStateEnum{ + "enabled": InstanceAgentPluginConfigDetailsDesiredStateEnabled, + "disabled": InstanceAgentPluginConfigDetailsDesiredStateDisabled, +} + +// GetInstanceAgentPluginConfigDetailsDesiredStateEnumValues Enumerates the set of values for InstanceAgentPluginConfigDetailsDesiredStateEnum +func GetInstanceAgentPluginConfigDetailsDesiredStateEnumValues() []InstanceAgentPluginConfigDetailsDesiredStateEnum { + values := make([]InstanceAgentPluginConfigDetailsDesiredStateEnum, 0) + for _, v := range mappingInstanceAgentPluginConfigDetailsDesiredStateEnum { + values = append(values, v) + } + return values +} + +// GetInstanceAgentPluginConfigDetailsDesiredStateEnumStringValues Enumerates the set of values in String for InstanceAgentPluginConfigDetailsDesiredStateEnum +func GetInstanceAgentPluginConfigDetailsDesiredStateEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingInstanceAgentPluginConfigDetailsDesiredStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceAgentPluginConfigDetailsDesiredStateEnum(val string) (InstanceAgentPluginConfigDetailsDesiredStateEnum, bool) { + enum, ok := mappingInstanceAgentPluginConfigDetailsDesiredStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_availability_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_availability_config.go new file mode 100644 index 0000000000..9d0f0f05bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_availability_config.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceAvailabilityConfig Options for defining the availabiity of a VM instance after a maintenance event that impacts the underlying hardware. +type InstanceAvailabilityConfig struct { + + // Whether to live migrate supported VM instances to a healthy physical VM host without + // disrupting running instances during infrastructure maintenance events. If null, Oracle + // chooses the best option for migrating the VM during infrastructure maintenance events. + IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` + + // The lifecycle state for an instance when it is recovered after infrastructure maintenance. + // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. + // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. + // * `STOP_INSTANCE` - The instance is recovered in the stopped state. + RecoveryAction InstanceAvailabilityConfigRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` +} + +func (m InstanceAvailabilityConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceAvailabilityConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceAvailabilityConfigRecoveryActionEnum(string(m.RecoveryAction)); !ok && m.RecoveryAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecoveryAction: %s. Supported values are: %s.", m.RecoveryAction, strings.Join(GetInstanceAvailabilityConfigRecoveryActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceAvailabilityConfigRecoveryActionEnum Enum with underlying type: string +type InstanceAvailabilityConfigRecoveryActionEnum string + +// Set of constants representing the allowable values for InstanceAvailabilityConfigRecoveryActionEnum +const ( + InstanceAvailabilityConfigRecoveryActionRestoreInstance InstanceAvailabilityConfigRecoveryActionEnum = "RESTORE_INSTANCE" + InstanceAvailabilityConfigRecoveryActionStopInstance InstanceAvailabilityConfigRecoveryActionEnum = "STOP_INSTANCE" +) + +var mappingInstanceAvailabilityConfigRecoveryActionEnum = map[string]InstanceAvailabilityConfigRecoveryActionEnum{ + "RESTORE_INSTANCE": InstanceAvailabilityConfigRecoveryActionRestoreInstance, + "STOP_INSTANCE": InstanceAvailabilityConfigRecoveryActionStopInstance, +} + +var mappingInstanceAvailabilityConfigRecoveryActionEnumLowerCase = map[string]InstanceAvailabilityConfigRecoveryActionEnum{ + "restore_instance": InstanceAvailabilityConfigRecoveryActionRestoreInstance, + "stop_instance": InstanceAvailabilityConfigRecoveryActionStopInstance, +} + +// GetInstanceAvailabilityConfigRecoveryActionEnumValues Enumerates the set of values for InstanceAvailabilityConfigRecoveryActionEnum +func GetInstanceAvailabilityConfigRecoveryActionEnumValues() []InstanceAvailabilityConfigRecoveryActionEnum { + values := make([]InstanceAvailabilityConfigRecoveryActionEnum, 0) + for _, v := range mappingInstanceAvailabilityConfigRecoveryActionEnum { + values = append(values, v) + } + return values +} + +// GetInstanceAvailabilityConfigRecoveryActionEnumStringValues Enumerates the set of values in String for InstanceAvailabilityConfigRecoveryActionEnum +func GetInstanceAvailabilityConfigRecoveryActionEnumStringValues() []string { + return []string{ + "RESTORE_INSTANCE", + "STOP_INSTANCE", + } +} + +// GetMappingInstanceAvailabilityConfigRecoveryActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceAvailabilityConfigRecoveryActionEnum(val string) (InstanceAvailabilityConfigRecoveryActionEnum, bool) { + enum, ok := mappingInstanceAvailabilityConfigRecoveryActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go index 7a1eb481a5..9d45260c00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InstanceConfiguration An instance configuration is a template that defines the settings to use when creating Compute instances. @@ -60,6 +62,18 @@ func (m InstanceConfiguration) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *InstanceConfiguration) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..105a426333 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_milan_bm_launch_instance_platform_config.go @@ -0,0 +1,171 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with one of the following shapes: BM.Standard.E4.128 +// or BM.DenseIO.E4.128 (the AMD Milan platform). +type InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig + }{ + "AMD_MILAN_BM", + (MarshalTypeInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" + InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" + InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS0": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "NPS1": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "NPS4": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +var mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps0": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "nps1": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "nps4": InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +// GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingInstanceConfigurationAmdMilanBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_gpu_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_gpu_launch_instance_platform_config.go new file mode 100644 index 0000000000..25b394fa4b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_gpu_launch_instance_platform_config.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig The platform configuration of a bare metal GPU instance that uses the BM.GPU4.8 shape +// (the AMD Rome platform). +type InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig + }{ + "AMD_ROME_BM_GPU", + (MarshalTypeInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps0 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" + InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" + InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS0": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "NPS1": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "NPS4": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +var mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps0": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "nps1": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "nps4": InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +// GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingInstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..da8485a2ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_rome_bm_launch_instance_platform_config.go @@ -0,0 +1,171 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the BM.Standard.E3.128 shape +// (the AMD Rome platform). +type InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the Access Control Service is enabled on the instance. When enabled, + // the platform can enforce PCIe device isolation, required for VFIO device pass-through. + IsAccessControlServiceEnabled *bool `mandatory:"false" json:"isAccessControlServiceEnabled"` + + // Whether virtualization instructions are available. For example, Secure Virtual Machine for AMD shapes + // or VT-x for Intel shapes. + AreVirtualInstructionsEnabled *bool `mandatory:"false" json:"areVirtualInstructionsEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig + }{ + "AMD_ROME_BM", + (MarshalTypeInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS0" + InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" + InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4 InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS4" +) + +var mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS0": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "NPS1": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "NPS4": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +var mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps0": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps0, + "nps1": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, + "nps4": InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps4, +} + +// GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingInstanceConfigurationAmdRomeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_vm_launch_instance_platform_config.go new file mode 100644 index 0000000000..1517043e04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_amd_vm_launch_instance_platform_config.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAmdVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the AMD platform. +type InstanceConfigurationAmdVmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationAmdVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationAmdVmLaunchInstancePlatformConfig InstanceConfigurationAmdVmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationAmdVmLaunchInstancePlatformConfig + }{ + "AMD_VM", + (MarshalTypeInstanceConfigurationAmdVmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_vnic_details.go new file mode 100644 index 0000000000..1ff991ffc5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_vnic_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAttachVnicDetails The representation of InstanceConfigurationAttachVnicDetails +type InstanceConfigurationAttachVnicDetails struct { + CreateVnicDetails *InstanceConfigurationCreateVnicDetails `mandatory:"false" json:"createVnicDetails"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Which physical network interface card (NIC) the VNIC will use. Defaults to 0. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a secondary VNIC to one of these instances, you can specify which NIC + // the VNIC will use. For more information, see + // Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). + NicIndex *int `mandatory:"false" json:"nicIndex"` +} + +func (m InstanceConfigurationAttachVnicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationAttachVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_volume_details.go new file mode 100644 index 0000000000..01f3e97d6c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_attach_volume_details.go @@ -0,0 +1,143 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAttachVolumeDetails Volume attachmentDetails. Please see AttachVolumeDetails +type InstanceConfigurationAttachVolumeDetails interface { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + GetDisplayName() *string + + // Whether the attachment should be created in read-only mode. + GetIsReadOnly() *bool + + // The device name. + GetDevice() *string + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + GetIsShareable() *bool + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + GetImageVolumeIndex() *int +} + +type instanceconfigurationattachvolumedetails struct { + JsonData []byte + DisplayName *string `mandatory:"false" json:"displayName"` + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + Device *string `mandatory:"false" json:"device"` + IsShareable *bool `mandatory:"false" json:"isShareable"` + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationattachvolumedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationattachvolumedetails instanceconfigurationattachvolumedetails + s := struct { + Model Unmarshalerinstanceconfigurationattachvolumedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.DisplayName = s.Model.DisplayName + m.IsReadOnly = s.Model.IsReadOnly + m.Device = s.Model.Device + m.IsShareable = s.Model.IsShareable + m.ImageVolumeIndex = s.Model.ImageVolumeIndex + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationattachvolumedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "iscsi": + mm := InstanceConfigurationIscsiAttachVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "paravirtualized": + mm := InstanceConfigurationParavirtualizedAttachVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceConfigurationAttachVolumeDetails: %s.", m.Type) + return *m, nil + } +} + +//GetDisplayName returns DisplayName +func (m instanceconfigurationattachvolumedetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetIsReadOnly returns IsReadOnly +func (m instanceconfigurationattachvolumedetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetDevice returns Device +func (m instanceconfigurationattachvolumedetails) GetDevice() *string { + return m.Device +} + +//GetIsShareable returns IsShareable +func (m instanceconfigurationattachvolumedetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m instanceconfigurationattachvolumedetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +func (m instanceconfigurationattachvolumedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationattachvolumedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_autotune_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_autotune_policy.go new file mode 100644 index 0000000000..46a72dd07f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_autotune_policy.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAutotunePolicy An autotune policy automatically tunes the volume's performace based on the type of the policy. +type InstanceConfigurationAutotunePolicy interface { +} + +type instanceconfigurationautotunepolicy struct { + JsonData []byte + AutotuneType string `json:"autotuneType"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationautotunepolicy) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationautotunepolicy instanceconfigurationautotunepolicy + s := struct { + Model Unmarshalerinstanceconfigurationautotunepolicy + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.AutotuneType = s.Model.AutotuneType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationautotunepolicy) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.AutotuneType { + case "PERFORMANCE_BASED": + mm := InstanceConfigurationPerformanceBasedAutotunePolicy{} + err = json.Unmarshal(data, &mm) + return mm, err + case "DETACHED_VOLUME": + mm := InstanceConfigurationDetachedVolumeAutotunePolicy{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceConfigurationAutotunePolicy: %s.", m.AutotuneType) + return *m, nil + } +} + +func (m instanceconfigurationautotunepolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationautotunepolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceConfigurationAutotunePolicyAutotuneTypeEnum Enum with underlying type: string +type InstanceConfigurationAutotunePolicyAutotuneTypeEnum string + +// Set of constants representing the allowable values for InstanceConfigurationAutotunePolicyAutotuneTypeEnum +const ( + InstanceConfigurationAutotunePolicyAutotuneTypeDetachedVolume InstanceConfigurationAutotunePolicyAutotuneTypeEnum = "DETACHED_VOLUME" + InstanceConfigurationAutotunePolicyAutotuneTypePerformanceBased InstanceConfigurationAutotunePolicyAutotuneTypeEnum = "PERFORMANCE_BASED" +) + +var mappingInstanceConfigurationAutotunePolicyAutotuneTypeEnum = map[string]InstanceConfigurationAutotunePolicyAutotuneTypeEnum{ + "DETACHED_VOLUME": InstanceConfigurationAutotunePolicyAutotuneTypeDetachedVolume, + "PERFORMANCE_BASED": InstanceConfigurationAutotunePolicyAutotuneTypePerformanceBased, +} + +var mappingInstanceConfigurationAutotunePolicyAutotuneTypeEnumLowerCase = map[string]InstanceConfigurationAutotunePolicyAutotuneTypeEnum{ + "detached_volume": InstanceConfigurationAutotunePolicyAutotuneTypeDetachedVolume, + "performance_based": InstanceConfigurationAutotunePolicyAutotuneTypePerformanceBased, +} + +// GetInstanceConfigurationAutotunePolicyAutotuneTypeEnumValues Enumerates the set of values for InstanceConfigurationAutotunePolicyAutotuneTypeEnum +func GetInstanceConfigurationAutotunePolicyAutotuneTypeEnumValues() []InstanceConfigurationAutotunePolicyAutotuneTypeEnum { + values := make([]InstanceConfigurationAutotunePolicyAutotuneTypeEnum, 0) + for _, v := range mappingInstanceConfigurationAutotunePolicyAutotuneTypeEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationAutotunePolicyAutotuneTypeEnumStringValues Enumerates the set of values in String for InstanceConfigurationAutotunePolicyAutotuneTypeEnum +func GetInstanceConfigurationAutotunePolicyAutotuneTypeEnumStringValues() []string { + return []string{ + "DETACHED_VOLUME", + "PERFORMANCE_BASED", + } +} + +// GetMappingInstanceConfigurationAutotunePolicyAutotuneTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationAutotunePolicyAutotuneTypeEnum(val string) (InstanceConfigurationAutotunePolicyAutotuneTypeEnum, bool) { + enum, ok := mappingInstanceConfigurationAutotunePolicyAutotuneTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_availability_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_availability_config.go new file mode 100644 index 0000000000..e0080bd0b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_availability_config.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationAvailabilityConfig Options for defining the availabiity of a VM instance after a maintenance event that impacts the underlying hardware. +type InstanceConfigurationAvailabilityConfig struct { + + // Whether to live migrate supported VM instances to a healthy physical VM host without + // disrupting running instances during infrastructure maintenance events. If null, Oracle + // chooses the best option for migrating the VM during infrastructure maintenance events. + IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` + + // The lifecycle state for an instance when it is recovered after infrastructure maintenance. + // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. + // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. + // * `STOP_INSTANCE` - The instance is recovered in the stopped state. + RecoveryAction InstanceConfigurationAvailabilityConfigRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` +} + +func (m InstanceConfigurationAvailabilityConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationAvailabilityConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceConfigurationAvailabilityConfigRecoveryActionEnum(string(m.RecoveryAction)); !ok && m.RecoveryAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecoveryAction: %s. Supported values are: %s.", m.RecoveryAction, strings.Join(GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceConfigurationAvailabilityConfigRecoveryActionEnum Enum with underlying type: string +type InstanceConfigurationAvailabilityConfigRecoveryActionEnum string + +// Set of constants representing the allowable values for InstanceConfigurationAvailabilityConfigRecoveryActionEnum +const ( + InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance InstanceConfigurationAvailabilityConfigRecoveryActionEnum = "RESTORE_INSTANCE" + InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance InstanceConfigurationAvailabilityConfigRecoveryActionEnum = "STOP_INSTANCE" +) + +var mappingInstanceConfigurationAvailabilityConfigRecoveryActionEnum = map[string]InstanceConfigurationAvailabilityConfigRecoveryActionEnum{ + "RESTORE_INSTANCE": InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance, + "STOP_INSTANCE": InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance, +} + +var mappingInstanceConfigurationAvailabilityConfigRecoveryActionEnumLowerCase = map[string]InstanceConfigurationAvailabilityConfigRecoveryActionEnum{ + "restore_instance": InstanceConfigurationAvailabilityConfigRecoveryActionRestoreInstance, + "stop_instance": InstanceConfigurationAvailabilityConfigRecoveryActionStopInstance, +} + +// GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumValues Enumerates the set of values for InstanceConfigurationAvailabilityConfigRecoveryActionEnum +func GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumValues() []InstanceConfigurationAvailabilityConfigRecoveryActionEnum { + values := make([]InstanceConfigurationAvailabilityConfigRecoveryActionEnum, 0) + for _, v := range mappingInstanceConfigurationAvailabilityConfigRecoveryActionEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumStringValues Enumerates the set of values in String for InstanceConfigurationAvailabilityConfigRecoveryActionEnum +func GetInstanceConfigurationAvailabilityConfigRecoveryActionEnumStringValues() []string { + return []string{ + "RESTORE_INSTANCE", + "STOP_INSTANCE", + } +} + +// GetMappingInstanceConfigurationAvailabilityConfigRecoveryActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationAvailabilityConfigRecoveryActionEnum(val string) (InstanceConfigurationAvailabilityConfigRecoveryActionEnum, bool) { + enum, ok := mappingInstanceConfigurationAvailabilityConfigRecoveryActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_details.go new file mode 100644 index 0000000000..fed539bad2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_details.go @@ -0,0 +1,77 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationBlockVolumeDetails Create new block volumes or attach to an existing volume. Specify either createDetails or volumeId. +type InstanceConfigurationBlockVolumeDetails struct { + AttachDetails InstanceConfigurationAttachVolumeDetails `mandatory:"false" json:"attachDetails"` + + CreateDetails *InstanceConfigurationCreateVolumeDetails `mandatory:"false" json:"createDetails"` + + // The OCID of the volume. + VolumeId *string `mandatory:"false" json:"volumeId"` +} + +func (m InstanceConfigurationBlockVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationBlockVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *InstanceConfigurationBlockVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + AttachDetails instanceconfigurationattachvolumedetails `json:"attachDetails"` + CreateDetails *InstanceConfigurationCreateVolumeDetails `json:"createDetails"` + VolumeId *string `json:"volumeId"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + nn, e = model.AttachDetails.UnmarshalPolymorphicJSON(model.AttachDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.AttachDetails = nn.(InstanceConfigurationAttachVolumeDetails) + } else { + m.AttachDetails = nil + } + + m.CreateDetails = model.CreateDetails + + m.VolumeId = model.VolumeId + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_replica_details.go new file mode 100644 index 0000000000..78506e42b4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_block_volume_replica_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationBlockVolumeReplicaDetails Contains the details for the block volume replica +type InstanceConfigurationBlockVolumeReplicaDetails struct { + + // The availability domain of the block volume replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The display name of the block volume replica. You may optionally specify a *display name* for + // the block volume replica, otherwise a default is provided. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m InstanceConfigurationBlockVolumeReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationBlockVolumeReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_vnic_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go index 7a0597f7ac..7a0c32c932 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_create_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_vnic_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InstanceConfigurationCreateVnicDetails Contains the properties of the VNIC for an instance configuration. See CreateVnicDetails @@ -68,3 +70,15 @@ type InstanceConfigurationCreateVnicDetails struct { func (m InstanceConfigurationCreateVnicDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationCreateVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_volume_details.go new file mode 100644 index 0000000000..ea94994ad7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_create_volume_details.go @@ -0,0 +1,182 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationCreateVolumeDetails Creates a new block volume. Please see CreateVolumeDetails +type InstanceConfigurationCreateVolumeDetails struct { + + // The availability domain of the volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // If provided, specifies the ID of the volume backup policy to assign to the newly + // created volume. If omitted, no policy will be assigned. + BackupPolicyId *string `mandatory:"false" json:"backupPolicyId"` + + // The OCID of the compartment that contains the volume. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Specifies whether the auto-tune performance is enabled for this boot volume. This field is deprecated. + // Use the `InstanceConfigurationDetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The list of block volume replicas to be enabled for this volume + // in the specified destination availability domains. + BlockVolumeReplicas []InstanceConfigurationBlockVolumeReplicaDetails `mandatory:"false" json:"blockVolumeReplicas"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID of the Vault service key to assign as the master encryption key + // for the volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `0`: Represents Lower Cost option. + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // The size of the volume in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + SourceDetails InstanceConfigurationVolumeSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The list of autotune policies enabled for this volume. + AutotunePolicies []InstanceConfigurationAutotunePolicy `mandatory:"false" json:"autotunePolicies"` + + // Indicates whether the volume is AD-local or Regional. Regional volume isn't restricted to any + // availability domain unlike AD-local volumes. This is an optional field. The default behavior is to create + // AD_LOCAL volumes. + VolumeScope VolumeVolumeScopeEnum `mandatory:"false" json:"volumeScope,omitempty"` +} + +func (m InstanceConfigurationCreateVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationCreateVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVolumeVolumeScopeEnum(string(m.VolumeScope)); !ok && m.VolumeScope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VolumeScope: %s. Supported values are: %s.", m.VolumeScope, strings.Join(GetVolumeVolumeScopeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *InstanceConfigurationCreateVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + AvailabilityDomain *string `json:"availabilityDomain"` + BackupPolicyId *string `json:"backupPolicyId"` + CompartmentId *string `json:"compartmentId"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + BlockVolumeReplicas []InstanceConfigurationBlockVolumeReplicaDetails `json:"blockVolumeReplicas"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + KmsKeyId *string `json:"kmsKeyId"` + VpusPerGB *int64 `json:"vpusPerGB"` + SizeInGBs *int64 `json:"sizeInGBs"` + SourceDetails instanceconfigurationvolumesourcedetails `json:"sourceDetails"` + AutotunePolicies []instanceconfigurationautotunepolicy `json:"autotunePolicies"` + VolumeScope VolumeVolumeScopeEnum `json:"volumeScope"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.AvailabilityDomain = model.AvailabilityDomain + + m.BackupPolicyId = model.BackupPolicyId + + m.CompartmentId = model.CompartmentId + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.BlockVolumeReplicas = make([]InstanceConfigurationBlockVolumeReplicaDetails, len(model.BlockVolumeReplicas)) + for i, n := range model.BlockVolumeReplicas { + m.BlockVolumeReplicas[i] = n + } + + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.KmsKeyId = model.KmsKeyId + + m.VpusPerGB = model.VpusPerGB + + m.SizeInGBs = model.SizeInGBs + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(InstanceConfigurationVolumeSourceDetails) + } else { + m.SourceDetails = nil + } + + m.AutotunePolicies = make([]InstanceConfigurationAutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(InstanceConfigurationAutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + m.VolumeScope = model.VolumeScope + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_detached_volume_autotune_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_detached_volume_autotune_policy.go new file mode 100644 index 0000000000..c84a62515d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_detached_volume_autotune_policy.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationDetachedVolumeAutotunePolicy Volume's performace will be tuned to the lower cost settings once detached. +type InstanceConfigurationDetachedVolumeAutotunePolicy struct { +} + +func (m InstanceConfigurationDetachedVolumeAutotunePolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationDetachedVolumeAutotunePolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationDetachedVolumeAutotunePolicy) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationDetachedVolumeAutotunePolicy InstanceConfigurationDetachedVolumeAutotunePolicy + s := struct { + DiscriminatorParam string `json:"autotuneType"` + MarshalTypeInstanceConfigurationDetachedVolumeAutotunePolicy + }{ + "DETACHED_VOLUME", + (MarshalTypeInstanceConfigurationDetachedVolumeAutotunePolicy)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_details.go new file mode 100644 index 0000000000..5b2a14fe86 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_details.go @@ -0,0 +1,81 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationInstanceDetails The representation of InstanceConfigurationInstanceDetails +type InstanceConfigurationInstanceDetails interface { +} + +type instanceconfigurationinstancedetails struct { + JsonData []byte + InstanceType string `json:"instanceType"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationinstancedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationinstancedetails instanceconfigurationinstancedetails + s := struct { + Model Unmarshalerinstanceconfigurationinstancedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.InstanceType = s.Model.InstanceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationinstancedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.InstanceType { + case "compute": + mm := ComputeInstanceDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceConfigurationInstanceDetails: %s.", m.InstanceType) + return *m, nil + } +} + +func (m instanceconfigurationinstancedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationinstancedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_options.go new file mode 100644 index 0000000000..413483152c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_options.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationInstanceOptions Optional mutable instance options. As a part of Instance Metadata Service Security Header, This allows user to disable the legacy imds endpoints. +type InstanceConfigurationInstanceOptions struct { + + // Whether to disable the legacy (/v1) instance metadata service endpoints. + // Customers who have migrated to /v2 should set this to true for added security. + // Default is false. + AreLegacyImdsEndpointsDisabled *bool `mandatory:"false" json:"areLegacyImdsEndpointsDisabled"` +} + +func (m InstanceConfigurationInstanceOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationInstanceOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_details.go new file mode 100644 index 0000000000..7d885822fe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_details.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationInstanceSourceDetails The representation of InstanceConfigurationInstanceSourceDetails +type InstanceConfigurationInstanceSourceDetails interface { +} + +type instanceconfigurationinstancesourcedetails struct { + JsonData []byte + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationinstancesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationinstancesourcedetails instanceconfigurationinstancesourcedetails + s := struct { + Model Unmarshalerinstanceconfigurationinstancesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationinstancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "image": + mm := InstanceConfigurationInstanceSourceViaImageDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "bootVolume": + mm := InstanceConfigurationInstanceSourceViaBootVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceConfigurationInstanceSourceDetails: %s.", m.SourceType) + return *m, nil + } +} + +func (m instanceconfigurationinstancesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationinstancesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_boot_volume_details.go new file mode 100644 index 0000000000..c4a3c6ad28 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_boot_volume_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationInstanceSourceViaBootVolumeDetails The representation of InstanceConfigurationInstanceSourceViaBootVolumeDetails +type InstanceConfigurationInstanceSourceViaBootVolumeDetails struct { + + // The OCID of the boot volume used to boot the instance. + BootVolumeId *string `mandatory:"false" json:"bootVolumeId"` +} + +func (m InstanceConfigurationInstanceSourceViaBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationInstanceSourceViaBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationInstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationInstanceSourceViaBootVolumeDetails InstanceConfigurationInstanceSourceViaBootVolumeDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeInstanceConfigurationInstanceSourceViaBootVolumeDetails + }{ + "bootVolume", + (MarshalTypeInstanceConfigurationInstanceSourceViaBootVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_image_details.go new file mode 100644 index 0000000000..a603a5c8a9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_instance_source_via_image_details.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationInstanceSourceViaImageDetails The representation of InstanceConfigurationInstanceSourceViaImageDetails +type InstanceConfigurationInstanceSourceViaImageDetails struct { + + // The size of the boot volume in GBs. The minimum value is 50 GB and the maximum + // value is 32,768 GB (32 TB). + BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` + + // The OCID of the image used to boot the instance. + ImageId *string `mandatory:"false" json:"imageId"` + + // The OCID of the Vault service key to assign as the master encryption key for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + BootVolumeVpusPerGB *int64 `mandatory:"false" json:"bootVolumeVpusPerGB"` +} + +func (m InstanceConfigurationInstanceSourceViaImageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationInstanceSourceViaImageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationInstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationInstanceSourceViaImageDetails InstanceConfigurationInstanceSourceViaImageDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeInstanceConfigurationInstanceSourceViaImageDetails + }{ + "image", + (MarshalTypeInstanceConfigurationInstanceSourceViaImageDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_icelake_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_icelake_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..673fda23b0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_icelake_bm_launch_instance_platform_config.go @@ -0,0 +1,155 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the BM.Standard3.64 shape +// or the BM.Optimized3.36 shape (the Intel Ice Lake platform). +type InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig + }{ + "INTEL_ICELAKE_BM", + (MarshalTypeInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" +) + +var mappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS1": InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, +} + +var mappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps1": InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, +} + +// GetInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS1", + "NPS2", + } +} + +// GetMappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingInstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..5707c26644 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_skylake_bm_launch_instance_platform_config.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with one of the following +// shapes: BM.Standard2.52, BM.GPU2.2, BM.GPU3.8, or BM.DenseIO2.52 (the Intel Skylake platform). +type InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig + }{ + "INTEL_SKYLAKE_BM", + (MarshalTypeInstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_vm_launch_instance_platform_config.go new file mode 100644 index 0000000000..525de29c7f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_intel_vm_launch_instance_platform_config.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationIntelVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the Intel platform. +type InstanceConfigurationIntelVmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationIntelVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationIntelVmLaunchInstancePlatformConfig InstanceConfigurationIntelVmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationIntelVmLaunchInstancePlatformConfig + }{ + "INTEL_VM", + (MarshalTypeInstanceConfigurationIntelVmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_iscsi_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_iscsi_attach_volume_details.go new file mode 100644 index 0000000000..c085588ec5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_iscsi_attach_volume_details.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationIscsiAttachVolumeDetails The representation of InstanceConfigurationIscsiAttachVolumeDetails +type InstanceConfigurationIscsiAttachVolumeDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether the attachment should be created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // The device name. + Device *string `mandatory:"false" json:"device"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + + // Whether to use CHAP authentication for the volume attachment. Defaults to false. + UseChap *bool `mandatory:"false" json:"useChap"` +} + +//GetDisplayName returns DisplayName +func (m InstanceConfigurationIscsiAttachVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetIsReadOnly returns IsReadOnly +func (m InstanceConfigurationIscsiAttachVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetDevice returns Device +func (m InstanceConfigurationIscsiAttachVolumeDetails) GetDevice() *string { + return m.Device +} + +//GetIsShareable returns IsShareable +func (m InstanceConfigurationIscsiAttachVolumeDetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m InstanceConfigurationIscsiAttachVolumeDetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +func (m InstanceConfigurationIscsiAttachVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationIscsiAttachVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationIscsiAttachVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationIscsiAttachVolumeDetails InstanceConfigurationIscsiAttachVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationIscsiAttachVolumeDetails + }{ + "iscsi", + (MarshalTypeInstanceConfigurationIscsiAttachVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_agent_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_agent_config_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_agent_config_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_agent_config_details.go index fe9f7d9875..af14c77850 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_agent_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_agent_config_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InstanceConfigurationLaunchInstanceAgentConfigDetails Configuration options for the Oracle Cloud Agent software running on the instance. @@ -61,3 +63,15 @@ type InstanceConfigurationLaunchInstanceAgentConfigDetails struct { func (m InstanceConfigurationLaunchInstanceAgentConfigDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationLaunchInstanceAgentConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go index 8e379b843c..9e9b920522 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/instance_configuration_launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InstanceConfigurationLaunchInstanceDetails Instance launch details for creating an instance from an instance configuration. Use the `sourceDetails` @@ -176,6 +178,24 @@ func (m InstanceConfigurationLaunchInstanceDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationLaunchInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnum(string(m.LaunchMode)); !ok && m.LaunchMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LaunchMode: %s. Supported values are: %s.", m.LaunchMode, strings.Join(GetInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumStringValues(), ","))) + } + if _, ok := GetMappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum(string(m.PreferredMaintenanceAction)); !ok && m.PreferredMaintenanceAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreferredMaintenanceAction: %s. Supported values are: %s.", m.PreferredMaintenanceAction, strings.Join(GetInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *InstanceConfigurationLaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { model := struct { @@ -288,22 +308,45 @@ const ( InstanceConfigurationLaunchInstanceDetailsLaunchModeCustom InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum = "CUSTOM" ) -var mappingInstanceConfigurationLaunchInstanceDetailsLaunchMode = map[string]InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum{ +var mappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnum = map[string]InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum{ "NATIVE": InstanceConfigurationLaunchInstanceDetailsLaunchModeNative, "EMULATED": InstanceConfigurationLaunchInstanceDetailsLaunchModeEmulated, "PARAVIRTUALIZED": InstanceConfigurationLaunchInstanceDetailsLaunchModeParavirtualized, "CUSTOM": InstanceConfigurationLaunchInstanceDetailsLaunchModeCustom, } +var mappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumLowerCase = map[string]InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum{ + "native": InstanceConfigurationLaunchInstanceDetailsLaunchModeNative, + "emulated": InstanceConfigurationLaunchInstanceDetailsLaunchModeEmulated, + "paravirtualized": InstanceConfigurationLaunchInstanceDetailsLaunchModeParavirtualized, + "custom": InstanceConfigurationLaunchInstanceDetailsLaunchModeCustom, +} + // GetInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum func GetInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumValues() []InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum { values := make([]InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchInstanceDetailsLaunchMode { + for _, v := range mappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnum { values = append(values, v) } return values } +// GetInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum +func GetInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumStringValues() []string { + return []string{ + "NATIVE", + "EMULATED", + "PARAVIRTUALIZED", + "CUSTOM", + } +} + +// GetMappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnum(val string) (InstanceConfigurationLaunchInstanceDetailsLaunchModeEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchInstanceDetailsLaunchModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + // InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum Enum with underlying type: string type InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum string @@ -313,16 +356,35 @@ const ( InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionReboot InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum = "REBOOT" ) -var mappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceAction = map[string]InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum{ +var mappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum = map[string]InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum{ "LIVE_MIGRATE": InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionLiveMigrate, "REBOOT": InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionReboot, } +var mappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumLowerCase = map[string]InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum{ + "live_migrate": InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionLiveMigrate, + "reboot": InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionReboot, +} + // GetInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum func GetInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumValues() []InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum { values := make([]InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum, 0) - for _, v := range mappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceAction { + for _, v := range mappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum { values = append(values, v) } return values } + +// GetInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum +func GetInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumStringValues() []string { + return []string{ + "LIVE_MIGRATE", + "REBOOT", + } +} + +// GetMappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum(val string) (InstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchInstanceDetailsPreferredMaintenanceActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_platform_config.go new file mode 100644 index 0000000000..12ccbccb1f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_platform_config.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationLaunchInstancePlatformConfig The platform configuration requested for the instance. +// If you provide the parameter, the instance is created with the platform configuration that you specify. +// For any values that you omit, the instance uses the default configuration values for the `shape` that you +// specify. If you don't provide the parameter, the default values for the `shape` are used. +// Each shape only supports certain configurable values. If the values that you provide are not valid for the +// specified `shape`, an error is returned. +type InstanceConfigurationLaunchInstancePlatformConfig interface { + + // Whether Secure Boot is enabled on the instance. + GetIsSecureBootEnabled() *bool + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + GetIsTrustedPlatformModuleEnabled() *bool + + // Whether the Measured Boot feature is enabled on the instance. + GetIsMeasuredBootEnabled() *bool + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + GetIsMemoryEncryptionEnabled() *bool +} + +type instanceconfigurationlaunchinstanceplatformconfig struct { + JsonData []byte + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationlaunchinstanceplatformconfig) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationlaunchinstanceplatformconfig instanceconfigurationlaunchinstanceplatformconfig + s := struct { + Model Unmarshalerinstanceconfigurationlaunchinstanceplatformconfig + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.IsSecureBootEnabled = s.Model.IsSecureBootEnabled + m.IsTrustedPlatformModuleEnabled = s.Model.IsTrustedPlatformModuleEnabled + m.IsMeasuredBootEnabled = s.Model.IsMeasuredBootEnabled + m.IsMemoryEncryptionEnabled = s.Model.IsMemoryEncryptionEnabled + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationlaunchinstanceplatformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "AMD_MILAN_BM": + mm := InstanceConfigurationAmdMilanBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_VM": + mm := InstanceConfigurationIntelVmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_ICELAKE_BM": + mm := InstanceConfigurationIntelIcelakeBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_ROME_BM": + mm := InstanceConfigurationAmdRomeBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_SKYLAKE_BM": + mm := InstanceConfigurationIntelSkylakeBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_ROME_BM_GPU": + mm := InstanceConfigurationAmdRomeBmGpuLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_VM": + mm := InstanceConfigurationAmdVmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceConfigurationLaunchInstancePlatformConfig: %s.", m.Type) + return *m, nil + } +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m instanceconfigurationlaunchinstanceplatformconfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m instanceconfigurationlaunchinstanceplatformconfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationlaunchinstanceplatformconfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceConfigurationLaunchInstancePlatformConfigTypeEnum Enum with underlying type: string +type InstanceConfigurationLaunchInstancePlatformConfigTypeEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchInstancePlatformConfigTypeEnum +const ( + InstanceConfigurationLaunchInstancePlatformConfigTypeAmdMilanBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_MILAN_BM" + InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_ROME_BM" + InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBmGpu InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_ROME_BM_GPU" + InstanceConfigurationLaunchInstancePlatformConfigTypeIntelIcelakeBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "INTEL_ICELAKE_BM" + InstanceConfigurationLaunchInstancePlatformConfigTypeIntelSkylakeBm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "INTEL_SKYLAKE_BM" + InstanceConfigurationLaunchInstancePlatformConfigTypeAmdVm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "AMD_VM" + InstanceConfigurationLaunchInstancePlatformConfigTypeIntelVm InstanceConfigurationLaunchInstancePlatformConfigTypeEnum = "INTEL_VM" +) + +var mappingInstanceConfigurationLaunchInstancePlatformConfigTypeEnum = map[string]InstanceConfigurationLaunchInstancePlatformConfigTypeEnum{ + "AMD_MILAN_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdMilanBm, + "AMD_ROME_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBm, + "AMD_ROME_BM_GPU": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBmGpu, + "INTEL_ICELAKE_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelIcelakeBm, + "INTEL_SKYLAKE_BM": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelSkylakeBm, + "AMD_VM": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdVm, + "INTEL_VM": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelVm, +} + +var mappingInstanceConfigurationLaunchInstancePlatformConfigTypeEnumLowerCase = map[string]InstanceConfigurationLaunchInstancePlatformConfigTypeEnum{ + "amd_milan_bm": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdMilanBm, + "amd_rome_bm": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBm, + "amd_rome_bm_gpu": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdRomeBmGpu, + "intel_icelake_bm": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelIcelakeBm, + "intel_skylake_bm": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelSkylakeBm, + "amd_vm": InstanceConfigurationLaunchInstancePlatformConfigTypeAmdVm, + "intel_vm": InstanceConfigurationLaunchInstancePlatformConfigTypeIntelVm, +} + +// GetInstanceConfigurationLaunchInstancePlatformConfigTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstancePlatformConfigTypeEnum +func GetInstanceConfigurationLaunchInstancePlatformConfigTypeEnumValues() []InstanceConfigurationLaunchInstancePlatformConfigTypeEnum { + values := make([]InstanceConfigurationLaunchInstancePlatformConfigTypeEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchInstancePlatformConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchInstancePlatformConfigTypeEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchInstancePlatformConfigTypeEnum +func GetInstanceConfigurationLaunchInstancePlatformConfigTypeEnumStringValues() []string { + return []string{ + "AMD_MILAN_BM", + "AMD_ROME_BM", + "AMD_ROME_BM_GPU", + "INTEL_ICELAKE_BM", + "INTEL_SKYLAKE_BM", + "AMD_VM", + "INTEL_VM", + } +} + +// GetMappingInstanceConfigurationLaunchInstancePlatformConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchInstancePlatformConfigTypeEnum(val string) (InstanceConfigurationLaunchInstancePlatformConfigTypeEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchInstancePlatformConfigTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_shape_config_details.go new file mode 100644 index 0000000000..b38f27bc8c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_instance_shape_config_details.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationLaunchInstanceShapeConfigDetails The shape configuration requested for the instance. +// If the parameter is provided, the instance is created +// with the resources that you specify. If some properties are missing or +// the entire parameter is not provided, the instance is created with the default +// configuration values for the `shape` that you specify. +// Each shape only supports certain configurable values. If the values that you provide are not valid for the +// specified `shape`, an error is returned. +type InstanceConfigurationLaunchInstanceShapeConfigDetails struct { + + // The total number of OCPUs available to the instance. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to the instance, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` + + // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a + // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. + // The following values are supported: + // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + // - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance. + BaselineOcpuUtilization InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` + + // The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. + Nvmes *int `mandatory:"false" json:"nvmes"` +} + +func (m InstanceConfigurationLaunchInstanceShapeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationLaunchInstanceShapeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(string(m.BaselineOcpuUtilization)); !ok && m.BaselineOcpuUtilization != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BaselineOcpuUtilization: %s. Supported values are: %s.", m.BaselineOcpuUtilization, strings.Join(GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string +type InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +const ( + InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8 InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8" + InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2 InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2" + InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1 InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1" +) + +var mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = map[string]InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ + "BASELINE_1_8": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8, + "BASELINE_1_2": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2, + "BASELINE_1_1": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1, +} + +var mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase = map[string]InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ + "baseline_1_8": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8, + "baseline_1_2": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2, + "baseline_1_1": InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1, +} + +// GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +func GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { + values := make([]InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +func GetInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues() []string { + return []string{ + "BASELINE_1_8", + "BASELINE_1_2", + "BASELINE_1_1", + } +} + +// GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(val string) (InstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_options.go new file mode 100644 index 0000000000..fef79a7601 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_launch_options.go @@ -0,0 +1,290 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationLaunchOptions Options for tuning the compatibility and performance of VM shapes. The values that you specify override any +// default values. +type InstanceConfigurationLaunchOptions struct { + + // Emulation type for the boot volume. + // * `ISCSI` - ISCSI attached block storage device. + // * `SCSI` - Emulated SCSI disk. + // * `IDE` - Emulated IDE disk. + // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + // volumes on platform images. + // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block + // storage volumes on platform images. + BootVolumeType InstanceConfigurationLaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"` + + // Firmware used to boot VM. Select the option that matches your operating system. + // * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + // systems that boot using MBR style bootloaders. + // * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + // default for platform images. + Firmware InstanceConfigurationLaunchOptionsFirmwareEnum `mandatory:"false" json:"firmware,omitempty"` + + // Emulation type for the physical network interface card (NIC). + // * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + // * `VFIO` - Direct attached Virtual Function network controller. This is the networking type + // when you launch an instance using hardware-assisted (SR-IOV) networking. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. + NetworkType InstanceConfigurationLaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"` + + // Emulation type for volume. + // * `ISCSI` - ISCSI attached block storage device. + // * `SCSI` - Emulated SCSI disk. + // * `IDE` - Emulated IDE disk. + // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + // volumes on platform images. + // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block + // storage volumes on platform images. + RemoteDataVolumeType InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum `mandatory:"false" json:"remoteDataVolumeType,omitempty"` + + // Deprecated. Instead use `isPvEncryptionInTransitEnabled` in + // InstanceConfigurationLaunchInstanceDetails. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Whether to enable consistent volume naming feature. Defaults to false. + IsConsistentVolumeNamingEnabled *bool `mandatory:"false" json:"isConsistentVolumeNamingEnabled"` +} + +func (m InstanceConfigurationLaunchOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationLaunchOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnum(string(m.BootVolumeType)); !ok && m.BootVolumeType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BootVolumeType: %s. Supported values are: %s.", m.BootVolumeType, strings.Join(GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingInstanceConfigurationLaunchOptionsFirmwareEnum(string(m.Firmware)); !ok && m.Firmware != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Firmware: %s. Supported values are: %s.", m.Firmware, strings.Join(GetInstanceConfigurationLaunchOptionsFirmwareEnumStringValues(), ","))) + } + if _, ok := GetMappingInstanceConfigurationLaunchOptionsNetworkTypeEnum(string(m.NetworkType)); !ok && m.NetworkType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NetworkType: %s. Supported values are: %s.", m.NetworkType, strings.Join(GetInstanceConfigurationLaunchOptionsNetworkTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum(string(m.RemoteDataVolumeType)); !ok && m.RemoteDataVolumeType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RemoteDataVolumeType: %s. Supported values are: %s.", m.RemoteDataVolumeType, strings.Join(GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceConfigurationLaunchOptionsBootVolumeTypeEnum Enum with underlying type: string +type InstanceConfigurationLaunchOptionsBootVolumeTypeEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsBootVolumeTypeEnum +const ( + InstanceConfigurationLaunchOptionsBootVolumeTypeIscsi InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "ISCSI" + InstanceConfigurationLaunchOptionsBootVolumeTypeScsi InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "SCSI" + InstanceConfigurationLaunchOptionsBootVolumeTypeIde InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "IDE" + InstanceConfigurationLaunchOptionsBootVolumeTypeVfio InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "VFIO" + InstanceConfigurationLaunchOptionsBootVolumeTypeParavirtualized InstanceConfigurationLaunchOptionsBootVolumeTypeEnum = "PARAVIRTUALIZED" +) + +var mappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnum = map[string]InstanceConfigurationLaunchOptionsBootVolumeTypeEnum{ + "ISCSI": InstanceConfigurationLaunchOptionsBootVolumeTypeIscsi, + "SCSI": InstanceConfigurationLaunchOptionsBootVolumeTypeScsi, + "IDE": InstanceConfigurationLaunchOptionsBootVolumeTypeIde, + "VFIO": InstanceConfigurationLaunchOptionsBootVolumeTypeVfio, + "PARAVIRTUALIZED": InstanceConfigurationLaunchOptionsBootVolumeTypeParavirtualized, +} + +var mappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnumLowerCase = map[string]InstanceConfigurationLaunchOptionsBootVolumeTypeEnum{ + "iscsi": InstanceConfigurationLaunchOptionsBootVolumeTypeIscsi, + "scsi": InstanceConfigurationLaunchOptionsBootVolumeTypeScsi, + "ide": InstanceConfigurationLaunchOptionsBootVolumeTypeIde, + "vfio": InstanceConfigurationLaunchOptionsBootVolumeTypeVfio, + "paravirtualized": InstanceConfigurationLaunchOptionsBootVolumeTypeParavirtualized, +} + +// GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsBootVolumeTypeEnum +func GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumValues() []InstanceConfigurationLaunchOptionsBootVolumeTypeEnum { + values := make([]InstanceConfigurationLaunchOptionsBootVolumeTypeEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchOptionsBootVolumeTypeEnum +func GetInstanceConfigurationLaunchOptionsBootVolumeTypeEnumStringValues() []string { + return []string{ + "ISCSI", + "SCSI", + "IDE", + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnum(val string) (InstanceConfigurationLaunchOptionsBootVolumeTypeEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchOptionsBootVolumeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InstanceConfigurationLaunchOptionsFirmwareEnum Enum with underlying type: string +type InstanceConfigurationLaunchOptionsFirmwareEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsFirmwareEnum +const ( + InstanceConfigurationLaunchOptionsFirmwareBios InstanceConfigurationLaunchOptionsFirmwareEnum = "BIOS" + InstanceConfigurationLaunchOptionsFirmwareUefi64 InstanceConfigurationLaunchOptionsFirmwareEnum = "UEFI_64" +) + +var mappingInstanceConfigurationLaunchOptionsFirmwareEnum = map[string]InstanceConfigurationLaunchOptionsFirmwareEnum{ + "BIOS": InstanceConfigurationLaunchOptionsFirmwareBios, + "UEFI_64": InstanceConfigurationLaunchOptionsFirmwareUefi64, +} + +var mappingInstanceConfigurationLaunchOptionsFirmwareEnumLowerCase = map[string]InstanceConfigurationLaunchOptionsFirmwareEnum{ + "bios": InstanceConfigurationLaunchOptionsFirmwareBios, + "uefi_64": InstanceConfigurationLaunchOptionsFirmwareUefi64, +} + +// GetInstanceConfigurationLaunchOptionsFirmwareEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsFirmwareEnum +func GetInstanceConfigurationLaunchOptionsFirmwareEnumValues() []InstanceConfigurationLaunchOptionsFirmwareEnum { + values := make([]InstanceConfigurationLaunchOptionsFirmwareEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchOptionsFirmwareEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchOptionsFirmwareEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchOptionsFirmwareEnum +func GetInstanceConfigurationLaunchOptionsFirmwareEnumStringValues() []string { + return []string{ + "BIOS", + "UEFI_64", + } +} + +// GetMappingInstanceConfigurationLaunchOptionsFirmwareEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchOptionsFirmwareEnum(val string) (InstanceConfigurationLaunchOptionsFirmwareEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchOptionsFirmwareEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InstanceConfigurationLaunchOptionsNetworkTypeEnum Enum with underlying type: string +type InstanceConfigurationLaunchOptionsNetworkTypeEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsNetworkTypeEnum +const ( + InstanceConfigurationLaunchOptionsNetworkTypeE1000 InstanceConfigurationLaunchOptionsNetworkTypeEnum = "E1000" + InstanceConfigurationLaunchOptionsNetworkTypeVfio InstanceConfigurationLaunchOptionsNetworkTypeEnum = "VFIO" + InstanceConfigurationLaunchOptionsNetworkTypeParavirtualized InstanceConfigurationLaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" +) + +var mappingInstanceConfigurationLaunchOptionsNetworkTypeEnum = map[string]InstanceConfigurationLaunchOptionsNetworkTypeEnum{ + "E1000": InstanceConfigurationLaunchOptionsNetworkTypeE1000, + "VFIO": InstanceConfigurationLaunchOptionsNetworkTypeVfio, + "PARAVIRTUALIZED": InstanceConfigurationLaunchOptionsNetworkTypeParavirtualized, +} + +var mappingInstanceConfigurationLaunchOptionsNetworkTypeEnumLowerCase = map[string]InstanceConfigurationLaunchOptionsNetworkTypeEnum{ + "e1000": InstanceConfigurationLaunchOptionsNetworkTypeE1000, + "vfio": InstanceConfigurationLaunchOptionsNetworkTypeVfio, + "paravirtualized": InstanceConfigurationLaunchOptionsNetworkTypeParavirtualized, +} + +// GetInstanceConfigurationLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsNetworkTypeEnum +func GetInstanceConfigurationLaunchOptionsNetworkTypeEnumValues() []InstanceConfigurationLaunchOptionsNetworkTypeEnum { + values := make([]InstanceConfigurationLaunchOptionsNetworkTypeEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchOptionsNetworkTypeEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchOptionsNetworkTypeEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchOptionsNetworkTypeEnum +func GetInstanceConfigurationLaunchOptionsNetworkTypeEnumStringValues() []string { + return []string{ + "E1000", + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingInstanceConfigurationLaunchOptionsNetworkTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchOptionsNetworkTypeEnum(val string) (InstanceConfigurationLaunchOptionsNetworkTypeEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchOptionsNetworkTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum Enum with underlying type: string +type InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum string + +// Set of constants representing the allowable values for InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum +const ( + InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIscsi InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "ISCSI" + InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeScsi InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "SCSI" + InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIde InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "IDE" + InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeVfio InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "VFIO" + InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeParavirtualized InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = "PARAVIRTUALIZED" +) + +var mappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum = map[string]InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum{ + "ISCSI": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIscsi, + "SCSI": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeScsi, + "IDE": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIde, + "VFIO": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeVfio, + "PARAVIRTUALIZED": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeParavirtualized, +} + +var mappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumLowerCase = map[string]InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum{ + "iscsi": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIscsi, + "scsi": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeScsi, + "ide": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeIde, + "vfio": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeVfio, + "paravirtualized": InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeParavirtualized, +} + +// GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumValues Enumerates the set of values for InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum +func GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumValues() []InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum { + values := make([]InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum, 0) + for _, v := range mappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumStringValues Enumerates the set of values in String for InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum +func GetInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumStringValues() []string { + return []string{ + "ISCSI", + "SCSI", + "IDE", + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum(val string) (InstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnum, bool) { + enum, ok := mappingInstanceConfigurationLaunchOptionsRemoteDataVolumeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_paravirtualized_attach_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_paravirtualized_attach_volume_details.go new file mode 100644 index 0000000000..ce3ea3b707 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_paravirtualized_attach_volume_details.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationParavirtualizedAttachVolumeDetails The representation of InstanceConfigurationParavirtualizedAttachVolumeDetails +type InstanceConfigurationParavirtualizedAttachVolumeDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Whether the attachment should be created in read-only mode. + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + + // The device name. + Device *string `mandatory:"false" json:"device"` + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + IsShareable *bool `mandatory:"false" json:"isShareable"` + + // When launching from a Compute Image, it is possible for more than one volume to be defined in the Image definition. + // If the relative index of one of these volumes is provided in this field, then the provided createVolumeDetails + // descriptor will be utilized to modify the default creation/attachment parameters for this volume rather than the + // defaults. + // If this field is provided, then CreateVolumeDetails must be specified. + ImageVolumeIndex *int `mandatory:"false" json:"imageVolumeIndex"` + + // Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` +} + +//GetDisplayName returns DisplayName +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetIsReadOnly returns IsReadOnly +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetDevice returns Device +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetDevice() *string { + return m.Device +} + +//GetIsShareable returns IsShareable +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetIsShareable() *bool { + return m.IsShareable +} + +//GetImageVolumeIndex returns ImageVolumeIndex +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) GetImageVolumeIndex() *int { + return m.ImageVolumeIndex +} + +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationParavirtualizedAttachVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationParavirtualizedAttachVolumeDetails InstanceConfigurationParavirtualizedAttachVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationParavirtualizedAttachVolumeDetails + }{ + "paravirtualized", + (MarshalTypeInstanceConfigurationParavirtualizedAttachVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_performance_based_autotune_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_performance_based_autotune_policy.go new file mode 100644 index 0000000000..1165b9c5bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_performance_based_autotune_policy.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationPerformanceBasedAutotunePolicy If a volume is being throttled at the current setting for a certain period of time, auto-tune will +// gradually increase the volume’s performance limited up to Maximum VPUs/GB. After the volume has been idle at the +// current setting for a certain period of time, auto-tune will gradually decrease the volume’s performance limited +// down to Default/Minimum VPUs/GB. +type InstanceConfigurationPerformanceBasedAutotunePolicy struct { + + // This will be the maximum VPUs/GB performance level that the volume will be auto-tuned + // temporarily based on performance monitoring. + MaxVpusPerGB *int64 `mandatory:"true" json:"maxVpusPerGB"` +} + +func (m InstanceConfigurationPerformanceBasedAutotunePolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationPerformanceBasedAutotunePolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationPerformanceBasedAutotunePolicy) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationPerformanceBasedAutotunePolicy InstanceConfigurationPerformanceBasedAutotunePolicy + s := struct { + DiscriminatorParam string `json:"autotuneType"` + MarshalTypeInstanceConfigurationPerformanceBasedAutotunePolicy + }{ + "PERFORMANCE_BASED", + (MarshalTypeInstanceConfigurationPerformanceBasedAutotunePolicy)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_summary.go new file mode 100644 index 0000000000..a371bbf2b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_summary.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationSummary Summary information for an instance configuration. +type InstanceConfigurationSummary struct { + + // The OCID of the compartment containing the instance configuration. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the instance configuration. + Id *string `mandatory:"true" json:"id"` + + // The date and time the instance configuration was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m InstanceConfigurationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_details.go new file mode 100644 index 0000000000..464dafe13b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_details.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationVolumeSourceDetails The representation of InstanceConfigurationVolumeSourceDetails +type InstanceConfigurationVolumeSourceDetails interface { +} + +type instanceconfigurationvolumesourcedetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *instanceconfigurationvolumesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstanceconfigurationvolumesourcedetails instanceconfigurationvolumesourcedetails + s := struct { + Model Unmarshalerinstanceconfigurationvolumesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instanceconfigurationvolumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "volumeBackup": + mm := InstanceConfigurationVolumeSourceFromVolumeBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volume": + mm := InstanceConfigurationVolumeSourceFromVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceConfigurationVolumeSourceDetails: %s.", m.Type) + return *m, nil + } +} + +func (m instanceconfigurationvolumesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instanceconfigurationvolumesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_backup_details.go new file mode 100644 index 0000000000..31516dde3b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_backup_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationVolumeSourceFromVolumeBackupDetails Specifies the volume backup. +type InstanceConfigurationVolumeSourceFromVolumeBackupDetails struct { + + // The OCID of the volume backup. + Id *string `mandatory:"false" json:"id"` +} + +func (m InstanceConfigurationVolumeSourceFromVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationVolumeSourceFromVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationVolumeSourceFromVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationVolumeSourceFromVolumeBackupDetails InstanceConfigurationVolumeSourceFromVolumeBackupDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationVolumeSourceFromVolumeBackupDetails + }{ + "volumeBackup", + (MarshalTypeInstanceConfigurationVolumeSourceFromVolumeBackupDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_details.go new file mode 100644 index 0000000000..c44edddc8e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_configuration_volume_source_from_volume_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConfigurationVolumeSourceFromVolumeDetails Specifies the source volume. +type InstanceConfigurationVolumeSourceFromVolumeDetails struct { + + // The OCID of the volume. + Id *string `mandatory:"false" json:"id"` +} + +func (m InstanceConfigurationVolumeSourceFromVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConfigurationVolumeSourceFromVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceConfigurationVolumeSourceFromVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceConfigurationVolumeSourceFromVolumeDetails InstanceConfigurationVolumeSourceFromVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInstanceConfigurationVolumeSourceFromVolumeDetails + }{ + "volume", + (MarshalTypeInstanceConfigurationVolumeSourceFromVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_console_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_console_connection.go new file mode 100644 index 0000000000..dfb9554974 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_console_connection.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceConsoleConnection The `InstanceConsoleConnection` API provides you with console access to Compute instances, +// enabling you to troubleshoot malfunctioning instances remotely. +// For more information about instance console connections, see Troubleshooting Instances Using Instance Console Connections (https://docs.cloud.oracle.com/iaas/Content/Compute/References/serialconsole.htm). +type InstanceConsoleConnection struct { + + // The OCID of the compartment to contain the console connection. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The SSH connection string for the console connection. + ConnectionString *string `mandatory:"false" json:"connectionString"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The SSH public key's fingerprint for client authentication to the console connection. + Fingerprint *string `mandatory:"false" json:"fingerprint"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID of the console connection. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the instance the console connection connects to. + InstanceId *string `mandatory:"false" json:"instanceId"` + + // The current state of the console connection. + LifecycleState InstanceConsoleConnectionLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The SSH public key's fingerprint for the console connection service host. + ServiceHostKeyFingerprint *string `mandatory:"false" json:"serviceHostKeyFingerprint"` + + // The SSH connection string for the SSH tunnel used to + // connect to the console connection over VNC. + VncConnectionString *string `mandatory:"false" json:"vncConnectionString"` +} + +func (m InstanceConsoleConnection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceConsoleConnection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceConsoleConnectionLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstanceConsoleConnectionLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceConsoleConnectionLifecycleStateEnum Enum with underlying type: string +type InstanceConsoleConnectionLifecycleStateEnum string + +// Set of constants representing the allowable values for InstanceConsoleConnectionLifecycleStateEnum +const ( + InstanceConsoleConnectionLifecycleStateActive InstanceConsoleConnectionLifecycleStateEnum = "ACTIVE" + InstanceConsoleConnectionLifecycleStateCreating InstanceConsoleConnectionLifecycleStateEnum = "CREATING" + InstanceConsoleConnectionLifecycleStateDeleted InstanceConsoleConnectionLifecycleStateEnum = "DELETED" + InstanceConsoleConnectionLifecycleStateDeleting InstanceConsoleConnectionLifecycleStateEnum = "DELETING" + InstanceConsoleConnectionLifecycleStateFailed InstanceConsoleConnectionLifecycleStateEnum = "FAILED" +) + +var mappingInstanceConsoleConnectionLifecycleStateEnum = map[string]InstanceConsoleConnectionLifecycleStateEnum{ + "ACTIVE": InstanceConsoleConnectionLifecycleStateActive, + "CREATING": InstanceConsoleConnectionLifecycleStateCreating, + "DELETED": InstanceConsoleConnectionLifecycleStateDeleted, + "DELETING": InstanceConsoleConnectionLifecycleStateDeleting, + "FAILED": InstanceConsoleConnectionLifecycleStateFailed, +} + +var mappingInstanceConsoleConnectionLifecycleStateEnumLowerCase = map[string]InstanceConsoleConnectionLifecycleStateEnum{ + "active": InstanceConsoleConnectionLifecycleStateActive, + "creating": InstanceConsoleConnectionLifecycleStateCreating, + "deleted": InstanceConsoleConnectionLifecycleStateDeleted, + "deleting": InstanceConsoleConnectionLifecycleStateDeleting, + "failed": InstanceConsoleConnectionLifecycleStateFailed, +} + +// GetInstanceConsoleConnectionLifecycleStateEnumValues Enumerates the set of values for InstanceConsoleConnectionLifecycleStateEnum +func GetInstanceConsoleConnectionLifecycleStateEnumValues() []InstanceConsoleConnectionLifecycleStateEnum { + values := make([]InstanceConsoleConnectionLifecycleStateEnum, 0) + for _, v := range mappingInstanceConsoleConnectionLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstanceConsoleConnectionLifecycleStateEnumStringValues Enumerates the set of values in String for InstanceConsoleConnectionLifecycleStateEnum +func GetInstanceConsoleConnectionLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "CREATING", + "DELETED", + "DELETING", + "FAILED", + } +} + +// GetMappingInstanceConsoleConnectionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceConsoleConnectionLifecycleStateEnum(val string) (InstanceConsoleConnectionLifecycleStateEnum, bool) { + enum, ok := mappingInstanceConsoleConnectionLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_credentials.go new file mode 100644 index 0000000000..ac5087d4db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_credentials.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceCredentials The credentials for a particular instance. +type InstanceCredentials struct { + + // The password for the username. + Password *string `mandatory:"true" json:"password"` + + // The username. + Username *string `mandatory:"true" json:"username"` +} + +func (m InstanceCredentials) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceCredentials) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_reboot.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_reboot.go new file mode 100644 index 0000000000..64562d9b0f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_maintenance_reboot.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceMaintenanceReboot The maximum possible date and time that a maintenance reboot can be extended. +type InstanceMaintenanceReboot struct { + + // The maximum extension date and time for the maintenance reboot, in the format defined by + // RFC3339 (https://tools.ietf.org/html/rfc3339). + // The range for the maintenance extension is between 1 and 14 days from the initial scheduled maintenance date. + // Example: `2018-05-25T21:10:29.600Z` + TimeMaintenanceRebootDueMax *common.SDKTime `mandatory:"true" json:"timeMaintenanceRebootDueMax"` +} + +func (m InstanceMaintenanceReboot) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceMaintenanceReboot) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_options.go new file mode 100644 index 0000000000..aac35dd505 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_options.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceOptions Optional mutable instance options +type InstanceOptions struct { + + // Whether to disable the legacy (/v1) instance metadata service endpoints. + // Customers who have migrated to /v2 should set this to true for added security. + // Default is false. + AreLegacyImdsEndpointsDisabled *bool `mandatory:"false" json:"areLegacyImdsEndpointsDisabled"` +} + +func (m InstanceOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go new file mode 100644 index 0000000000..fca28c48de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool.go @@ -0,0 +1,164 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePool An instance pool is a set of instances within the same region that are managed as a group. +// For more information about instance pools and instance configurations, see +// Managing Compute Instances (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/instancemanagement.htm). +type InstancePool struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the instance + // pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated + // with the instance pool. + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The current state of the instance pool. + LifecycleState InstancePoolLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The placement configurations for the instance pool. + PlacementConfigurations []InstancePoolPlacementConfiguration `mandatory:"true" json:"placementConfigurations"` + + // The number of instances that should be in the instance pool. + Size *int `mandatory:"true" json:"size"` + + // The date and time the instance pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The load balancers attached to the instance pool. + LoadBalancers []InstancePoolLoadBalancerAttachment `mandatory:"false" json:"loadBalancers"` + + // The last date and time the instance pool state was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeStateUpdated *common.SDKTime `mandatory:"false" json:"timeStateUpdated"` + + // A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. + // The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format + InstanceDisplayNameFormatter *string `mandatory:"false" json:"instanceDisplayNameFormatter"` + + // A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. + // The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format + InstanceHostnameFormatter *string `mandatory:"false" json:"instanceHostnameFormatter"` +} + +func (m InstancePool) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePool) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstancePoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstancePoolLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstancePoolLifecycleStateEnum Enum with underlying type: string +type InstancePoolLifecycleStateEnum string + +// Set of constants representing the allowable values for InstancePoolLifecycleStateEnum +const ( + InstancePoolLifecycleStateProvisioning InstancePoolLifecycleStateEnum = "PROVISIONING" + InstancePoolLifecycleStateScaling InstancePoolLifecycleStateEnum = "SCALING" + InstancePoolLifecycleStateStarting InstancePoolLifecycleStateEnum = "STARTING" + InstancePoolLifecycleStateStopping InstancePoolLifecycleStateEnum = "STOPPING" + InstancePoolLifecycleStateTerminating InstancePoolLifecycleStateEnum = "TERMINATING" + InstancePoolLifecycleStateStopped InstancePoolLifecycleStateEnum = "STOPPED" + InstancePoolLifecycleStateTerminated InstancePoolLifecycleStateEnum = "TERMINATED" + InstancePoolLifecycleStateRunning InstancePoolLifecycleStateEnum = "RUNNING" +) + +var mappingInstancePoolLifecycleStateEnum = map[string]InstancePoolLifecycleStateEnum{ + "PROVISIONING": InstancePoolLifecycleStateProvisioning, + "SCALING": InstancePoolLifecycleStateScaling, + "STARTING": InstancePoolLifecycleStateStarting, + "STOPPING": InstancePoolLifecycleStateStopping, + "TERMINATING": InstancePoolLifecycleStateTerminating, + "STOPPED": InstancePoolLifecycleStateStopped, + "TERMINATED": InstancePoolLifecycleStateTerminated, + "RUNNING": InstancePoolLifecycleStateRunning, +} + +var mappingInstancePoolLifecycleStateEnumLowerCase = map[string]InstancePoolLifecycleStateEnum{ + "provisioning": InstancePoolLifecycleStateProvisioning, + "scaling": InstancePoolLifecycleStateScaling, + "starting": InstancePoolLifecycleStateStarting, + "stopping": InstancePoolLifecycleStateStopping, + "terminating": InstancePoolLifecycleStateTerminating, + "stopped": InstancePoolLifecycleStateStopped, + "terminated": InstancePoolLifecycleStateTerminated, + "running": InstancePoolLifecycleStateRunning, +} + +// GetInstancePoolLifecycleStateEnumValues Enumerates the set of values for InstancePoolLifecycleStateEnum +func GetInstancePoolLifecycleStateEnumValues() []InstancePoolLifecycleStateEnum { + values := make([]InstancePoolLifecycleStateEnum, 0) + for _, v := range mappingInstancePoolLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolLifecycleStateEnumStringValues Enumerates the set of values in String for InstancePoolLifecycleStateEnum +func GetInstancePoolLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "SCALING", + "STARTING", + "STOPPING", + "TERMINATING", + "STOPPED", + "TERMINATED", + "RUNNING", + } +} + +// GetMappingInstancePoolLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolLifecycleStateEnum(val string) (InstancePoolLifecycleStateEnum, bool) { + enum, ok := mappingInstancePoolLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance.go new file mode 100644 index 0000000000..ef6a29eab1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance.go @@ -0,0 +1,133 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolInstance Information about an instance that belongs to an instance pool. +type InstancePoolInstance struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + InstancePoolId *string `mandatory:"true" json:"instancePoolId"` + + // The availability domain the instance is running in. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The attachment state of the instance in relation to the instance pool. + LifecycleState InstancePoolInstanceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the + // instance. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration + // used to create the instance. + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The region that contains the availability domain the instance is running in. + Region *string `mandatory:"true" json:"region"` + + // The shape of the instance. The shape determines the number of CPUs, amount of memory, + // and other resources allocated to the instance. + Shape *string `mandatory:"true" json:"shape"` + + // The lifecycle state of the instance. Refer to `lifecycleState` in the Instance resource. + State *string `mandatory:"true" json:"state"` + + // The date and time the instance pool instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The fault domain the instance is running in. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The load balancer backends that are configured for the instance. + LoadBalancerBackends []InstancePoolInstanceLoadBalancerBackend `mandatory:"false" json:"loadBalancerBackends"` +} + +func (m InstancePoolInstance) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolInstance) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstancePoolInstanceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstancePoolInstanceLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstancePoolInstanceLifecycleStateEnum Enum with underlying type: string +type InstancePoolInstanceLifecycleStateEnum string + +// Set of constants representing the allowable values for InstancePoolInstanceLifecycleStateEnum +const ( + InstancePoolInstanceLifecycleStateAttaching InstancePoolInstanceLifecycleStateEnum = "ATTACHING" + InstancePoolInstanceLifecycleStateActive InstancePoolInstanceLifecycleStateEnum = "ACTIVE" + InstancePoolInstanceLifecycleStateDetaching InstancePoolInstanceLifecycleStateEnum = "DETACHING" +) + +var mappingInstancePoolInstanceLifecycleStateEnum = map[string]InstancePoolInstanceLifecycleStateEnum{ + "ATTACHING": InstancePoolInstanceLifecycleStateAttaching, + "ACTIVE": InstancePoolInstanceLifecycleStateActive, + "DETACHING": InstancePoolInstanceLifecycleStateDetaching, +} + +var mappingInstancePoolInstanceLifecycleStateEnumLowerCase = map[string]InstancePoolInstanceLifecycleStateEnum{ + "attaching": InstancePoolInstanceLifecycleStateAttaching, + "active": InstancePoolInstanceLifecycleStateActive, + "detaching": InstancePoolInstanceLifecycleStateDetaching, +} + +// GetInstancePoolInstanceLifecycleStateEnumValues Enumerates the set of values for InstancePoolInstanceLifecycleStateEnum +func GetInstancePoolInstanceLifecycleStateEnumValues() []InstancePoolInstanceLifecycleStateEnum { + values := make([]InstancePoolInstanceLifecycleStateEnum, 0) + for _, v := range mappingInstancePoolInstanceLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolInstanceLifecycleStateEnumStringValues Enumerates the set of values in String for InstancePoolInstanceLifecycleStateEnum +func GetInstancePoolInstanceLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ACTIVE", + "DETACHING", + } +} + +// GetMappingInstancePoolInstanceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolInstanceLifecycleStateEnum(val string) (InstancePoolInstanceLifecycleStateEnum, bool) { + enum, ok := mappingInstancePoolInstanceLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance_load_balancer_backend.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance_load_balancer_backend.go new file mode 100644 index 0000000000..576e0746eb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_instance_load_balancer_backend.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolInstanceLoadBalancerBackend Represents the load balancer Backend that is configured for an instance pool instance. +type InstancePoolInstanceLoadBalancerBackend struct { + + // The OCID of the load balancer attached to the instance pool. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The name of the backend set on the load balancer. + BackendSetName *string `mandatory:"true" json:"backendSetName"` + + // The name of the backend in the backend set. + BackendName *string `mandatory:"true" json:"backendName"` + + // The health of the backend as observed by the load balancer. + BackendHealthStatus InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum `mandatory:"true" json:"backendHealthStatus"` +} + +func (m InstancePoolInstanceLoadBalancerBackend) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolInstanceLoadBalancerBackend) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum(string(m.BackendHealthStatus)); !ok && m.BackendHealthStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BackendHealthStatus: %s. Supported values are: %s.", m.BackendHealthStatus, strings.Join(GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum Enum with underlying type: string +type InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum string + +// Set of constants representing the allowable values for InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum +const ( + InstancePoolInstanceLoadBalancerBackendBackendHealthStatusOk InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "OK" + InstancePoolInstanceLoadBalancerBackendBackendHealthStatusWarning InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "WARNING" + InstancePoolInstanceLoadBalancerBackendBackendHealthStatusCritical InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "CRITICAL" + InstancePoolInstanceLoadBalancerBackendBackendHealthStatusUnknown InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = "UNKNOWN" +) + +var mappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum = map[string]InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum{ + "OK": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusOk, + "WARNING": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusWarning, + "CRITICAL": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusCritical, + "UNKNOWN": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusUnknown, +} + +var mappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumLowerCase = map[string]InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum{ + "ok": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusOk, + "warning": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusWarning, + "critical": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusCritical, + "unknown": InstancePoolInstanceLoadBalancerBackendBackendHealthStatusUnknown, +} + +// GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumValues Enumerates the set of values for InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum +func GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumValues() []InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum { + values := make([]InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum, 0) + for _, v := range mappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumStringValues Enumerates the set of values in String for InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum +func GetInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum(val string) (InstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnum, bool) { + enum, ok := mappingInstancePoolInstanceLoadBalancerBackendBackendHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_load_balancer_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_load_balancer_attachment.go new file mode 100644 index 0000000000..73111919ea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_load_balancer_attachment.go @@ -0,0 +1,116 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolLoadBalancerAttachment Represents a load balancer that is attached to an instance pool. +type InstancePoolLoadBalancerAttachment struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool of the load balancer attachment. + InstancePoolId *string `mandatory:"true" json:"instancePoolId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer attached to the instance pool. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The name of the backend set on the load balancer. + BackendSetName *string `mandatory:"true" json:"backendSetName"` + + // The port value used for the backends. + Port *int `mandatory:"true" json:"port"` + + // Indicates which VNIC on each instance in the instance pool should be used to associate with the load balancer. + // Possible values are "PrimaryVnic" or the displayName of one of the secondary VNICs on the instance configuration + // that is associated with the instance pool. + VnicSelection *string `mandatory:"true" json:"vnicSelection"` + + // The status of the interaction between the instance pool and the load balancer. + LifecycleState InstancePoolLoadBalancerAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` +} + +func (m InstancePoolLoadBalancerAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolLoadBalancerAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstancePoolLoadBalancerAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstancePoolLoadBalancerAttachmentLifecycleStateEnum Enum with underlying type: string +type InstancePoolLoadBalancerAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for InstancePoolLoadBalancerAttachmentLifecycleStateEnum +const ( + InstancePoolLoadBalancerAttachmentLifecycleStateAttaching InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "ATTACHING" + InstancePoolLoadBalancerAttachmentLifecycleStateAttached InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "ATTACHED" + InstancePoolLoadBalancerAttachmentLifecycleStateDetaching InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "DETACHING" + InstancePoolLoadBalancerAttachmentLifecycleStateDetached InstancePoolLoadBalancerAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingInstancePoolLoadBalancerAttachmentLifecycleStateEnum = map[string]InstancePoolLoadBalancerAttachmentLifecycleStateEnum{ + "ATTACHING": InstancePoolLoadBalancerAttachmentLifecycleStateAttaching, + "ATTACHED": InstancePoolLoadBalancerAttachmentLifecycleStateAttached, + "DETACHING": InstancePoolLoadBalancerAttachmentLifecycleStateDetaching, + "DETACHED": InstancePoolLoadBalancerAttachmentLifecycleStateDetached, +} + +var mappingInstancePoolLoadBalancerAttachmentLifecycleStateEnumLowerCase = map[string]InstancePoolLoadBalancerAttachmentLifecycleStateEnum{ + "attaching": InstancePoolLoadBalancerAttachmentLifecycleStateAttaching, + "attached": InstancePoolLoadBalancerAttachmentLifecycleStateAttached, + "detaching": InstancePoolLoadBalancerAttachmentLifecycleStateDetaching, + "detached": InstancePoolLoadBalancerAttachmentLifecycleStateDetached, +} + +// GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumValues Enumerates the set of values for InstancePoolLoadBalancerAttachmentLifecycleStateEnum +func GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumValues() []InstancePoolLoadBalancerAttachmentLifecycleStateEnum { + values := make([]InstancePoolLoadBalancerAttachmentLifecycleStateEnum, 0) + for _, v := range mappingInstancePoolLoadBalancerAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for InstancePoolLoadBalancerAttachmentLifecycleStateEnum +func GetInstancePoolLoadBalancerAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingInstancePoolLoadBalancerAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolLoadBalancerAttachmentLifecycleStateEnum(val string) (InstancePoolLoadBalancerAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingInstancePoolLoadBalancerAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_configuration.go new file mode 100644 index 0000000000..b390e923e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_configuration.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolPlacementConfiguration The location for where an instance pool will place instances. +type InstancePoolPlacementConfiguration struct { + + // The availability domain to place instances. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the primary subnet to place instances. + PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` + + // The fault domains to place instances. + // If you don't provide any values, the system makes a best effort to distribute + // instances across all fault domains based on capacity. + // To distribute the instances evenly across selected fault domains, provide a + // set of fault domains. For example, you might want instances to be evenly + // distributed if your applications require high availability. + // To get a list of fault domains, use the + // ListFaultDomains operation + // in the Identity and Access Management Service API. + // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` + FaultDomains []string `mandatory:"false" json:"faultDomains"` + + // The set of secondary VNIC data for instances in the pool. + SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` +} + +func (m InstancePoolPlacementConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolPlacementConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_secondary_vnic_subnet.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_secondary_vnic_subnet.go new file mode 100644 index 0000000000..ffd6c6cb2f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_placement_secondary_vnic_subnet.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolPlacementSecondaryVnicSubnet The secondary VNIC object for the placement configuration for an instance pool. +type InstancePoolPlacementSecondaryVnicSubnet struct { + + // The subnet OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the secondary VNIC. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The display name of the VNIC. This is also use to match against the instance configuration defined + // secondary VNIC. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m InstancePoolPlacementSecondaryVnicSubnet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolPlacementSecondaryVnicSubnet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_summary.go new file mode 100644 index 0000000000..25fba5374a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_pool_summary.go @@ -0,0 +1,149 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePoolSummary Summary information for an instance pool. +type InstancePoolSummary struct { + + // The OCID of the instance pool. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the instance pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the instance configuration associated with the instance pool. + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The current state of the instance pool. + LifecycleState InstancePoolSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The availability domains for the instance pool. + AvailabilityDomains []string `mandatory:"true" json:"availabilityDomains"` + + // The number of instances that should be in the instance pool. + Size *int `mandatory:"true" json:"size"` + + // The date and time the instance pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The last date and time the instance pool state was updated, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeStateUpdated *common.SDKTime `mandatory:"false" json:"timeStateUpdated"` +} + +func (m InstancePoolSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstancePoolSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstancePoolSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstancePoolSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstancePoolSummaryLifecycleStateEnum Enum with underlying type: string +type InstancePoolSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for InstancePoolSummaryLifecycleStateEnum +const ( + InstancePoolSummaryLifecycleStateProvisioning InstancePoolSummaryLifecycleStateEnum = "PROVISIONING" + InstancePoolSummaryLifecycleStateScaling InstancePoolSummaryLifecycleStateEnum = "SCALING" + InstancePoolSummaryLifecycleStateStarting InstancePoolSummaryLifecycleStateEnum = "STARTING" + InstancePoolSummaryLifecycleStateStopping InstancePoolSummaryLifecycleStateEnum = "STOPPING" + InstancePoolSummaryLifecycleStateTerminating InstancePoolSummaryLifecycleStateEnum = "TERMINATING" + InstancePoolSummaryLifecycleStateStopped InstancePoolSummaryLifecycleStateEnum = "STOPPED" + InstancePoolSummaryLifecycleStateTerminated InstancePoolSummaryLifecycleStateEnum = "TERMINATED" + InstancePoolSummaryLifecycleStateRunning InstancePoolSummaryLifecycleStateEnum = "RUNNING" +) + +var mappingInstancePoolSummaryLifecycleStateEnum = map[string]InstancePoolSummaryLifecycleStateEnum{ + "PROVISIONING": InstancePoolSummaryLifecycleStateProvisioning, + "SCALING": InstancePoolSummaryLifecycleStateScaling, + "STARTING": InstancePoolSummaryLifecycleStateStarting, + "STOPPING": InstancePoolSummaryLifecycleStateStopping, + "TERMINATING": InstancePoolSummaryLifecycleStateTerminating, + "STOPPED": InstancePoolSummaryLifecycleStateStopped, + "TERMINATED": InstancePoolSummaryLifecycleStateTerminated, + "RUNNING": InstancePoolSummaryLifecycleStateRunning, +} + +var mappingInstancePoolSummaryLifecycleStateEnumLowerCase = map[string]InstancePoolSummaryLifecycleStateEnum{ + "provisioning": InstancePoolSummaryLifecycleStateProvisioning, + "scaling": InstancePoolSummaryLifecycleStateScaling, + "starting": InstancePoolSummaryLifecycleStateStarting, + "stopping": InstancePoolSummaryLifecycleStateStopping, + "terminating": InstancePoolSummaryLifecycleStateTerminating, + "stopped": InstancePoolSummaryLifecycleStateStopped, + "terminated": InstancePoolSummaryLifecycleStateTerminated, + "running": InstancePoolSummaryLifecycleStateRunning, +} + +// GetInstancePoolSummaryLifecycleStateEnumValues Enumerates the set of values for InstancePoolSummaryLifecycleStateEnum +func GetInstancePoolSummaryLifecycleStateEnumValues() []InstancePoolSummaryLifecycleStateEnum { + values := make([]InstancePoolSummaryLifecycleStateEnum, 0) + for _, v := range mappingInstancePoolSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstancePoolSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for InstancePoolSummaryLifecycleStateEnum +func GetInstancePoolSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "SCALING", + "STARTING", + "STOPPING", + "TERMINATING", + "STOPPED", + "TERMINATED", + "RUNNING", + } +} + +// GetMappingInstancePoolSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstancePoolSummaryLifecycleStateEnum(val string) (InstancePoolSummaryLifecycleStateEnum, bool) { + enum, ok := mappingInstancePoolSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_power_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_power_action_details.go new file mode 100644 index 0000000000..66900a7523 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_power_action_details.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstancePowerActionDetails A base object for all types of instance power action requests. +type InstancePowerActionDetails interface { +} + +type instancepoweractiondetails struct { + JsonData []byte + ActionType string `json:"actionType"` +} + +// UnmarshalJSON unmarshals json +func (m *instancepoweractiondetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstancepoweractiondetails instancepoweractiondetails + s := struct { + Model Unmarshalerinstancepoweractiondetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.ActionType = s.Model.ActionType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instancepoweractiondetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ActionType { + case "reset": + mm := ResetActionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "rebootMigrate": + mm := RebootMigrateActionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "softreset": + mm := SoftResetActionDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstancePowerActionDetails: %s.", m.ActionType) + return *m, nil + } +} + +func (m instancepoweractiondetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instancepoweractiondetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config.go new file mode 100644 index 0000000000..7a1987df60 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceReservationConfig Data that defines the capacity configuration. +type InstanceReservationConfig struct { + + // The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, + // and other resources allocated to the instance. + // You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes. + InstanceShape *string `mandatory:"true" json:"instanceShape"` + + // The total number of instances that can be launched from the capacity configuration. + ReservedCount *int64 `mandatory:"true" json:"reservedCount"` + + // The amount of capacity in use out of the total capacity reserved in this capacity configuration. + UsedCount *int64 `mandatory:"true" json:"usedCount"` + + // The fault domain of this capacity configuration. + // If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. + // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm). + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + InstanceShapeConfig *InstanceReservationShapeConfigDetails `mandatory:"false" json:"instanceShapeConfig"` +} + +func (m InstanceReservationConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceReservationConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config_details.go new file mode 100644 index 0000000000..4062bbc8d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_config_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceReservationConfigDetails A template that contains the settings to use when defining the instance capacity configuration. +type InstanceReservationConfigDetails struct { + + // The shape requested when launching instances using reserved capacity. + // The shape determines the number of CPUs, amount of memory, + // and other resources allocated to the instance. + // You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes. + InstanceShape *string `mandatory:"true" json:"instanceShape"` + + // The total number of instances that can be launched from the capacity configuration. + ReservedCount *int64 `mandatory:"true" json:"reservedCount"` + + InstanceShapeConfig *InstanceReservationShapeConfigDetails `mandatory:"false" json:"instanceShapeConfig"` + + // The fault domain to use for instances created using this capacity configuration. + // For more information, see Fault Domains (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#fault). + // If you do not specify the fault domain, the capacity is available for an instance + // that does not specify a fault domain. To change the fault domain for a reservation, + // delete the reservation and create a new one in the preferred fault domain. + // To retrieve a list of fault domains, use the `ListFaultDomains` operation in + // the Identity and Access Management Service API (https://docs.cloud.oracle.com/iaas/api/#/en/identity/20160918/). + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` +} + +func (m InstanceReservationConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceReservationConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_shape_config_details.go new file mode 100644 index 0000000000..f808a94342 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_reservation_shape_config_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceReservationShapeConfigDetails The shape configuration requested when launching instances in a compute capacity reservation. +// If the parameter is provided, the reservation is created with the resources that you specify. If some +// properties are missing or the parameter is not provided, the reservation is created +// with the default configuration values for the `shape` that you specify. +// Each shape only supports certain configurable values. If the values that you provide are not valid for the +// specified `shape`, an error is returned. +// For more information about customizing the resources that are allocated to flexible shapes, +// see Flexible Shapes (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm#flexible). +type InstanceReservationShapeConfigDetails struct { + + // The total number of OCPUs available to the instance. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to the instance, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` +} + +func (m InstanceReservationShapeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceReservationShapeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot.go new file mode 100644 index 0000000000..efe785507a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceScreenshot An instance's screenshot. It is a screen capture of the current state of the instance. +// Generally it will show the login screen of the machine. +type InstanceScreenshot struct { + + // The OCID of the screenshot object. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance this screenshot was fetched from. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the screenshot capture. + LifecycleState InstanceScreenshotLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the screenshot was captured, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m InstanceScreenshot) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceScreenshot) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceScreenshotLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstanceScreenshotLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceScreenshotLifecycleStateEnum Enum with underlying type: string +type InstanceScreenshotLifecycleStateEnum string + +// Set of constants representing the allowable values for InstanceScreenshotLifecycleStateEnum +const ( + InstanceScreenshotLifecycleStateCreating InstanceScreenshotLifecycleStateEnum = "CREATING" + InstanceScreenshotLifecycleStateActive InstanceScreenshotLifecycleStateEnum = "ACTIVE" + InstanceScreenshotLifecycleStateFailed InstanceScreenshotLifecycleStateEnum = "FAILED" + InstanceScreenshotLifecycleStateDeleted InstanceScreenshotLifecycleStateEnum = "DELETED" + InstanceScreenshotLifecycleStateDeleting InstanceScreenshotLifecycleStateEnum = "DELETING" +) + +var mappingInstanceScreenshotLifecycleStateEnum = map[string]InstanceScreenshotLifecycleStateEnum{ + "CREATING": InstanceScreenshotLifecycleStateCreating, + "ACTIVE": InstanceScreenshotLifecycleStateActive, + "FAILED": InstanceScreenshotLifecycleStateFailed, + "DELETED": InstanceScreenshotLifecycleStateDeleted, + "DELETING": InstanceScreenshotLifecycleStateDeleting, +} + +var mappingInstanceScreenshotLifecycleStateEnumLowerCase = map[string]InstanceScreenshotLifecycleStateEnum{ + "creating": InstanceScreenshotLifecycleStateCreating, + "active": InstanceScreenshotLifecycleStateActive, + "failed": InstanceScreenshotLifecycleStateFailed, + "deleted": InstanceScreenshotLifecycleStateDeleted, + "deleting": InstanceScreenshotLifecycleStateDeleting, +} + +// GetInstanceScreenshotLifecycleStateEnumValues Enumerates the set of values for InstanceScreenshotLifecycleStateEnum +func GetInstanceScreenshotLifecycleStateEnumValues() []InstanceScreenshotLifecycleStateEnum { + values := make([]InstanceScreenshotLifecycleStateEnum, 0) + for _, v := range mappingInstanceScreenshotLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInstanceScreenshotLifecycleStateEnumStringValues Enumerates the set of values in String for InstanceScreenshotLifecycleStateEnum +func GetInstanceScreenshotLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "FAILED", + "DELETED", + "DELETING", + } +} + +// GetMappingInstanceScreenshotLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceScreenshotLifecycleStateEnum(val string) (InstanceScreenshotLifecycleStateEnum, bool) { + enum, ok := mappingInstanceScreenshotLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot_summary.go new file mode 100644 index 0000000000..cc0bf3b805 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_screenshot_summary.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceScreenshotSummary The summary data for an instance screenshot. +type InstanceScreenshotSummary struct { + + // The OCID of the screenshot object. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance this screenshot was fetched from. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the screenshot. + LifecycleState InstanceScreenshotLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the screenshot was captured, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m InstanceScreenshotSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceScreenshotSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInstanceScreenshotLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInstanceScreenshotLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_shape_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_shape_config.go new file mode 100644 index 0000000000..a2e2013b0d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_shape_config.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceShapeConfig The shape configuration for an instance. The shape configuration determines +// the resources allocated to an instance. +type InstanceShapeConfig struct { + + // The total number of OCPUs available to the instance. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to the instance, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` + + // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a + // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. + // The following values are supported: + // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + // - `BASELINE_1_1` - baseline usage is the entire OCPU. This represents a non-burstable instance. + BaselineOcpuUtilization InstanceShapeConfigBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` + + // A short description of the instance's processor (CPU). + ProcessorDescription *string `mandatory:"false" json:"processorDescription"` + + // The networking bandwidth available to the instance, in gigabits per second. + NetworkingBandwidthInGbps *float32 `mandatory:"false" json:"networkingBandwidthInGbps"` + + // The maximum number of VNIC attachments for the instance. + MaxVnicAttachments *int `mandatory:"false" json:"maxVnicAttachments"` + + // The number of GPUs available to the instance. + Gpus *int `mandatory:"false" json:"gpus"` + + // A short description of the instance's graphics processing unit (GPU). + // If the instance does not have any GPUs, this field is `null`. + GpuDescription *string `mandatory:"false" json:"gpuDescription"` + + // The number of local disks available to the instance. + LocalDisks *int `mandatory:"false" json:"localDisks"` + + // The aggregate size of all local disks, in gigabytes. + // If the instance does not have any local disks, this field is `null`. + LocalDisksTotalSizeInGBs *float32 `mandatory:"false" json:"localDisksTotalSizeInGBs"` + + // A short description of the local disks available to this instance. + // If the instance does not have any local disks, this field is `null`. + LocalDiskDescription *string `mandatory:"false" json:"localDiskDescription"` +} + +func (m InstanceShapeConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceShapeConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingInstanceShapeConfigBaselineOcpuUtilizationEnum(string(m.BaselineOcpuUtilization)); !ok && m.BaselineOcpuUtilization != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BaselineOcpuUtilization: %s. Supported values are: %s.", m.BaselineOcpuUtilization, strings.Join(GetInstanceShapeConfigBaselineOcpuUtilizationEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InstanceShapeConfigBaselineOcpuUtilizationEnum Enum with underlying type: string +type InstanceShapeConfigBaselineOcpuUtilizationEnum string + +// Set of constants representing the allowable values for InstanceShapeConfigBaselineOcpuUtilizationEnum +const ( + InstanceShapeConfigBaselineOcpuUtilization8 InstanceShapeConfigBaselineOcpuUtilizationEnum = "BASELINE_1_8" + InstanceShapeConfigBaselineOcpuUtilization2 InstanceShapeConfigBaselineOcpuUtilizationEnum = "BASELINE_1_2" + InstanceShapeConfigBaselineOcpuUtilization1 InstanceShapeConfigBaselineOcpuUtilizationEnum = "BASELINE_1_1" +) + +var mappingInstanceShapeConfigBaselineOcpuUtilizationEnum = map[string]InstanceShapeConfigBaselineOcpuUtilizationEnum{ + "BASELINE_1_8": InstanceShapeConfigBaselineOcpuUtilization8, + "BASELINE_1_2": InstanceShapeConfigBaselineOcpuUtilization2, + "BASELINE_1_1": InstanceShapeConfigBaselineOcpuUtilization1, +} + +var mappingInstanceShapeConfigBaselineOcpuUtilizationEnumLowerCase = map[string]InstanceShapeConfigBaselineOcpuUtilizationEnum{ + "baseline_1_8": InstanceShapeConfigBaselineOcpuUtilization8, + "baseline_1_2": InstanceShapeConfigBaselineOcpuUtilization2, + "baseline_1_1": InstanceShapeConfigBaselineOcpuUtilization1, +} + +// GetInstanceShapeConfigBaselineOcpuUtilizationEnumValues Enumerates the set of values for InstanceShapeConfigBaselineOcpuUtilizationEnum +func GetInstanceShapeConfigBaselineOcpuUtilizationEnumValues() []InstanceShapeConfigBaselineOcpuUtilizationEnum { + values := make([]InstanceShapeConfigBaselineOcpuUtilizationEnum, 0) + for _, v := range mappingInstanceShapeConfigBaselineOcpuUtilizationEnum { + values = append(values, v) + } + return values +} + +// GetInstanceShapeConfigBaselineOcpuUtilizationEnumStringValues Enumerates the set of values in String for InstanceShapeConfigBaselineOcpuUtilizationEnum +func GetInstanceShapeConfigBaselineOcpuUtilizationEnumStringValues() []string { + return []string{ + "BASELINE_1_8", + "BASELINE_1_2", + "BASELINE_1_1", + } +} + +// GetMappingInstanceShapeConfigBaselineOcpuUtilizationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInstanceShapeConfigBaselineOcpuUtilizationEnum(val string) (InstanceShapeConfigBaselineOcpuUtilizationEnum, bool) { + enum, ok := mappingInstanceShapeConfigBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_details.go new file mode 100644 index 0000000000..efc874fa7c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_details.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceSourceDetails The representation of InstanceSourceDetails +type InstanceSourceDetails interface { +} + +type instancesourcedetails struct { + JsonData []byte + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *instancesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerinstancesourcedetails instancesourcedetails + s := struct { + Model Unmarshalerinstancesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *instancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "image": + mm := InstanceSourceViaImageDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "bootVolume": + mm := InstanceSourceViaBootVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for InstanceSourceDetails: %s.", m.SourceType) + return *m, nil + } +} + +func (m instancesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m instancesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_boot_volume_details.go new file mode 100644 index 0000000000..917faa4c74 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_boot_volume_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceSourceViaBootVolumeDetails The representation of InstanceSourceViaBootVolumeDetails +type InstanceSourceViaBootVolumeDetails struct { + + // The OCID of the boot volume used to boot the instance. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` +} + +func (m InstanceSourceViaBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceSourceViaBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceSourceViaBootVolumeDetails InstanceSourceViaBootVolumeDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeInstanceSourceViaBootVolumeDetails + }{ + "bootVolume", + (MarshalTypeInstanceSourceViaBootVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_image_details.go new file mode 100644 index 0000000000..42ed3acdbf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_source_via_image_details.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceSourceViaImageDetails The representation of InstanceSourceViaImageDetails +type InstanceSourceViaImageDetails struct { + + // The OCID of the image used to boot the instance. + ImageId *string `mandatory:"true" json:"imageId"` + + // The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 32,768 GB (32 TB). + BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` + + // The OCID of the Vault service key to assign as the master encryption key for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For volumes with the auto-tuned performance feature enabled, this is set to the default (minimum) VPUs/GB. + BootVolumeVpusPerGB *int64 `mandatory:"false" json:"bootVolumeVpusPerGB"` +} + +func (m InstanceSourceViaImageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceSourceViaImageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInstanceSourceViaImageDetails InstanceSourceViaImageDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeInstanceSourceViaImageDetails + }{ + "image", + (MarshalTypeInstanceSourceViaImageDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_summary.go new file mode 100644 index 0000000000..8cff00b8c6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/instance_summary.go @@ -0,0 +1,77 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InstanceSummary Condensed instance data when listing instances in an instance pool. +type InstanceSummary struct { + + // The OCID of the instance. + Id *string `mandatory:"true" json:"id"` + + // The availability domain the instance is running in. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the instance. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the instance confgiuration used to create the instance. + InstanceConfigurationId *string `mandatory:"true" json:"instanceConfigurationId"` + + // The region that contains the availability domain the instance is running in. + Region *string `mandatory:"true" json:"region"` + + // The current state of the instance pool instance. + State *string `mandatory:"true" json:"state"` + + // The date and time the instance pool instance was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The fault domain the instance is running in. + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + // The shape of an instance. The shape determines the number of CPUs, amount of memory, + // and other resources allocated to the instance. + // You can enumerate all available shapes by calling ListShapes. + Shape *string `mandatory:"false" json:"shape"` + + // The load balancer backends that are configured for the instance pool instance. + LoadBalancerBackends []InstancePoolInstanceLoadBalancerBackend `mandatory:"false" json:"loadBalancerBackends"` +} + +func (m InstanceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InstanceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..3a97c7d296 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_launch_instance_platform_config.go @@ -0,0 +1,155 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IntelIcelakeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with the BM.Standard3.64 shape +// or the BM.Optimized3.36 shape (the Intel Ice Lake platform). +type IntelIcelakeBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m IntelIcelakeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m IntelIcelakeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m IntelIcelakeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m IntelIcelakeBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m IntelIcelakeBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IntelIcelakeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IntelIcelakeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIntelIcelakeBmLaunchInstancePlatformConfig IntelIcelakeBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIntelIcelakeBmLaunchInstancePlatformConfig + }{ + "INTEL_ICELAKE_BM", + (MarshalTypeIntelIcelakeBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +const ( + IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1 IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS1" + IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2 IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = "NPS2" +) + +var mappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum = map[string]IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "NPS1": IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "NPS2": IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, +} + +var mappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum{ + "nps1": IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps1, + "nps2": IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketNps2, +} + +// GetIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumValues() []IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values := make([]IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum +func GetIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS1", + "NPS2", + } +} + +// GetMappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum(val string) (IntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingIntelIcelakeBmLaunchInstancePlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_platform_config.go new file mode 100644 index 0000000000..66da55d17c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_icelake_bm_platform_config.go @@ -0,0 +1,155 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IntelIcelakeBmPlatformConfig The platform configuration of a bare metal instance that uses the BM.Standard3.64 shape or the +// BM.Optimized3.36 shape (the Intel Ice Lake platform). +type IntelIcelakeBmPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + + // Whether symmetric multithreading is enabled on the instance. Symmetric multithreading is also + // called simultaneous multithreading (SMT) or Intel Hyper-Threading. + // Intel and AMD processors have two hardware execution threads per core (OCPU). SMT permits multiple + // independent threads of execution, to better use the resources and increase the efficiency + // of the CPU. When multithreading is disabled, only one thread is permitted to run on each core, which + // can provide higher or more predictable performance for some workloads. + IsSymmetricMultiThreadingEnabled *bool `mandatory:"false" json:"isSymmetricMultiThreadingEnabled"` + + // Whether the input-output memory management unit is enabled. + IsInputOutputMemoryManagementUnitEnabled *bool `mandatory:"false" json:"isInputOutputMemoryManagementUnitEnabled"` + + // The percentage of cores enabled. Value must be a multiple of 25%. If the requested percentage + // results in a fractional number of cores, the system rounds up the number of cores across processors + // and provisions an instance with a whole number of cores. + // If the applications that you run on the instance use a core-based licensing model and need fewer cores + // than the full size of the shape, you can disable cores to reduce your licensing costs. The instance + // itself is billed for the full shape, regardless of whether all cores are enabled. + PercentageOfCoresEnabled *int `mandatory:"false" json:"percentageOfCoresEnabled"` + + // The number of NUMA nodes per socket (NPS). + NumaNodesPerSocket IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum `mandatory:"false" json:"numaNodesPerSocket,omitempty"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m IntelIcelakeBmPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m IntelIcelakeBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m IntelIcelakeBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m IntelIcelakeBmPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m IntelIcelakeBmPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IntelIcelakeBmPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum(string(m.NumaNodesPerSocket)); !ok && m.NumaNodesPerSocket != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NumaNodesPerSocket: %s. Supported values are: %s.", m.NumaNodesPerSocket, strings.Join(GetIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IntelIcelakeBmPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIntelIcelakeBmPlatformConfig IntelIcelakeBmPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIntelIcelakeBmPlatformConfig + }{ + "INTEL_ICELAKE_BM", + (MarshalTypeIntelIcelakeBmPlatformConfig)(m), + } + + return json.Marshal(&s) +} + +// IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum Enum with underlying type: string +type IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum string + +// Set of constants representing the allowable values for IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum +const ( + IntelIcelakeBmPlatformConfigNumaNodesPerSocketNps1 IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum = "NPS1" + IntelIcelakeBmPlatformConfigNumaNodesPerSocketNps2 IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum = "NPS2" +) + +var mappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum = map[string]IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum{ + "NPS1": IntelIcelakeBmPlatformConfigNumaNodesPerSocketNps1, + "NPS2": IntelIcelakeBmPlatformConfigNumaNodesPerSocketNps2, +} + +var mappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumLowerCase = map[string]IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum{ + "nps1": IntelIcelakeBmPlatformConfigNumaNodesPerSocketNps1, + "nps2": IntelIcelakeBmPlatformConfigNumaNodesPerSocketNps2, +} + +// GetIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumValues Enumerates the set of values for IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum +func GetIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumValues() []IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum { + values := make([]IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum, 0) + for _, v := range mappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum { + values = append(values, v) + } + return values +} + +// GetIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumStringValues Enumerates the set of values in String for IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum +func GetIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumStringValues() []string { + return []string{ + "NPS1", + "NPS2", + } +} + +// GetMappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum(val string) (IntelIcelakeBmPlatformConfigNumaNodesPerSocketEnum, bool) { + enum, ok := mappingIntelIcelakeBmPlatformConfigNumaNodesPerSocketEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_launch_instance_platform_config.go new file mode 100644 index 0000000000..c0c91c6407 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_launch_instance_platform_config.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IntelSkylakeBmLaunchInstancePlatformConfig The platform configuration used when launching a bare metal instance with an Intel X7-based processor +// (the Intel Skylake platform). +type IntelSkylakeBmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m IntelSkylakeBmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m IntelSkylakeBmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IntelSkylakeBmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IntelSkylakeBmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIntelSkylakeBmLaunchInstancePlatformConfig IntelSkylakeBmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIntelSkylakeBmLaunchInstancePlatformConfig + }{ + "INTEL_SKYLAKE_BM", + (MarshalTypeIntelSkylakeBmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_platform_config.go new file mode 100644 index 0000000000..2ef0de2c94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_skylake_bm_platform_config.go @@ -0,0 +1,88 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IntelSkylakeBmPlatformConfig The platform configuration of a bare metal instance that uses one of the following shapes: +// BM.Standard2.52, BM.GPU2.2, BM.GPU3.8, or BM.DenseIO2.52 (the Intel Skylake platform). +type IntelSkylakeBmPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m IntelSkylakeBmPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m IntelSkylakeBmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m IntelSkylakeBmPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m IntelSkylakeBmPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m IntelSkylakeBmPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IntelSkylakeBmPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IntelSkylakeBmPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIntelSkylakeBmPlatformConfig IntelSkylakeBmPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIntelSkylakeBmPlatformConfig + }{ + "INTEL_SKYLAKE_BM", + (MarshalTypeIntelSkylakeBmPlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_launch_instance_platform_config.go new file mode 100644 index 0000000000..efe538c30c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_launch_instance_platform_config.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IntelVmLaunchInstancePlatformConfig The platform configuration used when launching a virtual machine instance with the Intel platform. +type IntelVmLaunchInstancePlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m IntelVmLaunchInstancePlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m IntelVmLaunchInstancePlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m IntelVmLaunchInstancePlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m IntelVmLaunchInstancePlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m IntelVmLaunchInstancePlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IntelVmLaunchInstancePlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IntelVmLaunchInstancePlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIntelVmLaunchInstancePlatformConfig IntelVmLaunchInstancePlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIntelVmLaunchInstancePlatformConfig + }{ + "INTEL_VM", + (MarshalTypeIntelVmLaunchInstancePlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_platform_config.go new file mode 100644 index 0000000000..abc97807f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/intel_vm_platform_config.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IntelVmPlatformConfig The platform configuration of a virtual machine instance that uses the Intel platform. +type IntelVmPlatformConfig struct { + + // Whether Secure Boot is enabled on the instance. + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + + // Whether the Measured Boot feature is enabled on the instance. + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m IntelVmPlatformConfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m IntelVmPlatformConfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m IntelVmPlatformConfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m IntelVmPlatformConfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m IntelVmPlatformConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IntelVmPlatformConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IntelVmPlatformConfig) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIntelVmPlatformConfig IntelVmPlatformConfig + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIntelVmPlatformConfig + }{ + "INTEL_VM", + (MarshalTypeIntelVmPlatformConfig)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_dns_record.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_dns_record.go new file mode 100644 index 0000000000..d4c6c8c23b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_dns_record.go @@ -0,0 +1,163 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalDnsRecord DnsRecord representing a single RRSet. +type InternalDnsRecord struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DNS record. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS record. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Internal Hosted Zone the `DnsRecord` belongs to. + InternalHostedZoneId *string `mandatory:"true" json:"internalHostedZoneId"` + + // The DnsRecord's current state. + LifecycleState InternalDnsRecordLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Name of the DnsRecord. + // -*A:* Partially Qualified DNS Name that will be mapped to the IPv4 address + Name *string `mandatory:"true" json:"name"` + + // Type of Dns Record according to RFC 1035 (https://tools.ietf.org/html/rfc1035). + // Currently supported list of types are the following. + // -*A:* Type 1, a host name to IPv4 address + Type InternalDnsRecordTypeEnum `mandatory:"true" json:"type"` + + // Value for the DnsRecord. + // -*A:* One or more IPv4 addresses. Comma separated. + Value *string `mandatory:"true" json:"value"` + + // Time to live value for the DnsRecord, according to RFC 1035 (https://tools.ietf.org/html/rfc1035). + // Defaults to 86400. + Ttl *int `mandatory:"false" json:"ttl"` +} + +func (m InternalDnsRecord) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalDnsRecord) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalDnsRecordLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalDnsRecordLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingInternalDnsRecordTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetInternalDnsRecordTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalDnsRecordLifecycleStateEnum Enum with underlying type: string +type InternalDnsRecordLifecycleStateEnum string + +// Set of constants representing the allowable values for InternalDnsRecordLifecycleStateEnum +const ( + InternalDnsRecordLifecycleStateProvisioning InternalDnsRecordLifecycleStateEnum = "PROVISIONING" + InternalDnsRecordLifecycleStateAvailable InternalDnsRecordLifecycleStateEnum = "AVAILABLE" + InternalDnsRecordLifecycleStateTerminating InternalDnsRecordLifecycleStateEnum = "TERMINATING" + InternalDnsRecordLifecycleStateTerminated InternalDnsRecordLifecycleStateEnum = "TERMINATED" +) + +var mappingInternalDnsRecordLifecycleStateEnum = map[string]InternalDnsRecordLifecycleStateEnum{ + "PROVISIONING": InternalDnsRecordLifecycleStateProvisioning, + "AVAILABLE": InternalDnsRecordLifecycleStateAvailable, + "TERMINATING": InternalDnsRecordLifecycleStateTerminating, + "TERMINATED": InternalDnsRecordLifecycleStateTerminated, +} + +var mappingInternalDnsRecordLifecycleStateEnumLowerCase = map[string]InternalDnsRecordLifecycleStateEnum{ + "provisioning": InternalDnsRecordLifecycleStateProvisioning, + "available": InternalDnsRecordLifecycleStateAvailable, + "terminating": InternalDnsRecordLifecycleStateTerminating, + "terminated": InternalDnsRecordLifecycleStateTerminated, +} + +// GetInternalDnsRecordLifecycleStateEnumValues Enumerates the set of values for InternalDnsRecordLifecycleStateEnum +func GetInternalDnsRecordLifecycleStateEnumValues() []InternalDnsRecordLifecycleStateEnum { + values := make([]InternalDnsRecordLifecycleStateEnum, 0) + for _, v := range mappingInternalDnsRecordLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternalDnsRecordLifecycleStateEnumStringValues Enumerates the set of values in String for InternalDnsRecordLifecycleStateEnum +func GetInternalDnsRecordLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInternalDnsRecordLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalDnsRecordLifecycleStateEnum(val string) (InternalDnsRecordLifecycleStateEnum, bool) { + enum, ok := mappingInternalDnsRecordLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalDnsRecordTypeEnum Enum with underlying type: string +type InternalDnsRecordTypeEnum string + +// Set of constants representing the allowable values for InternalDnsRecordTypeEnum +const ( + InternalDnsRecordTypeA InternalDnsRecordTypeEnum = "A" +) + +var mappingInternalDnsRecordTypeEnum = map[string]InternalDnsRecordTypeEnum{ + "A": InternalDnsRecordTypeA, +} + +var mappingInternalDnsRecordTypeEnumLowerCase = map[string]InternalDnsRecordTypeEnum{ + "a": InternalDnsRecordTypeA, +} + +// GetInternalDnsRecordTypeEnumValues Enumerates the set of values for InternalDnsRecordTypeEnum +func GetInternalDnsRecordTypeEnumValues() []InternalDnsRecordTypeEnum { + values := make([]InternalDnsRecordTypeEnum, 0) + for _, v := range mappingInternalDnsRecordTypeEnum { + values = append(values, v) + } + return values +} + +// GetInternalDnsRecordTypeEnumStringValues Enumerates the set of values in String for InternalDnsRecordTypeEnum +func GetInternalDnsRecordTypeEnumStringValues() []string { + return []string{ + "A", + } +} + +// GetMappingInternalDnsRecordTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalDnsRecordTypeEnum(val string) (InternalDnsRecordTypeEnum, bool) { + enum, ok := mappingInternalDnsRecordTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg.go new file mode 100644 index 0000000000..a13e20ea9e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg.go @@ -0,0 +1,190 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalDrg A dynamic routing gateway (DRG), which is a virtual router that provides a path for private +// network traffic between your VCN and your existing network. You use it with other Networking +// Service components to create a Site-to-Site VPN or a connection that uses +// Oracle Cloud Infrastructure FastConnect. For more information, see +// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type InternalDrg struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The DRG's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The DRG's current state. + LifecycleState InternalDrgLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Anycast IP of the El Paso fleet handling the ingress traffic. + IngressIP *string `mandatory:"true" json:"ingressIP"` + + // Anycast IP of the El Paso fleet handling the egress traffic. + EgressIP *string `mandatory:"true" json:"egressIP"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The date and time the DRG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Route data for the Drg. + RouteData *string `mandatory:"false" json:"routeData"` + + // NextHop target's MPLS label. + MplsLabel *string `mandatory:"false" json:"mplsLabel"` + + // The string in the form ASN:mplsLabel. + RouteTarget *string `mandatory:"false" json:"routeTarget"` + + // The type of the DRG. + DrgType InternalDrgDrgTypeEnum `mandatory:"false" json:"drgType,omitempty"` +} + +func (m InternalDrg) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalDrg) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalDrgLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalDrgLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingInternalDrgDrgTypeEnum(string(m.DrgType)); !ok && m.DrgType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DrgType: %s. Supported values are: %s.", m.DrgType, strings.Join(GetInternalDrgDrgTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalDrgLifecycleStateEnum Enum with underlying type: string +type InternalDrgLifecycleStateEnum string + +// Set of constants representing the allowable values for InternalDrgLifecycleStateEnum +const ( + InternalDrgLifecycleStateProvisioning InternalDrgLifecycleStateEnum = "PROVISIONING" + InternalDrgLifecycleStateAvailable InternalDrgLifecycleStateEnum = "AVAILABLE" + InternalDrgLifecycleStateTerminating InternalDrgLifecycleStateEnum = "TERMINATING" + InternalDrgLifecycleStateTerminated InternalDrgLifecycleStateEnum = "TERMINATED" +) + +var mappingInternalDrgLifecycleStateEnum = map[string]InternalDrgLifecycleStateEnum{ + "PROVISIONING": InternalDrgLifecycleStateProvisioning, + "AVAILABLE": InternalDrgLifecycleStateAvailable, + "TERMINATING": InternalDrgLifecycleStateTerminating, + "TERMINATED": InternalDrgLifecycleStateTerminated, +} + +var mappingInternalDrgLifecycleStateEnumLowerCase = map[string]InternalDrgLifecycleStateEnum{ + "provisioning": InternalDrgLifecycleStateProvisioning, + "available": InternalDrgLifecycleStateAvailable, + "terminating": InternalDrgLifecycleStateTerminating, + "terminated": InternalDrgLifecycleStateTerminated, +} + +// GetInternalDrgLifecycleStateEnumValues Enumerates the set of values for InternalDrgLifecycleStateEnum +func GetInternalDrgLifecycleStateEnumValues() []InternalDrgLifecycleStateEnum { + values := make([]InternalDrgLifecycleStateEnum, 0) + for _, v := range mappingInternalDrgLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternalDrgLifecycleStateEnumStringValues Enumerates the set of values in String for InternalDrgLifecycleStateEnum +func GetInternalDrgLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInternalDrgLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalDrgLifecycleStateEnum(val string) (InternalDrgLifecycleStateEnum, bool) { + enum, ok := mappingInternalDrgLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalDrgDrgTypeEnum Enum with underlying type: string +type InternalDrgDrgTypeEnum string + +// Set of constants representing the allowable values for InternalDrgDrgTypeEnum +const ( + InternalDrgDrgTypeClassical InternalDrgDrgTypeEnum = "DRG_CLASSICAL" + InternalDrgDrgTypeTransitHub InternalDrgDrgTypeEnum = "DRG_TRANSIT_HUB" +) + +var mappingInternalDrgDrgTypeEnum = map[string]InternalDrgDrgTypeEnum{ + "DRG_CLASSICAL": InternalDrgDrgTypeClassical, + "DRG_TRANSIT_HUB": InternalDrgDrgTypeTransitHub, +} + +var mappingInternalDrgDrgTypeEnumLowerCase = map[string]InternalDrgDrgTypeEnum{ + "drg_classical": InternalDrgDrgTypeClassical, + "drg_transit_hub": InternalDrgDrgTypeTransitHub, +} + +// GetInternalDrgDrgTypeEnumValues Enumerates the set of values for InternalDrgDrgTypeEnum +func GetInternalDrgDrgTypeEnumValues() []InternalDrgDrgTypeEnum { + values := make([]InternalDrgDrgTypeEnum, 0) + for _, v := range mappingInternalDrgDrgTypeEnum { + values = append(values, v) + } + return values +} + +// GetInternalDrgDrgTypeEnumStringValues Enumerates the set of values in String for InternalDrgDrgTypeEnum +func GetInternalDrgDrgTypeEnumStringValues() []string { + return []string{ + "DRG_CLASSICAL", + "DRG_TRANSIT_HUB", + } +} + +// GetMappingInternalDrgDrgTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalDrgDrgTypeEnum(val string) (InternalDrgDrgTypeEnum, bool) { + enum, ok := mappingInternalDrgDrgTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_attachment.go new file mode 100644 index 0000000000..4abcecc502 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_attachment.go @@ -0,0 +1,126 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalDrgAttachment A link between a DRG and VCN. For more information, see +// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +type InternalDrgAttachment struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the DRG attachment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The DRG attachment's current state. + LifecycleState InternalDrgAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"true" json:"vcnId"` + + // NextHop target's MPLS label. + MplsLabel *string `mandatory:"true" json:"mplsLabel"` + + // The string in the form ASN:mplsLabel. + RouteTarget *string `mandatory:"true" json:"routeTarget"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // The date and time the DRG attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m InternalDrgAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalDrgAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalDrgAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalDrgAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalDrgAttachmentLifecycleStateEnum Enum with underlying type: string +type InternalDrgAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for InternalDrgAttachmentLifecycleStateEnum +const ( + InternalDrgAttachmentLifecycleStateAttaching InternalDrgAttachmentLifecycleStateEnum = "ATTACHING" + InternalDrgAttachmentLifecycleStateAttached InternalDrgAttachmentLifecycleStateEnum = "ATTACHED" + InternalDrgAttachmentLifecycleStateDetaching InternalDrgAttachmentLifecycleStateEnum = "DETACHING" + InternalDrgAttachmentLifecycleStateDetached InternalDrgAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingInternalDrgAttachmentLifecycleStateEnum = map[string]InternalDrgAttachmentLifecycleStateEnum{ + "ATTACHING": InternalDrgAttachmentLifecycleStateAttaching, + "ATTACHED": InternalDrgAttachmentLifecycleStateAttached, + "DETACHING": InternalDrgAttachmentLifecycleStateDetaching, + "DETACHED": InternalDrgAttachmentLifecycleStateDetached, +} + +var mappingInternalDrgAttachmentLifecycleStateEnumLowerCase = map[string]InternalDrgAttachmentLifecycleStateEnum{ + "attaching": InternalDrgAttachmentLifecycleStateAttaching, + "attached": InternalDrgAttachmentLifecycleStateAttached, + "detaching": InternalDrgAttachmentLifecycleStateDetaching, + "detached": InternalDrgAttachmentLifecycleStateDetached, +} + +// GetInternalDrgAttachmentLifecycleStateEnumValues Enumerates the set of values for InternalDrgAttachmentLifecycleStateEnum +func GetInternalDrgAttachmentLifecycleStateEnumValues() []InternalDrgAttachmentLifecycleStateEnum { + values := make([]InternalDrgAttachmentLifecycleStateEnum, 0) + for _, v := range mappingInternalDrgAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternalDrgAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for InternalDrgAttachmentLifecycleStateEnum +func GetInternalDrgAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingInternalDrgAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalDrgAttachmentLifecycleStateEnum(val string) (InternalDrgAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingInternalDrgAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_rule.go new file mode 100644 index 0000000000..dab69fe2cc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_rule.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalDrgRouteRule An internal DRG route rule is a mapping between a destination IP address range and a DRG attachment. It is used +// to offload DRG functionality (primarily routing, but up-to-and-including all additional features associated with +// DRG attachments) onto the VCN Dataplane. +type InternalDrgRouteRule struct { + + // A singular IP address range in CIDR notation used for matching destination when routing traffic. + IpPrefix *string `mandatory:"true" json:"ipPrefix"` + + // The IP address of the next hop, for the destination prefix. + NextHopIp *string `mandatory:"true" json:"nextHopIp"` + + // An encapsulation type for the traffic. + EncapType InternalDrgRouteRuleEncapTypeEnum `mandatory:"true" json:"encapType"` + + // The label used in the encapsulated packet. For MPLS_O_UDP packets, this will be the MPLS Label. For VXLAN + // packets, this will be the VNI. + EncapLabel *int `mandatory:"true" json:"encapLabel"` + + // The MAC address of the next hop. It can be integer value or string format separated by colon. + NextHopMac *string `mandatory:"false" json:"nextHopMac"` +} + +func (m InternalDrgRouteRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalDrgRouteRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalDrgRouteRuleEncapTypeEnum(string(m.EncapType)); !ok && m.EncapType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncapType: %s. Supported values are: %s.", m.EncapType, strings.Join(GetInternalDrgRouteRuleEncapTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalDrgRouteRuleEncapTypeEnum Enum with underlying type: string +type InternalDrgRouteRuleEncapTypeEnum string + +// Set of constants representing the allowable values for InternalDrgRouteRuleEncapTypeEnum +const ( + InternalDrgRouteRuleEncapTypeVxlan InternalDrgRouteRuleEncapTypeEnum = "VXLAN" + InternalDrgRouteRuleEncapTypeMplsOUdp InternalDrgRouteRuleEncapTypeEnum = "MPLS_O_UDP" +) + +var mappingInternalDrgRouteRuleEncapTypeEnum = map[string]InternalDrgRouteRuleEncapTypeEnum{ + "VXLAN": InternalDrgRouteRuleEncapTypeVxlan, + "MPLS_O_UDP": InternalDrgRouteRuleEncapTypeMplsOUdp, +} + +var mappingInternalDrgRouteRuleEncapTypeEnumLowerCase = map[string]InternalDrgRouteRuleEncapTypeEnum{ + "vxlan": InternalDrgRouteRuleEncapTypeVxlan, + "mpls_o_udp": InternalDrgRouteRuleEncapTypeMplsOUdp, +} + +// GetInternalDrgRouteRuleEncapTypeEnumValues Enumerates the set of values for InternalDrgRouteRuleEncapTypeEnum +func GetInternalDrgRouteRuleEncapTypeEnumValues() []InternalDrgRouteRuleEncapTypeEnum { + values := make([]InternalDrgRouteRuleEncapTypeEnum, 0) + for _, v := range mappingInternalDrgRouteRuleEncapTypeEnum { + values = append(values, v) + } + return values +} + +// GetInternalDrgRouteRuleEncapTypeEnumStringValues Enumerates the set of values in String for InternalDrgRouteRuleEncapTypeEnum +func GetInternalDrgRouteRuleEncapTypeEnumStringValues() []string { + return []string{ + "VXLAN", + "MPLS_O_UDP", + } +} + +// GetMappingInternalDrgRouteRuleEncapTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalDrgRouteRuleEncapTypeEnum(val string) (InternalDrgRouteRuleEncapTypeEnum, bool) { + enum, ok := mappingInternalDrgRouteRuleEncapTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_table.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_table.go new file mode 100644 index 0000000000..0f1037e1cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_drg_route_table.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalDrgRouteTable A collection of `InternalDrgRouteRule` objects. It is used to offload DRG functionality (primarily routing, but +// up-to-and-including all additional features associated with DRG attachments) onto the VCN Dataplane. +type InternalDrgRouteTable struct { + + // The label of the drg attachment. + DrgAttachmentLabel *int64 `mandatory:"true" json:"drgAttachmentLabel"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG which contains this route table. + DrgId *string `mandatory:"true" json:"drgId"` + + // The collection of rules which will be used by VCN Dataplane to route DRG traffic. + Rules []InternalDrgRouteRule `mandatory:"true" json:"rules"` +} + +func (m InternalDrgRouteTable) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalDrgRouteTable) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_generic_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_generic_gateway.go new file mode 100644 index 0000000000..10e5a819a6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_generic_gateway.go @@ -0,0 +1,203 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalGenericGateway An internal generic gateway. +type InternalGenericGateway struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the generic gateway. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the gateway's compartment. + GatewayCompartmentId *string `mandatory:"true" json:"gatewayCompartmentId"` + + // Information required to fill headers of packets to be sent to the gateway. + GatewayHeaderData *int64 `mandatory:"true" json:"gatewayHeaderData"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the real gateway that this generic gateway stands for. + GatewayId *string `mandatory:"true" json:"gatewayId"` + + // They type of the gateway. + GatewayType InternalGenericGatewayGatewayTypeEnum `mandatory:"true" json:"gatewayType"` + + // The current state of the generic gateway. + LifecycleState InternalGenericGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // IP addresses of the gateway. + GatewayIpAddresses []string `mandatory:"false" json:"gatewayIpAddresses"` + + // Tuples, mapping AD and regional identifiers to the corresponding routing data + GatewayRouteMap []GatewayRouteData `mandatory:"false" json:"gatewayRouteMap"` + + // Creation time of the entity. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the generic gateway belongs to. + VcnId *string `mandatory:"false" json:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table associated with the gateway + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource T + // ags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m InternalGenericGateway) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalGenericGateway) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalGenericGatewayGatewayTypeEnum(string(m.GatewayType)); !ok && m.GatewayType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for GatewayType: %s. Supported values are: %s.", m.GatewayType, strings.Join(GetInternalGenericGatewayGatewayTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingInternalGenericGatewayLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalGenericGatewayLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalGenericGatewayGatewayTypeEnum Enum with underlying type: string +type InternalGenericGatewayGatewayTypeEnum string + +// Set of constants representing the allowable values for InternalGenericGatewayGatewayTypeEnum +const ( + InternalGenericGatewayGatewayTypeServicegateway InternalGenericGatewayGatewayTypeEnum = "SERVICEGATEWAY" + InternalGenericGatewayGatewayTypeNatgateway InternalGenericGatewayGatewayTypeEnum = "NATGATEWAY" + InternalGenericGatewayGatewayTypePrivateaccessgateway InternalGenericGatewayGatewayTypeEnum = "PRIVATEACCESSGATEWAY" +) + +var mappingInternalGenericGatewayGatewayTypeEnum = map[string]InternalGenericGatewayGatewayTypeEnum{ + "SERVICEGATEWAY": InternalGenericGatewayGatewayTypeServicegateway, + "NATGATEWAY": InternalGenericGatewayGatewayTypeNatgateway, + "PRIVATEACCESSGATEWAY": InternalGenericGatewayGatewayTypePrivateaccessgateway, +} + +var mappingInternalGenericGatewayGatewayTypeEnumLowerCase = map[string]InternalGenericGatewayGatewayTypeEnum{ + "servicegateway": InternalGenericGatewayGatewayTypeServicegateway, + "natgateway": InternalGenericGatewayGatewayTypeNatgateway, + "privateaccessgateway": InternalGenericGatewayGatewayTypePrivateaccessgateway, +} + +// GetInternalGenericGatewayGatewayTypeEnumValues Enumerates the set of values for InternalGenericGatewayGatewayTypeEnum +func GetInternalGenericGatewayGatewayTypeEnumValues() []InternalGenericGatewayGatewayTypeEnum { + values := make([]InternalGenericGatewayGatewayTypeEnum, 0) + for _, v := range mappingInternalGenericGatewayGatewayTypeEnum { + values = append(values, v) + } + return values +} + +// GetInternalGenericGatewayGatewayTypeEnumStringValues Enumerates the set of values in String for InternalGenericGatewayGatewayTypeEnum +func GetInternalGenericGatewayGatewayTypeEnumStringValues() []string { + return []string{ + "SERVICEGATEWAY", + "NATGATEWAY", + "PRIVATEACCESSGATEWAY", + } +} + +// GetMappingInternalGenericGatewayGatewayTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalGenericGatewayGatewayTypeEnum(val string) (InternalGenericGatewayGatewayTypeEnum, bool) { + enum, ok := mappingInternalGenericGatewayGatewayTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalGenericGatewayLifecycleStateEnum Enum with underlying type: string +type InternalGenericGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for InternalGenericGatewayLifecycleStateEnum +const ( + InternalGenericGatewayLifecycleStateProvisioning InternalGenericGatewayLifecycleStateEnum = "PROVISIONING" + InternalGenericGatewayLifecycleStateAvailable InternalGenericGatewayLifecycleStateEnum = "AVAILABLE" + InternalGenericGatewayLifecycleStateAttaching InternalGenericGatewayLifecycleStateEnum = "ATTACHING" + InternalGenericGatewayLifecycleStateAttached InternalGenericGatewayLifecycleStateEnum = "ATTACHED" + InternalGenericGatewayLifecycleStateDetaching InternalGenericGatewayLifecycleStateEnum = "DETACHING" + InternalGenericGatewayLifecycleStateDetached InternalGenericGatewayLifecycleStateEnum = "DETACHED" + InternalGenericGatewayLifecycleStateTerminating InternalGenericGatewayLifecycleStateEnum = "TERMINATING" + InternalGenericGatewayLifecycleStateTerminated InternalGenericGatewayLifecycleStateEnum = "TERMINATED" +) + +var mappingInternalGenericGatewayLifecycleStateEnum = map[string]InternalGenericGatewayLifecycleStateEnum{ + "PROVISIONING": InternalGenericGatewayLifecycleStateProvisioning, + "AVAILABLE": InternalGenericGatewayLifecycleStateAvailable, + "ATTACHING": InternalGenericGatewayLifecycleStateAttaching, + "ATTACHED": InternalGenericGatewayLifecycleStateAttached, + "DETACHING": InternalGenericGatewayLifecycleStateDetaching, + "DETACHED": InternalGenericGatewayLifecycleStateDetached, + "TERMINATING": InternalGenericGatewayLifecycleStateTerminating, + "TERMINATED": InternalGenericGatewayLifecycleStateTerminated, +} + +var mappingInternalGenericGatewayLifecycleStateEnumLowerCase = map[string]InternalGenericGatewayLifecycleStateEnum{ + "provisioning": InternalGenericGatewayLifecycleStateProvisioning, + "available": InternalGenericGatewayLifecycleStateAvailable, + "attaching": InternalGenericGatewayLifecycleStateAttaching, + "attached": InternalGenericGatewayLifecycleStateAttached, + "detaching": InternalGenericGatewayLifecycleStateDetaching, + "detached": InternalGenericGatewayLifecycleStateDetached, + "terminating": InternalGenericGatewayLifecycleStateTerminating, + "terminated": InternalGenericGatewayLifecycleStateTerminated, +} + +// GetInternalGenericGatewayLifecycleStateEnumValues Enumerates the set of values for InternalGenericGatewayLifecycleStateEnum +func GetInternalGenericGatewayLifecycleStateEnumValues() []InternalGenericGatewayLifecycleStateEnum { + values := make([]InternalGenericGatewayLifecycleStateEnum, 0) + for _, v := range mappingInternalGenericGatewayLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternalGenericGatewayLifecycleStateEnumStringValues Enumerates the set of values in String for InternalGenericGatewayLifecycleStateEnum +func GetInternalGenericGatewayLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInternalGenericGatewayLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalGenericGatewayLifecycleStateEnum(val string) (InternalGenericGatewayLifecycleStateEnum, bool) { + enum, ok := mappingInternalGenericGatewayLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_public_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_public_ip.go new file mode 100644 index 0000000000..7bb580f485 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_public_ip.go @@ -0,0 +1,332 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalPublicIp A model for public IPs that are for internal use +// A *public IP* is a conceptual term that refers to a public IP address and related properties. +// The `publicIp` object is the API representation of a public IP. +// There are two types of public IPs: +// 1. Ephemeral +// 2. Reserved +// For more information and comparison of the two types, +// see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). +type InternalPublicIp struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP. For an ephemeral public IP, this is + // the compartment of its assigned entity (which can be a private IP or a regional entity such + // as a NAT gateway). For a reserved public IP that is currently assigned, + // its compartment can be different from the assigned private IP's. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The public IP's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // Defines when the public IP is deleted and released back to Oracle's public IP pool. + // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned entity. An ephemeral + // public IP must always be assigned to an entity. If the assigned entity is a private IP, + // the ephemeral public IP is automatically deleted when the private IP is deleted, when + // the VNIC is terminated, or when the instance is terminated. If the assigned entity is a + // NatGateway, the ephemeral public IP is automatically + // deleted when the NAT gateway is terminated. + // * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP + // whenever you like. It does not need to be assigned to a private IP at all times. + // For more information and comparison of the two types, + // see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). + Lifetime InternalPublicIpLifetimeEnum `mandatory:"true" json:"lifetime"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity the public IP is assigned to, or in the process of + // being assigned to. + AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` + + // The type of entity the public IP is assigned to, or in the process of being + // assigned to. + AssignedEntityType InternalPublicIpAssignedEntityTypeEnum `mandatory:"false" json:"assignedEntityType,omitempty"` + + // The public IP's availability domain. This property is set only for ephemeral public IPs + // that are assigned to a private IP (that is, when the `scope` of the public IP is set to + // AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The public IP address of the `publicIp` object. + // Example: `203.0.113.2` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The public IP's current state. + LifecycleState InternalPublicIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Deprecated. Use `assignedEntityId` instead. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is currently assigned to, or in the + // process of being assigned to. + // **Note:** This is `null` if the public IP is not assigned to a private IP, or is + // in the process of being assigned to one. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` + + // Whether the public IP is regional or specific to a particular availability domain. + // * `REGION`: The public IP exists within a region and is assigned to a regional entity + // (such as a NatGateway), or can be assigned to a private + // IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs + // assigned to a regional entity have `scope` = `REGION`. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity + // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. + // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. + Scope InternalPublicIpScopeEnum `mandatory:"false" json:"scope,omitempty"` + + // The date and time the public IP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created in the current tenancy. + PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` +} + +func (m InternalPublicIp) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalPublicIp) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalPublicIpLifetimeEnum(string(m.Lifetime)); !ok && m.Lifetime != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Lifetime: %s. Supported values are: %s.", m.Lifetime, strings.Join(GetInternalPublicIpLifetimeEnumStringValues(), ","))) + } + + if _, ok := GetMappingInternalPublicIpAssignedEntityTypeEnum(string(m.AssignedEntityType)); !ok && m.AssignedEntityType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AssignedEntityType: %s. Supported values are: %s.", m.AssignedEntityType, strings.Join(GetInternalPublicIpAssignedEntityTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingInternalPublicIpLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalPublicIpLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingInternalPublicIpScopeEnum(string(m.Scope)); !ok && m.Scope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Scope: %s. Supported values are: %s.", m.Scope, strings.Join(GetInternalPublicIpScopeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalPublicIpAssignedEntityTypeEnum Enum with underlying type: string +type InternalPublicIpAssignedEntityTypeEnum string + +// Set of constants representing the allowable values for InternalPublicIpAssignedEntityTypeEnum +const ( + InternalPublicIpAssignedEntityTypePrivateIp InternalPublicIpAssignedEntityTypeEnum = "PRIVATE_IP" + InternalPublicIpAssignedEntityTypeNatGateway InternalPublicIpAssignedEntityTypeEnum = "NAT_GATEWAY" +) + +var mappingInternalPublicIpAssignedEntityTypeEnum = map[string]InternalPublicIpAssignedEntityTypeEnum{ + "PRIVATE_IP": InternalPublicIpAssignedEntityTypePrivateIp, + "NAT_GATEWAY": InternalPublicIpAssignedEntityTypeNatGateway, +} + +var mappingInternalPublicIpAssignedEntityTypeEnumLowerCase = map[string]InternalPublicIpAssignedEntityTypeEnum{ + "private_ip": InternalPublicIpAssignedEntityTypePrivateIp, + "nat_gateway": InternalPublicIpAssignedEntityTypeNatGateway, +} + +// GetInternalPublicIpAssignedEntityTypeEnumValues Enumerates the set of values for InternalPublicIpAssignedEntityTypeEnum +func GetInternalPublicIpAssignedEntityTypeEnumValues() []InternalPublicIpAssignedEntityTypeEnum { + values := make([]InternalPublicIpAssignedEntityTypeEnum, 0) + for _, v := range mappingInternalPublicIpAssignedEntityTypeEnum { + values = append(values, v) + } + return values +} + +// GetInternalPublicIpAssignedEntityTypeEnumStringValues Enumerates the set of values in String for InternalPublicIpAssignedEntityTypeEnum +func GetInternalPublicIpAssignedEntityTypeEnumStringValues() []string { + return []string{ + "PRIVATE_IP", + "NAT_GATEWAY", + } +} + +// GetMappingInternalPublicIpAssignedEntityTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalPublicIpAssignedEntityTypeEnum(val string) (InternalPublicIpAssignedEntityTypeEnum, bool) { + enum, ok := mappingInternalPublicIpAssignedEntityTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalPublicIpLifecycleStateEnum Enum with underlying type: string +type InternalPublicIpLifecycleStateEnum string + +// Set of constants representing the allowable values for InternalPublicIpLifecycleStateEnum +const ( + InternalPublicIpLifecycleStateProvisioning InternalPublicIpLifecycleStateEnum = "PROVISIONING" + InternalPublicIpLifecycleStateAvailable InternalPublicIpLifecycleStateEnum = "AVAILABLE" + InternalPublicIpLifecycleStateAssigning InternalPublicIpLifecycleStateEnum = "ASSIGNING" + InternalPublicIpLifecycleStateAssigned InternalPublicIpLifecycleStateEnum = "ASSIGNED" + InternalPublicIpLifecycleStateUnassigning InternalPublicIpLifecycleStateEnum = "UNASSIGNING" + InternalPublicIpLifecycleStateUnassigned InternalPublicIpLifecycleStateEnum = "UNASSIGNED" + InternalPublicIpLifecycleStateTerminating InternalPublicIpLifecycleStateEnum = "TERMINATING" + InternalPublicIpLifecycleStateTerminated InternalPublicIpLifecycleStateEnum = "TERMINATED" +) + +var mappingInternalPublicIpLifecycleStateEnum = map[string]InternalPublicIpLifecycleStateEnum{ + "PROVISIONING": InternalPublicIpLifecycleStateProvisioning, + "AVAILABLE": InternalPublicIpLifecycleStateAvailable, + "ASSIGNING": InternalPublicIpLifecycleStateAssigning, + "ASSIGNED": InternalPublicIpLifecycleStateAssigned, + "UNASSIGNING": InternalPublicIpLifecycleStateUnassigning, + "UNASSIGNED": InternalPublicIpLifecycleStateUnassigned, + "TERMINATING": InternalPublicIpLifecycleStateTerminating, + "TERMINATED": InternalPublicIpLifecycleStateTerminated, +} + +var mappingInternalPublicIpLifecycleStateEnumLowerCase = map[string]InternalPublicIpLifecycleStateEnum{ + "provisioning": InternalPublicIpLifecycleStateProvisioning, + "available": InternalPublicIpLifecycleStateAvailable, + "assigning": InternalPublicIpLifecycleStateAssigning, + "assigned": InternalPublicIpLifecycleStateAssigned, + "unassigning": InternalPublicIpLifecycleStateUnassigning, + "unassigned": InternalPublicIpLifecycleStateUnassigned, + "terminating": InternalPublicIpLifecycleStateTerminating, + "terminated": InternalPublicIpLifecycleStateTerminated, +} + +// GetInternalPublicIpLifecycleStateEnumValues Enumerates the set of values for InternalPublicIpLifecycleStateEnum +func GetInternalPublicIpLifecycleStateEnumValues() []InternalPublicIpLifecycleStateEnum { + values := make([]InternalPublicIpLifecycleStateEnum, 0) + for _, v := range mappingInternalPublicIpLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternalPublicIpLifecycleStateEnumStringValues Enumerates the set of values in String for InternalPublicIpLifecycleStateEnum +func GetInternalPublicIpLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "ASSIGNING", + "ASSIGNED", + "UNASSIGNING", + "UNASSIGNED", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInternalPublicIpLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalPublicIpLifecycleStateEnum(val string) (InternalPublicIpLifecycleStateEnum, bool) { + enum, ok := mappingInternalPublicIpLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalPublicIpLifetimeEnum Enum with underlying type: string +type InternalPublicIpLifetimeEnum string + +// Set of constants representing the allowable values for InternalPublicIpLifetimeEnum +const ( + InternalPublicIpLifetimeEphemeral InternalPublicIpLifetimeEnum = "EPHEMERAL" + InternalPublicIpLifetimeReserved InternalPublicIpLifetimeEnum = "RESERVED" +) + +var mappingInternalPublicIpLifetimeEnum = map[string]InternalPublicIpLifetimeEnum{ + "EPHEMERAL": InternalPublicIpLifetimeEphemeral, + "RESERVED": InternalPublicIpLifetimeReserved, +} + +var mappingInternalPublicIpLifetimeEnumLowerCase = map[string]InternalPublicIpLifetimeEnum{ + "ephemeral": InternalPublicIpLifetimeEphemeral, + "reserved": InternalPublicIpLifetimeReserved, +} + +// GetInternalPublicIpLifetimeEnumValues Enumerates the set of values for InternalPublicIpLifetimeEnum +func GetInternalPublicIpLifetimeEnumValues() []InternalPublicIpLifetimeEnum { + values := make([]InternalPublicIpLifetimeEnum, 0) + for _, v := range mappingInternalPublicIpLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetInternalPublicIpLifetimeEnumStringValues Enumerates the set of values in String for InternalPublicIpLifetimeEnum +func GetInternalPublicIpLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingInternalPublicIpLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalPublicIpLifetimeEnum(val string) (InternalPublicIpLifetimeEnum, bool) { + enum, ok := mappingInternalPublicIpLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalPublicIpScopeEnum Enum with underlying type: string +type InternalPublicIpScopeEnum string + +// Set of constants representing the allowable values for InternalPublicIpScopeEnum +const ( + InternalPublicIpScopeRegion InternalPublicIpScopeEnum = "REGION" + InternalPublicIpScopeAvailabilityDomain InternalPublicIpScopeEnum = "AVAILABILITY_DOMAIN" +) + +var mappingInternalPublicIpScopeEnum = map[string]InternalPublicIpScopeEnum{ + "REGION": InternalPublicIpScopeRegion, + "AVAILABILITY_DOMAIN": InternalPublicIpScopeAvailabilityDomain, +} + +var mappingInternalPublicIpScopeEnumLowerCase = map[string]InternalPublicIpScopeEnum{ + "region": InternalPublicIpScopeRegion, + "availability_domain": InternalPublicIpScopeAvailabilityDomain, +} + +// GetInternalPublicIpScopeEnumValues Enumerates the set of values for InternalPublicIpScopeEnum +func GetInternalPublicIpScopeEnumValues() []InternalPublicIpScopeEnum { + values := make([]InternalPublicIpScopeEnum, 0) + for _, v := range mappingInternalPublicIpScopeEnum { + values = append(values, v) + } + return values +} + +// GetInternalPublicIpScopeEnumStringValues Enumerates the set of values in String for InternalPublicIpScopeEnum +func GetInternalPublicIpScopeEnumStringValues() []string { + return []string{ + "REGION", + "AVAILABILITY_DOMAIN", + } +} + +// GetMappingInternalPublicIpScopeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalPublicIpScopeEnum(val string) (InternalPublicIpScopeEnum, bool) { + enum, ok := mappingInternalPublicIpScopeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_subnet.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_subnet.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/internal_subnet.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/internal_subnet.go index e6752d60b8..5bc68082e3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_subnet.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InternalSubnet A logical subdivision of a VCN. Each subnet @@ -59,6 +61,11 @@ type InternalSubnet struct { // Example: `Uocm:PHX-AD-1` AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + // The subnet's physical availability domain. This attribute will be null if this is a regional subnet + // instead of an AD-specific subnet. Oracle recommends creating regional subnets. + // Example: `PHX-AD-1` + InternalAvailabilityDomain *string `mandatory:"false" json:"internalAvailabilityDomain"` + // Defined tags for this resource. Each key is predefined and scoped to a // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` @@ -96,6 +103,9 @@ type InternalSubnet struct { // Example: `2001:0db8:0123:1111::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + // The list of all IPv6 CIDR blocks (Oracle allocated IPv6 GUA, ULA or private IPv6 CIDR blocks, BYOIPv6 CIDR blocks) for the subnet. + Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` + // For an IPv6-enabled subnet, this is the IPv6 address of the virtual router. // Example: `2001:0db8:0123:1111:89ab:cdef:1234:5678` Ipv6VirtualRouterIp *string `mandatory:"false" json:"ipv6VirtualRouterIp"` @@ -152,6 +162,21 @@ func (m InternalSubnet) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalSubnet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalSubnetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalSubnetLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // InternalSubnetLifecycleStateEnum Enum with underlying type: string type InternalSubnetLifecycleStateEnum string @@ -164,7 +189,7 @@ const ( InternalSubnetLifecycleStateUpdating InternalSubnetLifecycleStateEnum = "UPDATING" ) -var mappingInternalSubnetLifecycleState = map[string]InternalSubnetLifecycleStateEnum{ +var mappingInternalSubnetLifecycleStateEnum = map[string]InternalSubnetLifecycleStateEnum{ "PROVISIONING": InternalSubnetLifecycleStateProvisioning, "AVAILABLE": InternalSubnetLifecycleStateAvailable, "TERMINATING": InternalSubnetLifecycleStateTerminating, @@ -172,11 +197,36 @@ var mappingInternalSubnetLifecycleState = map[string]InternalSubnetLifecycleStat "UPDATING": InternalSubnetLifecycleStateUpdating, } +var mappingInternalSubnetLifecycleStateEnumLowerCase = map[string]InternalSubnetLifecycleStateEnum{ + "provisioning": InternalSubnetLifecycleStateProvisioning, + "available": InternalSubnetLifecycleStateAvailable, + "terminating": InternalSubnetLifecycleStateTerminating, + "terminated": InternalSubnetLifecycleStateTerminated, + "updating": InternalSubnetLifecycleStateUpdating, +} + // GetInternalSubnetLifecycleStateEnumValues Enumerates the set of values for InternalSubnetLifecycleStateEnum func GetInternalSubnetLifecycleStateEnumValues() []InternalSubnetLifecycleStateEnum { values := make([]InternalSubnetLifecycleStateEnum, 0) - for _, v := range mappingInternalSubnetLifecycleState { + for _, v := range mappingInternalSubnetLifecycleStateEnum { values = append(values, v) } return values } + +// GetInternalSubnetLifecycleStateEnumStringValues Enumerates the set of values in String for InternalSubnetLifecycleStateEnum +func GetInternalSubnetLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + } +} + +// GetMappingInternalSubnetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalSubnetLifecycleStateEnum(val string) (InternalSubnetLifecycleStateEnum, bool) { + enum, ok := mappingInternalSubnetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic.go index 78245791ce..b6608d6a16 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/internal_vnic.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // InternalVnic This is a vnic type only used in operations with overlay customers and RCE. @@ -64,6 +66,10 @@ type InternalVnic struct { // Indicates if this VNIC can issue GARP requests. False by default. IsGarpEnabled *bool `mandatory:"false" json:"isGarpEnabled"` + // The VNIC's physical availability domain. + // Example: `PHX-AD-1` + InternalAvailabilityDomain *string `mandatory:"false" json:"internalAvailabilityDomain"` + // Defined tags for this resource. Each key is predefined and scoped to a // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). // Example: `{"Operations": {"CostCenter": "42"}}` @@ -166,6 +172,9 @@ type InternalVnic struct { // Example: `2001:0db8:0123:4567::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + // The list of IPv6 CIDR blocks for the subnet that includes Oracle Allocated, BYOIPv6 CIDRs and ULA or Private IPv6 CIDRs. + Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` + // The IPv6 address of the virtual router. // Example: `2001:0db8:0123:4567:89ab:cdef:1234:5678` Ipv6VirtualRouterIp *string `mandatory:"false" json:"ipv6VirtualRouterIp"` @@ -175,6 +184,21 @@ func (m InternalVnic) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalVnic) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalVnicLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalVnicLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // InternalVnicLifecycleStateEnum Enum with underlying type: string type InternalVnicLifecycleStateEnum string @@ -186,18 +210,41 @@ const ( InternalVnicLifecycleStateTerminated InternalVnicLifecycleStateEnum = "TERMINATED" ) -var mappingInternalVnicLifecycleState = map[string]InternalVnicLifecycleStateEnum{ +var mappingInternalVnicLifecycleStateEnum = map[string]InternalVnicLifecycleStateEnum{ "PROVISIONING": InternalVnicLifecycleStateProvisioning, "AVAILABLE": InternalVnicLifecycleStateAvailable, "TERMINATING": InternalVnicLifecycleStateTerminating, "TERMINATED": InternalVnicLifecycleStateTerminated, } +var mappingInternalVnicLifecycleStateEnumLowerCase = map[string]InternalVnicLifecycleStateEnum{ + "provisioning": InternalVnicLifecycleStateProvisioning, + "available": InternalVnicLifecycleStateAvailable, + "terminating": InternalVnicLifecycleStateTerminating, + "terminated": InternalVnicLifecycleStateTerminated, +} + // GetInternalVnicLifecycleStateEnumValues Enumerates the set of values for InternalVnicLifecycleStateEnum func GetInternalVnicLifecycleStateEnumValues() []InternalVnicLifecycleStateEnum { values := make([]InternalVnicLifecycleStateEnum, 0) - for _, v := range mappingInternalVnicLifecycleState { + for _, v := range mappingInternalVnicLifecycleStateEnum { values = append(values, v) } return values } + +// GetInternalVnicLifecycleStateEnumStringValues Enumerates the set of values in String for InternalVnicLifecycleStateEnum +func GetInternalVnicLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInternalVnicLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalVnicLifecycleStateEnum(val string) (InternalVnicLifecycleStateEnum, bool) { + enum, ok := mappingInternalVnicLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic_attachment.go new file mode 100644 index 0000000000..90528f8bac --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internal_vnic_attachment.go @@ -0,0 +1,4350 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternalVnicAttachment Details of a service VNIC attachment or an attachment of a non-service VNIC to a compute instance. +type InternalVnicAttachment struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VNIC attachment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + Id *string `mandatory:"true" json:"id"` + + // The current state of a VNIC attachment. + LifecycleState InternalVnicAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The substrate or anycast IP address of the VNICaaS fleet that the VNIC is attached to. + SubstrateIp *string `mandatory:"true" json:"substrateIp"` + + // The date and time the VNIC attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The slot number of the VNIC. + SlotId *int `mandatory:"false" json:"slotId"` + + // Shape of VNIC that is used to allocate resource in the data plane. + VnicShape InternalVnicAttachmentVnicShapeEnum `mandatory:"false" json:"vnicShape,omitempty"` + + // The instance that a VNIC is attached to + InstanceId *string `mandatory:"false" json:"instanceId"` + + // Composite key created from SubstrateIp, and data plane IDs of VCN and VNIC + DataPlaneId *string `mandatory:"false" json:"dataPlaneId"` + + // The availability domain of a VNIC attachment + InternalAvailabilityDomain *string `mandatory:"false" json:"internalAvailabilityDomain"` + + // The Network Address Translated IP to communicate with internal services + NatIp *string `mandatory:"false" json:"natIp"` + + // The MAC address of the compute instance + OverlayMac *string `mandatory:"false" json:"overlayMac"` + + // The tag used internally to identify sending VNIC + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // Index of NIC that VNIC is attached to (OS boot order) + NicIndex *int `mandatory:"false" json:"nicIndex"` + + MigrationInfo *MigrationInfo `mandatory:"false" json:"migrationInfo"` + + // Property describing customer facing metrics + MetadataList []CfmMetadata `mandatory:"false" json:"metadataList"` +} + +func (m InternalVnicAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternalVnicAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalVnicAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternalVnicAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingInternalVnicAttachmentVnicShapeEnum(string(m.VnicShape)); !ok && m.VnicShape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VnicShape: %s. Supported values are: %s.", m.VnicShape, strings.Join(GetInternalVnicAttachmentVnicShapeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternalVnicAttachmentLifecycleStateEnum Enum with underlying type: string +type InternalVnicAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for InternalVnicAttachmentLifecycleStateEnum +const ( + InternalVnicAttachmentLifecycleStateAttaching InternalVnicAttachmentLifecycleStateEnum = "ATTACHING" + InternalVnicAttachmentLifecycleStateAttached InternalVnicAttachmentLifecycleStateEnum = "ATTACHED" + InternalVnicAttachmentLifecycleStateDetaching InternalVnicAttachmentLifecycleStateEnum = "DETACHING" + InternalVnicAttachmentLifecycleStateDetached InternalVnicAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingInternalVnicAttachmentLifecycleStateEnum = map[string]InternalVnicAttachmentLifecycleStateEnum{ + "ATTACHING": InternalVnicAttachmentLifecycleStateAttaching, + "ATTACHED": InternalVnicAttachmentLifecycleStateAttached, + "DETACHING": InternalVnicAttachmentLifecycleStateDetaching, + "DETACHED": InternalVnicAttachmentLifecycleStateDetached, +} + +var mappingInternalVnicAttachmentLifecycleStateEnumLowerCase = map[string]InternalVnicAttachmentLifecycleStateEnum{ + "attaching": InternalVnicAttachmentLifecycleStateAttaching, + "attached": InternalVnicAttachmentLifecycleStateAttached, + "detaching": InternalVnicAttachmentLifecycleStateDetaching, + "detached": InternalVnicAttachmentLifecycleStateDetached, +} + +// GetInternalVnicAttachmentLifecycleStateEnumValues Enumerates the set of values for InternalVnicAttachmentLifecycleStateEnum +func GetInternalVnicAttachmentLifecycleStateEnumValues() []InternalVnicAttachmentLifecycleStateEnum { + values := make([]InternalVnicAttachmentLifecycleStateEnum, 0) + for _, v := range mappingInternalVnicAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternalVnicAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for InternalVnicAttachmentLifecycleStateEnum +func GetInternalVnicAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingInternalVnicAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalVnicAttachmentLifecycleStateEnum(val string) (InternalVnicAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingInternalVnicAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// InternalVnicAttachmentVnicShapeEnum Enum with underlying type: string +type InternalVnicAttachmentVnicShapeEnum string + +// Set of constants representing the allowable values for InternalVnicAttachmentVnicShapeEnum +const ( + InternalVnicAttachmentVnicShapeDynamic InternalVnicAttachmentVnicShapeEnum = "DYNAMIC" + InternalVnicAttachmentVnicShapeFixed0040 InternalVnicAttachmentVnicShapeEnum = "FIXED0040" + InternalVnicAttachmentVnicShapeFixed0060 InternalVnicAttachmentVnicShapeEnum = "FIXED0060" + InternalVnicAttachmentVnicShapeFixed0060Psm InternalVnicAttachmentVnicShapeEnum = "FIXED0060_PSM" + InternalVnicAttachmentVnicShapeFixed0100 InternalVnicAttachmentVnicShapeEnum = "FIXED0100" + InternalVnicAttachmentVnicShapeFixed0120 InternalVnicAttachmentVnicShapeEnum = "FIXED0120" + InternalVnicAttachmentVnicShapeFixed01202x InternalVnicAttachmentVnicShapeEnum = "FIXED0120_2X" + InternalVnicAttachmentVnicShapeFixed0200 InternalVnicAttachmentVnicShapeEnum = "FIXED0200" + InternalVnicAttachmentVnicShapeFixed0240 InternalVnicAttachmentVnicShapeEnum = "FIXED0240" + InternalVnicAttachmentVnicShapeFixed0480 InternalVnicAttachmentVnicShapeEnum = "FIXED0480" + InternalVnicAttachmentVnicShapeEntirehost InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST" + InternalVnicAttachmentVnicShapeDynamic25g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_25G" + InternalVnicAttachmentVnicShapeFixed004025g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_25G" + InternalVnicAttachmentVnicShapeFixed010025g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_25G" + InternalVnicAttachmentVnicShapeFixed020025g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_25G" + InternalVnicAttachmentVnicShapeFixed040025g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_25G" + InternalVnicAttachmentVnicShapeFixed080025g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_25G" + InternalVnicAttachmentVnicShapeFixed160025g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_25G" + InternalVnicAttachmentVnicShapeFixed240025g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_25G" + InternalVnicAttachmentVnicShapeEntirehost25g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_25G" + InternalVnicAttachmentVnicShapeDynamicE125g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_E1_25G" + InternalVnicAttachmentVnicShapeFixed0040E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_E1_25G" + InternalVnicAttachmentVnicShapeFixed0070E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0070_E1_25G" + InternalVnicAttachmentVnicShapeFixed0140E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0140_E1_25G" + InternalVnicAttachmentVnicShapeFixed0280E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0280_E1_25G" + InternalVnicAttachmentVnicShapeFixed0560E125g InternalVnicAttachmentVnicShapeEnum = "FIXED0560_E1_25G" + InternalVnicAttachmentVnicShapeFixed1120E125g InternalVnicAttachmentVnicShapeEnum = "FIXED1120_E1_25G" + InternalVnicAttachmentVnicShapeFixed1680E125g InternalVnicAttachmentVnicShapeEnum = "FIXED1680_E1_25G" + InternalVnicAttachmentVnicShapeEntirehostE125g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_E1_25G" + InternalVnicAttachmentVnicShapeDynamicB125g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_B1_25G" + InternalVnicAttachmentVnicShapeFixed0040B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_B1_25G" + InternalVnicAttachmentVnicShapeFixed0060B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0060_B1_25G" + InternalVnicAttachmentVnicShapeFixed0120B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0120_B1_25G" + InternalVnicAttachmentVnicShapeFixed0240B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0240_B1_25G" + InternalVnicAttachmentVnicShapeFixed0480B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0480_B1_25G" + InternalVnicAttachmentVnicShapeFixed0960B125g InternalVnicAttachmentVnicShapeEnum = "FIXED0960_B1_25G" + InternalVnicAttachmentVnicShapeEntirehostB125g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_B1_25G" + InternalVnicAttachmentVnicShapeMicroVmFixed0048E125g InternalVnicAttachmentVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" + InternalVnicAttachmentVnicShapeMicroLbFixed0001E125g InternalVnicAttachmentVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" + InternalVnicAttachmentVnicShapeVnicaasFixed0200 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FIXED0200" + InternalVnicAttachmentVnicShapeVnicaasFixed0400 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FIXED0400" + InternalVnicAttachmentVnicShapeVnicaasFixed0700 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FIXED0700" + InternalVnicAttachmentVnicShapeVnicaasNlbApproved10g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" + InternalVnicAttachmentVnicShapeVnicaasNlbApproved25g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" + InternalVnicAttachmentVnicShapeVnicaasTelesis25g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_TELESIS_25G" + InternalVnicAttachmentVnicShapeVnicaasTelesis10g InternalVnicAttachmentVnicShapeEnum = "VNICAAS_TELESIS_10G" + InternalVnicAttachmentVnicShapeVnicaasAmbassadorFixed0100 InternalVnicAttachmentVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" + InternalVnicAttachmentVnicShapeVnicaasTelesisGamma InternalVnicAttachmentVnicShapeEnum = "VNICAAS_TELESIS_GAMMA" + InternalVnicAttachmentVnicShapeVnicaasPrivatedns InternalVnicAttachmentVnicShapeEnum = "VNICAAS_PRIVATEDNS" + InternalVnicAttachmentVnicShapeVnicaasFwaas InternalVnicAttachmentVnicShapeEnum = "VNICAAS_FWAAS" + InternalVnicAttachmentVnicShapeVnicaasLbaasFree InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_FREE" + InternalVnicAttachmentVnicShapeVnicaasLbaas8g512k InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_8G_512K" + InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_8G_1M" + InternalVnicAttachmentVnicShapeVnicaasLbaas8g2m InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_8G_2M" + InternalVnicAttachmentVnicShapeVnicaasLbaas8g3m InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_8G_3M" + InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m8ghost InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_8GHOST" + InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m16ghost InternalVnicAttachmentVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_16GHOST" + InternalVnicAttachmentVnicShapeDynamicE350g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_E3_50G" + InternalVnicAttachmentVnicShapeFixed0040E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_E3_50G" + InternalVnicAttachmentVnicShapeFixed0100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_E3_50G" + InternalVnicAttachmentVnicShapeFixed0200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_E3_50G" + InternalVnicAttachmentVnicShapeFixed0300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0300_E3_50G" + InternalVnicAttachmentVnicShapeFixed0400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_E3_50G" + InternalVnicAttachmentVnicShapeFixed0500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0500_E3_50G" + InternalVnicAttachmentVnicShapeFixed0600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0600_E3_50G" + InternalVnicAttachmentVnicShapeFixed0700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0700_E3_50G" + InternalVnicAttachmentVnicShapeFixed0800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_E3_50G" + InternalVnicAttachmentVnicShapeFixed0900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED0900_E3_50G" + InternalVnicAttachmentVnicShapeFixed1000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1000_E3_50G" + InternalVnicAttachmentVnicShapeFixed1100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1100_E3_50G" + InternalVnicAttachmentVnicShapeFixed1200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_E3_50G" + InternalVnicAttachmentVnicShapeFixed1300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1300_E3_50G" + InternalVnicAttachmentVnicShapeFixed1400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1400_E3_50G" + InternalVnicAttachmentVnicShapeFixed1500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1500_E3_50G" + InternalVnicAttachmentVnicShapeFixed1600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_E3_50G" + InternalVnicAttachmentVnicShapeFixed1700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1700_E3_50G" + InternalVnicAttachmentVnicShapeFixed1800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1800_E3_50G" + InternalVnicAttachmentVnicShapeFixed1900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED1900_E3_50G" + InternalVnicAttachmentVnicShapeFixed2000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_E3_50G" + InternalVnicAttachmentVnicShapeFixed2100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2100_E3_50G" + InternalVnicAttachmentVnicShapeFixed2200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2200_E3_50G" + InternalVnicAttachmentVnicShapeFixed2300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2300_E3_50G" + InternalVnicAttachmentVnicShapeFixed2400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_E3_50G" + InternalVnicAttachmentVnicShapeFixed2500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2500_E3_50G" + InternalVnicAttachmentVnicShapeFixed2600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2600_E3_50G" + InternalVnicAttachmentVnicShapeFixed2700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2700_E3_50G" + InternalVnicAttachmentVnicShapeFixed2800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_E3_50G" + InternalVnicAttachmentVnicShapeFixed2900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED2900_E3_50G" + InternalVnicAttachmentVnicShapeFixed3000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3000_E3_50G" + InternalVnicAttachmentVnicShapeFixed3100E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3100_E3_50G" + InternalVnicAttachmentVnicShapeFixed3200E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_E3_50G" + InternalVnicAttachmentVnicShapeFixed3300E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3300_E3_50G" + InternalVnicAttachmentVnicShapeFixed3400E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3400_E3_50G" + InternalVnicAttachmentVnicShapeFixed3500E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3500_E3_50G" + InternalVnicAttachmentVnicShapeFixed3600E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_E3_50G" + InternalVnicAttachmentVnicShapeFixed3700E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3700_E3_50G" + InternalVnicAttachmentVnicShapeFixed3800E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3800_E3_50G" + InternalVnicAttachmentVnicShapeFixed3900E350g InternalVnicAttachmentVnicShapeEnum = "FIXED3900_E3_50G" + InternalVnicAttachmentVnicShapeFixed4000E350g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_E3_50G" + InternalVnicAttachmentVnicShapeEntirehostE350g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_E3_50G" + InternalVnicAttachmentVnicShapeDynamicE450g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_E4_50G" + InternalVnicAttachmentVnicShapeFixed0040E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_E4_50G" + InternalVnicAttachmentVnicShapeFixed0100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_E4_50G" + InternalVnicAttachmentVnicShapeFixed0200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_E4_50G" + InternalVnicAttachmentVnicShapeFixed0300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0300_E4_50G" + InternalVnicAttachmentVnicShapeFixed0400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_E4_50G" + InternalVnicAttachmentVnicShapeFixed0500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0500_E4_50G" + InternalVnicAttachmentVnicShapeFixed0600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0600_E4_50G" + InternalVnicAttachmentVnicShapeFixed0700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0700_E4_50G" + InternalVnicAttachmentVnicShapeFixed0800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_E4_50G" + InternalVnicAttachmentVnicShapeFixed0900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED0900_E4_50G" + InternalVnicAttachmentVnicShapeFixed1000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1000_E4_50G" + InternalVnicAttachmentVnicShapeFixed1100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1100_E4_50G" + InternalVnicAttachmentVnicShapeFixed1200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_E4_50G" + InternalVnicAttachmentVnicShapeFixed1300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1300_E4_50G" + InternalVnicAttachmentVnicShapeFixed1400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1400_E4_50G" + InternalVnicAttachmentVnicShapeFixed1500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1500_E4_50G" + InternalVnicAttachmentVnicShapeFixed1600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_E4_50G" + InternalVnicAttachmentVnicShapeFixed1700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1700_E4_50G" + InternalVnicAttachmentVnicShapeFixed1800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1800_E4_50G" + InternalVnicAttachmentVnicShapeFixed1900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED1900_E4_50G" + InternalVnicAttachmentVnicShapeFixed2000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_E4_50G" + InternalVnicAttachmentVnicShapeFixed2100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2100_E4_50G" + InternalVnicAttachmentVnicShapeFixed2200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2200_E4_50G" + InternalVnicAttachmentVnicShapeFixed2300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2300_E4_50G" + InternalVnicAttachmentVnicShapeFixed2400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_E4_50G" + InternalVnicAttachmentVnicShapeFixed2500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2500_E4_50G" + InternalVnicAttachmentVnicShapeFixed2600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2600_E4_50G" + InternalVnicAttachmentVnicShapeFixed2700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2700_E4_50G" + InternalVnicAttachmentVnicShapeFixed2800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_E4_50G" + InternalVnicAttachmentVnicShapeFixed2900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED2900_E4_50G" + InternalVnicAttachmentVnicShapeFixed3000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3000_E4_50G" + InternalVnicAttachmentVnicShapeFixed3100E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3100_E4_50G" + InternalVnicAttachmentVnicShapeFixed3200E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_E4_50G" + InternalVnicAttachmentVnicShapeFixed3300E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3300_E4_50G" + InternalVnicAttachmentVnicShapeFixed3400E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3400_E4_50G" + InternalVnicAttachmentVnicShapeFixed3500E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3500_E4_50G" + InternalVnicAttachmentVnicShapeFixed3600E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_E4_50G" + InternalVnicAttachmentVnicShapeFixed3700E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3700_E4_50G" + InternalVnicAttachmentVnicShapeFixed3800E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3800_E4_50G" + InternalVnicAttachmentVnicShapeFixed3900E450g InternalVnicAttachmentVnicShapeEnum = "FIXED3900_E4_50G" + InternalVnicAttachmentVnicShapeFixed4000E450g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_E4_50G" + InternalVnicAttachmentVnicShapeEntirehostE450g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_E4_50G" + InternalVnicAttachmentVnicShapeMicroVmFixed0050E350g InternalVnicAttachmentVnicShapeEnum = "Micro_VM_Fixed0050_E3_50G" + InternalVnicAttachmentVnicShapeMicroVmFixed0050E450g InternalVnicAttachmentVnicShapeEnum = "Micro_VM_Fixed0050_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E350g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E450g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4020A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4040A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4060A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4080A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4100A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4120A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4140A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4160A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4180A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4200A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4220A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4240A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4260A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4280A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4300A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4320A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4340A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4360A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4380A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4400A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4420A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4440A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4460A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4480A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4500A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4520A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4540A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4560A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4580A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4600A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4620A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4640A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4660A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4680A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4700A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4720A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4740A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4760A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4780A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4800A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4820A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4840A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4860A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4880A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4900A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4920A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4940A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4960A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4980A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed5000A150g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0090X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0180X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0270X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0360X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0450X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0540X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0630X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0720X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0810X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed0990X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1080X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1170X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1260X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1350X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1440X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1530X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1620X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1710X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1890X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed1980X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2070X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2160X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2340X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2430X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2520X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2610X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2790X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2880X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed2970X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3060X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3150X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3240X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3330X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3420X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3510X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3690X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3780X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3870X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed3960X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4140X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4230X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4320X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4410X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4590X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4680X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4770X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4860X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreVmFixed4950X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" + InternalVnicAttachmentVnicShapeDynamicA150g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_A1_50G" + InternalVnicAttachmentVnicShapeFixed0040A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_A1_50G" + InternalVnicAttachmentVnicShapeFixed0100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0100_A1_50G" + InternalVnicAttachmentVnicShapeFixed0200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0200_A1_50G" + InternalVnicAttachmentVnicShapeFixed0300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0300_A1_50G" + InternalVnicAttachmentVnicShapeFixed0400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_A1_50G" + InternalVnicAttachmentVnicShapeFixed0500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0500_A1_50G" + InternalVnicAttachmentVnicShapeFixed0600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0600_A1_50G" + InternalVnicAttachmentVnicShapeFixed0700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0700_A1_50G" + InternalVnicAttachmentVnicShapeFixed0800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_A1_50G" + InternalVnicAttachmentVnicShapeFixed0900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED0900_A1_50G" + InternalVnicAttachmentVnicShapeFixed1000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1000_A1_50G" + InternalVnicAttachmentVnicShapeFixed1100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1100_A1_50G" + InternalVnicAttachmentVnicShapeFixed1200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_A1_50G" + InternalVnicAttachmentVnicShapeFixed1300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1300_A1_50G" + InternalVnicAttachmentVnicShapeFixed1400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1400_A1_50G" + InternalVnicAttachmentVnicShapeFixed1500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1500_A1_50G" + InternalVnicAttachmentVnicShapeFixed1600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_A1_50G" + InternalVnicAttachmentVnicShapeFixed1700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1700_A1_50G" + InternalVnicAttachmentVnicShapeFixed1800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1800_A1_50G" + InternalVnicAttachmentVnicShapeFixed1900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED1900_A1_50G" + InternalVnicAttachmentVnicShapeFixed2000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_A1_50G" + InternalVnicAttachmentVnicShapeFixed2100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2100_A1_50G" + InternalVnicAttachmentVnicShapeFixed2200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2200_A1_50G" + InternalVnicAttachmentVnicShapeFixed2300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2300_A1_50G" + InternalVnicAttachmentVnicShapeFixed2400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_A1_50G" + InternalVnicAttachmentVnicShapeFixed2500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2500_A1_50G" + InternalVnicAttachmentVnicShapeFixed2600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2600_A1_50G" + InternalVnicAttachmentVnicShapeFixed2700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2700_A1_50G" + InternalVnicAttachmentVnicShapeFixed2800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_A1_50G" + InternalVnicAttachmentVnicShapeFixed2900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED2900_A1_50G" + InternalVnicAttachmentVnicShapeFixed3000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3000_A1_50G" + InternalVnicAttachmentVnicShapeFixed3100A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3100_A1_50G" + InternalVnicAttachmentVnicShapeFixed3200A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_A1_50G" + InternalVnicAttachmentVnicShapeFixed3300A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3300_A1_50G" + InternalVnicAttachmentVnicShapeFixed3400A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3400_A1_50G" + InternalVnicAttachmentVnicShapeFixed3500A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3500_A1_50G" + InternalVnicAttachmentVnicShapeFixed3600A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_A1_50G" + InternalVnicAttachmentVnicShapeFixed3700A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3700_A1_50G" + InternalVnicAttachmentVnicShapeFixed3800A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3800_A1_50G" + InternalVnicAttachmentVnicShapeFixed3900A150g InternalVnicAttachmentVnicShapeEnum = "FIXED3900_A1_50G" + InternalVnicAttachmentVnicShapeFixed4000A150g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_A1_50G" + InternalVnicAttachmentVnicShapeFixed5000TelesisA150g InternalVnicAttachmentVnicShapeEnum = "FIXED5000_TELESIS_A1_50G" + InternalVnicAttachmentVnicShapeEntirehostA150g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_A1_50G" + InternalVnicAttachmentVnicShapeDynamicX950g InternalVnicAttachmentVnicShapeEnum = "DYNAMIC_X9_50G" + InternalVnicAttachmentVnicShapeFixed0040X950g InternalVnicAttachmentVnicShapeEnum = "FIXED0040_X9_50G" + InternalVnicAttachmentVnicShapeFixed0400X950g InternalVnicAttachmentVnicShapeEnum = "FIXED0400_X9_50G" + InternalVnicAttachmentVnicShapeFixed0800X950g InternalVnicAttachmentVnicShapeEnum = "FIXED0800_X9_50G" + InternalVnicAttachmentVnicShapeFixed1200X950g InternalVnicAttachmentVnicShapeEnum = "FIXED1200_X9_50G" + InternalVnicAttachmentVnicShapeFixed1600X950g InternalVnicAttachmentVnicShapeEnum = "FIXED1600_X9_50G" + InternalVnicAttachmentVnicShapeFixed2000X950g InternalVnicAttachmentVnicShapeEnum = "FIXED2000_X9_50G" + InternalVnicAttachmentVnicShapeFixed2400X950g InternalVnicAttachmentVnicShapeEnum = "FIXED2400_X9_50G" + InternalVnicAttachmentVnicShapeFixed2800X950g InternalVnicAttachmentVnicShapeEnum = "FIXED2800_X9_50G" + InternalVnicAttachmentVnicShapeFixed3200X950g InternalVnicAttachmentVnicShapeEnum = "FIXED3200_X9_50G" + InternalVnicAttachmentVnicShapeFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "FIXED3600_X9_50G" + InternalVnicAttachmentVnicShapeFixed4000X950g InternalVnicAttachmentVnicShapeEnum = "FIXED4000_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0100X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0100_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0300X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0300_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0500X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0500_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0700X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0700_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed0900X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED0900_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1100X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1100_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1300X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1300_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1500X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1500_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1700X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1700_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed1900X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED1900_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2100X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2100_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2300X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2300_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2500X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2500_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2700X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2700_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed2900X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED2900_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3100X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3100_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3200X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3300X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3300_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3400X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3500X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3500_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3700X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3700_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3800X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed3900X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED3900_X9_50G" + InternalVnicAttachmentVnicShapeStandardVmFixed4000X950g InternalVnicAttachmentVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0025X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0025_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0050_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0075X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0075_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0100X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0100_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0125X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0125_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0150X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0150_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0175X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0175_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0200X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0200_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0225X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0225_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0250_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0275X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0275_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0300X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0300_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0325X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0325_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0350X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0350_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0375X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0375_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0400X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0400_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0425X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0425_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0450X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0450_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0475X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0475_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0500_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0525X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0525_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0550X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0550_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0575X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0575_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0600_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0625X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0625_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0650X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0650_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0675X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0675_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0700_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0725X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0725_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0750X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0750_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0775X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0775_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0800_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0825X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0825_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0850X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0850_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0875X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0875_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0900_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0925X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0925_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0950X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0950_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0975X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0975_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1000X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1000_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1025X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1025_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1050_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1075X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1075_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1100X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1100_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1125X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1125_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1150X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1150_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1175X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1175_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1200X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1200_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1225X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1225_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1250_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1275X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1275_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1300X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1300_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1325X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1325_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1350X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1350_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1375X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1375_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1400X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1400_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1425X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1425_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1450X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1450_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1475X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1475_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1500_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1525X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1525_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1550X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1550_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1575X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1575_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1600_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1625X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1625_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1650X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1650_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1700_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1725X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1725_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1750X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1750_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1800_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1850X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1850_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1875X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1875_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1900_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1925X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1925_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1950X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1950_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2000X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2000_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2025X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2025_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2050_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2100X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2100_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2125X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2125_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2150X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2150_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2175X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2175_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2200X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2200_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2250_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2275X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2275_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2300X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2300_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2325X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2325_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2350X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2350_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2375X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2375_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2400X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2400_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2450X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2450_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2475X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2475_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2500_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2550X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2550_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2600_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2625X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2625_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2650X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2650_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2700_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2750X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2750_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2775X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2775_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2800_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2850X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2850_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2875X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2875_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2900_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2925X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2925_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2950X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2950_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2975X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2975_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3000X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3000_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3025X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3025_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3050_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3075X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3075_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3100X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3100_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3125X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3125_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3150X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3150_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3200X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3200_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3225X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3225_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3250_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3300X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3300_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3325X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3325_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3375X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3375_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3400X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3400_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3450X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3450_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3500_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3525X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3525_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3575X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3575_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3600_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3625X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3625_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3675X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3675_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3700_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3750X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3750_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3800_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3825X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3825_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3850X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3850_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3875X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3875_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3900_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3975X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3975_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4000X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4000_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4025X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4025_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4050X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4050_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4100X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4100_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4125X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4125_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4200X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4200_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4225X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4225_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4250X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4250_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4275X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4275_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4300X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4300_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4350X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4350_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4375X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4375_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4400X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4400_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4425X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4425_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4500X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4500_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4550X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4550_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4575X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4575_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4600X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4600_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4625X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4625_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4650X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4650_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4675X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4675_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4700X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4700_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4725X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4725_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4750X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4750_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4800X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4800_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4875X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4875_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4900X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4900_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4950X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4950_X9_50G" + InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed5000X950g InternalVnicAttachmentVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED5000_X9_50G" + InternalVnicAttachmentVnicShapeEntirehostX950g InternalVnicAttachmentVnicShapeEnum = "ENTIREHOST_X9_50G" +) + +var mappingInternalVnicAttachmentVnicShapeEnum = map[string]InternalVnicAttachmentVnicShapeEnum{ + "DYNAMIC": InternalVnicAttachmentVnicShapeDynamic, + "FIXED0040": InternalVnicAttachmentVnicShapeFixed0040, + "FIXED0060": InternalVnicAttachmentVnicShapeFixed0060, + "FIXED0060_PSM": InternalVnicAttachmentVnicShapeFixed0060Psm, + "FIXED0100": InternalVnicAttachmentVnicShapeFixed0100, + "FIXED0120": InternalVnicAttachmentVnicShapeFixed0120, + "FIXED0120_2X": InternalVnicAttachmentVnicShapeFixed01202x, + "FIXED0200": InternalVnicAttachmentVnicShapeFixed0200, + "FIXED0240": InternalVnicAttachmentVnicShapeFixed0240, + "FIXED0480": InternalVnicAttachmentVnicShapeFixed0480, + "ENTIREHOST": InternalVnicAttachmentVnicShapeEntirehost, + "DYNAMIC_25G": InternalVnicAttachmentVnicShapeDynamic25g, + "FIXED0040_25G": InternalVnicAttachmentVnicShapeFixed004025g, + "FIXED0100_25G": InternalVnicAttachmentVnicShapeFixed010025g, + "FIXED0200_25G": InternalVnicAttachmentVnicShapeFixed020025g, + "FIXED0400_25G": InternalVnicAttachmentVnicShapeFixed040025g, + "FIXED0800_25G": InternalVnicAttachmentVnicShapeFixed080025g, + "FIXED1600_25G": InternalVnicAttachmentVnicShapeFixed160025g, + "FIXED2400_25G": InternalVnicAttachmentVnicShapeFixed240025g, + "ENTIREHOST_25G": InternalVnicAttachmentVnicShapeEntirehost25g, + "DYNAMIC_E1_25G": InternalVnicAttachmentVnicShapeDynamicE125g, + "FIXED0040_E1_25G": InternalVnicAttachmentVnicShapeFixed0040E125g, + "FIXED0070_E1_25G": InternalVnicAttachmentVnicShapeFixed0070E125g, + "FIXED0140_E1_25G": InternalVnicAttachmentVnicShapeFixed0140E125g, + "FIXED0280_E1_25G": InternalVnicAttachmentVnicShapeFixed0280E125g, + "FIXED0560_E1_25G": InternalVnicAttachmentVnicShapeFixed0560E125g, + "FIXED1120_E1_25G": InternalVnicAttachmentVnicShapeFixed1120E125g, + "FIXED1680_E1_25G": InternalVnicAttachmentVnicShapeFixed1680E125g, + "ENTIREHOST_E1_25G": InternalVnicAttachmentVnicShapeEntirehostE125g, + "DYNAMIC_B1_25G": InternalVnicAttachmentVnicShapeDynamicB125g, + "FIXED0040_B1_25G": InternalVnicAttachmentVnicShapeFixed0040B125g, + "FIXED0060_B1_25G": InternalVnicAttachmentVnicShapeFixed0060B125g, + "FIXED0120_B1_25G": InternalVnicAttachmentVnicShapeFixed0120B125g, + "FIXED0240_B1_25G": InternalVnicAttachmentVnicShapeFixed0240B125g, + "FIXED0480_B1_25G": InternalVnicAttachmentVnicShapeFixed0480B125g, + "FIXED0960_B1_25G": InternalVnicAttachmentVnicShapeFixed0960B125g, + "ENTIREHOST_B1_25G": InternalVnicAttachmentVnicShapeEntirehostB125g, + "MICRO_VM_FIXED0048_E1_25G": InternalVnicAttachmentVnicShapeMicroVmFixed0048E125g, + "MICRO_LB_FIXED0001_E1_25G": InternalVnicAttachmentVnicShapeMicroLbFixed0001E125g, + "VNICAAS_FIXED0200": InternalVnicAttachmentVnicShapeVnicaasFixed0200, + "VNICAAS_FIXED0400": InternalVnicAttachmentVnicShapeVnicaasFixed0400, + "VNICAAS_FIXED0700": InternalVnicAttachmentVnicShapeVnicaasFixed0700, + "VNICAAS_NLB_APPROVED_10G": InternalVnicAttachmentVnicShapeVnicaasNlbApproved10g, + "VNICAAS_NLB_APPROVED_25G": InternalVnicAttachmentVnicShapeVnicaasNlbApproved25g, + "VNICAAS_TELESIS_25G": InternalVnicAttachmentVnicShapeVnicaasTelesis25g, + "VNICAAS_TELESIS_10G": InternalVnicAttachmentVnicShapeVnicaasTelesis10g, + "VNICAAS_AMBASSADOR_FIXED0100": InternalVnicAttachmentVnicShapeVnicaasAmbassadorFixed0100, + "VNICAAS_TELESIS_GAMMA": InternalVnicAttachmentVnicShapeVnicaasTelesisGamma, + "VNICAAS_PRIVATEDNS": InternalVnicAttachmentVnicShapeVnicaasPrivatedns, + "VNICAAS_FWAAS": InternalVnicAttachmentVnicShapeVnicaasFwaas, + "VNICAAS_LBAAS_FREE": InternalVnicAttachmentVnicShapeVnicaasLbaasFree, + "VNICAAS_LBAAS_8G_512K": InternalVnicAttachmentVnicShapeVnicaasLbaas8g512k, + "VNICAAS_LBAAS_8G_1M": InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m, + "VNICAAS_LBAAS_8G_2M": InternalVnicAttachmentVnicShapeVnicaasLbaas8g2m, + "VNICAAS_LBAAS_8G_3M": InternalVnicAttachmentVnicShapeVnicaasLbaas8g3m, + "VNICAAS_LBAAS_8G_1M_8GHOST": InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m8ghost, + "VNICAAS_LBAAS_8G_1M_16GHOST": InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m16ghost, + "DYNAMIC_E3_50G": InternalVnicAttachmentVnicShapeDynamicE350g, + "FIXED0040_E3_50G": InternalVnicAttachmentVnicShapeFixed0040E350g, + "FIXED0100_E3_50G": InternalVnicAttachmentVnicShapeFixed0100E350g, + "FIXED0200_E3_50G": InternalVnicAttachmentVnicShapeFixed0200E350g, + "FIXED0300_E3_50G": InternalVnicAttachmentVnicShapeFixed0300E350g, + "FIXED0400_E3_50G": InternalVnicAttachmentVnicShapeFixed0400E350g, + "FIXED0500_E3_50G": InternalVnicAttachmentVnicShapeFixed0500E350g, + "FIXED0600_E3_50G": InternalVnicAttachmentVnicShapeFixed0600E350g, + "FIXED0700_E3_50G": InternalVnicAttachmentVnicShapeFixed0700E350g, + "FIXED0800_E3_50G": InternalVnicAttachmentVnicShapeFixed0800E350g, + "FIXED0900_E3_50G": InternalVnicAttachmentVnicShapeFixed0900E350g, + "FIXED1000_E3_50G": InternalVnicAttachmentVnicShapeFixed1000E350g, + "FIXED1100_E3_50G": InternalVnicAttachmentVnicShapeFixed1100E350g, + "FIXED1200_E3_50G": InternalVnicAttachmentVnicShapeFixed1200E350g, + "FIXED1300_E3_50G": InternalVnicAttachmentVnicShapeFixed1300E350g, + "FIXED1400_E3_50G": InternalVnicAttachmentVnicShapeFixed1400E350g, + "FIXED1500_E3_50G": InternalVnicAttachmentVnicShapeFixed1500E350g, + "FIXED1600_E3_50G": InternalVnicAttachmentVnicShapeFixed1600E350g, + "FIXED1700_E3_50G": InternalVnicAttachmentVnicShapeFixed1700E350g, + "FIXED1800_E3_50G": InternalVnicAttachmentVnicShapeFixed1800E350g, + "FIXED1900_E3_50G": InternalVnicAttachmentVnicShapeFixed1900E350g, + "FIXED2000_E3_50G": InternalVnicAttachmentVnicShapeFixed2000E350g, + "FIXED2100_E3_50G": InternalVnicAttachmentVnicShapeFixed2100E350g, + "FIXED2200_E3_50G": InternalVnicAttachmentVnicShapeFixed2200E350g, + "FIXED2300_E3_50G": InternalVnicAttachmentVnicShapeFixed2300E350g, + "FIXED2400_E3_50G": InternalVnicAttachmentVnicShapeFixed2400E350g, + "FIXED2500_E3_50G": InternalVnicAttachmentVnicShapeFixed2500E350g, + "FIXED2600_E3_50G": InternalVnicAttachmentVnicShapeFixed2600E350g, + "FIXED2700_E3_50G": InternalVnicAttachmentVnicShapeFixed2700E350g, + "FIXED2800_E3_50G": InternalVnicAttachmentVnicShapeFixed2800E350g, + "FIXED2900_E3_50G": InternalVnicAttachmentVnicShapeFixed2900E350g, + "FIXED3000_E3_50G": InternalVnicAttachmentVnicShapeFixed3000E350g, + "FIXED3100_E3_50G": InternalVnicAttachmentVnicShapeFixed3100E350g, + "FIXED3200_E3_50G": InternalVnicAttachmentVnicShapeFixed3200E350g, + "FIXED3300_E3_50G": InternalVnicAttachmentVnicShapeFixed3300E350g, + "FIXED3400_E3_50G": InternalVnicAttachmentVnicShapeFixed3400E350g, + "FIXED3500_E3_50G": InternalVnicAttachmentVnicShapeFixed3500E350g, + "FIXED3600_E3_50G": InternalVnicAttachmentVnicShapeFixed3600E350g, + "FIXED3700_E3_50G": InternalVnicAttachmentVnicShapeFixed3700E350g, + "FIXED3800_E3_50G": InternalVnicAttachmentVnicShapeFixed3800E350g, + "FIXED3900_E3_50G": InternalVnicAttachmentVnicShapeFixed3900E350g, + "FIXED4000_E3_50G": InternalVnicAttachmentVnicShapeFixed4000E350g, + "ENTIREHOST_E3_50G": InternalVnicAttachmentVnicShapeEntirehostE350g, + "DYNAMIC_E4_50G": InternalVnicAttachmentVnicShapeDynamicE450g, + "FIXED0040_E4_50G": InternalVnicAttachmentVnicShapeFixed0040E450g, + "FIXED0100_E4_50G": InternalVnicAttachmentVnicShapeFixed0100E450g, + "FIXED0200_E4_50G": InternalVnicAttachmentVnicShapeFixed0200E450g, + "FIXED0300_E4_50G": InternalVnicAttachmentVnicShapeFixed0300E450g, + "FIXED0400_E4_50G": InternalVnicAttachmentVnicShapeFixed0400E450g, + "FIXED0500_E4_50G": InternalVnicAttachmentVnicShapeFixed0500E450g, + "FIXED0600_E4_50G": InternalVnicAttachmentVnicShapeFixed0600E450g, + "FIXED0700_E4_50G": InternalVnicAttachmentVnicShapeFixed0700E450g, + "FIXED0800_E4_50G": InternalVnicAttachmentVnicShapeFixed0800E450g, + "FIXED0900_E4_50G": InternalVnicAttachmentVnicShapeFixed0900E450g, + "FIXED1000_E4_50G": InternalVnicAttachmentVnicShapeFixed1000E450g, + "FIXED1100_E4_50G": InternalVnicAttachmentVnicShapeFixed1100E450g, + "FIXED1200_E4_50G": InternalVnicAttachmentVnicShapeFixed1200E450g, + "FIXED1300_E4_50G": InternalVnicAttachmentVnicShapeFixed1300E450g, + "FIXED1400_E4_50G": InternalVnicAttachmentVnicShapeFixed1400E450g, + "FIXED1500_E4_50G": InternalVnicAttachmentVnicShapeFixed1500E450g, + "FIXED1600_E4_50G": InternalVnicAttachmentVnicShapeFixed1600E450g, + "FIXED1700_E4_50G": InternalVnicAttachmentVnicShapeFixed1700E450g, + "FIXED1800_E4_50G": InternalVnicAttachmentVnicShapeFixed1800E450g, + "FIXED1900_E4_50G": InternalVnicAttachmentVnicShapeFixed1900E450g, + "FIXED2000_E4_50G": InternalVnicAttachmentVnicShapeFixed2000E450g, + "FIXED2100_E4_50G": InternalVnicAttachmentVnicShapeFixed2100E450g, + "FIXED2200_E4_50G": InternalVnicAttachmentVnicShapeFixed2200E450g, + "FIXED2300_E4_50G": InternalVnicAttachmentVnicShapeFixed2300E450g, + "FIXED2400_E4_50G": InternalVnicAttachmentVnicShapeFixed2400E450g, + "FIXED2500_E4_50G": InternalVnicAttachmentVnicShapeFixed2500E450g, + "FIXED2600_E4_50G": InternalVnicAttachmentVnicShapeFixed2600E450g, + "FIXED2700_E4_50G": InternalVnicAttachmentVnicShapeFixed2700E450g, + "FIXED2800_E4_50G": InternalVnicAttachmentVnicShapeFixed2800E450g, + "FIXED2900_E4_50G": InternalVnicAttachmentVnicShapeFixed2900E450g, + "FIXED3000_E4_50G": InternalVnicAttachmentVnicShapeFixed3000E450g, + "FIXED3100_E4_50G": InternalVnicAttachmentVnicShapeFixed3100E450g, + "FIXED3200_E4_50G": InternalVnicAttachmentVnicShapeFixed3200E450g, + "FIXED3300_E4_50G": InternalVnicAttachmentVnicShapeFixed3300E450g, + "FIXED3400_E4_50G": InternalVnicAttachmentVnicShapeFixed3400E450g, + "FIXED3500_E4_50G": InternalVnicAttachmentVnicShapeFixed3500E450g, + "FIXED3600_E4_50G": InternalVnicAttachmentVnicShapeFixed3600E450g, + "FIXED3700_E4_50G": InternalVnicAttachmentVnicShapeFixed3700E450g, + "FIXED3800_E4_50G": InternalVnicAttachmentVnicShapeFixed3800E450g, + "FIXED3900_E4_50G": InternalVnicAttachmentVnicShapeFixed3900E450g, + "FIXED4000_E4_50G": InternalVnicAttachmentVnicShapeFixed4000E450g, + "ENTIREHOST_E4_50G": InternalVnicAttachmentVnicShapeEntirehostE450g, + "Micro_VM_Fixed0050_E3_50G": InternalVnicAttachmentVnicShapeMicroVmFixed0050E350g, + "Micro_VM_Fixed0050_E4_50G": InternalVnicAttachmentVnicShapeMicroVmFixed0050E450g, + "SUBCORE_VM_FIXED0025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E350g, + "SUBCORE_VM_FIXED0050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E350g, + "SUBCORE_VM_FIXED0075_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E350g, + "SUBCORE_VM_FIXED0100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E350g, + "SUBCORE_VM_FIXED0125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E350g, + "SUBCORE_VM_FIXED0150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E350g, + "SUBCORE_VM_FIXED0175_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E350g, + "SUBCORE_VM_FIXED0200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E350g, + "SUBCORE_VM_FIXED0225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E350g, + "SUBCORE_VM_FIXED0250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E350g, + "SUBCORE_VM_FIXED0275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E350g, + "SUBCORE_VM_FIXED0300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E350g, + "SUBCORE_VM_FIXED0325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E350g, + "SUBCORE_VM_FIXED0350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E350g, + "SUBCORE_VM_FIXED0375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E350g, + "SUBCORE_VM_FIXED0400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E350g, + "SUBCORE_VM_FIXED0425_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E350g, + "SUBCORE_VM_FIXED0450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E350g, + "SUBCORE_VM_FIXED0475_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E350g, + "SUBCORE_VM_FIXED0500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E350g, + "SUBCORE_VM_FIXED0525_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E350g, + "SUBCORE_VM_FIXED0550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E350g, + "SUBCORE_VM_FIXED0575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E350g, + "SUBCORE_VM_FIXED0600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E350g, + "SUBCORE_VM_FIXED0625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E350g, + "SUBCORE_VM_FIXED0650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E350g, + "SUBCORE_VM_FIXED0675_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E350g, + "SUBCORE_VM_FIXED0700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E350g, + "SUBCORE_VM_FIXED0725_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E350g, + "SUBCORE_VM_FIXED0750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E350g, + "SUBCORE_VM_FIXED0775_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E350g, + "SUBCORE_VM_FIXED0800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E350g, + "SUBCORE_VM_FIXED0825_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E350g, + "SUBCORE_VM_FIXED0850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E350g, + "SUBCORE_VM_FIXED0875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E350g, + "SUBCORE_VM_FIXED0900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E350g, + "SUBCORE_VM_FIXED0925_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E350g, + "SUBCORE_VM_FIXED0950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E350g, + "SUBCORE_VM_FIXED0975_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E350g, + "SUBCORE_VM_FIXED1000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E350g, + "SUBCORE_VM_FIXED1025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E350g, + "SUBCORE_VM_FIXED1050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E350g, + "SUBCORE_VM_FIXED1075_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E350g, + "SUBCORE_VM_FIXED1100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E350g, + "SUBCORE_VM_FIXED1125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E350g, + "SUBCORE_VM_FIXED1150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E350g, + "SUBCORE_VM_FIXED1175_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E350g, + "SUBCORE_VM_FIXED1200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E350g, + "SUBCORE_VM_FIXED1225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E350g, + "SUBCORE_VM_FIXED1250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E350g, + "SUBCORE_VM_FIXED1275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E350g, + "SUBCORE_VM_FIXED1300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E350g, + "SUBCORE_VM_FIXED1325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E350g, + "SUBCORE_VM_FIXED1350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E350g, + "SUBCORE_VM_FIXED1375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E350g, + "SUBCORE_VM_FIXED1400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E350g, + "SUBCORE_VM_FIXED1425_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E350g, + "SUBCORE_VM_FIXED1450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E350g, + "SUBCORE_VM_FIXED1475_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E350g, + "SUBCORE_VM_FIXED1500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E350g, + "SUBCORE_VM_FIXED1525_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E350g, + "SUBCORE_VM_FIXED1550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E350g, + "SUBCORE_VM_FIXED1575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E350g, + "SUBCORE_VM_FIXED1600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E350g, + "SUBCORE_VM_FIXED1625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E350g, + "SUBCORE_VM_FIXED1650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E350g, + "SUBCORE_VM_FIXED1700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E350g, + "SUBCORE_VM_FIXED1725_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E350g, + "SUBCORE_VM_FIXED1750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E350g, + "SUBCORE_VM_FIXED1800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E350g, + "SUBCORE_VM_FIXED1850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E350g, + "SUBCORE_VM_FIXED1875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E350g, + "SUBCORE_VM_FIXED1900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E350g, + "SUBCORE_VM_FIXED1925_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E350g, + "SUBCORE_VM_FIXED1950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E350g, + "SUBCORE_VM_FIXED2000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E350g, + "SUBCORE_VM_FIXED2025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E350g, + "SUBCORE_VM_FIXED2050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E350g, + "SUBCORE_VM_FIXED2100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E350g, + "SUBCORE_VM_FIXED2125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E350g, + "SUBCORE_VM_FIXED2150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E350g, + "SUBCORE_VM_FIXED2175_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E350g, + "SUBCORE_VM_FIXED2200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E350g, + "SUBCORE_VM_FIXED2250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E350g, + "SUBCORE_VM_FIXED2275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E350g, + "SUBCORE_VM_FIXED2300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E350g, + "SUBCORE_VM_FIXED2325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E350g, + "SUBCORE_VM_FIXED2350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E350g, + "SUBCORE_VM_FIXED2375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E350g, + "SUBCORE_VM_FIXED2400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E350g, + "SUBCORE_VM_FIXED2450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E350g, + "SUBCORE_VM_FIXED2475_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E350g, + "SUBCORE_VM_FIXED2500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E350g, + "SUBCORE_VM_FIXED2550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E350g, + "SUBCORE_VM_FIXED2600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E350g, + "SUBCORE_VM_FIXED2625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E350g, + "SUBCORE_VM_FIXED2650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E350g, + "SUBCORE_VM_FIXED2700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E350g, + "SUBCORE_VM_FIXED2750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E350g, + "SUBCORE_VM_FIXED2775_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E350g, + "SUBCORE_VM_FIXED2800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E350g, + "SUBCORE_VM_FIXED2850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E350g, + "SUBCORE_VM_FIXED2875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E350g, + "SUBCORE_VM_FIXED2900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E350g, + "SUBCORE_VM_FIXED2925_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E350g, + "SUBCORE_VM_FIXED2950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E350g, + "SUBCORE_VM_FIXED2975_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E350g, + "SUBCORE_VM_FIXED3000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E350g, + "SUBCORE_VM_FIXED3025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E350g, + "SUBCORE_VM_FIXED3050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E350g, + "SUBCORE_VM_FIXED3075_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E350g, + "SUBCORE_VM_FIXED3100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E350g, + "SUBCORE_VM_FIXED3125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E350g, + "SUBCORE_VM_FIXED3150_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E350g, + "SUBCORE_VM_FIXED3200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E350g, + "SUBCORE_VM_FIXED3225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E350g, + "SUBCORE_VM_FIXED3250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E350g, + "SUBCORE_VM_FIXED3300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E350g, + "SUBCORE_VM_FIXED3325_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E350g, + "SUBCORE_VM_FIXED3375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E350g, + "SUBCORE_VM_FIXED3400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E350g, + "SUBCORE_VM_FIXED3450_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E350g, + "SUBCORE_VM_FIXED3500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E350g, + "SUBCORE_VM_FIXED3525_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E350g, + "SUBCORE_VM_FIXED3575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E350g, + "SUBCORE_VM_FIXED3600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E350g, + "SUBCORE_VM_FIXED3625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E350g, + "SUBCORE_VM_FIXED3675_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E350g, + "SUBCORE_VM_FIXED3700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E350g, + "SUBCORE_VM_FIXED3750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E350g, + "SUBCORE_VM_FIXED3800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E350g, + "SUBCORE_VM_FIXED3825_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E350g, + "SUBCORE_VM_FIXED3850_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E350g, + "SUBCORE_VM_FIXED3875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E350g, + "SUBCORE_VM_FIXED3900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E350g, + "SUBCORE_VM_FIXED3975_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E350g, + "SUBCORE_VM_FIXED4000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E350g, + "SUBCORE_VM_FIXED4025_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E350g, + "SUBCORE_VM_FIXED4050_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E350g, + "SUBCORE_VM_FIXED4100_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E350g, + "SUBCORE_VM_FIXED4125_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E350g, + "SUBCORE_VM_FIXED4200_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E350g, + "SUBCORE_VM_FIXED4225_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E350g, + "SUBCORE_VM_FIXED4250_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E350g, + "SUBCORE_VM_FIXED4275_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E350g, + "SUBCORE_VM_FIXED4300_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E350g, + "SUBCORE_VM_FIXED4350_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E350g, + "SUBCORE_VM_FIXED4375_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E350g, + "SUBCORE_VM_FIXED4400_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E350g, + "SUBCORE_VM_FIXED4425_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E350g, + "SUBCORE_VM_FIXED4500_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E350g, + "SUBCORE_VM_FIXED4550_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E350g, + "SUBCORE_VM_FIXED4575_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E350g, + "SUBCORE_VM_FIXED4600_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E350g, + "SUBCORE_VM_FIXED4625_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E350g, + "SUBCORE_VM_FIXED4650_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E350g, + "SUBCORE_VM_FIXED4675_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E350g, + "SUBCORE_VM_FIXED4700_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E350g, + "SUBCORE_VM_FIXED4725_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E350g, + "SUBCORE_VM_FIXED4750_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E350g, + "SUBCORE_VM_FIXED4800_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E350g, + "SUBCORE_VM_FIXED4875_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E350g, + "SUBCORE_VM_FIXED4900_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E350g, + "SUBCORE_VM_FIXED4950_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E350g, + "SUBCORE_VM_FIXED5000_E3_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E350g, + "SUBCORE_VM_FIXED0025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E450g, + "SUBCORE_VM_FIXED0050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E450g, + "SUBCORE_VM_FIXED0075_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E450g, + "SUBCORE_VM_FIXED0100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E450g, + "SUBCORE_VM_FIXED0125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E450g, + "SUBCORE_VM_FIXED0150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E450g, + "SUBCORE_VM_FIXED0175_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E450g, + "SUBCORE_VM_FIXED0200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E450g, + "SUBCORE_VM_FIXED0225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E450g, + "SUBCORE_VM_FIXED0250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E450g, + "SUBCORE_VM_FIXED0275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E450g, + "SUBCORE_VM_FIXED0300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E450g, + "SUBCORE_VM_FIXED0325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E450g, + "SUBCORE_VM_FIXED0350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E450g, + "SUBCORE_VM_FIXED0375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E450g, + "SUBCORE_VM_FIXED0400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E450g, + "SUBCORE_VM_FIXED0425_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E450g, + "SUBCORE_VM_FIXED0450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E450g, + "SUBCORE_VM_FIXED0475_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E450g, + "SUBCORE_VM_FIXED0500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E450g, + "SUBCORE_VM_FIXED0525_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E450g, + "SUBCORE_VM_FIXED0550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E450g, + "SUBCORE_VM_FIXED0575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E450g, + "SUBCORE_VM_FIXED0600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E450g, + "SUBCORE_VM_FIXED0625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E450g, + "SUBCORE_VM_FIXED0650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E450g, + "SUBCORE_VM_FIXED0675_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E450g, + "SUBCORE_VM_FIXED0700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E450g, + "SUBCORE_VM_FIXED0725_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E450g, + "SUBCORE_VM_FIXED0750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E450g, + "SUBCORE_VM_FIXED0775_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E450g, + "SUBCORE_VM_FIXED0800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E450g, + "SUBCORE_VM_FIXED0825_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E450g, + "SUBCORE_VM_FIXED0850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E450g, + "SUBCORE_VM_FIXED0875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E450g, + "SUBCORE_VM_FIXED0900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E450g, + "SUBCORE_VM_FIXED0925_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E450g, + "SUBCORE_VM_FIXED0950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E450g, + "SUBCORE_VM_FIXED0975_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E450g, + "SUBCORE_VM_FIXED1000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E450g, + "SUBCORE_VM_FIXED1025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E450g, + "SUBCORE_VM_FIXED1050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E450g, + "SUBCORE_VM_FIXED1075_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E450g, + "SUBCORE_VM_FIXED1100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E450g, + "SUBCORE_VM_FIXED1125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E450g, + "SUBCORE_VM_FIXED1150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E450g, + "SUBCORE_VM_FIXED1175_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E450g, + "SUBCORE_VM_FIXED1200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E450g, + "SUBCORE_VM_FIXED1225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E450g, + "SUBCORE_VM_FIXED1250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E450g, + "SUBCORE_VM_FIXED1275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E450g, + "SUBCORE_VM_FIXED1300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E450g, + "SUBCORE_VM_FIXED1325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E450g, + "SUBCORE_VM_FIXED1350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E450g, + "SUBCORE_VM_FIXED1375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E450g, + "SUBCORE_VM_FIXED1400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E450g, + "SUBCORE_VM_FIXED1425_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E450g, + "SUBCORE_VM_FIXED1450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E450g, + "SUBCORE_VM_FIXED1475_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E450g, + "SUBCORE_VM_FIXED1500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E450g, + "SUBCORE_VM_FIXED1525_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E450g, + "SUBCORE_VM_FIXED1550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E450g, + "SUBCORE_VM_FIXED1575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E450g, + "SUBCORE_VM_FIXED1600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E450g, + "SUBCORE_VM_FIXED1625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E450g, + "SUBCORE_VM_FIXED1650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E450g, + "SUBCORE_VM_FIXED1700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E450g, + "SUBCORE_VM_FIXED1725_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E450g, + "SUBCORE_VM_FIXED1750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E450g, + "SUBCORE_VM_FIXED1800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E450g, + "SUBCORE_VM_FIXED1850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E450g, + "SUBCORE_VM_FIXED1875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E450g, + "SUBCORE_VM_FIXED1900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E450g, + "SUBCORE_VM_FIXED1925_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E450g, + "SUBCORE_VM_FIXED1950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E450g, + "SUBCORE_VM_FIXED2000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E450g, + "SUBCORE_VM_FIXED2025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E450g, + "SUBCORE_VM_FIXED2050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E450g, + "SUBCORE_VM_FIXED2100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E450g, + "SUBCORE_VM_FIXED2125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E450g, + "SUBCORE_VM_FIXED2150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E450g, + "SUBCORE_VM_FIXED2175_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E450g, + "SUBCORE_VM_FIXED2200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E450g, + "SUBCORE_VM_FIXED2250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E450g, + "SUBCORE_VM_FIXED2275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E450g, + "SUBCORE_VM_FIXED2300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E450g, + "SUBCORE_VM_FIXED2325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E450g, + "SUBCORE_VM_FIXED2350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E450g, + "SUBCORE_VM_FIXED2375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E450g, + "SUBCORE_VM_FIXED2400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E450g, + "SUBCORE_VM_FIXED2450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E450g, + "SUBCORE_VM_FIXED2475_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E450g, + "SUBCORE_VM_FIXED2500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E450g, + "SUBCORE_VM_FIXED2550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E450g, + "SUBCORE_VM_FIXED2600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E450g, + "SUBCORE_VM_FIXED2625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E450g, + "SUBCORE_VM_FIXED2650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E450g, + "SUBCORE_VM_FIXED2700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E450g, + "SUBCORE_VM_FIXED2750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E450g, + "SUBCORE_VM_FIXED2775_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E450g, + "SUBCORE_VM_FIXED2800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E450g, + "SUBCORE_VM_FIXED2850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E450g, + "SUBCORE_VM_FIXED2875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E450g, + "SUBCORE_VM_FIXED2900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E450g, + "SUBCORE_VM_FIXED2925_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E450g, + "SUBCORE_VM_FIXED2950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E450g, + "SUBCORE_VM_FIXED2975_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E450g, + "SUBCORE_VM_FIXED3000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E450g, + "SUBCORE_VM_FIXED3025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E450g, + "SUBCORE_VM_FIXED3050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E450g, + "SUBCORE_VM_FIXED3075_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E450g, + "SUBCORE_VM_FIXED3100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E450g, + "SUBCORE_VM_FIXED3125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E450g, + "SUBCORE_VM_FIXED3150_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E450g, + "SUBCORE_VM_FIXED3200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E450g, + "SUBCORE_VM_FIXED3225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E450g, + "SUBCORE_VM_FIXED3250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E450g, + "SUBCORE_VM_FIXED3300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E450g, + "SUBCORE_VM_FIXED3325_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E450g, + "SUBCORE_VM_FIXED3375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E450g, + "SUBCORE_VM_FIXED3400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E450g, + "SUBCORE_VM_FIXED3450_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E450g, + "SUBCORE_VM_FIXED3500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E450g, + "SUBCORE_VM_FIXED3525_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E450g, + "SUBCORE_VM_FIXED3575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E450g, + "SUBCORE_VM_FIXED3600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E450g, + "SUBCORE_VM_FIXED3625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E450g, + "SUBCORE_VM_FIXED3675_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E450g, + "SUBCORE_VM_FIXED3700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E450g, + "SUBCORE_VM_FIXED3750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E450g, + "SUBCORE_VM_FIXED3800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E450g, + "SUBCORE_VM_FIXED3825_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E450g, + "SUBCORE_VM_FIXED3850_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E450g, + "SUBCORE_VM_FIXED3875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E450g, + "SUBCORE_VM_FIXED3900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E450g, + "SUBCORE_VM_FIXED3975_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E450g, + "SUBCORE_VM_FIXED4000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E450g, + "SUBCORE_VM_FIXED4025_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E450g, + "SUBCORE_VM_FIXED4050_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E450g, + "SUBCORE_VM_FIXED4100_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E450g, + "SUBCORE_VM_FIXED4125_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E450g, + "SUBCORE_VM_FIXED4200_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E450g, + "SUBCORE_VM_FIXED4225_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E450g, + "SUBCORE_VM_FIXED4250_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E450g, + "SUBCORE_VM_FIXED4275_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E450g, + "SUBCORE_VM_FIXED4300_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E450g, + "SUBCORE_VM_FIXED4350_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E450g, + "SUBCORE_VM_FIXED4375_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E450g, + "SUBCORE_VM_FIXED4400_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E450g, + "SUBCORE_VM_FIXED4425_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E450g, + "SUBCORE_VM_FIXED4500_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E450g, + "SUBCORE_VM_FIXED4550_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E450g, + "SUBCORE_VM_FIXED4575_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E450g, + "SUBCORE_VM_FIXED4600_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E450g, + "SUBCORE_VM_FIXED4625_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E450g, + "SUBCORE_VM_FIXED4650_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E450g, + "SUBCORE_VM_FIXED4675_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E450g, + "SUBCORE_VM_FIXED4700_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E450g, + "SUBCORE_VM_FIXED4725_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E450g, + "SUBCORE_VM_FIXED4750_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E450g, + "SUBCORE_VM_FIXED4800_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E450g, + "SUBCORE_VM_FIXED4875_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E450g, + "SUBCORE_VM_FIXED4900_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E450g, + "SUBCORE_VM_FIXED4950_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E450g, + "SUBCORE_VM_FIXED5000_E4_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E450g, + "SUBCORE_VM_FIXED0020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0020A150g, + "SUBCORE_VM_FIXED0040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0040A150g, + "SUBCORE_VM_FIXED0060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0060A150g, + "SUBCORE_VM_FIXED0080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0080A150g, + "SUBCORE_VM_FIXED0100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100A150g, + "SUBCORE_VM_FIXED0120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0120A150g, + "SUBCORE_VM_FIXED0140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0140A150g, + "SUBCORE_VM_FIXED0160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0160A150g, + "SUBCORE_VM_FIXED0180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0180A150g, + "SUBCORE_VM_FIXED0200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200A150g, + "SUBCORE_VM_FIXED0220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0220A150g, + "SUBCORE_VM_FIXED0240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0240A150g, + "SUBCORE_VM_FIXED0260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0260A150g, + "SUBCORE_VM_FIXED0280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0280A150g, + "SUBCORE_VM_FIXED0300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300A150g, + "SUBCORE_VM_FIXED0320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0320A150g, + "SUBCORE_VM_FIXED0340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0340A150g, + "SUBCORE_VM_FIXED0360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0360A150g, + "SUBCORE_VM_FIXED0380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0380A150g, + "SUBCORE_VM_FIXED0400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400A150g, + "SUBCORE_VM_FIXED0420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0420A150g, + "SUBCORE_VM_FIXED0440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0440A150g, + "SUBCORE_VM_FIXED0460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0460A150g, + "SUBCORE_VM_FIXED0480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0480A150g, + "SUBCORE_VM_FIXED0500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500A150g, + "SUBCORE_VM_FIXED0520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0520A150g, + "SUBCORE_VM_FIXED0540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0540A150g, + "SUBCORE_VM_FIXED0560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0560A150g, + "SUBCORE_VM_FIXED0580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0580A150g, + "SUBCORE_VM_FIXED0600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600A150g, + "SUBCORE_VM_FIXED0620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0620A150g, + "SUBCORE_VM_FIXED0640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0640A150g, + "SUBCORE_VM_FIXED0660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0660A150g, + "SUBCORE_VM_FIXED0680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0680A150g, + "SUBCORE_VM_FIXED0700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700A150g, + "SUBCORE_VM_FIXED0720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0720A150g, + "SUBCORE_VM_FIXED0740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0740A150g, + "SUBCORE_VM_FIXED0760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0760A150g, + "SUBCORE_VM_FIXED0780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0780A150g, + "SUBCORE_VM_FIXED0800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800A150g, + "SUBCORE_VM_FIXED0820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0820A150g, + "SUBCORE_VM_FIXED0840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0840A150g, + "SUBCORE_VM_FIXED0860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0860A150g, + "SUBCORE_VM_FIXED0880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0880A150g, + "SUBCORE_VM_FIXED0900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900A150g, + "SUBCORE_VM_FIXED0920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0920A150g, + "SUBCORE_VM_FIXED0940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0940A150g, + "SUBCORE_VM_FIXED0960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0960A150g, + "SUBCORE_VM_FIXED0980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0980A150g, + "SUBCORE_VM_FIXED1000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000A150g, + "SUBCORE_VM_FIXED1020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1020A150g, + "SUBCORE_VM_FIXED1040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1040A150g, + "SUBCORE_VM_FIXED1060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1060A150g, + "SUBCORE_VM_FIXED1080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1080A150g, + "SUBCORE_VM_FIXED1100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100A150g, + "SUBCORE_VM_FIXED1120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1120A150g, + "SUBCORE_VM_FIXED1140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1140A150g, + "SUBCORE_VM_FIXED1160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1160A150g, + "SUBCORE_VM_FIXED1180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1180A150g, + "SUBCORE_VM_FIXED1200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200A150g, + "SUBCORE_VM_FIXED1220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1220A150g, + "SUBCORE_VM_FIXED1240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1240A150g, + "SUBCORE_VM_FIXED1260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1260A150g, + "SUBCORE_VM_FIXED1280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1280A150g, + "SUBCORE_VM_FIXED1300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300A150g, + "SUBCORE_VM_FIXED1320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1320A150g, + "SUBCORE_VM_FIXED1340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1340A150g, + "SUBCORE_VM_FIXED1360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1360A150g, + "SUBCORE_VM_FIXED1380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1380A150g, + "SUBCORE_VM_FIXED1400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400A150g, + "SUBCORE_VM_FIXED1420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1420A150g, + "SUBCORE_VM_FIXED1440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1440A150g, + "SUBCORE_VM_FIXED1460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1460A150g, + "SUBCORE_VM_FIXED1480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1480A150g, + "SUBCORE_VM_FIXED1500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500A150g, + "SUBCORE_VM_FIXED1520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1520A150g, + "SUBCORE_VM_FIXED1540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1540A150g, + "SUBCORE_VM_FIXED1560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1560A150g, + "SUBCORE_VM_FIXED1580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1580A150g, + "SUBCORE_VM_FIXED1600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600A150g, + "SUBCORE_VM_FIXED1620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1620A150g, + "SUBCORE_VM_FIXED1640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1640A150g, + "SUBCORE_VM_FIXED1660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1660A150g, + "SUBCORE_VM_FIXED1680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1680A150g, + "SUBCORE_VM_FIXED1700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700A150g, + "SUBCORE_VM_FIXED1720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1720A150g, + "SUBCORE_VM_FIXED1740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1740A150g, + "SUBCORE_VM_FIXED1760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1760A150g, + "SUBCORE_VM_FIXED1780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1780A150g, + "SUBCORE_VM_FIXED1800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800A150g, + "SUBCORE_VM_FIXED1820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1820A150g, + "SUBCORE_VM_FIXED1840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1840A150g, + "SUBCORE_VM_FIXED1860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1860A150g, + "SUBCORE_VM_FIXED1880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1880A150g, + "SUBCORE_VM_FIXED1900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900A150g, + "SUBCORE_VM_FIXED1920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1920A150g, + "SUBCORE_VM_FIXED1940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1940A150g, + "SUBCORE_VM_FIXED1960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1960A150g, + "SUBCORE_VM_FIXED1980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1980A150g, + "SUBCORE_VM_FIXED2000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000A150g, + "SUBCORE_VM_FIXED2020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2020A150g, + "SUBCORE_VM_FIXED2040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2040A150g, + "SUBCORE_VM_FIXED2060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2060A150g, + "SUBCORE_VM_FIXED2080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2080A150g, + "SUBCORE_VM_FIXED2100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100A150g, + "SUBCORE_VM_FIXED2120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2120A150g, + "SUBCORE_VM_FIXED2140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2140A150g, + "SUBCORE_VM_FIXED2160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2160A150g, + "SUBCORE_VM_FIXED2180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2180A150g, + "SUBCORE_VM_FIXED2200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200A150g, + "SUBCORE_VM_FIXED2220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2220A150g, + "SUBCORE_VM_FIXED2240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2240A150g, + "SUBCORE_VM_FIXED2260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2260A150g, + "SUBCORE_VM_FIXED2280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2280A150g, + "SUBCORE_VM_FIXED2300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300A150g, + "SUBCORE_VM_FIXED2320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2320A150g, + "SUBCORE_VM_FIXED2340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2340A150g, + "SUBCORE_VM_FIXED2360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2360A150g, + "SUBCORE_VM_FIXED2380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2380A150g, + "SUBCORE_VM_FIXED2400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400A150g, + "SUBCORE_VM_FIXED2420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2420A150g, + "SUBCORE_VM_FIXED2440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2440A150g, + "SUBCORE_VM_FIXED2460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2460A150g, + "SUBCORE_VM_FIXED2480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2480A150g, + "SUBCORE_VM_FIXED2500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500A150g, + "SUBCORE_VM_FIXED2520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2520A150g, + "SUBCORE_VM_FIXED2540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2540A150g, + "SUBCORE_VM_FIXED2560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2560A150g, + "SUBCORE_VM_FIXED2580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2580A150g, + "SUBCORE_VM_FIXED2600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600A150g, + "SUBCORE_VM_FIXED2620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2620A150g, + "SUBCORE_VM_FIXED2640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2640A150g, + "SUBCORE_VM_FIXED2660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2660A150g, + "SUBCORE_VM_FIXED2680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2680A150g, + "SUBCORE_VM_FIXED2700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700A150g, + "SUBCORE_VM_FIXED2720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2720A150g, + "SUBCORE_VM_FIXED2740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2740A150g, + "SUBCORE_VM_FIXED2760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2760A150g, + "SUBCORE_VM_FIXED2780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2780A150g, + "SUBCORE_VM_FIXED2800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800A150g, + "SUBCORE_VM_FIXED2820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2820A150g, + "SUBCORE_VM_FIXED2840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2840A150g, + "SUBCORE_VM_FIXED2860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2860A150g, + "SUBCORE_VM_FIXED2880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2880A150g, + "SUBCORE_VM_FIXED2900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900A150g, + "SUBCORE_VM_FIXED2920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2920A150g, + "SUBCORE_VM_FIXED2940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2940A150g, + "SUBCORE_VM_FIXED2960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2960A150g, + "SUBCORE_VM_FIXED2980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2980A150g, + "SUBCORE_VM_FIXED3000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000A150g, + "SUBCORE_VM_FIXED3020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3020A150g, + "SUBCORE_VM_FIXED3040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3040A150g, + "SUBCORE_VM_FIXED3060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3060A150g, + "SUBCORE_VM_FIXED3080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3080A150g, + "SUBCORE_VM_FIXED3100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100A150g, + "SUBCORE_VM_FIXED3120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3120A150g, + "SUBCORE_VM_FIXED3140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3140A150g, + "SUBCORE_VM_FIXED3160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3160A150g, + "SUBCORE_VM_FIXED3180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3180A150g, + "SUBCORE_VM_FIXED3200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200A150g, + "SUBCORE_VM_FIXED3220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3220A150g, + "SUBCORE_VM_FIXED3240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3240A150g, + "SUBCORE_VM_FIXED3260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3260A150g, + "SUBCORE_VM_FIXED3280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3280A150g, + "SUBCORE_VM_FIXED3300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300A150g, + "SUBCORE_VM_FIXED3320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3320A150g, + "SUBCORE_VM_FIXED3340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3340A150g, + "SUBCORE_VM_FIXED3360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3360A150g, + "SUBCORE_VM_FIXED3380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3380A150g, + "SUBCORE_VM_FIXED3400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400A150g, + "SUBCORE_VM_FIXED3420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3420A150g, + "SUBCORE_VM_FIXED3440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3440A150g, + "SUBCORE_VM_FIXED3460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3460A150g, + "SUBCORE_VM_FIXED3480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3480A150g, + "SUBCORE_VM_FIXED3500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500A150g, + "SUBCORE_VM_FIXED3520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3520A150g, + "SUBCORE_VM_FIXED3540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3540A150g, + "SUBCORE_VM_FIXED3560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3560A150g, + "SUBCORE_VM_FIXED3580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3580A150g, + "SUBCORE_VM_FIXED3600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600A150g, + "SUBCORE_VM_FIXED3620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3620A150g, + "SUBCORE_VM_FIXED3640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3640A150g, + "SUBCORE_VM_FIXED3660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3660A150g, + "SUBCORE_VM_FIXED3680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3680A150g, + "SUBCORE_VM_FIXED3700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700A150g, + "SUBCORE_VM_FIXED3720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3720A150g, + "SUBCORE_VM_FIXED3740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3740A150g, + "SUBCORE_VM_FIXED3760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3760A150g, + "SUBCORE_VM_FIXED3780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3780A150g, + "SUBCORE_VM_FIXED3800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800A150g, + "SUBCORE_VM_FIXED3820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3820A150g, + "SUBCORE_VM_FIXED3840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3840A150g, + "SUBCORE_VM_FIXED3860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3860A150g, + "SUBCORE_VM_FIXED3880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3880A150g, + "SUBCORE_VM_FIXED3900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900A150g, + "SUBCORE_VM_FIXED3920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3920A150g, + "SUBCORE_VM_FIXED3940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3940A150g, + "SUBCORE_VM_FIXED3960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3960A150g, + "SUBCORE_VM_FIXED3980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3980A150g, + "SUBCORE_VM_FIXED4000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000A150g, + "SUBCORE_VM_FIXED4020_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4020A150g, + "SUBCORE_VM_FIXED4040_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4040A150g, + "SUBCORE_VM_FIXED4060_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4060A150g, + "SUBCORE_VM_FIXED4080_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4080A150g, + "SUBCORE_VM_FIXED4100_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100A150g, + "SUBCORE_VM_FIXED4120_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4120A150g, + "SUBCORE_VM_FIXED4140_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4140A150g, + "SUBCORE_VM_FIXED4160_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4160A150g, + "SUBCORE_VM_FIXED4180_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4180A150g, + "SUBCORE_VM_FIXED4200_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200A150g, + "SUBCORE_VM_FIXED4220_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4220A150g, + "SUBCORE_VM_FIXED4240_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4240A150g, + "SUBCORE_VM_FIXED4260_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4260A150g, + "SUBCORE_VM_FIXED4280_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4280A150g, + "SUBCORE_VM_FIXED4300_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300A150g, + "SUBCORE_VM_FIXED4320_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4320A150g, + "SUBCORE_VM_FIXED4340_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4340A150g, + "SUBCORE_VM_FIXED4360_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4360A150g, + "SUBCORE_VM_FIXED4380_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4380A150g, + "SUBCORE_VM_FIXED4400_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400A150g, + "SUBCORE_VM_FIXED4420_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4420A150g, + "SUBCORE_VM_FIXED4440_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4440A150g, + "SUBCORE_VM_FIXED4460_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4460A150g, + "SUBCORE_VM_FIXED4480_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4480A150g, + "SUBCORE_VM_FIXED4500_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500A150g, + "SUBCORE_VM_FIXED4520_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4520A150g, + "SUBCORE_VM_FIXED4540_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4540A150g, + "SUBCORE_VM_FIXED4560_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4560A150g, + "SUBCORE_VM_FIXED4580_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4580A150g, + "SUBCORE_VM_FIXED4600_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600A150g, + "SUBCORE_VM_FIXED4620_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4620A150g, + "SUBCORE_VM_FIXED4640_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4640A150g, + "SUBCORE_VM_FIXED4660_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4660A150g, + "SUBCORE_VM_FIXED4680_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4680A150g, + "SUBCORE_VM_FIXED4700_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700A150g, + "SUBCORE_VM_FIXED4720_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4720A150g, + "SUBCORE_VM_FIXED4740_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4740A150g, + "SUBCORE_VM_FIXED4760_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4760A150g, + "SUBCORE_VM_FIXED4780_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4780A150g, + "SUBCORE_VM_FIXED4800_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800A150g, + "SUBCORE_VM_FIXED4820_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4820A150g, + "SUBCORE_VM_FIXED4840_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4840A150g, + "SUBCORE_VM_FIXED4860_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4860A150g, + "SUBCORE_VM_FIXED4880_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4880A150g, + "SUBCORE_VM_FIXED4900_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900A150g, + "SUBCORE_VM_FIXED4920_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4920A150g, + "SUBCORE_VM_FIXED4940_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4940A150g, + "SUBCORE_VM_FIXED4960_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4960A150g, + "SUBCORE_VM_FIXED4980_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4980A150g, + "SUBCORE_VM_FIXED5000_A1_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000A150g, + "SUBCORE_VM_FIXED0090_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0090X950g, + "SUBCORE_VM_FIXED0180_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0180X950g, + "SUBCORE_VM_FIXED0270_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0270X950g, + "SUBCORE_VM_FIXED0360_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0360X950g, + "SUBCORE_VM_FIXED0450_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450X950g, + "SUBCORE_VM_FIXED0540_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0540X950g, + "SUBCORE_VM_FIXED0630_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0630X950g, + "SUBCORE_VM_FIXED0720_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0720X950g, + "SUBCORE_VM_FIXED0810_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0810X950g, + "SUBCORE_VM_FIXED0900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900X950g, + "SUBCORE_VM_FIXED0990_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed0990X950g, + "SUBCORE_VM_FIXED1080_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1080X950g, + "SUBCORE_VM_FIXED1170_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1170X950g, + "SUBCORE_VM_FIXED1260_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1260X950g, + "SUBCORE_VM_FIXED1350_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350X950g, + "SUBCORE_VM_FIXED1440_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1440X950g, + "SUBCORE_VM_FIXED1530_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1530X950g, + "SUBCORE_VM_FIXED1620_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1620X950g, + "SUBCORE_VM_FIXED1710_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1710X950g, + "SUBCORE_VM_FIXED1800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800X950g, + "SUBCORE_VM_FIXED1890_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1890X950g, + "SUBCORE_VM_FIXED1980_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed1980X950g, + "SUBCORE_VM_FIXED2070_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2070X950g, + "SUBCORE_VM_FIXED2160_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2160X950g, + "SUBCORE_VM_FIXED2250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250X950g, + "SUBCORE_VM_FIXED2340_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2340X950g, + "SUBCORE_VM_FIXED2430_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2430X950g, + "SUBCORE_VM_FIXED2520_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2520X950g, + "SUBCORE_VM_FIXED2610_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2610X950g, + "SUBCORE_VM_FIXED2700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700X950g, + "SUBCORE_VM_FIXED2790_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2790X950g, + "SUBCORE_VM_FIXED2880_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2880X950g, + "SUBCORE_VM_FIXED2970_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed2970X950g, + "SUBCORE_VM_FIXED3060_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3060X950g, + "SUBCORE_VM_FIXED3150_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150X950g, + "SUBCORE_VM_FIXED3240_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3240X950g, + "SUBCORE_VM_FIXED3330_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3330X950g, + "SUBCORE_VM_FIXED3420_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3420X950g, + "SUBCORE_VM_FIXED3510_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3510X950g, + "SUBCORE_VM_FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600X950g, + "SUBCORE_VM_FIXED3690_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3690X950g, + "SUBCORE_VM_FIXED3780_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3780X950g, + "SUBCORE_VM_FIXED3870_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3870X950g, + "SUBCORE_VM_FIXED3960_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed3960X950g, + "SUBCORE_VM_FIXED4050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050X950g, + "SUBCORE_VM_FIXED4140_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4140X950g, + "SUBCORE_VM_FIXED4230_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4230X950g, + "SUBCORE_VM_FIXED4320_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4320X950g, + "SUBCORE_VM_FIXED4410_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4410X950g, + "SUBCORE_VM_FIXED4500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500X950g, + "SUBCORE_VM_FIXED4590_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4590X950g, + "SUBCORE_VM_FIXED4680_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4680X950g, + "SUBCORE_VM_FIXED4770_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4770X950g, + "SUBCORE_VM_FIXED4860_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4860X950g, + "SUBCORE_VM_FIXED4950_X9_50G": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950X950g, + "DYNAMIC_A1_50G": InternalVnicAttachmentVnicShapeDynamicA150g, + "FIXED0040_A1_50G": InternalVnicAttachmentVnicShapeFixed0040A150g, + "FIXED0100_A1_50G": InternalVnicAttachmentVnicShapeFixed0100A150g, + "FIXED0200_A1_50G": InternalVnicAttachmentVnicShapeFixed0200A150g, + "FIXED0300_A1_50G": InternalVnicAttachmentVnicShapeFixed0300A150g, + "FIXED0400_A1_50G": InternalVnicAttachmentVnicShapeFixed0400A150g, + "FIXED0500_A1_50G": InternalVnicAttachmentVnicShapeFixed0500A150g, + "FIXED0600_A1_50G": InternalVnicAttachmentVnicShapeFixed0600A150g, + "FIXED0700_A1_50G": InternalVnicAttachmentVnicShapeFixed0700A150g, + "FIXED0800_A1_50G": InternalVnicAttachmentVnicShapeFixed0800A150g, + "FIXED0900_A1_50G": InternalVnicAttachmentVnicShapeFixed0900A150g, + "FIXED1000_A1_50G": InternalVnicAttachmentVnicShapeFixed1000A150g, + "FIXED1100_A1_50G": InternalVnicAttachmentVnicShapeFixed1100A150g, + "FIXED1200_A1_50G": InternalVnicAttachmentVnicShapeFixed1200A150g, + "FIXED1300_A1_50G": InternalVnicAttachmentVnicShapeFixed1300A150g, + "FIXED1400_A1_50G": InternalVnicAttachmentVnicShapeFixed1400A150g, + "FIXED1500_A1_50G": InternalVnicAttachmentVnicShapeFixed1500A150g, + "FIXED1600_A1_50G": InternalVnicAttachmentVnicShapeFixed1600A150g, + "FIXED1700_A1_50G": InternalVnicAttachmentVnicShapeFixed1700A150g, + "FIXED1800_A1_50G": InternalVnicAttachmentVnicShapeFixed1800A150g, + "FIXED1900_A1_50G": InternalVnicAttachmentVnicShapeFixed1900A150g, + "FIXED2000_A1_50G": InternalVnicAttachmentVnicShapeFixed2000A150g, + "FIXED2100_A1_50G": InternalVnicAttachmentVnicShapeFixed2100A150g, + "FIXED2200_A1_50G": InternalVnicAttachmentVnicShapeFixed2200A150g, + "FIXED2300_A1_50G": InternalVnicAttachmentVnicShapeFixed2300A150g, + "FIXED2400_A1_50G": InternalVnicAttachmentVnicShapeFixed2400A150g, + "FIXED2500_A1_50G": InternalVnicAttachmentVnicShapeFixed2500A150g, + "FIXED2600_A1_50G": InternalVnicAttachmentVnicShapeFixed2600A150g, + "FIXED2700_A1_50G": InternalVnicAttachmentVnicShapeFixed2700A150g, + "FIXED2800_A1_50G": InternalVnicAttachmentVnicShapeFixed2800A150g, + "FIXED2900_A1_50G": InternalVnicAttachmentVnicShapeFixed2900A150g, + "FIXED3000_A1_50G": InternalVnicAttachmentVnicShapeFixed3000A150g, + "FIXED3100_A1_50G": InternalVnicAttachmentVnicShapeFixed3100A150g, + "FIXED3200_A1_50G": InternalVnicAttachmentVnicShapeFixed3200A150g, + "FIXED3300_A1_50G": InternalVnicAttachmentVnicShapeFixed3300A150g, + "FIXED3400_A1_50G": InternalVnicAttachmentVnicShapeFixed3400A150g, + "FIXED3500_A1_50G": InternalVnicAttachmentVnicShapeFixed3500A150g, + "FIXED3600_A1_50G": InternalVnicAttachmentVnicShapeFixed3600A150g, + "FIXED3700_A1_50G": InternalVnicAttachmentVnicShapeFixed3700A150g, + "FIXED3800_A1_50G": InternalVnicAttachmentVnicShapeFixed3800A150g, + "FIXED3900_A1_50G": InternalVnicAttachmentVnicShapeFixed3900A150g, + "FIXED4000_A1_50G": InternalVnicAttachmentVnicShapeFixed4000A150g, + "FIXED5000_TELESIS_A1_50G": InternalVnicAttachmentVnicShapeFixed5000TelesisA150g, + "ENTIREHOST_A1_50G": InternalVnicAttachmentVnicShapeEntirehostA150g, + "DYNAMIC_X9_50G": InternalVnicAttachmentVnicShapeDynamicX950g, + "FIXED0040_X9_50G": InternalVnicAttachmentVnicShapeFixed0040X950g, + "FIXED0400_X9_50G": InternalVnicAttachmentVnicShapeFixed0400X950g, + "FIXED0800_X9_50G": InternalVnicAttachmentVnicShapeFixed0800X950g, + "FIXED1200_X9_50G": InternalVnicAttachmentVnicShapeFixed1200X950g, + "FIXED1600_X9_50G": InternalVnicAttachmentVnicShapeFixed1600X950g, + "FIXED2000_X9_50G": InternalVnicAttachmentVnicShapeFixed2000X950g, + "FIXED2400_X9_50G": InternalVnicAttachmentVnicShapeFixed2400X950g, + "FIXED2800_X9_50G": InternalVnicAttachmentVnicShapeFixed2800X950g, + "FIXED3200_X9_50G": InternalVnicAttachmentVnicShapeFixed3200X950g, + "FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeFixed3600X950g, + "FIXED4000_X9_50G": InternalVnicAttachmentVnicShapeFixed4000X950g, + "STANDARD_VM_FIXED0100_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0100X950g, + "STANDARD_VM_FIXED0200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0200X950g, + "STANDARD_VM_FIXED0300_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0300X950g, + "STANDARD_VM_FIXED0400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0400X950g, + "STANDARD_VM_FIXED0500_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0500X950g, + "STANDARD_VM_FIXED0600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0600X950g, + "STANDARD_VM_FIXED0700_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0700X950g, + "STANDARD_VM_FIXED0800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0800X950g, + "STANDARD_VM_FIXED0900_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed0900X950g, + "STANDARD_VM_FIXED1000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1000X950g, + "STANDARD_VM_FIXED1100_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1100X950g, + "STANDARD_VM_FIXED1200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1200X950g, + "STANDARD_VM_FIXED1300_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1300X950g, + "STANDARD_VM_FIXED1400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1400X950g, + "STANDARD_VM_FIXED1500_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1500X950g, + "STANDARD_VM_FIXED1600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1600X950g, + "STANDARD_VM_FIXED1700_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1700X950g, + "STANDARD_VM_FIXED1800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1800X950g, + "STANDARD_VM_FIXED1900_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed1900X950g, + "STANDARD_VM_FIXED2000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2000X950g, + "STANDARD_VM_FIXED2100_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2100X950g, + "STANDARD_VM_FIXED2200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2200X950g, + "STANDARD_VM_FIXED2300_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2300X950g, + "STANDARD_VM_FIXED2400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2400X950g, + "STANDARD_VM_FIXED2500_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2500X950g, + "STANDARD_VM_FIXED2600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2600X950g, + "STANDARD_VM_FIXED2700_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2700X950g, + "STANDARD_VM_FIXED2800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2800X950g, + "STANDARD_VM_FIXED2900_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed2900X950g, + "STANDARD_VM_FIXED3000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3000X950g, + "STANDARD_VM_FIXED3100_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3100X950g, + "STANDARD_VM_FIXED3200_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3200X950g, + "STANDARD_VM_FIXED3300_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3300X950g, + "STANDARD_VM_FIXED3400_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3400X950g, + "STANDARD_VM_FIXED3500_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3500X950g, + "STANDARD_VM_FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3600X950g, + "STANDARD_VM_FIXED3700_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3700X950g, + "STANDARD_VM_FIXED3800_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3800X950g, + "STANDARD_VM_FIXED3900_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed3900X950g, + "STANDARD_VM_FIXED4000_X9_50G": InternalVnicAttachmentVnicShapeStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0025X950g, + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0050X950g, + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0075X950g, + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0100X950g, + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0125X950g, + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0150X950g, + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0175X950g, + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0200X950g, + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0225X950g, + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0250X950g, + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0275X950g, + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0300X950g, + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0325X950g, + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0350X950g, + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0375X950g, + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0400X950g, + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0425X950g, + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0450X950g, + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0475X950g, + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0500X950g, + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0525X950g, + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0550X950g, + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0575X950g, + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0600X950g, + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0625X950g, + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0650X950g, + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0675X950g, + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0700X950g, + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0725X950g, + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0750X950g, + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0775X950g, + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0800X950g, + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0825X950g, + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0850X950g, + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0875X950g, + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0900X950g, + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0925X950g, + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0950X950g, + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0975X950g, + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1000X950g, + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1025X950g, + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1050X950g, + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1075X950g, + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1100X950g, + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1125X950g, + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1150X950g, + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1175X950g, + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1200X950g, + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1225X950g, + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1250X950g, + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1275X950g, + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1300X950g, + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1325X950g, + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1350X950g, + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1375X950g, + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1400X950g, + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1425X950g, + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1450X950g, + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1475X950g, + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1500X950g, + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1525X950g, + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1550X950g, + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1575X950g, + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1600X950g, + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1625X950g, + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1650X950g, + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1700X950g, + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1725X950g, + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1750X950g, + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1800X950g, + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1850X950g, + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1875X950g, + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1900X950g, + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1925X950g, + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1950X950g, + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2000X950g, + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2025X950g, + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2050X950g, + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2100X950g, + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2125X950g, + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2150X950g, + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2175X950g, + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2200X950g, + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2250X950g, + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2275X950g, + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2300X950g, + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2325X950g, + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2350X950g, + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2375X950g, + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2400X950g, + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2450X950g, + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2475X950g, + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2500X950g, + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2550X950g, + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2600X950g, + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2625X950g, + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2650X950g, + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2700X950g, + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2750X950g, + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2775X950g, + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2800X950g, + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2850X950g, + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2875X950g, + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2900X950g, + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2925X950g, + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2950X950g, + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2975X950g, + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3000X950g, + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3025X950g, + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3050X950g, + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3075X950g, + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3100X950g, + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3125X950g, + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3150X950g, + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3200X950g, + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3225X950g, + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3250X950g, + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3300X950g, + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3325X950g, + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3375X950g, + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3400X950g, + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3450X950g, + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3500X950g, + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3525X950g, + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3575X950g, + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3600X950g, + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3625X950g, + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3675X950g, + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3700X950g, + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3750X950g, + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3800X950g, + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3825X950g, + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3850X950g, + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3875X950g, + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3900X950g, + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3975X950g, + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4025X950g, + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4050X950g, + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4100X950g, + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4125X950g, + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4200X950g, + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4225X950g, + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4250X950g, + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4275X950g, + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4300X950g, + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4350X950g, + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4375X950g, + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4400X950g, + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4425X950g, + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4500X950g, + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4550X950g, + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4575X950g, + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4600X950g, + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4625X950g, + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4650X950g, + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4675X950g, + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4700X950g, + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4725X950g, + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4750X950g, + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4800X950g, + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4875X950g, + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4900X950g, + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4950X950g, + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed5000X950g, + "ENTIREHOST_X9_50G": InternalVnicAttachmentVnicShapeEntirehostX950g, +} + +var mappingInternalVnicAttachmentVnicShapeEnumLowerCase = map[string]InternalVnicAttachmentVnicShapeEnum{ + "dynamic": InternalVnicAttachmentVnicShapeDynamic, + "fixed0040": InternalVnicAttachmentVnicShapeFixed0040, + "fixed0060": InternalVnicAttachmentVnicShapeFixed0060, + "fixed0060_psm": InternalVnicAttachmentVnicShapeFixed0060Psm, + "fixed0100": InternalVnicAttachmentVnicShapeFixed0100, + "fixed0120": InternalVnicAttachmentVnicShapeFixed0120, + "fixed0120_2x": InternalVnicAttachmentVnicShapeFixed01202x, + "fixed0200": InternalVnicAttachmentVnicShapeFixed0200, + "fixed0240": InternalVnicAttachmentVnicShapeFixed0240, + "fixed0480": InternalVnicAttachmentVnicShapeFixed0480, + "entirehost": InternalVnicAttachmentVnicShapeEntirehost, + "dynamic_25g": InternalVnicAttachmentVnicShapeDynamic25g, + "fixed0040_25g": InternalVnicAttachmentVnicShapeFixed004025g, + "fixed0100_25g": InternalVnicAttachmentVnicShapeFixed010025g, + "fixed0200_25g": InternalVnicAttachmentVnicShapeFixed020025g, + "fixed0400_25g": InternalVnicAttachmentVnicShapeFixed040025g, + "fixed0800_25g": InternalVnicAttachmentVnicShapeFixed080025g, + "fixed1600_25g": InternalVnicAttachmentVnicShapeFixed160025g, + "fixed2400_25g": InternalVnicAttachmentVnicShapeFixed240025g, + "entirehost_25g": InternalVnicAttachmentVnicShapeEntirehost25g, + "dynamic_e1_25g": InternalVnicAttachmentVnicShapeDynamicE125g, + "fixed0040_e1_25g": InternalVnicAttachmentVnicShapeFixed0040E125g, + "fixed0070_e1_25g": InternalVnicAttachmentVnicShapeFixed0070E125g, + "fixed0140_e1_25g": InternalVnicAttachmentVnicShapeFixed0140E125g, + "fixed0280_e1_25g": InternalVnicAttachmentVnicShapeFixed0280E125g, + "fixed0560_e1_25g": InternalVnicAttachmentVnicShapeFixed0560E125g, + "fixed1120_e1_25g": InternalVnicAttachmentVnicShapeFixed1120E125g, + "fixed1680_e1_25g": InternalVnicAttachmentVnicShapeFixed1680E125g, + "entirehost_e1_25g": InternalVnicAttachmentVnicShapeEntirehostE125g, + "dynamic_b1_25g": InternalVnicAttachmentVnicShapeDynamicB125g, + "fixed0040_b1_25g": InternalVnicAttachmentVnicShapeFixed0040B125g, + "fixed0060_b1_25g": InternalVnicAttachmentVnicShapeFixed0060B125g, + "fixed0120_b1_25g": InternalVnicAttachmentVnicShapeFixed0120B125g, + "fixed0240_b1_25g": InternalVnicAttachmentVnicShapeFixed0240B125g, + "fixed0480_b1_25g": InternalVnicAttachmentVnicShapeFixed0480B125g, + "fixed0960_b1_25g": InternalVnicAttachmentVnicShapeFixed0960B125g, + "entirehost_b1_25g": InternalVnicAttachmentVnicShapeEntirehostB125g, + "micro_vm_fixed0048_e1_25g": InternalVnicAttachmentVnicShapeMicroVmFixed0048E125g, + "micro_lb_fixed0001_e1_25g": InternalVnicAttachmentVnicShapeMicroLbFixed0001E125g, + "vnicaas_fixed0200": InternalVnicAttachmentVnicShapeVnicaasFixed0200, + "vnicaas_fixed0400": InternalVnicAttachmentVnicShapeVnicaasFixed0400, + "vnicaas_fixed0700": InternalVnicAttachmentVnicShapeVnicaasFixed0700, + "vnicaas_nlb_approved_10g": InternalVnicAttachmentVnicShapeVnicaasNlbApproved10g, + "vnicaas_nlb_approved_25g": InternalVnicAttachmentVnicShapeVnicaasNlbApproved25g, + "vnicaas_telesis_25g": InternalVnicAttachmentVnicShapeVnicaasTelesis25g, + "vnicaas_telesis_10g": InternalVnicAttachmentVnicShapeVnicaasTelesis10g, + "vnicaas_ambassador_fixed0100": InternalVnicAttachmentVnicShapeVnicaasAmbassadorFixed0100, + "vnicaas_telesis_gamma": InternalVnicAttachmentVnicShapeVnicaasTelesisGamma, + "vnicaas_privatedns": InternalVnicAttachmentVnicShapeVnicaasPrivatedns, + "vnicaas_fwaas": InternalVnicAttachmentVnicShapeVnicaasFwaas, + "vnicaas_lbaas_free": InternalVnicAttachmentVnicShapeVnicaasLbaasFree, + "vnicaas_lbaas_8g_512k": InternalVnicAttachmentVnicShapeVnicaasLbaas8g512k, + "vnicaas_lbaas_8g_1m": InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m, + "vnicaas_lbaas_8g_2m": InternalVnicAttachmentVnicShapeVnicaasLbaas8g2m, + "vnicaas_lbaas_8g_3m": InternalVnicAttachmentVnicShapeVnicaasLbaas8g3m, + "vnicaas_lbaas_8g_1m_8ghost": InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m8ghost, + "vnicaas_lbaas_8g_1m_16ghost": InternalVnicAttachmentVnicShapeVnicaasLbaas8g1m16ghost, + "dynamic_e3_50g": InternalVnicAttachmentVnicShapeDynamicE350g, + "fixed0040_e3_50g": InternalVnicAttachmentVnicShapeFixed0040E350g, + "fixed0100_e3_50g": InternalVnicAttachmentVnicShapeFixed0100E350g, + "fixed0200_e3_50g": InternalVnicAttachmentVnicShapeFixed0200E350g, + "fixed0300_e3_50g": InternalVnicAttachmentVnicShapeFixed0300E350g, + "fixed0400_e3_50g": InternalVnicAttachmentVnicShapeFixed0400E350g, + "fixed0500_e3_50g": InternalVnicAttachmentVnicShapeFixed0500E350g, + "fixed0600_e3_50g": InternalVnicAttachmentVnicShapeFixed0600E350g, + "fixed0700_e3_50g": InternalVnicAttachmentVnicShapeFixed0700E350g, + "fixed0800_e3_50g": InternalVnicAttachmentVnicShapeFixed0800E350g, + "fixed0900_e3_50g": InternalVnicAttachmentVnicShapeFixed0900E350g, + "fixed1000_e3_50g": InternalVnicAttachmentVnicShapeFixed1000E350g, + "fixed1100_e3_50g": InternalVnicAttachmentVnicShapeFixed1100E350g, + "fixed1200_e3_50g": InternalVnicAttachmentVnicShapeFixed1200E350g, + "fixed1300_e3_50g": InternalVnicAttachmentVnicShapeFixed1300E350g, + "fixed1400_e3_50g": InternalVnicAttachmentVnicShapeFixed1400E350g, + "fixed1500_e3_50g": InternalVnicAttachmentVnicShapeFixed1500E350g, + "fixed1600_e3_50g": InternalVnicAttachmentVnicShapeFixed1600E350g, + "fixed1700_e3_50g": InternalVnicAttachmentVnicShapeFixed1700E350g, + "fixed1800_e3_50g": InternalVnicAttachmentVnicShapeFixed1800E350g, + "fixed1900_e3_50g": InternalVnicAttachmentVnicShapeFixed1900E350g, + "fixed2000_e3_50g": InternalVnicAttachmentVnicShapeFixed2000E350g, + "fixed2100_e3_50g": InternalVnicAttachmentVnicShapeFixed2100E350g, + "fixed2200_e3_50g": InternalVnicAttachmentVnicShapeFixed2200E350g, + "fixed2300_e3_50g": InternalVnicAttachmentVnicShapeFixed2300E350g, + "fixed2400_e3_50g": InternalVnicAttachmentVnicShapeFixed2400E350g, + "fixed2500_e3_50g": InternalVnicAttachmentVnicShapeFixed2500E350g, + "fixed2600_e3_50g": InternalVnicAttachmentVnicShapeFixed2600E350g, + "fixed2700_e3_50g": InternalVnicAttachmentVnicShapeFixed2700E350g, + "fixed2800_e3_50g": InternalVnicAttachmentVnicShapeFixed2800E350g, + "fixed2900_e3_50g": InternalVnicAttachmentVnicShapeFixed2900E350g, + "fixed3000_e3_50g": InternalVnicAttachmentVnicShapeFixed3000E350g, + "fixed3100_e3_50g": InternalVnicAttachmentVnicShapeFixed3100E350g, + "fixed3200_e3_50g": InternalVnicAttachmentVnicShapeFixed3200E350g, + "fixed3300_e3_50g": InternalVnicAttachmentVnicShapeFixed3300E350g, + "fixed3400_e3_50g": InternalVnicAttachmentVnicShapeFixed3400E350g, + "fixed3500_e3_50g": InternalVnicAttachmentVnicShapeFixed3500E350g, + "fixed3600_e3_50g": InternalVnicAttachmentVnicShapeFixed3600E350g, + "fixed3700_e3_50g": InternalVnicAttachmentVnicShapeFixed3700E350g, + "fixed3800_e3_50g": InternalVnicAttachmentVnicShapeFixed3800E350g, + "fixed3900_e3_50g": InternalVnicAttachmentVnicShapeFixed3900E350g, + "fixed4000_e3_50g": InternalVnicAttachmentVnicShapeFixed4000E350g, + "entirehost_e3_50g": InternalVnicAttachmentVnicShapeEntirehostE350g, + "dynamic_e4_50g": InternalVnicAttachmentVnicShapeDynamicE450g, + "fixed0040_e4_50g": InternalVnicAttachmentVnicShapeFixed0040E450g, + "fixed0100_e4_50g": InternalVnicAttachmentVnicShapeFixed0100E450g, + "fixed0200_e4_50g": InternalVnicAttachmentVnicShapeFixed0200E450g, + "fixed0300_e4_50g": InternalVnicAttachmentVnicShapeFixed0300E450g, + "fixed0400_e4_50g": InternalVnicAttachmentVnicShapeFixed0400E450g, + "fixed0500_e4_50g": InternalVnicAttachmentVnicShapeFixed0500E450g, + "fixed0600_e4_50g": InternalVnicAttachmentVnicShapeFixed0600E450g, + "fixed0700_e4_50g": InternalVnicAttachmentVnicShapeFixed0700E450g, + "fixed0800_e4_50g": InternalVnicAttachmentVnicShapeFixed0800E450g, + "fixed0900_e4_50g": InternalVnicAttachmentVnicShapeFixed0900E450g, + "fixed1000_e4_50g": InternalVnicAttachmentVnicShapeFixed1000E450g, + "fixed1100_e4_50g": InternalVnicAttachmentVnicShapeFixed1100E450g, + "fixed1200_e4_50g": InternalVnicAttachmentVnicShapeFixed1200E450g, + "fixed1300_e4_50g": InternalVnicAttachmentVnicShapeFixed1300E450g, + "fixed1400_e4_50g": InternalVnicAttachmentVnicShapeFixed1400E450g, + "fixed1500_e4_50g": InternalVnicAttachmentVnicShapeFixed1500E450g, + "fixed1600_e4_50g": InternalVnicAttachmentVnicShapeFixed1600E450g, + "fixed1700_e4_50g": InternalVnicAttachmentVnicShapeFixed1700E450g, + "fixed1800_e4_50g": InternalVnicAttachmentVnicShapeFixed1800E450g, + "fixed1900_e4_50g": InternalVnicAttachmentVnicShapeFixed1900E450g, + "fixed2000_e4_50g": InternalVnicAttachmentVnicShapeFixed2000E450g, + "fixed2100_e4_50g": InternalVnicAttachmentVnicShapeFixed2100E450g, + "fixed2200_e4_50g": InternalVnicAttachmentVnicShapeFixed2200E450g, + "fixed2300_e4_50g": InternalVnicAttachmentVnicShapeFixed2300E450g, + "fixed2400_e4_50g": InternalVnicAttachmentVnicShapeFixed2400E450g, + "fixed2500_e4_50g": InternalVnicAttachmentVnicShapeFixed2500E450g, + "fixed2600_e4_50g": InternalVnicAttachmentVnicShapeFixed2600E450g, + "fixed2700_e4_50g": InternalVnicAttachmentVnicShapeFixed2700E450g, + "fixed2800_e4_50g": InternalVnicAttachmentVnicShapeFixed2800E450g, + "fixed2900_e4_50g": InternalVnicAttachmentVnicShapeFixed2900E450g, + "fixed3000_e4_50g": InternalVnicAttachmentVnicShapeFixed3000E450g, + "fixed3100_e4_50g": InternalVnicAttachmentVnicShapeFixed3100E450g, + "fixed3200_e4_50g": InternalVnicAttachmentVnicShapeFixed3200E450g, + "fixed3300_e4_50g": InternalVnicAttachmentVnicShapeFixed3300E450g, + "fixed3400_e4_50g": InternalVnicAttachmentVnicShapeFixed3400E450g, + "fixed3500_e4_50g": InternalVnicAttachmentVnicShapeFixed3500E450g, + "fixed3600_e4_50g": InternalVnicAttachmentVnicShapeFixed3600E450g, + "fixed3700_e4_50g": InternalVnicAttachmentVnicShapeFixed3700E450g, + "fixed3800_e4_50g": InternalVnicAttachmentVnicShapeFixed3800E450g, + "fixed3900_e4_50g": InternalVnicAttachmentVnicShapeFixed3900E450g, + "fixed4000_e4_50g": InternalVnicAttachmentVnicShapeFixed4000E450g, + "entirehost_e4_50g": InternalVnicAttachmentVnicShapeEntirehostE450g, + "micro_vm_fixed0050_e3_50g": InternalVnicAttachmentVnicShapeMicroVmFixed0050E350g, + "micro_vm_fixed0050_e4_50g": InternalVnicAttachmentVnicShapeMicroVmFixed0050E450g, + "subcore_vm_fixed0025_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E350g, + "subcore_vm_fixed0050_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E350g, + "subcore_vm_fixed0075_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E350g, + "subcore_vm_fixed0100_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E350g, + "subcore_vm_fixed0125_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E350g, + "subcore_vm_fixed0150_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E350g, + "subcore_vm_fixed0175_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E350g, + "subcore_vm_fixed0200_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E350g, + "subcore_vm_fixed0225_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E350g, + "subcore_vm_fixed0250_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E350g, + "subcore_vm_fixed0275_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E350g, + "subcore_vm_fixed0300_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E350g, + "subcore_vm_fixed0325_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E350g, + "subcore_vm_fixed0350_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E350g, + "subcore_vm_fixed0375_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E350g, + "subcore_vm_fixed0400_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E350g, + "subcore_vm_fixed0425_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E350g, + "subcore_vm_fixed0450_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E350g, + "subcore_vm_fixed0475_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E350g, + "subcore_vm_fixed0500_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E350g, + "subcore_vm_fixed0525_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E350g, + "subcore_vm_fixed0550_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E350g, + "subcore_vm_fixed0575_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E350g, + "subcore_vm_fixed0600_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E350g, + "subcore_vm_fixed0625_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E350g, + "subcore_vm_fixed0650_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E350g, + "subcore_vm_fixed0675_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E350g, + "subcore_vm_fixed0700_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E350g, + "subcore_vm_fixed0725_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E350g, + "subcore_vm_fixed0750_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E350g, + "subcore_vm_fixed0775_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E350g, + "subcore_vm_fixed0800_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E350g, + "subcore_vm_fixed0825_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E350g, + "subcore_vm_fixed0850_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E350g, + "subcore_vm_fixed0875_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E350g, + "subcore_vm_fixed0900_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E350g, + "subcore_vm_fixed0925_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E350g, + "subcore_vm_fixed0950_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E350g, + "subcore_vm_fixed0975_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E350g, + "subcore_vm_fixed1000_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E350g, + "subcore_vm_fixed1025_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E350g, + "subcore_vm_fixed1050_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E350g, + "subcore_vm_fixed1075_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E350g, + "subcore_vm_fixed1100_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E350g, + "subcore_vm_fixed1125_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E350g, + "subcore_vm_fixed1150_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E350g, + "subcore_vm_fixed1175_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E350g, + "subcore_vm_fixed1200_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E350g, + "subcore_vm_fixed1225_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E350g, + "subcore_vm_fixed1250_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E350g, + "subcore_vm_fixed1275_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E350g, + "subcore_vm_fixed1300_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E350g, + "subcore_vm_fixed1325_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E350g, + "subcore_vm_fixed1350_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E350g, + "subcore_vm_fixed1375_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E350g, + "subcore_vm_fixed1400_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E350g, + "subcore_vm_fixed1425_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E350g, + "subcore_vm_fixed1450_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E350g, + "subcore_vm_fixed1475_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E350g, + "subcore_vm_fixed1500_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E350g, + "subcore_vm_fixed1525_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E350g, + "subcore_vm_fixed1550_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E350g, + "subcore_vm_fixed1575_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E350g, + "subcore_vm_fixed1600_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E350g, + "subcore_vm_fixed1625_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E350g, + "subcore_vm_fixed1650_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E350g, + "subcore_vm_fixed1700_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E350g, + "subcore_vm_fixed1725_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E350g, + "subcore_vm_fixed1750_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E350g, + "subcore_vm_fixed1800_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E350g, + "subcore_vm_fixed1850_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E350g, + "subcore_vm_fixed1875_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E350g, + "subcore_vm_fixed1900_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E350g, + "subcore_vm_fixed1925_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E350g, + "subcore_vm_fixed1950_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E350g, + "subcore_vm_fixed2000_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E350g, + "subcore_vm_fixed2025_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E350g, + "subcore_vm_fixed2050_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E350g, + "subcore_vm_fixed2100_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E350g, + "subcore_vm_fixed2125_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E350g, + "subcore_vm_fixed2150_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E350g, + "subcore_vm_fixed2175_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E350g, + "subcore_vm_fixed2200_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E350g, + "subcore_vm_fixed2250_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E350g, + "subcore_vm_fixed2275_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E350g, + "subcore_vm_fixed2300_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E350g, + "subcore_vm_fixed2325_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E350g, + "subcore_vm_fixed2350_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E350g, + "subcore_vm_fixed2375_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E350g, + "subcore_vm_fixed2400_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E350g, + "subcore_vm_fixed2450_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E350g, + "subcore_vm_fixed2475_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E350g, + "subcore_vm_fixed2500_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E350g, + "subcore_vm_fixed2550_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E350g, + "subcore_vm_fixed2600_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E350g, + "subcore_vm_fixed2625_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E350g, + "subcore_vm_fixed2650_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E350g, + "subcore_vm_fixed2700_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E350g, + "subcore_vm_fixed2750_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E350g, + "subcore_vm_fixed2775_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E350g, + "subcore_vm_fixed2800_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E350g, + "subcore_vm_fixed2850_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E350g, + "subcore_vm_fixed2875_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E350g, + "subcore_vm_fixed2900_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E350g, + "subcore_vm_fixed2925_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E350g, + "subcore_vm_fixed2950_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E350g, + "subcore_vm_fixed2975_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E350g, + "subcore_vm_fixed3000_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E350g, + "subcore_vm_fixed3025_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E350g, + "subcore_vm_fixed3050_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E350g, + "subcore_vm_fixed3075_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E350g, + "subcore_vm_fixed3100_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E350g, + "subcore_vm_fixed3125_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E350g, + "subcore_vm_fixed3150_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E350g, + "subcore_vm_fixed3200_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E350g, + "subcore_vm_fixed3225_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E350g, + "subcore_vm_fixed3250_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E350g, + "subcore_vm_fixed3300_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E350g, + "subcore_vm_fixed3325_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E350g, + "subcore_vm_fixed3375_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E350g, + "subcore_vm_fixed3400_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E350g, + "subcore_vm_fixed3450_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E350g, + "subcore_vm_fixed3500_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E350g, + "subcore_vm_fixed3525_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E350g, + "subcore_vm_fixed3575_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E350g, + "subcore_vm_fixed3600_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E350g, + "subcore_vm_fixed3625_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E350g, + "subcore_vm_fixed3675_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E350g, + "subcore_vm_fixed3700_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E350g, + "subcore_vm_fixed3750_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E350g, + "subcore_vm_fixed3800_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E350g, + "subcore_vm_fixed3825_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E350g, + "subcore_vm_fixed3850_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E350g, + "subcore_vm_fixed3875_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E350g, + "subcore_vm_fixed3900_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E350g, + "subcore_vm_fixed3975_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E350g, + "subcore_vm_fixed4000_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E350g, + "subcore_vm_fixed4025_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E350g, + "subcore_vm_fixed4050_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E350g, + "subcore_vm_fixed4100_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E350g, + "subcore_vm_fixed4125_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E350g, + "subcore_vm_fixed4200_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E350g, + "subcore_vm_fixed4225_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E350g, + "subcore_vm_fixed4250_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E350g, + "subcore_vm_fixed4275_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E350g, + "subcore_vm_fixed4300_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E350g, + "subcore_vm_fixed4350_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E350g, + "subcore_vm_fixed4375_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E350g, + "subcore_vm_fixed4400_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E350g, + "subcore_vm_fixed4425_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E350g, + "subcore_vm_fixed4500_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E350g, + "subcore_vm_fixed4550_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E350g, + "subcore_vm_fixed4575_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E350g, + "subcore_vm_fixed4600_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E350g, + "subcore_vm_fixed4625_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E350g, + "subcore_vm_fixed4650_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E350g, + "subcore_vm_fixed4675_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E350g, + "subcore_vm_fixed4700_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E350g, + "subcore_vm_fixed4725_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E350g, + "subcore_vm_fixed4750_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E350g, + "subcore_vm_fixed4800_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E350g, + "subcore_vm_fixed4875_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E350g, + "subcore_vm_fixed4900_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E350g, + "subcore_vm_fixed4950_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E350g, + "subcore_vm_fixed5000_e3_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E350g, + "subcore_vm_fixed0025_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0025E450g, + "subcore_vm_fixed0050_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0050E450g, + "subcore_vm_fixed0075_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0075E450g, + "subcore_vm_fixed0100_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100E450g, + "subcore_vm_fixed0125_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0125E450g, + "subcore_vm_fixed0150_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0150E450g, + "subcore_vm_fixed0175_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0175E450g, + "subcore_vm_fixed0200_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200E450g, + "subcore_vm_fixed0225_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0225E450g, + "subcore_vm_fixed0250_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0250E450g, + "subcore_vm_fixed0275_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0275E450g, + "subcore_vm_fixed0300_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300E450g, + "subcore_vm_fixed0325_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0325E450g, + "subcore_vm_fixed0350_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0350E450g, + "subcore_vm_fixed0375_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0375E450g, + "subcore_vm_fixed0400_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400E450g, + "subcore_vm_fixed0425_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0425E450g, + "subcore_vm_fixed0450_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450E450g, + "subcore_vm_fixed0475_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0475E450g, + "subcore_vm_fixed0500_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500E450g, + "subcore_vm_fixed0525_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0525E450g, + "subcore_vm_fixed0550_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0550E450g, + "subcore_vm_fixed0575_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0575E450g, + "subcore_vm_fixed0600_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600E450g, + "subcore_vm_fixed0625_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0625E450g, + "subcore_vm_fixed0650_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0650E450g, + "subcore_vm_fixed0675_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0675E450g, + "subcore_vm_fixed0700_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700E450g, + "subcore_vm_fixed0725_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0725E450g, + "subcore_vm_fixed0750_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0750E450g, + "subcore_vm_fixed0775_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0775E450g, + "subcore_vm_fixed0800_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800E450g, + "subcore_vm_fixed0825_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0825E450g, + "subcore_vm_fixed0850_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0850E450g, + "subcore_vm_fixed0875_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0875E450g, + "subcore_vm_fixed0900_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900E450g, + "subcore_vm_fixed0925_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0925E450g, + "subcore_vm_fixed0950_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0950E450g, + "subcore_vm_fixed0975_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0975E450g, + "subcore_vm_fixed1000_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000E450g, + "subcore_vm_fixed1025_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1025E450g, + "subcore_vm_fixed1050_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1050E450g, + "subcore_vm_fixed1075_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1075E450g, + "subcore_vm_fixed1100_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100E450g, + "subcore_vm_fixed1125_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1125E450g, + "subcore_vm_fixed1150_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1150E450g, + "subcore_vm_fixed1175_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1175E450g, + "subcore_vm_fixed1200_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200E450g, + "subcore_vm_fixed1225_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1225E450g, + "subcore_vm_fixed1250_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1250E450g, + "subcore_vm_fixed1275_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1275E450g, + "subcore_vm_fixed1300_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300E450g, + "subcore_vm_fixed1325_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1325E450g, + "subcore_vm_fixed1350_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350E450g, + "subcore_vm_fixed1375_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1375E450g, + "subcore_vm_fixed1400_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400E450g, + "subcore_vm_fixed1425_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1425E450g, + "subcore_vm_fixed1450_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1450E450g, + "subcore_vm_fixed1475_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1475E450g, + "subcore_vm_fixed1500_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500E450g, + "subcore_vm_fixed1525_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1525E450g, + "subcore_vm_fixed1550_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1550E450g, + "subcore_vm_fixed1575_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1575E450g, + "subcore_vm_fixed1600_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600E450g, + "subcore_vm_fixed1625_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1625E450g, + "subcore_vm_fixed1650_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1650E450g, + "subcore_vm_fixed1700_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700E450g, + "subcore_vm_fixed1725_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1725E450g, + "subcore_vm_fixed1750_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1750E450g, + "subcore_vm_fixed1800_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800E450g, + "subcore_vm_fixed1850_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1850E450g, + "subcore_vm_fixed1875_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1875E450g, + "subcore_vm_fixed1900_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900E450g, + "subcore_vm_fixed1925_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1925E450g, + "subcore_vm_fixed1950_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1950E450g, + "subcore_vm_fixed2000_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000E450g, + "subcore_vm_fixed2025_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2025E450g, + "subcore_vm_fixed2050_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2050E450g, + "subcore_vm_fixed2100_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100E450g, + "subcore_vm_fixed2125_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2125E450g, + "subcore_vm_fixed2150_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2150E450g, + "subcore_vm_fixed2175_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2175E450g, + "subcore_vm_fixed2200_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200E450g, + "subcore_vm_fixed2250_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250E450g, + "subcore_vm_fixed2275_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2275E450g, + "subcore_vm_fixed2300_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300E450g, + "subcore_vm_fixed2325_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2325E450g, + "subcore_vm_fixed2350_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2350E450g, + "subcore_vm_fixed2375_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2375E450g, + "subcore_vm_fixed2400_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400E450g, + "subcore_vm_fixed2450_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2450E450g, + "subcore_vm_fixed2475_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2475E450g, + "subcore_vm_fixed2500_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500E450g, + "subcore_vm_fixed2550_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2550E450g, + "subcore_vm_fixed2600_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600E450g, + "subcore_vm_fixed2625_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2625E450g, + "subcore_vm_fixed2650_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2650E450g, + "subcore_vm_fixed2700_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700E450g, + "subcore_vm_fixed2750_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2750E450g, + "subcore_vm_fixed2775_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2775E450g, + "subcore_vm_fixed2800_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800E450g, + "subcore_vm_fixed2850_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2850E450g, + "subcore_vm_fixed2875_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2875E450g, + "subcore_vm_fixed2900_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900E450g, + "subcore_vm_fixed2925_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2925E450g, + "subcore_vm_fixed2950_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2950E450g, + "subcore_vm_fixed2975_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2975E450g, + "subcore_vm_fixed3000_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000E450g, + "subcore_vm_fixed3025_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3025E450g, + "subcore_vm_fixed3050_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3050E450g, + "subcore_vm_fixed3075_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3075E450g, + "subcore_vm_fixed3100_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100E450g, + "subcore_vm_fixed3125_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3125E450g, + "subcore_vm_fixed3150_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150E450g, + "subcore_vm_fixed3200_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200E450g, + "subcore_vm_fixed3225_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3225E450g, + "subcore_vm_fixed3250_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3250E450g, + "subcore_vm_fixed3300_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300E450g, + "subcore_vm_fixed3325_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3325E450g, + "subcore_vm_fixed3375_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3375E450g, + "subcore_vm_fixed3400_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400E450g, + "subcore_vm_fixed3450_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3450E450g, + "subcore_vm_fixed3500_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500E450g, + "subcore_vm_fixed3525_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3525E450g, + "subcore_vm_fixed3575_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3575E450g, + "subcore_vm_fixed3600_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600E450g, + "subcore_vm_fixed3625_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3625E450g, + "subcore_vm_fixed3675_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3675E450g, + "subcore_vm_fixed3700_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700E450g, + "subcore_vm_fixed3750_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3750E450g, + "subcore_vm_fixed3800_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800E450g, + "subcore_vm_fixed3825_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3825E450g, + "subcore_vm_fixed3850_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3850E450g, + "subcore_vm_fixed3875_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3875E450g, + "subcore_vm_fixed3900_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900E450g, + "subcore_vm_fixed3975_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3975E450g, + "subcore_vm_fixed4000_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000E450g, + "subcore_vm_fixed4025_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4025E450g, + "subcore_vm_fixed4050_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050E450g, + "subcore_vm_fixed4100_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100E450g, + "subcore_vm_fixed4125_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4125E450g, + "subcore_vm_fixed4200_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200E450g, + "subcore_vm_fixed4225_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4225E450g, + "subcore_vm_fixed4250_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4250E450g, + "subcore_vm_fixed4275_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4275E450g, + "subcore_vm_fixed4300_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300E450g, + "subcore_vm_fixed4350_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4350E450g, + "subcore_vm_fixed4375_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4375E450g, + "subcore_vm_fixed4400_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400E450g, + "subcore_vm_fixed4425_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4425E450g, + "subcore_vm_fixed4500_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500E450g, + "subcore_vm_fixed4550_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4550E450g, + "subcore_vm_fixed4575_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4575E450g, + "subcore_vm_fixed4600_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600E450g, + "subcore_vm_fixed4625_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4625E450g, + "subcore_vm_fixed4650_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4650E450g, + "subcore_vm_fixed4675_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4675E450g, + "subcore_vm_fixed4700_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700E450g, + "subcore_vm_fixed4725_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4725E450g, + "subcore_vm_fixed4750_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4750E450g, + "subcore_vm_fixed4800_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800E450g, + "subcore_vm_fixed4875_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4875E450g, + "subcore_vm_fixed4900_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900E450g, + "subcore_vm_fixed4950_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950E450g, + "subcore_vm_fixed5000_e4_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000E450g, + "subcore_vm_fixed0020_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0020A150g, + "subcore_vm_fixed0040_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0040A150g, + "subcore_vm_fixed0060_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0060A150g, + "subcore_vm_fixed0080_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0080A150g, + "subcore_vm_fixed0100_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0100A150g, + "subcore_vm_fixed0120_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0120A150g, + "subcore_vm_fixed0140_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0140A150g, + "subcore_vm_fixed0160_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0160A150g, + "subcore_vm_fixed0180_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0180A150g, + "subcore_vm_fixed0200_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0200A150g, + "subcore_vm_fixed0220_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0220A150g, + "subcore_vm_fixed0240_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0240A150g, + "subcore_vm_fixed0260_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0260A150g, + "subcore_vm_fixed0280_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0280A150g, + "subcore_vm_fixed0300_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0300A150g, + "subcore_vm_fixed0320_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0320A150g, + "subcore_vm_fixed0340_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0340A150g, + "subcore_vm_fixed0360_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0360A150g, + "subcore_vm_fixed0380_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0380A150g, + "subcore_vm_fixed0400_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0400A150g, + "subcore_vm_fixed0420_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0420A150g, + "subcore_vm_fixed0440_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0440A150g, + "subcore_vm_fixed0460_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0460A150g, + "subcore_vm_fixed0480_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0480A150g, + "subcore_vm_fixed0500_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0500A150g, + "subcore_vm_fixed0520_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0520A150g, + "subcore_vm_fixed0540_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0540A150g, + "subcore_vm_fixed0560_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0560A150g, + "subcore_vm_fixed0580_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0580A150g, + "subcore_vm_fixed0600_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0600A150g, + "subcore_vm_fixed0620_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0620A150g, + "subcore_vm_fixed0640_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0640A150g, + "subcore_vm_fixed0660_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0660A150g, + "subcore_vm_fixed0680_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0680A150g, + "subcore_vm_fixed0700_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0700A150g, + "subcore_vm_fixed0720_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0720A150g, + "subcore_vm_fixed0740_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0740A150g, + "subcore_vm_fixed0760_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0760A150g, + "subcore_vm_fixed0780_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0780A150g, + "subcore_vm_fixed0800_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0800A150g, + "subcore_vm_fixed0820_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0820A150g, + "subcore_vm_fixed0840_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0840A150g, + "subcore_vm_fixed0860_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0860A150g, + "subcore_vm_fixed0880_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0880A150g, + "subcore_vm_fixed0900_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900A150g, + "subcore_vm_fixed0920_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0920A150g, + "subcore_vm_fixed0940_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0940A150g, + "subcore_vm_fixed0960_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0960A150g, + "subcore_vm_fixed0980_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0980A150g, + "subcore_vm_fixed1000_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1000A150g, + "subcore_vm_fixed1020_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1020A150g, + "subcore_vm_fixed1040_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1040A150g, + "subcore_vm_fixed1060_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1060A150g, + "subcore_vm_fixed1080_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1080A150g, + "subcore_vm_fixed1100_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1100A150g, + "subcore_vm_fixed1120_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1120A150g, + "subcore_vm_fixed1140_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1140A150g, + "subcore_vm_fixed1160_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1160A150g, + "subcore_vm_fixed1180_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1180A150g, + "subcore_vm_fixed1200_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1200A150g, + "subcore_vm_fixed1220_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1220A150g, + "subcore_vm_fixed1240_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1240A150g, + "subcore_vm_fixed1260_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1260A150g, + "subcore_vm_fixed1280_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1280A150g, + "subcore_vm_fixed1300_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1300A150g, + "subcore_vm_fixed1320_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1320A150g, + "subcore_vm_fixed1340_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1340A150g, + "subcore_vm_fixed1360_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1360A150g, + "subcore_vm_fixed1380_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1380A150g, + "subcore_vm_fixed1400_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1400A150g, + "subcore_vm_fixed1420_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1420A150g, + "subcore_vm_fixed1440_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1440A150g, + "subcore_vm_fixed1460_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1460A150g, + "subcore_vm_fixed1480_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1480A150g, + "subcore_vm_fixed1500_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1500A150g, + "subcore_vm_fixed1520_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1520A150g, + "subcore_vm_fixed1540_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1540A150g, + "subcore_vm_fixed1560_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1560A150g, + "subcore_vm_fixed1580_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1580A150g, + "subcore_vm_fixed1600_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1600A150g, + "subcore_vm_fixed1620_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1620A150g, + "subcore_vm_fixed1640_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1640A150g, + "subcore_vm_fixed1660_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1660A150g, + "subcore_vm_fixed1680_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1680A150g, + "subcore_vm_fixed1700_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1700A150g, + "subcore_vm_fixed1720_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1720A150g, + "subcore_vm_fixed1740_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1740A150g, + "subcore_vm_fixed1760_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1760A150g, + "subcore_vm_fixed1780_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1780A150g, + "subcore_vm_fixed1800_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800A150g, + "subcore_vm_fixed1820_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1820A150g, + "subcore_vm_fixed1840_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1840A150g, + "subcore_vm_fixed1860_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1860A150g, + "subcore_vm_fixed1880_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1880A150g, + "subcore_vm_fixed1900_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1900A150g, + "subcore_vm_fixed1920_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1920A150g, + "subcore_vm_fixed1940_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1940A150g, + "subcore_vm_fixed1960_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1960A150g, + "subcore_vm_fixed1980_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1980A150g, + "subcore_vm_fixed2000_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2000A150g, + "subcore_vm_fixed2020_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2020A150g, + "subcore_vm_fixed2040_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2040A150g, + "subcore_vm_fixed2060_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2060A150g, + "subcore_vm_fixed2080_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2080A150g, + "subcore_vm_fixed2100_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2100A150g, + "subcore_vm_fixed2120_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2120A150g, + "subcore_vm_fixed2140_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2140A150g, + "subcore_vm_fixed2160_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2160A150g, + "subcore_vm_fixed2180_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2180A150g, + "subcore_vm_fixed2200_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2200A150g, + "subcore_vm_fixed2220_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2220A150g, + "subcore_vm_fixed2240_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2240A150g, + "subcore_vm_fixed2260_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2260A150g, + "subcore_vm_fixed2280_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2280A150g, + "subcore_vm_fixed2300_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2300A150g, + "subcore_vm_fixed2320_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2320A150g, + "subcore_vm_fixed2340_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2340A150g, + "subcore_vm_fixed2360_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2360A150g, + "subcore_vm_fixed2380_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2380A150g, + "subcore_vm_fixed2400_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2400A150g, + "subcore_vm_fixed2420_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2420A150g, + "subcore_vm_fixed2440_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2440A150g, + "subcore_vm_fixed2460_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2460A150g, + "subcore_vm_fixed2480_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2480A150g, + "subcore_vm_fixed2500_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2500A150g, + "subcore_vm_fixed2520_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2520A150g, + "subcore_vm_fixed2540_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2540A150g, + "subcore_vm_fixed2560_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2560A150g, + "subcore_vm_fixed2580_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2580A150g, + "subcore_vm_fixed2600_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2600A150g, + "subcore_vm_fixed2620_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2620A150g, + "subcore_vm_fixed2640_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2640A150g, + "subcore_vm_fixed2660_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2660A150g, + "subcore_vm_fixed2680_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2680A150g, + "subcore_vm_fixed2700_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700A150g, + "subcore_vm_fixed2720_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2720A150g, + "subcore_vm_fixed2740_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2740A150g, + "subcore_vm_fixed2760_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2760A150g, + "subcore_vm_fixed2780_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2780A150g, + "subcore_vm_fixed2800_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2800A150g, + "subcore_vm_fixed2820_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2820A150g, + "subcore_vm_fixed2840_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2840A150g, + "subcore_vm_fixed2860_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2860A150g, + "subcore_vm_fixed2880_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2880A150g, + "subcore_vm_fixed2900_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2900A150g, + "subcore_vm_fixed2920_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2920A150g, + "subcore_vm_fixed2940_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2940A150g, + "subcore_vm_fixed2960_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2960A150g, + "subcore_vm_fixed2980_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2980A150g, + "subcore_vm_fixed3000_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3000A150g, + "subcore_vm_fixed3020_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3020A150g, + "subcore_vm_fixed3040_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3040A150g, + "subcore_vm_fixed3060_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3060A150g, + "subcore_vm_fixed3080_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3080A150g, + "subcore_vm_fixed3100_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3100A150g, + "subcore_vm_fixed3120_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3120A150g, + "subcore_vm_fixed3140_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3140A150g, + "subcore_vm_fixed3160_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3160A150g, + "subcore_vm_fixed3180_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3180A150g, + "subcore_vm_fixed3200_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3200A150g, + "subcore_vm_fixed3220_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3220A150g, + "subcore_vm_fixed3240_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3240A150g, + "subcore_vm_fixed3260_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3260A150g, + "subcore_vm_fixed3280_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3280A150g, + "subcore_vm_fixed3300_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3300A150g, + "subcore_vm_fixed3320_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3320A150g, + "subcore_vm_fixed3340_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3340A150g, + "subcore_vm_fixed3360_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3360A150g, + "subcore_vm_fixed3380_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3380A150g, + "subcore_vm_fixed3400_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3400A150g, + "subcore_vm_fixed3420_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3420A150g, + "subcore_vm_fixed3440_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3440A150g, + "subcore_vm_fixed3460_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3460A150g, + "subcore_vm_fixed3480_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3480A150g, + "subcore_vm_fixed3500_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3500A150g, + "subcore_vm_fixed3520_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3520A150g, + "subcore_vm_fixed3540_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3540A150g, + "subcore_vm_fixed3560_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3560A150g, + "subcore_vm_fixed3580_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3580A150g, + "subcore_vm_fixed3600_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600A150g, + "subcore_vm_fixed3620_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3620A150g, + "subcore_vm_fixed3640_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3640A150g, + "subcore_vm_fixed3660_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3660A150g, + "subcore_vm_fixed3680_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3680A150g, + "subcore_vm_fixed3700_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3700A150g, + "subcore_vm_fixed3720_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3720A150g, + "subcore_vm_fixed3740_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3740A150g, + "subcore_vm_fixed3760_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3760A150g, + "subcore_vm_fixed3780_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3780A150g, + "subcore_vm_fixed3800_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3800A150g, + "subcore_vm_fixed3820_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3820A150g, + "subcore_vm_fixed3840_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3840A150g, + "subcore_vm_fixed3860_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3860A150g, + "subcore_vm_fixed3880_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3880A150g, + "subcore_vm_fixed3900_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3900A150g, + "subcore_vm_fixed3920_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3920A150g, + "subcore_vm_fixed3940_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3940A150g, + "subcore_vm_fixed3960_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3960A150g, + "subcore_vm_fixed3980_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3980A150g, + "subcore_vm_fixed4000_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4000A150g, + "subcore_vm_fixed4020_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4020A150g, + "subcore_vm_fixed4040_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4040A150g, + "subcore_vm_fixed4060_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4060A150g, + "subcore_vm_fixed4080_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4080A150g, + "subcore_vm_fixed4100_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4100A150g, + "subcore_vm_fixed4120_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4120A150g, + "subcore_vm_fixed4140_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4140A150g, + "subcore_vm_fixed4160_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4160A150g, + "subcore_vm_fixed4180_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4180A150g, + "subcore_vm_fixed4200_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4200A150g, + "subcore_vm_fixed4220_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4220A150g, + "subcore_vm_fixed4240_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4240A150g, + "subcore_vm_fixed4260_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4260A150g, + "subcore_vm_fixed4280_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4280A150g, + "subcore_vm_fixed4300_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4300A150g, + "subcore_vm_fixed4320_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4320A150g, + "subcore_vm_fixed4340_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4340A150g, + "subcore_vm_fixed4360_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4360A150g, + "subcore_vm_fixed4380_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4380A150g, + "subcore_vm_fixed4400_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4400A150g, + "subcore_vm_fixed4420_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4420A150g, + "subcore_vm_fixed4440_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4440A150g, + "subcore_vm_fixed4460_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4460A150g, + "subcore_vm_fixed4480_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4480A150g, + "subcore_vm_fixed4500_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500A150g, + "subcore_vm_fixed4520_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4520A150g, + "subcore_vm_fixed4540_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4540A150g, + "subcore_vm_fixed4560_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4560A150g, + "subcore_vm_fixed4580_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4580A150g, + "subcore_vm_fixed4600_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4600A150g, + "subcore_vm_fixed4620_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4620A150g, + "subcore_vm_fixed4640_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4640A150g, + "subcore_vm_fixed4660_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4660A150g, + "subcore_vm_fixed4680_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4680A150g, + "subcore_vm_fixed4700_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4700A150g, + "subcore_vm_fixed4720_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4720A150g, + "subcore_vm_fixed4740_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4740A150g, + "subcore_vm_fixed4760_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4760A150g, + "subcore_vm_fixed4780_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4780A150g, + "subcore_vm_fixed4800_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4800A150g, + "subcore_vm_fixed4820_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4820A150g, + "subcore_vm_fixed4840_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4840A150g, + "subcore_vm_fixed4860_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4860A150g, + "subcore_vm_fixed4880_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4880A150g, + "subcore_vm_fixed4900_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4900A150g, + "subcore_vm_fixed4920_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4920A150g, + "subcore_vm_fixed4940_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4940A150g, + "subcore_vm_fixed4960_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4960A150g, + "subcore_vm_fixed4980_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4980A150g, + "subcore_vm_fixed5000_a1_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed5000A150g, + "subcore_vm_fixed0090_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0090X950g, + "subcore_vm_fixed0180_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0180X950g, + "subcore_vm_fixed0270_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0270X950g, + "subcore_vm_fixed0360_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0360X950g, + "subcore_vm_fixed0450_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0450X950g, + "subcore_vm_fixed0540_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0540X950g, + "subcore_vm_fixed0630_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0630X950g, + "subcore_vm_fixed0720_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0720X950g, + "subcore_vm_fixed0810_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0810X950g, + "subcore_vm_fixed0900_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0900X950g, + "subcore_vm_fixed0990_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed0990X950g, + "subcore_vm_fixed1080_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1080X950g, + "subcore_vm_fixed1170_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1170X950g, + "subcore_vm_fixed1260_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1260X950g, + "subcore_vm_fixed1350_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1350X950g, + "subcore_vm_fixed1440_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1440X950g, + "subcore_vm_fixed1530_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1530X950g, + "subcore_vm_fixed1620_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1620X950g, + "subcore_vm_fixed1710_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1710X950g, + "subcore_vm_fixed1800_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1800X950g, + "subcore_vm_fixed1890_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1890X950g, + "subcore_vm_fixed1980_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed1980X950g, + "subcore_vm_fixed2070_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2070X950g, + "subcore_vm_fixed2160_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2160X950g, + "subcore_vm_fixed2250_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2250X950g, + "subcore_vm_fixed2340_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2340X950g, + "subcore_vm_fixed2430_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2430X950g, + "subcore_vm_fixed2520_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2520X950g, + "subcore_vm_fixed2610_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2610X950g, + "subcore_vm_fixed2700_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2700X950g, + "subcore_vm_fixed2790_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2790X950g, + "subcore_vm_fixed2880_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2880X950g, + "subcore_vm_fixed2970_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed2970X950g, + "subcore_vm_fixed3060_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3060X950g, + "subcore_vm_fixed3150_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3150X950g, + "subcore_vm_fixed3240_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3240X950g, + "subcore_vm_fixed3330_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3330X950g, + "subcore_vm_fixed3420_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3420X950g, + "subcore_vm_fixed3510_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3510X950g, + "subcore_vm_fixed3600_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3600X950g, + "subcore_vm_fixed3690_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3690X950g, + "subcore_vm_fixed3780_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3780X950g, + "subcore_vm_fixed3870_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3870X950g, + "subcore_vm_fixed3960_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed3960X950g, + "subcore_vm_fixed4050_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4050X950g, + "subcore_vm_fixed4140_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4140X950g, + "subcore_vm_fixed4230_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4230X950g, + "subcore_vm_fixed4320_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4320X950g, + "subcore_vm_fixed4410_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4410X950g, + "subcore_vm_fixed4500_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4500X950g, + "subcore_vm_fixed4590_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4590X950g, + "subcore_vm_fixed4680_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4680X950g, + "subcore_vm_fixed4770_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4770X950g, + "subcore_vm_fixed4860_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4860X950g, + "subcore_vm_fixed4950_x9_50g": InternalVnicAttachmentVnicShapeSubcoreVmFixed4950X950g, + "dynamic_a1_50g": InternalVnicAttachmentVnicShapeDynamicA150g, + "fixed0040_a1_50g": InternalVnicAttachmentVnicShapeFixed0040A150g, + "fixed0100_a1_50g": InternalVnicAttachmentVnicShapeFixed0100A150g, + "fixed0200_a1_50g": InternalVnicAttachmentVnicShapeFixed0200A150g, + "fixed0300_a1_50g": InternalVnicAttachmentVnicShapeFixed0300A150g, + "fixed0400_a1_50g": InternalVnicAttachmentVnicShapeFixed0400A150g, + "fixed0500_a1_50g": InternalVnicAttachmentVnicShapeFixed0500A150g, + "fixed0600_a1_50g": InternalVnicAttachmentVnicShapeFixed0600A150g, + "fixed0700_a1_50g": InternalVnicAttachmentVnicShapeFixed0700A150g, + "fixed0800_a1_50g": InternalVnicAttachmentVnicShapeFixed0800A150g, + "fixed0900_a1_50g": InternalVnicAttachmentVnicShapeFixed0900A150g, + "fixed1000_a1_50g": InternalVnicAttachmentVnicShapeFixed1000A150g, + "fixed1100_a1_50g": InternalVnicAttachmentVnicShapeFixed1100A150g, + "fixed1200_a1_50g": InternalVnicAttachmentVnicShapeFixed1200A150g, + "fixed1300_a1_50g": InternalVnicAttachmentVnicShapeFixed1300A150g, + "fixed1400_a1_50g": InternalVnicAttachmentVnicShapeFixed1400A150g, + "fixed1500_a1_50g": InternalVnicAttachmentVnicShapeFixed1500A150g, + "fixed1600_a1_50g": InternalVnicAttachmentVnicShapeFixed1600A150g, + "fixed1700_a1_50g": InternalVnicAttachmentVnicShapeFixed1700A150g, + "fixed1800_a1_50g": InternalVnicAttachmentVnicShapeFixed1800A150g, + "fixed1900_a1_50g": InternalVnicAttachmentVnicShapeFixed1900A150g, + "fixed2000_a1_50g": InternalVnicAttachmentVnicShapeFixed2000A150g, + "fixed2100_a1_50g": InternalVnicAttachmentVnicShapeFixed2100A150g, + "fixed2200_a1_50g": InternalVnicAttachmentVnicShapeFixed2200A150g, + "fixed2300_a1_50g": InternalVnicAttachmentVnicShapeFixed2300A150g, + "fixed2400_a1_50g": InternalVnicAttachmentVnicShapeFixed2400A150g, + "fixed2500_a1_50g": InternalVnicAttachmentVnicShapeFixed2500A150g, + "fixed2600_a1_50g": InternalVnicAttachmentVnicShapeFixed2600A150g, + "fixed2700_a1_50g": InternalVnicAttachmentVnicShapeFixed2700A150g, + "fixed2800_a1_50g": InternalVnicAttachmentVnicShapeFixed2800A150g, + "fixed2900_a1_50g": InternalVnicAttachmentVnicShapeFixed2900A150g, + "fixed3000_a1_50g": InternalVnicAttachmentVnicShapeFixed3000A150g, + "fixed3100_a1_50g": InternalVnicAttachmentVnicShapeFixed3100A150g, + "fixed3200_a1_50g": InternalVnicAttachmentVnicShapeFixed3200A150g, + "fixed3300_a1_50g": InternalVnicAttachmentVnicShapeFixed3300A150g, + "fixed3400_a1_50g": InternalVnicAttachmentVnicShapeFixed3400A150g, + "fixed3500_a1_50g": InternalVnicAttachmentVnicShapeFixed3500A150g, + "fixed3600_a1_50g": InternalVnicAttachmentVnicShapeFixed3600A150g, + "fixed3700_a1_50g": InternalVnicAttachmentVnicShapeFixed3700A150g, + "fixed3800_a1_50g": InternalVnicAttachmentVnicShapeFixed3800A150g, + "fixed3900_a1_50g": InternalVnicAttachmentVnicShapeFixed3900A150g, + "fixed4000_a1_50g": InternalVnicAttachmentVnicShapeFixed4000A150g, + "fixed5000_telesis_a1_50g": InternalVnicAttachmentVnicShapeFixed5000TelesisA150g, + "entirehost_a1_50g": InternalVnicAttachmentVnicShapeEntirehostA150g, + "dynamic_x9_50g": InternalVnicAttachmentVnicShapeDynamicX950g, + "fixed0040_x9_50g": InternalVnicAttachmentVnicShapeFixed0040X950g, + "fixed0400_x9_50g": InternalVnicAttachmentVnicShapeFixed0400X950g, + "fixed0800_x9_50g": InternalVnicAttachmentVnicShapeFixed0800X950g, + "fixed1200_x9_50g": InternalVnicAttachmentVnicShapeFixed1200X950g, + "fixed1600_x9_50g": InternalVnicAttachmentVnicShapeFixed1600X950g, + "fixed2000_x9_50g": InternalVnicAttachmentVnicShapeFixed2000X950g, + "fixed2400_x9_50g": InternalVnicAttachmentVnicShapeFixed2400X950g, + "fixed2800_x9_50g": InternalVnicAttachmentVnicShapeFixed2800X950g, + "fixed3200_x9_50g": InternalVnicAttachmentVnicShapeFixed3200X950g, + "fixed3600_x9_50g": InternalVnicAttachmentVnicShapeFixed3600X950g, + "fixed4000_x9_50g": InternalVnicAttachmentVnicShapeFixed4000X950g, + "standard_vm_fixed0100_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0100X950g, + "standard_vm_fixed0200_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0200X950g, + "standard_vm_fixed0300_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0300X950g, + "standard_vm_fixed0400_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0400X950g, + "standard_vm_fixed0500_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0500X950g, + "standard_vm_fixed0600_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0600X950g, + "standard_vm_fixed0700_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0700X950g, + "standard_vm_fixed0800_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0800X950g, + "standard_vm_fixed0900_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed0900X950g, + "standard_vm_fixed1000_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1000X950g, + "standard_vm_fixed1100_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1100X950g, + "standard_vm_fixed1200_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1200X950g, + "standard_vm_fixed1300_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1300X950g, + "standard_vm_fixed1400_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1400X950g, + "standard_vm_fixed1500_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1500X950g, + "standard_vm_fixed1600_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1600X950g, + "standard_vm_fixed1700_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1700X950g, + "standard_vm_fixed1800_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1800X950g, + "standard_vm_fixed1900_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed1900X950g, + "standard_vm_fixed2000_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2000X950g, + "standard_vm_fixed2100_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2100X950g, + "standard_vm_fixed2200_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2200X950g, + "standard_vm_fixed2300_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2300X950g, + "standard_vm_fixed2400_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2400X950g, + "standard_vm_fixed2500_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2500X950g, + "standard_vm_fixed2600_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2600X950g, + "standard_vm_fixed2700_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2700X950g, + "standard_vm_fixed2800_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2800X950g, + "standard_vm_fixed2900_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed2900X950g, + "standard_vm_fixed3000_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3000X950g, + "standard_vm_fixed3100_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3100X950g, + "standard_vm_fixed3200_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3200X950g, + "standard_vm_fixed3300_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3300X950g, + "standard_vm_fixed3400_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3400X950g, + "standard_vm_fixed3500_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3500X950g, + "standard_vm_fixed3600_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3600X950g, + "standard_vm_fixed3700_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3700X950g, + "standard_vm_fixed3800_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3800X950g, + "standard_vm_fixed3900_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed3900X950g, + "standard_vm_fixed4000_x9_50g": InternalVnicAttachmentVnicShapeStandardVmFixed4000X950g, + "subcore_standard_vm_fixed0025_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0025X950g, + "subcore_standard_vm_fixed0050_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0050X950g, + "subcore_standard_vm_fixed0075_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0075X950g, + "subcore_standard_vm_fixed0100_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0100X950g, + "subcore_standard_vm_fixed0125_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0125X950g, + "subcore_standard_vm_fixed0150_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0150X950g, + "subcore_standard_vm_fixed0175_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0175X950g, + "subcore_standard_vm_fixed0200_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0200X950g, + "subcore_standard_vm_fixed0225_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0225X950g, + "subcore_standard_vm_fixed0250_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0250X950g, + "subcore_standard_vm_fixed0275_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0275X950g, + "subcore_standard_vm_fixed0300_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0300X950g, + "subcore_standard_vm_fixed0325_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0325X950g, + "subcore_standard_vm_fixed0350_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0350X950g, + "subcore_standard_vm_fixed0375_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0375X950g, + "subcore_standard_vm_fixed0400_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0400X950g, + "subcore_standard_vm_fixed0425_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0425X950g, + "subcore_standard_vm_fixed0450_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0450X950g, + "subcore_standard_vm_fixed0475_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0475X950g, + "subcore_standard_vm_fixed0500_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0500X950g, + "subcore_standard_vm_fixed0525_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0525X950g, + "subcore_standard_vm_fixed0550_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0550X950g, + "subcore_standard_vm_fixed0575_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0575X950g, + "subcore_standard_vm_fixed0600_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0600X950g, + "subcore_standard_vm_fixed0625_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0625X950g, + "subcore_standard_vm_fixed0650_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0650X950g, + "subcore_standard_vm_fixed0675_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0675X950g, + "subcore_standard_vm_fixed0700_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0700X950g, + "subcore_standard_vm_fixed0725_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0725X950g, + "subcore_standard_vm_fixed0750_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0750X950g, + "subcore_standard_vm_fixed0775_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0775X950g, + "subcore_standard_vm_fixed0800_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0800X950g, + "subcore_standard_vm_fixed0825_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0825X950g, + "subcore_standard_vm_fixed0850_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0850X950g, + "subcore_standard_vm_fixed0875_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0875X950g, + "subcore_standard_vm_fixed0900_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0900X950g, + "subcore_standard_vm_fixed0925_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0925X950g, + "subcore_standard_vm_fixed0950_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0950X950g, + "subcore_standard_vm_fixed0975_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed0975X950g, + "subcore_standard_vm_fixed1000_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1000X950g, + "subcore_standard_vm_fixed1025_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1025X950g, + "subcore_standard_vm_fixed1050_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1050X950g, + "subcore_standard_vm_fixed1075_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1075X950g, + "subcore_standard_vm_fixed1100_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1100X950g, + "subcore_standard_vm_fixed1125_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1125X950g, + "subcore_standard_vm_fixed1150_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1150X950g, + "subcore_standard_vm_fixed1175_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1175X950g, + "subcore_standard_vm_fixed1200_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1200X950g, + "subcore_standard_vm_fixed1225_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1225X950g, + "subcore_standard_vm_fixed1250_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1250X950g, + "subcore_standard_vm_fixed1275_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1275X950g, + "subcore_standard_vm_fixed1300_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1300X950g, + "subcore_standard_vm_fixed1325_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1325X950g, + "subcore_standard_vm_fixed1350_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1350X950g, + "subcore_standard_vm_fixed1375_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1375X950g, + "subcore_standard_vm_fixed1400_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1400X950g, + "subcore_standard_vm_fixed1425_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1425X950g, + "subcore_standard_vm_fixed1450_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1450X950g, + "subcore_standard_vm_fixed1475_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1475X950g, + "subcore_standard_vm_fixed1500_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1500X950g, + "subcore_standard_vm_fixed1525_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1525X950g, + "subcore_standard_vm_fixed1550_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1550X950g, + "subcore_standard_vm_fixed1575_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1575X950g, + "subcore_standard_vm_fixed1600_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1600X950g, + "subcore_standard_vm_fixed1625_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1625X950g, + "subcore_standard_vm_fixed1650_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1650X950g, + "subcore_standard_vm_fixed1700_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1700X950g, + "subcore_standard_vm_fixed1725_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1725X950g, + "subcore_standard_vm_fixed1750_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1750X950g, + "subcore_standard_vm_fixed1800_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1800X950g, + "subcore_standard_vm_fixed1850_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1850X950g, + "subcore_standard_vm_fixed1875_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1875X950g, + "subcore_standard_vm_fixed1900_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1900X950g, + "subcore_standard_vm_fixed1925_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1925X950g, + "subcore_standard_vm_fixed1950_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed1950X950g, + "subcore_standard_vm_fixed2000_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2000X950g, + "subcore_standard_vm_fixed2025_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2025X950g, + "subcore_standard_vm_fixed2050_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2050X950g, + "subcore_standard_vm_fixed2100_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2100X950g, + "subcore_standard_vm_fixed2125_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2125X950g, + "subcore_standard_vm_fixed2150_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2150X950g, + "subcore_standard_vm_fixed2175_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2175X950g, + "subcore_standard_vm_fixed2200_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2200X950g, + "subcore_standard_vm_fixed2250_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2250X950g, + "subcore_standard_vm_fixed2275_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2275X950g, + "subcore_standard_vm_fixed2300_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2300X950g, + "subcore_standard_vm_fixed2325_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2325X950g, + "subcore_standard_vm_fixed2350_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2350X950g, + "subcore_standard_vm_fixed2375_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2375X950g, + "subcore_standard_vm_fixed2400_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2400X950g, + "subcore_standard_vm_fixed2450_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2450X950g, + "subcore_standard_vm_fixed2475_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2475X950g, + "subcore_standard_vm_fixed2500_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2500X950g, + "subcore_standard_vm_fixed2550_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2550X950g, + "subcore_standard_vm_fixed2600_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2600X950g, + "subcore_standard_vm_fixed2625_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2625X950g, + "subcore_standard_vm_fixed2650_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2650X950g, + "subcore_standard_vm_fixed2700_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2700X950g, + "subcore_standard_vm_fixed2750_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2750X950g, + "subcore_standard_vm_fixed2775_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2775X950g, + "subcore_standard_vm_fixed2800_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2800X950g, + "subcore_standard_vm_fixed2850_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2850X950g, + "subcore_standard_vm_fixed2875_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2875X950g, + "subcore_standard_vm_fixed2900_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2900X950g, + "subcore_standard_vm_fixed2925_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2925X950g, + "subcore_standard_vm_fixed2950_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2950X950g, + "subcore_standard_vm_fixed2975_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed2975X950g, + "subcore_standard_vm_fixed3000_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3000X950g, + "subcore_standard_vm_fixed3025_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3025X950g, + "subcore_standard_vm_fixed3050_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3050X950g, + "subcore_standard_vm_fixed3075_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3075X950g, + "subcore_standard_vm_fixed3100_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3100X950g, + "subcore_standard_vm_fixed3125_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3125X950g, + "subcore_standard_vm_fixed3150_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3150X950g, + "subcore_standard_vm_fixed3200_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3200X950g, + "subcore_standard_vm_fixed3225_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3225X950g, + "subcore_standard_vm_fixed3250_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3250X950g, + "subcore_standard_vm_fixed3300_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3300X950g, + "subcore_standard_vm_fixed3325_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3325X950g, + "subcore_standard_vm_fixed3375_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3375X950g, + "subcore_standard_vm_fixed3400_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3400X950g, + "subcore_standard_vm_fixed3450_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3450X950g, + "subcore_standard_vm_fixed3500_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3500X950g, + "subcore_standard_vm_fixed3525_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3525X950g, + "subcore_standard_vm_fixed3575_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3575X950g, + "subcore_standard_vm_fixed3600_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3600X950g, + "subcore_standard_vm_fixed3625_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3625X950g, + "subcore_standard_vm_fixed3675_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3675X950g, + "subcore_standard_vm_fixed3700_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3700X950g, + "subcore_standard_vm_fixed3750_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3750X950g, + "subcore_standard_vm_fixed3800_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3800X950g, + "subcore_standard_vm_fixed3825_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3825X950g, + "subcore_standard_vm_fixed3850_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3850X950g, + "subcore_standard_vm_fixed3875_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3875X950g, + "subcore_standard_vm_fixed3900_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3900X950g, + "subcore_standard_vm_fixed3975_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed3975X950g, + "subcore_standard_vm_fixed4000_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4000X950g, + "subcore_standard_vm_fixed4025_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4025X950g, + "subcore_standard_vm_fixed4050_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4050X950g, + "subcore_standard_vm_fixed4100_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4100X950g, + "subcore_standard_vm_fixed4125_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4125X950g, + "subcore_standard_vm_fixed4200_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4200X950g, + "subcore_standard_vm_fixed4225_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4225X950g, + "subcore_standard_vm_fixed4250_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4250X950g, + "subcore_standard_vm_fixed4275_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4275X950g, + "subcore_standard_vm_fixed4300_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4300X950g, + "subcore_standard_vm_fixed4350_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4350X950g, + "subcore_standard_vm_fixed4375_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4375X950g, + "subcore_standard_vm_fixed4400_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4400X950g, + "subcore_standard_vm_fixed4425_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4425X950g, + "subcore_standard_vm_fixed4500_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4500X950g, + "subcore_standard_vm_fixed4550_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4550X950g, + "subcore_standard_vm_fixed4575_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4575X950g, + "subcore_standard_vm_fixed4600_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4600X950g, + "subcore_standard_vm_fixed4625_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4625X950g, + "subcore_standard_vm_fixed4650_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4650X950g, + "subcore_standard_vm_fixed4675_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4675X950g, + "subcore_standard_vm_fixed4700_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4700X950g, + "subcore_standard_vm_fixed4725_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4725X950g, + "subcore_standard_vm_fixed4750_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4750X950g, + "subcore_standard_vm_fixed4800_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4800X950g, + "subcore_standard_vm_fixed4875_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4875X950g, + "subcore_standard_vm_fixed4900_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4900X950g, + "subcore_standard_vm_fixed4950_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed4950X950g, + "subcore_standard_vm_fixed5000_x9_50g": InternalVnicAttachmentVnicShapeSubcoreStandardVmFixed5000X950g, + "entirehost_x9_50g": InternalVnicAttachmentVnicShapeEntirehostX950g, +} + +// GetInternalVnicAttachmentVnicShapeEnumValues Enumerates the set of values for InternalVnicAttachmentVnicShapeEnum +func GetInternalVnicAttachmentVnicShapeEnumValues() []InternalVnicAttachmentVnicShapeEnum { + values := make([]InternalVnicAttachmentVnicShapeEnum, 0) + for _, v := range mappingInternalVnicAttachmentVnicShapeEnum { + values = append(values, v) + } + return values +} + +// GetInternalVnicAttachmentVnicShapeEnumStringValues Enumerates the set of values in String for InternalVnicAttachmentVnicShapeEnum +func GetInternalVnicAttachmentVnicShapeEnumStringValues() []string { + return []string{ + "DYNAMIC", + "FIXED0040", + "FIXED0060", + "FIXED0060_PSM", + "FIXED0100", + "FIXED0120", + "FIXED0120_2X", + "FIXED0200", + "FIXED0240", + "FIXED0480", + "ENTIREHOST", + "DYNAMIC_25G", + "FIXED0040_25G", + "FIXED0100_25G", + "FIXED0200_25G", + "FIXED0400_25G", + "FIXED0800_25G", + "FIXED1600_25G", + "FIXED2400_25G", + "ENTIREHOST_25G", + "DYNAMIC_E1_25G", + "FIXED0040_E1_25G", + "FIXED0070_E1_25G", + "FIXED0140_E1_25G", + "FIXED0280_E1_25G", + "FIXED0560_E1_25G", + "FIXED1120_E1_25G", + "FIXED1680_E1_25G", + "ENTIREHOST_E1_25G", + "DYNAMIC_B1_25G", + "FIXED0040_B1_25G", + "FIXED0060_B1_25G", + "FIXED0120_B1_25G", + "FIXED0240_B1_25G", + "FIXED0480_B1_25G", + "FIXED0960_B1_25G", + "ENTIREHOST_B1_25G", + "MICRO_VM_FIXED0048_E1_25G", + "MICRO_LB_FIXED0001_E1_25G", + "VNICAAS_FIXED0200", + "VNICAAS_FIXED0400", + "VNICAAS_FIXED0700", + "VNICAAS_NLB_APPROVED_10G", + "VNICAAS_NLB_APPROVED_25G", + "VNICAAS_TELESIS_25G", + "VNICAAS_TELESIS_10G", + "VNICAAS_AMBASSADOR_FIXED0100", + "VNICAAS_TELESIS_GAMMA", + "VNICAAS_PRIVATEDNS", + "VNICAAS_FWAAS", + "VNICAAS_LBAAS_FREE", + "VNICAAS_LBAAS_8G_512K", + "VNICAAS_LBAAS_8G_1M", + "VNICAAS_LBAAS_8G_2M", + "VNICAAS_LBAAS_8G_3M", + "VNICAAS_LBAAS_8G_1M_8GHOST", + "VNICAAS_LBAAS_8G_1M_16GHOST", + "DYNAMIC_E3_50G", + "FIXED0040_E3_50G", + "FIXED0100_E3_50G", + "FIXED0200_E3_50G", + "FIXED0300_E3_50G", + "FIXED0400_E3_50G", + "FIXED0500_E3_50G", + "FIXED0600_E3_50G", + "FIXED0700_E3_50G", + "FIXED0800_E3_50G", + "FIXED0900_E3_50G", + "FIXED1000_E3_50G", + "FIXED1100_E3_50G", + "FIXED1200_E3_50G", + "FIXED1300_E3_50G", + "FIXED1400_E3_50G", + "FIXED1500_E3_50G", + "FIXED1600_E3_50G", + "FIXED1700_E3_50G", + "FIXED1800_E3_50G", + "FIXED1900_E3_50G", + "FIXED2000_E3_50G", + "FIXED2100_E3_50G", + "FIXED2200_E3_50G", + "FIXED2300_E3_50G", + "FIXED2400_E3_50G", + "FIXED2500_E3_50G", + "FIXED2600_E3_50G", + "FIXED2700_E3_50G", + "FIXED2800_E3_50G", + "FIXED2900_E3_50G", + "FIXED3000_E3_50G", + "FIXED3100_E3_50G", + "FIXED3200_E3_50G", + "FIXED3300_E3_50G", + "FIXED3400_E3_50G", + "FIXED3500_E3_50G", + "FIXED3600_E3_50G", + "FIXED3700_E3_50G", + "FIXED3800_E3_50G", + "FIXED3900_E3_50G", + "FIXED4000_E3_50G", + "ENTIREHOST_E3_50G", + "DYNAMIC_E4_50G", + "FIXED0040_E4_50G", + "FIXED0100_E4_50G", + "FIXED0200_E4_50G", + "FIXED0300_E4_50G", + "FIXED0400_E4_50G", + "FIXED0500_E4_50G", + "FIXED0600_E4_50G", + "FIXED0700_E4_50G", + "FIXED0800_E4_50G", + "FIXED0900_E4_50G", + "FIXED1000_E4_50G", + "FIXED1100_E4_50G", + "FIXED1200_E4_50G", + "FIXED1300_E4_50G", + "FIXED1400_E4_50G", + "FIXED1500_E4_50G", + "FIXED1600_E4_50G", + "FIXED1700_E4_50G", + "FIXED1800_E4_50G", + "FIXED1900_E4_50G", + "FIXED2000_E4_50G", + "FIXED2100_E4_50G", + "FIXED2200_E4_50G", + "FIXED2300_E4_50G", + "FIXED2400_E4_50G", + "FIXED2500_E4_50G", + "FIXED2600_E4_50G", + "FIXED2700_E4_50G", + "FIXED2800_E4_50G", + "FIXED2900_E4_50G", + "FIXED3000_E4_50G", + "FIXED3100_E4_50G", + "FIXED3200_E4_50G", + "FIXED3300_E4_50G", + "FIXED3400_E4_50G", + "FIXED3500_E4_50G", + "FIXED3600_E4_50G", + "FIXED3700_E4_50G", + "FIXED3800_E4_50G", + "FIXED3900_E4_50G", + "FIXED4000_E4_50G", + "ENTIREHOST_E4_50G", + "Micro_VM_Fixed0050_E3_50G", + "Micro_VM_Fixed0050_E4_50G", + "SUBCORE_VM_FIXED0025_E3_50G", + "SUBCORE_VM_FIXED0050_E3_50G", + "SUBCORE_VM_FIXED0075_E3_50G", + "SUBCORE_VM_FIXED0100_E3_50G", + "SUBCORE_VM_FIXED0125_E3_50G", + "SUBCORE_VM_FIXED0150_E3_50G", + "SUBCORE_VM_FIXED0175_E3_50G", + "SUBCORE_VM_FIXED0200_E3_50G", + "SUBCORE_VM_FIXED0225_E3_50G", + "SUBCORE_VM_FIXED0250_E3_50G", + "SUBCORE_VM_FIXED0275_E3_50G", + "SUBCORE_VM_FIXED0300_E3_50G", + "SUBCORE_VM_FIXED0325_E3_50G", + "SUBCORE_VM_FIXED0350_E3_50G", + "SUBCORE_VM_FIXED0375_E3_50G", + "SUBCORE_VM_FIXED0400_E3_50G", + "SUBCORE_VM_FIXED0425_E3_50G", + "SUBCORE_VM_FIXED0450_E3_50G", + "SUBCORE_VM_FIXED0475_E3_50G", + "SUBCORE_VM_FIXED0500_E3_50G", + "SUBCORE_VM_FIXED0525_E3_50G", + "SUBCORE_VM_FIXED0550_E3_50G", + "SUBCORE_VM_FIXED0575_E3_50G", + "SUBCORE_VM_FIXED0600_E3_50G", + "SUBCORE_VM_FIXED0625_E3_50G", + "SUBCORE_VM_FIXED0650_E3_50G", + "SUBCORE_VM_FIXED0675_E3_50G", + "SUBCORE_VM_FIXED0700_E3_50G", + "SUBCORE_VM_FIXED0725_E3_50G", + "SUBCORE_VM_FIXED0750_E3_50G", + "SUBCORE_VM_FIXED0775_E3_50G", + "SUBCORE_VM_FIXED0800_E3_50G", + "SUBCORE_VM_FIXED0825_E3_50G", + "SUBCORE_VM_FIXED0850_E3_50G", + "SUBCORE_VM_FIXED0875_E3_50G", + "SUBCORE_VM_FIXED0900_E3_50G", + "SUBCORE_VM_FIXED0925_E3_50G", + "SUBCORE_VM_FIXED0950_E3_50G", + "SUBCORE_VM_FIXED0975_E3_50G", + "SUBCORE_VM_FIXED1000_E3_50G", + "SUBCORE_VM_FIXED1025_E3_50G", + "SUBCORE_VM_FIXED1050_E3_50G", + "SUBCORE_VM_FIXED1075_E3_50G", + "SUBCORE_VM_FIXED1100_E3_50G", + "SUBCORE_VM_FIXED1125_E3_50G", + "SUBCORE_VM_FIXED1150_E3_50G", + "SUBCORE_VM_FIXED1175_E3_50G", + "SUBCORE_VM_FIXED1200_E3_50G", + "SUBCORE_VM_FIXED1225_E3_50G", + "SUBCORE_VM_FIXED1250_E3_50G", + "SUBCORE_VM_FIXED1275_E3_50G", + "SUBCORE_VM_FIXED1300_E3_50G", + "SUBCORE_VM_FIXED1325_E3_50G", + "SUBCORE_VM_FIXED1350_E3_50G", + "SUBCORE_VM_FIXED1375_E3_50G", + "SUBCORE_VM_FIXED1400_E3_50G", + "SUBCORE_VM_FIXED1425_E3_50G", + "SUBCORE_VM_FIXED1450_E3_50G", + "SUBCORE_VM_FIXED1475_E3_50G", + "SUBCORE_VM_FIXED1500_E3_50G", + "SUBCORE_VM_FIXED1525_E3_50G", + "SUBCORE_VM_FIXED1550_E3_50G", + "SUBCORE_VM_FIXED1575_E3_50G", + "SUBCORE_VM_FIXED1600_E3_50G", + "SUBCORE_VM_FIXED1625_E3_50G", + "SUBCORE_VM_FIXED1650_E3_50G", + "SUBCORE_VM_FIXED1700_E3_50G", + "SUBCORE_VM_FIXED1725_E3_50G", + "SUBCORE_VM_FIXED1750_E3_50G", + "SUBCORE_VM_FIXED1800_E3_50G", + "SUBCORE_VM_FIXED1850_E3_50G", + "SUBCORE_VM_FIXED1875_E3_50G", + "SUBCORE_VM_FIXED1900_E3_50G", + "SUBCORE_VM_FIXED1925_E3_50G", + "SUBCORE_VM_FIXED1950_E3_50G", + "SUBCORE_VM_FIXED2000_E3_50G", + "SUBCORE_VM_FIXED2025_E3_50G", + "SUBCORE_VM_FIXED2050_E3_50G", + "SUBCORE_VM_FIXED2100_E3_50G", + "SUBCORE_VM_FIXED2125_E3_50G", + "SUBCORE_VM_FIXED2150_E3_50G", + "SUBCORE_VM_FIXED2175_E3_50G", + "SUBCORE_VM_FIXED2200_E3_50G", + "SUBCORE_VM_FIXED2250_E3_50G", + "SUBCORE_VM_FIXED2275_E3_50G", + "SUBCORE_VM_FIXED2300_E3_50G", + "SUBCORE_VM_FIXED2325_E3_50G", + "SUBCORE_VM_FIXED2350_E3_50G", + "SUBCORE_VM_FIXED2375_E3_50G", + "SUBCORE_VM_FIXED2400_E3_50G", + "SUBCORE_VM_FIXED2450_E3_50G", + "SUBCORE_VM_FIXED2475_E3_50G", + "SUBCORE_VM_FIXED2500_E3_50G", + "SUBCORE_VM_FIXED2550_E3_50G", + "SUBCORE_VM_FIXED2600_E3_50G", + "SUBCORE_VM_FIXED2625_E3_50G", + "SUBCORE_VM_FIXED2650_E3_50G", + "SUBCORE_VM_FIXED2700_E3_50G", + "SUBCORE_VM_FIXED2750_E3_50G", + "SUBCORE_VM_FIXED2775_E3_50G", + "SUBCORE_VM_FIXED2800_E3_50G", + "SUBCORE_VM_FIXED2850_E3_50G", + "SUBCORE_VM_FIXED2875_E3_50G", + "SUBCORE_VM_FIXED2900_E3_50G", + "SUBCORE_VM_FIXED2925_E3_50G", + "SUBCORE_VM_FIXED2950_E3_50G", + "SUBCORE_VM_FIXED2975_E3_50G", + "SUBCORE_VM_FIXED3000_E3_50G", + "SUBCORE_VM_FIXED3025_E3_50G", + "SUBCORE_VM_FIXED3050_E3_50G", + "SUBCORE_VM_FIXED3075_E3_50G", + "SUBCORE_VM_FIXED3100_E3_50G", + "SUBCORE_VM_FIXED3125_E3_50G", + "SUBCORE_VM_FIXED3150_E3_50G", + "SUBCORE_VM_FIXED3200_E3_50G", + "SUBCORE_VM_FIXED3225_E3_50G", + "SUBCORE_VM_FIXED3250_E3_50G", + "SUBCORE_VM_FIXED3300_E3_50G", + "SUBCORE_VM_FIXED3325_E3_50G", + "SUBCORE_VM_FIXED3375_E3_50G", + "SUBCORE_VM_FIXED3400_E3_50G", + "SUBCORE_VM_FIXED3450_E3_50G", + "SUBCORE_VM_FIXED3500_E3_50G", + "SUBCORE_VM_FIXED3525_E3_50G", + "SUBCORE_VM_FIXED3575_E3_50G", + "SUBCORE_VM_FIXED3600_E3_50G", + "SUBCORE_VM_FIXED3625_E3_50G", + "SUBCORE_VM_FIXED3675_E3_50G", + "SUBCORE_VM_FIXED3700_E3_50G", + "SUBCORE_VM_FIXED3750_E3_50G", + "SUBCORE_VM_FIXED3800_E3_50G", + "SUBCORE_VM_FIXED3825_E3_50G", + "SUBCORE_VM_FIXED3850_E3_50G", + "SUBCORE_VM_FIXED3875_E3_50G", + "SUBCORE_VM_FIXED3900_E3_50G", + "SUBCORE_VM_FIXED3975_E3_50G", + "SUBCORE_VM_FIXED4000_E3_50G", + "SUBCORE_VM_FIXED4025_E3_50G", + "SUBCORE_VM_FIXED4050_E3_50G", + "SUBCORE_VM_FIXED4100_E3_50G", + "SUBCORE_VM_FIXED4125_E3_50G", + "SUBCORE_VM_FIXED4200_E3_50G", + "SUBCORE_VM_FIXED4225_E3_50G", + "SUBCORE_VM_FIXED4250_E3_50G", + "SUBCORE_VM_FIXED4275_E3_50G", + "SUBCORE_VM_FIXED4300_E3_50G", + "SUBCORE_VM_FIXED4350_E3_50G", + "SUBCORE_VM_FIXED4375_E3_50G", + "SUBCORE_VM_FIXED4400_E3_50G", + "SUBCORE_VM_FIXED4425_E3_50G", + "SUBCORE_VM_FIXED4500_E3_50G", + "SUBCORE_VM_FIXED4550_E3_50G", + "SUBCORE_VM_FIXED4575_E3_50G", + "SUBCORE_VM_FIXED4600_E3_50G", + "SUBCORE_VM_FIXED4625_E3_50G", + "SUBCORE_VM_FIXED4650_E3_50G", + "SUBCORE_VM_FIXED4675_E3_50G", + "SUBCORE_VM_FIXED4700_E3_50G", + "SUBCORE_VM_FIXED4725_E3_50G", + "SUBCORE_VM_FIXED4750_E3_50G", + "SUBCORE_VM_FIXED4800_E3_50G", + "SUBCORE_VM_FIXED4875_E3_50G", + "SUBCORE_VM_FIXED4900_E3_50G", + "SUBCORE_VM_FIXED4950_E3_50G", + "SUBCORE_VM_FIXED5000_E3_50G", + "SUBCORE_VM_FIXED0025_E4_50G", + "SUBCORE_VM_FIXED0050_E4_50G", + "SUBCORE_VM_FIXED0075_E4_50G", + "SUBCORE_VM_FIXED0100_E4_50G", + "SUBCORE_VM_FIXED0125_E4_50G", + "SUBCORE_VM_FIXED0150_E4_50G", + "SUBCORE_VM_FIXED0175_E4_50G", + "SUBCORE_VM_FIXED0200_E4_50G", + "SUBCORE_VM_FIXED0225_E4_50G", + "SUBCORE_VM_FIXED0250_E4_50G", + "SUBCORE_VM_FIXED0275_E4_50G", + "SUBCORE_VM_FIXED0300_E4_50G", + "SUBCORE_VM_FIXED0325_E4_50G", + "SUBCORE_VM_FIXED0350_E4_50G", + "SUBCORE_VM_FIXED0375_E4_50G", + "SUBCORE_VM_FIXED0400_E4_50G", + "SUBCORE_VM_FIXED0425_E4_50G", + "SUBCORE_VM_FIXED0450_E4_50G", + "SUBCORE_VM_FIXED0475_E4_50G", + "SUBCORE_VM_FIXED0500_E4_50G", + "SUBCORE_VM_FIXED0525_E4_50G", + "SUBCORE_VM_FIXED0550_E4_50G", + "SUBCORE_VM_FIXED0575_E4_50G", + "SUBCORE_VM_FIXED0600_E4_50G", + "SUBCORE_VM_FIXED0625_E4_50G", + "SUBCORE_VM_FIXED0650_E4_50G", + "SUBCORE_VM_FIXED0675_E4_50G", + "SUBCORE_VM_FIXED0700_E4_50G", + "SUBCORE_VM_FIXED0725_E4_50G", + "SUBCORE_VM_FIXED0750_E4_50G", + "SUBCORE_VM_FIXED0775_E4_50G", + "SUBCORE_VM_FIXED0800_E4_50G", + "SUBCORE_VM_FIXED0825_E4_50G", + "SUBCORE_VM_FIXED0850_E4_50G", + "SUBCORE_VM_FIXED0875_E4_50G", + "SUBCORE_VM_FIXED0900_E4_50G", + "SUBCORE_VM_FIXED0925_E4_50G", + "SUBCORE_VM_FIXED0950_E4_50G", + "SUBCORE_VM_FIXED0975_E4_50G", + "SUBCORE_VM_FIXED1000_E4_50G", + "SUBCORE_VM_FIXED1025_E4_50G", + "SUBCORE_VM_FIXED1050_E4_50G", + "SUBCORE_VM_FIXED1075_E4_50G", + "SUBCORE_VM_FIXED1100_E4_50G", + "SUBCORE_VM_FIXED1125_E4_50G", + "SUBCORE_VM_FIXED1150_E4_50G", + "SUBCORE_VM_FIXED1175_E4_50G", + "SUBCORE_VM_FIXED1200_E4_50G", + "SUBCORE_VM_FIXED1225_E4_50G", + "SUBCORE_VM_FIXED1250_E4_50G", + "SUBCORE_VM_FIXED1275_E4_50G", + "SUBCORE_VM_FIXED1300_E4_50G", + "SUBCORE_VM_FIXED1325_E4_50G", + "SUBCORE_VM_FIXED1350_E4_50G", + "SUBCORE_VM_FIXED1375_E4_50G", + "SUBCORE_VM_FIXED1400_E4_50G", + "SUBCORE_VM_FIXED1425_E4_50G", + "SUBCORE_VM_FIXED1450_E4_50G", + "SUBCORE_VM_FIXED1475_E4_50G", + "SUBCORE_VM_FIXED1500_E4_50G", + "SUBCORE_VM_FIXED1525_E4_50G", + "SUBCORE_VM_FIXED1550_E4_50G", + "SUBCORE_VM_FIXED1575_E4_50G", + "SUBCORE_VM_FIXED1600_E4_50G", + "SUBCORE_VM_FIXED1625_E4_50G", + "SUBCORE_VM_FIXED1650_E4_50G", + "SUBCORE_VM_FIXED1700_E4_50G", + "SUBCORE_VM_FIXED1725_E4_50G", + "SUBCORE_VM_FIXED1750_E4_50G", + "SUBCORE_VM_FIXED1800_E4_50G", + "SUBCORE_VM_FIXED1850_E4_50G", + "SUBCORE_VM_FIXED1875_E4_50G", + "SUBCORE_VM_FIXED1900_E4_50G", + "SUBCORE_VM_FIXED1925_E4_50G", + "SUBCORE_VM_FIXED1950_E4_50G", + "SUBCORE_VM_FIXED2000_E4_50G", + "SUBCORE_VM_FIXED2025_E4_50G", + "SUBCORE_VM_FIXED2050_E4_50G", + "SUBCORE_VM_FIXED2100_E4_50G", + "SUBCORE_VM_FIXED2125_E4_50G", + "SUBCORE_VM_FIXED2150_E4_50G", + "SUBCORE_VM_FIXED2175_E4_50G", + "SUBCORE_VM_FIXED2200_E4_50G", + "SUBCORE_VM_FIXED2250_E4_50G", + "SUBCORE_VM_FIXED2275_E4_50G", + "SUBCORE_VM_FIXED2300_E4_50G", + "SUBCORE_VM_FIXED2325_E4_50G", + "SUBCORE_VM_FIXED2350_E4_50G", + "SUBCORE_VM_FIXED2375_E4_50G", + "SUBCORE_VM_FIXED2400_E4_50G", + "SUBCORE_VM_FIXED2450_E4_50G", + "SUBCORE_VM_FIXED2475_E4_50G", + "SUBCORE_VM_FIXED2500_E4_50G", + "SUBCORE_VM_FIXED2550_E4_50G", + "SUBCORE_VM_FIXED2600_E4_50G", + "SUBCORE_VM_FIXED2625_E4_50G", + "SUBCORE_VM_FIXED2650_E4_50G", + "SUBCORE_VM_FIXED2700_E4_50G", + "SUBCORE_VM_FIXED2750_E4_50G", + "SUBCORE_VM_FIXED2775_E4_50G", + "SUBCORE_VM_FIXED2800_E4_50G", + "SUBCORE_VM_FIXED2850_E4_50G", + "SUBCORE_VM_FIXED2875_E4_50G", + "SUBCORE_VM_FIXED2900_E4_50G", + "SUBCORE_VM_FIXED2925_E4_50G", + "SUBCORE_VM_FIXED2950_E4_50G", + "SUBCORE_VM_FIXED2975_E4_50G", + "SUBCORE_VM_FIXED3000_E4_50G", + "SUBCORE_VM_FIXED3025_E4_50G", + "SUBCORE_VM_FIXED3050_E4_50G", + "SUBCORE_VM_FIXED3075_E4_50G", + "SUBCORE_VM_FIXED3100_E4_50G", + "SUBCORE_VM_FIXED3125_E4_50G", + "SUBCORE_VM_FIXED3150_E4_50G", + "SUBCORE_VM_FIXED3200_E4_50G", + "SUBCORE_VM_FIXED3225_E4_50G", + "SUBCORE_VM_FIXED3250_E4_50G", + "SUBCORE_VM_FIXED3300_E4_50G", + "SUBCORE_VM_FIXED3325_E4_50G", + "SUBCORE_VM_FIXED3375_E4_50G", + "SUBCORE_VM_FIXED3400_E4_50G", + "SUBCORE_VM_FIXED3450_E4_50G", + "SUBCORE_VM_FIXED3500_E4_50G", + "SUBCORE_VM_FIXED3525_E4_50G", + "SUBCORE_VM_FIXED3575_E4_50G", + "SUBCORE_VM_FIXED3600_E4_50G", + "SUBCORE_VM_FIXED3625_E4_50G", + "SUBCORE_VM_FIXED3675_E4_50G", + "SUBCORE_VM_FIXED3700_E4_50G", + "SUBCORE_VM_FIXED3750_E4_50G", + "SUBCORE_VM_FIXED3800_E4_50G", + "SUBCORE_VM_FIXED3825_E4_50G", + "SUBCORE_VM_FIXED3850_E4_50G", + "SUBCORE_VM_FIXED3875_E4_50G", + "SUBCORE_VM_FIXED3900_E4_50G", + "SUBCORE_VM_FIXED3975_E4_50G", + "SUBCORE_VM_FIXED4000_E4_50G", + "SUBCORE_VM_FIXED4025_E4_50G", + "SUBCORE_VM_FIXED4050_E4_50G", + "SUBCORE_VM_FIXED4100_E4_50G", + "SUBCORE_VM_FIXED4125_E4_50G", + "SUBCORE_VM_FIXED4200_E4_50G", + "SUBCORE_VM_FIXED4225_E4_50G", + "SUBCORE_VM_FIXED4250_E4_50G", + "SUBCORE_VM_FIXED4275_E4_50G", + "SUBCORE_VM_FIXED4300_E4_50G", + "SUBCORE_VM_FIXED4350_E4_50G", + "SUBCORE_VM_FIXED4375_E4_50G", + "SUBCORE_VM_FIXED4400_E4_50G", + "SUBCORE_VM_FIXED4425_E4_50G", + "SUBCORE_VM_FIXED4500_E4_50G", + "SUBCORE_VM_FIXED4550_E4_50G", + "SUBCORE_VM_FIXED4575_E4_50G", + "SUBCORE_VM_FIXED4600_E4_50G", + "SUBCORE_VM_FIXED4625_E4_50G", + "SUBCORE_VM_FIXED4650_E4_50G", + "SUBCORE_VM_FIXED4675_E4_50G", + "SUBCORE_VM_FIXED4700_E4_50G", + "SUBCORE_VM_FIXED4725_E4_50G", + "SUBCORE_VM_FIXED4750_E4_50G", + "SUBCORE_VM_FIXED4800_E4_50G", + "SUBCORE_VM_FIXED4875_E4_50G", + "SUBCORE_VM_FIXED4900_E4_50G", + "SUBCORE_VM_FIXED4950_E4_50G", + "SUBCORE_VM_FIXED5000_E4_50G", + "SUBCORE_VM_FIXED0020_A1_50G", + "SUBCORE_VM_FIXED0040_A1_50G", + "SUBCORE_VM_FIXED0060_A1_50G", + "SUBCORE_VM_FIXED0080_A1_50G", + "SUBCORE_VM_FIXED0100_A1_50G", + "SUBCORE_VM_FIXED0120_A1_50G", + "SUBCORE_VM_FIXED0140_A1_50G", + "SUBCORE_VM_FIXED0160_A1_50G", + "SUBCORE_VM_FIXED0180_A1_50G", + "SUBCORE_VM_FIXED0200_A1_50G", + "SUBCORE_VM_FIXED0220_A1_50G", + "SUBCORE_VM_FIXED0240_A1_50G", + "SUBCORE_VM_FIXED0260_A1_50G", + "SUBCORE_VM_FIXED0280_A1_50G", + "SUBCORE_VM_FIXED0300_A1_50G", + "SUBCORE_VM_FIXED0320_A1_50G", + "SUBCORE_VM_FIXED0340_A1_50G", + "SUBCORE_VM_FIXED0360_A1_50G", + "SUBCORE_VM_FIXED0380_A1_50G", + "SUBCORE_VM_FIXED0400_A1_50G", + "SUBCORE_VM_FIXED0420_A1_50G", + "SUBCORE_VM_FIXED0440_A1_50G", + "SUBCORE_VM_FIXED0460_A1_50G", + "SUBCORE_VM_FIXED0480_A1_50G", + "SUBCORE_VM_FIXED0500_A1_50G", + "SUBCORE_VM_FIXED0520_A1_50G", + "SUBCORE_VM_FIXED0540_A1_50G", + "SUBCORE_VM_FIXED0560_A1_50G", + "SUBCORE_VM_FIXED0580_A1_50G", + "SUBCORE_VM_FIXED0600_A1_50G", + "SUBCORE_VM_FIXED0620_A1_50G", + "SUBCORE_VM_FIXED0640_A1_50G", + "SUBCORE_VM_FIXED0660_A1_50G", + "SUBCORE_VM_FIXED0680_A1_50G", + "SUBCORE_VM_FIXED0700_A1_50G", + "SUBCORE_VM_FIXED0720_A1_50G", + "SUBCORE_VM_FIXED0740_A1_50G", + "SUBCORE_VM_FIXED0760_A1_50G", + "SUBCORE_VM_FIXED0780_A1_50G", + "SUBCORE_VM_FIXED0800_A1_50G", + "SUBCORE_VM_FIXED0820_A1_50G", + "SUBCORE_VM_FIXED0840_A1_50G", + "SUBCORE_VM_FIXED0860_A1_50G", + "SUBCORE_VM_FIXED0880_A1_50G", + "SUBCORE_VM_FIXED0900_A1_50G", + "SUBCORE_VM_FIXED0920_A1_50G", + "SUBCORE_VM_FIXED0940_A1_50G", + "SUBCORE_VM_FIXED0960_A1_50G", + "SUBCORE_VM_FIXED0980_A1_50G", + "SUBCORE_VM_FIXED1000_A1_50G", + "SUBCORE_VM_FIXED1020_A1_50G", + "SUBCORE_VM_FIXED1040_A1_50G", + "SUBCORE_VM_FIXED1060_A1_50G", + "SUBCORE_VM_FIXED1080_A1_50G", + "SUBCORE_VM_FIXED1100_A1_50G", + "SUBCORE_VM_FIXED1120_A1_50G", + "SUBCORE_VM_FIXED1140_A1_50G", + "SUBCORE_VM_FIXED1160_A1_50G", + "SUBCORE_VM_FIXED1180_A1_50G", + "SUBCORE_VM_FIXED1200_A1_50G", + "SUBCORE_VM_FIXED1220_A1_50G", + "SUBCORE_VM_FIXED1240_A1_50G", + "SUBCORE_VM_FIXED1260_A1_50G", + "SUBCORE_VM_FIXED1280_A1_50G", + "SUBCORE_VM_FIXED1300_A1_50G", + "SUBCORE_VM_FIXED1320_A1_50G", + "SUBCORE_VM_FIXED1340_A1_50G", + "SUBCORE_VM_FIXED1360_A1_50G", + "SUBCORE_VM_FIXED1380_A1_50G", + "SUBCORE_VM_FIXED1400_A1_50G", + "SUBCORE_VM_FIXED1420_A1_50G", + "SUBCORE_VM_FIXED1440_A1_50G", + "SUBCORE_VM_FIXED1460_A1_50G", + "SUBCORE_VM_FIXED1480_A1_50G", + "SUBCORE_VM_FIXED1500_A1_50G", + "SUBCORE_VM_FIXED1520_A1_50G", + "SUBCORE_VM_FIXED1540_A1_50G", + "SUBCORE_VM_FIXED1560_A1_50G", + "SUBCORE_VM_FIXED1580_A1_50G", + "SUBCORE_VM_FIXED1600_A1_50G", + "SUBCORE_VM_FIXED1620_A1_50G", + "SUBCORE_VM_FIXED1640_A1_50G", + "SUBCORE_VM_FIXED1660_A1_50G", + "SUBCORE_VM_FIXED1680_A1_50G", + "SUBCORE_VM_FIXED1700_A1_50G", + "SUBCORE_VM_FIXED1720_A1_50G", + "SUBCORE_VM_FIXED1740_A1_50G", + "SUBCORE_VM_FIXED1760_A1_50G", + "SUBCORE_VM_FIXED1780_A1_50G", + "SUBCORE_VM_FIXED1800_A1_50G", + "SUBCORE_VM_FIXED1820_A1_50G", + "SUBCORE_VM_FIXED1840_A1_50G", + "SUBCORE_VM_FIXED1860_A1_50G", + "SUBCORE_VM_FIXED1880_A1_50G", + "SUBCORE_VM_FIXED1900_A1_50G", + "SUBCORE_VM_FIXED1920_A1_50G", + "SUBCORE_VM_FIXED1940_A1_50G", + "SUBCORE_VM_FIXED1960_A1_50G", + "SUBCORE_VM_FIXED1980_A1_50G", + "SUBCORE_VM_FIXED2000_A1_50G", + "SUBCORE_VM_FIXED2020_A1_50G", + "SUBCORE_VM_FIXED2040_A1_50G", + "SUBCORE_VM_FIXED2060_A1_50G", + "SUBCORE_VM_FIXED2080_A1_50G", + "SUBCORE_VM_FIXED2100_A1_50G", + "SUBCORE_VM_FIXED2120_A1_50G", + "SUBCORE_VM_FIXED2140_A1_50G", + "SUBCORE_VM_FIXED2160_A1_50G", + "SUBCORE_VM_FIXED2180_A1_50G", + "SUBCORE_VM_FIXED2200_A1_50G", + "SUBCORE_VM_FIXED2220_A1_50G", + "SUBCORE_VM_FIXED2240_A1_50G", + "SUBCORE_VM_FIXED2260_A1_50G", + "SUBCORE_VM_FIXED2280_A1_50G", + "SUBCORE_VM_FIXED2300_A1_50G", + "SUBCORE_VM_FIXED2320_A1_50G", + "SUBCORE_VM_FIXED2340_A1_50G", + "SUBCORE_VM_FIXED2360_A1_50G", + "SUBCORE_VM_FIXED2380_A1_50G", + "SUBCORE_VM_FIXED2400_A1_50G", + "SUBCORE_VM_FIXED2420_A1_50G", + "SUBCORE_VM_FIXED2440_A1_50G", + "SUBCORE_VM_FIXED2460_A1_50G", + "SUBCORE_VM_FIXED2480_A1_50G", + "SUBCORE_VM_FIXED2500_A1_50G", + "SUBCORE_VM_FIXED2520_A1_50G", + "SUBCORE_VM_FIXED2540_A1_50G", + "SUBCORE_VM_FIXED2560_A1_50G", + "SUBCORE_VM_FIXED2580_A1_50G", + "SUBCORE_VM_FIXED2600_A1_50G", + "SUBCORE_VM_FIXED2620_A1_50G", + "SUBCORE_VM_FIXED2640_A1_50G", + "SUBCORE_VM_FIXED2660_A1_50G", + "SUBCORE_VM_FIXED2680_A1_50G", + "SUBCORE_VM_FIXED2700_A1_50G", + "SUBCORE_VM_FIXED2720_A1_50G", + "SUBCORE_VM_FIXED2740_A1_50G", + "SUBCORE_VM_FIXED2760_A1_50G", + "SUBCORE_VM_FIXED2780_A1_50G", + "SUBCORE_VM_FIXED2800_A1_50G", + "SUBCORE_VM_FIXED2820_A1_50G", + "SUBCORE_VM_FIXED2840_A1_50G", + "SUBCORE_VM_FIXED2860_A1_50G", + "SUBCORE_VM_FIXED2880_A1_50G", + "SUBCORE_VM_FIXED2900_A1_50G", + "SUBCORE_VM_FIXED2920_A1_50G", + "SUBCORE_VM_FIXED2940_A1_50G", + "SUBCORE_VM_FIXED2960_A1_50G", + "SUBCORE_VM_FIXED2980_A1_50G", + "SUBCORE_VM_FIXED3000_A1_50G", + "SUBCORE_VM_FIXED3020_A1_50G", + "SUBCORE_VM_FIXED3040_A1_50G", + "SUBCORE_VM_FIXED3060_A1_50G", + "SUBCORE_VM_FIXED3080_A1_50G", + "SUBCORE_VM_FIXED3100_A1_50G", + "SUBCORE_VM_FIXED3120_A1_50G", + "SUBCORE_VM_FIXED3140_A1_50G", + "SUBCORE_VM_FIXED3160_A1_50G", + "SUBCORE_VM_FIXED3180_A1_50G", + "SUBCORE_VM_FIXED3200_A1_50G", + "SUBCORE_VM_FIXED3220_A1_50G", + "SUBCORE_VM_FIXED3240_A1_50G", + "SUBCORE_VM_FIXED3260_A1_50G", + "SUBCORE_VM_FIXED3280_A1_50G", + "SUBCORE_VM_FIXED3300_A1_50G", + "SUBCORE_VM_FIXED3320_A1_50G", + "SUBCORE_VM_FIXED3340_A1_50G", + "SUBCORE_VM_FIXED3360_A1_50G", + "SUBCORE_VM_FIXED3380_A1_50G", + "SUBCORE_VM_FIXED3400_A1_50G", + "SUBCORE_VM_FIXED3420_A1_50G", + "SUBCORE_VM_FIXED3440_A1_50G", + "SUBCORE_VM_FIXED3460_A1_50G", + "SUBCORE_VM_FIXED3480_A1_50G", + "SUBCORE_VM_FIXED3500_A1_50G", + "SUBCORE_VM_FIXED3520_A1_50G", + "SUBCORE_VM_FIXED3540_A1_50G", + "SUBCORE_VM_FIXED3560_A1_50G", + "SUBCORE_VM_FIXED3580_A1_50G", + "SUBCORE_VM_FIXED3600_A1_50G", + "SUBCORE_VM_FIXED3620_A1_50G", + "SUBCORE_VM_FIXED3640_A1_50G", + "SUBCORE_VM_FIXED3660_A1_50G", + "SUBCORE_VM_FIXED3680_A1_50G", + "SUBCORE_VM_FIXED3700_A1_50G", + "SUBCORE_VM_FIXED3720_A1_50G", + "SUBCORE_VM_FIXED3740_A1_50G", + "SUBCORE_VM_FIXED3760_A1_50G", + "SUBCORE_VM_FIXED3780_A1_50G", + "SUBCORE_VM_FIXED3800_A1_50G", + "SUBCORE_VM_FIXED3820_A1_50G", + "SUBCORE_VM_FIXED3840_A1_50G", + "SUBCORE_VM_FIXED3860_A1_50G", + "SUBCORE_VM_FIXED3880_A1_50G", + "SUBCORE_VM_FIXED3900_A1_50G", + "SUBCORE_VM_FIXED3920_A1_50G", + "SUBCORE_VM_FIXED3940_A1_50G", + "SUBCORE_VM_FIXED3960_A1_50G", + "SUBCORE_VM_FIXED3980_A1_50G", + "SUBCORE_VM_FIXED4000_A1_50G", + "SUBCORE_VM_FIXED4020_A1_50G", + "SUBCORE_VM_FIXED4040_A1_50G", + "SUBCORE_VM_FIXED4060_A1_50G", + "SUBCORE_VM_FIXED4080_A1_50G", + "SUBCORE_VM_FIXED4100_A1_50G", + "SUBCORE_VM_FIXED4120_A1_50G", + "SUBCORE_VM_FIXED4140_A1_50G", + "SUBCORE_VM_FIXED4160_A1_50G", + "SUBCORE_VM_FIXED4180_A1_50G", + "SUBCORE_VM_FIXED4200_A1_50G", + "SUBCORE_VM_FIXED4220_A1_50G", + "SUBCORE_VM_FIXED4240_A1_50G", + "SUBCORE_VM_FIXED4260_A1_50G", + "SUBCORE_VM_FIXED4280_A1_50G", + "SUBCORE_VM_FIXED4300_A1_50G", + "SUBCORE_VM_FIXED4320_A1_50G", + "SUBCORE_VM_FIXED4340_A1_50G", + "SUBCORE_VM_FIXED4360_A1_50G", + "SUBCORE_VM_FIXED4380_A1_50G", + "SUBCORE_VM_FIXED4400_A1_50G", + "SUBCORE_VM_FIXED4420_A1_50G", + "SUBCORE_VM_FIXED4440_A1_50G", + "SUBCORE_VM_FIXED4460_A1_50G", + "SUBCORE_VM_FIXED4480_A1_50G", + "SUBCORE_VM_FIXED4500_A1_50G", + "SUBCORE_VM_FIXED4520_A1_50G", + "SUBCORE_VM_FIXED4540_A1_50G", + "SUBCORE_VM_FIXED4560_A1_50G", + "SUBCORE_VM_FIXED4580_A1_50G", + "SUBCORE_VM_FIXED4600_A1_50G", + "SUBCORE_VM_FIXED4620_A1_50G", + "SUBCORE_VM_FIXED4640_A1_50G", + "SUBCORE_VM_FIXED4660_A1_50G", + "SUBCORE_VM_FIXED4680_A1_50G", + "SUBCORE_VM_FIXED4700_A1_50G", + "SUBCORE_VM_FIXED4720_A1_50G", + "SUBCORE_VM_FIXED4740_A1_50G", + "SUBCORE_VM_FIXED4760_A1_50G", + "SUBCORE_VM_FIXED4780_A1_50G", + "SUBCORE_VM_FIXED4800_A1_50G", + "SUBCORE_VM_FIXED4820_A1_50G", + "SUBCORE_VM_FIXED4840_A1_50G", + "SUBCORE_VM_FIXED4860_A1_50G", + "SUBCORE_VM_FIXED4880_A1_50G", + "SUBCORE_VM_FIXED4900_A1_50G", + "SUBCORE_VM_FIXED4920_A1_50G", + "SUBCORE_VM_FIXED4940_A1_50G", + "SUBCORE_VM_FIXED4960_A1_50G", + "SUBCORE_VM_FIXED4980_A1_50G", + "SUBCORE_VM_FIXED5000_A1_50G", + "SUBCORE_VM_FIXED0090_X9_50G", + "SUBCORE_VM_FIXED0180_X9_50G", + "SUBCORE_VM_FIXED0270_X9_50G", + "SUBCORE_VM_FIXED0360_X9_50G", + "SUBCORE_VM_FIXED0450_X9_50G", + "SUBCORE_VM_FIXED0540_X9_50G", + "SUBCORE_VM_FIXED0630_X9_50G", + "SUBCORE_VM_FIXED0720_X9_50G", + "SUBCORE_VM_FIXED0810_X9_50G", + "SUBCORE_VM_FIXED0900_X9_50G", + "SUBCORE_VM_FIXED0990_X9_50G", + "SUBCORE_VM_FIXED1080_X9_50G", + "SUBCORE_VM_FIXED1170_X9_50G", + "SUBCORE_VM_FIXED1260_X9_50G", + "SUBCORE_VM_FIXED1350_X9_50G", + "SUBCORE_VM_FIXED1440_X9_50G", + "SUBCORE_VM_FIXED1530_X9_50G", + "SUBCORE_VM_FIXED1620_X9_50G", + "SUBCORE_VM_FIXED1710_X9_50G", + "SUBCORE_VM_FIXED1800_X9_50G", + "SUBCORE_VM_FIXED1890_X9_50G", + "SUBCORE_VM_FIXED1980_X9_50G", + "SUBCORE_VM_FIXED2070_X9_50G", + "SUBCORE_VM_FIXED2160_X9_50G", + "SUBCORE_VM_FIXED2250_X9_50G", + "SUBCORE_VM_FIXED2340_X9_50G", + "SUBCORE_VM_FIXED2430_X9_50G", + "SUBCORE_VM_FIXED2520_X9_50G", + "SUBCORE_VM_FIXED2610_X9_50G", + "SUBCORE_VM_FIXED2700_X9_50G", + "SUBCORE_VM_FIXED2790_X9_50G", + "SUBCORE_VM_FIXED2880_X9_50G", + "SUBCORE_VM_FIXED2970_X9_50G", + "SUBCORE_VM_FIXED3060_X9_50G", + "SUBCORE_VM_FIXED3150_X9_50G", + "SUBCORE_VM_FIXED3240_X9_50G", + "SUBCORE_VM_FIXED3330_X9_50G", + "SUBCORE_VM_FIXED3420_X9_50G", + "SUBCORE_VM_FIXED3510_X9_50G", + "SUBCORE_VM_FIXED3600_X9_50G", + "SUBCORE_VM_FIXED3690_X9_50G", + "SUBCORE_VM_FIXED3780_X9_50G", + "SUBCORE_VM_FIXED3870_X9_50G", + "SUBCORE_VM_FIXED3960_X9_50G", + "SUBCORE_VM_FIXED4050_X9_50G", + "SUBCORE_VM_FIXED4140_X9_50G", + "SUBCORE_VM_FIXED4230_X9_50G", + "SUBCORE_VM_FIXED4320_X9_50G", + "SUBCORE_VM_FIXED4410_X9_50G", + "SUBCORE_VM_FIXED4500_X9_50G", + "SUBCORE_VM_FIXED4590_X9_50G", + "SUBCORE_VM_FIXED4680_X9_50G", + "SUBCORE_VM_FIXED4770_X9_50G", + "SUBCORE_VM_FIXED4860_X9_50G", + "SUBCORE_VM_FIXED4950_X9_50G", + "DYNAMIC_A1_50G", + "FIXED0040_A1_50G", + "FIXED0100_A1_50G", + "FIXED0200_A1_50G", + "FIXED0300_A1_50G", + "FIXED0400_A1_50G", + "FIXED0500_A1_50G", + "FIXED0600_A1_50G", + "FIXED0700_A1_50G", + "FIXED0800_A1_50G", + "FIXED0900_A1_50G", + "FIXED1000_A1_50G", + "FIXED1100_A1_50G", + "FIXED1200_A1_50G", + "FIXED1300_A1_50G", + "FIXED1400_A1_50G", + "FIXED1500_A1_50G", + "FIXED1600_A1_50G", + "FIXED1700_A1_50G", + "FIXED1800_A1_50G", + "FIXED1900_A1_50G", + "FIXED2000_A1_50G", + "FIXED2100_A1_50G", + "FIXED2200_A1_50G", + "FIXED2300_A1_50G", + "FIXED2400_A1_50G", + "FIXED2500_A1_50G", + "FIXED2600_A1_50G", + "FIXED2700_A1_50G", + "FIXED2800_A1_50G", + "FIXED2900_A1_50G", + "FIXED3000_A1_50G", + "FIXED3100_A1_50G", + "FIXED3200_A1_50G", + "FIXED3300_A1_50G", + "FIXED3400_A1_50G", + "FIXED3500_A1_50G", + "FIXED3600_A1_50G", + "FIXED3700_A1_50G", + "FIXED3800_A1_50G", + "FIXED3900_A1_50G", + "FIXED4000_A1_50G", + "FIXED5000_TELESIS_A1_50G", + "ENTIREHOST_A1_50G", + "DYNAMIC_X9_50G", + "FIXED0040_X9_50G", + "FIXED0400_X9_50G", + "FIXED0800_X9_50G", + "FIXED1200_X9_50G", + "FIXED1600_X9_50G", + "FIXED2000_X9_50G", + "FIXED2400_X9_50G", + "FIXED2800_X9_50G", + "FIXED3200_X9_50G", + "FIXED3600_X9_50G", + "FIXED4000_X9_50G", + "STANDARD_VM_FIXED0100_X9_50G", + "STANDARD_VM_FIXED0200_X9_50G", + "STANDARD_VM_FIXED0300_X9_50G", + "STANDARD_VM_FIXED0400_X9_50G", + "STANDARD_VM_FIXED0500_X9_50G", + "STANDARD_VM_FIXED0600_X9_50G", + "STANDARD_VM_FIXED0700_X9_50G", + "STANDARD_VM_FIXED0800_X9_50G", + "STANDARD_VM_FIXED0900_X9_50G", + "STANDARD_VM_FIXED1000_X9_50G", + "STANDARD_VM_FIXED1100_X9_50G", + "STANDARD_VM_FIXED1200_X9_50G", + "STANDARD_VM_FIXED1300_X9_50G", + "STANDARD_VM_FIXED1400_X9_50G", + "STANDARD_VM_FIXED1500_X9_50G", + "STANDARD_VM_FIXED1600_X9_50G", + "STANDARD_VM_FIXED1700_X9_50G", + "STANDARD_VM_FIXED1800_X9_50G", + "STANDARD_VM_FIXED1900_X9_50G", + "STANDARD_VM_FIXED2000_X9_50G", + "STANDARD_VM_FIXED2100_X9_50G", + "STANDARD_VM_FIXED2200_X9_50G", + "STANDARD_VM_FIXED2300_X9_50G", + "STANDARD_VM_FIXED2400_X9_50G", + "STANDARD_VM_FIXED2500_X9_50G", + "STANDARD_VM_FIXED2600_X9_50G", + "STANDARD_VM_FIXED2700_X9_50G", + "STANDARD_VM_FIXED2800_X9_50G", + "STANDARD_VM_FIXED2900_X9_50G", + "STANDARD_VM_FIXED3000_X9_50G", + "STANDARD_VM_FIXED3100_X9_50G", + "STANDARD_VM_FIXED3200_X9_50G", + "STANDARD_VM_FIXED3300_X9_50G", + "STANDARD_VM_FIXED3400_X9_50G", + "STANDARD_VM_FIXED3500_X9_50G", + "STANDARD_VM_FIXED3600_X9_50G", + "STANDARD_VM_FIXED3700_X9_50G", + "STANDARD_VM_FIXED3800_X9_50G", + "STANDARD_VM_FIXED3900_X9_50G", + "STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G", + "ENTIREHOST_X9_50G", + } +} + +// GetMappingInternalVnicAttachmentVnicShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternalVnicAttachmentVnicShapeEnum(val string) (InternalVnicAttachmentVnicShapeEnum, bool) { + enum, ok := mappingInternalVnicAttachmentVnicShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_create_details.go new file mode 100644 index 0000000000..5834a43889 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_create_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternetDrgAttachmentNetworkCreateDetails Create details for an "Internet" attachment for a DRG +type InternetDrgAttachmentNetworkCreateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The list of BYOIP Range OCIDs used to be accessible to the internet via this DRG. + ByoipRangeIds []string `mandatory:"false" json:"byoipRangeIds"` + + // The list of Public IPv4 or IPv6 CIDRs ["100.0.0.0/24"] accessible to the internet via this DRG. + PublicCidrBlocks []string `mandatory:"false" json:"publicCidrBlocks"` +} + +//GetId returns Id +func (m InternetDrgAttachmentNetworkCreateDetails) GetId() *string { + return m.Id +} + +func (m InternetDrgAttachmentNetworkCreateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternetDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InternetDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInternetDrgAttachmentNetworkCreateDetails InternetDrgAttachmentNetworkCreateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInternetDrgAttachmentNetworkCreateDetails + }{ + "INTERNET", + (MarshalTypeInternetDrgAttachmentNetworkCreateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_details.go new file mode 100644 index 0000000000..c988246da9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_details.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternetDrgAttachmentNetworkDetails Details for an "Internet" attachment for a DRG +type InternetDrgAttachmentNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The list of BYOIP Range OCIDs used to be accessible to the internet via this DRG. + ByoipRangeIds []string `mandatory:"false" json:"byoipRangeIds"` + + // The list of Public IPv4 or IPv6 CIDRs ["100.0.0.0/24"] used to be + // accessible to the internet via this DRG. + PublicCidrBlocks []string `mandatory:"false" json:"publicCidrBlocks"` +} + +//GetId returns Id +func (m InternetDrgAttachmentNetworkDetails) GetId() *string { + return m.Id +} + +func (m InternetDrgAttachmentNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternetDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InternetDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInternetDrgAttachmentNetworkDetails InternetDrgAttachmentNetworkDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInternetDrgAttachmentNetworkDetails + }{ + "INTERNET", + (MarshalTypeInternetDrgAttachmentNetworkDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_update_details.go new file mode 100644 index 0000000000..3698968b29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_drg_attachment_network_update_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternetDrgAttachmentNetworkUpdateDetails Update details for an Internet attachment for a DRG. +type InternetDrgAttachmentNetworkUpdateDetails struct { + + // The list of BYOIP Range OCIDs accessible to the internet via this DRG. + ByoipRangeIds []string `mandatory:"false" json:"byoipRangeIds"` + + // The list of Public IPv4 or IPv6 CIDRs ["100.0.0.0/24"] + // accessible to the internet via this DRG. + PublicCidrBlocks []string `mandatory:"false" json:"publicCidrBlocks"` +} + +func (m InternetDrgAttachmentNetworkUpdateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternetDrgAttachmentNetworkUpdateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m InternetDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeInternetDrgAttachmentNetworkUpdateDetails InternetDrgAttachmentNetworkUpdateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeInternetDrgAttachmentNetworkUpdateDetails + }{ + "INTERNET", + (MarshalTypeInternetDrgAttachmentNetworkUpdateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_gateway.go new file mode 100644 index 0000000000..88be566594 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/internet_gateway.go @@ -0,0 +1,135 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// InternetGateway Represents a router that connects the edge of a VCN with the Internet. For an example scenario +// that uses an internet gateway, see +// Typical Networking Service Scenarios (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm#scenarios). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type InternetGateway struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the internet gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The internet gateway's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The internet gateway's current state. + LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the Internet Gateway belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether the gateway is enabled. When the gateway is disabled, traffic is not + // routed to/from the Internet, regardless of route rules. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The date and time the internet gateway was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the Internet Gateway is using. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m InternetGateway) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m InternetGateway) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternetGatewayLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetInternetGatewayLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// InternetGatewayLifecycleStateEnum Enum with underlying type: string +type InternetGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for InternetGatewayLifecycleStateEnum +const ( + InternetGatewayLifecycleStateProvisioning InternetGatewayLifecycleStateEnum = "PROVISIONING" + InternetGatewayLifecycleStateAvailable InternetGatewayLifecycleStateEnum = "AVAILABLE" + InternetGatewayLifecycleStateTerminating InternetGatewayLifecycleStateEnum = "TERMINATING" + InternetGatewayLifecycleStateTerminated InternetGatewayLifecycleStateEnum = "TERMINATED" +) + +var mappingInternetGatewayLifecycleStateEnum = map[string]InternetGatewayLifecycleStateEnum{ + "PROVISIONING": InternetGatewayLifecycleStateProvisioning, + "AVAILABLE": InternetGatewayLifecycleStateAvailable, + "TERMINATING": InternetGatewayLifecycleStateTerminating, + "TERMINATED": InternetGatewayLifecycleStateTerminated, +} + +var mappingInternetGatewayLifecycleStateEnumLowerCase = map[string]InternetGatewayLifecycleStateEnum{ + "provisioning": InternetGatewayLifecycleStateProvisioning, + "available": InternetGatewayLifecycleStateAvailable, + "terminating": InternetGatewayLifecycleStateTerminating, + "terminated": InternetGatewayLifecycleStateTerminated, +} + +// GetInternetGatewayLifecycleStateEnumValues Enumerates the set of values for InternetGatewayLifecycleStateEnum +func GetInternetGatewayLifecycleStateEnumValues() []InternetGatewayLifecycleStateEnum { + values := make([]InternetGatewayLifecycleStateEnum, 0) + for _, v := range mappingInternetGatewayLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetInternetGatewayLifecycleStateEnumStringValues Enumerates the set of values in String for InternetGatewayLifecycleStateEnum +func GetInternetGatewayLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingInternetGatewayLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingInternetGatewayLifecycleStateEnum(val string) (InternetGatewayLifecycleStateEnum, bool) { + enum, ok := mappingInternetGatewayLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go new file mode 100644 index 0000000000..2f6fb4249e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection.go @@ -0,0 +1,220 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnection A connection between a DRG and CPE. This connection consists of multiple IPSec +// tunnels. Creating this connection is one of the steps required when setting up +// a Site-to-Site VPN. +// **Important:** Each tunnel in an IPSec connection can use either static routing or BGP dynamic +// routing (see the IPSecConnectionTunnel object's +// `routing` attribute). Originally only static routing was supported and +// every IPSec connection was required to have at least one static route configured. +// To maintain backward compatibility in the API when support for BPG dynamic routing was introduced, +// the API accepts an empty list of static routes if you configure both of the IPSec tunnels to use +// BGP dynamic routing. If you switch a tunnel's routing from `BGP` to `STATIC`, you must first +// ensure that the IPSec connection is configured with at least one valid CIDR block static route. +// Oracle uses the IPSec connection's static routes when routing a tunnel's traffic *only* +// if that tunnel's `routing` attribute = `STATIC`. Otherwise the static routes are ignored. +// For more information about the workflow for setting up an IPSec connection, see +// Site-to-Site VPN Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type IpSecConnection struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Cpe object. + CpeId *string `mandatory:"true" json:"cpeId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The IPSec connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The IPSec connection's current state. + LifecycleState IpSecConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Static routes to the CPE. The CIDR must not be a + // multicast address or class E address. + // Used for routing a given IPSec tunnel's traffic only if the tunnel + // is using static routing. If you configure at least one tunnel to use static routing, then + // you must provide at least one valid static route. If you configure both + // tunnels to use BGP dynamic routing, you can provide an empty list for the static routes. + // The CIDR can be either IPv4 or IPv6. IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"true" json:"staticRoutes"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, + // the fully qualified domain name (FQDN)). The type of identifier here must correspond + // to the value for `cpeLocalIdentifierType`. + // If you don't provide a value when creating the IPSec connection, the `ipAddress` attribute + // for the Cpe object specified by `cpeId` is used as the `cpeLocalIdentifier`. + // For information about why you'd provide this value, see + // If Your CPE Is Behind a NAT Device (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm#nat). + // Example IP address: `10.0.3.3` + // Example hostname: `cpe.example.com` + CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"` + + // The type of identifier for your CPE device. The value here must correspond to the value + // for `cpeLocalIdentifier`. + CpeLocalIdentifierType IpSecConnectionCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + + // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + MigrationStatus *IpSecConnectionMigrationStatus `mandatory:"false" json:"migrationStatus"` + + // Ipsec Connection's version which is "1" for Juniper or "2" for NextGen. + IpsecConnectionVersion *int `mandatory:"false" json:"ipsecConnectionVersion"` +} + +func (m IpSecConnection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIpSecConnectionLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIpSecConnectionLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpSecConnectionCpeLocalIdentifierTypeEnum(string(m.CpeLocalIdentifierType)); !ok && m.CpeLocalIdentifierType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CpeLocalIdentifierType: %s. Supported values are: %s.", m.CpeLocalIdentifierType, strings.Join(GetIpSecConnectionCpeLocalIdentifierTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IpSecConnectionLifecycleStateEnum Enum with underlying type: string +type IpSecConnectionLifecycleStateEnum string + +// Set of constants representing the allowable values for IpSecConnectionLifecycleStateEnum +const ( + IpSecConnectionLifecycleStateProvisioning IpSecConnectionLifecycleStateEnum = "PROVISIONING" + IpSecConnectionLifecycleStateAvailable IpSecConnectionLifecycleStateEnum = "AVAILABLE" + IpSecConnectionLifecycleStateTerminating IpSecConnectionLifecycleStateEnum = "TERMINATING" + IpSecConnectionLifecycleStateTerminated IpSecConnectionLifecycleStateEnum = "TERMINATED" +) + +var mappingIpSecConnectionLifecycleStateEnum = map[string]IpSecConnectionLifecycleStateEnum{ + "PROVISIONING": IpSecConnectionLifecycleStateProvisioning, + "AVAILABLE": IpSecConnectionLifecycleStateAvailable, + "TERMINATING": IpSecConnectionLifecycleStateTerminating, + "TERMINATED": IpSecConnectionLifecycleStateTerminated, +} + +var mappingIpSecConnectionLifecycleStateEnumLowerCase = map[string]IpSecConnectionLifecycleStateEnum{ + "provisioning": IpSecConnectionLifecycleStateProvisioning, + "available": IpSecConnectionLifecycleStateAvailable, + "terminating": IpSecConnectionLifecycleStateTerminating, + "terminated": IpSecConnectionLifecycleStateTerminated, +} + +// GetIpSecConnectionLifecycleStateEnumValues Enumerates the set of values for IpSecConnectionLifecycleStateEnum +func GetIpSecConnectionLifecycleStateEnumValues() []IpSecConnectionLifecycleStateEnum { + values := make([]IpSecConnectionLifecycleStateEnum, 0) + for _, v := range mappingIpSecConnectionLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionLifecycleStateEnumStringValues Enumerates the set of values in String for IpSecConnectionLifecycleStateEnum +func GetIpSecConnectionLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingIpSecConnectionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionLifecycleStateEnum(val string) (IpSecConnectionLifecycleStateEnum, bool) { + enum, ok := mappingIpSecConnectionLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionCpeLocalIdentifierTypeEnum Enum with underlying type: string +type IpSecConnectionCpeLocalIdentifierTypeEnum string + +// Set of constants representing the allowable values for IpSecConnectionCpeLocalIdentifierTypeEnum +const ( + IpSecConnectionCpeLocalIdentifierTypeIpAddress IpSecConnectionCpeLocalIdentifierTypeEnum = "IP_ADDRESS" + IpSecConnectionCpeLocalIdentifierTypeHostname IpSecConnectionCpeLocalIdentifierTypeEnum = "HOSTNAME" +) + +var mappingIpSecConnectionCpeLocalIdentifierTypeEnum = map[string]IpSecConnectionCpeLocalIdentifierTypeEnum{ + "IP_ADDRESS": IpSecConnectionCpeLocalIdentifierTypeIpAddress, + "HOSTNAME": IpSecConnectionCpeLocalIdentifierTypeHostname, +} + +var mappingIpSecConnectionCpeLocalIdentifierTypeEnumLowerCase = map[string]IpSecConnectionCpeLocalIdentifierTypeEnum{ + "ip_address": IpSecConnectionCpeLocalIdentifierTypeIpAddress, + "hostname": IpSecConnectionCpeLocalIdentifierTypeHostname, +} + +// GetIpSecConnectionCpeLocalIdentifierTypeEnumValues Enumerates the set of values for IpSecConnectionCpeLocalIdentifierTypeEnum +func GetIpSecConnectionCpeLocalIdentifierTypeEnumValues() []IpSecConnectionCpeLocalIdentifierTypeEnum { + values := make([]IpSecConnectionCpeLocalIdentifierTypeEnum, 0) + for _, v := range mappingIpSecConnectionCpeLocalIdentifierTypeEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionCpeLocalIdentifierTypeEnumStringValues Enumerates the set of values in String for IpSecConnectionCpeLocalIdentifierTypeEnum +func GetIpSecConnectionCpeLocalIdentifierTypeEnumStringValues() []string { + return []string{ + "IP_ADDRESS", + "HOSTNAME", + } +} + +// GetMappingIpSecConnectionCpeLocalIdentifierTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionCpeLocalIdentifierTypeEnum(val string) (IpSecConnectionCpeLocalIdentifierTypeEnum, bool) { + enum, ok := mappingIpSecConnectionCpeLocalIdentifierTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_config.go new file mode 100644 index 0000000000..018ccd2e50 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_config.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnectionDeviceConfig Deprecated. For tunnel information, instead see: +// * IPSecConnectionTunnel +// * IPSecConnectionTunnelSharedSecret +type IpSecConnectionDeviceConfig struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The IPSec connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The date and time the IPSec connection was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Two TunnelConfig objects. + Tunnels []TunnelConfig `mandatory:"false" json:"tunnels"` +} + +func (m IpSecConnectionDeviceConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnectionDeviceConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_status.go new file mode 100644 index 0000000000..d4adf30d25 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_device_status.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnectionDeviceStatus Deprecated. For tunnel information, instead see +// IPSecConnectionTunnel. +type IpSecConnectionDeviceStatus struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The IPSec connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Two TunnelStatus objects. + Tunnels []TunnelStatus `mandatory:"false" json:"tunnels"` +} + +func (m IpSecConnectionDeviceStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnectionDeviceStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_migration_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_migration_status.go new file mode 100644 index 0000000000..2342bac458 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_migration_status.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnectionMigrationStatus The IPSec connection's migration status. +type IpSecConnectionMigrationStatus struct { + + // The IPSec connection's migration status. + MigrationStatus IpSecConnectionMigrationStatusMigrationStatusEnum `mandatory:"true" json:"migrationStatus"` + + // The start timestamp for Site-to-Site VPN migration work. + StartTimeStamp *common.SDKTime `mandatory:"true" json:"startTimeStamp"` +} + +func (m IpSecConnectionMigrationStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnectionMigrationStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIpSecConnectionMigrationStatusMigrationStatusEnum(string(m.MigrationStatus)); !ok && m.MigrationStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MigrationStatus: %s. Supported values are: %s.", m.MigrationStatus, strings.Join(GetIpSecConnectionMigrationStatusMigrationStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IpSecConnectionMigrationStatusMigrationStatusEnum Enum with underlying type: string +type IpSecConnectionMigrationStatusMigrationStatusEnum string + +// Set of constants representing the allowable values for IpSecConnectionMigrationStatusMigrationStatusEnum +const ( + IpSecConnectionMigrationStatusMigrationStatusReady IpSecConnectionMigrationStatusMigrationStatusEnum = "READY" + IpSecConnectionMigrationStatusMigrationStatusMigrated IpSecConnectionMigrationStatusMigrationStatusEnum = "MIGRATED" + IpSecConnectionMigrationStatusMigrationStatusMigrating IpSecConnectionMigrationStatusMigrationStatusEnum = "MIGRATING" + IpSecConnectionMigrationStatusMigrationStatusMigrationFailed IpSecConnectionMigrationStatusMigrationStatusEnum = "MIGRATION_FAILED" + IpSecConnectionMigrationStatusMigrationStatusRolledBack IpSecConnectionMigrationStatusMigrationStatusEnum = "ROLLED_BACK" + IpSecConnectionMigrationStatusMigrationStatusRollingBack IpSecConnectionMigrationStatusMigrationStatusEnum = "ROLLING_BACK" + IpSecConnectionMigrationStatusMigrationStatusRollbackFailed IpSecConnectionMigrationStatusMigrationStatusEnum = "ROLLBACK_FAILED" + IpSecConnectionMigrationStatusMigrationStatusNotApplicable IpSecConnectionMigrationStatusMigrationStatusEnum = "NOT_APPLICABLE" + IpSecConnectionMigrationStatusMigrationStatusManual IpSecConnectionMigrationStatusMigrationStatusEnum = "MANUAL" + IpSecConnectionMigrationStatusMigrationStatusValidating IpSecConnectionMigrationStatusMigrationStatusEnum = "VALIDATING" +) + +var mappingIpSecConnectionMigrationStatusMigrationStatusEnum = map[string]IpSecConnectionMigrationStatusMigrationStatusEnum{ + "READY": IpSecConnectionMigrationStatusMigrationStatusReady, + "MIGRATED": IpSecConnectionMigrationStatusMigrationStatusMigrated, + "MIGRATING": IpSecConnectionMigrationStatusMigrationStatusMigrating, + "MIGRATION_FAILED": IpSecConnectionMigrationStatusMigrationStatusMigrationFailed, + "ROLLED_BACK": IpSecConnectionMigrationStatusMigrationStatusRolledBack, + "ROLLING_BACK": IpSecConnectionMigrationStatusMigrationStatusRollingBack, + "ROLLBACK_FAILED": IpSecConnectionMigrationStatusMigrationStatusRollbackFailed, + "NOT_APPLICABLE": IpSecConnectionMigrationStatusMigrationStatusNotApplicable, + "MANUAL": IpSecConnectionMigrationStatusMigrationStatusManual, + "VALIDATING": IpSecConnectionMigrationStatusMigrationStatusValidating, +} + +var mappingIpSecConnectionMigrationStatusMigrationStatusEnumLowerCase = map[string]IpSecConnectionMigrationStatusMigrationStatusEnum{ + "ready": IpSecConnectionMigrationStatusMigrationStatusReady, + "migrated": IpSecConnectionMigrationStatusMigrationStatusMigrated, + "migrating": IpSecConnectionMigrationStatusMigrationStatusMigrating, + "migration_failed": IpSecConnectionMigrationStatusMigrationStatusMigrationFailed, + "rolled_back": IpSecConnectionMigrationStatusMigrationStatusRolledBack, + "rolling_back": IpSecConnectionMigrationStatusMigrationStatusRollingBack, + "rollback_failed": IpSecConnectionMigrationStatusMigrationStatusRollbackFailed, + "not_applicable": IpSecConnectionMigrationStatusMigrationStatusNotApplicable, + "manual": IpSecConnectionMigrationStatusMigrationStatusManual, + "validating": IpSecConnectionMigrationStatusMigrationStatusValidating, +} + +// GetIpSecConnectionMigrationStatusMigrationStatusEnumValues Enumerates the set of values for IpSecConnectionMigrationStatusMigrationStatusEnum +func GetIpSecConnectionMigrationStatusMigrationStatusEnumValues() []IpSecConnectionMigrationStatusMigrationStatusEnum { + values := make([]IpSecConnectionMigrationStatusMigrationStatusEnum, 0) + for _, v := range mappingIpSecConnectionMigrationStatusMigrationStatusEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionMigrationStatusMigrationStatusEnumStringValues Enumerates the set of values in String for IpSecConnectionMigrationStatusMigrationStatusEnum +func GetIpSecConnectionMigrationStatusMigrationStatusEnumStringValues() []string { + return []string{ + "READY", + "MIGRATED", + "MIGRATING", + "MIGRATION_FAILED", + "ROLLED_BACK", + "ROLLING_BACK", + "ROLLBACK_FAILED", + "NOT_APPLICABLE", + "MANUAL", + "VALIDATING", + } +} + +// GetMappingIpSecConnectionMigrationStatusMigrationStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionMigrationStatusMigrationStatusEnum(val string) (IpSecConnectionMigrationStatusMigrationStatusEnum, bool) { + enum, ok := mappingIpSecConnectionMigrationStatusMigrationStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel.go new file mode 100644 index 0000000000..d25a53293a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel.go @@ -0,0 +1,448 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnectionTunnel Information about a single IPSec tunnel in an IPSec connection. This object does not include the tunnel's +// shared secret (pre-shared key), which is found in the +// IPSecConnectionTunnelSharedSecret object. +type IpSecConnectionTunnel struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the tunnel. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. + Id *string `mandatory:"true" json:"id"` + + // The tunnel's lifecycle state. + LifecycleState IpSecConnectionTunnelLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The IP address of the Oracle VPN headend for the connection. + // Example: `203.0.113.21` + VpnIp *string `mandatory:"false" json:"vpnIp"` + + // The IP address of the CPE device's VPN headend. + // Example: `203.0.113.22` + CpeIp *string `mandatory:"false" json:"cpeIp"` + + // The status of the tunnel based on IPSec protocol characteristics. + Status IpSecConnectionTunnelStatusEnum `mandatory:"false" json:"status,omitempty"` + + // Internet Key Exchange protocol version. + IkeVersion IpSecConnectionTunnelIkeVersionEnum `mandatory:"false" json:"ikeVersion,omitempty"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + BgpSessionInfo *BgpSessionInfo `mandatory:"false" json:"bgpSessionInfo"` + + EncryptionDomainConfig *EncryptionDomainConfig `mandatory:"false" json:"encryptionDomainConfig"` + + // The type of routing used for this tunnel (BGP dynamic routing, static routing, or policy-based routing). + Routing IpSecConnectionTunnelRoutingEnum `mandatory:"false" json:"routing,omitempty"` + + // The date and time the IPSec tunnel was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // When the status of the IPSec tunnel last changed, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeStatusUpdated *common.SDKTime `mandatory:"false" json:"timeStatusUpdated"` + + // Indicates whether Oracle can only respond to a request to start an IPSec tunnel from the CPE device, or both respond to and initiate requests. + OracleCanInitiate IpSecConnectionTunnelOracleCanInitiateEnum `mandatory:"false" json:"oracleCanInitiate,omitempty"` + + // By default (the `AUTO` setting), IKE sends packets with a source and destination port set to 500, + // and when it detects that the port used to forward packets has changed (most likely because a NAT device + // is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T. + // The `ENABLED` option sets the IKE protocol to use port 4500 instead of 500 and forces encapsulating traffic with the ESP protocol inside UDP packets. + // The `DISABLED` option directs IKE to completely refuse to negotiate NAT-T + // even if it senses there may be a NAT device in use. + // + // . + NatTranslationEnabled IpSecConnectionTunnelNatTranslationEnabledEnum `mandatory:"false" json:"natTranslationEnabled,omitempty"` + + // Dead peer detection (DPD) mode set on the Oracle side of the connection. + // This mode sets whether Oracle can only respond to a request from the CPE device to start DPD, + // or both respond to and initiate requests. + DpdMode IpSecConnectionTunnelDpdModeEnum `mandatory:"false" json:"dpdMode,omitempty"` + + // DPD timeout in seconds. + DpdTimeoutInSec *int `mandatory:"false" json:"dpdTimeoutInSec"` + + PhaseOneDetails *TunnelPhaseOneDetails `mandatory:"false" json:"phaseOneDetails"` + + PhaseTwoDetails *TunnelPhaseTwoDetails `mandatory:"false" json:"phaseTwoDetails"` +} + +func (m IpSecConnectionTunnel) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnectionTunnel) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIpSecConnectionTunnelLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIpSecConnectionTunnelLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpSecConnectionTunnelStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetIpSecConnectionTunnelStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingIpSecConnectionTunnelIkeVersionEnum(string(m.IkeVersion)); !ok && m.IkeVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IkeVersion: %s. Supported values are: %s.", m.IkeVersion, strings.Join(GetIpSecConnectionTunnelIkeVersionEnumStringValues(), ","))) + } + if _, ok := GetMappingIpSecConnectionTunnelRoutingEnum(string(m.Routing)); !ok && m.Routing != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Routing: %s. Supported values are: %s.", m.Routing, strings.Join(GetIpSecConnectionTunnelRoutingEnumStringValues(), ","))) + } + if _, ok := GetMappingIpSecConnectionTunnelOracleCanInitiateEnum(string(m.OracleCanInitiate)); !ok && m.OracleCanInitiate != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OracleCanInitiate: %s. Supported values are: %s.", m.OracleCanInitiate, strings.Join(GetIpSecConnectionTunnelOracleCanInitiateEnumStringValues(), ","))) + } + if _, ok := GetMappingIpSecConnectionTunnelNatTranslationEnabledEnum(string(m.NatTranslationEnabled)); !ok && m.NatTranslationEnabled != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NatTranslationEnabled: %s. Supported values are: %s.", m.NatTranslationEnabled, strings.Join(GetIpSecConnectionTunnelNatTranslationEnabledEnumStringValues(), ","))) + } + if _, ok := GetMappingIpSecConnectionTunnelDpdModeEnum(string(m.DpdMode)); !ok && m.DpdMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DpdMode: %s. Supported values are: %s.", m.DpdMode, strings.Join(GetIpSecConnectionTunnelDpdModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IpSecConnectionTunnelStatusEnum Enum with underlying type: string +type IpSecConnectionTunnelStatusEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelStatusEnum +const ( + IpSecConnectionTunnelStatusUp IpSecConnectionTunnelStatusEnum = "UP" + IpSecConnectionTunnelStatusDown IpSecConnectionTunnelStatusEnum = "DOWN" + IpSecConnectionTunnelStatusDownForMaintenance IpSecConnectionTunnelStatusEnum = "DOWN_FOR_MAINTENANCE" + IpSecConnectionTunnelStatusPartialUp IpSecConnectionTunnelStatusEnum = "PARTIAL_UP" +) + +var mappingIpSecConnectionTunnelStatusEnum = map[string]IpSecConnectionTunnelStatusEnum{ + "UP": IpSecConnectionTunnelStatusUp, + "DOWN": IpSecConnectionTunnelStatusDown, + "DOWN_FOR_MAINTENANCE": IpSecConnectionTunnelStatusDownForMaintenance, + "PARTIAL_UP": IpSecConnectionTunnelStatusPartialUp, +} + +var mappingIpSecConnectionTunnelStatusEnumLowerCase = map[string]IpSecConnectionTunnelStatusEnum{ + "up": IpSecConnectionTunnelStatusUp, + "down": IpSecConnectionTunnelStatusDown, + "down_for_maintenance": IpSecConnectionTunnelStatusDownForMaintenance, + "partial_up": IpSecConnectionTunnelStatusPartialUp, +} + +// GetIpSecConnectionTunnelStatusEnumValues Enumerates the set of values for IpSecConnectionTunnelStatusEnum +func GetIpSecConnectionTunnelStatusEnumValues() []IpSecConnectionTunnelStatusEnum { + values := make([]IpSecConnectionTunnelStatusEnum, 0) + for _, v := range mappingIpSecConnectionTunnelStatusEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelStatusEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelStatusEnum +func GetIpSecConnectionTunnelStatusEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + "DOWN_FOR_MAINTENANCE", + "PARTIAL_UP", + } +} + +// GetMappingIpSecConnectionTunnelStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelStatusEnum(val string) (IpSecConnectionTunnelStatusEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionTunnelIkeVersionEnum Enum with underlying type: string +type IpSecConnectionTunnelIkeVersionEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelIkeVersionEnum +const ( + IpSecConnectionTunnelIkeVersionV1 IpSecConnectionTunnelIkeVersionEnum = "V1" + IpSecConnectionTunnelIkeVersionV2 IpSecConnectionTunnelIkeVersionEnum = "V2" +) + +var mappingIpSecConnectionTunnelIkeVersionEnum = map[string]IpSecConnectionTunnelIkeVersionEnum{ + "V1": IpSecConnectionTunnelIkeVersionV1, + "V2": IpSecConnectionTunnelIkeVersionV2, +} + +var mappingIpSecConnectionTunnelIkeVersionEnumLowerCase = map[string]IpSecConnectionTunnelIkeVersionEnum{ + "v1": IpSecConnectionTunnelIkeVersionV1, + "v2": IpSecConnectionTunnelIkeVersionV2, +} + +// GetIpSecConnectionTunnelIkeVersionEnumValues Enumerates the set of values for IpSecConnectionTunnelIkeVersionEnum +func GetIpSecConnectionTunnelIkeVersionEnumValues() []IpSecConnectionTunnelIkeVersionEnum { + values := make([]IpSecConnectionTunnelIkeVersionEnum, 0) + for _, v := range mappingIpSecConnectionTunnelIkeVersionEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelIkeVersionEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelIkeVersionEnum +func GetIpSecConnectionTunnelIkeVersionEnumStringValues() []string { + return []string{ + "V1", + "V2", + } +} + +// GetMappingIpSecConnectionTunnelIkeVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelIkeVersionEnum(val string) (IpSecConnectionTunnelIkeVersionEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelIkeVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionTunnelLifecycleStateEnum Enum with underlying type: string +type IpSecConnectionTunnelLifecycleStateEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelLifecycleStateEnum +const ( + IpSecConnectionTunnelLifecycleStateProvisioning IpSecConnectionTunnelLifecycleStateEnum = "PROVISIONING" + IpSecConnectionTunnelLifecycleStateAvailable IpSecConnectionTunnelLifecycleStateEnum = "AVAILABLE" + IpSecConnectionTunnelLifecycleStateTerminating IpSecConnectionTunnelLifecycleStateEnum = "TERMINATING" + IpSecConnectionTunnelLifecycleStateTerminated IpSecConnectionTunnelLifecycleStateEnum = "TERMINATED" +) + +var mappingIpSecConnectionTunnelLifecycleStateEnum = map[string]IpSecConnectionTunnelLifecycleStateEnum{ + "PROVISIONING": IpSecConnectionTunnelLifecycleStateProvisioning, + "AVAILABLE": IpSecConnectionTunnelLifecycleStateAvailable, + "TERMINATING": IpSecConnectionTunnelLifecycleStateTerminating, + "TERMINATED": IpSecConnectionTunnelLifecycleStateTerminated, +} + +var mappingIpSecConnectionTunnelLifecycleStateEnumLowerCase = map[string]IpSecConnectionTunnelLifecycleStateEnum{ + "provisioning": IpSecConnectionTunnelLifecycleStateProvisioning, + "available": IpSecConnectionTunnelLifecycleStateAvailable, + "terminating": IpSecConnectionTunnelLifecycleStateTerminating, + "terminated": IpSecConnectionTunnelLifecycleStateTerminated, +} + +// GetIpSecConnectionTunnelLifecycleStateEnumValues Enumerates the set of values for IpSecConnectionTunnelLifecycleStateEnum +func GetIpSecConnectionTunnelLifecycleStateEnumValues() []IpSecConnectionTunnelLifecycleStateEnum { + values := make([]IpSecConnectionTunnelLifecycleStateEnum, 0) + for _, v := range mappingIpSecConnectionTunnelLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelLifecycleStateEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelLifecycleStateEnum +func GetIpSecConnectionTunnelLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingIpSecConnectionTunnelLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelLifecycleStateEnum(val string) (IpSecConnectionTunnelLifecycleStateEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionTunnelRoutingEnum Enum with underlying type: string +type IpSecConnectionTunnelRoutingEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelRoutingEnum +const ( + IpSecConnectionTunnelRoutingBgp IpSecConnectionTunnelRoutingEnum = "BGP" + IpSecConnectionTunnelRoutingStatic IpSecConnectionTunnelRoutingEnum = "STATIC" + IpSecConnectionTunnelRoutingPolicy IpSecConnectionTunnelRoutingEnum = "POLICY" +) + +var mappingIpSecConnectionTunnelRoutingEnum = map[string]IpSecConnectionTunnelRoutingEnum{ + "BGP": IpSecConnectionTunnelRoutingBgp, + "STATIC": IpSecConnectionTunnelRoutingStatic, + "POLICY": IpSecConnectionTunnelRoutingPolicy, +} + +var mappingIpSecConnectionTunnelRoutingEnumLowerCase = map[string]IpSecConnectionTunnelRoutingEnum{ + "bgp": IpSecConnectionTunnelRoutingBgp, + "static": IpSecConnectionTunnelRoutingStatic, + "policy": IpSecConnectionTunnelRoutingPolicy, +} + +// GetIpSecConnectionTunnelRoutingEnumValues Enumerates the set of values for IpSecConnectionTunnelRoutingEnum +func GetIpSecConnectionTunnelRoutingEnumValues() []IpSecConnectionTunnelRoutingEnum { + values := make([]IpSecConnectionTunnelRoutingEnum, 0) + for _, v := range mappingIpSecConnectionTunnelRoutingEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelRoutingEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelRoutingEnum +func GetIpSecConnectionTunnelRoutingEnumStringValues() []string { + return []string{ + "BGP", + "STATIC", + "POLICY", + } +} + +// GetMappingIpSecConnectionTunnelRoutingEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelRoutingEnum(val string) (IpSecConnectionTunnelRoutingEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelRoutingEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionTunnelOracleCanInitiateEnum Enum with underlying type: string +type IpSecConnectionTunnelOracleCanInitiateEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelOracleCanInitiateEnum +const ( + IpSecConnectionTunnelOracleCanInitiateInitiatorOrResponder IpSecConnectionTunnelOracleCanInitiateEnum = "INITIATOR_OR_RESPONDER" + IpSecConnectionTunnelOracleCanInitiateResponderOnly IpSecConnectionTunnelOracleCanInitiateEnum = "RESPONDER_ONLY" +) + +var mappingIpSecConnectionTunnelOracleCanInitiateEnum = map[string]IpSecConnectionTunnelOracleCanInitiateEnum{ + "INITIATOR_OR_RESPONDER": IpSecConnectionTunnelOracleCanInitiateInitiatorOrResponder, + "RESPONDER_ONLY": IpSecConnectionTunnelOracleCanInitiateResponderOnly, +} + +var mappingIpSecConnectionTunnelOracleCanInitiateEnumLowerCase = map[string]IpSecConnectionTunnelOracleCanInitiateEnum{ + "initiator_or_responder": IpSecConnectionTunnelOracleCanInitiateInitiatorOrResponder, + "responder_only": IpSecConnectionTunnelOracleCanInitiateResponderOnly, +} + +// GetIpSecConnectionTunnelOracleCanInitiateEnumValues Enumerates the set of values for IpSecConnectionTunnelOracleCanInitiateEnum +func GetIpSecConnectionTunnelOracleCanInitiateEnumValues() []IpSecConnectionTunnelOracleCanInitiateEnum { + values := make([]IpSecConnectionTunnelOracleCanInitiateEnum, 0) + for _, v := range mappingIpSecConnectionTunnelOracleCanInitiateEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelOracleCanInitiateEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelOracleCanInitiateEnum +func GetIpSecConnectionTunnelOracleCanInitiateEnumStringValues() []string { + return []string{ + "INITIATOR_OR_RESPONDER", + "RESPONDER_ONLY", + } +} + +// GetMappingIpSecConnectionTunnelOracleCanInitiateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelOracleCanInitiateEnum(val string) (IpSecConnectionTunnelOracleCanInitiateEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelOracleCanInitiateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionTunnelNatTranslationEnabledEnum Enum with underlying type: string +type IpSecConnectionTunnelNatTranslationEnabledEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelNatTranslationEnabledEnum +const ( + IpSecConnectionTunnelNatTranslationEnabledEnabled IpSecConnectionTunnelNatTranslationEnabledEnum = "ENABLED" + IpSecConnectionTunnelNatTranslationEnabledDisabled IpSecConnectionTunnelNatTranslationEnabledEnum = "DISABLED" + IpSecConnectionTunnelNatTranslationEnabledAuto IpSecConnectionTunnelNatTranslationEnabledEnum = "AUTO" +) + +var mappingIpSecConnectionTunnelNatTranslationEnabledEnum = map[string]IpSecConnectionTunnelNatTranslationEnabledEnum{ + "ENABLED": IpSecConnectionTunnelNatTranslationEnabledEnabled, + "DISABLED": IpSecConnectionTunnelNatTranslationEnabledDisabled, + "AUTO": IpSecConnectionTunnelNatTranslationEnabledAuto, +} + +var mappingIpSecConnectionTunnelNatTranslationEnabledEnumLowerCase = map[string]IpSecConnectionTunnelNatTranslationEnabledEnum{ + "enabled": IpSecConnectionTunnelNatTranslationEnabledEnabled, + "disabled": IpSecConnectionTunnelNatTranslationEnabledDisabled, + "auto": IpSecConnectionTunnelNatTranslationEnabledAuto, +} + +// GetIpSecConnectionTunnelNatTranslationEnabledEnumValues Enumerates the set of values for IpSecConnectionTunnelNatTranslationEnabledEnum +func GetIpSecConnectionTunnelNatTranslationEnabledEnumValues() []IpSecConnectionTunnelNatTranslationEnabledEnum { + values := make([]IpSecConnectionTunnelNatTranslationEnabledEnum, 0) + for _, v := range mappingIpSecConnectionTunnelNatTranslationEnabledEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelNatTranslationEnabledEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelNatTranslationEnabledEnum +func GetIpSecConnectionTunnelNatTranslationEnabledEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + "AUTO", + } +} + +// GetMappingIpSecConnectionTunnelNatTranslationEnabledEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelNatTranslationEnabledEnum(val string) (IpSecConnectionTunnelNatTranslationEnabledEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelNatTranslationEnabledEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IpSecConnectionTunnelDpdModeEnum Enum with underlying type: string +type IpSecConnectionTunnelDpdModeEnum string + +// Set of constants representing the allowable values for IpSecConnectionTunnelDpdModeEnum +const ( + IpSecConnectionTunnelDpdModeInitiateAndRespond IpSecConnectionTunnelDpdModeEnum = "INITIATE_AND_RESPOND" + IpSecConnectionTunnelDpdModeRespondOnly IpSecConnectionTunnelDpdModeEnum = "RESPOND_ONLY" +) + +var mappingIpSecConnectionTunnelDpdModeEnum = map[string]IpSecConnectionTunnelDpdModeEnum{ + "INITIATE_AND_RESPOND": IpSecConnectionTunnelDpdModeInitiateAndRespond, + "RESPOND_ONLY": IpSecConnectionTunnelDpdModeRespondOnly, +} + +var mappingIpSecConnectionTunnelDpdModeEnumLowerCase = map[string]IpSecConnectionTunnelDpdModeEnum{ + "initiate_and_respond": IpSecConnectionTunnelDpdModeInitiateAndRespond, + "respond_only": IpSecConnectionTunnelDpdModeRespondOnly, +} + +// GetIpSecConnectionTunnelDpdModeEnumValues Enumerates the set of values for IpSecConnectionTunnelDpdModeEnum +func GetIpSecConnectionTunnelDpdModeEnumValues() []IpSecConnectionTunnelDpdModeEnum { + values := make([]IpSecConnectionTunnelDpdModeEnum, 0) + for _, v := range mappingIpSecConnectionTunnelDpdModeEnum { + values = append(values, v) + } + return values +} + +// GetIpSecConnectionTunnelDpdModeEnumStringValues Enumerates the set of values in String for IpSecConnectionTunnelDpdModeEnum +func GetIpSecConnectionTunnelDpdModeEnumStringValues() []string { + return []string{ + "INITIATE_AND_RESPOND", + "RESPOND_ONLY", + } +} + +// GetMappingIpSecConnectionTunnelDpdModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpSecConnectionTunnelDpdModeEnum(val string) (IpSecConnectionTunnelDpdModeEnum, bool) { + enum, ok := mappingIpSecConnectionTunnelDpdModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_error_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_error_details.go new file mode 100644 index 0000000000..e4d69a63a5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_error_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnectionTunnelErrorDetails Details for an error on an IPSec tunnel. +type IpSecConnectionTunnelErrorDetails struct { + + // Unique ID generated for each error report. + Id *string `mandatory:"true" json:"id"` + + // Unique code describes the error type. + ErrorCode *string `mandatory:"true" json:"errorCode"` + + // A detailed description of the error. + ErrorDescription *string `mandatory:"true" json:"errorDescription"` + + // Resolution for the error. + Solution *string `mandatory:"true" json:"solution"` + + // Link to more Oracle resources or relevant documentation. + OciResourcesLink *string `mandatory:"true" json:"ociResourcesLink"` + + // Timestamp when the error occurred. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m IpSecConnectionTunnelErrorDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnectionTunnelErrorDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_shared_secret.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_shared_secret.go new file mode 100644 index 0000000000..21ddf178cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ip_sec_connection_tunnel_shared_secret.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpSecConnectionTunnelSharedSecret The tunnel's shared secret (pre-shared key). +type IpSecConnectionTunnelSharedSecret struct { + + // The tunnel's shared secret (pre-shared key). + SharedSecret *string `mandatory:"true" json:"sharedSecret"` +} + +func (m IpSecConnectionTunnelSharedSecret) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpSecConnectionTunnelSharedSecret) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_create_details.go new file mode 100644 index 0000000000..ebd780550f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_create_details.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpsecTunnelDrgAttachmentNetworkCreateDetails Specifies the IPSec tunnel attachment. +type IpsecTunnelDrgAttachmentNetworkCreateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the IPSec connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The BGP ASN to use for the IPSec connection's route target + RegionalOciAsn *string `mandatory:"true" json:"regionalOciAsn"` + + // The IPSec connection that contains the attached IPSec tunnel. + IpsecConnectionId *string `mandatory:"true" json:"ipsecConnectionId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual-circuit drg attachment. + TransportAttachmentId *string `mandatory:"false" json:"transportAttachmentId"` +} + +//GetId returns Id +func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) GetId() *string { + return m.Id +} + +func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IpsecTunnelDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIpsecTunnelDrgAttachmentNetworkCreateDetails IpsecTunnelDrgAttachmentNetworkCreateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIpsecTunnelDrgAttachmentNetworkCreateDetails + }{ + "IPSEC_TUNNEL", + (MarshalTypeIpsecTunnelDrgAttachmentNetworkCreateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_details.go new file mode 100644 index 0000000000..4ea2073683 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_details.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpsecTunnelDrgAttachmentNetworkDetails Specifies the IPSec tunnel attached to the DRG. +type IpsecTunnelDrgAttachmentNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The IPSec connection that contains the attached IPSec tunnel. + IpsecConnectionId *string `mandatory:"false" json:"ipsecConnectionId"` + + // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors + // tagged with the attachment's import route target. + ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` + + // Routes which are exported to the attachment are exported to the route reflectors + // with the route target set to the value of the attachment's export route target. + ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` + + // The MPLS label of the DRG attachment. + MplsLabel *int `mandatory:"false" json:"mplsLabel"` + + // The BGP ASN to use for the IPSec connection's route target. + RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` + + // IPv4 address used to encapsulate ingress traffic to the DRG through this attachment + IngressVip *string `mandatory:"false" json:"ingressVip"` + + // Whether traffic from this network is forwarded to the El Paso Gamma VIPs (or not) + IsGammaDrg *bool `mandatory:"false" json:"isGammaDrg"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual-circuit drg attachment. + TransportAttachmentId *string `mandatory:"false" json:"transportAttachmentId"` +} + +//GetId returns Id +func (m IpsecTunnelDrgAttachmentNetworkDetails) GetId() *string { + return m.Id +} + +func (m IpsecTunnelDrgAttachmentNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpsecTunnelDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IpsecTunnelDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIpsecTunnelDrgAttachmentNetworkDetails IpsecTunnelDrgAttachmentNetworkDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIpsecTunnelDrgAttachmentNetworkDetails + }{ + "IPSEC_TUNNEL", + (MarshalTypeIpsecTunnelDrgAttachmentNetworkDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_update_details.go new file mode 100644 index 0000000000..0a84212680 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipsec_tunnel_drg_attachment_network_update_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpsecTunnelDrgAttachmentNetworkUpdateDetails Specifies the update details for IPSec tunnel attachment. +type IpsecTunnelDrgAttachmentNetworkUpdateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual-circuit drg attachment. + TransportAttachmentId *string `mandatory:"false" json:"transportAttachmentId"` +} + +func (m IpsecTunnelDrgAttachmentNetworkUpdateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpsecTunnelDrgAttachmentNetworkUpdateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m IpsecTunnelDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeIpsecTunnelDrgAttachmentNetworkUpdateDetails IpsecTunnelDrgAttachmentNetworkUpdateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeIpsecTunnelDrgAttachmentNetworkUpdateDetails + }{ + "IPSEC_TUNNEL", + (MarshalTypeIpsecTunnelDrgAttachmentNetworkUpdateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6.go new file mode 100644 index 0000000000..b7637bc0c6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ipv6.go @@ -0,0 +1,138 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Ipv6 An *IPv6* is a conceptual term that refers to an IPv6 address and related properties. +// The `IPv6` object is the API representation of an IPv6. +// You can create and assign an IPv6 to any VNIC that is in an IPv6-enabled subnet in an +// IPv6-enabled VCN. +// **Note:** IPv6 addressing is supported for all commercial and government regions. For important +// details about IPv6 addressing in a VCN, see IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). +type Ipv6 struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the IPv6. + // This is the same as the VNIC's compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPv6. + Id *string `mandatory:"true" json:"id"` + + // The IPv6 address of the `IPv6` object. The address is within the IPv6 CIDR block of the VNIC's subnet + // (see the `ipv6CidrBlock` attribute for the Subnet object. + // Example: `2001:0db8:0123:1111:abcd:ef01:2345:6789` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The IPv6's current state. + LifecycleState Ipv6LifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet the VNIC is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The date and time the IPv6 was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC the IPv6 is assigned to. + // The VNIC and IPv6 must be in the same subnet. + VnicId *string `mandatory:"true" json:"vnicId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m Ipv6) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Ipv6) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIpv6LifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIpv6LifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// Ipv6LifecycleStateEnum Enum with underlying type: string +type Ipv6LifecycleStateEnum string + +// Set of constants representing the allowable values for Ipv6LifecycleStateEnum +const ( + Ipv6LifecycleStateProvisioning Ipv6LifecycleStateEnum = "PROVISIONING" + Ipv6LifecycleStateAvailable Ipv6LifecycleStateEnum = "AVAILABLE" + Ipv6LifecycleStateTerminating Ipv6LifecycleStateEnum = "TERMINATING" + Ipv6LifecycleStateTerminated Ipv6LifecycleStateEnum = "TERMINATED" +) + +var mappingIpv6LifecycleStateEnum = map[string]Ipv6LifecycleStateEnum{ + "PROVISIONING": Ipv6LifecycleStateProvisioning, + "AVAILABLE": Ipv6LifecycleStateAvailable, + "TERMINATING": Ipv6LifecycleStateTerminating, + "TERMINATED": Ipv6LifecycleStateTerminated, +} + +var mappingIpv6LifecycleStateEnumLowerCase = map[string]Ipv6LifecycleStateEnum{ + "provisioning": Ipv6LifecycleStateProvisioning, + "available": Ipv6LifecycleStateAvailable, + "terminating": Ipv6LifecycleStateTerminating, + "terminated": Ipv6LifecycleStateTerminated, +} + +// GetIpv6LifecycleStateEnumValues Enumerates the set of values for Ipv6LifecycleStateEnum +func GetIpv6LifecycleStateEnumValues() []Ipv6LifecycleStateEnum { + values := make([]Ipv6LifecycleStateEnum, 0) + for _, v := range mappingIpv6LifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetIpv6LifecycleStateEnumStringValues Enumerates the set of values in String for Ipv6LifecycleStateEnum +func GetIpv6LifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingIpv6LifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpv6LifecycleStateEnum(val string) (Ipv6LifecycleStateEnum, bool) { + enum, ok := mappingIpv6LifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_agent_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_agent_config_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go index 1b61dd2376..9a72ab9656 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_agent_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_agent_config_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // LaunchInstanceAgentConfigDetails Configuration options for the Oracle Cloud Agent software running on the instance. @@ -61,3 +63,15 @@ type LaunchInstanceAgentConfigDetails struct { func (m LaunchInstanceAgentConfigDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LaunchInstanceAgentConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_availability_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_availability_config_details.go new file mode 100644 index 0000000000..247ad28f71 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_availability_config_details.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LaunchInstanceAvailabilityConfigDetails Options for VM migration during infrastructure maintenance events and for defining +// the availability of a VM instance after a maintenance event that impacts the underlying hardware. +type LaunchInstanceAvailabilityConfigDetails struct { + + // Whether to live migrate supported VM instances to a healthy physical VM host without + // disrupting running instances during infrastructure maintenance events. If null, Oracle + // chooses the best option for migrating the VM during infrastructure maintenance events. + IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` + + // The lifecycle state for an instance when it is recovered after infrastructure maintenance. + // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. + // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. + // * `STOP_INSTANCE` - The instance is recovered in the stopped state. + RecoveryAction LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` +} + +func (m LaunchInstanceAvailabilityConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LaunchInstanceAvailabilityConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum(string(m.RecoveryAction)); !ok && m.RecoveryAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecoveryAction: %s. Supported values are: %s.", m.RecoveryAction, strings.Join(GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum Enum with underlying type: string +type LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum string + +// Set of constants representing the allowable values for LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum +const ( + LaunchInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum = "RESTORE_INSTANCE" + LaunchInstanceAvailabilityConfigDetailsRecoveryActionStopInstance LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum = "STOP_INSTANCE" +) + +var mappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum = map[string]LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum{ + "RESTORE_INSTANCE": LaunchInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance, + "STOP_INSTANCE": LaunchInstanceAvailabilityConfigDetailsRecoveryActionStopInstance, +} + +var mappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumLowerCase = map[string]LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum{ + "restore_instance": LaunchInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance, + "stop_instance": LaunchInstanceAvailabilityConfigDetailsRecoveryActionStopInstance, +} + +// GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumValues Enumerates the set of values for LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum +func GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumValues() []LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum { + values := make([]LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum, 0) + for _, v := range mappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum { + values = append(values, v) + } + return values +} + +// GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumStringValues Enumerates the set of values in String for LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum +func GetLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumStringValues() []string { + return []string{ + "RESTORE_INSTANCE", + "STOP_INSTANCE", + } +} + +// GetMappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum(val string) (LaunchInstanceAvailabilityConfigDetailsRecoveryActionEnum, bool) { + enum, ok := mappingLaunchInstanceAvailabilityConfigDetailsRecoveryActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_configuration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go index a90895c0b8..2b835e10d6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_configuration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // LaunchInstanceConfigurationRequest wrapper for the LaunchInstanceConfiguration operation @@ -44,6 +46,10 @@ func (request LaunchInstanceConfigurationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request LaunchInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -59,6 +65,17 @@ func (request LaunchInstanceConfigurationRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request LaunchInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // LaunchInstanceConfigurationResponse wrapper for the LaunchInstanceConfiguration operation type LaunchInstanceConfigurationResponse struct { @@ -75,7 +92,8 @@ type LaunchInstanceConfigurationResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go index afc0a4b3c5..61ee12c6ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // LaunchInstanceDetails Instance launch details. @@ -79,7 +81,7 @@ type LaunchInstanceDetails struct { // Example: `{"Department": "Finance"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` - // The OCID of the compute cluster where the instance will be launched. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm) that the instance will be created in. ComputeClusterId *string `mandatory:"false" json:"computeClusterId"` // Deprecated. Instead use `hostnameLabel` in @@ -96,16 +98,21 @@ type LaunchInstanceDetails struct { // instance boots, the iPXE firmware that runs on the instance is // configured to run an iPXE script to continue the boot process. // If you want more control over the boot process, you can provide - // your own custom iPXE script that will run when the instance boots; - // however, you should be aware that the same iPXE script will run - // every time an instance boots; not only after the initial + // your own custom iPXE script that will run when the instance boots. + // Be aware that the same iPXE script will run + // every time an instance boots, not only after the initial // LaunchInstance call. // The default iPXE script connects to the instance's local boot // volume over iSCSI and performs a network boot. If you use a custom iPXE // script and want to network-boot from the instance's local boot volume - // over iSCSI the same way as the default iPXE script, you should use the + // over iSCSI the same way as the default iPXE script, use the // following iSCSI IP address: 169.254.0.2, and boot volume IQN: // iqn.2015-02.oracle.boot. + // If your instance boot volume type is paravirtualized, + // the boot volume is attached to the instance through virtio-scsi and no iPXE script is used. + // If your instance boot volume type is paravirtualized + // and you use custom iPXE to network boot into your instance, + // the primary boot volume is attached as a data volume through virtio-scsi drive. // For more information about the Bring Your Own Image feature of // Oracle Cloud Infrastructure, see // Bring Your Own Image (https://docs.cloud.oracle.com/iaas/Content/Compute/References/bringyourownimage.htm). @@ -189,6 +196,21 @@ func (m LaunchInstanceDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LaunchInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLaunchInstanceDetailsPreferredMaintenanceActionEnum(string(m.PreferredMaintenanceAction)); !ok && m.PreferredMaintenanceAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreferredMaintenanceAction: %s. Supported values are: %s.", m.PreferredMaintenanceAction, strings.Join(GetLaunchInstanceDetailsPreferredMaintenanceActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *LaunchInstanceDetails) UnmarshalJSON(data []byte) (e error) { model := struct { @@ -328,16 +350,35 @@ const ( LaunchInstanceDetailsPreferredMaintenanceActionReboot LaunchInstanceDetailsPreferredMaintenanceActionEnum = "REBOOT" ) -var mappingLaunchInstanceDetailsPreferredMaintenanceAction = map[string]LaunchInstanceDetailsPreferredMaintenanceActionEnum{ +var mappingLaunchInstanceDetailsPreferredMaintenanceActionEnum = map[string]LaunchInstanceDetailsPreferredMaintenanceActionEnum{ "LIVE_MIGRATE": LaunchInstanceDetailsPreferredMaintenanceActionLiveMigrate, "REBOOT": LaunchInstanceDetailsPreferredMaintenanceActionReboot, } +var mappingLaunchInstanceDetailsPreferredMaintenanceActionEnumLowerCase = map[string]LaunchInstanceDetailsPreferredMaintenanceActionEnum{ + "live_migrate": LaunchInstanceDetailsPreferredMaintenanceActionLiveMigrate, + "reboot": LaunchInstanceDetailsPreferredMaintenanceActionReboot, +} + // GetLaunchInstanceDetailsPreferredMaintenanceActionEnumValues Enumerates the set of values for LaunchInstanceDetailsPreferredMaintenanceActionEnum func GetLaunchInstanceDetailsPreferredMaintenanceActionEnumValues() []LaunchInstanceDetailsPreferredMaintenanceActionEnum { values := make([]LaunchInstanceDetailsPreferredMaintenanceActionEnum, 0) - for _, v := range mappingLaunchInstanceDetailsPreferredMaintenanceAction { + for _, v := range mappingLaunchInstanceDetailsPreferredMaintenanceActionEnum { values = append(values, v) } return values } + +// GetLaunchInstanceDetailsPreferredMaintenanceActionEnumStringValues Enumerates the set of values in String for LaunchInstanceDetailsPreferredMaintenanceActionEnum +func GetLaunchInstanceDetailsPreferredMaintenanceActionEnumStringValues() []string { + return []string{ + "LIVE_MIGRATE", + "REBOOT", + } +} + +// GetMappingLaunchInstanceDetailsPreferredMaintenanceActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstanceDetailsPreferredMaintenanceActionEnum(val string) (LaunchInstanceDetailsPreferredMaintenanceActionEnum, bool) { + enum, ok := mappingLaunchInstanceDetailsPreferredMaintenanceActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_platform_config.go new file mode 100644 index 0000000000..99c8111189 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_platform_config.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LaunchInstancePlatformConfig The platform configuration requested for the instance. +// If you provide the parameter, the instance is created with the platform configuration that you specify. +// For any values that you omit, the instance uses the default configuration values for the `shape` that you +// specify. If you don't provide the parameter, the default values for the `shape` are used. +// Each shape only supports certain configurable values. If the values that you provide are not valid for the +// specified `shape`, an error is returned. +// For more information about shielded instances, see +// Shielded Instances (https://docs.cloud.oracle.com/iaas/Content/Compute/References/shielded-instances.htm). +// For more information about BIOS settings for bare metal instances, see +// BIOS Settings for Bare Metal Instances (https://docs.cloud.oracle.com/iaas/Content/Compute/References/bios-settings.htm). +type LaunchInstancePlatformConfig interface { + + // Whether Secure Boot is enabled on the instance. + GetIsSecureBootEnabled() *bool + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + GetIsTrustedPlatformModuleEnabled() *bool + + // Whether the Measured Boot feature is enabled on the instance. + GetIsMeasuredBootEnabled() *bool + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + GetIsMemoryEncryptionEnabled() *bool +} + +type launchinstanceplatformconfig struct { + JsonData []byte + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *launchinstanceplatformconfig) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerlaunchinstanceplatformconfig launchinstanceplatformconfig + s := struct { + Model Unmarshalerlaunchinstanceplatformconfig + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.IsSecureBootEnabled = s.Model.IsSecureBootEnabled + m.IsTrustedPlatformModuleEnabled = s.Model.IsTrustedPlatformModuleEnabled + m.IsMeasuredBootEnabled = s.Model.IsMeasuredBootEnabled + m.IsMemoryEncryptionEnabled = s.Model.IsMemoryEncryptionEnabled + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *launchinstanceplatformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "AMD_ROME_BM_GPU": + mm := AmdRomeBmGpuLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_ROME_BM": + mm := AmdRomeBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_ICELAKE_BM": + mm := IntelIcelakeBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_VM": + mm := AmdVmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_VM": + mm := IntelVmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_SKYLAKE_BM": + mm := IntelSkylakeBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_MILAN_BM": + mm := AmdMilanBmLaunchInstancePlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for LaunchInstancePlatformConfig: %s.", m.Type) + return *m, nil + } +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m launchinstanceplatformconfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m launchinstanceplatformconfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m launchinstanceplatformconfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m launchinstanceplatformconfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m launchinstanceplatformconfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m launchinstanceplatformconfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LaunchInstancePlatformConfigTypeEnum Enum with underlying type: string +type LaunchInstancePlatformConfigTypeEnum string + +// Set of constants representing the allowable values for LaunchInstancePlatformConfigTypeEnum +const ( + LaunchInstancePlatformConfigTypeAmdMilanBm LaunchInstancePlatformConfigTypeEnum = "AMD_MILAN_BM" + LaunchInstancePlatformConfigTypeAmdRomeBm LaunchInstancePlatformConfigTypeEnum = "AMD_ROME_BM" + LaunchInstancePlatformConfigTypeAmdRomeBmGpu LaunchInstancePlatformConfigTypeEnum = "AMD_ROME_BM_GPU" + LaunchInstancePlatformConfigTypeIntelIcelakeBm LaunchInstancePlatformConfigTypeEnum = "INTEL_ICELAKE_BM" + LaunchInstancePlatformConfigTypeIntelSkylakeBm LaunchInstancePlatformConfigTypeEnum = "INTEL_SKYLAKE_BM" + LaunchInstancePlatformConfigTypeAmdVm LaunchInstancePlatformConfigTypeEnum = "AMD_VM" + LaunchInstancePlatformConfigTypeIntelVm LaunchInstancePlatformConfigTypeEnum = "INTEL_VM" +) + +var mappingLaunchInstancePlatformConfigTypeEnum = map[string]LaunchInstancePlatformConfigTypeEnum{ + "AMD_MILAN_BM": LaunchInstancePlatformConfigTypeAmdMilanBm, + "AMD_ROME_BM": LaunchInstancePlatformConfigTypeAmdRomeBm, + "AMD_ROME_BM_GPU": LaunchInstancePlatformConfigTypeAmdRomeBmGpu, + "INTEL_ICELAKE_BM": LaunchInstancePlatformConfigTypeIntelIcelakeBm, + "INTEL_SKYLAKE_BM": LaunchInstancePlatformConfigTypeIntelSkylakeBm, + "AMD_VM": LaunchInstancePlatformConfigTypeAmdVm, + "INTEL_VM": LaunchInstancePlatformConfigTypeIntelVm, +} + +var mappingLaunchInstancePlatformConfigTypeEnumLowerCase = map[string]LaunchInstancePlatformConfigTypeEnum{ + "amd_milan_bm": LaunchInstancePlatformConfigTypeAmdMilanBm, + "amd_rome_bm": LaunchInstancePlatformConfigTypeAmdRomeBm, + "amd_rome_bm_gpu": LaunchInstancePlatformConfigTypeAmdRomeBmGpu, + "intel_icelake_bm": LaunchInstancePlatformConfigTypeIntelIcelakeBm, + "intel_skylake_bm": LaunchInstancePlatformConfigTypeIntelSkylakeBm, + "amd_vm": LaunchInstancePlatformConfigTypeAmdVm, + "intel_vm": LaunchInstancePlatformConfigTypeIntelVm, +} + +// GetLaunchInstancePlatformConfigTypeEnumValues Enumerates the set of values for LaunchInstancePlatformConfigTypeEnum +func GetLaunchInstancePlatformConfigTypeEnumValues() []LaunchInstancePlatformConfigTypeEnum { + values := make([]LaunchInstancePlatformConfigTypeEnum, 0) + for _, v := range mappingLaunchInstancePlatformConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetLaunchInstancePlatformConfigTypeEnumStringValues Enumerates the set of values in String for LaunchInstancePlatformConfigTypeEnum +func GetLaunchInstancePlatformConfigTypeEnumStringValues() []string { + return []string{ + "AMD_MILAN_BM", + "AMD_ROME_BM", + "AMD_ROME_BM_GPU", + "INTEL_ICELAKE_BM", + "INTEL_SKYLAKE_BM", + "AMD_VM", + "INTEL_VM", + } +} + +// GetMappingLaunchInstancePlatformConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstancePlatformConfigTypeEnum(val string) (LaunchInstancePlatformConfigTypeEnum, bool) { + enum, ok := mappingLaunchInstancePlatformConfigTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go index acb146201a..11dd3e3d60 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/launch_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // LaunchInstanceRequest wrapper for the LaunchInstance operation @@ -25,6 +27,9 @@ type LaunchInstanceRequest struct { // Name of the pool in which to launch an instance. This feature is currently in preview and may change before public release. Do not use it for production workloads. OpcPoolName *string `mandatory:"false" contributesTo:"query" name:"opc-pool-name"` + // Boot volume type (PARAVIRTUALIZED or ISCSI) This feature is currently in preview and may change before public release. Do not use it for production workloads. + OpcBootVolumeType *string `mandatory:"false" contributesTo:"query" name:"opc-boot-volume-type"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -41,6 +46,10 @@ func (request LaunchInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request LaunchInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +65,17 @@ func (request LaunchInstanceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request LaunchInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // LaunchInstanceResponse wrapper for the LaunchInstance operation type LaunchInstanceResponse struct { @@ -72,7 +92,8 @@ type LaunchInstanceResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_shape_config_details.go new file mode 100644 index 0000000000..40be50658a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_instance_shape_config_details.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LaunchInstanceShapeConfigDetails The shape configuration requested for the instance. +// If the parameter is provided, the instance is created with the resources that you specify. If some +// properties are missing or the entire parameter is not provided, the instance is created +// with the default configuration values for the `shape` that you specify. +// Each shape only supports certain configurable values. If the values that you provide are not valid for the +// specified `shape`, an error is returned. +type LaunchInstanceShapeConfigDetails struct { + + // The total number of OCPUs available to the instance. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to the instance, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` + + // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a + // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. + // The following values are supported: + // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + // - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance. + BaselineOcpuUtilization LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` + + // The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. + Nvmes *int `mandatory:"false" json:"nvmes"` +} + +func (m LaunchInstanceShapeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LaunchInstanceShapeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(string(m.BaselineOcpuUtilization)); !ok && m.BaselineOcpuUtilization != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BaselineOcpuUtilization: %s. Supported values are: %s.", m.BaselineOcpuUtilization, strings.Join(GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string +type LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string + +// Set of constants representing the allowable values for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +const ( + LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8" + LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2" + LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1 LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1" +) + +var mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = map[string]LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ + "BASELINE_1_8": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8, + "BASELINE_1_2": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2, + "BASELINE_1_1": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1, +} + +var mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase = map[string]LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ + "baseline_1_8": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization8, + "baseline_1_2": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization2, + "baseline_1_1": LaunchInstanceShapeConfigDetailsBaselineOcpuUtilization1, +} + +// GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +func GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { + values := make([]LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, 0) + for _, v := range mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { + values = append(values, v) + } + return values +} + +// GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues Enumerates the set of values in String for LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +func GetLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues() []string { + return []string{ + "BASELINE_1_8", + "BASELINE_1_2", + "BASELINE_1_1", + } +} + +// GetMappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(val string) (LaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, bool) { + enum, ok := mappingLaunchInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_options.go new file mode 100644 index 0000000000..e40304f313 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/launch_options.go @@ -0,0 +1,290 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LaunchOptions Options for tuning the compatibility and performance of VM shapes. The values that you specify override any +// default values. +type LaunchOptions struct { + + // Emulation type for the boot volume. + // * `ISCSI` - ISCSI attached block storage device. + // * `SCSI` - Emulated SCSI disk. + // * `IDE` - Emulated IDE disk. + // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + // volumes on platform images. + // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block + // storage volumes on platform images. + BootVolumeType LaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"` + + // Firmware used to boot VM. Select the option that matches your operating system. + // * `BIOS` - Boot VM using BIOS style firmware. This is compatible with both 32 bit and 64 bit operating + // systems that boot using MBR style bootloaders. + // * `UEFI_64` - Boot VM using UEFI style firmware compatible with 64 bit operating systems. This is the + // default for platform images. + Firmware LaunchOptionsFirmwareEnum `mandatory:"false" json:"firmware,omitempty"` + + // Emulation type for the physical network interface card (NIC). + // * `E1000` - Emulated Gigabit ethernet controller. Compatible with Linux e1000 network driver. + // * `VFIO` - Direct attached Virtual Function network controller. This is the networking type + // when you launch an instance using hardware-assisted (SR-IOV) networking. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. + NetworkType LaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"` + + // Emulation type for volume. + // * `ISCSI` - ISCSI attached block storage device. + // * `SCSI` - Emulated SCSI disk. + // * `IDE` - Emulated IDE disk. + // * `VFIO` - Direct attached Virtual Function storage. This is the default option for local data + // volumes on platform images. + // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block + // storage volumes on platform images. + RemoteDataVolumeType LaunchOptionsRemoteDataVolumeTypeEnum `mandatory:"false" json:"remoteDataVolumeType,omitempty"` + + // Deprecated. Instead use `isPvEncryptionInTransitEnabled` in + // LaunchInstanceDetails. + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + + // Whether to enable consistent volume naming feature. Defaults to false. + IsConsistentVolumeNamingEnabled *bool `mandatory:"false" json:"isConsistentVolumeNamingEnabled"` +} + +func (m LaunchOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LaunchOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLaunchOptionsBootVolumeTypeEnum(string(m.BootVolumeType)); !ok && m.BootVolumeType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BootVolumeType: %s. Supported values are: %s.", m.BootVolumeType, strings.Join(GetLaunchOptionsBootVolumeTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingLaunchOptionsFirmwareEnum(string(m.Firmware)); !ok && m.Firmware != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Firmware: %s. Supported values are: %s.", m.Firmware, strings.Join(GetLaunchOptionsFirmwareEnumStringValues(), ","))) + } + if _, ok := GetMappingLaunchOptionsNetworkTypeEnum(string(m.NetworkType)); !ok && m.NetworkType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NetworkType: %s. Supported values are: %s.", m.NetworkType, strings.Join(GetLaunchOptionsNetworkTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingLaunchOptionsRemoteDataVolumeTypeEnum(string(m.RemoteDataVolumeType)); !ok && m.RemoteDataVolumeType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RemoteDataVolumeType: %s. Supported values are: %s.", m.RemoteDataVolumeType, strings.Join(GetLaunchOptionsRemoteDataVolumeTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LaunchOptionsBootVolumeTypeEnum Enum with underlying type: string +type LaunchOptionsBootVolumeTypeEnum string + +// Set of constants representing the allowable values for LaunchOptionsBootVolumeTypeEnum +const ( + LaunchOptionsBootVolumeTypeIscsi LaunchOptionsBootVolumeTypeEnum = "ISCSI" + LaunchOptionsBootVolumeTypeScsi LaunchOptionsBootVolumeTypeEnum = "SCSI" + LaunchOptionsBootVolumeTypeIde LaunchOptionsBootVolumeTypeEnum = "IDE" + LaunchOptionsBootVolumeTypeVfio LaunchOptionsBootVolumeTypeEnum = "VFIO" + LaunchOptionsBootVolumeTypeParavirtualized LaunchOptionsBootVolumeTypeEnum = "PARAVIRTUALIZED" +) + +var mappingLaunchOptionsBootVolumeTypeEnum = map[string]LaunchOptionsBootVolumeTypeEnum{ + "ISCSI": LaunchOptionsBootVolumeTypeIscsi, + "SCSI": LaunchOptionsBootVolumeTypeScsi, + "IDE": LaunchOptionsBootVolumeTypeIde, + "VFIO": LaunchOptionsBootVolumeTypeVfio, + "PARAVIRTUALIZED": LaunchOptionsBootVolumeTypeParavirtualized, +} + +var mappingLaunchOptionsBootVolumeTypeEnumLowerCase = map[string]LaunchOptionsBootVolumeTypeEnum{ + "iscsi": LaunchOptionsBootVolumeTypeIscsi, + "scsi": LaunchOptionsBootVolumeTypeScsi, + "ide": LaunchOptionsBootVolumeTypeIde, + "vfio": LaunchOptionsBootVolumeTypeVfio, + "paravirtualized": LaunchOptionsBootVolumeTypeParavirtualized, +} + +// GetLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for LaunchOptionsBootVolumeTypeEnum +func GetLaunchOptionsBootVolumeTypeEnumValues() []LaunchOptionsBootVolumeTypeEnum { + values := make([]LaunchOptionsBootVolumeTypeEnum, 0) + for _, v := range mappingLaunchOptionsBootVolumeTypeEnum { + values = append(values, v) + } + return values +} + +// GetLaunchOptionsBootVolumeTypeEnumStringValues Enumerates the set of values in String for LaunchOptionsBootVolumeTypeEnum +func GetLaunchOptionsBootVolumeTypeEnumStringValues() []string { + return []string{ + "ISCSI", + "SCSI", + "IDE", + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingLaunchOptionsBootVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchOptionsBootVolumeTypeEnum(val string) (LaunchOptionsBootVolumeTypeEnum, bool) { + enum, ok := mappingLaunchOptionsBootVolumeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LaunchOptionsFirmwareEnum Enum with underlying type: string +type LaunchOptionsFirmwareEnum string + +// Set of constants representing the allowable values for LaunchOptionsFirmwareEnum +const ( + LaunchOptionsFirmwareBios LaunchOptionsFirmwareEnum = "BIOS" + LaunchOptionsFirmwareUefi64 LaunchOptionsFirmwareEnum = "UEFI_64" +) + +var mappingLaunchOptionsFirmwareEnum = map[string]LaunchOptionsFirmwareEnum{ + "BIOS": LaunchOptionsFirmwareBios, + "UEFI_64": LaunchOptionsFirmwareUefi64, +} + +var mappingLaunchOptionsFirmwareEnumLowerCase = map[string]LaunchOptionsFirmwareEnum{ + "bios": LaunchOptionsFirmwareBios, + "uefi_64": LaunchOptionsFirmwareUefi64, +} + +// GetLaunchOptionsFirmwareEnumValues Enumerates the set of values for LaunchOptionsFirmwareEnum +func GetLaunchOptionsFirmwareEnumValues() []LaunchOptionsFirmwareEnum { + values := make([]LaunchOptionsFirmwareEnum, 0) + for _, v := range mappingLaunchOptionsFirmwareEnum { + values = append(values, v) + } + return values +} + +// GetLaunchOptionsFirmwareEnumStringValues Enumerates the set of values in String for LaunchOptionsFirmwareEnum +func GetLaunchOptionsFirmwareEnumStringValues() []string { + return []string{ + "BIOS", + "UEFI_64", + } +} + +// GetMappingLaunchOptionsFirmwareEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchOptionsFirmwareEnum(val string) (LaunchOptionsFirmwareEnum, bool) { + enum, ok := mappingLaunchOptionsFirmwareEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LaunchOptionsNetworkTypeEnum Enum with underlying type: string +type LaunchOptionsNetworkTypeEnum string + +// Set of constants representing the allowable values for LaunchOptionsNetworkTypeEnum +const ( + LaunchOptionsNetworkTypeE1000 LaunchOptionsNetworkTypeEnum = "E1000" + LaunchOptionsNetworkTypeVfio LaunchOptionsNetworkTypeEnum = "VFIO" + LaunchOptionsNetworkTypeParavirtualized LaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" +) + +var mappingLaunchOptionsNetworkTypeEnum = map[string]LaunchOptionsNetworkTypeEnum{ + "E1000": LaunchOptionsNetworkTypeE1000, + "VFIO": LaunchOptionsNetworkTypeVfio, + "PARAVIRTUALIZED": LaunchOptionsNetworkTypeParavirtualized, +} + +var mappingLaunchOptionsNetworkTypeEnumLowerCase = map[string]LaunchOptionsNetworkTypeEnum{ + "e1000": LaunchOptionsNetworkTypeE1000, + "vfio": LaunchOptionsNetworkTypeVfio, + "paravirtualized": LaunchOptionsNetworkTypeParavirtualized, +} + +// GetLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for LaunchOptionsNetworkTypeEnum +func GetLaunchOptionsNetworkTypeEnumValues() []LaunchOptionsNetworkTypeEnum { + values := make([]LaunchOptionsNetworkTypeEnum, 0) + for _, v := range mappingLaunchOptionsNetworkTypeEnum { + values = append(values, v) + } + return values +} + +// GetLaunchOptionsNetworkTypeEnumStringValues Enumerates the set of values in String for LaunchOptionsNetworkTypeEnum +func GetLaunchOptionsNetworkTypeEnumStringValues() []string { + return []string{ + "E1000", + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingLaunchOptionsNetworkTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchOptionsNetworkTypeEnum(val string) (LaunchOptionsNetworkTypeEnum, bool) { + enum, ok := mappingLaunchOptionsNetworkTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LaunchOptionsRemoteDataVolumeTypeEnum Enum with underlying type: string +type LaunchOptionsRemoteDataVolumeTypeEnum string + +// Set of constants representing the allowable values for LaunchOptionsRemoteDataVolumeTypeEnum +const ( + LaunchOptionsRemoteDataVolumeTypeIscsi LaunchOptionsRemoteDataVolumeTypeEnum = "ISCSI" + LaunchOptionsRemoteDataVolumeTypeScsi LaunchOptionsRemoteDataVolumeTypeEnum = "SCSI" + LaunchOptionsRemoteDataVolumeTypeIde LaunchOptionsRemoteDataVolumeTypeEnum = "IDE" + LaunchOptionsRemoteDataVolumeTypeVfio LaunchOptionsRemoteDataVolumeTypeEnum = "VFIO" + LaunchOptionsRemoteDataVolumeTypeParavirtualized LaunchOptionsRemoteDataVolumeTypeEnum = "PARAVIRTUALIZED" +) + +var mappingLaunchOptionsRemoteDataVolumeTypeEnum = map[string]LaunchOptionsRemoteDataVolumeTypeEnum{ + "ISCSI": LaunchOptionsRemoteDataVolumeTypeIscsi, + "SCSI": LaunchOptionsRemoteDataVolumeTypeScsi, + "IDE": LaunchOptionsRemoteDataVolumeTypeIde, + "VFIO": LaunchOptionsRemoteDataVolumeTypeVfio, + "PARAVIRTUALIZED": LaunchOptionsRemoteDataVolumeTypeParavirtualized, +} + +var mappingLaunchOptionsRemoteDataVolumeTypeEnumLowerCase = map[string]LaunchOptionsRemoteDataVolumeTypeEnum{ + "iscsi": LaunchOptionsRemoteDataVolumeTypeIscsi, + "scsi": LaunchOptionsRemoteDataVolumeTypeScsi, + "ide": LaunchOptionsRemoteDataVolumeTypeIde, + "vfio": LaunchOptionsRemoteDataVolumeTypeVfio, + "paravirtualized": LaunchOptionsRemoteDataVolumeTypeParavirtualized, +} + +// GetLaunchOptionsRemoteDataVolumeTypeEnumValues Enumerates the set of values for LaunchOptionsRemoteDataVolumeTypeEnum +func GetLaunchOptionsRemoteDataVolumeTypeEnumValues() []LaunchOptionsRemoteDataVolumeTypeEnum { + values := make([]LaunchOptionsRemoteDataVolumeTypeEnum, 0) + for _, v := range mappingLaunchOptionsRemoteDataVolumeTypeEnum { + values = append(values, v) + } + return values +} + +// GetLaunchOptionsRemoteDataVolumeTypeEnumStringValues Enumerates the set of values in String for LaunchOptionsRemoteDataVolumeTypeEnum +func GetLaunchOptionsRemoteDataVolumeTypeEnumStringValues() []string { + return []string{ + "ISCSI", + "SCSI", + "IDE", + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingLaunchOptionsRemoteDataVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLaunchOptionsRemoteDataVolumeTypeEnum(val string) (LaunchOptionsRemoteDataVolumeTypeEnum, bool) { + enum, ok := mappingLaunchOptionsRemoteDataVolumeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ldap_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ldap_config_details.go new file mode 100644 index 0000000000..58d26e9c31 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ldap_config_details.go @@ -0,0 +1,181 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LdapConfigDetails The detail of LDAP's authentication configuration. +type LdapConfigDetails struct { + + // The IP address of primary LDAP server. + PrimaryServer *string `mandatory:"false" json:"primaryServer"` + + // The IP address of secondary LDAP server. + SecondaryServer *string `mandatory:"false" json:"secondaryServer"` + + // Option for LDAP SSL once customer enables SSL for certain ClientVpn. + // Allowed values: + // * `NEVER`: Do not use SSL (the default setting). + // * `ADAPTIVE`: Try using SSL, if that fails, use plain-text to get through authentication. + // * `ALWAYS`: Always use SSL. + UseSsl LdapConfigDetailsUseSslEnum `mandatory:"false" json:"useSsl,omitempty"` + + // Choose the authentication method once useSSL enabled. + // Allowed values: + // * `NEVER`: No peer certificate is required. + // * `ALLOW`: Request a peer certificate, but session will not be aborted if certificate cannot be validated. + // * `DEMAND`: A valid peer certificate is required, then session will be aborted if one is not provided. + VerifySsl LdapConfigDetailsVerifySslEnum `mandatory:"false" json:"verifySsl,omitempty"` + + // Enable case-sensitivity or not in LDAP authentication. + IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` + + // Whether to apply Anonymous bind or not. + IsBindAnon *bool `mandatory:"false" json:"isBindAnon"` + + // The bind DN (Distinguished Name) includes the user and location of the + // user in LDAP directory tree + BindDN *string `mandatory:"false" json:"bindDN"` + + // The bind password is used to log in the LDAP server. + BindPW *string `mandatory:"false" json:"bindPW"` + + // The starting point element helps LDAP service to navigate search scope. + BaseDN *string `mandatory:"false" json:"baseDN"` + + // The username of client at attribute level. + ClientUsername *string `mandatory:"false" json:"clientUsername"` + + // This additional requirement uses LDAP query syntax. E.g., to require that the user be a member of a particular LDAP group (specified by DN) use this filter: + // memberOf=CN=VPN Users, CN=Users, DC=example, DC=net + AdditionalRequirements *string `mandatory:"false" json:"additionalRequirements"` +} + +func (m LdapConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LdapConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLdapConfigDetailsUseSslEnum(string(m.UseSsl)); !ok && m.UseSsl != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for UseSsl: %s. Supported values are: %s.", m.UseSsl, strings.Join(GetLdapConfigDetailsUseSslEnumStringValues(), ","))) + } + if _, ok := GetMappingLdapConfigDetailsVerifySslEnum(string(m.VerifySsl)); !ok && m.VerifySsl != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VerifySsl: %s. Supported values are: %s.", m.VerifySsl, strings.Join(GetLdapConfigDetailsVerifySslEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LdapConfigDetailsUseSslEnum Enum with underlying type: string +type LdapConfigDetailsUseSslEnum string + +// Set of constants representing the allowable values for LdapConfigDetailsUseSslEnum +const ( + LdapConfigDetailsUseSslNever LdapConfigDetailsUseSslEnum = "NEVER" + LdapConfigDetailsUseSslAdaptive LdapConfigDetailsUseSslEnum = "ADAPTIVE" + LdapConfigDetailsUseSslAlways LdapConfigDetailsUseSslEnum = "ALWAYS" +) + +var mappingLdapConfigDetailsUseSslEnum = map[string]LdapConfigDetailsUseSslEnum{ + "NEVER": LdapConfigDetailsUseSslNever, + "ADAPTIVE": LdapConfigDetailsUseSslAdaptive, + "ALWAYS": LdapConfigDetailsUseSslAlways, +} + +var mappingLdapConfigDetailsUseSslEnumLowerCase = map[string]LdapConfigDetailsUseSslEnum{ + "never": LdapConfigDetailsUseSslNever, + "adaptive": LdapConfigDetailsUseSslAdaptive, + "always": LdapConfigDetailsUseSslAlways, +} + +// GetLdapConfigDetailsUseSslEnumValues Enumerates the set of values for LdapConfigDetailsUseSslEnum +func GetLdapConfigDetailsUseSslEnumValues() []LdapConfigDetailsUseSslEnum { + values := make([]LdapConfigDetailsUseSslEnum, 0) + for _, v := range mappingLdapConfigDetailsUseSslEnum { + values = append(values, v) + } + return values +} + +// GetLdapConfigDetailsUseSslEnumStringValues Enumerates the set of values in String for LdapConfigDetailsUseSslEnum +func GetLdapConfigDetailsUseSslEnumStringValues() []string { + return []string{ + "NEVER", + "ADAPTIVE", + "ALWAYS", + } +} + +// GetMappingLdapConfigDetailsUseSslEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLdapConfigDetailsUseSslEnum(val string) (LdapConfigDetailsUseSslEnum, bool) { + enum, ok := mappingLdapConfigDetailsUseSslEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LdapConfigDetailsVerifySslEnum Enum with underlying type: string +type LdapConfigDetailsVerifySslEnum string + +// Set of constants representing the allowable values for LdapConfigDetailsVerifySslEnum +const ( + LdapConfigDetailsVerifySslNever LdapConfigDetailsVerifySslEnum = "NEVER" + LdapConfigDetailsVerifySslAllow LdapConfigDetailsVerifySslEnum = "ALLOW" + LdapConfigDetailsVerifySslDemand LdapConfigDetailsVerifySslEnum = "DEMAND" +) + +var mappingLdapConfigDetailsVerifySslEnum = map[string]LdapConfigDetailsVerifySslEnum{ + "NEVER": LdapConfigDetailsVerifySslNever, + "ALLOW": LdapConfigDetailsVerifySslAllow, + "DEMAND": LdapConfigDetailsVerifySslDemand, +} + +var mappingLdapConfigDetailsVerifySslEnumLowerCase = map[string]LdapConfigDetailsVerifySslEnum{ + "never": LdapConfigDetailsVerifySslNever, + "allow": LdapConfigDetailsVerifySslAllow, + "demand": LdapConfigDetailsVerifySslDemand, +} + +// GetLdapConfigDetailsVerifySslEnumValues Enumerates the set of values for LdapConfigDetailsVerifySslEnum +func GetLdapConfigDetailsVerifySslEnumValues() []LdapConfigDetailsVerifySslEnum { + values := make([]LdapConfigDetailsVerifySslEnum, 0) + for _, v := range mappingLdapConfigDetailsVerifySslEnum { + values = append(values, v) + } + return values +} + +// GetLdapConfigDetailsVerifySslEnumStringValues Enumerates the set of values in String for LdapConfigDetailsVerifySslEnum +func GetLdapConfigDetailsVerifySslEnumStringValues() []string { + return []string{ + "NEVER", + "ALLOW", + "DEMAND", + } +} + +// GetMappingLdapConfigDetailsVerifySslEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLdapConfigDetailsVerifySslEnum(val string) (LdapConfigDetailsVerifySslEnum, bool) { + enum, ok := mappingLdapConfigDetailsVerifySslEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/letter_of_authority.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/letter_of_authority.go new file mode 100644 index 0000000000..71d8748f99 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/letter_of_authority.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LetterOfAuthority The Letter of Authority for the cross-connect. You must submit this letter when +// requesting cabling for the cross-connect at the FastConnect location. +type LetterOfAuthority struct { + + // The name of the entity authorized by this Letter of Authority. + AuthorizedEntityName *string `mandatory:"false" json:"authorizedEntityName"` + + // The type of cross-connect fiber, termination, and optical specification. + CircuitType LetterOfAuthorityCircuitTypeEnum `mandatory:"false" json:"circuitType,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. + CrossConnectId *string `mandatory:"false" json:"crossConnectId"` + + // The address of the FastConnect location. + FacilityLocation *string `mandatory:"false" json:"facilityLocation"` + + // The meet-me room port for this cross-connect. + PortName *string `mandatory:"false" json:"portName"` + + // The date and time when the Letter of Authority expires, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The date and time the Letter of Authority was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeIssued *common.SDKTime `mandatory:"false" json:"timeIssued"` +} + +func (m LetterOfAuthority) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LetterOfAuthority) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLetterOfAuthorityCircuitTypeEnum(string(m.CircuitType)); !ok && m.CircuitType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CircuitType: %s. Supported values are: %s.", m.CircuitType, strings.Join(GetLetterOfAuthorityCircuitTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LetterOfAuthorityCircuitTypeEnum Enum with underlying type: string +type LetterOfAuthorityCircuitTypeEnum string + +// Set of constants representing the allowable values for LetterOfAuthorityCircuitTypeEnum +const ( + LetterOfAuthorityCircuitTypeLc LetterOfAuthorityCircuitTypeEnum = "Single_mode_LC" + LetterOfAuthorityCircuitTypeSc LetterOfAuthorityCircuitTypeEnum = "Single_mode_SC" +) + +var mappingLetterOfAuthorityCircuitTypeEnum = map[string]LetterOfAuthorityCircuitTypeEnum{ + "Single_mode_LC": LetterOfAuthorityCircuitTypeLc, + "Single_mode_SC": LetterOfAuthorityCircuitTypeSc, +} + +var mappingLetterOfAuthorityCircuitTypeEnumLowerCase = map[string]LetterOfAuthorityCircuitTypeEnum{ + "single_mode_lc": LetterOfAuthorityCircuitTypeLc, + "single_mode_sc": LetterOfAuthorityCircuitTypeSc, +} + +// GetLetterOfAuthorityCircuitTypeEnumValues Enumerates the set of values for LetterOfAuthorityCircuitTypeEnum +func GetLetterOfAuthorityCircuitTypeEnumValues() []LetterOfAuthorityCircuitTypeEnum { + values := make([]LetterOfAuthorityCircuitTypeEnum, 0) + for _, v := range mappingLetterOfAuthorityCircuitTypeEnum { + values = append(values, v) + } + return values +} + +// GetLetterOfAuthorityCircuitTypeEnumStringValues Enumerates the set of values in String for LetterOfAuthorityCircuitTypeEnum +func GetLetterOfAuthorityCircuitTypeEnumStringValues() []string { + return []string{ + "Single_mode_LC", + "Single_mode_SC", + } +} + +// GetMappingLetterOfAuthorityCircuitTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLetterOfAuthorityCircuitTypeEnum(val string) (LetterOfAuthorityCircuitTypeEnum, bool) { + enum, ok := mappingLetterOfAuthorityCircuitTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_additional_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_additional_route_rules_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_additional_route_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_additional_route_rules_request_response.go index 3be081feca..687e3861ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_additional_route_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_additional_route_rules_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListAdditionalRouteRulesRequest wrapper for the ListAdditionalRouteRules operation type ListAdditionalRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // For list pagination. The maximum number of results per page, or items to return in a paginated @@ -42,6 +44,10 @@ func (request ListAdditionalRouteRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListAdditionalRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListAdditionalRouteRulesRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAdditionalRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListAdditionalRouteRulesResponse wrapper for the ListAdditionalRouteRules operation type ListAdditionalRouteRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_allowed_peer_regions_for_remote_peering_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_allowed_peer_regions_for_remote_peering_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_allowed_peer_regions_for_remote_peering_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_allowed_peer_regions_for_remote_peering_request_response.go index 9f5df1ccb9..7748a28d82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_allowed_peer_regions_for_remote_peering_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_allowed_peer_regions_for_remote_peering_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListAllowedPeerRegionsForRemotePeeringRequest wrapper for the ListAllowedPeerRegionsForRemotePeering operation @@ -28,6 +30,10 @@ func (request ListAllowedPeerRegionsForRemotePeeringRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListAllowedPeerRegionsForRemotePeeringRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -43,6 +49,17 @@ func (request ListAllowedPeerRegionsForRemotePeeringRequest) RetryPolicy() *comm return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAllowedPeerRegionsForRemotePeeringRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListAllowedPeerRegionsForRemotePeeringResponse wrapper for the ListAllowedPeerRegionsForRemotePeering operation type ListAllowedPeerRegionsForRemotePeeringResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listing_resource_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listing_resource_versions_request_response.go new file mode 100644 index 0000000000..c0ab3d51e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listing_resource_versions_request_response.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAppCatalogListingResourceVersionsRequest wrapper for the ListAppCatalogListingResourceVersions operation +type ListAppCatalogListingResourceVersionsRequest struct { + + // The OCID of the listing. + ListingId *string `mandatory:"true" contributesTo:"path" name:"listingId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListAppCatalogListingResourceVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAppCatalogListingResourceVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAppCatalogListingResourceVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListAppCatalogListingResourceVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAppCatalogListingResourceVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAppCatalogListingResourceVersionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListAppCatalogListingResourceVersionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListAppCatalogListingResourceVersionsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAppCatalogListingResourceVersionsResponse wrapper for the ListAppCatalogListingResourceVersions operation +type ListAppCatalogListingResourceVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AppCatalogListingResourceVersionSummary instances + Items []AppCatalogListingResourceVersionSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAppCatalogListingResourceVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAppCatalogListingResourceVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAppCatalogListingResourceVersionsSortOrderEnum Enum with underlying type: string +type ListAppCatalogListingResourceVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListAppCatalogListingResourceVersionsSortOrderEnum +const ( + ListAppCatalogListingResourceVersionsSortOrderAsc ListAppCatalogListingResourceVersionsSortOrderEnum = "ASC" + ListAppCatalogListingResourceVersionsSortOrderDesc ListAppCatalogListingResourceVersionsSortOrderEnum = "DESC" +) + +var mappingListAppCatalogListingResourceVersionsSortOrderEnum = map[string]ListAppCatalogListingResourceVersionsSortOrderEnum{ + "ASC": ListAppCatalogListingResourceVersionsSortOrderAsc, + "DESC": ListAppCatalogListingResourceVersionsSortOrderDesc, +} + +var mappingListAppCatalogListingResourceVersionsSortOrderEnumLowerCase = map[string]ListAppCatalogListingResourceVersionsSortOrderEnum{ + "asc": ListAppCatalogListingResourceVersionsSortOrderAsc, + "desc": ListAppCatalogListingResourceVersionsSortOrderDesc, +} + +// GetListAppCatalogListingResourceVersionsSortOrderEnumValues Enumerates the set of values for ListAppCatalogListingResourceVersionsSortOrderEnum +func GetListAppCatalogListingResourceVersionsSortOrderEnumValues() []ListAppCatalogListingResourceVersionsSortOrderEnum { + values := make([]ListAppCatalogListingResourceVersionsSortOrderEnum, 0) + for _, v := range mappingListAppCatalogListingResourceVersionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAppCatalogListingResourceVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListAppCatalogListingResourceVersionsSortOrderEnum +func GetListAppCatalogListingResourceVersionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAppCatalogListingResourceVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAppCatalogListingResourceVersionsSortOrderEnum(val string) (ListAppCatalogListingResourceVersionsSortOrderEnum, bool) { + enum, ok := mappingListAppCatalogListingResourceVersionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listings_request_response.go new file mode 100644 index 0000000000..80ee24f18b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_listings_request_response.go @@ -0,0 +1,158 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAppCatalogListingsRequest wrapper for the ListAppCatalogListings operation +type ListAppCatalogListingsRequest struct { + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListAppCatalogListingsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only the publisher that matches the given publisher name exactly. + PublisherName *string `mandatory:"false" contributesTo:"query" name:"publisherName"` + + // A filter to return only publishers that match the given publisher type exactly. Valid types are OCI, ORACLE, TRUSTED, STANDARD. + PublisherType *string `mandatory:"false" contributesTo:"query" name:"publisherType"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAppCatalogListingsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAppCatalogListingsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListAppCatalogListingsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAppCatalogListingsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAppCatalogListingsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListAppCatalogListingsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListAppCatalogListingsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAppCatalogListingsResponse wrapper for the ListAppCatalogListings operation +type ListAppCatalogListingsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AppCatalogListingSummary instances + Items []AppCatalogListingSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAppCatalogListingsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAppCatalogListingsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAppCatalogListingsSortOrderEnum Enum with underlying type: string +type ListAppCatalogListingsSortOrderEnum string + +// Set of constants representing the allowable values for ListAppCatalogListingsSortOrderEnum +const ( + ListAppCatalogListingsSortOrderAsc ListAppCatalogListingsSortOrderEnum = "ASC" + ListAppCatalogListingsSortOrderDesc ListAppCatalogListingsSortOrderEnum = "DESC" +) + +var mappingListAppCatalogListingsSortOrderEnum = map[string]ListAppCatalogListingsSortOrderEnum{ + "ASC": ListAppCatalogListingsSortOrderAsc, + "DESC": ListAppCatalogListingsSortOrderDesc, +} + +var mappingListAppCatalogListingsSortOrderEnumLowerCase = map[string]ListAppCatalogListingsSortOrderEnum{ + "asc": ListAppCatalogListingsSortOrderAsc, + "desc": ListAppCatalogListingsSortOrderDesc, +} + +// GetListAppCatalogListingsSortOrderEnumValues Enumerates the set of values for ListAppCatalogListingsSortOrderEnum +func GetListAppCatalogListingsSortOrderEnumValues() []ListAppCatalogListingsSortOrderEnum { + values := make([]ListAppCatalogListingsSortOrderEnum, 0) + for _, v := range mappingListAppCatalogListingsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAppCatalogListingsSortOrderEnumStringValues Enumerates the set of values in String for ListAppCatalogListingsSortOrderEnum +func GetListAppCatalogListingsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAppCatalogListingsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAppCatalogListingsSortOrderEnum(val string) (ListAppCatalogListingsSortOrderEnum, bool) { + enum, ok := mappingListAppCatalogListingsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_subscriptions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_subscriptions_request_response.go new file mode 100644 index 0000000000..3204f4c9fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_app_catalog_subscriptions_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAppCatalogSubscriptionsRequest wrapper for the ListAppCatalogSubscriptions operation +type ListAppCatalogSubscriptionsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListAppCatalogSubscriptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListAppCatalogSubscriptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only the listings that matches the given listing id. + ListingId *string `mandatory:"false" contributesTo:"query" name:"listingId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAppCatalogSubscriptionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAppCatalogSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListAppCatalogSubscriptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAppCatalogSubscriptionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAppCatalogSubscriptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListAppCatalogSubscriptionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListAppCatalogSubscriptionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListAppCatalogSubscriptionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListAppCatalogSubscriptionsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAppCatalogSubscriptionsResponse wrapper for the ListAppCatalogSubscriptions operation +type ListAppCatalogSubscriptionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AppCatalogSubscriptionSummary instances + Items []AppCatalogSubscriptionSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAppCatalogSubscriptionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAppCatalogSubscriptionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAppCatalogSubscriptionsSortByEnum Enum with underlying type: string +type ListAppCatalogSubscriptionsSortByEnum string + +// Set of constants representing the allowable values for ListAppCatalogSubscriptionsSortByEnum +const ( + ListAppCatalogSubscriptionsSortByTimecreated ListAppCatalogSubscriptionsSortByEnum = "TIMECREATED" + ListAppCatalogSubscriptionsSortByDisplayname ListAppCatalogSubscriptionsSortByEnum = "DISPLAYNAME" +) + +var mappingListAppCatalogSubscriptionsSortByEnum = map[string]ListAppCatalogSubscriptionsSortByEnum{ + "TIMECREATED": ListAppCatalogSubscriptionsSortByTimecreated, + "DISPLAYNAME": ListAppCatalogSubscriptionsSortByDisplayname, +} + +var mappingListAppCatalogSubscriptionsSortByEnumLowerCase = map[string]ListAppCatalogSubscriptionsSortByEnum{ + "timecreated": ListAppCatalogSubscriptionsSortByTimecreated, + "displayname": ListAppCatalogSubscriptionsSortByDisplayname, +} + +// GetListAppCatalogSubscriptionsSortByEnumValues Enumerates the set of values for ListAppCatalogSubscriptionsSortByEnum +func GetListAppCatalogSubscriptionsSortByEnumValues() []ListAppCatalogSubscriptionsSortByEnum { + values := make([]ListAppCatalogSubscriptionsSortByEnum, 0) + for _, v := range mappingListAppCatalogSubscriptionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListAppCatalogSubscriptionsSortByEnumStringValues Enumerates the set of values in String for ListAppCatalogSubscriptionsSortByEnum +func GetListAppCatalogSubscriptionsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListAppCatalogSubscriptionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAppCatalogSubscriptionsSortByEnum(val string) (ListAppCatalogSubscriptionsSortByEnum, bool) { + enum, ok := mappingListAppCatalogSubscriptionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAppCatalogSubscriptionsSortOrderEnum Enum with underlying type: string +type ListAppCatalogSubscriptionsSortOrderEnum string + +// Set of constants representing the allowable values for ListAppCatalogSubscriptionsSortOrderEnum +const ( + ListAppCatalogSubscriptionsSortOrderAsc ListAppCatalogSubscriptionsSortOrderEnum = "ASC" + ListAppCatalogSubscriptionsSortOrderDesc ListAppCatalogSubscriptionsSortOrderEnum = "DESC" +) + +var mappingListAppCatalogSubscriptionsSortOrderEnum = map[string]ListAppCatalogSubscriptionsSortOrderEnum{ + "ASC": ListAppCatalogSubscriptionsSortOrderAsc, + "DESC": ListAppCatalogSubscriptionsSortOrderDesc, +} + +var mappingListAppCatalogSubscriptionsSortOrderEnumLowerCase = map[string]ListAppCatalogSubscriptionsSortOrderEnum{ + "asc": ListAppCatalogSubscriptionsSortOrderAsc, + "desc": ListAppCatalogSubscriptionsSortOrderDesc, +} + +// GetListAppCatalogSubscriptionsSortOrderEnumValues Enumerates the set of values for ListAppCatalogSubscriptionsSortOrderEnum +func GetListAppCatalogSubscriptionsSortOrderEnumValues() []ListAppCatalogSubscriptionsSortOrderEnum { + values := make([]ListAppCatalogSubscriptionsSortOrderEnum, 0) + for _, v := range mappingListAppCatalogSubscriptionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAppCatalogSubscriptionsSortOrderEnumStringValues Enumerates the set of values in String for ListAppCatalogSubscriptionsSortOrderEnum +func GetListAppCatalogSubscriptionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAppCatalogSubscriptionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAppCatalogSubscriptionsSortOrderEnum(val string) (ListAppCatalogSubscriptionsSortOrderEnum, bool) { + enum, ok := mappingListAppCatalogSubscriptionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_block_volume_replicas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_block_volume_replicas_request_response.go new file mode 100644 index 0000000000..56f60d8e79 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_block_volume_replicas_request_response.go @@ -0,0 +1,222 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBlockVolumeReplicasRequest wrapper for the ListBlockVolumeReplicas operation +type ListBlockVolumeReplicasRequest struct { + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The OCID of the volume group replica. + VolumeGroupReplicaId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupReplicaId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListBlockVolumeReplicasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListBlockVolumeReplicasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState BlockVolumeReplicaLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBlockVolumeReplicasRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBlockVolumeReplicasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBlockVolumeReplicasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBlockVolumeReplicasRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBlockVolumeReplicasRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListBlockVolumeReplicasSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListBlockVolumeReplicasSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListBlockVolumeReplicasSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListBlockVolumeReplicasSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingBlockVolumeReplicaLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetBlockVolumeReplicaLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBlockVolumeReplicasResponse wrapper for the ListBlockVolumeReplicas operation +type ListBlockVolumeReplicasResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []BlockVolumeReplica instances + Items []BlockVolumeReplica `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListBlockVolumeReplicasResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBlockVolumeReplicasResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListBlockVolumeReplicasSortByEnum Enum with underlying type: string +type ListBlockVolumeReplicasSortByEnum string + +// Set of constants representing the allowable values for ListBlockVolumeReplicasSortByEnum +const ( + ListBlockVolumeReplicasSortByTimecreated ListBlockVolumeReplicasSortByEnum = "TIMECREATED" + ListBlockVolumeReplicasSortByDisplayname ListBlockVolumeReplicasSortByEnum = "DISPLAYNAME" +) + +var mappingListBlockVolumeReplicasSortByEnum = map[string]ListBlockVolumeReplicasSortByEnum{ + "TIMECREATED": ListBlockVolumeReplicasSortByTimecreated, + "DISPLAYNAME": ListBlockVolumeReplicasSortByDisplayname, +} + +var mappingListBlockVolumeReplicasSortByEnumLowerCase = map[string]ListBlockVolumeReplicasSortByEnum{ + "timecreated": ListBlockVolumeReplicasSortByTimecreated, + "displayname": ListBlockVolumeReplicasSortByDisplayname, +} + +// GetListBlockVolumeReplicasSortByEnumValues Enumerates the set of values for ListBlockVolumeReplicasSortByEnum +func GetListBlockVolumeReplicasSortByEnumValues() []ListBlockVolumeReplicasSortByEnum { + values := make([]ListBlockVolumeReplicasSortByEnum, 0) + for _, v := range mappingListBlockVolumeReplicasSortByEnum { + values = append(values, v) + } + return values +} + +// GetListBlockVolumeReplicasSortByEnumStringValues Enumerates the set of values in String for ListBlockVolumeReplicasSortByEnum +func GetListBlockVolumeReplicasSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListBlockVolumeReplicasSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBlockVolumeReplicasSortByEnum(val string) (ListBlockVolumeReplicasSortByEnum, bool) { + enum, ok := mappingListBlockVolumeReplicasSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListBlockVolumeReplicasSortOrderEnum Enum with underlying type: string +type ListBlockVolumeReplicasSortOrderEnum string + +// Set of constants representing the allowable values for ListBlockVolumeReplicasSortOrderEnum +const ( + ListBlockVolumeReplicasSortOrderAsc ListBlockVolumeReplicasSortOrderEnum = "ASC" + ListBlockVolumeReplicasSortOrderDesc ListBlockVolumeReplicasSortOrderEnum = "DESC" +) + +var mappingListBlockVolumeReplicasSortOrderEnum = map[string]ListBlockVolumeReplicasSortOrderEnum{ + "ASC": ListBlockVolumeReplicasSortOrderAsc, + "DESC": ListBlockVolumeReplicasSortOrderDesc, +} + +var mappingListBlockVolumeReplicasSortOrderEnumLowerCase = map[string]ListBlockVolumeReplicasSortOrderEnum{ + "asc": ListBlockVolumeReplicasSortOrderAsc, + "desc": ListBlockVolumeReplicasSortOrderDesc, +} + +// GetListBlockVolumeReplicasSortOrderEnumValues Enumerates the set of values for ListBlockVolumeReplicasSortOrderEnum +func GetListBlockVolumeReplicasSortOrderEnumValues() []ListBlockVolumeReplicasSortOrderEnum { + values := make([]ListBlockVolumeReplicasSortOrderEnum, 0) + for _, v := range mappingListBlockVolumeReplicasSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListBlockVolumeReplicasSortOrderEnumStringValues Enumerates the set of values in String for ListBlockVolumeReplicasSortOrderEnum +func GetListBlockVolumeReplicasSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListBlockVolumeReplicasSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBlockVolumeReplicasSortOrderEnum(val string) (ListBlockVolumeReplicasSortOrderEnum, bool) { + enum, ok := mappingListBlockVolumeReplicasSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_attachments_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_attachments_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_attachments_request_response.go index c6b1179e2c..4fc9c66142 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_attachments_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListBootVolumeAttachmentsRequest wrapper for the ListBootVolumeAttachments operation @@ -52,6 +54,10 @@ func (request ListBootVolumeAttachmentsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListBootVolumeAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -67,6 +73,17 @@ func (request ListBootVolumeAttachmentsRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBootVolumeAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListBootVolumeAttachmentsResponse wrapper for the ListBootVolumeAttachments operation type ListBootVolumeAttachmentsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_backups_request_response.go new file mode 100644 index 0000000000..27f7121210 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_backups_request_response.go @@ -0,0 +1,222 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBootVolumeBackupsRequest wrapper for the ListBootVolumeBackups operation +type ListBootVolumeBackupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the boot volume. + BootVolumeId *string `mandatory:"false" contributesTo:"query" name:"bootVolumeId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that originated from the given source boot volume backup. + SourceBootVolumeBackupId *string `mandatory:"false" contributesTo:"query" name:"sourceBootVolumeBackupId"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListBootVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListBootVolumeBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is + // case-insensitive. + LifecycleState BootVolumeBackupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBootVolumeBackupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBootVolumeBackupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBootVolumeBackupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBootVolumeBackupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBootVolumeBackupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListBootVolumeBackupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListBootVolumeBackupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListBootVolumeBackupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListBootVolumeBackupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingBootVolumeBackupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetBootVolumeBackupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBootVolumeBackupsResponse wrapper for the ListBootVolumeBackups operation +type ListBootVolumeBackupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []BootVolumeBackup instances + Items []BootVolumeBackup `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListBootVolumeBackupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBootVolumeBackupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListBootVolumeBackupsSortByEnum Enum with underlying type: string +type ListBootVolumeBackupsSortByEnum string + +// Set of constants representing the allowable values for ListBootVolumeBackupsSortByEnum +const ( + ListBootVolumeBackupsSortByTimecreated ListBootVolumeBackupsSortByEnum = "TIMECREATED" + ListBootVolumeBackupsSortByDisplayname ListBootVolumeBackupsSortByEnum = "DISPLAYNAME" +) + +var mappingListBootVolumeBackupsSortByEnum = map[string]ListBootVolumeBackupsSortByEnum{ + "TIMECREATED": ListBootVolumeBackupsSortByTimecreated, + "DISPLAYNAME": ListBootVolumeBackupsSortByDisplayname, +} + +var mappingListBootVolumeBackupsSortByEnumLowerCase = map[string]ListBootVolumeBackupsSortByEnum{ + "timecreated": ListBootVolumeBackupsSortByTimecreated, + "displayname": ListBootVolumeBackupsSortByDisplayname, +} + +// GetListBootVolumeBackupsSortByEnumValues Enumerates the set of values for ListBootVolumeBackupsSortByEnum +func GetListBootVolumeBackupsSortByEnumValues() []ListBootVolumeBackupsSortByEnum { + values := make([]ListBootVolumeBackupsSortByEnum, 0) + for _, v := range mappingListBootVolumeBackupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListBootVolumeBackupsSortByEnumStringValues Enumerates the set of values in String for ListBootVolumeBackupsSortByEnum +func GetListBootVolumeBackupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListBootVolumeBackupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBootVolumeBackupsSortByEnum(val string) (ListBootVolumeBackupsSortByEnum, bool) { + enum, ok := mappingListBootVolumeBackupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListBootVolumeBackupsSortOrderEnum Enum with underlying type: string +type ListBootVolumeBackupsSortOrderEnum string + +// Set of constants representing the allowable values for ListBootVolumeBackupsSortOrderEnum +const ( + ListBootVolumeBackupsSortOrderAsc ListBootVolumeBackupsSortOrderEnum = "ASC" + ListBootVolumeBackupsSortOrderDesc ListBootVolumeBackupsSortOrderEnum = "DESC" +) + +var mappingListBootVolumeBackupsSortOrderEnum = map[string]ListBootVolumeBackupsSortOrderEnum{ + "ASC": ListBootVolumeBackupsSortOrderAsc, + "DESC": ListBootVolumeBackupsSortOrderDesc, +} + +var mappingListBootVolumeBackupsSortOrderEnumLowerCase = map[string]ListBootVolumeBackupsSortOrderEnum{ + "asc": ListBootVolumeBackupsSortOrderAsc, + "desc": ListBootVolumeBackupsSortOrderDesc, +} + +// GetListBootVolumeBackupsSortOrderEnumValues Enumerates the set of values for ListBootVolumeBackupsSortOrderEnum +func GetListBootVolumeBackupsSortOrderEnumValues() []ListBootVolumeBackupsSortOrderEnum { + values := make([]ListBootVolumeBackupsSortOrderEnum, 0) + for _, v := range mappingListBootVolumeBackupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListBootVolumeBackupsSortOrderEnumStringValues Enumerates the set of values in String for ListBootVolumeBackupsSortOrderEnum +func GetListBootVolumeBackupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListBootVolumeBackupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBootVolumeBackupsSortOrderEnum(val string) (ListBootVolumeBackupsSortOrderEnum, bool) { + enum, ok := mappingListBootVolumeBackupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_replicas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_replicas_request_response.go new file mode 100644 index 0000000000..5245de5443 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volume_replicas_request_response.go @@ -0,0 +1,222 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBootVolumeReplicasRequest wrapper for the ListBootVolumeReplicas operation +type ListBootVolumeReplicasRequest struct { + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The OCID of the volume group replica. + VolumeGroupReplicaId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupReplicaId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListBootVolumeReplicasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListBootVolumeReplicasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState BootVolumeReplicaLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBootVolumeReplicasRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBootVolumeReplicasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBootVolumeReplicasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBootVolumeReplicasRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBootVolumeReplicasRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListBootVolumeReplicasSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListBootVolumeReplicasSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListBootVolumeReplicasSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListBootVolumeReplicasSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingBootVolumeReplicaLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetBootVolumeReplicaLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBootVolumeReplicasResponse wrapper for the ListBootVolumeReplicas operation +type ListBootVolumeReplicasResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []BootVolumeReplica instances + Items []BootVolumeReplica `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListBootVolumeReplicasResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBootVolumeReplicasResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListBootVolumeReplicasSortByEnum Enum with underlying type: string +type ListBootVolumeReplicasSortByEnum string + +// Set of constants representing the allowable values for ListBootVolumeReplicasSortByEnum +const ( + ListBootVolumeReplicasSortByTimecreated ListBootVolumeReplicasSortByEnum = "TIMECREATED" + ListBootVolumeReplicasSortByDisplayname ListBootVolumeReplicasSortByEnum = "DISPLAYNAME" +) + +var mappingListBootVolumeReplicasSortByEnum = map[string]ListBootVolumeReplicasSortByEnum{ + "TIMECREATED": ListBootVolumeReplicasSortByTimecreated, + "DISPLAYNAME": ListBootVolumeReplicasSortByDisplayname, +} + +var mappingListBootVolumeReplicasSortByEnumLowerCase = map[string]ListBootVolumeReplicasSortByEnum{ + "timecreated": ListBootVolumeReplicasSortByTimecreated, + "displayname": ListBootVolumeReplicasSortByDisplayname, +} + +// GetListBootVolumeReplicasSortByEnumValues Enumerates the set of values for ListBootVolumeReplicasSortByEnum +func GetListBootVolumeReplicasSortByEnumValues() []ListBootVolumeReplicasSortByEnum { + values := make([]ListBootVolumeReplicasSortByEnum, 0) + for _, v := range mappingListBootVolumeReplicasSortByEnum { + values = append(values, v) + } + return values +} + +// GetListBootVolumeReplicasSortByEnumStringValues Enumerates the set of values in String for ListBootVolumeReplicasSortByEnum +func GetListBootVolumeReplicasSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListBootVolumeReplicasSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBootVolumeReplicasSortByEnum(val string) (ListBootVolumeReplicasSortByEnum, bool) { + enum, ok := mappingListBootVolumeReplicasSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListBootVolumeReplicasSortOrderEnum Enum with underlying type: string +type ListBootVolumeReplicasSortOrderEnum string + +// Set of constants representing the allowable values for ListBootVolumeReplicasSortOrderEnum +const ( + ListBootVolumeReplicasSortOrderAsc ListBootVolumeReplicasSortOrderEnum = "ASC" + ListBootVolumeReplicasSortOrderDesc ListBootVolumeReplicasSortOrderEnum = "DESC" +) + +var mappingListBootVolumeReplicasSortOrderEnum = map[string]ListBootVolumeReplicasSortOrderEnum{ + "ASC": ListBootVolumeReplicasSortOrderAsc, + "DESC": ListBootVolumeReplicasSortOrderDesc, +} + +var mappingListBootVolumeReplicasSortOrderEnumLowerCase = map[string]ListBootVolumeReplicasSortOrderEnum{ + "asc": ListBootVolumeReplicasSortOrderAsc, + "desc": ListBootVolumeReplicasSortOrderDesc, +} + +// GetListBootVolumeReplicasSortOrderEnumValues Enumerates the set of values for ListBootVolumeReplicasSortOrderEnum +func GetListBootVolumeReplicasSortOrderEnumValues() []ListBootVolumeReplicasSortOrderEnum { + values := make([]ListBootVolumeReplicasSortOrderEnum, 0) + for _, v := range mappingListBootVolumeReplicasSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListBootVolumeReplicasSortOrderEnumStringValues Enumerates the set of values in String for ListBootVolumeReplicasSortOrderEnum +func GetListBootVolumeReplicasSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListBootVolumeReplicasSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBootVolumeReplicasSortOrderEnum(val string) (ListBootVolumeReplicasSortOrderEnum, bool) { + enum, ok := mappingListBootVolumeReplicasSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volumes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go index 906d4b20cc..ecddb5130e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_boot_volumes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_boot_volumes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListBootVolumesRequest wrapper for the ListBootVolumes operation @@ -14,10 +16,10 @@ type ListBootVolumesRequest struct { // The name of the availability domain. // Example: `Uocm:PHX-AD-1` - AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` // For list pagination. The maximum number of results per page, or items to return in a paginated // "List" call. For important details about how pagination works, see @@ -49,6 +51,10 @@ func (request ListBootVolumesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListBootVolumesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request ListBootVolumesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBootVolumesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListBootVolumesResponse wrapper for the ListBootVolumes operation type ListBootVolumesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_allocated_ranges_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_allocated_ranges_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_allocated_ranges_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_allocated_ranges_request_response.go index 414fba80e2..f98d7d2b51 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_byoip_allocated_ranges_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_allocated_ranges_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListByoipAllocatedRangesRequest wrapper for the ListByoipAllocatedRanges operation @@ -42,6 +44,10 @@ func (request ListByoipAllocatedRangesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListByoipAllocatedRangesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListByoipAllocatedRangesRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListByoipAllocatedRangesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListByoipAllocatedRangesResponse wrapper for the ListByoipAllocatedRanges operation type ListByoipAllocatedRangesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_ranges_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_ranges_request_response.go new file mode 100644 index 0000000000..806a4380e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_byoip_ranges_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListByoipRangesRequest wrapper for the ListByoipRanges operation +type ListByoipRangesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that match the given lifecycle state name exactly. + LifecycleState *string `mandatory:"false" contributesTo:"query" name:"lifecycleState"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListByoipRangesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListByoipRangesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListByoipRangesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListByoipRangesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListByoipRangesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListByoipRangesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListByoipRangesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListByoipRangesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListByoipRangesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListByoipRangesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListByoipRangesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListByoipRangesResponse wrapper for the ListByoipRanges operation +type ListByoipRangesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ByoipRangeCollection instances + ByoipRangeCollection `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListByoipRangesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListByoipRangesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListByoipRangesSortByEnum Enum with underlying type: string +type ListByoipRangesSortByEnum string + +// Set of constants representing the allowable values for ListByoipRangesSortByEnum +const ( + ListByoipRangesSortByTimecreated ListByoipRangesSortByEnum = "TIMECREATED" + ListByoipRangesSortByDisplayname ListByoipRangesSortByEnum = "DISPLAYNAME" +) + +var mappingListByoipRangesSortByEnum = map[string]ListByoipRangesSortByEnum{ + "TIMECREATED": ListByoipRangesSortByTimecreated, + "DISPLAYNAME": ListByoipRangesSortByDisplayname, +} + +var mappingListByoipRangesSortByEnumLowerCase = map[string]ListByoipRangesSortByEnum{ + "timecreated": ListByoipRangesSortByTimecreated, + "displayname": ListByoipRangesSortByDisplayname, +} + +// GetListByoipRangesSortByEnumValues Enumerates the set of values for ListByoipRangesSortByEnum +func GetListByoipRangesSortByEnumValues() []ListByoipRangesSortByEnum { + values := make([]ListByoipRangesSortByEnum, 0) + for _, v := range mappingListByoipRangesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListByoipRangesSortByEnumStringValues Enumerates the set of values in String for ListByoipRangesSortByEnum +func GetListByoipRangesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListByoipRangesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListByoipRangesSortByEnum(val string) (ListByoipRangesSortByEnum, bool) { + enum, ok := mappingListByoipRangesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListByoipRangesSortOrderEnum Enum with underlying type: string +type ListByoipRangesSortOrderEnum string + +// Set of constants representing the allowable values for ListByoipRangesSortOrderEnum +const ( + ListByoipRangesSortOrderAsc ListByoipRangesSortOrderEnum = "ASC" + ListByoipRangesSortOrderDesc ListByoipRangesSortOrderEnum = "DESC" +) + +var mappingListByoipRangesSortOrderEnum = map[string]ListByoipRangesSortOrderEnum{ + "ASC": ListByoipRangesSortOrderAsc, + "DESC": ListByoipRangesSortOrderDesc, +} + +var mappingListByoipRangesSortOrderEnumLowerCase = map[string]ListByoipRangesSortOrderEnum{ + "asc": ListByoipRangesSortOrderAsc, + "desc": ListByoipRangesSortOrderDesc, +} + +// GetListByoipRangesSortOrderEnumValues Enumerates the set of values for ListByoipRangesSortOrderEnum +func GetListByoipRangesSortOrderEnumValues() []ListByoipRangesSortOrderEnum { + values := make([]ListByoipRangesSortOrderEnum, 0) + for _, v := range mappingListByoipRangesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListByoipRangesSortOrderEnumStringValues Enumerates the set of values in String for ListByoipRangesSortOrderEnum +func GetListByoipRangesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListByoipRangesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListByoipRangesSortOrderEnum(val string) (ListByoipRangesSortOrderEnum, bool) { + enum, ok := mappingListByoipRangesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drg_attachments_request_response.go new file mode 100644 index 0000000000..1da996048d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drg_attachments_request_response.go @@ -0,0 +1,288 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListC3DrgAttachmentsRequest wrapper for the ListC3DrgAttachments operation +type ListC3DrgAttachmentsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG. + NetworkId *string `mandatory:"false" contributesTo:"query" name:"networkId"` + + // The type for the network resource attached to the DRG. + AttachmentType ListC3DrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to the DRG attachment. + DrgRouteTableId *string `mandatory:"false" contributesTo:"query" name:"drgRouteTableId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListC3DrgAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListC3DrgAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListC3DrgAttachmentsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListC3DrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListC3DrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListC3DrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListC3DrgAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListC3DrgAttachmentsAttachmentTypeEnum(string(request.AttachmentType)); !ok && request.AttachmentType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttachmentType: %s. Supported values are: %s.", request.AttachmentType, strings.Join(GetListC3DrgAttachmentsAttachmentTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingListC3DrgAttachmentsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListC3DrgAttachmentsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListC3DrgAttachmentsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListC3DrgAttachmentsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgAttachmentLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDrgAttachmentLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListC3DrgAttachmentsResponse wrapper for the ListC3DrgAttachments operation +type ListC3DrgAttachmentsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgAttachment instances + Items []DrgAttachment `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListC3DrgAttachmentsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListC3DrgAttachmentsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListC3DrgAttachmentsAttachmentTypeEnum Enum with underlying type: string +type ListC3DrgAttachmentsAttachmentTypeEnum string + +// Set of constants representing the allowable values for ListC3DrgAttachmentsAttachmentTypeEnum +const ( + ListC3DrgAttachmentsAttachmentTypeVcn ListC3DrgAttachmentsAttachmentTypeEnum = "VCN" + ListC3DrgAttachmentsAttachmentTypeVirtualCircuit ListC3DrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" + ListC3DrgAttachmentsAttachmentTypeRemotePeeringConnection ListC3DrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" + ListC3DrgAttachmentsAttachmentTypeIpsecTunnel ListC3DrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" + ListC3DrgAttachmentsAttachmentTypeAll ListC3DrgAttachmentsAttachmentTypeEnum = "ALL" +) + +var mappingListC3DrgAttachmentsAttachmentTypeEnum = map[string]ListC3DrgAttachmentsAttachmentTypeEnum{ + "VCN": ListC3DrgAttachmentsAttachmentTypeVcn, + "VIRTUAL_CIRCUIT": ListC3DrgAttachmentsAttachmentTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": ListC3DrgAttachmentsAttachmentTypeRemotePeeringConnection, + "IPSEC_TUNNEL": ListC3DrgAttachmentsAttachmentTypeIpsecTunnel, + "ALL": ListC3DrgAttachmentsAttachmentTypeAll, +} + +var mappingListC3DrgAttachmentsAttachmentTypeEnumLowerCase = map[string]ListC3DrgAttachmentsAttachmentTypeEnum{ + "vcn": ListC3DrgAttachmentsAttachmentTypeVcn, + "virtual_circuit": ListC3DrgAttachmentsAttachmentTypeVirtualCircuit, + "remote_peering_connection": ListC3DrgAttachmentsAttachmentTypeRemotePeeringConnection, + "ipsec_tunnel": ListC3DrgAttachmentsAttachmentTypeIpsecTunnel, + "all": ListC3DrgAttachmentsAttachmentTypeAll, +} + +// GetListC3DrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for ListC3DrgAttachmentsAttachmentTypeEnum +func GetListC3DrgAttachmentsAttachmentTypeEnumValues() []ListC3DrgAttachmentsAttachmentTypeEnum { + values := make([]ListC3DrgAttachmentsAttachmentTypeEnum, 0) + for _, v := range mappingListC3DrgAttachmentsAttachmentTypeEnum { + values = append(values, v) + } + return values +} + +// GetListC3DrgAttachmentsAttachmentTypeEnumStringValues Enumerates the set of values in String for ListC3DrgAttachmentsAttachmentTypeEnum +func GetListC3DrgAttachmentsAttachmentTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "IPSEC_TUNNEL", + "ALL", + } +} + +// GetMappingListC3DrgAttachmentsAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListC3DrgAttachmentsAttachmentTypeEnum(val string) (ListC3DrgAttachmentsAttachmentTypeEnum, bool) { + enum, ok := mappingListC3DrgAttachmentsAttachmentTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListC3DrgAttachmentsSortByEnum Enum with underlying type: string +type ListC3DrgAttachmentsSortByEnum string + +// Set of constants representing the allowable values for ListC3DrgAttachmentsSortByEnum +const ( + ListC3DrgAttachmentsSortByTimecreated ListC3DrgAttachmentsSortByEnum = "TIMECREATED" + ListC3DrgAttachmentsSortByDisplayname ListC3DrgAttachmentsSortByEnum = "DISPLAYNAME" +) + +var mappingListC3DrgAttachmentsSortByEnum = map[string]ListC3DrgAttachmentsSortByEnum{ + "TIMECREATED": ListC3DrgAttachmentsSortByTimecreated, + "DISPLAYNAME": ListC3DrgAttachmentsSortByDisplayname, +} + +var mappingListC3DrgAttachmentsSortByEnumLowerCase = map[string]ListC3DrgAttachmentsSortByEnum{ + "timecreated": ListC3DrgAttachmentsSortByTimecreated, + "displayname": ListC3DrgAttachmentsSortByDisplayname, +} + +// GetListC3DrgAttachmentsSortByEnumValues Enumerates the set of values for ListC3DrgAttachmentsSortByEnum +func GetListC3DrgAttachmentsSortByEnumValues() []ListC3DrgAttachmentsSortByEnum { + values := make([]ListC3DrgAttachmentsSortByEnum, 0) + for _, v := range mappingListC3DrgAttachmentsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListC3DrgAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListC3DrgAttachmentsSortByEnum +func GetListC3DrgAttachmentsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListC3DrgAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListC3DrgAttachmentsSortByEnum(val string) (ListC3DrgAttachmentsSortByEnum, bool) { + enum, ok := mappingListC3DrgAttachmentsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListC3DrgAttachmentsSortOrderEnum Enum with underlying type: string +type ListC3DrgAttachmentsSortOrderEnum string + +// Set of constants representing the allowable values for ListC3DrgAttachmentsSortOrderEnum +const ( + ListC3DrgAttachmentsSortOrderAsc ListC3DrgAttachmentsSortOrderEnum = "ASC" + ListC3DrgAttachmentsSortOrderDesc ListC3DrgAttachmentsSortOrderEnum = "DESC" +) + +var mappingListC3DrgAttachmentsSortOrderEnum = map[string]ListC3DrgAttachmentsSortOrderEnum{ + "ASC": ListC3DrgAttachmentsSortOrderAsc, + "DESC": ListC3DrgAttachmentsSortOrderDesc, +} + +var mappingListC3DrgAttachmentsSortOrderEnumLowerCase = map[string]ListC3DrgAttachmentsSortOrderEnum{ + "asc": ListC3DrgAttachmentsSortOrderAsc, + "desc": ListC3DrgAttachmentsSortOrderDesc, +} + +// GetListC3DrgAttachmentsSortOrderEnumValues Enumerates the set of values for ListC3DrgAttachmentsSortOrderEnum +func GetListC3DrgAttachmentsSortOrderEnumValues() []ListC3DrgAttachmentsSortOrderEnum { + values := make([]ListC3DrgAttachmentsSortOrderEnum, 0) + for _, v := range mappingListC3DrgAttachmentsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListC3DrgAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListC3DrgAttachmentsSortOrderEnum +func GetListC3DrgAttachmentsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListC3DrgAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListC3DrgAttachmentsSortOrderEnum(val string) (ListC3DrgAttachmentsSortOrderEnum, bool) { + enum, ok := mappingListC3DrgAttachmentsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drgs_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drgs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drgs_request_response.go index f094c1ba6b..77faafa85c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_c3_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_c3_drgs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListC3DrgsRequest wrapper for the ListC3Drgs operation @@ -42,6 +44,10 @@ func (request ListC3DrgsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListC3DrgsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListC3DrgsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListC3DrgsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListC3DrgsResponse wrapper for the ListC3Drgs operation type ListC3DrgsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_capture_filters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_capture_filters_request_response.go new file mode 100644 index 0000000000..77f7c56d28 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_capture_filters_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCaptureFiltersRequest wrapper for the ListCaptureFilters operation +type ListCaptureFiltersRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListCaptureFiltersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListCaptureFiltersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that match the given capture filter lifecycle state. + // The state value is case-insensitive. + LifecycleState CaptureFilterLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCaptureFiltersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCaptureFiltersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCaptureFiltersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCaptureFiltersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCaptureFiltersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCaptureFiltersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCaptureFiltersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListCaptureFiltersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCaptureFiltersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingCaptureFilterLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCaptureFilterLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCaptureFiltersResponse wrapper for the ListCaptureFilters operation +type ListCaptureFiltersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []CaptureFilter instances + Items []CaptureFilter `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListCaptureFiltersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCaptureFiltersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCaptureFiltersSortByEnum Enum with underlying type: string +type ListCaptureFiltersSortByEnum string + +// Set of constants representing the allowable values for ListCaptureFiltersSortByEnum +const ( + ListCaptureFiltersSortByTimecreated ListCaptureFiltersSortByEnum = "TIMECREATED" + ListCaptureFiltersSortByDisplayname ListCaptureFiltersSortByEnum = "DISPLAYNAME" +) + +var mappingListCaptureFiltersSortByEnum = map[string]ListCaptureFiltersSortByEnum{ + "TIMECREATED": ListCaptureFiltersSortByTimecreated, + "DISPLAYNAME": ListCaptureFiltersSortByDisplayname, +} + +var mappingListCaptureFiltersSortByEnumLowerCase = map[string]ListCaptureFiltersSortByEnum{ + "timecreated": ListCaptureFiltersSortByTimecreated, + "displayname": ListCaptureFiltersSortByDisplayname, +} + +// GetListCaptureFiltersSortByEnumValues Enumerates the set of values for ListCaptureFiltersSortByEnum +func GetListCaptureFiltersSortByEnumValues() []ListCaptureFiltersSortByEnum { + values := make([]ListCaptureFiltersSortByEnum, 0) + for _, v := range mappingListCaptureFiltersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListCaptureFiltersSortByEnumStringValues Enumerates the set of values in String for ListCaptureFiltersSortByEnum +func GetListCaptureFiltersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListCaptureFiltersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCaptureFiltersSortByEnum(val string) (ListCaptureFiltersSortByEnum, bool) { + enum, ok := mappingListCaptureFiltersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCaptureFiltersSortOrderEnum Enum with underlying type: string +type ListCaptureFiltersSortOrderEnum string + +// Set of constants representing the allowable values for ListCaptureFiltersSortOrderEnum +const ( + ListCaptureFiltersSortOrderAsc ListCaptureFiltersSortOrderEnum = "ASC" + ListCaptureFiltersSortOrderDesc ListCaptureFiltersSortOrderEnum = "DESC" +) + +var mappingListCaptureFiltersSortOrderEnum = map[string]ListCaptureFiltersSortOrderEnum{ + "ASC": ListCaptureFiltersSortOrderAsc, + "DESC": ListCaptureFiltersSortOrderDesc, +} + +var mappingListCaptureFiltersSortOrderEnumLowerCase = map[string]ListCaptureFiltersSortOrderEnum{ + "asc": ListCaptureFiltersSortOrderAsc, + "desc": ListCaptureFiltersSortOrderDesc, +} + +// GetListCaptureFiltersSortOrderEnumValues Enumerates the set of values for ListCaptureFiltersSortOrderEnum +func GetListCaptureFiltersSortOrderEnumValues() []ListCaptureFiltersSortOrderEnum { + values := make([]ListCaptureFiltersSortOrderEnum, 0) + for _, v := range mappingListCaptureFiltersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCaptureFiltersSortOrderEnumStringValues Enumerates the set of values in String for ListCaptureFiltersSortOrderEnum +func GetListCaptureFiltersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCaptureFiltersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCaptureFiltersSortOrderEnum(val string) (ListCaptureFiltersSortOrderEnum, bool) { + enum, ok := mappingListCaptureFiltersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpn_users_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpn_users_request_response.go new file mode 100644 index 0000000000..b2f848464f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpn_users_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListClientVpnUsersRequest wrapper for the ListClientVpnUsers operation +type ListClientVpnUsersRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. + ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListClientVpnUsersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListClientVpnUsersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListClientVpnUsersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListClientVpnUsersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListClientVpnUsersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListClientVpnUsersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListClientVpnUsersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListClientVpnUsersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListClientVpnUsersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListClientVpnUsersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListClientVpnUsersSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListClientVpnUsersResponse wrapper for the ListClientVpnUsers operation +type ListClientVpnUsersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ClientVpnUserSummaryCollection instances + ClientVpnUserSummaryCollection `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListClientVpnUsersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListClientVpnUsersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListClientVpnUsersSortByEnum Enum with underlying type: string +type ListClientVpnUsersSortByEnum string + +// Set of constants representing the allowable values for ListClientVpnUsersSortByEnum +const ( + ListClientVpnUsersSortByTimecreated ListClientVpnUsersSortByEnum = "TIMECREATED" + ListClientVpnUsersSortByDisplayname ListClientVpnUsersSortByEnum = "DISPLAYNAME" +) + +var mappingListClientVpnUsersSortByEnum = map[string]ListClientVpnUsersSortByEnum{ + "TIMECREATED": ListClientVpnUsersSortByTimecreated, + "DISPLAYNAME": ListClientVpnUsersSortByDisplayname, +} + +var mappingListClientVpnUsersSortByEnumLowerCase = map[string]ListClientVpnUsersSortByEnum{ + "timecreated": ListClientVpnUsersSortByTimecreated, + "displayname": ListClientVpnUsersSortByDisplayname, +} + +// GetListClientVpnUsersSortByEnumValues Enumerates the set of values for ListClientVpnUsersSortByEnum +func GetListClientVpnUsersSortByEnumValues() []ListClientVpnUsersSortByEnum { + values := make([]ListClientVpnUsersSortByEnum, 0) + for _, v := range mappingListClientVpnUsersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListClientVpnUsersSortByEnumStringValues Enumerates the set of values in String for ListClientVpnUsersSortByEnum +func GetListClientVpnUsersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListClientVpnUsersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClientVpnUsersSortByEnum(val string) (ListClientVpnUsersSortByEnum, bool) { + enum, ok := mappingListClientVpnUsersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListClientVpnUsersSortOrderEnum Enum with underlying type: string +type ListClientVpnUsersSortOrderEnum string + +// Set of constants representing the allowable values for ListClientVpnUsersSortOrderEnum +const ( + ListClientVpnUsersSortOrderAsc ListClientVpnUsersSortOrderEnum = "ASC" + ListClientVpnUsersSortOrderDesc ListClientVpnUsersSortOrderEnum = "DESC" +) + +var mappingListClientVpnUsersSortOrderEnum = map[string]ListClientVpnUsersSortOrderEnum{ + "ASC": ListClientVpnUsersSortOrderAsc, + "DESC": ListClientVpnUsersSortOrderDesc, +} + +var mappingListClientVpnUsersSortOrderEnumLowerCase = map[string]ListClientVpnUsersSortOrderEnum{ + "asc": ListClientVpnUsersSortOrderAsc, + "desc": ListClientVpnUsersSortOrderDesc, +} + +// GetListClientVpnUsersSortOrderEnumValues Enumerates the set of values for ListClientVpnUsersSortOrderEnum +func GetListClientVpnUsersSortOrderEnumValues() []ListClientVpnUsersSortOrderEnum { + values := make([]ListClientVpnUsersSortOrderEnum, 0) + for _, v := range mappingListClientVpnUsersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListClientVpnUsersSortOrderEnumStringValues Enumerates the set of values in String for ListClientVpnUsersSortOrderEnum +func GetListClientVpnUsersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListClientVpnUsersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClientVpnUsersSortOrderEnum(val string) (ListClientVpnUsersSortOrderEnum, bool) { + enum, ok := mappingListClientVpnUsersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpns_request_response.go new file mode 100644 index 0000000000..442159f4d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_client_vpns_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListClientVpnsRequest wrapper for the ListClientVpns operation +type ListClientVpnsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListClientVpnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListClientVpnsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListClientVpnsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListClientVpnsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListClientVpnsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListClientVpnsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListClientVpnsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListClientVpnsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListClientVpnsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListClientVpnsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListClientVpnsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListClientVpnsResponse wrapper for the ListClientVpns operation +type ListClientVpnsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ClientVpnSummaryCollection instances + ClientVpnSummaryCollection `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListClientVpnsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListClientVpnsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListClientVpnsSortByEnum Enum with underlying type: string +type ListClientVpnsSortByEnum string + +// Set of constants representing the allowable values for ListClientVpnsSortByEnum +const ( + ListClientVpnsSortByTimecreated ListClientVpnsSortByEnum = "TIMECREATED" + ListClientVpnsSortByDisplayname ListClientVpnsSortByEnum = "DISPLAYNAME" +) + +var mappingListClientVpnsSortByEnum = map[string]ListClientVpnsSortByEnum{ + "TIMECREATED": ListClientVpnsSortByTimecreated, + "DISPLAYNAME": ListClientVpnsSortByDisplayname, +} + +var mappingListClientVpnsSortByEnumLowerCase = map[string]ListClientVpnsSortByEnum{ + "timecreated": ListClientVpnsSortByTimecreated, + "displayname": ListClientVpnsSortByDisplayname, +} + +// GetListClientVpnsSortByEnumValues Enumerates the set of values for ListClientVpnsSortByEnum +func GetListClientVpnsSortByEnumValues() []ListClientVpnsSortByEnum { + values := make([]ListClientVpnsSortByEnum, 0) + for _, v := range mappingListClientVpnsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListClientVpnsSortByEnumStringValues Enumerates the set of values in String for ListClientVpnsSortByEnum +func GetListClientVpnsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListClientVpnsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClientVpnsSortByEnum(val string) (ListClientVpnsSortByEnum, bool) { + enum, ok := mappingListClientVpnsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListClientVpnsSortOrderEnum Enum with underlying type: string +type ListClientVpnsSortOrderEnum string + +// Set of constants representing the allowable values for ListClientVpnsSortOrderEnum +const ( + ListClientVpnsSortOrderAsc ListClientVpnsSortOrderEnum = "ASC" + ListClientVpnsSortOrderDesc ListClientVpnsSortOrderEnum = "DESC" +) + +var mappingListClientVpnsSortOrderEnum = map[string]ListClientVpnsSortOrderEnum{ + "ASC": ListClientVpnsSortOrderAsc, + "DESC": ListClientVpnsSortOrderDesc, +} + +var mappingListClientVpnsSortOrderEnumLowerCase = map[string]ListClientVpnsSortOrderEnum{ + "asc": ListClientVpnsSortOrderAsc, + "desc": ListClientVpnsSortOrderDesc, +} + +// GetListClientVpnsSortOrderEnumValues Enumerates the set of values for ListClientVpnsSortOrderEnum +func GetListClientVpnsSortOrderEnumValues() []ListClientVpnsSortOrderEnum { + values := make([]ListClientVpnsSortOrderEnum, 0) + for _, v := range mappingListClientVpnsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListClientVpnsSortOrderEnumStringValues Enumerates the set of values in String for ListClientVpnsSortOrderEnum +func GetListClientVpnsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListClientVpnsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClientVpnsSortOrderEnum(val string) (ListClientVpnsSortOrderEnum, bool) { + enum, ok := mappingListClientVpnsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_network_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_network_instances_request_response.go new file mode 100644 index 0000000000..571caa3e92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_network_instances_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListClusterNetworkInstancesRequest wrapper for the ListClusterNetworkInstances operation +type ListClusterNetworkInstancesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cluster network. + ClusterNetworkId *string `mandatory:"true" contributesTo:"path" name:"clusterNetworkId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListClusterNetworkInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListClusterNetworkInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListClusterNetworkInstancesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListClusterNetworkInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListClusterNetworkInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListClusterNetworkInstancesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListClusterNetworkInstancesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListClusterNetworkInstancesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListClusterNetworkInstancesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListClusterNetworkInstancesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListClusterNetworkInstancesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListClusterNetworkInstancesResponse wrapper for the ListClusterNetworkInstances operation +type ListClusterNetworkInstancesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InstanceSummary instances + Items []InstanceSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListClusterNetworkInstancesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListClusterNetworkInstancesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListClusterNetworkInstancesSortByEnum Enum with underlying type: string +type ListClusterNetworkInstancesSortByEnum string + +// Set of constants representing the allowable values for ListClusterNetworkInstancesSortByEnum +const ( + ListClusterNetworkInstancesSortByTimecreated ListClusterNetworkInstancesSortByEnum = "TIMECREATED" + ListClusterNetworkInstancesSortByDisplayname ListClusterNetworkInstancesSortByEnum = "DISPLAYNAME" +) + +var mappingListClusterNetworkInstancesSortByEnum = map[string]ListClusterNetworkInstancesSortByEnum{ + "TIMECREATED": ListClusterNetworkInstancesSortByTimecreated, + "DISPLAYNAME": ListClusterNetworkInstancesSortByDisplayname, +} + +var mappingListClusterNetworkInstancesSortByEnumLowerCase = map[string]ListClusterNetworkInstancesSortByEnum{ + "timecreated": ListClusterNetworkInstancesSortByTimecreated, + "displayname": ListClusterNetworkInstancesSortByDisplayname, +} + +// GetListClusterNetworkInstancesSortByEnumValues Enumerates the set of values for ListClusterNetworkInstancesSortByEnum +func GetListClusterNetworkInstancesSortByEnumValues() []ListClusterNetworkInstancesSortByEnum { + values := make([]ListClusterNetworkInstancesSortByEnum, 0) + for _, v := range mappingListClusterNetworkInstancesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListClusterNetworkInstancesSortByEnumStringValues Enumerates the set of values in String for ListClusterNetworkInstancesSortByEnum +func GetListClusterNetworkInstancesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListClusterNetworkInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClusterNetworkInstancesSortByEnum(val string) (ListClusterNetworkInstancesSortByEnum, bool) { + enum, ok := mappingListClusterNetworkInstancesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListClusterNetworkInstancesSortOrderEnum Enum with underlying type: string +type ListClusterNetworkInstancesSortOrderEnum string + +// Set of constants representing the allowable values for ListClusterNetworkInstancesSortOrderEnum +const ( + ListClusterNetworkInstancesSortOrderAsc ListClusterNetworkInstancesSortOrderEnum = "ASC" + ListClusterNetworkInstancesSortOrderDesc ListClusterNetworkInstancesSortOrderEnum = "DESC" +) + +var mappingListClusterNetworkInstancesSortOrderEnum = map[string]ListClusterNetworkInstancesSortOrderEnum{ + "ASC": ListClusterNetworkInstancesSortOrderAsc, + "DESC": ListClusterNetworkInstancesSortOrderDesc, +} + +var mappingListClusterNetworkInstancesSortOrderEnumLowerCase = map[string]ListClusterNetworkInstancesSortOrderEnum{ + "asc": ListClusterNetworkInstancesSortOrderAsc, + "desc": ListClusterNetworkInstancesSortOrderDesc, +} + +// GetListClusterNetworkInstancesSortOrderEnumValues Enumerates the set of values for ListClusterNetworkInstancesSortOrderEnum +func GetListClusterNetworkInstancesSortOrderEnumValues() []ListClusterNetworkInstancesSortOrderEnum { + values := make([]ListClusterNetworkInstancesSortOrderEnum, 0) + for _, v := range mappingListClusterNetworkInstancesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListClusterNetworkInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListClusterNetworkInstancesSortOrderEnum +func GetListClusterNetworkInstancesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListClusterNetworkInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClusterNetworkInstancesSortOrderEnum(val string) (ListClusterNetworkInstancesSortOrderEnum, bool) { + enum, ok := mappingListClusterNetworkInstancesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_networks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_networks_request_response.go new file mode 100644 index 0000000000..d1aa3a0b38 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cluster_networks_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListClusterNetworksRequest wrapper for the ListClusterNetworks operation +type ListClusterNetworksRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListClusterNetworksSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListClusterNetworksSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState ClusterNetworkSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListClusterNetworksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListClusterNetworksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListClusterNetworksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListClusterNetworksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListClusterNetworksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListClusterNetworksSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListClusterNetworksSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListClusterNetworksSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListClusterNetworksSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingClusterNetworkSummaryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetClusterNetworkSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListClusterNetworksResponse wrapper for the ListClusterNetworks operation +type ListClusterNetworksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ClusterNetworkSummary instances + Items []ClusterNetworkSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListClusterNetworksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListClusterNetworksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListClusterNetworksSortByEnum Enum with underlying type: string +type ListClusterNetworksSortByEnum string + +// Set of constants representing the allowable values for ListClusterNetworksSortByEnum +const ( + ListClusterNetworksSortByTimecreated ListClusterNetworksSortByEnum = "TIMECREATED" + ListClusterNetworksSortByDisplayname ListClusterNetworksSortByEnum = "DISPLAYNAME" +) + +var mappingListClusterNetworksSortByEnum = map[string]ListClusterNetworksSortByEnum{ + "TIMECREATED": ListClusterNetworksSortByTimecreated, + "DISPLAYNAME": ListClusterNetworksSortByDisplayname, +} + +var mappingListClusterNetworksSortByEnumLowerCase = map[string]ListClusterNetworksSortByEnum{ + "timecreated": ListClusterNetworksSortByTimecreated, + "displayname": ListClusterNetworksSortByDisplayname, +} + +// GetListClusterNetworksSortByEnumValues Enumerates the set of values for ListClusterNetworksSortByEnum +func GetListClusterNetworksSortByEnumValues() []ListClusterNetworksSortByEnum { + values := make([]ListClusterNetworksSortByEnum, 0) + for _, v := range mappingListClusterNetworksSortByEnum { + values = append(values, v) + } + return values +} + +// GetListClusterNetworksSortByEnumStringValues Enumerates the set of values in String for ListClusterNetworksSortByEnum +func GetListClusterNetworksSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListClusterNetworksSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClusterNetworksSortByEnum(val string) (ListClusterNetworksSortByEnum, bool) { + enum, ok := mappingListClusterNetworksSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListClusterNetworksSortOrderEnum Enum with underlying type: string +type ListClusterNetworksSortOrderEnum string + +// Set of constants representing the allowable values for ListClusterNetworksSortOrderEnum +const ( + ListClusterNetworksSortOrderAsc ListClusterNetworksSortOrderEnum = "ASC" + ListClusterNetworksSortOrderDesc ListClusterNetworksSortOrderEnum = "DESC" +) + +var mappingListClusterNetworksSortOrderEnum = map[string]ListClusterNetworksSortOrderEnum{ + "ASC": ListClusterNetworksSortOrderAsc, + "DESC": ListClusterNetworksSortOrderDesc, +} + +var mappingListClusterNetworksSortOrderEnumLowerCase = map[string]ListClusterNetworksSortOrderEnum{ + "asc": ListClusterNetworksSortOrderAsc, + "desc": ListClusterNetworksSortOrderDesc, +} + +// GetListClusterNetworksSortOrderEnumValues Enumerates the set of values for ListClusterNetworksSortOrderEnum +func GetListClusterNetworksSortOrderEnumValues() []ListClusterNetworksSortOrderEnum { + values := make([]ListClusterNetworksSortOrderEnum, 0) + for _, v := range mappingListClusterNetworksSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListClusterNetworksSortOrderEnumStringValues Enumerates the set of values in String for ListClusterNetworksSortOrderEnum +func GetListClusterNetworksSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListClusterNetworksSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListClusterNetworksSortOrderEnum(val string) (ListClusterNetworksSortOrderEnum, bool) { + enum, ok := mappingListClusterNetworksSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instance_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instance_shapes_request_response.go new file mode 100644 index 0000000000..3dfda77c78 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instance_shapes_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeCapacityReservationInstanceShapesRequest wrapper for the ListComputeCapacityReservationInstanceShapes operation +type ListComputeCapacityReservationInstanceShapesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeCapacityReservationInstanceShapesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeCapacityReservationInstanceShapesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeCapacityReservationInstanceShapesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeCapacityReservationInstanceShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeCapacityReservationInstanceShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeCapacityReservationInstanceShapesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeCapacityReservationInstanceShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeCapacityReservationInstanceShapesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeCapacityReservationInstanceShapesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeCapacityReservationInstanceShapesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityReservationInstanceShapesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeCapacityReservationInstanceShapesResponse wrapper for the ListComputeCapacityReservationInstanceShapes operation +type ListComputeCapacityReservationInstanceShapesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ComputeCapacityReservationInstanceShapeSummary instances + Items []ComputeCapacityReservationInstanceShapeSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeCapacityReservationInstanceShapesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeCapacityReservationInstanceShapesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeCapacityReservationInstanceShapesSortByEnum Enum with underlying type: string +type ListComputeCapacityReservationInstanceShapesSortByEnum string + +// Set of constants representing the allowable values for ListComputeCapacityReservationInstanceShapesSortByEnum +const ( + ListComputeCapacityReservationInstanceShapesSortByTimecreated ListComputeCapacityReservationInstanceShapesSortByEnum = "TIMECREATED" + ListComputeCapacityReservationInstanceShapesSortByDisplayname ListComputeCapacityReservationInstanceShapesSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeCapacityReservationInstanceShapesSortByEnum = map[string]ListComputeCapacityReservationInstanceShapesSortByEnum{ + "TIMECREATED": ListComputeCapacityReservationInstanceShapesSortByTimecreated, + "DISPLAYNAME": ListComputeCapacityReservationInstanceShapesSortByDisplayname, +} + +var mappingListComputeCapacityReservationInstanceShapesSortByEnumLowerCase = map[string]ListComputeCapacityReservationInstanceShapesSortByEnum{ + "timecreated": ListComputeCapacityReservationInstanceShapesSortByTimecreated, + "displayname": ListComputeCapacityReservationInstanceShapesSortByDisplayname, +} + +// GetListComputeCapacityReservationInstanceShapesSortByEnumValues Enumerates the set of values for ListComputeCapacityReservationInstanceShapesSortByEnum +func GetListComputeCapacityReservationInstanceShapesSortByEnumValues() []ListComputeCapacityReservationInstanceShapesSortByEnum { + values := make([]ListComputeCapacityReservationInstanceShapesSortByEnum, 0) + for _, v := range mappingListComputeCapacityReservationInstanceShapesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeCapacityReservationInstanceShapesSortByEnumStringValues Enumerates the set of values in String for ListComputeCapacityReservationInstanceShapesSortByEnum +func GetListComputeCapacityReservationInstanceShapesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeCapacityReservationInstanceShapesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeCapacityReservationInstanceShapesSortByEnum(val string) (ListComputeCapacityReservationInstanceShapesSortByEnum, bool) { + enum, ok := mappingListComputeCapacityReservationInstanceShapesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeCapacityReservationInstanceShapesSortOrderEnum Enum with underlying type: string +type ListComputeCapacityReservationInstanceShapesSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeCapacityReservationInstanceShapesSortOrderEnum +const ( + ListComputeCapacityReservationInstanceShapesSortOrderAsc ListComputeCapacityReservationInstanceShapesSortOrderEnum = "ASC" + ListComputeCapacityReservationInstanceShapesSortOrderDesc ListComputeCapacityReservationInstanceShapesSortOrderEnum = "DESC" +) + +var mappingListComputeCapacityReservationInstanceShapesSortOrderEnum = map[string]ListComputeCapacityReservationInstanceShapesSortOrderEnum{ + "ASC": ListComputeCapacityReservationInstanceShapesSortOrderAsc, + "DESC": ListComputeCapacityReservationInstanceShapesSortOrderDesc, +} + +var mappingListComputeCapacityReservationInstanceShapesSortOrderEnumLowerCase = map[string]ListComputeCapacityReservationInstanceShapesSortOrderEnum{ + "asc": ListComputeCapacityReservationInstanceShapesSortOrderAsc, + "desc": ListComputeCapacityReservationInstanceShapesSortOrderDesc, +} + +// GetListComputeCapacityReservationInstanceShapesSortOrderEnumValues Enumerates the set of values for ListComputeCapacityReservationInstanceShapesSortOrderEnum +func GetListComputeCapacityReservationInstanceShapesSortOrderEnumValues() []ListComputeCapacityReservationInstanceShapesSortOrderEnum { + values := make([]ListComputeCapacityReservationInstanceShapesSortOrderEnum, 0) + for _, v := range mappingListComputeCapacityReservationInstanceShapesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeCapacityReservationInstanceShapesSortOrderEnumStringValues Enumerates the set of values in String for ListComputeCapacityReservationInstanceShapesSortOrderEnum +func GetListComputeCapacityReservationInstanceShapesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeCapacityReservationInstanceShapesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeCapacityReservationInstanceShapesSortOrderEnum(val string) (ListComputeCapacityReservationInstanceShapesSortOrderEnum, bool) { + enum, ok := mappingListComputeCapacityReservationInstanceShapesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instances_request_response.go new file mode 100644 index 0000000000..89c9ccd734 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservation_instances_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeCapacityReservationInstancesRequest wrapper for the ListComputeCapacityReservationInstances operation +type ListComputeCapacityReservationInstancesRequest struct { + + // The OCID of the compute capacity reservation. + CapacityReservationId *string `mandatory:"true" contributesTo:"path" name:"capacityReservationId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeCapacityReservationInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeCapacityReservationInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeCapacityReservationInstancesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeCapacityReservationInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeCapacityReservationInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeCapacityReservationInstancesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeCapacityReservationInstancesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeCapacityReservationInstancesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeCapacityReservationInstancesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeCapacityReservationInstancesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityReservationInstancesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeCapacityReservationInstancesResponse wrapper for the ListComputeCapacityReservationInstances operation +type ListComputeCapacityReservationInstancesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []CapacityReservationInstanceSummary instances + Items []CapacityReservationInstanceSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeCapacityReservationInstancesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeCapacityReservationInstancesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeCapacityReservationInstancesSortByEnum Enum with underlying type: string +type ListComputeCapacityReservationInstancesSortByEnum string + +// Set of constants representing the allowable values for ListComputeCapacityReservationInstancesSortByEnum +const ( + ListComputeCapacityReservationInstancesSortByTimecreated ListComputeCapacityReservationInstancesSortByEnum = "TIMECREATED" + ListComputeCapacityReservationInstancesSortByDisplayname ListComputeCapacityReservationInstancesSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeCapacityReservationInstancesSortByEnum = map[string]ListComputeCapacityReservationInstancesSortByEnum{ + "TIMECREATED": ListComputeCapacityReservationInstancesSortByTimecreated, + "DISPLAYNAME": ListComputeCapacityReservationInstancesSortByDisplayname, +} + +var mappingListComputeCapacityReservationInstancesSortByEnumLowerCase = map[string]ListComputeCapacityReservationInstancesSortByEnum{ + "timecreated": ListComputeCapacityReservationInstancesSortByTimecreated, + "displayname": ListComputeCapacityReservationInstancesSortByDisplayname, +} + +// GetListComputeCapacityReservationInstancesSortByEnumValues Enumerates the set of values for ListComputeCapacityReservationInstancesSortByEnum +func GetListComputeCapacityReservationInstancesSortByEnumValues() []ListComputeCapacityReservationInstancesSortByEnum { + values := make([]ListComputeCapacityReservationInstancesSortByEnum, 0) + for _, v := range mappingListComputeCapacityReservationInstancesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeCapacityReservationInstancesSortByEnumStringValues Enumerates the set of values in String for ListComputeCapacityReservationInstancesSortByEnum +func GetListComputeCapacityReservationInstancesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeCapacityReservationInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeCapacityReservationInstancesSortByEnum(val string) (ListComputeCapacityReservationInstancesSortByEnum, bool) { + enum, ok := mappingListComputeCapacityReservationInstancesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeCapacityReservationInstancesSortOrderEnum Enum with underlying type: string +type ListComputeCapacityReservationInstancesSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeCapacityReservationInstancesSortOrderEnum +const ( + ListComputeCapacityReservationInstancesSortOrderAsc ListComputeCapacityReservationInstancesSortOrderEnum = "ASC" + ListComputeCapacityReservationInstancesSortOrderDesc ListComputeCapacityReservationInstancesSortOrderEnum = "DESC" +) + +var mappingListComputeCapacityReservationInstancesSortOrderEnum = map[string]ListComputeCapacityReservationInstancesSortOrderEnum{ + "ASC": ListComputeCapacityReservationInstancesSortOrderAsc, + "DESC": ListComputeCapacityReservationInstancesSortOrderDesc, +} + +var mappingListComputeCapacityReservationInstancesSortOrderEnumLowerCase = map[string]ListComputeCapacityReservationInstancesSortOrderEnum{ + "asc": ListComputeCapacityReservationInstancesSortOrderAsc, + "desc": ListComputeCapacityReservationInstancesSortOrderDesc, +} + +// GetListComputeCapacityReservationInstancesSortOrderEnumValues Enumerates the set of values for ListComputeCapacityReservationInstancesSortOrderEnum +func GetListComputeCapacityReservationInstancesSortOrderEnumValues() []ListComputeCapacityReservationInstancesSortOrderEnum { + values := make([]ListComputeCapacityReservationInstancesSortOrderEnum, 0) + for _, v := range mappingListComputeCapacityReservationInstancesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeCapacityReservationInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListComputeCapacityReservationInstancesSortOrderEnum +func GetListComputeCapacityReservationInstancesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeCapacityReservationInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeCapacityReservationInstancesSortOrderEnum(val string) (ListComputeCapacityReservationInstancesSortOrderEnum, bool) { + enum, ok := mappingListComputeCapacityReservationInstancesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservations_request_response.go new file mode 100644 index 0000000000..b29e0d7b24 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_capacity_reservations_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeCapacityReservationsRequest wrapper for the ListComputeCapacityReservations operation +type ListComputeCapacityReservationsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // A filter to only return resources that match the given lifecycle state. + LifecycleState ComputeCapacityReservationLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeCapacityReservationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeCapacityReservationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeCapacityReservationsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeCapacityReservationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeCapacityReservationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeCapacityReservationsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeCapacityReservationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingComputeCapacityReservationLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetComputeCapacityReservationLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeCapacityReservationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeCapacityReservationsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeCapacityReservationsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeCapacityReservationsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeCapacityReservationsResponse wrapper for the ListComputeCapacityReservations operation +type ListComputeCapacityReservationsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ComputeCapacityReservationSummary instances + Items []ComputeCapacityReservationSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeCapacityReservationsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeCapacityReservationsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeCapacityReservationsSortByEnum Enum with underlying type: string +type ListComputeCapacityReservationsSortByEnum string + +// Set of constants representing the allowable values for ListComputeCapacityReservationsSortByEnum +const ( + ListComputeCapacityReservationsSortByTimecreated ListComputeCapacityReservationsSortByEnum = "TIMECREATED" + ListComputeCapacityReservationsSortByDisplayname ListComputeCapacityReservationsSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeCapacityReservationsSortByEnum = map[string]ListComputeCapacityReservationsSortByEnum{ + "TIMECREATED": ListComputeCapacityReservationsSortByTimecreated, + "DISPLAYNAME": ListComputeCapacityReservationsSortByDisplayname, +} + +var mappingListComputeCapacityReservationsSortByEnumLowerCase = map[string]ListComputeCapacityReservationsSortByEnum{ + "timecreated": ListComputeCapacityReservationsSortByTimecreated, + "displayname": ListComputeCapacityReservationsSortByDisplayname, +} + +// GetListComputeCapacityReservationsSortByEnumValues Enumerates the set of values for ListComputeCapacityReservationsSortByEnum +func GetListComputeCapacityReservationsSortByEnumValues() []ListComputeCapacityReservationsSortByEnum { + values := make([]ListComputeCapacityReservationsSortByEnum, 0) + for _, v := range mappingListComputeCapacityReservationsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeCapacityReservationsSortByEnumStringValues Enumerates the set of values in String for ListComputeCapacityReservationsSortByEnum +func GetListComputeCapacityReservationsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeCapacityReservationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeCapacityReservationsSortByEnum(val string) (ListComputeCapacityReservationsSortByEnum, bool) { + enum, ok := mappingListComputeCapacityReservationsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeCapacityReservationsSortOrderEnum Enum with underlying type: string +type ListComputeCapacityReservationsSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeCapacityReservationsSortOrderEnum +const ( + ListComputeCapacityReservationsSortOrderAsc ListComputeCapacityReservationsSortOrderEnum = "ASC" + ListComputeCapacityReservationsSortOrderDesc ListComputeCapacityReservationsSortOrderEnum = "DESC" +) + +var mappingListComputeCapacityReservationsSortOrderEnum = map[string]ListComputeCapacityReservationsSortOrderEnum{ + "ASC": ListComputeCapacityReservationsSortOrderAsc, + "DESC": ListComputeCapacityReservationsSortOrderDesc, +} + +var mappingListComputeCapacityReservationsSortOrderEnumLowerCase = map[string]ListComputeCapacityReservationsSortOrderEnum{ + "asc": ListComputeCapacityReservationsSortOrderAsc, + "desc": ListComputeCapacityReservationsSortOrderDesc, +} + +// GetListComputeCapacityReservationsSortOrderEnumValues Enumerates the set of values for ListComputeCapacityReservationsSortOrderEnum +func GetListComputeCapacityReservationsSortOrderEnumValues() []ListComputeCapacityReservationsSortOrderEnum { + values := make([]ListComputeCapacityReservationsSortOrderEnum, 0) + for _, v := range mappingListComputeCapacityReservationsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeCapacityReservationsSortOrderEnumStringValues Enumerates the set of values in String for ListComputeCapacityReservationsSortOrderEnum +func GetListComputeCapacityReservationsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeCapacityReservationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeCapacityReservationsSortOrderEnum(val string) (ListComputeCapacityReservationsSortOrderEnum, bool) { + enum, ok := mappingListComputeCapacityReservationsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_clusters_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_clusters_request_response.go new file mode 100644 index 0000000000..3a197fb5f2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_clusters_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeClustersRequest wrapper for the ListComputeClusters operation +type ListComputeClustersRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeClustersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeClustersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeClustersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeClustersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeClustersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeClustersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeClustersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeClustersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeClustersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeClustersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeClustersSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeClustersResponse wrapper for the ListComputeClusters operation +type ListComputeClustersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ComputeClusterCollection instances + ComputeClusterCollection `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeClustersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeClustersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeClustersSortByEnum Enum with underlying type: string +type ListComputeClustersSortByEnum string + +// Set of constants representing the allowable values for ListComputeClustersSortByEnum +const ( + ListComputeClustersSortByTimecreated ListComputeClustersSortByEnum = "TIMECREATED" + ListComputeClustersSortByDisplayname ListComputeClustersSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeClustersSortByEnum = map[string]ListComputeClustersSortByEnum{ + "TIMECREATED": ListComputeClustersSortByTimecreated, + "DISPLAYNAME": ListComputeClustersSortByDisplayname, +} + +var mappingListComputeClustersSortByEnumLowerCase = map[string]ListComputeClustersSortByEnum{ + "timecreated": ListComputeClustersSortByTimecreated, + "displayname": ListComputeClustersSortByDisplayname, +} + +// GetListComputeClustersSortByEnumValues Enumerates the set of values for ListComputeClustersSortByEnum +func GetListComputeClustersSortByEnumValues() []ListComputeClustersSortByEnum { + values := make([]ListComputeClustersSortByEnum, 0) + for _, v := range mappingListComputeClustersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeClustersSortByEnumStringValues Enumerates the set of values in String for ListComputeClustersSortByEnum +func GetListComputeClustersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeClustersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeClustersSortByEnum(val string) (ListComputeClustersSortByEnum, bool) { + enum, ok := mappingListComputeClustersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeClustersSortOrderEnum Enum with underlying type: string +type ListComputeClustersSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeClustersSortOrderEnum +const ( + ListComputeClustersSortOrderAsc ListComputeClustersSortOrderEnum = "ASC" + ListComputeClustersSortOrderDesc ListComputeClustersSortOrderEnum = "DESC" +) + +var mappingListComputeClustersSortOrderEnum = map[string]ListComputeClustersSortOrderEnum{ + "ASC": ListComputeClustersSortOrderAsc, + "DESC": ListComputeClustersSortOrderDesc, +} + +var mappingListComputeClustersSortOrderEnumLowerCase = map[string]ListComputeClustersSortOrderEnum{ + "asc": ListComputeClustersSortOrderAsc, + "desc": ListComputeClustersSortOrderDesc, +} + +// GetListComputeClustersSortOrderEnumValues Enumerates the set of values for ListComputeClustersSortOrderEnum +func GetListComputeClustersSortOrderEnumValues() []ListComputeClustersSortOrderEnum { + values := make([]ListComputeClustersSortOrderEnum, 0) + for _, v := range mappingListComputeClustersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeClustersSortOrderEnumStringValues Enumerates the set of values in String for ListComputeClustersSortOrderEnum +func GetListComputeClustersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeClustersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeClustersSortOrderEnum(val string) (ListComputeClustersSortOrderEnum, bool) { + enum, ok := mappingListComputeClustersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schema_versions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schema_versions_request_response.go new file mode 100644 index 0000000000..f127a7f93b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schema_versions_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeGlobalImageCapabilitySchemaVersionsRequest wrapper for the ListComputeGlobalImageCapabilitySchemaVersions operation +type ListComputeGlobalImageCapabilitySchemaVersionsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute global image capability schema + ComputeGlobalImageCapabilitySchemaId *string `mandatory:"true" contributesTo:"path" name:"computeGlobalImageCapabilitySchemaId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeGlobalImageCapabilitySchemaVersionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeGlobalImageCapabilitySchemaVersionsResponse wrapper for the ListComputeGlobalImageCapabilitySchemaVersions operation +type ListComputeGlobalImageCapabilitySchemaVersionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ComputeGlobalImageCapabilitySchemaVersionSummary instances + Items []ComputeGlobalImageCapabilitySchemaVersionSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeGlobalImageCapabilitySchemaVersionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeGlobalImageCapabilitySchemaVersionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum Enum with underlying type: string +type ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum string + +// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum +const ( + ListComputeGlobalImageCapabilitySchemaVersionsSortByTimecreated ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum = "TIMECREATED" + ListComputeGlobalImageCapabilitySchemaVersionsSortByDisplayname ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnum = map[string]ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum{ + "TIMECREATED": ListComputeGlobalImageCapabilitySchemaVersionsSortByTimecreated, + "DISPLAYNAME": ListComputeGlobalImageCapabilitySchemaVersionsSortByDisplayname, +} + +var mappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnumLowerCase = map[string]ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum{ + "timecreated": ListComputeGlobalImageCapabilitySchemaVersionsSortByTimecreated, + "displayname": ListComputeGlobalImageCapabilitySchemaVersionsSortByDisplayname, +} + +// GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum +func GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumValues() []ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum { + values := make([]ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum, 0) + for _, v := range mappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumStringValues Enumerates the set of values in String for ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum +func GetListComputeGlobalImageCapabilitySchemaVersionsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnum(val string) (ListComputeGlobalImageCapabilitySchemaVersionsSortByEnum, bool) { + enum, ok := mappingListComputeGlobalImageCapabilitySchemaVersionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum Enum with underlying type: string +type ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum +const ( + ListComputeGlobalImageCapabilitySchemaVersionsSortOrderAsc ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum = "ASC" + ListComputeGlobalImageCapabilitySchemaVersionsSortOrderDesc ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum = "DESC" +) + +var mappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum = map[string]ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum{ + "ASC": ListComputeGlobalImageCapabilitySchemaVersionsSortOrderAsc, + "DESC": ListComputeGlobalImageCapabilitySchemaVersionsSortOrderDesc, +} + +var mappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumLowerCase = map[string]ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum{ + "asc": ListComputeGlobalImageCapabilitySchemaVersionsSortOrderAsc, + "desc": ListComputeGlobalImageCapabilitySchemaVersionsSortOrderDesc, +} + +// GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum +func GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumValues() []ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum { + values := make([]ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum, 0) + for _, v := range mappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumStringValues Enumerates the set of values in String for ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum +func GetListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum(val string) (ListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnum, bool) { + enum, ok := mappingListComputeGlobalImageCapabilitySchemaVersionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schemas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schemas_request_response.go new file mode 100644 index 0000000000..9ac7d449c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_global_image_capability_schemas_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeGlobalImageCapabilitySchemasRequest wrapper for the ListComputeGlobalImageCapabilitySchemas operation +type ListComputeGlobalImageCapabilitySchemasRequest struct { + + // A filter to return only resources that match the given compartment OCID exactly. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeGlobalImageCapabilitySchemasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeGlobalImageCapabilitySchemasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeGlobalImageCapabilitySchemasRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeGlobalImageCapabilitySchemasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeGlobalImageCapabilitySchemasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeGlobalImageCapabilitySchemasRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeGlobalImageCapabilitySchemasRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeGlobalImageCapabilitySchemasSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeGlobalImageCapabilitySchemasSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeGlobalImageCapabilitySchemasSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeGlobalImageCapabilitySchemasSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeGlobalImageCapabilitySchemasResponse wrapper for the ListComputeGlobalImageCapabilitySchemas operation +type ListComputeGlobalImageCapabilitySchemasResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ComputeGlobalImageCapabilitySchemaSummary instances + Items []ComputeGlobalImageCapabilitySchemaSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeGlobalImageCapabilitySchemasResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeGlobalImageCapabilitySchemasResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeGlobalImageCapabilitySchemasSortByEnum Enum with underlying type: string +type ListComputeGlobalImageCapabilitySchemasSortByEnum string + +// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemasSortByEnum +const ( + ListComputeGlobalImageCapabilitySchemasSortByTimecreated ListComputeGlobalImageCapabilitySchemasSortByEnum = "TIMECREATED" + ListComputeGlobalImageCapabilitySchemasSortByDisplayname ListComputeGlobalImageCapabilitySchemasSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeGlobalImageCapabilitySchemasSortByEnum = map[string]ListComputeGlobalImageCapabilitySchemasSortByEnum{ + "TIMECREATED": ListComputeGlobalImageCapabilitySchemasSortByTimecreated, + "DISPLAYNAME": ListComputeGlobalImageCapabilitySchemasSortByDisplayname, +} + +var mappingListComputeGlobalImageCapabilitySchemasSortByEnumLowerCase = map[string]ListComputeGlobalImageCapabilitySchemasSortByEnum{ + "timecreated": ListComputeGlobalImageCapabilitySchemasSortByTimecreated, + "displayname": ListComputeGlobalImageCapabilitySchemasSortByDisplayname, +} + +// GetListComputeGlobalImageCapabilitySchemasSortByEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemasSortByEnum +func GetListComputeGlobalImageCapabilitySchemasSortByEnumValues() []ListComputeGlobalImageCapabilitySchemasSortByEnum { + values := make([]ListComputeGlobalImageCapabilitySchemasSortByEnum, 0) + for _, v := range mappingListComputeGlobalImageCapabilitySchemasSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGlobalImageCapabilitySchemasSortByEnumStringValues Enumerates the set of values in String for ListComputeGlobalImageCapabilitySchemasSortByEnum +func GetListComputeGlobalImageCapabilitySchemasSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeGlobalImageCapabilitySchemasSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGlobalImageCapabilitySchemasSortByEnum(val string) (ListComputeGlobalImageCapabilitySchemasSortByEnum, bool) { + enum, ok := mappingListComputeGlobalImageCapabilitySchemasSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeGlobalImageCapabilitySchemasSortOrderEnum Enum with underlying type: string +type ListComputeGlobalImageCapabilitySchemasSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeGlobalImageCapabilitySchemasSortOrderEnum +const ( + ListComputeGlobalImageCapabilitySchemasSortOrderAsc ListComputeGlobalImageCapabilitySchemasSortOrderEnum = "ASC" + ListComputeGlobalImageCapabilitySchemasSortOrderDesc ListComputeGlobalImageCapabilitySchemasSortOrderEnum = "DESC" +) + +var mappingListComputeGlobalImageCapabilitySchemasSortOrderEnum = map[string]ListComputeGlobalImageCapabilitySchemasSortOrderEnum{ + "ASC": ListComputeGlobalImageCapabilitySchemasSortOrderAsc, + "DESC": ListComputeGlobalImageCapabilitySchemasSortOrderDesc, +} + +var mappingListComputeGlobalImageCapabilitySchemasSortOrderEnumLowerCase = map[string]ListComputeGlobalImageCapabilitySchemasSortOrderEnum{ + "asc": ListComputeGlobalImageCapabilitySchemasSortOrderAsc, + "desc": ListComputeGlobalImageCapabilitySchemasSortOrderDesc, +} + +// GetListComputeGlobalImageCapabilitySchemasSortOrderEnumValues Enumerates the set of values for ListComputeGlobalImageCapabilitySchemasSortOrderEnum +func GetListComputeGlobalImageCapabilitySchemasSortOrderEnumValues() []ListComputeGlobalImageCapabilitySchemasSortOrderEnum { + values := make([]ListComputeGlobalImageCapabilitySchemasSortOrderEnum, 0) + for _, v := range mappingListComputeGlobalImageCapabilitySchemasSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeGlobalImageCapabilitySchemasSortOrderEnumStringValues Enumerates the set of values in String for ListComputeGlobalImageCapabilitySchemasSortOrderEnum +func GetListComputeGlobalImageCapabilitySchemasSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeGlobalImageCapabilitySchemasSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeGlobalImageCapabilitySchemasSortOrderEnum(val string) (ListComputeGlobalImageCapabilitySchemasSortOrderEnum, bool) { + enum, ok := mappingListComputeGlobalImageCapabilitySchemasSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_image_capability_schemas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_image_capability_schemas_request_response.go new file mode 100644 index 0000000000..3b258b5cbf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_compute_image_capability_schemas_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListComputeImageCapabilitySchemasRequest wrapper for the ListComputeImageCapabilitySchemas operation +type ListComputeImageCapabilitySchemasRequest struct { + + // A filter to return only resources that match the given compartment OCID exactly. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an image. + ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListComputeImageCapabilitySchemasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListComputeImageCapabilitySchemasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListComputeImageCapabilitySchemasRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListComputeImageCapabilitySchemasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListComputeImageCapabilitySchemasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListComputeImageCapabilitySchemasRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListComputeImageCapabilitySchemasRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListComputeImageCapabilitySchemasSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListComputeImageCapabilitySchemasSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListComputeImageCapabilitySchemasSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListComputeImageCapabilitySchemasSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListComputeImageCapabilitySchemasResponse wrapper for the ListComputeImageCapabilitySchemas operation +type ListComputeImageCapabilitySchemasResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ComputeImageCapabilitySchemaSummary instances + Items []ComputeImageCapabilitySchemaSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListComputeImageCapabilitySchemasResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListComputeImageCapabilitySchemasResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListComputeImageCapabilitySchemasSortByEnum Enum with underlying type: string +type ListComputeImageCapabilitySchemasSortByEnum string + +// Set of constants representing the allowable values for ListComputeImageCapabilitySchemasSortByEnum +const ( + ListComputeImageCapabilitySchemasSortByTimecreated ListComputeImageCapabilitySchemasSortByEnum = "TIMECREATED" + ListComputeImageCapabilitySchemasSortByDisplayname ListComputeImageCapabilitySchemasSortByEnum = "DISPLAYNAME" +) + +var mappingListComputeImageCapabilitySchemasSortByEnum = map[string]ListComputeImageCapabilitySchemasSortByEnum{ + "TIMECREATED": ListComputeImageCapabilitySchemasSortByTimecreated, + "DISPLAYNAME": ListComputeImageCapabilitySchemasSortByDisplayname, +} + +var mappingListComputeImageCapabilitySchemasSortByEnumLowerCase = map[string]ListComputeImageCapabilitySchemasSortByEnum{ + "timecreated": ListComputeImageCapabilitySchemasSortByTimecreated, + "displayname": ListComputeImageCapabilitySchemasSortByDisplayname, +} + +// GetListComputeImageCapabilitySchemasSortByEnumValues Enumerates the set of values for ListComputeImageCapabilitySchemasSortByEnum +func GetListComputeImageCapabilitySchemasSortByEnumValues() []ListComputeImageCapabilitySchemasSortByEnum { + values := make([]ListComputeImageCapabilitySchemasSortByEnum, 0) + for _, v := range mappingListComputeImageCapabilitySchemasSortByEnum { + values = append(values, v) + } + return values +} + +// GetListComputeImageCapabilitySchemasSortByEnumStringValues Enumerates the set of values in String for ListComputeImageCapabilitySchemasSortByEnum +func GetListComputeImageCapabilitySchemasSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListComputeImageCapabilitySchemasSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeImageCapabilitySchemasSortByEnum(val string) (ListComputeImageCapabilitySchemasSortByEnum, bool) { + enum, ok := mappingListComputeImageCapabilitySchemasSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListComputeImageCapabilitySchemasSortOrderEnum Enum with underlying type: string +type ListComputeImageCapabilitySchemasSortOrderEnum string + +// Set of constants representing the allowable values for ListComputeImageCapabilitySchemasSortOrderEnum +const ( + ListComputeImageCapabilitySchemasSortOrderAsc ListComputeImageCapabilitySchemasSortOrderEnum = "ASC" + ListComputeImageCapabilitySchemasSortOrderDesc ListComputeImageCapabilitySchemasSortOrderEnum = "DESC" +) + +var mappingListComputeImageCapabilitySchemasSortOrderEnum = map[string]ListComputeImageCapabilitySchemasSortOrderEnum{ + "ASC": ListComputeImageCapabilitySchemasSortOrderAsc, + "DESC": ListComputeImageCapabilitySchemasSortOrderDesc, +} + +var mappingListComputeImageCapabilitySchemasSortOrderEnumLowerCase = map[string]ListComputeImageCapabilitySchemasSortOrderEnum{ + "asc": ListComputeImageCapabilitySchemasSortOrderAsc, + "desc": ListComputeImageCapabilitySchemasSortOrderDesc, +} + +// GetListComputeImageCapabilitySchemasSortOrderEnumValues Enumerates the set of values for ListComputeImageCapabilitySchemasSortOrderEnum +func GetListComputeImageCapabilitySchemasSortOrderEnumValues() []ListComputeImageCapabilitySchemasSortOrderEnum { + values := make([]ListComputeImageCapabilitySchemasSortOrderEnum, 0) + for _, v := range mappingListComputeImageCapabilitySchemasSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListComputeImageCapabilitySchemasSortOrderEnumStringValues Enumerates the set of values in String for ListComputeImageCapabilitySchemasSortOrderEnum +func GetListComputeImageCapabilitySchemasSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListComputeImageCapabilitySchemasSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListComputeImageCapabilitySchemasSortOrderEnum(val string) (ListComputeImageCapabilitySchemasSortOrderEnum, bool) { + enum, ok := mappingListComputeImageCapabilitySchemasSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_console_histories_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_console_histories_request_response.go new file mode 100644 index 0000000000..4218465e07 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_console_histories_request_response.go @@ -0,0 +1,220 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListConsoleHistoriesRequest wrapper for the ListConsoleHistories operation +type ListConsoleHistoriesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID of the instance. + InstanceId *string `mandatory:"false" contributesTo:"query" name:"instanceId"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListConsoleHistoriesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListConsoleHistoriesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState ConsoleHistoryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListConsoleHistoriesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListConsoleHistoriesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListConsoleHistoriesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListConsoleHistoriesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListConsoleHistoriesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListConsoleHistoriesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListConsoleHistoriesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListConsoleHistoriesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListConsoleHistoriesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingConsoleHistoryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetConsoleHistoryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListConsoleHistoriesResponse wrapper for the ListConsoleHistories operation +type ListConsoleHistoriesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ConsoleHistory instances + Items []ConsoleHistory `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListConsoleHistoriesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListConsoleHistoriesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListConsoleHistoriesSortByEnum Enum with underlying type: string +type ListConsoleHistoriesSortByEnum string + +// Set of constants representing the allowable values for ListConsoleHistoriesSortByEnum +const ( + ListConsoleHistoriesSortByTimecreated ListConsoleHistoriesSortByEnum = "TIMECREATED" + ListConsoleHistoriesSortByDisplayname ListConsoleHistoriesSortByEnum = "DISPLAYNAME" +) + +var mappingListConsoleHistoriesSortByEnum = map[string]ListConsoleHistoriesSortByEnum{ + "TIMECREATED": ListConsoleHistoriesSortByTimecreated, + "DISPLAYNAME": ListConsoleHistoriesSortByDisplayname, +} + +var mappingListConsoleHistoriesSortByEnumLowerCase = map[string]ListConsoleHistoriesSortByEnum{ + "timecreated": ListConsoleHistoriesSortByTimecreated, + "displayname": ListConsoleHistoriesSortByDisplayname, +} + +// GetListConsoleHistoriesSortByEnumValues Enumerates the set of values for ListConsoleHistoriesSortByEnum +func GetListConsoleHistoriesSortByEnumValues() []ListConsoleHistoriesSortByEnum { + values := make([]ListConsoleHistoriesSortByEnum, 0) + for _, v := range mappingListConsoleHistoriesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListConsoleHistoriesSortByEnumStringValues Enumerates the set of values in String for ListConsoleHistoriesSortByEnum +func GetListConsoleHistoriesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListConsoleHistoriesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListConsoleHistoriesSortByEnum(val string) (ListConsoleHistoriesSortByEnum, bool) { + enum, ok := mappingListConsoleHistoriesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListConsoleHistoriesSortOrderEnum Enum with underlying type: string +type ListConsoleHistoriesSortOrderEnum string + +// Set of constants representing the allowable values for ListConsoleHistoriesSortOrderEnum +const ( + ListConsoleHistoriesSortOrderAsc ListConsoleHistoriesSortOrderEnum = "ASC" + ListConsoleHistoriesSortOrderDesc ListConsoleHistoriesSortOrderEnum = "DESC" +) + +var mappingListConsoleHistoriesSortOrderEnum = map[string]ListConsoleHistoriesSortOrderEnum{ + "ASC": ListConsoleHistoriesSortOrderAsc, + "DESC": ListConsoleHistoriesSortOrderDesc, +} + +var mappingListConsoleHistoriesSortOrderEnumLowerCase = map[string]ListConsoleHistoriesSortOrderEnum{ + "asc": ListConsoleHistoriesSortOrderAsc, + "desc": ListConsoleHistoriesSortOrderDesc, +} + +// GetListConsoleHistoriesSortOrderEnumValues Enumerates the set of values for ListConsoleHistoriesSortOrderEnum +func GetListConsoleHistoriesSortOrderEnumValues() []ListConsoleHistoriesSortOrderEnum { + values := make([]ListConsoleHistoriesSortOrderEnum, 0) + for _, v := range mappingListConsoleHistoriesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListConsoleHistoriesSortOrderEnumStringValues Enumerates the set of values in String for ListConsoleHistoriesSortOrderEnum +func GetListConsoleHistoriesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListConsoleHistoriesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListConsoleHistoriesSortOrderEnum(val string) (ListConsoleHistoriesSortOrderEnum, bool) { + enum, ok := mappingListConsoleHistoriesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cpe_device_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpe_device_shapes_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_cpe_device_shapes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpe_device_shapes_request_response.go index 7072f16536..b2b93d26d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cpe_device_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpe_device_shapes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCpeDeviceShapesRequest wrapper for the ListCpeDeviceShapes operation @@ -39,6 +41,10 @@ func (request ListCpeDeviceShapesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCpeDeviceShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request ListCpeDeviceShapesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCpeDeviceShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCpeDeviceShapesResponse wrapper for the ListCpeDeviceShapes operation type ListCpeDeviceShapesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cpes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_cpes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go index bb5d871a8d..8fa3fc0ebb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cpes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cpes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCpesRequest wrapper for the ListCpes operation @@ -42,6 +44,10 @@ func (request ListCpesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCpesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListCpesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCpesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCpesResponse wrapper for the ListCpes operation type ListCpesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_groups_request_response.go new file mode 100644 index 0000000000..58d5970ded --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_groups_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCrossConnectGroupsRequest wrapper for the ListCrossConnectGroups operation +type ListCrossConnectGroupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListCrossConnectGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListCrossConnectGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState CrossConnectGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCrossConnectGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCrossConnectGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCrossConnectGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCrossConnectGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCrossConnectGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCrossConnectGroupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCrossConnectGroupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListCrossConnectGroupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCrossConnectGroupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingCrossConnectGroupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCrossConnectGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCrossConnectGroupsResponse wrapper for the ListCrossConnectGroups operation +type ListCrossConnectGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []CrossConnectGroup instances + Items []CrossConnectGroup `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListCrossConnectGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCrossConnectGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCrossConnectGroupsSortByEnum Enum with underlying type: string +type ListCrossConnectGroupsSortByEnum string + +// Set of constants representing the allowable values for ListCrossConnectGroupsSortByEnum +const ( + ListCrossConnectGroupsSortByTimecreated ListCrossConnectGroupsSortByEnum = "TIMECREATED" + ListCrossConnectGroupsSortByDisplayname ListCrossConnectGroupsSortByEnum = "DISPLAYNAME" +) + +var mappingListCrossConnectGroupsSortByEnum = map[string]ListCrossConnectGroupsSortByEnum{ + "TIMECREATED": ListCrossConnectGroupsSortByTimecreated, + "DISPLAYNAME": ListCrossConnectGroupsSortByDisplayname, +} + +var mappingListCrossConnectGroupsSortByEnumLowerCase = map[string]ListCrossConnectGroupsSortByEnum{ + "timecreated": ListCrossConnectGroupsSortByTimecreated, + "displayname": ListCrossConnectGroupsSortByDisplayname, +} + +// GetListCrossConnectGroupsSortByEnumValues Enumerates the set of values for ListCrossConnectGroupsSortByEnum +func GetListCrossConnectGroupsSortByEnumValues() []ListCrossConnectGroupsSortByEnum { + values := make([]ListCrossConnectGroupsSortByEnum, 0) + for _, v := range mappingListCrossConnectGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListCrossConnectGroupsSortByEnumStringValues Enumerates the set of values in String for ListCrossConnectGroupsSortByEnum +func GetListCrossConnectGroupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListCrossConnectGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCrossConnectGroupsSortByEnum(val string) (ListCrossConnectGroupsSortByEnum, bool) { + enum, ok := mappingListCrossConnectGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCrossConnectGroupsSortOrderEnum Enum with underlying type: string +type ListCrossConnectGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListCrossConnectGroupsSortOrderEnum +const ( + ListCrossConnectGroupsSortOrderAsc ListCrossConnectGroupsSortOrderEnum = "ASC" + ListCrossConnectGroupsSortOrderDesc ListCrossConnectGroupsSortOrderEnum = "DESC" +) + +var mappingListCrossConnectGroupsSortOrderEnum = map[string]ListCrossConnectGroupsSortOrderEnum{ + "ASC": ListCrossConnectGroupsSortOrderAsc, + "DESC": ListCrossConnectGroupsSortOrderDesc, +} + +var mappingListCrossConnectGroupsSortOrderEnumLowerCase = map[string]ListCrossConnectGroupsSortOrderEnum{ + "asc": ListCrossConnectGroupsSortOrderAsc, + "desc": ListCrossConnectGroupsSortOrderDesc, +} + +// GetListCrossConnectGroupsSortOrderEnumValues Enumerates the set of values for ListCrossConnectGroupsSortOrderEnum +func GetListCrossConnectGroupsSortOrderEnumValues() []ListCrossConnectGroupsSortOrderEnum { + values := make([]ListCrossConnectGroupsSortOrderEnum, 0) + for _, v := range mappingListCrossConnectGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCrossConnectGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListCrossConnectGroupsSortOrderEnum +func GetListCrossConnectGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCrossConnectGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCrossConnectGroupsSortOrderEnum(val string) (ListCrossConnectGroupsSortOrderEnum, bool) { + enum, ok := mappingListCrossConnectGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_locations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_locations_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_locations_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_locations_request_response.go index 50b2629146..7e5641c80c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_locations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_locations_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCrossConnectLocationsRequest wrapper for the ListCrossConnectLocations operation @@ -42,6 +44,10 @@ func (request ListCrossConnectLocationsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCrossConnectLocationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListCrossConnectLocationsRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCrossConnectLocationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCrossConnectLocationsResponse wrapper for the ListCrossConnectLocations operation type ListCrossConnectLocationsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_mappings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_mappings_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_mappings_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_mappings_request_response.go index 2933709aa9..649d9c9745 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_cross_connect_mappings_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connect_mappings_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCrossConnectMappingsRequest wrapper for the ListCrossConnectMappings operation type ListCrossConnectMappingsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Unique identifier for the request. @@ -31,6 +33,10 @@ func (request ListCrossConnectMappingsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCrossConnectMappingsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListCrossConnectMappingsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCrossConnectMappingsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCrossConnectMappingsResponse wrapper for the ListCrossConnectMappings operation type ListCrossConnectMappingsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connects_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connects_request_response.go new file mode 100644 index 0000000000..fedf9c8aec --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_cross_connects_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCrossConnectsRequest wrapper for the ListCrossConnects operation +type ListCrossConnectsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. + CrossConnectGroupId *string `mandatory:"false" contributesTo:"query" name:"crossConnectGroupId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListCrossConnectsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListCrossConnectsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState CrossConnectLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCrossConnectsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCrossConnectsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCrossConnectsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCrossConnectsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCrossConnectsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCrossConnectsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCrossConnectsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListCrossConnectsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCrossConnectsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingCrossConnectLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCrossConnectLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCrossConnectsResponse wrapper for the ListCrossConnects operation +type ListCrossConnectsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []CrossConnect instances + Items []CrossConnect `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListCrossConnectsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCrossConnectsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCrossConnectsSortByEnum Enum with underlying type: string +type ListCrossConnectsSortByEnum string + +// Set of constants representing the allowable values for ListCrossConnectsSortByEnum +const ( + ListCrossConnectsSortByTimecreated ListCrossConnectsSortByEnum = "TIMECREATED" + ListCrossConnectsSortByDisplayname ListCrossConnectsSortByEnum = "DISPLAYNAME" +) + +var mappingListCrossConnectsSortByEnum = map[string]ListCrossConnectsSortByEnum{ + "TIMECREATED": ListCrossConnectsSortByTimecreated, + "DISPLAYNAME": ListCrossConnectsSortByDisplayname, +} + +var mappingListCrossConnectsSortByEnumLowerCase = map[string]ListCrossConnectsSortByEnum{ + "timecreated": ListCrossConnectsSortByTimecreated, + "displayname": ListCrossConnectsSortByDisplayname, +} + +// GetListCrossConnectsSortByEnumValues Enumerates the set of values for ListCrossConnectsSortByEnum +func GetListCrossConnectsSortByEnumValues() []ListCrossConnectsSortByEnum { + values := make([]ListCrossConnectsSortByEnum, 0) + for _, v := range mappingListCrossConnectsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListCrossConnectsSortByEnumStringValues Enumerates the set of values in String for ListCrossConnectsSortByEnum +func GetListCrossConnectsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListCrossConnectsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCrossConnectsSortByEnum(val string) (ListCrossConnectsSortByEnum, bool) { + enum, ok := mappingListCrossConnectsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCrossConnectsSortOrderEnum Enum with underlying type: string +type ListCrossConnectsSortOrderEnum string + +// Set of constants representing the allowable values for ListCrossConnectsSortOrderEnum +const ( + ListCrossConnectsSortOrderAsc ListCrossConnectsSortOrderEnum = "ASC" + ListCrossConnectsSortOrderDesc ListCrossConnectsSortOrderEnum = "DESC" +) + +var mappingListCrossConnectsSortOrderEnum = map[string]ListCrossConnectsSortOrderEnum{ + "ASC": ListCrossConnectsSortOrderAsc, + "DESC": ListCrossConnectsSortOrderDesc, +} + +var mappingListCrossConnectsSortOrderEnumLowerCase = map[string]ListCrossConnectsSortOrderEnum{ + "asc": ListCrossConnectsSortOrderAsc, + "desc": ListCrossConnectsSortOrderDesc, +} + +// GetListCrossConnectsSortOrderEnumValues Enumerates the set of values for ListCrossConnectsSortOrderEnum +func GetListCrossConnectsSortOrderEnumValues() []ListCrossConnectsSortOrderEnum { + values := make([]ListCrossConnectsSortOrderEnum, 0) + for _, v := range mappingListCrossConnectsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCrossConnectsSortOrderEnumStringValues Enumerates the set of values in String for ListCrossConnectsSortOrderEnum +func GetListCrossConnectsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCrossConnectsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCrossConnectsSortOrderEnum(val string) (ListCrossConnectsSortOrderEnum, bool) { + enum, ok := mappingListCrossConnectsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_crossconnect_port_speed_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_crossconnect_port_speed_shapes_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_crossconnect_port_speed_shapes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_crossconnect_port_speed_shapes_request_response.go index 8e6e9efdd8..3b30a78f68 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_crossconnect_port_speed_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_crossconnect_port_speed_shapes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCrossconnectPortSpeedShapesRequest wrapper for the ListCrossconnectPortSpeedShapes operation @@ -42,6 +44,10 @@ func (request ListCrossconnectPortSpeedShapesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCrossconnectPortSpeedShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListCrossconnectPortSpeedShapesRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCrossconnectPortSpeedShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCrossconnectPortSpeedShapesResponse wrapper for the ListCrossconnectPortSpeedShapes operation type ListCrossconnectPortSpeedShapesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_davs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_davs_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_davs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_davs_request_response.go index ed566cf40b..8c6cdf1fd1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_davs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_davs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListDavsRequest wrapper for the ListDavs operation @@ -42,6 +44,10 @@ func (request ListDavsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListDavsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListDavsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDavsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListDavsResponse wrapper for the ListDavs operation type ListDavsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instance_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instance_shapes_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instance_shapes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instance_shapes_request_response.go index 63d073455b..9cc2747006 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_instance_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instance_shapes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListDedicatedVmHostInstanceShapesRequest wrapper for the ListDedicatedVmHostInstanceShapes operation @@ -49,6 +51,10 @@ func (request ListDedicatedVmHostInstanceShapesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListDedicatedVmHostInstanceShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request ListDedicatedVmHostInstanceShapesRequest) RetryPolicy() *common.Re return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDedicatedVmHostInstanceShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListDedicatedVmHostInstanceShapesResponse wrapper for the ListDedicatedVmHostInstanceShapes operation type ListDedicatedVmHostInstanceShapesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instances_request_response.go new file mode 100644 index 0000000000..ac35b110e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_instances_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDedicatedVmHostInstancesRequest wrapper for the ListDedicatedVmHostInstances operation +type ListDedicatedVmHostInstancesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the dedicated VM host. + DedicatedVmHostId *string `mandatory:"true" contributesTo:"path" name:"dedicatedVmHostId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDedicatedVmHostInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDedicatedVmHostInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDedicatedVmHostInstancesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDedicatedVmHostInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDedicatedVmHostInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDedicatedVmHostInstancesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDedicatedVmHostInstancesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDedicatedVmHostInstancesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDedicatedVmHostInstancesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDedicatedVmHostInstancesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDedicatedVmHostInstancesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDedicatedVmHostInstancesResponse wrapper for the ListDedicatedVmHostInstances operation +type ListDedicatedVmHostInstancesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DedicatedVmHostInstanceSummary instances + Items []DedicatedVmHostInstanceSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDedicatedVmHostInstancesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDedicatedVmHostInstancesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDedicatedVmHostInstancesSortByEnum Enum with underlying type: string +type ListDedicatedVmHostInstancesSortByEnum string + +// Set of constants representing the allowable values for ListDedicatedVmHostInstancesSortByEnum +const ( + ListDedicatedVmHostInstancesSortByTimecreated ListDedicatedVmHostInstancesSortByEnum = "TIMECREATED" + ListDedicatedVmHostInstancesSortByDisplayname ListDedicatedVmHostInstancesSortByEnum = "DISPLAYNAME" +) + +var mappingListDedicatedVmHostInstancesSortByEnum = map[string]ListDedicatedVmHostInstancesSortByEnum{ + "TIMECREATED": ListDedicatedVmHostInstancesSortByTimecreated, + "DISPLAYNAME": ListDedicatedVmHostInstancesSortByDisplayname, +} + +var mappingListDedicatedVmHostInstancesSortByEnumLowerCase = map[string]ListDedicatedVmHostInstancesSortByEnum{ + "timecreated": ListDedicatedVmHostInstancesSortByTimecreated, + "displayname": ListDedicatedVmHostInstancesSortByDisplayname, +} + +// GetListDedicatedVmHostInstancesSortByEnumValues Enumerates the set of values for ListDedicatedVmHostInstancesSortByEnum +func GetListDedicatedVmHostInstancesSortByEnumValues() []ListDedicatedVmHostInstancesSortByEnum { + values := make([]ListDedicatedVmHostInstancesSortByEnum, 0) + for _, v := range mappingListDedicatedVmHostInstancesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDedicatedVmHostInstancesSortByEnumStringValues Enumerates the set of values in String for ListDedicatedVmHostInstancesSortByEnum +func GetListDedicatedVmHostInstancesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDedicatedVmHostInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDedicatedVmHostInstancesSortByEnum(val string) (ListDedicatedVmHostInstancesSortByEnum, bool) { + enum, ok := mappingListDedicatedVmHostInstancesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDedicatedVmHostInstancesSortOrderEnum Enum with underlying type: string +type ListDedicatedVmHostInstancesSortOrderEnum string + +// Set of constants representing the allowable values for ListDedicatedVmHostInstancesSortOrderEnum +const ( + ListDedicatedVmHostInstancesSortOrderAsc ListDedicatedVmHostInstancesSortOrderEnum = "ASC" + ListDedicatedVmHostInstancesSortOrderDesc ListDedicatedVmHostInstancesSortOrderEnum = "DESC" +) + +var mappingListDedicatedVmHostInstancesSortOrderEnum = map[string]ListDedicatedVmHostInstancesSortOrderEnum{ + "ASC": ListDedicatedVmHostInstancesSortOrderAsc, + "DESC": ListDedicatedVmHostInstancesSortOrderDesc, +} + +var mappingListDedicatedVmHostInstancesSortOrderEnumLowerCase = map[string]ListDedicatedVmHostInstancesSortOrderEnum{ + "asc": ListDedicatedVmHostInstancesSortOrderAsc, + "desc": ListDedicatedVmHostInstancesSortOrderDesc, +} + +// GetListDedicatedVmHostInstancesSortOrderEnumValues Enumerates the set of values for ListDedicatedVmHostInstancesSortOrderEnum +func GetListDedicatedVmHostInstancesSortOrderEnumValues() []ListDedicatedVmHostInstancesSortOrderEnum { + values := make([]ListDedicatedVmHostInstancesSortOrderEnum, 0) + for _, v := range mappingListDedicatedVmHostInstancesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDedicatedVmHostInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListDedicatedVmHostInstancesSortOrderEnum +func GetListDedicatedVmHostInstancesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDedicatedVmHostInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDedicatedVmHostInstancesSortOrderEnum(val string) (ListDedicatedVmHostInstancesSortOrderEnum, bool) { + enum, ok := mappingListDedicatedVmHostInstancesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_shapes_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_shapes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_shapes_request_response.go index 672aef4714..58c1eacc79 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_dedicated_vm_host_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_host_shapes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListDedicatedVmHostShapesRequest wrapper for the ListDedicatedVmHostShapes operation @@ -49,6 +51,10 @@ func (request ListDedicatedVmHostShapesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListDedicatedVmHostShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request ListDedicatedVmHostShapesRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDedicatedVmHostShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListDedicatedVmHostShapesResponse wrapper for the ListDedicatedVmHostShapes operation type ListDedicatedVmHostShapesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_hosts_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_hosts_request_response.go new file mode 100644 index 0000000000..2c6b63b308 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dedicated_vm_hosts_request_response.go @@ -0,0 +1,286 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDedicatedVmHostsRequest wrapper for the ListDedicatedVmHosts operation +type ListDedicatedVmHostsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // A filter to only return resources that match the given lifecycle state. + LifecycleState ListDedicatedVmHostsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The name for the instance's shape. + InstanceShapeName *string `mandatory:"false" contributesTo:"query" name:"instanceShapeName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDedicatedVmHostsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDedicatedVmHostsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The remaining memory of the dedicated VM host, in GBs. + RemainingMemoryInGBsGreaterThanOrEqualTo *float32 `mandatory:"false" contributesTo:"query" name:"remainingMemoryInGBsGreaterThanOrEqualTo"` + + // The available OCPUs of the dedicated VM host. + RemainingOcpusGreaterThanOrEqualTo *float32 `mandatory:"false" contributesTo:"query" name:"remainingOcpusGreaterThanOrEqualTo"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDedicatedVmHostsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDedicatedVmHostsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDedicatedVmHostsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDedicatedVmHostsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDedicatedVmHostsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDedicatedVmHostsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListDedicatedVmHostsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListDedicatedVmHostsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDedicatedVmHostsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDedicatedVmHostsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDedicatedVmHostsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDedicatedVmHostsResponse wrapper for the ListDedicatedVmHosts operation +type ListDedicatedVmHostsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DedicatedVmHostSummary instances + Items []DedicatedVmHostSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDedicatedVmHostsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDedicatedVmHostsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDedicatedVmHostsLifecycleStateEnum Enum with underlying type: string +type ListDedicatedVmHostsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListDedicatedVmHostsLifecycleStateEnum +const ( + ListDedicatedVmHostsLifecycleStateCreating ListDedicatedVmHostsLifecycleStateEnum = "CREATING" + ListDedicatedVmHostsLifecycleStateActive ListDedicatedVmHostsLifecycleStateEnum = "ACTIVE" + ListDedicatedVmHostsLifecycleStateUpdating ListDedicatedVmHostsLifecycleStateEnum = "UPDATING" + ListDedicatedVmHostsLifecycleStateDeleting ListDedicatedVmHostsLifecycleStateEnum = "DELETING" + ListDedicatedVmHostsLifecycleStateDeleted ListDedicatedVmHostsLifecycleStateEnum = "DELETED" + ListDedicatedVmHostsLifecycleStateFailed ListDedicatedVmHostsLifecycleStateEnum = "FAILED" +) + +var mappingListDedicatedVmHostsLifecycleStateEnum = map[string]ListDedicatedVmHostsLifecycleStateEnum{ + "CREATING": ListDedicatedVmHostsLifecycleStateCreating, + "ACTIVE": ListDedicatedVmHostsLifecycleStateActive, + "UPDATING": ListDedicatedVmHostsLifecycleStateUpdating, + "DELETING": ListDedicatedVmHostsLifecycleStateDeleting, + "DELETED": ListDedicatedVmHostsLifecycleStateDeleted, + "FAILED": ListDedicatedVmHostsLifecycleStateFailed, +} + +var mappingListDedicatedVmHostsLifecycleStateEnumLowerCase = map[string]ListDedicatedVmHostsLifecycleStateEnum{ + "creating": ListDedicatedVmHostsLifecycleStateCreating, + "active": ListDedicatedVmHostsLifecycleStateActive, + "updating": ListDedicatedVmHostsLifecycleStateUpdating, + "deleting": ListDedicatedVmHostsLifecycleStateDeleting, + "deleted": ListDedicatedVmHostsLifecycleStateDeleted, + "failed": ListDedicatedVmHostsLifecycleStateFailed, +} + +// GetListDedicatedVmHostsLifecycleStateEnumValues Enumerates the set of values for ListDedicatedVmHostsLifecycleStateEnum +func GetListDedicatedVmHostsLifecycleStateEnumValues() []ListDedicatedVmHostsLifecycleStateEnum { + values := make([]ListDedicatedVmHostsLifecycleStateEnum, 0) + for _, v := range mappingListDedicatedVmHostsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListDedicatedVmHostsLifecycleStateEnumStringValues Enumerates the set of values in String for ListDedicatedVmHostsLifecycleStateEnum +func GetListDedicatedVmHostsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListDedicatedVmHostsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDedicatedVmHostsLifecycleStateEnum(val string) (ListDedicatedVmHostsLifecycleStateEnum, bool) { + enum, ok := mappingListDedicatedVmHostsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDedicatedVmHostsSortByEnum Enum with underlying type: string +type ListDedicatedVmHostsSortByEnum string + +// Set of constants representing the allowable values for ListDedicatedVmHostsSortByEnum +const ( + ListDedicatedVmHostsSortByTimecreated ListDedicatedVmHostsSortByEnum = "TIMECREATED" + ListDedicatedVmHostsSortByDisplayname ListDedicatedVmHostsSortByEnum = "DISPLAYNAME" +) + +var mappingListDedicatedVmHostsSortByEnum = map[string]ListDedicatedVmHostsSortByEnum{ + "TIMECREATED": ListDedicatedVmHostsSortByTimecreated, + "DISPLAYNAME": ListDedicatedVmHostsSortByDisplayname, +} + +var mappingListDedicatedVmHostsSortByEnumLowerCase = map[string]ListDedicatedVmHostsSortByEnum{ + "timecreated": ListDedicatedVmHostsSortByTimecreated, + "displayname": ListDedicatedVmHostsSortByDisplayname, +} + +// GetListDedicatedVmHostsSortByEnumValues Enumerates the set of values for ListDedicatedVmHostsSortByEnum +func GetListDedicatedVmHostsSortByEnumValues() []ListDedicatedVmHostsSortByEnum { + values := make([]ListDedicatedVmHostsSortByEnum, 0) + for _, v := range mappingListDedicatedVmHostsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDedicatedVmHostsSortByEnumStringValues Enumerates the set of values in String for ListDedicatedVmHostsSortByEnum +func GetListDedicatedVmHostsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDedicatedVmHostsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDedicatedVmHostsSortByEnum(val string) (ListDedicatedVmHostsSortByEnum, bool) { + enum, ok := mappingListDedicatedVmHostsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDedicatedVmHostsSortOrderEnum Enum with underlying type: string +type ListDedicatedVmHostsSortOrderEnum string + +// Set of constants representing the allowable values for ListDedicatedVmHostsSortOrderEnum +const ( + ListDedicatedVmHostsSortOrderAsc ListDedicatedVmHostsSortOrderEnum = "ASC" + ListDedicatedVmHostsSortOrderDesc ListDedicatedVmHostsSortOrderEnum = "DESC" +) + +var mappingListDedicatedVmHostsSortOrderEnum = map[string]ListDedicatedVmHostsSortOrderEnum{ + "ASC": ListDedicatedVmHostsSortOrderAsc, + "DESC": ListDedicatedVmHostsSortOrderDesc, +} + +var mappingListDedicatedVmHostsSortOrderEnumLowerCase = map[string]ListDedicatedVmHostsSortOrderEnum{ + "asc": ListDedicatedVmHostsSortOrderAsc, + "desc": ListDedicatedVmHostsSortOrderDesc, +} + +// GetListDedicatedVmHostsSortOrderEnumValues Enumerates the set of values for ListDedicatedVmHostsSortOrderEnum +func GetListDedicatedVmHostsSortOrderEnumValues() []ListDedicatedVmHostsSortOrderEnum { + values := make([]ListDedicatedVmHostsSortOrderEnum, 0) + for _, v := range mappingListDedicatedVmHostsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDedicatedVmHostsSortOrderEnumStringValues Enumerates the set of values in String for ListDedicatedVmHostsSortOrderEnum +func GetListDedicatedVmHostsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDedicatedVmHostsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDedicatedVmHostsSortOrderEnum(val string) (ListDedicatedVmHostsSortOrderEnum, bool) { + enum, ok := mappingListDedicatedVmHostsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dhcp_options_request_response.go new file mode 100644 index 0000000000..a5b64d99b5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_dhcp_options_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDhcpOptionsRequest wrapper for the ListDhcpOptions operation +type ListDhcpOptionsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDhcpOptionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDhcpOptionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState DhcpOptionsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDhcpOptionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDhcpOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDhcpOptionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDhcpOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDhcpOptionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDhcpOptionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDhcpOptionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDhcpOptionsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDhcpOptionsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDhcpOptionsLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDhcpOptionsResponse wrapper for the ListDhcpOptions operation +type ListDhcpOptionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DhcpOptions instances + Items []DhcpOptions `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDhcpOptionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDhcpOptionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDhcpOptionsSortByEnum Enum with underlying type: string +type ListDhcpOptionsSortByEnum string + +// Set of constants representing the allowable values for ListDhcpOptionsSortByEnum +const ( + ListDhcpOptionsSortByTimecreated ListDhcpOptionsSortByEnum = "TIMECREATED" + ListDhcpOptionsSortByDisplayname ListDhcpOptionsSortByEnum = "DISPLAYNAME" +) + +var mappingListDhcpOptionsSortByEnum = map[string]ListDhcpOptionsSortByEnum{ + "TIMECREATED": ListDhcpOptionsSortByTimecreated, + "DISPLAYNAME": ListDhcpOptionsSortByDisplayname, +} + +var mappingListDhcpOptionsSortByEnumLowerCase = map[string]ListDhcpOptionsSortByEnum{ + "timecreated": ListDhcpOptionsSortByTimecreated, + "displayname": ListDhcpOptionsSortByDisplayname, +} + +// GetListDhcpOptionsSortByEnumValues Enumerates the set of values for ListDhcpOptionsSortByEnum +func GetListDhcpOptionsSortByEnumValues() []ListDhcpOptionsSortByEnum { + values := make([]ListDhcpOptionsSortByEnum, 0) + for _, v := range mappingListDhcpOptionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDhcpOptionsSortByEnumStringValues Enumerates the set of values in String for ListDhcpOptionsSortByEnum +func GetListDhcpOptionsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDhcpOptionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDhcpOptionsSortByEnum(val string) (ListDhcpOptionsSortByEnum, bool) { + enum, ok := mappingListDhcpOptionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDhcpOptionsSortOrderEnum Enum with underlying type: string +type ListDhcpOptionsSortOrderEnum string + +// Set of constants representing the allowable values for ListDhcpOptionsSortOrderEnum +const ( + ListDhcpOptionsSortOrderAsc ListDhcpOptionsSortOrderEnum = "ASC" + ListDhcpOptionsSortOrderDesc ListDhcpOptionsSortOrderEnum = "DESC" +) + +var mappingListDhcpOptionsSortOrderEnum = map[string]ListDhcpOptionsSortOrderEnum{ + "ASC": ListDhcpOptionsSortOrderAsc, + "DESC": ListDhcpOptionsSortOrderDesc, +} + +var mappingListDhcpOptionsSortOrderEnumLowerCase = map[string]ListDhcpOptionsSortOrderEnum{ + "asc": ListDhcpOptionsSortOrderAsc, + "desc": ListDhcpOptionsSortOrderDesc, +} + +// GetListDhcpOptionsSortOrderEnumValues Enumerates the set of values for ListDhcpOptionsSortOrderEnum +func GetListDhcpOptionsSortOrderEnumValues() []ListDhcpOptionsSortOrderEnum { + values := make([]ListDhcpOptionsSortOrderEnum, 0) + for _, v := range mappingListDhcpOptionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDhcpOptionsSortOrderEnumStringValues Enumerates the set of values in String for ListDhcpOptionsSortOrderEnum +func GetListDhcpOptionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDhcpOptionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDhcpOptionsSortOrderEnum(val string) (ListDhcpOptionsSortOrderEnum, bool) { + enum, ok := mappingListDhcpOptionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_attachments_request_response.go new file mode 100644 index 0000000000..1894a9750c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_attachments_request_response.go @@ -0,0 +1,288 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgAttachmentsRequest wrapper for the ListDrgAttachments operation +type ListDrgAttachmentsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG. + NetworkId *string `mandatory:"false" contributesTo:"query" name:"networkId"` + + // The type for the network resource attached to the DRG. + AttachmentType ListDrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to the DRG attachment. + DrgRouteTableId *string `mandatory:"false" contributesTo:"query" name:"drgRouteTableId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDrgAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDrgAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgAttachmentsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDrgAttachmentsAttachmentTypeEnum(string(request.AttachmentType)); !ok && request.AttachmentType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttachmentType: %s. Supported values are: %s.", request.AttachmentType, strings.Join(GetListDrgAttachmentsAttachmentTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgAttachmentsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDrgAttachmentsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgAttachmentsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDrgAttachmentsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgAttachmentLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDrgAttachmentLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgAttachmentsResponse wrapper for the ListDrgAttachments operation +type ListDrgAttachmentsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgAttachment instances + Items []DrgAttachment `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgAttachmentsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgAttachmentsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDrgAttachmentsAttachmentTypeEnum Enum with underlying type: string +type ListDrgAttachmentsAttachmentTypeEnum string + +// Set of constants representing the allowable values for ListDrgAttachmentsAttachmentTypeEnum +const ( + ListDrgAttachmentsAttachmentTypeVcn ListDrgAttachmentsAttachmentTypeEnum = "VCN" + ListDrgAttachmentsAttachmentTypeVirtualCircuit ListDrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" + ListDrgAttachmentsAttachmentTypeRemotePeeringConnection ListDrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" + ListDrgAttachmentsAttachmentTypeIpsecTunnel ListDrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" + ListDrgAttachmentsAttachmentTypeAll ListDrgAttachmentsAttachmentTypeEnum = "ALL" +) + +var mappingListDrgAttachmentsAttachmentTypeEnum = map[string]ListDrgAttachmentsAttachmentTypeEnum{ + "VCN": ListDrgAttachmentsAttachmentTypeVcn, + "VIRTUAL_CIRCUIT": ListDrgAttachmentsAttachmentTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": ListDrgAttachmentsAttachmentTypeRemotePeeringConnection, + "IPSEC_TUNNEL": ListDrgAttachmentsAttachmentTypeIpsecTunnel, + "ALL": ListDrgAttachmentsAttachmentTypeAll, +} + +var mappingListDrgAttachmentsAttachmentTypeEnumLowerCase = map[string]ListDrgAttachmentsAttachmentTypeEnum{ + "vcn": ListDrgAttachmentsAttachmentTypeVcn, + "virtual_circuit": ListDrgAttachmentsAttachmentTypeVirtualCircuit, + "remote_peering_connection": ListDrgAttachmentsAttachmentTypeRemotePeeringConnection, + "ipsec_tunnel": ListDrgAttachmentsAttachmentTypeIpsecTunnel, + "all": ListDrgAttachmentsAttachmentTypeAll, +} + +// GetListDrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for ListDrgAttachmentsAttachmentTypeEnum +func GetListDrgAttachmentsAttachmentTypeEnumValues() []ListDrgAttachmentsAttachmentTypeEnum { + values := make([]ListDrgAttachmentsAttachmentTypeEnum, 0) + for _, v := range mappingListDrgAttachmentsAttachmentTypeEnum { + values = append(values, v) + } + return values +} + +// GetListDrgAttachmentsAttachmentTypeEnumStringValues Enumerates the set of values in String for ListDrgAttachmentsAttachmentTypeEnum +func GetListDrgAttachmentsAttachmentTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "IPSEC_TUNNEL", + "ALL", + } +} + +// GetMappingListDrgAttachmentsAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgAttachmentsAttachmentTypeEnum(val string) (ListDrgAttachmentsAttachmentTypeEnum, bool) { + enum, ok := mappingListDrgAttachmentsAttachmentTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDrgAttachmentsSortByEnum Enum with underlying type: string +type ListDrgAttachmentsSortByEnum string + +// Set of constants representing the allowable values for ListDrgAttachmentsSortByEnum +const ( + ListDrgAttachmentsSortByTimecreated ListDrgAttachmentsSortByEnum = "TIMECREATED" + ListDrgAttachmentsSortByDisplayname ListDrgAttachmentsSortByEnum = "DISPLAYNAME" +) + +var mappingListDrgAttachmentsSortByEnum = map[string]ListDrgAttachmentsSortByEnum{ + "TIMECREATED": ListDrgAttachmentsSortByTimecreated, + "DISPLAYNAME": ListDrgAttachmentsSortByDisplayname, +} + +var mappingListDrgAttachmentsSortByEnumLowerCase = map[string]ListDrgAttachmentsSortByEnum{ + "timecreated": ListDrgAttachmentsSortByTimecreated, + "displayname": ListDrgAttachmentsSortByDisplayname, +} + +// GetListDrgAttachmentsSortByEnumValues Enumerates the set of values for ListDrgAttachmentsSortByEnum +func GetListDrgAttachmentsSortByEnumValues() []ListDrgAttachmentsSortByEnum { + values := make([]ListDrgAttachmentsSortByEnum, 0) + for _, v := range mappingListDrgAttachmentsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDrgAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListDrgAttachmentsSortByEnum +func GetListDrgAttachmentsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDrgAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgAttachmentsSortByEnum(val string) (ListDrgAttachmentsSortByEnum, bool) { + enum, ok := mappingListDrgAttachmentsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDrgAttachmentsSortOrderEnum Enum with underlying type: string +type ListDrgAttachmentsSortOrderEnum string + +// Set of constants representing the allowable values for ListDrgAttachmentsSortOrderEnum +const ( + ListDrgAttachmentsSortOrderAsc ListDrgAttachmentsSortOrderEnum = "ASC" + ListDrgAttachmentsSortOrderDesc ListDrgAttachmentsSortOrderEnum = "DESC" +) + +var mappingListDrgAttachmentsSortOrderEnum = map[string]ListDrgAttachmentsSortOrderEnum{ + "ASC": ListDrgAttachmentsSortOrderAsc, + "DESC": ListDrgAttachmentsSortOrderDesc, +} + +var mappingListDrgAttachmentsSortOrderEnumLowerCase = map[string]ListDrgAttachmentsSortOrderEnum{ + "asc": ListDrgAttachmentsSortOrderAsc, + "desc": ListDrgAttachmentsSortOrderDesc, +} + +// GetListDrgAttachmentsSortOrderEnumValues Enumerates the set of values for ListDrgAttachmentsSortOrderEnum +func GetListDrgAttachmentsSortOrderEnumValues() []ListDrgAttachmentsSortOrderEnum { + values := make([]ListDrgAttachmentsSortOrderEnum, 0) + for _, v := range mappingListDrgAttachmentsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDrgAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListDrgAttachmentsSortOrderEnum +func GetListDrgAttachmentsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDrgAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgAttachmentsSortOrderEnum(val string) (ListDrgAttachmentsSortOrderEnum, bool) { + enum, ok := mappingListDrgAttachmentsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distribution_statements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distribution_statements_request_response.go new file mode 100644 index 0000000000..005c2f1e02 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distribution_statements_request_response.go @@ -0,0 +1,196 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgRouteDistributionStatementsRequest wrapper for the ListDrgRouteDistributionStatements operation +type ListDrgRouteDistributionStatementsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route distribution. + DrgRouteDistributionId *string `mandatory:"true" contributesTo:"path" name:"drgRouteDistributionId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. + SortBy ListDrgRouteDistributionStatementsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDrgRouteDistributionStatementsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgRouteDistributionStatementsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgRouteDistributionStatementsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgRouteDistributionStatementsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgRouteDistributionStatementsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDrgRouteDistributionStatementsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDrgRouteDistributionStatementsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgRouteDistributionStatementsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDrgRouteDistributionStatementsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgRouteDistributionStatementsResponse wrapper for the ListDrgRouteDistributionStatements operation +type ListDrgRouteDistributionStatementsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgRouteDistributionStatement instances + Items []DrgRouteDistributionStatement `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgRouteDistributionStatementsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgRouteDistributionStatementsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDrgRouteDistributionStatementsSortByEnum Enum with underlying type: string +type ListDrgRouteDistributionStatementsSortByEnum string + +// Set of constants representing the allowable values for ListDrgRouteDistributionStatementsSortByEnum +const ( + ListDrgRouteDistributionStatementsSortByTimecreated ListDrgRouteDistributionStatementsSortByEnum = "TIMECREATED" +) + +var mappingListDrgRouteDistributionStatementsSortByEnum = map[string]ListDrgRouteDistributionStatementsSortByEnum{ + "TIMECREATED": ListDrgRouteDistributionStatementsSortByTimecreated, +} + +var mappingListDrgRouteDistributionStatementsSortByEnumLowerCase = map[string]ListDrgRouteDistributionStatementsSortByEnum{ + "timecreated": ListDrgRouteDistributionStatementsSortByTimecreated, +} + +// GetListDrgRouteDistributionStatementsSortByEnumValues Enumerates the set of values for ListDrgRouteDistributionStatementsSortByEnum +func GetListDrgRouteDistributionStatementsSortByEnumValues() []ListDrgRouteDistributionStatementsSortByEnum { + values := make([]ListDrgRouteDistributionStatementsSortByEnum, 0) + for _, v := range mappingListDrgRouteDistributionStatementsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteDistributionStatementsSortByEnumStringValues Enumerates the set of values in String for ListDrgRouteDistributionStatementsSortByEnum +func GetListDrgRouteDistributionStatementsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + } +} + +// GetMappingListDrgRouteDistributionStatementsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteDistributionStatementsSortByEnum(val string) (ListDrgRouteDistributionStatementsSortByEnum, bool) { + enum, ok := mappingListDrgRouteDistributionStatementsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDrgRouteDistributionStatementsSortOrderEnum Enum with underlying type: string +type ListDrgRouteDistributionStatementsSortOrderEnum string + +// Set of constants representing the allowable values for ListDrgRouteDistributionStatementsSortOrderEnum +const ( + ListDrgRouteDistributionStatementsSortOrderAsc ListDrgRouteDistributionStatementsSortOrderEnum = "ASC" + ListDrgRouteDistributionStatementsSortOrderDesc ListDrgRouteDistributionStatementsSortOrderEnum = "DESC" +) + +var mappingListDrgRouteDistributionStatementsSortOrderEnum = map[string]ListDrgRouteDistributionStatementsSortOrderEnum{ + "ASC": ListDrgRouteDistributionStatementsSortOrderAsc, + "DESC": ListDrgRouteDistributionStatementsSortOrderDesc, +} + +var mappingListDrgRouteDistributionStatementsSortOrderEnumLowerCase = map[string]ListDrgRouteDistributionStatementsSortOrderEnum{ + "asc": ListDrgRouteDistributionStatementsSortOrderAsc, + "desc": ListDrgRouteDistributionStatementsSortOrderDesc, +} + +// GetListDrgRouteDistributionStatementsSortOrderEnumValues Enumerates the set of values for ListDrgRouteDistributionStatementsSortOrderEnum +func GetListDrgRouteDistributionStatementsSortOrderEnumValues() []ListDrgRouteDistributionStatementsSortOrderEnum { + values := make([]ListDrgRouteDistributionStatementsSortOrderEnum, 0) + for _, v := range mappingListDrgRouteDistributionStatementsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteDistributionStatementsSortOrderEnumStringValues Enumerates the set of values in String for ListDrgRouteDistributionStatementsSortOrderEnum +func GetListDrgRouteDistributionStatementsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDrgRouteDistributionStatementsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteDistributionStatementsSortOrderEnum(val string) (ListDrgRouteDistributionStatementsSortOrderEnum, bool) { + enum, ok := mappingListDrgRouteDistributionStatementsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distributions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distributions_request_response.go new file mode 100644 index 0000000000..68d54d1072 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_distributions_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgRouteDistributionsRequest wrapper for the ListDrgRouteDistributions operation +type ListDrgRouteDistributionsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" contributesTo:"query" name:"drgId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDrgRouteDistributionsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDrgRouteDistributionsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter that only returns resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState DrgRouteDistributionLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgRouteDistributionsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgRouteDistributionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgRouteDistributionsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgRouteDistributionsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgRouteDistributionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDrgRouteDistributionsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDrgRouteDistributionsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgRouteDistributionsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDrgRouteDistributionsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgRouteDistributionLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDrgRouteDistributionLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgRouteDistributionsResponse wrapper for the ListDrgRouteDistributions operation +type ListDrgRouteDistributionsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgRouteDistribution instances + Items []DrgRouteDistribution `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgRouteDistributionsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgRouteDistributionsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDrgRouteDistributionsSortByEnum Enum with underlying type: string +type ListDrgRouteDistributionsSortByEnum string + +// Set of constants representing the allowable values for ListDrgRouteDistributionsSortByEnum +const ( + ListDrgRouteDistributionsSortByTimecreated ListDrgRouteDistributionsSortByEnum = "TIMECREATED" + ListDrgRouteDistributionsSortByDisplayname ListDrgRouteDistributionsSortByEnum = "DISPLAYNAME" +) + +var mappingListDrgRouteDistributionsSortByEnum = map[string]ListDrgRouteDistributionsSortByEnum{ + "TIMECREATED": ListDrgRouteDistributionsSortByTimecreated, + "DISPLAYNAME": ListDrgRouteDistributionsSortByDisplayname, +} + +var mappingListDrgRouteDistributionsSortByEnumLowerCase = map[string]ListDrgRouteDistributionsSortByEnum{ + "timecreated": ListDrgRouteDistributionsSortByTimecreated, + "displayname": ListDrgRouteDistributionsSortByDisplayname, +} + +// GetListDrgRouteDistributionsSortByEnumValues Enumerates the set of values for ListDrgRouteDistributionsSortByEnum +func GetListDrgRouteDistributionsSortByEnumValues() []ListDrgRouteDistributionsSortByEnum { + values := make([]ListDrgRouteDistributionsSortByEnum, 0) + for _, v := range mappingListDrgRouteDistributionsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteDistributionsSortByEnumStringValues Enumerates the set of values in String for ListDrgRouteDistributionsSortByEnum +func GetListDrgRouteDistributionsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDrgRouteDistributionsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteDistributionsSortByEnum(val string) (ListDrgRouteDistributionsSortByEnum, bool) { + enum, ok := mappingListDrgRouteDistributionsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDrgRouteDistributionsSortOrderEnum Enum with underlying type: string +type ListDrgRouteDistributionsSortOrderEnum string + +// Set of constants representing the allowable values for ListDrgRouteDistributionsSortOrderEnum +const ( + ListDrgRouteDistributionsSortOrderAsc ListDrgRouteDistributionsSortOrderEnum = "ASC" + ListDrgRouteDistributionsSortOrderDesc ListDrgRouteDistributionsSortOrderEnum = "DESC" +) + +var mappingListDrgRouteDistributionsSortOrderEnum = map[string]ListDrgRouteDistributionsSortOrderEnum{ + "ASC": ListDrgRouteDistributionsSortOrderAsc, + "DESC": ListDrgRouteDistributionsSortOrderDesc, +} + +var mappingListDrgRouteDistributionsSortOrderEnumLowerCase = map[string]ListDrgRouteDistributionsSortOrderEnum{ + "asc": ListDrgRouteDistributionsSortOrderAsc, + "desc": ListDrgRouteDistributionsSortOrderDesc, +} + +// GetListDrgRouteDistributionsSortOrderEnumValues Enumerates the set of values for ListDrgRouteDistributionsSortOrderEnum +func GetListDrgRouteDistributionsSortOrderEnumValues() []ListDrgRouteDistributionsSortOrderEnum { + values := make([]ListDrgRouteDistributionsSortOrderEnum, 0) + for _, v := range mappingListDrgRouteDistributionsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteDistributionsSortOrderEnumStringValues Enumerates the set of values in String for ListDrgRouteDistributionsSortOrderEnum +func GetListDrgRouteDistributionsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDrgRouteDistributionsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteDistributionsSortOrderEnum(val string) (ListDrgRouteDistributionsSortOrderEnum, bool) { + enum, ok := mappingListDrgRouteDistributionsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_rules_request_response.go new file mode 100644 index 0000000000..4b1bc593af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_rules_request_response.go @@ -0,0 +1,152 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgRouteRulesRequest wrapper for the ListDrgRouteRules operation +type ListDrgRouteRulesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table. + DrgRouteTableId *string `mandatory:"true" contributesTo:"path" name:"drgRouteTableId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Static routes are specified through the DRG route table API. + // Dynamic routes are learned by the DRG from the DRG attachments through various routing protocols. + RouteType ListDrgRouteRulesRouteTypeEnum `mandatory:"false" contributesTo:"query" name:"routeType" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgRouteRulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgRouteRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDrgRouteRulesRouteTypeEnum(string(request.RouteType)); !ok && request.RouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RouteType: %s. Supported values are: %s.", request.RouteType, strings.Join(GetListDrgRouteRulesRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgRouteRulesResponse wrapper for the ListDrgRouteRules operation +type ListDrgRouteRulesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgRouteRule instances + Items []DrgRouteRule `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgRouteRulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgRouteRulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDrgRouteRulesRouteTypeEnum Enum with underlying type: string +type ListDrgRouteRulesRouteTypeEnum string + +// Set of constants representing the allowable values for ListDrgRouteRulesRouteTypeEnum +const ( + ListDrgRouteRulesRouteTypeStatic ListDrgRouteRulesRouteTypeEnum = "STATIC" + ListDrgRouteRulesRouteTypeDynamic ListDrgRouteRulesRouteTypeEnum = "DYNAMIC" +) + +var mappingListDrgRouteRulesRouteTypeEnum = map[string]ListDrgRouteRulesRouteTypeEnum{ + "STATIC": ListDrgRouteRulesRouteTypeStatic, + "DYNAMIC": ListDrgRouteRulesRouteTypeDynamic, +} + +var mappingListDrgRouteRulesRouteTypeEnumLowerCase = map[string]ListDrgRouteRulesRouteTypeEnum{ + "static": ListDrgRouteRulesRouteTypeStatic, + "dynamic": ListDrgRouteRulesRouteTypeDynamic, +} + +// GetListDrgRouteRulesRouteTypeEnumValues Enumerates the set of values for ListDrgRouteRulesRouteTypeEnum +func GetListDrgRouteRulesRouteTypeEnumValues() []ListDrgRouteRulesRouteTypeEnum { + values := make([]ListDrgRouteRulesRouteTypeEnum, 0) + for _, v := range mappingListDrgRouteRulesRouteTypeEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteRulesRouteTypeEnumStringValues Enumerates the set of values in String for ListDrgRouteRulesRouteTypeEnum +func GetListDrgRouteRulesRouteTypeEnumStringValues() []string { + return []string{ + "STATIC", + "DYNAMIC", + } +} + +// GetMappingListDrgRouteRulesRouteTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteRulesRouteTypeEnum(val string) (ListDrgRouteRulesRouteTypeEnum, bool) { + enum, ok := mappingListDrgRouteRulesRouteTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_tables_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_tables_request_response.go new file mode 100644 index 0000000000..99e7b22b55 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_route_tables_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgRouteTablesRequest wrapper for the ListDrgRouteTables operation +type ListDrgRouteTablesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" contributesTo:"query" name:"drgId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDrgRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDrgRouteTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the import route distribution. + ImportDrgRouteDistributionId *string `mandatory:"false" contributesTo:"query" name:"importDrgRouteDistributionId"` + + // A filter that only returns matches for the specified lifecycle + // state. The value is case insensitive. + LifecycleState DrgRouteTableLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgRouteTablesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgRouteTablesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgRouteTablesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgRouteTablesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgRouteTablesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDrgRouteTablesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDrgRouteTablesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgRouteTablesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDrgRouteTablesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgRouteTableLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDrgRouteTableLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgRouteTablesResponse wrapper for the ListDrgRouteTables operation +type ListDrgRouteTablesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgRouteTable instances + Items []DrgRouteTable `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgRouteTablesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgRouteTablesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDrgRouteTablesSortByEnum Enum with underlying type: string +type ListDrgRouteTablesSortByEnum string + +// Set of constants representing the allowable values for ListDrgRouteTablesSortByEnum +const ( + ListDrgRouteTablesSortByTimecreated ListDrgRouteTablesSortByEnum = "TIMECREATED" + ListDrgRouteTablesSortByDisplayname ListDrgRouteTablesSortByEnum = "DISPLAYNAME" +) + +var mappingListDrgRouteTablesSortByEnum = map[string]ListDrgRouteTablesSortByEnum{ + "TIMECREATED": ListDrgRouteTablesSortByTimecreated, + "DISPLAYNAME": ListDrgRouteTablesSortByDisplayname, +} + +var mappingListDrgRouteTablesSortByEnumLowerCase = map[string]ListDrgRouteTablesSortByEnum{ + "timecreated": ListDrgRouteTablesSortByTimecreated, + "displayname": ListDrgRouteTablesSortByDisplayname, +} + +// GetListDrgRouteTablesSortByEnumValues Enumerates the set of values for ListDrgRouteTablesSortByEnum +func GetListDrgRouteTablesSortByEnumValues() []ListDrgRouteTablesSortByEnum { + values := make([]ListDrgRouteTablesSortByEnum, 0) + for _, v := range mappingListDrgRouteTablesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteTablesSortByEnumStringValues Enumerates the set of values in String for ListDrgRouteTablesSortByEnum +func GetListDrgRouteTablesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDrgRouteTablesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteTablesSortByEnum(val string) (ListDrgRouteTablesSortByEnum, bool) { + enum, ok := mappingListDrgRouteTablesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDrgRouteTablesSortOrderEnum Enum with underlying type: string +type ListDrgRouteTablesSortOrderEnum string + +// Set of constants representing the allowable values for ListDrgRouteTablesSortOrderEnum +const ( + ListDrgRouteTablesSortOrderAsc ListDrgRouteTablesSortOrderEnum = "ASC" + ListDrgRouteTablesSortOrderDesc ListDrgRouteTablesSortOrderEnum = "DESC" +) + +var mappingListDrgRouteTablesSortOrderEnum = map[string]ListDrgRouteTablesSortOrderEnum{ + "ASC": ListDrgRouteTablesSortOrderAsc, + "DESC": ListDrgRouteTablesSortOrderDesc, +} + +var mappingListDrgRouteTablesSortOrderEnumLowerCase = map[string]ListDrgRouteTablesSortOrderEnum{ + "asc": ListDrgRouteTablesSortOrderAsc, + "desc": ListDrgRouteTablesSortOrderDesc, +} + +// GetListDrgRouteTablesSortOrderEnumValues Enumerates the set of values for ListDrgRouteTablesSortOrderEnum +func GetListDrgRouteTablesSortOrderEnumValues() []ListDrgRouteTablesSortOrderEnum { + values := make([]ListDrgRouteTablesSortOrderEnum, 0) + for _, v := range mappingListDrgRouteTablesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDrgRouteTablesSortOrderEnumStringValues Enumerates the set of values in String for ListDrgRouteTablesSortOrderEnum +func GetListDrgRouteTablesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDrgRouteTablesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgRouteTablesSortOrderEnum(val string) (ListDrgRouteTablesSortOrderEnum, bool) { + enum, ok := mappingListDrgRouteTablesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_urt_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_urt_route_rules_request_response.go new file mode 100644 index 0000000000..0fe6b1644a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drg_urt_route_rules_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgUrtRouteRulesRequest wrapper for the ListDrgUrtRouteRules operation +type ListDrgUrtRouteRulesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG attachment. + DrgAttachmentId *string `mandatory:"true" contributesTo:"path" name:"drgAttachmentId"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgUrtRouteRulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgUrtRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgUrtRouteRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgUrtRouteRulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgUrtRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgUrtRouteRulesResponse wrapper for the ListDrgUrtRouteRules operation +type ListDrgUrtRouteRulesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of DrgUrtRouteRuleDetails instances + DrgUrtRouteRuleDetails `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgUrtRouteRulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgUrtRouteRulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_by_states_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_by_states_request_response.go new file mode 100644 index 0000000000..39391d0549 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_by_states_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDrgsByStatesRequest wrapper for the ListDrgsByStates operation +type ListDrgsByStatesRequest struct { + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A query param to return resources that match the given compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) exactly. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The State of the DRG (Classical/Migrated/Upgraded) of the DRG. + DrgState DrgUpgradeStateStateEnum `mandatory:"false" contributesTo:"query" name:"drgState" omitEmpty:"true"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListDrgsByStatesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListDrgsByStatesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDrgsByStatesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDrgsByStatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDrgsByStatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDrgsByStatesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgsByStatesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgUpgradeStateStateEnum(string(request.DrgState)); !ok && request.DrgState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DrgState: %s. Supported values are: %s.", request.DrgState, strings.Join(GetDrgUpgradeStateStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgsByStatesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDrgsByStatesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDrgsByStatesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDrgsByStatesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDrgsByStatesResponse wrapper for the ListDrgsByStates operation +type ListDrgsByStatesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Drg instances + Items []Drg `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListDrgsByStatesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDrgsByStatesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDrgsByStatesSortByEnum Enum with underlying type: string +type ListDrgsByStatesSortByEnum string + +// Set of constants representing the allowable values for ListDrgsByStatesSortByEnum +const ( + ListDrgsByStatesSortByTimecreated ListDrgsByStatesSortByEnum = "TIMECREATED" + ListDrgsByStatesSortByDisplayname ListDrgsByStatesSortByEnum = "DISPLAYNAME" +) + +var mappingListDrgsByStatesSortByEnum = map[string]ListDrgsByStatesSortByEnum{ + "TIMECREATED": ListDrgsByStatesSortByTimecreated, + "DISPLAYNAME": ListDrgsByStatesSortByDisplayname, +} + +var mappingListDrgsByStatesSortByEnumLowerCase = map[string]ListDrgsByStatesSortByEnum{ + "timecreated": ListDrgsByStatesSortByTimecreated, + "displayname": ListDrgsByStatesSortByDisplayname, +} + +// GetListDrgsByStatesSortByEnumValues Enumerates the set of values for ListDrgsByStatesSortByEnum +func GetListDrgsByStatesSortByEnumValues() []ListDrgsByStatesSortByEnum { + values := make([]ListDrgsByStatesSortByEnum, 0) + for _, v := range mappingListDrgsByStatesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDrgsByStatesSortByEnumStringValues Enumerates the set of values in String for ListDrgsByStatesSortByEnum +func GetListDrgsByStatesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListDrgsByStatesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgsByStatesSortByEnum(val string) (ListDrgsByStatesSortByEnum, bool) { + enum, ok := mappingListDrgsByStatesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDrgsByStatesSortOrderEnum Enum with underlying type: string +type ListDrgsByStatesSortOrderEnum string + +// Set of constants representing the allowable values for ListDrgsByStatesSortOrderEnum +const ( + ListDrgsByStatesSortOrderAsc ListDrgsByStatesSortOrderEnum = "ASC" + ListDrgsByStatesSortOrderDesc ListDrgsByStatesSortOrderEnum = "DESC" +) + +var mappingListDrgsByStatesSortOrderEnum = map[string]ListDrgsByStatesSortOrderEnum{ + "ASC": ListDrgsByStatesSortOrderAsc, + "DESC": ListDrgsByStatesSortOrderDesc, +} + +var mappingListDrgsByStatesSortOrderEnumLowerCase = map[string]ListDrgsByStatesSortOrderEnum{ + "asc": ListDrgsByStatesSortOrderAsc, + "desc": ListDrgsByStatesSortOrderDesc, +} + +// GetListDrgsByStatesSortOrderEnumValues Enumerates the set of values for ListDrgsByStatesSortOrderEnum +func GetListDrgsByStatesSortOrderEnumValues() []ListDrgsByStatesSortOrderEnum { + values := make([]ListDrgsByStatesSortOrderEnum, 0) + for _, v := range mappingListDrgsByStatesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDrgsByStatesSortOrderEnumStringValues Enumerates the set of values in String for ListDrgsByStatesSortOrderEnum +func GetListDrgsByStatesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDrgsByStatesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDrgsByStatesSortOrderEnum(val string) (ListDrgsByStatesSortOrderEnum, bool) { + enum, ok := mappingListDrgsByStatesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go index a62694bc59..617fa3eac6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_drgs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListDrgsRequest wrapper for the ListDrgs operation @@ -42,6 +44,10 @@ func (request ListDrgsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListDrgsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListDrgsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDrgsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListDrgsResponse wrapper for the ListDrgs operation type ListDrgsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_endpoint_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_endpoint_services_request_response.go new file mode 100644 index 0000000000..f90d32f727 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_endpoint_services_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListEndpointServicesRequest wrapper for the ListEndpointServices operation +type ListEndpointServicesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListEndpointServicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListEndpointServicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListEndpointServicesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListEndpointServicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListEndpointServicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListEndpointServicesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListEndpointServicesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListEndpointServicesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListEndpointServicesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListEndpointServicesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListEndpointServicesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListEndpointServicesResponse wrapper for the ListEndpointServices operation +type ListEndpointServicesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []EndpointServiceSummary instances + Items []EndpointServiceSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListEndpointServicesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListEndpointServicesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListEndpointServicesSortByEnum Enum with underlying type: string +type ListEndpointServicesSortByEnum string + +// Set of constants representing the allowable values for ListEndpointServicesSortByEnum +const ( + ListEndpointServicesSortByTimecreated ListEndpointServicesSortByEnum = "TIMECREATED" + ListEndpointServicesSortByDisplayname ListEndpointServicesSortByEnum = "DISPLAYNAME" +) + +var mappingListEndpointServicesSortByEnum = map[string]ListEndpointServicesSortByEnum{ + "TIMECREATED": ListEndpointServicesSortByTimecreated, + "DISPLAYNAME": ListEndpointServicesSortByDisplayname, +} + +var mappingListEndpointServicesSortByEnumLowerCase = map[string]ListEndpointServicesSortByEnum{ + "timecreated": ListEndpointServicesSortByTimecreated, + "displayname": ListEndpointServicesSortByDisplayname, +} + +// GetListEndpointServicesSortByEnumValues Enumerates the set of values for ListEndpointServicesSortByEnum +func GetListEndpointServicesSortByEnumValues() []ListEndpointServicesSortByEnum { + values := make([]ListEndpointServicesSortByEnum, 0) + for _, v := range mappingListEndpointServicesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListEndpointServicesSortByEnumStringValues Enumerates the set of values in String for ListEndpointServicesSortByEnum +func GetListEndpointServicesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListEndpointServicesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListEndpointServicesSortByEnum(val string) (ListEndpointServicesSortByEnum, bool) { + enum, ok := mappingListEndpointServicesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListEndpointServicesSortOrderEnum Enum with underlying type: string +type ListEndpointServicesSortOrderEnum string + +// Set of constants representing the allowable values for ListEndpointServicesSortOrderEnum +const ( + ListEndpointServicesSortOrderAsc ListEndpointServicesSortOrderEnum = "ASC" + ListEndpointServicesSortOrderDesc ListEndpointServicesSortOrderEnum = "DESC" +) + +var mappingListEndpointServicesSortOrderEnum = map[string]ListEndpointServicesSortOrderEnum{ + "ASC": ListEndpointServicesSortOrderAsc, + "DESC": ListEndpointServicesSortOrderDesc, +} + +var mappingListEndpointServicesSortOrderEnumLowerCase = map[string]ListEndpointServicesSortOrderEnum{ + "asc": ListEndpointServicesSortOrderAsc, + "desc": ListEndpointServicesSortOrderDesc, +} + +// GetListEndpointServicesSortOrderEnumValues Enumerates the set of values for ListEndpointServicesSortOrderEnum +func GetListEndpointServicesSortOrderEnumValues() []ListEndpointServicesSortOrderEnum { + values := make([]ListEndpointServicesSortOrderEnum, 0) + for _, v := range mappingListEndpointServicesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListEndpointServicesSortOrderEnumStringValues Enumerates the set of values in String for ListEndpointServicesSortOrderEnum +func GetListEndpointServicesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListEndpointServicesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListEndpointServicesSortOrderEnum(val string) (ListEndpointServicesSortOrderEnum, bool) { + enum, ok := mappingListEndpointServicesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_fast_connect_provider_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_fast_connect_provider_services_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_fast_connect_provider_services_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_fast_connect_provider_services_request_response.go index 261430357d..a91f7285cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_fast_connect_provider_services_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_fast_connect_provider_services_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListFastConnectProviderServicesRequest wrapper for the ListFastConnectProviderServices operation @@ -42,6 +44,10 @@ func (request ListFastConnectProviderServicesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListFastConnectProviderServicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListFastConnectProviderServicesRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFastConnectProviderServicesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListFastConnectProviderServicesResponse wrapper for the ListFastConnectProviderServices operation type ListFastConnectProviderServicesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go index f32c64ca1b..46b2092bb1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_fast_connect_provider_virtual_circuit_bandwidth_shapes_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListFastConnectProviderVirtualCircuitBandwidthShapesRequest wrapper for the ListFastConnectProviderVirtualCircuitBandwidthShapes operation type ListFastConnectProviderVirtualCircuitBandwidthShapesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the provider service. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the provider service. ProviderServiceId *string `mandatory:"true" contributesTo:"path" name:"providerServiceId"` // For list pagination. The maximum number of results per page, or items to return in a paginated @@ -42,6 +44,10 @@ func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) Strin // HTTPRequest implements the OCIRequest interface func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFastConnectProviderVirtualCircuitBandwidthShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListFastConnectProviderVirtualCircuitBandwidthShapesResponse wrapper for the ListFastConnectProviderVirtualCircuitBandwidthShapes operation type ListFastConnectProviderVirtualCircuitBandwidthShapesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_config_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_config_attachments_request_response.go new file mode 100644 index 0000000000..04d2426c4c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_config_attachments_request_response.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListFlowLogConfigAttachmentsRequest wrapper for the ListFlowLogConfigAttachments operation +type ListFlowLogConfigAttachmentsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a resource that has flow logs enabled. + TargetEntityId *string `mandatory:"false" contributesTo:"query" name:"targetEntityId"` + + // The type of resource that has flow logs enabled. + TargetEntityType ListFlowLogConfigAttachmentsTargetEntityTypeEnum `mandatory:"false" contributesTo:"query" name:"targetEntityType" omitEmpty:"true"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListFlowLogConfigAttachmentsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListFlowLogConfigAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListFlowLogConfigAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListFlowLogConfigAttachmentsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFlowLogConfigAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListFlowLogConfigAttachmentsTargetEntityTypeEnum(string(request.TargetEntityType)); !ok && request.TargetEntityType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetEntityType: %s. Supported values are: %s.", request.TargetEntityType, strings.Join(GetListFlowLogConfigAttachmentsTargetEntityTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListFlowLogConfigAttachmentsResponse wrapper for the ListFlowLogConfigAttachments operation +type ListFlowLogConfigAttachmentsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []FlowLogConfigAttachment instances + Items []FlowLogConfigAttachment `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListFlowLogConfigAttachmentsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListFlowLogConfigAttachmentsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListFlowLogConfigAttachmentsTargetEntityTypeEnum Enum with underlying type: string +type ListFlowLogConfigAttachmentsTargetEntityTypeEnum string + +// Set of constants representing the allowable values for ListFlowLogConfigAttachmentsTargetEntityTypeEnum +const ( + ListFlowLogConfigAttachmentsTargetEntityTypeSubnet ListFlowLogConfigAttachmentsTargetEntityTypeEnum = "SUBNET" +) + +var mappingListFlowLogConfigAttachmentsTargetEntityTypeEnum = map[string]ListFlowLogConfigAttachmentsTargetEntityTypeEnum{ + "SUBNET": ListFlowLogConfigAttachmentsTargetEntityTypeSubnet, +} + +var mappingListFlowLogConfigAttachmentsTargetEntityTypeEnumLowerCase = map[string]ListFlowLogConfigAttachmentsTargetEntityTypeEnum{ + "subnet": ListFlowLogConfigAttachmentsTargetEntityTypeSubnet, +} + +// GetListFlowLogConfigAttachmentsTargetEntityTypeEnumValues Enumerates the set of values for ListFlowLogConfigAttachmentsTargetEntityTypeEnum +func GetListFlowLogConfigAttachmentsTargetEntityTypeEnumValues() []ListFlowLogConfigAttachmentsTargetEntityTypeEnum { + values := make([]ListFlowLogConfigAttachmentsTargetEntityTypeEnum, 0) + for _, v := range mappingListFlowLogConfigAttachmentsTargetEntityTypeEnum { + values = append(values, v) + } + return values +} + +// GetListFlowLogConfigAttachmentsTargetEntityTypeEnumStringValues Enumerates the set of values in String for ListFlowLogConfigAttachmentsTargetEntityTypeEnum +func GetListFlowLogConfigAttachmentsTargetEntityTypeEnumStringValues() []string { + return []string{ + "SUBNET", + } +} + +// GetMappingListFlowLogConfigAttachmentsTargetEntityTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFlowLogConfigAttachmentsTargetEntityTypeEnum(val string) (ListFlowLogConfigAttachmentsTargetEntityTypeEnum, bool) { + enum, ok := mappingListFlowLogConfigAttachmentsTargetEntityTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_configs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_configs_request_response.go new file mode 100644 index 0000000000..b84da6b5be --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_flow_log_configs_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListFlowLogConfigsRequest wrapper for the ListFlowLogConfigs operation +type ListFlowLogConfigsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListFlowLogConfigsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListFlowLogConfigsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListFlowLogConfigsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListFlowLogConfigsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListFlowLogConfigsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListFlowLogConfigsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFlowLogConfigsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListFlowLogConfigsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListFlowLogConfigsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListFlowLogConfigsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListFlowLogConfigsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListFlowLogConfigsResponse wrapper for the ListFlowLogConfigs operation +type ListFlowLogConfigsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []FlowLogConfig instances + Items []FlowLogConfig `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListFlowLogConfigsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListFlowLogConfigsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListFlowLogConfigsSortByEnum Enum with underlying type: string +type ListFlowLogConfigsSortByEnum string + +// Set of constants representing the allowable values for ListFlowLogConfigsSortByEnum +const ( + ListFlowLogConfigsSortByTimecreated ListFlowLogConfigsSortByEnum = "TIMECREATED" + ListFlowLogConfigsSortByDisplayname ListFlowLogConfigsSortByEnum = "DISPLAYNAME" +) + +var mappingListFlowLogConfigsSortByEnum = map[string]ListFlowLogConfigsSortByEnum{ + "TIMECREATED": ListFlowLogConfigsSortByTimecreated, + "DISPLAYNAME": ListFlowLogConfigsSortByDisplayname, +} + +var mappingListFlowLogConfigsSortByEnumLowerCase = map[string]ListFlowLogConfigsSortByEnum{ + "timecreated": ListFlowLogConfigsSortByTimecreated, + "displayname": ListFlowLogConfigsSortByDisplayname, +} + +// GetListFlowLogConfigsSortByEnumValues Enumerates the set of values for ListFlowLogConfigsSortByEnum +func GetListFlowLogConfigsSortByEnumValues() []ListFlowLogConfigsSortByEnum { + values := make([]ListFlowLogConfigsSortByEnum, 0) + for _, v := range mappingListFlowLogConfigsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListFlowLogConfigsSortByEnumStringValues Enumerates the set of values in String for ListFlowLogConfigsSortByEnum +func GetListFlowLogConfigsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListFlowLogConfigsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFlowLogConfigsSortByEnum(val string) (ListFlowLogConfigsSortByEnum, bool) { + enum, ok := mappingListFlowLogConfigsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListFlowLogConfigsSortOrderEnum Enum with underlying type: string +type ListFlowLogConfigsSortOrderEnum string + +// Set of constants representing the allowable values for ListFlowLogConfigsSortOrderEnum +const ( + ListFlowLogConfigsSortOrderAsc ListFlowLogConfigsSortOrderEnum = "ASC" + ListFlowLogConfigsSortOrderDesc ListFlowLogConfigsSortOrderEnum = "DESC" +) + +var mappingListFlowLogConfigsSortOrderEnum = map[string]ListFlowLogConfigsSortOrderEnum{ + "ASC": ListFlowLogConfigsSortOrderAsc, + "DESC": ListFlowLogConfigsSortOrderDesc, +} + +var mappingListFlowLogConfigsSortOrderEnumLowerCase = map[string]ListFlowLogConfigsSortOrderEnum{ + "asc": ListFlowLogConfigsSortOrderAsc, + "desc": ListFlowLogConfigsSortOrderDesc, +} + +// GetListFlowLogConfigsSortOrderEnumValues Enumerates the set of values for ListFlowLogConfigsSortOrderEnum +func GetListFlowLogConfigsSortOrderEnumValues() []ListFlowLogConfigsSortOrderEnum { + values := make([]ListFlowLogConfigsSortOrderEnum, 0) + for _, v := range mappingListFlowLogConfigsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListFlowLogConfigsSortOrderEnumStringValues Enumerates the set of values in String for ListFlowLogConfigsSortOrderEnum +func GetListFlowLogConfigsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListFlowLogConfigsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFlowLogConfigsSortOrderEnum(val string) (ListFlowLogConfigsSortOrderEnum, bool) { + enum, ok := mappingListFlowLogConfigsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnel_routes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnel_routes_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnel_routes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnel_routes_request_response.go index 5c621b1644..8ccd25dc55 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnel_routes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnel_routes_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIPSecConnectionTunnelRoutesRequest wrapper for the ListIPSecConnectionTunnelRoutes operation type ListIPSecConnectionTunnelRoutesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -29,9 +31,9 @@ type ListIPSecConnectionTunnelRoutesRequest struct { // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` - // Specifies the advertiser of the routes. If set to ORACLE, then returns only the - // routes advertised by ORACLE, else if set to CUSTOMER, then returns only the - // routes advertised by the CUSTOMER. + // Specifies the advertiser of the routes. If set to `ORACLE`, this returns only the + // routes advertised by Oracle. When set to `CUSTOMER`, this returns only the + // routes advertised by the CPE. Advertiser TunnelRouteSummaryAdvertiserEnum `mandatory:"false" contributesTo:"query" name:"advertiser" omitEmpty:"true"` // Unique Oracle-assigned identifier for the request. @@ -50,6 +52,10 @@ func (request ListIPSecConnectionTunnelRoutesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIPSecConnectionTunnelRoutesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -65,6 +71,20 @@ func (request ListIPSecConnectionTunnelRoutesRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIPSecConnectionTunnelRoutesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTunnelRouteSummaryAdvertiserEnum(string(request.Advertiser)); !ok && request.Advertiser != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Advertiser: %s. Supported values are: %s.", request.Advertiser, strings.Join(GetTunnelRouteSummaryAdvertiserEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIPSecConnectionTunnelRoutesResponse wrapper for the ListIPSecConnectionTunnelRoutes operation type ListIPSecConnectionTunnelRoutesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go index ba33727c6c..a6d9e2aa16 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnel_security_associations_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIPSecConnectionTunnelSecurityAssociationsRequest wrapper for the ListIPSecConnectionTunnelSecurityAssociations operation type ListIPSecConnectionTunnelSecurityAssociationsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -45,6 +47,10 @@ func (request ListIPSecConnectionTunnelSecurityAssociationsRequest) String() str // HTTPRequest implements the OCIRequest interface func (request ListIPSecConnectionTunnelSecurityAssociationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListIPSecConnectionTunnelSecurityAssociationsRequest) RetryPolicy( return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIPSecConnectionTunnelSecurityAssociationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIPSecConnectionTunnelSecurityAssociationsResponse wrapper for the ListIPSecConnectionTunnelSecurityAssociations operation type ListIPSecConnectionTunnelSecurityAssociationsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnels_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnels_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnels_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnels_request_response.go index 5b3d1a1442..3651b4b0a4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connection_tunnels_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connection_tunnels_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIPSecConnectionTunnelsRequest wrapper for the ListIPSecConnectionTunnels operation type ListIPSecConnectionTunnelsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // For list pagination. The maximum number of results per page, or items to return in a paginated @@ -42,6 +44,10 @@ func (request ListIPSecConnectionTunnelsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIPSecConnectionTunnelsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListIPSecConnectionTunnelsRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIPSecConnectionTunnelsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIPSecConnectionTunnelsResponse wrapper for the ListIPSecConnectionTunnels operation type ListIPSecConnectionTunnelsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connections_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connections_request_response.go index 5b0fe3b05d..2db80e1906 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_i_p_sec_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_i_p_sec_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIPSecConnectionsRequest wrapper for the ListIPSecConnections operation @@ -18,7 +20,7 @@ type ListIPSecConnectionsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"false" contributesTo:"query" name:"cpeId"` // For list pagination. The maximum number of results per page, or items to return in a paginated @@ -48,6 +50,10 @@ func (request ListIPSecConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIPSecConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +69,17 @@ func (request ListIPSecConnectionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIPSecConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIPSecConnectionsResponse wrapper for the ListIPSecConnections operation type ListIPSecConnectionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_image_shape_compatibility_entries_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_image_shape_compatibility_entries_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_image_shape_compatibility_entries_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_image_shape_compatibility_entries_request_response.go index a961deb15f..0ef70bbbe2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_image_shape_compatibility_entries_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_image_shape_compatibility_entries_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListImageShapeCompatibilityEntriesRequest wrapper for the ListImageShapeCompatibilityEntries operation @@ -42,6 +44,10 @@ func (request ListImageShapeCompatibilityEntriesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListImageShapeCompatibilityEntriesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListImageShapeCompatibilityEntriesRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListImageShapeCompatibilityEntriesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListImageShapeCompatibilityEntriesResponse wrapper for the ListImageShapeCompatibilityEntries operation type ListImageShapeCompatibilityEntriesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_images_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_images_request_response.go new file mode 100644 index 0000000000..0febbd2a25 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_images_request_response.go @@ -0,0 +1,227 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListImagesRequest wrapper for the ListImages operation +type ListImagesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The image's operating system. + // Example: `Oracle Linux` + OperatingSystem *string `mandatory:"false" contributesTo:"query" name:"operatingSystem"` + + // The image's operating system version. + // Example: `7.2` + OperatingSystemVersion *string `mandatory:"false" contributesTo:"query" name:"operatingSystemVersion"` + + // Shape name. + Shape *string `mandatory:"false" contributesTo:"query" name:"shape"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListImagesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListImagesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState ImageLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListImagesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListImagesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListImagesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListImagesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListImagesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListImagesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListImagesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListImagesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListImagesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingImageLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetImageLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListImagesResponse wrapper for the ListImages operation +type ListImagesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Image instances + Items []Image `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListImagesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListImagesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListImagesSortByEnum Enum with underlying type: string +type ListImagesSortByEnum string + +// Set of constants representing the allowable values for ListImagesSortByEnum +const ( + ListImagesSortByTimecreated ListImagesSortByEnum = "TIMECREATED" + ListImagesSortByDisplayname ListImagesSortByEnum = "DISPLAYNAME" +) + +var mappingListImagesSortByEnum = map[string]ListImagesSortByEnum{ + "TIMECREATED": ListImagesSortByTimecreated, + "DISPLAYNAME": ListImagesSortByDisplayname, +} + +var mappingListImagesSortByEnumLowerCase = map[string]ListImagesSortByEnum{ + "timecreated": ListImagesSortByTimecreated, + "displayname": ListImagesSortByDisplayname, +} + +// GetListImagesSortByEnumValues Enumerates the set of values for ListImagesSortByEnum +func GetListImagesSortByEnumValues() []ListImagesSortByEnum { + values := make([]ListImagesSortByEnum, 0) + for _, v := range mappingListImagesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListImagesSortByEnumStringValues Enumerates the set of values in String for ListImagesSortByEnum +func GetListImagesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListImagesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListImagesSortByEnum(val string) (ListImagesSortByEnum, bool) { + enum, ok := mappingListImagesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListImagesSortOrderEnum Enum with underlying type: string +type ListImagesSortOrderEnum string + +// Set of constants representing the allowable values for ListImagesSortOrderEnum +const ( + ListImagesSortOrderAsc ListImagesSortOrderEnum = "ASC" + ListImagesSortOrderDesc ListImagesSortOrderEnum = "DESC" +) + +var mappingListImagesSortOrderEnum = map[string]ListImagesSortOrderEnum{ + "ASC": ListImagesSortOrderAsc, + "DESC": ListImagesSortOrderDesc, +} + +var mappingListImagesSortOrderEnumLowerCase = map[string]ListImagesSortOrderEnum{ + "asc": ListImagesSortOrderAsc, + "desc": ListImagesSortOrderDesc, +} + +// GetListImagesSortOrderEnumValues Enumerates the set of values for ListImagesSortOrderEnum +func GetListImagesSortOrderEnumValues() []ListImagesSortOrderEnum { + values := make([]ListImagesSortOrderEnum, 0) + for _, v := range mappingListImagesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListImagesSortOrderEnumStringValues Enumerates the set of values in String for ListImagesSortOrderEnum +func GetListImagesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListImagesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListImagesSortOrderEnum(val string) (ListImagesSortOrderEnum, bool) { + enum, ok := mappingListImagesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_configurations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_configurations_request_response.go new file mode 100644 index 0000000000..e4cb7d8904 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_configurations_request_response.go @@ -0,0 +1,206 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInstanceConfigurationsRequest wrapper for the ListInstanceConfigurations operation +type ListInstanceConfigurationsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInstanceConfigurationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstanceConfigurationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInstanceConfigurationsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInstanceConfigurationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInstanceConfigurationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInstanceConfigurationsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstanceConfigurationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInstanceConfigurationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInstanceConfigurationsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInstanceConfigurationsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstanceConfigurationsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInstanceConfigurationsResponse wrapper for the ListInstanceConfigurations operation +type ListInstanceConfigurationsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InstanceConfigurationSummary instances + Items []InstanceConfigurationSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInstanceConfigurationsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInstanceConfigurationsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInstanceConfigurationsSortByEnum Enum with underlying type: string +type ListInstanceConfigurationsSortByEnum string + +// Set of constants representing the allowable values for ListInstanceConfigurationsSortByEnum +const ( + ListInstanceConfigurationsSortByTimecreated ListInstanceConfigurationsSortByEnum = "TIMECREATED" + ListInstanceConfigurationsSortByDisplayname ListInstanceConfigurationsSortByEnum = "DISPLAYNAME" +) + +var mappingListInstanceConfigurationsSortByEnum = map[string]ListInstanceConfigurationsSortByEnum{ + "TIMECREATED": ListInstanceConfigurationsSortByTimecreated, + "DISPLAYNAME": ListInstanceConfigurationsSortByDisplayname, +} + +var mappingListInstanceConfigurationsSortByEnumLowerCase = map[string]ListInstanceConfigurationsSortByEnum{ + "timecreated": ListInstanceConfigurationsSortByTimecreated, + "displayname": ListInstanceConfigurationsSortByDisplayname, +} + +// GetListInstanceConfigurationsSortByEnumValues Enumerates the set of values for ListInstanceConfigurationsSortByEnum +func GetListInstanceConfigurationsSortByEnumValues() []ListInstanceConfigurationsSortByEnum { + values := make([]ListInstanceConfigurationsSortByEnum, 0) + for _, v := range mappingListInstanceConfigurationsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInstanceConfigurationsSortByEnumStringValues Enumerates the set of values in String for ListInstanceConfigurationsSortByEnum +func GetListInstanceConfigurationsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInstanceConfigurationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstanceConfigurationsSortByEnum(val string) (ListInstanceConfigurationsSortByEnum, bool) { + enum, ok := mappingListInstanceConfigurationsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInstanceConfigurationsSortOrderEnum Enum with underlying type: string +type ListInstanceConfigurationsSortOrderEnum string + +// Set of constants representing the allowable values for ListInstanceConfigurationsSortOrderEnum +const ( + ListInstanceConfigurationsSortOrderAsc ListInstanceConfigurationsSortOrderEnum = "ASC" + ListInstanceConfigurationsSortOrderDesc ListInstanceConfigurationsSortOrderEnum = "DESC" +) + +var mappingListInstanceConfigurationsSortOrderEnum = map[string]ListInstanceConfigurationsSortOrderEnum{ + "ASC": ListInstanceConfigurationsSortOrderAsc, + "DESC": ListInstanceConfigurationsSortOrderDesc, +} + +var mappingListInstanceConfigurationsSortOrderEnumLowerCase = map[string]ListInstanceConfigurationsSortOrderEnum{ + "asc": ListInstanceConfigurationsSortOrderAsc, + "desc": ListInstanceConfigurationsSortOrderDesc, +} + +// GetListInstanceConfigurationsSortOrderEnumValues Enumerates the set of values for ListInstanceConfigurationsSortOrderEnum +func GetListInstanceConfigurationsSortOrderEnumValues() []ListInstanceConfigurationsSortOrderEnum { + values := make([]ListInstanceConfigurationsSortOrderEnum, 0) + for _, v := range mappingListInstanceConfigurationsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInstanceConfigurationsSortOrderEnumStringValues Enumerates the set of values in String for ListInstanceConfigurationsSortOrderEnum +func GetListInstanceConfigurationsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInstanceConfigurationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstanceConfigurationsSortOrderEnum(val string) (ListInstanceConfigurationsSortOrderEnum, bool) { + enum, ok := mappingListInstanceConfigurationsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_console_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_console_connections_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_console_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_console_connections_request_response.go index 68bbfb4ef1..4d427e8628 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_instance_console_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_console_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListInstanceConsoleConnectionsRequest wrapper for the ListInstanceConsoleConnections operation @@ -45,6 +47,10 @@ func (request ListInstanceConsoleConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListInstanceConsoleConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListInstanceConsoleConnectionsRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstanceConsoleConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListInstanceConsoleConnectionsResponse wrapper for the ListInstanceConsoleConnections operation type ListInstanceConsoleConnectionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_devices_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_devices_request_response.go new file mode 100644 index 0000000000..106aeabcee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_devices_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInstanceDevicesRequest wrapper for the ListInstanceDevices operation +type ListInstanceDevicesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // A filter to return only available devices or only used devices. + IsAvailable *bool `mandatory:"false" contributesTo:"query" name:"isAvailable"` + + // A filter to return only devices that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInstanceDevicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstanceDevicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInstanceDevicesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInstanceDevicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInstanceDevicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInstanceDevicesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstanceDevicesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInstanceDevicesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInstanceDevicesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInstanceDevicesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstanceDevicesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInstanceDevicesResponse wrapper for the ListInstanceDevices operation +type ListInstanceDevicesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Device instances + Items []Device `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInstanceDevicesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInstanceDevicesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInstanceDevicesSortByEnum Enum with underlying type: string +type ListInstanceDevicesSortByEnum string + +// Set of constants representing the allowable values for ListInstanceDevicesSortByEnum +const ( + ListInstanceDevicesSortByTimecreated ListInstanceDevicesSortByEnum = "TIMECREATED" + ListInstanceDevicesSortByDisplayname ListInstanceDevicesSortByEnum = "DISPLAYNAME" +) + +var mappingListInstanceDevicesSortByEnum = map[string]ListInstanceDevicesSortByEnum{ + "TIMECREATED": ListInstanceDevicesSortByTimecreated, + "DISPLAYNAME": ListInstanceDevicesSortByDisplayname, +} + +var mappingListInstanceDevicesSortByEnumLowerCase = map[string]ListInstanceDevicesSortByEnum{ + "timecreated": ListInstanceDevicesSortByTimecreated, + "displayname": ListInstanceDevicesSortByDisplayname, +} + +// GetListInstanceDevicesSortByEnumValues Enumerates the set of values for ListInstanceDevicesSortByEnum +func GetListInstanceDevicesSortByEnumValues() []ListInstanceDevicesSortByEnum { + values := make([]ListInstanceDevicesSortByEnum, 0) + for _, v := range mappingListInstanceDevicesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInstanceDevicesSortByEnumStringValues Enumerates the set of values in String for ListInstanceDevicesSortByEnum +func GetListInstanceDevicesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInstanceDevicesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstanceDevicesSortByEnum(val string) (ListInstanceDevicesSortByEnum, bool) { + enum, ok := mappingListInstanceDevicesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInstanceDevicesSortOrderEnum Enum with underlying type: string +type ListInstanceDevicesSortOrderEnum string + +// Set of constants representing the allowable values for ListInstanceDevicesSortOrderEnum +const ( + ListInstanceDevicesSortOrderAsc ListInstanceDevicesSortOrderEnum = "ASC" + ListInstanceDevicesSortOrderDesc ListInstanceDevicesSortOrderEnum = "DESC" +) + +var mappingListInstanceDevicesSortOrderEnum = map[string]ListInstanceDevicesSortOrderEnum{ + "ASC": ListInstanceDevicesSortOrderAsc, + "DESC": ListInstanceDevicesSortOrderDesc, +} + +var mappingListInstanceDevicesSortOrderEnumLowerCase = map[string]ListInstanceDevicesSortOrderEnum{ + "asc": ListInstanceDevicesSortOrderAsc, + "desc": ListInstanceDevicesSortOrderDesc, +} + +// GetListInstanceDevicesSortOrderEnumValues Enumerates the set of values for ListInstanceDevicesSortOrderEnum +func GetListInstanceDevicesSortOrderEnumValues() []ListInstanceDevicesSortOrderEnum { + values := make([]ListInstanceDevicesSortOrderEnum, 0) + for _, v := range mappingListInstanceDevicesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInstanceDevicesSortOrderEnumStringValues Enumerates the set of values in String for ListInstanceDevicesSortOrderEnum +func GetListInstanceDevicesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInstanceDevicesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstanceDevicesSortOrderEnum(val string) (ListInstanceDevicesSortOrderEnum, bool) { + enum, ok := mappingListInstanceDevicesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pool_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pool_instances_request_response.go new file mode 100644 index 0000000000..4fd81d276f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pool_instances_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInstancePoolInstancesRequest wrapper for the ListInstancePoolInstances operation +type ListInstancePoolInstancesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + InstancePoolId *string `mandatory:"true" contributesTo:"path" name:"instancePoolId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInstancePoolInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstancePoolInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInstancePoolInstancesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInstancePoolInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInstancePoolInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInstancePoolInstancesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstancePoolInstancesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInstancePoolInstancesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInstancePoolInstancesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInstancePoolInstancesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstancePoolInstancesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInstancePoolInstancesResponse wrapper for the ListInstancePoolInstances operation +type ListInstancePoolInstancesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InstanceSummary instances + Items []InstanceSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInstancePoolInstancesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInstancePoolInstancesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInstancePoolInstancesSortByEnum Enum with underlying type: string +type ListInstancePoolInstancesSortByEnum string + +// Set of constants representing the allowable values for ListInstancePoolInstancesSortByEnum +const ( + ListInstancePoolInstancesSortByTimecreated ListInstancePoolInstancesSortByEnum = "TIMECREATED" + ListInstancePoolInstancesSortByDisplayname ListInstancePoolInstancesSortByEnum = "DISPLAYNAME" +) + +var mappingListInstancePoolInstancesSortByEnum = map[string]ListInstancePoolInstancesSortByEnum{ + "TIMECREATED": ListInstancePoolInstancesSortByTimecreated, + "DISPLAYNAME": ListInstancePoolInstancesSortByDisplayname, +} + +var mappingListInstancePoolInstancesSortByEnumLowerCase = map[string]ListInstancePoolInstancesSortByEnum{ + "timecreated": ListInstancePoolInstancesSortByTimecreated, + "displayname": ListInstancePoolInstancesSortByDisplayname, +} + +// GetListInstancePoolInstancesSortByEnumValues Enumerates the set of values for ListInstancePoolInstancesSortByEnum +func GetListInstancePoolInstancesSortByEnumValues() []ListInstancePoolInstancesSortByEnum { + values := make([]ListInstancePoolInstancesSortByEnum, 0) + for _, v := range mappingListInstancePoolInstancesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInstancePoolInstancesSortByEnumStringValues Enumerates the set of values in String for ListInstancePoolInstancesSortByEnum +func GetListInstancePoolInstancesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInstancePoolInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstancePoolInstancesSortByEnum(val string) (ListInstancePoolInstancesSortByEnum, bool) { + enum, ok := mappingListInstancePoolInstancesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInstancePoolInstancesSortOrderEnum Enum with underlying type: string +type ListInstancePoolInstancesSortOrderEnum string + +// Set of constants representing the allowable values for ListInstancePoolInstancesSortOrderEnum +const ( + ListInstancePoolInstancesSortOrderAsc ListInstancePoolInstancesSortOrderEnum = "ASC" + ListInstancePoolInstancesSortOrderDesc ListInstancePoolInstancesSortOrderEnum = "DESC" +) + +var mappingListInstancePoolInstancesSortOrderEnum = map[string]ListInstancePoolInstancesSortOrderEnum{ + "ASC": ListInstancePoolInstancesSortOrderAsc, + "DESC": ListInstancePoolInstancesSortOrderDesc, +} + +var mappingListInstancePoolInstancesSortOrderEnumLowerCase = map[string]ListInstancePoolInstancesSortOrderEnum{ + "asc": ListInstancePoolInstancesSortOrderAsc, + "desc": ListInstancePoolInstancesSortOrderDesc, +} + +// GetListInstancePoolInstancesSortOrderEnumValues Enumerates the set of values for ListInstancePoolInstancesSortOrderEnum +func GetListInstancePoolInstancesSortOrderEnumValues() []ListInstancePoolInstancesSortOrderEnum { + values := make([]ListInstancePoolInstancesSortOrderEnum, 0) + for _, v := range mappingListInstancePoolInstancesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInstancePoolInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListInstancePoolInstancesSortOrderEnum +func GetListInstancePoolInstancesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInstancePoolInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstancePoolInstancesSortOrderEnum(val string) (ListInstancePoolInstancesSortOrderEnum, bool) { + enum, ok := mappingListInstancePoolInstancesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pools_request_response.go new file mode 100644 index 0000000000..2cf79f2149 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_pools_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInstancePoolsRequest wrapper for the ListInstancePools operation +type ListInstancePoolsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInstancePoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstancePoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState InstancePoolSummaryLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInstancePoolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInstancePoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInstancePoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInstancePoolsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstancePoolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInstancePoolsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInstancePoolsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInstancePoolsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstancePoolsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingInstancePoolSummaryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetInstancePoolSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInstancePoolsResponse wrapper for the ListInstancePools operation +type ListInstancePoolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InstancePoolSummary instances + Items []InstancePoolSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInstancePoolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInstancePoolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInstancePoolsSortByEnum Enum with underlying type: string +type ListInstancePoolsSortByEnum string + +// Set of constants representing the allowable values for ListInstancePoolsSortByEnum +const ( + ListInstancePoolsSortByTimecreated ListInstancePoolsSortByEnum = "TIMECREATED" + ListInstancePoolsSortByDisplayname ListInstancePoolsSortByEnum = "DISPLAYNAME" +) + +var mappingListInstancePoolsSortByEnum = map[string]ListInstancePoolsSortByEnum{ + "TIMECREATED": ListInstancePoolsSortByTimecreated, + "DISPLAYNAME": ListInstancePoolsSortByDisplayname, +} + +var mappingListInstancePoolsSortByEnumLowerCase = map[string]ListInstancePoolsSortByEnum{ + "timecreated": ListInstancePoolsSortByTimecreated, + "displayname": ListInstancePoolsSortByDisplayname, +} + +// GetListInstancePoolsSortByEnumValues Enumerates the set of values for ListInstancePoolsSortByEnum +func GetListInstancePoolsSortByEnumValues() []ListInstancePoolsSortByEnum { + values := make([]ListInstancePoolsSortByEnum, 0) + for _, v := range mappingListInstancePoolsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInstancePoolsSortByEnumStringValues Enumerates the set of values in String for ListInstancePoolsSortByEnum +func GetListInstancePoolsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInstancePoolsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstancePoolsSortByEnum(val string) (ListInstancePoolsSortByEnum, bool) { + enum, ok := mappingListInstancePoolsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInstancePoolsSortOrderEnum Enum with underlying type: string +type ListInstancePoolsSortOrderEnum string + +// Set of constants representing the allowable values for ListInstancePoolsSortOrderEnum +const ( + ListInstancePoolsSortOrderAsc ListInstancePoolsSortOrderEnum = "ASC" + ListInstancePoolsSortOrderDesc ListInstancePoolsSortOrderEnum = "DESC" +) + +var mappingListInstancePoolsSortOrderEnum = map[string]ListInstancePoolsSortOrderEnum{ + "ASC": ListInstancePoolsSortOrderAsc, + "DESC": ListInstancePoolsSortOrderDesc, +} + +var mappingListInstancePoolsSortOrderEnumLowerCase = map[string]ListInstancePoolsSortOrderEnum{ + "asc": ListInstancePoolsSortOrderAsc, + "desc": ListInstancePoolsSortOrderDesc, +} + +// GetListInstancePoolsSortOrderEnumValues Enumerates the set of values for ListInstancePoolsSortOrderEnum +func GetListInstancePoolsSortOrderEnumValues() []ListInstancePoolsSortOrderEnum { + values := make([]ListInstancePoolsSortOrderEnum, 0) + for _, v := range mappingListInstancePoolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInstancePoolsSortOrderEnumStringValues Enumerates the set of values in String for ListInstancePoolsSortOrderEnum +func GetListInstancePoolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInstancePoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstancePoolsSortOrderEnum(val string) (ListInstancePoolsSortOrderEnum, bool) { + enum, ok := mappingListInstancePoolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_screenshots_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_screenshots_request_response.go new file mode 100644 index 0000000000..99fcddd440 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instance_screenshots_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInstanceScreenshotsRequest wrapper for the ListInstanceScreenshots operation +type ListInstanceScreenshotsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance. + InstanceId *string `mandatory:"true" contributesTo:"path" name:"instanceId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInstanceScreenshotsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstanceScreenshotsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState InstanceScreenshotLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInstanceScreenshotsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInstanceScreenshotsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInstanceScreenshotsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInstanceScreenshotsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstanceScreenshotsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInstanceScreenshotsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInstanceScreenshotsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInstanceScreenshotsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstanceScreenshotsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingInstanceScreenshotLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetInstanceScreenshotLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInstanceScreenshotsResponse wrapper for the ListInstanceScreenshots operation +type ListInstanceScreenshotsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InstanceScreenshotSummary instances + Items []InstanceScreenshotSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListInstanceScreenshotsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInstanceScreenshotsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInstanceScreenshotsSortByEnum Enum with underlying type: string +type ListInstanceScreenshotsSortByEnum string + +// Set of constants representing the allowable values for ListInstanceScreenshotsSortByEnum +const ( + ListInstanceScreenshotsSortByTimecreated ListInstanceScreenshotsSortByEnum = "TIMECREATED" + ListInstanceScreenshotsSortByDisplayname ListInstanceScreenshotsSortByEnum = "DISPLAYNAME" +) + +var mappingListInstanceScreenshotsSortByEnum = map[string]ListInstanceScreenshotsSortByEnum{ + "TIMECREATED": ListInstanceScreenshotsSortByTimecreated, + "DISPLAYNAME": ListInstanceScreenshotsSortByDisplayname, +} + +var mappingListInstanceScreenshotsSortByEnumLowerCase = map[string]ListInstanceScreenshotsSortByEnum{ + "timecreated": ListInstanceScreenshotsSortByTimecreated, + "displayname": ListInstanceScreenshotsSortByDisplayname, +} + +// GetListInstanceScreenshotsSortByEnumValues Enumerates the set of values for ListInstanceScreenshotsSortByEnum +func GetListInstanceScreenshotsSortByEnumValues() []ListInstanceScreenshotsSortByEnum { + values := make([]ListInstanceScreenshotsSortByEnum, 0) + for _, v := range mappingListInstanceScreenshotsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInstanceScreenshotsSortByEnumStringValues Enumerates the set of values in String for ListInstanceScreenshotsSortByEnum +func GetListInstanceScreenshotsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInstanceScreenshotsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstanceScreenshotsSortByEnum(val string) (ListInstanceScreenshotsSortByEnum, bool) { + enum, ok := mappingListInstanceScreenshotsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInstanceScreenshotsSortOrderEnum Enum with underlying type: string +type ListInstanceScreenshotsSortOrderEnum string + +// Set of constants representing the allowable values for ListInstanceScreenshotsSortOrderEnum +const ( + ListInstanceScreenshotsSortOrderAsc ListInstanceScreenshotsSortOrderEnum = "ASC" + ListInstanceScreenshotsSortOrderDesc ListInstanceScreenshotsSortOrderEnum = "DESC" +) + +var mappingListInstanceScreenshotsSortOrderEnum = map[string]ListInstanceScreenshotsSortOrderEnum{ + "ASC": ListInstanceScreenshotsSortOrderAsc, + "DESC": ListInstanceScreenshotsSortOrderDesc, +} + +var mappingListInstanceScreenshotsSortOrderEnumLowerCase = map[string]ListInstanceScreenshotsSortOrderEnum{ + "asc": ListInstanceScreenshotsSortOrderAsc, + "desc": ListInstanceScreenshotsSortOrderDesc, +} + +// GetListInstanceScreenshotsSortOrderEnumValues Enumerates the set of values for ListInstanceScreenshotsSortOrderEnum +func GetListInstanceScreenshotsSortOrderEnumValues() []ListInstanceScreenshotsSortOrderEnum { + values := make([]ListInstanceScreenshotsSortOrderEnum, 0) + for _, v := range mappingListInstanceScreenshotsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInstanceScreenshotsSortOrderEnumStringValues Enumerates the set of values in String for ListInstanceScreenshotsSortOrderEnum +func GetListInstanceScreenshotsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInstanceScreenshotsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstanceScreenshotsSortOrderEnum(val string) (ListInstanceScreenshotsSortOrderEnum, bool) { + enum, ok := mappingListInstanceScreenshotsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instances_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instances_request_response.go new file mode 100644 index 0000000000..9a750fec3e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_instances_request_response.go @@ -0,0 +1,228 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInstancesRequest wrapper for the ListInstances operation +type ListInstancesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The OCID of the compute capacity reservation. + CapacityReservationId *string `mandatory:"false" contributesTo:"query" name:"capacityReservationId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster is a remote direct memory access (RDMA) network group. + // For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). + ComputeClusterId *string `mandatory:"false" contributesTo:"query" name:"computeClusterId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInstancesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInstancesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState InstanceLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInstancesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInstancesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInstancesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInstancesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInstancesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInstancesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInstancesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInstancesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInstancesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingInstanceLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetInstanceLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInstancesResponse wrapper for the ListInstances operation +type ListInstancesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Instance instances + Items []Instance `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInstancesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInstancesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInstancesSortByEnum Enum with underlying type: string +type ListInstancesSortByEnum string + +// Set of constants representing the allowable values for ListInstancesSortByEnum +const ( + ListInstancesSortByTimecreated ListInstancesSortByEnum = "TIMECREATED" + ListInstancesSortByDisplayname ListInstancesSortByEnum = "DISPLAYNAME" +) + +var mappingListInstancesSortByEnum = map[string]ListInstancesSortByEnum{ + "TIMECREATED": ListInstancesSortByTimecreated, + "DISPLAYNAME": ListInstancesSortByDisplayname, +} + +var mappingListInstancesSortByEnumLowerCase = map[string]ListInstancesSortByEnum{ + "timecreated": ListInstancesSortByTimecreated, + "displayname": ListInstancesSortByDisplayname, +} + +// GetListInstancesSortByEnumValues Enumerates the set of values for ListInstancesSortByEnum +func GetListInstancesSortByEnumValues() []ListInstancesSortByEnum { + values := make([]ListInstancesSortByEnum, 0) + for _, v := range mappingListInstancesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInstancesSortByEnumStringValues Enumerates the set of values in String for ListInstancesSortByEnum +func GetListInstancesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInstancesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstancesSortByEnum(val string) (ListInstancesSortByEnum, bool) { + enum, ok := mappingListInstancesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInstancesSortOrderEnum Enum with underlying type: string +type ListInstancesSortOrderEnum string + +// Set of constants representing the allowable values for ListInstancesSortOrderEnum +const ( + ListInstancesSortOrderAsc ListInstancesSortOrderEnum = "ASC" + ListInstancesSortOrderDesc ListInstancesSortOrderEnum = "DESC" +) + +var mappingListInstancesSortOrderEnum = map[string]ListInstancesSortOrderEnum{ + "ASC": ListInstancesSortOrderAsc, + "DESC": ListInstancesSortOrderDesc, +} + +var mappingListInstancesSortOrderEnumLowerCase = map[string]ListInstancesSortOrderEnum{ + "asc": ListInstancesSortOrderAsc, + "desc": ListInstancesSortOrderDesc, +} + +// GetListInstancesSortOrderEnumValues Enumerates the set of values for ListInstancesSortOrderEnum +func GetListInstancesSortOrderEnumValues() []ListInstancesSortOrderEnum { + values := make([]ListInstancesSortOrderEnum, 0) + for _, v := range mappingListInstancesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInstancesSortOrderEnumStringValues Enumerates the set of values in String for ListInstancesSortOrderEnum +func GetListInstancesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInstancesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInstancesSortOrderEnum(val string) (ListInstancesSortOrderEnum, bool) { + enum, ok := mappingListInstancesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_dns_records_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_dns_records_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_dns_records_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_dns_records_request_response.go index b253bab175..f3e6e030a2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_dns_records_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_dns_records_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListInternalDnsRecordsRequest wrapper for the ListInternalDnsRecords operation @@ -15,7 +17,7 @@ type ListInternalDnsRecordsRequest struct { // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Internal Hosted Zone. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Internal Hosted Zone. InternalHostedZoneId *string `mandatory:"true" contributesTo:"query" name:"internalHostedZoneId"` // For list pagination. The maximum number of results per page, or items to return in a paginated @@ -45,6 +47,10 @@ func (request ListInternalDnsRecordsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListInternalDnsRecordsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListInternalDnsRecordsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalDnsRecordsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListInternalDnsRecordsResponse wrapper for the ListInternalDnsRecords operation type ListInternalDnsRecordsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_drg_attachments_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_drg_attachments_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_drg_attachments_request_response.go index d5152aa614..ced513976f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_drg_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_drg_attachments_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListInternalDrgAttachmentsRequest wrapper for the ListInternalDrgAttachments operation @@ -48,6 +50,10 @@ func (request ListInternalDrgAttachmentsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListInternalDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +69,17 @@ func (request ListInternalDrgAttachmentsRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalDrgAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListInternalDrgAttachmentsResponse wrapper for the ListInternalDrgAttachments operation type ListInternalDrgAttachmentsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_drgs_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_drgs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_drgs_request_response.go index 357b725e7c..f631d21ccf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_drgs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListInternalDrgsRequest wrapper for the ListInternalDrgs operation @@ -46,6 +48,10 @@ func (request ListInternalDrgsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListInternalDrgsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,20 @@ func (request ListInternalDrgsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalDrgsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingInternalDrgDrgTypeEnum(string(request.DrgType)); !ok && request.DrgType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DrgType: %s. Supported values are: %s.", request.DrgType, strings.Join(GetInternalDrgDrgTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListInternalDrgsResponse wrapper for the ListInternalDrgs operation type ListInternalDrgsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_generic_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_generic_gateways_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_generic_gateways_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_generic_gateways_request_response.go index 208bfd0218..f35e4c5c2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_generic_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_generic_gateways_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListInternalGenericGatewaysRequest wrapper for the ListInternalGenericGateways operation @@ -42,6 +44,10 @@ func (request ListInternalGenericGatewaysRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListInternalGenericGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListInternalGenericGatewaysRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalGenericGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListInternalGenericGatewaysResponse wrapper for the ListInternalGenericGateways operation type ListInternalGenericGatewaysResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_public_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_public_ips_request_response.go new file mode 100644 index 0000000000..3647e0df7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_public_ips_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInternalPublicIpsRequest wrapper for the ListInternalPublicIps operation +type ListInternalPublicIpsRequest struct { + + // Whether the public IP is regional or specific to a particular availability domain. + // * `REGION`: The public IP exists within a region and is assigned to a regional entity + // (such as a NatGateway), or can be assigned to a private IP + // in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do + // ephemeral public IPs assigned to a regional entity. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity + // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. + // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. + Scope ListInternalPublicIpsScopeEnum `mandatory:"true" contributesTo:"query" name:"scope" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // A filter to return internal public IPs that match given lifetime. + Lifetime ListInternalPublicIpsLifetimeEnum `mandatory:"false" contributesTo:"query" name:"lifetime" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInternalPublicIpsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInternalPublicIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInternalPublicIpsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInternalPublicIpsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalPublicIpsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInternalPublicIpsScopeEnum(string(request.Scope)); !ok && request.Scope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Scope: %s. Supported values are: %s.", request.Scope, strings.Join(GetListInternalPublicIpsScopeEnumStringValues(), ","))) + } + if _, ok := GetMappingListInternalPublicIpsLifetimeEnum(string(request.Lifetime)); !ok && request.Lifetime != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Lifetime: %s. Supported values are: %s.", request.Lifetime, strings.Join(GetListInternalPublicIpsLifetimeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInternalPublicIpsResponse wrapper for the ListInternalPublicIps operation +type ListInternalPublicIpsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InternalPublicIp instances + Items []InternalPublicIp `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInternalPublicIpsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInternalPublicIpsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInternalPublicIpsScopeEnum Enum with underlying type: string +type ListInternalPublicIpsScopeEnum string + +// Set of constants representing the allowable values for ListInternalPublicIpsScopeEnum +const ( + ListInternalPublicIpsScopeRegion ListInternalPublicIpsScopeEnum = "REGION" + ListInternalPublicIpsScopeAvailabilityDomain ListInternalPublicIpsScopeEnum = "AVAILABILITY_DOMAIN" +) + +var mappingListInternalPublicIpsScopeEnum = map[string]ListInternalPublicIpsScopeEnum{ + "REGION": ListInternalPublicIpsScopeRegion, + "AVAILABILITY_DOMAIN": ListInternalPublicIpsScopeAvailabilityDomain, +} + +var mappingListInternalPublicIpsScopeEnumLowerCase = map[string]ListInternalPublicIpsScopeEnum{ + "region": ListInternalPublicIpsScopeRegion, + "availability_domain": ListInternalPublicIpsScopeAvailabilityDomain, +} + +// GetListInternalPublicIpsScopeEnumValues Enumerates the set of values for ListInternalPublicIpsScopeEnum +func GetListInternalPublicIpsScopeEnumValues() []ListInternalPublicIpsScopeEnum { + values := make([]ListInternalPublicIpsScopeEnum, 0) + for _, v := range mappingListInternalPublicIpsScopeEnum { + values = append(values, v) + } + return values +} + +// GetListInternalPublicIpsScopeEnumStringValues Enumerates the set of values in String for ListInternalPublicIpsScopeEnum +func GetListInternalPublicIpsScopeEnumStringValues() []string { + return []string{ + "REGION", + "AVAILABILITY_DOMAIN", + } +} + +// GetMappingListInternalPublicIpsScopeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInternalPublicIpsScopeEnum(val string) (ListInternalPublicIpsScopeEnum, bool) { + enum, ok := mappingListInternalPublicIpsScopeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInternalPublicIpsLifetimeEnum Enum with underlying type: string +type ListInternalPublicIpsLifetimeEnum string + +// Set of constants representing the allowable values for ListInternalPublicIpsLifetimeEnum +const ( + ListInternalPublicIpsLifetimeEphemeral ListInternalPublicIpsLifetimeEnum = "EPHEMERAL" + ListInternalPublicIpsLifetimeReserved ListInternalPublicIpsLifetimeEnum = "RESERVED" +) + +var mappingListInternalPublicIpsLifetimeEnum = map[string]ListInternalPublicIpsLifetimeEnum{ + "EPHEMERAL": ListInternalPublicIpsLifetimeEphemeral, + "RESERVED": ListInternalPublicIpsLifetimeReserved, +} + +var mappingListInternalPublicIpsLifetimeEnumLowerCase = map[string]ListInternalPublicIpsLifetimeEnum{ + "ephemeral": ListInternalPublicIpsLifetimeEphemeral, + "reserved": ListInternalPublicIpsLifetimeReserved, +} + +// GetListInternalPublicIpsLifetimeEnumValues Enumerates the set of values for ListInternalPublicIpsLifetimeEnum +func GetListInternalPublicIpsLifetimeEnumValues() []ListInternalPublicIpsLifetimeEnum { + values := make([]ListInternalPublicIpsLifetimeEnum, 0) + for _, v := range mappingListInternalPublicIpsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetListInternalPublicIpsLifetimeEnumStringValues Enumerates the set of values in String for ListInternalPublicIpsLifetimeEnum +func GetListInternalPublicIpsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingListInternalPublicIpsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInternalPublicIpsLifetimeEnum(val string) (ListInternalPublicIpsLifetimeEnum, bool) { + enum, ok := mappingListInternalPublicIpsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnic_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnic_attachments_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnic_attachments_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnic_attachments_request_response.go index f1cec2846b..539337a5f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_internal_vnic_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnic_attachments_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListInternalVnicAttachmentsRequest wrapper for the ListInternalVnicAttachments operation @@ -45,6 +47,10 @@ func (request ListInternalVnicAttachmentsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListInternalVnicAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListInternalVnicAttachmentsRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalVnicAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListInternalVnicAttachmentsResponse wrapper for the ListInternalVnicAttachments operation type ListInternalVnicAttachmentsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnics_request_response.go new file mode 100644 index 0000000000..fbf7c275eb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internal_vnics_request_response.go @@ -0,0 +1,218 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInternalVnicsRequest wrapper for the ListInternalVnics operation +type ListInternalVnicsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"query" name:"subnetId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInternalVnicsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInternalVnicsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to return only resources that match the specified lifecycle state. + LifecycleState InternalVnicLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInternalVnicsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInternalVnicsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInternalVnicsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInternalVnicsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternalVnicsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInternalVnicsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInternalVnicsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInternalVnicsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInternalVnicsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingInternalVnicLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetInternalVnicLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInternalVnicsResponse wrapper for the ListInternalVnics operation +type ListInternalVnicsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InternalVnic instances + Items []InternalVnic `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInternalVnicsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInternalVnicsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInternalVnicsSortByEnum Enum with underlying type: string +type ListInternalVnicsSortByEnum string + +// Set of constants representing the allowable values for ListInternalVnicsSortByEnum +const ( + ListInternalVnicsSortByTimecreated ListInternalVnicsSortByEnum = "TIMECREATED" + ListInternalVnicsSortByDisplayname ListInternalVnicsSortByEnum = "DISPLAYNAME" +) + +var mappingListInternalVnicsSortByEnum = map[string]ListInternalVnicsSortByEnum{ + "TIMECREATED": ListInternalVnicsSortByTimecreated, + "DISPLAYNAME": ListInternalVnicsSortByDisplayname, +} + +var mappingListInternalVnicsSortByEnumLowerCase = map[string]ListInternalVnicsSortByEnum{ + "timecreated": ListInternalVnicsSortByTimecreated, + "displayname": ListInternalVnicsSortByDisplayname, +} + +// GetListInternalVnicsSortByEnumValues Enumerates the set of values for ListInternalVnicsSortByEnum +func GetListInternalVnicsSortByEnumValues() []ListInternalVnicsSortByEnum { + values := make([]ListInternalVnicsSortByEnum, 0) + for _, v := range mappingListInternalVnicsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInternalVnicsSortByEnumStringValues Enumerates the set of values in String for ListInternalVnicsSortByEnum +func GetListInternalVnicsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInternalVnicsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInternalVnicsSortByEnum(val string) (ListInternalVnicsSortByEnum, bool) { + enum, ok := mappingListInternalVnicsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInternalVnicsSortOrderEnum Enum with underlying type: string +type ListInternalVnicsSortOrderEnum string + +// Set of constants representing the allowable values for ListInternalVnicsSortOrderEnum +const ( + ListInternalVnicsSortOrderAsc ListInternalVnicsSortOrderEnum = "ASC" + ListInternalVnicsSortOrderDesc ListInternalVnicsSortOrderEnum = "DESC" +) + +var mappingListInternalVnicsSortOrderEnum = map[string]ListInternalVnicsSortOrderEnum{ + "ASC": ListInternalVnicsSortOrderAsc, + "DESC": ListInternalVnicsSortOrderDesc, +} + +var mappingListInternalVnicsSortOrderEnumLowerCase = map[string]ListInternalVnicsSortOrderEnum{ + "asc": ListInternalVnicsSortOrderAsc, + "desc": ListInternalVnicsSortOrderDesc, +} + +// GetListInternalVnicsSortOrderEnumValues Enumerates the set of values for ListInternalVnicsSortOrderEnum +func GetListInternalVnicsSortOrderEnumValues() []ListInternalVnicsSortOrderEnum { + values := make([]ListInternalVnicsSortOrderEnum, 0) + for _, v := range mappingListInternalVnicsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInternalVnicsSortOrderEnumStringValues Enumerates the set of values in String for ListInternalVnicsSortOrderEnum +func GetListInternalVnicsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInternalVnicsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInternalVnicsSortOrderEnum(val string) (ListInternalVnicsSortOrderEnum, bool) { + enum, ok := mappingListInternalVnicsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internet_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internet_gateways_request_response.go new file mode 100644 index 0000000000..d5dbb74aae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_internet_gateways_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListInternetGatewaysRequest wrapper for the ListInternetGateways operation +type ListInternetGatewaysRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListInternetGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListInternetGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState InternetGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListInternetGatewaysRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListInternetGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListInternetGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListInternetGatewaysRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListInternetGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListInternetGatewaysSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListInternetGatewaysSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListInternetGatewaysSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListInternetGatewaysSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingInternetGatewayLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetInternetGatewayLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListInternetGatewaysResponse wrapper for the ListInternetGateways operation +type ListInternetGatewaysResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []InternetGateway instances + Items []InternetGateway `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListInternetGatewaysResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListInternetGatewaysResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListInternetGatewaysSortByEnum Enum with underlying type: string +type ListInternetGatewaysSortByEnum string + +// Set of constants representing the allowable values for ListInternetGatewaysSortByEnum +const ( + ListInternetGatewaysSortByTimecreated ListInternetGatewaysSortByEnum = "TIMECREATED" + ListInternetGatewaysSortByDisplayname ListInternetGatewaysSortByEnum = "DISPLAYNAME" +) + +var mappingListInternetGatewaysSortByEnum = map[string]ListInternetGatewaysSortByEnum{ + "TIMECREATED": ListInternetGatewaysSortByTimecreated, + "DISPLAYNAME": ListInternetGatewaysSortByDisplayname, +} + +var mappingListInternetGatewaysSortByEnumLowerCase = map[string]ListInternetGatewaysSortByEnum{ + "timecreated": ListInternetGatewaysSortByTimecreated, + "displayname": ListInternetGatewaysSortByDisplayname, +} + +// GetListInternetGatewaysSortByEnumValues Enumerates the set of values for ListInternetGatewaysSortByEnum +func GetListInternetGatewaysSortByEnumValues() []ListInternetGatewaysSortByEnum { + values := make([]ListInternetGatewaysSortByEnum, 0) + for _, v := range mappingListInternetGatewaysSortByEnum { + values = append(values, v) + } + return values +} + +// GetListInternetGatewaysSortByEnumStringValues Enumerates the set of values in String for ListInternetGatewaysSortByEnum +func GetListInternetGatewaysSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListInternetGatewaysSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInternetGatewaysSortByEnum(val string) (ListInternetGatewaysSortByEnum, bool) { + enum, ok := mappingListInternetGatewaysSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListInternetGatewaysSortOrderEnum Enum with underlying type: string +type ListInternetGatewaysSortOrderEnum string + +// Set of constants representing the allowable values for ListInternetGatewaysSortOrderEnum +const ( + ListInternetGatewaysSortOrderAsc ListInternetGatewaysSortOrderEnum = "ASC" + ListInternetGatewaysSortOrderDesc ListInternetGatewaysSortOrderEnum = "DESC" +) + +var mappingListInternetGatewaysSortOrderEnum = map[string]ListInternetGatewaysSortOrderEnum{ + "ASC": ListInternetGatewaysSortOrderAsc, + "DESC": ListInternetGatewaysSortOrderDesc, +} + +var mappingListInternetGatewaysSortOrderEnumLowerCase = map[string]ListInternetGatewaysSortOrderEnum{ + "asc": ListInternetGatewaysSortOrderAsc, + "desc": ListInternetGatewaysSortOrderDesc, +} + +// GetListInternetGatewaysSortOrderEnumValues Enumerates the set of values for ListInternetGatewaysSortOrderEnum +func GetListInternetGatewaysSortOrderEnumValues() []ListInternetGatewaysSortOrderEnum { + values := make([]ListInternetGatewaysSortOrderEnum, 0) + for _, v := range mappingListInternetGatewaysSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListInternetGatewaysSortOrderEnumStringValues Enumerates the set of values in String for ListInternetGatewaysSortOrderEnum +func GetListInternetGatewaysSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListInternetGatewaysSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListInternetGatewaysSortOrderEnum(val string) (ListInternetGatewaysSortOrderEnum, bool) { + enum, ok := mappingListInternetGatewaysSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_ipv6s_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_ipv6s_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go index 069fce5505..675a72c48d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_ipv6s_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_ipv6s_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIpv6sRequest wrapper for the ListIpv6s operation @@ -27,7 +29,7 @@ type ListIpv6sRequest struct { // Example: `10.0.3.3` IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` // The OCID of the VNIC. @@ -49,6 +51,10 @@ func (request ListIpv6sRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIpv6sRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request ListIpv6sRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIpv6sRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIpv6sResponse wrapper for the ListIpv6s operation type ListIpv6sResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_local_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_local_peering_connections_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_local_peering_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_local_peering_connections_request_response.go index 97a2a099c5..a28e546a83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_local_peering_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_local_peering_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListLocalPeeringConnectionsRequest wrapper for the ListLocalPeeringConnections operation @@ -45,6 +47,10 @@ func (request ListLocalPeeringConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListLocalPeeringConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListLocalPeeringConnectionsRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLocalPeeringConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListLocalPeeringConnectionsResponse wrapper for the ListLocalPeeringConnections operation type ListLocalPeeringConnectionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_local_peering_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_local_peering_gateways_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_local_peering_gateways_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_local_peering_gateways_request_response.go index d597b2533d..9288325fa4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_local_peering_gateways_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_local_peering_gateways_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListLocalPeeringGatewaysRequest wrapper for the ListLocalPeeringGateways operation @@ -45,6 +47,10 @@ func (request ListLocalPeeringGatewaysRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListLocalPeeringGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListLocalPeeringGatewaysRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLocalPeeringGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListLocalPeeringGatewaysResponse wrapper for the ListLocalPeeringGateways operation type ListLocalPeeringGatewaysResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_nat_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_nat_gateways_request_response.go new file mode 100644 index 0000000000..c23141abd5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_nat_gateways_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNatGatewaysRequest wrapper for the ListNatGateways operation +type ListNatGatewaysRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListNatGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListNatGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState NatGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNatGatewaysRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNatGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNatGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNatGatewaysRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNatGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNatGatewaysSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNatGatewaysSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListNatGatewaysSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNatGatewaysSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingNatGatewayLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetNatGatewayLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNatGatewaysResponse wrapper for the ListNatGateways operation +type ListNatGatewaysResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []NatGateway instances + Items []NatGateway `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNatGatewaysResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNatGatewaysResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNatGatewaysSortByEnum Enum with underlying type: string +type ListNatGatewaysSortByEnum string + +// Set of constants representing the allowable values for ListNatGatewaysSortByEnum +const ( + ListNatGatewaysSortByTimecreated ListNatGatewaysSortByEnum = "TIMECREATED" + ListNatGatewaysSortByDisplayname ListNatGatewaysSortByEnum = "DISPLAYNAME" +) + +var mappingListNatGatewaysSortByEnum = map[string]ListNatGatewaysSortByEnum{ + "TIMECREATED": ListNatGatewaysSortByTimecreated, + "DISPLAYNAME": ListNatGatewaysSortByDisplayname, +} + +var mappingListNatGatewaysSortByEnumLowerCase = map[string]ListNatGatewaysSortByEnum{ + "timecreated": ListNatGatewaysSortByTimecreated, + "displayname": ListNatGatewaysSortByDisplayname, +} + +// GetListNatGatewaysSortByEnumValues Enumerates the set of values for ListNatGatewaysSortByEnum +func GetListNatGatewaysSortByEnumValues() []ListNatGatewaysSortByEnum { + values := make([]ListNatGatewaysSortByEnum, 0) + for _, v := range mappingListNatGatewaysSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNatGatewaysSortByEnumStringValues Enumerates the set of values in String for ListNatGatewaysSortByEnum +func GetListNatGatewaysSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListNatGatewaysSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNatGatewaysSortByEnum(val string) (ListNatGatewaysSortByEnum, bool) { + enum, ok := mappingListNatGatewaysSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNatGatewaysSortOrderEnum Enum with underlying type: string +type ListNatGatewaysSortOrderEnum string + +// Set of constants representing the allowable values for ListNatGatewaysSortOrderEnum +const ( + ListNatGatewaysSortOrderAsc ListNatGatewaysSortOrderEnum = "ASC" + ListNatGatewaysSortOrderDesc ListNatGatewaysSortOrderEnum = "DESC" +) + +var mappingListNatGatewaysSortOrderEnum = map[string]ListNatGatewaysSortOrderEnum{ + "ASC": ListNatGatewaysSortOrderAsc, + "DESC": ListNatGatewaysSortOrderDesc, +} + +var mappingListNatGatewaysSortOrderEnumLowerCase = map[string]ListNatGatewaysSortOrderEnum{ + "asc": ListNatGatewaysSortOrderAsc, + "desc": ListNatGatewaysSortOrderDesc, +} + +// GetListNatGatewaysSortOrderEnumValues Enumerates the set of values for ListNatGatewaysSortOrderEnum +func GetListNatGatewaysSortOrderEnumValues() []ListNatGatewaysSortOrderEnum { + values := make([]ListNatGatewaysSortOrderEnum, 0) + for _, v := range mappingListNatGatewaysSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNatGatewaysSortOrderEnumStringValues Enumerates the set of values in String for ListNatGatewaysSortOrderEnum +func GetListNatGatewaysSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNatGatewaysSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNatGatewaysSortOrderEnum(val string) (ListNatGatewaysSortOrderEnum, bool) { + enum, ok := mappingListNatGatewaysSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_security_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_security_rules_request_response.go new file mode 100644 index 0000000000..a14ef306f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_security_rules_request_response.go @@ -0,0 +1,245 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkSecurityGroupSecurityRulesRequest wrapper for the ListNetworkSecurityGroupSecurityRules operation +type ListNetworkSecurityGroupSecurityRulesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` + + // Direction of the security rule. Set to `EGRESS` for rules that allow outbound IP packets, + // or `INGRESS` for rules that allow inbound IP packets. + Direction ListNetworkSecurityGroupSecurityRulesDirectionEnum `mandatory:"false" contributesTo:"query" name:"direction" omitEmpty:"true"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. + SortBy ListNetworkSecurityGroupSecurityRulesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListNetworkSecurityGroupSecurityRulesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkSecurityGroupSecurityRulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkSecurityGroupSecurityRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkSecurityGroupSecurityRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkSecurityGroupSecurityRulesDirectionEnum(string(request.Direction)); !ok && request.Direction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Direction: %s. Supported values are: %s.", request.Direction, strings.Join(GetListNetworkSecurityGroupSecurityRulesDirectionEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkSecurityGroupSecurityRulesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkSecurityGroupSecurityRulesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkSecurityGroupSecurityRulesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkSecurityGroupSecurityRulesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkSecurityGroupSecurityRulesResponse wrapper for the ListNetworkSecurityGroupSecurityRules operation +type ListNetworkSecurityGroupSecurityRulesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []SecurityRule instances + Items []SecurityRule `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNetworkSecurityGroupSecurityRulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkSecurityGroupSecurityRulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkSecurityGroupSecurityRulesDirectionEnum Enum with underlying type: string +type ListNetworkSecurityGroupSecurityRulesDirectionEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupSecurityRulesDirectionEnum +const ( + ListNetworkSecurityGroupSecurityRulesDirectionEgress ListNetworkSecurityGroupSecurityRulesDirectionEnum = "EGRESS" + ListNetworkSecurityGroupSecurityRulesDirectionIngress ListNetworkSecurityGroupSecurityRulesDirectionEnum = "INGRESS" +) + +var mappingListNetworkSecurityGroupSecurityRulesDirectionEnum = map[string]ListNetworkSecurityGroupSecurityRulesDirectionEnum{ + "EGRESS": ListNetworkSecurityGroupSecurityRulesDirectionEgress, + "INGRESS": ListNetworkSecurityGroupSecurityRulesDirectionIngress, +} + +var mappingListNetworkSecurityGroupSecurityRulesDirectionEnumLowerCase = map[string]ListNetworkSecurityGroupSecurityRulesDirectionEnum{ + "egress": ListNetworkSecurityGroupSecurityRulesDirectionEgress, + "ingress": ListNetworkSecurityGroupSecurityRulesDirectionIngress, +} + +// GetListNetworkSecurityGroupSecurityRulesDirectionEnumValues Enumerates the set of values for ListNetworkSecurityGroupSecurityRulesDirectionEnum +func GetListNetworkSecurityGroupSecurityRulesDirectionEnumValues() []ListNetworkSecurityGroupSecurityRulesDirectionEnum { + values := make([]ListNetworkSecurityGroupSecurityRulesDirectionEnum, 0) + for _, v := range mappingListNetworkSecurityGroupSecurityRulesDirectionEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupSecurityRulesDirectionEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupSecurityRulesDirectionEnum +func GetListNetworkSecurityGroupSecurityRulesDirectionEnumStringValues() []string { + return []string{ + "EGRESS", + "INGRESS", + } +} + +// GetMappingListNetworkSecurityGroupSecurityRulesDirectionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupSecurityRulesDirectionEnum(val string) (ListNetworkSecurityGroupSecurityRulesDirectionEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupSecurityRulesDirectionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkSecurityGroupSecurityRulesSortByEnum Enum with underlying type: string +type ListNetworkSecurityGroupSecurityRulesSortByEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupSecurityRulesSortByEnum +const ( + ListNetworkSecurityGroupSecurityRulesSortByTimecreated ListNetworkSecurityGroupSecurityRulesSortByEnum = "TIMECREATED" +) + +var mappingListNetworkSecurityGroupSecurityRulesSortByEnum = map[string]ListNetworkSecurityGroupSecurityRulesSortByEnum{ + "TIMECREATED": ListNetworkSecurityGroupSecurityRulesSortByTimecreated, +} + +var mappingListNetworkSecurityGroupSecurityRulesSortByEnumLowerCase = map[string]ListNetworkSecurityGroupSecurityRulesSortByEnum{ + "timecreated": ListNetworkSecurityGroupSecurityRulesSortByTimecreated, +} + +// GetListNetworkSecurityGroupSecurityRulesSortByEnumValues Enumerates the set of values for ListNetworkSecurityGroupSecurityRulesSortByEnum +func GetListNetworkSecurityGroupSecurityRulesSortByEnumValues() []ListNetworkSecurityGroupSecurityRulesSortByEnum { + values := make([]ListNetworkSecurityGroupSecurityRulesSortByEnum, 0) + for _, v := range mappingListNetworkSecurityGroupSecurityRulesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupSecurityRulesSortByEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupSecurityRulesSortByEnum +func GetListNetworkSecurityGroupSecurityRulesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + } +} + +// GetMappingListNetworkSecurityGroupSecurityRulesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupSecurityRulesSortByEnum(val string) (ListNetworkSecurityGroupSecurityRulesSortByEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupSecurityRulesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkSecurityGroupSecurityRulesSortOrderEnum Enum with underlying type: string +type ListNetworkSecurityGroupSecurityRulesSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupSecurityRulesSortOrderEnum +const ( + ListNetworkSecurityGroupSecurityRulesSortOrderAsc ListNetworkSecurityGroupSecurityRulesSortOrderEnum = "ASC" + ListNetworkSecurityGroupSecurityRulesSortOrderDesc ListNetworkSecurityGroupSecurityRulesSortOrderEnum = "DESC" +) + +var mappingListNetworkSecurityGroupSecurityRulesSortOrderEnum = map[string]ListNetworkSecurityGroupSecurityRulesSortOrderEnum{ + "ASC": ListNetworkSecurityGroupSecurityRulesSortOrderAsc, + "DESC": ListNetworkSecurityGroupSecurityRulesSortOrderDesc, +} + +var mappingListNetworkSecurityGroupSecurityRulesSortOrderEnumLowerCase = map[string]ListNetworkSecurityGroupSecurityRulesSortOrderEnum{ + "asc": ListNetworkSecurityGroupSecurityRulesSortOrderAsc, + "desc": ListNetworkSecurityGroupSecurityRulesSortOrderDesc, +} + +// GetListNetworkSecurityGroupSecurityRulesSortOrderEnumValues Enumerates the set of values for ListNetworkSecurityGroupSecurityRulesSortOrderEnum +func GetListNetworkSecurityGroupSecurityRulesSortOrderEnumValues() []ListNetworkSecurityGroupSecurityRulesSortOrderEnum { + values := make([]ListNetworkSecurityGroupSecurityRulesSortOrderEnum, 0) + for _, v := range mappingListNetworkSecurityGroupSecurityRulesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupSecurityRulesSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupSecurityRulesSortOrderEnum +func GetListNetworkSecurityGroupSecurityRulesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkSecurityGroupSecurityRulesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupSecurityRulesSortOrderEnum(val string) (ListNetworkSecurityGroupSecurityRulesSortOrderEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupSecurityRulesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_vnics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_vnics_request_response.go new file mode 100644 index 0000000000..bb5564a892 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_group_vnics_request_response.go @@ -0,0 +1,196 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkSecurityGroupVnicsRequest wrapper for the ListNetworkSecurityGroupVnics operation +type ListNetworkSecurityGroupVnicsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + NetworkSecurityGroupId *string `mandatory:"true" contributesTo:"path" name:"networkSecurityGroupId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. + SortBy ListNetworkSecurityGroupVnicsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListNetworkSecurityGroupVnicsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkSecurityGroupVnicsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkSecurityGroupVnicsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkSecurityGroupVnicsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkSecurityGroupVnicsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkSecurityGroupVnicsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkSecurityGroupVnicsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkSecurityGroupVnicsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkSecurityGroupVnicsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkSecurityGroupVnicsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkSecurityGroupVnicsResponse wrapper for the ListNetworkSecurityGroupVnics operation +type ListNetworkSecurityGroupVnicsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []NetworkSecurityGroupVnic instances + Items []NetworkSecurityGroupVnic `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNetworkSecurityGroupVnicsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkSecurityGroupVnicsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkSecurityGroupVnicsSortByEnum Enum with underlying type: string +type ListNetworkSecurityGroupVnicsSortByEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupVnicsSortByEnum +const ( + ListNetworkSecurityGroupVnicsSortByTimeassociated ListNetworkSecurityGroupVnicsSortByEnum = "TIMEASSOCIATED" +) + +var mappingListNetworkSecurityGroupVnicsSortByEnum = map[string]ListNetworkSecurityGroupVnicsSortByEnum{ + "TIMEASSOCIATED": ListNetworkSecurityGroupVnicsSortByTimeassociated, +} + +var mappingListNetworkSecurityGroupVnicsSortByEnumLowerCase = map[string]ListNetworkSecurityGroupVnicsSortByEnum{ + "timeassociated": ListNetworkSecurityGroupVnicsSortByTimeassociated, +} + +// GetListNetworkSecurityGroupVnicsSortByEnumValues Enumerates the set of values for ListNetworkSecurityGroupVnicsSortByEnum +func GetListNetworkSecurityGroupVnicsSortByEnumValues() []ListNetworkSecurityGroupVnicsSortByEnum { + values := make([]ListNetworkSecurityGroupVnicsSortByEnum, 0) + for _, v := range mappingListNetworkSecurityGroupVnicsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupVnicsSortByEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupVnicsSortByEnum +func GetListNetworkSecurityGroupVnicsSortByEnumStringValues() []string { + return []string{ + "TIMEASSOCIATED", + } +} + +// GetMappingListNetworkSecurityGroupVnicsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupVnicsSortByEnum(val string) (ListNetworkSecurityGroupVnicsSortByEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupVnicsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkSecurityGroupVnicsSortOrderEnum Enum with underlying type: string +type ListNetworkSecurityGroupVnicsSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupVnicsSortOrderEnum +const ( + ListNetworkSecurityGroupVnicsSortOrderAsc ListNetworkSecurityGroupVnicsSortOrderEnum = "ASC" + ListNetworkSecurityGroupVnicsSortOrderDesc ListNetworkSecurityGroupVnicsSortOrderEnum = "DESC" +) + +var mappingListNetworkSecurityGroupVnicsSortOrderEnum = map[string]ListNetworkSecurityGroupVnicsSortOrderEnum{ + "ASC": ListNetworkSecurityGroupVnicsSortOrderAsc, + "DESC": ListNetworkSecurityGroupVnicsSortOrderDesc, +} + +var mappingListNetworkSecurityGroupVnicsSortOrderEnumLowerCase = map[string]ListNetworkSecurityGroupVnicsSortOrderEnum{ + "asc": ListNetworkSecurityGroupVnicsSortOrderAsc, + "desc": ListNetworkSecurityGroupVnicsSortOrderDesc, +} + +// GetListNetworkSecurityGroupVnicsSortOrderEnumValues Enumerates the set of values for ListNetworkSecurityGroupVnicsSortOrderEnum +func GetListNetworkSecurityGroupVnicsSortOrderEnumValues() []ListNetworkSecurityGroupVnicsSortOrderEnum { + values := make([]ListNetworkSecurityGroupVnicsSortOrderEnum, 0) + for _, v := range mappingListNetworkSecurityGroupVnicsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupVnicsSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupVnicsSortOrderEnum +func GetListNetworkSecurityGroupVnicsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkSecurityGroupVnicsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupVnicsSortOrderEnum(val string) (ListNetworkSecurityGroupVnicsSortOrderEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupVnicsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_groups_request_response.go new file mode 100644 index 0000000000..807a77a641 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_network_security_groups_request_response.go @@ -0,0 +1,222 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkSecurityGroupsRequest wrapper for the ListNetworkSecurityGroups operation +type ListNetworkSecurityGroupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VLAN. + VlanId *string `mandatory:"false" contributesTo:"query" name:"vlanId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListNetworkSecurityGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListNetworkSecurityGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState NetworkSecurityGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkSecurityGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkSecurityGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkSecurityGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkSecurityGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkSecurityGroupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkSecurityGroupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkSecurityGroupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkSecurityGroupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingNetworkSecurityGroupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetNetworkSecurityGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkSecurityGroupsResponse wrapper for the ListNetworkSecurityGroups operation +type ListNetworkSecurityGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []NetworkSecurityGroup instances + Items []NetworkSecurityGroup `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNetworkSecurityGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkSecurityGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkSecurityGroupsSortByEnum Enum with underlying type: string +type ListNetworkSecurityGroupsSortByEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupsSortByEnum +const ( + ListNetworkSecurityGroupsSortByTimecreated ListNetworkSecurityGroupsSortByEnum = "TIMECREATED" + ListNetworkSecurityGroupsSortByDisplayname ListNetworkSecurityGroupsSortByEnum = "DISPLAYNAME" +) + +var mappingListNetworkSecurityGroupsSortByEnum = map[string]ListNetworkSecurityGroupsSortByEnum{ + "TIMECREATED": ListNetworkSecurityGroupsSortByTimecreated, + "DISPLAYNAME": ListNetworkSecurityGroupsSortByDisplayname, +} + +var mappingListNetworkSecurityGroupsSortByEnumLowerCase = map[string]ListNetworkSecurityGroupsSortByEnum{ + "timecreated": ListNetworkSecurityGroupsSortByTimecreated, + "displayname": ListNetworkSecurityGroupsSortByDisplayname, +} + +// GetListNetworkSecurityGroupsSortByEnumValues Enumerates the set of values for ListNetworkSecurityGroupsSortByEnum +func GetListNetworkSecurityGroupsSortByEnumValues() []ListNetworkSecurityGroupsSortByEnum { + values := make([]ListNetworkSecurityGroupsSortByEnum, 0) + for _, v := range mappingListNetworkSecurityGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupsSortByEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupsSortByEnum +func GetListNetworkSecurityGroupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListNetworkSecurityGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupsSortByEnum(val string) (ListNetworkSecurityGroupsSortByEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkSecurityGroupsSortOrderEnum Enum with underlying type: string +type ListNetworkSecurityGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkSecurityGroupsSortOrderEnum +const ( + ListNetworkSecurityGroupsSortOrderAsc ListNetworkSecurityGroupsSortOrderEnum = "ASC" + ListNetworkSecurityGroupsSortOrderDesc ListNetworkSecurityGroupsSortOrderEnum = "DESC" +) + +var mappingListNetworkSecurityGroupsSortOrderEnum = map[string]ListNetworkSecurityGroupsSortOrderEnum{ + "ASC": ListNetworkSecurityGroupsSortOrderAsc, + "DESC": ListNetworkSecurityGroupsSortOrderDesc, +} + +var mappingListNetworkSecurityGroupsSortOrderEnumLowerCase = map[string]ListNetworkSecurityGroupsSortOrderEnum{ + "asc": ListNetworkSecurityGroupsSortOrderAsc, + "desc": ListNetworkSecurityGroupsSortOrderDesc, +} + +// GetListNetworkSecurityGroupsSortOrderEnumValues Enumerates the set of values for ListNetworkSecurityGroupsSortOrderEnum +func GetListNetworkSecurityGroupsSortOrderEnumValues() []ListNetworkSecurityGroupsSortOrderEnum { + values := make([]ListNetworkSecurityGroupsSortOrderEnum, 0) + for _, v := range mappingListNetworkSecurityGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSecurityGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkSecurityGroupsSortOrderEnum +func GetListNetworkSecurityGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkSecurityGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSecurityGroupsSortOrderEnum(val string) (ListNetworkSecurityGroupsSortOrderEnum, bool) { + enum, ok := mappingListNetworkSecurityGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_next_hops_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_next_hops_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_next_hops_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_next_hops_request_response.go index f29be9284b..d66dabacb0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_next_hops_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_next_hops_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListNextHopsRequest wrapper for the ListNextHops operation @@ -31,6 +33,10 @@ func (request ListNextHopsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListNextHopsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListNextHopsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNextHopsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListNextHopsResponse wrapper for the ListNextHops operation type ListNextHopsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_access_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_access_gateways_request_response.go new file mode 100644 index 0000000000..4435726dee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_access_gateways_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPrivateAccessGatewaysRequest wrapper for the ListPrivateAccessGateways operation +type ListPrivateAccessGatewaysRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListPrivateAccessGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListPrivateAccessGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPrivateAccessGatewaysRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPrivateAccessGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPrivateAccessGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPrivateAccessGatewaysRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPrivateAccessGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPrivateAccessGatewaysSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPrivateAccessGatewaysSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListPrivateAccessGatewaysSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPrivateAccessGatewaysSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPrivateAccessGatewaysResponse wrapper for the ListPrivateAccessGateways operation +type ListPrivateAccessGatewaysResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []PrivateAccessGatewaySummary instances + Items []PrivateAccessGatewaySummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPrivateAccessGatewaysResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPrivateAccessGatewaysResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPrivateAccessGatewaysSortByEnum Enum with underlying type: string +type ListPrivateAccessGatewaysSortByEnum string + +// Set of constants representing the allowable values for ListPrivateAccessGatewaysSortByEnum +const ( + ListPrivateAccessGatewaysSortByTimecreated ListPrivateAccessGatewaysSortByEnum = "TIMECREATED" + ListPrivateAccessGatewaysSortByDisplayname ListPrivateAccessGatewaysSortByEnum = "DISPLAYNAME" +) + +var mappingListPrivateAccessGatewaysSortByEnum = map[string]ListPrivateAccessGatewaysSortByEnum{ + "TIMECREATED": ListPrivateAccessGatewaysSortByTimecreated, + "DISPLAYNAME": ListPrivateAccessGatewaysSortByDisplayname, +} + +var mappingListPrivateAccessGatewaysSortByEnumLowerCase = map[string]ListPrivateAccessGatewaysSortByEnum{ + "timecreated": ListPrivateAccessGatewaysSortByTimecreated, + "displayname": ListPrivateAccessGatewaysSortByDisplayname, +} + +// GetListPrivateAccessGatewaysSortByEnumValues Enumerates the set of values for ListPrivateAccessGatewaysSortByEnum +func GetListPrivateAccessGatewaysSortByEnumValues() []ListPrivateAccessGatewaysSortByEnum { + values := make([]ListPrivateAccessGatewaysSortByEnum, 0) + for _, v := range mappingListPrivateAccessGatewaysSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPrivateAccessGatewaysSortByEnumStringValues Enumerates the set of values in String for ListPrivateAccessGatewaysSortByEnum +func GetListPrivateAccessGatewaysSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListPrivateAccessGatewaysSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPrivateAccessGatewaysSortByEnum(val string) (ListPrivateAccessGatewaysSortByEnum, bool) { + enum, ok := mappingListPrivateAccessGatewaysSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPrivateAccessGatewaysSortOrderEnum Enum with underlying type: string +type ListPrivateAccessGatewaysSortOrderEnum string + +// Set of constants representing the allowable values for ListPrivateAccessGatewaysSortOrderEnum +const ( + ListPrivateAccessGatewaysSortOrderAsc ListPrivateAccessGatewaysSortOrderEnum = "ASC" + ListPrivateAccessGatewaysSortOrderDesc ListPrivateAccessGatewaysSortOrderEnum = "DESC" +) + +var mappingListPrivateAccessGatewaysSortOrderEnum = map[string]ListPrivateAccessGatewaysSortOrderEnum{ + "ASC": ListPrivateAccessGatewaysSortOrderAsc, + "DESC": ListPrivateAccessGatewaysSortOrderDesc, +} + +var mappingListPrivateAccessGatewaysSortOrderEnumLowerCase = map[string]ListPrivateAccessGatewaysSortOrderEnum{ + "asc": ListPrivateAccessGatewaysSortOrderAsc, + "desc": ListPrivateAccessGatewaysSortOrderDesc, +} + +// GetListPrivateAccessGatewaysSortOrderEnumValues Enumerates the set of values for ListPrivateAccessGatewaysSortOrderEnum +func GetListPrivateAccessGatewaysSortOrderEnumValues() []ListPrivateAccessGatewaysSortOrderEnum { + values := make([]ListPrivateAccessGatewaysSortOrderEnum, 0) + for _, v := range mappingListPrivateAccessGatewaysSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPrivateAccessGatewaysSortOrderEnumStringValues Enumerates the set of values in String for ListPrivateAccessGatewaysSortOrderEnum +func GetListPrivateAccessGatewaysSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPrivateAccessGatewaysSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPrivateAccessGatewaysSortOrderEnum(val string) (ListPrivateAccessGatewaysSortOrderEnum, bool) { + enum, ok := mappingListPrivateAccessGatewaysSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoint_associations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoint_associations_request_response.go new file mode 100644 index 0000000000..5c75b88ac9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoint_associations_request_response.go @@ -0,0 +1,206 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPrivateEndpointAssociationsRequest wrapper for the ListPrivateEndpointAssociations operation +type ListPrivateEndpointAssociationsRequest struct { + + // The endpoint service's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + EndpointServiceId *string `mandatory:"true" contributesTo:"path" name:"endpointServiceId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListPrivateEndpointAssociationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListPrivateEndpointAssociationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPrivateEndpointAssociationsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPrivateEndpointAssociationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPrivateEndpointAssociationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPrivateEndpointAssociationsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPrivateEndpointAssociationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPrivateEndpointAssociationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPrivateEndpointAssociationsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListPrivateEndpointAssociationsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPrivateEndpointAssociationsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPrivateEndpointAssociationsResponse wrapper for the ListPrivateEndpointAssociations operation +type ListPrivateEndpointAssociationsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []PrivateEndpointAssociation instances + Items []PrivateEndpointAssociation `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPrivateEndpointAssociationsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPrivateEndpointAssociationsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPrivateEndpointAssociationsSortByEnum Enum with underlying type: string +type ListPrivateEndpointAssociationsSortByEnum string + +// Set of constants representing the allowable values for ListPrivateEndpointAssociationsSortByEnum +const ( + ListPrivateEndpointAssociationsSortByTimecreated ListPrivateEndpointAssociationsSortByEnum = "TIMECREATED" + ListPrivateEndpointAssociationsSortByDisplayname ListPrivateEndpointAssociationsSortByEnum = "DISPLAYNAME" +) + +var mappingListPrivateEndpointAssociationsSortByEnum = map[string]ListPrivateEndpointAssociationsSortByEnum{ + "TIMECREATED": ListPrivateEndpointAssociationsSortByTimecreated, + "DISPLAYNAME": ListPrivateEndpointAssociationsSortByDisplayname, +} + +var mappingListPrivateEndpointAssociationsSortByEnumLowerCase = map[string]ListPrivateEndpointAssociationsSortByEnum{ + "timecreated": ListPrivateEndpointAssociationsSortByTimecreated, + "displayname": ListPrivateEndpointAssociationsSortByDisplayname, +} + +// GetListPrivateEndpointAssociationsSortByEnumValues Enumerates the set of values for ListPrivateEndpointAssociationsSortByEnum +func GetListPrivateEndpointAssociationsSortByEnumValues() []ListPrivateEndpointAssociationsSortByEnum { + values := make([]ListPrivateEndpointAssociationsSortByEnum, 0) + for _, v := range mappingListPrivateEndpointAssociationsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPrivateEndpointAssociationsSortByEnumStringValues Enumerates the set of values in String for ListPrivateEndpointAssociationsSortByEnum +func GetListPrivateEndpointAssociationsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListPrivateEndpointAssociationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPrivateEndpointAssociationsSortByEnum(val string) (ListPrivateEndpointAssociationsSortByEnum, bool) { + enum, ok := mappingListPrivateEndpointAssociationsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPrivateEndpointAssociationsSortOrderEnum Enum with underlying type: string +type ListPrivateEndpointAssociationsSortOrderEnum string + +// Set of constants representing the allowable values for ListPrivateEndpointAssociationsSortOrderEnum +const ( + ListPrivateEndpointAssociationsSortOrderAsc ListPrivateEndpointAssociationsSortOrderEnum = "ASC" + ListPrivateEndpointAssociationsSortOrderDesc ListPrivateEndpointAssociationsSortOrderEnum = "DESC" +) + +var mappingListPrivateEndpointAssociationsSortOrderEnum = map[string]ListPrivateEndpointAssociationsSortOrderEnum{ + "ASC": ListPrivateEndpointAssociationsSortOrderAsc, + "DESC": ListPrivateEndpointAssociationsSortOrderDesc, +} + +var mappingListPrivateEndpointAssociationsSortOrderEnumLowerCase = map[string]ListPrivateEndpointAssociationsSortOrderEnum{ + "asc": ListPrivateEndpointAssociationsSortOrderAsc, + "desc": ListPrivateEndpointAssociationsSortOrderDesc, +} + +// GetListPrivateEndpointAssociationsSortOrderEnumValues Enumerates the set of values for ListPrivateEndpointAssociationsSortOrderEnum +func GetListPrivateEndpointAssociationsSortOrderEnumValues() []ListPrivateEndpointAssociationsSortOrderEnum { + values := make([]ListPrivateEndpointAssociationsSortOrderEnum, 0) + for _, v := range mappingListPrivateEndpointAssociationsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPrivateEndpointAssociationsSortOrderEnumStringValues Enumerates the set of values in String for ListPrivateEndpointAssociationsSortOrderEnum +func GetListPrivateEndpointAssociationsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPrivateEndpointAssociationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPrivateEndpointAssociationsSortOrderEnum(val string) (ListPrivateEndpointAssociationsSortOrderEnum, bool) { + enum, ok := mappingListPrivateEndpointAssociationsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoints_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoints_request_response.go new file mode 100644 index 0000000000..ac5561b55e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_endpoints_request_response.go @@ -0,0 +1,209 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPrivateEndpointsRequest wrapper for the ListPrivateEndpoints operation +type ListPrivateEndpointsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListPrivateEndpointsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListPrivateEndpointsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPrivateEndpointsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPrivateEndpointsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPrivateEndpointsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPrivateEndpointsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPrivateEndpointsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPrivateEndpointsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPrivateEndpointsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListPrivateEndpointsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPrivateEndpointsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPrivateEndpointsResponse wrapper for the ListPrivateEndpoints operation +type ListPrivateEndpointsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []PrivateEndpointSummary instances + Items []PrivateEndpointSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPrivateEndpointsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPrivateEndpointsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPrivateEndpointsSortByEnum Enum with underlying type: string +type ListPrivateEndpointsSortByEnum string + +// Set of constants representing the allowable values for ListPrivateEndpointsSortByEnum +const ( + ListPrivateEndpointsSortByTimecreated ListPrivateEndpointsSortByEnum = "TIMECREATED" + ListPrivateEndpointsSortByDisplayname ListPrivateEndpointsSortByEnum = "DISPLAYNAME" +) + +var mappingListPrivateEndpointsSortByEnum = map[string]ListPrivateEndpointsSortByEnum{ + "TIMECREATED": ListPrivateEndpointsSortByTimecreated, + "DISPLAYNAME": ListPrivateEndpointsSortByDisplayname, +} + +var mappingListPrivateEndpointsSortByEnumLowerCase = map[string]ListPrivateEndpointsSortByEnum{ + "timecreated": ListPrivateEndpointsSortByTimecreated, + "displayname": ListPrivateEndpointsSortByDisplayname, +} + +// GetListPrivateEndpointsSortByEnumValues Enumerates the set of values for ListPrivateEndpointsSortByEnum +func GetListPrivateEndpointsSortByEnumValues() []ListPrivateEndpointsSortByEnum { + values := make([]ListPrivateEndpointsSortByEnum, 0) + for _, v := range mappingListPrivateEndpointsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPrivateEndpointsSortByEnumStringValues Enumerates the set of values in String for ListPrivateEndpointsSortByEnum +func GetListPrivateEndpointsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListPrivateEndpointsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPrivateEndpointsSortByEnum(val string) (ListPrivateEndpointsSortByEnum, bool) { + enum, ok := mappingListPrivateEndpointsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPrivateEndpointsSortOrderEnum Enum with underlying type: string +type ListPrivateEndpointsSortOrderEnum string + +// Set of constants representing the allowable values for ListPrivateEndpointsSortOrderEnum +const ( + ListPrivateEndpointsSortOrderAsc ListPrivateEndpointsSortOrderEnum = "ASC" + ListPrivateEndpointsSortOrderDesc ListPrivateEndpointsSortOrderEnum = "DESC" +) + +var mappingListPrivateEndpointsSortOrderEnum = map[string]ListPrivateEndpointsSortOrderEnum{ + "ASC": ListPrivateEndpointsSortOrderAsc, + "DESC": ListPrivateEndpointsSortOrderDesc, +} + +var mappingListPrivateEndpointsSortOrderEnumLowerCase = map[string]ListPrivateEndpointsSortOrderEnum{ + "asc": ListPrivateEndpointsSortOrderAsc, + "desc": ListPrivateEndpointsSortOrderDesc, +} + +// GetListPrivateEndpointsSortOrderEnumValues Enumerates the set of values for ListPrivateEndpointsSortOrderEnum +func GetListPrivateEndpointsSortOrderEnumValues() []ListPrivateEndpointsSortOrderEnum { + values := make([]ListPrivateEndpointsSortOrderEnum, 0) + for _, v := range mappingListPrivateEndpointsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPrivateEndpointsSortOrderEnumStringValues Enumerates the set of values in String for ListPrivateEndpointsSortOrderEnum +func GetListPrivateEndpointsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPrivateEndpointsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPrivateEndpointsSortOrderEnum(val string) (ListPrivateEndpointsSortOrderEnum, bool) { + enum, ok := mappingListPrivateEndpointsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_ips_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go index 4d3c8b6d0a..3760bb6fde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_private_ips_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_private_ips_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListPrivateIpsRequest wrapper for the ListPrivateIps operation @@ -27,7 +29,7 @@ type ListPrivateIpsRequest struct { // Example: `10.0.3.3` IpAddress *string `mandatory:"false" contributesTo:"query" name:"ipAddress"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"false" contributesTo:"query" name:"subnetId"` // The OCID of the VNIC. @@ -52,6 +54,10 @@ func (request ListPrivateIpsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListPrivateIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -67,6 +73,17 @@ func (request ListPrivateIpsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPrivateIpsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListPrivateIpsResponse wrapper for the ListPrivateIps operation type ListPrivateIpsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ip_pools_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ip_pools_request_response.go new file mode 100644 index 0000000000..0dc909d106 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ip_pools_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPublicIpPoolsRequest wrapper for the ListPublicIpPools operation +type ListPublicIpPoolsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that match the given BYOIP CIDR block. + ByoipRangeId *string `mandatory:"false" contributesTo:"query" name:"byoipRangeId"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListPublicIpPoolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListPublicIpPoolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPublicIpPoolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPublicIpPoolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPublicIpPoolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPublicIpPoolsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPublicIpPoolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPublicIpPoolsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPublicIpPoolsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListPublicIpPoolsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPublicIpPoolsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPublicIpPoolsResponse wrapper for the ListPublicIpPools operation +type ListPublicIpPoolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of PublicIpPoolCollection instances + PublicIpPoolCollection `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPublicIpPoolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPublicIpPoolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPublicIpPoolsSortByEnum Enum with underlying type: string +type ListPublicIpPoolsSortByEnum string + +// Set of constants representing the allowable values for ListPublicIpPoolsSortByEnum +const ( + ListPublicIpPoolsSortByTimecreated ListPublicIpPoolsSortByEnum = "TIMECREATED" + ListPublicIpPoolsSortByDisplayname ListPublicIpPoolsSortByEnum = "DISPLAYNAME" +) + +var mappingListPublicIpPoolsSortByEnum = map[string]ListPublicIpPoolsSortByEnum{ + "TIMECREATED": ListPublicIpPoolsSortByTimecreated, + "DISPLAYNAME": ListPublicIpPoolsSortByDisplayname, +} + +var mappingListPublicIpPoolsSortByEnumLowerCase = map[string]ListPublicIpPoolsSortByEnum{ + "timecreated": ListPublicIpPoolsSortByTimecreated, + "displayname": ListPublicIpPoolsSortByDisplayname, +} + +// GetListPublicIpPoolsSortByEnumValues Enumerates the set of values for ListPublicIpPoolsSortByEnum +func GetListPublicIpPoolsSortByEnumValues() []ListPublicIpPoolsSortByEnum { + values := make([]ListPublicIpPoolsSortByEnum, 0) + for _, v := range mappingListPublicIpPoolsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPublicIpPoolsSortByEnumStringValues Enumerates the set of values in String for ListPublicIpPoolsSortByEnum +func GetListPublicIpPoolsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListPublicIpPoolsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPublicIpPoolsSortByEnum(val string) (ListPublicIpPoolsSortByEnum, bool) { + enum, ok := mappingListPublicIpPoolsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPublicIpPoolsSortOrderEnum Enum with underlying type: string +type ListPublicIpPoolsSortOrderEnum string + +// Set of constants representing the allowable values for ListPublicIpPoolsSortOrderEnum +const ( + ListPublicIpPoolsSortOrderAsc ListPublicIpPoolsSortOrderEnum = "ASC" + ListPublicIpPoolsSortOrderDesc ListPublicIpPoolsSortOrderEnum = "DESC" +) + +var mappingListPublicIpPoolsSortOrderEnum = map[string]ListPublicIpPoolsSortOrderEnum{ + "ASC": ListPublicIpPoolsSortOrderAsc, + "DESC": ListPublicIpPoolsSortOrderDesc, +} + +var mappingListPublicIpPoolsSortOrderEnumLowerCase = map[string]ListPublicIpPoolsSortOrderEnum{ + "asc": ListPublicIpPoolsSortOrderAsc, + "desc": ListPublicIpPoolsSortOrderDesc, +} + +// GetListPublicIpPoolsSortOrderEnumValues Enumerates the set of values for ListPublicIpPoolsSortOrderEnum +func GetListPublicIpPoolsSortOrderEnumValues() []ListPublicIpPoolsSortOrderEnum { + values := make([]ListPublicIpPoolsSortOrderEnum, 0) + for _, v := range mappingListPublicIpPoolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPublicIpPoolsSortOrderEnumStringValues Enumerates the set of values in String for ListPublicIpPoolsSortOrderEnum +func GetListPublicIpPoolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPublicIpPoolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPublicIpPoolsSortOrderEnum(val string) (ListPublicIpPoolsSortOrderEnum, bool) { + enum, ok := mappingListPublicIpPoolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ips_request_response.go new file mode 100644 index 0000000000..dc38c67e32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_public_ips_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPublicIpsRequest wrapper for the ListPublicIps operation +type ListPublicIpsRequest struct { + + // Whether the public IP is regional or specific to a particular availability domain. + // * `REGION`: The public IP exists within a region and is assigned to a regional entity + // (such as a NatGateway), or can be assigned to a private IP + // in any availability domain in the region. Reserved public IPs have `scope` = `REGION`, as do + // ephemeral public IPs assigned to a regional entity. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity + // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. + // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. + Scope ListPublicIpsScopeEnum `mandatory:"true" contributesTo:"query" name:"scope" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // A filter to return only public IPs that match given lifetime. + Lifetime ListPublicIpsLifetimeEnum `mandatory:"false" contributesTo:"query" name:"lifetime" omitEmpty:"true"` + + // A filter to return only resources that belong to the given public IP pool. + PublicIpPoolId *string `mandatory:"false" contributesTo:"query" name:"publicIpPoolId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPublicIpsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPublicIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPublicIpsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPublicIpsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPublicIpsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPublicIpsScopeEnum(string(request.Scope)); !ok && request.Scope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Scope: %s. Supported values are: %s.", request.Scope, strings.Join(GetListPublicIpsScopeEnumStringValues(), ","))) + } + if _, ok := GetMappingListPublicIpsLifetimeEnum(string(request.Lifetime)); !ok && request.Lifetime != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Lifetime: %s. Supported values are: %s.", request.Lifetime, strings.Join(GetListPublicIpsLifetimeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPublicIpsResponse wrapper for the ListPublicIps operation +type ListPublicIpsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []PublicIp instances + Items []PublicIp `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPublicIpsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPublicIpsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPublicIpsScopeEnum Enum with underlying type: string +type ListPublicIpsScopeEnum string + +// Set of constants representing the allowable values for ListPublicIpsScopeEnum +const ( + ListPublicIpsScopeRegion ListPublicIpsScopeEnum = "REGION" + ListPublicIpsScopeAvailabilityDomain ListPublicIpsScopeEnum = "AVAILABILITY_DOMAIN" +) + +var mappingListPublicIpsScopeEnum = map[string]ListPublicIpsScopeEnum{ + "REGION": ListPublicIpsScopeRegion, + "AVAILABILITY_DOMAIN": ListPublicIpsScopeAvailabilityDomain, +} + +var mappingListPublicIpsScopeEnumLowerCase = map[string]ListPublicIpsScopeEnum{ + "region": ListPublicIpsScopeRegion, + "availability_domain": ListPublicIpsScopeAvailabilityDomain, +} + +// GetListPublicIpsScopeEnumValues Enumerates the set of values for ListPublicIpsScopeEnum +func GetListPublicIpsScopeEnumValues() []ListPublicIpsScopeEnum { + values := make([]ListPublicIpsScopeEnum, 0) + for _, v := range mappingListPublicIpsScopeEnum { + values = append(values, v) + } + return values +} + +// GetListPublicIpsScopeEnumStringValues Enumerates the set of values in String for ListPublicIpsScopeEnum +func GetListPublicIpsScopeEnumStringValues() []string { + return []string{ + "REGION", + "AVAILABILITY_DOMAIN", + } +} + +// GetMappingListPublicIpsScopeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPublicIpsScopeEnum(val string) (ListPublicIpsScopeEnum, bool) { + enum, ok := mappingListPublicIpsScopeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPublicIpsLifetimeEnum Enum with underlying type: string +type ListPublicIpsLifetimeEnum string + +// Set of constants representing the allowable values for ListPublicIpsLifetimeEnum +const ( + ListPublicIpsLifetimeEphemeral ListPublicIpsLifetimeEnum = "EPHEMERAL" + ListPublicIpsLifetimeReserved ListPublicIpsLifetimeEnum = "RESERVED" +) + +var mappingListPublicIpsLifetimeEnum = map[string]ListPublicIpsLifetimeEnum{ + "EPHEMERAL": ListPublicIpsLifetimeEphemeral, + "RESERVED": ListPublicIpsLifetimeReserved, +} + +var mappingListPublicIpsLifetimeEnumLowerCase = map[string]ListPublicIpsLifetimeEnum{ + "ephemeral": ListPublicIpsLifetimeEphemeral, + "reserved": ListPublicIpsLifetimeReserved, +} + +// GetListPublicIpsLifetimeEnumValues Enumerates the set of values for ListPublicIpsLifetimeEnum +func GetListPublicIpsLifetimeEnumValues() []ListPublicIpsLifetimeEnum { + values := make([]ListPublicIpsLifetimeEnum, 0) + for _, v := range mappingListPublicIpsLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetListPublicIpsLifetimeEnumStringValues Enumerates the set of values in String for ListPublicIpsLifetimeEnum +func GetListPublicIpsLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingListPublicIpsLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPublicIpsLifetimeEnum(val string) (ListPublicIpsLifetimeEnum, bool) { + enum, ok := mappingListPublicIpsLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_remote_peering_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_remote_peering_connections_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_remote_peering_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_remote_peering_connections_request_response.go index 4f09e0e2be..7d42ab5ed3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_remote_peering_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_remote_peering_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListRemotePeeringConnectionsRequest wrapper for the ListRemotePeeringConnections operation @@ -45,6 +47,10 @@ func (request ListRemotePeeringConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListRemotePeeringConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListRemotePeeringConnectionsRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListRemotePeeringConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListRemotePeeringConnectionsResponse wrapper for the ListRemotePeeringConnections operation type ListRemotePeeringConnectionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ip_cidrs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ip_cidrs_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ip_cidrs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ip_cidrs_request_response.go index 2e5b51693e..b1ac8d9910 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_reverse_connection_nat_ip_cidrs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ip_cidrs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListReverseConnectionNatIpCidrsRequest wrapper for the ListReverseConnectionNatIpCidrs operation @@ -31,6 +33,10 @@ func (request ListReverseConnectionNatIpCidrsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListReverseConnectionNatIpCidrsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListReverseConnectionNatIpCidrsRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListReverseConnectionNatIpCidrsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListReverseConnectionNatIpCidrsResponse wrapper for the ListReverseConnectionNatIpCidrs operation type ListReverseConnectionNatIpCidrsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ips_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ips_request_response.go new file mode 100644 index 0000000000..caf6a36220 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_reverse_connection_nat_ips_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListReverseConnectionNatIpsRequest wrapper for the ListReverseConnectionNatIps operation +type ListReverseConnectionNatIpsRequest struct { + + // The private endpoint's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + PrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"privateEndpointId"` + + // The reverse connection NAT IP address that corresponds to a customer's IP address. + ReverseConnectionNatIp *string `mandatory:"false" contributesTo:"query" name:"reverseConnectionNatIp"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListReverseConnectionNatIpsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListReverseConnectionNatIpsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState ReverseConnectionNatIpLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListReverseConnectionNatIpsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListReverseConnectionNatIpsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListReverseConnectionNatIpsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListReverseConnectionNatIpsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListReverseConnectionNatIpsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListReverseConnectionNatIpsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListReverseConnectionNatIpsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListReverseConnectionNatIpsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListReverseConnectionNatIpsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingReverseConnectionNatIpLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetReverseConnectionNatIpLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListReverseConnectionNatIpsResponse wrapper for the ListReverseConnectionNatIps operation +type ListReverseConnectionNatIpsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ReverseConnectionNatIp instances + Items []ReverseConnectionNatIp `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListReverseConnectionNatIpsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListReverseConnectionNatIpsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListReverseConnectionNatIpsSortByEnum Enum with underlying type: string +type ListReverseConnectionNatIpsSortByEnum string + +// Set of constants representing the allowable values for ListReverseConnectionNatIpsSortByEnum +const ( + ListReverseConnectionNatIpsSortByTimecreated ListReverseConnectionNatIpsSortByEnum = "TIMECREATED" + ListReverseConnectionNatIpsSortByDisplayname ListReverseConnectionNatIpsSortByEnum = "DISPLAYNAME" +) + +var mappingListReverseConnectionNatIpsSortByEnum = map[string]ListReverseConnectionNatIpsSortByEnum{ + "TIMECREATED": ListReverseConnectionNatIpsSortByTimecreated, + "DISPLAYNAME": ListReverseConnectionNatIpsSortByDisplayname, +} + +var mappingListReverseConnectionNatIpsSortByEnumLowerCase = map[string]ListReverseConnectionNatIpsSortByEnum{ + "timecreated": ListReverseConnectionNatIpsSortByTimecreated, + "displayname": ListReverseConnectionNatIpsSortByDisplayname, +} + +// GetListReverseConnectionNatIpsSortByEnumValues Enumerates the set of values for ListReverseConnectionNatIpsSortByEnum +func GetListReverseConnectionNatIpsSortByEnumValues() []ListReverseConnectionNatIpsSortByEnum { + values := make([]ListReverseConnectionNatIpsSortByEnum, 0) + for _, v := range mappingListReverseConnectionNatIpsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListReverseConnectionNatIpsSortByEnumStringValues Enumerates the set of values in String for ListReverseConnectionNatIpsSortByEnum +func GetListReverseConnectionNatIpsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListReverseConnectionNatIpsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReverseConnectionNatIpsSortByEnum(val string) (ListReverseConnectionNatIpsSortByEnum, bool) { + enum, ok := mappingListReverseConnectionNatIpsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListReverseConnectionNatIpsSortOrderEnum Enum with underlying type: string +type ListReverseConnectionNatIpsSortOrderEnum string + +// Set of constants representing the allowable values for ListReverseConnectionNatIpsSortOrderEnum +const ( + ListReverseConnectionNatIpsSortOrderAsc ListReverseConnectionNatIpsSortOrderEnum = "ASC" + ListReverseConnectionNatIpsSortOrderDesc ListReverseConnectionNatIpsSortOrderEnum = "DESC" +) + +var mappingListReverseConnectionNatIpsSortOrderEnum = map[string]ListReverseConnectionNatIpsSortOrderEnum{ + "ASC": ListReverseConnectionNatIpsSortOrderAsc, + "DESC": ListReverseConnectionNatIpsSortOrderDesc, +} + +var mappingListReverseConnectionNatIpsSortOrderEnumLowerCase = map[string]ListReverseConnectionNatIpsSortOrderEnum{ + "asc": ListReverseConnectionNatIpsSortOrderAsc, + "desc": ListReverseConnectionNatIpsSortOrderDesc, +} + +// GetListReverseConnectionNatIpsSortOrderEnumValues Enumerates the set of values for ListReverseConnectionNatIpsSortOrderEnum +func GetListReverseConnectionNatIpsSortOrderEnumValues() []ListReverseConnectionNatIpsSortOrderEnum { + values := make([]ListReverseConnectionNatIpsSortOrderEnum, 0) + for _, v := range mappingListReverseConnectionNatIpsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListReverseConnectionNatIpsSortOrderEnumStringValues Enumerates the set of values in String for ListReverseConnectionNatIpsSortOrderEnum +func GetListReverseConnectionNatIpsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListReverseConnectionNatIpsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReverseConnectionNatIpsSortOrderEnum(val string) (ListReverseConnectionNatIpsSortOrderEnum, bool) { + enum, ok := mappingListReverseConnectionNatIpsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_route_tables_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_route_tables_request_response.go new file mode 100644 index 0000000000..dcba9bc150 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_route_tables_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListRouteTablesRequest wrapper for the ListRouteTables operation +type ListRouteTablesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListRouteTablesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListRouteTablesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState RouteTableLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListRouteTablesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListRouteTablesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListRouteTablesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListRouteTablesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListRouteTablesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListRouteTablesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListRouteTablesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListRouteTablesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListRouteTablesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingRouteTableLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetRouteTableLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListRouteTablesResponse wrapper for the ListRouteTables operation +type ListRouteTablesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []RouteTable instances + Items []RouteTable `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListRouteTablesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListRouteTablesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListRouteTablesSortByEnum Enum with underlying type: string +type ListRouteTablesSortByEnum string + +// Set of constants representing the allowable values for ListRouteTablesSortByEnum +const ( + ListRouteTablesSortByTimecreated ListRouteTablesSortByEnum = "TIMECREATED" + ListRouteTablesSortByDisplayname ListRouteTablesSortByEnum = "DISPLAYNAME" +) + +var mappingListRouteTablesSortByEnum = map[string]ListRouteTablesSortByEnum{ + "TIMECREATED": ListRouteTablesSortByTimecreated, + "DISPLAYNAME": ListRouteTablesSortByDisplayname, +} + +var mappingListRouteTablesSortByEnumLowerCase = map[string]ListRouteTablesSortByEnum{ + "timecreated": ListRouteTablesSortByTimecreated, + "displayname": ListRouteTablesSortByDisplayname, +} + +// GetListRouteTablesSortByEnumValues Enumerates the set of values for ListRouteTablesSortByEnum +func GetListRouteTablesSortByEnumValues() []ListRouteTablesSortByEnum { + values := make([]ListRouteTablesSortByEnum, 0) + for _, v := range mappingListRouteTablesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListRouteTablesSortByEnumStringValues Enumerates the set of values in String for ListRouteTablesSortByEnum +func GetListRouteTablesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListRouteTablesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListRouteTablesSortByEnum(val string) (ListRouteTablesSortByEnum, bool) { + enum, ok := mappingListRouteTablesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListRouteTablesSortOrderEnum Enum with underlying type: string +type ListRouteTablesSortOrderEnum string + +// Set of constants representing the allowable values for ListRouteTablesSortOrderEnum +const ( + ListRouteTablesSortOrderAsc ListRouteTablesSortOrderEnum = "ASC" + ListRouteTablesSortOrderDesc ListRouteTablesSortOrderEnum = "DESC" +) + +var mappingListRouteTablesSortOrderEnum = map[string]ListRouteTablesSortOrderEnum{ + "ASC": ListRouteTablesSortOrderAsc, + "DESC": ListRouteTablesSortOrderDesc, +} + +var mappingListRouteTablesSortOrderEnumLowerCase = map[string]ListRouteTablesSortOrderEnum{ + "asc": ListRouteTablesSortOrderAsc, + "desc": ListRouteTablesSortOrderDesc, +} + +// GetListRouteTablesSortOrderEnumValues Enumerates the set of values for ListRouteTablesSortOrderEnum +func GetListRouteTablesSortOrderEnumValues() []ListRouteTablesSortOrderEnum { + values := make([]ListRouteTablesSortOrderEnum, 0) + for _, v := range mappingListRouteTablesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListRouteTablesSortOrderEnumStringValues Enumerates the set of values in String for ListRouteTablesSortOrderEnum +func GetListRouteTablesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListRouteTablesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListRouteTablesSortOrderEnum(val string) (ListRouteTablesSortOrderEnum, bool) { + enum, ok := mappingListRouteTablesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_scan_proxies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_scan_proxies_request_response.go new file mode 100644 index 0000000000..5cb7a3ab0a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_scan_proxies_request_response.go @@ -0,0 +1,206 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListScanProxiesRequest wrapper for the ListScanProxies operation +type ListScanProxiesRequest struct { + + // The private endpoint's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + PrivateEndpointId *string `mandatory:"true" contributesTo:"path" name:"privateEndpointId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListScanProxiesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListScanProxiesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListScanProxiesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListScanProxiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListScanProxiesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListScanProxiesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListScanProxiesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListScanProxiesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListScanProxiesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListScanProxiesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListScanProxiesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListScanProxiesResponse wrapper for the ListScanProxies operation +type ListScanProxiesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ScanProxySummary instances + Items []ScanProxySummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListScanProxiesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListScanProxiesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListScanProxiesSortByEnum Enum with underlying type: string +type ListScanProxiesSortByEnum string + +// Set of constants representing the allowable values for ListScanProxiesSortByEnum +const ( + ListScanProxiesSortByTimecreated ListScanProxiesSortByEnum = "TIMECREATED" + ListScanProxiesSortByDisplayname ListScanProxiesSortByEnum = "DISPLAYNAME" +) + +var mappingListScanProxiesSortByEnum = map[string]ListScanProxiesSortByEnum{ + "TIMECREATED": ListScanProxiesSortByTimecreated, + "DISPLAYNAME": ListScanProxiesSortByDisplayname, +} + +var mappingListScanProxiesSortByEnumLowerCase = map[string]ListScanProxiesSortByEnum{ + "timecreated": ListScanProxiesSortByTimecreated, + "displayname": ListScanProxiesSortByDisplayname, +} + +// GetListScanProxiesSortByEnumValues Enumerates the set of values for ListScanProxiesSortByEnum +func GetListScanProxiesSortByEnumValues() []ListScanProxiesSortByEnum { + values := make([]ListScanProxiesSortByEnum, 0) + for _, v := range mappingListScanProxiesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListScanProxiesSortByEnumStringValues Enumerates the set of values in String for ListScanProxiesSortByEnum +func GetListScanProxiesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListScanProxiesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListScanProxiesSortByEnum(val string) (ListScanProxiesSortByEnum, bool) { + enum, ok := mappingListScanProxiesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListScanProxiesSortOrderEnum Enum with underlying type: string +type ListScanProxiesSortOrderEnum string + +// Set of constants representing the allowable values for ListScanProxiesSortOrderEnum +const ( + ListScanProxiesSortOrderAsc ListScanProxiesSortOrderEnum = "ASC" + ListScanProxiesSortOrderDesc ListScanProxiesSortOrderEnum = "DESC" +) + +var mappingListScanProxiesSortOrderEnum = map[string]ListScanProxiesSortOrderEnum{ + "ASC": ListScanProxiesSortOrderAsc, + "DESC": ListScanProxiesSortOrderDesc, +} + +var mappingListScanProxiesSortOrderEnumLowerCase = map[string]ListScanProxiesSortOrderEnum{ + "asc": ListScanProxiesSortOrderAsc, + "desc": ListScanProxiesSortOrderDesc, +} + +// GetListScanProxiesSortOrderEnumValues Enumerates the set of values for ListScanProxiesSortOrderEnum +func GetListScanProxiesSortOrderEnumValues() []ListScanProxiesSortOrderEnum { + values := make([]ListScanProxiesSortOrderEnum, 0) + for _, v := range mappingListScanProxiesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListScanProxiesSortOrderEnumStringValues Enumerates the set of values in String for ListScanProxiesSortOrderEnum +func GetListScanProxiesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListScanProxiesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListScanProxiesSortOrderEnum(val string) (ListScanProxiesSortOrderEnum, bool) { + enum, ok := mappingListScanProxiesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_security_lists_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_security_lists_request_response.go new file mode 100644 index 0000000000..42ec9be8a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_security_lists_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSecurityListsRequest wrapper for the ListSecurityLists operation +type ListSecurityListsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListSecurityListsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListSecurityListsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState SecurityListLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListSecurityListsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSecurityListsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSecurityListsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSecurityListsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSecurityListsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListSecurityListsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListSecurityListsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListSecurityListsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListSecurityListsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingSecurityListLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetSecurityListLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSecurityListsResponse wrapper for the ListSecurityLists operation +type ListSecurityListsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []SecurityList instances + Items []SecurityList `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListSecurityListsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSecurityListsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSecurityListsSortByEnum Enum with underlying type: string +type ListSecurityListsSortByEnum string + +// Set of constants representing the allowable values for ListSecurityListsSortByEnum +const ( + ListSecurityListsSortByTimecreated ListSecurityListsSortByEnum = "TIMECREATED" + ListSecurityListsSortByDisplayname ListSecurityListsSortByEnum = "DISPLAYNAME" +) + +var mappingListSecurityListsSortByEnum = map[string]ListSecurityListsSortByEnum{ + "TIMECREATED": ListSecurityListsSortByTimecreated, + "DISPLAYNAME": ListSecurityListsSortByDisplayname, +} + +var mappingListSecurityListsSortByEnumLowerCase = map[string]ListSecurityListsSortByEnum{ + "timecreated": ListSecurityListsSortByTimecreated, + "displayname": ListSecurityListsSortByDisplayname, +} + +// GetListSecurityListsSortByEnumValues Enumerates the set of values for ListSecurityListsSortByEnum +func GetListSecurityListsSortByEnumValues() []ListSecurityListsSortByEnum { + values := make([]ListSecurityListsSortByEnum, 0) + for _, v := range mappingListSecurityListsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityListsSortByEnumStringValues Enumerates the set of values in String for ListSecurityListsSortByEnum +func GetListSecurityListsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListSecurityListsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityListsSortByEnum(val string) (ListSecurityListsSortByEnum, bool) { + enum, ok := mappingListSecurityListsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSecurityListsSortOrderEnum Enum with underlying type: string +type ListSecurityListsSortOrderEnum string + +// Set of constants representing the allowable values for ListSecurityListsSortOrderEnum +const ( + ListSecurityListsSortOrderAsc ListSecurityListsSortOrderEnum = "ASC" + ListSecurityListsSortOrderDesc ListSecurityListsSortOrderEnum = "DESC" +) + +var mappingListSecurityListsSortOrderEnum = map[string]ListSecurityListsSortOrderEnum{ + "ASC": ListSecurityListsSortOrderAsc, + "DESC": ListSecurityListsSortOrderDesc, +} + +var mappingListSecurityListsSortOrderEnumLowerCase = map[string]ListSecurityListsSortOrderEnum{ + "asc": ListSecurityListsSortOrderAsc, + "desc": ListSecurityListsSortOrderDesc, +} + +// GetListSecurityListsSortOrderEnumValues Enumerates the set of values for ListSecurityListsSortOrderEnum +func GetListSecurityListsSortOrderEnumValues() []ListSecurityListsSortOrderEnum { + values := make([]ListSecurityListsSortOrderEnum, 0) + for _, v := range mappingListSecurityListsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSecurityListsSortOrderEnumStringValues Enumerates the set of values in String for ListSecurityListsSortOrderEnum +func GetListSecurityListsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSecurityListsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSecurityListsSortOrderEnum(val string) (ListSecurityListsSortOrderEnum, bool) { + enum, ok := mappingListSecurityListsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_service_gateways_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_service_gateways_request_response.go new file mode 100644 index 0000000000..2d802ad85f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_service_gateways_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListServiceGatewaysRequest wrapper for the ListServiceGateways operation +type ListServiceGatewaysRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListServiceGatewaysSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListServiceGatewaysSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState ServiceGatewayLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListServiceGatewaysRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListServiceGatewaysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListServiceGatewaysRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListServiceGatewaysRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListServiceGatewaysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListServiceGatewaysSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListServiceGatewaysSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListServiceGatewaysSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListServiceGatewaysSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingServiceGatewayLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetServiceGatewayLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListServiceGatewaysResponse wrapper for the ListServiceGateways operation +type ListServiceGatewaysResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ServiceGateway instances + Items []ServiceGateway `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListServiceGatewaysResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListServiceGatewaysResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListServiceGatewaysSortByEnum Enum with underlying type: string +type ListServiceGatewaysSortByEnum string + +// Set of constants representing the allowable values for ListServiceGatewaysSortByEnum +const ( + ListServiceGatewaysSortByTimecreated ListServiceGatewaysSortByEnum = "TIMECREATED" + ListServiceGatewaysSortByDisplayname ListServiceGatewaysSortByEnum = "DISPLAYNAME" +) + +var mappingListServiceGatewaysSortByEnum = map[string]ListServiceGatewaysSortByEnum{ + "TIMECREATED": ListServiceGatewaysSortByTimecreated, + "DISPLAYNAME": ListServiceGatewaysSortByDisplayname, +} + +var mappingListServiceGatewaysSortByEnumLowerCase = map[string]ListServiceGatewaysSortByEnum{ + "timecreated": ListServiceGatewaysSortByTimecreated, + "displayname": ListServiceGatewaysSortByDisplayname, +} + +// GetListServiceGatewaysSortByEnumValues Enumerates the set of values for ListServiceGatewaysSortByEnum +func GetListServiceGatewaysSortByEnumValues() []ListServiceGatewaysSortByEnum { + values := make([]ListServiceGatewaysSortByEnum, 0) + for _, v := range mappingListServiceGatewaysSortByEnum { + values = append(values, v) + } + return values +} + +// GetListServiceGatewaysSortByEnumStringValues Enumerates the set of values in String for ListServiceGatewaysSortByEnum +func GetListServiceGatewaysSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListServiceGatewaysSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListServiceGatewaysSortByEnum(val string) (ListServiceGatewaysSortByEnum, bool) { + enum, ok := mappingListServiceGatewaysSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListServiceGatewaysSortOrderEnum Enum with underlying type: string +type ListServiceGatewaysSortOrderEnum string + +// Set of constants representing the allowable values for ListServiceGatewaysSortOrderEnum +const ( + ListServiceGatewaysSortOrderAsc ListServiceGatewaysSortOrderEnum = "ASC" + ListServiceGatewaysSortOrderDesc ListServiceGatewaysSortOrderEnum = "DESC" +) + +var mappingListServiceGatewaysSortOrderEnum = map[string]ListServiceGatewaysSortOrderEnum{ + "ASC": ListServiceGatewaysSortOrderAsc, + "DESC": ListServiceGatewaysSortOrderDesc, +} + +var mappingListServiceGatewaysSortOrderEnumLowerCase = map[string]ListServiceGatewaysSortOrderEnum{ + "asc": ListServiceGatewaysSortOrderAsc, + "desc": ListServiceGatewaysSortOrderDesc, +} + +// GetListServiceGatewaysSortOrderEnumValues Enumerates the set of values for ListServiceGatewaysSortOrderEnum +func GetListServiceGatewaysSortOrderEnumValues() []ListServiceGatewaysSortOrderEnum { + values := make([]ListServiceGatewaysSortOrderEnum, 0) + for _, v := range mappingListServiceGatewaysSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListServiceGatewaysSortOrderEnumStringValues Enumerates the set of values in String for ListServiceGatewaysSortOrderEnum +func GetListServiceGatewaysSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListServiceGatewaysSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListServiceGatewaysSortOrderEnum(val string) (ListServiceGatewaysSortOrderEnum, bool) { + enum, ok := mappingListServiceGatewaysSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_services_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_services_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go index 679d265d15..bf92f54a4f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_services_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_services_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListServicesRequest wrapper for the ListServices operation @@ -39,6 +41,10 @@ func (request ListServicesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListServicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request ListServicesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListServicesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListServicesResponse wrapper for the ListServices operation type ListServicesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_shapes_request_response.go new file mode 100644 index 0000000000..dc2950a04f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_shapes_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListShapesRequest wrapper for the ListShapes operation +type ListShapesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an image. + ImageId *string `mandatory:"false" contributesTo:"query" name:"imageId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListShapesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListShapesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListShapesResponse wrapper for the ListShapes operation +type ListShapesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Shape instances + Items []Shape `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListShapesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListShapesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_subnets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_subnets_request_response.go new file mode 100644 index 0000000000..a721c7de57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_subnets_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSubnetsRequest wrapper for the ListSubnets operation +type ListSubnetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListSubnetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListSubnetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState SubnetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListSubnetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSubnetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSubnetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSubnetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSubnetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListSubnetsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListSubnetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListSubnetsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListSubnetsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingSubnetLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetSubnetLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSubnetsResponse wrapper for the ListSubnets operation +type ListSubnetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Subnet instances + Items []Subnet `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListSubnetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSubnetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSubnetsSortByEnum Enum with underlying type: string +type ListSubnetsSortByEnum string + +// Set of constants representing the allowable values for ListSubnetsSortByEnum +const ( + ListSubnetsSortByTimecreated ListSubnetsSortByEnum = "TIMECREATED" + ListSubnetsSortByDisplayname ListSubnetsSortByEnum = "DISPLAYNAME" +) + +var mappingListSubnetsSortByEnum = map[string]ListSubnetsSortByEnum{ + "TIMECREATED": ListSubnetsSortByTimecreated, + "DISPLAYNAME": ListSubnetsSortByDisplayname, +} + +var mappingListSubnetsSortByEnumLowerCase = map[string]ListSubnetsSortByEnum{ + "timecreated": ListSubnetsSortByTimecreated, + "displayname": ListSubnetsSortByDisplayname, +} + +// GetListSubnetsSortByEnumValues Enumerates the set of values for ListSubnetsSortByEnum +func GetListSubnetsSortByEnumValues() []ListSubnetsSortByEnum { + values := make([]ListSubnetsSortByEnum, 0) + for _, v := range mappingListSubnetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSubnetsSortByEnumStringValues Enumerates the set of values in String for ListSubnetsSortByEnum +func GetListSubnetsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListSubnetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSubnetsSortByEnum(val string) (ListSubnetsSortByEnum, bool) { + enum, ok := mappingListSubnetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSubnetsSortOrderEnum Enum with underlying type: string +type ListSubnetsSortOrderEnum string + +// Set of constants representing the allowable values for ListSubnetsSortOrderEnum +const ( + ListSubnetsSortOrderAsc ListSubnetsSortOrderEnum = "ASC" + ListSubnetsSortOrderDesc ListSubnetsSortOrderEnum = "DESC" +) + +var mappingListSubnetsSortOrderEnum = map[string]ListSubnetsSortOrderEnum{ + "ASC": ListSubnetsSortOrderAsc, + "DESC": ListSubnetsSortOrderDesc, +} + +var mappingListSubnetsSortOrderEnumLowerCase = map[string]ListSubnetsSortOrderEnum{ + "asc": ListSubnetsSortOrderAsc, + "desc": ListSubnetsSortOrderDesc, +} + +// GetListSubnetsSortOrderEnumValues Enumerates the set of values for ListSubnetsSortOrderEnum +func GetListSubnetsSortOrderEnumValues() []ListSubnetsSortOrderEnum { + values := make([]ListSubnetsSortOrderEnum, 0) + for _, v := range mappingListSubnetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSubnetsSortOrderEnumStringValues Enumerates the set of values in String for ListSubnetsSortOrderEnum +func GetListSubnetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSubnetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSubnetsSortOrderEnum(val string) (ListSubnetsSortOrderEnum, bool) { + enum, ok := mappingListSubnetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drg_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drg_attachments_request_response.go new file mode 100644 index 0000000000..c64c0d2172 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drg_attachments_request_response.go @@ -0,0 +1,288 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVcnDrgAttachmentsRequest wrapper for the ListVcnDrgAttachments operation +type ListVcnDrgAttachmentsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource (virtual circuit, VCN, IPSec tunnel, or remote peering connection) attached to the DRG. + NetworkId *string `mandatory:"false" contributesTo:"query" name:"networkId"` + + // The type for the network resource attached to the DRG. + AttachmentType ListVcnDrgAttachmentsAttachmentTypeEnum `mandatory:"false" contributesTo:"query" name:"attachmentType" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table assigned to the DRG attachment. + DrgRouteTableId *string `mandatory:"false" contributesTo:"query" name:"drgRouteTableId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVcnDrgAttachmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVcnDrgAttachmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState DrgAttachmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVcnDrgAttachmentsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVcnDrgAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVcnDrgAttachmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVcnDrgAttachmentsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVcnDrgAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVcnDrgAttachmentsAttachmentTypeEnum(string(request.AttachmentType)); !ok && request.AttachmentType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AttachmentType: %s. Supported values are: %s.", request.AttachmentType, strings.Join(GetListVcnDrgAttachmentsAttachmentTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingListVcnDrgAttachmentsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVcnDrgAttachmentsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVcnDrgAttachmentsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVcnDrgAttachmentsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDrgAttachmentLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDrgAttachmentLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVcnDrgAttachmentsResponse wrapper for the ListVcnDrgAttachments operation +type ListVcnDrgAttachmentsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DrgAttachment instances + Items []DrgAttachment `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVcnDrgAttachmentsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVcnDrgAttachmentsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVcnDrgAttachmentsAttachmentTypeEnum Enum with underlying type: string +type ListVcnDrgAttachmentsAttachmentTypeEnum string + +// Set of constants representing the allowable values for ListVcnDrgAttachmentsAttachmentTypeEnum +const ( + ListVcnDrgAttachmentsAttachmentTypeVcn ListVcnDrgAttachmentsAttachmentTypeEnum = "VCN" + ListVcnDrgAttachmentsAttachmentTypeVirtualCircuit ListVcnDrgAttachmentsAttachmentTypeEnum = "VIRTUAL_CIRCUIT" + ListVcnDrgAttachmentsAttachmentTypeRemotePeeringConnection ListVcnDrgAttachmentsAttachmentTypeEnum = "REMOTE_PEERING_CONNECTION" + ListVcnDrgAttachmentsAttachmentTypeIpsecTunnel ListVcnDrgAttachmentsAttachmentTypeEnum = "IPSEC_TUNNEL" + ListVcnDrgAttachmentsAttachmentTypeAll ListVcnDrgAttachmentsAttachmentTypeEnum = "ALL" +) + +var mappingListVcnDrgAttachmentsAttachmentTypeEnum = map[string]ListVcnDrgAttachmentsAttachmentTypeEnum{ + "VCN": ListVcnDrgAttachmentsAttachmentTypeVcn, + "VIRTUAL_CIRCUIT": ListVcnDrgAttachmentsAttachmentTypeVirtualCircuit, + "REMOTE_PEERING_CONNECTION": ListVcnDrgAttachmentsAttachmentTypeRemotePeeringConnection, + "IPSEC_TUNNEL": ListVcnDrgAttachmentsAttachmentTypeIpsecTunnel, + "ALL": ListVcnDrgAttachmentsAttachmentTypeAll, +} + +var mappingListVcnDrgAttachmentsAttachmentTypeEnumLowerCase = map[string]ListVcnDrgAttachmentsAttachmentTypeEnum{ + "vcn": ListVcnDrgAttachmentsAttachmentTypeVcn, + "virtual_circuit": ListVcnDrgAttachmentsAttachmentTypeVirtualCircuit, + "remote_peering_connection": ListVcnDrgAttachmentsAttachmentTypeRemotePeeringConnection, + "ipsec_tunnel": ListVcnDrgAttachmentsAttachmentTypeIpsecTunnel, + "all": ListVcnDrgAttachmentsAttachmentTypeAll, +} + +// GetListVcnDrgAttachmentsAttachmentTypeEnumValues Enumerates the set of values for ListVcnDrgAttachmentsAttachmentTypeEnum +func GetListVcnDrgAttachmentsAttachmentTypeEnumValues() []ListVcnDrgAttachmentsAttachmentTypeEnum { + values := make([]ListVcnDrgAttachmentsAttachmentTypeEnum, 0) + for _, v := range mappingListVcnDrgAttachmentsAttachmentTypeEnum { + values = append(values, v) + } + return values +} + +// GetListVcnDrgAttachmentsAttachmentTypeEnumStringValues Enumerates the set of values in String for ListVcnDrgAttachmentsAttachmentTypeEnum +func GetListVcnDrgAttachmentsAttachmentTypeEnumStringValues() []string { + return []string{ + "VCN", + "VIRTUAL_CIRCUIT", + "REMOTE_PEERING_CONNECTION", + "IPSEC_TUNNEL", + "ALL", + } +} + +// GetMappingListVcnDrgAttachmentsAttachmentTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVcnDrgAttachmentsAttachmentTypeEnum(val string) (ListVcnDrgAttachmentsAttachmentTypeEnum, bool) { + enum, ok := mappingListVcnDrgAttachmentsAttachmentTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVcnDrgAttachmentsSortByEnum Enum with underlying type: string +type ListVcnDrgAttachmentsSortByEnum string + +// Set of constants representing the allowable values for ListVcnDrgAttachmentsSortByEnum +const ( + ListVcnDrgAttachmentsSortByTimecreated ListVcnDrgAttachmentsSortByEnum = "TIMECREATED" + ListVcnDrgAttachmentsSortByDisplayname ListVcnDrgAttachmentsSortByEnum = "DISPLAYNAME" +) + +var mappingListVcnDrgAttachmentsSortByEnum = map[string]ListVcnDrgAttachmentsSortByEnum{ + "TIMECREATED": ListVcnDrgAttachmentsSortByTimecreated, + "DISPLAYNAME": ListVcnDrgAttachmentsSortByDisplayname, +} + +var mappingListVcnDrgAttachmentsSortByEnumLowerCase = map[string]ListVcnDrgAttachmentsSortByEnum{ + "timecreated": ListVcnDrgAttachmentsSortByTimecreated, + "displayname": ListVcnDrgAttachmentsSortByDisplayname, +} + +// GetListVcnDrgAttachmentsSortByEnumValues Enumerates the set of values for ListVcnDrgAttachmentsSortByEnum +func GetListVcnDrgAttachmentsSortByEnumValues() []ListVcnDrgAttachmentsSortByEnum { + values := make([]ListVcnDrgAttachmentsSortByEnum, 0) + for _, v := range mappingListVcnDrgAttachmentsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVcnDrgAttachmentsSortByEnumStringValues Enumerates the set of values in String for ListVcnDrgAttachmentsSortByEnum +func GetListVcnDrgAttachmentsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVcnDrgAttachmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVcnDrgAttachmentsSortByEnum(val string) (ListVcnDrgAttachmentsSortByEnum, bool) { + enum, ok := mappingListVcnDrgAttachmentsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVcnDrgAttachmentsSortOrderEnum Enum with underlying type: string +type ListVcnDrgAttachmentsSortOrderEnum string + +// Set of constants representing the allowable values for ListVcnDrgAttachmentsSortOrderEnum +const ( + ListVcnDrgAttachmentsSortOrderAsc ListVcnDrgAttachmentsSortOrderEnum = "ASC" + ListVcnDrgAttachmentsSortOrderDesc ListVcnDrgAttachmentsSortOrderEnum = "DESC" +) + +var mappingListVcnDrgAttachmentsSortOrderEnum = map[string]ListVcnDrgAttachmentsSortOrderEnum{ + "ASC": ListVcnDrgAttachmentsSortOrderAsc, + "DESC": ListVcnDrgAttachmentsSortOrderDesc, +} + +var mappingListVcnDrgAttachmentsSortOrderEnumLowerCase = map[string]ListVcnDrgAttachmentsSortOrderEnum{ + "asc": ListVcnDrgAttachmentsSortOrderAsc, + "desc": ListVcnDrgAttachmentsSortOrderDesc, +} + +// GetListVcnDrgAttachmentsSortOrderEnumValues Enumerates the set of values for ListVcnDrgAttachmentsSortOrderEnum +func GetListVcnDrgAttachmentsSortOrderEnumValues() []ListVcnDrgAttachmentsSortOrderEnum { + values := make([]ListVcnDrgAttachmentsSortOrderEnum, 0) + for _, v := range mappingListVcnDrgAttachmentsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVcnDrgAttachmentsSortOrderEnumStringValues Enumerates the set of values in String for ListVcnDrgAttachmentsSortOrderEnum +func GetListVcnDrgAttachmentsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVcnDrgAttachmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVcnDrgAttachmentsSortOrderEnum(val string) (ListVcnDrgAttachmentsSortOrderEnum, bool) { + enum, ok := mappingListVcnDrgAttachmentsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drgs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drgs_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drgs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drgs_request_response.go index 1c49695c5a..88757d5fc1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vcn_drgs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcn_drgs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListVcnDrgsRequest wrapper for the ListVcnDrgs operation @@ -42,6 +44,10 @@ func (request ListVcnDrgsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListVcnDrgsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListVcnDrgsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVcnDrgsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListVcnDrgsResponse wrapper for the ListVcnDrgs operation type ListVcnDrgsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcns_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcns_request_response.go new file mode 100644 index 0000000000..cc183dccef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vcns_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVcnsRequest wrapper for the ListVcns operation +type ListVcnsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVcnsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVcnsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState VcnLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVcnsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVcnsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVcnsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVcnsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVcnsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVcnsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVcnsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVcnsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVcnsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVcnLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVcnLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVcnsResponse wrapper for the ListVcns operation +type ListVcnsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Vcn instances + Items []Vcn `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVcnsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVcnsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVcnsSortByEnum Enum with underlying type: string +type ListVcnsSortByEnum string + +// Set of constants representing the allowable values for ListVcnsSortByEnum +const ( + ListVcnsSortByTimecreated ListVcnsSortByEnum = "TIMECREATED" + ListVcnsSortByDisplayname ListVcnsSortByEnum = "DISPLAYNAME" +) + +var mappingListVcnsSortByEnum = map[string]ListVcnsSortByEnum{ + "TIMECREATED": ListVcnsSortByTimecreated, + "DISPLAYNAME": ListVcnsSortByDisplayname, +} + +var mappingListVcnsSortByEnumLowerCase = map[string]ListVcnsSortByEnum{ + "timecreated": ListVcnsSortByTimecreated, + "displayname": ListVcnsSortByDisplayname, +} + +// GetListVcnsSortByEnumValues Enumerates the set of values for ListVcnsSortByEnum +func GetListVcnsSortByEnumValues() []ListVcnsSortByEnum { + values := make([]ListVcnsSortByEnum, 0) + for _, v := range mappingListVcnsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVcnsSortByEnumStringValues Enumerates the set of values in String for ListVcnsSortByEnum +func GetListVcnsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVcnsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVcnsSortByEnum(val string) (ListVcnsSortByEnum, bool) { + enum, ok := mappingListVcnsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVcnsSortOrderEnum Enum with underlying type: string +type ListVcnsSortOrderEnum string + +// Set of constants representing the allowable values for ListVcnsSortOrderEnum +const ( + ListVcnsSortOrderAsc ListVcnsSortOrderEnum = "ASC" + ListVcnsSortOrderDesc ListVcnsSortOrderEnum = "DESC" +) + +var mappingListVcnsSortOrderEnum = map[string]ListVcnsSortOrderEnum{ + "ASC": ListVcnsSortOrderAsc, + "DESC": ListVcnsSortOrderDesc, +} + +var mappingListVcnsSortOrderEnumLowerCase = map[string]ListVcnsSortOrderEnum{ + "asc": ListVcnsSortOrderAsc, + "desc": ListVcnsSortOrderDesc, +} + +// GetListVcnsSortOrderEnumValues Enumerates the set of values for ListVcnsSortOrderEnum +func GetListVcnsSortOrderEnumValues() []ListVcnsSortOrderEnum { + values := make([]ListVcnsSortOrderEnum, 0) + for _, v := range mappingListVcnsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVcnsSortOrderEnumStringValues Enumerates the set of values in String for ListVcnsSortOrderEnum +func GetListVcnsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVcnsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVcnsSortOrderEnum(val string) (ListVcnsSortOrderEnum, bool) { + enum, ok := mappingListVcnsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_bandwidth_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_bandwidth_shapes_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_bandwidth_shapes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_bandwidth_shapes_request_response.go index f805c4b4a5..2ed5818f3b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_virtual_circuit_bandwidth_shapes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_bandwidth_shapes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListVirtualCircuitBandwidthShapesRequest wrapper for the ListVirtualCircuitBandwidthShapes operation @@ -42,6 +44,10 @@ func (request ListVirtualCircuitBandwidthShapesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListVirtualCircuitBandwidthShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request ListVirtualCircuitBandwidthShapesRequest) RetryPolicy() *common.Re return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVirtualCircuitBandwidthShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListVirtualCircuitBandwidthShapesResponse wrapper for the ListVirtualCircuitBandwidthShapes operation type ListVirtualCircuitBandwidthShapesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_public_prefixes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_public_prefixes_request_response.go new file mode 100644 index 0000000000..d7beda8887 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuit_public_prefixes_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVirtualCircuitPublicPrefixesRequest wrapper for the ListVirtualCircuitPublicPrefixes operation +type ListVirtualCircuitPublicPrefixesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. + VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` + + // A filter to only return resources that match the given verification + // state. + // The state value is case-insensitive. + VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"false" contributesTo:"query" name:"verificationState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVirtualCircuitPublicPrefixesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVirtualCircuitPublicPrefixesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVirtualCircuitPublicPrefixesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVirtualCircuitPublicPrefixesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVirtualCircuitPublicPrefixesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVirtualCircuitPublicPrefixVerificationStateEnum(string(request.VerificationState)); !ok && request.VerificationState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VerificationState: %s. Supported values are: %s.", request.VerificationState, strings.Join(GetVirtualCircuitPublicPrefixVerificationStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVirtualCircuitPublicPrefixesResponse wrapper for the ListVirtualCircuitPublicPrefixes operation +type ListVirtualCircuitPublicPrefixesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []VirtualCircuitPublicPrefix instance + Items []VirtualCircuitPublicPrefix `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVirtualCircuitPublicPrefixesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVirtualCircuitPublicPrefixesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuits_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuits_request_response.go new file mode 100644 index 0000000000..abdb99e303 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_virtual_circuits_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVirtualCircuitsRequest wrapper for the ListVirtualCircuits operation +type ListVirtualCircuitsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVirtualCircuitsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVirtualCircuitsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the specified lifecycle + // state. The value is case insensitive. + LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVirtualCircuitsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVirtualCircuitsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVirtualCircuitsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVirtualCircuitsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVirtualCircuitsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVirtualCircuitsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVirtualCircuitsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVirtualCircuitsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVirtualCircuitsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVirtualCircuitLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVirtualCircuitsResponse wrapper for the ListVirtualCircuits operation +type ListVirtualCircuitsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VirtualCircuit instances + Items []VirtualCircuit `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVirtualCircuitsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVirtualCircuitsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVirtualCircuitsSortByEnum Enum with underlying type: string +type ListVirtualCircuitsSortByEnum string + +// Set of constants representing the allowable values for ListVirtualCircuitsSortByEnum +const ( + ListVirtualCircuitsSortByTimecreated ListVirtualCircuitsSortByEnum = "TIMECREATED" + ListVirtualCircuitsSortByDisplayname ListVirtualCircuitsSortByEnum = "DISPLAYNAME" +) + +var mappingListVirtualCircuitsSortByEnum = map[string]ListVirtualCircuitsSortByEnum{ + "TIMECREATED": ListVirtualCircuitsSortByTimecreated, + "DISPLAYNAME": ListVirtualCircuitsSortByDisplayname, +} + +var mappingListVirtualCircuitsSortByEnumLowerCase = map[string]ListVirtualCircuitsSortByEnum{ + "timecreated": ListVirtualCircuitsSortByTimecreated, + "displayname": ListVirtualCircuitsSortByDisplayname, +} + +// GetListVirtualCircuitsSortByEnumValues Enumerates the set of values for ListVirtualCircuitsSortByEnum +func GetListVirtualCircuitsSortByEnumValues() []ListVirtualCircuitsSortByEnum { + values := make([]ListVirtualCircuitsSortByEnum, 0) + for _, v := range mappingListVirtualCircuitsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVirtualCircuitsSortByEnumStringValues Enumerates the set of values in String for ListVirtualCircuitsSortByEnum +func GetListVirtualCircuitsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVirtualCircuitsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVirtualCircuitsSortByEnum(val string) (ListVirtualCircuitsSortByEnum, bool) { + enum, ok := mappingListVirtualCircuitsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVirtualCircuitsSortOrderEnum Enum with underlying type: string +type ListVirtualCircuitsSortOrderEnum string + +// Set of constants representing the allowable values for ListVirtualCircuitsSortOrderEnum +const ( + ListVirtualCircuitsSortOrderAsc ListVirtualCircuitsSortOrderEnum = "ASC" + ListVirtualCircuitsSortOrderDesc ListVirtualCircuitsSortOrderEnum = "DESC" +) + +var mappingListVirtualCircuitsSortOrderEnum = map[string]ListVirtualCircuitsSortOrderEnum{ + "ASC": ListVirtualCircuitsSortOrderAsc, + "DESC": ListVirtualCircuitsSortOrderDesc, +} + +var mappingListVirtualCircuitsSortOrderEnumLowerCase = map[string]ListVirtualCircuitsSortOrderEnum{ + "asc": ListVirtualCircuitsSortOrderAsc, + "desc": ListVirtualCircuitsSortOrderDesc, +} + +// GetListVirtualCircuitsSortOrderEnumValues Enumerates the set of values for ListVirtualCircuitsSortOrderEnum +func GetListVirtualCircuitsSortOrderEnumValues() []ListVirtualCircuitsSortOrderEnum { + values := make([]ListVirtualCircuitsSortOrderEnum, 0) + for _, v := range mappingListVirtualCircuitsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVirtualCircuitsSortOrderEnumStringValues Enumerates the set of values in String for ListVirtualCircuitsSortOrderEnum +func GetListVirtualCircuitsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVirtualCircuitsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVirtualCircuitsSortOrderEnum(val string) (ListVirtualCircuitsSortOrderEnum, bool) { + enum, ok := mappingListVirtualCircuitsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vlans_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vlans_request_response.go new file mode 100644 index 0000000000..64feca51f4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vlans_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVlansRequest wrapper for the ListVlans operation +type ListVlansRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVlansSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVlansSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState VlanLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVlansRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVlansRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVlansRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVlansRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVlansRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVlansSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVlansSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVlansSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVlansSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVlanLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVlanLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVlansResponse wrapper for the ListVlans operation +type ListVlansResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Vlan instances + Items []Vlan `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVlansResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVlansResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVlansSortByEnum Enum with underlying type: string +type ListVlansSortByEnum string + +// Set of constants representing the allowable values for ListVlansSortByEnum +const ( + ListVlansSortByTimecreated ListVlansSortByEnum = "TIMECREATED" + ListVlansSortByDisplayname ListVlansSortByEnum = "DISPLAYNAME" +) + +var mappingListVlansSortByEnum = map[string]ListVlansSortByEnum{ + "TIMECREATED": ListVlansSortByTimecreated, + "DISPLAYNAME": ListVlansSortByDisplayname, +} + +var mappingListVlansSortByEnumLowerCase = map[string]ListVlansSortByEnum{ + "timecreated": ListVlansSortByTimecreated, + "displayname": ListVlansSortByDisplayname, +} + +// GetListVlansSortByEnumValues Enumerates the set of values for ListVlansSortByEnum +func GetListVlansSortByEnumValues() []ListVlansSortByEnum { + values := make([]ListVlansSortByEnum, 0) + for _, v := range mappingListVlansSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVlansSortByEnumStringValues Enumerates the set of values in String for ListVlansSortByEnum +func GetListVlansSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVlansSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVlansSortByEnum(val string) (ListVlansSortByEnum, bool) { + enum, ok := mappingListVlansSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVlansSortOrderEnum Enum with underlying type: string +type ListVlansSortOrderEnum string + +// Set of constants representing the allowable values for ListVlansSortOrderEnum +const ( + ListVlansSortOrderAsc ListVlansSortOrderEnum = "ASC" + ListVlansSortOrderDesc ListVlansSortOrderEnum = "DESC" +) + +var mappingListVlansSortOrderEnum = map[string]ListVlansSortOrderEnum{ + "ASC": ListVlansSortOrderAsc, + "DESC": ListVlansSortOrderDesc, +} + +var mappingListVlansSortOrderEnumLowerCase = map[string]ListVlansSortOrderEnum{ + "asc": ListVlansSortOrderAsc, + "desc": ListVlansSortOrderDesc, +} + +// GetListVlansSortOrderEnumValues Enumerates the set of values for ListVlansSortOrderEnum +func GetListVlansSortOrderEnumValues() []ListVlansSortOrderEnum { + values := make([]ListVlansSortOrderEnum, 0) + for _, v := range mappingListVlansSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVlansSortOrderEnumStringValues Enumerates the set of values in String for ListVlansSortOrderEnum +func GetListVlansSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVlansSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVlansSortOrderEnum(val string) (ListVlansSortOrderEnum, bool) { + enum, ok := mappingListVlansSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vnic_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_vnic_attachments_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go index 352cab372f..22aa714bf4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vnic_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_attachments_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListVnicAttachmentsRequest wrapper for the ListVnicAttachments operation @@ -52,6 +54,10 @@ func (request ListVnicAttachmentsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListVnicAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -67,6 +73,17 @@ func (request ListVnicAttachmentsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVnicAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListVnicAttachmentsResponse wrapper for the ListVnicAttachments operation type ListVnicAttachmentsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vnic_workers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_workers_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_vnic_workers_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_workers_request_response.go index ecf717e91b..f705a0e542 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_vnic_workers_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vnic_workers_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListVnicWorkersRequest wrapper for the ListVnicWorkers operation @@ -23,7 +25,7 @@ type ListVnicWorkersRequest struct { // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). Page *string `mandatory:"false" contributesTo:"query" name:"page"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the service VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VNIC. ServiceVnicId *string `mandatory:"false" contributesTo:"query" name:"serviceVnicId"` // The OCID of the instance. @@ -45,6 +47,10 @@ func (request ListVnicWorkersRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListVnicWorkersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request ListVnicWorkersRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVnicWorkersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListVnicWorkersResponse wrapper for the ListVnicWorkers operation type ListVnicWorkersResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_attachments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_attachments_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go index 4033aafb7c..202bbfcbec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_attachments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_attachments_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListVolumeAttachmentsRequest wrapper for the ListVolumeAttachments operation @@ -52,6 +54,10 @@ func (request ListVolumeAttachmentsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListVolumeAttachmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -67,6 +73,17 @@ func (request ListVolumeAttachmentsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumeAttachmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListVolumeAttachmentsResponse wrapper for the ListVolumeAttachments operation type ListVolumeAttachmentsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backup_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backup_policies_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backup_policies_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backup_policies_request_response.go index 82fd54675a..7e9b4241ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/list_volume_backup_policies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backup_policies_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListVolumeBackupPoliciesRequest wrapper for the ListVolumeBackupPolicies operation @@ -43,6 +45,10 @@ func (request ListVolumeBackupPoliciesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListVolumeBackupPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request ListVolumeBackupPoliciesRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumeBackupPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListVolumeBackupPoliciesResponse wrapper for the ListVolumeBackupPolicies operation type ListVolumeBackupPoliciesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backups_request_response.go new file mode 100644 index 0000000000..bd70f9d7f5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_backups_request_response.go @@ -0,0 +1,222 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVolumeBackupsRequest wrapper for the ListVolumeBackups operation +type ListVolumeBackupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the volume. + VolumeId *string `mandatory:"false" contributesTo:"query" name:"volumeId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that originated from the given source volume backup. + SourceVolumeBackupId *string `mandatory:"false" contributesTo:"query" name:"sourceVolumeBackupId"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVolumeBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumeBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVolumeBackupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVolumeBackupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVolumeBackupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVolumeBackupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumeBackupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVolumeBackupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVolumeBackupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVolumeBackupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVolumeBackupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeBackupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVolumeBackupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVolumeBackupsResponse wrapper for the ListVolumeBackups operation +type ListVolumeBackupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VolumeBackup instances + Items []VolumeBackup `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVolumeBackupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVolumeBackupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVolumeBackupsSortByEnum Enum with underlying type: string +type ListVolumeBackupsSortByEnum string + +// Set of constants representing the allowable values for ListVolumeBackupsSortByEnum +const ( + ListVolumeBackupsSortByTimecreated ListVolumeBackupsSortByEnum = "TIMECREATED" + ListVolumeBackupsSortByDisplayname ListVolumeBackupsSortByEnum = "DISPLAYNAME" +) + +var mappingListVolumeBackupsSortByEnum = map[string]ListVolumeBackupsSortByEnum{ + "TIMECREATED": ListVolumeBackupsSortByTimecreated, + "DISPLAYNAME": ListVolumeBackupsSortByDisplayname, +} + +var mappingListVolumeBackupsSortByEnumLowerCase = map[string]ListVolumeBackupsSortByEnum{ + "timecreated": ListVolumeBackupsSortByTimecreated, + "displayname": ListVolumeBackupsSortByDisplayname, +} + +// GetListVolumeBackupsSortByEnumValues Enumerates the set of values for ListVolumeBackupsSortByEnum +func GetListVolumeBackupsSortByEnumValues() []ListVolumeBackupsSortByEnum { + values := make([]ListVolumeBackupsSortByEnum, 0) + for _, v := range mappingListVolumeBackupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeBackupsSortByEnumStringValues Enumerates the set of values in String for ListVolumeBackupsSortByEnum +func GetListVolumeBackupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVolumeBackupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeBackupsSortByEnum(val string) (ListVolumeBackupsSortByEnum, bool) { + enum, ok := mappingListVolumeBackupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVolumeBackupsSortOrderEnum Enum with underlying type: string +type ListVolumeBackupsSortOrderEnum string + +// Set of constants representing the allowable values for ListVolumeBackupsSortOrderEnum +const ( + ListVolumeBackupsSortOrderAsc ListVolumeBackupsSortOrderEnum = "ASC" + ListVolumeBackupsSortOrderDesc ListVolumeBackupsSortOrderEnum = "DESC" +) + +var mappingListVolumeBackupsSortOrderEnum = map[string]ListVolumeBackupsSortOrderEnum{ + "ASC": ListVolumeBackupsSortOrderAsc, + "DESC": ListVolumeBackupsSortOrderDesc, +} + +var mappingListVolumeBackupsSortOrderEnumLowerCase = map[string]ListVolumeBackupsSortOrderEnum{ + "asc": ListVolumeBackupsSortOrderAsc, + "desc": ListVolumeBackupsSortOrderDesc, +} + +// GetListVolumeBackupsSortOrderEnumValues Enumerates the set of values for ListVolumeBackupsSortOrderEnum +func GetListVolumeBackupsSortOrderEnumValues() []ListVolumeBackupsSortOrderEnum { + values := make([]ListVolumeBackupsSortOrderEnum, 0) + for _, v := range mappingListVolumeBackupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeBackupsSortOrderEnumStringValues Enumerates the set of values in String for ListVolumeBackupsSortOrderEnum +func GetListVolumeBackupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVolumeBackupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeBackupsSortOrderEnum(val string) (ListVolumeBackupsSortOrderEnum, bool) { + enum, ok := mappingListVolumeBackupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_backups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_backups_request_response.go new file mode 100644 index 0000000000..dadd06f47e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_backups_request_response.go @@ -0,0 +1,212 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVolumeGroupBackupsRequest wrapper for the ListVolumeGroupBackups operation +type ListVolumeGroupBackupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID of the volume group. + VolumeGroupId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVolumeGroupBackupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumeGroupBackupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVolumeGroupBackupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVolumeGroupBackupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVolumeGroupBackupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVolumeGroupBackupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumeGroupBackupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVolumeGroupBackupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVolumeGroupBackupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVolumeGroupBackupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVolumeGroupBackupsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVolumeGroupBackupsResponse wrapper for the ListVolumeGroupBackups operation +type ListVolumeGroupBackupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VolumeGroupBackup instances + Items []VolumeGroupBackup `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVolumeGroupBackupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVolumeGroupBackupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVolumeGroupBackupsSortByEnum Enum with underlying type: string +type ListVolumeGroupBackupsSortByEnum string + +// Set of constants representing the allowable values for ListVolumeGroupBackupsSortByEnum +const ( + ListVolumeGroupBackupsSortByTimecreated ListVolumeGroupBackupsSortByEnum = "TIMECREATED" + ListVolumeGroupBackupsSortByDisplayname ListVolumeGroupBackupsSortByEnum = "DISPLAYNAME" +) + +var mappingListVolumeGroupBackupsSortByEnum = map[string]ListVolumeGroupBackupsSortByEnum{ + "TIMECREATED": ListVolumeGroupBackupsSortByTimecreated, + "DISPLAYNAME": ListVolumeGroupBackupsSortByDisplayname, +} + +var mappingListVolumeGroupBackupsSortByEnumLowerCase = map[string]ListVolumeGroupBackupsSortByEnum{ + "timecreated": ListVolumeGroupBackupsSortByTimecreated, + "displayname": ListVolumeGroupBackupsSortByDisplayname, +} + +// GetListVolumeGroupBackupsSortByEnumValues Enumerates the set of values for ListVolumeGroupBackupsSortByEnum +func GetListVolumeGroupBackupsSortByEnumValues() []ListVolumeGroupBackupsSortByEnum { + values := make([]ListVolumeGroupBackupsSortByEnum, 0) + for _, v := range mappingListVolumeGroupBackupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeGroupBackupsSortByEnumStringValues Enumerates the set of values in String for ListVolumeGroupBackupsSortByEnum +func GetListVolumeGroupBackupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVolumeGroupBackupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeGroupBackupsSortByEnum(val string) (ListVolumeGroupBackupsSortByEnum, bool) { + enum, ok := mappingListVolumeGroupBackupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVolumeGroupBackupsSortOrderEnum Enum with underlying type: string +type ListVolumeGroupBackupsSortOrderEnum string + +// Set of constants representing the allowable values for ListVolumeGroupBackupsSortOrderEnum +const ( + ListVolumeGroupBackupsSortOrderAsc ListVolumeGroupBackupsSortOrderEnum = "ASC" + ListVolumeGroupBackupsSortOrderDesc ListVolumeGroupBackupsSortOrderEnum = "DESC" +) + +var mappingListVolumeGroupBackupsSortOrderEnum = map[string]ListVolumeGroupBackupsSortOrderEnum{ + "ASC": ListVolumeGroupBackupsSortOrderAsc, + "DESC": ListVolumeGroupBackupsSortOrderDesc, +} + +var mappingListVolumeGroupBackupsSortOrderEnumLowerCase = map[string]ListVolumeGroupBackupsSortOrderEnum{ + "asc": ListVolumeGroupBackupsSortOrderAsc, + "desc": ListVolumeGroupBackupsSortOrderDesc, +} + +// GetListVolumeGroupBackupsSortOrderEnumValues Enumerates the set of values for ListVolumeGroupBackupsSortOrderEnum +func GetListVolumeGroupBackupsSortOrderEnumValues() []ListVolumeGroupBackupsSortOrderEnum { + values := make([]ListVolumeGroupBackupsSortOrderEnum, 0) + for _, v := range mappingListVolumeGroupBackupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeGroupBackupsSortOrderEnumStringValues Enumerates the set of values in String for ListVolumeGroupBackupsSortOrderEnum +func GetListVolumeGroupBackupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVolumeGroupBackupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeGroupBackupsSortOrderEnum(val string) (ListVolumeGroupBackupsSortOrderEnum, bool) { + enum, ok := mappingListVolumeGroupBackupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_replicas_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_replicas_request_response.go new file mode 100644 index 0000000000..ac770fa1bc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_group_replicas_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVolumeGroupReplicasRequest wrapper for the ListVolumeGroupReplicas operation +type ListVolumeGroupReplicasRequest struct { + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVolumeGroupReplicasSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumeGroupReplicasSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState VolumeGroupReplicaLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVolumeGroupReplicasRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVolumeGroupReplicasRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVolumeGroupReplicasRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVolumeGroupReplicasRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumeGroupReplicasRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVolumeGroupReplicasSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVolumeGroupReplicasSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVolumeGroupReplicasSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVolumeGroupReplicasSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeGroupReplicaLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVolumeGroupReplicaLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVolumeGroupReplicasResponse wrapper for the ListVolumeGroupReplicas operation +type ListVolumeGroupReplicasResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VolumeGroupReplica instances + Items []VolumeGroupReplica `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVolumeGroupReplicasResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVolumeGroupReplicasResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVolumeGroupReplicasSortByEnum Enum with underlying type: string +type ListVolumeGroupReplicasSortByEnum string + +// Set of constants representing the allowable values for ListVolumeGroupReplicasSortByEnum +const ( + ListVolumeGroupReplicasSortByTimecreated ListVolumeGroupReplicasSortByEnum = "TIMECREATED" + ListVolumeGroupReplicasSortByDisplayname ListVolumeGroupReplicasSortByEnum = "DISPLAYNAME" +) + +var mappingListVolumeGroupReplicasSortByEnum = map[string]ListVolumeGroupReplicasSortByEnum{ + "TIMECREATED": ListVolumeGroupReplicasSortByTimecreated, + "DISPLAYNAME": ListVolumeGroupReplicasSortByDisplayname, +} + +var mappingListVolumeGroupReplicasSortByEnumLowerCase = map[string]ListVolumeGroupReplicasSortByEnum{ + "timecreated": ListVolumeGroupReplicasSortByTimecreated, + "displayname": ListVolumeGroupReplicasSortByDisplayname, +} + +// GetListVolumeGroupReplicasSortByEnumValues Enumerates the set of values for ListVolumeGroupReplicasSortByEnum +func GetListVolumeGroupReplicasSortByEnumValues() []ListVolumeGroupReplicasSortByEnum { + values := make([]ListVolumeGroupReplicasSortByEnum, 0) + for _, v := range mappingListVolumeGroupReplicasSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeGroupReplicasSortByEnumStringValues Enumerates the set of values in String for ListVolumeGroupReplicasSortByEnum +func GetListVolumeGroupReplicasSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVolumeGroupReplicasSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeGroupReplicasSortByEnum(val string) (ListVolumeGroupReplicasSortByEnum, bool) { + enum, ok := mappingListVolumeGroupReplicasSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVolumeGroupReplicasSortOrderEnum Enum with underlying type: string +type ListVolumeGroupReplicasSortOrderEnum string + +// Set of constants representing the allowable values for ListVolumeGroupReplicasSortOrderEnum +const ( + ListVolumeGroupReplicasSortOrderAsc ListVolumeGroupReplicasSortOrderEnum = "ASC" + ListVolumeGroupReplicasSortOrderDesc ListVolumeGroupReplicasSortOrderEnum = "DESC" +) + +var mappingListVolumeGroupReplicasSortOrderEnum = map[string]ListVolumeGroupReplicasSortOrderEnum{ + "ASC": ListVolumeGroupReplicasSortOrderAsc, + "DESC": ListVolumeGroupReplicasSortOrderDesc, +} + +var mappingListVolumeGroupReplicasSortOrderEnumLowerCase = map[string]ListVolumeGroupReplicasSortOrderEnum{ + "asc": ListVolumeGroupReplicasSortOrderAsc, + "desc": ListVolumeGroupReplicasSortOrderDesc, +} + +// GetListVolumeGroupReplicasSortOrderEnumValues Enumerates the set of values for ListVolumeGroupReplicasSortOrderEnum +func GetListVolumeGroupReplicasSortOrderEnumValues() []ListVolumeGroupReplicasSortOrderEnum { + values := make([]ListVolumeGroupReplicasSortOrderEnum, 0) + for _, v := range mappingListVolumeGroupReplicasSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeGroupReplicasSortOrderEnumStringValues Enumerates the set of values in String for ListVolumeGroupReplicasSortOrderEnum +func GetListVolumeGroupReplicasSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVolumeGroupReplicasSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeGroupReplicasSortOrderEnum(val string) (ListVolumeGroupReplicasSortOrderEnum, bool) { + enum, ok := mappingListVolumeGroupReplicasSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_groups_request_response.go new file mode 100644 index 0000000000..30e0111a17 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volume_groups_request_response.go @@ -0,0 +1,220 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVolumeGroupsRequest wrapper for the ListVolumeGroups operation +type ListVolumeGroupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVolumeGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumeGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle + // state. The state value is case-insensitive. + LifecycleState VolumeGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVolumeGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVolumeGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVolumeGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVolumeGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumeGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVolumeGroupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVolumeGroupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVolumeGroupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVolumeGroupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeGroupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVolumeGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVolumeGroupsResponse wrapper for the ListVolumeGroups operation +type ListVolumeGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []VolumeGroup instances + Items []VolumeGroup `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVolumeGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVolumeGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVolumeGroupsSortByEnum Enum with underlying type: string +type ListVolumeGroupsSortByEnum string + +// Set of constants representing the allowable values for ListVolumeGroupsSortByEnum +const ( + ListVolumeGroupsSortByTimecreated ListVolumeGroupsSortByEnum = "TIMECREATED" + ListVolumeGroupsSortByDisplayname ListVolumeGroupsSortByEnum = "DISPLAYNAME" +) + +var mappingListVolumeGroupsSortByEnum = map[string]ListVolumeGroupsSortByEnum{ + "TIMECREATED": ListVolumeGroupsSortByTimecreated, + "DISPLAYNAME": ListVolumeGroupsSortByDisplayname, +} + +var mappingListVolumeGroupsSortByEnumLowerCase = map[string]ListVolumeGroupsSortByEnum{ + "timecreated": ListVolumeGroupsSortByTimecreated, + "displayname": ListVolumeGroupsSortByDisplayname, +} + +// GetListVolumeGroupsSortByEnumValues Enumerates the set of values for ListVolumeGroupsSortByEnum +func GetListVolumeGroupsSortByEnumValues() []ListVolumeGroupsSortByEnum { + values := make([]ListVolumeGroupsSortByEnum, 0) + for _, v := range mappingListVolumeGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeGroupsSortByEnumStringValues Enumerates the set of values in String for ListVolumeGroupsSortByEnum +func GetListVolumeGroupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVolumeGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeGroupsSortByEnum(val string) (ListVolumeGroupsSortByEnum, bool) { + enum, ok := mappingListVolumeGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVolumeGroupsSortOrderEnum Enum with underlying type: string +type ListVolumeGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListVolumeGroupsSortOrderEnum +const ( + ListVolumeGroupsSortOrderAsc ListVolumeGroupsSortOrderEnum = "ASC" + ListVolumeGroupsSortOrderDesc ListVolumeGroupsSortOrderEnum = "DESC" +) + +var mappingListVolumeGroupsSortOrderEnum = map[string]ListVolumeGroupsSortOrderEnum{ + "ASC": ListVolumeGroupsSortOrderAsc, + "DESC": ListVolumeGroupsSortOrderDesc, +} + +var mappingListVolumeGroupsSortOrderEnumLowerCase = map[string]ListVolumeGroupsSortOrderEnum{ + "asc": ListVolumeGroupsSortOrderAsc, + "desc": ListVolumeGroupsSortOrderDesc, +} + +// GetListVolumeGroupsSortOrderEnumValues Enumerates the set of values for ListVolumeGroupsSortOrderEnum +func GetListVolumeGroupsSortOrderEnumValues() []ListVolumeGroupsSortOrderEnum { + values := make([]ListVolumeGroupsSortOrderEnum, 0) + for _, v := range mappingListVolumeGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVolumeGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListVolumeGroupsSortOrderEnum +func GetListVolumeGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVolumeGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumeGroupsSortOrderEnum(val string) (ListVolumeGroupsSortOrderEnum, bool) { + enum, ok := mappingListVolumeGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volumes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volumes_request_response.go new file mode 100644 index 0000000000..0f026a7275 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_volumes_request_response.go @@ -0,0 +1,227 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVolumesRequest wrapper for the ListVolumes operation +type ListVolumesRequest struct { + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" contributesTo:"query" name:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVolumesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVolumesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Specifies whether to list regional volumes or not. When set to `true`, only regional volumes are listed. + // Otherwise AD local volumes are returned. The default value is `false`. + IsRegional *bool `mandatory:"false" contributesTo:"query" name:"isRegional"` + + // The OCID of the volume group. + VolumeGroupId *string `mandatory:"false" contributesTo:"query" name:"volumeGroupId"` + + // A filter to only return resources that match the given lifecycle state. The state + // value is case-insensitive. + LifecycleState VolumeLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVolumesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVolumesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVolumesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVolumesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVolumesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVolumesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVolumesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVolumesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVolumesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVolumeLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVolumesResponse wrapper for the ListVolumes operation +type ListVolumesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Volume instances + Items []Volume `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVolumesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVolumesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVolumesSortByEnum Enum with underlying type: string +type ListVolumesSortByEnum string + +// Set of constants representing the allowable values for ListVolumesSortByEnum +const ( + ListVolumesSortByTimecreated ListVolumesSortByEnum = "TIMECREATED" + ListVolumesSortByDisplayname ListVolumesSortByEnum = "DISPLAYNAME" +) + +var mappingListVolumesSortByEnum = map[string]ListVolumesSortByEnum{ + "TIMECREATED": ListVolumesSortByTimecreated, + "DISPLAYNAME": ListVolumesSortByDisplayname, +} + +var mappingListVolumesSortByEnumLowerCase = map[string]ListVolumesSortByEnum{ + "timecreated": ListVolumesSortByTimecreated, + "displayname": ListVolumesSortByDisplayname, +} + +// GetListVolumesSortByEnumValues Enumerates the set of values for ListVolumesSortByEnum +func GetListVolumesSortByEnumValues() []ListVolumesSortByEnum { + values := make([]ListVolumesSortByEnum, 0) + for _, v := range mappingListVolumesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVolumesSortByEnumStringValues Enumerates the set of values in String for ListVolumesSortByEnum +func GetListVolumesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVolumesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumesSortByEnum(val string) (ListVolumesSortByEnum, bool) { + enum, ok := mappingListVolumesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVolumesSortOrderEnum Enum with underlying type: string +type ListVolumesSortOrderEnum string + +// Set of constants representing the allowable values for ListVolumesSortOrderEnum +const ( + ListVolumesSortOrderAsc ListVolumesSortOrderEnum = "ASC" + ListVolumesSortOrderDesc ListVolumesSortOrderEnum = "DESC" +) + +var mappingListVolumesSortOrderEnum = map[string]ListVolumesSortOrderEnum{ + "ASC": ListVolumesSortOrderAsc, + "DESC": ListVolumesSortOrderDesc, +} + +var mappingListVolumesSortOrderEnumLowerCase = map[string]ListVolumesSortOrderEnum{ + "asc": ListVolumesSortOrderAsc, + "desc": ListVolumesSortOrderDesc, +} + +// GetListVolumesSortOrderEnumValues Enumerates the set of values for ListVolumesSortOrderEnum +func GetListVolumesSortOrderEnumValues() []ListVolumesSortOrderEnum { + values := make([]ListVolumesSortOrderEnum, 0) + for _, v := range mappingListVolumesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVolumesSortOrderEnumStringValues Enumerates the set of values in String for ListVolumesSortOrderEnum +func GetListVolumesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVolumesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVolumesSortOrderEnum(val string) (ListVolumesSortOrderEnum, bool) { + enum, ok := mappingListVolumesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vtaps_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vtaps_request_response.go new file mode 100644 index 0000000000..936fea8c17 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/list_vtaps_request_response.go @@ -0,0 +1,233 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListVtapsRequest wrapper for the ListVtaps operation +type ListVtapsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"false" contributesTo:"query" name:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP source. + Source *string `mandatory:"false" contributesTo:"query" name:"source"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP target. + TargetId *string `mandatory:"false" contributesTo:"query" name:"targetId"` + + // The IP address of the VTAP target. + TargetIp *string `mandatory:"false" contributesTo:"query" name:"targetIp"` + + // Indicates whether to list all VTAPs or only running VTAPs. + // * When `FALSE`, lists ALL running and stopped VTAPs. + // * When `TRUE`, lists only running VTAPs (VTAPs where isVtapEnabled = `TRUE`). + IsVtapEnabled *bool `mandatory:"false" contributesTo:"query" name:"isVtapEnabled"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated + // "List" call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" + // call. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for DISPLAYNAME is ascending. The DISPLAYNAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by availability domain if the scope of the resource type is within a + // single availability domain. If you call one of these "List" operations without specifying + // an availability domain, the resources are grouped by availability domain, then sorted. + SortBy ListVtapsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order + // is case sensitive. + SortOrder ListVtapsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given display name exactly. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that match the given VTAP administrative lifecycle state. + // The state value is case-insensitive. + LifecycleState VtapLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListVtapsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListVtapsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListVtapsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListVtapsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListVtapsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListVtapsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListVtapsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListVtapsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListVtapsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingVtapLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetVtapLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListVtapsResponse wrapper for the ListVtaps operation +type ListVtapsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Vtap instances + Items []Vtap `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListVtapsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListVtapsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListVtapsSortByEnum Enum with underlying type: string +type ListVtapsSortByEnum string + +// Set of constants representing the allowable values for ListVtapsSortByEnum +const ( + ListVtapsSortByTimecreated ListVtapsSortByEnum = "TIMECREATED" + ListVtapsSortByDisplayname ListVtapsSortByEnum = "DISPLAYNAME" +) + +var mappingListVtapsSortByEnum = map[string]ListVtapsSortByEnum{ + "TIMECREATED": ListVtapsSortByTimecreated, + "DISPLAYNAME": ListVtapsSortByDisplayname, +} + +var mappingListVtapsSortByEnumLowerCase = map[string]ListVtapsSortByEnum{ + "timecreated": ListVtapsSortByTimecreated, + "displayname": ListVtapsSortByDisplayname, +} + +// GetListVtapsSortByEnumValues Enumerates the set of values for ListVtapsSortByEnum +func GetListVtapsSortByEnumValues() []ListVtapsSortByEnum { + values := make([]ListVtapsSortByEnum, 0) + for _, v := range mappingListVtapsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListVtapsSortByEnumStringValues Enumerates the set of values in String for ListVtapsSortByEnum +func GetListVtapsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListVtapsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVtapsSortByEnum(val string) (ListVtapsSortByEnum, bool) { + enum, ok := mappingListVtapsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListVtapsSortOrderEnum Enum with underlying type: string +type ListVtapsSortOrderEnum string + +// Set of constants representing the allowable values for ListVtapsSortOrderEnum +const ( + ListVtapsSortOrderAsc ListVtapsSortOrderEnum = "ASC" + ListVtapsSortOrderDesc ListVtapsSortOrderEnum = "DESC" +) + +var mappingListVtapsSortOrderEnum = map[string]ListVtapsSortOrderEnum{ + "ASC": ListVtapsSortOrderAsc, + "DESC": ListVtapsSortOrderDesc, +} + +var mappingListVtapsSortOrderEnumLowerCase = map[string]ListVtapsSortOrderEnum{ + "asc": ListVtapsSortOrderAsc, + "desc": ListVtapsSortOrderDesc, +} + +// GetListVtapsSortOrderEnumValues Enumerates the set of values for ListVtapsSortOrderEnum +func GetListVtapsSortOrderEnumValues() []ListVtapsSortOrderEnum { + values := make([]ListVtapsSortOrderEnum, 0) + for _, v := range mappingListVtapsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListVtapsSortOrderEnumStringValues Enumerates the set of values in String for ListVtapsSortOrderEnum +func GetListVtapsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListVtapsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListVtapsSortOrderEnum(val string) (ListVtapsSortOrderEnum, bool) { + enum, ok := mappingListVtapsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_connection.go new file mode 100644 index 0000000000..6bc36e63a7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_connection.go @@ -0,0 +1,186 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LocalPeeringConnection Details regarding a local peering connection, which is an entity that allows two VCNs to communicate +// without traversing the Internet. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type LocalPeeringConnection struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the local peering connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The local peering connection's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The local peering connection's current lifecycle state. + LifecycleState LocalPeeringConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Indicates whether the local peering connection is peered with another local peering connection. + PeeringStatus LocalPeeringConnectionPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` + + // The date and time the local peering connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the local peering connection belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Indicates whether the peer local peering connection is contained within another tenancy. + IsCrossTenancyPeering *bool `mandatory:"false" json:"isCrossTenancyPeering"` + + // Indicates the range of IPs available on the peer. `null` if not peered. + PeerAdvertisedCidr *string `mandatory:"false" json:"peerAdvertisedCidr"` + + // Additional information regarding the peering status if applicable. + PeeringStatusDetails *string `mandatory:"false" json:"peeringStatusDetails"` +} + +func (m LocalPeeringConnection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LocalPeeringConnection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLocalPeeringConnectionLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetLocalPeeringConnectionLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingLocalPeeringConnectionPeeringStatusEnum(string(m.PeeringStatus)); !ok && m.PeeringStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PeeringStatus: %s. Supported values are: %s.", m.PeeringStatus, strings.Join(GetLocalPeeringConnectionPeeringStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LocalPeeringConnectionLifecycleStateEnum Enum with underlying type: string +type LocalPeeringConnectionLifecycleStateEnum string + +// Set of constants representing the allowable values for LocalPeeringConnectionLifecycleStateEnum +const ( + LocalPeeringConnectionLifecycleStateProvisioning LocalPeeringConnectionLifecycleStateEnum = "PROVISIONING" + LocalPeeringConnectionLifecycleStateAvailable LocalPeeringConnectionLifecycleStateEnum = "AVAILABLE" + LocalPeeringConnectionLifecycleStateTerminating LocalPeeringConnectionLifecycleStateEnum = "TERMINATING" + LocalPeeringConnectionLifecycleStateTerminated LocalPeeringConnectionLifecycleStateEnum = "TERMINATED" +) + +var mappingLocalPeeringConnectionLifecycleStateEnum = map[string]LocalPeeringConnectionLifecycleStateEnum{ + "PROVISIONING": LocalPeeringConnectionLifecycleStateProvisioning, + "AVAILABLE": LocalPeeringConnectionLifecycleStateAvailable, + "TERMINATING": LocalPeeringConnectionLifecycleStateTerminating, + "TERMINATED": LocalPeeringConnectionLifecycleStateTerminated, +} + +var mappingLocalPeeringConnectionLifecycleStateEnumLowerCase = map[string]LocalPeeringConnectionLifecycleStateEnum{ + "provisioning": LocalPeeringConnectionLifecycleStateProvisioning, + "available": LocalPeeringConnectionLifecycleStateAvailable, + "terminating": LocalPeeringConnectionLifecycleStateTerminating, + "terminated": LocalPeeringConnectionLifecycleStateTerminated, +} + +// GetLocalPeeringConnectionLifecycleStateEnumValues Enumerates the set of values for LocalPeeringConnectionLifecycleStateEnum +func GetLocalPeeringConnectionLifecycleStateEnumValues() []LocalPeeringConnectionLifecycleStateEnum { + values := make([]LocalPeeringConnectionLifecycleStateEnum, 0) + for _, v := range mappingLocalPeeringConnectionLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetLocalPeeringConnectionLifecycleStateEnumStringValues Enumerates the set of values in String for LocalPeeringConnectionLifecycleStateEnum +func GetLocalPeeringConnectionLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingLocalPeeringConnectionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLocalPeeringConnectionLifecycleStateEnum(val string) (LocalPeeringConnectionLifecycleStateEnum, bool) { + enum, ok := mappingLocalPeeringConnectionLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LocalPeeringConnectionPeeringStatusEnum Enum with underlying type: string +type LocalPeeringConnectionPeeringStatusEnum string + +// Set of constants representing the allowable values for LocalPeeringConnectionPeeringStatusEnum +const ( + LocalPeeringConnectionPeeringStatusInvalid LocalPeeringConnectionPeeringStatusEnum = "INVALID" + LocalPeeringConnectionPeeringStatusNew LocalPeeringConnectionPeeringStatusEnum = "NEW" + LocalPeeringConnectionPeeringStatusPeered LocalPeeringConnectionPeeringStatusEnum = "PEERED" + LocalPeeringConnectionPeeringStatusPending LocalPeeringConnectionPeeringStatusEnum = "PENDING" + LocalPeeringConnectionPeeringStatusRevoked LocalPeeringConnectionPeeringStatusEnum = "REVOKED" +) + +var mappingLocalPeeringConnectionPeeringStatusEnum = map[string]LocalPeeringConnectionPeeringStatusEnum{ + "INVALID": LocalPeeringConnectionPeeringStatusInvalid, + "NEW": LocalPeeringConnectionPeeringStatusNew, + "PEERED": LocalPeeringConnectionPeeringStatusPeered, + "PENDING": LocalPeeringConnectionPeeringStatusPending, + "REVOKED": LocalPeeringConnectionPeeringStatusRevoked, +} + +var mappingLocalPeeringConnectionPeeringStatusEnumLowerCase = map[string]LocalPeeringConnectionPeeringStatusEnum{ + "invalid": LocalPeeringConnectionPeeringStatusInvalid, + "new": LocalPeeringConnectionPeeringStatusNew, + "peered": LocalPeeringConnectionPeeringStatusPeered, + "pending": LocalPeeringConnectionPeeringStatusPending, + "revoked": LocalPeeringConnectionPeeringStatusRevoked, +} + +// GetLocalPeeringConnectionPeeringStatusEnumValues Enumerates the set of values for LocalPeeringConnectionPeeringStatusEnum +func GetLocalPeeringConnectionPeeringStatusEnumValues() []LocalPeeringConnectionPeeringStatusEnum { + values := make([]LocalPeeringConnectionPeeringStatusEnum, 0) + for _, v := range mappingLocalPeeringConnectionPeeringStatusEnum { + values = append(values, v) + } + return values +} + +// GetLocalPeeringConnectionPeeringStatusEnumStringValues Enumerates the set of values in String for LocalPeeringConnectionPeeringStatusEnum +func GetLocalPeeringConnectionPeeringStatusEnumStringValues() []string { + return []string{ + "INVALID", + "NEW", + "PEERED", + "PENDING", + "REVOKED", + } +} + +// GetMappingLocalPeeringConnectionPeeringStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLocalPeeringConnectionPeeringStatusEnum(val string) (LocalPeeringConnectionPeeringStatusEnum, bool) { + enum, ok := mappingLocalPeeringConnectionPeeringStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_gateway.go new file mode 100644 index 0000000000..f3092b3e5e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_gateway.go @@ -0,0 +1,220 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LocalPeeringGateway A local peering gateway (LPG) is an object on a VCN that lets that VCN peer +// with another VCN in the same region. *Peering* means that the two VCNs can +// communicate using private IP addresses, but without the traffic traversing the +// internet or routing through your on-premises network. For more information, +// see VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type LocalPeeringGateway struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the LPG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The LPG's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // Whether the VCN at the other end of the peering is in a different tenancy. + // Example: `false` + IsCrossTenancyPeering *bool `mandatory:"true" json:"isCrossTenancyPeering"` + + // The LPG's current lifecycle state. + LifecycleState LocalPeeringGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Whether the LPG is peered with another LPG. `NEW` means the LPG has not yet been + // peered. `PENDING` means the peering is being established. `REVOKED` means the + // LPG at the other end of the peering has been deleted. + PeeringStatus LocalPeeringGatewayPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the peered LPG. + PeerId *string `mandatory:"true" json:"peerId"` + + // The date and time the LPG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN that uses the LPG. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN + // at the other end of the peering from this LPG. See `peerAdvertisedCidrDetails` for + // the individual CIDRs. The value is `null` if the LPG is not peered. + // Example: `192.168.0.0/16`, or if aggregated with `172.16.0.0/24` then `128.0.0.0/1` + PeerAdvertisedCidr *string `mandatory:"false" json:"peerAdvertisedCidr"` + + // The specific ranges of IP addresses available on or via the VCN at the other + // end of the peering from this LPG. The value is `null` if the LPG is not peered. + // You can use these as destination CIDRs for route rules to route a subnet's + // traffic to this LPG. + // Example: [`192.168.0.0/16`, `172.16.0.0/24`] + PeerAdvertisedCidrDetails []string `mandatory:"false" json:"peerAdvertisedCidrDetails"` + + // Additional information regarding the peering status, if applicable. + PeeringStatusDetails *string `mandatory:"false" json:"peeringStatusDetails"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the LPG is using. + // For information about why you would associate a route table with an LPG, see + // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m LocalPeeringGateway) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LocalPeeringGateway) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLocalPeeringGatewayLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetLocalPeeringGatewayLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingLocalPeeringGatewayPeeringStatusEnum(string(m.PeeringStatus)); !ok && m.PeeringStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PeeringStatus: %s. Supported values are: %s.", m.PeeringStatus, strings.Join(GetLocalPeeringGatewayPeeringStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LocalPeeringGatewayLifecycleStateEnum Enum with underlying type: string +type LocalPeeringGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for LocalPeeringGatewayLifecycleStateEnum +const ( + LocalPeeringGatewayLifecycleStateProvisioning LocalPeeringGatewayLifecycleStateEnum = "PROVISIONING" + LocalPeeringGatewayLifecycleStateAvailable LocalPeeringGatewayLifecycleStateEnum = "AVAILABLE" + LocalPeeringGatewayLifecycleStateTerminating LocalPeeringGatewayLifecycleStateEnum = "TERMINATING" + LocalPeeringGatewayLifecycleStateTerminated LocalPeeringGatewayLifecycleStateEnum = "TERMINATED" +) + +var mappingLocalPeeringGatewayLifecycleStateEnum = map[string]LocalPeeringGatewayLifecycleStateEnum{ + "PROVISIONING": LocalPeeringGatewayLifecycleStateProvisioning, + "AVAILABLE": LocalPeeringGatewayLifecycleStateAvailable, + "TERMINATING": LocalPeeringGatewayLifecycleStateTerminating, + "TERMINATED": LocalPeeringGatewayLifecycleStateTerminated, +} + +var mappingLocalPeeringGatewayLifecycleStateEnumLowerCase = map[string]LocalPeeringGatewayLifecycleStateEnum{ + "provisioning": LocalPeeringGatewayLifecycleStateProvisioning, + "available": LocalPeeringGatewayLifecycleStateAvailable, + "terminating": LocalPeeringGatewayLifecycleStateTerminating, + "terminated": LocalPeeringGatewayLifecycleStateTerminated, +} + +// GetLocalPeeringGatewayLifecycleStateEnumValues Enumerates the set of values for LocalPeeringGatewayLifecycleStateEnum +func GetLocalPeeringGatewayLifecycleStateEnumValues() []LocalPeeringGatewayLifecycleStateEnum { + values := make([]LocalPeeringGatewayLifecycleStateEnum, 0) + for _, v := range mappingLocalPeeringGatewayLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetLocalPeeringGatewayLifecycleStateEnumStringValues Enumerates the set of values in String for LocalPeeringGatewayLifecycleStateEnum +func GetLocalPeeringGatewayLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingLocalPeeringGatewayLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLocalPeeringGatewayLifecycleStateEnum(val string) (LocalPeeringGatewayLifecycleStateEnum, bool) { + enum, ok := mappingLocalPeeringGatewayLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LocalPeeringGatewayPeeringStatusEnum Enum with underlying type: string +type LocalPeeringGatewayPeeringStatusEnum string + +// Set of constants representing the allowable values for LocalPeeringGatewayPeeringStatusEnum +const ( + LocalPeeringGatewayPeeringStatusInvalid LocalPeeringGatewayPeeringStatusEnum = "INVALID" + LocalPeeringGatewayPeeringStatusNew LocalPeeringGatewayPeeringStatusEnum = "NEW" + LocalPeeringGatewayPeeringStatusPeered LocalPeeringGatewayPeeringStatusEnum = "PEERED" + LocalPeeringGatewayPeeringStatusPending LocalPeeringGatewayPeeringStatusEnum = "PENDING" + LocalPeeringGatewayPeeringStatusRevoked LocalPeeringGatewayPeeringStatusEnum = "REVOKED" +) + +var mappingLocalPeeringGatewayPeeringStatusEnum = map[string]LocalPeeringGatewayPeeringStatusEnum{ + "INVALID": LocalPeeringGatewayPeeringStatusInvalid, + "NEW": LocalPeeringGatewayPeeringStatusNew, + "PEERED": LocalPeeringGatewayPeeringStatusPeered, + "PENDING": LocalPeeringGatewayPeeringStatusPending, + "REVOKED": LocalPeeringGatewayPeeringStatusRevoked, +} + +var mappingLocalPeeringGatewayPeeringStatusEnumLowerCase = map[string]LocalPeeringGatewayPeeringStatusEnum{ + "invalid": LocalPeeringGatewayPeeringStatusInvalid, + "new": LocalPeeringGatewayPeeringStatusNew, + "peered": LocalPeeringGatewayPeeringStatusPeered, + "pending": LocalPeeringGatewayPeeringStatusPending, + "revoked": LocalPeeringGatewayPeeringStatusRevoked, +} + +// GetLocalPeeringGatewayPeeringStatusEnumValues Enumerates the set of values for LocalPeeringGatewayPeeringStatusEnum +func GetLocalPeeringGatewayPeeringStatusEnumValues() []LocalPeeringGatewayPeeringStatusEnum { + values := make([]LocalPeeringGatewayPeeringStatusEnum, 0) + for _, v := range mappingLocalPeeringGatewayPeeringStatusEnum { + values = append(values, v) + } + return values +} + +// GetLocalPeeringGatewayPeeringStatusEnumStringValues Enumerates the set of values in String for LocalPeeringGatewayPeeringStatusEnum +func GetLocalPeeringGatewayPeeringStatusEnumStringValues() []string { + return []string{ + "INVALID", + "NEW", + "PEERED", + "PENDING", + "REVOKED", + } +} + +// GetMappingLocalPeeringGatewayPeeringStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLocalPeeringGatewayPeeringStatusEnum(val string) (LocalPeeringGatewayPeeringStatusEnum, bool) { + enum, ok := mappingLocalPeeringGatewayPeeringStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_token_details.go new file mode 100644 index 0000000000..33327c40a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/local_peering_token_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LocalPeeringTokenDetails An object containing a generated peering token to be given to a peer who then accepts the token as part of the peering handshake process. +type LocalPeeringTokenDetails struct { + + // An opaque token to be shared with a peer. + TokenForPeer *string `mandatory:"true" json:"tokenForPeer"` +} + +func (m LocalPeeringTokenDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LocalPeeringTokenDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_create_details.go new file mode 100644 index 0000000000..8952e967de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_create_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoopBackDrgAttachmentNetworkCreateDetails Specifies the Loopback attachment. +type LoopBackDrgAttachmentNetworkCreateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Ipsec tunnel attachment. + FrontEndAttachmentId []string `mandatory:"true" json:"frontEndAttachmentId"` + + // the oracle ip address of the tunnel headend. + LoopBackIp *string `mandatory:"true" json:"loopBackIp"` +} + +//GetId returns Id +func (m LoopBackDrgAttachmentNetworkCreateDetails) GetId() *string { + return m.Id +} + +func (m LoopBackDrgAttachmentNetworkCreateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoopBackDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m LoopBackDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLoopBackDrgAttachmentNetworkCreateDetails LoopBackDrgAttachmentNetworkCreateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeLoopBackDrgAttachmentNetworkCreateDetails + }{ + "LOOPBACK", + (MarshalTypeLoopBackDrgAttachmentNetworkCreateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_details.go new file mode 100644 index 0000000000..fec416e623 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/loop_back_drg_attachment_network_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoopBackDrgAttachmentNetworkDetails Specifies the Loopback attached to the DRG. +type LoopBackDrgAttachmentNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Ipsec tunnel attachment. + FrontEndAttachmentId []string `mandatory:"false" json:"frontEndAttachmentId"` + + // The IP address for loopback. + LoopBackIp *string `mandatory:"false" json:"loopBackIp"` + + // The MPLS label of the DRG attachment. + MplsLabel *int `mandatory:"false" json:"mplsLabel"` + + // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors + // tagged with the attachment's import route target. + ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` + + // Routes which are exported to the attachment are exported to the route reflectors + // with the route target set to the value of the attachment's export route target. + ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` +} + +//GetId returns Id +func (m LoopBackDrgAttachmentNetworkDetails) GetId() *string { + return m.Id +} + +func (m LoopBackDrgAttachmentNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoopBackDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m LoopBackDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLoopBackDrgAttachmentNetworkDetails LoopBackDrgAttachmentNetworkDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeLoopBackDrgAttachmentNetworkDetails + }{ + "LOOPBACK", + (MarshalTypeLoopBackDrgAttachmentNetworkDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/loopback_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/loopback_drg_attachment_network_update_details.go new file mode 100644 index 0000000000..d816d0a68d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/loopback_drg_attachment_network_update_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoopbackDrgAttachmentNetworkUpdateDetails Specifies the update details for Loopback attachment. +type LoopbackDrgAttachmentNetworkUpdateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Ipsec tunnel attachment. + FrontEndAttachmentId []string `mandatory:"false" json:"frontEndAttachmentId"` +} + +func (m LoopbackDrgAttachmentNetworkUpdateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoopbackDrgAttachmentNetworkUpdateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m LoopbackDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLoopbackDrgAttachmentNetworkUpdateDetails LoopbackDrgAttachmentNetworkUpdateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeLoopbackDrgAttachmentNetworkUpdateDetails + }{ + "LOOPBACK", + (MarshalTypeLoopbackDrgAttachmentNetworkUpdateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_encryption_cipher.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_encryption_cipher.go new file mode 100644 index 0000000000..1611d7b169 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_encryption_cipher.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "strings" +) + +// MacsecEncryptionCipherEnum Enum with underlying type: string +type MacsecEncryptionCipherEnum string + +// Set of constants representing the allowable values for MacsecEncryptionCipherEnum +const ( + MacsecEncryptionCipherAes128Gcm MacsecEncryptionCipherEnum = "AES128_GCM" + MacsecEncryptionCipherAes128GcmXpn MacsecEncryptionCipherEnum = "AES128_GCM_XPN" + MacsecEncryptionCipherAes256Gcm MacsecEncryptionCipherEnum = "AES256_GCM" + MacsecEncryptionCipherAes256GcmXpn MacsecEncryptionCipherEnum = "AES256_GCM_XPN" +) + +var mappingMacsecEncryptionCipherEnum = map[string]MacsecEncryptionCipherEnum{ + "AES128_GCM": MacsecEncryptionCipherAes128Gcm, + "AES128_GCM_XPN": MacsecEncryptionCipherAes128GcmXpn, + "AES256_GCM": MacsecEncryptionCipherAes256Gcm, + "AES256_GCM_XPN": MacsecEncryptionCipherAes256GcmXpn, +} + +var mappingMacsecEncryptionCipherEnumLowerCase = map[string]MacsecEncryptionCipherEnum{ + "aes128_gcm": MacsecEncryptionCipherAes128Gcm, + "aes128_gcm_xpn": MacsecEncryptionCipherAes128GcmXpn, + "aes256_gcm": MacsecEncryptionCipherAes256Gcm, + "aes256_gcm_xpn": MacsecEncryptionCipherAes256GcmXpn, +} + +// GetMacsecEncryptionCipherEnumValues Enumerates the set of values for MacsecEncryptionCipherEnum +func GetMacsecEncryptionCipherEnumValues() []MacsecEncryptionCipherEnum { + values := make([]MacsecEncryptionCipherEnum, 0) + for _, v := range mappingMacsecEncryptionCipherEnum { + values = append(values, v) + } + return values +} + +// GetMacsecEncryptionCipherEnumStringValues Enumerates the set of values in String for MacsecEncryptionCipherEnum +func GetMacsecEncryptionCipherEnumStringValues() []string { + return []string{ + "AES128_GCM", + "AES128_GCM_XPN", + "AES256_GCM", + "AES256_GCM_XPN", + } +} + +// GetMappingMacsecEncryptionCipherEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMacsecEncryptionCipherEnum(val string) (MacsecEncryptionCipherEnum, bool) { + enum, ok := mappingMacsecEncryptionCipherEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_key.go new file mode 100644 index 0000000000..6f77976ed3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_key.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MacsecKey An object defining the Secrets-in-Vault OCIDs representing the MACsec key. +type MacsecKey struct { + + // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity association Key Name (CKN) of this MACsec key. + ConnectivityAssociationNameSecretId *string `mandatory:"true" json:"connectivityAssociationNameSecretId"` + + // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key (CAK) of this MACsec key. + ConnectivityAssociationKeySecretId *string `mandatory:"true" json:"connectivityAssociationKeySecretId"` + + // The secret version of the connectivity association name secret in Vault. + ConnectivityAssociationNameSecretVersion *int64 `mandatory:"false" json:"connectivityAssociationNameSecretVersion"` + + // The secret version of the `connectivityAssociationKey` secret in Vault. + ConnectivityAssociationKeySecretVersion *int64 `mandatory:"false" json:"connectivityAssociationKeySecretVersion"` +} + +func (m MacsecKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MacsecKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_properties.go new file mode 100644 index 0000000000..15e6cab52f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_properties.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MacsecProperties Properties used for MACsec (if capable). +type MacsecProperties struct { + + // Indicates whether or not MACsec is enabled. + State MacsecStateEnum `mandatory:"true" json:"state"` + + PrimaryKey *MacsecKey `mandatory:"false" json:"primaryKey"` + + // Type of encryption cipher suite to use for the MACsec connection. + EncryptionCipher MacsecEncryptionCipherEnum `mandatory:"false" json:"encryptionCipher,omitempty"` +} + +func (m MacsecProperties) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MacsecProperties) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMacsecStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetMacsecStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingMacsecEncryptionCipherEnum(string(m.EncryptionCipher)); !ok && m.EncryptionCipher != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionCipher: %s. Supported values are: %s.", m.EncryptionCipher, strings.Join(GetMacsecEncryptionCipherEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_state.go new file mode 100644 index 0000000000..ec887b444b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/macsec_state.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "strings" +) + +// MacsecStateEnum Enum with underlying type: string +type MacsecStateEnum string + +// Set of constants representing the allowable values for MacsecStateEnum +const ( + MacsecStateEnabled MacsecStateEnum = "ENABLED" + MacsecStateDisabled MacsecStateEnum = "DISABLED" +) + +var mappingMacsecStateEnum = map[string]MacsecStateEnum{ + "ENABLED": MacsecStateEnabled, + "DISABLED": MacsecStateDisabled, +} + +var mappingMacsecStateEnumLowerCase = map[string]MacsecStateEnum{ + "enabled": MacsecStateEnabled, + "disabled": MacsecStateDisabled, +} + +// GetMacsecStateEnumValues Enumerates the set of values for MacsecStateEnum +func GetMacsecStateEnumValues() []MacsecStateEnum { + values := make([]MacsecStateEnum, 0) + for _, v := range mappingMacsecStateEnum { + values = append(values, v) + } + return values +} + +// GetMacsecStateEnumStringValues Enumerates the set of values in String for MacsecStateEnum +func GetMacsecStateEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingMacsecStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMacsecStateEnum(val string) (MacsecStateEnum, bool) { + enum, ok := mappingMacsecStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_entry.go new file mode 100644 index 0000000000..cd7d3ee0b6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_entry.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MeasuredBootEntry One Trusted Platform Module (TPM) Platform Configuration Register (PCR) entry. The entry might be measured during boot, +// or specified in a policy. +type MeasuredBootEntry struct { + + // The index of the policy. + PcrIndex *string `mandatory:"false" json:"pcrIndex"` + + // The hashed PCR value. + Value *string `mandatory:"false" json:"value"` + + // The type of algorithm used to calculate the hash. + HashAlgorithm *string `mandatory:"false" json:"hashAlgorithm"` +} + +func (m MeasuredBootEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MeasuredBootEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report.go new file mode 100644 index 0000000000..78d5a6b407 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MeasuredBootReport The measured boot report for a shielded instance. +type MeasuredBootReport struct { + + // Whether the verification succeeded, and the new values match the expected values. + IsPolicyVerificationSuccessful *bool `mandatory:"true" json:"isPolicyVerificationSuccessful"` + + Measurements *MeasuredBootReportMeasurements `mandatory:"false" json:"measurements"` +} + +func (m MeasuredBootReport) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MeasuredBootReport) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report_measurements.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report_measurements.go new file mode 100644 index 0000000000..446b9429dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/measured_boot_report_measurements.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MeasuredBootReportMeasurements A list of Trusted Platform Module (TPM) Platform Configuration Register (PCR) entries. +type MeasuredBootReportMeasurements struct { + + // The list of expected PCR entries to use during verification. + Policy []MeasuredBootEntry `mandatory:"false" json:"policy"` + + // The list of actual PCR entries measured during boot. + Actual []MeasuredBootEntry `mandatory:"false" json:"actual"` +} + +func (m MeasuredBootReportMeasurements) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MeasuredBootReportMeasurements) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/member_replica.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/member_replica.go new file mode 100644 index 0000000000..30740d4e9a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/member_replica.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MemberReplica OCIDs for the volume replicas in this volume group replica. +type MemberReplica struct { + + // The volume replica ID. + VolumeReplicaId *string `mandatory:"true" json:"volumeReplicaId"` + + // Membership state of the volume replica in relation to the volume group replica. + MembershipState MemberReplicaMembershipStateEnum `mandatory:"false" json:"membershipState,omitempty"` +} + +func (m MemberReplica) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MemberReplica) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingMemberReplicaMembershipStateEnum(string(m.MembershipState)); !ok && m.MembershipState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MembershipState: %s. Supported values are: %s.", m.MembershipState, strings.Join(GetMemberReplicaMembershipStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MemberReplicaMembershipStateEnum Enum with underlying type: string +type MemberReplicaMembershipStateEnum string + +// Set of constants representing the allowable values for MemberReplicaMembershipStateEnum +const ( + MemberReplicaMembershipStateAddPending MemberReplicaMembershipStateEnum = "ADD_PENDING" + MemberReplicaMembershipStateStable MemberReplicaMembershipStateEnum = "STABLE" + MemberReplicaMembershipStateRemovePending MemberReplicaMembershipStateEnum = "REMOVE_PENDING" +) + +var mappingMemberReplicaMembershipStateEnum = map[string]MemberReplicaMembershipStateEnum{ + "ADD_PENDING": MemberReplicaMembershipStateAddPending, + "STABLE": MemberReplicaMembershipStateStable, + "REMOVE_PENDING": MemberReplicaMembershipStateRemovePending, +} + +var mappingMemberReplicaMembershipStateEnumLowerCase = map[string]MemberReplicaMembershipStateEnum{ + "add_pending": MemberReplicaMembershipStateAddPending, + "stable": MemberReplicaMembershipStateStable, + "remove_pending": MemberReplicaMembershipStateRemovePending, +} + +// GetMemberReplicaMembershipStateEnumValues Enumerates the set of values for MemberReplicaMembershipStateEnum +func GetMemberReplicaMembershipStateEnumValues() []MemberReplicaMembershipStateEnum { + values := make([]MemberReplicaMembershipStateEnum, 0) + for _, v := range mappingMemberReplicaMembershipStateEnum { + values = append(values, v) + } + return values +} + +// GetMemberReplicaMembershipStateEnumStringValues Enumerates the set of values in String for MemberReplicaMembershipStateEnum +func GetMemberReplicaMembershipStateEnumStringValues() []string { + return []string{ + "ADD_PENDING", + "STABLE", + "REMOVE_PENDING", + } +} + +// GetMappingMemberReplicaMembershipStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMemberReplicaMembershipStateEnum(val string) (MemberReplicaMembershipStateEnum, bool) { + enum, ok := mappingMemberReplicaMembershipStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_details.go new file mode 100644 index 0000000000..9b2f3caa63 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_details.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MigrateDrgDetails The request to update a `DrgAttachment` and migrate the `Drg` to the destination DRG type. +type MigrateDrgDetails struct { + + // Type of the `Drg` to be migrated to. + DestinationDrgType MigrateDrgDetailsDestinationDrgTypeEnum `mandatory:"true" json:"destinationDrgType"` + + // The DRG attachment's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + DrgAttachmentId *string `mandatory:"false" json:"drgAttachmentId"` + + // NextHop target's MPLS label. + MplsLabel *string `mandatory:"false" json:"mplsLabel"` + + // The string in the form ASN:mplsLabel. + RouteTarget *string `mandatory:"false" json:"routeTarget"` +} + +func (m MigrateDrgDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MigrateDrgDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMigrateDrgDetailsDestinationDrgTypeEnum(string(m.DestinationDrgType)); !ok && m.DestinationDrgType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationDrgType: %s. Supported values are: %s.", m.DestinationDrgType, strings.Join(GetMigrateDrgDetailsDestinationDrgTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MigrateDrgDetailsDestinationDrgTypeEnum Enum with underlying type: string +type MigrateDrgDetailsDestinationDrgTypeEnum string + +// Set of constants representing the allowable values for MigrateDrgDetailsDestinationDrgTypeEnum +const ( + MigrateDrgDetailsDestinationDrgTypeClassical MigrateDrgDetailsDestinationDrgTypeEnum = "DRG_CLASSICAL" + MigrateDrgDetailsDestinationDrgTypeTransitHub MigrateDrgDetailsDestinationDrgTypeEnum = "DRG_TRANSIT_HUB" +) + +var mappingMigrateDrgDetailsDestinationDrgTypeEnum = map[string]MigrateDrgDetailsDestinationDrgTypeEnum{ + "DRG_CLASSICAL": MigrateDrgDetailsDestinationDrgTypeClassical, + "DRG_TRANSIT_HUB": MigrateDrgDetailsDestinationDrgTypeTransitHub, +} + +var mappingMigrateDrgDetailsDestinationDrgTypeEnumLowerCase = map[string]MigrateDrgDetailsDestinationDrgTypeEnum{ + "drg_classical": MigrateDrgDetailsDestinationDrgTypeClassical, + "drg_transit_hub": MigrateDrgDetailsDestinationDrgTypeTransitHub, +} + +// GetMigrateDrgDetailsDestinationDrgTypeEnumValues Enumerates the set of values for MigrateDrgDetailsDestinationDrgTypeEnum +func GetMigrateDrgDetailsDestinationDrgTypeEnumValues() []MigrateDrgDetailsDestinationDrgTypeEnum { + values := make([]MigrateDrgDetailsDestinationDrgTypeEnum, 0) + for _, v := range mappingMigrateDrgDetailsDestinationDrgTypeEnum { + values = append(values, v) + } + return values +} + +// GetMigrateDrgDetailsDestinationDrgTypeEnumStringValues Enumerates the set of values in String for MigrateDrgDetailsDestinationDrgTypeEnum +func GetMigrateDrgDetailsDestinationDrgTypeEnumStringValues() []string { + return []string{ + "DRG_CLASSICAL", + "DRG_TRANSIT_HUB", + } +} + +// GetMappingMigrateDrgDetailsDestinationDrgTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMigrateDrgDetailsDestinationDrgTypeEnum(val string) (MigrateDrgDetailsDestinationDrgTypeEnum, bool) { + enum, ok := mappingMigrateDrgDetailsDestinationDrgTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_request_response.go index e30ae34dcd..65bdc251cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // MigrateDrgRequest wrapper for the MigrateDrg operation @@ -39,6 +41,10 @@ func (request MigrateDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request MigrateDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request MigrateDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request MigrateDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MigrateDrgResponse wrapper for the MigrateDrg operation type MigrateDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_i_p_sec_connection_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_i_p_sec_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_i_p_sec_connection_request_response.go index 344d407d4c..d75df89d83 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/migrate_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/migrate_i_p_sec_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // MigrateIPSecConnectionRequest wrapper for the MigrateIPSecConnection operation type MigrateIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique identifier for the request. @@ -38,6 +40,10 @@ func (request MigrateIPSecConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request MigrateIPSecConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request MigrateIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request MigrateIPSecConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MigrateIPSecConnectionResponse wrapper for the MigrateIPSecConnection operation type MigrateIPSecConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/migration_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/migration_info.go new file mode 100644 index 0000000000..2735a63ea0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/migration_info.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MigrationInfo Optional info that is present if a vnic is getting migrated as part of instance live migration +type MigrationInfo struct { + + // Live migration session ID + MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` + + SourceSmartNicVnicAttachmentInfo *SmartNicVnicAttachmentInfo `mandatory:"true" json:"sourceSmartNicVnicAttachmentInfo"` + + DestinationSmartNicVnicAttachmentInfo *SmartNicVnicAttachmentInfo `mandatory:"true" json:"destinationSmartNicVnicAttachmentInfo"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on source hypervisor that will be used for hypervisor - VCN DP communication. + SourceHypervisorVnicId *string `mandatory:"false" json:"sourceHypervisorVnicId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC on destination hypervisor that will be used for hypervisor - VCN DP communication. + DestinationHypervisorVnicId *string `mandatory:"false" json:"destinationHypervisorVnicId"` + + // Indicates if VNIC's ingress traffic is routed to destination smart NIC + IsTrafficRoutedToDestination *bool `mandatory:"false" json:"isTrafficRoutedToDestination"` +} + +func (m MigrationInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MigrationInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_details.go new file mode 100644 index 0000000000..c0661f6f39 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_details.go @@ -0,0 +1,114 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ModifyReverseConnectionsDetails Details for modifying reverse connections configuration for the specified private endpoint. +type ModifyReverseConnectionsDetails struct { + + // List of DNS zones to exclude from the default DNS resolution context. + ExcludedDnsZones []string `mandatory:"false" json:"excludedDnsZones"` + + // A list of the OCIDs of the network security groups that the reverse connection's VNIC belongs to. + // For more information about NSGs, see + // NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Number of customer endpoints that the service provider expects to establish connections to using this RCE. The default is 0. + // When non-zero value is specified, reverse connection configuration will be allocated with a list of CIDRs, from + // which NAT IP addresses will be allocated. These list of CIDRs will not be shared by other reverse + // connection enabled private endpoints. + // When zero is specified, reverse connection configuration will get NAT IP addresses from common pool of CIDRs, + // which will be shared with other reverse connection enabled private endpoints. + // If the private endpoint was enabled with reverse connection with 0 already, the field is not updatable. + // The size may not be updated with smaller number than previously specified value, but may be increased. + CustomerEndpointsSize *int `mandatory:"false" json:"customerEndpointsSize"` + + // Layer 4 transport protocol to be used when resolving DNS queries within the default DNS resolution context. + DefaultDnsContextTransport ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum `mandatory:"false" json:"defaultDnsContextTransport,omitempty"` + + // List of CIDRs that this reverse connection configuration will allocate the NAT IP addresses from. + // CIDRs on this list should not be shared by other reverse connection enabled private endpoints. + // When not specified, if the customerEndpointSize is non null, reverse connection configuration will get + // NAT IP addresses from the dedicated pool of CIDRs, else will get specified from the common pool of CIDRs. + // This field cannot be specified if the customerEndpointsSize field is non null and vice versa. + // Additional Cidrs can be specified, however the existing CIDRs cannot be modified or removed. + ReverseConnectionNatIpCidrs []string `mandatory:"false" json:"reverseConnectionNatIpCidrs"` +} + +func (m ModifyReverseConnectionsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ModifyReverseConnectionsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum(string(m.DefaultDnsContextTransport)); !ok && m.DefaultDnsContextTransport != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DefaultDnsContextTransport: %s. Supported values are: %s.", m.DefaultDnsContextTransport, strings.Join(GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum Enum with underlying type: string +type ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum string + +// Set of constants representing the allowable values for ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum +const ( + ModifyReverseConnectionsDetailsDefaultDnsContextTransportTcp ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum = "TCP" + ModifyReverseConnectionsDetailsDefaultDnsContextTransportUdp ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum = "UDP" +) + +var mappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum = map[string]ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum{ + "TCP": ModifyReverseConnectionsDetailsDefaultDnsContextTransportTcp, + "UDP": ModifyReverseConnectionsDetailsDefaultDnsContextTransportUdp, +} + +var mappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumLowerCase = map[string]ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum{ + "tcp": ModifyReverseConnectionsDetailsDefaultDnsContextTransportTcp, + "udp": ModifyReverseConnectionsDetailsDefaultDnsContextTransportUdp, +} + +// GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumValues Enumerates the set of values for ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum +func GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumValues() []ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum { + values := make([]ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum, 0) + for _, v := range mappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum { + values = append(values, v) + } + return values +} + +// GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumStringValues Enumerates the set of values in String for ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum +func GetModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumStringValues() []string { + return []string{ + "TCP", + "UDP", + } +} + +// GetMappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum(val string) (ModifyReverseConnectionsDetailsDefaultDnsContextTransportEnum, bool) { + enum, ok := mappingModifyReverseConnectionsDetailsDefaultDnsContextTransportEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_request_response.go index 1a218c9ea0..bd45e054f4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_reverse_connections_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_reverse_connections_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ModifyReverseConnectionsRequest wrapper for the ModifyReverseConnections operation @@ -39,6 +41,10 @@ func (request ModifyReverseConnectionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ModifyReverseConnectionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request ModifyReverseConnectionsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ModifyReverseConnectionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ModifyReverseConnectionsResponse wrapper for the ModifyReverseConnections operation type ModifyReverseConnectionsResponse struct { @@ -70,7 +87,8 @@ type ModifyReverseConnectionsResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_details.go new file mode 100644 index 0000000000..41a0d5609f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ModifyVcnCidrDetails Details for updating a CIDR block. +type ModifyVcnCidrDetails struct { + + // The CIDR IP address to update. + OriginalCidrBlock *string `mandatory:"true" json:"originalCidrBlock"` + + // The new CIDR IP address. + NewCidrBlock *string `mandatory:"true" json:"newCidrBlock"` +} + +func (m ModifyVcnCidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ModifyVcnCidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go index 17919c16cf..afe3016faf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/modify_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/modify_vcn_cidr_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ModifyVcnCidrRequest wrapper for the ModifyVcnCidr operation @@ -46,6 +48,10 @@ func (request ModifyVcnCidrRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ModifyVcnCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ModifyVcnCidrRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ModifyVcnCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ModifyVcnCidrResponse wrapper for the ModifyVcnCidr operation type ModifyVcnCidrResponse struct { @@ -71,7 +88,8 @@ type ModifyVcnCidrResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/multipath_device.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/multipath_device.go new file mode 100644 index 0000000000..a0d08d38dd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/multipath_device.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MultipathDevice Secondary multipath device, it uses the charUsername and chapSecret from primary volume attachment +type MultipathDevice struct { + + // The volume's iSCSI IP address. + // Example: `169.254.2.2` + Ipv4 *string `mandatory:"true" json:"ipv4"` + + // The target volume's iSCSI Qualified Name in the format defined + // by RFC 3720 (https://tools.ietf.org/html/rfc3720#page-32). + // Example: `iqn.2015-12.com.oracleiaas:40b7ee03-883f-46c6-a951-63d2841d2195` + Iqn *string `mandatory:"true" json:"iqn"` + + // The volume's iSCSI port, usually port 860 or 3260. + // Example: `3260` + Port *int `mandatory:"false" json:"port"` +} + +func (m MultipathDevice) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MultipathDevice) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/nat_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/nat_gateway.go new file mode 100644 index 0000000000..b49ff1867a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/nat_gateway.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NatGateway A NAT (Network Address Translation) gateway, which represents a router that lets instances +// without public IPs contact the public internet without exposing the instance to inbound +// internet traffic. For more information, see +// NAT Gateway (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/NATgateway.htm). +// To use any of the API operations, you must be authorized in an +// IAM policy. If you are not authorized, talk to an +// administrator. If you are an administrator who needs to write +// policies to give users access, see Getting Started with +// Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type NatGateway struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains + // the NAT gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the + // NAT gateway. + Id *string `mandatory:"true" json:"id"` + + // Whether the NAT gateway blocks traffic through it. The default is `false`. + // Example: `true` + BlockTraffic *bool `mandatory:"true" json:"blockTraffic"` + + // The NAT gateway's current state. + LifecycleState NatGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The IP address associated with the NAT gateway. + NatIp *string `mandatory:"true" json:"natIp"` + + // The date and time the NAT gateway was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the NAT gateway + // belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP address associated with the NAT gateway. + PublicIpId *string `mandatory:"false" json:"publicIpId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table used by the NAT gateway. + // If you don't specify a route table here, the NAT gateway is created without an associated route + // table. The Networking service does NOT automatically associate the attached VCN's default route table + // with the NAT gateway. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m NatGateway) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NatGateway) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNatGatewayLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetNatGatewayLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NatGatewayLifecycleStateEnum Enum with underlying type: string +type NatGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for NatGatewayLifecycleStateEnum +const ( + NatGatewayLifecycleStateProvisioning NatGatewayLifecycleStateEnum = "PROVISIONING" + NatGatewayLifecycleStateAvailable NatGatewayLifecycleStateEnum = "AVAILABLE" + NatGatewayLifecycleStateTerminating NatGatewayLifecycleStateEnum = "TERMINATING" + NatGatewayLifecycleStateTerminated NatGatewayLifecycleStateEnum = "TERMINATED" +) + +var mappingNatGatewayLifecycleStateEnum = map[string]NatGatewayLifecycleStateEnum{ + "PROVISIONING": NatGatewayLifecycleStateProvisioning, + "AVAILABLE": NatGatewayLifecycleStateAvailable, + "TERMINATING": NatGatewayLifecycleStateTerminating, + "TERMINATED": NatGatewayLifecycleStateTerminated, +} + +var mappingNatGatewayLifecycleStateEnumLowerCase = map[string]NatGatewayLifecycleStateEnum{ + "provisioning": NatGatewayLifecycleStateProvisioning, + "available": NatGatewayLifecycleStateAvailable, + "terminating": NatGatewayLifecycleStateTerminating, + "terminated": NatGatewayLifecycleStateTerminated, +} + +// GetNatGatewayLifecycleStateEnumValues Enumerates the set of values for NatGatewayLifecycleStateEnum +func GetNatGatewayLifecycleStateEnumValues() []NatGatewayLifecycleStateEnum { + values := make([]NatGatewayLifecycleStateEnum, 0) + for _, v := range mappingNatGatewayLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetNatGatewayLifecycleStateEnumStringValues Enumerates the set of values in String for NatGatewayLifecycleStateEnum +func GetNatGatewayLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingNatGatewayLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNatGatewayLifecycleStateEnum(val string) (NatGatewayLifecycleStateEnum, bool) { + enum, ok := mappingNatGatewayLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group.go new file mode 100644 index 0000000000..390ea88fe1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkSecurityGroup A *network security group* (NSG) provides virtual firewall rules for a specific set of +// Vnic in a VCN. Compare NSGs with SecurityList, +// which provide virtual firewall rules to all the VNICs in a *subnet*. +// A network security group consists of two items: +// * The set of Vnic that all have the same security rule needs (for +// example, a group of Compute instances all running the same application) +// * A set of NSG SecurityRule that apply to the VNICs in the group +// After creating an NSG, you can add VNICs and security rules to it. For example, when you create +// an instance, you can specify one or more NSGs to add the instance to (see +// CreateVnicDetails). Or you can add an existing +// instance to an NSG with UpdateVnic. +// To add security rules to an NSG, see +// AddNetworkSecurityGroupSecurityRules. +// To list the VNICs in an NSG, see +// ListNetworkSecurityGroupVnics. +// To list the security rules in an NSG, see +// ListNetworkSecurityGroupSecurityRules. +// For more information about network security groups, see +// Network Security Groups (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/networksecuritygroups.htm). +// **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, +// Linux iptables, Windows firewall). If there are issues with some type of access to an instance, +// make sure all of the following are set correctly: +// * Any security rules in any NSGs the instance's VNIC belongs to +// * Any SecurityList associated with the instance's subnet +// * The instance's OS firewall rules +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type NetworkSecurityGroup struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment the network security group is in. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group. + Id *string `mandatory:"true" json:"id"` + + // The network security group's current state. + LifecycleState NetworkSecurityGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the network security group was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network security group's VCN. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m NetworkSecurityGroup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkSecurityGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNetworkSecurityGroupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetNetworkSecurityGroupLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NetworkSecurityGroupLifecycleStateEnum Enum with underlying type: string +type NetworkSecurityGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for NetworkSecurityGroupLifecycleStateEnum +const ( + NetworkSecurityGroupLifecycleStateProvisioning NetworkSecurityGroupLifecycleStateEnum = "PROVISIONING" + NetworkSecurityGroupLifecycleStateAvailable NetworkSecurityGroupLifecycleStateEnum = "AVAILABLE" + NetworkSecurityGroupLifecycleStateTerminating NetworkSecurityGroupLifecycleStateEnum = "TERMINATING" + NetworkSecurityGroupLifecycleStateTerminated NetworkSecurityGroupLifecycleStateEnum = "TERMINATED" +) + +var mappingNetworkSecurityGroupLifecycleStateEnum = map[string]NetworkSecurityGroupLifecycleStateEnum{ + "PROVISIONING": NetworkSecurityGroupLifecycleStateProvisioning, + "AVAILABLE": NetworkSecurityGroupLifecycleStateAvailable, + "TERMINATING": NetworkSecurityGroupLifecycleStateTerminating, + "TERMINATED": NetworkSecurityGroupLifecycleStateTerminated, +} + +var mappingNetworkSecurityGroupLifecycleStateEnumLowerCase = map[string]NetworkSecurityGroupLifecycleStateEnum{ + "provisioning": NetworkSecurityGroupLifecycleStateProvisioning, + "available": NetworkSecurityGroupLifecycleStateAvailable, + "terminating": NetworkSecurityGroupLifecycleStateTerminating, + "terminated": NetworkSecurityGroupLifecycleStateTerminated, +} + +// GetNetworkSecurityGroupLifecycleStateEnumValues Enumerates the set of values for NetworkSecurityGroupLifecycleStateEnum +func GetNetworkSecurityGroupLifecycleStateEnumValues() []NetworkSecurityGroupLifecycleStateEnum { + values := make([]NetworkSecurityGroupLifecycleStateEnum, 0) + for _, v := range mappingNetworkSecurityGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetNetworkSecurityGroupLifecycleStateEnumStringValues Enumerates the set of values in String for NetworkSecurityGroupLifecycleStateEnum +func GetNetworkSecurityGroupLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingNetworkSecurityGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkSecurityGroupLifecycleStateEnum(val string) (NetworkSecurityGroupLifecycleStateEnum, bool) { + enum, ok := mappingNetworkSecurityGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group_vnic.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group_vnic.go new file mode 100644 index 0000000000..7d780a1ad9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/network_security_group_vnic.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkSecurityGroupVnic Information about a VNIC that belongs to a network security group. +type NetworkSecurityGroupVnic struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. + VnicId *string `mandatory:"true" json:"vnicId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the parent resource that the VNIC + // is attached to (for example, a Compute instance). + ResourceId *string `mandatory:"false" json:"resourceId"` + + // The date and time the VNIC was added to the network security group, in the format + // defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeAssociated *common.SDKTime `mandatory:"false" json:"timeAssociated"` +} + +func (m NetworkSecurityGroupVnic) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkSecurityGroupVnic) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/networking_topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/networking_topology.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go index c85e7fe7a5..df58e10302 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/networking_topology.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/networking_topology.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NetworkingTopology Defines the representation of a virtual network topology for a region. @@ -50,6 +52,18 @@ func (m NetworkingTopology) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkingTopology) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m NetworkingTopology) MarshalJSON() (buff []byte, e error) { type MarshalTypeNetworkingTopology NetworkingTopology diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/paravirtualized_volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/paravirtualized_volume_attachment.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go index 2757be9359..1dc9266dc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/paravirtualized_volume_attachment.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/paravirtualized_volume_attachment.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ParavirtualizedVolumeAttachment A paravirtualized volume attachment. @@ -60,13 +62,13 @@ type ParavirtualizedVolumeAttachment struct { // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` - // Whether the attachment is multipath or not. + // Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment. IsMultipath *bool `mandatory:"false" json:"isMultipath"` // The current state of the volume attachment. LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` - // The iscsi login state of the volume attachment. For a multipath volume attachment, + // The iscsi login state of the volume attachment. For a Iscsi volume attachment, // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` } @@ -145,6 +147,24 @@ func (m ParavirtualizedVolumeAttachment) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ParavirtualizedVolumeAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVolumeAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeAttachmentLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeAttachmentIscsiLoginStateEnum(string(m.IscsiLoginState)); !ok && m.IscsiLoginState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IscsiLoginState: %s. Supported values are: %s.", m.IscsiLoginState, strings.Join(GetVolumeAttachmentIscsiLoginStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m ParavirtualizedVolumeAttachment) MarshalJSON() (buff []byte, e error) { type MarshalTypeParavirtualizedVolumeAttachment ParavirtualizedVolumeAttachment diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/peer_region_for_remote_peering.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/peer_region_for_remote_peering.go new file mode 100644 index 0000000000..60bbdb6053 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/peer_region_for_remote_peering.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PeerRegionForRemotePeering Details about a region that supports remote VCN peering. For more +// information, see VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). +type PeerRegionForRemotePeering struct { + + // The region's name. + // Example: `us-phoenix-1` + Name *string `mandatory:"true" json:"name"` +} + +func (m PeerRegionForRemotePeering) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PeerRegionForRemotePeering) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/percentage_of_cores_enabled_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/percentage_of_cores_enabled_options.go new file mode 100644 index 0000000000..431e5d8d7c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/percentage_of_cores_enabled_options.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PercentageOfCoresEnabledOptions Configuration options for the percentage of cores enabled. +type PercentageOfCoresEnabledOptions struct { + + // The minimum allowed percentage of cores enabled. + Min *int `mandatory:"false" json:"min"` + + // The maximum allowed percentage of cores enabled. + Max *int `mandatory:"false" json:"max"` + + // The default percentage of cores enabled. + DefaultValue *int `mandatory:"false" json:"defaultValue"` +} + +func (m PercentageOfCoresEnabledOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PercentageOfCoresEnabledOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/performance_based_autotune_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/performance_based_autotune_policy.go new file mode 100644 index 0000000000..4c6e3d5ec6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/performance_based_autotune_policy.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PerformanceBasedAutotunePolicy If a volume is being throttled at the current setting for a certain period of time, auto-tune will +// gradually increase the volume’s performance limited up to Maximum VPUs/GB. After the volume has been idle at the +// current setting for a certain period of time, auto-tune will gradually decrease the volume’s performance limited +// down to Default/Minimum VPUs/GB. +type PerformanceBasedAutotunePolicy struct { + + // This will be the maximum VPUs/GB performance level that the volume will be auto-tuned + // temporarily based on performance monitoring. + MaxVpusPerGB *int64 `mandatory:"true" json:"maxVpusPerGB"` +} + +func (m PerformanceBasedAutotunePolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PerformanceBasedAutotunePolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m PerformanceBasedAutotunePolicy) MarshalJSON() (buff []byte, e error) { + type MarshalTypePerformanceBasedAutotunePolicy PerformanceBasedAutotunePolicy + s := struct { + DiscriminatorParam string `json:"autotuneType"` + MarshalTypePerformanceBasedAutotunePolicy + }{ + "PERFORMANCE_BASED", + (MarshalTypePerformanceBasedAutotunePolicy)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/phase_one_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/phase_one_config_details.go new file mode 100644 index 0000000000..f581c2055d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/phase_one_config_details.go @@ -0,0 +1,214 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PhaseOneConfigDetails Configuration details for IKE phase one (ISAKMP) configuration parameters. +type PhaseOneConfigDetails struct { + + // Indicates whether custom configuration is enabled for phase one options. + IsCustomPhaseOneConfig *bool `mandatory:"false" json:"isCustomPhaseOneConfig"` + + // The custom authentication algorithm proposed during phase one tunnel negotiation. + AuthenticationAlgorithm PhaseOneConfigDetailsAuthenticationAlgorithmEnum `mandatory:"false" json:"authenticationAlgorithm,omitempty"` + + // The custom encryption algorithm proposed during phase one tunnel negotiation. + EncryptionAlgorithm PhaseOneConfigDetailsEncryptionAlgorithmEnum `mandatory:"false" json:"encryptionAlgorithm,omitempty"` + + // The custom Diffie-Hellman group proposed during phase one tunnel negotiation. + DiffieHelmanGroup PhaseOneConfigDetailsDiffieHelmanGroupEnum `mandatory:"false" json:"diffieHelmanGroup,omitempty"` + + // Internet key association (IKE) session key lifetime in seconds for IPSec phase one. The default is 28800 which is equivalent to 8 hours. + LifetimeInSeconds *int `mandatory:"false" json:"lifetimeInSeconds"` +} + +func (m PhaseOneConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PhaseOneConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPhaseOneConfigDetailsAuthenticationAlgorithmEnum(string(m.AuthenticationAlgorithm)); !ok && m.AuthenticationAlgorithm != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthenticationAlgorithm: %s. Supported values are: %s.", m.AuthenticationAlgorithm, strings.Join(GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumStringValues(), ","))) + } + if _, ok := GetMappingPhaseOneConfigDetailsEncryptionAlgorithmEnum(string(m.EncryptionAlgorithm)); !ok && m.EncryptionAlgorithm != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionAlgorithm: %s. Supported values are: %s.", m.EncryptionAlgorithm, strings.Join(GetPhaseOneConfigDetailsEncryptionAlgorithmEnumStringValues(), ","))) + } + if _, ok := GetMappingPhaseOneConfigDetailsDiffieHelmanGroupEnum(string(m.DiffieHelmanGroup)); !ok && m.DiffieHelmanGroup != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DiffieHelmanGroup: %s. Supported values are: %s.", m.DiffieHelmanGroup, strings.Join(GetPhaseOneConfigDetailsDiffieHelmanGroupEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PhaseOneConfigDetailsAuthenticationAlgorithmEnum Enum with underlying type: string +type PhaseOneConfigDetailsAuthenticationAlgorithmEnum string + +// Set of constants representing the allowable values for PhaseOneConfigDetailsAuthenticationAlgorithmEnum +const ( + PhaseOneConfigDetailsAuthenticationAlgorithmSha2384 PhaseOneConfigDetailsAuthenticationAlgorithmEnum = "SHA2_384" + PhaseOneConfigDetailsAuthenticationAlgorithmSha2256 PhaseOneConfigDetailsAuthenticationAlgorithmEnum = "SHA2_256" + PhaseOneConfigDetailsAuthenticationAlgorithmSha196 PhaseOneConfigDetailsAuthenticationAlgorithmEnum = "SHA1_96" +) + +var mappingPhaseOneConfigDetailsAuthenticationAlgorithmEnum = map[string]PhaseOneConfigDetailsAuthenticationAlgorithmEnum{ + "SHA2_384": PhaseOneConfigDetailsAuthenticationAlgorithmSha2384, + "SHA2_256": PhaseOneConfigDetailsAuthenticationAlgorithmSha2256, + "SHA1_96": PhaseOneConfigDetailsAuthenticationAlgorithmSha196, +} + +var mappingPhaseOneConfigDetailsAuthenticationAlgorithmEnumLowerCase = map[string]PhaseOneConfigDetailsAuthenticationAlgorithmEnum{ + "sha2_384": PhaseOneConfigDetailsAuthenticationAlgorithmSha2384, + "sha2_256": PhaseOneConfigDetailsAuthenticationAlgorithmSha2256, + "sha1_96": PhaseOneConfigDetailsAuthenticationAlgorithmSha196, +} + +// GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumValues Enumerates the set of values for PhaseOneConfigDetailsAuthenticationAlgorithmEnum +func GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumValues() []PhaseOneConfigDetailsAuthenticationAlgorithmEnum { + values := make([]PhaseOneConfigDetailsAuthenticationAlgorithmEnum, 0) + for _, v := range mappingPhaseOneConfigDetailsAuthenticationAlgorithmEnum { + values = append(values, v) + } + return values +} + +// GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumStringValues Enumerates the set of values in String for PhaseOneConfigDetailsAuthenticationAlgorithmEnum +func GetPhaseOneConfigDetailsAuthenticationAlgorithmEnumStringValues() []string { + return []string{ + "SHA2_384", + "SHA2_256", + "SHA1_96", + } +} + +// GetMappingPhaseOneConfigDetailsAuthenticationAlgorithmEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPhaseOneConfigDetailsAuthenticationAlgorithmEnum(val string) (PhaseOneConfigDetailsAuthenticationAlgorithmEnum, bool) { + enum, ok := mappingPhaseOneConfigDetailsAuthenticationAlgorithmEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PhaseOneConfigDetailsEncryptionAlgorithmEnum Enum with underlying type: string +type PhaseOneConfigDetailsEncryptionAlgorithmEnum string + +// Set of constants representing the allowable values for PhaseOneConfigDetailsEncryptionAlgorithmEnum +const ( + PhaseOneConfigDetailsEncryptionAlgorithm256Cbc PhaseOneConfigDetailsEncryptionAlgorithmEnum = "AES_256_CBC" + PhaseOneConfigDetailsEncryptionAlgorithm192Cbc PhaseOneConfigDetailsEncryptionAlgorithmEnum = "AES_192_CBC" + PhaseOneConfigDetailsEncryptionAlgorithm128Cbc PhaseOneConfigDetailsEncryptionAlgorithmEnum = "AES_128_CBC" +) + +var mappingPhaseOneConfigDetailsEncryptionAlgorithmEnum = map[string]PhaseOneConfigDetailsEncryptionAlgorithmEnum{ + "AES_256_CBC": PhaseOneConfigDetailsEncryptionAlgorithm256Cbc, + "AES_192_CBC": PhaseOneConfigDetailsEncryptionAlgorithm192Cbc, + "AES_128_CBC": PhaseOneConfigDetailsEncryptionAlgorithm128Cbc, +} + +var mappingPhaseOneConfigDetailsEncryptionAlgorithmEnumLowerCase = map[string]PhaseOneConfigDetailsEncryptionAlgorithmEnum{ + "aes_256_cbc": PhaseOneConfigDetailsEncryptionAlgorithm256Cbc, + "aes_192_cbc": PhaseOneConfigDetailsEncryptionAlgorithm192Cbc, + "aes_128_cbc": PhaseOneConfigDetailsEncryptionAlgorithm128Cbc, +} + +// GetPhaseOneConfigDetailsEncryptionAlgorithmEnumValues Enumerates the set of values for PhaseOneConfigDetailsEncryptionAlgorithmEnum +func GetPhaseOneConfigDetailsEncryptionAlgorithmEnumValues() []PhaseOneConfigDetailsEncryptionAlgorithmEnum { + values := make([]PhaseOneConfigDetailsEncryptionAlgorithmEnum, 0) + for _, v := range mappingPhaseOneConfigDetailsEncryptionAlgorithmEnum { + values = append(values, v) + } + return values +} + +// GetPhaseOneConfigDetailsEncryptionAlgorithmEnumStringValues Enumerates the set of values in String for PhaseOneConfigDetailsEncryptionAlgorithmEnum +func GetPhaseOneConfigDetailsEncryptionAlgorithmEnumStringValues() []string { + return []string{ + "AES_256_CBC", + "AES_192_CBC", + "AES_128_CBC", + } +} + +// GetMappingPhaseOneConfigDetailsEncryptionAlgorithmEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPhaseOneConfigDetailsEncryptionAlgorithmEnum(val string) (PhaseOneConfigDetailsEncryptionAlgorithmEnum, bool) { + enum, ok := mappingPhaseOneConfigDetailsEncryptionAlgorithmEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PhaseOneConfigDetailsDiffieHelmanGroupEnum Enum with underlying type: string +type PhaseOneConfigDetailsDiffieHelmanGroupEnum string + +// Set of constants representing the allowable values for PhaseOneConfigDetailsDiffieHelmanGroupEnum +const ( + PhaseOneConfigDetailsDiffieHelmanGroupGroup2 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP2" + PhaseOneConfigDetailsDiffieHelmanGroupGroup5 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP5" + PhaseOneConfigDetailsDiffieHelmanGroupGroup14 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP14" + PhaseOneConfigDetailsDiffieHelmanGroupGroup19 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP19" + PhaseOneConfigDetailsDiffieHelmanGroupGroup20 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP20" + PhaseOneConfigDetailsDiffieHelmanGroupGroup24 PhaseOneConfigDetailsDiffieHelmanGroupEnum = "GROUP24" +) + +var mappingPhaseOneConfigDetailsDiffieHelmanGroupEnum = map[string]PhaseOneConfigDetailsDiffieHelmanGroupEnum{ + "GROUP2": PhaseOneConfigDetailsDiffieHelmanGroupGroup2, + "GROUP5": PhaseOneConfigDetailsDiffieHelmanGroupGroup5, + "GROUP14": PhaseOneConfigDetailsDiffieHelmanGroupGroup14, + "GROUP19": PhaseOneConfigDetailsDiffieHelmanGroupGroup19, + "GROUP20": PhaseOneConfigDetailsDiffieHelmanGroupGroup20, + "GROUP24": PhaseOneConfigDetailsDiffieHelmanGroupGroup24, +} + +var mappingPhaseOneConfigDetailsDiffieHelmanGroupEnumLowerCase = map[string]PhaseOneConfigDetailsDiffieHelmanGroupEnum{ + "group2": PhaseOneConfigDetailsDiffieHelmanGroupGroup2, + "group5": PhaseOneConfigDetailsDiffieHelmanGroupGroup5, + "group14": PhaseOneConfigDetailsDiffieHelmanGroupGroup14, + "group19": PhaseOneConfigDetailsDiffieHelmanGroupGroup19, + "group20": PhaseOneConfigDetailsDiffieHelmanGroupGroup20, + "group24": PhaseOneConfigDetailsDiffieHelmanGroupGroup24, +} + +// GetPhaseOneConfigDetailsDiffieHelmanGroupEnumValues Enumerates the set of values for PhaseOneConfigDetailsDiffieHelmanGroupEnum +func GetPhaseOneConfigDetailsDiffieHelmanGroupEnumValues() []PhaseOneConfigDetailsDiffieHelmanGroupEnum { + values := make([]PhaseOneConfigDetailsDiffieHelmanGroupEnum, 0) + for _, v := range mappingPhaseOneConfigDetailsDiffieHelmanGroupEnum { + values = append(values, v) + } + return values +} + +// GetPhaseOneConfigDetailsDiffieHelmanGroupEnumStringValues Enumerates the set of values in String for PhaseOneConfigDetailsDiffieHelmanGroupEnum +func GetPhaseOneConfigDetailsDiffieHelmanGroupEnumStringValues() []string { + return []string{ + "GROUP2", + "GROUP5", + "GROUP14", + "GROUP19", + "GROUP20", + "GROUP24", + } +} + +// GetMappingPhaseOneConfigDetailsDiffieHelmanGroupEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPhaseOneConfigDetailsDiffieHelmanGroupEnum(val string) (PhaseOneConfigDetailsDiffieHelmanGroupEnum, bool) { + enum, ok := mappingPhaseOneConfigDetailsDiffieHelmanGroupEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/phase_two_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/phase_two_config_details.go new file mode 100644 index 0000000000..642392ec3a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/phase_two_config_details.go @@ -0,0 +1,225 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PhaseTwoConfigDetails Configuration details for IPSec phase two configuration parameters. +type PhaseTwoConfigDetails struct { + + // Indicates whether custom configuration is enabled for phase two options. + IsCustomPhaseTwoConfig *bool `mandatory:"false" json:"isCustomPhaseTwoConfig"` + + // The authentication algorithm proposed during phase two tunnel negotiation. + AuthenticationAlgorithm PhaseTwoConfigDetailsAuthenticationAlgorithmEnum `mandatory:"false" json:"authenticationAlgorithm,omitempty"` + + // The encryption algorithm proposed during phase two tunnel negotiation. + EncryptionAlgorithm PhaseTwoConfigDetailsEncryptionAlgorithmEnum `mandatory:"false" json:"encryptionAlgorithm,omitempty"` + + // Lifetime in seconds for the IPSec session key set in phase two. The default is 3600 which is equivalent to 1 hour. + LifetimeInSeconds *int `mandatory:"false" json:"lifetimeInSeconds"` + + // Indicates whether perfect forward secrecy (PFS) is enabled. + IsPfsEnabled *bool `mandatory:"false" json:"isPfsEnabled"` + + // The Diffie-Hellman group used for PFS, if PFS is enabled. + PfsDhGroup PhaseTwoConfigDetailsPfsDhGroupEnum `mandatory:"false" json:"pfsDhGroup,omitempty"` +} + +func (m PhaseTwoConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PhaseTwoConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnum(string(m.AuthenticationAlgorithm)); !ok && m.AuthenticationAlgorithm != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthenticationAlgorithm: %s. Supported values are: %s.", m.AuthenticationAlgorithm, strings.Join(GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumStringValues(), ","))) + } + if _, ok := GetMappingPhaseTwoConfigDetailsEncryptionAlgorithmEnum(string(m.EncryptionAlgorithm)); !ok && m.EncryptionAlgorithm != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionAlgorithm: %s. Supported values are: %s.", m.EncryptionAlgorithm, strings.Join(GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumStringValues(), ","))) + } + if _, ok := GetMappingPhaseTwoConfigDetailsPfsDhGroupEnum(string(m.PfsDhGroup)); !ok && m.PfsDhGroup != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PfsDhGroup: %s. Supported values are: %s.", m.PfsDhGroup, strings.Join(GetPhaseTwoConfigDetailsPfsDhGroupEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PhaseTwoConfigDetailsAuthenticationAlgorithmEnum Enum with underlying type: string +type PhaseTwoConfigDetailsAuthenticationAlgorithmEnum string + +// Set of constants representing the allowable values for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum +const ( + PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128 PhaseTwoConfigDetailsAuthenticationAlgorithmEnum = "HMAC_SHA2_256_128" + PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128 PhaseTwoConfigDetailsAuthenticationAlgorithmEnum = "HMAC_SHA1_128" +) + +var mappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnum = map[string]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum{ + "HMAC_SHA2_256_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128, + "HMAC_SHA1_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128, +} + +var mappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnumLowerCase = map[string]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum{ + "hmac_sha2_256_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha2256128, + "hmac_sha1_128": PhaseTwoConfigDetailsAuthenticationAlgorithmSha1128, +} + +// GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumValues Enumerates the set of values for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum +func GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumValues() []PhaseTwoConfigDetailsAuthenticationAlgorithmEnum { + values := make([]PhaseTwoConfigDetailsAuthenticationAlgorithmEnum, 0) + for _, v := range mappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnum { + values = append(values, v) + } + return values +} + +// GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumStringValues Enumerates the set of values in String for PhaseTwoConfigDetailsAuthenticationAlgorithmEnum +func GetPhaseTwoConfigDetailsAuthenticationAlgorithmEnumStringValues() []string { + return []string{ + "HMAC_SHA2_256_128", + "HMAC_SHA1_128", + } +} + +// GetMappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnum(val string) (PhaseTwoConfigDetailsAuthenticationAlgorithmEnum, bool) { + enum, ok := mappingPhaseTwoConfigDetailsAuthenticationAlgorithmEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PhaseTwoConfigDetailsEncryptionAlgorithmEnum Enum with underlying type: string +type PhaseTwoConfigDetailsEncryptionAlgorithmEnum string + +// Set of constants representing the allowable values for PhaseTwoConfigDetailsEncryptionAlgorithmEnum +const ( + PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_256_GCM" + PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_192_GCM" + PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_128_GCM" + PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_256_CBC" + PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_192_CBC" + PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc PhaseTwoConfigDetailsEncryptionAlgorithmEnum = "AES_128_CBC" +) + +var mappingPhaseTwoConfigDetailsEncryptionAlgorithmEnum = map[string]PhaseTwoConfigDetailsEncryptionAlgorithmEnum{ + "AES_256_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm, + "AES_192_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm, + "AES_128_GCM": PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm, + "AES_256_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc, + "AES_192_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc, + "AES_128_CBC": PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc, +} + +var mappingPhaseTwoConfigDetailsEncryptionAlgorithmEnumLowerCase = map[string]PhaseTwoConfigDetailsEncryptionAlgorithmEnum{ + "aes_256_gcm": PhaseTwoConfigDetailsEncryptionAlgorithm256Gcm, + "aes_192_gcm": PhaseTwoConfigDetailsEncryptionAlgorithm192Gcm, + "aes_128_gcm": PhaseTwoConfigDetailsEncryptionAlgorithm128Gcm, + "aes_256_cbc": PhaseTwoConfigDetailsEncryptionAlgorithm256Cbc, + "aes_192_cbc": PhaseTwoConfigDetailsEncryptionAlgorithm192Cbc, + "aes_128_cbc": PhaseTwoConfigDetailsEncryptionAlgorithm128Cbc, +} + +// GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumValues Enumerates the set of values for PhaseTwoConfigDetailsEncryptionAlgorithmEnum +func GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumValues() []PhaseTwoConfigDetailsEncryptionAlgorithmEnum { + values := make([]PhaseTwoConfigDetailsEncryptionAlgorithmEnum, 0) + for _, v := range mappingPhaseTwoConfigDetailsEncryptionAlgorithmEnum { + values = append(values, v) + } + return values +} + +// GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumStringValues Enumerates the set of values in String for PhaseTwoConfigDetailsEncryptionAlgorithmEnum +func GetPhaseTwoConfigDetailsEncryptionAlgorithmEnumStringValues() []string { + return []string{ + "AES_256_GCM", + "AES_192_GCM", + "AES_128_GCM", + "AES_256_CBC", + "AES_192_CBC", + "AES_128_CBC", + } +} + +// GetMappingPhaseTwoConfigDetailsEncryptionAlgorithmEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPhaseTwoConfigDetailsEncryptionAlgorithmEnum(val string) (PhaseTwoConfigDetailsEncryptionAlgorithmEnum, bool) { + enum, ok := mappingPhaseTwoConfigDetailsEncryptionAlgorithmEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PhaseTwoConfigDetailsPfsDhGroupEnum Enum with underlying type: string +type PhaseTwoConfigDetailsPfsDhGroupEnum string + +// Set of constants representing the allowable values for PhaseTwoConfigDetailsPfsDhGroupEnum +const ( + PhaseTwoConfigDetailsPfsDhGroupGroup2 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP2" + PhaseTwoConfigDetailsPfsDhGroupGroup5 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP5" + PhaseTwoConfigDetailsPfsDhGroupGroup14 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP14" + PhaseTwoConfigDetailsPfsDhGroupGroup19 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP19" + PhaseTwoConfigDetailsPfsDhGroupGroup20 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP20" + PhaseTwoConfigDetailsPfsDhGroupGroup24 PhaseTwoConfigDetailsPfsDhGroupEnum = "GROUP24" +) + +var mappingPhaseTwoConfigDetailsPfsDhGroupEnum = map[string]PhaseTwoConfigDetailsPfsDhGroupEnum{ + "GROUP2": PhaseTwoConfigDetailsPfsDhGroupGroup2, + "GROUP5": PhaseTwoConfigDetailsPfsDhGroupGroup5, + "GROUP14": PhaseTwoConfigDetailsPfsDhGroupGroup14, + "GROUP19": PhaseTwoConfigDetailsPfsDhGroupGroup19, + "GROUP20": PhaseTwoConfigDetailsPfsDhGroupGroup20, + "GROUP24": PhaseTwoConfigDetailsPfsDhGroupGroup24, +} + +var mappingPhaseTwoConfigDetailsPfsDhGroupEnumLowerCase = map[string]PhaseTwoConfigDetailsPfsDhGroupEnum{ + "group2": PhaseTwoConfigDetailsPfsDhGroupGroup2, + "group5": PhaseTwoConfigDetailsPfsDhGroupGroup5, + "group14": PhaseTwoConfigDetailsPfsDhGroupGroup14, + "group19": PhaseTwoConfigDetailsPfsDhGroupGroup19, + "group20": PhaseTwoConfigDetailsPfsDhGroupGroup20, + "group24": PhaseTwoConfigDetailsPfsDhGroupGroup24, +} + +// GetPhaseTwoConfigDetailsPfsDhGroupEnumValues Enumerates the set of values for PhaseTwoConfigDetailsPfsDhGroupEnum +func GetPhaseTwoConfigDetailsPfsDhGroupEnumValues() []PhaseTwoConfigDetailsPfsDhGroupEnum { + values := make([]PhaseTwoConfigDetailsPfsDhGroupEnum, 0) + for _, v := range mappingPhaseTwoConfigDetailsPfsDhGroupEnum { + values = append(values, v) + } + return values +} + +// GetPhaseTwoConfigDetailsPfsDhGroupEnumStringValues Enumerates the set of values in String for PhaseTwoConfigDetailsPfsDhGroupEnum +func GetPhaseTwoConfigDetailsPfsDhGroupEnumStringValues() []string { + return []string{ + "GROUP2", + "GROUP5", + "GROUP14", + "GROUP19", + "GROUP20", + "GROUP24", + } +} + +// GetMappingPhaseTwoConfigDetailsPfsDhGroupEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPhaseTwoConfigDetailsPfsDhGroupEnum(val string) (PhaseTwoConfigDetailsPfsDhGroupEnum, bool) { + enum, ok := mappingPhaseTwoConfigDetailsPfsDhGroupEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/platform_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/platform_config.go new file mode 100644 index 0000000000..da4c6f686e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/platform_config.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PlatformConfig The platform configuration for the instance. +type PlatformConfig interface { + + // Whether Secure Boot is enabled on the instance. + GetIsSecureBootEnabled() *bool + + // Whether the Trusted Platform Module (TPM) is enabled on the instance. + GetIsTrustedPlatformModuleEnabled() *bool + + // Whether the Measured Boot feature is enabled on the instance. + GetIsMeasuredBootEnabled() *bool + + // Whether the instance is a confidential instance. If this value is `true`, the instance is a confidential instance. The default value is `false`. + GetIsMemoryEncryptionEnabled() *bool +} + +type platformconfig struct { + JsonData []byte + IsSecureBootEnabled *bool `mandatory:"false" json:"isSecureBootEnabled"` + IsTrustedPlatformModuleEnabled *bool `mandatory:"false" json:"isTrustedPlatformModuleEnabled"` + IsMeasuredBootEnabled *bool `mandatory:"false" json:"isMeasuredBootEnabled"` + IsMemoryEncryptionEnabled *bool `mandatory:"false" json:"isMemoryEncryptionEnabled"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *platformconfig) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerplatformconfig platformconfig + s := struct { + Model Unmarshalerplatformconfig + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.IsSecureBootEnabled = s.Model.IsSecureBootEnabled + m.IsTrustedPlatformModuleEnabled = s.Model.IsTrustedPlatformModuleEnabled + m.IsMeasuredBootEnabled = s.Model.IsMeasuredBootEnabled + m.IsMemoryEncryptionEnabled = s.Model.IsMemoryEncryptionEnabled + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *platformconfig) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "AMD_MILAN_BM": + mm := AmdMilanBmPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_ROME_BM": + mm := AmdRomeBmPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_SKYLAKE_BM": + mm := IntelSkylakeBmPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_ROME_BM_GPU": + mm := AmdRomeBmGpuPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_ICELAKE_BM": + mm := IntelIcelakeBmPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "AMD_VM": + mm := AmdVmPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + case "INTEL_VM": + mm := IntelVmPlatformConfig{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for PlatformConfig: %s.", m.Type) + return *m, nil + } +} + +//GetIsSecureBootEnabled returns IsSecureBootEnabled +func (m platformconfig) GetIsSecureBootEnabled() *bool { + return m.IsSecureBootEnabled +} + +//GetIsTrustedPlatformModuleEnabled returns IsTrustedPlatformModuleEnabled +func (m platformconfig) GetIsTrustedPlatformModuleEnabled() *bool { + return m.IsTrustedPlatformModuleEnabled +} + +//GetIsMeasuredBootEnabled returns IsMeasuredBootEnabled +func (m platformconfig) GetIsMeasuredBootEnabled() *bool { + return m.IsMeasuredBootEnabled +} + +//GetIsMemoryEncryptionEnabled returns IsMemoryEncryptionEnabled +func (m platformconfig) GetIsMemoryEncryptionEnabled() *bool { + return m.IsMemoryEncryptionEnabled +} + +func (m platformconfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m platformconfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PlatformConfigTypeEnum Enum with underlying type: string +type PlatformConfigTypeEnum string + +// Set of constants representing the allowable values for PlatformConfigTypeEnum +const ( + PlatformConfigTypeAmdMilanBm PlatformConfigTypeEnum = "AMD_MILAN_BM" + PlatformConfigTypeAmdRomeBm PlatformConfigTypeEnum = "AMD_ROME_BM" + PlatformConfigTypeAmdRomeBmGpu PlatformConfigTypeEnum = "AMD_ROME_BM_GPU" + PlatformConfigTypeIntelIcelakeBm PlatformConfigTypeEnum = "INTEL_ICELAKE_BM" + PlatformConfigTypeIntelSkylakeBm PlatformConfigTypeEnum = "INTEL_SKYLAKE_BM" + PlatformConfigTypeAmdVm PlatformConfigTypeEnum = "AMD_VM" + PlatformConfigTypeIntelVm PlatformConfigTypeEnum = "INTEL_VM" +) + +var mappingPlatformConfigTypeEnum = map[string]PlatformConfigTypeEnum{ + "AMD_MILAN_BM": PlatformConfigTypeAmdMilanBm, + "AMD_ROME_BM": PlatformConfigTypeAmdRomeBm, + "AMD_ROME_BM_GPU": PlatformConfigTypeAmdRomeBmGpu, + "INTEL_ICELAKE_BM": PlatformConfigTypeIntelIcelakeBm, + "INTEL_SKYLAKE_BM": PlatformConfigTypeIntelSkylakeBm, + "AMD_VM": PlatformConfigTypeAmdVm, + "INTEL_VM": PlatformConfigTypeIntelVm, +} + +var mappingPlatformConfigTypeEnumLowerCase = map[string]PlatformConfigTypeEnum{ + "amd_milan_bm": PlatformConfigTypeAmdMilanBm, + "amd_rome_bm": PlatformConfigTypeAmdRomeBm, + "amd_rome_bm_gpu": PlatformConfigTypeAmdRomeBmGpu, + "intel_icelake_bm": PlatformConfigTypeIntelIcelakeBm, + "intel_skylake_bm": PlatformConfigTypeIntelSkylakeBm, + "amd_vm": PlatformConfigTypeAmdVm, + "intel_vm": PlatformConfigTypeIntelVm, +} + +// GetPlatformConfigTypeEnumValues Enumerates the set of values for PlatformConfigTypeEnum +func GetPlatformConfigTypeEnumValues() []PlatformConfigTypeEnum { + values := make([]PlatformConfigTypeEnum, 0) + for _, v := range mappingPlatformConfigTypeEnum { + values = append(values, v) + } + return values +} + +// GetPlatformConfigTypeEnumStringValues Enumerates the set of values in String for PlatformConfigTypeEnum +func GetPlatformConfigTypeEnumStringValues() []string { + return []string{ + "AMD_MILAN_BM", + "AMD_ROME_BM", + "AMD_ROME_BM_GPU", + "INTEL_ICELAKE_BM", + "INTEL_SKYLAKE_BM", + "AMD_VM", + "INTEL_VM", + } +} + +// GetMappingPlatformConfigTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPlatformConfigTypeEnum(val string) (PlatformConfigTypeEnum, bool) { + enum, ok := mappingPlatformConfigTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/port_range.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/port_range.go new file mode 100644 index 0000000000..48326bfde0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/port_range.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PortRange The representation of PortRange +type PortRange struct { + + // The maximum port number, which must not be less than the minimum port number. To specify + // a single port number, set both the min and max to the same value. + Max *int `mandatory:"true" json:"max"` + + // The minimum port number, which must not be greater than the maximum port number. + Min *int `mandatory:"true" json:"min"` +} + +func (m PortRange) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PortRange) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/preemptible_instance_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/preemptible_instance_config_details.go new file mode 100644 index 0000000000..7dd5215ae3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/preemptible_instance_config_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PreemptibleInstanceConfigDetails Configuration options for preemptible instances. +type PreemptibleInstanceConfigDetails struct { + PreemptionAction PreemptionAction `mandatory:"true" json:"preemptionAction"` +} + +func (m PreemptibleInstanceConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PreemptibleInstanceConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *PreemptibleInstanceConfigDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + PreemptionAction preemptionaction `json:"preemptionAction"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + nn, e = model.PreemptionAction.UnmarshalPolymorphicJSON(model.PreemptionAction.JsonData) + if e != nil { + return + } + if nn != nil { + m.PreemptionAction = nn.(PreemptionAction) + } else { + m.PreemptionAction = nil + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/preemption_action.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/preemption_action.go new file mode 100644 index 0000000000..89564083de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/preemption_action.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PreemptionAction The action to run when the preemptible instance is interrupted for eviction. +type PreemptionAction interface { +} + +type preemptionaction struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *preemptionaction) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerpreemptionaction preemptionaction + s := struct { + Model Unmarshalerpreemptionaction + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *preemptionaction) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "TERMINATE": + mm := TerminatePreemptionAction{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for PreemptionAction: %s.", m.Type) + return *m, nil + } +} + +func (m preemptionaction) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m preemptionaction) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PreemptionActionTypeEnum Enum with underlying type: string +type PreemptionActionTypeEnum string + +// Set of constants representing the allowable values for PreemptionActionTypeEnum +const ( + PreemptionActionTypeTerminate PreemptionActionTypeEnum = "TERMINATE" +) + +var mappingPreemptionActionTypeEnum = map[string]PreemptionActionTypeEnum{ + "TERMINATE": PreemptionActionTypeTerminate, +} + +var mappingPreemptionActionTypeEnumLowerCase = map[string]PreemptionActionTypeEnum{ + "terminate": PreemptionActionTypeTerminate, +} + +// GetPreemptionActionTypeEnumValues Enumerates the set of values for PreemptionActionTypeEnum +func GetPreemptionActionTypeEnumValues() []PreemptionActionTypeEnum { + values := make([]PreemptionActionTypeEnum, 0) + for _, v := range mappingPreemptionActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetPreemptionActionTypeEnumStringValues Enumerates the set of values in String for PreemptionActionTypeEnum +func GetPreemptionActionTypeEnumStringValues() []string { + return []string{ + "TERMINATE", + } +} + +// GetMappingPreemptionActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPreemptionActionTypeEnum(val string) (PreemptionActionTypeEnum, bool) { + enum, ok := mappingPreemptionActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway.go new file mode 100644 index 0000000000..37d50ea44a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway.go @@ -0,0 +1,139 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateAccessGateway Required for Oracle services that offer customers private endpoints for private access to the +// service. +// The service VCN requires a private access gateway (PAG) to handle the traffic to and from +// private endpoints in customer VCNs (see PrivateEndpoint). +// After creating the gateway, update the route tables in your service VCN to send all traffic +// destined for private endpoints to this gateway. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type PrivateAccessGateway struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PAG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the PAG. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service VCN that the PAG belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The date and time the PAG was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The PAG's current lifecycle state. + LifecycleState PrivateAccessGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m PrivateAccessGateway) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateAccessGateway) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPrivateAccessGatewayLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPrivateAccessGatewayLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PrivateAccessGatewayLifecycleStateEnum Enum with underlying type: string +type PrivateAccessGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for PrivateAccessGatewayLifecycleStateEnum +const ( + PrivateAccessGatewayLifecycleStateProvisioning PrivateAccessGatewayLifecycleStateEnum = "PROVISIONING" + PrivateAccessGatewayLifecycleStateAvailable PrivateAccessGatewayLifecycleStateEnum = "AVAILABLE" + PrivateAccessGatewayLifecycleStateTerminating PrivateAccessGatewayLifecycleStateEnum = "TERMINATING" + PrivateAccessGatewayLifecycleStateTerminated PrivateAccessGatewayLifecycleStateEnum = "TERMINATED" + PrivateAccessGatewayLifecycleStateUpdating PrivateAccessGatewayLifecycleStateEnum = "UPDATING" + PrivateAccessGatewayLifecycleStateFailed PrivateAccessGatewayLifecycleStateEnum = "FAILED" +) + +var mappingPrivateAccessGatewayLifecycleStateEnum = map[string]PrivateAccessGatewayLifecycleStateEnum{ + "PROVISIONING": PrivateAccessGatewayLifecycleStateProvisioning, + "AVAILABLE": PrivateAccessGatewayLifecycleStateAvailable, + "TERMINATING": PrivateAccessGatewayLifecycleStateTerminating, + "TERMINATED": PrivateAccessGatewayLifecycleStateTerminated, + "UPDATING": PrivateAccessGatewayLifecycleStateUpdating, + "FAILED": PrivateAccessGatewayLifecycleStateFailed, +} + +var mappingPrivateAccessGatewayLifecycleStateEnumLowerCase = map[string]PrivateAccessGatewayLifecycleStateEnum{ + "provisioning": PrivateAccessGatewayLifecycleStateProvisioning, + "available": PrivateAccessGatewayLifecycleStateAvailable, + "terminating": PrivateAccessGatewayLifecycleStateTerminating, + "terminated": PrivateAccessGatewayLifecycleStateTerminated, + "updating": PrivateAccessGatewayLifecycleStateUpdating, + "failed": PrivateAccessGatewayLifecycleStateFailed, +} + +// GetPrivateAccessGatewayLifecycleStateEnumValues Enumerates the set of values for PrivateAccessGatewayLifecycleStateEnum +func GetPrivateAccessGatewayLifecycleStateEnumValues() []PrivateAccessGatewayLifecycleStateEnum { + values := make([]PrivateAccessGatewayLifecycleStateEnum, 0) + for _, v := range mappingPrivateAccessGatewayLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetPrivateAccessGatewayLifecycleStateEnumStringValues Enumerates the set of values in String for PrivateAccessGatewayLifecycleStateEnum +func GetPrivateAccessGatewayLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + "FAILED", + } +} + +// GetMappingPrivateAccessGatewayLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPrivateAccessGatewayLifecycleStateEnum(val string) (PrivateAccessGatewayLifecycleStateEnum, bool) { + enum, ok := mappingPrivateAccessGatewayLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway_summary.go new file mode 100644 index 0000000000..4be07103d8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_access_gateway_summary.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateAccessGatewaySummary A summary of private access gateway (PAG) information. This object is returned when listing +// PAGs. +type PrivateAccessGatewaySummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the PAG. + Id *string `mandatory:"true" json:"id"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` +} + +func (m PrivateAccessGatewaySummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateAccessGatewaySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint.go index 9e7c290366..3e09ac2181 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_endpoint.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // PrivateEndpoint A *private endpoint* (PE) is a way for an Oracle service to give a customer a private access point for @@ -136,6 +138,21 @@ func (m PrivateEndpoint) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateEndpoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPrivateEndpointLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPrivateEndpointLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // PrivateEndpointLifecycleStateEnum Enum with underlying type: string type PrivateEndpointLifecycleStateEnum string @@ -149,7 +166,7 @@ const ( PrivateEndpointLifecycleStateFailed PrivateEndpointLifecycleStateEnum = "FAILED" ) -var mappingPrivateEndpointLifecycleState = map[string]PrivateEndpointLifecycleStateEnum{ +var mappingPrivateEndpointLifecycleStateEnum = map[string]PrivateEndpointLifecycleStateEnum{ "PROVISIONING": PrivateEndpointLifecycleStateProvisioning, "AVAILABLE": PrivateEndpointLifecycleStateAvailable, "TERMINATING": PrivateEndpointLifecycleStateTerminating, @@ -158,11 +175,38 @@ var mappingPrivateEndpointLifecycleState = map[string]PrivateEndpointLifecycleSt "FAILED": PrivateEndpointLifecycleStateFailed, } +var mappingPrivateEndpointLifecycleStateEnumLowerCase = map[string]PrivateEndpointLifecycleStateEnum{ + "provisioning": PrivateEndpointLifecycleStateProvisioning, + "available": PrivateEndpointLifecycleStateAvailable, + "terminating": PrivateEndpointLifecycleStateTerminating, + "terminated": PrivateEndpointLifecycleStateTerminated, + "updating": PrivateEndpointLifecycleStateUpdating, + "failed": PrivateEndpointLifecycleStateFailed, +} + // GetPrivateEndpointLifecycleStateEnumValues Enumerates the set of values for PrivateEndpointLifecycleStateEnum func GetPrivateEndpointLifecycleStateEnumValues() []PrivateEndpointLifecycleStateEnum { values := make([]PrivateEndpointLifecycleStateEnum, 0) - for _, v := range mappingPrivateEndpointLifecycleState { + for _, v := range mappingPrivateEndpointLifecycleStateEnum { values = append(values, v) } return values } + +// GetPrivateEndpointLifecycleStateEnumStringValues Enumerates the set of values in String for PrivateEndpointLifecycleStateEnum +func GetPrivateEndpointLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + "FAILED", + } +} + +// GetMappingPrivateEndpointLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPrivateEndpointLifecycleStateEnum(val string) (PrivateEndpointLifecycleStateEnum, bool) { + enum, ok := mappingPrivateEndpointLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_association.go new file mode 100644 index 0000000000..888ef3b04c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_association.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateEndpointAssociation A summary of private endpoint information. This object is returned when listing the private +// endpoints associated with a given endpoint service. +type PrivateEndpointAssociation struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. + Id *string `mandatory:"false" json:"id"` + + // The private IP address (in the customer's VCN) that represents the access point for the + // associated endpoint service. + PrivateEndpointIp *string `mandatory:"false" json:"privateEndpointIp"` + + // The three-label FQDN to use for the private endpoint. The customer VCN's DNS records use + // this FQDN. + // For important information about how this attribute is used, see the discussion + // of DNS and FQDNs in PrivateEndpoint. + // Example: `xyz.oraclecloud.com` + EndpointFqdn *string `mandatory:"false" json:"endpointFqdn"` + + // A list of additional FQDNs that you can provide along with endpointFqdn. These FQDNs are added to the + // customer VCN's DNS record. For more information, see the discussion of DNS and FQDNs in + // PrivateEndpoint. + AdditionalFqdns []string `mandatory:"false" json:"additionalFqdns"` + + ReverseConnectionConfiguration *ReverseConnectionConfiguration `mandatory:"false" json:"reverseConnectionConfiguration"` +} + +func (m PrivateEndpointAssociation) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateEndpointAssociation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_summary.go new file mode 100644 index 0000000000..f65d8bb769 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_endpoint_summary.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateEndpointSummary A summary of private endpoint information. This object is returned when listing private endpoints. +type PrivateEndpointSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint. + Id *string `mandatory:"true" json:"id"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the endpoint service that is associated + // with the private endpoint. + EndpointServiceId *string `mandatory:"true" json:"endpointServiceId"` +} + +func (m PrivateEndpointSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateEndpointSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go index 4ec9922b76..1b53da7fa4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/private_ip.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // PrivateIp A *private IP* is a conceptual term that refers to an IPv4 private IP address and related properties. @@ -115,38 +117,20 @@ type PrivateIp struct { // However, if the `PrivateIp` object is being used with a VLAN as part of // the Oracle Cloud VMware Solution, the `vnicId` is null. VnicId *string `mandatory:"false" json:"vnicId"` - - // The private IP's current state. - LifecycleState PrivateIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` } func (m PrivateIp) String() string { return common.PointerString(m) } -// PrivateIpLifecycleStateEnum Enum with underlying type: string -type PrivateIpLifecycleStateEnum string - -// Set of constants representing the allowable values for PrivateIpLifecycleStateEnum -const ( - PrivateIpLifecycleStateProvisioning PrivateIpLifecycleStateEnum = "PROVISIONING" - PrivateIpLifecycleStateAvailable PrivateIpLifecycleStateEnum = "AVAILABLE" - PrivateIpLifecycleStateTerminating PrivateIpLifecycleStateEnum = "TERMINATING" - PrivateIpLifecycleStateTerminated PrivateIpLifecycleStateEnum = "TERMINATED" -) - -var mappingPrivateIpLifecycleState = map[string]PrivateIpLifecycleStateEnum{ - "PROVISIONING": PrivateIpLifecycleStateProvisioning, - "AVAILABLE": PrivateIpLifecycleStateAvailable, - "TERMINATING": PrivateIpLifecycleStateTerminating, - "TERMINATED": PrivateIpLifecycleStateTerminated, -} +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateIp) ValidateEnumValue() (bool, error) { + errMessage := []string{} -// GetPrivateIpLifecycleStateEnumValues Enumerates the set of values for PrivateIpLifecycleStateEnum -func GetPrivateIpLifecycleStateEnumValues() []PrivateIpLifecycleStateEnum { - values := make([]PrivateIpLifecycleStateEnum, 0) - for _, v := range mappingPrivateIpLifecycleState { - values = append(values, v) + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) } - return values + return false, nil } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop.go new file mode 100644 index 0000000000..adc20cd8f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateIpNextHop Details of a private IP or an IPv6's nextHop configuration. +type PrivateIpNextHop struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // VNICaaS will flow-hash traffic that matches the service protocol and port. + ServiceProtocolPorts []PrivateIpNextHopProtocolPort `mandatory:"false" json:"serviceProtocolPorts"` + + // Details of nextHop targets. + Targets []PrivateIpNextHopTarget `mandatory:"false" json:"targets"` +} + +func (m PrivateIpNextHop) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateIpNextHop) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_protocol_port.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_protocol_port.go new file mode 100644 index 0000000000..2e78009a86 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_protocol_port.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateIpNextHopProtocolPort Details containing the port number and the protocol type +type PrivateIpNextHopProtocolPort struct { + + // VNICaaS uses this to identify the port number to flow-hash traffic + Port *int `mandatory:"false" json:"port"` + + // The type of protocol i.e. TCP, UDP or ALL accompanied by port number used for flow-hash by VNICaaS + Protocol PrivateIpNextHopProtocolPortProtocolEnum `mandatory:"false" json:"protocol,omitempty"` +} + +func (m PrivateIpNextHopProtocolPort) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateIpNextHopProtocolPort) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPrivateIpNextHopProtocolPortProtocolEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetPrivateIpNextHopProtocolPortProtocolEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PrivateIpNextHopProtocolPortProtocolEnum Enum with underlying type: string +type PrivateIpNextHopProtocolPortProtocolEnum string + +// Set of constants representing the allowable values for PrivateIpNextHopProtocolPortProtocolEnum +const ( + PrivateIpNextHopProtocolPortProtocolTcp PrivateIpNextHopProtocolPortProtocolEnum = "TCP" + PrivateIpNextHopProtocolPortProtocolUdp PrivateIpNextHopProtocolPortProtocolEnum = "UDP" + PrivateIpNextHopProtocolPortProtocolAll PrivateIpNextHopProtocolPortProtocolEnum = "ALL" +) + +var mappingPrivateIpNextHopProtocolPortProtocolEnum = map[string]PrivateIpNextHopProtocolPortProtocolEnum{ + "TCP": PrivateIpNextHopProtocolPortProtocolTcp, + "UDP": PrivateIpNextHopProtocolPortProtocolUdp, + "ALL": PrivateIpNextHopProtocolPortProtocolAll, +} + +var mappingPrivateIpNextHopProtocolPortProtocolEnumLowerCase = map[string]PrivateIpNextHopProtocolPortProtocolEnum{ + "tcp": PrivateIpNextHopProtocolPortProtocolTcp, + "udp": PrivateIpNextHopProtocolPortProtocolUdp, + "all": PrivateIpNextHopProtocolPortProtocolAll, +} + +// GetPrivateIpNextHopProtocolPortProtocolEnumValues Enumerates the set of values for PrivateIpNextHopProtocolPortProtocolEnum +func GetPrivateIpNextHopProtocolPortProtocolEnumValues() []PrivateIpNextHopProtocolPortProtocolEnum { + values := make([]PrivateIpNextHopProtocolPortProtocolEnum, 0) + for _, v := range mappingPrivateIpNextHopProtocolPortProtocolEnum { + values = append(values, v) + } + return values +} + +// GetPrivateIpNextHopProtocolPortProtocolEnumStringValues Enumerates the set of values in String for PrivateIpNextHopProtocolPortProtocolEnum +func GetPrivateIpNextHopProtocolPortProtocolEnumStringValues() []string { + return []string{ + "TCP", + "UDP", + "ALL", + } +} + +// GetMappingPrivateIpNextHopProtocolPortProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPrivateIpNextHopProtocolPortProtocolEnum(val string) (PrivateIpNextHopProtocolPortProtocolEnum, bool) { + enum, ok := mappingPrivateIpNextHopProtocolPortProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_target.go new file mode 100644 index 0000000000..2b40bb5e3e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/private_ip_next_hop_target.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PrivateIpNextHopTarget Details of a private IP nextHop target. +type PrivateIpNextHopTarget struct { + + // NextHop target's MPLS label. + MplsLabel *int `mandatory:"false" json:"mplsLabel"` + + PortRange *PortRange `mandatory:"false" json:"portRange"` + + // NextHop target's substrate IP. + SubstrateIp *string `mandatory:"false" json:"substrateIp"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the nextHop target entity. + TargetId *string `mandatory:"false" json:"targetId"` + + // Type of nextHop target. + TargetType PrivateIpNextHopTargetTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` +} + +func (m PrivateIpNextHopTarget) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PrivateIpNextHopTarget) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPrivateIpNextHopTargetTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetPrivateIpNextHopTargetTargetTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PrivateIpNextHopTargetTargetTypeEnum Enum with underlying type: string +type PrivateIpNextHopTargetTargetTypeEnum string + +// Set of constants representing the allowable values for PrivateIpNextHopTargetTargetTypeEnum +const ( + PrivateIpNextHopTargetTargetTypePadp PrivateIpNextHopTargetTargetTypeEnum = "PADP" + PrivateIpNextHopTargetTargetTypeVnicWorker PrivateIpNextHopTargetTargetTypeEnum = "VNIC_WORKER" +) + +var mappingPrivateIpNextHopTargetTargetTypeEnum = map[string]PrivateIpNextHopTargetTargetTypeEnum{ + "PADP": PrivateIpNextHopTargetTargetTypePadp, + "VNIC_WORKER": PrivateIpNextHopTargetTargetTypeVnicWorker, +} + +var mappingPrivateIpNextHopTargetTargetTypeEnumLowerCase = map[string]PrivateIpNextHopTargetTargetTypeEnum{ + "padp": PrivateIpNextHopTargetTargetTypePadp, + "vnic_worker": PrivateIpNextHopTargetTargetTypeVnicWorker, +} + +// GetPrivateIpNextHopTargetTargetTypeEnumValues Enumerates the set of values for PrivateIpNextHopTargetTargetTypeEnum +func GetPrivateIpNextHopTargetTargetTypeEnumValues() []PrivateIpNextHopTargetTargetTypeEnum { + values := make([]PrivateIpNextHopTargetTargetTypeEnum, 0) + for _, v := range mappingPrivateIpNextHopTargetTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetPrivateIpNextHopTargetTargetTypeEnumStringValues Enumerates the set of values in String for PrivateIpNextHopTargetTargetTypeEnum +func GetPrivateIpNextHopTargetTargetTypeEnumStringValues() []string { + return []string{ + "PADP", + "VNIC_WORKER", + } +} + +// GetMappingPrivateIpNextHopTargetTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPrivateIpNextHopTargetTargetTypeEnum(val string) (PrivateIpNextHopTargetTargetTypeEnum, bool) { + enum, ok := mappingPrivateIpNextHopTargetTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip.go new file mode 100644 index 0000000000..09f4599704 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip.go @@ -0,0 +1,331 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PublicIp A *public IP* is a conceptual term that refers to a public IP address and related properties. +// The `publicIp` object is the API representation of a public IP. +// There are two types of public IPs: +// 1. Ephemeral +// 2. Reserved +// For more information and comparison of the two types, +// see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). +type PublicIp struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity the public IP is assigned to, or in the process of + // being assigned to. + AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` + + // The type of entity the public IP is assigned to, or in the process of being + // assigned to. + AssignedEntityType PublicIpAssignedEntityTypeEnum `mandatory:"false" json:"assignedEntityType,omitempty"` + + // The public IP's availability domain. This property is set only for ephemeral public IPs + // that are assigned to a private IP (that is, when the `scope` of the public IP is set to + // AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP. For an ephemeral public IP, this is + // the compartment of its assigned entity (which can be a private IP or a regional entity such + // as a NAT gateway). For a reserved public IP that is currently assigned, + // its compartment can be different from the assigned private IP's. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The public IP's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"false" json:"id"` + + // The public IP address of the `publicIp` object. + // Example: `203.0.113.2` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The public IP's current state. + LifecycleState PublicIpLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Defines when the public IP is deleted and released back to Oracle's public IP pool. + // * `EPHEMERAL`: The lifetime is tied to the lifetime of its assigned entity. An ephemeral + // public IP must always be assigned to an entity. If the assigned entity is a private IP, + // the ephemeral public IP is automatically deleted when the private IP is deleted, when + // the VNIC is terminated, or when the instance is terminated. If the assigned entity is a + // NatGateway, the ephemeral public IP is automatically + // deleted when the NAT gateway is terminated. + // * `RESERVED`: You control the public IP's lifetime. You can delete a reserved public IP + // whenever you like. It does not need to be assigned to a private IP at all times. + // For more information and comparison of the two types, + // see Public IP Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). + Lifetime PublicIpLifetimeEnum `mandatory:"false" json:"lifetime,omitempty"` + + // Deprecated. Use `assignedEntityId` instead. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is currently assigned to, or in the + // process of being assigned to. + // **Note:** This is `null` if the public IP is not assigned to a private IP, or is + // in the process of being assigned to one. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` + + // Whether the public IP is regional or specific to a particular availability domain. + // * `REGION`: The public IP exists within a region and is assigned to a regional entity + // (such as a NatGateway), or can be assigned to a private + // IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs + // assigned to a regional entity have `scope` = `REGION`. + // * `AVAILABILITY_DOMAIN`: The public IP exists within the availability domain of the entity + // it's assigned to, which is specified by the `availabilityDomain` property of the public IP object. + // Ephemeral public IPs that are assigned to private IPs have `scope` = `AVAILABILITY_DOMAIN`. + Scope PublicIpScopeEnum `mandatory:"false" json:"scope,omitempty"` + + // The date and time the public IP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the pool object created in the current tenancy. + PublicIpPoolId *string `mandatory:"false" json:"publicIpPoolId"` +} + +func (m PublicIp) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PublicIp) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPublicIpAssignedEntityTypeEnum(string(m.AssignedEntityType)); !ok && m.AssignedEntityType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AssignedEntityType: %s. Supported values are: %s.", m.AssignedEntityType, strings.Join(GetPublicIpAssignedEntityTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingPublicIpLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPublicIpLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingPublicIpLifetimeEnum(string(m.Lifetime)); !ok && m.Lifetime != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Lifetime: %s. Supported values are: %s.", m.Lifetime, strings.Join(GetPublicIpLifetimeEnumStringValues(), ","))) + } + if _, ok := GetMappingPublicIpScopeEnum(string(m.Scope)); !ok && m.Scope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Scope: %s. Supported values are: %s.", m.Scope, strings.Join(GetPublicIpScopeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PublicIpAssignedEntityTypeEnum Enum with underlying type: string +type PublicIpAssignedEntityTypeEnum string + +// Set of constants representing the allowable values for PublicIpAssignedEntityTypeEnum +const ( + PublicIpAssignedEntityTypePrivateIp PublicIpAssignedEntityTypeEnum = "PRIVATE_IP" + PublicIpAssignedEntityTypeNatGateway PublicIpAssignedEntityTypeEnum = "NAT_GATEWAY" +) + +var mappingPublicIpAssignedEntityTypeEnum = map[string]PublicIpAssignedEntityTypeEnum{ + "PRIVATE_IP": PublicIpAssignedEntityTypePrivateIp, + "NAT_GATEWAY": PublicIpAssignedEntityTypeNatGateway, +} + +var mappingPublicIpAssignedEntityTypeEnumLowerCase = map[string]PublicIpAssignedEntityTypeEnum{ + "private_ip": PublicIpAssignedEntityTypePrivateIp, + "nat_gateway": PublicIpAssignedEntityTypeNatGateway, +} + +// GetPublicIpAssignedEntityTypeEnumValues Enumerates the set of values for PublicIpAssignedEntityTypeEnum +func GetPublicIpAssignedEntityTypeEnumValues() []PublicIpAssignedEntityTypeEnum { + values := make([]PublicIpAssignedEntityTypeEnum, 0) + for _, v := range mappingPublicIpAssignedEntityTypeEnum { + values = append(values, v) + } + return values +} + +// GetPublicIpAssignedEntityTypeEnumStringValues Enumerates the set of values in String for PublicIpAssignedEntityTypeEnum +func GetPublicIpAssignedEntityTypeEnumStringValues() []string { + return []string{ + "PRIVATE_IP", + "NAT_GATEWAY", + } +} + +// GetMappingPublicIpAssignedEntityTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPublicIpAssignedEntityTypeEnum(val string) (PublicIpAssignedEntityTypeEnum, bool) { + enum, ok := mappingPublicIpAssignedEntityTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PublicIpLifecycleStateEnum Enum with underlying type: string +type PublicIpLifecycleStateEnum string + +// Set of constants representing the allowable values for PublicIpLifecycleStateEnum +const ( + PublicIpLifecycleStateProvisioning PublicIpLifecycleStateEnum = "PROVISIONING" + PublicIpLifecycleStateAvailable PublicIpLifecycleStateEnum = "AVAILABLE" + PublicIpLifecycleStateAssigning PublicIpLifecycleStateEnum = "ASSIGNING" + PublicIpLifecycleStateAssigned PublicIpLifecycleStateEnum = "ASSIGNED" + PublicIpLifecycleStateUnassigning PublicIpLifecycleStateEnum = "UNASSIGNING" + PublicIpLifecycleStateUnassigned PublicIpLifecycleStateEnum = "UNASSIGNED" + PublicIpLifecycleStateTerminating PublicIpLifecycleStateEnum = "TERMINATING" + PublicIpLifecycleStateTerminated PublicIpLifecycleStateEnum = "TERMINATED" +) + +var mappingPublicIpLifecycleStateEnum = map[string]PublicIpLifecycleStateEnum{ + "PROVISIONING": PublicIpLifecycleStateProvisioning, + "AVAILABLE": PublicIpLifecycleStateAvailable, + "ASSIGNING": PublicIpLifecycleStateAssigning, + "ASSIGNED": PublicIpLifecycleStateAssigned, + "UNASSIGNING": PublicIpLifecycleStateUnassigning, + "UNASSIGNED": PublicIpLifecycleStateUnassigned, + "TERMINATING": PublicIpLifecycleStateTerminating, + "TERMINATED": PublicIpLifecycleStateTerminated, +} + +var mappingPublicIpLifecycleStateEnumLowerCase = map[string]PublicIpLifecycleStateEnum{ + "provisioning": PublicIpLifecycleStateProvisioning, + "available": PublicIpLifecycleStateAvailable, + "assigning": PublicIpLifecycleStateAssigning, + "assigned": PublicIpLifecycleStateAssigned, + "unassigning": PublicIpLifecycleStateUnassigning, + "unassigned": PublicIpLifecycleStateUnassigned, + "terminating": PublicIpLifecycleStateTerminating, + "terminated": PublicIpLifecycleStateTerminated, +} + +// GetPublicIpLifecycleStateEnumValues Enumerates the set of values for PublicIpLifecycleStateEnum +func GetPublicIpLifecycleStateEnumValues() []PublicIpLifecycleStateEnum { + values := make([]PublicIpLifecycleStateEnum, 0) + for _, v := range mappingPublicIpLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetPublicIpLifecycleStateEnumStringValues Enumerates the set of values in String for PublicIpLifecycleStateEnum +func GetPublicIpLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "ASSIGNING", + "ASSIGNED", + "UNASSIGNING", + "UNASSIGNED", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingPublicIpLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPublicIpLifecycleStateEnum(val string) (PublicIpLifecycleStateEnum, bool) { + enum, ok := mappingPublicIpLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PublicIpLifetimeEnum Enum with underlying type: string +type PublicIpLifetimeEnum string + +// Set of constants representing the allowable values for PublicIpLifetimeEnum +const ( + PublicIpLifetimeEphemeral PublicIpLifetimeEnum = "EPHEMERAL" + PublicIpLifetimeReserved PublicIpLifetimeEnum = "RESERVED" +) + +var mappingPublicIpLifetimeEnum = map[string]PublicIpLifetimeEnum{ + "EPHEMERAL": PublicIpLifetimeEphemeral, + "RESERVED": PublicIpLifetimeReserved, +} + +var mappingPublicIpLifetimeEnumLowerCase = map[string]PublicIpLifetimeEnum{ + "ephemeral": PublicIpLifetimeEphemeral, + "reserved": PublicIpLifetimeReserved, +} + +// GetPublicIpLifetimeEnumValues Enumerates the set of values for PublicIpLifetimeEnum +func GetPublicIpLifetimeEnumValues() []PublicIpLifetimeEnum { + values := make([]PublicIpLifetimeEnum, 0) + for _, v := range mappingPublicIpLifetimeEnum { + values = append(values, v) + } + return values +} + +// GetPublicIpLifetimeEnumStringValues Enumerates the set of values in String for PublicIpLifetimeEnum +func GetPublicIpLifetimeEnumStringValues() []string { + return []string{ + "EPHEMERAL", + "RESERVED", + } +} + +// GetMappingPublicIpLifetimeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPublicIpLifetimeEnum(val string) (PublicIpLifetimeEnum, bool) { + enum, ok := mappingPublicIpLifetimeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// PublicIpScopeEnum Enum with underlying type: string +type PublicIpScopeEnum string + +// Set of constants representing the allowable values for PublicIpScopeEnum +const ( + PublicIpScopeRegion PublicIpScopeEnum = "REGION" + PublicIpScopeAvailabilityDomain PublicIpScopeEnum = "AVAILABILITY_DOMAIN" +) + +var mappingPublicIpScopeEnum = map[string]PublicIpScopeEnum{ + "REGION": PublicIpScopeRegion, + "AVAILABILITY_DOMAIN": PublicIpScopeAvailabilityDomain, +} + +var mappingPublicIpScopeEnumLowerCase = map[string]PublicIpScopeEnum{ + "region": PublicIpScopeRegion, + "availability_domain": PublicIpScopeAvailabilityDomain, +} + +// GetPublicIpScopeEnumValues Enumerates the set of values for PublicIpScopeEnum +func GetPublicIpScopeEnumValues() []PublicIpScopeEnum { + values := make([]PublicIpScopeEnum, 0) + for _, v := range mappingPublicIpScopeEnum { + values = append(values, v) + } + return values +} + +// GetPublicIpScopeEnumStringValues Enumerates the set of values in String for PublicIpScopeEnum +func GetPublicIpScopeEnumStringValues() []string { + return []string{ + "REGION", + "AVAILABILITY_DOMAIN", + } +} + +// GetMappingPublicIpScopeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPublicIpScopeEnum(val string) (PublicIpScopeEnum, bool) { + enum, ok := mappingPublicIpScopeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool.go new file mode 100644 index 0000000000..ca569f251e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PublicIpPool A public IP pool is a set of public IP addresses represented as one or more IPv4 CIDR blocks. Resources like load balancers and compute instances can be allocated public IP addresses from a public IP pool. +type PublicIpPool struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing this pool. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + Id *string `mandatory:"true" json:"id"` + + // The date and time the public IP pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block. + CidrBlocks []string `mandatory:"false" json:"cidrBlocks"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The public IP pool's current state. + LifecycleState PublicIpPoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m PublicIpPool) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PublicIpPool) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPublicIpPoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPublicIpPoolLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PublicIpPoolLifecycleStateEnum Enum with underlying type: string +type PublicIpPoolLifecycleStateEnum string + +// Set of constants representing the allowable values for PublicIpPoolLifecycleStateEnum +const ( + PublicIpPoolLifecycleStateInactive PublicIpPoolLifecycleStateEnum = "INACTIVE" + PublicIpPoolLifecycleStateUpdating PublicIpPoolLifecycleStateEnum = "UPDATING" + PublicIpPoolLifecycleStateActive PublicIpPoolLifecycleStateEnum = "ACTIVE" + PublicIpPoolLifecycleStateDeleting PublicIpPoolLifecycleStateEnum = "DELETING" + PublicIpPoolLifecycleStateDeleted PublicIpPoolLifecycleStateEnum = "DELETED" +) + +var mappingPublicIpPoolLifecycleStateEnum = map[string]PublicIpPoolLifecycleStateEnum{ + "INACTIVE": PublicIpPoolLifecycleStateInactive, + "UPDATING": PublicIpPoolLifecycleStateUpdating, + "ACTIVE": PublicIpPoolLifecycleStateActive, + "DELETING": PublicIpPoolLifecycleStateDeleting, + "DELETED": PublicIpPoolLifecycleStateDeleted, +} + +var mappingPublicIpPoolLifecycleStateEnumLowerCase = map[string]PublicIpPoolLifecycleStateEnum{ + "inactive": PublicIpPoolLifecycleStateInactive, + "updating": PublicIpPoolLifecycleStateUpdating, + "active": PublicIpPoolLifecycleStateActive, + "deleting": PublicIpPoolLifecycleStateDeleting, + "deleted": PublicIpPoolLifecycleStateDeleted, +} + +// GetPublicIpPoolLifecycleStateEnumValues Enumerates the set of values for PublicIpPoolLifecycleStateEnum +func GetPublicIpPoolLifecycleStateEnumValues() []PublicIpPoolLifecycleStateEnum { + values := make([]PublicIpPoolLifecycleStateEnum, 0) + for _, v := range mappingPublicIpPoolLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetPublicIpPoolLifecycleStateEnumStringValues Enumerates the set of values in String for PublicIpPoolLifecycleStateEnum +func GetPublicIpPoolLifecycleStateEnumStringValues() []string { + return []string{ + "INACTIVE", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingPublicIpPoolLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPublicIpPoolLifecycleStateEnum(val string) (PublicIpPoolLifecycleStateEnum, bool) { + enum, ok := mappingPublicIpPoolLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_collection.go new file mode 100644 index 0000000000..24ebf8f42e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_collection.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PublicIpPoolCollection Results of a `ListPublicIpPool` operation. +type PublicIpPoolCollection struct { + + // A list of public IP pool summaries. + Items []PublicIpPoolSummary `mandatory:"true" json:"items"` +} + +func (m PublicIpPoolCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PublicIpPoolCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_summary.go new file mode 100644 index 0000000000..173fa1bde6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/public_ip_pool_summary.go @@ -0,0 +1,70 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PublicIpPoolSummary Summary information about a public IP pool. +type PublicIpPoolSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the public IP pool. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP pool. + Id *string `mandatory:"false" json:"id"` + + // The public IP pool's current state. + LifecycleState PublicIpPoolLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the public IP pool was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m PublicIpPoolSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PublicIpPoolSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPublicIpPoolLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPublicIpPoolLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/radius_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/radius_config_details.go new file mode 100644 index 0000000000..b081b87f9f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/radius_config_details.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RadiusConfigDetails The detail of RADIUS's authentication configuration. +type RadiusConfigDetails struct { + + // Allowed values: + // * `PAP`: An authentication option used by PPP to validate user. + // * `CHAP`: An authentication option used by PPP to validate user but performed only at the initial link establishment. + // * `MS-CHAP-v2`: An authentication option used by PPP to periodically validate the user. + AuthenticationType RadiusConfigDetailsAuthenticationTypeEnum `mandatory:"false" json:"authenticationType,omitempty"` + + // A list of usable RADIUS server. + Servers []RadiusServerDetails `mandatory:"false" json:"servers"` + + // Whether to enable RADIUS accounting. When this enabled, accouting port becomes required filed. + IsRadiusAccountingEnabled *bool `mandatory:"false" json:"isRadiusAccountingEnabled"` + + // Enable case-sensitivity or not in RADIUS authentication. + IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` +} + +func (m RadiusConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RadiusConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingRadiusConfigDetailsAuthenticationTypeEnum(string(m.AuthenticationType)); !ok && m.AuthenticationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AuthenticationType: %s. Supported values are: %s.", m.AuthenticationType, strings.Join(GetRadiusConfigDetailsAuthenticationTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RadiusConfigDetailsAuthenticationTypeEnum Enum with underlying type: string +type RadiusConfigDetailsAuthenticationTypeEnum string + +// Set of constants representing the allowable values for RadiusConfigDetailsAuthenticationTypeEnum +const ( + RadiusConfigDetailsAuthenticationTypePap RadiusConfigDetailsAuthenticationTypeEnum = "PAP" + RadiusConfigDetailsAuthenticationTypeChap RadiusConfigDetailsAuthenticationTypeEnum = "CHAP" + RadiusConfigDetailsAuthenticationTypeMsChapV2 RadiusConfigDetailsAuthenticationTypeEnum = "MS_CHAP_V2" +) + +var mappingRadiusConfigDetailsAuthenticationTypeEnum = map[string]RadiusConfigDetailsAuthenticationTypeEnum{ + "PAP": RadiusConfigDetailsAuthenticationTypePap, + "CHAP": RadiusConfigDetailsAuthenticationTypeChap, + "MS_CHAP_V2": RadiusConfigDetailsAuthenticationTypeMsChapV2, +} + +var mappingRadiusConfigDetailsAuthenticationTypeEnumLowerCase = map[string]RadiusConfigDetailsAuthenticationTypeEnum{ + "pap": RadiusConfigDetailsAuthenticationTypePap, + "chap": RadiusConfigDetailsAuthenticationTypeChap, + "ms_chap_v2": RadiusConfigDetailsAuthenticationTypeMsChapV2, +} + +// GetRadiusConfigDetailsAuthenticationTypeEnumValues Enumerates the set of values for RadiusConfigDetailsAuthenticationTypeEnum +func GetRadiusConfigDetailsAuthenticationTypeEnumValues() []RadiusConfigDetailsAuthenticationTypeEnum { + values := make([]RadiusConfigDetailsAuthenticationTypeEnum, 0) + for _, v := range mappingRadiusConfigDetailsAuthenticationTypeEnum { + values = append(values, v) + } + return values +} + +// GetRadiusConfigDetailsAuthenticationTypeEnumStringValues Enumerates the set of values in String for RadiusConfigDetailsAuthenticationTypeEnum +func GetRadiusConfigDetailsAuthenticationTypeEnumStringValues() []string { + return []string{ + "PAP", + "CHAP", + "MS_CHAP_V2", + } +} + +// GetMappingRadiusConfigDetailsAuthenticationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRadiusConfigDetailsAuthenticationTypeEnum(val string) (RadiusConfigDetailsAuthenticationTypeEnum, bool) { + enum, ok := mappingRadiusConfigDetailsAuthenticationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/radius_server_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/radius_server_details.go new file mode 100644 index 0000000000..e9bf15b3d4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/radius_server_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RadiusServerDetails RADIUS server is used for ClientVPN authentication only. +type RadiusServerDetails struct { + + // The IP address of the RADIUS server. + ServerIp *string `mandatory:"false" json:"serverIp"` + + // The password is used for RADIUS authentication. + SharedSecret *string `mandatory:"false" json:"sharedSecret"` + + // The port for the authentication of RADIUS service. Default is 1812. + AuthenticationPort *int `mandatory:"false" json:"authenticationPort"` + + // The accounting port is used to access RADIUS service. Moreover, the Accounting Port is only required when RADIUS Accounting is enabled. + AccountingPort *int `mandatory:"false" json:"accountingPort"` +} + +func (m RadiusServerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RadiusServerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reboot_migrate_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reboot_migrate_action_details.go new file mode 100644 index 0000000000..d108f023f8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reboot_migrate_action_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RebootMigrateActionDetails Parameters for the `rebootMigrate` InstanceAction. +type RebootMigrateActionDetails struct { + + // For bare metal instances that have local storage, this must be set to true to verify that the local storage + // will be deleted during the migration. For instances without, this parameter has no effect. + DeleteLocalStorage *bool `mandatory:"false" json:"deleteLocalStorage"` + + // If present, this parameter will set (or reset) the scheduled time that the instance will be reboot + // migrated in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This will also change + // the `timeMaintenanceRebootDue` field on the instance. + // If not present, the reboot migration will be triggered immediately. + TimeScheduled *common.SDKTime `mandatory:"false" json:"timeScheduled"` +} + +func (m RebootMigrateActionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RebootMigrateActionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m RebootMigrateActionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRebootMigrateActionDetails RebootMigrateActionDetails + s := struct { + DiscriminatorParam string `json:"actionType"` + MarshalTypeRebootMigrateActionDetails + }{ + "rebootMigrate", + (MarshalTypeRebootMigrateActionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection.go new file mode 100644 index 0000000000..42e0fbec4c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection.go @@ -0,0 +1,206 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemotePeeringConnection A remote peering connection (RPC) is an object on a DRG that lets the VCN that is attached +// to the DRG peer with a VCN in a different region. *Peering* means that the two VCNs can +// communicate using private IP addresses, but without the traffic traversing the internet or +// routing through your on-premises network. For more information, see +// VCN Peering (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/VCNpeering.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type RemotePeeringConnection struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the RPC. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG that this RPC belongs to. + DrgId *string `mandatory:"true" json:"drgId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the RPC. + Id *string `mandatory:"true" json:"id"` + + // Whether the VCN at the other end of the peering is in a different tenancy. + // Example: `false` + IsCrossTenancyPeering *bool `mandatory:"true" json:"isCrossTenancyPeering"` + + // The RPC's current lifecycle state. + LifecycleState RemotePeeringConnectionLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Whether the RPC is peered with another RPC. `NEW` means the RPC has not yet been + // peered. `PENDING` means the peering is being established. `REVOKED` means the + // RPC at the other end of the peering has been deleted. + PeeringStatus RemotePeeringConnectionPeeringStatusEnum `mandatory:"true" json:"peeringStatus"` + + // The date and time the RPC was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // If this RPC is peered, this value is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other RPC. + PeerId *string `mandatory:"false" json:"peerId"` + + // If this RPC is peered, this value is the region that contains the other RPC. + // Example: `us-ashburn-1` + PeerRegionName *string `mandatory:"false" json:"peerRegionName"` + + // If this RPC is peered, this value is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the other RPC's tenancy. + PeerTenancyId *string `mandatory:"false" json:"peerTenancyId"` +} + +func (m RemotePeeringConnection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemotePeeringConnection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRemotePeeringConnectionLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetRemotePeeringConnectionLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingRemotePeeringConnectionPeeringStatusEnum(string(m.PeeringStatus)); !ok && m.PeeringStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PeeringStatus: %s. Supported values are: %s.", m.PeeringStatus, strings.Join(GetRemotePeeringConnectionPeeringStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemotePeeringConnectionLifecycleStateEnum Enum with underlying type: string +type RemotePeeringConnectionLifecycleStateEnum string + +// Set of constants representing the allowable values for RemotePeeringConnectionLifecycleStateEnum +const ( + RemotePeeringConnectionLifecycleStateAvailable RemotePeeringConnectionLifecycleStateEnum = "AVAILABLE" + RemotePeeringConnectionLifecycleStateProvisioning RemotePeeringConnectionLifecycleStateEnum = "PROVISIONING" + RemotePeeringConnectionLifecycleStateTerminating RemotePeeringConnectionLifecycleStateEnum = "TERMINATING" + RemotePeeringConnectionLifecycleStateTerminated RemotePeeringConnectionLifecycleStateEnum = "TERMINATED" +) + +var mappingRemotePeeringConnectionLifecycleStateEnum = map[string]RemotePeeringConnectionLifecycleStateEnum{ + "AVAILABLE": RemotePeeringConnectionLifecycleStateAvailable, + "PROVISIONING": RemotePeeringConnectionLifecycleStateProvisioning, + "TERMINATING": RemotePeeringConnectionLifecycleStateTerminating, + "TERMINATED": RemotePeeringConnectionLifecycleStateTerminated, +} + +var mappingRemotePeeringConnectionLifecycleStateEnumLowerCase = map[string]RemotePeeringConnectionLifecycleStateEnum{ + "available": RemotePeeringConnectionLifecycleStateAvailable, + "provisioning": RemotePeeringConnectionLifecycleStateProvisioning, + "terminating": RemotePeeringConnectionLifecycleStateTerminating, + "terminated": RemotePeeringConnectionLifecycleStateTerminated, +} + +// GetRemotePeeringConnectionLifecycleStateEnumValues Enumerates the set of values for RemotePeeringConnectionLifecycleStateEnum +func GetRemotePeeringConnectionLifecycleStateEnumValues() []RemotePeeringConnectionLifecycleStateEnum { + values := make([]RemotePeeringConnectionLifecycleStateEnum, 0) + for _, v := range mappingRemotePeeringConnectionLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetRemotePeeringConnectionLifecycleStateEnumStringValues Enumerates the set of values in String for RemotePeeringConnectionLifecycleStateEnum +func GetRemotePeeringConnectionLifecycleStateEnumStringValues() []string { + return []string{ + "AVAILABLE", + "PROVISIONING", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingRemotePeeringConnectionLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRemotePeeringConnectionLifecycleStateEnum(val string) (RemotePeeringConnectionLifecycleStateEnum, bool) { + enum, ok := mappingRemotePeeringConnectionLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// RemotePeeringConnectionPeeringStatusEnum Enum with underlying type: string +type RemotePeeringConnectionPeeringStatusEnum string + +// Set of constants representing the allowable values for RemotePeeringConnectionPeeringStatusEnum +const ( + RemotePeeringConnectionPeeringStatusInvalid RemotePeeringConnectionPeeringStatusEnum = "INVALID" + RemotePeeringConnectionPeeringStatusNew RemotePeeringConnectionPeeringStatusEnum = "NEW" + RemotePeeringConnectionPeeringStatusPending RemotePeeringConnectionPeeringStatusEnum = "PENDING" + RemotePeeringConnectionPeeringStatusPeered RemotePeeringConnectionPeeringStatusEnum = "PEERED" + RemotePeeringConnectionPeeringStatusRevoked RemotePeeringConnectionPeeringStatusEnum = "REVOKED" +) + +var mappingRemotePeeringConnectionPeeringStatusEnum = map[string]RemotePeeringConnectionPeeringStatusEnum{ + "INVALID": RemotePeeringConnectionPeeringStatusInvalid, + "NEW": RemotePeeringConnectionPeeringStatusNew, + "PENDING": RemotePeeringConnectionPeeringStatusPending, + "PEERED": RemotePeeringConnectionPeeringStatusPeered, + "REVOKED": RemotePeeringConnectionPeeringStatusRevoked, +} + +var mappingRemotePeeringConnectionPeeringStatusEnumLowerCase = map[string]RemotePeeringConnectionPeeringStatusEnum{ + "invalid": RemotePeeringConnectionPeeringStatusInvalid, + "new": RemotePeeringConnectionPeeringStatusNew, + "pending": RemotePeeringConnectionPeeringStatusPending, + "peered": RemotePeeringConnectionPeeringStatusPeered, + "revoked": RemotePeeringConnectionPeeringStatusRevoked, +} + +// GetRemotePeeringConnectionPeeringStatusEnumValues Enumerates the set of values for RemotePeeringConnectionPeeringStatusEnum +func GetRemotePeeringConnectionPeeringStatusEnumValues() []RemotePeeringConnectionPeeringStatusEnum { + values := make([]RemotePeeringConnectionPeeringStatusEnum, 0) + for _, v := range mappingRemotePeeringConnectionPeeringStatusEnum { + values = append(values, v) + } + return values +} + +// GetRemotePeeringConnectionPeeringStatusEnumStringValues Enumerates the set of values in String for RemotePeeringConnectionPeeringStatusEnum +func GetRemotePeeringConnectionPeeringStatusEnumStringValues() []string { + return []string{ + "INVALID", + "NEW", + "PENDING", + "PEERED", + "REVOKED", + } +} + +// GetMappingRemotePeeringConnectionPeeringStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRemotePeeringConnectionPeeringStatusEnum(val string) (RemotePeeringConnectionPeeringStatusEnum, bool) { + enum, ok := mappingRemotePeeringConnectionPeeringStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_create_details.go new file mode 100644 index 0000000000..fb7c8fc1cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_create_details.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemotePeeringConnectionDrgAttachmentNetworkCreateDetails The representation of RemotePeeringConnectionDrgAttachmentNetworkCreateDetails +type RemotePeeringConnectionDrgAttachmentNetworkCreateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment that contains the remote peering connection. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The BGP ASN to use for the remote peering connection's route target. + RegionalOciAsn *string `mandatory:"true" json:"regionalOciAsn"` + + // Whether the RPC attachment is for a GFC DRG, indicating the mpls label should be + // allocated from the VC label range. + // Example: `true` + IsGlobalFastConnect *bool `mandatory:"false" json:"isGlobalFastConnect"` +} + +//GetId returns Id +func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) GetId() *string { + return m.Id +} + +func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m RemotePeeringConnectionDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkCreateDetails RemotePeeringConnectionDrgAttachmentNetworkCreateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkCreateDetails + }{ + "REMOTE_PEERING_CONNECTION", + (MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkCreateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_details.go new file mode 100644 index 0000000000..2c4c507592 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remote_peering_connection_drg_attachment_network_details.go @@ -0,0 +1,86 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemotePeeringConnectionDrgAttachmentNetworkDetails Specifies the DRG attachment to another DRG. +type RemotePeeringConnectionDrgAttachmentNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The remote Oracle Cloud Infrastructure region name. + PeerRegionName *string `mandatory:"false" json:"peerRegionName"` + + // The attachment route target. + PeerAttachmentRouteTarget *string `mandatory:"false" json:"peerAttachmentRouteTarget"` + + // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors + // tagged with the attachment's import route target. + ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` + + // Routes which are exported to the attachment are exported to the route reflectors + // with the route target set to the value of the attachment's export route target. + ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` + + // The MPLS label of the DRG attachment. + MplsLabel *int `mandatory:"false" json:"mplsLabel"` + + // The BGP ASN to use for the IPSec connection's route target. + RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` + + // IPv4 address used to encapsulate ingress traffic to the DRG through this attachment + IngressVip *string `mandatory:"false" json:"ingressVip"` +} + +//GetId returns Id +func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) GetId() *string { + return m.Id +} + +func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m RemotePeeringConnectionDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkDetails RemotePeeringConnectionDrgAttachmentNetworkDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkDetails + }{ + "REMOTE_PEERING_CONNECTION", + (MarshalTypeRemotePeeringConnectionDrgAttachmentNetworkDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_details.go new file mode 100644 index 0000000000..a71f4df0e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveAdditionalRouteRulesDetails The configuration details for the remove rules operation. Only one of the three properties should be +// supplied to call the removeAdditionalRouteRules API. +type RemoveAdditionalRouteRulesDetails struct { + + // The list of route rule identifiers used for removing route rules from route table. + AdditionalRouteRuleIds []string `mandatory:"false" json:"additionalRouteRuleIds"` + + // The list of destinations used for removing route rules from route table. This is only supplied + // when additionalRouteRuleIds are not provided. + Destinations []string `mandatory:"false" json:"destinations"` + + // The pairs of used for removing route rules from route table. This is only + // supplied when additionalRouteRules and destinations are not provided. + RouteDestinationRouteTargets []RouteDestinationRouteTargetDetails `mandatory:"false" json:"routeDestinationRouteTargets"` +} + +func (m RemoveAdditionalRouteRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveAdditionalRouteRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_request_response.go index 2002b2ecbe..9618d00688 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_additional_route_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_additional_route_rules_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveAdditionalRouteRulesRequest wrapper for the RemoveAdditionalRouteRules operation type RemoveAdditionalRouteRulesRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // Request to remove route rules from a given route table. @@ -39,6 +41,10 @@ func (request RemoveAdditionalRouteRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveAdditionalRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request RemoveAdditionalRouteRulesRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveAdditionalRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveAdditionalRouteRulesResponse wrapper for the RemoveAdditionalRouteRules operation type RemoveAdditionalRouteRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_peering_connection_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_peering_connection_request_response.go index 7be7e952d4..c2856a1be1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_peering_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveDrgPeeringConnectionRequest wrapper for the RemoveDrgPeeringConnection operation @@ -31,6 +33,10 @@ func (request RemoveDrgPeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveDrgPeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request RemoveDrgPeeringConnectionRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveDrgPeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveDrgPeeringConnectionResponse wrapper for the RemoveDrgPeeringConnection operation type RemoveDrgPeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_details.go new file mode 100644 index 0000000000..b9e7875293 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveDrgRouteDistributionStatementsDetails Details request to remove statements from a route distribution. +type RemoveDrgRouteDistributionStatementsDetails struct { + + // The Oracle-assigned ID of each route distribution to remove. + StatementIds []string `mandatory:"false" json:"statementIds"` +} + +func (m RemoveDrgRouteDistributionStatementsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveDrgRouteDistributionStatementsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_request_response.go index ac847dc336..e98318b023 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_distribution_statements_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_distribution_statements_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveDrgRouteDistributionStatementsRequest wrapper for the RemoveDrgRouteDistributionStatements operation @@ -34,6 +36,10 @@ func (request RemoveDrgRouteDistributionStatementsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveDrgRouteDistributionStatementsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request RemoveDrgRouteDistributionStatementsRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveDrgRouteDistributionStatementsResponse wrapper for the RemoveDrgRouteDistributionStatements operation type RemoveDrgRouteDistributionStatementsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_details.go new file mode 100644 index 0000000000..077d69c0a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveDrgRouteRulesDetails Details used in a request to remove static routes from a DRG route table. +type RemoveDrgRouteRulesDetails struct { + + // The Oracle-assigned ID of each DRG route rule to be deleted. + RouteRuleIds []string `mandatory:"false" json:"routeRuleIds"` +} + +func (m RemoveDrgRouteRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveDrgRouteRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_request_response.go index cf0f9f8d40..9c56b021d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_drg_route_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_drg_route_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveDrgRouteRulesRequest wrapper for the RemoveDrgRouteRules operation @@ -34,6 +36,10 @@ func (request RemoveDrgRouteRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveDrgRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request RemoveDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveDrgRouteRulesResponse wrapper for the RemoveDrgRouteRules operation type RemoveDrgRouteRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_export_drg_route_distribution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_export_drg_route_distribution_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_export_drg_route_distribution_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_export_drg_route_distribution_request_response.go index 6fba053e54..848ff19c18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_export_drg_route_distribution_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_export_drg_route_distribution_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveExportDrgRouteDistributionRequest wrapper for the RemoveExportDrgRouteDistribution operation @@ -36,6 +38,10 @@ func (request RemoveExportDrgRouteDistributionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveExportDrgRouteDistributionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request RemoveExportDrgRouteDistributionRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveExportDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveExportDrgRouteDistributionResponse wrapper for the RemoveExportDrgRouteDistribution operation type RemoveExportDrgRouteDistributionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_image_shape_compatibility_entry_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_image_shape_compatibility_entry_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_image_shape_compatibility_entry_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_image_shape_compatibility_entry_request_response.go index 73bd0fbf04..426f6ccf84 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_image_shape_compatibility_entry_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_image_shape_compatibility_entry_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveImageShapeCompatibilityEntryRequest wrapper for the RemoveImageShapeCompatibilityEntry operation @@ -34,6 +36,10 @@ func (request RemoveImageShapeCompatibilityEntryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveImageShapeCompatibilityEntryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request RemoveImageShapeCompatibilityEntryRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveImageShapeCompatibilityEntryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveImageShapeCompatibilityEntryResponse wrapper for the RemoveImageShapeCompatibilityEntry operation type RemoveImageShapeCompatibilityEntryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_import_drg_route_distribution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_import_drg_route_distribution_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_import_drg_route_distribution_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_import_drg_route_distribution_request_response.go index e8c1a9bfe6..6a4e3aacce 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_import_drg_route_distribution_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_import_drg_route_distribution_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveImportDrgRouteDistributionRequest wrapper for the RemoveImportDrgRouteDistribution operation @@ -36,6 +38,10 @@ func (request RemoveImportDrgRouteDistributionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveImportDrgRouteDistributionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request RemoveImportDrgRouteDistributionRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveImportDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveImportDrgRouteDistributionResponse wrapper for the RemoveImportDrgRouteDistribution operation type RemoveImportDrgRouteDistributionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_subnet_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_subnet_cidr_request_response.go new file mode 100644 index 0000000000..feb7aa61a9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_subnet_cidr_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RemoveIpv6SubnetCidrRequest wrapper for the RemoveIpv6SubnetCidr operation +type RemoveIpv6SubnetCidrRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. + SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` + + // Details object for removing an IPv6 SUBNET CIDR. + RemoveSubnetIpv6CidrDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RemoveIpv6SubnetCidrRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveIpv6SubnetCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RemoveIpv6SubnetCidrRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveIpv6SubnetCidrRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveIpv6SubnetCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveIpv6SubnetCidrResponse wrapper for the RemoveIpv6SubnetCidr operation +type RemoveIpv6SubnetCidrResponse struct { + + // The underlying http response + RawResponse *http.Response + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response RemoveIpv6SubnetCidrResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveIpv6SubnetCidrResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_vcn_cidr_request_response.go new file mode 100644 index 0000000000..17c3aa9193 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_ipv6_vcn_cidr_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RemoveIpv6VcnCidrRequest wrapper for the RemoveIpv6VcnCidr operation +type RemoveIpv6VcnCidrRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN. + VcnId *string `mandatory:"true" contributesTo:"path" name:"vcnId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Details object for removing a VCN ipv6 CIDR. + RemoveVcnIpv6CidrDetails `contributesTo:"body"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RemoveIpv6VcnCidrRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveIpv6VcnCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RemoveIpv6VcnCidrRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveIpv6VcnCidrRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveIpv6VcnCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveIpv6VcnCidrResponse wrapper for the RemoveIpv6VcnCidr operation +type RemoveIpv6VcnCidrResponse struct { + + // The underlying http response + RawResponse *http.Response + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response RemoveIpv6VcnCidrResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveIpv6VcnCidrResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_details.go new file mode 100644 index 0000000000..1050f102fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveNetworkSecurityGroupSecurityRulesDetails The representation of RemoveNetworkSecurityGroupSecurityRulesDetails +type RemoveNetworkSecurityGroupSecurityRulesDetails struct { + + // The Oracle-assigned ID of each SecurityRule to be deleted. + SecurityRuleIds []string `mandatory:"false" json:"securityRuleIds"` +} + +func (m RemoveNetworkSecurityGroupSecurityRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveNetworkSecurityGroupSecurityRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_request_response.go index 103586c39a..fc3ba8ecdb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_network_security_group_security_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_network_security_group_security_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveNetworkSecurityGroupSecurityRulesRequest wrapper for the RemoveNetworkSecurityGroupSecurityRules operation @@ -35,6 +37,10 @@ func (request RemoveNetworkSecurityGroupSecurityRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveNetworkSecurityGroupSecurityRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request RemoveNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *com return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveNetworkSecurityGroupSecurityRulesResponse wrapper for the RemoveNetworkSecurityGroupSecurityRules operation type RemoveNetworkSecurityGroupSecurityRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_details.go new file mode 100644 index 0000000000..ecb1c9b42f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemovePublicIpPoolCapacityDetails The information needed to remove capacity from a public IP pool. +type RemovePublicIpPoolCapacityDetails struct { + + // The CIDR block to remove from the public IP pool. + // Example: `10.0.1.0/24` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` +} + +func (m RemovePublicIpPoolCapacityDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemovePublicIpPoolCapacityDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_request_response.go index 22f4f4530d..c662c80b97 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_public_ip_pool_capacity_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_public_ip_pool_capacity_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemovePublicIpPoolCapacityRequest wrapper for the RemovePublicIpPoolCapacity operation @@ -41,6 +43,10 @@ func (request RemovePublicIpPoolCapacityRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemovePublicIpPoolCapacityRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request RemovePublicIpPoolCapacityRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemovePublicIpPoolCapacityRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemovePublicIpPoolCapacityResponse wrapper for the RemovePublicIpPoolCapacity operation type RemovePublicIpPoolCapacityResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_subnet_ipv6_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_subnet_ipv6_cidr_details.go new file mode 100644 index 0000000000..8e4282ec69 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_subnet_ipv6_cidr_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveSubnetIpv6CidrDetails Details object for removing an IPv6 CIDR Block from a Subnet. +type RemoveSubnetIpv6CidrDetails struct { + + // This field is not required and should only be specified when removing an IPv6 CIDR + // from a subnet's IPv6 address space. + // SeeIPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `2001:0db8:0123::/64` + Ipv6CidrBlock *string `mandatory:"true" json:"ipv6CidrBlock"` +} + +func (m RemoveSubnetIpv6CidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveSubnetIpv6CidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_details.go new file mode 100644 index 0000000000..8921f3af26 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveVcnCidrDetails Details for removing a CIDR block from a VCN. +type RemoveVcnCidrDetails struct { + + // The CIDR block to remove. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` +} + +func (m RemoveVcnCidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveVcnCidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go index f291b0980f..8cc52e65b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/remove_vcn_cidr_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_cidr_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveVcnCidrRequest wrapper for the RemoveVcnCidr operation @@ -46,6 +48,10 @@ func (request RemoveVcnCidrRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveVcnCidrRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request RemoveVcnCidrRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveVcnCidrRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveVcnCidrResponse wrapper for the RemoveVcnCidr operation type RemoveVcnCidrResponse struct { @@ -71,7 +88,8 @@ type RemoveVcnCidrResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_ipv6_cidr_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_ipv6_cidr_details.go new file mode 100644 index 0000000000..fe257e0cf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/remove_vcn_ipv6_cidr_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveVcnIpv6CidrDetails Details used when removing ULA or private IPv6 prefix or an IPv6 GUA assigned by Oracle or BYOIPv6 prefix. You can only remove one of these per request. +type RemoveVcnIpv6CidrDetails struct { + + // This field is not required and should only be specified when removing ULA or private IPv6 prefix or an IPv6 GUA assigned by Oracle or BYOIPv6 prefix + // from a VCN's IPv6 address space. + // SeeIPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `2001:0db8:0123::/56` + Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` +} + +func (m RemoveVcnIpv6CidrDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveVcnIpv6CidrDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_action_details.go new file mode 100644 index 0000000000..78e3dfbcda --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_action_details.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ResetActionDetails Parameters for the `reset` InstanceAction. If omitted, default values are used. +type ResetActionDetails struct { + + // For instances that use a DenseIO shape, the flag denoting whether + // reboot migration (https://docs.cloud.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm#reboot) + // is performed for the instance. The default value is `false`. + // If the instance has a date in the Maintenance reboot field and you do nothing (or set this flag to `false`), the instance + // will be rebuilt at the scheduled maintenance time. The instance will experience 2-6 hours of downtime during the + // maintenance process. The local NVMe-based SSD will be preserved. + // If you want to minimize downtime and can delete the SSD, you can set this flag to `true` and proactively reboot the + // instance before the scheduled maintenance time. The instance will be reboot migrated to a healthy host and the SSD will be + // deleted. A short downtime occurs during the migration. + // **Caution:** When `true`, the SSD is permanently deleted. We recommend that you create a backup of the SSD before proceeding. + AllowDenseRebootMigration *bool `mandatory:"false" json:"allowDenseRebootMigration"` +} + +func (m ResetActionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ResetActionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ResetActionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeResetActionDetails ResetActionDetails + s := struct { + DiscriminatorParam string `json:"actionType"` + MarshalTypeResetActionDetails + }{ + "reset", + (MarshalTypeResetActionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/reset_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/reset_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go index ccddeaf425..8108f708fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/reset_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reset_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ResetInstancePoolRequest wrapper for the ResetInstancePool operation @@ -43,6 +45,10 @@ func (request ResetInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ResetInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request ResetInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ResetInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ResetInstancePoolResponse wrapper for the ResetInstancePool operation type ResetInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_configuration.go new file mode 100644 index 0000000000..3c7e54e25a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_configuration.go @@ -0,0 +1,313 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReverseConnectionConfiguration Reverse connection configuration details for the private endpoint. +// When reverse connection support is enabled, the private endpoint allows reverse connections to be +// established to the customer VCN. The packets traveling from the service's VCN to the customer's +// VCN in a reverse connection use a different source IP address than the private endpoint's IP address. +type ReverseConnectionConfiguration struct { + + // The reverse connection configuration's current state. + LifecycleState ReverseConnectionConfigurationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The list of IP addresses in the customer VCN to be used as a source IP for reverse connection packets + // traveling from the service's VCN to the customer's VCN. + ReverseConnectionsSourceIps []ReverseConnectionsSourceIpDetails `mandatory:"false" json:"reverseConnectionsSourceIps"` + + // Whether a DNS proxy is configured for the reverse connection. If the service + // does not intend to use DNS FQDN to communicate to customer endpoints, set this to `false`. + // Example: `false` + IsProxyEnabled *bool `mandatory:"false" json:"isProxyEnabled"` + + // List of proxies to be spawned for this reverse connection. All proxy types specified in + // this list will be spawned and they will use the proxy IP address. + // If not specified, the field will default back to a list with DNS proxy only. + ProxyType []ReverseConnectionConfigurationProxyTypeEnum `mandatory:"false" json:"proxyType,omitempty"` + + // The IP address in the service VCN to be used to reach the reverse connection + // proxies - DNS/SCAN. + ProxyIp *string `mandatory:"false" json:"proxyIp"` + + // The IP address in the service VCN to be used to reach the reverse connection + // proxies - DNS/SCAN. + // This field will be deprecated in favor of proxyIp in future. + DnsProxyIp *string `mandatory:"false" json:"dnsProxyIp"` + + // The context in which the DNS proxy will resolve the DNS queries. The default is `SERVICE`. + // For example: if the service does not know the specific DNS zones for the customer VCNs, set + // this to `CUSTOMER`, and set `excludedDnsZones` to the list of DNS zones in your service + // provider VCN. + // Allowed values: + // * `SERVICE` : All DNS queries will be resolved within the service VCN's DNS context, + // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. + // * `CUSTOMER` : All DNS queries will be resolved within the customer VCN's DNS context, + // unless the FQDN belongs to one of zones in the `excludedDnsZones` list. + DefaultDnsResolutionContext ReverseConnectionConfigurationDefaultDnsResolutionContextEnum `mandatory:"false" json:"defaultDnsResolutionContext,omitempty"` + + // List of DNS zones to exclude from the default DNS resolution context. + ExcludedDnsZones []string `mandatory:"false" json:"excludedDnsZones"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service's subnet where + // the DNS proxy endpoint will be created. + ServiceSubnetId *string `mandatory:"false" json:"serviceSubnetId"` + + // A list of the OCIDs of the network security groups that the reverse connection's VNIC belongs to. + // For more information about NSGs, see + // NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // Number of customer endpoints that the service provider expects to establish connections to using this RCE. The default is 0. + // When non-zero value is specified, reverse connection configuration will be allocated with a list of CIDRs, from + // which NAT IP addresses will be allocated. These list of CIDRs will not be shared by other reverse + // connection enabled private endpoints. + // When zero is specified, reverse connection configuration will get NAT IP addresses from common pool of CIDRs, + // which will be shared with other reverse connection enabled private endpoints. + // If the private endpoint was enabled with reverse connection with 0 already, the field is not updatable. + // The size may not be updated with smaller number than previously specified value, but may be increased. + CustomerEndpointsSize *int `mandatory:"false" json:"customerEndpointsSize"` + + // List of CIDRs that this reverse connection configuration will allocate the NAT IP addresses from. + // CIDRs on this list is guaranteed to be not shared by other reverse connection enabled private endpoints. + ReverseConnectionNatIpCidrs []string `mandatory:"false" json:"reverseConnectionNatIpCidrs"` + + // Layer 4 transport protocol to be used when resolving DNS queries within the default DNS resolution context. + DefaultDnsContextTransport ReverseConnectionConfigurationDefaultDnsContextTransportEnum `mandatory:"false" json:"defaultDnsContextTransport,omitempty"` + + // Whether the reverse connection should be configured with single IP. If the service + // does not intend to use single IP for both forward and reverse connection, set this to `false`. + // Example: `false` + IsSingleIpEnabled *bool `mandatory:"false" json:"isSingleIpEnabled"` +} + +func (m ReverseConnectionConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReverseConnectionConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingReverseConnectionConfigurationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetReverseConnectionConfigurationLifecycleStateEnumStringValues(), ","))) + } + for _, val := range m.ProxyType { + if _, ok := GetMappingReverseConnectionConfigurationProxyTypeEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProxyType: %s. Supported values are: %s.", val, strings.Join(GetReverseConnectionConfigurationProxyTypeEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingReverseConnectionConfigurationDefaultDnsResolutionContextEnum(string(m.DefaultDnsResolutionContext)); !ok && m.DefaultDnsResolutionContext != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DefaultDnsResolutionContext: %s. Supported values are: %s.", m.DefaultDnsResolutionContext, strings.Join(GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumStringValues(), ","))) + } + if _, ok := GetMappingReverseConnectionConfigurationDefaultDnsContextTransportEnum(string(m.DefaultDnsContextTransport)); !ok && m.DefaultDnsContextTransport != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DefaultDnsContextTransport: %s. Supported values are: %s.", m.DefaultDnsContextTransport, strings.Join(GetReverseConnectionConfigurationDefaultDnsContextTransportEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReverseConnectionConfigurationLifecycleStateEnum Enum with underlying type: string +type ReverseConnectionConfigurationLifecycleStateEnum string + +// Set of constants representing the allowable values for ReverseConnectionConfigurationLifecycleStateEnum +const ( + ReverseConnectionConfigurationLifecycleStateProvisioning ReverseConnectionConfigurationLifecycleStateEnum = "PROVISIONING" + ReverseConnectionConfigurationLifecycleStateAvailable ReverseConnectionConfigurationLifecycleStateEnum = "AVAILABLE" + ReverseConnectionConfigurationLifecycleStateUpdating ReverseConnectionConfigurationLifecycleStateEnum = "UPDATING" + ReverseConnectionConfigurationLifecycleStateTerminating ReverseConnectionConfigurationLifecycleStateEnum = "TERMINATING" + ReverseConnectionConfigurationLifecycleStateTerminated ReverseConnectionConfigurationLifecycleStateEnum = "TERMINATED" + ReverseConnectionConfigurationLifecycleStateFailed ReverseConnectionConfigurationLifecycleStateEnum = "FAILED" +) + +var mappingReverseConnectionConfigurationLifecycleStateEnum = map[string]ReverseConnectionConfigurationLifecycleStateEnum{ + "PROVISIONING": ReverseConnectionConfigurationLifecycleStateProvisioning, + "AVAILABLE": ReverseConnectionConfigurationLifecycleStateAvailable, + "UPDATING": ReverseConnectionConfigurationLifecycleStateUpdating, + "TERMINATING": ReverseConnectionConfigurationLifecycleStateTerminating, + "TERMINATED": ReverseConnectionConfigurationLifecycleStateTerminated, + "FAILED": ReverseConnectionConfigurationLifecycleStateFailed, +} + +var mappingReverseConnectionConfigurationLifecycleStateEnumLowerCase = map[string]ReverseConnectionConfigurationLifecycleStateEnum{ + "provisioning": ReverseConnectionConfigurationLifecycleStateProvisioning, + "available": ReverseConnectionConfigurationLifecycleStateAvailable, + "updating": ReverseConnectionConfigurationLifecycleStateUpdating, + "terminating": ReverseConnectionConfigurationLifecycleStateTerminating, + "terminated": ReverseConnectionConfigurationLifecycleStateTerminated, + "failed": ReverseConnectionConfigurationLifecycleStateFailed, +} + +// GetReverseConnectionConfigurationLifecycleStateEnumValues Enumerates the set of values for ReverseConnectionConfigurationLifecycleStateEnum +func GetReverseConnectionConfigurationLifecycleStateEnumValues() []ReverseConnectionConfigurationLifecycleStateEnum { + values := make([]ReverseConnectionConfigurationLifecycleStateEnum, 0) + for _, v := range mappingReverseConnectionConfigurationLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetReverseConnectionConfigurationLifecycleStateEnumStringValues Enumerates the set of values in String for ReverseConnectionConfigurationLifecycleStateEnum +func GetReverseConnectionConfigurationLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + } +} + +// GetMappingReverseConnectionConfigurationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReverseConnectionConfigurationLifecycleStateEnum(val string) (ReverseConnectionConfigurationLifecycleStateEnum, bool) { + enum, ok := mappingReverseConnectionConfigurationLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ReverseConnectionConfigurationProxyTypeEnum Enum with underlying type: string +type ReverseConnectionConfigurationProxyTypeEnum string + +// Set of constants representing the allowable values for ReverseConnectionConfigurationProxyTypeEnum +const ( + ReverseConnectionConfigurationProxyTypeDns ReverseConnectionConfigurationProxyTypeEnum = "DNS" + ReverseConnectionConfigurationProxyTypeScan ReverseConnectionConfigurationProxyTypeEnum = "SCAN" +) + +var mappingReverseConnectionConfigurationProxyTypeEnum = map[string]ReverseConnectionConfigurationProxyTypeEnum{ + "DNS": ReverseConnectionConfigurationProxyTypeDns, + "SCAN": ReverseConnectionConfigurationProxyTypeScan, +} + +var mappingReverseConnectionConfigurationProxyTypeEnumLowerCase = map[string]ReverseConnectionConfigurationProxyTypeEnum{ + "dns": ReverseConnectionConfigurationProxyTypeDns, + "scan": ReverseConnectionConfigurationProxyTypeScan, +} + +// GetReverseConnectionConfigurationProxyTypeEnumValues Enumerates the set of values for ReverseConnectionConfigurationProxyTypeEnum +func GetReverseConnectionConfigurationProxyTypeEnumValues() []ReverseConnectionConfigurationProxyTypeEnum { + values := make([]ReverseConnectionConfigurationProxyTypeEnum, 0) + for _, v := range mappingReverseConnectionConfigurationProxyTypeEnum { + values = append(values, v) + } + return values +} + +// GetReverseConnectionConfigurationProxyTypeEnumStringValues Enumerates the set of values in String for ReverseConnectionConfigurationProxyTypeEnum +func GetReverseConnectionConfigurationProxyTypeEnumStringValues() []string { + return []string{ + "DNS", + "SCAN", + } +} + +// GetMappingReverseConnectionConfigurationProxyTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReverseConnectionConfigurationProxyTypeEnum(val string) (ReverseConnectionConfigurationProxyTypeEnum, bool) { + enum, ok := mappingReverseConnectionConfigurationProxyTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ReverseConnectionConfigurationDefaultDnsResolutionContextEnum Enum with underlying type: string +type ReverseConnectionConfigurationDefaultDnsResolutionContextEnum string + +// Set of constants representing the allowable values for ReverseConnectionConfigurationDefaultDnsResolutionContextEnum +const ( + ReverseConnectionConfigurationDefaultDnsResolutionContextService ReverseConnectionConfigurationDefaultDnsResolutionContextEnum = "SERVICE" + ReverseConnectionConfigurationDefaultDnsResolutionContextCustomer ReverseConnectionConfigurationDefaultDnsResolutionContextEnum = "CUSTOMER" +) + +var mappingReverseConnectionConfigurationDefaultDnsResolutionContextEnum = map[string]ReverseConnectionConfigurationDefaultDnsResolutionContextEnum{ + "SERVICE": ReverseConnectionConfigurationDefaultDnsResolutionContextService, + "CUSTOMER": ReverseConnectionConfigurationDefaultDnsResolutionContextCustomer, +} + +var mappingReverseConnectionConfigurationDefaultDnsResolutionContextEnumLowerCase = map[string]ReverseConnectionConfigurationDefaultDnsResolutionContextEnum{ + "service": ReverseConnectionConfigurationDefaultDnsResolutionContextService, + "customer": ReverseConnectionConfigurationDefaultDnsResolutionContextCustomer, +} + +// GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumValues Enumerates the set of values for ReverseConnectionConfigurationDefaultDnsResolutionContextEnum +func GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumValues() []ReverseConnectionConfigurationDefaultDnsResolutionContextEnum { + values := make([]ReverseConnectionConfigurationDefaultDnsResolutionContextEnum, 0) + for _, v := range mappingReverseConnectionConfigurationDefaultDnsResolutionContextEnum { + values = append(values, v) + } + return values +} + +// GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumStringValues Enumerates the set of values in String for ReverseConnectionConfigurationDefaultDnsResolutionContextEnum +func GetReverseConnectionConfigurationDefaultDnsResolutionContextEnumStringValues() []string { + return []string{ + "SERVICE", + "CUSTOMER", + } +} + +// GetMappingReverseConnectionConfigurationDefaultDnsResolutionContextEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReverseConnectionConfigurationDefaultDnsResolutionContextEnum(val string) (ReverseConnectionConfigurationDefaultDnsResolutionContextEnum, bool) { + enum, ok := mappingReverseConnectionConfigurationDefaultDnsResolutionContextEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ReverseConnectionConfigurationDefaultDnsContextTransportEnum Enum with underlying type: string +type ReverseConnectionConfigurationDefaultDnsContextTransportEnum string + +// Set of constants representing the allowable values for ReverseConnectionConfigurationDefaultDnsContextTransportEnum +const ( + ReverseConnectionConfigurationDefaultDnsContextTransportTcp ReverseConnectionConfigurationDefaultDnsContextTransportEnum = "TCP" + ReverseConnectionConfigurationDefaultDnsContextTransportUdp ReverseConnectionConfigurationDefaultDnsContextTransportEnum = "UDP" +) + +var mappingReverseConnectionConfigurationDefaultDnsContextTransportEnum = map[string]ReverseConnectionConfigurationDefaultDnsContextTransportEnum{ + "TCP": ReverseConnectionConfigurationDefaultDnsContextTransportTcp, + "UDP": ReverseConnectionConfigurationDefaultDnsContextTransportUdp, +} + +var mappingReverseConnectionConfigurationDefaultDnsContextTransportEnumLowerCase = map[string]ReverseConnectionConfigurationDefaultDnsContextTransportEnum{ + "tcp": ReverseConnectionConfigurationDefaultDnsContextTransportTcp, + "udp": ReverseConnectionConfigurationDefaultDnsContextTransportUdp, +} + +// GetReverseConnectionConfigurationDefaultDnsContextTransportEnumValues Enumerates the set of values for ReverseConnectionConfigurationDefaultDnsContextTransportEnum +func GetReverseConnectionConfigurationDefaultDnsContextTransportEnumValues() []ReverseConnectionConfigurationDefaultDnsContextTransportEnum { + values := make([]ReverseConnectionConfigurationDefaultDnsContextTransportEnum, 0) + for _, v := range mappingReverseConnectionConfigurationDefaultDnsContextTransportEnum { + values = append(values, v) + } + return values +} + +// GetReverseConnectionConfigurationDefaultDnsContextTransportEnumStringValues Enumerates the set of values in String for ReverseConnectionConfigurationDefaultDnsContextTransportEnum +func GetReverseConnectionConfigurationDefaultDnsContextTransportEnumStringValues() []string { + return []string{ + "TCP", + "UDP", + } +} + +// GetMappingReverseConnectionConfigurationDefaultDnsContextTransportEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReverseConnectionConfigurationDefaultDnsContextTransportEnum(val string) (ReverseConnectionConfigurationDefaultDnsContextTransportEnum, bool) { + enum, ok := mappingReverseConnectionConfigurationDefaultDnsContextTransportEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip.go new file mode 100644 index 0000000000..2a3fb8467c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip.go @@ -0,0 +1,114 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReverseConnectionNatIp The current NAT IP address that corresponds to a specific customer IP address. +// To establish a reverse connection to a customer IP address, use the NAT IP +// address as the destination. +type ReverseConnectionNatIp struct { + + // The reverse connection NAT IP's current state. + LifecycleState ReverseConnectionNatIpLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the reverse connection NAT IP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The customer's IP address that corresponds to the reverse connection NAT IP address. + ReverseConnectionCustomerIp *string `mandatory:"true" json:"reverseConnectionCustomerIp"` + + // The reverse connection NAT IP address corresonding to the customer IP and private endpoint. + // Use this address as the destination when establishing a reverse connection to a customer's + // IP address. + ReverseConnectionNatIp *string `mandatory:"true" json:"reverseConnectionNatIp"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint + // associated with the reverse connection. + PrivateEndpointId *string `mandatory:"true" json:"privateEndpointId"` +} + +func (m ReverseConnectionNatIp) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReverseConnectionNatIp) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReverseConnectionNatIpLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetReverseConnectionNatIpLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReverseConnectionNatIpLifecycleStateEnum Enum with underlying type: string +type ReverseConnectionNatIpLifecycleStateEnum string + +// Set of constants representing the allowable values for ReverseConnectionNatIpLifecycleStateEnum +const ( + ReverseConnectionNatIpLifecycleStateProvisioning ReverseConnectionNatIpLifecycleStateEnum = "PROVISIONING" + ReverseConnectionNatIpLifecycleStateAvailable ReverseConnectionNatIpLifecycleStateEnum = "AVAILABLE" + ReverseConnectionNatIpLifecycleStateTerminating ReverseConnectionNatIpLifecycleStateEnum = "TERMINATING" + ReverseConnectionNatIpLifecycleStateTerminated ReverseConnectionNatIpLifecycleStateEnum = "TERMINATED" +) + +var mappingReverseConnectionNatIpLifecycleStateEnum = map[string]ReverseConnectionNatIpLifecycleStateEnum{ + "PROVISIONING": ReverseConnectionNatIpLifecycleStateProvisioning, + "AVAILABLE": ReverseConnectionNatIpLifecycleStateAvailable, + "TERMINATING": ReverseConnectionNatIpLifecycleStateTerminating, + "TERMINATED": ReverseConnectionNatIpLifecycleStateTerminated, +} + +var mappingReverseConnectionNatIpLifecycleStateEnumLowerCase = map[string]ReverseConnectionNatIpLifecycleStateEnum{ + "provisioning": ReverseConnectionNatIpLifecycleStateProvisioning, + "available": ReverseConnectionNatIpLifecycleStateAvailable, + "terminating": ReverseConnectionNatIpLifecycleStateTerminating, + "terminated": ReverseConnectionNatIpLifecycleStateTerminated, +} + +// GetReverseConnectionNatIpLifecycleStateEnumValues Enumerates the set of values for ReverseConnectionNatIpLifecycleStateEnum +func GetReverseConnectionNatIpLifecycleStateEnumValues() []ReverseConnectionNatIpLifecycleStateEnum { + values := make([]ReverseConnectionNatIpLifecycleStateEnum, 0) + for _, v := range mappingReverseConnectionNatIpLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetReverseConnectionNatIpLifecycleStateEnumStringValues Enumerates the set of values in String for ReverseConnectionNatIpLifecycleStateEnum +func GetReverseConnectionNatIpLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingReverseConnectionNatIpLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReverseConnectionNatIpLifecycleStateEnum(val string) (ReverseConnectionNatIpLifecycleStateEnum, bool) { + enum, ok := mappingReverseConnectionNatIpLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip_cidr_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip_cidr_summary.go new file mode 100644 index 0000000000..5a811a0a91 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connection_nat_ip_cidr_summary.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReverseConnectionNatIpCidrSummary The custom CIDR in the VCN. +type ReverseConnectionNatIpCidrSummary struct { + + // The custom CIDR that Service Provider used to provision Reverse Connection + Cidr *string `mandatory:"true" json:"cidr"` +} + +func (m ReverseConnectionNatIpCidrSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReverseConnectionNatIpCidrSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connections_source_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connections_source_ip_details.go new file mode 100644 index 0000000000..7b81c38399 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/reverse_connections_source_ip_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReverseConnectionsSourceIpDetails IP information for reverse connection configuration. Returned as part of the `PrivateEndpoint` object. +type ReverseConnectionsSourceIpDetails struct { + + // The IP address in the customer's VCN to be used as the source IP for reverse connection packets + // traveling from the customer's VCN to the service's VCN. + // Example: `10.0.4.9` + SourceIp *string `mandatory:"false" json:"sourceIp"` +} + +func (m ReverseConnectionsSourceIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReverseConnectionsSourceIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration.go new file mode 100644 index 0000000000..25c500b041 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RollbackDrgMigration Response from Drg Migration API +type RollbackDrgMigration struct { + + // The count of succesfully migrated DRGS from the batch. + SuccessCount *int `mandatory:"true" json:"successCount"` + + // The count of failed during DRGS during migration from the batch. + FailureCount *int `mandatory:"false" json:"failureCount"` + + // The OCIDs of the drgs which were successfully migrated. + SuccessfulDrgIds []string `mandatory:"false" json:"successfulDrgIds"` + + // The OCIDs of the drgs which were failed during migration. + FailedDrgIds []string `mandatory:"false" json:"failedDrgIds"` +} + +func (m RollbackDrgMigration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RollbackDrgMigration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_details.go new file mode 100644 index 0000000000..faf8bac148 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RollbackDrgMigrationDetails Request object to Drg Migration API +type RollbackDrgMigrationDetails struct { + + // The size of migration batch. + BatchSize *int `mandatory:"true" json:"batchSize"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) DRG to migrate. + DrgId *string `mandatory:"false" json:"drgId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to contain the DRG. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy to contain the DRG. + TenancyId *string `mandatory:"false" json:"tenancyId"` +} + +func (m RollbackDrgMigrationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RollbackDrgMigrationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_request_response.go index 1e57641b9a..914bbb2833 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_drg_migration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_drg_migration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RollbackDrgMigrationRequest wrapper for the RollbackDrgMigration operation @@ -38,6 +40,10 @@ func (request RollbackDrgMigrationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RollbackDrgMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request RollbackDrgMigrationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RollbackDrgMigrationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RollbackDrgMigrationResponse wrapper for the RollbackDrgMigration operation type RollbackDrgMigrationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_i_p_sec_connection_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_i_p_sec_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_i_p_sec_connection_request_response.go index ccdf201019..364ad26a9a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_i_p_sec_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RollbackIPSecConnectionRequest wrapper for the RollbackIPSecConnection operation type RollbackIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Unique identifier for the request. @@ -38,6 +40,10 @@ func (request RollbackIPSecConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RollbackIPSecConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request RollbackIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RollbackIPSecConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RollbackIPSecConnectionResponse wrapper for the RollbackIPSecConnection operation type RollbackIPSecConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_upgrade_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_upgrade_drg_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_upgrade_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_upgrade_drg_request_response.go index 0829758a2b..bf327b7295 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/rollback_upgrade_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/rollback_upgrade_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RollbackUpgradeDrgRequest wrapper for the RollbackUpgradeDrg operation type RollbackUpgradeDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -38,6 +40,10 @@ func (request RollbackUpgradeDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RollbackUpgradeDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request RollbackUpgradeDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RollbackUpgradeDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RollbackUpgradeDrgResponse wrapper for the RollbackUpgradeDrg operation type RollbackUpgradeDrgResponse struct { @@ -63,7 +80,8 @@ type RollbackUpgradeDrgResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/route_destination_route_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_destination_route_target_details.go new file mode 100644 index 0000000000..cce9eed28e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_destination_route_target_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RouteDestinationRouteTargetDetails The configuration details for the destination target pair used to call remove route rules. +type RouteDestinationRouteTargetDetails struct { + + // The destination of the route rule. + Destination *string `mandatory:"true" json:"destination"` + + // The target of the route rule. + Target *string `mandatory:"true" json:"target"` +} + +func (m RouteDestinationRouteTargetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RouteDestinationRouteTargetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/route_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_rule.go new file mode 100644 index 0000000000..790ce06fd7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_rule.go @@ -0,0 +1,170 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RouteRule A mapping between a destination IP address range and a virtual device to route matching +// packets to (a target). +type RouteRule struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the route rule's target. For information about the type of + // targets you can specify, see + // Route Tables (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingroutetables.htm). + NetworkEntityId *string `mandatory:"true" json:"networkEntityId"` + + // Deprecated. Instead use `destination` and `destinationType`. Requests that include both + // `cidrBlock` and `destination` will be rejected. + // A destination IP address range in CIDR notation. Matching packets will + // be routed to the indicated network entity (the target). + // Cannot be an IPv6 CIDR. + // Example: `0.0.0.0/0` + CidrBlock *string `mandatory:"false" json:"cidrBlock"` + + // Conceptually, this is the range of IP addresses used for matching when routing + // traffic. Required if you provide a `destinationType`. + // Allowed values: + // * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` + // or `2001:0db8:0123:45::/56`. If you set this to an IPv6 CIDR, the route rule's target + // can only be a DRG or internet gateway. + // IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a route rule for traffic destined for a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + Destination *string `mandatory:"false" json:"destination"` + + // Type of destination for the rule. Required if you provide a `destination`. + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + DestinationType RouteRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + // An optional description of your choice for the rule. + Description *string `mandatory:"false" json:"description"` + + // A route rule can be STATIC if manually added to the route table, LOCAL if added by OCI to the route table. + RouteType RouteRuleRouteTypeEnum `mandatory:"false" json:"routeType,omitempty"` +} + +func (m RouteRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RouteRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingRouteRuleDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetRouteRuleDestinationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingRouteRuleRouteTypeEnum(string(m.RouteType)); !ok && m.RouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RouteType: %s. Supported values are: %s.", m.RouteType, strings.Join(GetRouteRuleRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RouteRuleDestinationTypeEnum Enum with underlying type: string +type RouteRuleDestinationTypeEnum string + +// Set of constants representing the allowable values for RouteRuleDestinationTypeEnum +const ( + RouteRuleDestinationTypeCidrBlock RouteRuleDestinationTypeEnum = "CIDR_BLOCK" + RouteRuleDestinationTypeServiceCidrBlock RouteRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" +) + +var mappingRouteRuleDestinationTypeEnum = map[string]RouteRuleDestinationTypeEnum{ + "CIDR_BLOCK": RouteRuleDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": RouteRuleDestinationTypeServiceCidrBlock, +} + +var mappingRouteRuleDestinationTypeEnumLowerCase = map[string]RouteRuleDestinationTypeEnum{ + "cidr_block": RouteRuleDestinationTypeCidrBlock, + "service_cidr_block": RouteRuleDestinationTypeServiceCidrBlock, +} + +// GetRouteRuleDestinationTypeEnumValues Enumerates the set of values for RouteRuleDestinationTypeEnum +func GetRouteRuleDestinationTypeEnumValues() []RouteRuleDestinationTypeEnum { + values := make([]RouteRuleDestinationTypeEnum, 0) + for _, v := range mappingRouteRuleDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetRouteRuleDestinationTypeEnumStringValues Enumerates the set of values in String for RouteRuleDestinationTypeEnum +func GetRouteRuleDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + } +} + +// GetMappingRouteRuleDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRouteRuleDestinationTypeEnum(val string) (RouteRuleDestinationTypeEnum, bool) { + enum, ok := mappingRouteRuleDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// RouteRuleRouteTypeEnum Enum with underlying type: string +type RouteRuleRouteTypeEnum string + +// Set of constants representing the allowable values for RouteRuleRouteTypeEnum +const ( + RouteRuleRouteTypeStatic RouteRuleRouteTypeEnum = "STATIC" + RouteRuleRouteTypeLocal RouteRuleRouteTypeEnum = "LOCAL" +) + +var mappingRouteRuleRouteTypeEnum = map[string]RouteRuleRouteTypeEnum{ + "STATIC": RouteRuleRouteTypeStatic, + "LOCAL": RouteRuleRouteTypeLocal, +} + +var mappingRouteRuleRouteTypeEnumLowerCase = map[string]RouteRuleRouteTypeEnum{ + "static": RouteRuleRouteTypeStatic, + "local": RouteRuleRouteTypeLocal, +} + +// GetRouteRuleRouteTypeEnumValues Enumerates the set of values for RouteRuleRouteTypeEnum +func GetRouteRuleRouteTypeEnumValues() []RouteRuleRouteTypeEnum { + values := make([]RouteRuleRouteTypeEnum, 0) + for _, v := range mappingRouteRuleRouteTypeEnum { + values = append(values, v) + } + return values +} + +// GetRouteRuleRouteTypeEnumStringValues Enumerates the set of values in String for RouteRuleRouteTypeEnum +func GetRouteRuleRouteTypeEnumStringValues() []string { + return []string{ + "STATIC", + "LOCAL", + } +} + +// GetMappingRouteRuleRouteTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRouteRuleRouteTypeEnum(val string) (RouteRuleRouteTypeEnum, bool) { + enum, ok := mappingRouteRuleRouteTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/route_table.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_table.go new file mode 100644 index 0000000000..2f9cdc179d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_table.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RouteTable A collection of `RouteRule` objects, which are used to route packets +// based on destination IP to a particular network entity. For more information, see +// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type RouteTable struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the route table. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The route table's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The route table's current state. + LifecycleState RouteTableLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The collection of rules for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"true" json:"routeRules"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the route table list belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The date and time the route table was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Indicates whether or not ECMP is enabled on the route table. + IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` +} + +func (m RouteTable) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RouteTable) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRouteTableLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetRouteTableLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RouteTableLifecycleStateEnum Enum with underlying type: string +type RouteTableLifecycleStateEnum string + +// Set of constants representing the allowable values for RouteTableLifecycleStateEnum +const ( + RouteTableLifecycleStateProvisioning RouteTableLifecycleStateEnum = "PROVISIONING" + RouteTableLifecycleStateAvailable RouteTableLifecycleStateEnum = "AVAILABLE" + RouteTableLifecycleStateTerminating RouteTableLifecycleStateEnum = "TERMINATING" + RouteTableLifecycleStateTerminated RouteTableLifecycleStateEnum = "TERMINATED" +) + +var mappingRouteTableLifecycleStateEnum = map[string]RouteTableLifecycleStateEnum{ + "PROVISIONING": RouteTableLifecycleStateProvisioning, + "AVAILABLE": RouteTableLifecycleStateAvailable, + "TERMINATING": RouteTableLifecycleStateTerminating, + "TERMINATED": RouteTableLifecycleStateTerminated, +} + +var mappingRouteTableLifecycleStateEnumLowerCase = map[string]RouteTableLifecycleStateEnum{ + "provisioning": RouteTableLifecycleStateProvisioning, + "available": RouteTableLifecycleStateAvailable, + "terminating": RouteTableLifecycleStateTerminating, + "terminated": RouteTableLifecycleStateTerminated, +} + +// GetRouteTableLifecycleStateEnumValues Enumerates the set of values for RouteTableLifecycleStateEnum +func GetRouteTableLifecycleStateEnumValues() []RouteTableLifecycleStateEnum { + values := make([]RouteTableLifecycleStateEnum, 0) + for _, v := range mappingRouteTableLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetRouteTableLifecycleStateEnumStringValues Enumerates the set of values in String for RouteTableLifecycleStateEnum +func GetRouteTableLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingRouteTableLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRouteTableLifecycleStateEnum(val string) (RouteTableLifecycleStateEnum, bool) { + enum, ok := mappingRouteTableLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_details.go new file mode 100644 index 0000000000..bb7fe079bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RouteVnicIngressTrafficToDestinationSmartNicDetails This structure is used when routing VNIC's ingress traffic to destination smart NIC +type RouteVnicIngressTrafficToDestinationSmartNicDetails struct { + + // Migration session ID associated with the VNIC getting live migrated + MigrationSessionId *string `mandatory:"true" json:"migrationSessionId"` +} + +func (m RouteVnicIngressTrafficToDestinationSmartNicDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RouteVnicIngressTrafficToDestinationSmartNicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_request_response.go new file mode 100644 index 0000000000..df033d3935 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/route_vnic_ingress_traffic_to_destination_smart_nic_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RouteVnicIngressTrafficToDestinationSmartNicRequest wrapper for the RouteVnicIngressTrafficToDestinationSmartNic operation +type RouteVnicIngressTrafficToDestinationSmartNicRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. + InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` + + // Request to route VNIC's ingress traffic to destination smart NIC + RouteVnicIngressTrafficToDestinationSmartNicDetails `contributesTo:"body"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RouteVnicIngressTrafficToDestinationSmartNicRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RouteVnicIngressTrafficToDestinationSmartNicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RouteVnicIngressTrafficToDestinationSmartNicRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RouteVnicIngressTrafficToDestinationSmartNicRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RouteVnicIngressTrafficToDestinationSmartNicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RouteVnicIngressTrafficToDestinationSmartNicResponse wrapper for the RouteVnicIngressTrafficToDestinationSmartNic operation +type RouteVnicIngressTrafficToDestinationSmartNicResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The InternalVnicAttachment instance + InternalVnicAttachment `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RouteVnicIngressTrafficToDestinationSmartNicResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RouteVnicIngressTrafficToDestinationSmartNicResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_listener_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_listener_info.go new file mode 100644 index 0000000000..21bff2cc9f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_listener_info.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ScanListenerInfo Customer's Real Application Cluster (RAC)'s SCAN listener FQDN,port or list IPs and their +// ports +type ScanListenerInfo struct { + + // FQDN of the customer's Real Application Cluster (RAC)'s SCAN listeners. + ScanListenerFqdn *string `mandatory:"false" json:"scanListenerFqdn"` + + // A SCAN listener's IP of the customer's Real Application Cluster (RAC). + ScanListenerIp *string `mandatory:"false" json:"scanListenerIp"` + + // The port that customer's Real Application Cluster (RAC)'s SCAN listeners are listening on. + ScanListenerPort *int `mandatory:"false" json:"scanListenerPort"` +} + +func (m ScanListenerInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ScanListenerInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy.go new file mode 100644 index 0000000000..91708ed679 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy.go @@ -0,0 +1,276 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ScanProxy Details pertaining to a scan proxy instance created for a scan listener FQDN/IPs +type ScanProxy struct { + + // An Oracle-assigned unique identifier for a scanProxy within a privateEndpoint. You specify + // this ID when you want to get or update or delete a scanProxy + Id *string `mandatory:"true" json:"id"` + + // Type indicating whether Scan listener is specified by its FQDN or list of IPs + ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"true" json:"scanListenerType"` + + // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN + // listeners. + ScanListenerInfo []ScanListenerInfo `mandatory:"true" json:"scanListenerInfo"` + + // The port to which service DB client has to connect on scan proxy to initiate scan + // connections. + ScanProxyPort *int `mandatory:"true" json:"scanProxyPort"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private endpoint + // associated with the reverse connection. + PrivateEndpointId *string `mandatory:"true" json:"privateEndpointId"` + + // The protocol used for communication between client, scanProxy and RAC's scan + // listeners + Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` + + // Type indicating whether Scan proxy is IP multiplexing based or Port multiplexing based. + ScanMultiplexingType ScanProxyScanMultiplexingTypeEnum `mandatory:"false" json:"scanMultiplexingType,omitempty"` + + // The IP address in the service VCN to be used to reach the reverse connection SCAN proxy + // service. + ScanProxyIp *string `mandatory:"false" json:"scanProxyIp"` + + // The scan proxy instance's current state. + LifecycleState ScanProxyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the scan proxy instance was created, in the format defined + // by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` +} + +func (m ScanProxy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ScanProxy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingScanProxyScanListenerTypeEnum(string(m.ScanListenerType)); !ok && m.ScanListenerType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanListenerType: %s. Supported values are: %s.", m.ScanListenerType, strings.Join(GetScanProxyScanListenerTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingScanProxyProtocolEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetScanProxyProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyScanMultiplexingTypeEnum(string(m.ScanMultiplexingType)); !ok && m.ScanMultiplexingType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanMultiplexingType: %s. Supported values are: %s.", m.ScanMultiplexingType, strings.Join(GetScanProxyScanMultiplexingTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetScanProxyLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ScanProxyScanListenerTypeEnum Enum with underlying type: string +type ScanProxyScanListenerTypeEnum string + +// Set of constants representing the allowable values for ScanProxyScanListenerTypeEnum +const ( + ScanProxyScanListenerTypeFqdn ScanProxyScanListenerTypeEnum = "FQDN" + ScanProxyScanListenerTypeIp ScanProxyScanListenerTypeEnum = "IP" +) + +var mappingScanProxyScanListenerTypeEnum = map[string]ScanProxyScanListenerTypeEnum{ + "FQDN": ScanProxyScanListenerTypeFqdn, + "IP": ScanProxyScanListenerTypeIp, +} + +var mappingScanProxyScanListenerTypeEnumLowerCase = map[string]ScanProxyScanListenerTypeEnum{ + "fqdn": ScanProxyScanListenerTypeFqdn, + "ip": ScanProxyScanListenerTypeIp, +} + +// GetScanProxyScanListenerTypeEnumValues Enumerates the set of values for ScanProxyScanListenerTypeEnum +func GetScanProxyScanListenerTypeEnumValues() []ScanProxyScanListenerTypeEnum { + values := make([]ScanProxyScanListenerTypeEnum, 0) + for _, v := range mappingScanProxyScanListenerTypeEnum { + values = append(values, v) + } + return values +} + +// GetScanProxyScanListenerTypeEnumStringValues Enumerates the set of values in String for ScanProxyScanListenerTypeEnum +func GetScanProxyScanListenerTypeEnumStringValues() []string { + return []string{ + "FQDN", + "IP", + } +} + +// GetMappingScanProxyScanListenerTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScanProxyScanListenerTypeEnum(val string) (ScanProxyScanListenerTypeEnum, bool) { + enum, ok := mappingScanProxyScanListenerTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ScanProxyProtocolEnum Enum with underlying type: string +type ScanProxyProtocolEnum string + +// Set of constants representing the allowable values for ScanProxyProtocolEnum +const ( + ScanProxyProtocolTcp ScanProxyProtocolEnum = "TCP" + ScanProxyProtocolTcps ScanProxyProtocolEnum = "TCPS" +) + +var mappingScanProxyProtocolEnum = map[string]ScanProxyProtocolEnum{ + "TCP": ScanProxyProtocolTcp, + "TCPS": ScanProxyProtocolTcps, +} + +var mappingScanProxyProtocolEnumLowerCase = map[string]ScanProxyProtocolEnum{ + "tcp": ScanProxyProtocolTcp, + "tcps": ScanProxyProtocolTcps, +} + +// GetScanProxyProtocolEnumValues Enumerates the set of values for ScanProxyProtocolEnum +func GetScanProxyProtocolEnumValues() []ScanProxyProtocolEnum { + values := make([]ScanProxyProtocolEnum, 0) + for _, v := range mappingScanProxyProtocolEnum { + values = append(values, v) + } + return values +} + +// GetScanProxyProtocolEnumStringValues Enumerates the set of values in String for ScanProxyProtocolEnum +func GetScanProxyProtocolEnumStringValues() []string { + return []string{ + "TCP", + "TCPS", + } +} + +// GetMappingScanProxyProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScanProxyProtocolEnum(val string) (ScanProxyProtocolEnum, bool) { + enum, ok := mappingScanProxyProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ScanProxyScanMultiplexingTypeEnum Enum with underlying type: string +type ScanProxyScanMultiplexingTypeEnum string + +// Set of constants representing the allowable values for ScanProxyScanMultiplexingTypeEnum +const ( + ScanProxyScanMultiplexingTypePort ScanProxyScanMultiplexingTypeEnum = "PORT" + ScanProxyScanMultiplexingTypeIp ScanProxyScanMultiplexingTypeEnum = "IP" +) + +var mappingScanProxyScanMultiplexingTypeEnum = map[string]ScanProxyScanMultiplexingTypeEnum{ + "PORT": ScanProxyScanMultiplexingTypePort, + "IP": ScanProxyScanMultiplexingTypeIp, +} + +var mappingScanProxyScanMultiplexingTypeEnumLowerCase = map[string]ScanProxyScanMultiplexingTypeEnum{ + "port": ScanProxyScanMultiplexingTypePort, + "ip": ScanProxyScanMultiplexingTypeIp, +} + +// GetScanProxyScanMultiplexingTypeEnumValues Enumerates the set of values for ScanProxyScanMultiplexingTypeEnum +func GetScanProxyScanMultiplexingTypeEnumValues() []ScanProxyScanMultiplexingTypeEnum { + values := make([]ScanProxyScanMultiplexingTypeEnum, 0) + for _, v := range mappingScanProxyScanMultiplexingTypeEnum { + values = append(values, v) + } + return values +} + +// GetScanProxyScanMultiplexingTypeEnumStringValues Enumerates the set of values in String for ScanProxyScanMultiplexingTypeEnum +func GetScanProxyScanMultiplexingTypeEnumStringValues() []string { + return []string{ + "PORT", + "IP", + } +} + +// GetMappingScanProxyScanMultiplexingTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScanProxyScanMultiplexingTypeEnum(val string) (ScanProxyScanMultiplexingTypeEnum, bool) { + enum, ok := mappingScanProxyScanMultiplexingTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ScanProxyLifecycleStateEnum Enum with underlying type: string +type ScanProxyLifecycleStateEnum string + +// Set of constants representing the allowable values for ScanProxyLifecycleStateEnum +const ( + ScanProxyLifecycleStateProvisioning ScanProxyLifecycleStateEnum = "PROVISIONING" + ScanProxyLifecycleStateAvailable ScanProxyLifecycleStateEnum = "AVAILABLE" + ScanProxyLifecycleStateUpdating ScanProxyLifecycleStateEnum = "UPDATING" + ScanProxyLifecycleStateTerminating ScanProxyLifecycleStateEnum = "TERMINATING" + ScanProxyLifecycleStateTerminated ScanProxyLifecycleStateEnum = "TERMINATED" + ScanProxyLifecycleStateFailed ScanProxyLifecycleStateEnum = "FAILED" +) + +var mappingScanProxyLifecycleStateEnum = map[string]ScanProxyLifecycleStateEnum{ + "PROVISIONING": ScanProxyLifecycleStateProvisioning, + "AVAILABLE": ScanProxyLifecycleStateAvailable, + "UPDATING": ScanProxyLifecycleStateUpdating, + "TERMINATING": ScanProxyLifecycleStateTerminating, + "TERMINATED": ScanProxyLifecycleStateTerminated, + "FAILED": ScanProxyLifecycleStateFailed, +} + +var mappingScanProxyLifecycleStateEnumLowerCase = map[string]ScanProxyLifecycleStateEnum{ + "provisioning": ScanProxyLifecycleStateProvisioning, + "available": ScanProxyLifecycleStateAvailable, + "updating": ScanProxyLifecycleStateUpdating, + "terminating": ScanProxyLifecycleStateTerminating, + "terminated": ScanProxyLifecycleStateTerminated, + "failed": ScanProxyLifecycleStateFailed, +} + +// GetScanProxyLifecycleStateEnumValues Enumerates the set of values for ScanProxyLifecycleStateEnum +func GetScanProxyLifecycleStateEnumValues() []ScanProxyLifecycleStateEnum { + values := make([]ScanProxyLifecycleStateEnum, 0) + for _, v := range mappingScanProxyLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetScanProxyLifecycleStateEnumStringValues Enumerates the set of values in String for ScanProxyLifecycleStateEnum +func GetScanProxyLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + "FAILED", + } +} + +// GetMappingScanProxyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingScanProxyLifecycleStateEnum(val string) (ScanProxyLifecycleStateEnum, bool) { + enum, ok := mappingScanProxyLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy_summary.go new file mode 100644 index 0000000000..66a5ebf70a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/scan_proxy_summary.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ScanProxySummary A summary of scan proxy information. This object is returned when listing scan proxies of a +// private endpoint. +type ScanProxySummary struct { + + // An Oracle-assigned unique identifier for a scanProxy within a privateEndpoint. You specify + // this ID when you want to get or update or delete a scan ListScanProxiesProxy + Id *string `mandatory:"true" json:"id"` + + // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN + // listeners. + ScanListenerInfo []ScanListenerInfo `mandatory:"true" json:"scanListenerInfo"` + + // The port to which service DB client has to connect on scan proxy to initiate scan + // connections. + ScanProxyPort *int `mandatory:"true" json:"scanProxyPort"` + + // Type indicating whether Scan listener is specified by its FQDN or list of IPs + ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"false" json:"scanListenerType,omitempty"` + + // The protocol used for communication between client, scanProxy and RAC's scan + // listeners + Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` + + // Type indicating whether Scan proxy is IP multiplexing based or Port multiplexing based. + ScanMultiplexingType ScanProxyScanMultiplexingTypeEnum `mandatory:"false" json:"scanMultiplexingType,omitempty"` + + // The IP address in the service VCN to be used to reach the reverse connection SCAN proxy + // service. + ScanProxyIp *string `mandatory:"false" json:"scanProxyIp"` + + ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` + + // The scan proxy instance's current state. + LifecycleState ScanProxyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m ScanProxySummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ScanProxySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingScanProxyScanListenerTypeEnum(string(m.ScanListenerType)); !ok && m.ScanListenerType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanListenerType: %s. Supported values are: %s.", m.ScanListenerType, strings.Join(GetScanProxyScanListenerTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyProtocolEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetScanProxyProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyScanMultiplexingTypeEnum(string(m.ScanMultiplexingType)); !ok && m.ScanMultiplexingType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanMultiplexingType: %s. Supported values are: %s.", m.ScanMultiplexingType, strings.Join(GetScanProxyScanMultiplexingTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetScanProxyLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/security_list.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/security_list.go new file mode 100644 index 0000000000..25735ed358 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/security_list.go @@ -0,0 +1,143 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityList A set of virtual firewall rules for your VCN. Security lists are configured at the subnet +// level, but the rules are applied to the ingress and egress traffic for the individual instances +// in the subnet. The rules can be stateful or stateless. For more information, see +// Security Lists (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/securitylists.htm). +// **Note:** Compare security lists to NetworkSecurityGroups, +// which let you apply a set of security rules to a *specific set of VNICs* instead of an entire +// subnet. Oracle recommends using network security groups instead of security lists, although you +// can use either or both together. +// **Important:** Oracle Cloud Infrastructure Compute service images automatically include firewall rules (for example, +// Linux iptables, Windows firewall). If there are issues with some type of access to an instance, +// make sure both the security lists associated with the instance's subnet and the instance's +// firewall rules are set correctly. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type SecurityList struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the security list. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // Rules for allowing egress IP packets. + EgressSecurityRules []EgressSecurityRule `mandatory:"true" json:"egressSecurityRules"` + + // The security list's Oracle Cloud ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // Rules for allowing ingress IP packets. + IngressSecurityRules []IngressSecurityRule `mandatory:"true" json:"ingressSecurityRules"` + + // The security list's current state. + LifecycleState SecurityListLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the security list was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the security list belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m SecurityList) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SecurityList) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSecurityListLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSecurityListLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SecurityListLifecycleStateEnum Enum with underlying type: string +type SecurityListLifecycleStateEnum string + +// Set of constants representing the allowable values for SecurityListLifecycleStateEnum +const ( + SecurityListLifecycleStateProvisioning SecurityListLifecycleStateEnum = "PROVISIONING" + SecurityListLifecycleStateAvailable SecurityListLifecycleStateEnum = "AVAILABLE" + SecurityListLifecycleStateTerminating SecurityListLifecycleStateEnum = "TERMINATING" + SecurityListLifecycleStateTerminated SecurityListLifecycleStateEnum = "TERMINATED" +) + +var mappingSecurityListLifecycleStateEnum = map[string]SecurityListLifecycleStateEnum{ + "PROVISIONING": SecurityListLifecycleStateProvisioning, + "AVAILABLE": SecurityListLifecycleStateAvailable, + "TERMINATING": SecurityListLifecycleStateTerminating, + "TERMINATED": SecurityListLifecycleStateTerminated, +} + +var mappingSecurityListLifecycleStateEnumLowerCase = map[string]SecurityListLifecycleStateEnum{ + "provisioning": SecurityListLifecycleStateProvisioning, + "available": SecurityListLifecycleStateAvailable, + "terminating": SecurityListLifecycleStateTerminating, + "terminated": SecurityListLifecycleStateTerminated, +} + +// GetSecurityListLifecycleStateEnumValues Enumerates the set of values for SecurityListLifecycleStateEnum +func GetSecurityListLifecycleStateEnumValues() []SecurityListLifecycleStateEnum { + values := make([]SecurityListLifecycleStateEnum, 0) + for _, v := range mappingSecurityListLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSecurityListLifecycleStateEnumStringValues Enumerates the set of values in String for SecurityListLifecycleStateEnum +func GetSecurityListLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingSecurityListLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityListLifecycleStateEnum(val string) (SecurityListLifecycleStateEnum, bool) { + enum, ok := mappingSecurityListLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/security_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/security_rule.go new file mode 100644 index 0000000000..840b6014a6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/security_rule.go @@ -0,0 +1,271 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SecurityRule A security rule is one of the items in a NetworkSecurityGroup. +// It is a virtual firewall rule for the VNICs in the network security group. A rule can be for +// either inbound (`direction`= INGRESS) or outbound (`direction`= EGRESS) IP packets. +type SecurityRule struct { + + // Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + // or `INGRESS` for rules to allow inbound IP packets. + Direction SecurityRuleDirectionEnum `mandatory:"true" json:"direction"` + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). + Protocol *string `mandatory:"true" json:"protocol"` + + // An optional description of your choice for the rule. + Description *string `mandatory:"false" json:"description"` + + // Conceptually, this is the range of IP addresses that a packet originating from the instance + // can go to. + // Allowed values: + // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security rule for traffic destined for a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same + // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control + // traffic between VNICs in the same NSG. + Destination *string `mandatory:"false" json:"destination"` + + // Type of destination for the rule. Required if `direction` = `EGRESS`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a + // NetworkSecurityGroup. + DestinationType SecurityRuleDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // An Oracle-assigned identifier for the security rule. You specify this ID when you want to + // update or delete the rule. + // Example: `04ABEC` + Id *string `mandatory:"false" json:"id"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if egress traffic allows TCP destination port 80, there should be an ingress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + // Whether the rule is valid. The value is `True` when the rule is first created. If + // the rule's `source` or `destination` is a network security group, the value changes to + // `False` if that network security group is deleted. + IsValid *bool `mandatory:"false" json:"isValid"` + + // Conceptually, this is the range of IP addresses that a packet coming into the instance + // can come from. + // Allowed values: + // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security rule for traffic coming from a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same + // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control + // traffic between VNICs in the same NSG. + Source *string `mandatory:"false" json:"source"` + + // Type of source for the rule. Required if `direction` = `INGRESS`. + // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a + // Service (the rule is for traffic coming from a + // particular `Service` through a service gateway). + // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a + // NetworkSecurityGroup. + SourceType SecurityRuleSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + // The date and time the security rule was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` +} + +func (m SecurityRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SecurityRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSecurityRuleDirectionEnum(string(m.Direction)); !ok && m.Direction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Direction: %s. Supported values are: %s.", m.Direction, strings.Join(GetSecurityRuleDirectionEnumStringValues(), ","))) + } + + if _, ok := GetMappingSecurityRuleDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetSecurityRuleDestinationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingSecurityRuleSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetSecurityRuleSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SecurityRuleDestinationTypeEnum Enum with underlying type: string +type SecurityRuleDestinationTypeEnum string + +// Set of constants representing the allowable values for SecurityRuleDestinationTypeEnum +const ( + SecurityRuleDestinationTypeCidrBlock SecurityRuleDestinationTypeEnum = "CIDR_BLOCK" + SecurityRuleDestinationTypeServiceCidrBlock SecurityRuleDestinationTypeEnum = "SERVICE_CIDR_BLOCK" + SecurityRuleDestinationTypeNetworkSecurityGroup SecurityRuleDestinationTypeEnum = "NETWORK_SECURITY_GROUP" +) + +var mappingSecurityRuleDestinationTypeEnum = map[string]SecurityRuleDestinationTypeEnum{ + "CIDR_BLOCK": SecurityRuleDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": SecurityRuleDestinationTypeServiceCidrBlock, + "NETWORK_SECURITY_GROUP": SecurityRuleDestinationTypeNetworkSecurityGroup, +} + +var mappingSecurityRuleDestinationTypeEnumLowerCase = map[string]SecurityRuleDestinationTypeEnum{ + "cidr_block": SecurityRuleDestinationTypeCidrBlock, + "service_cidr_block": SecurityRuleDestinationTypeServiceCidrBlock, + "network_security_group": SecurityRuleDestinationTypeNetworkSecurityGroup, +} + +// GetSecurityRuleDestinationTypeEnumValues Enumerates the set of values for SecurityRuleDestinationTypeEnum +func GetSecurityRuleDestinationTypeEnumValues() []SecurityRuleDestinationTypeEnum { + values := make([]SecurityRuleDestinationTypeEnum, 0) + for _, v := range mappingSecurityRuleDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityRuleDestinationTypeEnumStringValues Enumerates the set of values in String for SecurityRuleDestinationTypeEnum +func GetSecurityRuleDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + "NETWORK_SECURITY_GROUP", + } +} + +// GetMappingSecurityRuleDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityRuleDestinationTypeEnum(val string) (SecurityRuleDestinationTypeEnum, bool) { + enum, ok := mappingSecurityRuleDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SecurityRuleDirectionEnum Enum with underlying type: string +type SecurityRuleDirectionEnum string + +// Set of constants representing the allowable values for SecurityRuleDirectionEnum +const ( + SecurityRuleDirectionEgress SecurityRuleDirectionEnum = "EGRESS" + SecurityRuleDirectionIngress SecurityRuleDirectionEnum = "INGRESS" +) + +var mappingSecurityRuleDirectionEnum = map[string]SecurityRuleDirectionEnum{ + "EGRESS": SecurityRuleDirectionEgress, + "INGRESS": SecurityRuleDirectionIngress, +} + +var mappingSecurityRuleDirectionEnumLowerCase = map[string]SecurityRuleDirectionEnum{ + "egress": SecurityRuleDirectionEgress, + "ingress": SecurityRuleDirectionIngress, +} + +// GetSecurityRuleDirectionEnumValues Enumerates the set of values for SecurityRuleDirectionEnum +func GetSecurityRuleDirectionEnumValues() []SecurityRuleDirectionEnum { + values := make([]SecurityRuleDirectionEnum, 0) + for _, v := range mappingSecurityRuleDirectionEnum { + values = append(values, v) + } + return values +} + +// GetSecurityRuleDirectionEnumStringValues Enumerates the set of values in String for SecurityRuleDirectionEnum +func GetSecurityRuleDirectionEnumStringValues() []string { + return []string{ + "EGRESS", + "INGRESS", + } +} + +// GetMappingSecurityRuleDirectionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityRuleDirectionEnum(val string) (SecurityRuleDirectionEnum, bool) { + enum, ok := mappingSecurityRuleDirectionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SecurityRuleSourceTypeEnum Enum with underlying type: string +type SecurityRuleSourceTypeEnum string + +// Set of constants representing the allowable values for SecurityRuleSourceTypeEnum +const ( + SecurityRuleSourceTypeCidrBlock SecurityRuleSourceTypeEnum = "CIDR_BLOCK" + SecurityRuleSourceTypeServiceCidrBlock SecurityRuleSourceTypeEnum = "SERVICE_CIDR_BLOCK" + SecurityRuleSourceTypeNetworkSecurityGroup SecurityRuleSourceTypeEnum = "NETWORK_SECURITY_GROUP" +) + +var mappingSecurityRuleSourceTypeEnum = map[string]SecurityRuleSourceTypeEnum{ + "CIDR_BLOCK": SecurityRuleSourceTypeCidrBlock, + "SERVICE_CIDR_BLOCK": SecurityRuleSourceTypeServiceCidrBlock, + "NETWORK_SECURITY_GROUP": SecurityRuleSourceTypeNetworkSecurityGroup, +} + +var mappingSecurityRuleSourceTypeEnumLowerCase = map[string]SecurityRuleSourceTypeEnum{ + "cidr_block": SecurityRuleSourceTypeCidrBlock, + "service_cidr_block": SecurityRuleSourceTypeServiceCidrBlock, + "network_security_group": SecurityRuleSourceTypeNetworkSecurityGroup, +} + +// GetSecurityRuleSourceTypeEnumValues Enumerates the set of values for SecurityRuleSourceTypeEnum +func GetSecurityRuleSourceTypeEnumValues() []SecurityRuleSourceTypeEnum { + values := make([]SecurityRuleSourceTypeEnum, 0) + for _, v := range mappingSecurityRuleSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetSecurityRuleSourceTypeEnumStringValues Enumerates the set of values in String for SecurityRuleSourceTypeEnum +func GetSecurityRuleSourceTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + "NETWORK_SECURITY_GROUP", + } +} + +// GetMappingSecurityRuleSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSecurityRuleSourceTypeEnum(val string) (SecurityRuleSourceTypeEnum, bool) { + enum, ok := mappingSecurityRuleSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/service.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/service.go new file mode 100644 index 0000000000..3deadd7f1c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/service.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Service An object that represents one or multiple Oracle services that you can enable for a +// ServiceGateway. In the User Guide topic +// Access to Oracle Services: Service Gateway (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/servicegateway.htm), the +// term *service CIDR label* is used to refer to the string that represents the regional public +// IP address ranges of the Oracle service or services covered by a given `Service` object. That +// unique string is the value of the `Service` object's `cidrBlock` attribute. +type Service struct { + + // A string that represents the regional public IP address ranges for the Oracle service or + // services covered by this `Service` object. Also known as the `Service` object's *service + // CIDR label*. + // When you set up a route rule to route traffic to the service gateway, use this value as the + // rule's destination. See RouteTable. Also, when you set up + // a security list rule to cover traffic with the service gateway, use the `cidrBlock` value + // as the rule's destination (for an egress rule) or the source (for an ingress rule). + // See SecurityList. + // Example: `oci-phx-objectstorage` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // Description of the Oracle service or services covered by this `Service` object. + // Example: `OCI PHX Object Storage` + Description *string `mandatory:"true" json:"description"` + + // The `Service` object's OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). + Id *string `mandatory:"true" json:"id"` + + // Name of the `Service` object. This name can change and is not guaranteed to be unique. + // Example: `OCI PHX Object Storage` + Name *string `mandatory:"true" json:"name"` +} + +func (m Service) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Service) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/service_gateway.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/service_gateway.go new file mode 100644 index 0000000000..c9bcee5be3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/service_gateway.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ServiceGateway Represents a router that lets your VCN privately access specific Oracle services such as Object +// Storage without exposing the VCN to the public internet. Traffic leaving the VCN and destined +// for a supported Oracle service (see ListServices) is +// routed through the service gateway and does not traverse the internet. The instances in the VCN +// do not need to have public IP addresses nor be in a public subnet. The VCN does not need an internet gateway +// for this traffic. For more information, see +// Access to Oracle Services: Service Gateway (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/servicegateway.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type ServiceGateway struct { + + // Whether the service gateway blocks all traffic through it. The default is `false`. When + // this is `true`, traffic is not routed to any services, regardless of route rules. + // Example: `true` + BlockTraffic *bool `mandatory:"true" json:"blockTraffic"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the + // service gateway. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service gateway. + Id *string `mandatory:"true" json:"id"` + + // The service gateway's current state. + LifecycleState ServiceGatewayLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // List of the Service objects enabled for this service gateway. + // The list can be empty. You can enable a particular `Service` by using + // AttachServiceId or + // UpdateServiceGateway. + Services []ServiceIdResponseDetails `mandatory:"true" json:"services"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the service gateway + // belongs to. + VcnId *string `mandatory:"true" json:"vcnId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the service gateway is using. + // For information about why you would associate a route table with a service gateway, see + // Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm). + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // The date and time the service gateway was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m ServiceGateway) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ServiceGateway) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingServiceGatewayLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetServiceGatewayLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ServiceGatewayLifecycleStateEnum Enum with underlying type: string +type ServiceGatewayLifecycleStateEnum string + +// Set of constants representing the allowable values for ServiceGatewayLifecycleStateEnum +const ( + ServiceGatewayLifecycleStateProvisioning ServiceGatewayLifecycleStateEnum = "PROVISIONING" + ServiceGatewayLifecycleStateAvailable ServiceGatewayLifecycleStateEnum = "AVAILABLE" + ServiceGatewayLifecycleStateTerminating ServiceGatewayLifecycleStateEnum = "TERMINATING" + ServiceGatewayLifecycleStateTerminated ServiceGatewayLifecycleStateEnum = "TERMINATED" +) + +var mappingServiceGatewayLifecycleStateEnum = map[string]ServiceGatewayLifecycleStateEnum{ + "PROVISIONING": ServiceGatewayLifecycleStateProvisioning, + "AVAILABLE": ServiceGatewayLifecycleStateAvailable, + "TERMINATING": ServiceGatewayLifecycleStateTerminating, + "TERMINATED": ServiceGatewayLifecycleStateTerminated, +} + +var mappingServiceGatewayLifecycleStateEnumLowerCase = map[string]ServiceGatewayLifecycleStateEnum{ + "provisioning": ServiceGatewayLifecycleStateProvisioning, + "available": ServiceGatewayLifecycleStateAvailable, + "terminating": ServiceGatewayLifecycleStateTerminating, + "terminated": ServiceGatewayLifecycleStateTerminated, +} + +// GetServiceGatewayLifecycleStateEnumValues Enumerates the set of values for ServiceGatewayLifecycleStateEnum +func GetServiceGatewayLifecycleStateEnumValues() []ServiceGatewayLifecycleStateEnum { + values := make([]ServiceGatewayLifecycleStateEnum, 0) + for _, v := range mappingServiceGatewayLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetServiceGatewayLifecycleStateEnumStringValues Enumerates the set of values in String for ServiceGatewayLifecycleStateEnum +func GetServiceGatewayLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingServiceGatewayLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingServiceGatewayLifecycleStateEnum(val string) (ServiceGatewayLifecycleStateEnum, bool) { + enum, ok := mappingServiceGatewayLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_request_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_request_details.go new file mode 100644 index 0000000000..1a7e25ac04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_request_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ServiceIdRequestDetails The representation of ServiceIdRequestDetails +type ServiceIdRequestDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Service. + ServiceId *string `mandatory:"true" json:"serviceId"` +} + +func (m ServiceIdRequestDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ServiceIdRequestDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_response_details.go new file mode 100644 index 0000000000..27feee67f9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/service_id_response_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ServiceIdResponseDetails The representation of ServiceIdResponseDetails +type ServiceIdResponseDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service. + ServiceId *string `mandatory:"true" json:"serviceId"` + + // The name of the service. + ServiceName *string `mandatory:"true" json:"serviceName"` +} + +func (m ServiceIdResponseDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ServiceIdResponseDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_details.go new file mode 100644 index 0000000000..b5e907af84 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SetDrgPeeringConnectionDetails The representation of SetDrgPeeringConnectionDetails +type SetDrgPeeringConnectionDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The string in the form ASN:rpc_attachment_mplsLabel. + PeerRpcRouteTarget *string `mandatory:"true" json:"peerRpcRouteTarget"` + + // OCI region name to include in the routeData + PeerRegionName *string `mandatory:"true" json:"peerRegionName"` + + // ingress VIP of the peered DRG + PeerIngressVIP *string `mandatory:"false" json:"peerIngressVIP"` +} + +func (m SetDrgPeeringConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SetDrgPeeringConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_request_response.go index 61f872ecae..0749f1bc02 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/set_drg_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/set_drg_peering_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // SetDrgPeeringConnectionRequest wrapper for the SetDrgPeeringConnection operation @@ -34,6 +36,10 @@ func (request SetDrgPeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request SetDrgPeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request SetDrgPeeringConnectionRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SetDrgPeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SetDrgPeeringConnectionResponse wrapper for the SetDrgPeeringConnection operation type SetDrgPeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape.go new file mode 100644 index 0000000000..4da736c319 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape.go @@ -0,0 +1,240 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Shape A compute instance shape that can be used in LaunchInstance. +// For more information, see Overview of the Compute Service (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm) and +// Compute Shapes (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm). +type Shape struct { + + // The name of the shape. You can enumerate all available shapes by calling + // ListShapes. + Shape *string `mandatory:"true" json:"shape"` + + // The shape's availability domain. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // For a subcore burstable VM, the supported baseline OCPU utilization for instances that use this shape. + BaselineOcpuUtilizations []ShapeBaselineOcpuUtilizationsEnum `mandatory:"false" json:"baselineOcpuUtilizations,omitempty"` + + // For a subcore burstable VM, the minimum total baseline OCPUs required. The total baseline OCPUs is equal to + // baselineOcpuUtilization chosen multiplied by the number of OCPUs chosen. + MinTotalBaselineOcpusRequired *float32 `mandatory:"false" json:"minTotalBaselineOcpusRequired"` + + // A short description of the shape's processor (CPU). + ProcessorDescription *string `mandatory:"false" json:"processorDescription"` + + // The default number of OCPUs available for this shape. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The default amount of memory available for this shape, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` + + // The number of physical network interface card (NIC) ports available for this shape. + NetworkPorts *int `mandatory:"false" json:"networkPorts"` + + // The networking bandwidth available for this shape, in gigabits per second. + NetworkingBandwidthInGbps *float32 `mandatory:"false" json:"networkingBandwidthInGbps"` + + // The maximum number of VNIC attachments available for this shape. + MaxVnicAttachments *int `mandatory:"false" json:"maxVnicAttachments"` + + // The number of GPUs available for this shape. + Gpus *int `mandatory:"false" json:"gpus"` + + // A short description of the graphics processing unit (GPU) available for this shape. + // If the shape does not have any GPUs, this field is `null`. + GpuDescription *string `mandatory:"false" json:"gpuDescription"` + + // The number of local disks available for this shape. + LocalDisks *int `mandatory:"false" json:"localDisks"` + + // The aggregate size of the local disks available for this shape, in gigabytes. + // If the shape does not have any local disks, this field is `null`. + LocalDisksTotalSizeInGBs *float32 `mandatory:"false" json:"localDisksTotalSizeInGBs"` + + // A short description of the local disks available for this shape. + // If the shape does not have any local disks, this field is `null`. + LocalDiskDescription *string `mandatory:"false" json:"localDiskDescription"` + + // The number of networking ports available for the remote direct memory access (RDMA) network between nodes in + // a high performance computing (HPC) cluster network. If the shape does not support cluster networks, this + // value is `0`. + RdmaPorts *int `mandatory:"false" json:"rdmaPorts"` + + // The networking bandwidth available for the remote direct memory access (RDMA) network for this shape, in + // gigabits per second. + RdmaBandwidthInGbps *int `mandatory:"false" json:"rdmaBandwidthInGbps"` + + // Whether live migration is supported for this shape. + IsLiveMigrationSupported *bool `mandatory:"false" json:"isLiveMigrationSupported"` + + OcpuOptions *ShapeOcpuOptions `mandatory:"false" json:"ocpuOptions"` + + MemoryOptions *ShapeMemoryOptions `mandatory:"false" json:"memoryOptions"` + + NetworkingBandwidthOptions *ShapeNetworkingBandwidthOptions `mandatory:"false" json:"networkingBandwidthOptions"` + + MaxVnicAttachmentOptions *ShapeMaxVnicAttachmentOptions `mandatory:"false" json:"maxVnicAttachmentOptions"` + + PlatformConfigOptions *ShapePlatformConfigOptions `mandatory:"false" json:"platformConfigOptions"` + + // Whether billing continues when the instances that use this shape are in the stopped state. + IsBilledForStoppedInstance *bool `mandatory:"false" json:"isBilledForStoppedInstance"` + + // How instances that use this shape are charged. + BillingType ShapeBillingTypeEnum `mandatory:"false" json:"billingType,omitempty"` + + // The list of of compartment quotas for the shape. + QuotaNames []string `mandatory:"false" json:"quotaNames"` + + // Whether the shape supports creating subcore or burstable instances. A burstable instance (https://docs.cloud.oracle.com/iaas/Content/Compute/References/burstable-instances.htm) + // is a virtual machine (VM) instance that provides a baseline level of CPU performance with the ability to burst to a higher level to support occasional + // spikes in usage. + IsSubcore *bool `mandatory:"false" json:"isSubcore"` + + // Whether the shape supports creating flexible instances. A flexible shape (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm#flexible) + // is a shape that lets you customize the number of OCPUs and the amount of memory when launching or resizing your instance. + IsFlexible *bool `mandatory:"false" json:"isFlexible"` + + // The list of compatible shapes that this shape can be changed to. For more information, + // see Changing the Shape of an Instance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm). + ResizeCompatibleShapes []string `mandatory:"false" json:"resizeCompatibleShapes"` + + // The list of shapes and shape details (if applicable) that Oracle recommends that you use as an alternative to the current shape. + RecommendedAlternatives []ShapeAlternativeObject `mandatory:"false" json:"recommendedAlternatives"` +} + +func (m Shape) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Shape) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.BaselineOcpuUtilizations { + if _, ok := GetMappingShapeBaselineOcpuUtilizationsEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BaselineOcpuUtilizations: %s. Supported values are: %s.", val, strings.Join(GetShapeBaselineOcpuUtilizationsEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingShapeBillingTypeEnum(string(m.BillingType)); !ok && m.BillingType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BillingType: %s. Supported values are: %s.", m.BillingType, strings.Join(GetShapeBillingTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ShapeBaselineOcpuUtilizationsEnum Enum with underlying type: string +type ShapeBaselineOcpuUtilizationsEnum string + +// Set of constants representing the allowable values for ShapeBaselineOcpuUtilizationsEnum +const ( + ShapeBaselineOcpuUtilizations8 ShapeBaselineOcpuUtilizationsEnum = "BASELINE_1_8" + ShapeBaselineOcpuUtilizations2 ShapeBaselineOcpuUtilizationsEnum = "BASELINE_1_2" + ShapeBaselineOcpuUtilizations1 ShapeBaselineOcpuUtilizationsEnum = "BASELINE_1_1" +) + +var mappingShapeBaselineOcpuUtilizationsEnum = map[string]ShapeBaselineOcpuUtilizationsEnum{ + "BASELINE_1_8": ShapeBaselineOcpuUtilizations8, + "BASELINE_1_2": ShapeBaselineOcpuUtilizations2, + "BASELINE_1_1": ShapeBaselineOcpuUtilizations1, +} + +var mappingShapeBaselineOcpuUtilizationsEnumLowerCase = map[string]ShapeBaselineOcpuUtilizationsEnum{ + "baseline_1_8": ShapeBaselineOcpuUtilizations8, + "baseline_1_2": ShapeBaselineOcpuUtilizations2, + "baseline_1_1": ShapeBaselineOcpuUtilizations1, +} + +// GetShapeBaselineOcpuUtilizationsEnumValues Enumerates the set of values for ShapeBaselineOcpuUtilizationsEnum +func GetShapeBaselineOcpuUtilizationsEnumValues() []ShapeBaselineOcpuUtilizationsEnum { + values := make([]ShapeBaselineOcpuUtilizationsEnum, 0) + for _, v := range mappingShapeBaselineOcpuUtilizationsEnum { + values = append(values, v) + } + return values +} + +// GetShapeBaselineOcpuUtilizationsEnumStringValues Enumerates the set of values in String for ShapeBaselineOcpuUtilizationsEnum +func GetShapeBaselineOcpuUtilizationsEnumStringValues() []string { + return []string{ + "BASELINE_1_8", + "BASELINE_1_2", + "BASELINE_1_1", + } +} + +// GetMappingShapeBaselineOcpuUtilizationsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingShapeBaselineOcpuUtilizationsEnum(val string) (ShapeBaselineOcpuUtilizationsEnum, bool) { + enum, ok := mappingShapeBaselineOcpuUtilizationsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ShapeBillingTypeEnum Enum with underlying type: string +type ShapeBillingTypeEnum string + +// Set of constants representing the allowable values for ShapeBillingTypeEnum +const ( + ShapeBillingTypeAlwaysFree ShapeBillingTypeEnum = "ALWAYS_FREE" + ShapeBillingTypeLimitedFree ShapeBillingTypeEnum = "LIMITED_FREE" + ShapeBillingTypePaid ShapeBillingTypeEnum = "PAID" +) + +var mappingShapeBillingTypeEnum = map[string]ShapeBillingTypeEnum{ + "ALWAYS_FREE": ShapeBillingTypeAlwaysFree, + "LIMITED_FREE": ShapeBillingTypeLimitedFree, + "PAID": ShapeBillingTypePaid, +} + +var mappingShapeBillingTypeEnumLowerCase = map[string]ShapeBillingTypeEnum{ + "always_free": ShapeBillingTypeAlwaysFree, + "limited_free": ShapeBillingTypeLimitedFree, + "paid": ShapeBillingTypePaid, +} + +// GetShapeBillingTypeEnumValues Enumerates the set of values for ShapeBillingTypeEnum +func GetShapeBillingTypeEnumValues() []ShapeBillingTypeEnum { + values := make([]ShapeBillingTypeEnum, 0) + for _, v := range mappingShapeBillingTypeEnum { + values = append(values, v) + } + return values +} + +// GetShapeBillingTypeEnumStringValues Enumerates the set of values in String for ShapeBillingTypeEnum +func GetShapeBillingTypeEnumStringValues() []string { + return []string{ + "ALWAYS_FREE", + "LIMITED_FREE", + "PAID", + } +} + +// GetMappingShapeBillingTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingShapeBillingTypeEnum(val string) (ShapeBillingTypeEnum, bool) { + enum, ok := mappingShapeBillingTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_access_control_service_enabled_platform_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_access_control_service_enabled_platform_options.go new file mode 100644 index 0000000000..6fa1a9c23e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_access_control_service_enabled_platform_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeAccessControlServiceEnabledPlatformOptions Configuration options for the Access Control Service. +type ShapeAccessControlServiceEnabledPlatformOptions struct { + + // Whether the Access Control Service can be enabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether the Access Control Service is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeAccessControlServiceEnabledPlatformOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeAccessControlServiceEnabledPlatformOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_alternative_object.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_alternative_object.go new file mode 100644 index 0000000000..5849486665 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_alternative_object.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeAlternativeObject The shape that Oracle recommends you to use an alternative to the current shape. +type ShapeAlternativeObject struct { + + // The name of the shape. + ShapeName *string `mandatory:"true" json:"shapeName"` +} + +func (m ShapeAlternativeObject) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeAlternativeObject) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_input_output_memory_management_unit_enabled_platform_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_input_output_memory_management_unit_enabled_platform_options.go new file mode 100644 index 0000000000..43c4a94674 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_input_output_memory_management_unit_enabled_platform_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeInputOutputMemoryManagementUnitEnabledPlatformOptions Configuration options for the input-output memory management unit (IOMMU). +type ShapeInputOutputMemoryManagementUnitEnabledPlatformOptions struct { + + // Whether the input-output memory management unit can be enabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether the input-output memory management unit is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeInputOutputMemoryManagementUnitEnabledPlatformOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeInputOutputMemoryManagementUnitEnabledPlatformOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_max_vnic_attachment_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_max_vnic_attachment_options.go new file mode 100644 index 0000000000..a3acd79854 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_max_vnic_attachment_options.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeMaxVnicAttachmentOptions For a flexible shape, the number of VNIC attachments that are available for instances that use this shape. +// If this field is null, then this shape has a fixed maximum number of VNIC attachments equal to `maxVnicAttachments`. +type ShapeMaxVnicAttachmentOptions struct { + + // The lowest maximum value of VNIC attachments. + Min *int `mandatory:"false" json:"min"` + + // The highest maximum value of VNIC attachments. + Max *float32 `mandatory:"false" json:"max"` + + // The default number of VNIC attachments allowed per OCPU. + DefaultPerOcpu *float32 `mandatory:"false" json:"defaultPerOcpu"` +} + +func (m ShapeMaxVnicAttachmentOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeMaxVnicAttachmentOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_measured_boot_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_measured_boot_options.go new file mode 100644 index 0000000000..3fe5d191af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_measured_boot_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeMeasuredBootOptions Configuration options for the Measured Boot feature. +type ShapeMeasuredBootOptions struct { + + // Boolean values that indicate whether the Measured Boot feature can be enabled or disabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether the Measured Boot feature is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeMeasuredBootOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeMeasuredBootOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_encryption_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_encryption_options.go new file mode 100644 index 0000000000..27e475922a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_encryption_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeMemoryEncryptionOptions Configuration options for memory encryption. +type ShapeMemoryEncryptionOptions struct { + + // Whether memory encryption can be enabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether memory encryption is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeMemoryEncryptionOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeMemoryEncryptionOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_options.go new file mode 100644 index 0000000000..59c6d3bfa9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_memory_options.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeMemoryOptions For a flexible shape, the amount of memory available for instances that use this shape. +// If this field is null, then this shape has a fixed amount of memory equivalent to `memoryInGBs`. +type ShapeMemoryOptions struct { + + // The minimum amount of memory, in gigabytes. + MinInGBs *float32 `mandatory:"false" json:"minInGBs"` + + // The maximum amount of memory, in gigabytes. + MaxInGBs *float32 `mandatory:"false" json:"maxInGBs"` + + // The default amount of memory per OCPU available for this shape, in gigabytes. + DefaultPerOcpuInGBs *float32 `mandatory:"false" json:"defaultPerOcpuInGBs"` + + // The minimum amount of memory per OCPU available for this shape, in gigabytes. + MinPerOcpuInGBs *float32 `mandatory:"false" json:"minPerOcpuInGBs"` + + // The maximum amount of memory per OCPU available for this shape, in gigabytes. + MaxPerOcpuInGBs *float32 `mandatory:"false" json:"maxPerOcpuInGBs"` +} + +func (m ShapeMemoryOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeMemoryOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_networking_bandwidth_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_networking_bandwidth_options.go new file mode 100644 index 0000000000..3df509f6d7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_networking_bandwidth_options.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeNetworkingBandwidthOptions For a flexible shape, the amount of networking bandwidth available for instances that use this shape. +// If this field is null, then this shape has a fixed amount of bandwidth equivalent to `networkingBandwidthInGbps`. +type ShapeNetworkingBandwidthOptions struct { + + // The minimum amount of networking bandwidth, in gigabits per second. + MinInGbps *float32 `mandatory:"false" json:"minInGbps"` + + // The maximum amount of networking bandwidth, in gigabits per second. + MaxInGbps *float32 `mandatory:"false" json:"maxInGbps"` + + // The default amount of networking bandwidth per OCPU, in gigabits per second. + DefaultPerOcpuInGbps *float32 `mandatory:"false" json:"defaultPerOcpuInGbps"` +} + +func (m ShapeNetworkingBandwidthOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeNetworkingBandwidthOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_numa_nodes_per_socket_platform_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_numa_nodes_per_socket_platform_options.go new file mode 100644 index 0000000000..7066b17556 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_numa_nodes_per_socket_platform_options.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeNumaNodesPerSocketPlatformOptions Configuration options for NUMA nodes per socket. +type ShapeNumaNodesPerSocketPlatformOptions struct { + + // The supported values for this platform configuration property. + AllowedValues []ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum `mandatory:"false" json:"allowedValues,omitempty"` + + // The default NUMA nodes per socket configuration. + DefaultValue *string `mandatory:"false" json:"defaultValue"` +} + +func (m ShapeNumaNodesPerSocketPlatformOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeNumaNodesPerSocketPlatformOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.AllowedValues { + if _, ok := GetMappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AllowedValues: %s. Supported values are: %s.", val, strings.Join(GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum Enum with underlying type: string +type ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum string + +// Set of constants representing the allowable values for ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum +const ( + ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps0 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS0" + ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS1" + ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS2" + ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4 ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = "NPS4" +) + +var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum = map[string]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum{ + "NPS0": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps0, + "NPS1": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1, + "NPS2": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2, + "NPS4": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4, +} + +var mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumLowerCase = map[string]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum{ + "nps0": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps0, + "nps1": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps1, + "nps2": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps2, + "nps4": ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesNps4, +} + +// GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumValues Enumerates the set of values for ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum +func GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumValues() []ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum { + values := make([]ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum, 0) + for _, v := range mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum { + values = append(values, v) + } + return values +} + +// GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumStringValues Enumerates the set of values in String for ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum +func GetShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumStringValues() []string { + return []string{ + "NPS0", + "NPS1", + "NPS2", + "NPS4", + } +} + +// GetMappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum(val string) (ShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnum, bool) { + enum, ok := mappingShapeNumaNodesPerSocketPlatformOptionsAllowedValuesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_ocpu_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_ocpu_options.go new file mode 100644 index 0000000000..0e3e958877 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_ocpu_options.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeOcpuOptions For a flexible shape, the number of OCPUs available for instances that use this shape. +// If this field is null, then this shape has a fixed number of OCPUs equal to `ocpus`. +type ShapeOcpuOptions struct { + + // The minimum number of OCPUs. + Min *float32 `mandatory:"false" json:"min"` + + // The maximum number of OCPUs. + Max *float32 `mandatory:"false" json:"max"` +} + +func (m ShapeOcpuOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeOcpuOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_platform_config_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_platform_config_options.go new file mode 100644 index 0000000000..861f45d667 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_platform_config_options.go @@ -0,0 +1,128 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapePlatformConfigOptions The list of supported platform configuration options for this shape. +type ShapePlatformConfigOptions struct { + + // The type of platform being configured. + Type ShapePlatformConfigOptionsTypeEnum `mandatory:"false" json:"type,omitempty"` + + SecureBootOptions *ShapeSecureBootOptions `mandatory:"false" json:"secureBootOptions"` + + MeasuredBootOptions *ShapeMeasuredBootOptions `mandatory:"false" json:"measuredBootOptions"` + + TrustedPlatformModuleOptions *ShapeTrustedPlatformModuleOptions `mandatory:"false" json:"trustedPlatformModuleOptions"` + + NumaNodesPerSocketPlatformOptions *ShapeNumaNodesPerSocketPlatformOptions `mandatory:"false" json:"numaNodesPerSocketPlatformOptions"` + + MemoryEncryptionOptions *ShapeMemoryEncryptionOptions `mandatory:"false" json:"memoryEncryptionOptions"` + + SymmetricMultiThreadingOptions *ShapeSymmetricMultiThreadingEnabledPlatformOptions `mandatory:"false" json:"symmetricMultiThreadingOptions"` + + AccessControlServiceOptions *ShapeAccessControlServiceEnabledPlatformOptions `mandatory:"false" json:"accessControlServiceOptions"` + + VirtualInstructionsOptions *ShapeVirtualInstructionsEnabledPlatformOptions `mandatory:"false" json:"virtualInstructionsOptions"` + + InputOutputMemoryManagementUnitOptions *ShapeInputOutputMemoryManagementUnitEnabledPlatformOptions `mandatory:"false" json:"inputOutputMemoryManagementUnitOptions"` + + PercentageOfCoresEnabledOptions *PercentageOfCoresEnabledOptions `mandatory:"false" json:"percentageOfCoresEnabledOptions"` +} + +func (m ShapePlatformConfigOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapePlatformConfigOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingShapePlatformConfigOptionsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetShapePlatformConfigOptionsTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ShapePlatformConfigOptionsTypeEnum Enum with underlying type: string +type ShapePlatformConfigOptionsTypeEnum string + +// Set of constants representing the allowable values for ShapePlatformConfigOptionsTypeEnum +const ( + ShapePlatformConfigOptionsTypeAmdMilanBm ShapePlatformConfigOptionsTypeEnum = "AMD_MILAN_BM" + ShapePlatformConfigOptionsTypeAmdRomeBm ShapePlatformConfigOptionsTypeEnum = "AMD_ROME_BM" + ShapePlatformConfigOptionsTypeAmdRomeBmGpu ShapePlatformConfigOptionsTypeEnum = "AMD_ROME_BM_GPU" + ShapePlatformConfigOptionsTypeIntelIcelakeBm ShapePlatformConfigOptionsTypeEnum = "INTEL_ICELAKE_BM" + ShapePlatformConfigOptionsTypeIntelSkylakeBm ShapePlatformConfigOptionsTypeEnum = "INTEL_SKYLAKE_BM" + ShapePlatformConfigOptionsTypeAmdVm ShapePlatformConfigOptionsTypeEnum = "AMD_VM" + ShapePlatformConfigOptionsTypeIntelVm ShapePlatformConfigOptionsTypeEnum = "INTEL_VM" +) + +var mappingShapePlatformConfigOptionsTypeEnum = map[string]ShapePlatformConfigOptionsTypeEnum{ + "AMD_MILAN_BM": ShapePlatformConfigOptionsTypeAmdMilanBm, + "AMD_ROME_BM": ShapePlatformConfigOptionsTypeAmdRomeBm, + "AMD_ROME_BM_GPU": ShapePlatformConfigOptionsTypeAmdRomeBmGpu, + "INTEL_ICELAKE_BM": ShapePlatformConfigOptionsTypeIntelIcelakeBm, + "INTEL_SKYLAKE_BM": ShapePlatformConfigOptionsTypeIntelSkylakeBm, + "AMD_VM": ShapePlatformConfigOptionsTypeAmdVm, + "INTEL_VM": ShapePlatformConfigOptionsTypeIntelVm, +} + +var mappingShapePlatformConfigOptionsTypeEnumLowerCase = map[string]ShapePlatformConfigOptionsTypeEnum{ + "amd_milan_bm": ShapePlatformConfigOptionsTypeAmdMilanBm, + "amd_rome_bm": ShapePlatformConfigOptionsTypeAmdRomeBm, + "amd_rome_bm_gpu": ShapePlatformConfigOptionsTypeAmdRomeBmGpu, + "intel_icelake_bm": ShapePlatformConfigOptionsTypeIntelIcelakeBm, + "intel_skylake_bm": ShapePlatformConfigOptionsTypeIntelSkylakeBm, + "amd_vm": ShapePlatformConfigOptionsTypeAmdVm, + "intel_vm": ShapePlatformConfigOptionsTypeIntelVm, +} + +// GetShapePlatformConfigOptionsTypeEnumValues Enumerates the set of values for ShapePlatformConfigOptionsTypeEnum +func GetShapePlatformConfigOptionsTypeEnumValues() []ShapePlatformConfigOptionsTypeEnum { + values := make([]ShapePlatformConfigOptionsTypeEnum, 0) + for _, v := range mappingShapePlatformConfigOptionsTypeEnum { + values = append(values, v) + } + return values +} + +// GetShapePlatformConfigOptionsTypeEnumStringValues Enumerates the set of values in String for ShapePlatformConfigOptionsTypeEnum +func GetShapePlatformConfigOptionsTypeEnumStringValues() []string { + return []string{ + "AMD_MILAN_BM", + "AMD_ROME_BM", + "AMD_ROME_BM_GPU", + "INTEL_ICELAKE_BM", + "INTEL_SKYLAKE_BM", + "AMD_VM", + "INTEL_VM", + } +} + +// GetMappingShapePlatformConfigOptionsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingShapePlatformConfigOptionsTypeEnum(val string) (ShapePlatformConfigOptionsTypeEnum, bool) { + enum, ok := mappingShapePlatformConfigOptionsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_secure_boot_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_secure_boot_options.go new file mode 100644 index 0000000000..a5de9a9f18 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_secure_boot_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeSecureBootOptions Configuration options for Secure Boot. +type ShapeSecureBootOptions struct { + + // Boolean values that indicate whether Secure Boot can be enabled or disabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether Secure Boot is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeSecureBootOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeSecureBootOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_symmetric_multi_threading_enabled_platform_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_symmetric_multi_threading_enabled_platform_options.go new file mode 100644 index 0000000000..dad63f844a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_symmetric_multi_threading_enabled_platform_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeSymmetricMultiThreadingEnabledPlatformOptions Configuration options for symmetric multithreading (also called simultaneous multithreading or SMT). +type ShapeSymmetricMultiThreadingEnabledPlatformOptions struct { + + // Whether symmetric multithreading can be enabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether symmetric multithreading is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeSymmetricMultiThreadingEnabledPlatformOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeSymmetricMultiThreadingEnabledPlatformOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_trusted_platform_module_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_trusted_platform_module_options.go new file mode 100644 index 0000000000..7c1f650966 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_trusted_platform_module_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeTrustedPlatformModuleOptions Configuration options for the Trusted Platform Module (TPM). +type ShapeTrustedPlatformModuleOptions struct { + + // Boolean values that indicate whether the Trusted Platform Module can be enabled or disabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether the Trusted Platform Module is enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeTrustedPlatformModuleOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeTrustedPlatformModuleOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_virtual_instructions_enabled_platform_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_virtual_instructions_enabled_platform_options.go new file mode 100644 index 0000000000..a209bc917e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/shape_virtual_instructions_enabled_platform_options.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeVirtualInstructionsEnabledPlatformOptions Configuration options for the virtualization instructions. +type ShapeVirtualInstructionsEnabledPlatformOptions struct { + + // Whether virtualization instructions can be enabled. + AllowedValues []bool `mandatory:"false" json:"allowedValues"` + + // Whether virtualization instructions are enabled by default. + IsDefaultEnabled *bool `mandatory:"false" json:"isDefaultEnabled"` +} + +func (m ShapeVirtualInstructionsEnabledPlatformOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeVirtualInstructionsEnabledPlatformOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/smart_nic_vnic_attachment_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/smart_nic_vnic_attachment_info.go new file mode 100644 index 0000000000..40b106640c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/smart_nic_vnic_attachment_info.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SmartNicVnicAttachmentInfo Smart NIC VNIC attachment information +type SmartNicVnicAttachmentInfo struct { + + // Substrate IP address of the smart NIC that the VNIC is attached to + SubstrateIp *string `mandatory:"true" json:"substrateIp"` + + // Slot number assigned to the VNIC on this smart NIC + SlotId *int `mandatory:"true" json:"slotId"` + + // Index of this smart NIC (X7's have two smart NIC NICs) + NicIndex *int `mandatory:"false" json:"nicIndex"` + + // VlanTag assigned to the VNIC on this smart NIC + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // NAT IP assigned to the VNIC on this smart NIC + NatIp *string `mandatory:"false" json:"natIp"` +} + +func (m SmartNicVnicAttachmentInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SmartNicVnicAttachmentInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/soft_reset_action_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/soft_reset_action_details.go new file mode 100644 index 0000000000..de1b83be71 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/soft_reset_action_details.go @@ -0,0 +1,67 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SoftResetActionDetails Parameters for the `softReset` InstanceAction. If omitted, default values are used. +type SoftResetActionDetails struct { + + // For instances that use a DenseIO shape, the flag denoting whether + // reboot migration (https://docs.cloud.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm#reboot) + // is performed for the instance. The default value is `false`. + // If the instance has a date in the Maintenance reboot field and you do nothing (or set this flag to `false`), the instance + // will be rebuilt at the scheduled maintenance time. The instance will experience 2-6 hours of downtime during the + // maintenance process. The local NVMe-based SSD will be preserved. + // If you want to minimize downtime and can delete the SSD, you can set this flag to `true` and proactively reboot the + // instance before the scheduled maintenance time. The instance will be reboot migrated to a healthy host and the SSD will be + // deleted. A short downtime occurs during the migration. + // **Caution:** When `true`, the SSD is permanently deleted. We recommend that you create a backup of the SSD before proceeding. + AllowDenseRebootMigration *bool `mandatory:"false" json:"allowDenseRebootMigration"` +} + +func (m SoftResetActionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SoftResetActionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m SoftResetActionDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSoftResetActionDetails SoftResetActionDetails + s := struct { + DiscriminatorParam string `json:"actionType"` + MarshalTypeSoftResetActionDetails + }{ + "softreset", + (MarshalTypeSoftResetActionDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/softreset_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/softreset_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go index ff83314044..36ac9a0c69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/softreset_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/softreset_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // SoftresetInstancePoolRequest wrapper for the SoftresetInstancePool operation @@ -43,6 +45,10 @@ func (request SoftresetInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request SoftresetInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request SoftresetInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SoftresetInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SoftresetInstancePoolResponse wrapper for the SoftresetInstancePool operation type SoftresetInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/softstop_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/softstop_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go index fbcbb73025..3dac4923ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/softstop_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/softstop_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // SoftstopInstancePoolRequest wrapper for the SoftstopInstancePool operation @@ -43,6 +45,10 @@ func (request SoftstopInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request SoftstopInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request SoftstopInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SoftstopInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SoftstopInstancePoolResponse wrapper for the SoftstopInstancePool operation type SoftstopInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/ssl_cert_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/ssl_cert_details.go new file mode 100644 index 0000000000..184b5a7b24 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/ssl_cert_details.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SslCertDetails The encoded SslCert of ClientVpn which is used in LDAP. +type SslCertDetails interface { +} + +type sslcertdetails struct { + JsonData []byte + ContentType string `json:"contentType"` +} + +// UnmarshalJSON unmarshals json +func (m *sslcertdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalersslcertdetails sslcertdetails + s := struct { + Model Unmarshalersslcertdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.ContentType = s.Model.ContentType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *sslcertdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ContentType { + case "BASE64ENCODED": + mm := Base64SslCertDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for SslCertDetails: %s.", m.ContentType) + return *m, nil + } +} + +func (m sslcertdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m sslcertdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SslCertDetailsContentTypeEnum Enum with underlying type: string +type SslCertDetailsContentTypeEnum string + +// Set of constants representing the allowable values for SslCertDetailsContentTypeEnum +const ( + SslCertDetailsContentTypeBase64encoded SslCertDetailsContentTypeEnum = "BASE64ENCODED" +) + +var mappingSslCertDetailsContentTypeEnum = map[string]SslCertDetailsContentTypeEnum{ + "BASE64ENCODED": SslCertDetailsContentTypeBase64encoded, +} + +var mappingSslCertDetailsContentTypeEnumLowerCase = map[string]SslCertDetailsContentTypeEnum{ + "base64encoded": SslCertDetailsContentTypeBase64encoded, +} + +// GetSslCertDetailsContentTypeEnumValues Enumerates the set of values for SslCertDetailsContentTypeEnum +func GetSslCertDetailsContentTypeEnumValues() []SslCertDetailsContentTypeEnum { + values := make([]SslCertDetailsContentTypeEnum, 0) + for _, v := range mappingSslCertDetailsContentTypeEnum { + values = append(values, v) + } + return values +} + +// GetSslCertDetailsContentTypeEnumStringValues Enumerates the set of values in String for SslCertDetailsContentTypeEnum +func GetSslCertDetailsContentTypeEnumStringValues() []string { + return []string{ + "BASE64ENCODED", + } +} + +// GetMappingSslCertDetailsContentTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSslCertDetailsContentTypeEnum(val string) (SslCertDetailsContentTypeEnum, bool) { + enum, ok := mappingSslCertDetailsContentTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/start_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/start_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go index 3ce6336538..af56765bee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/start_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/start_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // StartInstancePoolRequest wrapper for the StartInstancePool operation @@ -43,6 +45,10 @@ func (request StartInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request StartInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request StartInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StartInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // StartInstancePoolResponse wrapper for the StartInstancePool operation type StartInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/stop_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/stop_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go index 496c348724..872676db5e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/stop_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/stop_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // StopInstancePoolRequest wrapper for the StopInstancePool operation @@ -43,6 +45,10 @@ func (request StopInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request StopInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request StopInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StopInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // StopInstancePoolResponse wrapper for the StopInstancePool operation type StopInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/subnet.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/subnet.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go index d02cbb55f6..388a56b6ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/subnet.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Subnet A logical subdivision of a VCN. Each subnet @@ -93,6 +95,9 @@ type Subnet struct { // Example: `2001:0db8:0123:1111::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + // The list of all IPv6 CIDR blocks (Oracle allocated IPv6 GUA, ULA or private IPv6 CIDR blocks, BYOIPv6 CIDR blocks) for the subnet. + Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` + // For an IPv6-enabled subnet, this is the IPv6 address of the virtual router. // Example: `2001:0db8:0123:1111:89ab:cdef:1234:5678` Ipv6VirtualRouterIp *string `mandatory:"false" json:"ipv6VirtualRouterIp"` @@ -153,6 +158,21 @@ func (m Subnet) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Subnet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSubnetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSubnetLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SubnetLifecycleStateEnum Enum with underlying type: string type SubnetLifecycleStateEnum string @@ -165,7 +185,7 @@ const ( SubnetLifecycleStateUpdating SubnetLifecycleStateEnum = "UPDATING" ) -var mappingSubnetLifecycleState = map[string]SubnetLifecycleStateEnum{ +var mappingSubnetLifecycleStateEnum = map[string]SubnetLifecycleStateEnum{ "PROVISIONING": SubnetLifecycleStateProvisioning, "AVAILABLE": SubnetLifecycleStateAvailable, "TERMINATING": SubnetLifecycleStateTerminating, @@ -173,11 +193,36 @@ var mappingSubnetLifecycleState = map[string]SubnetLifecycleStateEnum{ "UPDATING": SubnetLifecycleStateUpdating, } +var mappingSubnetLifecycleStateEnumLowerCase = map[string]SubnetLifecycleStateEnum{ + "provisioning": SubnetLifecycleStateProvisioning, + "available": SubnetLifecycleStateAvailable, + "terminating": SubnetLifecycleStateTerminating, + "terminated": SubnetLifecycleStateTerminated, + "updating": SubnetLifecycleStateUpdating, +} + // GetSubnetLifecycleStateEnumValues Enumerates the set of values for SubnetLifecycleStateEnum func GetSubnetLifecycleStateEnumValues() []SubnetLifecycleStateEnum { values := make([]SubnetLifecycleStateEnum, 0) - for _, v := range mappingSubnetLifecycleState { + for _, v := range mappingSubnetLifecycleStateEnum { values = append(values, v) } return values } + +// GetSubnetLifecycleStateEnumStringValues Enumerates the set of values in String for SubnetLifecycleStateEnum +func GetSubnetLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + } +} + +// GetMappingSubnetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSubnetLifecycleStateEnum(val string) (SubnetLifecycleStateEnum, bool) { + enum, ok := mappingSubnetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet_topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet_topology.go new file mode 100644 index 0000000000..e0ff98221a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/subnet_topology.go @@ -0,0 +1,121 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SubnetTopology Defines the visualization of a subnet in a VCN. +type SubnetTopology struct { + + // Lists entities comprising the virtual network topology. + Entities []interface{} `mandatory:"true" json:"entities"` + + // Lists relationships between entities in the virtual network topology. + Relationships []TopologyEntityRelationship `mandatory:"true" json:"relationships"` + + // Records when the virtual network topology was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format for date and time. + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet for which the visualization is generated. + SubnetId *string `mandatory:"false" json:"subnetId"` +} + +//GetEntities returns Entities +func (m SubnetTopology) GetEntities() []interface{} { + return m.Entities +} + +//GetRelationships returns Relationships +func (m SubnetTopology) GetRelationships() []TopologyEntityRelationship { + return m.Relationships +} + +//GetTimeCreated returns TimeCreated +func (m SubnetTopology) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +func (m SubnetTopology) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SubnetTopology) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m SubnetTopology) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSubnetTopology SubnetTopology + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeSubnetTopology + }{ + "SUBNET", + (MarshalTypeSubnetTopology)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *SubnetTopology) UnmarshalJSON(data []byte) (e error) { + model := struct { + SubnetId *string `json:"subnetId"` + Entities []interface{} `json:"entities"` + Relationships []topologyentityrelationship `json:"relationships"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.SubnetId = model.SubnetId + + m.Entities = make([]interface{}, len(model.Entities)) + for i, n := range model.Entities { + m.Entities[i] = n + } + + m.Relationships = make([]TopologyEntityRelationship, len(model.Relationships)) + for i, n := range model.Relationships { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Relationships[i] = nn.(TopologyEntityRelationship) + } else { + m.Relationships[i] = nil + } + } + + m.TimeCreated = model.TimeCreated + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tcp_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tcp_options.go new file mode 100644 index 0000000000..af2cb34f65 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tcp_options.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TcpOptions Optional and valid only for TCP. Use to specify particular destination ports for TCP rules. +// If you specify TCP as the protocol but omit this object, then all destination ports are allowed. +type TcpOptions struct { + DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` + + SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` +} + +func (m TcpOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TcpOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_cluster_network_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go index 55a11bb02e..3aeee89b2e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_cluster_network_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // TerminateClusterNetworkRequest wrapper for the TerminateClusterNetwork operation @@ -36,6 +38,10 @@ func (request TerminateClusterNetworkRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request TerminateClusterNetworkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request TerminateClusterNetworkRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request TerminateClusterNetworkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // TerminateClusterNetworkResponse wrapper for the TerminateClusterNetwork operation type TerminateClusterNetworkResponse struct { @@ -61,7 +78,8 @@ type TerminateClusterNetworkResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_pool_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_pool_request_response.go index 67e79450e8..44a5b7403b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // TerminateInstancePoolRequest wrapper for the TerminateInstancePool operation @@ -36,6 +38,10 @@ func (request TerminateInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request TerminateInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request TerminateInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request TerminateInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // TerminateInstancePoolResponse wrapper for the TerminateInstancePool operation type TerminateInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go index 0037ba9b93..406d3cddf2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/terminate_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // TerminateInstanceRequest wrapper for the TerminateInstance operation @@ -40,6 +42,10 @@ func (request TerminateInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request TerminateInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,17 @@ func (request TerminateInstanceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request TerminateInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // TerminateInstanceResponse wrapper for the TerminateInstance operation type TerminateInstanceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_preemption_action.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_preemption_action.go new file mode 100644 index 0000000000..995531c68a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/terminate_preemption_action.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TerminatePreemptionAction Terminates the preemptible instance when it is interrupted for eviction. +type TerminatePreemptionAction struct { + + // Whether to preserve the boot volume that was used to launch the preemptible instance when the instance is terminated. Defaults to false if not specified. + PreserveBootVolume *bool `mandatory:"false" json:"preserveBootVolume"` +} + +func (m TerminatePreemptionAction) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TerminatePreemptionAction) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TerminatePreemptionAction) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTerminatePreemptionAction TerminatePreemptionAction + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeTerminatePreemptionAction + }{ + "TERMINATE", + (MarshalTypeTerminatePreemptionAction)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology.go new file mode 100644 index 0000000000..ad69ad1449 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology.go @@ -0,0 +1,169 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Topology Defines the representation of a virtual network topology. +type Topology interface { + + // Lists entities comprising the virtual network topology. + GetEntities() []interface{} + + // Lists relationships between entities in the virtual network topology. + GetRelationships() []TopologyEntityRelationship + + // Records when the virtual network topology was created, in RFC3339 (https://tools.ietf.org/html/rfc3339) format for date and time. + GetTimeCreated() *common.SDKTime +} + +type topology struct { + JsonData []byte + Entities []interface{} `mandatory:"true" json:"entities"` + Relationships json.RawMessage `mandatory:"true" json:"relationships"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *topology) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalertopology topology + s := struct { + Model Unmarshalertopology + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Entities = s.Model.Entities + m.Relationships = s.Model.Relationships + m.TimeCreated = s.Model.TimeCreated + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *topology) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "VCN": + mm := VcnTopology{} + err = json.Unmarshal(data, &mm) + return mm, err + case "NETWORKING": + mm := NetworkingTopology{} + err = json.Unmarshal(data, &mm) + return mm, err + case "SUBNET": + mm := SubnetTopology{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for Topology: %s.", m.Type) + return *m, nil + } +} + +//GetEntities returns Entities +func (m topology) GetEntities() []interface{} { + return m.Entities +} + +//GetRelationships returns Relationships +func (m topology) GetRelationships() json.RawMessage { + return m.Relationships +} + +//GetTimeCreated returns TimeCreated +func (m topology) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +func (m topology) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m topology) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TopologyTypeEnum Enum with underlying type: string +type TopologyTypeEnum string + +// Set of constants representing the allowable values for TopologyTypeEnum +const ( + TopologyTypeNetworking TopologyTypeEnum = "NETWORKING" + TopologyTypeVcn TopologyTypeEnum = "VCN" + TopologyTypeSubnet TopologyTypeEnum = "SUBNET" + TopologyTypePath TopologyTypeEnum = "PATH" +) + +var mappingTopologyTypeEnum = map[string]TopologyTypeEnum{ + "NETWORKING": TopologyTypeNetworking, + "VCN": TopologyTypeVcn, + "SUBNET": TopologyTypeSubnet, + "PATH": TopologyTypePath, +} + +var mappingTopologyTypeEnumLowerCase = map[string]TopologyTypeEnum{ + "networking": TopologyTypeNetworking, + "vcn": TopologyTypeVcn, + "subnet": TopologyTypeSubnet, + "path": TopologyTypePath, +} + +// GetTopologyTypeEnumValues Enumerates the set of values for TopologyTypeEnum +func GetTopologyTypeEnumValues() []TopologyTypeEnum { + values := make([]TopologyTypeEnum, 0) + for _, v := range mappingTopologyTypeEnum { + values = append(values, v) + } + return values +} + +// GetTopologyTypeEnumStringValues Enumerates the set of values in String for TopologyTypeEnum +func GetTopologyTypeEnumStringValues() []string { + return []string{ + "NETWORKING", + "VCN", + "SUBNET", + "PATH", + } +} + +// GetMappingTopologyTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTopologyTypeEnum(val string) (TopologyTypeEnum, bool) { + enum, ok := mappingTopologyTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_entity_relationship.go new file mode 100644 index 0000000000..3dc3eb82c8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_entity_relationship.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TopologyAssociatedWithEntityRelationship Defines the `AssociatedWith` relationship between virtual network topology entities. An `AssociatedWith` relationship +// is defined when there is no obvious `contains` relationship but entities are still related. +// For example, a DRG is associated with a VCN because a DRG is not managed by VCN but can be +// attached to a VCN. +type TopologyAssociatedWithEntityRelationship struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. + Id1 *string `mandatory:"true" json:"id1"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. + Id2 *string `mandatory:"true" json:"id2"` + + AssociatedWithDetails *TopologyAssociatedWithRelationshipDetails `mandatory:"false" json:"associatedWithDetails"` +} + +//GetId1 returns Id1 +func (m TopologyAssociatedWithEntityRelationship) GetId1() *string { + return m.Id1 +} + +//GetId2 returns Id2 +func (m TopologyAssociatedWithEntityRelationship) GetId2() *string { + return m.Id2 +} + +func (m TopologyAssociatedWithEntityRelationship) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TopologyAssociatedWithEntityRelationship) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TopologyAssociatedWithEntityRelationship) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTopologyAssociatedWithEntityRelationship TopologyAssociatedWithEntityRelationship + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeTopologyAssociatedWithEntityRelationship + }{ + "ASSOCIATED_WITH", + (MarshalTypeTopologyAssociatedWithEntityRelationship)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_relationship_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_relationship_details.go new file mode 100644 index 0000000000..b3ca54c5be --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_associated_with_relationship_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TopologyAssociatedWithRelationshipDetails Defines association details for an `associatedWith` relationship. +type TopologyAssociatedWithRelationshipDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entities via which the relationship is created. For example an instance is associated with a network security group via the VNIC attachment and the VNIC. + Via []string `mandatory:"false" json:"via"` +} + +func (m TopologyAssociatedWithRelationshipDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TopologyAssociatedWithRelationshipDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_contains_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_contains_entity_relationship.go new file mode 100644 index 0000000000..9bb4cdf104 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_contains_entity_relationship.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TopologyContainsEntityRelationship Defines the `contains` relationship between virtual network topology entities. A `Contains` relationship +// is defined when an entity fully owns, contains or manages another entity. +// For example, a subnet is contained and managed in the scope of a VCN, therefore a VCN has a +// `contains` relationship to a subnet. +type TopologyContainsEntityRelationship struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. + Id1 *string `mandatory:"true" json:"id1"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. + Id2 *string `mandatory:"true" json:"id2"` +} + +//GetId1 returns Id1 +func (m TopologyContainsEntityRelationship) GetId1() *string { + return m.Id1 +} + +//GetId2 returns Id2 +func (m TopologyContainsEntityRelationship) GetId2() *string { + return m.Id2 +} + +func (m TopologyContainsEntityRelationship) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TopologyContainsEntityRelationship) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TopologyContainsEntityRelationship) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTopologyContainsEntityRelationship TopologyContainsEntityRelationship + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeTopologyContainsEntityRelationship + }{ + "CONTAINS", + (MarshalTypeTopologyContainsEntityRelationship)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_entity_relationship.go new file mode 100644 index 0000000000..64097ef0c0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_entity_relationship.go @@ -0,0 +1,155 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TopologyEntityRelationship Defines the relationship between Virtual Network topology entities. +type TopologyEntityRelationship interface { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. + GetId1() *string + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. + GetId2() *string +} + +type topologyentityrelationship struct { + JsonData []byte + Id1 *string `mandatory:"true" json:"id1"` + Id2 *string `mandatory:"true" json:"id2"` + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *topologyentityrelationship) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalertopologyentityrelationship topologyentityrelationship + s := struct { + Model Unmarshalertopologyentityrelationship + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Id1 = s.Model.Id1 + m.Id2 = s.Model.Id2 + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *topologyentityrelationship) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "ROUTES_TO": + mm := TopologyRoutesToEntityRelationship{} + err = json.Unmarshal(data, &mm) + return mm, err + case "ASSOCIATED_WITH": + mm := TopologyAssociatedWithEntityRelationship{} + err = json.Unmarshal(data, &mm) + return mm, err + case "CONTAINS": + mm := TopologyContainsEntityRelationship{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for TopologyEntityRelationship: %s.", m.Type) + return *m, nil + } +} + +//GetId1 returns Id1 +func (m topologyentityrelationship) GetId1() *string { + return m.Id1 +} + +//GetId2 returns Id2 +func (m topologyentityrelationship) GetId2() *string { + return m.Id2 +} + +func (m topologyentityrelationship) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m topologyentityrelationship) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TopologyEntityRelationshipTypeEnum Enum with underlying type: string +type TopologyEntityRelationshipTypeEnum string + +// Set of constants representing the allowable values for TopologyEntityRelationshipTypeEnum +const ( + TopologyEntityRelationshipTypeContains TopologyEntityRelationshipTypeEnum = "CONTAINS" + TopologyEntityRelationshipTypeAssociatedWith TopologyEntityRelationshipTypeEnum = "ASSOCIATED_WITH" + TopologyEntityRelationshipTypeRoutesTo TopologyEntityRelationshipTypeEnum = "ROUTES_TO" +) + +var mappingTopologyEntityRelationshipTypeEnum = map[string]TopologyEntityRelationshipTypeEnum{ + "CONTAINS": TopologyEntityRelationshipTypeContains, + "ASSOCIATED_WITH": TopologyEntityRelationshipTypeAssociatedWith, + "ROUTES_TO": TopologyEntityRelationshipTypeRoutesTo, +} + +var mappingTopologyEntityRelationshipTypeEnumLowerCase = map[string]TopologyEntityRelationshipTypeEnum{ + "contains": TopologyEntityRelationshipTypeContains, + "associated_with": TopologyEntityRelationshipTypeAssociatedWith, + "routes_to": TopologyEntityRelationshipTypeRoutesTo, +} + +// GetTopologyEntityRelationshipTypeEnumValues Enumerates the set of values for TopologyEntityRelationshipTypeEnum +func GetTopologyEntityRelationshipTypeEnumValues() []TopologyEntityRelationshipTypeEnum { + values := make([]TopologyEntityRelationshipTypeEnum, 0) + for _, v := range mappingTopologyEntityRelationshipTypeEnum { + values = append(values, v) + } + return values +} + +// GetTopologyEntityRelationshipTypeEnumStringValues Enumerates the set of values in String for TopologyEntityRelationshipTypeEnum +func GetTopologyEntityRelationshipTypeEnumStringValues() []string { + return []string{ + "CONTAINS", + "ASSOCIATED_WITH", + "ROUTES_TO", + } +} + +// GetMappingTopologyEntityRelationshipTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTopologyEntityRelationshipTypeEnum(val string) (TopologyEntityRelationshipTypeEnum, bool) { + enum, ok := mappingTopologyEntityRelationshipTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_entity_relationship.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_entity_relationship.go new file mode 100644 index 0000000000..84a95aea32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_entity_relationship.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TopologyRoutesToEntityRelationship Defines the `routesTo` relationship between virtual network topology entities. A `RoutesTo` relationship +// is defined when a routing table and a routing rule are used to govern how to route traffic +// from one entity to another. For example, a DRG might have a routing rule to send certain traffic to an LPG. +type TopologyRoutesToEntityRelationship struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the first entity in the relationship. + Id1 *string `mandatory:"true" json:"id1"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the second entity in the relationship. + Id2 *string `mandatory:"true" json:"id2"` + + RouteRuleDetails *TopologyRoutesToRelationshipDetails `mandatory:"true" json:"routeRuleDetails"` +} + +//GetId1 returns Id1 +func (m TopologyRoutesToEntityRelationship) GetId1() *string { + return m.Id1 +} + +//GetId2 returns Id2 +func (m TopologyRoutesToEntityRelationship) GetId2() *string { + return m.Id2 +} + +func (m TopologyRoutesToEntityRelationship) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TopologyRoutesToEntityRelationship) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m TopologyRoutesToEntityRelationship) MarshalJSON() (buff []byte, e error) { + type MarshalTypeTopologyRoutesToEntityRelationship TopologyRoutesToEntityRelationship + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeTopologyRoutesToEntityRelationship + }{ + "ROUTES_TO", + (MarshalTypeTopologyRoutesToEntityRelationship)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_relationship_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_relationship_details.go new file mode 100644 index 0000000000..24ed9d6ce8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/topology_routes_to_relationship_details.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TopologyRoutesToRelationshipDetails Defines route rule details for a `routesTo` relationship. +type TopologyRoutesToRelationshipDetails struct { + + // The destinationType can be set to one of two values: + // * Use `CIDR_BLOCK` if the rule's `destination` is an IP address range in CIDR notation. + // * Use `SERVICE_CIDR_BLOCK` if the rule's `destination` is the `cidrBlock` value for a Service. + DestinationType *string `mandatory:"true" json:"destinationType"` + + // An IP address range in CIDR notation or the `cidrBlock` value for a Service. + Destination *string `mandatory:"true" json:"destination"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the routing table that contains the route rule. + RouteTableId *string `mandatory:"true" json:"routeTableId"` + + // A route rule can be `STATIC` if manually added to the route table or `DYNAMIC` if imported from another route table. + RouteType TopologyRoutesToRelationshipDetailsRouteTypeEnum `mandatory:"false" json:"routeType,omitempty"` +} + +func (m TopologyRoutesToRelationshipDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TopologyRoutesToRelationshipDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTopologyRoutesToRelationshipDetailsRouteTypeEnum(string(m.RouteType)); !ok && m.RouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RouteType: %s. Supported values are: %s.", m.RouteType, strings.Join(GetTopologyRoutesToRelationshipDetailsRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TopologyRoutesToRelationshipDetailsRouteTypeEnum Enum with underlying type: string +type TopologyRoutesToRelationshipDetailsRouteTypeEnum string + +// Set of constants representing the allowable values for TopologyRoutesToRelationshipDetailsRouteTypeEnum +const ( + TopologyRoutesToRelationshipDetailsRouteTypeStatic TopologyRoutesToRelationshipDetailsRouteTypeEnum = "STATIC" + TopologyRoutesToRelationshipDetailsRouteTypeDynamic TopologyRoutesToRelationshipDetailsRouteTypeEnum = "DYNAMIC" +) + +var mappingTopologyRoutesToRelationshipDetailsRouteTypeEnum = map[string]TopologyRoutesToRelationshipDetailsRouteTypeEnum{ + "STATIC": TopologyRoutesToRelationshipDetailsRouteTypeStatic, + "DYNAMIC": TopologyRoutesToRelationshipDetailsRouteTypeDynamic, +} + +var mappingTopologyRoutesToRelationshipDetailsRouteTypeEnumLowerCase = map[string]TopologyRoutesToRelationshipDetailsRouteTypeEnum{ + "static": TopologyRoutesToRelationshipDetailsRouteTypeStatic, + "dynamic": TopologyRoutesToRelationshipDetailsRouteTypeDynamic, +} + +// GetTopologyRoutesToRelationshipDetailsRouteTypeEnumValues Enumerates the set of values for TopologyRoutesToRelationshipDetailsRouteTypeEnum +func GetTopologyRoutesToRelationshipDetailsRouteTypeEnumValues() []TopologyRoutesToRelationshipDetailsRouteTypeEnum { + values := make([]TopologyRoutesToRelationshipDetailsRouteTypeEnum, 0) + for _, v := range mappingTopologyRoutesToRelationshipDetailsRouteTypeEnum { + values = append(values, v) + } + return values +} + +// GetTopologyRoutesToRelationshipDetailsRouteTypeEnumStringValues Enumerates the set of values in String for TopologyRoutesToRelationshipDetailsRouteTypeEnum +func GetTopologyRoutesToRelationshipDetailsRouteTypeEnumStringValues() []string { + return []string{ + "STATIC", + "DYNAMIC", + } +} + +// GetMappingTopologyRoutesToRelationshipDetailsRouteTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTopologyRoutesToRelationshipDetailsRouteTypeEnum(val string) (TopologyRoutesToRelationshipDetailsRouteTypeEnum, bool) { + enum, ok := mappingTopologyRoutesToRelationshipDetailsRouteTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_config.go new file mode 100644 index 0000000000..37d0b13bd1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_config.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelConfig Deprecated. For tunnel information, instead see: +// * IPSecConnectionTunnel +// * IPSecConnectionTunnelSharedSecret +type TunnelConfig struct { + + // The IP address of Oracle's VPN headend. + // Example: `203.0.113.50 ` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The shared secret of the IPSec tunnel. + SharedSecret *string `mandatory:"true" json:"sharedSecret"` + + // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m TunnelConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_cpe_device_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_cpe_device_config.go new file mode 100644 index 0000000000..821692f422 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_cpe_device_config.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelCpeDeviceConfig The set of CPE configuration answers for the tunnel, which the customer provides in +// UpdateTunnelCpeDeviceConfig. +// The answers correlate to the questions that are specific to the CPE device type (see the +// `parameters` attribute of CpeDeviceShapeDetail). +// See these related operations: +// * GetTunnelCpeDeviceConfig +// * GetTunnelCpeDeviceConfigContent +// * GetIpsecCpeDeviceConfigContent +// * GetCpeDeviceConfigContent +type TunnelCpeDeviceConfig struct { + TunnelCpeDeviceConfigParameter []CpeDeviceConfigAnswer `mandatory:"false" json:"tunnelCpeDeviceConfigParameter"` +} + +func (m TunnelCpeDeviceConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelCpeDeviceConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_one_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_one_details.go new file mode 100644 index 0000000000..40cc90ce82 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_one_details.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelPhaseOneDetails IPSec tunnel details specific to ISAKMP phase one. +type TunnelPhaseOneDetails struct { + + // Indicates whether custom phase one configuration is enabled. + // If this option is not enabled, default settings are proposed. + IsCustomPhaseOneConfig *bool `mandatory:"false" json:"isCustomPhaseOneConfig"` + + // The total configured lifetime of the IKE security association. + Lifetime *int64 `mandatory:"false" json:"lifetime"` + + // The remaining lifetime before the key is refreshed. + RemainingLifetime *int64 `mandatory:"false" json:"remainingLifetime"` + + // The proposed custom authentication algorithm. + CustomAuthenticationAlgorithm *string `mandatory:"false" json:"customAuthenticationAlgorithm"` + + // The negotiated authentication algorithm. + NegotiatedAuthenticationAlgorithm *string `mandatory:"false" json:"negotiatedAuthenticationAlgorithm"` + + // The proposed custom encryption algorithm. + CustomEncryptionAlgorithm *string `mandatory:"false" json:"customEncryptionAlgorithm"` + + // The negotiated encryption algorithm. + NegotiatedEncryptionAlgorithm *string `mandatory:"false" json:"negotiatedEncryptionAlgorithm"` + + // The proposed custom Diffie-Hellman group. + CustomDhGroup *string `mandatory:"false" json:"customDhGroup"` + + // The negotiated Diffie-Hellman group. + NegotiatedDhGroup *string `mandatory:"false" json:"negotiatedDhGroup"` + + // Indicates whether IKE phase one is established. + IsIkeEstablished *bool `mandatory:"false" json:"isIkeEstablished"` + + // The date and time we retrieved the remaining lifetime, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + RemainingLifetimeLastRetrieved *common.SDKTime `mandatory:"false" json:"remainingLifetimeLastRetrieved"` +} + +func (m TunnelPhaseOneDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelPhaseOneDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_two_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_two_details.go new file mode 100644 index 0000000000..27951860dc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_phase_two_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelPhaseTwoDetails IPsec tunnel detail information specific to phase two. +type TunnelPhaseTwoDetails struct { + + // Indicates whether custom phase two configuration is enabled. + // If this option is not enabled, default settings are proposed. + IsCustomPhaseTwoConfig *bool `mandatory:"false" json:"isCustomPhaseTwoConfig"` + + // The total configured lifetime of the IKE security association. + Lifetime *int64 `mandatory:"false" json:"lifetime"` + + // The remaining lifetime before the key is refreshed. + RemainingLifetime *int64 `mandatory:"false" json:"remainingLifetime"` + + // Phase two authentication algorithm proposed during tunnel negotiation. + CustomAuthenticationAlgorithm *string `mandatory:"false" json:"customAuthenticationAlgorithm"` + + // The negotiated phase two authentication algorithm. + NegotiatedAuthenticationAlgorithm *string `mandatory:"false" json:"negotiatedAuthenticationAlgorithm"` + + // The proposed custom phase two encryption algorithm. + CustomEncryptionAlgorithm *string `mandatory:"false" json:"customEncryptionAlgorithm"` + + // The negotiated encryption algorithm. + NegotiatedEncryptionAlgorithm *string `mandatory:"false" json:"negotiatedEncryptionAlgorithm"` + + // The proposed Diffie-Hellman group. + DhGroup *string `mandatory:"false" json:"dhGroup"` + + // The negotiated Diffie-Hellman group. + NegotiatedDhGroup *string `mandatory:"false" json:"negotiatedDhGroup"` + + // Indicates that ESP phase two is established. + IsEspEstablished *bool `mandatory:"false" json:"isEspEstablished"` + + // Indicates that PFS (perfect forward secrecy) is enabled. + IsPfsEnabled *bool `mandatory:"false" json:"isPfsEnabled"` + + // The date and time the remaining lifetime was last retrieved, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + RemainingLifetimeLastRetrieved *common.SDKTime `mandatory:"false" json:"remainingLifetimeLastRetrieved"` +} + +func (m TunnelPhaseTwoDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelPhaseTwoDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_route_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_route_summary.go new file mode 100644 index 0000000000..d0e72c738e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_route_summary.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelRouteSummary A summary of the routes advertised to and received from the on-premises network. +type TunnelRouteSummary struct { + + // The BGP network layer reachability information. + Prefix *string `mandatory:"false" json:"prefix"` + + // The age of the route. + Age *int64 `mandatory:"false" json:"age"` + + // Indicates this is the best route. + IsBestPath *bool `mandatory:"false" json:"isBestPath"` + + // A list of ASNs in AS_Path. + AsPath []int `mandatory:"false" json:"asPath"` + + // The source of the route advertisement. + Advertiser TunnelRouteSummaryAdvertiserEnum `mandatory:"false" json:"advertiser,omitempty"` +} + +func (m TunnelRouteSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelRouteSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTunnelRouteSummaryAdvertiserEnum(string(m.Advertiser)); !ok && m.Advertiser != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Advertiser: %s. Supported values are: %s.", m.Advertiser, strings.Join(GetTunnelRouteSummaryAdvertiserEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TunnelRouteSummaryAdvertiserEnum Enum with underlying type: string +type TunnelRouteSummaryAdvertiserEnum string + +// Set of constants representing the allowable values for TunnelRouteSummaryAdvertiserEnum +const ( + TunnelRouteSummaryAdvertiserCustomer TunnelRouteSummaryAdvertiserEnum = "CUSTOMER" + TunnelRouteSummaryAdvertiserOracle TunnelRouteSummaryAdvertiserEnum = "ORACLE" +) + +var mappingTunnelRouteSummaryAdvertiserEnum = map[string]TunnelRouteSummaryAdvertiserEnum{ + "CUSTOMER": TunnelRouteSummaryAdvertiserCustomer, + "ORACLE": TunnelRouteSummaryAdvertiserOracle, +} + +var mappingTunnelRouteSummaryAdvertiserEnumLowerCase = map[string]TunnelRouteSummaryAdvertiserEnum{ + "customer": TunnelRouteSummaryAdvertiserCustomer, + "oracle": TunnelRouteSummaryAdvertiserOracle, +} + +// GetTunnelRouteSummaryAdvertiserEnumValues Enumerates the set of values for TunnelRouteSummaryAdvertiserEnum +func GetTunnelRouteSummaryAdvertiserEnumValues() []TunnelRouteSummaryAdvertiserEnum { + values := make([]TunnelRouteSummaryAdvertiserEnum, 0) + for _, v := range mappingTunnelRouteSummaryAdvertiserEnum { + values = append(values, v) + } + return values +} + +// GetTunnelRouteSummaryAdvertiserEnumStringValues Enumerates the set of values in String for TunnelRouteSummaryAdvertiserEnum +func GetTunnelRouteSummaryAdvertiserEnumStringValues() []string { + return []string{ + "CUSTOMER", + "ORACLE", + } +} + +// GetMappingTunnelRouteSummaryAdvertiserEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTunnelRouteSummaryAdvertiserEnum(val string) (TunnelRouteSummaryAdvertiserEnum, bool) { + enum, ok := mappingTunnelRouteSummaryAdvertiserEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_security_association_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_security_association_summary.go new file mode 100644 index 0000000000..5de8639027 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_security_association_summary.go @@ -0,0 +1,116 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelSecurityAssociationSummary A summary of the IPSec tunnel security association details. +type TunnelSecurityAssociationSummary struct { + + // The IP address and mask of the partner subnet used in policy based VPNs or static routes. + CpeSubnet *string `mandatory:"false" json:"cpeSubnet"` + + // The IP address and mask of the local subnet used in policy based VPNs or static routes. + OracleSubnet *string `mandatory:"false" json:"oracleSubnet"` + + // The IPSec tunnel's phase one status. + TunnelSaStatus TunnelSecurityAssociationSummaryTunnelSaStatusEnum `mandatory:"false" json:"tunnelSaStatus,omitempty"` + + // Current state if the IPSec tunnel status is not `UP`, including phase one and phase two details and a possible reason the tunnel is not `UP`. + TunnelSaErrorInfo *string `mandatory:"false" json:"tunnelSaErrorInfo"` + + // Time in the current state, in seconds. + Time *string `mandatory:"false" json:"time"` +} + +func (m TunnelSecurityAssociationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelSecurityAssociationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTunnelSecurityAssociationSummaryTunnelSaStatusEnum(string(m.TunnelSaStatus)); !ok && m.TunnelSaStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TunnelSaStatus: %s. Supported values are: %s.", m.TunnelSaStatus, strings.Join(GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TunnelSecurityAssociationSummaryTunnelSaStatusEnum Enum with underlying type: string +type TunnelSecurityAssociationSummaryTunnelSaStatusEnum string + +// Set of constants representing the allowable values for TunnelSecurityAssociationSummaryTunnelSaStatusEnum +const ( + TunnelSecurityAssociationSummaryTunnelSaStatusInitiating TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "INITIATING" + TunnelSecurityAssociationSummaryTunnelSaStatusListening TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "LISTENING" + TunnelSecurityAssociationSummaryTunnelSaStatusUp TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "UP" + TunnelSecurityAssociationSummaryTunnelSaStatusDown TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "DOWN" + TunnelSecurityAssociationSummaryTunnelSaStatusError TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "ERROR" + TunnelSecurityAssociationSummaryTunnelSaStatusUnknown TunnelSecurityAssociationSummaryTunnelSaStatusEnum = "UNKNOWN" +) + +var mappingTunnelSecurityAssociationSummaryTunnelSaStatusEnum = map[string]TunnelSecurityAssociationSummaryTunnelSaStatusEnum{ + "INITIATING": TunnelSecurityAssociationSummaryTunnelSaStatusInitiating, + "LISTENING": TunnelSecurityAssociationSummaryTunnelSaStatusListening, + "UP": TunnelSecurityAssociationSummaryTunnelSaStatusUp, + "DOWN": TunnelSecurityAssociationSummaryTunnelSaStatusDown, + "ERROR": TunnelSecurityAssociationSummaryTunnelSaStatusError, + "UNKNOWN": TunnelSecurityAssociationSummaryTunnelSaStatusUnknown, +} + +var mappingTunnelSecurityAssociationSummaryTunnelSaStatusEnumLowerCase = map[string]TunnelSecurityAssociationSummaryTunnelSaStatusEnum{ + "initiating": TunnelSecurityAssociationSummaryTunnelSaStatusInitiating, + "listening": TunnelSecurityAssociationSummaryTunnelSaStatusListening, + "up": TunnelSecurityAssociationSummaryTunnelSaStatusUp, + "down": TunnelSecurityAssociationSummaryTunnelSaStatusDown, + "error": TunnelSecurityAssociationSummaryTunnelSaStatusError, + "unknown": TunnelSecurityAssociationSummaryTunnelSaStatusUnknown, +} + +// GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumValues Enumerates the set of values for TunnelSecurityAssociationSummaryTunnelSaStatusEnum +func GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumValues() []TunnelSecurityAssociationSummaryTunnelSaStatusEnum { + values := make([]TunnelSecurityAssociationSummaryTunnelSaStatusEnum, 0) + for _, v := range mappingTunnelSecurityAssociationSummaryTunnelSaStatusEnum { + values = append(values, v) + } + return values +} + +// GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumStringValues Enumerates the set of values in String for TunnelSecurityAssociationSummaryTunnelSaStatusEnum +func GetTunnelSecurityAssociationSummaryTunnelSaStatusEnumStringValues() []string { + return []string{ + "INITIATING", + "LISTENING", + "UP", + "DOWN", + "ERROR", + "UNKNOWN", + } +} + +// GetMappingTunnelSecurityAssociationSummaryTunnelSaStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTunnelSecurityAssociationSummaryTunnelSaStatusEnum(val string) (TunnelSecurityAssociationSummaryTunnelSaStatusEnum, bool) { + enum, ok := mappingTunnelSecurityAssociationSummaryTunnelSaStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_status.go new file mode 100644 index 0000000000..a3478de610 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/tunnel_status.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TunnelStatus Deprecated. For tunnel information, instead see IPSecConnectionTunnel. +type TunnelStatus struct { + + // The IP address of Oracle's VPN headend. + // Example: `203.0.113.50` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The tunnel's current state. + LifecycleState TunnelStatusLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The date and time the IPSec connection was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // When the state of the tunnel last changed, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeStateModified *common.SDKTime `mandatory:"false" json:"timeStateModified"` +} + +func (m TunnelStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TunnelStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTunnelStatusLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTunnelStatusLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TunnelStatusLifecycleStateEnum Enum with underlying type: string +type TunnelStatusLifecycleStateEnum string + +// Set of constants representing the allowable values for TunnelStatusLifecycleStateEnum +const ( + TunnelStatusLifecycleStateUp TunnelStatusLifecycleStateEnum = "UP" + TunnelStatusLifecycleStateDown TunnelStatusLifecycleStateEnum = "DOWN" + TunnelStatusLifecycleStateDownForMaintenance TunnelStatusLifecycleStateEnum = "DOWN_FOR_MAINTENANCE" + TunnelStatusLifecycleStatePartialUp TunnelStatusLifecycleStateEnum = "PARTIAL_UP" +) + +var mappingTunnelStatusLifecycleStateEnum = map[string]TunnelStatusLifecycleStateEnum{ + "UP": TunnelStatusLifecycleStateUp, + "DOWN": TunnelStatusLifecycleStateDown, + "DOWN_FOR_MAINTENANCE": TunnelStatusLifecycleStateDownForMaintenance, + "PARTIAL_UP": TunnelStatusLifecycleStatePartialUp, +} + +var mappingTunnelStatusLifecycleStateEnumLowerCase = map[string]TunnelStatusLifecycleStateEnum{ + "up": TunnelStatusLifecycleStateUp, + "down": TunnelStatusLifecycleStateDown, + "down_for_maintenance": TunnelStatusLifecycleStateDownForMaintenance, + "partial_up": TunnelStatusLifecycleStatePartialUp, +} + +// GetTunnelStatusLifecycleStateEnumValues Enumerates the set of values for TunnelStatusLifecycleStateEnum +func GetTunnelStatusLifecycleStateEnumValues() []TunnelStatusLifecycleStateEnum { + values := make([]TunnelStatusLifecycleStateEnum, 0) + for _, v := range mappingTunnelStatusLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetTunnelStatusLifecycleStateEnumStringValues Enumerates the set of values in String for TunnelStatusLifecycleStateEnum +func GetTunnelStatusLifecycleStateEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + "DOWN_FOR_MAINTENANCE", + "PARTIAL_UP", + } +} + +// GetMappingTunnelStatusLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTunnelStatusLifecycleStateEnum(val string) (TunnelStatusLifecycleStateEnum, bool) { + enum, ok := mappingTunnelStatusLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/udp_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/udp_options.go new file mode 100644 index 0000000000..0383345168 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/udp_options.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UdpOptions Optional and valid only for UDP. Use to specify particular destination ports for UDP rules. +// If you specify UDP as the protocol but omit this object, then all destination ports are allowed. +type UdpOptions struct { + DestinationPortRange *PortRange `mandatory:"false" json:"destinationPortRange"` + + SourcePortRange *PortRange `mandatory:"false" json:"sourcePortRange"` +} + +func (m UdpOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UdpOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/undrain_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/undrain_vnic_worker_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/undrain_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/undrain_vnic_worker_request_response.go index d9b1be5cc0..0d29a5c394 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/undrain_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/undrain_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UndrainVnicWorkerRequest wrapper for the UndrainVnicWorker operation type UndrainVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request UndrainVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UndrainVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request UndrainVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UndrainVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UndrainVnicWorkerResponse wrapper for the UndrainVnicWorker operation type UndrainVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_details.go new file mode 100644 index 0000000000..9cdcbceec8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBootVolumeBackupDetails The representation of UpdateBootVolumeBackupDetails +type UpdateBootVolumeBackupDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateBootVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBootVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_request_response.go index e014bac8a6..c50f789870 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateBootVolumeBackupRequest wrapper for the UpdateBootVolumeBackup operation @@ -39,6 +41,10 @@ func (request UpdateBootVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateBootVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateBootVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBootVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateBootVolumeBackupResponse wrapper for the UpdateBootVolumeBackup operation type UpdateBootVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_details.go new file mode 100644 index 0000000000..927eb7f9ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_details.go @@ -0,0 +1,130 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBootVolumeDetails The representation of UpdateBootVolumeDetails +type UpdateBootVolumeDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The size to resize the volume to in GBs. Has to be larger than the current size. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // Specifies whether the auto-tune performance is enabled for this boot volume. This field is deprecated. + // Use the `DetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The list of boot volume replicas that this boot volume will be updated to have + // in the specified destination availability domains. + BootVolumeReplicas []BootVolumeReplicaDetails `mandatory:"false" json:"bootVolumeReplicas"` + + // The list of autotune policies to be enabled for this volume. + AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` +} + +func (m UpdateBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateBootVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + SizeInGBs *int64 `json:"sizeInGBs"` + VpusPerGB *int64 `json:"vpusPerGB"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + BootVolumeReplicas []BootVolumeReplicaDetails `json:"bootVolumeReplicas"` + AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.SizeInGBs = model.SizeInGBs + + m.VpusPerGB = model.VpusPerGB + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.BootVolumeReplicas = make([]BootVolumeReplicaDetails, len(model.BootVolumeReplicas)) + for i, n := range model.BootVolumeReplicas { + m.BootVolumeReplicas[i] = n + } + + m.AutotunePolicies = make([]AutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(AutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_details.go new file mode 100644 index 0000000000..aeb794545d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBootVolumeKmsKeyDetails The representation of UpdateBootVolumeKmsKeyDetails +type UpdateBootVolumeKmsKeyDetails struct { + + // The OCID of the new Vault service key to assign to protect the specified volume. + // This key has to be a valid Vault service key, and policies must exist to allow the user and the Block Volume service to access this key. + // If you specify the same OCID as the previous key's OCID, the Block Volume service will use it to regenerate a volume encryption key. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m UpdateBootVolumeKmsKeyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBootVolumeKmsKeyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_request_response.go index a64918d084..9124bde264 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_kms_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_kms_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateBootVolumeKmsKeyRequest wrapper for the UpdateBootVolumeKmsKey operation @@ -15,7 +17,7 @@ type UpdateBootVolumeKmsKeyRequest struct { // The OCID of the boot volume. BootVolumeId *string `mandatory:"true" contributesTo:"path" name:"bootVolumeId"` - // Updates the Key Management master encryption key assigned to the specified boot volume. + // Updates the Vault service master encryption key assigned to the specified boot volume. UpdateBootVolumeKmsKeyDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -39,6 +41,10 @@ func (request UpdateBootVolumeKmsKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateBootVolumeKmsKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateBootVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBootVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateBootVolumeKmsKeyResponse wrapper for the UpdateBootVolumeKmsKey operation type UpdateBootVolumeKmsKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go index 2c76d90229..3d4b94fbfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_boot_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_boot_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateBootVolumeRequest wrapper for the UpdateBootVolume operation @@ -39,6 +41,10 @@ func (request UpdateBootVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateBootVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateBootVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBootVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateBootVolumeResponse wrapper for the UpdateBootVolume operation type UpdateBootVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_details.go new file mode 100644 index 0000000000..6142392d86 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateByoipRangeDetails The information used to update a `ByoipRange` resource. +type UpdateByoipRangeDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateByoipRangeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateByoipRangeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go index b790e1cc37..d8d2f54c6d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateByoipRangeRequest wrapper for the UpdateByoipRange operation @@ -39,6 +41,10 @@ func (request UpdateByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateByoipRangeResponse wrapper for the UpdateByoipRange operation type UpdateByoipRangeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_c3_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_c3_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_c3_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_c3_drg_attachment_request_response.go index d0d949847d..09a80fbb91 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_c3_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_c3_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateC3DrgAttachmentRequest wrapper for the UpdateC3DrgAttachment operation @@ -39,6 +41,10 @@ func (request UpdateC3DrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateC3DrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateC3DrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateC3DrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateC3DrgAttachmentResponse wrapper for the UpdateC3DrgAttachment operation type UpdateC3DrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_c3_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_c3_drg_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_c3_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_c3_drg_request_response.go index 471e98c0ba..5ab18d4270 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_c3_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_c3_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateC3DrgRequest wrapper for the UpdateC3Drg operation type UpdateC3DrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Details object for updating a DRG. @@ -39,6 +41,10 @@ func (request UpdateC3DrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateC3DrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateC3DrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateC3DrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateC3DrgResponse wrapper for the UpdateC3Drg operation type UpdateC3DrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_details.go new file mode 100644 index 0000000000..fe1bbd1ace --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCaptureFilterDetails These details can be included in a request to update a capture filter. A capture filter contains a set of rules governing what traffic a VTAP mirrors. +type UpdateCaptureFilterDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The set of rules governing what traffic a VTAP mirrors. + VtapCaptureFilterRules []VtapCaptureFilterRuleDetails `mandatory:"false" json:"vtapCaptureFilterRules"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateCaptureFilterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCaptureFilterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go index 5b94925f77..370b8efff6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_capture_filter_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_capture_filter_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateCaptureFilterRequest wrapper for the UpdateCaptureFilter operation type UpdateCaptureFilterRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the capture filter. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the capture filter. CaptureFilterId *string `mandatory:"true" contributesTo:"path" name:"captureFilterId"` // Details object for updating a VTAP. @@ -39,6 +41,10 @@ func (request UpdateCaptureFilterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateCaptureFilterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateCaptureFilterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCaptureFilterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateCaptureFilterResponse wrapper for the UpdateCaptureFilter operation type UpdateCaptureFilterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_details.go new file mode 100644 index 0000000000..63e1f264d5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_details.go @@ -0,0 +1,181 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateClientVpnDetails A request to update clientVpn. +type UpdateClientVpnDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A subnet for openVPN clients to access servers. Default is 172.27.224.0/20 + ClientSubnetCidr *string `mandatory:"false" json:"clientSubnetCidr"` + + // A list of accessible subnets from this clientVpnEnpoint. + AccessibleSubnetCidrs []string `mandatory:"false" json:"accessibleSubnetCidrs"` + + // Whether re-route Internet traffic or not. + IsRerouteEnabled *bool `mandatory:"false" json:"isRerouteEnabled"` + + // Allowed values: + // * `NAT`: NAT mode supports one-way access. In NAT mode, client can access the Internet from server endpoint + // but server endpoint cannot access the Internet from client. + // * `ROUTING`: ROUTING mode supports two-way access. In ROUTING mode, client and server endpoint can access the + // Internet to each other. + AddressingMode UpdateClientVpnDetailsAddressingModeEnum `mandatory:"false" json:"addressingMode,omitempty"` + + RadiusConfig *RadiusConfigDetails `mandatory:"false" json:"radiusConfig"` + + LdapConfig *LdapConfigDetails `mandatory:"false" json:"ldapConfig"` + + DnsConfig *DnsConfigDetails `mandatory:"false" json:"dnsConfig"` + + SslCert SslCertDetails `mandatory:"false" json:"sslCert"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateClientVpnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClientVpnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateClientVpnDetailsAddressingModeEnum(string(m.AddressingMode)); !ok && m.AddressingMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AddressingMode: %s. Supported values are: %s.", m.AddressingMode, strings.Join(GetUpdateClientVpnDetailsAddressingModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateClientVpnDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DisplayName *string `json:"displayName"` + ClientSubnetCidr *string `json:"clientSubnetCidr"` + AccessibleSubnetCidrs []string `json:"accessibleSubnetCidrs"` + IsRerouteEnabled *bool `json:"isRerouteEnabled"` + AddressingMode UpdateClientVpnDetailsAddressingModeEnum `json:"addressingMode"` + RadiusConfig *RadiusConfigDetails `json:"radiusConfig"` + LdapConfig *LdapConfigDetails `json:"ldapConfig"` + DnsConfig *DnsConfigDetails `json:"dnsConfig"` + SslCert sslcertdetails `json:"sslCert"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DisplayName = model.DisplayName + + m.ClientSubnetCidr = model.ClientSubnetCidr + + m.AccessibleSubnetCidrs = make([]string, len(model.AccessibleSubnetCidrs)) + for i, n := range model.AccessibleSubnetCidrs { + m.AccessibleSubnetCidrs[i] = n + } + + m.IsRerouteEnabled = model.IsRerouteEnabled + + m.AddressingMode = model.AddressingMode + + m.RadiusConfig = model.RadiusConfig + + m.LdapConfig = model.LdapConfig + + m.DnsConfig = model.DnsConfig + + nn, e = model.SslCert.UnmarshalPolymorphicJSON(model.SslCert.JsonData) + if e != nil { + return + } + if nn != nil { + m.SslCert = nn.(SslCertDetails) + } else { + m.SslCert = nil + } + + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + return +} + +// UpdateClientVpnDetailsAddressingModeEnum Enum with underlying type: string +type UpdateClientVpnDetailsAddressingModeEnum string + +// Set of constants representing the allowable values for UpdateClientVpnDetailsAddressingModeEnum +const ( + UpdateClientVpnDetailsAddressingModeNat UpdateClientVpnDetailsAddressingModeEnum = "NAT" + UpdateClientVpnDetailsAddressingModeRouting UpdateClientVpnDetailsAddressingModeEnum = "ROUTING" +) + +var mappingUpdateClientVpnDetailsAddressingModeEnum = map[string]UpdateClientVpnDetailsAddressingModeEnum{ + "NAT": UpdateClientVpnDetailsAddressingModeNat, + "ROUTING": UpdateClientVpnDetailsAddressingModeRouting, +} + +var mappingUpdateClientVpnDetailsAddressingModeEnumLowerCase = map[string]UpdateClientVpnDetailsAddressingModeEnum{ + "nat": UpdateClientVpnDetailsAddressingModeNat, + "routing": UpdateClientVpnDetailsAddressingModeRouting, +} + +// GetUpdateClientVpnDetailsAddressingModeEnumValues Enumerates the set of values for UpdateClientVpnDetailsAddressingModeEnum +func GetUpdateClientVpnDetailsAddressingModeEnumValues() []UpdateClientVpnDetailsAddressingModeEnum { + values := make([]UpdateClientVpnDetailsAddressingModeEnum, 0) + for _, v := range mappingUpdateClientVpnDetailsAddressingModeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateClientVpnDetailsAddressingModeEnumStringValues Enumerates the set of values in String for UpdateClientVpnDetailsAddressingModeEnum +func GetUpdateClientVpnDetailsAddressingModeEnumStringValues() []string { + return []string{ + "NAT", + "ROUTING", + } +} + +// GetMappingUpdateClientVpnDetailsAddressingModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateClientVpnDetailsAddressingModeEnum(val string) (UpdateClientVpnDetailsAddressingModeEnum, bool) { + enum, ok := mappingUpdateClientVpnDetailsAddressingModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_request_response.go index 07c9de9eac..1dd82150b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateClientVpnRequest wrapper for the UpdateClientVpn operation type UpdateClientVpnRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // Details for updating ClientVpn @@ -46,6 +48,10 @@ func (request UpdateClientVpnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateClientVpnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateClientVpnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateClientVpnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateClientVpnResponse wrapper for the UpdateClientVpn operation type UpdateClientVpnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_details.go new file mode 100644 index 0000000000..2c1094fa32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateClientVpnUserDetails The request to update clientVpnUser. +type UpdateClientVpnUserDetails struct { + + // The password of the user want to create. + Password *string `mandatory:"false" json:"password"` + + // Whether to log in the user by cert-authentication only or not. + IsCertAuthOnly *bool `mandatory:"false" json:"isCertAuthOnly"` +} + +func (m UpdateClientVpnUserDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClientVpnUserDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_request_response.go index 42d8c3d5a4..24ca715bc4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_client_vpn_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_client_vpn_user_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateClientVpnUserRequest wrapper for the UpdateClientVpnUser operation type UpdateClientVpnUserRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ClientVpn. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the ClientVpn. ClientVpnId *string `mandatory:"true" contributesTo:"path" name:"clientVpnId"` // The username of the ClientVpnUser. @@ -42,6 +44,10 @@ func (request UpdateClientVpnUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateClientVpnUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateClientVpnUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateClientVpnUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateClientVpnUserResponse wrapper for the UpdateClientVpnUser operation type UpdateClientVpnUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_details.go new file mode 100644 index 0000000000..14102b711f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateClusterNetworkDetails The data to update a cluster network. +type UpdateClusterNetworkDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The instance pools in the cluster network to update. + InstancePools []UpdateClusterNetworkInstancePoolDetails `mandatory:"false" json:"instancePools"` +} + +func (m UpdateClusterNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClusterNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_instance_pool_details.go new file mode 100644 index 0000000000..11f70f917c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_instance_pool_details.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateClusterNetworkInstancePoolDetails The data to update an instance pool within a cluster network. +type UpdateClusterNetworkInstancePoolDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance pool. + Id *string `mandatory:"true" json:"id"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The number of instances that should be in the instance pool. + Size *int `mandatory:"false" json:"size"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the instance configuration associated with the instance pool. + InstanceConfigurationId *string `mandatory:"false" json:"instanceConfigurationId"` +} + +func (m UpdateClusterNetworkInstancePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateClusterNetworkInstancePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go index 993491235e..a0db5dceef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cluster_network_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cluster_network_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateClusterNetworkRequest wrapper for the UpdateClusterNetwork operation @@ -46,6 +48,10 @@ func (request UpdateClusterNetworkRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateClusterNetworkRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateClusterNetworkRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateClusterNetworkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateClusterNetworkResponse wrapper for the UpdateClusterNetwork operation type UpdateClusterNetworkResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_details.go new file mode 100644 index 0000000000..1002495a55 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_details.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateComputeCapacityReservationDetails Details for updating the compute capacity reservation. +type UpdateComputeCapacityReservationDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether this capacity reservation is the default. + // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). + IsDefaultReservation *bool `mandatory:"false" json:"isDefaultReservation"` + + // The capacity configurations for the capacity reservation. + // To use the reservation for the desired shape, specify the shape, count, and + // optionally the fault domain where you want this configuration. + InstanceReservationConfigs []InstanceReservationConfigDetails `mandatory:"false" json:"instanceReservationConfigs"` +} + +func (m UpdateComputeCapacityReservationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeCapacityReservationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_request_response.go index 3d19d602c3..f573c7a041 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_capacity_reservation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_capacity_reservation_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateComputeCapacityReservationRequest wrapper for the UpdateComputeCapacityReservation operation @@ -39,6 +41,10 @@ func (request UpdateComputeCapacityReservationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateComputeCapacityReservationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateComputeCapacityReservationRequest) RetryPolicy() *common.Ret return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeCapacityReservationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateComputeCapacityReservationResponse wrapper for the UpdateComputeCapacityReservation operation type UpdateComputeCapacityReservationResponse struct { @@ -64,7 +81,8 @@ type UpdateComputeCapacityReservationResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_details.go new file mode 100644 index 0000000000..7b8506760e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateComputeClusterDetails The data to update a compute cluster (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm), which is a remote direct memory access (RDMA) network group. +type UpdateComputeClusterDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateComputeClusterDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeClusterDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go index c40843d46b..7c072492a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_cluster_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_cluster_request_response.go @@ -1,21 +1,25 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateComputeClusterRequest wrapper for the UpdateComputeCluster operation type UpdateComputeClusterRequest struct { - // The OCID of the compute cluster. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compute cluster. + // A compute cluster is a remote direct memory access (RDMA) network group. + // For more information, see Compute Clusters (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/compute-clusters.htm). ComputeClusterId *string `mandatory:"true" contributesTo:"path" name:"computeClusterId"` - // Compute cluster update details + // Details for updating the compute cluster. UpdateComputeClusterDetails `contributesTo:"body"` // Unique identifier for the request. @@ -46,6 +50,10 @@ func (request UpdateComputeClusterRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateComputeClusterRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +69,17 @@ func (request UpdateComputeClusterRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeClusterRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateComputeClusterResponse wrapper for the UpdateComputeCluster operation type UpdateComputeClusterResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_image_capability_schema_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_image_capability_schema_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_image_capability_schema_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_image_capability_schema_details.go index 2bd362cd34..4c59f3491c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_image_capability_schema_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_image_capability_schema_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateComputeImageCapabilitySchemaDetails Create Image Capability Schema for an image. @@ -43,6 +45,18 @@ func (m UpdateComputeImageCapabilitySchemaDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateComputeImageCapabilitySchemaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *UpdateComputeImageCapabilitySchemaDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_image_capability_schema_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_image_capability_schema_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_image_capability_schema_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_image_capability_schema_request_response.go index c10c86b044..5f0efda84a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_compute_image_capability_schema_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_compute_image_capability_schema_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateComputeImageCapabilitySchemaRequest wrapper for the UpdateComputeImageCapabilitySchema operation @@ -39,6 +41,10 @@ func (request UpdateComputeImageCapabilitySchemaRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateComputeImageCapabilitySchemaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateComputeImageCapabilitySchemaRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateComputeImageCapabilitySchemaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateComputeImageCapabilitySchemaResponse wrapper for the UpdateComputeImageCapabilitySchema operation type UpdateComputeImageCapabilitySchemaResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_details.go new file mode 100644 index 0000000000..e90e77ea9d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateConsoleHistoryDetails The representation of UpdateConsoleHistoryDetails +type UpdateConsoleHistoryDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateConsoleHistoryDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateConsoleHistoryDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go index c06055de78..3eb831d8ca 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_console_history_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_console_history_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateConsoleHistoryRequest wrapper for the UpdateConsoleHistory operation @@ -39,6 +41,10 @@ func (request UpdateConsoleHistoryRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateConsoleHistoryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateConsoleHistoryRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateConsoleHistoryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateConsoleHistoryResponse wrapper for the UpdateConsoleHistory operation type UpdateConsoleHistoryResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_details.go new file mode 100644 index 0000000000..ee43596cea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCpeDetails The representation of UpdateCpeDetails +type UpdateCpeDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE device type. You can provide + // a value if you want to generate CPE device configuration content for IPSec connections + // that use this CPE. For a list of possible values, see + // ListCpeDeviceShapes. + // For more information about generating CPE device configuration content, see: + // * GetCpeDeviceConfigContent + // * GetIpsecCpeDeviceConfigContent + // * GetTunnelCpeDeviceConfigContent + // * GetTunnelCpeDeviceConfig + CpeDeviceShapeId *string `mandatory:"false" json:"cpeDeviceShapeId"` +} + +func (m UpdateCpeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCpeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go index 89686acb8b..09706dd4a6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cpe_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cpe_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateCpeRequest wrapper for the UpdateCpe operation type UpdateCpeRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the CPE. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the CPE. CpeId *string `mandatory:"true" contributesTo:"path" name:"cpeId"` // Details object for updating a CPE. @@ -39,6 +41,10 @@ func (request UpdateCpeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateCpeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateCpeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCpeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateCpeResponse wrapper for the UpdateCpe operation type UpdateCpeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_details.go new file mode 100644 index 0000000000..9b38f7c5b9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCrossConnectDetails Update a CrossConnect +type UpdateCrossConnectDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Set to true to activate the cross-connect. You activate it after the physical cabling + // is complete, and you've confirmed the cross-connect's light levels are good and your side + // of the interface is up. Activation indicates to Oracle that the physical connection is ready. + // Example: `true` + IsActive *bool `mandatory:"false" json:"isActive"` + + // A reference name or identifier for the physical fiber connection this cross-connect uses. + CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` + + MacsecProperties *UpdateMacsecProperties `mandatory:"false" json:"macsecProperties"` +} + +func (m UpdateCrossConnectDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCrossConnectDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_details.go new file mode 100644 index 0000000000..1405e547bd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCrossConnectGroupDetails The representation of UpdateCrossConnectGroupDetails +type UpdateCrossConnectGroupDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A reference name or identifier for the physical fiber connection this cross-connect group uses. + CustomerReferenceName *string `mandatory:"false" json:"customerReferenceName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + MacsecProperties *UpdateMacsecProperties `mandatory:"false" json:"macsecProperties"` +} + +func (m UpdateCrossConnectGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCrossConnectGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_request_response.go index 1788f8b549..7ea2518f1e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_group_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateCrossConnectGroupRequest wrapper for the UpdateCrossConnectGroup operation type UpdateCrossConnectGroupRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect group. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect group. CrossConnectGroupId *string `mandatory:"true" contributesTo:"path" name:"crossConnectGroupId"` // Update CrossConnectGroup fields @@ -39,6 +41,10 @@ func (request UpdateCrossConnectGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateCrossConnectGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateCrossConnectGroupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCrossConnectGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateCrossConnectGroupResponse wrapper for the UpdateCrossConnectGroup operation type UpdateCrossConnectGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go index 9d1bb8e09c..b97cd77b9d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_cross_connect_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_cross_connect_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateCrossConnectRequest wrapper for the UpdateCrossConnect operation type UpdateCrossConnectRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the cross-connect. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the cross-connect. CrossConnectId *string `mandatory:"true" contributesTo:"path" name:"crossConnectId"` // Update CrossConnect fields. @@ -39,6 +41,10 @@ func (request UpdateCrossConnectRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateCrossConnectRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateCrossConnectRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCrossConnectRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateCrossConnectResponse wrapper for the UpdateCrossConnect operation type UpdateCrossConnectResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_details.go new file mode 100644 index 0000000000..5be267c345 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDavDetails Details to update a Direct Attached Vnic. +type UpdateDavDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // List of VCNx Attachments to a DRG. + VcnxAttachmentIds []string `mandatory:"false" json:"vcnxAttachmentIds"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateDavDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDavDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_request_response.go index 4038190b2b..ad5c5990f5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dav_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dav_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDavRequest wrapper for the UpdateDav operation @@ -46,6 +48,10 @@ func (request UpdateDavRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDavRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,13 +67,25 @@ func (request UpdateDavRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDavRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDavResponse wrapper for the UpdateDav operation type UpdateDavResponse struct { // The underlying http response RawResponse *http.Response - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_details.go new file mode 100644 index 0000000000..b77fa271cc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDedicatedVmHostDetails Details for updating the dedicated virtual machine host details. +type UpdateDedicatedVmHostDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateDedicatedVmHostDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDedicatedVmHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_request_response.go index a0eae356af..f1f184a74a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dedicated_vm_host_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dedicated_vm_host_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDedicatedVmHostRequest wrapper for the UpdateDedicatedVmHost operation @@ -46,6 +48,10 @@ func (request UpdateDedicatedVmHostRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDedicatedVmHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateDedicatedVmHostRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDedicatedVmHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDedicatedVmHostResponse wrapper for the UpdateDedicatedVmHost operation type UpdateDedicatedVmHostResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_details.go new file mode 100644 index 0000000000..305af13da3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_details.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDhcpDetails The representation of UpdateDhcpDetails +type UpdateDhcpDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + Options []DhcpOption `mandatory:"false" json:"options"` + + // The search domain name type of DHCP options + DomainNameType UpdateDhcpDetailsDomainNameTypeEnum `mandatory:"false" json:"domainNameType,omitempty"` +} + +func (m UpdateDhcpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDhcpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateDhcpDetailsDomainNameTypeEnum(string(m.DomainNameType)); !ok && m.DomainNameType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DomainNameType: %s. Supported values are: %s.", m.DomainNameType, strings.Join(GetUpdateDhcpDetailsDomainNameTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateDhcpDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + Options []dhcpoption `json:"options"` + DomainNameType UpdateDhcpDetailsDomainNameTypeEnum `json:"domainNameType"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.Options = make([]DhcpOption, len(model.Options)) + for i, n := range model.Options { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Options[i] = nn.(DhcpOption) + } else { + m.Options[i] = nil + } + } + + m.DomainNameType = model.DomainNameType + + return +} + +// UpdateDhcpDetailsDomainNameTypeEnum Enum with underlying type: string +type UpdateDhcpDetailsDomainNameTypeEnum string + +// Set of constants representing the allowable values for UpdateDhcpDetailsDomainNameTypeEnum +const ( + UpdateDhcpDetailsDomainNameTypeSubnetDomain UpdateDhcpDetailsDomainNameTypeEnum = "SUBNET_DOMAIN" + UpdateDhcpDetailsDomainNameTypeVcnDomain UpdateDhcpDetailsDomainNameTypeEnum = "VCN_DOMAIN" + UpdateDhcpDetailsDomainNameTypeCustomDomain UpdateDhcpDetailsDomainNameTypeEnum = "CUSTOM_DOMAIN" +) + +var mappingUpdateDhcpDetailsDomainNameTypeEnum = map[string]UpdateDhcpDetailsDomainNameTypeEnum{ + "SUBNET_DOMAIN": UpdateDhcpDetailsDomainNameTypeSubnetDomain, + "VCN_DOMAIN": UpdateDhcpDetailsDomainNameTypeVcnDomain, + "CUSTOM_DOMAIN": UpdateDhcpDetailsDomainNameTypeCustomDomain, +} + +var mappingUpdateDhcpDetailsDomainNameTypeEnumLowerCase = map[string]UpdateDhcpDetailsDomainNameTypeEnum{ + "subnet_domain": UpdateDhcpDetailsDomainNameTypeSubnetDomain, + "vcn_domain": UpdateDhcpDetailsDomainNameTypeVcnDomain, + "custom_domain": UpdateDhcpDetailsDomainNameTypeCustomDomain, +} + +// GetUpdateDhcpDetailsDomainNameTypeEnumValues Enumerates the set of values for UpdateDhcpDetailsDomainNameTypeEnum +func GetUpdateDhcpDetailsDomainNameTypeEnumValues() []UpdateDhcpDetailsDomainNameTypeEnum { + values := make([]UpdateDhcpDetailsDomainNameTypeEnum, 0) + for _, v := range mappingUpdateDhcpDetailsDomainNameTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateDhcpDetailsDomainNameTypeEnumStringValues Enumerates the set of values in String for UpdateDhcpDetailsDomainNameTypeEnum +func GetUpdateDhcpDetailsDomainNameTypeEnumStringValues() []string { + return []string{ + "SUBNET_DOMAIN", + "VCN_DOMAIN", + "CUSTOM_DOMAIN", + } +} + +// GetMappingUpdateDhcpDetailsDomainNameTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateDhcpDetailsDomainNameTypeEnum(val string) (UpdateDhcpDetailsDomainNameTypeEnum, bool) { + enum, ok := mappingUpdateDhcpDetailsDomainNameTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_options_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_options_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go index 8161d10e62..94d9494762 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_dhcp_options_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_dhcp_options_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDhcpOptionsRequest wrapper for the UpdateDhcpOptions operation type UpdateDhcpOptionsRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) for the set of DHCP options. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the set of DHCP options. DhcpId *string `mandatory:"true" contributesTo:"path" name:"dhcpId"` // Request object for updating a set of DHCP options. @@ -39,6 +41,10 @@ func (request UpdateDhcpOptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDhcpOptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDhcpOptionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDhcpOptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDhcpOptionsResponse wrapper for the UpdateDhcpOptions operation type UpdateDhcpOptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_attachment_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go index c544d82f60..7864ddb04a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_attachment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_details.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateDrgAttachmentDetails The representation of UpdateDrgAttachmentDetails @@ -25,7 +27,7 @@ type UpdateDrgAttachmentDetails struct { // Avoid entering confidential information. DisplayName *string `mandatory:"false" json:"displayName"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG route table that is assigned to this attachment. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG route table that is assigned to this attachment. // The DRG route table manages traffic inside the DRG. // You can't remove a DRG route table from a DRG attachment, but you can reassign which // DRG route table it uses. @@ -48,7 +50,7 @@ type UpdateDrgAttachmentDetails struct { // If this value is null, no routes are advertised through this attachment. ExportDrgRouteDistributionId *string `mandatory:"false" json:"exportDrgRouteDistributionId"` - // This is the OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. // For information about why you would associate a route table with a DRG attachment, see: // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) @@ -59,6 +61,18 @@ func (m UpdateDrgAttachmentDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *UpdateDrgAttachmentDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go index d91a4c28f8..d018629aa0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDrgAttachmentRequest wrapper for the UpdateDrgAttachment operation @@ -39,6 +41,10 @@ func (request UpdateDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDrgAttachmentResponse wrapper for the UpdateDrgAttachment operation type UpdateDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_details.go new file mode 100644 index 0000000000..42b8dfc951 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgDetails The representation of UpdateDrgDetails +type UpdateDrgDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + DefaultDrgRouteTables *DefaultDrgRouteTables `mandatory:"false" json:"defaultDrgRouteTables"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateDrgDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go index eff76a1bd5..c2fffea464 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDrgRequest wrapper for the UpdateDrg operation type UpdateDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Details object for updating a DRG. @@ -39,6 +41,10 @@ func (request UpdateDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDrgResponse wrapper for the UpdateDrg operation type UpdateDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_details.go new file mode 100644 index 0000000000..733665ae1b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgRouteDistributionDetails Details used in a request to update a route distribution. +// You cannot assign a table to a virtual circuit or IPSec tunnel attachment if there is a static route rule for an RPC attachment. +type UpdateDrgRouteDistributionDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateDrgRouteDistributionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgRouteDistributionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_request_response.go index ab5eb1dcdd..8ec1cfb084 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDrgRouteDistributionRequest wrapper for the UpdateDrgRouteDistribution operation @@ -39,6 +41,10 @@ func (request UpdateDrgRouteDistributionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDrgRouteDistributionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDrgRouteDistributionRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDrgRouteDistributionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDrgRouteDistributionResponse wrapper for the UpdateDrgRouteDistribution operation type UpdateDrgRouteDistributionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statement_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statement_details.go new file mode 100644 index 0000000000..127c4f785d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statement_details.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgRouteDistributionStatementDetails Route distribution statements to update in the route distribution. +type UpdateDrgRouteDistributionStatementDetails struct { + + // The Oracle-assigned ID of each route distribution statement to be updated. + Id *string `mandatory:"true" json:"id"` + + // The action is applied only if all of the match criteria is met. + MatchCriteria []DrgRouteDistributionMatchCriteria `mandatory:"false" json:"matchCriteria"` + + // The priority of the statement you'd like to update. + Priority *int `mandatory:"false" json:"priority"` +} + +func (m UpdateDrgRouteDistributionStatementDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgRouteDistributionStatementDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateDrgRouteDistributionStatementDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + MatchCriteria []drgroutedistributionmatchcriteria `json:"matchCriteria"` + Priority *int `json:"priority"` + Id *string `json:"id"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.MatchCriteria = make([]DrgRouteDistributionMatchCriteria, len(model.MatchCriteria)) + for i, n := range model.MatchCriteria { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.MatchCriteria[i] = nn.(DrgRouteDistributionMatchCriteria) + } else { + m.MatchCriteria[i] = nil + } + } + + m.Priority = model.Priority + + m.Id = model.Id + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_details.go new file mode 100644 index 0000000000..2f38dd1ba2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgRouteDistributionStatementsDetails Details request to update statements in a route distribution. +type UpdateDrgRouteDistributionStatementsDetails struct { + + // The route distribution statements to update, and the details to be updated. + Statements []UpdateDrgRouteDistributionStatementDetails `mandatory:"true" json:"statements"` +} + +func (m UpdateDrgRouteDistributionStatementsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgRouteDistributionStatementsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_request_response.go index e0e705959f..310bd59199 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_distribution_statements_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_distribution_statements_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDrgRouteDistributionStatementsRequest wrapper for the UpdateDrgRouteDistributionStatements operation @@ -34,6 +36,10 @@ func (request UpdateDrgRouteDistributionStatementsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDrgRouteDistributionStatementsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request UpdateDrgRouteDistributionStatementsRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDrgRouteDistributionStatementsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDrgRouteDistributionStatementsResponse wrapper for the UpdateDrgRouteDistributionStatements operation type UpdateDrgRouteDistributionStatementsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rule_details.go new file mode 100644 index 0000000000..8287b1d290 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rule_details.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgRouteRuleDetails Details used to update a route rule in the DRG route table. +type UpdateDrgRouteRuleDetails struct { + + // The Oracle-assigned ID of each DRG route rule to update. + Id *string `mandatory:"true" json:"id"` + + // The range of IP addresses used for matching when routing traffic. + // Potential values: + // * IP address range in CIDR notation. Can be an IPv4 or IPv6 CIDR. For example: `192.168.1.0/24` + // or `2001:0db8:0123:45::/56`. + Destination *string `mandatory:"false" json:"destination"` + + // Type of destination for the rule. Required if `direction` = `EGRESS`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + DestinationType UpdateDrgRouteRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the next hop DRG attachment. The next hop DRG attachment is responsible + // for reaching the network destination. + NextHopDrgAttachmentId *string `mandatory:"false" json:"nextHopDrgAttachmentId"` +} + +func (m UpdateDrgRouteRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgRouteRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateDrgRouteRuleDetailsDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetUpdateDrgRouteRuleDetailsDestinationTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateDrgRouteRuleDetailsDestinationTypeEnum Enum with underlying type: string +type UpdateDrgRouteRuleDetailsDestinationTypeEnum string + +// Set of constants representing the allowable values for UpdateDrgRouteRuleDetailsDestinationTypeEnum +const ( + UpdateDrgRouteRuleDetailsDestinationTypeCidrBlock UpdateDrgRouteRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" +) + +var mappingUpdateDrgRouteRuleDetailsDestinationTypeEnum = map[string]UpdateDrgRouteRuleDetailsDestinationTypeEnum{ + "CIDR_BLOCK": UpdateDrgRouteRuleDetailsDestinationTypeCidrBlock, +} + +var mappingUpdateDrgRouteRuleDetailsDestinationTypeEnumLowerCase = map[string]UpdateDrgRouteRuleDetailsDestinationTypeEnum{ + "cidr_block": UpdateDrgRouteRuleDetailsDestinationTypeCidrBlock, +} + +// GetUpdateDrgRouteRuleDetailsDestinationTypeEnumValues Enumerates the set of values for UpdateDrgRouteRuleDetailsDestinationTypeEnum +func GetUpdateDrgRouteRuleDetailsDestinationTypeEnumValues() []UpdateDrgRouteRuleDetailsDestinationTypeEnum { + values := make([]UpdateDrgRouteRuleDetailsDestinationTypeEnum, 0) + for _, v := range mappingUpdateDrgRouteRuleDetailsDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateDrgRouteRuleDetailsDestinationTypeEnumStringValues Enumerates the set of values in String for UpdateDrgRouteRuleDetailsDestinationTypeEnum +func GetUpdateDrgRouteRuleDetailsDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + } +} + +// GetMappingUpdateDrgRouteRuleDetailsDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateDrgRouteRuleDetailsDestinationTypeEnum(val string) (UpdateDrgRouteRuleDetailsDestinationTypeEnum, bool) { + enum, ok := mappingUpdateDrgRouteRuleDetailsDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_details.go new file mode 100644 index 0000000000..63f43a35c6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgRouteRulesDetails Details used to update route rules in a DRG route table. +type UpdateDrgRouteRulesDetails struct { + + // The DRG rute rules to update. + RouteRules []UpdateDrgRouteRuleDetails `mandatory:"false" json:"routeRules"` +} + +func (m UpdateDrgRouteRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgRouteRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_request_response.go index 98775ca151..3c829d0a90 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDrgRouteRulesRequest wrapper for the UpdateDrgRouteRules operation @@ -34,6 +36,10 @@ func (request UpdateDrgRouteRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDrgRouteRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request UpdateDrgRouteRulesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDrgRouteRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDrgRouteRulesResponse wrapper for the UpdateDrgRouteRules operation type UpdateDrgRouteRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_details.go new file mode 100644 index 0000000000..4420608af7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_details.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDrgRouteTableDetails Details used in a request to update a DRG route table. +// You can't assign a table to a virtual circuit or IPSec tunnel attachment if there is a static route rule for an RPC attachment. +type UpdateDrgRouteTableDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the import route distribution used to specify how incoming route advertisements through + // referenced attachements are inserted into the DRG route table. + ImportDrgRouteDistributionId *string `mandatory:"false" json:"importDrgRouteDistributionId"` + + // If you want traffic to be routed using ECMP across your virtual circuits or IPSec tunnels to + // your on-prem networks, set this value to true on the route table. + IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` +} + +func (m UpdateDrgRouteTableDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDrgRouteTableDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_request_response.go index 2182d9479f..5e9c2f764c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_drg_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_drg_route_table_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDrgRouteTableRequest wrapper for the UpdateDrgRouteTable operation @@ -39,6 +41,10 @@ func (request UpdateDrgRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDrgRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDrgRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDrgRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDrgRouteTableResponse wrapper for the UpdateDrgRouteTable operation type UpdateDrgRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_details.go index b7298fb1db..8994d1f017 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateEndpointServiceDetails Information that can be updated for an endpoint service. @@ -62,3 +64,15 @@ type UpdateEndpointServiceDetails struct { func (m UpdateEndpointServiceDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateEndpointServiceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_details.go new file mode 100644 index 0000000000..34ed83d1bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateEndpointServiceNextHopDetails Information of a particular service's next hop +type UpdateEndpointServiceNextHopDetails struct { + + // An Internal IP address that handles requests to the substrate anycast of endpoint service. Empty string on deletion. + NextHopIp *string `mandatory:"false" json:"nextHopIp"` + + // MPLS label that identifies the substrate endpoint service. -1 indicates a delete operation + NextHopSlotId *int `mandatory:"false" json:"nextHopSlotId"` +} + +func (m UpdateEndpointServiceNextHopDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateEndpointServiceNextHopDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_request_response.go index da8bd29eff..71f85e9b3c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_next_hop_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_next_hop_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateEndpointServiceNextHopRequest wrapper for the UpdateEndpointServiceNextHop operation @@ -49,6 +51,10 @@ func (request UpdateEndpointServiceNextHopRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateEndpointServiceNextHopRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request UpdateEndpointServiceNextHopRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateEndpointServiceNextHopRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateEndpointServiceNextHopResponse wrapper for the UpdateEndpointServiceNextHop operation type UpdateEndpointServiceNextHopResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_request_response.go index 4ab00d8e2a..fcca205918 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_endpoint_service_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_endpoint_service_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateEndpointServiceRequest wrapper for the UpdateEndpointService operation @@ -39,6 +41,10 @@ func (request UpdateEndpointServiceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateEndpointServiceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateEndpointServiceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateEndpointServiceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateEndpointServiceResponse wrapper for the UpdateEndpointService operation type UpdateEndpointServiceResponse struct { @@ -70,7 +87,8 @@ type UpdateEndpointServiceResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_details.go new file mode 100644 index 0000000000..c8d9fa313f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateFlowLogConfigAttachmentDetails The representation of UpdateFlowLogConfigAttachmentDetails +type UpdateFlowLogConfigAttachmentDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m UpdateFlowLogConfigAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateFlowLogConfigAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_request_response.go index 1d63bc4ec8..388cb8ae37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateFlowLogConfigAttachmentRequest wrapper for the UpdateFlowLogConfigAttachment operation @@ -39,6 +41,10 @@ func (request UpdateFlowLogConfigAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateFlowLogConfigAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateFlowLogConfigAttachmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateFlowLogConfigAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateFlowLogConfigAttachmentResponse wrapper for the UpdateFlowLogConfigAttachment operation type UpdateFlowLogConfigAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_details.go new file mode 100644 index 0000000000..2008a9f283 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateFlowLogConfigDetails The representation of UpdateFlowLogConfigDetails +type UpdateFlowLogConfigDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateFlowLogConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateFlowLogConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_request_response.go index ce6787ef54..8cff92e894 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_flow_log_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_flow_log_config_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateFlowLogConfigRequest wrapper for the UpdateFlowLogConfig operation @@ -39,6 +41,10 @@ func (request UpdateFlowLogConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateFlowLogConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateFlowLogConfigRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateFlowLogConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateFlowLogConfigResponse wrapper for the UpdateFlowLogConfig operation type UpdateFlowLogConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_request_response.go index a36a210841..7b5c9eed24 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateIPSecConnectionRequest wrapper for the UpdateIPSecConnection operation type UpdateIPSecConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // Details object for updating an IPSec connection. @@ -39,6 +41,10 @@ func (request UpdateIPSecConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateIPSecConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateIPSecConnectionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateIPSecConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateIPSecConnectionResponse wrapper for the UpdateIPSecConnection operation type UpdateIPSecConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_tunnel_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_tunnel_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_tunnel_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_tunnel_request_response.go index fbcfd74df1..27a369db95 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_tunnel_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_tunnel_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateIPSecConnectionTunnelRequest wrapper for the UpdateIPSecConnectionTunnel operation type UpdateIPSecConnectionTunnelRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -42,6 +44,10 @@ func (request UpdateIPSecConnectionTunnelRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateIPSecConnectionTunnelRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateIPSecConnectionTunnelRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateIPSecConnectionTunnelRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateIPSecConnectionTunnelResponse wrapper for the UpdateIPSecConnectionTunnel operation type UpdateIPSecConnectionTunnelResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go index 20a59f714a..9d6232de82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_i_p_sec_connection_tunnel_shared_secret_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateIPSecConnectionTunnelSharedSecretRequest wrapper for the UpdateIPSecConnectionTunnelSharedSecret operation type UpdateIPSecConnectionTunnelSharedSecretRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -42,6 +44,10 @@ func (request UpdateIPSecConnectionTunnelSharedSecretRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateIPSecConnectionTunnelSharedSecretRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateIPSecConnectionTunnelSharedSecretRequest) RetryPolicy() *com return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateIPSecConnectionTunnelSharedSecretRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateIPSecConnectionTunnelSharedSecretResponse wrapper for the UpdateIPSecConnectionTunnelSharedSecret operation type UpdateIPSecConnectionTunnelSharedSecretResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_details.go new file mode 100644 index 0000000000..5a2fd31e0b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateImageDetails The representation of UpdateImageDetails +type UpdateImageDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Operating system + // Example: `Oracle Linux` + OperatingSystem *string `mandatory:"false" json:"operatingSystem"` + + // Operating system version + // Example: `7.4` + OperatingSystemVersion *string `mandatory:"false" json:"operatingSystemVersion"` + + ImageVolumeDetails *UpdateImageVolumeDetails `mandatory:"false" json:"imageVolumeDetails"` +} + +func (m UpdateImageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateImageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go index 9b2d48a0cb..776c55e47d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_image_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateImageRequest wrapper for the UpdateImage operation @@ -46,6 +48,10 @@ func (request UpdateImageRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateImageRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateImageRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateImageRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateImageResponse wrapper for the UpdateImage operation type UpdateImageResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume.go new file mode 100644 index 0000000000..c2c35ce0ea --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateImageVolume Describes a volume that will be created and attached when an Image is launched as an Instance. +type UpdateImageVolume struct { + + // The relative index of the volume in the Image definition. + Index *string `mandatory:"true" json:"index"` + + // A user-friendly description for the Volume, provided by the user. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m UpdateImageVolume) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateImageVolume) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume_details.go new file mode 100644 index 0000000000..733aee2486 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_image_volume_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateImageVolumeDetails Update settings for the Volumes that will be created when an Instance based on this Image is launched. +type UpdateImageVolumeDetails struct { + + // Update settings for the optional dataVolumes that will be defined at Instance creation time. + ImageVolumeDetails []UpdateImageVolume `mandatory:"false" json:"imageVolumeDetails"` +} + +func (m UpdateImageVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateImageVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_agent_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_agent_config_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go index 21850089b7..ffe3e78cc2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_agent_config_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_agent_config_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateInstanceAgentConfigDetails Configuration options for the Oracle Cloud Agent software running on the instance. @@ -60,3 +62,15 @@ type UpdateInstanceAgentConfigDetails struct { func (m UpdateInstanceAgentConfigDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceAgentConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_availability_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_availability_config_details.go new file mode 100644 index 0000000000..86f48c596a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_availability_config_details.go @@ -0,0 +1,97 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceAvailabilityConfigDetails Options for defining the availability of a VM instance after a maintenance event that impacts the underlying +// hardware, including whether to live migrate supported VM instances when possible without sending a prior customer notification. +type UpdateInstanceAvailabilityConfigDetails struct { + + // Whether to live migrate supported VM instances to a healthy physical VM host without + // disrupting running instances during infrastructure maintenance events. If null, Oracle + // chooses the best option for migrating the VM during infrastructure maintenance events. + IsLiveMigrationPreferred *bool `mandatory:"false" json:"isLiveMigrationPreferred"` + + // The lifecycle state for an instance when it is recovered after infrastructure maintenance. + // * `RESTORE_INSTANCE` - The instance is restored to the lifecycle state it was in before the maintenance event. + // If the instance was running, it is automatically rebooted. This is the default action when a value is not set. + // * `STOP_INSTANCE` - The instance is recovered in the stopped state. + RecoveryAction UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum `mandatory:"false" json:"recoveryAction,omitempty"` +} + +func (m UpdateInstanceAvailabilityConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceAvailabilityConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum(string(m.RecoveryAction)); !ok && m.RecoveryAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RecoveryAction: %s. Supported values are: %s.", m.RecoveryAction, strings.Join(GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum Enum with underlying type: string +type UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum string + +// Set of constants representing the allowable values for UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum +const ( + UpdateInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum = "RESTORE_INSTANCE" + UpdateInstanceAvailabilityConfigDetailsRecoveryActionStopInstance UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum = "STOP_INSTANCE" +) + +var mappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum = map[string]UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum{ + "RESTORE_INSTANCE": UpdateInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance, + "STOP_INSTANCE": UpdateInstanceAvailabilityConfigDetailsRecoveryActionStopInstance, +} + +var mappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumLowerCase = map[string]UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum{ + "restore_instance": UpdateInstanceAvailabilityConfigDetailsRecoveryActionRestoreInstance, + "stop_instance": UpdateInstanceAvailabilityConfigDetailsRecoveryActionStopInstance, +} + +// GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumValues Enumerates the set of values for UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum +func GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumValues() []UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum { + values := make([]UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum, 0) + for _, v := range mappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumStringValues Enumerates the set of values in String for UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum +func GetUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumStringValues() []string { + return []string{ + "RESTORE_INSTANCE", + "STOP_INSTANCE", + } +} + +// GetMappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum(val string) (UpdateInstanceAvailabilityConfigDetailsRecoveryActionEnum, bool) { + enum, ok := mappingUpdateInstanceAvailabilityConfigDetailsRecoveryActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_details.go new file mode 100644 index 0000000000..60ea37ff11 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceConfigurationDetails The representation of UpdateInstanceConfigurationDetails +type UpdateInstanceConfigurationDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateInstanceConfigurationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go index 0d6af5bd4c..3606a564b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_configuration_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_configuration_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInstanceConfigurationRequest wrapper for the UpdateInstanceConfiguration operation @@ -46,6 +48,10 @@ func (request UpdateInstanceConfigurationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInstanceConfigurationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateInstanceConfigurationRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInstanceConfigurationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInstanceConfigurationResponse wrapper for the UpdateInstanceConfiguration operation type UpdateInstanceConfigurationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_details.go new file mode 100644 index 0000000000..1561487c44 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceConsoleConnectionDetails Specifies the properties for updating tags for an instance console connection. +type UpdateInstanceConsoleConnectionDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateInstanceConsoleConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceConsoleConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_request_response.go index b0dfe9e572..24f7412b1f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_console_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_console_connection_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInstanceConsoleConnectionRequest wrapper for the UpdateInstanceConsoleConnection operation @@ -39,6 +41,10 @@ func (request UpdateInstanceConsoleConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInstanceConsoleConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInstanceConsoleConnectionRequest) RetryPolicy() *common.Retr return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInstanceConsoleConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInstanceConsoleConnectionResponse wrapper for the UpdateInstanceConsoleConnection operation type UpdateInstanceConsoleConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_details.go new file mode 100644 index 0000000000..7d1210e58b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_details.go @@ -0,0 +1,252 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceDetails The representation of UpdateInstanceDetails +type UpdateInstanceDetails struct { + + // The OCID of the compute capacity reservation this instance is launched under. + // You can remove the instance from a reservation by specifying an empty string as input for this field. + // For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default). + CapacityReservationId *string `mandatory:"false" json:"capacityReservationId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + AgentConfig *UpdateInstanceAgentConfigDetails `mandatory:"false" json:"agentConfig"` + + // Custom metadata key/value string pairs that you provide. Any set of key/value pairs + // provided here will completely replace the current set of key/value pairs in the `metadata` + // field on the instance. + // The "user_data" field and the "ssh_authorized_keys" field cannot be changed after an instance + // has launched. Any request that updates, removes, or adds either of these fields will be + // rejected. You must provide the same values for "user_data" and "ssh_authorized_keys" that + // already exist on the instance. + // The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of + // 32,000 bytes. + Metadata map[string]string `mandatory:"false" json:"metadata"` + + // Additional metadata key/value pairs that you provide. They serve the same purpose and + // functionality as fields in the `metadata` object. + // They are distinguished from `metadata` fields in that these can be nested JSON objects + // (whereas `metadata` fields are string/string maps only). + // The "user_data" field and the "ssh_authorized_keys" field cannot be changed after an instance + // has launched. Any request that updates, removes, or adds either of these fields will be + // rejected. You must provide the same values for "user_data" and "ssh_authorized_keys" that + // already exist on the instance. + // The combined size of the `metadata` and `extendedMetadata` objects can be a maximum of + // 32,000 bytes. + ExtendedMetadata map[string]interface{} `mandatory:"false" json:"extendedMetadata"` + + // The shape of the instance. The shape determines the number of CPUs and the amount of memory + // allocated to the instance. For more information about how to change shapes, and a list of + // shapes that are supported, see + // Editing an Instance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm). + // For details about the CPUs, memory, and other properties of each shape, see + // Compute Shapes (https://docs.cloud.oracle.com/iaas/Content/Compute/References/computeshapes.htm). + // The new shape must be compatible with the image that was used to launch the instance. You + // can enumerate all available shapes and determine image compatibility by calling + // ListShapes. + // If the instance is running when you change the shape, the instance is rebooted. + // Example: `VM.Standard2.1` + Shape *string `mandatory:"false" json:"shape"` + + ShapeConfig *UpdateInstanceShapeConfigDetails `mandatory:"false" json:"shapeConfig"` + + SourceDetails UpdateInstanceSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The preferred maintenance action for an instance. The default is LIVE_MIGRATE, if live migration is supported. + // * `LIVE_MIGRATE` - Run maintenance using a live migration. + // * `REBOOT` - Run maintenance using a reboot. + PreferredMaintenanceAction UpdateInstanceDetailsPreferredMaintenanceActionEnum `mandatory:"false" json:"preferredMaintenanceAction,omitempty"` + + InstanceOptions *InstanceOptions `mandatory:"false" json:"instanceOptions"` + + // A fault domain is a grouping of hardware and infrastructure within an availability domain. + // Each availability domain contains three fault domains. Fault domains let you distribute your + // instances so that they are not on the same physical hardware within a single availability domain. + // A hardware failure or Compute hardware maintenance that affects one fault domain does not affect + // instances in other fault domains. + // To get a list of fault domains, use the + // ListFaultDomains operation in the + // Identity and Access Management Service API. + // Example: `FAULT-DOMAIN-1` + FaultDomain *string `mandatory:"false" json:"faultDomain"` + + LaunchOptions *UpdateLaunchOptions `mandatory:"false" json:"launchOptions"` + + AvailabilityConfig *UpdateInstanceAvailabilityConfigDetails `mandatory:"false" json:"availabilityConfig"` + + // For a VM instance, resets the scheduled time that the instance will be reboot migrated for + // infrastructure maintenance, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // If the instance hasn't been rebooted after this date, Oracle reboots the instance within 24 hours of the time + // and date that maintenance is due. + // To get the maximum possible date that a maintenance reboot can be extended, + // use GetInstanceMaintenanceReboot. + // Regardless of how the instance is stopped, this flag is reset to empty as soon as the instance reaches the + // Stopped state. + // To reboot migrate a bare metal instance, use the InstanceAction operation. + // For more information, see + // Infrastructure Maintenance (https://docs.cloud.oracle.com/iaas/Content/Compute/References/infrastructure-maintenance.htm). + // Example: `2018-05-25T21:10:29.600Z` + TimeMaintenanceRebootDue *common.SDKTime `mandatory:"false" json:"timeMaintenanceRebootDue"` +} + +func (m UpdateInstanceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateInstanceDetailsPreferredMaintenanceActionEnum(string(m.PreferredMaintenanceAction)); !ok && m.PreferredMaintenanceAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for PreferredMaintenanceAction: %s. Supported values are: %s.", m.PreferredMaintenanceAction, strings.Join(GetUpdateInstanceDetailsPreferredMaintenanceActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateInstanceDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + CapacityReservationId *string `json:"capacityReservationId"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + AgentConfig *UpdateInstanceAgentConfigDetails `json:"agentConfig"` + Metadata map[string]string `json:"metadata"` + ExtendedMetadata map[string]interface{} `json:"extendedMetadata"` + Shape *string `json:"shape"` + ShapeConfig *UpdateInstanceShapeConfigDetails `json:"shapeConfig"` + SourceDetails updateinstancesourcedetails `json:"sourceDetails"` + PreferredMaintenanceAction UpdateInstanceDetailsPreferredMaintenanceActionEnum `json:"preferredMaintenanceAction"` + InstanceOptions *InstanceOptions `json:"instanceOptions"` + FaultDomain *string `json:"faultDomain"` + LaunchOptions *UpdateLaunchOptions `json:"launchOptions"` + AvailabilityConfig *UpdateInstanceAvailabilityConfigDetails `json:"availabilityConfig"` + TimeMaintenanceRebootDue *common.SDKTime `json:"timeMaintenanceRebootDue"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.CapacityReservationId = model.CapacityReservationId + + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.AgentConfig = model.AgentConfig + + m.Metadata = model.Metadata + + m.ExtendedMetadata = model.ExtendedMetadata + + m.Shape = model.Shape + + m.ShapeConfig = model.ShapeConfig + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(UpdateInstanceSourceDetails) + } else { + m.SourceDetails = nil + } + + m.PreferredMaintenanceAction = model.PreferredMaintenanceAction + + m.InstanceOptions = model.InstanceOptions + + m.FaultDomain = model.FaultDomain + + m.LaunchOptions = model.LaunchOptions + + m.AvailabilityConfig = model.AvailabilityConfig + + m.TimeMaintenanceRebootDue = model.TimeMaintenanceRebootDue + + return +} + +// UpdateInstanceDetailsPreferredMaintenanceActionEnum Enum with underlying type: string +type UpdateInstanceDetailsPreferredMaintenanceActionEnum string + +// Set of constants representing the allowable values for UpdateInstanceDetailsPreferredMaintenanceActionEnum +const ( + UpdateInstanceDetailsPreferredMaintenanceActionLiveMigrate UpdateInstanceDetailsPreferredMaintenanceActionEnum = "LIVE_MIGRATE" + UpdateInstanceDetailsPreferredMaintenanceActionReboot UpdateInstanceDetailsPreferredMaintenanceActionEnum = "REBOOT" +) + +var mappingUpdateInstanceDetailsPreferredMaintenanceActionEnum = map[string]UpdateInstanceDetailsPreferredMaintenanceActionEnum{ + "LIVE_MIGRATE": UpdateInstanceDetailsPreferredMaintenanceActionLiveMigrate, + "REBOOT": UpdateInstanceDetailsPreferredMaintenanceActionReboot, +} + +var mappingUpdateInstanceDetailsPreferredMaintenanceActionEnumLowerCase = map[string]UpdateInstanceDetailsPreferredMaintenanceActionEnum{ + "live_migrate": UpdateInstanceDetailsPreferredMaintenanceActionLiveMigrate, + "reboot": UpdateInstanceDetailsPreferredMaintenanceActionReboot, +} + +// GetUpdateInstanceDetailsPreferredMaintenanceActionEnumValues Enumerates the set of values for UpdateInstanceDetailsPreferredMaintenanceActionEnum +func GetUpdateInstanceDetailsPreferredMaintenanceActionEnumValues() []UpdateInstanceDetailsPreferredMaintenanceActionEnum { + values := make([]UpdateInstanceDetailsPreferredMaintenanceActionEnum, 0) + for _, v := range mappingUpdateInstanceDetailsPreferredMaintenanceActionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateInstanceDetailsPreferredMaintenanceActionEnumStringValues Enumerates the set of values in String for UpdateInstanceDetailsPreferredMaintenanceActionEnum +func GetUpdateInstanceDetailsPreferredMaintenanceActionEnumStringValues() []string { + return []string{ + "LIVE_MIGRATE", + "REBOOT", + } +} + +// GetMappingUpdateInstanceDetailsPreferredMaintenanceActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateInstanceDetailsPreferredMaintenanceActionEnum(val string) (UpdateInstanceDetailsPreferredMaintenanceActionEnum, bool) { + enum, ok := mappingUpdateInstanceDetailsPreferredMaintenanceActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go index bed2686071..7dd06a0477 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateInstancePoolDetails The data to update an instance pool. @@ -60,3 +62,15 @@ type UpdateInstancePoolDetails struct { func (m UpdateInstancePoolDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstancePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_placement_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_placement_configuration_details.go new file mode 100644 index 0000000000..3b1b2a9421 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_placement_configuration_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstancePoolPlacementConfigurationDetails The location for where an instance pool will place instances. +type UpdateInstancePoolPlacementConfigurationDetails struct { + + // The availability domain to place instances. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the primary subnet to place instances. + PrimarySubnetId *string `mandatory:"true" json:"primarySubnetId"` + + // The fault domains to place instances. + // If you don't provide any values, the system makes a best effort to distribute + // instances across all fault domains based on capacity. + // To distribute the instances evenly across selected fault domains, provide a + // set of fault domains. For example, you might want instances to be evenly + // distributed if your applications require high availability. + // To get a list of fault domains, use the + // ListFaultDomains operation + // in the Identity and Access Management Service API. + // Example: `[FAULT-DOMAIN-1, FAULT-DOMAIN-2, FAULT-DOMAIN-3]` + FaultDomains []string `mandatory:"false" json:"faultDomains"` + + // The set of subnet OCIDs for secondary VNICs for instances in the pool. + SecondaryVnicSubnets []InstancePoolPlacementSecondaryVnicSubnet `mandatory:"false" json:"secondaryVnicSubnets"` +} + +func (m UpdateInstancePoolPlacementConfigurationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstancePoolPlacementConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go index f164f60078..edb374d616 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInstancePoolRequest wrapper for the UpdateInstancePool operation @@ -46,6 +48,10 @@ func (request UpdateInstancePoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInstancePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateInstancePoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInstancePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInstancePoolResponse wrapper for the UpdateInstancePool operation type UpdateInstancePoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go index dbff496423..8814d40948 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_instance_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInstanceRequest wrapper for the UpdateInstance operation @@ -46,6 +48,10 @@ func (request UpdateInstanceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInstanceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateInstanceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInstanceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInstanceResponse wrapper for the UpdateInstance operation type UpdateInstanceResponse struct { @@ -77,7 +94,8 @@ type UpdateInstanceResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_shape_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_shape_config_details.go new file mode 100644 index 0000000000..659de2c1e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_shape_config_details.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceShapeConfigDetails The shape configuration requested for the instance. If provided, the instance will be updated +// with the resources specified. In the case where some properties are missing, +// the missing values will be set to the default for the provided `shape`. +// Each shape only supports certain configurable values. If the `shape` is provided +// and the configuration values are invalid for that new `shape`, an error will be returned. +// If no `shape` is provided and the configuration values are invalid for the instance's +// existing shape, an error will be returned. +type UpdateInstanceShapeConfigDetails struct { + + // The total number of OCPUs available to the instance. + Ocpus *float32 `mandatory:"false" json:"ocpus"` + + // The total amount of memory available to the instance, in gigabytes. + MemoryInGBs *float32 `mandatory:"false" json:"memoryInGBs"` + + // The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a + // non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`. + // The following values are supported: + // - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU. + // - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU. + // - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance. + BaselineOcpuUtilization UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum `mandatory:"false" json:"baselineOcpuUtilization,omitempty"` + + // The number of NVMe drives to be used for storage. A single drive has 6.8 TB available. + Nvmes *int `mandatory:"false" json:"nvmes"` +} + +func (m UpdateInstanceShapeConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceShapeConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(string(m.BaselineOcpuUtilization)); !ok && m.BaselineOcpuUtilization != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BaselineOcpuUtilization: %s. Supported values are: %s.", m.BaselineOcpuUtilization, strings.Join(GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum Enum with underlying type: string +type UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum string + +// Set of constants representing the allowable values for UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +const ( + UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization8 UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_8" + UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization2 UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_2" + UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization1 UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = "BASELINE_1_1" +) + +var mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum = map[string]UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ + "BASELINE_1_8": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization8, + "BASELINE_1_2": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization2, + "BASELINE_1_1": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization1, +} + +var mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase = map[string]UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum{ + "baseline_1_8": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization8, + "baseline_1_2": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization2, + "baseline_1_1": UpdateInstanceShapeConfigDetailsBaselineOcpuUtilization1, +} + +// GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues Enumerates the set of values for UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +func GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumValues() []UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { + values := make([]UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, 0) + for _, v := range mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum { + values = append(values, v) + } + return values +} + +// GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues Enumerates the set of values in String for UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum +func GetUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumStringValues() []string { + return []string{ + "BASELINE_1_8", + "BASELINE_1_2", + "BASELINE_1_1", + } +} + +// GetMappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum(val string) (UpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnum, bool) { + enum, ok := mappingUpdateInstanceShapeConfigDetailsBaselineOcpuUtilizationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_details.go new file mode 100644 index 0000000000..48084f5ca2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_details.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceSourceDetails The details for updating the instance source. +type UpdateInstanceSourceDetails interface { + + // Whether to preserve the boot volume that was previously attached to the instance after a successful replacement of that boot volume. + GetIsPreserveBootVolumeEnabled() *bool + + // Whether to stop an instance gracefully or forcefully, during the Boot Volume replacement. + GetIsForceStopEnabled() *bool +} + +type updateinstancesourcedetails struct { + JsonData []byte + IsPreserveBootVolumeEnabled *bool `mandatory:"false" json:"isPreserveBootVolumeEnabled"` + IsForceStopEnabled *bool `mandatory:"false" json:"isForceStopEnabled"` + SourceType string `json:"sourceType"` +} + +// UnmarshalJSON unmarshals json +func (m *updateinstancesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerupdateinstancesourcedetails updateinstancesourcedetails + s := struct { + Model Unmarshalerupdateinstancesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.IsPreserveBootVolumeEnabled = s.Model.IsPreserveBootVolumeEnabled + m.IsForceStopEnabled = s.Model.IsForceStopEnabled + m.SourceType = s.Model.SourceType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *updateinstancesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.SourceType { + case "bootVolume": + mm := UpdateInstanceSourceViaBootVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "image": + mm := UpdateInstanceSourceViaImageDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for UpdateInstanceSourceDetails: %s.", m.SourceType) + return *m, nil + } +} + +//GetIsPreserveBootVolumeEnabled returns IsPreserveBootVolumeEnabled +func (m updateinstancesourcedetails) GetIsPreserveBootVolumeEnabled() *bool { + return m.IsPreserveBootVolumeEnabled +} + +//GetIsForceStopEnabled returns IsForceStopEnabled +func (m updateinstancesourcedetails) GetIsForceStopEnabled() *bool { + return m.IsForceStopEnabled +} + +func (m updateinstancesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m updateinstancesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_boot_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_boot_volume_details.go new file mode 100644 index 0000000000..be4c949230 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_boot_volume_details.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceSourceViaBootVolumeDetails The details for updating the instance source from an existing boot volume. +type UpdateInstanceSourceViaBootVolumeDetails struct { + + // The OCID of the boot volume used to boot the instance. + BootVolumeId *string `mandatory:"true" json:"bootVolumeId"` + + // Whether to preserve the boot volume that was previously attached to the instance after a successful replacement of that boot volume. + IsPreserveBootVolumeEnabled *bool `mandatory:"false" json:"isPreserveBootVolumeEnabled"` + + // Whether to stop an instance gracefully or forcefully, during the Boot Volume replacement. + IsForceStopEnabled *bool `mandatory:"false" json:"isForceStopEnabled"` +} + +//GetIsPreserveBootVolumeEnabled returns IsPreserveBootVolumeEnabled +func (m UpdateInstanceSourceViaBootVolumeDetails) GetIsPreserveBootVolumeEnabled() *bool { + return m.IsPreserveBootVolumeEnabled +} + +//GetIsForceStopEnabled returns IsForceStopEnabled +func (m UpdateInstanceSourceViaBootVolumeDetails) GetIsForceStopEnabled() *bool { + return m.IsForceStopEnabled +} + +func (m UpdateInstanceSourceViaBootVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceSourceViaBootVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m UpdateInstanceSourceViaBootVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeUpdateInstanceSourceViaBootVolumeDetails UpdateInstanceSourceViaBootVolumeDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeUpdateInstanceSourceViaBootVolumeDetails + }{ + "bootVolume", + (MarshalTypeUpdateInstanceSourceViaBootVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_image_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_image_details.go new file mode 100644 index 0000000000..3846ced262 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_instance_source_via_image_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInstanceSourceViaImageDetails The details for updating the instance source from an image. +type UpdateInstanceSourceViaImageDetails struct { + + // The OCID of the image used to boot the instance. + ImageId *string `mandatory:"true" json:"imageId"` + + // Whether to preserve the boot volume that was previously attached to the instance after a successful replacement of that boot volume. + IsPreserveBootVolumeEnabled *bool `mandatory:"false" json:"isPreserveBootVolumeEnabled"` + + // Whether to stop an instance gracefully or forcefully, during the Boot Volume replacement. + IsForceStopEnabled *bool `mandatory:"false" json:"isForceStopEnabled"` + + // The size of the boot volume in GBs. Minimum value is 50 GB and maximum value is 32,768 GB (32 TB). + BootVolumeSizeInGBs *int64 `mandatory:"false" json:"bootVolumeSizeInGBs"` + + // The OCID of the Vault service key to assign as the master encryption key for the boot volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +//GetIsPreserveBootVolumeEnabled returns IsPreserveBootVolumeEnabled +func (m UpdateInstanceSourceViaImageDetails) GetIsPreserveBootVolumeEnabled() *bool { + return m.IsPreserveBootVolumeEnabled +} + +//GetIsForceStopEnabled returns IsForceStopEnabled +func (m UpdateInstanceSourceViaImageDetails) GetIsForceStopEnabled() *bool { + return m.IsForceStopEnabled +} + +func (m UpdateInstanceSourceViaImageDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInstanceSourceViaImageDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m UpdateInstanceSourceViaImageDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeUpdateInstanceSourceViaImageDetails UpdateInstanceSourceViaImageDetails + s := struct { + DiscriminatorParam string `json:"sourceType"` + MarshalTypeUpdateInstanceSourceViaImageDetails + }{ + "image", + (MarshalTypeUpdateInstanceSourceViaImageDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_details.go new file mode 100644 index 0000000000..5bfcf1aa10 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternalDnsRecordDetails This structure is used when updating DnsRecord for internal clients. +type UpdateInternalDnsRecordDetails struct { + + // Time to live value for the DnsRecord, according to RFC 1035 (https://tools.ietf.org/html/rfc1035). + // Defaults to 86400. + Ttl *int `mandatory:"false" json:"ttl"` + + // Value for the DnsRecord. + // -*A:* One or more IPv4 addresses. Enter addresses on separate lines. + Value *string `mandatory:"false" json:"value"` +} + +func (m UpdateInternalDnsRecordDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalDnsRecordDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_request_response.go index aeee3b2d16..c6210f1cfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_dns_record_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_dns_record_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalDnsRecordRequest wrapper for the UpdateInternalDnsRecord operation @@ -39,6 +41,10 @@ func (request UpdateInternalDnsRecordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalDnsRecordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInternalDnsRecordRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalDnsRecordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalDnsRecordResponse wrapper for the UpdateInternalDnsRecord operation type UpdateInternalDnsRecordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_details.go new file mode 100644 index 0000000000..f6fd7e3e02 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternalDrgAttachmentDetails The request to update an InternalDrgAttachment. +type UpdateInternalDrgAttachmentDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m UpdateInternalDrgAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalDrgAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_request_response.go index 41333cc3a1..1570cd53fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalDrgAttachmentRequest wrapper for the UpdateInternalDrgAttachment operation @@ -39,6 +41,10 @@ func (request UpdateInternalDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInternalDrgAttachmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalDrgAttachmentResponse wrapper for the UpdateInternalDrgAttachment operation type UpdateInternalDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_details.go new file mode 100644 index 0000000000..1ed827a42e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternalDrgDetails The request to update an InternalDrg. +type UpdateInternalDrgDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateInternalDrgDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalDrgDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_request_response.go index 31f163cdd1..d2840323ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_drg_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalDrgRequest wrapper for the UpdateInternalDrg operation @@ -39,6 +41,10 @@ func (request UpdateInternalDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInternalDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalDrgResponse wrapper for the UpdateInternalDrg operation type UpdateInternalDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_details.go new file mode 100644 index 0000000000..d1fd0e0a82 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternalGenericGatewayDetails Details to update an internal generic gateway. +type UpdateInternalGenericGatewayDetails struct { + + // Tuples, mapping AD and regional identifiers to the corresponding routing data + GatewayRouteMap []GatewayRouteData `mandatory:"false" json:"gatewayRouteMap"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table associated with the gateway + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see + // Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateInternalGenericGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalGenericGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_request_response.go index fc6c1e1f83..5caa47438b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_generic_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_generic_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalGenericGatewayRequest wrapper for the UpdateInternalGenericGateway operation @@ -39,6 +41,10 @@ func (request UpdateInternalGenericGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalGenericGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInternalGenericGatewayRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalGenericGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalGenericGatewayResponse wrapper for the UpdateInternalGenericGateway operation type UpdateInternalGenericGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_details.go new file mode 100644 index 0000000000..6a3bc0ffe9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternalPublicIpDetails The data to update internal public IPs +type UpdateInternalPublicIpDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the entity to assign the public IP to. + // * If you set this field to an empty string, the public IP will be unassigned from the + // entity it is currently assigned to. + AssignedEntityId *string `mandatory:"false" json:"assignedEntityId"` +} + +func (m UpdateInternalPublicIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalPublicIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_request_response.go index 54612aceba..1e6b373c65 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_public_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalPublicIpRequest wrapper for the UpdateInternalPublicIp operation type UpdateInternalPublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal public IP. InternalPublicIpId *string `mandatory:"true" contributesTo:"path" name:"internalPublicIpId"` // Internal Public IP details. @@ -45,6 +47,10 @@ func (request UpdateInternalPublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalPublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -60,6 +66,17 @@ func (request UpdateInternalPublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalPublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalPublicIpResponse wrapper for the UpdateInternalPublicIp operation type UpdateInternalPublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_details.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_details.go index e116a3117a..e8f7d16224 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateInternalVnicDetails This structure is used when updating vnic for internal clients. @@ -101,3 +103,15 @@ type UpdateInternalVnicDetails struct { func (m UpdateInternalVnicDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_details.go new file mode 100644 index 0000000000..1f0fd14afc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternalVnicMetadataDetails This structure is used when updating the metadata of a VNIC attachment +type UpdateInternalVnicMetadataDetails struct { + + // The VNIC whose attachments metadata has to be altered + VnicId *string `mandatory:"true" json:"vnicId"` + + // Property describing customer facing metrics + MetadataList []CfmMetadata `mandatory:"true" json:"metadataList"` +} + +func (m UpdateInternalVnicMetadataDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternalVnicMetadataDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_request_response.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_request_response.go index d85e7b474d..8cdae31e6e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_metadata_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_metadata_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalVnicMetadataRequest wrapper for the UpdateInternalVnicMetadata operation @@ -38,6 +40,10 @@ func (request UpdateInternalVnicMetadataRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalVnicMetadataRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request UpdateInternalVnicMetadataRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalVnicMetadataRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalVnicMetadataResponse wrapper for the UpdateInternalVnicMetadata operation type UpdateInternalVnicMetadataResponse struct { @@ -63,7 +80,8 @@ type UpdateInternalVnicMetadataResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_request_response.go index 18fdb4356b..e5fb40cc81 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internal_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internal_vnic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternalVnicRequest wrapper for the UpdateInternalVnic operation type UpdateInternalVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internal VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internal VNIC. InternalVnicId *string `mandatory:"true" contributesTo:"path" name:"internalVnicId"` // Details object for updating an internal VNIC. @@ -39,6 +41,10 @@ func (request UpdateInternalVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternalVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInternalVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternalVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternalVnicResponse wrapper for the UpdateInternalVnic operation type UpdateInternalVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_details.go new file mode 100644 index 0000000000..d2cb69d6ab --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateInternetGatewayDetails The representation of UpdateInternetGatewayDetails +type UpdateInternetGatewayDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether the gateway is enabled. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the Internet Gateway is using. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m UpdateInternetGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateInternetGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go index bfbc9a0a3f..9f29a84641 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_internet_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_internet_gateway_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateInternetGatewayRequest wrapper for the UpdateInternetGateway operation type UpdateInternetGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the internet gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the internet gateway. IgId *string `mandatory:"true" contributesTo:"path" name:"igId"` // Details for updating the internet gateway. @@ -39,6 +41,10 @@ func (request UpdateInternetGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateInternetGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateInternetGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateInternetGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateInternetGatewayResponse wrapper for the UpdateInternetGateway operation type UpdateInternetGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_details.go new file mode 100644 index 0000000000..f43a30ab5c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_details.go @@ -0,0 +1,121 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIpSecConnectionDetails The representation of UpdateIpSecConnectionDetails +type UpdateIpSecConnectionDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Your identifier for your CPE device. Can be either an IP address or a hostname (specifically, the + // fully qualified domain name (FQDN)). The type of identifier you provide here must correspond + // to the value for `cpeLocalIdentifierType`. + // For information about why you'd provide this value, see + // If Your CPE Is Behind a NAT Device (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/overviewIPsec.htm#nat). + // Example IP address: `10.0.3.3` + // Example hostname: `cpe.example.com` + CpeLocalIdentifier *string `mandatory:"false" json:"cpeLocalIdentifier"` + + // The type of identifier for your CPE device. The value you provide here must correspond to the value + // for `cpeLocalIdentifier`. + CpeLocalIdentifierType UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum `mandatory:"false" json:"cpeLocalIdentifierType,omitempty"` + + // Static routes to the CPE. If you provide this attribute, it replaces the entire current set of + // static routes. A static route's CIDR must not be a multicast address or class E address. + // The CIDR can be either IPv4 or IPv6. + // IPv6 addressing is supported for all commercial and government regions. + // See IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // Example: `10.0.1.0/24` + // Example: `2001:db8::/32` + StaticRoutes []string `mandatory:"false" json:"staticRoutes"` +} + +func (m UpdateIpSecConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIpSecConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum(string(m.CpeLocalIdentifierType)); !ok && m.CpeLocalIdentifierType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for CpeLocalIdentifierType: %s. Supported values are: %s.", m.CpeLocalIdentifierType, strings.Join(GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum Enum with underlying type: string +type UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum string + +// Set of constants representing the allowable values for UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum +const ( + UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "IP_ADDRESS" + UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = "HOSTNAME" +) + +var mappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum = map[string]UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{ + "IP_ADDRESS": UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress, + "HOSTNAME": UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname, +} + +var mappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumLowerCase = map[string]UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum{ + "ip_address": UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeIpAddress, + "hostname": UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeHostname, +} + +// GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues Enumerates the set of values for UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum +func GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumValues() []UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum { + values := make([]UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, 0) + for _, v := range mappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumStringValues Enumerates the set of values in String for UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum +func GetUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumStringValues() []string { + return []string{ + "IP_ADDRESS", + "HOSTNAME", + } +} + +// GetMappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum(val string) (UpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnum, bool) { + enum, ok := mappingUpdateIpSecConnectionDetailsCpeLocalIdentifierTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_details.go new file mode 100644 index 0000000000..59501a25a6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_details.go @@ -0,0 +1,259 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIpSecConnectionTunnelDetails The representation of UpdateIpSecConnectionTunnelDetails +type UpdateIpSecConnectionTunnelDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The type of routing to use for this tunnel (BGP dynamic routing, static routing, or policy-based routing). + Routing UpdateIpSecConnectionTunnelDetailsRoutingEnum `mandatory:"false" json:"routing,omitempty"` + + // Internet Key Exchange protocol version. + IkeVersion UpdateIpSecConnectionTunnelDetailsIkeVersionEnum `mandatory:"false" json:"ikeVersion,omitempty"` + + BgpSessionConfig *UpdateIpSecTunnelBgpSessionDetails `mandatory:"false" json:"bgpSessionConfig"` + + // Indicates whether the Oracle end of the IPSec connection is able to initiate starting up the IPSec tunnel. + OracleInitiation UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum `mandatory:"false" json:"oracleInitiation,omitempty"` + + // By default (the `AUTO` setting), IKE sends packets with a source and destination port set to 500, + // and when it detects that the port used to forward packets has changed (most likely because a NAT device + // is between the CPE device and the Oracle VPN headend) it will try to negotiate the use of NAT-T. + // The `ENABLED` option sets the IKE protocol to use port 4500 instead of 500 and forces encapsulating traffic with the ESP protocol inside UDP packets. + // The `DISABLED` option directs IKE to completely refuse to negotiate NAT-T + // even if it senses there may be a NAT device in use. + NatTranslationEnabled UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum `mandatory:"false" json:"natTranslationEnabled,omitempty"` + + PhaseOneConfig *PhaseOneConfigDetails `mandatory:"false" json:"phaseOneConfig"` + + PhaseTwoConfig *PhaseTwoConfigDetails `mandatory:"false" json:"phaseTwoConfig"` + + DpdConfig *DpdConfig `mandatory:"false" json:"dpdConfig"` + + EncryptionDomainConfig *UpdateIpSecTunnelEncryptionDomainDetails `mandatory:"false" json:"encryptionDomainConfig"` +} + +func (m UpdateIpSecConnectionTunnelDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIpSecConnectionTunnelDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateIpSecConnectionTunnelDetailsRoutingEnum(string(m.Routing)); !ok && m.Routing != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Routing: %s. Supported values are: %s.", m.Routing, strings.Join(GetUpdateIpSecConnectionTunnelDetailsRoutingEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnum(string(m.IkeVersion)); !ok && m.IkeVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IkeVersion: %s. Supported values are: %s.", m.IkeVersion, strings.Join(GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnum(string(m.OracleInitiation)); !ok && m.OracleInitiation != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OracleInitiation: %s. Supported values are: %s.", m.OracleInitiation, strings.Join(GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum(string(m.NatTranslationEnabled)); !ok && m.NatTranslationEnabled != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NatTranslationEnabled: %s. Supported values are: %s.", m.NatTranslationEnabled, strings.Join(GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateIpSecConnectionTunnelDetailsRoutingEnum Enum with underlying type: string +type UpdateIpSecConnectionTunnelDetailsRoutingEnum string + +// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsRoutingEnum +const ( + UpdateIpSecConnectionTunnelDetailsRoutingBgp UpdateIpSecConnectionTunnelDetailsRoutingEnum = "BGP" + UpdateIpSecConnectionTunnelDetailsRoutingStatic UpdateIpSecConnectionTunnelDetailsRoutingEnum = "STATIC" + UpdateIpSecConnectionTunnelDetailsRoutingPolicy UpdateIpSecConnectionTunnelDetailsRoutingEnum = "POLICY" +) + +var mappingUpdateIpSecConnectionTunnelDetailsRoutingEnum = map[string]UpdateIpSecConnectionTunnelDetailsRoutingEnum{ + "BGP": UpdateIpSecConnectionTunnelDetailsRoutingBgp, + "STATIC": UpdateIpSecConnectionTunnelDetailsRoutingStatic, + "POLICY": UpdateIpSecConnectionTunnelDetailsRoutingPolicy, +} + +var mappingUpdateIpSecConnectionTunnelDetailsRoutingEnumLowerCase = map[string]UpdateIpSecConnectionTunnelDetailsRoutingEnum{ + "bgp": UpdateIpSecConnectionTunnelDetailsRoutingBgp, + "static": UpdateIpSecConnectionTunnelDetailsRoutingStatic, + "policy": UpdateIpSecConnectionTunnelDetailsRoutingPolicy, +} + +// GetUpdateIpSecConnectionTunnelDetailsRoutingEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsRoutingEnum +func GetUpdateIpSecConnectionTunnelDetailsRoutingEnumValues() []UpdateIpSecConnectionTunnelDetailsRoutingEnum { + values := make([]UpdateIpSecConnectionTunnelDetailsRoutingEnum, 0) + for _, v := range mappingUpdateIpSecConnectionTunnelDetailsRoutingEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIpSecConnectionTunnelDetailsRoutingEnumStringValues Enumerates the set of values in String for UpdateIpSecConnectionTunnelDetailsRoutingEnum +func GetUpdateIpSecConnectionTunnelDetailsRoutingEnumStringValues() []string { + return []string{ + "BGP", + "STATIC", + "POLICY", + } +} + +// GetMappingUpdateIpSecConnectionTunnelDetailsRoutingEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIpSecConnectionTunnelDetailsRoutingEnum(val string) (UpdateIpSecConnectionTunnelDetailsRoutingEnum, bool) { + enum, ok := mappingUpdateIpSecConnectionTunnelDetailsRoutingEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateIpSecConnectionTunnelDetailsIkeVersionEnum Enum with underlying type: string +type UpdateIpSecConnectionTunnelDetailsIkeVersionEnum string + +// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsIkeVersionEnum +const ( + UpdateIpSecConnectionTunnelDetailsIkeVersionV1 UpdateIpSecConnectionTunnelDetailsIkeVersionEnum = "V1" + UpdateIpSecConnectionTunnelDetailsIkeVersionV2 UpdateIpSecConnectionTunnelDetailsIkeVersionEnum = "V2" +) + +var mappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnum = map[string]UpdateIpSecConnectionTunnelDetailsIkeVersionEnum{ + "V1": UpdateIpSecConnectionTunnelDetailsIkeVersionV1, + "V2": UpdateIpSecConnectionTunnelDetailsIkeVersionV2, +} + +var mappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnumLowerCase = map[string]UpdateIpSecConnectionTunnelDetailsIkeVersionEnum{ + "v1": UpdateIpSecConnectionTunnelDetailsIkeVersionV1, + "v2": UpdateIpSecConnectionTunnelDetailsIkeVersionV2, +} + +// GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsIkeVersionEnum +func GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumValues() []UpdateIpSecConnectionTunnelDetailsIkeVersionEnum { + values := make([]UpdateIpSecConnectionTunnelDetailsIkeVersionEnum, 0) + for _, v := range mappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumStringValues Enumerates the set of values in String for UpdateIpSecConnectionTunnelDetailsIkeVersionEnum +func GetUpdateIpSecConnectionTunnelDetailsIkeVersionEnumStringValues() []string { + return []string{ + "V1", + "V2", + } +} + +// GetMappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnum(val string) (UpdateIpSecConnectionTunnelDetailsIkeVersionEnum, bool) { + enum, ok := mappingUpdateIpSecConnectionTunnelDetailsIkeVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum Enum with underlying type: string +type UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum string + +// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum +const ( + UpdateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum = "INITIATOR_OR_RESPONDER" + UpdateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum = "RESPONDER_ONLY" +) + +var mappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnum = map[string]UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum{ + "INITIATOR_OR_RESPONDER": UpdateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder, + "RESPONDER_ONLY": UpdateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly, +} + +var mappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumLowerCase = map[string]UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum{ + "initiator_or_responder": UpdateIpSecConnectionTunnelDetailsOracleInitiationInitiatorOrResponder, + "responder_only": UpdateIpSecConnectionTunnelDetailsOracleInitiationResponderOnly, +} + +// GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum +func GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumValues() []UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum { + values := make([]UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum, 0) + for _, v := range mappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumStringValues Enumerates the set of values in String for UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum +func GetUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumStringValues() []string { + return []string{ + "INITIATOR_OR_RESPONDER", + "RESPONDER_ONLY", + } +} + +// GetMappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnum(val string) (UpdateIpSecConnectionTunnelDetailsOracleInitiationEnum, bool) { + enum, ok := mappingUpdateIpSecConnectionTunnelDetailsOracleInitiationEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum Enum with underlying type: string +type UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum string + +// Set of constants representing the allowable values for UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum +const ( + UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "ENABLED" + UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "DISABLED" + UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = "AUTO" +) + +var mappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum = map[string]UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum{ + "ENABLED": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled, + "DISABLED": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled, + "AUTO": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto, +} + +var mappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumLowerCase = map[string]UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum{ + "enabled": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnabled, + "disabled": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledDisabled, + "auto": UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledAuto, +} + +// GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues Enumerates the set of values for UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum +func GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumValues() []UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum { + values := make([]UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum, 0) + for _, v := range mappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumStringValues Enumerates the set of values in String for UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum +func GetUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + "AUTO", + } +} + +// GetMappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum(val string) (UpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnum, bool) { + enum, ok := mappingUpdateIpSecConnectionTunnelDetailsNatTranslationEnabledEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_shared_secret_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_shared_secret_details.go new file mode 100644 index 0000000000..be4da108ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_connection_tunnel_shared_secret_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIpSecConnectionTunnelSharedSecretDetails The representation of UpdateIpSecConnectionTunnelSharedSecretDetails +type UpdateIpSecConnectionTunnelSharedSecretDetails struct { + + // The shared secret (pre-shared key) to use for the tunnel. Only numbers, letters, and spaces + // are allowed. + SharedSecret *string `mandatory:"false" json:"sharedSecret"` +} + +func (m UpdateIpSecConnectionTunnelSharedSecretDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIpSecConnectionTunnelSharedSecretDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_bgp_session_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_bgp_session_details.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_bgp_session_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_bgp_session_details.go index de0424c9c5..6bfd785647 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ip_sec_tunnel_bgp_session_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_bgp_session_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateIpSecTunnelBgpSessionDetails The representation of UpdateIpSecTunnelBgpSessionDetails @@ -75,3 +77,15 @@ type UpdateIpSecTunnelBgpSessionDetails struct { func (m UpdateIpSecTunnelBgpSessionDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIpSecTunnelBgpSessionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_encryption_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_encryption_domain_details.go new file mode 100644 index 0000000000..60942f917e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ip_sec_tunnel_encryption_domain_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIpSecTunnelEncryptionDomainDetails Request to update a multi-encryption domain policy on the IPSec tunnel. +// There can't be more than 50 security associations in use at one time. See Encryption domain for policy-based +// tunnels (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/ipsecencryptiondomains.htm#spi_policy_based_tunnel) for more. +type UpdateIpSecTunnelEncryptionDomainDetails struct { + + // Lists IPv4 or IPv6-enabled subnets in your Oracle tenancy. + OracleTrafficSelector []string `mandatory:"false" json:"oracleTrafficSelector"` + + // Lists IPv4 or IPv6-enabled subnets in your on-premises network. + CpeTrafficSelector []string `mandatory:"false" json:"cpeTrafficSelector"` +} + +func (m UpdateIpSecTunnelEncryptionDomainDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIpSecTunnelEncryptionDomainDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_details.go new file mode 100644 index 0000000000..cfc9bf235c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIpv6Details The representation of UpdateIpv6Details +type UpdateIpv6Details struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to reassign the IPv6 to. + // The VNIC must be in the same subnet as the current VNIC. + VnicId *string `mandatory:"false" json:"vnicId"` +} + +func (m UpdateIpv6Details) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIpv6Details) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go index 3d8fec7cdc..4c9f510de3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_ipv6_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_ipv6_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateIpv6Request wrapper for the UpdateIpv6 operation @@ -39,6 +41,10 @@ func (request UpdateIpv6Request) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateIpv6Request) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateIpv6Request) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateIpv6Request) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateIpv6Response wrapper for the UpdateIpv6 operation type UpdateIpv6Response struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_launch_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_launch_options.go new file mode 100644 index 0000000000..adbd4c7738 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_launch_options.go @@ -0,0 +1,166 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLaunchOptions Options for tuning the compatibility and performance of VM shapes. +type UpdateLaunchOptions struct { + + // Emulation type for the boot volume. + // * `ISCSI` - ISCSI attached block storage device. + // * `PARAVIRTUALIZED` - Paravirtualized disk. This is the default for boot volumes and remote block + // storage volumes on platform images. + // Before you change the boot volume attachment type, detach all block volumes and VNICs except for + // the boot volume and the primary VNIC. + // If the instance is running when you change the boot volume attachment type, it will be rebooted. + // **Note:** Some instances might not function properly if you change the boot volume attachment type. After + // the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave + // as expected, the changes are not supported. Revert the instance to the original boot volume attachment type. + BootVolumeType UpdateLaunchOptionsBootVolumeTypeEnum `mandatory:"false" json:"bootVolumeType,omitempty"` + + // Emulation type for the physical network interface card (NIC). + // * `VFIO` - Direct attached Virtual Function network controller. This is the networking type + // when you launch an instance using hardware-assisted (SR-IOV) networking. + // * `PARAVIRTUALIZED` - VM instances launch with paravirtualized devices using VirtIO drivers. + // Before you change the networking type, detach all VNICs and block volumes except for the primary + // VNIC and the boot volume. + // The image must have paravirtualized drivers installed. For more information, see + // Editing an Instance (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/resizinginstances.htm). + // If the instance is running when you change the network type, it will be rebooted. + // **Note:** Some instances might not function properly if you change the networking type. After + // the instance reboots and is running, connect to it. If the connection fails or the OS doesn't behave + // as expected, the changes are not supported. Revert the instance to the original networking type. + NetworkType UpdateLaunchOptionsNetworkTypeEnum `mandatory:"false" json:"networkType,omitempty"` + + // Whether to enable in-transit encryption for the volume's paravirtualized attachment. + // To enable in-transit encryption for block volumes and boot volumes, this field must be set to `true`. + // Data in transit is transferred over an internal and highly secure network. If you have specific + // compliance requirements related to the encryption of the data while it is moving between the + // instance and the boot volume or the block volume, you can enable in-transit encryption. + // In-transit encryption is not enabled by default. + // All boot volumes and block volumes are encrypted at rest. + // For more information, see Block Volume Encryption (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm#Encrypti). + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` +} + +func (m UpdateLaunchOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLaunchOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateLaunchOptionsBootVolumeTypeEnum(string(m.BootVolumeType)); !ok && m.BootVolumeType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BootVolumeType: %s. Supported values are: %s.", m.BootVolumeType, strings.Join(GetUpdateLaunchOptionsBootVolumeTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateLaunchOptionsNetworkTypeEnum(string(m.NetworkType)); !ok && m.NetworkType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NetworkType: %s. Supported values are: %s.", m.NetworkType, strings.Join(GetUpdateLaunchOptionsNetworkTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateLaunchOptionsBootVolumeTypeEnum Enum with underlying type: string +type UpdateLaunchOptionsBootVolumeTypeEnum string + +// Set of constants representing the allowable values for UpdateLaunchOptionsBootVolumeTypeEnum +const ( + UpdateLaunchOptionsBootVolumeTypeIscsi UpdateLaunchOptionsBootVolumeTypeEnum = "ISCSI" + UpdateLaunchOptionsBootVolumeTypeParavirtualized UpdateLaunchOptionsBootVolumeTypeEnum = "PARAVIRTUALIZED" +) + +var mappingUpdateLaunchOptionsBootVolumeTypeEnum = map[string]UpdateLaunchOptionsBootVolumeTypeEnum{ + "ISCSI": UpdateLaunchOptionsBootVolumeTypeIscsi, + "PARAVIRTUALIZED": UpdateLaunchOptionsBootVolumeTypeParavirtualized, +} + +var mappingUpdateLaunchOptionsBootVolumeTypeEnumLowerCase = map[string]UpdateLaunchOptionsBootVolumeTypeEnum{ + "iscsi": UpdateLaunchOptionsBootVolumeTypeIscsi, + "paravirtualized": UpdateLaunchOptionsBootVolumeTypeParavirtualized, +} + +// GetUpdateLaunchOptionsBootVolumeTypeEnumValues Enumerates the set of values for UpdateLaunchOptionsBootVolumeTypeEnum +func GetUpdateLaunchOptionsBootVolumeTypeEnumValues() []UpdateLaunchOptionsBootVolumeTypeEnum { + values := make([]UpdateLaunchOptionsBootVolumeTypeEnum, 0) + for _, v := range mappingUpdateLaunchOptionsBootVolumeTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateLaunchOptionsBootVolumeTypeEnumStringValues Enumerates the set of values in String for UpdateLaunchOptionsBootVolumeTypeEnum +func GetUpdateLaunchOptionsBootVolumeTypeEnumStringValues() []string { + return []string{ + "ISCSI", + "PARAVIRTUALIZED", + } +} + +// GetMappingUpdateLaunchOptionsBootVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateLaunchOptionsBootVolumeTypeEnum(val string) (UpdateLaunchOptionsBootVolumeTypeEnum, bool) { + enum, ok := mappingUpdateLaunchOptionsBootVolumeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateLaunchOptionsNetworkTypeEnum Enum with underlying type: string +type UpdateLaunchOptionsNetworkTypeEnum string + +// Set of constants representing the allowable values for UpdateLaunchOptionsNetworkTypeEnum +const ( + UpdateLaunchOptionsNetworkTypeVfio UpdateLaunchOptionsNetworkTypeEnum = "VFIO" + UpdateLaunchOptionsNetworkTypeParavirtualized UpdateLaunchOptionsNetworkTypeEnum = "PARAVIRTUALIZED" +) + +var mappingUpdateLaunchOptionsNetworkTypeEnum = map[string]UpdateLaunchOptionsNetworkTypeEnum{ + "VFIO": UpdateLaunchOptionsNetworkTypeVfio, + "PARAVIRTUALIZED": UpdateLaunchOptionsNetworkTypeParavirtualized, +} + +var mappingUpdateLaunchOptionsNetworkTypeEnumLowerCase = map[string]UpdateLaunchOptionsNetworkTypeEnum{ + "vfio": UpdateLaunchOptionsNetworkTypeVfio, + "paravirtualized": UpdateLaunchOptionsNetworkTypeParavirtualized, +} + +// GetUpdateLaunchOptionsNetworkTypeEnumValues Enumerates the set of values for UpdateLaunchOptionsNetworkTypeEnum +func GetUpdateLaunchOptionsNetworkTypeEnumValues() []UpdateLaunchOptionsNetworkTypeEnum { + values := make([]UpdateLaunchOptionsNetworkTypeEnum, 0) + for _, v := range mappingUpdateLaunchOptionsNetworkTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateLaunchOptionsNetworkTypeEnumStringValues Enumerates the set of values in String for UpdateLaunchOptionsNetworkTypeEnum +func GetUpdateLaunchOptionsNetworkTypeEnumStringValues() []string { + return []string{ + "VFIO", + "PARAVIRTUALIZED", + } +} + +// GetMappingUpdateLaunchOptionsNetworkTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateLaunchOptionsNetworkTypeEnum(val string) (UpdateLaunchOptionsNetworkTypeEnum, bool) { + enum, ok := mappingUpdateLaunchOptionsNetworkTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_details.go new file mode 100644 index 0000000000..2159619707 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLocalPeeringConnectionDetails The representation of UpdateLocalPeeringConnectionDetails +type UpdateLocalPeeringConnectionDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m UpdateLocalPeeringConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLocalPeeringConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_request_response.go index 0120a7bfdd..7bc8e43f22 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateLocalPeeringConnectionRequest wrapper for the UpdateLocalPeeringConnection operation type UpdateLocalPeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering connection. This feature is currently in preview and may change before public release. Do not use it for production workloads. LocalPeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"localPeeringConnectionId"` // Details object for updating a local peering connection. @@ -39,6 +41,10 @@ func (request UpdateLocalPeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateLocalPeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateLocalPeeringConnectionRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLocalPeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateLocalPeeringConnectionResponse wrapper for the UpdateLocalPeeringConnection operation type UpdateLocalPeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_details.go new file mode 100644 index 0000000000..57ede40a1c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLocalPeeringGatewayDetails The representation of UpdateLocalPeeringGatewayDetails +type UpdateLocalPeeringGatewayDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the LPG will use. + // For information about why you would associate a route table with an LPG, see + // Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m UpdateLocalPeeringGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLocalPeeringGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_request_response.go index e93c918783..b8df7f5098 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_local_peering_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_local_peering_gateway_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateLocalPeeringGatewayRequest wrapper for the UpdateLocalPeeringGateway operation type UpdateLocalPeeringGatewayRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the local peering gateway. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the local peering gateway. LocalPeeringGatewayId *string `mandatory:"true" contributesTo:"path" name:"localPeeringGatewayId"` // Details object for updating a local peering gateway. @@ -39,6 +41,10 @@ func (request UpdateLocalPeeringGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateLocalPeeringGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateLocalPeeringGatewayRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLocalPeeringGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateLocalPeeringGatewayResponse wrapper for the UpdateLocalPeeringGateway operation type UpdateLocalPeeringGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_key.go new file mode 100644 index 0000000000..f0966d611d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_key.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateMacsecKey An object defining the OCID of the Secret held in Vault that represent the MACsec key. +type UpdateMacsecKey struct { + + // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key Name (CKN) of this MACsec key. + ConnectivityAssociationNameSecretId *string `mandatory:"true" json:"connectivityAssociationNameSecretId"` + + // The secret version of the connectivity association name secret in Vault. + ConnectivityAssociationNameSecretVersion *int64 `mandatory:"true" json:"connectivityAssociationNameSecretVersion"` + + // Secret OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) containing the Connectivity Association Key (CAK) of this MACsec key. + ConnectivityAssociationKeySecretId *string `mandatory:"true" json:"connectivityAssociationKeySecretId"` + + // The secret version of the connectivityAssociationKey secret in Vault. + ConnectivityAssociationKeySecretVersion *int64 `mandatory:"true" json:"connectivityAssociationKeySecretVersion"` +} + +func (m UpdateMacsecKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateMacsecKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_properties.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_properties.go new file mode 100644 index 0000000000..4cff3382b7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_macsec_properties.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateMacsecProperties Properties used to update MACsec settings. +type UpdateMacsecProperties struct { + + // Indicates whether or not MACsec is enabled. + State MacsecStateEnum `mandatory:"true" json:"state"` + + PrimaryKey *UpdateMacsecKey `mandatory:"false" json:"primaryKey"` + + // Type of encryption cipher suite to use for the MACsec connection. + EncryptionCipher MacsecEncryptionCipherEnum `mandatory:"false" json:"encryptionCipher,omitempty"` +} + +func (m UpdateMacsecProperties) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateMacsecProperties) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMacsecStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetMacsecStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingMacsecEncryptionCipherEnum(string(m.EncryptionCipher)); !ok && m.EncryptionCipher != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionCipher: %s. Supported values are: %s.", m.EncryptionCipher, strings.Join(GetMacsecEncryptionCipherEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_details.go new file mode 100644 index 0000000000..c2847f0fcf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNatGatewayDetails The representation of UpdateNatGatewayDetails +type UpdateNatGatewayDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Whether the NAT gateway blocks traffic through it. The default is `false`. + // Example: `true` + BlockTraffic *bool `mandatory:"false" json:"blockTraffic"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table used by the NAT gateway. + // If you don't specify a route table here, the NAT gateway is created without an associated route + // table. The Networking service does NOT automatically associate the attached VCN's default route + // table with the NAT gateway. + RouteTableId *string `mandatory:"false" json:"routeTableId"` +} + +func (m UpdateNatGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNatGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go index 0b7e2f6435..b2c09fd5cc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_nat_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_nat_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateNatGatewayRequest wrapper for the UpdateNatGateway operation @@ -39,6 +41,10 @@ func (request UpdateNatGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateNatGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateNatGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNatGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateNatGatewayResponse wrapper for the UpdateNatGateway operation type UpdateNatGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_details.go new file mode 100644 index 0000000000..7185551e55 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNetworkSecurityGroupDetails The representation of UpdateNetworkSecurityGroupDetails +type UpdateNetworkSecurityGroupDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateNetworkSecurityGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNetworkSecurityGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_request_response.go index 0c3358c2ff..1981dfd8c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateNetworkSecurityGroupRequest wrapper for the UpdateNetworkSecurityGroup operation @@ -39,6 +41,10 @@ func (request UpdateNetworkSecurityGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateNetworkSecurityGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateNetworkSecurityGroupRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNetworkSecurityGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateNetworkSecurityGroupResponse wrapper for the UpdateNetworkSecurityGroup operation type UpdateNetworkSecurityGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_details.go new file mode 100644 index 0000000000..4d4af75c7c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNetworkSecurityGroupSecurityRulesDetails The representation of UpdateNetworkSecurityGroupSecurityRulesDetails +type UpdateNetworkSecurityGroupSecurityRulesDetails struct { + + // The NSG security rules to update. + SecurityRules []UpdateSecurityRuleDetails `mandatory:"false" json:"securityRules"` +} + +func (m UpdateNetworkSecurityGroupSecurityRulesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNetworkSecurityGroupSecurityRulesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_request_response.go index 5de7db0704..0fbf2640da 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_network_security_group_security_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_network_security_group_security_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateNetworkSecurityGroupSecurityRulesRequest wrapper for the UpdateNetworkSecurityGroupSecurityRules operation @@ -35,6 +37,10 @@ func (request UpdateNetworkSecurityGroupSecurityRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateNetworkSecurityGroupSecurityRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -50,6 +56,17 @@ func (request UpdateNetworkSecurityGroupSecurityRulesRequest) RetryPolicy() *com return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNetworkSecurityGroupSecurityRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateNetworkSecurityGroupSecurityRulesResponse wrapper for the UpdateNetworkSecurityGroupSecurityRules operation type UpdateNetworkSecurityGroupSecurityRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_details.go new file mode 100644 index 0000000000..70f9e691e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePrivateAccessGatewayDetails Information that can be updated for a private access gateway (PAG). +type UpdatePrivateAccessGatewayDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdatePrivateAccessGatewayDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePrivateAccessGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_request_response.go index 4d768f2b31..6d327f0bdb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_access_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_access_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePrivateAccessGatewayRequest wrapper for the UpdatePrivateAccessGateway operation @@ -39,6 +41,10 @@ func (request UpdatePrivateAccessGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePrivateAccessGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdatePrivateAccessGatewayRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePrivateAccessGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePrivateAccessGatewayResponse wrapper for the UpdatePrivateAccessGateway operation type UpdatePrivateAccessGatewayResponse struct { @@ -70,7 +87,8 @@ type UpdatePrivateAccessGatewayResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_endpoint_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_endpoint_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_endpoint_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_endpoint_details.go index 3283d709e8..662a4fec0c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_endpoint_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_endpoint_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdatePrivateEndpointDetails Information that can be updated for a private endpoint. @@ -59,3 +61,15 @@ type UpdatePrivateEndpointDetails struct { func (m UpdatePrivateEndpointDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePrivateEndpointDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_endpoint_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_endpoint_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_endpoint_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_endpoint_request_response.go index 75c44e59f4..34b83fac63 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_endpoint_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_endpoint_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePrivateEndpointRequest wrapper for the UpdatePrivateEndpoint operation @@ -43,6 +45,10 @@ func (request UpdatePrivateEndpointRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePrivateEndpointRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request UpdatePrivateEndpointRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePrivateEndpointRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePrivateEndpointResponse wrapper for the UpdatePrivateEndpoint operation type UpdatePrivateEndpointResponse struct { @@ -74,7 +91,8 @@ type UpdatePrivateEndpointResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_details.go new file mode 100644 index 0000000000..a4ce2395f6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePrivateIpDetails The representation of UpdatePrivateIpDetails +type UpdatePrivateIpDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The hostname for the private IP. Used for DNS. The value + // is the hostname portion of the private IP's fully qualified domain name (FQDN) + // (for example, `bminstance-1` in FQDN `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be unique across all VNICs in the subnet and comply with + // RFC 952 (https://tools.ietf.org/html/rfc952) and + // RFC 1123 (https://tools.ietf.org/html/rfc1123). + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // Example: `bminstance-1` + HostnameLabel *string `mandatory:"false" json:"hostnameLabel"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC to reassign the private IP to. The VNIC must + // be in the same subnet as the current VNIC. + VnicId *string `mandatory:"false" json:"vnicId"` +} + +func (m UpdatePrivateIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePrivateIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_details.go new file mode 100644 index 0000000000..e58e7029fa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePrivateIpNextHopDetails The data to update private IP's nextHop configuration. +type UpdatePrivateIpNextHopDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // VNICaaS will flow-hash traffic that matches the service protocol and port. Sending an + // empty list mean you want to remove all service protocol ports. + ServiceProtocolPorts []PrivateIpNextHopProtocolPort `mandatory:"false" json:"serviceProtocolPorts"` + + // Details of nextHop targets. + Targets []PrivateIpNextHopTarget `mandatory:"false" json:"targets"` +} + +func (m UpdatePrivateIpNextHopDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePrivateIpNextHopDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_request_response.go index 083ff67f1e..1d2706a6ae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_next_hop_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_next_hop_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePrivateIpNextHopRequest wrapper for the UpdatePrivateIpNextHop operation type UpdatePrivateIpNextHopRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // Private IP nextHop configuration details. @@ -39,6 +41,10 @@ func (request UpdatePrivateIpNextHopRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePrivateIpNextHopRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdatePrivateIpNextHopRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePrivateIpNextHopRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePrivateIpNextHopResponse wrapper for the UpdatePrivateIpNextHop operation type UpdatePrivateIpNextHopResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go index 5be3767c84..ca458cd56f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_private_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_private_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePrivateIpRequest wrapper for the UpdatePrivateIp operation type UpdatePrivateIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the private IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP or IPv6. PrivateIpId *string `mandatory:"true" contributesTo:"path" name:"privateIpId"` // Private IP details. @@ -39,6 +41,10 @@ func (request UpdatePrivateIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePrivateIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdatePrivateIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePrivateIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePrivateIpResponse wrapper for the UpdatePrivateIp operation type UpdatePrivateIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_details.go new file mode 100644 index 0000000000..940097ee6f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePublicIpDetails The representation of UpdatePublicIpDetails +type UpdatePublicIpDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP to assign the public IP to. + // * If the public IP is already assigned to a different private IP, it will be unassigned + // and then reassigned to the specified private IP. + // * If you set this field to an empty string, the public IP will be unassigned from the + // private IP it is currently assigned to. + PrivateIpId *string `mandatory:"false" json:"privateIpId"` +} + +func (m UpdatePublicIpDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePublicIpDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_details.go new file mode 100644 index 0000000000..5c6172bb0f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePublicIpPoolDetails The data to update for a public IP pool. +type UpdatePublicIpPoolDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdatePublicIpPoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePublicIpPoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_request_response.go index f3d6887965..0e3cfe62e1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_pool_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_pool_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePublicIpPoolRequest wrapper for the UpdatePublicIpPool operation @@ -39,6 +41,10 @@ func (request UpdatePublicIpPoolRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePublicIpPoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdatePublicIpPoolRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePublicIpPoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePublicIpPoolResponse wrapper for the UpdatePublicIpPool operation type UpdatePublicIpPoolResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go index f8f62aaf78..14d67f5b37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_public_ip_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_public_ip_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePublicIpRequest wrapper for the UpdatePublicIp operation type UpdatePublicIpRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the public IP. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the public IP. PublicIpId *string `mandatory:"true" contributesTo:"path" name:"publicIpId"` // Public IP details. @@ -39,6 +41,10 @@ func (request UpdatePublicIpRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePublicIpRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdatePublicIpRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePublicIpRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePublicIpResponse wrapper for the UpdatePublicIp operation type UpdatePublicIpResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_details.go new file mode 100644 index 0000000000..937a81ea15 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateRemotePeeringConnectionDetails The representation of UpdateRemotePeeringConnectionDetails +type UpdateRemotePeeringConnectionDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateRemotePeeringConnectionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateRemotePeeringConnectionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_request_response.go index 166f333f0d..4dd9120d3c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_remote_peering_connection_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_remote_peering_connection_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateRemotePeeringConnectionRequest wrapper for the UpdateRemotePeeringConnection operation type UpdateRemotePeeringConnectionRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the remote peering connection (RPC). RemotePeeringConnectionId *string `mandatory:"true" contributesTo:"path" name:"remotePeeringConnectionId"` // Request to the update the peering connection to remote region @@ -39,6 +41,10 @@ func (request UpdateRemotePeeringConnectionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateRemotePeeringConnectionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateRemotePeeringConnectionRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateRemotePeeringConnectionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateRemotePeeringConnectionResponse wrapper for the UpdateRemotePeeringConnection operation type UpdateRemotePeeringConnectionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_details.go new file mode 100644 index 0000000000..91c0ac4ea5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateResourcePoolDetails This structure is used to updated Resource Pool values (currently, internet throttle limit only). +type UpdateResourcePoolDetails struct { + + // Throttling limit for internet bandwidth mbps on the given instance. + InternetThrottleLimitMbps *int64 `mandatory:"false" json:"internetThrottleLimitMbps"` + + // If this is true, internet bandwidth limit will be set as aggregate bandwidth. + IsByPassInternetThrottleLimit *bool `mandatory:"false" json:"isByPassInternetThrottleLimit"` +} + +func (m UpdateResourcePoolDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateResourcePoolDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_request_response.go new file mode 100644 index 0000000000..de3ad9d420 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_resource_pool_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateResourcePoolRequest wrapper for the UpdateResourcePool operation +type UpdateResourcePoolRequest struct { + + // This resource pool id or a instance id which the resouce pool is linked to. + ResourcePoolIdOrInstanceId *string `mandatory:"true" contributesTo:"path" name:"resourcePoolIdOrInstanceId"` + + // Details to update a resource pool. + UpdateResourcePoolDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateResourcePoolRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateResourcePoolRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateResourcePoolRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateResourcePoolRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateResourcePoolRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateResourcePoolResponse wrapper for the UpdateResourcePool operation +type UpdateResourcePoolResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateResourcePoolResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateResourcePoolResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_details.go new file mode 100644 index 0000000000..861cfe5d2b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateRouteTableDetails The representation of UpdateRouteTableDetails +type UpdateRouteTableDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The collection of rules used for routing destination IPs to network devices. + RouteRules []RouteRule `mandatory:"false" json:"routeRules"` + + // Indicates whether or not ECMP is enabled on the route table. + IsEcmpEnabled *bool `mandatory:"false" json:"isEcmpEnabled"` +} + +func (m UpdateRouteTableDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateRouteTableDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go index 5e23cb756e..76fcea0857 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_route_table_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_route_table_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateRouteTableRequest wrapper for the UpdateRouteTable operation type UpdateRouteTableRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the route table. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table. RtId *string `mandatory:"true" contributesTo:"path" name:"rtId"` // Details object for updating a route table. @@ -39,6 +41,10 @@ func (request UpdateRouteTableRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateRouteTableRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateRouteTableRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateRouteTableRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateRouteTableResponse wrapper for the UpdateRouteTable operation type UpdateRouteTableResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_details.go new file mode 100644 index 0000000000..b54446da96 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateScanProxyDetails Details for updating a scan proxy instance created for a scan listener FQDN/IPs +type UpdateScanProxyDetails struct { + + // Type indicating whether Scan listener is specified by its FQDN or list of IPs + ScanListenerType ScanProxyScanListenerTypeEnum `mandatory:"false" json:"scanListenerType,omitempty"` + + // The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN + // listeners. + ScanListenerInfo []ScanListenerInfo `mandatory:"false" json:"scanListenerInfo"` + + // The protocol used for communication between client, scanProxy and RAC's scan + // listeners + Protocol ScanProxyProtocolEnum `mandatory:"false" json:"protocol,omitempty"` + + ScanListenerWallet *WalletInfo `mandatory:"false" json:"scanListenerWallet"` +} + +func (m UpdateScanProxyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateScanProxyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingScanProxyScanListenerTypeEnum(string(m.ScanListenerType)); !ok && m.ScanListenerType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ScanListenerType: %s. Supported values are: %s.", m.ScanListenerType, strings.Join(GetScanProxyScanListenerTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingScanProxyProtocolEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetScanProxyProtocolEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_request_response.go index 4b61be551c..b88f5cc24d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_scan_proxy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_scan_proxy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateScanProxyRequest wrapper for the UpdateScanProxy operation @@ -46,6 +48,10 @@ func (request UpdateScanProxyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateScanProxyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateScanProxyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateScanProxyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateScanProxyResponse wrapper for the UpdateScanProxy operation type UpdateScanProxyResponse struct { @@ -77,7 +94,8 @@ type UpdateScanProxyResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_details.go new file mode 100644 index 0000000000..0f4b1ca5c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateSecurityListDetails The representation of UpdateSecurityListDetails +type UpdateSecurityListDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Rules for allowing egress IP packets. + EgressSecurityRules []EgressSecurityRule `mandatory:"false" json:"egressSecurityRules"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Rules for allowing ingress IP packets. + IngressSecurityRules []IngressSecurityRule `mandatory:"false" json:"ingressSecurityRules"` +} + +func (m UpdateSecurityListDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSecurityListDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go index 2780c1b884..223e961bea 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_security_list_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_list_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateSecurityListRequest wrapper for the UpdateSecurityList operation type UpdateSecurityListRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the security list. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the security list. SecurityListId *string `mandatory:"true" contributesTo:"path" name:"securityListId"` // Updated details for the security list. @@ -39,6 +41,10 @@ func (request UpdateSecurityListRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateSecurityListRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateSecurityListRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSecurityListRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateSecurityListResponse wrapper for the UpdateSecurityList operation type UpdateSecurityListResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_rule_details.go new file mode 100644 index 0000000000..f616c7aa81 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_security_rule_details.go @@ -0,0 +1,260 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateSecurityRuleDetails A rule for allowing inbound (`direction`= INGRESS) or outbound (`direction`= EGRESS) IP packets. +type UpdateSecurityRuleDetails struct { + + // Direction of the security rule. Set to `EGRESS` for rules to allow outbound IP packets, + // or `INGRESS` for rules to allow inbound IP packets. + Direction UpdateSecurityRuleDetailsDirectionEnum `mandatory:"true" json:"direction"` + + // The Oracle-assigned ID of the security rule that you want to update. You can't change this value. + // Example: `04ABEC` + Id *string `mandatory:"true" json:"id"` + + // The transport protocol. Specify either `all` or an IPv4 protocol number as + // defined in + // Protocol Numbers (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml). + // Options are supported only for ICMP ("1"), TCP ("6"), UDP ("17"), and ICMPv6 ("58"). + Protocol *string `mandatory:"true" json:"protocol"` + + // An optional description of your choice for the rule. Avoid entering confidential information. + Description *string `mandatory:"false" json:"description"` + + // Conceptually, this is the range of IP addresses that a packet originating from the instance + // can go to. + // Allowed values: + // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // IPv6 addressing is supported for all commercial and government regions. See + // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security rule for traffic destined for a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same + // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control + // traffic between VNICs in the same NSG. + Destination *string `mandatory:"false" json:"destination"` + + // Type of destination for the rule. Required if `direction` = `EGRESS`. + // Allowed values: + // * `CIDR_BLOCK`: If the rule's `destination` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `destination` is the `cidrBlock` value for a + // Service (the rule is for traffic destined for a + // particular `Service` through a service gateway). + // * `NETWORK_SECURITY_GROUP`: If the rule's `destination` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a + // NetworkSecurityGroup. + DestinationType UpdateSecurityRuleDetailsDestinationTypeEnum `mandatory:"false" json:"destinationType,omitempty"` + + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + // A stateless rule allows traffic in one direction. Remember to add a corresponding + // stateless rule in the other direction if you need to support bidirectional traffic. For + // example, if egress traffic allows TCP destination port 80, there should be an ingress + // rule to allow TCP source port 80. Defaults to false, which means the rule is stateful + // and a corresponding rule is not necessary for bidirectional traffic. + IsStateless *bool `mandatory:"false" json:"isStateless"` + + // Conceptually, this is the range of IP addresses that a packet coming into the instance + // can come from. + // Allowed values: + // * An IP address range in CIDR notation. For example: `192.168.1.0/24` or `2001:0db8:0123:45::/56` + // IPv6 addressing is supported for all commercial and government regions. See + // IPv6 Addresses (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/ipv6.htm). + // * The `cidrBlock` value for a Service, if you're + // setting up a security rule for traffic coming from a particular `Service` through + // a service gateway. For example: `oci-phx-objectstorage`. + // * The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a NetworkSecurityGroup in the same + // VCN. The value can be the NSG that the rule belongs to if the rule's intent is to control + // traffic between VNICs in the same NSG. + Source *string `mandatory:"false" json:"source"` + + // Type of source for the rule. Required if `direction` = `INGRESS`. + // * `CIDR_BLOCK`: If the rule's `source` is an IP address range in CIDR notation. + // * `SERVICE_CIDR_BLOCK`: If the rule's `source` is the `cidrBlock` value for a + // Service (the rule is for traffic coming from a + // particular `Service` through a service gateway). + // * `NETWORK_SECURITY_GROUP`: If the rule's `source` is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of a + // NetworkSecurityGroup. + SourceType UpdateSecurityRuleDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` +} + +func (m UpdateSecurityRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSecurityRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUpdateSecurityRuleDetailsDirectionEnum(string(m.Direction)); !ok && m.Direction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Direction: %s. Supported values are: %s.", m.Direction, strings.Join(GetUpdateSecurityRuleDetailsDirectionEnumStringValues(), ","))) + } + + if _, ok := GetMappingUpdateSecurityRuleDetailsDestinationTypeEnum(string(m.DestinationType)); !ok && m.DestinationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DestinationType: %s. Supported values are: %s.", m.DestinationType, strings.Join(GetUpdateSecurityRuleDetailsDestinationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateSecurityRuleDetailsSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetUpdateSecurityRuleDetailsSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateSecurityRuleDetailsDestinationTypeEnum Enum with underlying type: string +type UpdateSecurityRuleDetailsDestinationTypeEnum string + +// Set of constants representing the allowable values for UpdateSecurityRuleDetailsDestinationTypeEnum +const ( + UpdateSecurityRuleDetailsDestinationTypeCidrBlock UpdateSecurityRuleDetailsDestinationTypeEnum = "CIDR_BLOCK" + UpdateSecurityRuleDetailsDestinationTypeServiceCidrBlock UpdateSecurityRuleDetailsDestinationTypeEnum = "SERVICE_CIDR_BLOCK" + UpdateSecurityRuleDetailsDestinationTypeNetworkSecurityGroup UpdateSecurityRuleDetailsDestinationTypeEnum = "NETWORK_SECURITY_GROUP" +) + +var mappingUpdateSecurityRuleDetailsDestinationTypeEnum = map[string]UpdateSecurityRuleDetailsDestinationTypeEnum{ + "CIDR_BLOCK": UpdateSecurityRuleDetailsDestinationTypeCidrBlock, + "SERVICE_CIDR_BLOCK": UpdateSecurityRuleDetailsDestinationTypeServiceCidrBlock, + "NETWORK_SECURITY_GROUP": UpdateSecurityRuleDetailsDestinationTypeNetworkSecurityGroup, +} + +var mappingUpdateSecurityRuleDetailsDestinationTypeEnumLowerCase = map[string]UpdateSecurityRuleDetailsDestinationTypeEnum{ + "cidr_block": UpdateSecurityRuleDetailsDestinationTypeCidrBlock, + "service_cidr_block": UpdateSecurityRuleDetailsDestinationTypeServiceCidrBlock, + "network_security_group": UpdateSecurityRuleDetailsDestinationTypeNetworkSecurityGroup, +} + +// GetUpdateSecurityRuleDetailsDestinationTypeEnumValues Enumerates the set of values for UpdateSecurityRuleDetailsDestinationTypeEnum +func GetUpdateSecurityRuleDetailsDestinationTypeEnumValues() []UpdateSecurityRuleDetailsDestinationTypeEnum { + values := make([]UpdateSecurityRuleDetailsDestinationTypeEnum, 0) + for _, v := range mappingUpdateSecurityRuleDetailsDestinationTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateSecurityRuleDetailsDestinationTypeEnumStringValues Enumerates the set of values in String for UpdateSecurityRuleDetailsDestinationTypeEnum +func GetUpdateSecurityRuleDetailsDestinationTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + "NETWORK_SECURITY_GROUP", + } +} + +// GetMappingUpdateSecurityRuleDetailsDestinationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateSecurityRuleDetailsDestinationTypeEnum(val string) (UpdateSecurityRuleDetailsDestinationTypeEnum, bool) { + enum, ok := mappingUpdateSecurityRuleDetailsDestinationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateSecurityRuleDetailsDirectionEnum Enum with underlying type: string +type UpdateSecurityRuleDetailsDirectionEnum string + +// Set of constants representing the allowable values for UpdateSecurityRuleDetailsDirectionEnum +const ( + UpdateSecurityRuleDetailsDirectionEgress UpdateSecurityRuleDetailsDirectionEnum = "EGRESS" + UpdateSecurityRuleDetailsDirectionIngress UpdateSecurityRuleDetailsDirectionEnum = "INGRESS" +) + +var mappingUpdateSecurityRuleDetailsDirectionEnum = map[string]UpdateSecurityRuleDetailsDirectionEnum{ + "EGRESS": UpdateSecurityRuleDetailsDirectionEgress, + "INGRESS": UpdateSecurityRuleDetailsDirectionIngress, +} + +var mappingUpdateSecurityRuleDetailsDirectionEnumLowerCase = map[string]UpdateSecurityRuleDetailsDirectionEnum{ + "egress": UpdateSecurityRuleDetailsDirectionEgress, + "ingress": UpdateSecurityRuleDetailsDirectionIngress, +} + +// GetUpdateSecurityRuleDetailsDirectionEnumValues Enumerates the set of values for UpdateSecurityRuleDetailsDirectionEnum +func GetUpdateSecurityRuleDetailsDirectionEnumValues() []UpdateSecurityRuleDetailsDirectionEnum { + values := make([]UpdateSecurityRuleDetailsDirectionEnum, 0) + for _, v := range mappingUpdateSecurityRuleDetailsDirectionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateSecurityRuleDetailsDirectionEnumStringValues Enumerates the set of values in String for UpdateSecurityRuleDetailsDirectionEnum +func GetUpdateSecurityRuleDetailsDirectionEnumStringValues() []string { + return []string{ + "EGRESS", + "INGRESS", + } +} + +// GetMappingUpdateSecurityRuleDetailsDirectionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateSecurityRuleDetailsDirectionEnum(val string) (UpdateSecurityRuleDetailsDirectionEnum, bool) { + enum, ok := mappingUpdateSecurityRuleDetailsDirectionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateSecurityRuleDetailsSourceTypeEnum Enum with underlying type: string +type UpdateSecurityRuleDetailsSourceTypeEnum string + +// Set of constants representing the allowable values for UpdateSecurityRuleDetailsSourceTypeEnum +const ( + UpdateSecurityRuleDetailsSourceTypeCidrBlock UpdateSecurityRuleDetailsSourceTypeEnum = "CIDR_BLOCK" + UpdateSecurityRuleDetailsSourceTypeServiceCidrBlock UpdateSecurityRuleDetailsSourceTypeEnum = "SERVICE_CIDR_BLOCK" + UpdateSecurityRuleDetailsSourceTypeNetworkSecurityGroup UpdateSecurityRuleDetailsSourceTypeEnum = "NETWORK_SECURITY_GROUP" +) + +var mappingUpdateSecurityRuleDetailsSourceTypeEnum = map[string]UpdateSecurityRuleDetailsSourceTypeEnum{ + "CIDR_BLOCK": UpdateSecurityRuleDetailsSourceTypeCidrBlock, + "SERVICE_CIDR_BLOCK": UpdateSecurityRuleDetailsSourceTypeServiceCidrBlock, + "NETWORK_SECURITY_GROUP": UpdateSecurityRuleDetailsSourceTypeNetworkSecurityGroup, +} + +var mappingUpdateSecurityRuleDetailsSourceTypeEnumLowerCase = map[string]UpdateSecurityRuleDetailsSourceTypeEnum{ + "cidr_block": UpdateSecurityRuleDetailsSourceTypeCidrBlock, + "service_cidr_block": UpdateSecurityRuleDetailsSourceTypeServiceCidrBlock, + "network_security_group": UpdateSecurityRuleDetailsSourceTypeNetworkSecurityGroup, +} + +// GetUpdateSecurityRuleDetailsSourceTypeEnumValues Enumerates the set of values for UpdateSecurityRuleDetailsSourceTypeEnum +func GetUpdateSecurityRuleDetailsSourceTypeEnumValues() []UpdateSecurityRuleDetailsSourceTypeEnum { + values := make([]UpdateSecurityRuleDetailsSourceTypeEnum, 0) + for _, v := range mappingUpdateSecurityRuleDetailsSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateSecurityRuleDetailsSourceTypeEnumStringValues Enumerates the set of values in String for UpdateSecurityRuleDetailsSourceTypeEnum +func GetUpdateSecurityRuleDetailsSourceTypeEnumStringValues() []string { + return []string{ + "CIDR_BLOCK", + "SERVICE_CIDR_BLOCK", + "NETWORK_SECURITY_GROUP", + } +} + +// GetMappingUpdateSecurityRuleDetailsSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateSecurityRuleDetailsSourceTypeEnum(val string) (UpdateSecurityRuleDetailsSourceTypeEnum, bool) { + enum, ok := mappingUpdateSecurityRuleDetailsSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_service_gateway_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_service_gateway_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go index 646bdff4fd..47e8311fc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_service_gateway_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateServiceGatewayDetails The representation of UpdateServiceGatewayDetails @@ -59,3 +61,15 @@ type UpdateServiceGatewayDetails struct { func (m UpdateServiceGatewayDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateServiceGatewayDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_service_gateway_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_service_gateway_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go index 04dc4f217d..4a169f1be8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_service_gateway_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_service_gateway_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateServiceGatewayRequest wrapper for the UpdateServiceGateway operation @@ -39,6 +41,10 @@ func (request UpdateServiceGatewayRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateServiceGatewayRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateServiceGatewayRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateServiceGatewayRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateServiceGatewayResponse wrapper for the UpdateServiceGateway operation type UpdateServiceGatewayResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_smtp_port_action_unblock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_smtp_port_action_unblock_request_response.go new file mode 100644 index 0000000000..b48e4169a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_smtp_port_action_unblock_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateSmtpPortActionUnblockRequest wrapper for the UpdateSmtpPortActionUnblock operation +type UpdateSmtpPortActionUnblockRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tenancy. + TenancyId *string `mandatory:"true" contributesTo:"path" name:"tenancyId"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (for example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateSmtpPortActionUnblockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateSmtpPortActionUnblockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateSmtpPortActionUnblockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateSmtpPortActionUnblockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSmtpPortActionUnblockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateSmtpPortActionUnblockResponse wrapper for the UpdateSmtpPortActionUnblock operation +type UpdateSmtpPortActionUnblockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateSmtpPortActionUnblockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateSmtpPortActionUnblockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_subnet_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_subnet_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go index 2f9505f8aa..756b4b7e1b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_subnet_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateSubnetDetails The representation of UpdateSubnetDetails @@ -77,8 +79,26 @@ type UpdateSubnetDetails struct { // b. The IPv6 CIDR is within the parent VCN IPv6 range. // Example: `2001:0db8:0123:1111::/64` Ipv6CidrBlock *string `mandatory:"false" json:"ipv6CidrBlock"` + + // The list of all IPv6 CIDR blocks (Oracle allocated IPv6 GUA, ULA or private IPv6 CIDR blocks, BYOIPv6 CIDR blocks) for the subnet that meets the following criteria: + // - The CIDR blocks must be valid. + // - Multiple CIDR blocks must not overlap each other or the on-premises network CIDR block. + // - The number of CIDR blocks must not exceed the limit of IPv6 CIDR blocks allowed to a subnet. + Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` } func (m UpdateSubnetDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSubnetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_subnet_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_subnet_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go index 700f6ffe54..83f4f29a04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_subnet_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_subnet_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateSubnetRequest wrapper for the UpdateSubnet operation type UpdateSubnetRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet. SubnetId *string `mandatory:"true" contributesTo:"path" name:"subnetId"` // Details object for updating a subnet. @@ -39,6 +41,10 @@ func (request UpdateSubnetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateSubnetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateSubnetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSubnetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateSubnetResponse wrapper for the UpdateSubnet operation type UpdateSubnetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_details.go new file mode 100644 index 0000000000..f93c7dc491 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateTunnelCpeDeviceConfigDetails The representation of UpdateTunnelCpeDeviceConfigDetails +type UpdateTunnelCpeDeviceConfigDetails struct { + + // The set of configuration answers for a CPE device. + TunnelCpeDeviceConfig []CpeDeviceConfigAnswer `mandatory:"false" json:"tunnelCpeDeviceConfig"` +} + +func (m UpdateTunnelCpeDeviceConfigDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateTunnelCpeDeviceConfigDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_request_response.go index 05cf415441..6d18cfb67c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_tunnel_cpe_device_config_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_tunnel_cpe_device_config_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateTunnelCpeDeviceConfigRequest wrapper for the UpdateTunnelCpeDeviceConfig operation type UpdateTunnelCpeDeviceConfigRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the IPSec connection. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the IPSec connection. IpscId *string `mandatory:"true" contributesTo:"path" name:"ipscId"` // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the tunnel. @@ -49,6 +51,10 @@ func (request UpdateTunnelCpeDeviceConfigRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateTunnelCpeDeviceConfigRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request UpdateTunnelCpeDeviceConfigRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateTunnelCpeDeviceConfigRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateTunnelCpeDeviceConfigResponse wrapper for the UpdateTunnelCpeDeviceConfig operation type UpdateTunnelCpeDeviceConfigResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_details.go new file mode 100644 index 0000000000..fa2fe8dd08 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVcnDetails The representation of UpdateVcnDetails +type UpdateVcnDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A DNS label for the VCN, used in conjunction with the VNIC's hostname and + // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Not required to be unique, but it's a best practice to set unique DNS labels + // for VCNs in your tenancy. Must be an alphanumeric string that begins with a letter. + // The value cannot be changed. + // You must set this value if you want instances to be able to use hostnames to + // resolve other instances in the VCN. Otherwise the Internet and VCN Resolver + // will not work. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // Example: `vcn1` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateVcnDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVcnDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_drg_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_drg_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_drg_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_drg_attachment_request_response.go index 660106dea1..419045311b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_drg_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_drg_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVcnDrgAttachmentRequest wrapper for the UpdateVcnDrgAttachment operation @@ -39,6 +41,10 @@ func (request UpdateVcnDrgAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVcnDrgAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVcnDrgAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVcnDrgAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVcnDrgAttachmentResponse wrapper for the UpdateVcnDrgAttachment operation type UpdateVcnDrgAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_drg_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_drg_request_response.go index f8927da120..5ae5945509 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVcnDrgRequest wrapper for the UpdateVcnDrg operation type UpdateVcnDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Details object for updating a DRG. @@ -39,6 +41,10 @@ func (request UpdateVcnDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVcnDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVcnDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVcnDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVcnDrgResponse wrapper for the UpdateVcnDrg operation type UpdateVcnDrgResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go index 47210cc274..21a6406fbe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vcn_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vcn_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVcnRequest wrapper for the UpdateVcn operation @@ -39,6 +41,10 @@ func (request UpdateVcnRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVcnRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVcnRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVcnRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVcnResponse wrapper for the UpdateVcn operation type UpdateVcnResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_details.go new file mode 100644 index 0000000000..684eb3518f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_details.go @@ -0,0 +1,267 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVirtualCircuitDetails The representation of UpdateVirtualCircuitDetails +type UpdateVirtualCircuitDetails struct { + + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // To be updated only by the customer who owns the virtual circuit. + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // An array of mappings, each containing properties for a cross-connect or + // cross-connect group associated with this virtual circuit. + // The customer and provider can update different properties in the mapping + // depending on the situation. See the description of the + // CrossConnectMapping. + CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` + + // The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. + // Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`. + // See Route Filtering (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. + // By default, routing information is shared for all routes in the same market. + RoutingPolicy []UpdateVirtualCircuitDetailsRoutingPolicyEnum `mandatory:"false" json:"routingPolicy,omitempty"` + + // Set to `ENABLED` (the default) to activate the BGP session of the virtual circuit, set to `DISABLED` to deactivate the virtual circuit. + BgpAdminState UpdateVirtualCircuitDetailsBgpAdminStateEnum `mandatory:"false" json:"bgpAdminState,omitempty"` + + // Set to `true` to enable BFD for IPv4 BGP peering, or set to `false` to disable BFD. If this is not set, the default is `false`. + IsBfdEnabled *bool `mandatory:"false" json:"isBfdEnabled"` + + // Deprecated. Instead use `customerAsn`. + // If you specify values for both, the request will be rejected. + CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` + + // The BGP ASN of the network at the other end of the BGP + // session from Oracle. + // If the BGP session is from the customer's edge router to Oracle, the + // required value is the customer's ASN, and it can be updated only + // by the customer. + // If the BGP session is from the provider's edge router to Oracle, the + // required value is the provider's ASN, and it can be updated only + // by the provider. + // Can be a 2-byte or 4-byte ASN. Uses "asplain" format. + CustomerAsn *int64 `mandatory:"false" json:"customerAsn"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Drg + // that this private virtual circuit uses. + // To be updated only by the customer who owns the virtual circuit. + GatewayId *string `mandatory:"false" json:"gatewayId"` + + // The provider's state in relation to this virtual circuit. Relevant only + // if the customer is using FastConnect via a provider. ACTIVE + // means the provider has provisioned the virtual circuit from their + // end. INACTIVE means the provider has not yet provisioned the virtual + // circuit, or has de-provisioned it. + // To be updated only by the provider. + ProviderState UpdateVirtualCircuitDetailsProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` + + // The service key name offered by the provider (if the customer is connecting via a provider). + ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"` + + // Provider-supplied reference information about this virtual circuit. + // Relevant only if the customer is using FastConnect via a provider. + // To be updated only by the provider. + ReferenceComment *string `mandatory:"false" json:"referenceComment"` + + // The layer 3 IP MTU to use on this virtual circuit. + IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` +} + +func (m UpdateVirtualCircuitDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVirtualCircuitDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.RoutingPolicy { + if _, ok := GetMappingUpdateVirtualCircuitDetailsRoutingPolicyEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RoutingPolicy: %s. Supported values are: %s.", val, strings.Join(GetUpdateVirtualCircuitDetailsRoutingPolicyEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingUpdateVirtualCircuitDetailsBgpAdminStateEnum(string(m.BgpAdminState)); !ok && m.BgpAdminState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpAdminState: %s. Supported values are: %s.", m.BgpAdminState, strings.Join(GetUpdateVirtualCircuitDetailsBgpAdminStateEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateVirtualCircuitDetailsProviderStateEnum(string(m.ProviderState)); !ok && m.ProviderState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProviderState: %s. Supported values are: %s.", m.ProviderState, strings.Join(GetUpdateVirtualCircuitDetailsProviderStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitIpMtuEnum(string(m.IpMtu)); !ok && m.IpMtu != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpMtu: %s. Supported values are: %s.", m.IpMtu, strings.Join(GetVirtualCircuitIpMtuEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVirtualCircuitDetailsRoutingPolicyEnum Enum with underlying type: string +type UpdateVirtualCircuitDetailsRoutingPolicyEnum string + +// Set of constants representing the allowable values for UpdateVirtualCircuitDetailsRoutingPolicyEnum +const ( + UpdateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork UpdateVirtualCircuitDetailsRoutingPolicyEnum = "ORACLE_SERVICE_NETWORK" + UpdateVirtualCircuitDetailsRoutingPolicyRegional UpdateVirtualCircuitDetailsRoutingPolicyEnum = "REGIONAL" + UpdateVirtualCircuitDetailsRoutingPolicyMarketLevel UpdateVirtualCircuitDetailsRoutingPolicyEnum = "MARKET_LEVEL" + UpdateVirtualCircuitDetailsRoutingPolicyGlobal UpdateVirtualCircuitDetailsRoutingPolicyEnum = "GLOBAL" +) + +var mappingUpdateVirtualCircuitDetailsRoutingPolicyEnum = map[string]UpdateVirtualCircuitDetailsRoutingPolicyEnum{ + "ORACLE_SERVICE_NETWORK": UpdateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork, + "REGIONAL": UpdateVirtualCircuitDetailsRoutingPolicyRegional, + "MARKET_LEVEL": UpdateVirtualCircuitDetailsRoutingPolicyMarketLevel, + "GLOBAL": UpdateVirtualCircuitDetailsRoutingPolicyGlobal, +} + +var mappingUpdateVirtualCircuitDetailsRoutingPolicyEnumLowerCase = map[string]UpdateVirtualCircuitDetailsRoutingPolicyEnum{ + "oracle_service_network": UpdateVirtualCircuitDetailsRoutingPolicyOracleServiceNetwork, + "regional": UpdateVirtualCircuitDetailsRoutingPolicyRegional, + "market_level": UpdateVirtualCircuitDetailsRoutingPolicyMarketLevel, + "global": UpdateVirtualCircuitDetailsRoutingPolicyGlobal, +} + +// GetUpdateVirtualCircuitDetailsRoutingPolicyEnumValues Enumerates the set of values for UpdateVirtualCircuitDetailsRoutingPolicyEnum +func GetUpdateVirtualCircuitDetailsRoutingPolicyEnumValues() []UpdateVirtualCircuitDetailsRoutingPolicyEnum { + values := make([]UpdateVirtualCircuitDetailsRoutingPolicyEnum, 0) + for _, v := range mappingUpdateVirtualCircuitDetailsRoutingPolicyEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVirtualCircuitDetailsRoutingPolicyEnumStringValues Enumerates the set of values in String for UpdateVirtualCircuitDetailsRoutingPolicyEnum +func GetUpdateVirtualCircuitDetailsRoutingPolicyEnumStringValues() []string { + return []string{ + "ORACLE_SERVICE_NETWORK", + "REGIONAL", + "MARKET_LEVEL", + "GLOBAL", + } +} + +// GetMappingUpdateVirtualCircuitDetailsRoutingPolicyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVirtualCircuitDetailsRoutingPolicyEnum(val string) (UpdateVirtualCircuitDetailsRoutingPolicyEnum, bool) { + enum, ok := mappingUpdateVirtualCircuitDetailsRoutingPolicyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateVirtualCircuitDetailsBgpAdminStateEnum Enum with underlying type: string +type UpdateVirtualCircuitDetailsBgpAdminStateEnum string + +// Set of constants representing the allowable values for UpdateVirtualCircuitDetailsBgpAdminStateEnum +const ( + UpdateVirtualCircuitDetailsBgpAdminStateEnabled UpdateVirtualCircuitDetailsBgpAdminStateEnum = "ENABLED" + UpdateVirtualCircuitDetailsBgpAdminStateDisabled UpdateVirtualCircuitDetailsBgpAdminStateEnum = "DISABLED" +) + +var mappingUpdateVirtualCircuitDetailsBgpAdminStateEnum = map[string]UpdateVirtualCircuitDetailsBgpAdminStateEnum{ + "ENABLED": UpdateVirtualCircuitDetailsBgpAdminStateEnabled, + "DISABLED": UpdateVirtualCircuitDetailsBgpAdminStateDisabled, +} + +var mappingUpdateVirtualCircuitDetailsBgpAdminStateEnumLowerCase = map[string]UpdateVirtualCircuitDetailsBgpAdminStateEnum{ + "enabled": UpdateVirtualCircuitDetailsBgpAdminStateEnabled, + "disabled": UpdateVirtualCircuitDetailsBgpAdminStateDisabled, +} + +// GetUpdateVirtualCircuitDetailsBgpAdminStateEnumValues Enumerates the set of values for UpdateVirtualCircuitDetailsBgpAdminStateEnum +func GetUpdateVirtualCircuitDetailsBgpAdminStateEnumValues() []UpdateVirtualCircuitDetailsBgpAdminStateEnum { + values := make([]UpdateVirtualCircuitDetailsBgpAdminStateEnum, 0) + for _, v := range mappingUpdateVirtualCircuitDetailsBgpAdminStateEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVirtualCircuitDetailsBgpAdminStateEnumStringValues Enumerates the set of values in String for UpdateVirtualCircuitDetailsBgpAdminStateEnum +func GetUpdateVirtualCircuitDetailsBgpAdminStateEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingUpdateVirtualCircuitDetailsBgpAdminStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVirtualCircuitDetailsBgpAdminStateEnum(val string) (UpdateVirtualCircuitDetailsBgpAdminStateEnum, bool) { + enum, ok := mappingUpdateVirtualCircuitDetailsBgpAdminStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateVirtualCircuitDetailsProviderStateEnum Enum with underlying type: string +type UpdateVirtualCircuitDetailsProviderStateEnum string + +// Set of constants representing the allowable values for UpdateVirtualCircuitDetailsProviderStateEnum +const ( + UpdateVirtualCircuitDetailsProviderStateActive UpdateVirtualCircuitDetailsProviderStateEnum = "ACTIVE" + UpdateVirtualCircuitDetailsProviderStateInactive UpdateVirtualCircuitDetailsProviderStateEnum = "INACTIVE" +) + +var mappingUpdateVirtualCircuitDetailsProviderStateEnum = map[string]UpdateVirtualCircuitDetailsProviderStateEnum{ + "ACTIVE": UpdateVirtualCircuitDetailsProviderStateActive, + "INACTIVE": UpdateVirtualCircuitDetailsProviderStateInactive, +} + +var mappingUpdateVirtualCircuitDetailsProviderStateEnumLowerCase = map[string]UpdateVirtualCircuitDetailsProviderStateEnum{ + "active": UpdateVirtualCircuitDetailsProviderStateActive, + "inactive": UpdateVirtualCircuitDetailsProviderStateInactive, +} + +// GetUpdateVirtualCircuitDetailsProviderStateEnumValues Enumerates the set of values for UpdateVirtualCircuitDetailsProviderStateEnum +func GetUpdateVirtualCircuitDetailsProviderStateEnumValues() []UpdateVirtualCircuitDetailsProviderStateEnum { + values := make([]UpdateVirtualCircuitDetailsProviderStateEnum, 0) + for _, v := range mappingUpdateVirtualCircuitDetailsProviderStateEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVirtualCircuitDetailsProviderStateEnumStringValues Enumerates the set of values in String for UpdateVirtualCircuitDetailsProviderStateEnum +func GetUpdateVirtualCircuitDetailsProviderStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "INACTIVE", + } +} + +// GetMappingUpdateVirtualCircuitDetailsProviderStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVirtualCircuitDetailsProviderStateEnum(val string) (UpdateVirtualCircuitDetailsProviderStateEnum, bool) { + enum, ok := mappingUpdateVirtualCircuitDetailsProviderStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go index 7884eccbe0..93e5a2e42b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_virtual_circuit_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_virtual_circuit_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVirtualCircuitRequest wrapper for the UpdateVirtualCircuit operation type UpdateVirtualCircuitRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual circuit. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the virtual circuit. VirtualCircuitId *string `mandatory:"true" contributesTo:"path" name:"virtualCircuitId"` // Update VirtualCircuit fields. @@ -39,6 +41,10 @@ func (request UpdateVirtualCircuitRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVirtualCircuitRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVirtualCircuitRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVirtualCircuitRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVirtualCircuitResponse wrapper for the UpdateVirtualCircuit operation type UpdateVirtualCircuitResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vlan_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vlan_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go index bba6de4379..f979436df8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vlan_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateVlanDetails The representation of UpdateVlanDetails @@ -56,3 +58,15 @@ type UpdateVlanDetails struct { func (m UpdateVlanDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVlanDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vlan_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vlan_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go index 777be61fb8..57302939bd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vlan_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vlan_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVlanRequest wrapper for the UpdateVlan operation @@ -39,6 +41,10 @@ func (request UpdateVlanRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVlanRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVlanRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVlanRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVlanResponse wrapper for the UpdateVlan operation type UpdateVlanResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go index 70171a9798..37ea78db32 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateVnicDetails The representation of UpdateVnicDetails @@ -71,3 +73,15 @@ type UpdateVnicDetails struct { func (m UpdateVnicDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVnicDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go index b7c7b96c9c..85ed435815 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVnicRequest wrapper for the UpdateVnic operation type UpdateVnicRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VNIC. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VNIC. VnicId *string `mandatory:"true" contributesTo:"path" name:"vnicId"` // Details object for updating a VNIC. @@ -39,6 +41,10 @@ func (request UpdateVnicRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVnicRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVnicRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVnicResponse wrapper for the UpdateVnic operation type UpdateVnicResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_details.go new file mode 100644 index 0000000000..2687dec0a8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_details.go @@ -0,0 +1,4251 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVnicShapeDetails This structure is used when updating the shape of VNIC in VNIC attachment. +type UpdateVnicShapeDetails struct { + + // VNIC whose attachments need to be updated to the destination vnic shape. + VnicId *string `mandatory:"true" json:"vnicId"` + + // Shape of VNIC that will be used to update VNIC attachment. + VnicShape UpdateVnicShapeDetailsVnicShapeEnum `mandatory:"true" json:"vnicShape"` +} + +func (m UpdateVnicShapeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVnicShapeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUpdateVnicShapeDetailsVnicShapeEnum(string(m.VnicShape)); !ok && m.VnicShape != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VnicShape: %s. Supported values are: %s.", m.VnicShape, strings.Join(GetUpdateVnicShapeDetailsVnicShapeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVnicShapeDetailsVnicShapeEnum Enum with underlying type: string +type UpdateVnicShapeDetailsVnicShapeEnum string + +// Set of constants representing the allowable values for UpdateVnicShapeDetailsVnicShapeEnum +const ( + UpdateVnicShapeDetailsVnicShapeDynamic UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC" + UpdateVnicShapeDetailsVnicShapeFixed0040 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040" + UpdateVnicShapeDetailsVnicShapeFixed0060 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0060" + UpdateVnicShapeDetailsVnicShapeFixed0060Psm UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0060_PSM" + UpdateVnicShapeDetailsVnicShapeFixed0100 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100" + UpdateVnicShapeDetailsVnicShapeFixed0120 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0120" + UpdateVnicShapeDetailsVnicShapeFixed01202x UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0120_2X" + UpdateVnicShapeDetailsVnicShapeFixed0200 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200" + UpdateVnicShapeDetailsVnicShapeFixed0240 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0240" + UpdateVnicShapeDetailsVnicShapeFixed0480 UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0480" + UpdateVnicShapeDetailsVnicShapeEntirehost UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST" + UpdateVnicShapeDetailsVnicShapeDynamic25g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_25G" + UpdateVnicShapeDetailsVnicShapeFixed004025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_25G" + UpdateVnicShapeDetailsVnicShapeFixed010025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_25G" + UpdateVnicShapeDetailsVnicShapeFixed020025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_25G" + UpdateVnicShapeDetailsVnicShapeFixed040025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_25G" + UpdateVnicShapeDetailsVnicShapeFixed080025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_25G" + UpdateVnicShapeDetailsVnicShapeFixed160025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_25G" + UpdateVnicShapeDetailsVnicShapeFixed240025g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_25G" + UpdateVnicShapeDetailsVnicShapeEntirehost25g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_25G" + UpdateVnicShapeDetailsVnicShapeDynamicE125g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0040E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0070E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0070_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0140E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0140_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0280E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0280_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0560E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0560_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed1120E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1120_E1_25G" + UpdateVnicShapeDetailsVnicShapeFixed1680E125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1680_E1_25G" + UpdateVnicShapeDetailsVnicShapeEntirehostE125g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_E1_25G" + UpdateVnicShapeDetailsVnicShapeDynamicB125g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_B1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0040B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_B1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0060B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0060_B1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0120B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0120_B1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0240B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0240_B1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0480B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0480_B1_25G" + UpdateVnicShapeDetailsVnicShapeFixed0960B125g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0960_B1_25G" + UpdateVnicShapeDetailsVnicShapeEntirehostB125g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_B1_25G" + UpdateVnicShapeDetailsVnicShapeMicroVmFixed0048E125g UpdateVnicShapeDetailsVnicShapeEnum = "MICRO_VM_FIXED0048_E1_25G" + UpdateVnicShapeDetailsVnicShapeMicroLbFixed0001E125g UpdateVnicShapeDetailsVnicShapeEnum = "MICRO_LB_FIXED0001_E1_25G" + UpdateVnicShapeDetailsVnicShapeVnicaasFixed0200 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FIXED0200" + UpdateVnicShapeDetailsVnicShapeVnicaasFixed0400 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FIXED0400" + UpdateVnicShapeDetailsVnicShapeVnicaasFixed0700 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FIXED0700" + UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved10g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_10G" + UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved25g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_NLB_APPROVED_25G" + UpdateVnicShapeDetailsVnicShapeVnicaasTelesis25g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_TELESIS_25G" + UpdateVnicShapeDetailsVnicShapeVnicaasTelesis10g UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_TELESIS_10G" + UpdateVnicShapeDetailsVnicShapeVnicaasAmbassadorFixed0100 UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_AMBASSADOR_FIXED0100" + UpdateVnicShapeDetailsVnicShapeVnicaasTelesisGamma UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_TELESIS_GAMMA" + UpdateVnicShapeDetailsVnicShapeVnicaasPrivatedns UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_PRIVATEDNS" + UpdateVnicShapeDetailsVnicShapeVnicaasFwaas UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_FWAAS" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaasFree UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_FREE" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g512k UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_512K" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g2m UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_2M" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g3m UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_3M" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m8ghost UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_8GHOST" + UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m16ghost UpdateVnicShapeDetailsVnicShapeEnum = "VNICAAS_LBAAS_8G_1M_16GHOST" + UpdateVnicShapeDetailsVnicShapeDynamicE350g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0040E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0300_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0500_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0600_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0700_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed0900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0900_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1000_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1100_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1300_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1400_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1500_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1700_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1800_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed1900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1900_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2100_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2200_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2300_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2500_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2600_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2700_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed2900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2900_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3000_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3100E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3100_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3200E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3300E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3300_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3400E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3400_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3500E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3500_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3600E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3700E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3700_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3800E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3800_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed3900E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3900_E3_50G" + UpdateVnicShapeDetailsVnicShapeFixed4000E350g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_E3_50G" + UpdateVnicShapeDetailsVnicShapeEntirehostE350g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_E3_50G" + UpdateVnicShapeDetailsVnicShapeDynamicE450g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0040E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0300_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0500_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0600_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0700_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed0900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0900_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1000_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1100_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1300_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1400_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1500_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1700_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1800_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed1900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1900_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2100_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2200_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2300_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2500_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2600_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2700_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed2900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2900_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3000_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3100E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3100_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3200E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3300E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3300_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3400E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3400_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3500E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3500_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3600E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3700E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3700_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3800E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3800_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed3900E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3900_E4_50G" + UpdateVnicShapeDetailsVnicShapeFixed4000E450g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_E4_50G" + UpdateVnicShapeDetailsVnicShapeEntirehostE450g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_E4_50G" + UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E350g UpdateVnicShapeDetailsVnicShapeEnum = "Micro_VM_Fixed0050_E3_50G" + UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E450g UpdateVnicShapeDetailsVnicShapeEnum = "Micro_VM_Fixed0050_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E350g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E3_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0025_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0050_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0075_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0125_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0150_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0175_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0225_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0250_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0275_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0325_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0350_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0375_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0425_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0475_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0525_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0550_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0575_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0625_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0650_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0675_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0725_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0750_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0775_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0825_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0850_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0875_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0925_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0950_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0975_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1025_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1050_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1075_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1125_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1150_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1175_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1225_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1250_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1275_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1325_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1375_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1425_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1450_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1475_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1525_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1550_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1575_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1625_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1650_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1725_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1750_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1850_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1875_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1925_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1950_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2025_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2050_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2125_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2150_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2175_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2275_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2325_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2350_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2375_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2450_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2475_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2550_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2625_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2650_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2750_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2775_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2850_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2875_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2925_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2950_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2975_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3025_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3050_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3075_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3125_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3225_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3250_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3325_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3375_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3450_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3525_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3575_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3625_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3675_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3750_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3825_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3850_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3875_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3975_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4025_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4125_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4225_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4250_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4275_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4350_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4375_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4425_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4550_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4575_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4625_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4650_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4675_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4725_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4750_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4875_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E450g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_E4_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0020_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0040_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0060_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0080_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0100_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0120_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0140_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0160_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0200_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0220_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0240_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0260_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0280_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0300_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0320_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0340_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0380_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0400_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0420_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0440_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0460_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0480_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0500_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0520_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0560_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0580_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0600_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0620_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0640_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0660_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0680_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0700_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0740_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0760_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0780_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0800_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0820_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0840_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0860_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0880_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0920_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0940_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0960_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0980_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1000_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1020_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1040_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1060_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1100_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1120_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1140_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1160_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1180_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1200_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1220_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1240_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1280_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1300_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1320_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1340_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1360_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1380_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1400_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1420_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1460_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1480_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1500_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1520_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1540_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1560_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1580_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1600_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1640_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1660_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1680_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1700_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1720_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1740_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1760_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1780_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1820_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1840_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1860_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1880_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1900_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1920_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1940_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1960_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2000_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2020_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2040_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2060_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2080_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2100_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2120_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2140_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2180_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2200_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2220_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2240_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2260_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2280_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2300_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2320_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2360_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2380_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2400_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2420_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2440_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2460_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2480_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2500_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2540_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2560_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2580_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2600_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2620_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2640_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2660_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2680_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2720_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2740_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2760_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2780_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2800_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2820_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2840_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2860_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2900_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2920_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2940_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2960_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2980_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3000_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3020_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3040_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3080_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3100_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3120_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3140_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3160_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3180_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3200_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3220_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3260_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3280_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3300_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3320_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3340_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3360_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3380_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3400_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3440_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3460_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3480_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3500_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3520_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3540_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3560_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3580_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3620_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3640_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3660_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3680_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3700_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3720_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3740_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3760_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3800_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3820_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3840_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3860_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3880_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3900_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3920_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3940_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3980_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4000_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4020A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4020_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4040A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4040_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4060A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4060_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4080A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4080_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4100_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4120A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4120_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4160A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4160_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4180A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4180_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4200_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4220A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4220_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4240A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4240_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4260A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4260_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4280A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4280_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4300_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4340A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4340_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4360A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4360_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4380A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4380_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4400_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4420A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4420_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4440A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4440_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4460A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4460_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4480A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4480_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4520A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4520_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4540A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4540_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4560A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4560_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4580A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4580_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4600_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4620A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4620_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4640A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4640_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4660A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4660_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4700_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4720A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4720_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4740A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4740_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4760A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4760_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4780A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4780_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4800_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4820A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4820_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4840A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4840_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4880A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4880_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4900_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4920A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4920_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4940A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4940_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4960A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4960_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4980A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4980_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000A150g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED5000_A1_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0090X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0090_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0180_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0270X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0270_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0360_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0450_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0540_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0630X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0630_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0720_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0810X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0810_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0900_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0990X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED0990_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1080_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1170X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1170_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1260_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1350_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1440_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1530X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1530_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1620_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1710X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1710_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1800_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1890X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1890_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED1980_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2070X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2070_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2160_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2250_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2340_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2430X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2430_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2520_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2610X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2610_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2700_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2790X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2790_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2880_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2970X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED2970_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3060_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3150_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3240_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3330X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3330_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3420_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3510X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3510_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3600_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3690X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3690_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3780_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3870X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3870_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED3960_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4050_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4140_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4230X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4230_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4320_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4410X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4410_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4500_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4590X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4590_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4680_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4770X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4770_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4860_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_VM_FIXED4950_X9_50G" + UpdateVnicShapeDetailsVnicShapeDynamicA150g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0040A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0100_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0200_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0300_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0500_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0600_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0700_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed0900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0900_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1000_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1100_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1300_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1400_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1500_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1700_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1800_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed1900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1900_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2100_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2200_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2300_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2500_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2600_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2700_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed2900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2900_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3000_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3100A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3100_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3200A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3300A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3300_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3400A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3400_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3500A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3500_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3600A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3700A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3700_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3800A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3800_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed3900A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3900_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed4000A150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_A1_50G" + UpdateVnicShapeDetailsVnicShapeFixed5000TelesisA150g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED5000_TELESIS_A1_50G" + UpdateVnicShapeDetailsVnicShapeEntirehostA150g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_A1_50G" + UpdateVnicShapeDetailsVnicShapeDynamicX950g UpdateVnicShapeDetailsVnicShapeEnum = "DYNAMIC_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed0040X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0040_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed0400X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0400_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed0800X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED0800_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed1200X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1200_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed1600X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED1600_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed2000X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2000_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed2400X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2400_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed2800X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED2800_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed3200X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3200_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED3600_X9_50G" + UpdateVnicShapeDetailsVnicShapeFixed4000X950g UpdateVnicShapeDetailsVnicShapeEnum = "FIXED4000_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0100X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0100_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0200_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0300X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0300_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0400_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0500X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0500_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0600_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0700X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0700_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0800_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed0900X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED0900_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1000_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1100X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1100_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1200_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1300X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1300_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1400_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1500X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1500_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1600_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1700X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1700_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1800_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed1900X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED1900_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2000_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2100X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2100_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2200_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2300X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2300_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2400_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2500X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2500_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2600_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2700X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2700_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2800_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed2900X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED2900_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3000_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3100X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3100_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3200X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3200_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3300X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3300_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3400X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3400_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3500X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3500_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3600_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3700X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3700_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3800X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3800_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed3900X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED3900_X9_50G" + UpdateVnicShapeDetailsVnicShapeStandardVmFixed4000X950g UpdateVnicShapeDetailsVnicShapeEnum = "STANDARD_VM_FIXED4000_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0025X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0025_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0050_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0075X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0075_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0100X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0100_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0125X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0125_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0150X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0150_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0175X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0175_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0200X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0200_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0225X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0225_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0250_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0275X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0275_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0300X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0300_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0325X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0325_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0350X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0350_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0375X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0375_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0400X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0400_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0425X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0425_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0450X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0450_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0475X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0475_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0500_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0525X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0525_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0550X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0550_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0575X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0575_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0600_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0625X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0625_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0650X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0650_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0675X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0675_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0700_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0725X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0725_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0750X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0750_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0775X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0775_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0800_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0825X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0825_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0850X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0850_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0875X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0875_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0900_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0925X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0925_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0950X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0950_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0975X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED0975_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1000X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1000_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1025X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1025_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1050_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1075X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1075_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1100X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1100_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1125X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1125_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1150X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1150_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1175X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1175_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1200X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1200_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1225X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1225_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1250_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1275X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1275_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1300X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1300_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1325X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1325_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1350X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1350_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1375X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1375_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1400X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1400_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1425X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1425_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1450X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1450_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1475X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1475_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1500_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1525X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1525_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1550X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1550_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1575X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1575_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1600_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1625X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1625_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1650X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1650_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1700_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1725X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1725_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1750X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1750_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1800_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1850X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1850_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1875X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1875_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1900_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1925X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1925_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1950X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED1950_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2000X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2000_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2025X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2025_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2050_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2100X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2100_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2125X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2125_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2150X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2150_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2175X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2175_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2200X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2200_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2250_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2275X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2275_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2300X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2300_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2325X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2325_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2350X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2350_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2375X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2375_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2400X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2400_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2450X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2450_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2475X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2475_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2500_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2550X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2550_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2600_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2625X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2625_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2650X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2650_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2700_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2750X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2750_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2775X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2775_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2800_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2850X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2850_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2875X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2875_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2900_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2925X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2925_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2950X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2950_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2975X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED2975_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3000X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3000_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3025X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3025_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3050_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3075X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3075_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3100X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3100_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3125X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3125_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3150X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3150_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3200X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3200_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3225X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3225_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3250_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3300X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3300_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3325X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3325_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3375X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3375_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3400X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3400_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3450X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3450_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3500_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3525X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3525_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3575X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3575_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3600_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3625X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3625_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3675X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3675_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3700_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3750X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3750_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3800_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3825X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3825_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3850X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3850_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3875X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3875_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3900_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3975X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED3975_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4000X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4000_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4025X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4025_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4050X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4050_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4100X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4100_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4125X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4125_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4200X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4200_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4225X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4225_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4250X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4250_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4275X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4275_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4300X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4300_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4350X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4350_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4375X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4375_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4400X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4400_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4425X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4425_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4500X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4500_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4550X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4550_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4575X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4575_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4600X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4600_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4625X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4625_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4650X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4650_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4675X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4675_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4700X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4700_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4725X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4725_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4750X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4750_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4800X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4800_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4875X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4875_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4900X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4900_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4950X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED4950_X9_50G" + UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed5000X950g UpdateVnicShapeDetailsVnicShapeEnum = "SUBCORE_STANDARD_VM_FIXED5000_X9_50G" + UpdateVnicShapeDetailsVnicShapeEntirehostX950g UpdateVnicShapeDetailsVnicShapeEnum = "ENTIREHOST_X9_50G" +) + +var mappingUpdateVnicShapeDetailsVnicShapeEnum = map[string]UpdateVnicShapeDetailsVnicShapeEnum{ + "DYNAMIC": UpdateVnicShapeDetailsVnicShapeDynamic, + "FIXED0040": UpdateVnicShapeDetailsVnicShapeFixed0040, + "FIXED0060": UpdateVnicShapeDetailsVnicShapeFixed0060, + "FIXED0060_PSM": UpdateVnicShapeDetailsVnicShapeFixed0060Psm, + "FIXED0100": UpdateVnicShapeDetailsVnicShapeFixed0100, + "FIXED0120": UpdateVnicShapeDetailsVnicShapeFixed0120, + "FIXED0120_2X": UpdateVnicShapeDetailsVnicShapeFixed01202x, + "FIXED0200": UpdateVnicShapeDetailsVnicShapeFixed0200, + "FIXED0240": UpdateVnicShapeDetailsVnicShapeFixed0240, + "FIXED0480": UpdateVnicShapeDetailsVnicShapeFixed0480, + "ENTIREHOST": UpdateVnicShapeDetailsVnicShapeEntirehost, + "DYNAMIC_25G": UpdateVnicShapeDetailsVnicShapeDynamic25g, + "FIXED0040_25G": UpdateVnicShapeDetailsVnicShapeFixed004025g, + "FIXED0100_25G": UpdateVnicShapeDetailsVnicShapeFixed010025g, + "FIXED0200_25G": UpdateVnicShapeDetailsVnicShapeFixed020025g, + "FIXED0400_25G": UpdateVnicShapeDetailsVnicShapeFixed040025g, + "FIXED0800_25G": UpdateVnicShapeDetailsVnicShapeFixed080025g, + "FIXED1600_25G": UpdateVnicShapeDetailsVnicShapeFixed160025g, + "FIXED2400_25G": UpdateVnicShapeDetailsVnicShapeFixed240025g, + "ENTIREHOST_25G": UpdateVnicShapeDetailsVnicShapeEntirehost25g, + "DYNAMIC_E1_25G": UpdateVnicShapeDetailsVnicShapeDynamicE125g, + "FIXED0040_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0040E125g, + "FIXED0070_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0070E125g, + "FIXED0140_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0140E125g, + "FIXED0280_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0280E125g, + "FIXED0560_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed0560E125g, + "FIXED1120_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed1120E125g, + "FIXED1680_E1_25G": UpdateVnicShapeDetailsVnicShapeFixed1680E125g, + "ENTIREHOST_E1_25G": UpdateVnicShapeDetailsVnicShapeEntirehostE125g, + "DYNAMIC_B1_25G": UpdateVnicShapeDetailsVnicShapeDynamicB125g, + "FIXED0040_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0040B125g, + "FIXED0060_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0060B125g, + "FIXED0120_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0120B125g, + "FIXED0240_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0240B125g, + "FIXED0480_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0480B125g, + "FIXED0960_B1_25G": UpdateVnicShapeDetailsVnicShapeFixed0960B125g, + "ENTIREHOST_B1_25G": UpdateVnicShapeDetailsVnicShapeEntirehostB125g, + "MICRO_VM_FIXED0048_E1_25G": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0048E125g, + "MICRO_LB_FIXED0001_E1_25G": UpdateVnicShapeDetailsVnicShapeMicroLbFixed0001E125g, + "VNICAAS_FIXED0200": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0200, + "VNICAAS_FIXED0400": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0400, + "VNICAAS_FIXED0700": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0700, + "VNICAAS_NLB_APPROVED_10G": UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved10g, + "VNICAAS_NLB_APPROVED_25G": UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved25g, + "VNICAAS_TELESIS_25G": UpdateVnicShapeDetailsVnicShapeVnicaasTelesis25g, + "VNICAAS_TELESIS_10G": UpdateVnicShapeDetailsVnicShapeVnicaasTelesis10g, + "VNICAAS_AMBASSADOR_FIXED0100": UpdateVnicShapeDetailsVnicShapeVnicaasAmbassadorFixed0100, + "VNICAAS_TELESIS_GAMMA": UpdateVnicShapeDetailsVnicShapeVnicaasTelesisGamma, + "VNICAAS_PRIVATEDNS": UpdateVnicShapeDetailsVnicShapeVnicaasPrivatedns, + "VNICAAS_FWAAS": UpdateVnicShapeDetailsVnicShapeVnicaasFwaas, + "VNICAAS_LBAAS_FREE": UpdateVnicShapeDetailsVnicShapeVnicaasLbaasFree, + "VNICAAS_LBAAS_8G_512K": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g512k, + "VNICAAS_LBAAS_8G_1M": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m, + "VNICAAS_LBAAS_8G_2M": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g2m, + "VNICAAS_LBAAS_8G_3M": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g3m, + "VNICAAS_LBAAS_8G_1M_8GHOST": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m8ghost, + "VNICAAS_LBAAS_8G_1M_16GHOST": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m16ghost, + "DYNAMIC_E3_50G": UpdateVnicShapeDetailsVnicShapeDynamicE350g, + "FIXED0040_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0040E350g, + "FIXED0100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0100E350g, + "FIXED0200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0200E350g, + "FIXED0300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0300E350g, + "FIXED0400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0400E350g, + "FIXED0500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0500E350g, + "FIXED0600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0600E350g, + "FIXED0700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0700E350g, + "FIXED0800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0800E350g, + "FIXED0900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed0900E350g, + "FIXED1000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1000E350g, + "FIXED1100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1100E350g, + "FIXED1200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1200E350g, + "FIXED1300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1300E350g, + "FIXED1400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1400E350g, + "FIXED1500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1500E350g, + "FIXED1600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1600E350g, + "FIXED1700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1700E350g, + "FIXED1800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1800E350g, + "FIXED1900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed1900E350g, + "FIXED2000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2000E350g, + "FIXED2100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2100E350g, + "FIXED2200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2200E350g, + "FIXED2300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2300E350g, + "FIXED2400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2400E350g, + "FIXED2500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2500E350g, + "FIXED2600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2600E350g, + "FIXED2700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2700E350g, + "FIXED2800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2800E350g, + "FIXED2900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed2900E350g, + "FIXED3000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3000E350g, + "FIXED3100_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3100E350g, + "FIXED3200_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3200E350g, + "FIXED3300_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3300E350g, + "FIXED3400_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3400E350g, + "FIXED3500_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3500E350g, + "FIXED3600_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3600E350g, + "FIXED3700_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3700E350g, + "FIXED3800_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3800E350g, + "FIXED3900_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed3900E350g, + "FIXED4000_E3_50G": UpdateVnicShapeDetailsVnicShapeFixed4000E350g, + "ENTIREHOST_E3_50G": UpdateVnicShapeDetailsVnicShapeEntirehostE350g, + "DYNAMIC_E4_50G": UpdateVnicShapeDetailsVnicShapeDynamicE450g, + "FIXED0040_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0040E450g, + "FIXED0100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0100E450g, + "FIXED0200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0200E450g, + "FIXED0300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0300E450g, + "FIXED0400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0400E450g, + "FIXED0500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0500E450g, + "FIXED0600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0600E450g, + "FIXED0700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0700E450g, + "FIXED0800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0800E450g, + "FIXED0900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed0900E450g, + "FIXED1000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1000E450g, + "FIXED1100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1100E450g, + "FIXED1200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1200E450g, + "FIXED1300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1300E450g, + "FIXED1400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1400E450g, + "FIXED1500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1500E450g, + "FIXED1600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1600E450g, + "FIXED1700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1700E450g, + "FIXED1800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1800E450g, + "FIXED1900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed1900E450g, + "FIXED2000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2000E450g, + "FIXED2100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2100E450g, + "FIXED2200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2200E450g, + "FIXED2300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2300E450g, + "FIXED2400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2400E450g, + "FIXED2500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2500E450g, + "FIXED2600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2600E450g, + "FIXED2700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2700E450g, + "FIXED2800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2800E450g, + "FIXED2900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed2900E450g, + "FIXED3000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3000E450g, + "FIXED3100_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3100E450g, + "FIXED3200_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3200E450g, + "FIXED3300_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3300E450g, + "FIXED3400_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3400E450g, + "FIXED3500_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3500E450g, + "FIXED3600_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3600E450g, + "FIXED3700_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3700E450g, + "FIXED3800_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3800E450g, + "FIXED3900_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed3900E450g, + "FIXED4000_E4_50G": UpdateVnicShapeDetailsVnicShapeFixed4000E450g, + "ENTIREHOST_E4_50G": UpdateVnicShapeDetailsVnicShapeEntirehostE450g, + "Micro_VM_Fixed0050_E3_50G": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E350g, + "Micro_VM_Fixed0050_E4_50G": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E450g, + "SUBCORE_VM_FIXED0025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E350g, + "SUBCORE_VM_FIXED0050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E350g, + "SUBCORE_VM_FIXED0075_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E350g, + "SUBCORE_VM_FIXED0100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E350g, + "SUBCORE_VM_FIXED0125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E350g, + "SUBCORE_VM_FIXED0150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E350g, + "SUBCORE_VM_FIXED0175_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E350g, + "SUBCORE_VM_FIXED0200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E350g, + "SUBCORE_VM_FIXED0225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E350g, + "SUBCORE_VM_FIXED0250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E350g, + "SUBCORE_VM_FIXED0275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E350g, + "SUBCORE_VM_FIXED0300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E350g, + "SUBCORE_VM_FIXED0325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E350g, + "SUBCORE_VM_FIXED0350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E350g, + "SUBCORE_VM_FIXED0375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E350g, + "SUBCORE_VM_FIXED0400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E350g, + "SUBCORE_VM_FIXED0425_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E350g, + "SUBCORE_VM_FIXED0450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E350g, + "SUBCORE_VM_FIXED0475_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E350g, + "SUBCORE_VM_FIXED0500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E350g, + "SUBCORE_VM_FIXED0525_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E350g, + "SUBCORE_VM_FIXED0550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E350g, + "SUBCORE_VM_FIXED0575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E350g, + "SUBCORE_VM_FIXED0600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E350g, + "SUBCORE_VM_FIXED0625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E350g, + "SUBCORE_VM_FIXED0650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E350g, + "SUBCORE_VM_FIXED0675_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E350g, + "SUBCORE_VM_FIXED0700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E350g, + "SUBCORE_VM_FIXED0725_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E350g, + "SUBCORE_VM_FIXED0750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E350g, + "SUBCORE_VM_FIXED0775_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E350g, + "SUBCORE_VM_FIXED0800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E350g, + "SUBCORE_VM_FIXED0825_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E350g, + "SUBCORE_VM_FIXED0850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E350g, + "SUBCORE_VM_FIXED0875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E350g, + "SUBCORE_VM_FIXED0900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E350g, + "SUBCORE_VM_FIXED0925_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E350g, + "SUBCORE_VM_FIXED0950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E350g, + "SUBCORE_VM_FIXED0975_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E350g, + "SUBCORE_VM_FIXED1000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E350g, + "SUBCORE_VM_FIXED1025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E350g, + "SUBCORE_VM_FIXED1050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E350g, + "SUBCORE_VM_FIXED1075_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E350g, + "SUBCORE_VM_FIXED1100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E350g, + "SUBCORE_VM_FIXED1125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E350g, + "SUBCORE_VM_FIXED1150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E350g, + "SUBCORE_VM_FIXED1175_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E350g, + "SUBCORE_VM_FIXED1200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E350g, + "SUBCORE_VM_FIXED1225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E350g, + "SUBCORE_VM_FIXED1250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E350g, + "SUBCORE_VM_FIXED1275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E350g, + "SUBCORE_VM_FIXED1300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E350g, + "SUBCORE_VM_FIXED1325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E350g, + "SUBCORE_VM_FIXED1350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E350g, + "SUBCORE_VM_FIXED1375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E350g, + "SUBCORE_VM_FIXED1400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E350g, + "SUBCORE_VM_FIXED1425_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E350g, + "SUBCORE_VM_FIXED1450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E350g, + "SUBCORE_VM_FIXED1475_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E350g, + "SUBCORE_VM_FIXED1500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E350g, + "SUBCORE_VM_FIXED1525_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E350g, + "SUBCORE_VM_FIXED1550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E350g, + "SUBCORE_VM_FIXED1575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E350g, + "SUBCORE_VM_FIXED1600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E350g, + "SUBCORE_VM_FIXED1625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E350g, + "SUBCORE_VM_FIXED1650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E350g, + "SUBCORE_VM_FIXED1700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E350g, + "SUBCORE_VM_FIXED1725_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E350g, + "SUBCORE_VM_FIXED1750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E350g, + "SUBCORE_VM_FIXED1800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E350g, + "SUBCORE_VM_FIXED1850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E350g, + "SUBCORE_VM_FIXED1875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E350g, + "SUBCORE_VM_FIXED1900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E350g, + "SUBCORE_VM_FIXED1925_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E350g, + "SUBCORE_VM_FIXED1950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E350g, + "SUBCORE_VM_FIXED2000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E350g, + "SUBCORE_VM_FIXED2025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E350g, + "SUBCORE_VM_FIXED2050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E350g, + "SUBCORE_VM_FIXED2100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E350g, + "SUBCORE_VM_FIXED2125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E350g, + "SUBCORE_VM_FIXED2150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E350g, + "SUBCORE_VM_FIXED2175_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E350g, + "SUBCORE_VM_FIXED2200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E350g, + "SUBCORE_VM_FIXED2250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E350g, + "SUBCORE_VM_FIXED2275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E350g, + "SUBCORE_VM_FIXED2300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E350g, + "SUBCORE_VM_FIXED2325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E350g, + "SUBCORE_VM_FIXED2350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E350g, + "SUBCORE_VM_FIXED2375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E350g, + "SUBCORE_VM_FIXED2400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E350g, + "SUBCORE_VM_FIXED2450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E350g, + "SUBCORE_VM_FIXED2475_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E350g, + "SUBCORE_VM_FIXED2500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E350g, + "SUBCORE_VM_FIXED2550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E350g, + "SUBCORE_VM_FIXED2600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E350g, + "SUBCORE_VM_FIXED2625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E350g, + "SUBCORE_VM_FIXED2650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E350g, + "SUBCORE_VM_FIXED2700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E350g, + "SUBCORE_VM_FIXED2750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E350g, + "SUBCORE_VM_FIXED2775_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E350g, + "SUBCORE_VM_FIXED2800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E350g, + "SUBCORE_VM_FIXED2850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E350g, + "SUBCORE_VM_FIXED2875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E350g, + "SUBCORE_VM_FIXED2900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E350g, + "SUBCORE_VM_FIXED2925_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E350g, + "SUBCORE_VM_FIXED2950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E350g, + "SUBCORE_VM_FIXED2975_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E350g, + "SUBCORE_VM_FIXED3000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E350g, + "SUBCORE_VM_FIXED3025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E350g, + "SUBCORE_VM_FIXED3050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E350g, + "SUBCORE_VM_FIXED3075_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E350g, + "SUBCORE_VM_FIXED3100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E350g, + "SUBCORE_VM_FIXED3125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E350g, + "SUBCORE_VM_FIXED3150_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E350g, + "SUBCORE_VM_FIXED3200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E350g, + "SUBCORE_VM_FIXED3225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E350g, + "SUBCORE_VM_FIXED3250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E350g, + "SUBCORE_VM_FIXED3300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E350g, + "SUBCORE_VM_FIXED3325_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E350g, + "SUBCORE_VM_FIXED3375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E350g, + "SUBCORE_VM_FIXED3400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E350g, + "SUBCORE_VM_FIXED3450_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E350g, + "SUBCORE_VM_FIXED3500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E350g, + "SUBCORE_VM_FIXED3525_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E350g, + "SUBCORE_VM_FIXED3575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E350g, + "SUBCORE_VM_FIXED3600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E350g, + "SUBCORE_VM_FIXED3625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E350g, + "SUBCORE_VM_FIXED3675_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E350g, + "SUBCORE_VM_FIXED3700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E350g, + "SUBCORE_VM_FIXED3750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E350g, + "SUBCORE_VM_FIXED3800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E350g, + "SUBCORE_VM_FIXED3825_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E350g, + "SUBCORE_VM_FIXED3850_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E350g, + "SUBCORE_VM_FIXED3875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E350g, + "SUBCORE_VM_FIXED3900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E350g, + "SUBCORE_VM_FIXED3975_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E350g, + "SUBCORE_VM_FIXED4000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E350g, + "SUBCORE_VM_FIXED4025_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E350g, + "SUBCORE_VM_FIXED4050_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E350g, + "SUBCORE_VM_FIXED4100_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E350g, + "SUBCORE_VM_FIXED4125_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E350g, + "SUBCORE_VM_FIXED4200_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E350g, + "SUBCORE_VM_FIXED4225_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E350g, + "SUBCORE_VM_FIXED4250_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E350g, + "SUBCORE_VM_FIXED4275_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E350g, + "SUBCORE_VM_FIXED4300_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E350g, + "SUBCORE_VM_FIXED4350_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E350g, + "SUBCORE_VM_FIXED4375_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E350g, + "SUBCORE_VM_FIXED4400_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E350g, + "SUBCORE_VM_FIXED4425_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E350g, + "SUBCORE_VM_FIXED4500_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E350g, + "SUBCORE_VM_FIXED4550_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E350g, + "SUBCORE_VM_FIXED4575_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E350g, + "SUBCORE_VM_FIXED4600_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E350g, + "SUBCORE_VM_FIXED4625_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E350g, + "SUBCORE_VM_FIXED4650_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E350g, + "SUBCORE_VM_FIXED4675_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E350g, + "SUBCORE_VM_FIXED4700_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E350g, + "SUBCORE_VM_FIXED4725_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E350g, + "SUBCORE_VM_FIXED4750_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E350g, + "SUBCORE_VM_FIXED4800_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E350g, + "SUBCORE_VM_FIXED4875_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E350g, + "SUBCORE_VM_FIXED4900_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E350g, + "SUBCORE_VM_FIXED4950_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E350g, + "SUBCORE_VM_FIXED5000_E3_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E350g, + "SUBCORE_VM_FIXED0025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E450g, + "SUBCORE_VM_FIXED0050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E450g, + "SUBCORE_VM_FIXED0075_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E450g, + "SUBCORE_VM_FIXED0100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E450g, + "SUBCORE_VM_FIXED0125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E450g, + "SUBCORE_VM_FIXED0150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E450g, + "SUBCORE_VM_FIXED0175_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E450g, + "SUBCORE_VM_FIXED0200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E450g, + "SUBCORE_VM_FIXED0225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E450g, + "SUBCORE_VM_FIXED0250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E450g, + "SUBCORE_VM_FIXED0275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E450g, + "SUBCORE_VM_FIXED0300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E450g, + "SUBCORE_VM_FIXED0325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E450g, + "SUBCORE_VM_FIXED0350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E450g, + "SUBCORE_VM_FIXED0375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E450g, + "SUBCORE_VM_FIXED0400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E450g, + "SUBCORE_VM_FIXED0425_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E450g, + "SUBCORE_VM_FIXED0450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E450g, + "SUBCORE_VM_FIXED0475_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E450g, + "SUBCORE_VM_FIXED0500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E450g, + "SUBCORE_VM_FIXED0525_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E450g, + "SUBCORE_VM_FIXED0550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E450g, + "SUBCORE_VM_FIXED0575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E450g, + "SUBCORE_VM_FIXED0600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E450g, + "SUBCORE_VM_FIXED0625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E450g, + "SUBCORE_VM_FIXED0650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E450g, + "SUBCORE_VM_FIXED0675_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E450g, + "SUBCORE_VM_FIXED0700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E450g, + "SUBCORE_VM_FIXED0725_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E450g, + "SUBCORE_VM_FIXED0750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E450g, + "SUBCORE_VM_FIXED0775_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E450g, + "SUBCORE_VM_FIXED0800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E450g, + "SUBCORE_VM_FIXED0825_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E450g, + "SUBCORE_VM_FIXED0850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E450g, + "SUBCORE_VM_FIXED0875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E450g, + "SUBCORE_VM_FIXED0900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E450g, + "SUBCORE_VM_FIXED0925_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E450g, + "SUBCORE_VM_FIXED0950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E450g, + "SUBCORE_VM_FIXED0975_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E450g, + "SUBCORE_VM_FIXED1000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E450g, + "SUBCORE_VM_FIXED1025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E450g, + "SUBCORE_VM_FIXED1050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E450g, + "SUBCORE_VM_FIXED1075_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E450g, + "SUBCORE_VM_FIXED1100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E450g, + "SUBCORE_VM_FIXED1125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E450g, + "SUBCORE_VM_FIXED1150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E450g, + "SUBCORE_VM_FIXED1175_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E450g, + "SUBCORE_VM_FIXED1200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E450g, + "SUBCORE_VM_FIXED1225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E450g, + "SUBCORE_VM_FIXED1250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E450g, + "SUBCORE_VM_FIXED1275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E450g, + "SUBCORE_VM_FIXED1300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E450g, + "SUBCORE_VM_FIXED1325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E450g, + "SUBCORE_VM_FIXED1350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E450g, + "SUBCORE_VM_FIXED1375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E450g, + "SUBCORE_VM_FIXED1400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E450g, + "SUBCORE_VM_FIXED1425_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E450g, + "SUBCORE_VM_FIXED1450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E450g, + "SUBCORE_VM_FIXED1475_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E450g, + "SUBCORE_VM_FIXED1500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E450g, + "SUBCORE_VM_FIXED1525_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E450g, + "SUBCORE_VM_FIXED1550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E450g, + "SUBCORE_VM_FIXED1575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E450g, + "SUBCORE_VM_FIXED1600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E450g, + "SUBCORE_VM_FIXED1625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E450g, + "SUBCORE_VM_FIXED1650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E450g, + "SUBCORE_VM_FIXED1700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E450g, + "SUBCORE_VM_FIXED1725_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E450g, + "SUBCORE_VM_FIXED1750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E450g, + "SUBCORE_VM_FIXED1800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E450g, + "SUBCORE_VM_FIXED1850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E450g, + "SUBCORE_VM_FIXED1875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E450g, + "SUBCORE_VM_FIXED1900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E450g, + "SUBCORE_VM_FIXED1925_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E450g, + "SUBCORE_VM_FIXED1950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E450g, + "SUBCORE_VM_FIXED2000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E450g, + "SUBCORE_VM_FIXED2025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E450g, + "SUBCORE_VM_FIXED2050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E450g, + "SUBCORE_VM_FIXED2100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E450g, + "SUBCORE_VM_FIXED2125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E450g, + "SUBCORE_VM_FIXED2150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E450g, + "SUBCORE_VM_FIXED2175_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E450g, + "SUBCORE_VM_FIXED2200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E450g, + "SUBCORE_VM_FIXED2250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E450g, + "SUBCORE_VM_FIXED2275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E450g, + "SUBCORE_VM_FIXED2300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E450g, + "SUBCORE_VM_FIXED2325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E450g, + "SUBCORE_VM_FIXED2350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E450g, + "SUBCORE_VM_FIXED2375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E450g, + "SUBCORE_VM_FIXED2400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E450g, + "SUBCORE_VM_FIXED2450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E450g, + "SUBCORE_VM_FIXED2475_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E450g, + "SUBCORE_VM_FIXED2500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E450g, + "SUBCORE_VM_FIXED2550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E450g, + "SUBCORE_VM_FIXED2600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E450g, + "SUBCORE_VM_FIXED2625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E450g, + "SUBCORE_VM_FIXED2650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E450g, + "SUBCORE_VM_FIXED2700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E450g, + "SUBCORE_VM_FIXED2750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E450g, + "SUBCORE_VM_FIXED2775_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E450g, + "SUBCORE_VM_FIXED2800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E450g, + "SUBCORE_VM_FIXED2850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E450g, + "SUBCORE_VM_FIXED2875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E450g, + "SUBCORE_VM_FIXED2900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E450g, + "SUBCORE_VM_FIXED2925_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E450g, + "SUBCORE_VM_FIXED2950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E450g, + "SUBCORE_VM_FIXED2975_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E450g, + "SUBCORE_VM_FIXED3000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E450g, + "SUBCORE_VM_FIXED3025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E450g, + "SUBCORE_VM_FIXED3050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E450g, + "SUBCORE_VM_FIXED3075_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E450g, + "SUBCORE_VM_FIXED3100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E450g, + "SUBCORE_VM_FIXED3125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E450g, + "SUBCORE_VM_FIXED3150_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E450g, + "SUBCORE_VM_FIXED3200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E450g, + "SUBCORE_VM_FIXED3225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E450g, + "SUBCORE_VM_FIXED3250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E450g, + "SUBCORE_VM_FIXED3300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E450g, + "SUBCORE_VM_FIXED3325_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E450g, + "SUBCORE_VM_FIXED3375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E450g, + "SUBCORE_VM_FIXED3400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E450g, + "SUBCORE_VM_FIXED3450_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E450g, + "SUBCORE_VM_FIXED3500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E450g, + "SUBCORE_VM_FIXED3525_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E450g, + "SUBCORE_VM_FIXED3575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E450g, + "SUBCORE_VM_FIXED3600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E450g, + "SUBCORE_VM_FIXED3625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E450g, + "SUBCORE_VM_FIXED3675_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E450g, + "SUBCORE_VM_FIXED3700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E450g, + "SUBCORE_VM_FIXED3750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E450g, + "SUBCORE_VM_FIXED3800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E450g, + "SUBCORE_VM_FIXED3825_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E450g, + "SUBCORE_VM_FIXED3850_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E450g, + "SUBCORE_VM_FIXED3875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E450g, + "SUBCORE_VM_FIXED3900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E450g, + "SUBCORE_VM_FIXED3975_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E450g, + "SUBCORE_VM_FIXED4000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E450g, + "SUBCORE_VM_FIXED4025_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E450g, + "SUBCORE_VM_FIXED4050_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E450g, + "SUBCORE_VM_FIXED4100_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E450g, + "SUBCORE_VM_FIXED4125_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E450g, + "SUBCORE_VM_FIXED4200_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E450g, + "SUBCORE_VM_FIXED4225_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E450g, + "SUBCORE_VM_FIXED4250_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E450g, + "SUBCORE_VM_FIXED4275_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E450g, + "SUBCORE_VM_FIXED4300_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E450g, + "SUBCORE_VM_FIXED4350_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E450g, + "SUBCORE_VM_FIXED4375_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E450g, + "SUBCORE_VM_FIXED4400_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E450g, + "SUBCORE_VM_FIXED4425_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E450g, + "SUBCORE_VM_FIXED4500_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E450g, + "SUBCORE_VM_FIXED4550_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E450g, + "SUBCORE_VM_FIXED4575_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E450g, + "SUBCORE_VM_FIXED4600_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E450g, + "SUBCORE_VM_FIXED4625_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E450g, + "SUBCORE_VM_FIXED4650_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E450g, + "SUBCORE_VM_FIXED4675_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E450g, + "SUBCORE_VM_FIXED4700_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E450g, + "SUBCORE_VM_FIXED4725_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E450g, + "SUBCORE_VM_FIXED4750_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E450g, + "SUBCORE_VM_FIXED4800_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E450g, + "SUBCORE_VM_FIXED4875_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E450g, + "SUBCORE_VM_FIXED4900_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E450g, + "SUBCORE_VM_FIXED4950_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E450g, + "SUBCORE_VM_FIXED5000_E4_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E450g, + "SUBCORE_VM_FIXED0020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0020A150g, + "SUBCORE_VM_FIXED0040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0040A150g, + "SUBCORE_VM_FIXED0060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0060A150g, + "SUBCORE_VM_FIXED0080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0080A150g, + "SUBCORE_VM_FIXED0100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100A150g, + "SUBCORE_VM_FIXED0120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0120A150g, + "SUBCORE_VM_FIXED0140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0140A150g, + "SUBCORE_VM_FIXED0160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0160A150g, + "SUBCORE_VM_FIXED0180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180A150g, + "SUBCORE_VM_FIXED0200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200A150g, + "SUBCORE_VM_FIXED0220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0220A150g, + "SUBCORE_VM_FIXED0240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0240A150g, + "SUBCORE_VM_FIXED0260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0260A150g, + "SUBCORE_VM_FIXED0280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0280A150g, + "SUBCORE_VM_FIXED0300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300A150g, + "SUBCORE_VM_FIXED0320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0320A150g, + "SUBCORE_VM_FIXED0340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0340A150g, + "SUBCORE_VM_FIXED0360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360A150g, + "SUBCORE_VM_FIXED0380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0380A150g, + "SUBCORE_VM_FIXED0400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400A150g, + "SUBCORE_VM_FIXED0420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0420A150g, + "SUBCORE_VM_FIXED0440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0440A150g, + "SUBCORE_VM_FIXED0460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0460A150g, + "SUBCORE_VM_FIXED0480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0480A150g, + "SUBCORE_VM_FIXED0500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500A150g, + "SUBCORE_VM_FIXED0520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0520A150g, + "SUBCORE_VM_FIXED0540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540A150g, + "SUBCORE_VM_FIXED0560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0560A150g, + "SUBCORE_VM_FIXED0580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0580A150g, + "SUBCORE_VM_FIXED0600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600A150g, + "SUBCORE_VM_FIXED0620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0620A150g, + "SUBCORE_VM_FIXED0640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0640A150g, + "SUBCORE_VM_FIXED0660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0660A150g, + "SUBCORE_VM_FIXED0680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0680A150g, + "SUBCORE_VM_FIXED0700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700A150g, + "SUBCORE_VM_FIXED0720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720A150g, + "SUBCORE_VM_FIXED0740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0740A150g, + "SUBCORE_VM_FIXED0760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0760A150g, + "SUBCORE_VM_FIXED0780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0780A150g, + "SUBCORE_VM_FIXED0800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800A150g, + "SUBCORE_VM_FIXED0820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0820A150g, + "SUBCORE_VM_FIXED0840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0840A150g, + "SUBCORE_VM_FIXED0860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0860A150g, + "SUBCORE_VM_FIXED0880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0880A150g, + "SUBCORE_VM_FIXED0900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900A150g, + "SUBCORE_VM_FIXED0920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0920A150g, + "SUBCORE_VM_FIXED0940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0940A150g, + "SUBCORE_VM_FIXED0960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0960A150g, + "SUBCORE_VM_FIXED0980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0980A150g, + "SUBCORE_VM_FIXED1000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000A150g, + "SUBCORE_VM_FIXED1020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1020A150g, + "SUBCORE_VM_FIXED1040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1040A150g, + "SUBCORE_VM_FIXED1060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1060A150g, + "SUBCORE_VM_FIXED1080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080A150g, + "SUBCORE_VM_FIXED1100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100A150g, + "SUBCORE_VM_FIXED1120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1120A150g, + "SUBCORE_VM_FIXED1140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1140A150g, + "SUBCORE_VM_FIXED1160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1160A150g, + "SUBCORE_VM_FIXED1180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1180A150g, + "SUBCORE_VM_FIXED1200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200A150g, + "SUBCORE_VM_FIXED1220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1220A150g, + "SUBCORE_VM_FIXED1240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1240A150g, + "SUBCORE_VM_FIXED1260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260A150g, + "SUBCORE_VM_FIXED1280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1280A150g, + "SUBCORE_VM_FIXED1300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300A150g, + "SUBCORE_VM_FIXED1320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1320A150g, + "SUBCORE_VM_FIXED1340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1340A150g, + "SUBCORE_VM_FIXED1360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1360A150g, + "SUBCORE_VM_FIXED1380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1380A150g, + "SUBCORE_VM_FIXED1400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400A150g, + "SUBCORE_VM_FIXED1420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1420A150g, + "SUBCORE_VM_FIXED1440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440A150g, + "SUBCORE_VM_FIXED1460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1460A150g, + "SUBCORE_VM_FIXED1480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1480A150g, + "SUBCORE_VM_FIXED1500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500A150g, + "SUBCORE_VM_FIXED1520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1520A150g, + "SUBCORE_VM_FIXED1540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1540A150g, + "SUBCORE_VM_FIXED1560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1560A150g, + "SUBCORE_VM_FIXED1580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1580A150g, + "SUBCORE_VM_FIXED1600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600A150g, + "SUBCORE_VM_FIXED1620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620A150g, + "SUBCORE_VM_FIXED1640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1640A150g, + "SUBCORE_VM_FIXED1660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1660A150g, + "SUBCORE_VM_FIXED1680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1680A150g, + "SUBCORE_VM_FIXED1700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700A150g, + "SUBCORE_VM_FIXED1720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1720A150g, + "SUBCORE_VM_FIXED1740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1740A150g, + "SUBCORE_VM_FIXED1760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1760A150g, + "SUBCORE_VM_FIXED1780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1780A150g, + "SUBCORE_VM_FIXED1800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800A150g, + "SUBCORE_VM_FIXED1820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1820A150g, + "SUBCORE_VM_FIXED1840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1840A150g, + "SUBCORE_VM_FIXED1860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1860A150g, + "SUBCORE_VM_FIXED1880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1880A150g, + "SUBCORE_VM_FIXED1900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900A150g, + "SUBCORE_VM_FIXED1920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1920A150g, + "SUBCORE_VM_FIXED1940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1940A150g, + "SUBCORE_VM_FIXED1960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1960A150g, + "SUBCORE_VM_FIXED1980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980A150g, + "SUBCORE_VM_FIXED2000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000A150g, + "SUBCORE_VM_FIXED2020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2020A150g, + "SUBCORE_VM_FIXED2040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2040A150g, + "SUBCORE_VM_FIXED2060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2060A150g, + "SUBCORE_VM_FIXED2080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2080A150g, + "SUBCORE_VM_FIXED2100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100A150g, + "SUBCORE_VM_FIXED2120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2120A150g, + "SUBCORE_VM_FIXED2140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2140A150g, + "SUBCORE_VM_FIXED2160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160A150g, + "SUBCORE_VM_FIXED2180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2180A150g, + "SUBCORE_VM_FIXED2200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200A150g, + "SUBCORE_VM_FIXED2220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2220A150g, + "SUBCORE_VM_FIXED2240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2240A150g, + "SUBCORE_VM_FIXED2260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2260A150g, + "SUBCORE_VM_FIXED2280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2280A150g, + "SUBCORE_VM_FIXED2300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300A150g, + "SUBCORE_VM_FIXED2320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2320A150g, + "SUBCORE_VM_FIXED2340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340A150g, + "SUBCORE_VM_FIXED2360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2360A150g, + "SUBCORE_VM_FIXED2380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2380A150g, + "SUBCORE_VM_FIXED2400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400A150g, + "SUBCORE_VM_FIXED2420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2420A150g, + "SUBCORE_VM_FIXED2440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2440A150g, + "SUBCORE_VM_FIXED2460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2460A150g, + "SUBCORE_VM_FIXED2480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2480A150g, + "SUBCORE_VM_FIXED2500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500A150g, + "SUBCORE_VM_FIXED2520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520A150g, + "SUBCORE_VM_FIXED2540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2540A150g, + "SUBCORE_VM_FIXED2560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2560A150g, + "SUBCORE_VM_FIXED2580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2580A150g, + "SUBCORE_VM_FIXED2600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600A150g, + "SUBCORE_VM_FIXED2620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2620A150g, + "SUBCORE_VM_FIXED2640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2640A150g, + "SUBCORE_VM_FIXED2660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2660A150g, + "SUBCORE_VM_FIXED2680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2680A150g, + "SUBCORE_VM_FIXED2700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700A150g, + "SUBCORE_VM_FIXED2720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2720A150g, + "SUBCORE_VM_FIXED2740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2740A150g, + "SUBCORE_VM_FIXED2760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2760A150g, + "SUBCORE_VM_FIXED2780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2780A150g, + "SUBCORE_VM_FIXED2800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800A150g, + "SUBCORE_VM_FIXED2820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2820A150g, + "SUBCORE_VM_FIXED2840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2840A150g, + "SUBCORE_VM_FIXED2860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2860A150g, + "SUBCORE_VM_FIXED2880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880A150g, + "SUBCORE_VM_FIXED2900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900A150g, + "SUBCORE_VM_FIXED2920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2920A150g, + "SUBCORE_VM_FIXED2940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2940A150g, + "SUBCORE_VM_FIXED2960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2960A150g, + "SUBCORE_VM_FIXED2980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2980A150g, + "SUBCORE_VM_FIXED3000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000A150g, + "SUBCORE_VM_FIXED3020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3020A150g, + "SUBCORE_VM_FIXED3040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3040A150g, + "SUBCORE_VM_FIXED3060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060A150g, + "SUBCORE_VM_FIXED3080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3080A150g, + "SUBCORE_VM_FIXED3100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100A150g, + "SUBCORE_VM_FIXED3120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3120A150g, + "SUBCORE_VM_FIXED3140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3140A150g, + "SUBCORE_VM_FIXED3160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3160A150g, + "SUBCORE_VM_FIXED3180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3180A150g, + "SUBCORE_VM_FIXED3200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200A150g, + "SUBCORE_VM_FIXED3220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3220A150g, + "SUBCORE_VM_FIXED3240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240A150g, + "SUBCORE_VM_FIXED3260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3260A150g, + "SUBCORE_VM_FIXED3280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3280A150g, + "SUBCORE_VM_FIXED3300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300A150g, + "SUBCORE_VM_FIXED3320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3320A150g, + "SUBCORE_VM_FIXED3340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3340A150g, + "SUBCORE_VM_FIXED3360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3360A150g, + "SUBCORE_VM_FIXED3380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3380A150g, + "SUBCORE_VM_FIXED3400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400A150g, + "SUBCORE_VM_FIXED3420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420A150g, + "SUBCORE_VM_FIXED3440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3440A150g, + "SUBCORE_VM_FIXED3460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3460A150g, + "SUBCORE_VM_FIXED3480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3480A150g, + "SUBCORE_VM_FIXED3500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500A150g, + "SUBCORE_VM_FIXED3520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3520A150g, + "SUBCORE_VM_FIXED3540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3540A150g, + "SUBCORE_VM_FIXED3560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3560A150g, + "SUBCORE_VM_FIXED3580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3580A150g, + "SUBCORE_VM_FIXED3600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600A150g, + "SUBCORE_VM_FIXED3620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3620A150g, + "SUBCORE_VM_FIXED3640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3640A150g, + "SUBCORE_VM_FIXED3660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3660A150g, + "SUBCORE_VM_FIXED3680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3680A150g, + "SUBCORE_VM_FIXED3700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700A150g, + "SUBCORE_VM_FIXED3720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3720A150g, + "SUBCORE_VM_FIXED3740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3740A150g, + "SUBCORE_VM_FIXED3760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3760A150g, + "SUBCORE_VM_FIXED3780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780A150g, + "SUBCORE_VM_FIXED3800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800A150g, + "SUBCORE_VM_FIXED3820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3820A150g, + "SUBCORE_VM_FIXED3840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3840A150g, + "SUBCORE_VM_FIXED3860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3860A150g, + "SUBCORE_VM_FIXED3880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3880A150g, + "SUBCORE_VM_FIXED3900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900A150g, + "SUBCORE_VM_FIXED3920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3920A150g, + "SUBCORE_VM_FIXED3940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3940A150g, + "SUBCORE_VM_FIXED3960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960A150g, + "SUBCORE_VM_FIXED3980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3980A150g, + "SUBCORE_VM_FIXED4000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000A150g, + "SUBCORE_VM_FIXED4020_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4020A150g, + "SUBCORE_VM_FIXED4040_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4040A150g, + "SUBCORE_VM_FIXED4060_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4060A150g, + "SUBCORE_VM_FIXED4080_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4080A150g, + "SUBCORE_VM_FIXED4100_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100A150g, + "SUBCORE_VM_FIXED4120_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4120A150g, + "SUBCORE_VM_FIXED4140_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140A150g, + "SUBCORE_VM_FIXED4160_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4160A150g, + "SUBCORE_VM_FIXED4180_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4180A150g, + "SUBCORE_VM_FIXED4200_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200A150g, + "SUBCORE_VM_FIXED4220_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4220A150g, + "SUBCORE_VM_FIXED4240_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4240A150g, + "SUBCORE_VM_FIXED4260_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4260A150g, + "SUBCORE_VM_FIXED4280_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4280A150g, + "SUBCORE_VM_FIXED4300_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300A150g, + "SUBCORE_VM_FIXED4320_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320A150g, + "SUBCORE_VM_FIXED4340_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4340A150g, + "SUBCORE_VM_FIXED4360_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4360A150g, + "SUBCORE_VM_FIXED4380_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4380A150g, + "SUBCORE_VM_FIXED4400_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400A150g, + "SUBCORE_VM_FIXED4420_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4420A150g, + "SUBCORE_VM_FIXED4440_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4440A150g, + "SUBCORE_VM_FIXED4460_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4460A150g, + "SUBCORE_VM_FIXED4480_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4480A150g, + "SUBCORE_VM_FIXED4500_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500A150g, + "SUBCORE_VM_FIXED4520_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4520A150g, + "SUBCORE_VM_FIXED4540_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4540A150g, + "SUBCORE_VM_FIXED4560_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4560A150g, + "SUBCORE_VM_FIXED4580_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4580A150g, + "SUBCORE_VM_FIXED4600_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600A150g, + "SUBCORE_VM_FIXED4620_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4620A150g, + "SUBCORE_VM_FIXED4640_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4640A150g, + "SUBCORE_VM_FIXED4660_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4660A150g, + "SUBCORE_VM_FIXED4680_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680A150g, + "SUBCORE_VM_FIXED4700_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700A150g, + "SUBCORE_VM_FIXED4720_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4720A150g, + "SUBCORE_VM_FIXED4740_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4740A150g, + "SUBCORE_VM_FIXED4760_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4760A150g, + "SUBCORE_VM_FIXED4780_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4780A150g, + "SUBCORE_VM_FIXED4800_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800A150g, + "SUBCORE_VM_FIXED4820_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4820A150g, + "SUBCORE_VM_FIXED4840_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4840A150g, + "SUBCORE_VM_FIXED4860_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860A150g, + "SUBCORE_VM_FIXED4880_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4880A150g, + "SUBCORE_VM_FIXED4900_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900A150g, + "SUBCORE_VM_FIXED4920_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4920A150g, + "SUBCORE_VM_FIXED4940_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4940A150g, + "SUBCORE_VM_FIXED4960_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4960A150g, + "SUBCORE_VM_FIXED4980_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4980A150g, + "SUBCORE_VM_FIXED5000_A1_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000A150g, + "SUBCORE_VM_FIXED0090_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0090X950g, + "SUBCORE_VM_FIXED0180_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180X950g, + "SUBCORE_VM_FIXED0270_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0270X950g, + "SUBCORE_VM_FIXED0360_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360X950g, + "SUBCORE_VM_FIXED0450_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450X950g, + "SUBCORE_VM_FIXED0540_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540X950g, + "SUBCORE_VM_FIXED0630_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0630X950g, + "SUBCORE_VM_FIXED0720_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720X950g, + "SUBCORE_VM_FIXED0810_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0810X950g, + "SUBCORE_VM_FIXED0900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900X950g, + "SUBCORE_VM_FIXED0990_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0990X950g, + "SUBCORE_VM_FIXED1080_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080X950g, + "SUBCORE_VM_FIXED1170_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1170X950g, + "SUBCORE_VM_FIXED1260_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260X950g, + "SUBCORE_VM_FIXED1350_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350X950g, + "SUBCORE_VM_FIXED1440_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440X950g, + "SUBCORE_VM_FIXED1530_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1530X950g, + "SUBCORE_VM_FIXED1620_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620X950g, + "SUBCORE_VM_FIXED1710_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1710X950g, + "SUBCORE_VM_FIXED1800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800X950g, + "SUBCORE_VM_FIXED1890_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1890X950g, + "SUBCORE_VM_FIXED1980_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980X950g, + "SUBCORE_VM_FIXED2070_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2070X950g, + "SUBCORE_VM_FIXED2160_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160X950g, + "SUBCORE_VM_FIXED2250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250X950g, + "SUBCORE_VM_FIXED2340_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340X950g, + "SUBCORE_VM_FIXED2430_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2430X950g, + "SUBCORE_VM_FIXED2520_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520X950g, + "SUBCORE_VM_FIXED2610_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2610X950g, + "SUBCORE_VM_FIXED2700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700X950g, + "SUBCORE_VM_FIXED2790_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2790X950g, + "SUBCORE_VM_FIXED2880_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880X950g, + "SUBCORE_VM_FIXED2970_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2970X950g, + "SUBCORE_VM_FIXED3060_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060X950g, + "SUBCORE_VM_FIXED3150_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150X950g, + "SUBCORE_VM_FIXED3240_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240X950g, + "SUBCORE_VM_FIXED3330_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3330X950g, + "SUBCORE_VM_FIXED3420_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420X950g, + "SUBCORE_VM_FIXED3510_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3510X950g, + "SUBCORE_VM_FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600X950g, + "SUBCORE_VM_FIXED3690_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3690X950g, + "SUBCORE_VM_FIXED3780_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780X950g, + "SUBCORE_VM_FIXED3870_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3870X950g, + "SUBCORE_VM_FIXED3960_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960X950g, + "SUBCORE_VM_FIXED4050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050X950g, + "SUBCORE_VM_FIXED4140_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140X950g, + "SUBCORE_VM_FIXED4230_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4230X950g, + "SUBCORE_VM_FIXED4320_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320X950g, + "SUBCORE_VM_FIXED4410_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4410X950g, + "SUBCORE_VM_FIXED4500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500X950g, + "SUBCORE_VM_FIXED4590_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4590X950g, + "SUBCORE_VM_FIXED4680_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680X950g, + "SUBCORE_VM_FIXED4770_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4770X950g, + "SUBCORE_VM_FIXED4860_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860X950g, + "SUBCORE_VM_FIXED4950_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950X950g, + "DYNAMIC_A1_50G": UpdateVnicShapeDetailsVnicShapeDynamicA150g, + "FIXED0040_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0040A150g, + "FIXED0100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0100A150g, + "FIXED0200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0200A150g, + "FIXED0300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0300A150g, + "FIXED0400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0400A150g, + "FIXED0500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0500A150g, + "FIXED0600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0600A150g, + "FIXED0700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0700A150g, + "FIXED0800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0800A150g, + "FIXED0900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed0900A150g, + "FIXED1000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1000A150g, + "FIXED1100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1100A150g, + "FIXED1200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1200A150g, + "FIXED1300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1300A150g, + "FIXED1400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1400A150g, + "FIXED1500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1500A150g, + "FIXED1600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1600A150g, + "FIXED1700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1700A150g, + "FIXED1800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1800A150g, + "FIXED1900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed1900A150g, + "FIXED2000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2000A150g, + "FIXED2100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2100A150g, + "FIXED2200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2200A150g, + "FIXED2300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2300A150g, + "FIXED2400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2400A150g, + "FIXED2500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2500A150g, + "FIXED2600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2600A150g, + "FIXED2700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2700A150g, + "FIXED2800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2800A150g, + "FIXED2900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed2900A150g, + "FIXED3000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3000A150g, + "FIXED3100_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3100A150g, + "FIXED3200_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3200A150g, + "FIXED3300_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3300A150g, + "FIXED3400_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3400A150g, + "FIXED3500_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3500A150g, + "FIXED3600_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3600A150g, + "FIXED3700_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3700A150g, + "FIXED3800_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3800A150g, + "FIXED3900_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed3900A150g, + "FIXED4000_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed4000A150g, + "FIXED5000_TELESIS_A1_50G": UpdateVnicShapeDetailsVnicShapeFixed5000TelesisA150g, + "ENTIREHOST_A1_50G": UpdateVnicShapeDetailsVnicShapeEntirehostA150g, + "DYNAMIC_X9_50G": UpdateVnicShapeDetailsVnicShapeDynamicX950g, + "FIXED0040_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed0040X950g, + "FIXED0400_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed0400X950g, + "FIXED0800_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed0800X950g, + "FIXED1200_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed1200X950g, + "FIXED1600_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed1600X950g, + "FIXED2000_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed2000X950g, + "FIXED2400_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed2400X950g, + "FIXED2800_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed2800X950g, + "FIXED3200_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed3200X950g, + "FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed3600X950g, + "FIXED4000_X9_50G": UpdateVnicShapeDetailsVnicShapeFixed4000X950g, + "STANDARD_VM_FIXED0100_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0100X950g, + "STANDARD_VM_FIXED0200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0200X950g, + "STANDARD_VM_FIXED0300_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0300X950g, + "STANDARD_VM_FIXED0400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0400X950g, + "STANDARD_VM_FIXED0500_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0500X950g, + "STANDARD_VM_FIXED0600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0600X950g, + "STANDARD_VM_FIXED0700_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0700X950g, + "STANDARD_VM_FIXED0800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0800X950g, + "STANDARD_VM_FIXED0900_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0900X950g, + "STANDARD_VM_FIXED1000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1000X950g, + "STANDARD_VM_FIXED1100_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1100X950g, + "STANDARD_VM_FIXED1200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1200X950g, + "STANDARD_VM_FIXED1300_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1300X950g, + "STANDARD_VM_FIXED1400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1400X950g, + "STANDARD_VM_FIXED1500_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1500X950g, + "STANDARD_VM_FIXED1600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1600X950g, + "STANDARD_VM_FIXED1700_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1700X950g, + "STANDARD_VM_FIXED1800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1800X950g, + "STANDARD_VM_FIXED1900_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1900X950g, + "STANDARD_VM_FIXED2000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2000X950g, + "STANDARD_VM_FIXED2100_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2100X950g, + "STANDARD_VM_FIXED2200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2200X950g, + "STANDARD_VM_FIXED2300_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2300X950g, + "STANDARD_VM_FIXED2400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2400X950g, + "STANDARD_VM_FIXED2500_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2500X950g, + "STANDARD_VM_FIXED2600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2600X950g, + "STANDARD_VM_FIXED2700_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2700X950g, + "STANDARD_VM_FIXED2800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2800X950g, + "STANDARD_VM_FIXED2900_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2900X950g, + "STANDARD_VM_FIXED3000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3000X950g, + "STANDARD_VM_FIXED3100_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3100X950g, + "STANDARD_VM_FIXED3200_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3200X950g, + "STANDARD_VM_FIXED3300_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3300X950g, + "STANDARD_VM_FIXED3400_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3400X950g, + "STANDARD_VM_FIXED3500_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3500X950g, + "STANDARD_VM_FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3600X950g, + "STANDARD_VM_FIXED3700_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3700X950g, + "STANDARD_VM_FIXED3800_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3800X950g, + "STANDARD_VM_FIXED3900_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3900X950g, + "STANDARD_VM_FIXED4000_X9_50G": UpdateVnicShapeDetailsVnicShapeStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0025X950g, + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0050X950g, + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0075X950g, + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0100X950g, + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0125X950g, + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0150X950g, + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0175X950g, + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0200X950g, + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0225X950g, + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0250X950g, + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0275X950g, + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0300X950g, + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0325X950g, + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0350X950g, + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0375X950g, + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0400X950g, + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0425X950g, + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0450X950g, + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0475X950g, + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0500X950g, + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0525X950g, + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0550X950g, + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0575X950g, + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0600X950g, + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0625X950g, + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0650X950g, + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0675X950g, + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0700X950g, + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0725X950g, + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0750X950g, + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0775X950g, + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0800X950g, + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0825X950g, + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0850X950g, + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0875X950g, + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0900X950g, + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0925X950g, + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0950X950g, + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0975X950g, + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1000X950g, + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1025X950g, + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1050X950g, + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1075X950g, + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1100X950g, + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1125X950g, + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1150X950g, + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1175X950g, + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1200X950g, + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1225X950g, + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1250X950g, + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1275X950g, + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1300X950g, + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1325X950g, + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1350X950g, + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1375X950g, + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1400X950g, + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1425X950g, + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1450X950g, + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1475X950g, + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1500X950g, + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1525X950g, + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1550X950g, + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1575X950g, + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1600X950g, + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1625X950g, + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1650X950g, + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1700X950g, + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1725X950g, + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1750X950g, + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1800X950g, + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1850X950g, + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1875X950g, + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1900X950g, + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1925X950g, + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1950X950g, + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2000X950g, + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2025X950g, + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2050X950g, + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2100X950g, + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2125X950g, + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2150X950g, + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2175X950g, + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2200X950g, + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2250X950g, + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2275X950g, + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2300X950g, + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2325X950g, + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2350X950g, + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2375X950g, + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2400X950g, + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2450X950g, + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2475X950g, + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2500X950g, + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2550X950g, + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2600X950g, + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2625X950g, + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2650X950g, + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2700X950g, + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2750X950g, + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2775X950g, + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2800X950g, + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2850X950g, + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2875X950g, + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2900X950g, + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2925X950g, + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2950X950g, + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2975X950g, + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3000X950g, + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3025X950g, + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3050X950g, + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3075X950g, + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3100X950g, + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3125X950g, + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3150X950g, + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3200X950g, + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3225X950g, + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3250X950g, + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3300X950g, + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3325X950g, + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3375X950g, + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3400X950g, + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3450X950g, + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3500X950g, + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3525X950g, + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3575X950g, + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3600X950g, + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3625X950g, + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3675X950g, + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3700X950g, + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3750X950g, + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3800X950g, + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3825X950g, + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3850X950g, + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3875X950g, + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3900X950g, + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3975X950g, + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4000X950g, + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4025X950g, + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4050X950g, + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4100X950g, + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4125X950g, + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4200X950g, + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4225X950g, + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4250X950g, + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4275X950g, + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4300X950g, + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4350X950g, + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4375X950g, + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4400X950g, + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4425X950g, + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4500X950g, + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4550X950g, + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4575X950g, + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4600X950g, + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4625X950g, + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4650X950g, + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4675X950g, + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4700X950g, + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4725X950g, + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4750X950g, + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4800X950g, + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4875X950g, + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4900X950g, + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4950X950g, + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed5000X950g, + "ENTIREHOST_X9_50G": UpdateVnicShapeDetailsVnicShapeEntirehostX950g, +} + +var mappingUpdateVnicShapeDetailsVnicShapeEnumLowerCase = map[string]UpdateVnicShapeDetailsVnicShapeEnum{ + "dynamic": UpdateVnicShapeDetailsVnicShapeDynamic, + "fixed0040": UpdateVnicShapeDetailsVnicShapeFixed0040, + "fixed0060": UpdateVnicShapeDetailsVnicShapeFixed0060, + "fixed0060_psm": UpdateVnicShapeDetailsVnicShapeFixed0060Psm, + "fixed0100": UpdateVnicShapeDetailsVnicShapeFixed0100, + "fixed0120": UpdateVnicShapeDetailsVnicShapeFixed0120, + "fixed0120_2x": UpdateVnicShapeDetailsVnicShapeFixed01202x, + "fixed0200": UpdateVnicShapeDetailsVnicShapeFixed0200, + "fixed0240": UpdateVnicShapeDetailsVnicShapeFixed0240, + "fixed0480": UpdateVnicShapeDetailsVnicShapeFixed0480, + "entirehost": UpdateVnicShapeDetailsVnicShapeEntirehost, + "dynamic_25g": UpdateVnicShapeDetailsVnicShapeDynamic25g, + "fixed0040_25g": UpdateVnicShapeDetailsVnicShapeFixed004025g, + "fixed0100_25g": UpdateVnicShapeDetailsVnicShapeFixed010025g, + "fixed0200_25g": UpdateVnicShapeDetailsVnicShapeFixed020025g, + "fixed0400_25g": UpdateVnicShapeDetailsVnicShapeFixed040025g, + "fixed0800_25g": UpdateVnicShapeDetailsVnicShapeFixed080025g, + "fixed1600_25g": UpdateVnicShapeDetailsVnicShapeFixed160025g, + "fixed2400_25g": UpdateVnicShapeDetailsVnicShapeFixed240025g, + "entirehost_25g": UpdateVnicShapeDetailsVnicShapeEntirehost25g, + "dynamic_e1_25g": UpdateVnicShapeDetailsVnicShapeDynamicE125g, + "fixed0040_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed0040E125g, + "fixed0070_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed0070E125g, + "fixed0140_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed0140E125g, + "fixed0280_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed0280E125g, + "fixed0560_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed0560E125g, + "fixed1120_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed1120E125g, + "fixed1680_e1_25g": UpdateVnicShapeDetailsVnicShapeFixed1680E125g, + "entirehost_e1_25g": UpdateVnicShapeDetailsVnicShapeEntirehostE125g, + "dynamic_b1_25g": UpdateVnicShapeDetailsVnicShapeDynamicB125g, + "fixed0040_b1_25g": UpdateVnicShapeDetailsVnicShapeFixed0040B125g, + "fixed0060_b1_25g": UpdateVnicShapeDetailsVnicShapeFixed0060B125g, + "fixed0120_b1_25g": UpdateVnicShapeDetailsVnicShapeFixed0120B125g, + "fixed0240_b1_25g": UpdateVnicShapeDetailsVnicShapeFixed0240B125g, + "fixed0480_b1_25g": UpdateVnicShapeDetailsVnicShapeFixed0480B125g, + "fixed0960_b1_25g": UpdateVnicShapeDetailsVnicShapeFixed0960B125g, + "entirehost_b1_25g": UpdateVnicShapeDetailsVnicShapeEntirehostB125g, + "micro_vm_fixed0048_e1_25g": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0048E125g, + "micro_lb_fixed0001_e1_25g": UpdateVnicShapeDetailsVnicShapeMicroLbFixed0001E125g, + "vnicaas_fixed0200": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0200, + "vnicaas_fixed0400": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0400, + "vnicaas_fixed0700": UpdateVnicShapeDetailsVnicShapeVnicaasFixed0700, + "vnicaas_nlb_approved_10g": UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved10g, + "vnicaas_nlb_approved_25g": UpdateVnicShapeDetailsVnicShapeVnicaasNlbApproved25g, + "vnicaas_telesis_25g": UpdateVnicShapeDetailsVnicShapeVnicaasTelesis25g, + "vnicaas_telesis_10g": UpdateVnicShapeDetailsVnicShapeVnicaasTelesis10g, + "vnicaas_ambassador_fixed0100": UpdateVnicShapeDetailsVnicShapeVnicaasAmbassadorFixed0100, + "vnicaas_telesis_gamma": UpdateVnicShapeDetailsVnicShapeVnicaasTelesisGamma, + "vnicaas_privatedns": UpdateVnicShapeDetailsVnicShapeVnicaasPrivatedns, + "vnicaas_fwaas": UpdateVnicShapeDetailsVnicShapeVnicaasFwaas, + "vnicaas_lbaas_free": UpdateVnicShapeDetailsVnicShapeVnicaasLbaasFree, + "vnicaas_lbaas_8g_512k": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g512k, + "vnicaas_lbaas_8g_1m": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m, + "vnicaas_lbaas_8g_2m": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g2m, + "vnicaas_lbaas_8g_3m": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g3m, + "vnicaas_lbaas_8g_1m_8ghost": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m8ghost, + "vnicaas_lbaas_8g_1m_16ghost": UpdateVnicShapeDetailsVnicShapeVnicaasLbaas8g1m16ghost, + "dynamic_e3_50g": UpdateVnicShapeDetailsVnicShapeDynamicE350g, + "fixed0040_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0040E350g, + "fixed0100_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0100E350g, + "fixed0200_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0200E350g, + "fixed0300_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0300E350g, + "fixed0400_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0400E350g, + "fixed0500_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0500E350g, + "fixed0600_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0600E350g, + "fixed0700_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0700E350g, + "fixed0800_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0800E350g, + "fixed0900_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed0900E350g, + "fixed1000_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1000E350g, + "fixed1100_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1100E350g, + "fixed1200_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1200E350g, + "fixed1300_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1300E350g, + "fixed1400_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1400E350g, + "fixed1500_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1500E350g, + "fixed1600_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1600E350g, + "fixed1700_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1700E350g, + "fixed1800_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1800E350g, + "fixed1900_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed1900E350g, + "fixed2000_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2000E350g, + "fixed2100_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2100E350g, + "fixed2200_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2200E350g, + "fixed2300_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2300E350g, + "fixed2400_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2400E350g, + "fixed2500_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2500E350g, + "fixed2600_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2600E350g, + "fixed2700_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2700E350g, + "fixed2800_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2800E350g, + "fixed2900_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed2900E350g, + "fixed3000_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3000E350g, + "fixed3100_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3100E350g, + "fixed3200_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3200E350g, + "fixed3300_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3300E350g, + "fixed3400_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3400E350g, + "fixed3500_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3500E350g, + "fixed3600_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3600E350g, + "fixed3700_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3700E350g, + "fixed3800_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3800E350g, + "fixed3900_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed3900E350g, + "fixed4000_e3_50g": UpdateVnicShapeDetailsVnicShapeFixed4000E350g, + "entirehost_e3_50g": UpdateVnicShapeDetailsVnicShapeEntirehostE350g, + "dynamic_e4_50g": UpdateVnicShapeDetailsVnicShapeDynamicE450g, + "fixed0040_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0040E450g, + "fixed0100_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0100E450g, + "fixed0200_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0200E450g, + "fixed0300_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0300E450g, + "fixed0400_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0400E450g, + "fixed0500_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0500E450g, + "fixed0600_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0600E450g, + "fixed0700_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0700E450g, + "fixed0800_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0800E450g, + "fixed0900_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed0900E450g, + "fixed1000_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1000E450g, + "fixed1100_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1100E450g, + "fixed1200_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1200E450g, + "fixed1300_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1300E450g, + "fixed1400_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1400E450g, + "fixed1500_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1500E450g, + "fixed1600_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1600E450g, + "fixed1700_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1700E450g, + "fixed1800_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1800E450g, + "fixed1900_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed1900E450g, + "fixed2000_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2000E450g, + "fixed2100_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2100E450g, + "fixed2200_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2200E450g, + "fixed2300_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2300E450g, + "fixed2400_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2400E450g, + "fixed2500_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2500E450g, + "fixed2600_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2600E450g, + "fixed2700_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2700E450g, + "fixed2800_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2800E450g, + "fixed2900_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed2900E450g, + "fixed3000_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3000E450g, + "fixed3100_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3100E450g, + "fixed3200_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3200E450g, + "fixed3300_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3300E450g, + "fixed3400_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3400E450g, + "fixed3500_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3500E450g, + "fixed3600_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3600E450g, + "fixed3700_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3700E450g, + "fixed3800_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3800E450g, + "fixed3900_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed3900E450g, + "fixed4000_e4_50g": UpdateVnicShapeDetailsVnicShapeFixed4000E450g, + "entirehost_e4_50g": UpdateVnicShapeDetailsVnicShapeEntirehostE450g, + "micro_vm_fixed0050_e3_50g": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E350g, + "micro_vm_fixed0050_e4_50g": UpdateVnicShapeDetailsVnicShapeMicroVmFixed0050E450g, + "subcore_vm_fixed0025_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E350g, + "subcore_vm_fixed0050_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E350g, + "subcore_vm_fixed0075_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E350g, + "subcore_vm_fixed0100_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E350g, + "subcore_vm_fixed0125_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E350g, + "subcore_vm_fixed0150_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E350g, + "subcore_vm_fixed0175_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E350g, + "subcore_vm_fixed0200_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E350g, + "subcore_vm_fixed0225_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E350g, + "subcore_vm_fixed0250_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E350g, + "subcore_vm_fixed0275_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E350g, + "subcore_vm_fixed0300_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E350g, + "subcore_vm_fixed0325_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E350g, + "subcore_vm_fixed0350_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E350g, + "subcore_vm_fixed0375_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E350g, + "subcore_vm_fixed0400_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E350g, + "subcore_vm_fixed0425_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E350g, + "subcore_vm_fixed0450_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E350g, + "subcore_vm_fixed0475_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E350g, + "subcore_vm_fixed0500_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E350g, + "subcore_vm_fixed0525_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E350g, + "subcore_vm_fixed0550_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E350g, + "subcore_vm_fixed0575_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E350g, + "subcore_vm_fixed0600_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E350g, + "subcore_vm_fixed0625_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E350g, + "subcore_vm_fixed0650_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E350g, + "subcore_vm_fixed0675_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E350g, + "subcore_vm_fixed0700_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E350g, + "subcore_vm_fixed0725_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E350g, + "subcore_vm_fixed0750_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E350g, + "subcore_vm_fixed0775_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E350g, + "subcore_vm_fixed0800_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E350g, + "subcore_vm_fixed0825_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E350g, + "subcore_vm_fixed0850_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E350g, + "subcore_vm_fixed0875_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E350g, + "subcore_vm_fixed0900_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E350g, + "subcore_vm_fixed0925_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E350g, + "subcore_vm_fixed0950_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E350g, + "subcore_vm_fixed0975_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E350g, + "subcore_vm_fixed1000_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E350g, + "subcore_vm_fixed1025_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E350g, + "subcore_vm_fixed1050_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E350g, + "subcore_vm_fixed1075_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E350g, + "subcore_vm_fixed1100_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E350g, + "subcore_vm_fixed1125_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E350g, + "subcore_vm_fixed1150_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E350g, + "subcore_vm_fixed1175_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E350g, + "subcore_vm_fixed1200_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E350g, + "subcore_vm_fixed1225_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E350g, + "subcore_vm_fixed1250_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E350g, + "subcore_vm_fixed1275_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E350g, + "subcore_vm_fixed1300_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E350g, + "subcore_vm_fixed1325_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E350g, + "subcore_vm_fixed1350_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E350g, + "subcore_vm_fixed1375_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E350g, + "subcore_vm_fixed1400_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E350g, + "subcore_vm_fixed1425_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E350g, + "subcore_vm_fixed1450_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E350g, + "subcore_vm_fixed1475_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E350g, + "subcore_vm_fixed1500_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E350g, + "subcore_vm_fixed1525_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E350g, + "subcore_vm_fixed1550_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E350g, + "subcore_vm_fixed1575_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E350g, + "subcore_vm_fixed1600_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E350g, + "subcore_vm_fixed1625_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E350g, + "subcore_vm_fixed1650_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E350g, + "subcore_vm_fixed1700_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E350g, + "subcore_vm_fixed1725_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E350g, + "subcore_vm_fixed1750_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E350g, + "subcore_vm_fixed1800_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E350g, + "subcore_vm_fixed1850_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E350g, + "subcore_vm_fixed1875_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E350g, + "subcore_vm_fixed1900_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E350g, + "subcore_vm_fixed1925_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E350g, + "subcore_vm_fixed1950_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E350g, + "subcore_vm_fixed2000_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E350g, + "subcore_vm_fixed2025_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E350g, + "subcore_vm_fixed2050_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E350g, + "subcore_vm_fixed2100_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E350g, + "subcore_vm_fixed2125_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E350g, + "subcore_vm_fixed2150_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E350g, + "subcore_vm_fixed2175_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E350g, + "subcore_vm_fixed2200_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E350g, + "subcore_vm_fixed2250_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E350g, + "subcore_vm_fixed2275_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E350g, + "subcore_vm_fixed2300_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E350g, + "subcore_vm_fixed2325_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E350g, + "subcore_vm_fixed2350_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E350g, + "subcore_vm_fixed2375_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E350g, + "subcore_vm_fixed2400_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E350g, + "subcore_vm_fixed2450_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E350g, + "subcore_vm_fixed2475_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E350g, + "subcore_vm_fixed2500_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E350g, + "subcore_vm_fixed2550_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E350g, + "subcore_vm_fixed2600_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E350g, + "subcore_vm_fixed2625_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E350g, + "subcore_vm_fixed2650_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E350g, + "subcore_vm_fixed2700_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E350g, + "subcore_vm_fixed2750_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E350g, + "subcore_vm_fixed2775_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E350g, + "subcore_vm_fixed2800_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E350g, + "subcore_vm_fixed2850_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E350g, + "subcore_vm_fixed2875_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E350g, + "subcore_vm_fixed2900_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E350g, + "subcore_vm_fixed2925_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E350g, + "subcore_vm_fixed2950_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E350g, + "subcore_vm_fixed2975_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E350g, + "subcore_vm_fixed3000_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E350g, + "subcore_vm_fixed3025_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E350g, + "subcore_vm_fixed3050_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E350g, + "subcore_vm_fixed3075_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E350g, + "subcore_vm_fixed3100_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E350g, + "subcore_vm_fixed3125_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E350g, + "subcore_vm_fixed3150_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E350g, + "subcore_vm_fixed3200_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E350g, + "subcore_vm_fixed3225_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E350g, + "subcore_vm_fixed3250_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E350g, + "subcore_vm_fixed3300_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E350g, + "subcore_vm_fixed3325_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E350g, + "subcore_vm_fixed3375_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E350g, + "subcore_vm_fixed3400_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E350g, + "subcore_vm_fixed3450_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E350g, + "subcore_vm_fixed3500_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E350g, + "subcore_vm_fixed3525_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E350g, + "subcore_vm_fixed3575_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E350g, + "subcore_vm_fixed3600_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E350g, + "subcore_vm_fixed3625_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E350g, + "subcore_vm_fixed3675_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E350g, + "subcore_vm_fixed3700_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E350g, + "subcore_vm_fixed3750_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E350g, + "subcore_vm_fixed3800_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E350g, + "subcore_vm_fixed3825_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E350g, + "subcore_vm_fixed3850_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E350g, + "subcore_vm_fixed3875_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E350g, + "subcore_vm_fixed3900_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E350g, + "subcore_vm_fixed3975_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E350g, + "subcore_vm_fixed4000_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E350g, + "subcore_vm_fixed4025_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E350g, + "subcore_vm_fixed4050_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E350g, + "subcore_vm_fixed4100_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E350g, + "subcore_vm_fixed4125_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E350g, + "subcore_vm_fixed4200_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E350g, + "subcore_vm_fixed4225_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E350g, + "subcore_vm_fixed4250_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E350g, + "subcore_vm_fixed4275_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E350g, + "subcore_vm_fixed4300_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E350g, + "subcore_vm_fixed4350_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E350g, + "subcore_vm_fixed4375_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E350g, + "subcore_vm_fixed4400_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E350g, + "subcore_vm_fixed4425_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E350g, + "subcore_vm_fixed4500_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E350g, + "subcore_vm_fixed4550_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E350g, + "subcore_vm_fixed4575_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E350g, + "subcore_vm_fixed4600_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E350g, + "subcore_vm_fixed4625_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E350g, + "subcore_vm_fixed4650_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E350g, + "subcore_vm_fixed4675_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E350g, + "subcore_vm_fixed4700_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E350g, + "subcore_vm_fixed4725_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E350g, + "subcore_vm_fixed4750_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E350g, + "subcore_vm_fixed4800_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E350g, + "subcore_vm_fixed4875_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E350g, + "subcore_vm_fixed4900_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E350g, + "subcore_vm_fixed4950_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E350g, + "subcore_vm_fixed5000_e3_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E350g, + "subcore_vm_fixed0025_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0025E450g, + "subcore_vm_fixed0050_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0050E450g, + "subcore_vm_fixed0075_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0075E450g, + "subcore_vm_fixed0100_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100E450g, + "subcore_vm_fixed0125_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0125E450g, + "subcore_vm_fixed0150_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0150E450g, + "subcore_vm_fixed0175_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0175E450g, + "subcore_vm_fixed0200_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200E450g, + "subcore_vm_fixed0225_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0225E450g, + "subcore_vm_fixed0250_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0250E450g, + "subcore_vm_fixed0275_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0275E450g, + "subcore_vm_fixed0300_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300E450g, + "subcore_vm_fixed0325_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0325E450g, + "subcore_vm_fixed0350_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0350E450g, + "subcore_vm_fixed0375_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0375E450g, + "subcore_vm_fixed0400_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400E450g, + "subcore_vm_fixed0425_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0425E450g, + "subcore_vm_fixed0450_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450E450g, + "subcore_vm_fixed0475_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0475E450g, + "subcore_vm_fixed0500_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500E450g, + "subcore_vm_fixed0525_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0525E450g, + "subcore_vm_fixed0550_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0550E450g, + "subcore_vm_fixed0575_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0575E450g, + "subcore_vm_fixed0600_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600E450g, + "subcore_vm_fixed0625_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0625E450g, + "subcore_vm_fixed0650_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0650E450g, + "subcore_vm_fixed0675_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0675E450g, + "subcore_vm_fixed0700_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700E450g, + "subcore_vm_fixed0725_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0725E450g, + "subcore_vm_fixed0750_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0750E450g, + "subcore_vm_fixed0775_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0775E450g, + "subcore_vm_fixed0800_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800E450g, + "subcore_vm_fixed0825_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0825E450g, + "subcore_vm_fixed0850_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0850E450g, + "subcore_vm_fixed0875_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0875E450g, + "subcore_vm_fixed0900_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900E450g, + "subcore_vm_fixed0925_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0925E450g, + "subcore_vm_fixed0950_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0950E450g, + "subcore_vm_fixed0975_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0975E450g, + "subcore_vm_fixed1000_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000E450g, + "subcore_vm_fixed1025_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1025E450g, + "subcore_vm_fixed1050_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1050E450g, + "subcore_vm_fixed1075_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1075E450g, + "subcore_vm_fixed1100_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100E450g, + "subcore_vm_fixed1125_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1125E450g, + "subcore_vm_fixed1150_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1150E450g, + "subcore_vm_fixed1175_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1175E450g, + "subcore_vm_fixed1200_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200E450g, + "subcore_vm_fixed1225_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1225E450g, + "subcore_vm_fixed1250_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1250E450g, + "subcore_vm_fixed1275_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1275E450g, + "subcore_vm_fixed1300_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300E450g, + "subcore_vm_fixed1325_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1325E450g, + "subcore_vm_fixed1350_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350E450g, + "subcore_vm_fixed1375_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1375E450g, + "subcore_vm_fixed1400_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400E450g, + "subcore_vm_fixed1425_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1425E450g, + "subcore_vm_fixed1450_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1450E450g, + "subcore_vm_fixed1475_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1475E450g, + "subcore_vm_fixed1500_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500E450g, + "subcore_vm_fixed1525_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1525E450g, + "subcore_vm_fixed1550_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1550E450g, + "subcore_vm_fixed1575_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1575E450g, + "subcore_vm_fixed1600_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600E450g, + "subcore_vm_fixed1625_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1625E450g, + "subcore_vm_fixed1650_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1650E450g, + "subcore_vm_fixed1700_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700E450g, + "subcore_vm_fixed1725_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1725E450g, + "subcore_vm_fixed1750_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1750E450g, + "subcore_vm_fixed1800_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800E450g, + "subcore_vm_fixed1850_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1850E450g, + "subcore_vm_fixed1875_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1875E450g, + "subcore_vm_fixed1900_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900E450g, + "subcore_vm_fixed1925_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1925E450g, + "subcore_vm_fixed1950_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1950E450g, + "subcore_vm_fixed2000_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000E450g, + "subcore_vm_fixed2025_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2025E450g, + "subcore_vm_fixed2050_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2050E450g, + "subcore_vm_fixed2100_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100E450g, + "subcore_vm_fixed2125_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2125E450g, + "subcore_vm_fixed2150_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2150E450g, + "subcore_vm_fixed2175_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2175E450g, + "subcore_vm_fixed2200_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200E450g, + "subcore_vm_fixed2250_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250E450g, + "subcore_vm_fixed2275_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2275E450g, + "subcore_vm_fixed2300_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300E450g, + "subcore_vm_fixed2325_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2325E450g, + "subcore_vm_fixed2350_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2350E450g, + "subcore_vm_fixed2375_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2375E450g, + "subcore_vm_fixed2400_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400E450g, + "subcore_vm_fixed2450_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2450E450g, + "subcore_vm_fixed2475_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2475E450g, + "subcore_vm_fixed2500_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500E450g, + "subcore_vm_fixed2550_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2550E450g, + "subcore_vm_fixed2600_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600E450g, + "subcore_vm_fixed2625_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2625E450g, + "subcore_vm_fixed2650_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2650E450g, + "subcore_vm_fixed2700_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700E450g, + "subcore_vm_fixed2750_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2750E450g, + "subcore_vm_fixed2775_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2775E450g, + "subcore_vm_fixed2800_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800E450g, + "subcore_vm_fixed2850_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2850E450g, + "subcore_vm_fixed2875_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2875E450g, + "subcore_vm_fixed2900_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900E450g, + "subcore_vm_fixed2925_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2925E450g, + "subcore_vm_fixed2950_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2950E450g, + "subcore_vm_fixed2975_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2975E450g, + "subcore_vm_fixed3000_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000E450g, + "subcore_vm_fixed3025_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3025E450g, + "subcore_vm_fixed3050_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3050E450g, + "subcore_vm_fixed3075_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3075E450g, + "subcore_vm_fixed3100_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100E450g, + "subcore_vm_fixed3125_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3125E450g, + "subcore_vm_fixed3150_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150E450g, + "subcore_vm_fixed3200_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200E450g, + "subcore_vm_fixed3225_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3225E450g, + "subcore_vm_fixed3250_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3250E450g, + "subcore_vm_fixed3300_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300E450g, + "subcore_vm_fixed3325_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3325E450g, + "subcore_vm_fixed3375_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3375E450g, + "subcore_vm_fixed3400_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400E450g, + "subcore_vm_fixed3450_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3450E450g, + "subcore_vm_fixed3500_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500E450g, + "subcore_vm_fixed3525_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3525E450g, + "subcore_vm_fixed3575_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3575E450g, + "subcore_vm_fixed3600_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600E450g, + "subcore_vm_fixed3625_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3625E450g, + "subcore_vm_fixed3675_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3675E450g, + "subcore_vm_fixed3700_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700E450g, + "subcore_vm_fixed3750_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3750E450g, + "subcore_vm_fixed3800_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800E450g, + "subcore_vm_fixed3825_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3825E450g, + "subcore_vm_fixed3850_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3850E450g, + "subcore_vm_fixed3875_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3875E450g, + "subcore_vm_fixed3900_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900E450g, + "subcore_vm_fixed3975_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3975E450g, + "subcore_vm_fixed4000_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000E450g, + "subcore_vm_fixed4025_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4025E450g, + "subcore_vm_fixed4050_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050E450g, + "subcore_vm_fixed4100_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100E450g, + "subcore_vm_fixed4125_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4125E450g, + "subcore_vm_fixed4200_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200E450g, + "subcore_vm_fixed4225_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4225E450g, + "subcore_vm_fixed4250_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4250E450g, + "subcore_vm_fixed4275_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4275E450g, + "subcore_vm_fixed4300_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300E450g, + "subcore_vm_fixed4350_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4350E450g, + "subcore_vm_fixed4375_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4375E450g, + "subcore_vm_fixed4400_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400E450g, + "subcore_vm_fixed4425_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4425E450g, + "subcore_vm_fixed4500_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500E450g, + "subcore_vm_fixed4550_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4550E450g, + "subcore_vm_fixed4575_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4575E450g, + "subcore_vm_fixed4600_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600E450g, + "subcore_vm_fixed4625_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4625E450g, + "subcore_vm_fixed4650_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4650E450g, + "subcore_vm_fixed4675_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4675E450g, + "subcore_vm_fixed4700_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700E450g, + "subcore_vm_fixed4725_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4725E450g, + "subcore_vm_fixed4750_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4750E450g, + "subcore_vm_fixed4800_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800E450g, + "subcore_vm_fixed4875_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4875E450g, + "subcore_vm_fixed4900_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900E450g, + "subcore_vm_fixed4950_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950E450g, + "subcore_vm_fixed5000_e4_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000E450g, + "subcore_vm_fixed0020_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0020A150g, + "subcore_vm_fixed0040_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0040A150g, + "subcore_vm_fixed0060_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0060A150g, + "subcore_vm_fixed0080_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0080A150g, + "subcore_vm_fixed0100_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0100A150g, + "subcore_vm_fixed0120_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0120A150g, + "subcore_vm_fixed0140_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0140A150g, + "subcore_vm_fixed0160_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0160A150g, + "subcore_vm_fixed0180_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180A150g, + "subcore_vm_fixed0200_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0200A150g, + "subcore_vm_fixed0220_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0220A150g, + "subcore_vm_fixed0240_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0240A150g, + "subcore_vm_fixed0260_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0260A150g, + "subcore_vm_fixed0280_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0280A150g, + "subcore_vm_fixed0300_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0300A150g, + "subcore_vm_fixed0320_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0320A150g, + "subcore_vm_fixed0340_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0340A150g, + "subcore_vm_fixed0360_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360A150g, + "subcore_vm_fixed0380_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0380A150g, + "subcore_vm_fixed0400_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0400A150g, + "subcore_vm_fixed0420_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0420A150g, + "subcore_vm_fixed0440_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0440A150g, + "subcore_vm_fixed0460_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0460A150g, + "subcore_vm_fixed0480_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0480A150g, + "subcore_vm_fixed0500_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0500A150g, + "subcore_vm_fixed0520_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0520A150g, + "subcore_vm_fixed0540_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540A150g, + "subcore_vm_fixed0560_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0560A150g, + "subcore_vm_fixed0580_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0580A150g, + "subcore_vm_fixed0600_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0600A150g, + "subcore_vm_fixed0620_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0620A150g, + "subcore_vm_fixed0640_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0640A150g, + "subcore_vm_fixed0660_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0660A150g, + "subcore_vm_fixed0680_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0680A150g, + "subcore_vm_fixed0700_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0700A150g, + "subcore_vm_fixed0720_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720A150g, + "subcore_vm_fixed0740_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0740A150g, + "subcore_vm_fixed0760_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0760A150g, + "subcore_vm_fixed0780_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0780A150g, + "subcore_vm_fixed0800_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0800A150g, + "subcore_vm_fixed0820_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0820A150g, + "subcore_vm_fixed0840_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0840A150g, + "subcore_vm_fixed0860_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0860A150g, + "subcore_vm_fixed0880_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0880A150g, + "subcore_vm_fixed0900_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900A150g, + "subcore_vm_fixed0920_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0920A150g, + "subcore_vm_fixed0940_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0940A150g, + "subcore_vm_fixed0960_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0960A150g, + "subcore_vm_fixed0980_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0980A150g, + "subcore_vm_fixed1000_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1000A150g, + "subcore_vm_fixed1020_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1020A150g, + "subcore_vm_fixed1040_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1040A150g, + "subcore_vm_fixed1060_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1060A150g, + "subcore_vm_fixed1080_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080A150g, + "subcore_vm_fixed1100_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1100A150g, + "subcore_vm_fixed1120_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1120A150g, + "subcore_vm_fixed1140_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1140A150g, + "subcore_vm_fixed1160_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1160A150g, + "subcore_vm_fixed1180_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1180A150g, + "subcore_vm_fixed1200_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1200A150g, + "subcore_vm_fixed1220_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1220A150g, + "subcore_vm_fixed1240_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1240A150g, + "subcore_vm_fixed1260_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260A150g, + "subcore_vm_fixed1280_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1280A150g, + "subcore_vm_fixed1300_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1300A150g, + "subcore_vm_fixed1320_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1320A150g, + "subcore_vm_fixed1340_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1340A150g, + "subcore_vm_fixed1360_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1360A150g, + "subcore_vm_fixed1380_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1380A150g, + "subcore_vm_fixed1400_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1400A150g, + "subcore_vm_fixed1420_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1420A150g, + "subcore_vm_fixed1440_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440A150g, + "subcore_vm_fixed1460_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1460A150g, + "subcore_vm_fixed1480_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1480A150g, + "subcore_vm_fixed1500_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1500A150g, + "subcore_vm_fixed1520_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1520A150g, + "subcore_vm_fixed1540_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1540A150g, + "subcore_vm_fixed1560_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1560A150g, + "subcore_vm_fixed1580_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1580A150g, + "subcore_vm_fixed1600_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1600A150g, + "subcore_vm_fixed1620_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620A150g, + "subcore_vm_fixed1640_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1640A150g, + "subcore_vm_fixed1660_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1660A150g, + "subcore_vm_fixed1680_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1680A150g, + "subcore_vm_fixed1700_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1700A150g, + "subcore_vm_fixed1720_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1720A150g, + "subcore_vm_fixed1740_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1740A150g, + "subcore_vm_fixed1760_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1760A150g, + "subcore_vm_fixed1780_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1780A150g, + "subcore_vm_fixed1800_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800A150g, + "subcore_vm_fixed1820_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1820A150g, + "subcore_vm_fixed1840_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1840A150g, + "subcore_vm_fixed1860_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1860A150g, + "subcore_vm_fixed1880_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1880A150g, + "subcore_vm_fixed1900_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1900A150g, + "subcore_vm_fixed1920_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1920A150g, + "subcore_vm_fixed1940_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1940A150g, + "subcore_vm_fixed1960_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1960A150g, + "subcore_vm_fixed1980_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980A150g, + "subcore_vm_fixed2000_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2000A150g, + "subcore_vm_fixed2020_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2020A150g, + "subcore_vm_fixed2040_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2040A150g, + "subcore_vm_fixed2060_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2060A150g, + "subcore_vm_fixed2080_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2080A150g, + "subcore_vm_fixed2100_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2100A150g, + "subcore_vm_fixed2120_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2120A150g, + "subcore_vm_fixed2140_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2140A150g, + "subcore_vm_fixed2160_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160A150g, + "subcore_vm_fixed2180_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2180A150g, + "subcore_vm_fixed2200_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2200A150g, + "subcore_vm_fixed2220_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2220A150g, + "subcore_vm_fixed2240_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2240A150g, + "subcore_vm_fixed2260_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2260A150g, + "subcore_vm_fixed2280_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2280A150g, + "subcore_vm_fixed2300_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2300A150g, + "subcore_vm_fixed2320_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2320A150g, + "subcore_vm_fixed2340_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340A150g, + "subcore_vm_fixed2360_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2360A150g, + "subcore_vm_fixed2380_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2380A150g, + "subcore_vm_fixed2400_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2400A150g, + "subcore_vm_fixed2420_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2420A150g, + "subcore_vm_fixed2440_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2440A150g, + "subcore_vm_fixed2460_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2460A150g, + "subcore_vm_fixed2480_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2480A150g, + "subcore_vm_fixed2500_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2500A150g, + "subcore_vm_fixed2520_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520A150g, + "subcore_vm_fixed2540_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2540A150g, + "subcore_vm_fixed2560_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2560A150g, + "subcore_vm_fixed2580_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2580A150g, + "subcore_vm_fixed2600_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2600A150g, + "subcore_vm_fixed2620_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2620A150g, + "subcore_vm_fixed2640_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2640A150g, + "subcore_vm_fixed2660_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2660A150g, + "subcore_vm_fixed2680_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2680A150g, + "subcore_vm_fixed2700_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700A150g, + "subcore_vm_fixed2720_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2720A150g, + "subcore_vm_fixed2740_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2740A150g, + "subcore_vm_fixed2760_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2760A150g, + "subcore_vm_fixed2780_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2780A150g, + "subcore_vm_fixed2800_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2800A150g, + "subcore_vm_fixed2820_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2820A150g, + "subcore_vm_fixed2840_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2840A150g, + "subcore_vm_fixed2860_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2860A150g, + "subcore_vm_fixed2880_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880A150g, + "subcore_vm_fixed2900_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2900A150g, + "subcore_vm_fixed2920_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2920A150g, + "subcore_vm_fixed2940_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2940A150g, + "subcore_vm_fixed2960_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2960A150g, + "subcore_vm_fixed2980_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2980A150g, + "subcore_vm_fixed3000_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3000A150g, + "subcore_vm_fixed3020_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3020A150g, + "subcore_vm_fixed3040_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3040A150g, + "subcore_vm_fixed3060_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060A150g, + "subcore_vm_fixed3080_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3080A150g, + "subcore_vm_fixed3100_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3100A150g, + "subcore_vm_fixed3120_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3120A150g, + "subcore_vm_fixed3140_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3140A150g, + "subcore_vm_fixed3160_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3160A150g, + "subcore_vm_fixed3180_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3180A150g, + "subcore_vm_fixed3200_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3200A150g, + "subcore_vm_fixed3220_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3220A150g, + "subcore_vm_fixed3240_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240A150g, + "subcore_vm_fixed3260_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3260A150g, + "subcore_vm_fixed3280_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3280A150g, + "subcore_vm_fixed3300_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3300A150g, + "subcore_vm_fixed3320_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3320A150g, + "subcore_vm_fixed3340_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3340A150g, + "subcore_vm_fixed3360_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3360A150g, + "subcore_vm_fixed3380_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3380A150g, + "subcore_vm_fixed3400_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3400A150g, + "subcore_vm_fixed3420_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420A150g, + "subcore_vm_fixed3440_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3440A150g, + "subcore_vm_fixed3460_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3460A150g, + "subcore_vm_fixed3480_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3480A150g, + "subcore_vm_fixed3500_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3500A150g, + "subcore_vm_fixed3520_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3520A150g, + "subcore_vm_fixed3540_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3540A150g, + "subcore_vm_fixed3560_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3560A150g, + "subcore_vm_fixed3580_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3580A150g, + "subcore_vm_fixed3600_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600A150g, + "subcore_vm_fixed3620_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3620A150g, + "subcore_vm_fixed3640_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3640A150g, + "subcore_vm_fixed3660_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3660A150g, + "subcore_vm_fixed3680_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3680A150g, + "subcore_vm_fixed3700_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3700A150g, + "subcore_vm_fixed3720_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3720A150g, + "subcore_vm_fixed3740_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3740A150g, + "subcore_vm_fixed3760_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3760A150g, + "subcore_vm_fixed3780_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780A150g, + "subcore_vm_fixed3800_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3800A150g, + "subcore_vm_fixed3820_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3820A150g, + "subcore_vm_fixed3840_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3840A150g, + "subcore_vm_fixed3860_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3860A150g, + "subcore_vm_fixed3880_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3880A150g, + "subcore_vm_fixed3900_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3900A150g, + "subcore_vm_fixed3920_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3920A150g, + "subcore_vm_fixed3940_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3940A150g, + "subcore_vm_fixed3960_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960A150g, + "subcore_vm_fixed3980_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3980A150g, + "subcore_vm_fixed4000_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4000A150g, + "subcore_vm_fixed4020_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4020A150g, + "subcore_vm_fixed4040_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4040A150g, + "subcore_vm_fixed4060_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4060A150g, + "subcore_vm_fixed4080_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4080A150g, + "subcore_vm_fixed4100_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4100A150g, + "subcore_vm_fixed4120_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4120A150g, + "subcore_vm_fixed4140_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140A150g, + "subcore_vm_fixed4160_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4160A150g, + "subcore_vm_fixed4180_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4180A150g, + "subcore_vm_fixed4200_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4200A150g, + "subcore_vm_fixed4220_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4220A150g, + "subcore_vm_fixed4240_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4240A150g, + "subcore_vm_fixed4260_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4260A150g, + "subcore_vm_fixed4280_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4280A150g, + "subcore_vm_fixed4300_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4300A150g, + "subcore_vm_fixed4320_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320A150g, + "subcore_vm_fixed4340_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4340A150g, + "subcore_vm_fixed4360_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4360A150g, + "subcore_vm_fixed4380_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4380A150g, + "subcore_vm_fixed4400_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4400A150g, + "subcore_vm_fixed4420_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4420A150g, + "subcore_vm_fixed4440_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4440A150g, + "subcore_vm_fixed4460_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4460A150g, + "subcore_vm_fixed4480_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4480A150g, + "subcore_vm_fixed4500_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500A150g, + "subcore_vm_fixed4520_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4520A150g, + "subcore_vm_fixed4540_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4540A150g, + "subcore_vm_fixed4560_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4560A150g, + "subcore_vm_fixed4580_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4580A150g, + "subcore_vm_fixed4600_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4600A150g, + "subcore_vm_fixed4620_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4620A150g, + "subcore_vm_fixed4640_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4640A150g, + "subcore_vm_fixed4660_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4660A150g, + "subcore_vm_fixed4680_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680A150g, + "subcore_vm_fixed4700_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4700A150g, + "subcore_vm_fixed4720_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4720A150g, + "subcore_vm_fixed4740_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4740A150g, + "subcore_vm_fixed4760_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4760A150g, + "subcore_vm_fixed4780_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4780A150g, + "subcore_vm_fixed4800_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4800A150g, + "subcore_vm_fixed4820_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4820A150g, + "subcore_vm_fixed4840_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4840A150g, + "subcore_vm_fixed4860_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860A150g, + "subcore_vm_fixed4880_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4880A150g, + "subcore_vm_fixed4900_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4900A150g, + "subcore_vm_fixed4920_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4920A150g, + "subcore_vm_fixed4940_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4940A150g, + "subcore_vm_fixed4960_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4960A150g, + "subcore_vm_fixed4980_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4980A150g, + "subcore_vm_fixed5000_a1_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed5000A150g, + "subcore_vm_fixed0090_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0090X950g, + "subcore_vm_fixed0180_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0180X950g, + "subcore_vm_fixed0270_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0270X950g, + "subcore_vm_fixed0360_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0360X950g, + "subcore_vm_fixed0450_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0450X950g, + "subcore_vm_fixed0540_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0540X950g, + "subcore_vm_fixed0630_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0630X950g, + "subcore_vm_fixed0720_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0720X950g, + "subcore_vm_fixed0810_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0810X950g, + "subcore_vm_fixed0900_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0900X950g, + "subcore_vm_fixed0990_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed0990X950g, + "subcore_vm_fixed1080_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1080X950g, + "subcore_vm_fixed1170_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1170X950g, + "subcore_vm_fixed1260_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1260X950g, + "subcore_vm_fixed1350_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1350X950g, + "subcore_vm_fixed1440_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1440X950g, + "subcore_vm_fixed1530_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1530X950g, + "subcore_vm_fixed1620_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1620X950g, + "subcore_vm_fixed1710_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1710X950g, + "subcore_vm_fixed1800_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1800X950g, + "subcore_vm_fixed1890_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1890X950g, + "subcore_vm_fixed1980_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed1980X950g, + "subcore_vm_fixed2070_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2070X950g, + "subcore_vm_fixed2160_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2160X950g, + "subcore_vm_fixed2250_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2250X950g, + "subcore_vm_fixed2340_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2340X950g, + "subcore_vm_fixed2430_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2430X950g, + "subcore_vm_fixed2520_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2520X950g, + "subcore_vm_fixed2610_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2610X950g, + "subcore_vm_fixed2700_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2700X950g, + "subcore_vm_fixed2790_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2790X950g, + "subcore_vm_fixed2880_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2880X950g, + "subcore_vm_fixed2970_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed2970X950g, + "subcore_vm_fixed3060_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3060X950g, + "subcore_vm_fixed3150_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3150X950g, + "subcore_vm_fixed3240_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3240X950g, + "subcore_vm_fixed3330_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3330X950g, + "subcore_vm_fixed3420_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3420X950g, + "subcore_vm_fixed3510_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3510X950g, + "subcore_vm_fixed3600_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3600X950g, + "subcore_vm_fixed3690_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3690X950g, + "subcore_vm_fixed3780_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3780X950g, + "subcore_vm_fixed3870_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3870X950g, + "subcore_vm_fixed3960_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed3960X950g, + "subcore_vm_fixed4050_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4050X950g, + "subcore_vm_fixed4140_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4140X950g, + "subcore_vm_fixed4230_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4230X950g, + "subcore_vm_fixed4320_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4320X950g, + "subcore_vm_fixed4410_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4410X950g, + "subcore_vm_fixed4500_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4500X950g, + "subcore_vm_fixed4590_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4590X950g, + "subcore_vm_fixed4680_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4680X950g, + "subcore_vm_fixed4770_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4770X950g, + "subcore_vm_fixed4860_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4860X950g, + "subcore_vm_fixed4950_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreVmFixed4950X950g, + "dynamic_a1_50g": UpdateVnicShapeDetailsVnicShapeDynamicA150g, + "fixed0040_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0040A150g, + "fixed0100_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0100A150g, + "fixed0200_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0200A150g, + "fixed0300_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0300A150g, + "fixed0400_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0400A150g, + "fixed0500_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0500A150g, + "fixed0600_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0600A150g, + "fixed0700_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0700A150g, + "fixed0800_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0800A150g, + "fixed0900_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed0900A150g, + "fixed1000_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1000A150g, + "fixed1100_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1100A150g, + "fixed1200_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1200A150g, + "fixed1300_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1300A150g, + "fixed1400_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1400A150g, + "fixed1500_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1500A150g, + "fixed1600_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1600A150g, + "fixed1700_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1700A150g, + "fixed1800_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1800A150g, + "fixed1900_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed1900A150g, + "fixed2000_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2000A150g, + "fixed2100_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2100A150g, + "fixed2200_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2200A150g, + "fixed2300_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2300A150g, + "fixed2400_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2400A150g, + "fixed2500_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2500A150g, + "fixed2600_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2600A150g, + "fixed2700_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2700A150g, + "fixed2800_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2800A150g, + "fixed2900_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed2900A150g, + "fixed3000_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3000A150g, + "fixed3100_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3100A150g, + "fixed3200_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3200A150g, + "fixed3300_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3300A150g, + "fixed3400_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3400A150g, + "fixed3500_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3500A150g, + "fixed3600_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3600A150g, + "fixed3700_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3700A150g, + "fixed3800_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3800A150g, + "fixed3900_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed3900A150g, + "fixed4000_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed4000A150g, + "fixed5000_telesis_a1_50g": UpdateVnicShapeDetailsVnicShapeFixed5000TelesisA150g, + "entirehost_a1_50g": UpdateVnicShapeDetailsVnicShapeEntirehostA150g, + "dynamic_x9_50g": UpdateVnicShapeDetailsVnicShapeDynamicX950g, + "fixed0040_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed0040X950g, + "fixed0400_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed0400X950g, + "fixed0800_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed0800X950g, + "fixed1200_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed1200X950g, + "fixed1600_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed1600X950g, + "fixed2000_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed2000X950g, + "fixed2400_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed2400X950g, + "fixed2800_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed2800X950g, + "fixed3200_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed3200X950g, + "fixed3600_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed3600X950g, + "fixed4000_x9_50g": UpdateVnicShapeDetailsVnicShapeFixed4000X950g, + "standard_vm_fixed0100_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0100X950g, + "standard_vm_fixed0200_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0200X950g, + "standard_vm_fixed0300_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0300X950g, + "standard_vm_fixed0400_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0400X950g, + "standard_vm_fixed0500_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0500X950g, + "standard_vm_fixed0600_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0600X950g, + "standard_vm_fixed0700_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0700X950g, + "standard_vm_fixed0800_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0800X950g, + "standard_vm_fixed0900_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed0900X950g, + "standard_vm_fixed1000_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1000X950g, + "standard_vm_fixed1100_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1100X950g, + "standard_vm_fixed1200_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1200X950g, + "standard_vm_fixed1300_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1300X950g, + "standard_vm_fixed1400_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1400X950g, + "standard_vm_fixed1500_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1500X950g, + "standard_vm_fixed1600_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1600X950g, + "standard_vm_fixed1700_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1700X950g, + "standard_vm_fixed1800_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1800X950g, + "standard_vm_fixed1900_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed1900X950g, + "standard_vm_fixed2000_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2000X950g, + "standard_vm_fixed2100_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2100X950g, + "standard_vm_fixed2200_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2200X950g, + "standard_vm_fixed2300_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2300X950g, + "standard_vm_fixed2400_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2400X950g, + "standard_vm_fixed2500_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2500X950g, + "standard_vm_fixed2600_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2600X950g, + "standard_vm_fixed2700_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2700X950g, + "standard_vm_fixed2800_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2800X950g, + "standard_vm_fixed2900_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed2900X950g, + "standard_vm_fixed3000_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3000X950g, + "standard_vm_fixed3100_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3100X950g, + "standard_vm_fixed3200_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3200X950g, + "standard_vm_fixed3300_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3300X950g, + "standard_vm_fixed3400_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3400X950g, + "standard_vm_fixed3500_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3500X950g, + "standard_vm_fixed3600_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3600X950g, + "standard_vm_fixed3700_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3700X950g, + "standard_vm_fixed3800_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3800X950g, + "standard_vm_fixed3900_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed3900X950g, + "standard_vm_fixed4000_x9_50g": UpdateVnicShapeDetailsVnicShapeStandardVmFixed4000X950g, + "subcore_standard_vm_fixed0025_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0025X950g, + "subcore_standard_vm_fixed0050_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0050X950g, + "subcore_standard_vm_fixed0075_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0075X950g, + "subcore_standard_vm_fixed0100_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0100X950g, + "subcore_standard_vm_fixed0125_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0125X950g, + "subcore_standard_vm_fixed0150_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0150X950g, + "subcore_standard_vm_fixed0175_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0175X950g, + "subcore_standard_vm_fixed0200_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0200X950g, + "subcore_standard_vm_fixed0225_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0225X950g, + "subcore_standard_vm_fixed0250_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0250X950g, + "subcore_standard_vm_fixed0275_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0275X950g, + "subcore_standard_vm_fixed0300_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0300X950g, + "subcore_standard_vm_fixed0325_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0325X950g, + "subcore_standard_vm_fixed0350_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0350X950g, + "subcore_standard_vm_fixed0375_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0375X950g, + "subcore_standard_vm_fixed0400_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0400X950g, + "subcore_standard_vm_fixed0425_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0425X950g, + "subcore_standard_vm_fixed0450_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0450X950g, + "subcore_standard_vm_fixed0475_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0475X950g, + "subcore_standard_vm_fixed0500_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0500X950g, + "subcore_standard_vm_fixed0525_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0525X950g, + "subcore_standard_vm_fixed0550_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0550X950g, + "subcore_standard_vm_fixed0575_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0575X950g, + "subcore_standard_vm_fixed0600_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0600X950g, + "subcore_standard_vm_fixed0625_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0625X950g, + "subcore_standard_vm_fixed0650_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0650X950g, + "subcore_standard_vm_fixed0675_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0675X950g, + "subcore_standard_vm_fixed0700_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0700X950g, + "subcore_standard_vm_fixed0725_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0725X950g, + "subcore_standard_vm_fixed0750_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0750X950g, + "subcore_standard_vm_fixed0775_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0775X950g, + "subcore_standard_vm_fixed0800_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0800X950g, + "subcore_standard_vm_fixed0825_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0825X950g, + "subcore_standard_vm_fixed0850_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0850X950g, + "subcore_standard_vm_fixed0875_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0875X950g, + "subcore_standard_vm_fixed0900_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0900X950g, + "subcore_standard_vm_fixed0925_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0925X950g, + "subcore_standard_vm_fixed0950_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0950X950g, + "subcore_standard_vm_fixed0975_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed0975X950g, + "subcore_standard_vm_fixed1000_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1000X950g, + "subcore_standard_vm_fixed1025_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1025X950g, + "subcore_standard_vm_fixed1050_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1050X950g, + "subcore_standard_vm_fixed1075_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1075X950g, + "subcore_standard_vm_fixed1100_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1100X950g, + "subcore_standard_vm_fixed1125_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1125X950g, + "subcore_standard_vm_fixed1150_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1150X950g, + "subcore_standard_vm_fixed1175_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1175X950g, + "subcore_standard_vm_fixed1200_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1200X950g, + "subcore_standard_vm_fixed1225_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1225X950g, + "subcore_standard_vm_fixed1250_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1250X950g, + "subcore_standard_vm_fixed1275_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1275X950g, + "subcore_standard_vm_fixed1300_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1300X950g, + "subcore_standard_vm_fixed1325_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1325X950g, + "subcore_standard_vm_fixed1350_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1350X950g, + "subcore_standard_vm_fixed1375_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1375X950g, + "subcore_standard_vm_fixed1400_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1400X950g, + "subcore_standard_vm_fixed1425_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1425X950g, + "subcore_standard_vm_fixed1450_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1450X950g, + "subcore_standard_vm_fixed1475_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1475X950g, + "subcore_standard_vm_fixed1500_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1500X950g, + "subcore_standard_vm_fixed1525_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1525X950g, + "subcore_standard_vm_fixed1550_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1550X950g, + "subcore_standard_vm_fixed1575_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1575X950g, + "subcore_standard_vm_fixed1600_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1600X950g, + "subcore_standard_vm_fixed1625_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1625X950g, + "subcore_standard_vm_fixed1650_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1650X950g, + "subcore_standard_vm_fixed1700_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1700X950g, + "subcore_standard_vm_fixed1725_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1725X950g, + "subcore_standard_vm_fixed1750_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1750X950g, + "subcore_standard_vm_fixed1800_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1800X950g, + "subcore_standard_vm_fixed1850_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1850X950g, + "subcore_standard_vm_fixed1875_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1875X950g, + "subcore_standard_vm_fixed1900_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1900X950g, + "subcore_standard_vm_fixed1925_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1925X950g, + "subcore_standard_vm_fixed1950_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed1950X950g, + "subcore_standard_vm_fixed2000_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2000X950g, + "subcore_standard_vm_fixed2025_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2025X950g, + "subcore_standard_vm_fixed2050_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2050X950g, + "subcore_standard_vm_fixed2100_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2100X950g, + "subcore_standard_vm_fixed2125_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2125X950g, + "subcore_standard_vm_fixed2150_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2150X950g, + "subcore_standard_vm_fixed2175_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2175X950g, + "subcore_standard_vm_fixed2200_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2200X950g, + "subcore_standard_vm_fixed2250_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2250X950g, + "subcore_standard_vm_fixed2275_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2275X950g, + "subcore_standard_vm_fixed2300_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2300X950g, + "subcore_standard_vm_fixed2325_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2325X950g, + "subcore_standard_vm_fixed2350_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2350X950g, + "subcore_standard_vm_fixed2375_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2375X950g, + "subcore_standard_vm_fixed2400_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2400X950g, + "subcore_standard_vm_fixed2450_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2450X950g, + "subcore_standard_vm_fixed2475_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2475X950g, + "subcore_standard_vm_fixed2500_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2500X950g, + "subcore_standard_vm_fixed2550_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2550X950g, + "subcore_standard_vm_fixed2600_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2600X950g, + "subcore_standard_vm_fixed2625_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2625X950g, + "subcore_standard_vm_fixed2650_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2650X950g, + "subcore_standard_vm_fixed2700_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2700X950g, + "subcore_standard_vm_fixed2750_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2750X950g, + "subcore_standard_vm_fixed2775_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2775X950g, + "subcore_standard_vm_fixed2800_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2800X950g, + "subcore_standard_vm_fixed2850_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2850X950g, + "subcore_standard_vm_fixed2875_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2875X950g, + "subcore_standard_vm_fixed2900_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2900X950g, + "subcore_standard_vm_fixed2925_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2925X950g, + "subcore_standard_vm_fixed2950_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2950X950g, + "subcore_standard_vm_fixed2975_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed2975X950g, + "subcore_standard_vm_fixed3000_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3000X950g, + "subcore_standard_vm_fixed3025_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3025X950g, + "subcore_standard_vm_fixed3050_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3050X950g, + "subcore_standard_vm_fixed3075_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3075X950g, + "subcore_standard_vm_fixed3100_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3100X950g, + "subcore_standard_vm_fixed3125_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3125X950g, + "subcore_standard_vm_fixed3150_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3150X950g, + "subcore_standard_vm_fixed3200_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3200X950g, + "subcore_standard_vm_fixed3225_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3225X950g, + "subcore_standard_vm_fixed3250_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3250X950g, + "subcore_standard_vm_fixed3300_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3300X950g, + "subcore_standard_vm_fixed3325_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3325X950g, + "subcore_standard_vm_fixed3375_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3375X950g, + "subcore_standard_vm_fixed3400_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3400X950g, + "subcore_standard_vm_fixed3450_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3450X950g, + "subcore_standard_vm_fixed3500_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3500X950g, + "subcore_standard_vm_fixed3525_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3525X950g, + "subcore_standard_vm_fixed3575_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3575X950g, + "subcore_standard_vm_fixed3600_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3600X950g, + "subcore_standard_vm_fixed3625_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3625X950g, + "subcore_standard_vm_fixed3675_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3675X950g, + "subcore_standard_vm_fixed3700_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3700X950g, + "subcore_standard_vm_fixed3750_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3750X950g, + "subcore_standard_vm_fixed3800_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3800X950g, + "subcore_standard_vm_fixed3825_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3825X950g, + "subcore_standard_vm_fixed3850_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3850X950g, + "subcore_standard_vm_fixed3875_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3875X950g, + "subcore_standard_vm_fixed3900_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3900X950g, + "subcore_standard_vm_fixed3975_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed3975X950g, + "subcore_standard_vm_fixed4000_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4000X950g, + "subcore_standard_vm_fixed4025_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4025X950g, + "subcore_standard_vm_fixed4050_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4050X950g, + "subcore_standard_vm_fixed4100_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4100X950g, + "subcore_standard_vm_fixed4125_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4125X950g, + "subcore_standard_vm_fixed4200_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4200X950g, + "subcore_standard_vm_fixed4225_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4225X950g, + "subcore_standard_vm_fixed4250_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4250X950g, + "subcore_standard_vm_fixed4275_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4275X950g, + "subcore_standard_vm_fixed4300_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4300X950g, + "subcore_standard_vm_fixed4350_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4350X950g, + "subcore_standard_vm_fixed4375_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4375X950g, + "subcore_standard_vm_fixed4400_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4400X950g, + "subcore_standard_vm_fixed4425_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4425X950g, + "subcore_standard_vm_fixed4500_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4500X950g, + "subcore_standard_vm_fixed4550_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4550X950g, + "subcore_standard_vm_fixed4575_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4575X950g, + "subcore_standard_vm_fixed4600_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4600X950g, + "subcore_standard_vm_fixed4625_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4625X950g, + "subcore_standard_vm_fixed4650_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4650X950g, + "subcore_standard_vm_fixed4675_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4675X950g, + "subcore_standard_vm_fixed4700_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4700X950g, + "subcore_standard_vm_fixed4725_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4725X950g, + "subcore_standard_vm_fixed4750_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4750X950g, + "subcore_standard_vm_fixed4800_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4800X950g, + "subcore_standard_vm_fixed4875_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4875X950g, + "subcore_standard_vm_fixed4900_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4900X950g, + "subcore_standard_vm_fixed4950_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed4950X950g, + "subcore_standard_vm_fixed5000_x9_50g": UpdateVnicShapeDetailsVnicShapeSubcoreStandardVmFixed5000X950g, + "entirehost_x9_50g": UpdateVnicShapeDetailsVnicShapeEntirehostX950g, +} + +// GetUpdateVnicShapeDetailsVnicShapeEnumValues Enumerates the set of values for UpdateVnicShapeDetailsVnicShapeEnum +func GetUpdateVnicShapeDetailsVnicShapeEnumValues() []UpdateVnicShapeDetailsVnicShapeEnum { + values := make([]UpdateVnicShapeDetailsVnicShapeEnum, 0) + for _, v := range mappingUpdateVnicShapeDetailsVnicShapeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVnicShapeDetailsVnicShapeEnumStringValues Enumerates the set of values in String for UpdateVnicShapeDetailsVnicShapeEnum +func GetUpdateVnicShapeDetailsVnicShapeEnumStringValues() []string { + return []string{ + "DYNAMIC", + "FIXED0040", + "FIXED0060", + "FIXED0060_PSM", + "FIXED0100", + "FIXED0120", + "FIXED0120_2X", + "FIXED0200", + "FIXED0240", + "FIXED0480", + "ENTIREHOST", + "DYNAMIC_25G", + "FIXED0040_25G", + "FIXED0100_25G", + "FIXED0200_25G", + "FIXED0400_25G", + "FIXED0800_25G", + "FIXED1600_25G", + "FIXED2400_25G", + "ENTIREHOST_25G", + "DYNAMIC_E1_25G", + "FIXED0040_E1_25G", + "FIXED0070_E1_25G", + "FIXED0140_E1_25G", + "FIXED0280_E1_25G", + "FIXED0560_E1_25G", + "FIXED1120_E1_25G", + "FIXED1680_E1_25G", + "ENTIREHOST_E1_25G", + "DYNAMIC_B1_25G", + "FIXED0040_B1_25G", + "FIXED0060_B1_25G", + "FIXED0120_B1_25G", + "FIXED0240_B1_25G", + "FIXED0480_B1_25G", + "FIXED0960_B1_25G", + "ENTIREHOST_B1_25G", + "MICRO_VM_FIXED0048_E1_25G", + "MICRO_LB_FIXED0001_E1_25G", + "VNICAAS_FIXED0200", + "VNICAAS_FIXED0400", + "VNICAAS_FIXED0700", + "VNICAAS_NLB_APPROVED_10G", + "VNICAAS_NLB_APPROVED_25G", + "VNICAAS_TELESIS_25G", + "VNICAAS_TELESIS_10G", + "VNICAAS_AMBASSADOR_FIXED0100", + "VNICAAS_TELESIS_GAMMA", + "VNICAAS_PRIVATEDNS", + "VNICAAS_FWAAS", + "VNICAAS_LBAAS_FREE", + "VNICAAS_LBAAS_8G_512K", + "VNICAAS_LBAAS_8G_1M", + "VNICAAS_LBAAS_8G_2M", + "VNICAAS_LBAAS_8G_3M", + "VNICAAS_LBAAS_8G_1M_8GHOST", + "VNICAAS_LBAAS_8G_1M_16GHOST", + "DYNAMIC_E3_50G", + "FIXED0040_E3_50G", + "FIXED0100_E3_50G", + "FIXED0200_E3_50G", + "FIXED0300_E3_50G", + "FIXED0400_E3_50G", + "FIXED0500_E3_50G", + "FIXED0600_E3_50G", + "FIXED0700_E3_50G", + "FIXED0800_E3_50G", + "FIXED0900_E3_50G", + "FIXED1000_E3_50G", + "FIXED1100_E3_50G", + "FIXED1200_E3_50G", + "FIXED1300_E3_50G", + "FIXED1400_E3_50G", + "FIXED1500_E3_50G", + "FIXED1600_E3_50G", + "FIXED1700_E3_50G", + "FIXED1800_E3_50G", + "FIXED1900_E3_50G", + "FIXED2000_E3_50G", + "FIXED2100_E3_50G", + "FIXED2200_E3_50G", + "FIXED2300_E3_50G", + "FIXED2400_E3_50G", + "FIXED2500_E3_50G", + "FIXED2600_E3_50G", + "FIXED2700_E3_50G", + "FIXED2800_E3_50G", + "FIXED2900_E3_50G", + "FIXED3000_E3_50G", + "FIXED3100_E3_50G", + "FIXED3200_E3_50G", + "FIXED3300_E3_50G", + "FIXED3400_E3_50G", + "FIXED3500_E3_50G", + "FIXED3600_E3_50G", + "FIXED3700_E3_50G", + "FIXED3800_E3_50G", + "FIXED3900_E3_50G", + "FIXED4000_E3_50G", + "ENTIREHOST_E3_50G", + "DYNAMIC_E4_50G", + "FIXED0040_E4_50G", + "FIXED0100_E4_50G", + "FIXED0200_E4_50G", + "FIXED0300_E4_50G", + "FIXED0400_E4_50G", + "FIXED0500_E4_50G", + "FIXED0600_E4_50G", + "FIXED0700_E4_50G", + "FIXED0800_E4_50G", + "FIXED0900_E4_50G", + "FIXED1000_E4_50G", + "FIXED1100_E4_50G", + "FIXED1200_E4_50G", + "FIXED1300_E4_50G", + "FIXED1400_E4_50G", + "FIXED1500_E4_50G", + "FIXED1600_E4_50G", + "FIXED1700_E4_50G", + "FIXED1800_E4_50G", + "FIXED1900_E4_50G", + "FIXED2000_E4_50G", + "FIXED2100_E4_50G", + "FIXED2200_E4_50G", + "FIXED2300_E4_50G", + "FIXED2400_E4_50G", + "FIXED2500_E4_50G", + "FIXED2600_E4_50G", + "FIXED2700_E4_50G", + "FIXED2800_E4_50G", + "FIXED2900_E4_50G", + "FIXED3000_E4_50G", + "FIXED3100_E4_50G", + "FIXED3200_E4_50G", + "FIXED3300_E4_50G", + "FIXED3400_E4_50G", + "FIXED3500_E4_50G", + "FIXED3600_E4_50G", + "FIXED3700_E4_50G", + "FIXED3800_E4_50G", + "FIXED3900_E4_50G", + "FIXED4000_E4_50G", + "ENTIREHOST_E4_50G", + "Micro_VM_Fixed0050_E3_50G", + "Micro_VM_Fixed0050_E4_50G", + "SUBCORE_VM_FIXED0025_E3_50G", + "SUBCORE_VM_FIXED0050_E3_50G", + "SUBCORE_VM_FIXED0075_E3_50G", + "SUBCORE_VM_FIXED0100_E3_50G", + "SUBCORE_VM_FIXED0125_E3_50G", + "SUBCORE_VM_FIXED0150_E3_50G", + "SUBCORE_VM_FIXED0175_E3_50G", + "SUBCORE_VM_FIXED0200_E3_50G", + "SUBCORE_VM_FIXED0225_E3_50G", + "SUBCORE_VM_FIXED0250_E3_50G", + "SUBCORE_VM_FIXED0275_E3_50G", + "SUBCORE_VM_FIXED0300_E3_50G", + "SUBCORE_VM_FIXED0325_E3_50G", + "SUBCORE_VM_FIXED0350_E3_50G", + "SUBCORE_VM_FIXED0375_E3_50G", + "SUBCORE_VM_FIXED0400_E3_50G", + "SUBCORE_VM_FIXED0425_E3_50G", + "SUBCORE_VM_FIXED0450_E3_50G", + "SUBCORE_VM_FIXED0475_E3_50G", + "SUBCORE_VM_FIXED0500_E3_50G", + "SUBCORE_VM_FIXED0525_E3_50G", + "SUBCORE_VM_FIXED0550_E3_50G", + "SUBCORE_VM_FIXED0575_E3_50G", + "SUBCORE_VM_FIXED0600_E3_50G", + "SUBCORE_VM_FIXED0625_E3_50G", + "SUBCORE_VM_FIXED0650_E3_50G", + "SUBCORE_VM_FIXED0675_E3_50G", + "SUBCORE_VM_FIXED0700_E3_50G", + "SUBCORE_VM_FIXED0725_E3_50G", + "SUBCORE_VM_FIXED0750_E3_50G", + "SUBCORE_VM_FIXED0775_E3_50G", + "SUBCORE_VM_FIXED0800_E3_50G", + "SUBCORE_VM_FIXED0825_E3_50G", + "SUBCORE_VM_FIXED0850_E3_50G", + "SUBCORE_VM_FIXED0875_E3_50G", + "SUBCORE_VM_FIXED0900_E3_50G", + "SUBCORE_VM_FIXED0925_E3_50G", + "SUBCORE_VM_FIXED0950_E3_50G", + "SUBCORE_VM_FIXED0975_E3_50G", + "SUBCORE_VM_FIXED1000_E3_50G", + "SUBCORE_VM_FIXED1025_E3_50G", + "SUBCORE_VM_FIXED1050_E3_50G", + "SUBCORE_VM_FIXED1075_E3_50G", + "SUBCORE_VM_FIXED1100_E3_50G", + "SUBCORE_VM_FIXED1125_E3_50G", + "SUBCORE_VM_FIXED1150_E3_50G", + "SUBCORE_VM_FIXED1175_E3_50G", + "SUBCORE_VM_FIXED1200_E3_50G", + "SUBCORE_VM_FIXED1225_E3_50G", + "SUBCORE_VM_FIXED1250_E3_50G", + "SUBCORE_VM_FIXED1275_E3_50G", + "SUBCORE_VM_FIXED1300_E3_50G", + "SUBCORE_VM_FIXED1325_E3_50G", + "SUBCORE_VM_FIXED1350_E3_50G", + "SUBCORE_VM_FIXED1375_E3_50G", + "SUBCORE_VM_FIXED1400_E3_50G", + "SUBCORE_VM_FIXED1425_E3_50G", + "SUBCORE_VM_FIXED1450_E3_50G", + "SUBCORE_VM_FIXED1475_E3_50G", + "SUBCORE_VM_FIXED1500_E3_50G", + "SUBCORE_VM_FIXED1525_E3_50G", + "SUBCORE_VM_FIXED1550_E3_50G", + "SUBCORE_VM_FIXED1575_E3_50G", + "SUBCORE_VM_FIXED1600_E3_50G", + "SUBCORE_VM_FIXED1625_E3_50G", + "SUBCORE_VM_FIXED1650_E3_50G", + "SUBCORE_VM_FIXED1700_E3_50G", + "SUBCORE_VM_FIXED1725_E3_50G", + "SUBCORE_VM_FIXED1750_E3_50G", + "SUBCORE_VM_FIXED1800_E3_50G", + "SUBCORE_VM_FIXED1850_E3_50G", + "SUBCORE_VM_FIXED1875_E3_50G", + "SUBCORE_VM_FIXED1900_E3_50G", + "SUBCORE_VM_FIXED1925_E3_50G", + "SUBCORE_VM_FIXED1950_E3_50G", + "SUBCORE_VM_FIXED2000_E3_50G", + "SUBCORE_VM_FIXED2025_E3_50G", + "SUBCORE_VM_FIXED2050_E3_50G", + "SUBCORE_VM_FIXED2100_E3_50G", + "SUBCORE_VM_FIXED2125_E3_50G", + "SUBCORE_VM_FIXED2150_E3_50G", + "SUBCORE_VM_FIXED2175_E3_50G", + "SUBCORE_VM_FIXED2200_E3_50G", + "SUBCORE_VM_FIXED2250_E3_50G", + "SUBCORE_VM_FIXED2275_E3_50G", + "SUBCORE_VM_FIXED2300_E3_50G", + "SUBCORE_VM_FIXED2325_E3_50G", + "SUBCORE_VM_FIXED2350_E3_50G", + "SUBCORE_VM_FIXED2375_E3_50G", + "SUBCORE_VM_FIXED2400_E3_50G", + "SUBCORE_VM_FIXED2450_E3_50G", + "SUBCORE_VM_FIXED2475_E3_50G", + "SUBCORE_VM_FIXED2500_E3_50G", + "SUBCORE_VM_FIXED2550_E3_50G", + "SUBCORE_VM_FIXED2600_E3_50G", + "SUBCORE_VM_FIXED2625_E3_50G", + "SUBCORE_VM_FIXED2650_E3_50G", + "SUBCORE_VM_FIXED2700_E3_50G", + "SUBCORE_VM_FIXED2750_E3_50G", + "SUBCORE_VM_FIXED2775_E3_50G", + "SUBCORE_VM_FIXED2800_E3_50G", + "SUBCORE_VM_FIXED2850_E3_50G", + "SUBCORE_VM_FIXED2875_E3_50G", + "SUBCORE_VM_FIXED2900_E3_50G", + "SUBCORE_VM_FIXED2925_E3_50G", + "SUBCORE_VM_FIXED2950_E3_50G", + "SUBCORE_VM_FIXED2975_E3_50G", + "SUBCORE_VM_FIXED3000_E3_50G", + "SUBCORE_VM_FIXED3025_E3_50G", + "SUBCORE_VM_FIXED3050_E3_50G", + "SUBCORE_VM_FIXED3075_E3_50G", + "SUBCORE_VM_FIXED3100_E3_50G", + "SUBCORE_VM_FIXED3125_E3_50G", + "SUBCORE_VM_FIXED3150_E3_50G", + "SUBCORE_VM_FIXED3200_E3_50G", + "SUBCORE_VM_FIXED3225_E3_50G", + "SUBCORE_VM_FIXED3250_E3_50G", + "SUBCORE_VM_FIXED3300_E3_50G", + "SUBCORE_VM_FIXED3325_E3_50G", + "SUBCORE_VM_FIXED3375_E3_50G", + "SUBCORE_VM_FIXED3400_E3_50G", + "SUBCORE_VM_FIXED3450_E3_50G", + "SUBCORE_VM_FIXED3500_E3_50G", + "SUBCORE_VM_FIXED3525_E3_50G", + "SUBCORE_VM_FIXED3575_E3_50G", + "SUBCORE_VM_FIXED3600_E3_50G", + "SUBCORE_VM_FIXED3625_E3_50G", + "SUBCORE_VM_FIXED3675_E3_50G", + "SUBCORE_VM_FIXED3700_E3_50G", + "SUBCORE_VM_FIXED3750_E3_50G", + "SUBCORE_VM_FIXED3800_E3_50G", + "SUBCORE_VM_FIXED3825_E3_50G", + "SUBCORE_VM_FIXED3850_E3_50G", + "SUBCORE_VM_FIXED3875_E3_50G", + "SUBCORE_VM_FIXED3900_E3_50G", + "SUBCORE_VM_FIXED3975_E3_50G", + "SUBCORE_VM_FIXED4000_E3_50G", + "SUBCORE_VM_FIXED4025_E3_50G", + "SUBCORE_VM_FIXED4050_E3_50G", + "SUBCORE_VM_FIXED4100_E3_50G", + "SUBCORE_VM_FIXED4125_E3_50G", + "SUBCORE_VM_FIXED4200_E3_50G", + "SUBCORE_VM_FIXED4225_E3_50G", + "SUBCORE_VM_FIXED4250_E3_50G", + "SUBCORE_VM_FIXED4275_E3_50G", + "SUBCORE_VM_FIXED4300_E3_50G", + "SUBCORE_VM_FIXED4350_E3_50G", + "SUBCORE_VM_FIXED4375_E3_50G", + "SUBCORE_VM_FIXED4400_E3_50G", + "SUBCORE_VM_FIXED4425_E3_50G", + "SUBCORE_VM_FIXED4500_E3_50G", + "SUBCORE_VM_FIXED4550_E3_50G", + "SUBCORE_VM_FIXED4575_E3_50G", + "SUBCORE_VM_FIXED4600_E3_50G", + "SUBCORE_VM_FIXED4625_E3_50G", + "SUBCORE_VM_FIXED4650_E3_50G", + "SUBCORE_VM_FIXED4675_E3_50G", + "SUBCORE_VM_FIXED4700_E3_50G", + "SUBCORE_VM_FIXED4725_E3_50G", + "SUBCORE_VM_FIXED4750_E3_50G", + "SUBCORE_VM_FIXED4800_E3_50G", + "SUBCORE_VM_FIXED4875_E3_50G", + "SUBCORE_VM_FIXED4900_E3_50G", + "SUBCORE_VM_FIXED4950_E3_50G", + "SUBCORE_VM_FIXED5000_E3_50G", + "SUBCORE_VM_FIXED0025_E4_50G", + "SUBCORE_VM_FIXED0050_E4_50G", + "SUBCORE_VM_FIXED0075_E4_50G", + "SUBCORE_VM_FIXED0100_E4_50G", + "SUBCORE_VM_FIXED0125_E4_50G", + "SUBCORE_VM_FIXED0150_E4_50G", + "SUBCORE_VM_FIXED0175_E4_50G", + "SUBCORE_VM_FIXED0200_E4_50G", + "SUBCORE_VM_FIXED0225_E4_50G", + "SUBCORE_VM_FIXED0250_E4_50G", + "SUBCORE_VM_FIXED0275_E4_50G", + "SUBCORE_VM_FIXED0300_E4_50G", + "SUBCORE_VM_FIXED0325_E4_50G", + "SUBCORE_VM_FIXED0350_E4_50G", + "SUBCORE_VM_FIXED0375_E4_50G", + "SUBCORE_VM_FIXED0400_E4_50G", + "SUBCORE_VM_FIXED0425_E4_50G", + "SUBCORE_VM_FIXED0450_E4_50G", + "SUBCORE_VM_FIXED0475_E4_50G", + "SUBCORE_VM_FIXED0500_E4_50G", + "SUBCORE_VM_FIXED0525_E4_50G", + "SUBCORE_VM_FIXED0550_E4_50G", + "SUBCORE_VM_FIXED0575_E4_50G", + "SUBCORE_VM_FIXED0600_E4_50G", + "SUBCORE_VM_FIXED0625_E4_50G", + "SUBCORE_VM_FIXED0650_E4_50G", + "SUBCORE_VM_FIXED0675_E4_50G", + "SUBCORE_VM_FIXED0700_E4_50G", + "SUBCORE_VM_FIXED0725_E4_50G", + "SUBCORE_VM_FIXED0750_E4_50G", + "SUBCORE_VM_FIXED0775_E4_50G", + "SUBCORE_VM_FIXED0800_E4_50G", + "SUBCORE_VM_FIXED0825_E4_50G", + "SUBCORE_VM_FIXED0850_E4_50G", + "SUBCORE_VM_FIXED0875_E4_50G", + "SUBCORE_VM_FIXED0900_E4_50G", + "SUBCORE_VM_FIXED0925_E4_50G", + "SUBCORE_VM_FIXED0950_E4_50G", + "SUBCORE_VM_FIXED0975_E4_50G", + "SUBCORE_VM_FIXED1000_E4_50G", + "SUBCORE_VM_FIXED1025_E4_50G", + "SUBCORE_VM_FIXED1050_E4_50G", + "SUBCORE_VM_FIXED1075_E4_50G", + "SUBCORE_VM_FIXED1100_E4_50G", + "SUBCORE_VM_FIXED1125_E4_50G", + "SUBCORE_VM_FIXED1150_E4_50G", + "SUBCORE_VM_FIXED1175_E4_50G", + "SUBCORE_VM_FIXED1200_E4_50G", + "SUBCORE_VM_FIXED1225_E4_50G", + "SUBCORE_VM_FIXED1250_E4_50G", + "SUBCORE_VM_FIXED1275_E4_50G", + "SUBCORE_VM_FIXED1300_E4_50G", + "SUBCORE_VM_FIXED1325_E4_50G", + "SUBCORE_VM_FIXED1350_E4_50G", + "SUBCORE_VM_FIXED1375_E4_50G", + "SUBCORE_VM_FIXED1400_E4_50G", + "SUBCORE_VM_FIXED1425_E4_50G", + "SUBCORE_VM_FIXED1450_E4_50G", + "SUBCORE_VM_FIXED1475_E4_50G", + "SUBCORE_VM_FIXED1500_E4_50G", + "SUBCORE_VM_FIXED1525_E4_50G", + "SUBCORE_VM_FIXED1550_E4_50G", + "SUBCORE_VM_FIXED1575_E4_50G", + "SUBCORE_VM_FIXED1600_E4_50G", + "SUBCORE_VM_FIXED1625_E4_50G", + "SUBCORE_VM_FIXED1650_E4_50G", + "SUBCORE_VM_FIXED1700_E4_50G", + "SUBCORE_VM_FIXED1725_E4_50G", + "SUBCORE_VM_FIXED1750_E4_50G", + "SUBCORE_VM_FIXED1800_E4_50G", + "SUBCORE_VM_FIXED1850_E4_50G", + "SUBCORE_VM_FIXED1875_E4_50G", + "SUBCORE_VM_FIXED1900_E4_50G", + "SUBCORE_VM_FIXED1925_E4_50G", + "SUBCORE_VM_FIXED1950_E4_50G", + "SUBCORE_VM_FIXED2000_E4_50G", + "SUBCORE_VM_FIXED2025_E4_50G", + "SUBCORE_VM_FIXED2050_E4_50G", + "SUBCORE_VM_FIXED2100_E4_50G", + "SUBCORE_VM_FIXED2125_E4_50G", + "SUBCORE_VM_FIXED2150_E4_50G", + "SUBCORE_VM_FIXED2175_E4_50G", + "SUBCORE_VM_FIXED2200_E4_50G", + "SUBCORE_VM_FIXED2250_E4_50G", + "SUBCORE_VM_FIXED2275_E4_50G", + "SUBCORE_VM_FIXED2300_E4_50G", + "SUBCORE_VM_FIXED2325_E4_50G", + "SUBCORE_VM_FIXED2350_E4_50G", + "SUBCORE_VM_FIXED2375_E4_50G", + "SUBCORE_VM_FIXED2400_E4_50G", + "SUBCORE_VM_FIXED2450_E4_50G", + "SUBCORE_VM_FIXED2475_E4_50G", + "SUBCORE_VM_FIXED2500_E4_50G", + "SUBCORE_VM_FIXED2550_E4_50G", + "SUBCORE_VM_FIXED2600_E4_50G", + "SUBCORE_VM_FIXED2625_E4_50G", + "SUBCORE_VM_FIXED2650_E4_50G", + "SUBCORE_VM_FIXED2700_E4_50G", + "SUBCORE_VM_FIXED2750_E4_50G", + "SUBCORE_VM_FIXED2775_E4_50G", + "SUBCORE_VM_FIXED2800_E4_50G", + "SUBCORE_VM_FIXED2850_E4_50G", + "SUBCORE_VM_FIXED2875_E4_50G", + "SUBCORE_VM_FIXED2900_E4_50G", + "SUBCORE_VM_FIXED2925_E4_50G", + "SUBCORE_VM_FIXED2950_E4_50G", + "SUBCORE_VM_FIXED2975_E4_50G", + "SUBCORE_VM_FIXED3000_E4_50G", + "SUBCORE_VM_FIXED3025_E4_50G", + "SUBCORE_VM_FIXED3050_E4_50G", + "SUBCORE_VM_FIXED3075_E4_50G", + "SUBCORE_VM_FIXED3100_E4_50G", + "SUBCORE_VM_FIXED3125_E4_50G", + "SUBCORE_VM_FIXED3150_E4_50G", + "SUBCORE_VM_FIXED3200_E4_50G", + "SUBCORE_VM_FIXED3225_E4_50G", + "SUBCORE_VM_FIXED3250_E4_50G", + "SUBCORE_VM_FIXED3300_E4_50G", + "SUBCORE_VM_FIXED3325_E4_50G", + "SUBCORE_VM_FIXED3375_E4_50G", + "SUBCORE_VM_FIXED3400_E4_50G", + "SUBCORE_VM_FIXED3450_E4_50G", + "SUBCORE_VM_FIXED3500_E4_50G", + "SUBCORE_VM_FIXED3525_E4_50G", + "SUBCORE_VM_FIXED3575_E4_50G", + "SUBCORE_VM_FIXED3600_E4_50G", + "SUBCORE_VM_FIXED3625_E4_50G", + "SUBCORE_VM_FIXED3675_E4_50G", + "SUBCORE_VM_FIXED3700_E4_50G", + "SUBCORE_VM_FIXED3750_E4_50G", + "SUBCORE_VM_FIXED3800_E4_50G", + "SUBCORE_VM_FIXED3825_E4_50G", + "SUBCORE_VM_FIXED3850_E4_50G", + "SUBCORE_VM_FIXED3875_E4_50G", + "SUBCORE_VM_FIXED3900_E4_50G", + "SUBCORE_VM_FIXED3975_E4_50G", + "SUBCORE_VM_FIXED4000_E4_50G", + "SUBCORE_VM_FIXED4025_E4_50G", + "SUBCORE_VM_FIXED4050_E4_50G", + "SUBCORE_VM_FIXED4100_E4_50G", + "SUBCORE_VM_FIXED4125_E4_50G", + "SUBCORE_VM_FIXED4200_E4_50G", + "SUBCORE_VM_FIXED4225_E4_50G", + "SUBCORE_VM_FIXED4250_E4_50G", + "SUBCORE_VM_FIXED4275_E4_50G", + "SUBCORE_VM_FIXED4300_E4_50G", + "SUBCORE_VM_FIXED4350_E4_50G", + "SUBCORE_VM_FIXED4375_E4_50G", + "SUBCORE_VM_FIXED4400_E4_50G", + "SUBCORE_VM_FIXED4425_E4_50G", + "SUBCORE_VM_FIXED4500_E4_50G", + "SUBCORE_VM_FIXED4550_E4_50G", + "SUBCORE_VM_FIXED4575_E4_50G", + "SUBCORE_VM_FIXED4600_E4_50G", + "SUBCORE_VM_FIXED4625_E4_50G", + "SUBCORE_VM_FIXED4650_E4_50G", + "SUBCORE_VM_FIXED4675_E4_50G", + "SUBCORE_VM_FIXED4700_E4_50G", + "SUBCORE_VM_FIXED4725_E4_50G", + "SUBCORE_VM_FIXED4750_E4_50G", + "SUBCORE_VM_FIXED4800_E4_50G", + "SUBCORE_VM_FIXED4875_E4_50G", + "SUBCORE_VM_FIXED4900_E4_50G", + "SUBCORE_VM_FIXED4950_E4_50G", + "SUBCORE_VM_FIXED5000_E4_50G", + "SUBCORE_VM_FIXED0020_A1_50G", + "SUBCORE_VM_FIXED0040_A1_50G", + "SUBCORE_VM_FIXED0060_A1_50G", + "SUBCORE_VM_FIXED0080_A1_50G", + "SUBCORE_VM_FIXED0100_A1_50G", + "SUBCORE_VM_FIXED0120_A1_50G", + "SUBCORE_VM_FIXED0140_A1_50G", + "SUBCORE_VM_FIXED0160_A1_50G", + "SUBCORE_VM_FIXED0180_A1_50G", + "SUBCORE_VM_FIXED0200_A1_50G", + "SUBCORE_VM_FIXED0220_A1_50G", + "SUBCORE_VM_FIXED0240_A1_50G", + "SUBCORE_VM_FIXED0260_A1_50G", + "SUBCORE_VM_FIXED0280_A1_50G", + "SUBCORE_VM_FIXED0300_A1_50G", + "SUBCORE_VM_FIXED0320_A1_50G", + "SUBCORE_VM_FIXED0340_A1_50G", + "SUBCORE_VM_FIXED0360_A1_50G", + "SUBCORE_VM_FIXED0380_A1_50G", + "SUBCORE_VM_FIXED0400_A1_50G", + "SUBCORE_VM_FIXED0420_A1_50G", + "SUBCORE_VM_FIXED0440_A1_50G", + "SUBCORE_VM_FIXED0460_A1_50G", + "SUBCORE_VM_FIXED0480_A1_50G", + "SUBCORE_VM_FIXED0500_A1_50G", + "SUBCORE_VM_FIXED0520_A1_50G", + "SUBCORE_VM_FIXED0540_A1_50G", + "SUBCORE_VM_FIXED0560_A1_50G", + "SUBCORE_VM_FIXED0580_A1_50G", + "SUBCORE_VM_FIXED0600_A1_50G", + "SUBCORE_VM_FIXED0620_A1_50G", + "SUBCORE_VM_FIXED0640_A1_50G", + "SUBCORE_VM_FIXED0660_A1_50G", + "SUBCORE_VM_FIXED0680_A1_50G", + "SUBCORE_VM_FIXED0700_A1_50G", + "SUBCORE_VM_FIXED0720_A1_50G", + "SUBCORE_VM_FIXED0740_A1_50G", + "SUBCORE_VM_FIXED0760_A1_50G", + "SUBCORE_VM_FIXED0780_A1_50G", + "SUBCORE_VM_FIXED0800_A1_50G", + "SUBCORE_VM_FIXED0820_A1_50G", + "SUBCORE_VM_FIXED0840_A1_50G", + "SUBCORE_VM_FIXED0860_A1_50G", + "SUBCORE_VM_FIXED0880_A1_50G", + "SUBCORE_VM_FIXED0900_A1_50G", + "SUBCORE_VM_FIXED0920_A1_50G", + "SUBCORE_VM_FIXED0940_A1_50G", + "SUBCORE_VM_FIXED0960_A1_50G", + "SUBCORE_VM_FIXED0980_A1_50G", + "SUBCORE_VM_FIXED1000_A1_50G", + "SUBCORE_VM_FIXED1020_A1_50G", + "SUBCORE_VM_FIXED1040_A1_50G", + "SUBCORE_VM_FIXED1060_A1_50G", + "SUBCORE_VM_FIXED1080_A1_50G", + "SUBCORE_VM_FIXED1100_A1_50G", + "SUBCORE_VM_FIXED1120_A1_50G", + "SUBCORE_VM_FIXED1140_A1_50G", + "SUBCORE_VM_FIXED1160_A1_50G", + "SUBCORE_VM_FIXED1180_A1_50G", + "SUBCORE_VM_FIXED1200_A1_50G", + "SUBCORE_VM_FIXED1220_A1_50G", + "SUBCORE_VM_FIXED1240_A1_50G", + "SUBCORE_VM_FIXED1260_A1_50G", + "SUBCORE_VM_FIXED1280_A1_50G", + "SUBCORE_VM_FIXED1300_A1_50G", + "SUBCORE_VM_FIXED1320_A1_50G", + "SUBCORE_VM_FIXED1340_A1_50G", + "SUBCORE_VM_FIXED1360_A1_50G", + "SUBCORE_VM_FIXED1380_A1_50G", + "SUBCORE_VM_FIXED1400_A1_50G", + "SUBCORE_VM_FIXED1420_A1_50G", + "SUBCORE_VM_FIXED1440_A1_50G", + "SUBCORE_VM_FIXED1460_A1_50G", + "SUBCORE_VM_FIXED1480_A1_50G", + "SUBCORE_VM_FIXED1500_A1_50G", + "SUBCORE_VM_FIXED1520_A1_50G", + "SUBCORE_VM_FIXED1540_A1_50G", + "SUBCORE_VM_FIXED1560_A1_50G", + "SUBCORE_VM_FIXED1580_A1_50G", + "SUBCORE_VM_FIXED1600_A1_50G", + "SUBCORE_VM_FIXED1620_A1_50G", + "SUBCORE_VM_FIXED1640_A1_50G", + "SUBCORE_VM_FIXED1660_A1_50G", + "SUBCORE_VM_FIXED1680_A1_50G", + "SUBCORE_VM_FIXED1700_A1_50G", + "SUBCORE_VM_FIXED1720_A1_50G", + "SUBCORE_VM_FIXED1740_A1_50G", + "SUBCORE_VM_FIXED1760_A1_50G", + "SUBCORE_VM_FIXED1780_A1_50G", + "SUBCORE_VM_FIXED1800_A1_50G", + "SUBCORE_VM_FIXED1820_A1_50G", + "SUBCORE_VM_FIXED1840_A1_50G", + "SUBCORE_VM_FIXED1860_A1_50G", + "SUBCORE_VM_FIXED1880_A1_50G", + "SUBCORE_VM_FIXED1900_A1_50G", + "SUBCORE_VM_FIXED1920_A1_50G", + "SUBCORE_VM_FIXED1940_A1_50G", + "SUBCORE_VM_FIXED1960_A1_50G", + "SUBCORE_VM_FIXED1980_A1_50G", + "SUBCORE_VM_FIXED2000_A1_50G", + "SUBCORE_VM_FIXED2020_A1_50G", + "SUBCORE_VM_FIXED2040_A1_50G", + "SUBCORE_VM_FIXED2060_A1_50G", + "SUBCORE_VM_FIXED2080_A1_50G", + "SUBCORE_VM_FIXED2100_A1_50G", + "SUBCORE_VM_FIXED2120_A1_50G", + "SUBCORE_VM_FIXED2140_A1_50G", + "SUBCORE_VM_FIXED2160_A1_50G", + "SUBCORE_VM_FIXED2180_A1_50G", + "SUBCORE_VM_FIXED2200_A1_50G", + "SUBCORE_VM_FIXED2220_A1_50G", + "SUBCORE_VM_FIXED2240_A1_50G", + "SUBCORE_VM_FIXED2260_A1_50G", + "SUBCORE_VM_FIXED2280_A1_50G", + "SUBCORE_VM_FIXED2300_A1_50G", + "SUBCORE_VM_FIXED2320_A1_50G", + "SUBCORE_VM_FIXED2340_A1_50G", + "SUBCORE_VM_FIXED2360_A1_50G", + "SUBCORE_VM_FIXED2380_A1_50G", + "SUBCORE_VM_FIXED2400_A1_50G", + "SUBCORE_VM_FIXED2420_A1_50G", + "SUBCORE_VM_FIXED2440_A1_50G", + "SUBCORE_VM_FIXED2460_A1_50G", + "SUBCORE_VM_FIXED2480_A1_50G", + "SUBCORE_VM_FIXED2500_A1_50G", + "SUBCORE_VM_FIXED2520_A1_50G", + "SUBCORE_VM_FIXED2540_A1_50G", + "SUBCORE_VM_FIXED2560_A1_50G", + "SUBCORE_VM_FIXED2580_A1_50G", + "SUBCORE_VM_FIXED2600_A1_50G", + "SUBCORE_VM_FIXED2620_A1_50G", + "SUBCORE_VM_FIXED2640_A1_50G", + "SUBCORE_VM_FIXED2660_A1_50G", + "SUBCORE_VM_FIXED2680_A1_50G", + "SUBCORE_VM_FIXED2700_A1_50G", + "SUBCORE_VM_FIXED2720_A1_50G", + "SUBCORE_VM_FIXED2740_A1_50G", + "SUBCORE_VM_FIXED2760_A1_50G", + "SUBCORE_VM_FIXED2780_A1_50G", + "SUBCORE_VM_FIXED2800_A1_50G", + "SUBCORE_VM_FIXED2820_A1_50G", + "SUBCORE_VM_FIXED2840_A1_50G", + "SUBCORE_VM_FIXED2860_A1_50G", + "SUBCORE_VM_FIXED2880_A1_50G", + "SUBCORE_VM_FIXED2900_A1_50G", + "SUBCORE_VM_FIXED2920_A1_50G", + "SUBCORE_VM_FIXED2940_A1_50G", + "SUBCORE_VM_FIXED2960_A1_50G", + "SUBCORE_VM_FIXED2980_A1_50G", + "SUBCORE_VM_FIXED3000_A1_50G", + "SUBCORE_VM_FIXED3020_A1_50G", + "SUBCORE_VM_FIXED3040_A1_50G", + "SUBCORE_VM_FIXED3060_A1_50G", + "SUBCORE_VM_FIXED3080_A1_50G", + "SUBCORE_VM_FIXED3100_A1_50G", + "SUBCORE_VM_FIXED3120_A1_50G", + "SUBCORE_VM_FIXED3140_A1_50G", + "SUBCORE_VM_FIXED3160_A1_50G", + "SUBCORE_VM_FIXED3180_A1_50G", + "SUBCORE_VM_FIXED3200_A1_50G", + "SUBCORE_VM_FIXED3220_A1_50G", + "SUBCORE_VM_FIXED3240_A1_50G", + "SUBCORE_VM_FIXED3260_A1_50G", + "SUBCORE_VM_FIXED3280_A1_50G", + "SUBCORE_VM_FIXED3300_A1_50G", + "SUBCORE_VM_FIXED3320_A1_50G", + "SUBCORE_VM_FIXED3340_A1_50G", + "SUBCORE_VM_FIXED3360_A1_50G", + "SUBCORE_VM_FIXED3380_A1_50G", + "SUBCORE_VM_FIXED3400_A1_50G", + "SUBCORE_VM_FIXED3420_A1_50G", + "SUBCORE_VM_FIXED3440_A1_50G", + "SUBCORE_VM_FIXED3460_A1_50G", + "SUBCORE_VM_FIXED3480_A1_50G", + "SUBCORE_VM_FIXED3500_A1_50G", + "SUBCORE_VM_FIXED3520_A1_50G", + "SUBCORE_VM_FIXED3540_A1_50G", + "SUBCORE_VM_FIXED3560_A1_50G", + "SUBCORE_VM_FIXED3580_A1_50G", + "SUBCORE_VM_FIXED3600_A1_50G", + "SUBCORE_VM_FIXED3620_A1_50G", + "SUBCORE_VM_FIXED3640_A1_50G", + "SUBCORE_VM_FIXED3660_A1_50G", + "SUBCORE_VM_FIXED3680_A1_50G", + "SUBCORE_VM_FIXED3700_A1_50G", + "SUBCORE_VM_FIXED3720_A1_50G", + "SUBCORE_VM_FIXED3740_A1_50G", + "SUBCORE_VM_FIXED3760_A1_50G", + "SUBCORE_VM_FIXED3780_A1_50G", + "SUBCORE_VM_FIXED3800_A1_50G", + "SUBCORE_VM_FIXED3820_A1_50G", + "SUBCORE_VM_FIXED3840_A1_50G", + "SUBCORE_VM_FIXED3860_A1_50G", + "SUBCORE_VM_FIXED3880_A1_50G", + "SUBCORE_VM_FIXED3900_A1_50G", + "SUBCORE_VM_FIXED3920_A1_50G", + "SUBCORE_VM_FIXED3940_A1_50G", + "SUBCORE_VM_FIXED3960_A1_50G", + "SUBCORE_VM_FIXED3980_A1_50G", + "SUBCORE_VM_FIXED4000_A1_50G", + "SUBCORE_VM_FIXED4020_A1_50G", + "SUBCORE_VM_FIXED4040_A1_50G", + "SUBCORE_VM_FIXED4060_A1_50G", + "SUBCORE_VM_FIXED4080_A1_50G", + "SUBCORE_VM_FIXED4100_A1_50G", + "SUBCORE_VM_FIXED4120_A1_50G", + "SUBCORE_VM_FIXED4140_A1_50G", + "SUBCORE_VM_FIXED4160_A1_50G", + "SUBCORE_VM_FIXED4180_A1_50G", + "SUBCORE_VM_FIXED4200_A1_50G", + "SUBCORE_VM_FIXED4220_A1_50G", + "SUBCORE_VM_FIXED4240_A1_50G", + "SUBCORE_VM_FIXED4260_A1_50G", + "SUBCORE_VM_FIXED4280_A1_50G", + "SUBCORE_VM_FIXED4300_A1_50G", + "SUBCORE_VM_FIXED4320_A1_50G", + "SUBCORE_VM_FIXED4340_A1_50G", + "SUBCORE_VM_FIXED4360_A1_50G", + "SUBCORE_VM_FIXED4380_A1_50G", + "SUBCORE_VM_FIXED4400_A1_50G", + "SUBCORE_VM_FIXED4420_A1_50G", + "SUBCORE_VM_FIXED4440_A1_50G", + "SUBCORE_VM_FIXED4460_A1_50G", + "SUBCORE_VM_FIXED4480_A1_50G", + "SUBCORE_VM_FIXED4500_A1_50G", + "SUBCORE_VM_FIXED4520_A1_50G", + "SUBCORE_VM_FIXED4540_A1_50G", + "SUBCORE_VM_FIXED4560_A1_50G", + "SUBCORE_VM_FIXED4580_A1_50G", + "SUBCORE_VM_FIXED4600_A1_50G", + "SUBCORE_VM_FIXED4620_A1_50G", + "SUBCORE_VM_FIXED4640_A1_50G", + "SUBCORE_VM_FIXED4660_A1_50G", + "SUBCORE_VM_FIXED4680_A1_50G", + "SUBCORE_VM_FIXED4700_A1_50G", + "SUBCORE_VM_FIXED4720_A1_50G", + "SUBCORE_VM_FIXED4740_A1_50G", + "SUBCORE_VM_FIXED4760_A1_50G", + "SUBCORE_VM_FIXED4780_A1_50G", + "SUBCORE_VM_FIXED4800_A1_50G", + "SUBCORE_VM_FIXED4820_A1_50G", + "SUBCORE_VM_FIXED4840_A1_50G", + "SUBCORE_VM_FIXED4860_A1_50G", + "SUBCORE_VM_FIXED4880_A1_50G", + "SUBCORE_VM_FIXED4900_A1_50G", + "SUBCORE_VM_FIXED4920_A1_50G", + "SUBCORE_VM_FIXED4940_A1_50G", + "SUBCORE_VM_FIXED4960_A1_50G", + "SUBCORE_VM_FIXED4980_A1_50G", + "SUBCORE_VM_FIXED5000_A1_50G", + "SUBCORE_VM_FIXED0090_X9_50G", + "SUBCORE_VM_FIXED0180_X9_50G", + "SUBCORE_VM_FIXED0270_X9_50G", + "SUBCORE_VM_FIXED0360_X9_50G", + "SUBCORE_VM_FIXED0450_X9_50G", + "SUBCORE_VM_FIXED0540_X9_50G", + "SUBCORE_VM_FIXED0630_X9_50G", + "SUBCORE_VM_FIXED0720_X9_50G", + "SUBCORE_VM_FIXED0810_X9_50G", + "SUBCORE_VM_FIXED0900_X9_50G", + "SUBCORE_VM_FIXED0990_X9_50G", + "SUBCORE_VM_FIXED1080_X9_50G", + "SUBCORE_VM_FIXED1170_X9_50G", + "SUBCORE_VM_FIXED1260_X9_50G", + "SUBCORE_VM_FIXED1350_X9_50G", + "SUBCORE_VM_FIXED1440_X9_50G", + "SUBCORE_VM_FIXED1530_X9_50G", + "SUBCORE_VM_FIXED1620_X9_50G", + "SUBCORE_VM_FIXED1710_X9_50G", + "SUBCORE_VM_FIXED1800_X9_50G", + "SUBCORE_VM_FIXED1890_X9_50G", + "SUBCORE_VM_FIXED1980_X9_50G", + "SUBCORE_VM_FIXED2070_X9_50G", + "SUBCORE_VM_FIXED2160_X9_50G", + "SUBCORE_VM_FIXED2250_X9_50G", + "SUBCORE_VM_FIXED2340_X9_50G", + "SUBCORE_VM_FIXED2430_X9_50G", + "SUBCORE_VM_FIXED2520_X9_50G", + "SUBCORE_VM_FIXED2610_X9_50G", + "SUBCORE_VM_FIXED2700_X9_50G", + "SUBCORE_VM_FIXED2790_X9_50G", + "SUBCORE_VM_FIXED2880_X9_50G", + "SUBCORE_VM_FIXED2970_X9_50G", + "SUBCORE_VM_FIXED3060_X9_50G", + "SUBCORE_VM_FIXED3150_X9_50G", + "SUBCORE_VM_FIXED3240_X9_50G", + "SUBCORE_VM_FIXED3330_X9_50G", + "SUBCORE_VM_FIXED3420_X9_50G", + "SUBCORE_VM_FIXED3510_X9_50G", + "SUBCORE_VM_FIXED3600_X9_50G", + "SUBCORE_VM_FIXED3690_X9_50G", + "SUBCORE_VM_FIXED3780_X9_50G", + "SUBCORE_VM_FIXED3870_X9_50G", + "SUBCORE_VM_FIXED3960_X9_50G", + "SUBCORE_VM_FIXED4050_X9_50G", + "SUBCORE_VM_FIXED4140_X9_50G", + "SUBCORE_VM_FIXED4230_X9_50G", + "SUBCORE_VM_FIXED4320_X9_50G", + "SUBCORE_VM_FIXED4410_X9_50G", + "SUBCORE_VM_FIXED4500_X9_50G", + "SUBCORE_VM_FIXED4590_X9_50G", + "SUBCORE_VM_FIXED4680_X9_50G", + "SUBCORE_VM_FIXED4770_X9_50G", + "SUBCORE_VM_FIXED4860_X9_50G", + "SUBCORE_VM_FIXED4950_X9_50G", + "DYNAMIC_A1_50G", + "FIXED0040_A1_50G", + "FIXED0100_A1_50G", + "FIXED0200_A1_50G", + "FIXED0300_A1_50G", + "FIXED0400_A1_50G", + "FIXED0500_A1_50G", + "FIXED0600_A1_50G", + "FIXED0700_A1_50G", + "FIXED0800_A1_50G", + "FIXED0900_A1_50G", + "FIXED1000_A1_50G", + "FIXED1100_A1_50G", + "FIXED1200_A1_50G", + "FIXED1300_A1_50G", + "FIXED1400_A1_50G", + "FIXED1500_A1_50G", + "FIXED1600_A1_50G", + "FIXED1700_A1_50G", + "FIXED1800_A1_50G", + "FIXED1900_A1_50G", + "FIXED2000_A1_50G", + "FIXED2100_A1_50G", + "FIXED2200_A1_50G", + "FIXED2300_A1_50G", + "FIXED2400_A1_50G", + "FIXED2500_A1_50G", + "FIXED2600_A1_50G", + "FIXED2700_A1_50G", + "FIXED2800_A1_50G", + "FIXED2900_A1_50G", + "FIXED3000_A1_50G", + "FIXED3100_A1_50G", + "FIXED3200_A1_50G", + "FIXED3300_A1_50G", + "FIXED3400_A1_50G", + "FIXED3500_A1_50G", + "FIXED3600_A1_50G", + "FIXED3700_A1_50G", + "FIXED3800_A1_50G", + "FIXED3900_A1_50G", + "FIXED4000_A1_50G", + "FIXED5000_TELESIS_A1_50G", + "ENTIREHOST_A1_50G", + "DYNAMIC_X9_50G", + "FIXED0040_X9_50G", + "FIXED0400_X9_50G", + "FIXED0800_X9_50G", + "FIXED1200_X9_50G", + "FIXED1600_X9_50G", + "FIXED2000_X9_50G", + "FIXED2400_X9_50G", + "FIXED2800_X9_50G", + "FIXED3200_X9_50G", + "FIXED3600_X9_50G", + "FIXED4000_X9_50G", + "STANDARD_VM_FIXED0100_X9_50G", + "STANDARD_VM_FIXED0200_X9_50G", + "STANDARD_VM_FIXED0300_X9_50G", + "STANDARD_VM_FIXED0400_X9_50G", + "STANDARD_VM_FIXED0500_X9_50G", + "STANDARD_VM_FIXED0600_X9_50G", + "STANDARD_VM_FIXED0700_X9_50G", + "STANDARD_VM_FIXED0800_X9_50G", + "STANDARD_VM_FIXED0900_X9_50G", + "STANDARD_VM_FIXED1000_X9_50G", + "STANDARD_VM_FIXED1100_X9_50G", + "STANDARD_VM_FIXED1200_X9_50G", + "STANDARD_VM_FIXED1300_X9_50G", + "STANDARD_VM_FIXED1400_X9_50G", + "STANDARD_VM_FIXED1500_X9_50G", + "STANDARD_VM_FIXED1600_X9_50G", + "STANDARD_VM_FIXED1700_X9_50G", + "STANDARD_VM_FIXED1800_X9_50G", + "STANDARD_VM_FIXED1900_X9_50G", + "STANDARD_VM_FIXED2000_X9_50G", + "STANDARD_VM_FIXED2100_X9_50G", + "STANDARD_VM_FIXED2200_X9_50G", + "STANDARD_VM_FIXED2300_X9_50G", + "STANDARD_VM_FIXED2400_X9_50G", + "STANDARD_VM_FIXED2500_X9_50G", + "STANDARD_VM_FIXED2600_X9_50G", + "STANDARD_VM_FIXED2700_X9_50G", + "STANDARD_VM_FIXED2800_X9_50G", + "STANDARD_VM_FIXED2900_X9_50G", + "STANDARD_VM_FIXED3000_X9_50G", + "STANDARD_VM_FIXED3100_X9_50G", + "STANDARD_VM_FIXED3200_X9_50G", + "STANDARD_VM_FIXED3300_X9_50G", + "STANDARD_VM_FIXED3400_X9_50G", + "STANDARD_VM_FIXED3500_X9_50G", + "STANDARD_VM_FIXED3600_X9_50G", + "STANDARD_VM_FIXED3700_X9_50G", + "STANDARD_VM_FIXED3800_X9_50G", + "STANDARD_VM_FIXED3900_X9_50G", + "STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED0975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED1950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2175_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2475_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2775_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2925_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED2975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3075_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3150_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3325_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3450_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3525_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3825_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3850_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED3975_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4000_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4025_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4050_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4100_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4125_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4200_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4225_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4250_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4275_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4300_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4350_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4375_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4400_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4425_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4500_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4550_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4575_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4600_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4625_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4650_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4675_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4700_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4725_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4750_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4800_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4875_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4900_X9_50G", + "SUBCORE_STANDARD_VM_FIXED4950_X9_50G", + "SUBCORE_STANDARD_VM_FIXED5000_X9_50G", + "ENTIREHOST_X9_50G", + } +} + +// GetMappingUpdateVnicShapeDetailsVnicShapeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVnicShapeDetailsVnicShapeEnum(val string) (UpdateVnicShapeDetailsVnicShapeEnum, bool) { + enum, ok := mappingUpdateVnicShapeDetailsVnicShapeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_request_response.go index ee5f53e7a5..45b9eb936e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_shape_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_shape_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVnicShapeRequest wrapper for the UpdateVnicShape operation @@ -43,6 +45,10 @@ func (request UpdateVnicShapeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVnicShapeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request UpdateVnicShapeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVnicShapeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVnicShapeResponse wrapper for the UpdateVnicShape operation type UpdateVnicShapeResponse struct { @@ -71,7 +88,8 @@ type UpdateVnicShapeResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_details.go new file mode 100644 index 0000000000..c322d3037d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVnicWorkerDetails The data to update vnicWorker. +type UpdateVnicWorkerDetails struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // List of vnicWorker IP OCIDs. Each OCID can be either of private IP or IPv6. + WorkerIps []string `mandatory:"false" json:"workerIps"` +} + +func (m UpdateVnicWorkerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVnicWorkerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_request_response.go index 7fe800ca8f..cd64f8ef27 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_vnic_worker_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vnic_worker_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVnicWorkerRequest wrapper for the UpdateVnicWorker operation type UpdateVnicWorkerRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the vnicWorker. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the vnicWorker. VnicWorkerId *string `mandatory:"true" contributesTo:"path" name:"vnicWorkerId"` // VnicWorker details. @@ -39,6 +41,10 @@ func (request UpdateVnicWorkerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVnicWorkerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVnicWorkerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVnicWorkerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVnicWorkerResponse wrapper for the UpdateVnicWorker operation type UpdateVnicWorkerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_details.go new file mode 100644 index 0000000000..1d034addc3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_details.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVolumeAttachmentDetails details for updating a volume attachment. +type UpdateVolumeAttachmentDetails struct { + + // The iscsi login state of the volume attachment. For a multipath volume attachment, + // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. + IscsiLoginState UpdateVolumeAttachmentDetailsIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` +} + +func (m UpdateVolumeAttachmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeAttachmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnum(string(m.IscsiLoginState)); !ok && m.IscsiLoginState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IscsiLoginState: %s. Supported values are: %s.", m.IscsiLoginState, strings.Join(GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVolumeAttachmentDetailsIscsiLoginStateEnum Enum with underlying type: string +type UpdateVolumeAttachmentDetailsIscsiLoginStateEnum string + +// Set of constants representing the allowable values for UpdateVolumeAttachmentDetailsIscsiLoginStateEnum +const ( + UpdateVolumeAttachmentDetailsIscsiLoginStateUnknown UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "UNKNOWN" + UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingIn UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGGING_IN" + UpdateVolumeAttachmentDetailsIscsiLoginStateLoginSucceeded UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGIN_SUCCEEDED" + UpdateVolumeAttachmentDetailsIscsiLoginStateLoginFailed UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGIN_FAILED" + UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingOut UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGGING_OUT" + UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutSucceeded UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGOUT_SUCCEEDED" + UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutFailed UpdateVolumeAttachmentDetailsIscsiLoginStateEnum = "LOGOUT_FAILED" +) + +var mappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnum = map[string]UpdateVolumeAttachmentDetailsIscsiLoginStateEnum{ + "UNKNOWN": UpdateVolumeAttachmentDetailsIscsiLoginStateUnknown, + "LOGGING_IN": UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingIn, + "LOGIN_SUCCEEDED": UpdateVolumeAttachmentDetailsIscsiLoginStateLoginSucceeded, + "LOGIN_FAILED": UpdateVolumeAttachmentDetailsIscsiLoginStateLoginFailed, + "LOGGING_OUT": UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingOut, + "LOGOUT_SUCCEEDED": UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutSucceeded, + "LOGOUT_FAILED": UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutFailed, +} + +var mappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnumLowerCase = map[string]UpdateVolumeAttachmentDetailsIscsiLoginStateEnum{ + "unknown": UpdateVolumeAttachmentDetailsIscsiLoginStateUnknown, + "logging_in": UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingIn, + "login_succeeded": UpdateVolumeAttachmentDetailsIscsiLoginStateLoginSucceeded, + "login_failed": UpdateVolumeAttachmentDetailsIscsiLoginStateLoginFailed, + "logging_out": UpdateVolumeAttachmentDetailsIscsiLoginStateLoggingOut, + "logout_succeeded": UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutSucceeded, + "logout_failed": UpdateVolumeAttachmentDetailsIscsiLoginStateLogoutFailed, +} + +// GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumValues Enumerates the set of values for UpdateVolumeAttachmentDetailsIscsiLoginStateEnum +func GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumValues() []UpdateVolumeAttachmentDetailsIscsiLoginStateEnum { + values := make([]UpdateVolumeAttachmentDetailsIscsiLoginStateEnum, 0) + for _, v := range mappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumStringValues Enumerates the set of values in String for UpdateVolumeAttachmentDetailsIscsiLoginStateEnum +func GetUpdateVolumeAttachmentDetailsIscsiLoginStateEnumStringValues() []string { + return []string{ + "UNKNOWN", + "LOGGING_IN", + "LOGIN_SUCCEEDED", + "LOGIN_FAILED", + "LOGGING_OUT", + "LOGOUT_SUCCEEDED", + "LOGOUT_FAILED", + } +} + +// GetMappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnum(val string) (UpdateVolumeAttachmentDetailsIscsiLoginStateEnum, bool) { + enum, ok := mappingUpdateVolumeAttachmentDetailsIscsiLoginStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go index 2c89324fe7..4332c08d50 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_attachment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_attachment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeAttachmentRequest wrapper for the UpdateVolumeAttachment operation @@ -39,6 +41,10 @@ func (request UpdateVolumeAttachmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeAttachmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVolumeAttachmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeAttachmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeAttachmentResponse wrapper for the UpdateVolumeAttachment operation type UpdateVolumeAttachmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_details.go new file mode 100644 index 0000000000..4d28928541 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVolumeBackupDetails The representation of UpdateVolumeBackupDetails +type UpdateVolumeBackupDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_policy_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go index 834aa31593..8cdbe7d09b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_details.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateVolumeBackupPolicyDetails Specifies the properties for updating a user defined backup policy. @@ -51,3 +53,15 @@ type UpdateVolumeBackupPolicyDetails struct { func (m UpdateVolumeBackupPolicyDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeBackupPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_request_response.go index 3f7c3393db..a7a261c6c6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeBackupPolicyRequest wrapper for the UpdateVolumeBackupPolicy operation @@ -46,6 +48,10 @@ func (request UpdateVolumeBackupPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeBackupPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request UpdateVolumeBackupPolicyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeBackupPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeBackupPolicyResponse wrapper for the UpdateVolumeBackupPolicy operation type UpdateVolumeBackupPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go index 7a2a2429b0..4c41815204 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeBackupRequest wrapper for the UpdateVolumeBackup operation @@ -39,6 +41,10 @@ func (request UpdateVolumeBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVolumeBackupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeBackupResponse wrapper for the UpdateVolumeBackup operation type UpdateVolumeBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_details.go new file mode 100644 index 0000000000..d3232c860b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_details.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVolumeDetails The representation of UpdateVolumeDetails +type UpdateVolumeDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `0`: Represents Lower Cost option. + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, it would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // The size to resize the volume to in GBs. Has to be larger than the current size. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. + // Use the `DetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The list of block volume replicas that this volume will be updated to have + // in the specified destination availability domains. + BlockVolumeReplicas []BlockVolumeReplicaDetails `mandatory:"false" json:"blockVolumeReplicas"` + + // The list of autotune policies enabled for this volume. + AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` +} + +func (m UpdateVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateVolumeDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + DisplayName *string `json:"displayName"` + FreeformTags map[string]string `json:"freeformTags"` + VpusPerGB *int64 `json:"vpusPerGB"` + SizeInGBs *int64 `json:"sizeInGBs"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + BlockVolumeReplicas []BlockVolumeReplicaDetails `json:"blockVolumeReplicas"` + AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.DisplayName = model.DisplayName + + m.FreeformTags = model.FreeformTags + + m.VpusPerGB = model.VpusPerGB + + m.SizeInGBs = model.SizeInGBs + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.BlockVolumeReplicas = make([]BlockVolumeReplicaDetails, len(model.BlockVolumeReplicas)) + for i, n := range model.BlockVolumeReplicas { + m.BlockVolumeReplicas[i] = n + } + + m.AutotunePolicies = make([]AutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(AutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_details.go new file mode 100644 index 0000000000..8187cef1ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVolumeGroupBackupDetails The representation of UpdateVolumeGroupBackupDetails +type UpdateVolumeGroupBackupDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m UpdateVolumeGroupBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_request_response.go index a2ae8af19a..321c78bef4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_backup_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_backup_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeGroupBackupRequest wrapper for the UpdateVolumeGroupBackup operation @@ -39,6 +41,10 @@ func (request UpdateVolumeGroupBackupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeGroupBackupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVolumeGroupBackupRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeGroupBackupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeGroupBackupResponse wrapper for the UpdateVolumeGroupBackup operation type UpdateVolumeGroupBackupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_details.go new file mode 100644 index 0000000000..6834aac9e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVolumeGroupDetails The representation of UpdateVolumeGroupDetails +type UpdateVolumeGroupDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // OCIDs for the volumes in this volume group. + VolumeIds []string `mandatory:"false" json:"volumeIds"` + + // The list of volume group replicas that this volume group will be updated to have + // in the specified destination availability domains. + VolumeGroupReplicas []VolumeGroupReplicaDetails `mandatory:"false" json:"volumeGroupReplicas"` +} + +func (m UpdateVolumeGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go index 0839058889..26d764c3b5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeGroupRequest wrapper for the UpdateVolumeGroup operation @@ -44,6 +46,10 @@ func (request UpdateVolumeGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -59,6 +65,17 @@ func (request UpdateVolumeGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeGroupResponse wrapper for the UpdateVolumeGroup operation type UpdateVolumeGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_details.go new file mode 100644 index 0000000000..a42cfd7474 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVolumeKmsKeyDetails The representation of UpdateVolumeKmsKeyDetails +type UpdateVolumeKmsKeyDetails struct { + + // The OCID of the new Vault service key to assign to protect the specified volume. + // This key has to be a valid Vault service key, and policies must exist to allow the user and the Block Volume service to access this key. + // If you specify the same OCID as the previous key's OCID, the Block Volume service will use it to regenerate a volume encryption key. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m UpdateVolumeKmsKeyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVolumeKmsKeyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_request_response.go index 035baf5875..4c5f023193 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_kms_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_kms_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeKmsKeyRequest wrapper for the UpdateVolumeKmsKey operation @@ -15,7 +17,7 @@ type UpdateVolumeKmsKeyRequest struct { // The OCID of the volume. VolumeId *string `mandatory:"true" contributesTo:"path" name:"volumeId"` - // Updates the Key Management master encryption key assigned to the specified volume. + // Updates the Vault service master encryption key assigned to the specified volume. UpdateVolumeKmsKeyDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -39,6 +41,10 @@ func (request UpdateVolumeKmsKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeKmsKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVolumeKmsKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeKmsKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeKmsKeyResponse wrapper for the UpdateVolumeKmsKey operation type UpdateVolumeKmsKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go index 8b58039b0a..3e9327fb71 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/update_volume_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_volume_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateVolumeRequest wrapper for the UpdateVolume operation @@ -39,6 +41,10 @@ func (request UpdateVolumeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateVolumeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateVolumeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVolumeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateVolumeResponse wrapper for the UpdateVolume operation type UpdateVolumeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_details.go new file mode 100644 index 0000000000..730f9069f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_details.go @@ -0,0 +1,291 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateVtapDetails These details can be included in a request to update a virtual test access point (VTAP). +type UpdateVtapDetails struct { + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source point where packets are captured. + SourceId *string `mandatory:"false" json:"sourceId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination resource where mirrored packets are sent. + TargetId *string `mandatory:"false" json:"targetId"` + + // The IP address of the destination resource where mirrored packets are sent. + TargetIp *string `mandatory:"false" json:"targetIp"` + + // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + CaptureFilterId *string `mandatory:"false" json:"captureFilterId"` + + // Defines an encapsulation header type for the VTAP's mirrored traffic. + EncapsulationProtocol UpdateVtapDetailsEncapsulationProtocolEnum `mandatory:"false" json:"encapsulationProtocol,omitempty"` + + // The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN. + VxlanNetworkIdentifier *int64 `mandatory:"false" json:"vxlanNetworkIdentifier"` + + // Used to start or stop a `Vtap` resource. + // * `TRUE` directs the VTAP to start mirroring traffic. + // * `FALSE` (Default) directs the VTAP to stop mirroring traffic. + IsVtapEnabled *bool `mandatory:"false" json:"isVtapEnabled"` + + // Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT + TrafficMode UpdateVtapDetailsTrafficModeEnum `mandatory:"false" json:"trafficMode,omitempty"` + + // The maximum size of the packets to be included in the filter. + MaxPacketSize *int `mandatory:"false" json:"maxPacketSize"` + + // The IP Address of the source private endpoint. + SourcePrivateEndpointIp *string `mandatory:"false" json:"sourcePrivateEndpointIp"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that source private endpoint belongs to. + SourcePrivateEndpointSubnetId *string `mandatory:"false" json:"sourcePrivateEndpointSubnetId"` + + // The target type for the VTAP. + TargetType UpdateVtapDetailsTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The source type for the VTAP. + SourceType UpdateVtapDetailsSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` +} + +func (m UpdateVtapDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateVtapDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateVtapDetailsEncapsulationProtocolEnum(string(m.EncapsulationProtocol)); !ok && m.EncapsulationProtocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncapsulationProtocol: %s. Supported values are: %s.", m.EncapsulationProtocol, strings.Join(GetUpdateVtapDetailsEncapsulationProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateVtapDetailsTrafficModeEnum(string(m.TrafficMode)); !ok && m.TrafficMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TrafficMode: %s. Supported values are: %s.", m.TrafficMode, strings.Join(GetUpdateVtapDetailsTrafficModeEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateVtapDetailsTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetUpdateVtapDetailsTargetTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateVtapDetailsSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetUpdateVtapDetailsSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVtapDetailsEncapsulationProtocolEnum Enum with underlying type: string +type UpdateVtapDetailsEncapsulationProtocolEnum string + +// Set of constants representing the allowable values for UpdateVtapDetailsEncapsulationProtocolEnum +const ( + UpdateVtapDetailsEncapsulationProtocolVxlan UpdateVtapDetailsEncapsulationProtocolEnum = "VXLAN" +) + +var mappingUpdateVtapDetailsEncapsulationProtocolEnum = map[string]UpdateVtapDetailsEncapsulationProtocolEnum{ + "VXLAN": UpdateVtapDetailsEncapsulationProtocolVxlan, +} + +var mappingUpdateVtapDetailsEncapsulationProtocolEnumLowerCase = map[string]UpdateVtapDetailsEncapsulationProtocolEnum{ + "vxlan": UpdateVtapDetailsEncapsulationProtocolVxlan, +} + +// GetUpdateVtapDetailsEncapsulationProtocolEnumValues Enumerates the set of values for UpdateVtapDetailsEncapsulationProtocolEnum +func GetUpdateVtapDetailsEncapsulationProtocolEnumValues() []UpdateVtapDetailsEncapsulationProtocolEnum { + values := make([]UpdateVtapDetailsEncapsulationProtocolEnum, 0) + for _, v := range mappingUpdateVtapDetailsEncapsulationProtocolEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVtapDetailsEncapsulationProtocolEnumStringValues Enumerates the set of values in String for UpdateVtapDetailsEncapsulationProtocolEnum +func GetUpdateVtapDetailsEncapsulationProtocolEnumStringValues() []string { + return []string{ + "VXLAN", + } +} + +// GetMappingUpdateVtapDetailsEncapsulationProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVtapDetailsEncapsulationProtocolEnum(val string) (UpdateVtapDetailsEncapsulationProtocolEnum, bool) { + enum, ok := mappingUpdateVtapDetailsEncapsulationProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateVtapDetailsTrafficModeEnum Enum with underlying type: string +type UpdateVtapDetailsTrafficModeEnum string + +// Set of constants representing the allowable values for UpdateVtapDetailsTrafficModeEnum +const ( + UpdateVtapDetailsTrafficModeDefault UpdateVtapDetailsTrafficModeEnum = "DEFAULT" + UpdateVtapDetailsTrafficModePriority UpdateVtapDetailsTrafficModeEnum = "PRIORITY" +) + +var mappingUpdateVtapDetailsTrafficModeEnum = map[string]UpdateVtapDetailsTrafficModeEnum{ + "DEFAULT": UpdateVtapDetailsTrafficModeDefault, + "PRIORITY": UpdateVtapDetailsTrafficModePriority, +} + +var mappingUpdateVtapDetailsTrafficModeEnumLowerCase = map[string]UpdateVtapDetailsTrafficModeEnum{ + "default": UpdateVtapDetailsTrafficModeDefault, + "priority": UpdateVtapDetailsTrafficModePriority, +} + +// GetUpdateVtapDetailsTrafficModeEnumValues Enumerates the set of values for UpdateVtapDetailsTrafficModeEnum +func GetUpdateVtapDetailsTrafficModeEnumValues() []UpdateVtapDetailsTrafficModeEnum { + values := make([]UpdateVtapDetailsTrafficModeEnum, 0) + for _, v := range mappingUpdateVtapDetailsTrafficModeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVtapDetailsTrafficModeEnumStringValues Enumerates the set of values in String for UpdateVtapDetailsTrafficModeEnum +func GetUpdateVtapDetailsTrafficModeEnumStringValues() []string { + return []string{ + "DEFAULT", + "PRIORITY", + } +} + +// GetMappingUpdateVtapDetailsTrafficModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVtapDetailsTrafficModeEnum(val string) (UpdateVtapDetailsTrafficModeEnum, bool) { + enum, ok := mappingUpdateVtapDetailsTrafficModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateVtapDetailsTargetTypeEnum Enum with underlying type: string +type UpdateVtapDetailsTargetTypeEnum string + +// Set of constants representing the allowable values for UpdateVtapDetailsTargetTypeEnum +const ( + UpdateVtapDetailsTargetTypeVnic UpdateVtapDetailsTargetTypeEnum = "VNIC" + UpdateVtapDetailsTargetTypeNetworkLoadBalancer UpdateVtapDetailsTargetTypeEnum = "NETWORK_LOAD_BALANCER" + UpdateVtapDetailsTargetTypeIpAddress UpdateVtapDetailsTargetTypeEnum = "IP_ADDRESS" +) + +var mappingUpdateVtapDetailsTargetTypeEnum = map[string]UpdateVtapDetailsTargetTypeEnum{ + "VNIC": UpdateVtapDetailsTargetTypeVnic, + "NETWORK_LOAD_BALANCER": UpdateVtapDetailsTargetTypeNetworkLoadBalancer, + "IP_ADDRESS": UpdateVtapDetailsTargetTypeIpAddress, +} + +var mappingUpdateVtapDetailsTargetTypeEnumLowerCase = map[string]UpdateVtapDetailsTargetTypeEnum{ + "vnic": UpdateVtapDetailsTargetTypeVnic, + "network_load_balancer": UpdateVtapDetailsTargetTypeNetworkLoadBalancer, + "ip_address": UpdateVtapDetailsTargetTypeIpAddress, +} + +// GetUpdateVtapDetailsTargetTypeEnumValues Enumerates the set of values for UpdateVtapDetailsTargetTypeEnum +func GetUpdateVtapDetailsTargetTypeEnumValues() []UpdateVtapDetailsTargetTypeEnum { + values := make([]UpdateVtapDetailsTargetTypeEnum, 0) + for _, v := range mappingUpdateVtapDetailsTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVtapDetailsTargetTypeEnumStringValues Enumerates the set of values in String for UpdateVtapDetailsTargetTypeEnum +func GetUpdateVtapDetailsTargetTypeEnumStringValues() []string { + return []string{ + "VNIC", + "NETWORK_LOAD_BALANCER", + "IP_ADDRESS", + } +} + +// GetMappingUpdateVtapDetailsTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVtapDetailsTargetTypeEnum(val string) (UpdateVtapDetailsTargetTypeEnum, bool) { + enum, ok := mappingUpdateVtapDetailsTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// UpdateVtapDetailsSourceTypeEnum Enum with underlying type: string +type UpdateVtapDetailsSourceTypeEnum string + +// Set of constants representing the allowable values for UpdateVtapDetailsSourceTypeEnum +const ( + UpdateVtapDetailsSourceTypeVnic UpdateVtapDetailsSourceTypeEnum = "VNIC" + UpdateVtapDetailsSourceTypeSubnet UpdateVtapDetailsSourceTypeEnum = "SUBNET" + UpdateVtapDetailsSourceTypeLoadBalancer UpdateVtapDetailsSourceTypeEnum = "LOAD_BALANCER" + UpdateVtapDetailsSourceTypeDbSystem UpdateVtapDetailsSourceTypeEnum = "DB_SYSTEM" + UpdateVtapDetailsSourceTypeExadataVmCluster UpdateVtapDetailsSourceTypeEnum = "EXADATA_VM_CLUSTER" + UpdateVtapDetailsSourceTypeAutonomousDataWarehouse UpdateVtapDetailsSourceTypeEnum = "AUTONOMOUS_DATA_WAREHOUSE" +) + +var mappingUpdateVtapDetailsSourceTypeEnum = map[string]UpdateVtapDetailsSourceTypeEnum{ + "VNIC": UpdateVtapDetailsSourceTypeVnic, + "SUBNET": UpdateVtapDetailsSourceTypeSubnet, + "LOAD_BALANCER": UpdateVtapDetailsSourceTypeLoadBalancer, + "DB_SYSTEM": UpdateVtapDetailsSourceTypeDbSystem, + "EXADATA_VM_CLUSTER": UpdateVtapDetailsSourceTypeExadataVmCluster, + "AUTONOMOUS_DATA_WAREHOUSE": UpdateVtapDetailsSourceTypeAutonomousDataWarehouse, +} + +var mappingUpdateVtapDetailsSourceTypeEnumLowerCase = map[string]UpdateVtapDetailsSourceTypeEnum{ + "vnic": UpdateVtapDetailsSourceTypeVnic, + "subnet": UpdateVtapDetailsSourceTypeSubnet, + "load_balancer": UpdateVtapDetailsSourceTypeLoadBalancer, + "db_system": UpdateVtapDetailsSourceTypeDbSystem, + "exadata_vm_cluster": UpdateVtapDetailsSourceTypeExadataVmCluster, + "autonomous_data_warehouse": UpdateVtapDetailsSourceTypeAutonomousDataWarehouse, +} + +// GetUpdateVtapDetailsSourceTypeEnumValues Enumerates the set of values for UpdateVtapDetailsSourceTypeEnum +func GetUpdateVtapDetailsSourceTypeEnumValues() []UpdateVtapDetailsSourceTypeEnum { + values := make([]UpdateVtapDetailsSourceTypeEnum, 0) + for _, v := range mappingUpdateVtapDetailsSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateVtapDetailsSourceTypeEnumStringValues Enumerates the set of values in String for UpdateVtapDetailsSourceTypeEnum +func GetUpdateVtapDetailsSourceTypeEnumStringValues() []string { + return []string{ + "VNIC", + "SUBNET", + "LOAD_BALANCER", + "DB_SYSTEM", + "EXADATA_VM_CLUSTER", + "AUTONOMOUS_DATA_WAREHOUSE", + } +} + +// GetMappingUpdateVtapDetailsSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateVtapDetailsSourceTypeEnum(val string) (UpdateVtapDetailsSourceTypeEnum, bool) { + enum, ok := mappingUpdateVtapDetailsSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_request_response.go new file mode 100644 index 0000000000..a007e615f7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/update_vtap_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateVtapRequest wrapper for the UpdateVtap operation +type UpdateVtapRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VTAP. + VtapId *string `mandatory:"true" contributesTo:"path" name:"vtapId"` + + // Details object for updating a VTAP. + UpdateVtapDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateVtapRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateVtapRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateVtapRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateVtapRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateVtapRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateVtapResponse wrapper for the UpdateVtap operation +type UpdateVtapResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Vtap instance + Vtap `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdateVtapResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateVtapResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/updated_network_security_group_security_rules.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/updated_network_security_group_security_rules.go new file mode 100644 index 0000000000..5d13c0b383 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/updated_network_security_group_security_rules.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatedNetworkSecurityGroupSecurityRules The representation of UpdatedNetworkSecurityGroupSecurityRules +type UpdatedNetworkSecurityGroupSecurityRules struct { + + // The NSG security rules that were updated. + SecurityRules []SecurityRule `mandatory:"false" json:"securityRules"` +} + +func (m UpdatedNetworkSecurityGroupSecurityRules) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatedNetworkSecurityGroupSecurityRules) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_drg_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_drg_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go index 88df5c29a5..231a1c3506 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/upgrade_drg_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_drg_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpgradeDrgRequest wrapper for the UpgradeDrg operation type UpgradeDrgRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the DRG. + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. DrgId *string `mandatory:"true" contributesTo:"path" name:"drgId"` // Unique identifier for the request. @@ -38,6 +40,10 @@ func (request UpgradeDrgRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpgradeDrgRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request UpgradeDrgRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpgradeDrgRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpgradeDrgResponse wrapper for the UpgradeDrg operation type UpgradeDrgResponse struct { @@ -63,7 +80,8 @@ type UpgradeDrgResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_status.go new file mode 100644 index 0000000000..f3a9bda4b5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/upgrade_status.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpgradeStatus The upgrade status of a DRG. +type UpgradeStatus struct { + + // The `drgId` of the upgraded DRG. + DrgId *string `mandatory:"true" json:"drgId"` + + // The current upgrade status of the DRG attachment. + Status UpgradeStatusStatusEnum `mandatory:"true" json:"status"` + + // The number of upgraded connections. + UpgradedConnections *string `mandatory:"true" json:"upgradedConnections"` +} + +func (m UpgradeStatus) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpgradeStatus) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUpgradeStatusStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetUpgradeStatusStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpgradeStatusStatusEnum Enum with underlying type: string +type UpgradeStatusStatusEnum string + +// Set of constants representing the allowable values for UpgradeStatusStatusEnum +const ( + UpgradeStatusStatusNotUpgraded UpgradeStatusStatusEnum = "NOT_UPGRADED" + UpgradeStatusStatusInProgress UpgradeStatusStatusEnum = "IN_PROGRESS" + UpgradeStatusStatusUpgraded UpgradeStatusStatusEnum = "UPGRADED" +) + +var mappingUpgradeStatusStatusEnum = map[string]UpgradeStatusStatusEnum{ + "NOT_UPGRADED": UpgradeStatusStatusNotUpgraded, + "IN_PROGRESS": UpgradeStatusStatusInProgress, + "UPGRADED": UpgradeStatusStatusUpgraded, +} + +var mappingUpgradeStatusStatusEnumLowerCase = map[string]UpgradeStatusStatusEnum{ + "not_upgraded": UpgradeStatusStatusNotUpgraded, + "in_progress": UpgradeStatusStatusInProgress, + "upgraded": UpgradeStatusStatusUpgraded, +} + +// GetUpgradeStatusStatusEnumValues Enumerates the set of values for UpgradeStatusStatusEnum +func GetUpgradeStatusStatusEnumValues() []UpgradeStatusStatusEnum { + values := make([]UpgradeStatusStatusEnum, 0) + for _, v := range mappingUpgradeStatusStatusEnum { + values = append(values, v) + } + return values +} + +// GetUpgradeStatusStatusEnumStringValues Enumerates the set of values in String for UpgradeStatusStatusEnum +func GetUpgradeStatusStatusEnumStringValues() []string { + return []string{ + "NOT_UPGRADED", + "IN_PROGRESS", + "UPGRADED", + } +} + +// GetMappingUpgradeStatusStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpgradeStatusStatusEnum(val string) (UpgradeStatusStatusEnum, bool) { + enum, ok := mappingUpgradeStatusStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/validate_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/validate_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go index 6cdda27050..e8e3637ca5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/validate_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ValidateByoipRangeRequest wrapper for the ValidateByoipRange operation @@ -31,6 +33,10 @@ func (request ValidateByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ValidateByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ValidateByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ValidateByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ValidateByoipRangeResponse wrapper for the ValidateByoipRange operation type ValidateByoipRangeResponse struct { @@ -56,7 +73,8 @@ type ValidateByoipRangeResponse struct { // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/20160918/WorkRequest/GetWorkRequest) + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) // with this ID to track the status of the request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request.go new file mode 100644 index 0000000000..bd552f4161 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateCreateAndAttachVnicRequest This structure is used when validating creating and attaching vnics +type ValidateCreateAndAttachVnicRequest struct { + CreateInternalVnicDetails *CreateInternalVnicDetails `mandatory:"true" json:"createInternalVnicDetails"` + + AttachInternalVnicDetails *CreateInternalVnicAttachmentDetails `mandatory:"true" json:"attachInternalVnicDetails"` +} + +func (m ValidateCreateAndAttachVnicRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ValidateCreateAndAttachVnicRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request_request_response.go new file mode 100644 index 0000000000..27a77182c3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_create_and_attach_vnic_request_request_response.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateCreateAndAttachVnicRequestRequest wrapper for the ValidateCreateAndAttachVnicRequest operation +type ValidateCreateAndAttachVnicRequestRequest struct { + + // Validates create and attach VNIC request. Used by internal customers like Compute as a fail fast check to catch + // any potential errors related to parameter validations + ValidateCreateAndAttachVnicRequest `contributesTo:"body"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ValidateCreateAndAttachVnicRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateCreateAndAttachVnicRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ValidateCreateAndAttachVnicRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateCreateAndAttachVnicRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ValidateCreateAndAttachVnicRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateCreateAndAttachVnicRequestResponse wrapper for the ValidateCreateAndAttachVnicRequest operation +type ValidateCreateAndAttachVnicRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateCreateAndAttachVnicRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateCreateAndAttachVnicRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_drg_routes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_drg_routes_request_response.go new file mode 100644 index 0000000000..c0dfc952ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validate_drg_routes_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateDrgRoutesRequest wrapper for the ValidateDrgRoutes operation +type ValidateDrgRoutesRequest struct { + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The State of the DRG (Classical/Migrated/Upgraded) of the DRG. + DrgState DrgUpgradeStateStateEnum `mandatory:"false" contributesTo:"query" name:"drgState" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DRG. + DrgId *string `mandatory:"false" contributesTo:"query" name:"drgId"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ValidateDrgRoutesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateDrgRoutesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ValidateDrgRoutesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateDrgRoutesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ValidateDrgRoutesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDrgUpgradeStateStateEnum(string(request.DrgState)); !ok && request.DrgState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DrgState: %s. Supported values are: %s.", request.DrgState, strings.Join(GetDrgUpgradeStateStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateDrgRoutesResponse wrapper for the ValidateDrgRoutes operation +type ValidateDrgRoutesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ValidationStatusInfo instance + ValidationStatusInfo `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + // Use GetWorkRequest (https://docs.cloud.oracle.com/api/#/en/workrequests/latest/WorkRequest/GetWorkRequest) + // with this ID to track the status of the request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response ValidateDrgRoutesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateDrgRoutesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/validation_status_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/validation_status_info.go new file mode 100644 index 0000000000..6df4f861db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/validation_status_info.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidationStatusInfo Array of DRGs and their corresponding validation status +type ValidationStatusInfo struct { + + // Array of DRGs and their corresponding validation status' + ValidationStatus []DrgValidationStatus `mandatory:"true" json:"validationStatus"` +} + +func (m ValidationStatusInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ValidationStatusInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go new file mode 100644 index 0000000000..248a9f359d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn.go @@ -0,0 +1,173 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Vcn A virtual cloud network (VCN). For more information, see +// Overview of the Networking Service (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type Vcn struct { + + // Deprecated. The first CIDR IP address from cidrBlocks. + // Example: `172.16.0.0/16` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The list of IPv4 CIDR blocks the VCN will use. + CidrBlocks []string `mandatory:"true" json:"cidrBlocks"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VCN. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The VCN's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The VCN's current state. + LifecycleState VcnLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The list of BYOIPv6 CIDR blocks required to create a VCN that uses BYOIPv6 ranges. + Byoipv6CidrBlocks []string `mandatory:"false" json:"byoipv6CidrBlocks"` + + // For an IPv6-enabled VCN, this is the list of Private IPv6 CIDR blocks for the VCN's IP address space. + Ipv6PrivateCidrBlocks []string `mandatory:"false" json:"ipv6PrivateCidrBlocks"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the VCN's default set of DHCP options. + DefaultDhcpOptionsId *string `mandatory:"false" json:"defaultDhcpOptionsId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the VCN's default route table. + DefaultRouteTableId *string `mandatory:"false" json:"defaultRouteTableId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) for the VCN's default security list. + DefaultSecurityListId *string `mandatory:"false" json:"defaultSecurityListId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // A DNS label for the VCN, used in conjunction with the VNIC's hostname and + // subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC + // within this subnet (for example, `bminstance-1.subnet123.vcn1.oraclevcn.com`). + // Must be an alphanumeric string that begins with a letter. + // The value cannot be changed. + // The absence of this parameter means the Internet and VCN Resolver will + // not work for this VCN. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // Example: `vcn1` + DnsLabel *string `mandatory:"false" json:"dnsLabel"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // For an IPv6-enabled VCN, this is the list of IPv6 CIDR blocks for the VCN's IP address space. + // The CIDRs are provided by Oracle and the sizes are always /56. + Ipv6CidrBlocks []string `mandatory:"false" json:"ipv6CidrBlocks"` + + // The date and time the VCN was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The VCN's domain name, which consists of the VCN's DNS label, and the + // `oraclevcn.com` domain. + // For more information, see + // DNS in Your Virtual Cloud Network (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/dns.htm). + // Example: `vcn1.oraclevcn.com` + VcnDomainName *string `mandatory:"false" json:"vcnDomainName"` +} + +func (m Vcn) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Vcn) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVcnLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVcnLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VcnLifecycleStateEnum Enum with underlying type: string +type VcnLifecycleStateEnum string + +// Set of constants representing the allowable values for VcnLifecycleStateEnum +const ( + VcnLifecycleStateProvisioning VcnLifecycleStateEnum = "PROVISIONING" + VcnLifecycleStateAvailable VcnLifecycleStateEnum = "AVAILABLE" + VcnLifecycleStateTerminating VcnLifecycleStateEnum = "TERMINATING" + VcnLifecycleStateTerminated VcnLifecycleStateEnum = "TERMINATED" + VcnLifecycleStateUpdating VcnLifecycleStateEnum = "UPDATING" +) + +var mappingVcnLifecycleStateEnum = map[string]VcnLifecycleStateEnum{ + "PROVISIONING": VcnLifecycleStateProvisioning, + "AVAILABLE": VcnLifecycleStateAvailable, + "TERMINATING": VcnLifecycleStateTerminating, + "TERMINATED": VcnLifecycleStateTerminated, + "UPDATING": VcnLifecycleStateUpdating, +} + +var mappingVcnLifecycleStateEnumLowerCase = map[string]VcnLifecycleStateEnum{ + "provisioning": VcnLifecycleStateProvisioning, + "available": VcnLifecycleStateAvailable, + "terminating": VcnLifecycleStateTerminating, + "terminated": VcnLifecycleStateTerminated, + "updating": VcnLifecycleStateUpdating, +} + +// GetVcnLifecycleStateEnumValues Enumerates the set of values for VcnLifecycleStateEnum +func GetVcnLifecycleStateEnumValues() []VcnLifecycleStateEnum { + values := make([]VcnLifecycleStateEnum, 0) + for _, v := range mappingVcnLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVcnLifecycleStateEnumStringValues Enumerates the set of values in String for VcnLifecycleStateEnum +func GetVcnLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + } +} + +// GetMappingVcnLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVcnLifecycleStateEnum(val string) (VcnLifecycleStateEnum, bool) { + enum, ok := mappingVcnLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_dns_resolver_association.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_dns_resolver_association.go new file mode 100644 index 0000000000..33fa7a8c58 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_dns_resolver_association.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VcnDnsResolverAssociation The information about the VCN and the DNS resolver in the association. +type VcnDnsResolverAssociation struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN in the association. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The current state of the association. + LifecycleState VcnDnsResolverAssociationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the DNS resolver in the association. + DnsResolverId *string `mandatory:"false" json:"dnsResolverId"` +} + +func (m VcnDnsResolverAssociation) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VcnDnsResolverAssociation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVcnDnsResolverAssociationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVcnDnsResolverAssociationLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VcnDnsResolverAssociationLifecycleStateEnum Enum with underlying type: string +type VcnDnsResolverAssociationLifecycleStateEnum string + +// Set of constants representing the allowable values for VcnDnsResolverAssociationLifecycleStateEnum +const ( + VcnDnsResolverAssociationLifecycleStateProvisioning VcnDnsResolverAssociationLifecycleStateEnum = "PROVISIONING" + VcnDnsResolverAssociationLifecycleStateAvailable VcnDnsResolverAssociationLifecycleStateEnum = "AVAILABLE" + VcnDnsResolverAssociationLifecycleStateTerminating VcnDnsResolverAssociationLifecycleStateEnum = "TERMINATING" + VcnDnsResolverAssociationLifecycleStateTerminated VcnDnsResolverAssociationLifecycleStateEnum = "TERMINATED" +) + +var mappingVcnDnsResolverAssociationLifecycleStateEnum = map[string]VcnDnsResolverAssociationLifecycleStateEnum{ + "PROVISIONING": VcnDnsResolverAssociationLifecycleStateProvisioning, + "AVAILABLE": VcnDnsResolverAssociationLifecycleStateAvailable, + "TERMINATING": VcnDnsResolverAssociationLifecycleStateTerminating, + "TERMINATED": VcnDnsResolverAssociationLifecycleStateTerminated, +} + +var mappingVcnDnsResolverAssociationLifecycleStateEnumLowerCase = map[string]VcnDnsResolverAssociationLifecycleStateEnum{ + "provisioning": VcnDnsResolverAssociationLifecycleStateProvisioning, + "available": VcnDnsResolverAssociationLifecycleStateAvailable, + "terminating": VcnDnsResolverAssociationLifecycleStateTerminating, + "terminated": VcnDnsResolverAssociationLifecycleStateTerminated, +} + +// GetVcnDnsResolverAssociationLifecycleStateEnumValues Enumerates the set of values for VcnDnsResolverAssociationLifecycleStateEnum +func GetVcnDnsResolverAssociationLifecycleStateEnumValues() []VcnDnsResolverAssociationLifecycleStateEnum { + values := make([]VcnDnsResolverAssociationLifecycleStateEnum, 0) + for _, v := range mappingVcnDnsResolverAssociationLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVcnDnsResolverAssociationLifecycleStateEnumStringValues Enumerates the set of values in String for VcnDnsResolverAssociationLifecycleStateEnum +func GetVcnDnsResolverAssociationLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingVcnDnsResolverAssociationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVcnDnsResolverAssociationLifecycleStateEnum(val string) (VcnDnsResolverAssociationLifecycleStateEnum, bool) { + enum, ok := mappingVcnDnsResolverAssociationLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_create_details.go new file mode 100644 index 0000000000..89e75656c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_create_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VcnDrgAttachmentNetworkCreateDetails Specifies the VCN Attachment +type VcnDrgAttachmentNetworkCreateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. + // For information about why you would associate a route table with a DRG attachment, see + // Advanced Scenario: Transit Routing (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm). + // For information about why you would associate a route table with a DRG attachment, see: + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. + // Routes from the VCN ingress route table are always imported. + VcnRouteType VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum `mandatory:"false" json:"vcnRouteType,omitempty"` +} + +//GetId returns Id +func (m VcnDrgAttachmentNetworkCreateDetails) GetId() *string { + return m.Id +} + +func (m VcnDrgAttachmentNetworkCreateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VcnDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum(string(m.VcnRouteType)); !ok && m.VcnRouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VcnRouteType: %s. Supported values are: %s.", m.VcnRouteType, strings.Join(GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VcnDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVcnDrgAttachmentNetworkCreateDetails VcnDrgAttachmentNetworkCreateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVcnDrgAttachmentNetworkCreateDetails + }{ + "VCN", + (MarshalTypeVcnDrgAttachmentNetworkCreateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_details.go new file mode 100644 index 0000000000..5824752e12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_details.go @@ -0,0 +1,118 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VcnDrgAttachmentNetworkDetails Specifies details within the VCN. +type VcnDrgAttachmentNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table the DRG attachment is using. + // For information about why you would associate a route table with a DRG attachment, see: + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. + // Routes from the VCN ingress route table are always imported. + VcnRouteType VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum `mandatory:"false" json:"vcnRouteType,omitempty"` +} + +//GetId returns Id +func (m VcnDrgAttachmentNetworkDetails) GetId() *string { + return m.Id +} + +func (m VcnDrgAttachmentNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VcnDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum(string(m.VcnRouteType)); !ok && m.VcnRouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VcnRouteType: %s. Supported values are: %s.", m.VcnRouteType, strings.Join(GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VcnDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVcnDrgAttachmentNetworkDetails VcnDrgAttachmentNetworkDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVcnDrgAttachmentNetworkDetails + }{ + "VCN", + (MarshalTypeVcnDrgAttachmentNetworkDetails)(m), + } + + return json.Marshal(&s) +} + +// VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum Enum with underlying type: string +type VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum string + +// Set of constants representing the allowable values for VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum +const ( + VcnDrgAttachmentNetworkDetailsVcnRouteTypeVcnCidrs VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum = "VCN_CIDRS" + VcnDrgAttachmentNetworkDetailsVcnRouteTypeSubnetCidrs VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum = "SUBNET_CIDRS" +) + +var mappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum = map[string]VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum{ + "VCN_CIDRS": VcnDrgAttachmentNetworkDetailsVcnRouteTypeVcnCidrs, + "SUBNET_CIDRS": VcnDrgAttachmentNetworkDetailsVcnRouteTypeSubnetCidrs, +} + +var mappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumLowerCase = map[string]VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum{ + "vcn_cidrs": VcnDrgAttachmentNetworkDetailsVcnRouteTypeVcnCidrs, + "subnet_cidrs": VcnDrgAttachmentNetworkDetailsVcnRouteTypeSubnetCidrs, +} + +// GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumValues Enumerates the set of values for VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum +func GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumValues() []VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum { + values := make([]VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum, 0) + for _, v := range mappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum { + values = append(values, v) + } + return values +} + +// GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumStringValues Enumerates the set of values in String for VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum +func GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumStringValues() []string { + return []string{ + "VCN_CIDRS", + "SUBNET_CIDRS", + } +} + +// GetMappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum(val string) (VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum, bool) { + enum, ok := mappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_update_details.go new file mode 100644 index 0000000000..9dc47704d8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_drg_attachment_network_update_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VcnDrgAttachmentNetworkUpdateDetails Specifies the update details for the VCN attachment. +type VcnDrgAttachmentNetworkUpdateDetails struct { + + // This is the OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that is used to route the traffic as it enters a VCN through this attachment. + // For information about why you would associate a route table with a DRG attachment, see: + // * Transit Routing: Access to Multiple VCNs in Same Region (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm) + // * Transit Routing: Private Access to Oracle Services (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/transitroutingoracleservices.htm) + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // Indicates whether the VCN CIDRs or the individual subnet CIDRs are imported from the attachment. + // Routes from the VCN ingress route table are always imported. + VcnRouteType VcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum `mandatory:"false" json:"vcnRouteType,omitempty"` +} + +func (m VcnDrgAttachmentNetworkUpdateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VcnDrgAttachmentNetworkUpdateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnum(string(m.VcnRouteType)); !ok && m.VcnRouteType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VcnRouteType: %s. Supported values are: %s.", m.VcnRouteType, strings.Join(GetVcnDrgAttachmentNetworkDetailsVcnRouteTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VcnDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVcnDrgAttachmentNetworkUpdateDetails VcnDrgAttachmentNetworkUpdateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVcnDrgAttachmentNetworkUpdateDetails + }{ + "VCN", + (MarshalTypeVcnDrgAttachmentNetworkUpdateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_topology.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_topology.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go index cf7ac31177..b4020f9144 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vcn_topology.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vcn_topology.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // VcnTopology Defines the representation of a virtual network topology for a VCN. @@ -53,6 +55,18 @@ func (m VcnTopology) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VcnTopology) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m VcnTopology) MarshalJSON() (buff []byte, e error) { type MarshalTypeVcnTopology VcnTopology diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go new file mode 100644 index 0000000000..c94c9b703f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit.go @@ -0,0 +1,629 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualCircuit For use with Oracle Cloud Infrastructure FastConnect. +// A virtual circuit is an isolated network path that runs over one or more physical +// network connections to provide a single, logical connection between the edge router +// on the customer's existing network and Oracle Cloud Infrastructure. *Private* +// virtual circuits support private peering, and *public* virtual circuits support +// public peering. For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +// Each virtual circuit is made up of information shared between a customer, Oracle, +// and a provider (if the customer is using FastConnect via a provider). Who fills in +// a given property of a virtual circuit depends on whether the BGP session related to +// that virtual circuit goes from the customer's edge router to Oracle, or from the provider's +// edge router to Oracle. Also, in the case where the customer is using a provider, values +// for some of the properties may not be present immediately, but may get filled in as the +// provider and Oracle each do their part to provision the virtual circuit. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +type VirtualCircuit struct { + + // The provisioned data rate of the connection. To get a list of the + // available bandwidth levels (that is, shapes), see + // ListFastConnectProviderVirtualCircuitBandwidthShapes. + // Example: `10 Gbps` + BandwidthShapeName *string `mandatory:"false" json:"bandwidthShapeName"` + + // Deprecated. Instead use the information in + // FastConnectProviderService. + BgpManagement VirtualCircuitBgpManagementEnum `mandatory:"false" json:"bgpManagement,omitempty"` + + // The state of the Ipv4 BGP session associated with the virtual circuit. + BgpSessionState VirtualCircuitBgpSessionStateEnum `mandatory:"false" json:"bgpSessionState,omitempty"` + + // The state of the Ipv6 BGP session associated with the virtual circuit. + BgpIpv6SessionState VirtualCircuitBgpIpv6SessionStateEnum `mandatory:"false" json:"bgpIpv6SessionState,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the virtual circuit. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // An array of mappings, each containing properties for a + // cross-connect or cross-connect group that is associated with this + // virtual circuit. + CrossConnectMappings []CrossConnectMapping `mandatory:"false" json:"crossConnectMappings"` + + // The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit. + // Policies available are: `ORACLE_SERVICE_NETWORK`, `REGIONAL`, `MARKET_LEVEL`, and `GLOBAL`. + // See Route Filtering (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/routingonprem.htm#route_filtering) for details. + // By default, routing information is shared for all routes in the same market. + RoutingPolicy []VirtualCircuitRoutingPolicyEnum `mandatory:"false" json:"routingPolicy,omitempty"` + + // Set to `ENABLED` (the default) to activate the BGP session of the virtual circuit, set to `DISABLED` to deactivate the virtual circuit. + BgpAdminState VirtualCircuitBgpAdminStateEnum `mandatory:"false" json:"bgpAdminState,omitempty"` + + // Set to `true` to enable BFD for IPv4 BGP peering, or set to `false` to disable BFD. If this is not set, the default is `false`. + IsBfdEnabled *bool `mandatory:"false" json:"isBfdEnabled"` + + // Deprecated. Instead use `customerAsn`. + // If you specify values for both, the request will be rejected. + CustomerBgpAsn *int `mandatory:"false" json:"customerBgpAsn"` + + // The BGP ASN of the network at the other end of the BGP + // session from Oracle. If the session is between the customer's + // edge router and Oracle, the value is the customer's ASN. If the BGP + // session is between the provider's edge router and Oracle, the value + // is the provider's ASN. + // Can be a 2-byte or 4-byte ASN. Uses "asplain" format. + CustomerAsn *int64 `mandatory:"false" json:"customerAsn"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the customer's Drg + // that this virtual circuit uses. Applicable only to private virtual circuits. + GatewayId *string `mandatory:"false" json:"gatewayId"` + + // The virtual circuit's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"false" json:"id"` + + // The virtual circuit's current state. For information about + // the different states, see + // FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). + LifecycleState VirtualCircuitLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The Oracle BGP ASN. + OracleBgpAsn *int `mandatory:"false" json:"oracleBgpAsn"` + + // Deprecated. Instead use `providerServiceId`. + ProviderName *string `mandatory:"false" json:"providerName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the service offered by the provider (if the customer is connecting via a provider). + ProviderServiceId *string `mandatory:"false" json:"providerServiceId"` + + // The service key name offered by the provider (if the customer is connecting via a provider). + ProviderServiceKeyName *string `mandatory:"false" json:"providerServiceKeyName"` + + // Deprecated. Instead use `providerServiceId`. + ProviderServiceName *string `mandatory:"false" json:"providerServiceName"` + + // The provider's state in relation to this virtual circuit (if the + // customer is connecting via a provider). ACTIVE means + // the provider has provisioned the virtual circuit from their end. + // INACTIVE means the provider has not yet provisioned the virtual + // circuit, or has de-provisioned it. + ProviderState VirtualCircuitProviderStateEnum `mandatory:"false" json:"providerState,omitempty"` + + // For a public virtual circuit. The public IP prefixes (CIDRs) the customer wants to + // advertise across the connection. All prefix sizes are allowed. + PublicPrefixes []string `mandatory:"false" json:"publicPrefixes"` + + // Provider-supplied reference information about this virtual circuit + // (if the customer is connecting via a provider). + ReferenceComment *string `mandatory:"false" json:"referenceComment"` + + // The Oracle Cloud Infrastructure region where this virtual + // circuit is located. + Region *string `mandatory:"false" json:"region"` + + // Provider service type. + ServiceType VirtualCircuitServiceTypeEnum `mandatory:"false" json:"serviceType,omitempty"` + + // The date and time the virtual circuit was created, + // in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Whether the virtual circuit supports private or public peering. For more information, + // see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). + Type VirtualCircuitTypeEnum `mandatory:"false" json:"type,omitempty"` + + // The layer 3 IP MTU to use on this virtual circuit. + IpMtu VirtualCircuitIpMtuEnum `mandatory:"false" json:"ipMtu,omitempty"` +} + +func (m VirtualCircuit) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualCircuit) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVirtualCircuitBgpManagementEnum(string(m.BgpManagement)); !ok && m.BgpManagement != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpManagement: %s. Supported values are: %s.", m.BgpManagement, strings.Join(GetVirtualCircuitBgpManagementEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitBgpSessionStateEnum(string(m.BgpSessionState)); !ok && m.BgpSessionState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpSessionState: %s. Supported values are: %s.", m.BgpSessionState, strings.Join(GetVirtualCircuitBgpSessionStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitBgpIpv6SessionStateEnum(string(m.BgpIpv6SessionState)); !ok && m.BgpIpv6SessionState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpIpv6SessionState: %s. Supported values are: %s.", m.BgpIpv6SessionState, strings.Join(GetVirtualCircuitBgpIpv6SessionStateEnumStringValues(), ","))) + } + for _, val := range m.RoutingPolicy { + if _, ok := GetMappingVirtualCircuitRoutingPolicyEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RoutingPolicy: %s. Supported values are: %s.", val, strings.Join(GetVirtualCircuitRoutingPolicyEnumStringValues(), ","))) + } + } + + if _, ok := GetMappingVirtualCircuitBgpAdminStateEnum(string(m.BgpAdminState)); !ok && m.BgpAdminState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BgpAdminState: %s. Supported values are: %s.", m.BgpAdminState, strings.Join(GetVirtualCircuitBgpAdminStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVirtualCircuitLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitProviderStateEnum(string(m.ProviderState)); !ok && m.ProviderState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProviderState: %s. Supported values are: %s.", m.ProviderState, strings.Join(GetVirtualCircuitProviderStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitServiceTypeEnum(string(m.ServiceType)); !ok && m.ServiceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServiceType: %s. Supported values are: %s.", m.ServiceType, strings.Join(GetVirtualCircuitServiceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetVirtualCircuitTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingVirtualCircuitIpMtuEnum(string(m.IpMtu)); !ok && m.IpMtu != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpMtu: %s. Supported values are: %s.", m.IpMtu, strings.Join(GetVirtualCircuitIpMtuEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VirtualCircuitBgpManagementEnum Enum with underlying type: string +type VirtualCircuitBgpManagementEnum string + +// Set of constants representing the allowable values for VirtualCircuitBgpManagementEnum +const ( + VirtualCircuitBgpManagementCustomerManaged VirtualCircuitBgpManagementEnum = "CUSTOMER_MANAGED" + VirtualCircuitBgpManagementProviderManaged VirtualCircuitBgpManagementEnum = "PROVIDER_MANAGED" + VirtualCircuitBgpManagementOracleManaged VirtualCircuitBgpManagementEnum = "ORACLE_MANAGED" +) + +var mappingVirtualCircuitBgpManagementEnum = map[string]VirtualCircuitBgpManagementEnum{ + "CUSTOMER_MANAGED": VirtualCircuitBgpManagementCustomerManaged, + "PROVIDER_MANAGED": VirtualCircuitBgpManagementProviderManaged, + "ORACLE_MANAGED": VirtualCircuitBgpManagementOracleManaged, +} + +var mappingVirtualCircuitBgpManagementEnumLowerCase = map[string]VirtualCircuitBgpManagementEnum{ + "customer_managed": VirtualCircuitBgpManagementCustomerManaged, + "provider_managed": VirtualCircuitBgpManagementProviderManaged, + "oracle_managed": VirtualCircuitBgpManagementOracleManaged, +} + +// GetVirtualCircuitBgpManagementEnumValues Enumerates the set of values for VirtualCircuitBgpManagementEnum +func GetVirtualCircuitBgpManagementEnumValues() []VirtualCircuitBgpManagementEnum { + values := make([]VirtualCircuitBgpManagementEnum, 0) + for _, v := range mappingVirtualCircuitBgpManagementEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitBgpManagementEnumStringValues Enumerates the set of values in String for VirtualCircuitBgpManagementEnum +func GetVirtualCircuitBgpManagementEnumStringValues() []string { + return []string{ + "CUSTOMER_MANAGED", + "PROVIDER_MANAGED", + "ORACLE_MANAGED", + } +} + +// GetMappingVirtualCircuitBgpManagementEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitBgpManagementEnum(val string) (VirtualCircuitBgpManagementEnum, bool) { + enum, ok := mappingVirtualCircuitBgpManagementEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitBgpSessionStateEnum Enum with underlying type: string +type VirtualCircuitBgpSessionStateEnum string + +// Set of constants representing the allowable values for VirtualCircuitBgpSessionStateEnum +const ( + VirtualCircuitBgpSessionStateUp VirtualCircuitBgpSessionStateEnum = "UP" + VirtualCircuitBgpSessionStateDown VirtualCircuitBgpSessionStateEnum = "DOWN" +) + +var mappingVirtualCircuitBgpSessionStateEnum = map[string]VirtualCircuitBgpSessionStateEnum{ + "UP": VirtualCircuitBgpSessionStateUp, + "DOWN": VirtualCircuitBgpSessionStateDown, +} + +var mappingVirtualCircuitBgpSessionStateEnumLowerCase = map[string]VirtualCircuitBgpSessionStateEnum{ + "up": VirtualCircuitBgpSessionStateUp, + "down": VirtualCircuitBgpSessionStateDown, +} + +// GetVirtualCircuitBgpSessionStateEnumValues Enumerates the set of values for VirtualCircuitBgpSessionStateEnum +func GetVirtualCircuitBgpSessionStateEnumValues() []VirtualCircuitBgpSessionStateEnum { + values := make([]VirtualCircuitBgpSessionStateEnum, 0) + for _, v := range mappingVirtualCircuitBgpSessionStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitBgpSessionStateEnumStringValues Enumerates the set of values in String for VirtualCircuitBgpSessionStateEnum +func GetVirtualCircuitBgpSessionStateEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingVirtualCircuitBgpSessionStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitBgpSessionStateEnum(val string) (VirtualCircuitBgpSessionStateEnum, bool) { + enum, ok := mappingVirtualCircuitBgpSessionStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitBgpIpv6SessionStateEnum Enum with underlying type: string +type VirtualCircuitBgpIpv6SessionStateEnum string + +// Set of constants representing the allowable values for VirtualCircuitBgpIpv6SessionStateEnum +const ( + VirtualCircuitBgpIpv6SessionStateUp VirtualCircuitBgpIpv6SessionStateEnum = "UP" + VirtualCircuitBgpIpv6SessionStateDown VirtualCircuitBgpIpv6SessionStateEnum = "DOWN" +) + +var mappingVirtualCircuitBgpIpv6SessionStateEnum = map[string]VirtualCircuitBgpIpv6SessionStateEnum{ + "UP": VirtualCircuitBgpIpv6SessionStateUp, + "DOWN": VirtualCircuitBgpIpv6SessionStateDown, +} + +var mappingVirtualCircuitBgpIpv6SessionStateEnumLowerCase = map[string]VirtualCircuitBgpIpv6SessionStateEnum{ + "up": VirtualCircuitBgpIpv6SessionStateUp, + "down": VirtualCircuitBgpIpv6SessionStateDown, +} + +// GetVirtualCircuitBgpIpv6SessionStateEnumValues Enumerates the set of values for VirtualCircuitBgpIpv6SessionStateEnum +func GetVirtualCircuitBgpIpv6SessionStateEnumValues() []VirtualCircuitBgpIpv6SessionStateEnum { + values := make([]VirtualCircuitBgpIpv6SessionStateEnum, 0) + for _, v := range mappingVirtualCircuitBgpIpv6SessionStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitBgpIpv6SessionStateEnumStringValues Enumerates the set of values in String for VirtualCircuitBgpIpv6SessionStateEnum +func GetVirtualCircuitBgpIpv6SessionStateEnumStringValues() []string { + return []string{ + "UP", + "DOWN", + } +} + +// GetMappingVirtualCircuitBgpIpv6SessionStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitBgpIpv6SessionStateEnum(val string) (VirtualCircuitBgpIpv6SessionStateEnum, bool) { + enum, ok := mappingVirtualCircuitBgpIpv6SessionStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitRoutingPolicyEnum Enum with underlying type: string +type VirtualCircuitRoutingPolicyEnum string + +// Set of constants representing the allowable values for VirtualCircuitRoutingPolicyEnum +const ( + VirtualCircuitRoutingPolicyOracleServiceNetwork VirtualCircuitRoutingPolicyEnum = "ORACLE_SERVICE_NETWORK" + VirtualCircuitRoutingPolicyRegional VirtualCircuitRoutingPolicyEnum = "REGIONAL" + VirtualCircuitRoutingPolicyMarketLevel VirtualCircuitRoutingPolicyEnum = "MARKET_LEVEL" + VirtualCircuitRoutingPolicyGlobal VirtualCircuitRoutingPolicyEnum = "GLOBAL" +) + +var mappingVirtualCircuitRoutingPolicyEnum = map[string]VirtualCircuitRoutingPolicyEnum{ + "ORACLE_SERVICE_NETWORK": VirtualCircuitRoutingPolicyOracleServiceNetwork, + "REGIONAL": VirtualCircuitRoutingPolicyRegional, + "MARKET_LEVEL": VirtualCircuitRoutingPolicyMarketLevel, + "GLOBAL": VirtualCircuitRoutingPolicyGlobal, +} + +var mappingVirtualCircuitRoutingPolicyEnumLowerCase = map[string]VirtualCircuitRoutingPolicyEnum{ + "oracle_service_network": VirtualCircuitRoutingPolicyOracleServiceNetwork, + "regional": VirtualCircuitRoutingPolicyRegional, + "market_level": VirtualCircuitRoutingPolicyMarketLevel, + "global": VirtualCircuitRoutingPolicyGlobal, +} + +// GetVirtualCircuitRoutingPolicyEnumValues Enumerates the set of values for VirtualCircuitRoutingPolicyEnum +func GetVirtualCircuitRoutingPolicyEnumValues() []VirtualCircuitRoutingPolicyEnum { + values := make([]VirtualCircuitRoutingPolicyEnum, 0) + for _, v := range mappingVirtualCircuitRoutingPolicyEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitRoutingPolicyEnumStringValues Enumerates the set of values in String for VirtualCircuitRoutingPolicyEnum +func GetVirtualCircuitRoutingPolicyEnumStringValues() []string { + return []string{ + "ORACLE_SERVICE_NETWORK", + "REGIONAL", + "MARKET_LEVEL", + "GLOBAL", + } +} + +// GetMappingVirtualCircuitRoutingPolicyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitRoutingPolicyEnum(val string) (VirtualCircuitRoutingPolicyEnum, bool) { + enum, ok := mappingVirtualCircuitRoutingPolicyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitBgpAdminStateEnum Enum with underlying type: string +type VirtualCircuitBgpAdminStateEnum string + +// Set of constants representing the allowable values for VirtualCircuitBgpAdminStateEnum +const ( + VirtualCircuitBgpAdminStateEnabled VirtualCircuitBgpAdminStateEnum = "ENABLED" + VirtualCircuitBgpAdminStateDisabled VirtualCircuitBgpAdminStateEnum = "DISABLED" +) + +var mappingVirtualCircuitBgpAdminStateEnum = map[string]VirtualCircuitBgpAdminStateEnum{ + "ENABLED": VirtualCircuitBgpAdminStateEnabled, + "DISABLED": VirtualCircuitBgpAdminStateDisabled, +} + +var mappingVirtualCircuitBgpAdminStateEnumLowerCase = map[string]VirtualCircuitBgpAdminStateEnum{ + "enabled": VirtualCircuitBgpAdminStateEnabled, + "disabled": VirtualCircuitBgpAdminStateDisabled, +} + +// GetVirtualCircuitBgpAdminStateEnumValues Enumerates the set of values for VirtualCircuitBgpAdminStateEnum +func GetVirtualCircuitBgpAdminStateEnumValues() []VirtualCircuitBgpAdminStateEnum { + values := make([]VirtualCircuitBgpAdminStateEnum, 0) + for _, v := range mappingVirtualCircuitBgpAdminStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitBgpAdminStateEnumStringValues Enumerates the set of values in String for VirtualCircuitBgpAdminStateEnum +func GetVirtualCircuitBgpAdminStateEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingVirtualCircuitBgpAdminStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitBgpAdminStateEnum(val string) (VirtualCircuitBgpAdminStateEnum, bool) { + enum, ok := mappingVirtualCircuitBgpAdminStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitLifecycleStateEnum Enum with underlying type: string +type VirtualCircuitLifecycleStateEnum string + +// Set of constants representing the allowable values for VirtualCircuitLifecycleStateEnum +const ( + VirtualCircuitLifecycleStatePendingProvider VirtualCircuitLifecycleStateEnum = "PENDING_PROVIDER" + VirtualCircuitLifecycleStateVerifying VirtualCircuitLifecycleStateEnum = "VERIFYING" + VirtualCircuitLifecycleStateProvisioning VirtualCircuitLifecycleStateEnum = "PROVISIONING" + VirtualCircuitLifecycleStateProvisioned VirtualCircuitLifecycleStateEnum = "PROVISIONED" + VirtualCircuitLifecycleStateFailed VirtualCircuitLifecycleStateEnum = "FAILED" + VirtualCircuitLifecycleStateInactive VirtualCircuitLifecycleStateEnum = "INACTIVE" + VirtualCircuitLifecycleStateTerminating VirtualCircuitLifecycleStateEnum = "TERMINATING" + VirtualCircuitLifecycleStateTerminated VirtualCircuitLifecycleStateEnum = "TERMINATED" +) + +var mappingVirtualCircuitLifecycleStateEnum = map[string]VirtualCircuitLifecycleStateEnum{ + "PENDING_PROVIDER": VirtualCircuitLifecycleStatePendingProvider, + "VERIFYING": VirtualCircuitLifecycleStateVerifying, + "PROVISIONING": VirtualCircuitLifecycleStateProvisioning, + "PROVISIONED": VirtualCircuitLifecycleStateProvisioned, + "FAILED": VirtualCircuitLifecycleStateFailed, + "INACTIVE": VirtualCircuitLifecycleStateInactive, + "TERMINATING": VirtualCircuitLifecycleStateTerminating, + "TERMINATED": VirtualCircuitLifecycleStateTerminated, +} + +var mappingVirtualCircuitLifecycleStateEnumLowerCase = map[string]VirtualCircuitLifecycleStateEnum{ + "pending_provider": VirtualCircuitLifecycleStatePendingProvider, + "verifying": VirtualCircuitLifecycleStateVerifying, + "provisioning": VirtualCircuitLifecycleStateProvisioning, + "provisioned": VirtualCircuitLifecycleStateProvisioned, + "failed": VirtualCircuitLifecycleStateFailed, + "inactive": VirtualCircuitLifecycleStateInactive, + "terminating": VirtualCircuitLifecycleStateTerminating, + "terminated": VirtualCircuitLifecycleStateTerminated, +} + +// GetVirtualCircuitLifecycleStateEnumValues Enumerates the set of values for VirtualCircuitLifecycleStateEnum +func GetVirtualCircuitLifecycleStateEnumValues() []VirtualCircuitLifecycleStateEnum { + values := make([]VirtualCircuitLifecycleStateEnum, 0) + for _, v := range mappingVirtualCircuitLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitLifecycleStateEnumStringValues Enumerates the set of values in String for VirtualCircuitLifecycleStateEnum +func GetVirtualCircuitLifecycleStateEnumStringValues() []string { + return []string{ + "PENDING_PROVIDER", + "VERIFYING", + "PROVISIONING", + "PROVISIONED", + "FAILED", + "INACTIVE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingVirtualCircuitLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitLifecycleStateEnum(val string) (VirtualCircuitLifecycleStateEnum, bool) { + enum, ok := mappingVirtualCircuitLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitProviderStateEnum Enum with underlying type: string +type VirtualCircuitProviderStateEnum string + +// Set of constants representing the allowable values for VirtualCircuitProviderStateEnum +const ( + VirtualCircuitProviderStateActive VirtualCircuitProviderStateEnum = "ACTIVE" + VirtualCircuitProviderStateInactive VirtualCircuitProviderStateEnum = "INACTIVE" +) + +var mappingVirtualCircuitProviderStateEnum = map[string]VirtualCircuitProviderStateEnum{ + "ACTIVE": VirtualCircuitProviderStateActive, + "INACTIVE": VirtualCircuitProviderStateInactive, +} + +var mappingVirtualCircuitProviderStateEnumLowerCase = map[string]VirtualCircuitProviderStateEnum{ + "active": VirtualCircuitProviderStateActive, + "inactive": VirtualCircuitProviderStateInactive, +} + +// GetVirtualCircuitProviderStateEnumValues Enumerates the set of values for VirtualCircuitProviderStateEnum +func GetVirtualCircuitProviderStateEnumValues() []VirtualCircuitProviderStateEnum { + values := make([]VirtualCircuitProviderStateEnum, 0) + for _, v := range mappingVirtualCircuitProviderStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitProviderStateEnumStringValues Enumerates the set of values in String for VirtualCircuitProviderStateEnum +func GetVirtualCircuitProviderStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "INACTIVE", + } +} + +// GetMappingVirtualCircuitProviderStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitProviderStateEnum(val string) (VirtualCircuitProviderStateEnum, bool) { + enum, ok := mappingVirtualCircuitProviderStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitServiceTypeEnum Enum with underlying type: string +type VirtualCircuitServiceTypeEnum string + +// Set of constants representing the allowable values for VirtualCircuitServiceTypeEnum +const ( + VirtualCircuitServiceTypeColocated VirtualCircuitServiceTypeEnum = "COLOCATED" + VirtualCircuitServiceTypeLayer2 VirtualCircuitServiceTypeEnum = "LAYER2" + VirtualCircuitServiceTypeLayer3 VirtualCircuitServiceTypeEnum = "LAYER3" +) + +var mappingVirtualCircuitServiceTypeEnum = map[string]VirtualCircuitServiceTypeEnum{ + "COLOCATED": VirtualCircuitServiceTypeColocated, + "LAYER2": VirtualCircuitServiceTypeLayer2, + "LAYER3": VirtualCircuitServiceTypeLayer3, +} + +var mappingVirtualCircuitServiceTypeEnumLowerCase = map[string]VirtualCircuitServiceTypeEnum{ + "colocated": VirtualCircuitServiceTypeColocated, + "layer2": VirtualCircuitServiceTypeLayer2, + "layer3": VirtualCircuitServiceTypeLayer3, +} + +// GetVirtualCircuitServiceTypeEnumValues Enumerates the set of values for VirtualCircuitServiceTypeEnum +func GetVirtualCircuitServiceTypeEnumValues() []VirtualCircuitServiceTypeEnum { + values := make([]VirtualCircuitServiceTypeEnum, 0) + for _, v := range mappingVirtualCircuitServiceTypeEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitServiceTypeEnumStringValues Enumerates the set of values in String for VirtualCircuitServiceTypeEnum +func GetVirtualCircuitServiceTypeEnumStringValues() []string { + return []string{ + "COLOCATED", + "LAYER2", + "LAYER3", + } +} + +// GetMappingVirtualCircuitServiceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitServiceTypeEnum(val string) (VirtualCircuitServiceTypeEnum, bool) { + enum, ok := mappingVirtualCircuitServiceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VirtualCircuitTypeEnum Enum with underlying type: string +type VirtualCircuitTypeEnum string + +// Set of constants representing the allowable values for VirtualCircuitTypeEnum +const ( + VirtualCircuitTypePublic VirtualCircuitTypeEnum = "PUBLIC" + VirtualCircuitTypePrivate VirtualCircuitTypeEnum = "PRIVATE" +) + +var mappingVirtualCircuitTypeEnum = map[string]VirtualCircuitTypeEnum{ + "PUBLIC": VirtualCircuitTypePublic, + "PRIVATE": VirtualCircuitTypePrivate, +} + +var mappingVirtualCircuitTypeEnumLowerCase = map[string]VirtualCircuitTypeEnum{ + "public": VirtualCircuitTypePublic, + "private": VirtualCircuitTypePrivate, +} + +// GetVirtualCircuitTypeEnumValues Enumerates the set of values for VirtualCircuitTypeEnum +func GetVirtualCircuitTypeEnumValues() []VirtualCircuitTypeEnum { + values := make([]VirtualCircuitTypeEnum, 0) + for _, v := range mappingVirtualCircuitTypeEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitTypeEnumStringValues Enumerates the set of values in String for VirtualCircuitTypeEnum +func GetVirtualCircuitTypeEnumStringValues() []string { + return []string{ + "PUBLIC", + "PRIVATE", + } +} + +// GetMappingVirtualCircuitTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitTypeEnum(val string) (VirtualCircuitTypeEnum, bool) { + enum, ok := mappingVirtualCircuitTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_bandwidth_shape.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_bandwidth_shape.go new file mode 100644 index 0000000000..121fd9fbca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_bandwidth_shape.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualCircuitBandwidthShape An individual bandwidth level for virtual circuits. +type VirtualCircuitBandwidthShape struct { + + // The name of the bandwidth shape. + // Example: `10 Gbps` + Name *string `mandatory:"true" json:"name"` + + // The bandwidth in Mbps. + // Example: `10000` + BandwidthInMbps *int `mandatory:"false" json:"bandwidthInMbps"` +} + +func (m VirtualCircuitBandwidthShape) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualCircuitBandwidthShape) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_create_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_create_details.go new file mode 100644 index 0000000000..058956f6f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_create_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualCircuitDrgAttachmentNetworkCreateDetails The representation of VirtualCircuitDrgAttachmentNetworkCreateDetails +type VirtualCircuitDrgAttachmentNetworkCreateDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of compartment that contains the Virtual Circuit. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The BGP ASN to use for the Virtual Circuit's route target + RegionalOciAsn *string `mandatory:"true" json:"regionalOciAsn"` + + // Whether the Fast Connect exists through an edge pop region. + // Example: `true` + IsEdgePop *bool `mandatory:"false" json:"isEdgePop"` + + // The OCI region name + RegionName *string `mandatory:"false" json:"regionName"` + + // Boolean flag that determines wether all traffic over the VCs is encrypted. + // Example: `true` + TransportOnlyMode *bool `mandatory:"false" json:"transportOnlyMode"` +} + +//GetId returns Id +func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) GetId() *string { + return m.Id +} + +func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VirtualCircuitDrgAttachmentNetworkCreateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVirtualCircuitDrgAttachmentNetworkCreateDetails VirtualCircuitDrgAttachmentNetworkCreateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVirtualCircuitDrgAttachmentNetworkCreateDetails + }{ + "VIRTUAL_CIRCUIT", + (MarshalTypeVirtualCircuitDrgAttachmentNetworkCreateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_details.go new file mode 100644 index 0000000000..3c209a5eda --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_details.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualCircuitDrgAttachmentNetworkDetails Specifies the virtual circuit attached to the DRG. +type VirtualCircuitDrgAttachmentNetworkDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the network attached to the DRG. + Id *string `mandatory:"true" json:"id"` + + // Whether the Fast Connect is an FFAB VirtualCircuit. + // Example: `true` + IsFFAB *bool `mandatory:"false" json:"isFFAB"` + + // This indicates whether FastConnect extends through an edge POP region. + // Example: `true` + IsEdgePop *bool `mandatory:"false" json:"isEdgePop"` + + // Routes which may be imported from the attachment (subject to import policy) appear in the route reflectors + // tagged with the attachment's import route target. + ImportRouteTarget *string `mandatory:"false" json:"importRouteTarget"` + + // Routes which are exported to the attachment are exported to the route reflectors + // with the route target set to the value of the attachment's export route target. + ExportRouteTarget *string `mandatory:"false" json:"exportRouteTarget"` + + // The MPLS label of the DRG attachment + MplsLabel *int `mandatory:"false" json:"mplsLabel"` + + // The BGP ASN to use for the IPSec connection's route target. + RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` + + // The Oracle Cloud Infrastructure region name. + RegionName *string `mandatory:"false" json:"regionName"` + + // Boolean flag that determines wether all traffic over the VCs is encrypted. + // Example: `true` + TransportOnlyMode *bool `mandatory:"false" json:"transportOnlyMode"` +} + +//GetId returns Id +func (m VirtualCircuitDrgAttachmentNetworkDetails) GetId() *string { + return m.Id +} + +func (m VirtualCircuitDrgAttachmentNetworkDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualCircuitDrgAttachmentNetworkDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VirtualCircuitDrgAttachmentNetworkDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVirtualCircuitDrgAttachmentNetworkDetails VirtualCircuitDrgAttachmentNetworkDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVirtualCircuitDrgAttachmentNetworkDetails + }{ + "VIRTUAL_CIRCUIT", + (MarshalTypeVirtualCircuitDrgAttachmentNetworkDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_update_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_update_details.go new file mode 100644 index 0000000000..238b9140e7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_drg_attachment_network_update_details.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualCircuitDrgAttachmentNetworkUpdateDetails Specifies the update details for the virtual circuit attachment. +type VirtualCircuitDrgAttachmentNetworkUpdateDetails struct { + + // Whether the Fast Connect is an FFAB VirtualCircuit. + // Example: `true` + IsFFAB *bool `mandatory:"false" json:"isFFAB"` + + // The BGP ASN to use for the virtual circuit's route target. + RegionalOciAsn *string `mandatory:"false" json:"regionalOciAsn"` + + // Indicates whether FastConnect extends through an edge POP region. + // Example: `true` + IsEdgePop *bool `mandatory:"false" json:"isEdgePop"` + + // The OCI region name + RegionName *string `mandatory:"false" json:"regionName"` + + // Boolean flag that determines wether all traffic over the VCs is encrypted. + // Example: `true` + TransportOnlyMode *bool `mandatory:"false" json:"transportOnlyMode"` +} + +func (m VirtualCircuitDrgAttachmentNetworkUpdateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualCircuitDrgAttachmentNetworkUpdateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VirtualCircuitDrgAttachmentNetworkUpdateDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVirtualCircuitDrgAttachmentNetworkUpdateDetails VirtualCircuitDrgAttachmentNetworkUpdateDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVirtualCircuitDrgAttachmentNetworkUpdateDetails + }{ + "VIRTUAL_CIRCUIT", + (MarshalTypeVirtualCircuitDrgAttachmentNetworkUpdateDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_ip_mtu.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_ip_mtu.go new file mode 100644 index 0000000000..a8d1faa406 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_ip_mtu.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "strings" +) + +// VirtualCircuitIpMtuEnum Enum with underlying type: string +type VirtualCircuitIpMtuEnum string + +// Set of constants representing the allowable values for VirtualCircuitIpMtuEnum +const ( + VirtualCircuitIpMtuMtu1500 VirtualCircuitIpMtuEnum = "MTU_1500" + VirtualCircuitIpMtuMtu9000 VirtualCircuitIpMtuEnum = "MTU_9000" +) + +var mappingVirtualCircuitIpMtuEnum = map[string]VirtualCircuitIpMtuEnum{ + "MTU_1500": VirtualCircuitIpMtuMtu1500, + "MTU_9000": VirtualCircuitIpMtuMtu9000, +} + +var mappingVirtualCircuitIpMtuEnumLowerCase = map[string]VirtualCircuitIpMtuEnum{ + "mtu_1500": VirtualCircuitIpMtuMtu1500, + "mtu_9000": VirtualCircuitIpMtuMtu9000, +} + +// GetVirtualCircuitIpMtuEnumValues Enumerates the set of values for VirtualCircuitIpMtuEnum +func GetVirtualCircuitIpMtuEnumValues() []VirtualCircuitIpMtuEnum { + values := make([]VirtualCircuitIpMtuEnum, 0) + for _, v := range mappingVirtualCircuitIpMtuEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitIpMtuEnumStringValues Enumerates the set of values in String for VirtualCircuitIpMtuEnum +func GetVirtualCircuitIpMtuEnumStringValues() []string { + return []string{ + "MTU_1500", + "MTU_9000", + } +} + +// GetMappingVirtualCircuitIpMtuEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitIpMtuEnum(val string) (VirtualCircuitIpMtuEnum, bool) { + enum, ok := mappingVirtualCircuitIpMtuEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_public_prefix.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_public_prefix.go new file mode 100644 index 0000000000..7b384c2ddf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/virtual_circuit_public_prefix.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VirtualCircuitPublicPrefix A public IP prefix and its details. With a public virtual circuit, the customer +// specifies the customer-owned public IP prefixes to advertise across the connection. +// For more information, see FastConnect Overview (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/fastconnect.htm). +type VirtualCircuitPublicPrefix struct { + + // Publix IP prefix (CIDR) that the customer specified. + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // Oracle must verify that the customer owns the public IP prefix before traffic + // for that prefix can flow across the virtual circuit. Verification can take a + // few business days. `IN_PROGRESS` means Oracle is verifying the prefix. `COMPLETED` + // means verification succeeded. `FAILED` means verification failed and traffic for + // this prefix will not flow across the connection. + VerificationState VirtualCircuitPublicPrefixVerificationStateEnum `mandatory:"true" json:"verificationState"` +} + +func (m VirtualCircuitPublicPrefix) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VirtualCircuitPublicPrefix) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVirtualCircuitPublicPrefixVerificationStateEnum(string(m.VerificationState)); !ok && m.VerificationState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VerificationState: %s. Supported values are: %s.", m.VerificationState, strings.Join(GetVirtualCircuitPublicPrefixVerificationStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VirtualCircuitPublicPrefixVerificationStateEnum Enum with underlying type: string +type VirtualCircuitPublicPrefixVerificationStateEnum string + +// Set of constants representing the allowable values for VirtualCircuitPublicPrefixVerificationStateEnum +const ( + VirtualCircuitPublicPrefixVerificationStateInProgress VirtualCircuitPublicPrefixVerificationStateEnum = "IN_PROGRESS" + VirtualCircuitPublicPrefixVerificationStateCompleted VirtualCircuitPublicPrefixVerificationStateEnum = "COMPLETED" + VirtualCircuitPublicPrefixVerificationStateFailed VirtualCircuitPublicPrefixVerificationStateEnum = "FAILED" +) + +var mappingVirtualCircuitPublicPrefixVerificationStateEnum = map[string]VirtualCircuitPublicPrefixVerificationStateEnum{ + "IN_PROGRESS": VirtualCircuitPublicPrefixVerificationStateInProgress, + "COMPLETED": VirtualCircuitPublicPrefixVerificationStateCompleted, + "FAILED": VirtualCircuitPublicPrefixVerificationStateFailed, +} + +var mappingVirtualCircuitPublicPrefixVerificationStateEnumLowerCase = map[string]VirtualCircuitPublicPrefixVerificationStateEnum{ + "in_progress": VirtualCircuitPublicPrefixVerificationStateInProgress, + "completed": VirtualCircuitPublicPrefixVerificationStateCompleted, + "failed": VirtualCircuitPublicPrefixVerificationStateFailed, +} + +// GetVirtualCircuitPublicPrefixVerificationStateEnumValues Enumerates the set of values for VirtualCircuitPublicPrefixVerificationStateEnum +func GetVirtualCircuitPublicPrefixVerificationStateEnumValues() []VirtualCircuitPublicPrefixVerificationStateEnum { + values := make([]VirtualCircuitPublicPrefixVerificationStateEnum, 0) + for _, v := range mappingVirtualCircuitPublicPrefixVerificationStateEnum { + values = append(values, v) + } + return values +} + +// GetVirtualCircuitPublicPrefixVerificationStateEnumStringValues Enumerates the set of values in String for VirtualCircuitPublicPrefixVerificationStateEnum +func GetVirtualCircuitPublicPrefixVerificationStateEnumStringValues() []string { + return []string{ + "IN_PROGRESS", + "COMPLETED", + "FAILED", + } +} + +// GetMappingVirtualCircuitPublicPrefixVerificationStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVirtualCircuitPublicPrefixVerificationStateEnum(val string) (VirtualCircuitPublicPrefixVerificationStateEnum, bool) { + enum, ok := mappingVirtualCircuitPublicPrefixVerificationStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vlan.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vlan.go new file mode 100644 index 0000000000..5ed41760bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vlan.go @@ -0,0 +1,157 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Vlan A resource to be used only with the Oracle Cloud VMware Solution. +// Conceptually, a virtual LAN (VLAN) is a broadcast domain that is created +// by partitioning and isolating a network at the data link layer (a *layer 2 network*). +// VLANs work by using IEEE 802.1Q VLAN tags. Layer 2 traffic is forwarded within the +// VLAN based on MAC learning. +// In the Networking service, a VLAN is an object within a VCN. You use VLANs to +// partition the VCN at the data link layer (layer 2). A VLAN is analagous to a subnet, +// which is an object for partitioning the VCN at the IP layer (layer 3). +type Vlan struct { + + // The range of IPv4 addresses that will be used for layer 3 communication with + // hosts outside the VLAN. + // Example: `192.168.1.0/24` + CidrBlock *string `mandatory:"true" json:"cidrBlock"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the VLAN. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The VLAN's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The VLAN's current state. + LifecycleState VlanLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN the VLAN is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The VLAN's availability domain. This attribute will be null if this is a regional VLAN + // rather than an AD-specific VLAN. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // A list of the OCIDs of the network security groups (NSGs) to use with this VLAN. + // All VNICs in the VLAN belong to these NSGs. For more + // information about NSGs, see + // NetworkSecurityGroup. + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The IEEE 802.1Q VLAN tag of this VLAN. + // Example: `100` + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the route table that the VLAN uses. + RouteTableId *string `mandatory:"false" json:"routeTableId"` + + // The date and time the VLAN was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m Vlan) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Vlan) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVlanLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVlanLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VlanLifecycleStateEnum Enum with underlying type: string +type VlanLifecycleStateEnum string + +// Set of constants representing the allowable values for VlanLifecycleStateEnum +const ( + VlanLifecycleStateProvisioning VlanLifecycleStateEnum = "PROVISIONING" + VlanLifecycleStateAvailable VlanLifecycleStateEnum = "AVAILABLE" + VlanLifecycleStateTerminating VlanLifecycleStateEnum = "TERMINATING" + VlanLifecycleStateTerminated VlanLifecycleStateEnum = "TERMINATED" + VlanLifecycleStateUpdating VlanLifecycleStateEnum = "UPDATING" +) + +var mappingVlanLifecycleStateEnum = map[string]VlanLifecycleStateEnum{ + "PROVISIONING": VlanLifecycleStateProvisioning, + "AVAILABLE": VlanLifecycleStateAvailable, + "TERMINATING": VlanLifecycleStateTerminating, + "TERMINATED": VlanLifecycleStateTerminated, + "UPDATING": VlanLifecycleStateUpdating, +} + +var mappingVlanLifecycleStateEnumLowerCase = map[string]VlanLifecycleStateEnum{ + "provisioning": VlanLifecycleStateProvisioning, + "available": VlanLifecycleStateAvailable, + "terminating": VlanLifecycleStateTerminating, + "terminated": VlanLifecycleStateTerminated, + "updating": VlanLifecycleStateUpdating, +} + +// GetVlanLifecycleStateEnumValues Enumerates the set of values for VlanLifecycleStateEnum +func GetVlanLifecycleStateEnumValues() []VlanLifecycleStateEnum { + values := make([]VlanLifecycleStateEnum, 0) + for _, v := range mappingVlanLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVlanLifecycleStateEnumStringValues Enumerates the set of values in String for VlanLifecycleStateEnum +func GetVlanLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "UPDATING", + } +} + +// GetMappingVlanLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVlanLifecycleStateEnum(val string) (VlanLifecycleStateEnum, bool) { + enum, ok := mappingVlanLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/vnic.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go index 2a5c13f00f..a5e38cc634 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/vnic.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic.go @@ -1,20 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Core Services API // -// API covering the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), // Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and -// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. Use this API -// to manage resources such as virtual cloud networks (VCNs), compute instances, and -// block storage volumes. +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. // package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Vnic A virtual network interface card. Each VNIC resides in a subnet in a VCN. @@ -130,6 +132,21 @@ func (m Vnic) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Vnic) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVnicLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVnicLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // VnicLifecycleStateEnum Enum with underlying type: string type VnicLifecycleStateEnum string @@ -141,18 +158,41 @@ const ( VnicLifecycleStateTerminated VnicLifecycleStateEnum = "TERMINATED" ) -var mappingVnicLifecycleState = map[string]VnicLifecycleStateEnum{ +var mappingVnicLifecycleStateEnum = map[string]VnicLifecycleStateEnum{ "PROVISIONING": VnicLifecycleStateProvisioning, "AVAILABLE": VnicLifecycleStateAvailable, "TERMINATING": VnicLifecycleStateTerminating, "TERMINATED": VnicLifecycleStateTerminated, } +var mappingVnicLifecycleStateEnumLowerCase = map[string]VnicLifecycleStateEnum{ + "provisioning": VnicLifecycleStateProvisioning, + "available": VnicLifecycleStateAvailable, + "terminating": VnicLifecycleStateTerminating, + "terminated": VnicLifecycleStateTerminated, +} + // GetVnicLifecycleStateEnumValues Enumerates the set of values for VnicLifecycleStateEnum func GetVnicLifecycleStateEnumValues() []VnicLifecycleStateEnum { values := make([]VnicLifecycleStateEnum, 0) - for _, v := range mappingVnicLifecycleState { + for _, v := range mappingVnicLifecycleStateEnum { values = append(values, v) } return values } + +// GetVnicLifecycleStateEnumStringValues Enumerates the set of values in String for VnicLifecycleStateEnum +func GetVnicLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingVnicLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVnicLifecycleStateEnum(val string) (VnicLifecycleStateEnum, bool) { + enum, ok := mappingVnicLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_attachment.go new file mode 100644 index 0000000000..a346cf83f6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_attachment.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VnicAttachment Represents an attachment between a VNIC and an instance. For more information, see +// Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VnicAttachment struct { + + // The availability domain of the instance. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment the VNIC attachment is in, which is the same + // compartment the instance is in. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the VNIC attachment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the instance. + InstanceId *string `mandatory:"true" json:"instanceId"` + + // The current state of the VNIC attachment. + LifecycleState VnicAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the VNIC attachment was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Which physical network interface card (NIC) the VNIC uses. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a secondary VNIC to one of these instances, you can specify which NIC + // the VNIC will use. For more information, see + // Virtual Network Interface Cards (VNICs) (https://docs.cloud.oracle.com/iaas/Content/Network/Tasks/managingVNICs.htm). + NicIndex *int `mandatory:"false" json:"nicIndex"` + + // The OCID of the subnet to create the VNIC in. + SubnetId *string `mandatory:"false" json:"subnetId"` + + // The OCID of the VLAN to create the VNIC in. Creating the VNIC in a VLAN (instead + // of a subnet) is possible only if you are an Oracle Cloud VMware Solution customer. + // See Vlan. + // An error is returned if the instance already has a VNIC attached to it from this VLAN. + VlanId *string `mandatory:"false" json:"vlanId"` + + // The Oracle-assigned VLAN tag of the attached VNIC. Available after the + // attachment process is complete. + // However, if the VNIC belongs to a VLAN as part of the Oracle Cloud VMware Solution, + // the `vlanTag` value is instead the value of the `vlanTag` attribute for the VLAN. + // See Vlan. + // Example: `0` + VlanTag *int `mandatory:"false" json:"vlanTag"` + + // The OCID of the VNIC. Available after the attachment process is complete. + VnicId *string `mandatory:"false" json:"vnicId"` +} + +func (m VnicAttachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VnicAttachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVnicAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVnicAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VnicAttachmentLifecycleStateEnum Enum with underlying type: string +type VnicAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for VnicAttachmentLifecycleStateEnum +const ( + VnicAttachmentLifecycleStateAttaching VnicAttachmentLifecycleStateEnum = "ATTACHING" + VnicAttachmentLifecycleStateAttached VnicAttachmentLifecycleStateEnum = "ATTACHED" + VnicAttachmentLifecycleStateDetaching VnicAttachmentLifecycleStateEnum = "DETACHING" + VnicAttachmentLifecycleStateDetached VnicAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingVnicAttachmentLifecycleStateEnum = map[string]VnicAttachmentLifecycleStateEnum{ + "ATTACHING": VnicAttachmentLifecycleStateAttaching, + "ATTACHED": VnicAttachmentLifecycleStateAttached, + "DETACHING": VnicAttachmentLifecycleStateDetaching, + "DETACHED": VnicAttachmentLifecycleStateDetached, +} + +var mappingVnicAttachmentLifecycleStateEnumLowerCase = map[string]VnicAttachmentLifecycleStateEnum{ + "attaching": VnicAttachmentLifecycleStateAttaching, + "attached": VnicAttachmentLifecycleStateAttached, + "detaching": VnicAttachmentLifecycleStateDetaching, + "detached": VnicAttachmentLifecycleStateDetached, +} + +// GetVnicAttachmentLifecycleStateEnumValues Enumerates the set of values for VnicAttachmentLifecycleStateEnum +func GetVnicAttachmentLifecycleStateEnumValues() []VnicAttachmentLifecycleStateEnum { + values := make([]VnicAttachmentLifecycleStateEnum, 0) + for _, v := range mappingVnicAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVnicAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for VnicAttachmentLifecycleStateEnum +func GetVnicAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingVnicAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVnicAttachmentLifecycleStateEnum(val string) (VnicAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingVnicAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker.go new file mode 100644 index 0000000000..dd856d8ad4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker.go @@ -0,0 +1,136 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VnicWorker Details of a vnicWorker. +type VnicWorker struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the `vnicWorker`. + Id *string `mandatory:"false" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the VNIC worker. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The `vnicWorker`'s current state. + LifecycleState VnicWorkerLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of associated service VNIC. + ServiceVnicId *string `mandatory:"false" json:"serviceVnicId"` + + // Details of vnicWorker IPs config. + WorkerIpsConfig []VnicWorkerIpConfig `mandatory:"false" json:"workerIpsConfig"` + + // The MAC address of the vnicWorker. + WorkerMacAddress *string `mandatory:"false" json:"workerMacAddress"` + + // The instance where vnicWorker is attached. + WorkerInstanceId *string `mandatory:"false" json:"workerInstanceId"` + + // Which physical network interface card (NIC) the VNIC worker uses. + // Certain bare metal instance shapes have two active physical NICs (0 and 1). If + // you add a VNIC worker to one of these instances, you can specify which NIC + // the VNIC worker will use. Note that it is required for NIC to have at least a single + // VNIC attached before attaching a VNIC worker. + WorkerNicIndex *int `mandatory:"false" json:"workerNicIndex"` + + // The VLAN tag assigned to `vnicWorker`. + WorkerVlanTag *int `mandatory:"false" json:"workerVlanTag"` + + WorkerPrimaryIpConfig *VnicWorkerIpConfig `mandatory:"false" json:"workerPrimaryIpConfig"` + + // Specifies whether the `vnicWorker` had been enabled for forwarding traffic. + IsEnabled *bool `mandatory:"false" json:"isEnabled"` + + // Specifies whether the `vnicWorker` is in draining mode. + IsDraining *bool `mandatory:"false" json:"isDraining"` +} + +func (m VnicWorker) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VnicWorker) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingVnicWorkerLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVnicWorkerLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VnicWorkerLifecycleStateEnum Enum with underlying type: string +type VnicWorkerLifecycleStateEnum string + +// Set of constants representing the allowable values for VnicWorkerLifecycleStateEnum +const ( + VnicWorkerLifecycleStateProvisioning VnicWorkerLifecycleStateEnum = "PROVISIONING" + VnicWorkerLifecycleStateAvailable VnicWorkerLifecycleStateEnum = "AVAILABLE" + VnicWorkerLifecycleStateTerminating VnicWorkerLifecycleStateEnum = "TERMINATING" + VnicWorkerLifecycleStateTerminated VnicWorkerLifecycleStateEnum = "TERMINATED" +) + +var mappingVnicWorkerLifecycleStateEnum = map[string]VnicWorkerLifecycleStateEnum{ + "PROVISIONING": VnicWorkerLifecycleStateProvisioning, + "AVAILABLE": VnicWorkerLifecycleStateAvailable, + "TERMINATING": VnicWorkerLifecycleStateTerminating, + "TERMINATED": VnicWorkerLifecycleStateTerminated, +} + +var mappingVnicWorkerLifecycleStateEnumLowerCase = map[string]VnicWorkerLifecycleStateEnum{ + "provisioning": VnicWorkerLifecycleStateProvisioning, + "available": VnicWorkerLifecycleStateAvailable, + "terminating": VnicWorkerLifecycleStateTerminating, + "terminated": VnicWorkerLifecycleStateTerminated, +} + +// GetVnicWorkerLifecycleStateEnumValues Enumerates the set of values for VnicWorkerLifecycleStateEnum +func GetVnicWorkerLifecycleStateEnumValues() []VnicWorkerLifecycleStateEnum { + values := make([]VnicWorkerLifecycleStateEnum, 0) + for _, v := range mappingVnicWorkerLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVnicWorkerLifecycleStateEnumStringValues Enumerates the set of values in String for VnicWorkerLifecycleStateEnum +func GetVnicWorkerLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingVnicWorkerLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVnicWorkerLifecycleStateEnum(val string) (VnicWorkerLifecycleStateEnum, bool) { + enum, ok := mappingVnicWorkerLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker_ip_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker_ip_config.go new file mode 100644 index 0000000000..b755d457f4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vnic_worker_ip_config.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VnicWorkerIpConfig Details of a `vnicWorker` IP config. +type VnicWorkerIpConfig struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of IP associated with the `vnicWorker`. + Id *string `mandatory:"false" json:"id"` + + // The IP address. + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The NAT IP address associated with the Private IP + NatIpAddress *string `mandatory:"false" json:"natIpAddress"` +} + +func (m VnicWorkerIpConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VnicWorkerIpConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume.go new file mode 100644 index 0000000000..af491d439b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume.go @@ -0,0 +1,331 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Volume A detachable block volume device that allows you to dynamically expand +// the storage capacity of an instance. For more information, see +// Overview of Cloud Volume Storage (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type Volume struct { + + // The OCID of the compartment that contains the volume. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the volume. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume. + LifecycleState VolumeLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The size of the volume in MBs. This field is deprecated. Use + // sizeInGBs instead. + SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` + + // The date and time the volume was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain of the volume. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // Specifies whether the cloned volume's data has finished copying from the source volume or backup. + IsHydrated *bool `mandatory:"false" json:"isHydrated"` + + // The OCID of the Vault service key which is the master encryption key for the volume. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The number of volume performance units (VPUs) that will be applied to this volume per GB, + // representing the Block Volume service's elastic performance options. + // See Block Volume Performance Levels (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/blockvolumeperformance.htm#perf_levels) for more information. + // Allowed values: + // * `0`: Represents Lower Cost option. + // * `10`: Represents Balanced option. + // * `20`: Represents Higher Performance option. + // * `30`-`120`: Represents the Ultra High Performance option. + // For performance autotune enabled volumes, It would be the Default(Minimum) VPUs/GB. + VpusPerGB *int64 `mandatory:"false" json:"vpusPerGB"` + + // The size of the volume in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + SourceDetails VolumeSourceDetails `mandatory:"false" json:"sourceDetails"` + + // The OCID of the source volume group. + VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` + + // Specifies whether the auto-tune performance is enabled for this volume. This field is deprecated. + // Use the `DetachedVolumeAutotunePolicy` instead to enable the volume for detached autotune. + IsAutoTuneEnabled *bool `mandatory:"false" json:"isAutoTuneEnabled"` + + // The number of Volume Performance Units per GB that this volume is effectively tuned to. + AutoTunedVpusPerGB *int64 `mandatory:"false" json:"autoTunedVpusPerGB"` + + // The list of block volume replicas of this volume. + BlockVolumeReplicas []BlockVolumeReplicaInfo `mandatory:"false" json:"blockVolumeReplicas"` + + // The scope of volume + VolumeScope VolumeVolumeScopeEnum `mandatory:"false" json:"volumeScope,omitempty"` + + // The list of autotune policies enabled for this volume. + AutotunePolicies []AutotunePolicy `mandatory:"false" json:"autotunePolicies"` +} + +func (m Volume) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Volume) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingVolumeVolumeScopeEnum(string(m.VolumeScope)); !ok && m.VolumeScope != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VolumeScope: %s. Supported values are: %s.", m.VolumeScope, strings.Join(GetVolumeVolumeScopeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *Volume) UnmarshalJSON(data []byte) (e error) { + model := struct { + AvailabilityDomain *string `json:"availabilityDomain"` + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + SystemTags map[string]map[string]interface{} `json:"systemTags"` + IsHydrated *bool `json:"isHydrated"` + KmsKeyId *string `json:"kmsKeyId"` + VpusPerGB *int64 `json:"vpusPerGB"` + SizeInGBs *int64 `json:"sizeInGBs"` + SourceDetails volumesourcedetails `json:"sourceDetails"` + VolumeGroupId *string `json:"volumeGroupId"` + IsAutoTuneEnabled *bool `json:"isAutoTuneEnabled"` + AutoTunedVpusPerGB *int64 `json:"autoTunedVpusPerGB"` + BlockVolumeReplicas []BlockVolumeReplicaInfo `json:"blockVolumeReplicas"` + VolumeScope VolumeVolumeScopeEnum `json:"volumeScope"` + AutotunePolicies []autotunepolicy `json:"autotunePolicies"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + Id *string `json:"id"` + LifecycleState VolumeLifecycleStateEnum `json:"lifecycleState"` + SizeInMBs *int64 `json:"sizeInMBs"` + TimeCreated *common.SDKTime `json:"timeCreated"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.AvailabilityDomain = model.AvailabilityDomain + + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + m.SystemTags = model.SystemTags + + m.IsHydrated = model.IsHydrated + + m.KmsKeyId = model.KmsKeyId + + m.VpusPerGB = model.VpusPerGB + + m.SizeInGBs = model.SizeInGBs + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(VolumeSourceDetails) + } else { + m.SourceDetails = nil + } + + m.VolumeGroupId = model.VolumeGroupId + + m.IsAutoTuneEnabled = model.IsAutoTuneEnabled + + m.AutoTunedVpusPerGB = model.AutoTunedVpusPerGB + + m.BlockVolumeReplicas = make([]BlockVolumeReplicaInfo, len(model.BlockVolumeReplicas)) + for i, n := range model.BlockVolumeReplicas { + m.BlockVolumeReplicas[i] = n + } + + m.VolumeScope = model.VolumeScope + + m.AutotunePolicies = make([]AutotunePolicy, len(model.AutotunePolicies)) + for i, n := range model.AutotunePolicies { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.AutotunePolicies[i] = nn.(AutotunePolicy) + } else { + m.AutotunePolicies[i] = nil + } + } + + m.CompartmentId = model.CompartmentId + + m.DisplayName = model.DisplayName + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.SizeInMBs = model.SizeInMBs + + m.TimeCreated = model.TimeCreated + + return +} + +// VolumeLifecycleStateEnum Enum with underlying type: string +type VolumeLifecycleStateEnum string + +// Set of constants representing the allowable values for VolumeLifecycleStateEnum +const ( + VolumeLifecycleStateProvisioning VolumeLifecycleStateEnum = "PROVISIONING" + VolumeLifecycleStateRestoring VolumeLifecycleStateEnum = "RESTORING" + VolumeLifecycleStateAvailable VolumeLifecycleStateEnum = "AVAILABLE" + VolumeLifecycleStateTerminating VolumeLifecycleStateEnum = "TERMINATING" + VolumeLifecycleStateTerminated VolumeLifecycleStateEnum = "TERMINATED" + VolumeLifecycleStateFaulty VolumeLifecycleStateEnum = "FAULTY" +) + +var mappingVolumeLifecycleStateEnum = map[string]VolumeLifecycleStateEnum{ + "PROVISIONING": VolumeLifecycleStateProvisioning, + "RESTORING": VolumeLifecycleStateRestoring, + "AVAILABLE": VolumeLifecycleStateAvailable, + "TERMINATING": VolumeLifecycleStateTerminating, + "TERMINATED": VolumeLifecycleStateTerminated, + "FAULTY": VolumeLifecycleStateFaulty, +} + +var mappingVolumeLifecycleStateEnumLowerCase = map[string]VolumeLifecycleStateEnum{ + "provisioning": VolumeLifecycleStateProvisioning, + "restoring": VolumeLifecycleStateRestoring, + "available": VolumeLifecycleStateAvailable, + "terminating": VolumeLifecycleStateTerminating, + "terminated": VolumeLifecycleStateTerminated, + "faulty": VolumeLifecycleStateFaulty, +} + +// GetVolumeLifecycleStateEnumValues Enumerates the set of values for VolumeLifecycleStateEnum +func GetVolumeLifecycleStateEnumValues() []VolumeLifecycleStateEnum { + values := make([]VolumeLifecycleStateEnum, 0) + for _, v := range mappingVolumeLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeLifecycleStateEnumStringValues Enumerates the set of values in String for VolumeLifecycleStateEnum +func GetVolumeLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "RESTORING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "FAULTY", + } +} + +// GetMappingVolumeLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeLifecycleStateEnum(val string) (VolumeLifecycleStateEnum, bool) { + enum, ok := mappingVolumeLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeVolumeScopeEnum Enum with underlying type: string +type VolumeVolumeScopeEnum string + +// Set of constants representing the allowable values for VolumeVolumeScopeEnum +const ( + VolumeVolumeScopeRegional VolumeVolumeScopeEnum = "REGIONAL" + VolumeVolumeScopeAdLocal VolumeVolumeScopeEnum = "AD_LOCAL" +) + +var mappingVolumeVolumeScopeEnum = map[string]VolumeVolumeScopeEnum{ + "REGIONAL": VolumeVolumeScopeRegional, + "AD_LOCAL": VolumeVolumeScopeAdLocal, +} + +var mappingVolumeVolumeScopeEnumLowerCase = map[string]VolumeVolumeScopeEnum{ + "regional": VolumeVolumeScopeRegional, + "ad_local": VolumeVolumeScopeAdLocal, +} + +// GetVolumeVolumeScopeEnumValues Enumerates the set of values for VolumeVolumeScopeEnum +func GetVolumeVolumeScopeEnumValues() []VolumeVolumeScopeEnum { + values := make([]VolumeVolumeScopeEnum, 0) + for _, v := range mappingVolumeVolumeScopeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeVolumeScopeEnumStringValues Enumerates the set of values in String for VolumeVolumeScopeEnum +func GetVolumeVolumeScopeEnumStringValues() []string { + return []string{ + "REGIONAL", + "AD_LOCAL", + } +} + +// GetMappingVolumeVolumeScopeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeVolumeScopeEnum(val string) (VolumeVolumeScopeEnum, bool) { + enum, ok := mappingVolumeVolumeScopeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_attachment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_attachment.go new file mode 100644 index 0000000000..79a74f7f75 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_attachment.go @@ -0,0 +1,360 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeAttachment A base object for all types of attachments between a storage volume and an instance. +// For specific details about iSCSI attachments, see +// IScsiVolumeAttachment. +// For general information about volume attachments, see +// Overview of Block Volume Storage (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VolumeAttachment interface { + + // The availability domain of an instance. + // Example: `Uocm:PHX-AD-1` + GetAvailabilityDomain() *string + + // The OCID of the compartment. + GetCompartmentId() *string + + // The OCID of the volume attachment. + GetId() *string + + // The OCID of the instance the volume is attached to. + GetInstanceId() *string + + // The current state of the volume attachment. + GetLifecycleState() VolumeAttachmentLifecycleStateEnum + + // The date and time the volume was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2016-08-25T21:10:29.600Z` + GetTimeCreated() *common.SDKTime + + // The OCID of the volume. + GetVolumeId() *string + + // The device name. + GetDevice() *string + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + GetDisplayName() *string + + // Whether the attachment was created in read-only mode. + GetIsReadOnly() *bool + + // Whether the attachment should be created in shareable mode. If an attachment + // is created in shareable mode, then other instances can attach the same volume, provided + // that they also create their attachments in shareable mode. Only certain volume types can + // be attached in shareable mode. Defaults to false if not specified. + GetIsShareable() *bool + + // Whether in-transit encryption for the data volume's paravirtualized attachment is enabled or not. + GetIsPvEncryptionInTransitEnabled() *bool + + // Whether the Iscsi or Paravirtualized attachment is multipath or not, it is not applicable to NVMe attachment. + GetIsMultipath() *bool + + // The iscsi login state of the volume attachment. For a Iscsi volume attachment, + // all iscsi sessions need to be all logged-in or logged-out to be in logged-in or logged-out state. + GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum +} + +type volumeattachment struct { + JsonData []byte + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Id *string `mandatory:"true" json:"id"` + InstanceId *string `mandatory:"true" json:"instanceId"` + LifecycleState VolumeAttachmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + VolumeId *string `mandatory:"true" json:"volumeId"` + Device *string `mandatory:"false" json:"device"` + DisplayName *string `mandatory:"false" json:"displayName"` + IsReadOnly *bool `mandatory:"false" json:"isReadOnly"` + IsShareable *bool `mandatory:"false" json:"isShareable"` + IsPvEncryptionInTransitEnabled *bool `mandatory:"false" json:"isPvEncryptionInTransitEnabled"` + IsMultipath *bool `mandatory:"false" json:"isMultipath"` + IscsiLoginState VolumeAttachmentIscsiLoginStateEnum `mandatory:"false" json:"iscsiLoginState,omitempty"` + AttachmentType string `json:"attachmentType"` +} + +// UnmarshalJSON unmarshals json +func (m *volumeattachment) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalervolumeattachment volumeattachment + s := struct { + Model Unmarshalervolumeattachment + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.AvailabilityDomain = s.Model.AvailabilityDomain + m.CompartmentId = s.Model.CompartmentId + m.Id = s.Model.Id + m.InstanceId = s.Model.InstanceId + m.LifecycleState = s.Model.LifecycleState + m.TimeCreated = s.Model.TimeCreated + m.VolumeId = s.Model.VolumeId + m.Device = s.Model.Device + m.DisplayName = s.Model.DisplayName + m.IsReadOnly = s.Model.IsReadOnly + m.IsShareable = s.Model.IsShareable + m.IsPvEncryptionInTransitEnabled = s.Model.IsPvEncryptionInTransitEnabled + m.IsMultipath = s.Model.IsMultipath + m.IscsiLoginState = s.Model.IscsiLoginState + m.AttachmentType = s.Model.AttachmentType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *volumeattachment) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.AttachmentType { + case "iscsi": + mm := IScsiVolumeAttachment{} + err = json.Unmarshal(data, &mm) + return mm, err + case "emulated": + mm := EmulatedVolumeAttachment{} + err = json.Unmarshal(data, &mm) + return mm, err + case "paravirtualized": + mm := ParavirtualizedVolumeAttachment{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for VolumeAttachment: %s.", m.AttachmentType) + return *m, nil + } +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m volumeattachment) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m volumeattachment) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetId returns Id +func (m volumeattachment) GetId() *string { + return m.Id +} + +//GetInstanceId returns InstanceId +func (m volumeattachment) GetInstanceId() *string { + return m.InstanceId +} + +//GetLifecycleState returns LifecycleState +func (m volumeattachment) GetLifecycleState() VolumeAttachmentLifecycleStateEnum { + return m.LifecycleState +} + +//GetTimeCreated returns TimeCreated +func (m volumeattachment) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetVolumeId returns VolumeId +func (m volumeattachment) GetVolumeId() *string { + return m.VolumeId +} + +//GetDevice returns Device +func (m volumeattachment) GetDevice() *string { + return m.Device +} + +//GetDisplayName returns DisplayName +func (m volumeattachment) GetDisplayName() *string { + return m.DisplayName +} + +//GetIsReadOnly returns IsReadOnly +func (m volumeattachment) GetIsReadOnly() *bool { + return m.IsReadOnly +} + +//GetIsShareable returns IsShareable +func (m volumeattachment) GetIsShareable() *bool { + return m.IsShareable +} + +//GetIsPvEncryptionInTransitEnabled returns IsPvEncryptionInTransitEnabled +func (m volumeattachment) GetIsPvEncryptionInTransitEnabled() *bool { + return m.IsPvEncryptionInTransitEnabled +} + +//GetIsMultipath returns IsMultipath +func (m volumeattachment) GetIsMultipath() *bool { + return m.IsMultipath +} + +//GetIscsiLoginState returns IscsiLoginState +func (m volumeattachment) GetIscsiLoginState() VolumeAttachmentIscsiLoginStateEnum { + return m.IscsiLoginState +} + +func (m volumeattachment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m volumeattachment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeAttachmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeAttachmentLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingVolumeAttachmentIscsiLoginStateEnum(string(m.IscsiLoginState)); !ok && m.IscsiLoginState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IscsiLoginState: %s. Supported values are: %s.", m.IscsiLoginState, strings.Join(GetVolumeAttachmentIscsiLoginStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VolumeAttachmentLifecycleStateEnum Enum with underlying type: string +type VolumeAttachmentLifecycleStateEnum string + +// Set of constants representing the allowable values for VolumeAttachmentLifecycleStateEnum +const ( + VolumeAttachmentLifecycleStateAttaching VolumeAttachmentLifecycleStateEnum = "ATTACHING" + VolumeAttachmentLifecycleStateAttached VolumeAttachmentLifecycleStateEnum = "ATTACHED" + VolumeAttachmentLifecycleStateDetaching VolumeAttachmentLifecycleStateEnum = "DETACHING" + VolumeAttachmentLifecycleStateDetached VolumeAttachmentLifecycleStateEnum = "DETACHED" +) + +var mappingVolumeAttachmentLifecycleStateEnum = map[string]VolumeAttachmentLifecycleStateEnum{ + "ATTACHING": VolumeAttachmentLifecycleStateAttaching, + "ATTACHED": VolumeAttachmentLifecycleStateAttached, + "DETACHING": VolumeAttachmentLifecycleStateDetaching, + "DETACHED": VolumeAttachmentLifecycleStateDetached, +} + +var mappingVolumeAttachmentLifecycleStateEnumLowerCase = map[string]VolumeAttachmentLifecycleStateEnum{ + "attaching": VolumeAttachmentLifecycleStateAttaching, + "attached": VolumeAttachmentLifecycleStateAttached, + "detaching": VolumeAttachmentLifecycleStateDetaching, + "detached": VolumeAttachmentLifecycleStateDetached, +} + +// GetVolumeAttachmentLifecycleStateEnumValues Enumerates the set of values for VolumeAttachmentLifecycleStateEnum +func GetVolumeAttachmentLifecycleStateEnumValues() []VolumeAttachmentLifecycleStateEnum { + values := make([]VolumeAttachmentLifecycleStateEnum, 0) + for _, v := range mappingVolumeAttachmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeAttachmentLifecycleStateEnumStringValues Enumerates the set of values in String for VolumeAttachmentLifecycleStateEnum +func GetVolumeAttachmentLifecycleStateEnumStringValues() []string { + return []string{ + "ATTACHING", + "ATTACHED", + "DETACHING", + "DETACHED", + } +} + +// GetMappingVolumeAttachmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeAttachmentLifecycleStateEnum(val string) (VolumeAttachmentLifecycleStateEnum, bool) { + enum, ok := mappingVolumeAttachmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeAttachmentIscsiLoginStateEnum Enum with underlying type: string +type VolumeAttachmentIscsiLoginStateEnum string + +// Set of constants representing the allowable values for VolumeAttachmentIscsiLoginStateEnum +const ( + VolumeAttachmentIscsiLoginStateUnknown VolumeAttachmentIscsiLoginStateEnum = "UNKNOWN" + VolumeAttachmentIscsiLoginStateLoggingIn VolumeAttachmentIscsiLoginStateEnum = "LOGGING_IN" + VolumeAttachmentIscsiLoginStateLoginSucceeded VolumeAttachmentIscsiLoginStateEnum = "LOGIN_SUCCEEDED" + VolumeAttachmentIscsiLoginStateLoginFailed VolumeAttachmentIscsiLoginStateEnum = "LOGIN_FAILED" + VolumeAttachmentIscsiLoginStateLoggingOut VolumeAttachmentIscsiLoginStateEnum = "LOGGING_OUT" + VolumeAttachmentIscsiLoginStateLogoutSucceeded VolumeAttachmentIscsiLoginStateEnum = "LOGOUT_SUCCEEDED" + VolumeAttachmentIscsiLoginStateLogoutFailed VolumeAttachmentIscsiLoginStateEnum = "LOGOUT_FAILED" +) + +var mappingVolumeAttachmentIscsiLoginStateEnum = map[string]VolumeAttachmentIscsiLoginStateEnum{ + "UNKNOWN": VolumeAttachmentIscsiLoginStateUnknown, + "LOGGING_IN": VolumeAttachmentIscsiLoginStateLoggingIn, + "LOGIN_SUCCEEDED": VolumeAttachmentIscsiLoginStateLoginSucceeded, + "LOGIN_FAILED": VolumeAttachmentIscsiLoginStateLoginFailed, + "LOGGING_OUT": VolumeAttachmentIscsiLoginStateLoggingOut, + "LOGOUT_SUCCEEDED": VolumeAttachmentIscsiLoginStateLogoutSucceeded, + "LOGOUT_FAILED": VolumeAttachmentIscsiLoginStateLogoutFailed, +} + +var mappingVolumeAttachmentIscsiLoginStateEnumLowerCase = map[string]VolumeAttachmentIscsiLoginStateEnum{ + "unknown": VolumeAttachmentIscsiLoginStateUnknown, + "logging_in": VolumeAttachmentIscsiLoginStateLoggingIn, + "login_succeeded": VolumeAttachmentIscsiLoginStateLoginSucceeded, + "login_failed": VolumeAttachmentIscsiLoginStateLoginFailed, + "logging_out": VolumeAttachmentIscsiLoginStateLoggingOut, + "logout_succeeded": VolumeAttachmentIscsiLoginStateLogoutSucceeded, + "logout_failed": VolumeAttachmentIscsiLoginStateLogoutFailed, +} + +// GetVolumeAttachmentIscsiLoginStateEnumValues Enumerates the set of values for VolumeAttachmentIscsiLoginStateEnum +func GetVolumeAttachmentIscsiLoginStateEnumValues() []VolumeAttachmentIscsiLoginStateEnum { + values := make([]VolumeAttachmentIscsiLoginStateEnum, 0) + for _, v := range mappingVolumeAttachmentIscsiLoginStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeAttachmentIscsiLoginStateEnumStringValues Enumerates the set of values in String for VolumeAttachmentIscsiLoginStateEnum +func GetVolumeAttachmentIscsiLoginStateEnumStringValues() []string { + return []string{ + "UNKNOWN", + "LOGGING_IN", + "LOGIN_SUCCEEDED", + "LOGIN_FAILED", + "LOGGING_OUT", + "LOGOUT_SUCCEEDED", + "LOGOUT_FAILED", + } +} + +// GetMappingVolumeAttachmentIscsiLoginStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeAttachmentIscsiLoginStateEnum(val string) (VolumeAttachmentIscsiLoginStateEnum, bool) { + enum, ok := mappingVolumeAttachmentIscsiLoginStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup.go new file mode 100644 index 0000000000..91251ebaca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup.go @@ -0,0 +1,276 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeBackup A point-in-time copy of a volume that can then be used to create a new block volume +// or recover a block volume. For more information, see +// Overview of Cloud Volume Storage (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VolumeBackup struct { + + // The OCID of the compartment that contains the volume backup. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the volume backup. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume backup. + LifecycleState VolumeBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the volume backup was created. This is the time the actual point-in-time image + // of the volume data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The type of a volume backup. + Type VolumeBackupTypeEnum `mandatory:"true" json:"type"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // System tags for this resource. Each key is predefined and scoped to a namespace. + // Example: `{"foo-namespace": {"bar-key": "value"}}` + SystemTags map[string]map[string]interface{} `mandatory:"false" json:"systemTags"` + + // The date and time the volume backup will expire and be automatically deleted. + // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for backups that + // were created automatically by a scheduled-backup policy. For manually created backups, + // it will be absent, signifying that there is no expiration time and the backup will + // last forever until manually deleted. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The OCID of the Vault service key which is the master encryption key for the volume backup. + // For more information about the Vault service and encryption keys, see + // Overview of Vault service (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Concepts/keyoverview.htm) and + // Using Keys (https://docs.cloud.oracle.com/iaas/Content/KeyManagement/Tasks/usingkeys.htm). + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The size of the volume, in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // The size of the volume in MBs. The value must be a multiple of 1024. + // This field is deprecated. Please use sizeInGBs. + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` + + // Specifies whether the backup was created manually, or via scheduled backup policy. + SourceType VolumeBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + // The OCID of the source volume backup. + SourceVolumeBackupId *string `mandatory:"false" json:"sourceVolumeBackupId"` + + // The date and time the request to create the volume backup was received. Format defined by [RFC3339]https://tools.ietf.org/html/rfc3339. + TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` + + // The size used by the backup, in GBs. It is typically smaller than sizeInGBs, depending on the space + // consumed on the volume and whether the backup is full or incremental. + UniqueSizeInGBs *int64 `mandatory:"false" json:"uniqueSizeInGBs"` + + // The size used by the backup, in MBs. It is typically smaller than sizeInMBs, depending on the space + // consumed on the volume and whether the backup is full or incremental. + // This field is deprecated. Please use uniqueSizeInGBs. + UniqueSizeInMbs *int64 `mandatory:"false" json:"uniqueSizeInMbs"` + + // The percentage complete of the operation to create the volume backup, based on the volume backup size. + BackupProgress *int `mandatory:"false" json:"backupProgress"` + + // The OCID of the volume. + VolumeId *string `mandatory:"false" json:"volumeId"` +} + +func (m VolumeBackup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeBackup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeBackupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeBackupLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeBackupTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetVolumeBackupTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingVolumeBackupSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetVolumeBackupSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VolumeBackupLifecycleStateEnum Enum with underlying type: string +type VolumeBackupLifecycleStateEnum string + +// Set of constants representing the allowable values for VolumeBackupLifecycleStateEnum +const ( + VolumeBackupLifecycleStateCreating VolumeBackupLifecycleStateEnum = "CREATING" + VolumeBackupLifecycleStateAvailable VolumeBackupLifecycleStateEnum = "AVAILABLE" + VolumeBackupLifecycleStateTerminating VolumeBackupLifecycleStateEnum = "TERMINATING" + VolumeBackupLifecycleStateTerminated VolumeBackupLifecycleStateEnum = "TERMINATED" + VolumeBackupLifecycleStateFaulty VolumeBackupLifecycleStateEnum = "FAULTY" + VolumeBackupLifecycleStateRequestReceived VolumeBackupLifecycleStateEnum = "REQUEST_RECEIVED" +) + +var mappingVolumeBackupLifecycleStateEnum = map[string]VolumeBackupLifecycleStateEnum{ + "CREATING": VolumeBackupLifecycleStateCreating, + "AVAILABLE": VolumeBackupLifecycleStateAvailable, + "TERMINATING": VolumeBackupLifecycleStateTerminating, + "TERMINATED": VolumeBackupLifecycleStateTerminated, + "FAULTY": VolumeBackupLifecycleStateFaulty, + "REQUEST_RECEIVED": VolumeBackupLifecycleStateRequestReceived, +} + +var mappingVolumeBackupLifecycleStateEnumLowerCase = map[string]VolumeBackupLifecycleStateEnum{ + "creating": VolumeBackupLifecycleStateCreating, + "available": VolumeBackupLifecycleStateAvailable, + "terminating": VolumeBackupLifecycleStateTerminating, + "terminated": VolumeBackupLifecycleStateTerminated, + "faulty": VolumeBackupLifecycleStateFaulty, + "request_received": VolumeBackupLifecycleStateRequestReceived, +} + +// GetVolumeBackupLifecycleStateEnumValues Enumerates the set of values for VolumeBackupLifecycleStateEnum +func GetVolumeBackupLifecycleStateEnumValues() []VolumeBackupLifecycleStateEnum { + values := make([]VolumeBackupLifecycleStateEnum, 0) + for _, v := range mappingVolumeBackupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupLifecycleStateEnumStringValues Enumerates the set of values in String for VolumeBackupLifecycleStateEnum +func GetVolumeBackupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "FAULTY", + "REQUEST_RECEIVED", + } +} + +// GetMappingVolumeBackupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupLifecycleStateEnum(val string) (VolumeBackupLifecycleStateEnum, bool) { + enum, ok := mappingVolumeBackupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupSourceTypeEnum Enum with underlying type: string +type VolumeBackupSourceTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupSourceTypeEnum +const ( + VolumeBackupSourceTypeManual VolumeBackupSourceTypeEnum = "MANUAL" + VolumeBackupSourceTypeScheduled VolumeBackupSourceTypeEnum = "SCHEDULED" +) + +var mappingVolumeBackupSourceTypeEnum = map[string]VolumeBackupSourceTypeEnum{ + "MANUAL": VolumeBackupSourceTypeManual, + "SCHEDULED": VolumeBackupSourceTypeScheduled, +} + +var mappingVolumeBackupSourceTypeEnumLowerCase = map[string]VolumeBackupSourceTypeEnum{ + "manual": VolumeBackupSourceTypeManual, + "scheduled": VolumeBackupSourceTypeScheduled, +} + +// GetVolumeBackupSourceTypeEnumValues Enumerates the set of values for VolumeBackupSourceTypeEnum +func GetVolumeBackupSourceTypeEnumValues() []VolumeBackupSourceTypeEnum { + values := make([]VolumeBackupSourceTypeEnum, 0) + for _, v := range mappingVolumeBackupSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupSourceTypeEnumStringValues Enumerates the set of values in String for VolumeBackupSourceTypeEnum +func GetVolumeBackupSourceTypeEnumStringValues() []string { + return []string{ + "MANUAL", + "SCHEDULED", + } +} + +// GetMappingVolumeBackupSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupSourceTypeEnum(val string) (VolumeBackupSourceTypeEnum, bool) { + enum, ok := mappingVolumeBackupSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupTypeEnum Enum with underlying type: string +type VolumeBackupTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupTypeEnum +const ( + VolumeBackupTypeFull VolumeBackupTypeEnum = "FULL" + VolumeBackupTypeIncremental VolumeBackupTypeEnum = "INCREMENTAL" +) + +var mappingVolumeBackupTypeEnum = map[string]VolumeBackupTypeEnum{ + "FULL": VolumeBackupTypeFull, + "INCREMENTAL": VolumeBackupTypeIncremental, +} + +var mappingVolumeBackupTypeEnumLowerCase = map[string]VolumeBackupTypeEnum{ + "full": VolumeBackupTypeFull, + "incremental": VolumeBackupTypeIncremental, +} + +// GetVolumeBackupTypeEnumValues Enumerates the set of values for VolumeBackupTypeEnum +func GetVolumeBackupTypeEnumValues() []VolumeBackupTypeEnum { + values := make([]VolumeBackupTypeEnum, 0) + for _, v := range mappingVolumeBackupTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupTypeEnumStringValues Enumerates the set of values in String for VolumeBackupTypeEnum +func GetVolumeBackupTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingVolumeBackupTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupTypeEnum(val string) (VolumeBackupTypeEnum, bool) { + enum, ok := mappingVolumeBackupTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy.go new file mode 100644 index 0000000000..e4b01cb1e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeBackupPolicy A policy for automatically creating volume backups according to a +// recurring schedule. Has a set of one or more schedules that control when and +// how backups are created. +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VolumeBackupPolicy struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the volume backup policy. + Id *string `mandatory:"true" json:"id"` + + // The collection of schedules that this policy will apply. + Schedules []VolumeBackupSchedule `mandatory:"true" json:"schedules"` + + // The date and time the volume backup policy was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The paired destination region for copying scheduled backups to. Example `us-ashburn-1`. + // See Region Pairs (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm#RegionPairs) for details about paired regions. + DestinationRegion *string `mandatory:"false" json:"destinationRegion"` + + // The OCID of the compartment that contains the volume backup. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m VolumeBackupPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeBackupPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy_assignment.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy_assignment.go new file mode 100644 index 0000000000..d4cd34055f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_policy_assignment.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeBackupPolicyAssignment Specifies the volume that the volume backup policy is assigned to. +// For more information about Oracle defined backup policies and custom backup policies, +// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). +type VolumeBackupPolicyAssignment struct { + + // The OCID of the volume the policy has been assigned to. + AssetId *string `mandatory:"true" json:"assetId"` + + // The OCID of the volume backup policy assignment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the volume backup policy that has been assigned to the volume. + PolicyId *string `mandatory:"true" json:"policyId"` + + // The date and time the volume backup policy was assigned to the volume. The format is + // defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` +} + +func (m VolumeBackupPolicyAssignment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeBackupPolicyAssignment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_schedule.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_schedule.go new file mode 100644 index 0000000000..1e8eae4a63 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_schedule.go @@ -0,0 +1,430 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeBackupSchedule Defines the backup frequency and retention period for a volume backup policy. For more information, +// see Policy-Based Backups (https://docs.cloud.oracle.com/iaas/Content/Block/Tasks/schedulingvolumebackups.htm). +type VolumeBackupSchedule struct { + + // The type of volume backup to create. + BackupType VolumeBackupScheduleBackupTypeEnum `mandatory:"true" json:"backupType"` + + // The volume backup frequency. + Period VolumeBackupSchedulePeriodEnum `mandatory:"true" json:"period"` + + // How long, in seconds, to keep the volume backups created by this schedule. + RetentionSeconds *int `mandatory:"true" json:"retentionSeconds"` + + // The number of seconds that the volume backup start + // time should be shifted from the default interval boundaries specified by + // the period. The volume backup start time is the frequency start time plus the offset. + OffsetSeconds *int `mandatory:"false" json:"offsetSeconds"` + + // Indicates how the offset is defined. If value is `STRUCTURED`, + // then `hourOfDay`, `dayOfWeek`, `dayOfMonth`, and `month` fields are used + // and `offsetSeconds` will be ignored in requests and users should ignore its + // value from the responses. + // `hourOfDay` is applicable for periods `ONE_DAY`, + // `ONE_WEEK`, `ONE_MONTH` and `ONE_YEAR`. + // `dayOfWeek` is applicable for period + // `ONE_WEEK`. + // `dayOfMonth` is applicable for periods `ONE_MONTH` and `ONE_YEAR`. + // 'month' is applicable for period 'ONE_YEAR'. + // They will be ignored in the requests for inapplicable periods. + // If value is `NUMERIC_SECONDS`, then `offsetSeconds` + // will be used for both requests and responses and the structured fields will be + // ignored in the requests and users should ignore their values from the responses. + // For clients using older versions of Apis and not sending `offsetType` in their + // requests, the behaviour is just like `NUMERIC_SECONDS`. + OffsetType VolumeBackupScheduleOffsetTypeEnum `mandatory:"false" json:"offsetType,omitempty"` + + // The hour of the day to schedule the volume backup. + HourOfDay *int `mandatory:"false" json:"hourOfDay"` + + // The day of the week to schedule the volume backup. + DayOfWeek VolumeBackupScheduleDayOfWeekEnum `mandatory:"false" json:"dayOfWeek,omitempty"` + + // The day of the month to schedule the volume backup. + DayOfMonth *int `mandatory:"false" json:"dayOfMonth"` + + // The month of the year to schedule the volume backup. + Month VolumeBackupScheduleMonthEnum `mandatory:"false" json:"month,omitempty"` + + // Specifies what time zone is the schedule in + TimeZone VolumeBackupScheduleTimeZoneEnum `mandatory:"false" json:"timeZone,omitempty"` +} + +func (m VolumeBackupSchedule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeBackupSchedule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeBackupScheduleBackupTypeEnum(string(m.BackupType)); !ok && m.BackupType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BackupType: %s. Supported values are: %s.", m.BackupType, strings.Join(GetVolumeBackupScheduleBackupTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeBackupSchedulePeriodEnum(string(m.Period)); !ok && m.Period != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Period: %s. Supported values are: %s.", m.Period, strings.Join(GetVolumeBackupSchedulePeriodEnumStringValues(), ","))) + } + + if _, ok := GetMappingVolumeBackupScheduleOffsetTypeEnum(string(m.OffsetType)); !ok && m.OffsetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OffsetType: %s. Supported values are: %s.", m.OffsetType, strings.Join(GetVolumeBackupScheduleOffsetTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeBackupScheduleDayOfWeekEnum(string(m.DayOfWeek)); !ok && m.DayOfWeek != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DayOfWeek: %s. Supported values are: %s.", m.DayOfWeek, strings.Join(GetVolumeBackupScheduleDayOfWeekEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeBackupScheduleMonthEnum(string(m.Month)); !ok && m.Month != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Month: %s. Supported values are: %s.", m.Month, strings.Join(GetVolumeBackupScheduleMonthEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeBackupScheduleTimeZoneEnum(string(m.TimeZone)); !ok && m.TimeZone != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TimeZone: %s. Supported values are: %s.", m.TimeZone, strings.Join(GetVolumeBackupScheduleTimeZoneEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VolumeBackupScheduleBackupTypeEnum Enum with underlying type: string +type VolumeBackupScheduleBackupTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupScheduleBackupTypeEnum +const ( + VolumeBackupScheduleBackupTypeFull VolumeBackupScheduleBackupTypeEnum = "FULL" + VolumeBackupScheduleBackupTypeIncremental VolumeBackupScheduleBackupTypeEnum = "INCREMENTAL" +) + +var mappingVolumeBackupScheduleBackupTypeEnum = map[string]VolumeBackupScheduleBackupTypeEnum{ + "FULL": VolumeBackupScheduleBackupTypeFull, + "INCREMENTAL": VolumeBackupScheduleBackupTypeIncremental, +} + +var mappingVolumeBackupScheduleBackupTypeEnumLowerCase = map[string]VolumeBackupScheduleBackupTypeEnum{ + "full": VolumeBackupScheduleBackupTypeFull, + "incremental": VolumeBackupScheduleBackupTypeIncremental, +} + +// GetVolumeBackupScheduleBackupTypeEnumValues Enumerates the set of values for VolumeBackupScheduleBackupTypeEnum +func GetVolumeBackupScheduleBackupTypeEnumValues() []VolumeBackupScheduleBackupTypeEnum { + values := make([]VolumeBackupScheduleBackupTypeEnum, 0) + for _, v := range mappingVolumeBackupScheduleBackupTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupScheduleBackupTypeEnumStringValues Enumerates the set of values in String for VolumeBackupScheduleBackupTypeEnum +func GetVolumeBackupScheduleBackupTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingVolumeBackupScheduleBackupTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupScheduleBackupTypeEnum(val string) (VolumeBackupScheduleBackupTypeEnum, bool) { + enum, ok := mappingVolumeBackupScheduleBackupTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupSchedulePeriodEnum Enum with underlying type: string +type VolumeBackupSchedulePeriodEnum string + +// Set of constants representing the allowable values for VolumeBackupSchedulePeriodEnum +const ( + VolumeBackupSchedulePeriodHour VolumeBackupSchedulePeriodEnum = "ONE_HOUR" + VolumeBackupSchedulePeriodDay VolumeBackupSchedulePeriodEnum = "ONE_DAY" + VolumeBackupSchedulePeriodWeek VolumeBackupSchedulePeriodEnum = "ONE_WEEK" + VolumeBackupSchedulePeriodMonth VolumeBackupSchedulePeriodEnum = "ONE_MONTH" + VolumeBackupSchedulePeriodYear VolumeBackupSchedulePeriodEnum = "ONE_YEAR" +) + +var mappingVolumeBackupSchedulePeriodEnum = map[string]VolumeBackupSchedulePeriodEnum{ + "ONE_HOUR": VolumeBackupSchedulePeriodHour, + "ONE_DAY": VolumeBackupSchedulePeriodDay, + "ONE_WEEK": VolumeBackupSchedulePeriodWeek, + "ONE_MONTH": VolumeBackupSchedulePeriodMonth, + "ONE_YEAR": VolumeBackupSchedulePeriodYear, +} + +var mappingVolumeBackupSchedulePeriodEnumLowerCase = map[string]VolumeBackupSchedulePeriodEnum{ + "one_hour": VolumeBackupSchedulePeriodHour, + "one_day": VolumeBackupSchedulePeriodDay, + "one_week": VolumeBackupSchedulePeriodWeek, + "one_month": VolumeBackupSchedulePeriodMonth, + "one_year": VolumeBackupSchedulePeriodYear, +} + +// GetVolumeBackupSchedulePeriodEnumValues Enumerates the set of values for VolumeBackupSchedulePeriodEnum +func GetVolumeBackupSchedulePeriodEnumValues() []VolumeBackupSchedulePeriodEnum { + values := make([]VolumeBackupSchedulePeriodEnum, 0) + for _, v := range mappingVolumeBackupSchedulePeriodEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupSchedulePeriodEnumStringValues Enumerates the set of values in String for VolumeBackupSchedulePeriodEnum +func GetVolumeBackupSchedulePeriodEnumStringValues() []string { + return []string{ + "ONE_HOUR", + "ONE_DAY", + "ONE_WEEK", + "ONE_MONTH", + "ONE_YEAR", + } +} + +// GetMappingVolumeBackupSchedulePeriodEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupSchedulePeriodEnum(val string) (VolumeBackupSchedulePeriodEnum, bool) { + enum, ok := mappingVolumeBackupSchedulePeriodEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupScheduleOffsetTypeEnum Enum with underlying type: string +type VolumeBackupScheduleOffsetTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupScheduleOffsetTypeEnum +const ( + VolumeBackupScheduleOffsetTypeStructured VolumeBackupScheduleOffsetTypeEnum = "STRUCTURED" + VolumeBackupScheduleOffsetTypeNumericSeconds VolumeBackupScheduleOffsetTypeEnum = "NUMERIC_SECONDS" +) + +var mappingVolumeBackupScheduleOffsetTypeEnum = map[string]VolumeBackupScheduleOffsetTypeEnum{ + "STRUCTURED": VolumeBackupScheduleOffsetTypeStructured, + "NUMERIC_SECONDS": VolumeBackupScheduleOffsetTypeNumericSeconds, +} + +var mappingVolumeBackupScheduleOffsetTypeEnumLowerCase = map[string]VolumeBackupScheduleOffsetTypeEnum{ + "structured": VolumeBackupScheduleOffsetTypeStructured, + "numeric_seconds": VolumeBackupScheduleOffsetTypeNumericSeconds, +} + +// GetVolumeBackupScheduleOffsetTypeEnumValues Enumerates the set of values for VolumeBackupScheduleOffsetTypeEnum +func GetVolumeBackupScheduleOffsetTypeEnumValues() []VolumeBackupScheduleOffsetTypeEnum { + values := make([]VolumeBackupScheduleOffsetTypeEnum, 0) + for _, v := range mappingVolumeBackupScheduleOffsetTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupScheduleOffsetTypeEnumStringValues Enumerates the set of values in String for VolumeBackupScheduleOffsetTypeEnum +func GetVolumeBackupScheduleOffsetTypeEnumStringValues() []string { + return []string{ + "STRUCTURED", + "NUMERIC_SECONDS", + } +} + +// GetMappingVolumeBackupScheduleOffsetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupScheduleOffsetTypeEnum(val string) (VolumeBackupScheduleOffsetTypeEnum, bool) { + enum, ok := mappingVolumeBackupScheduleOffsetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupScheduleDayOfWeekEnum Enum with underlying type: string +type VolumeBackupScheduleDayOfWeekEnum string + +// Set of constants representing the allowable values for VolumeBackupScheduleDayOfWeekEnum +const ( + VolumeBackupScheduleDayOfWeekMonday VolumeBackupScheduleDayOfWeekEnum = "MONDAY" + VolumeBackupScheduleDayOfWeekTuesday VolumeBackupScheduleDayOfWeekEnum = "TUESDAY" + VolumeBackupScheduleDayOfWeekWednesday VolumeBackupScheduleDayOfWeekEnum = "WEDNESDAY" + VolumeBackupScheduleDayOfWeekThursday VolumeBackupScheduleDayOfWeekEnum = "THURSDAY" + VolumeBackupScheduleDayOfWeekFriday VolumeBackupScheduleDayOfWeekEnum = "FRIDAY" + VolumeBackupScheduleDayOfWeekSaturday VolumeBackupScheduleDayOfWeekEnum = "SATURDAY" + VolumeBackupScheduleDayOfWeekSunday VolumeBackupScheduleDayOfWeekEnum = "SUNDAY" +) + +var mappingVolumeBackupScheduleDayOfWeekEnum = map[string]VolumeBackupScheduleDayOfWeekEnum{ + "MONDAY": VolumeBackupScheduleDayOfWeekMonday, + "TUESDAY": VolumeBackupScheduleDayOfWeekTuesday, + "WEDNESDAY": VolumeBackupScheduleDayOfWeekWednesday, + "THURSDAY": VolumeBackupScheduleDayOfWeekThursday, + "FRIDAY": VolumeBackupScheduleDayOfWeekFriday, + "SATURDAY": VolumeBackupScheduleDayOfWeekSaturday, + "SUNDAY": VolumeBackupScheduleDayOfWeekSunday, +} + +var mappingVolumeBackupScheduleDayOfWeekEnumLowerCase = map[string]VolumeBackupScheduleDayOfWeekEnum{ + "monday": VolumeBackupScheduleDayOfWeekMonday, + "tuesday": VolumeBackupScheduleDayOfWeekTuesday, + "wednesday": VolumeBackupScheduleDayOfWeekWednesday, + "thursday": VolumeBackupScheduleDayOfWeekThursday, + "friday": VolumeBackupScheduleDayOfWeekFriday, + "saturday": VolumeBackupScheduleDayOfWeekSaturday, + "sunday": VolumeBackupScheduleDayOfWeekSunday, +} + +// GetVolumeBackupScheduleDayOfWeekEnumValues Enumerates the set of values for VolumeBackupScheduleDayOfWeekEnum +func GetVolumeBackupScheduleDayOfWeekEnumValues() []VolumeBackupScheduleDayOfWeekEnum { + values := make([]VolumeBackupScheduleDayOfWeekEnum, 0) + for _, v := range mappingVolumeBackupScheduleDayOfWeekEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupScheduleDayOfWeekEnumStringValues Enumerates the set of values in String for VolumeBackupScheduleDayOfWeekEnum +func GetVolumeBackupScheduleDayOfWeekEnumStringValues() []string { + return []string{ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + } +} + +// GetMappingVolumeBackupScheduleDayOfWeekEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupScheduleDayOfWeekEnum(val string) (VolumeBackupScheduleDayOfWeekEnum, bool) { + enum, ok := mappingVolumeBackupScheduleDayOfWeekEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupScheduleMonthEnum Enum with underlying type: string +type VolumeBackupScheduleMonthEnum string + +// Set of constants representing the allowable values for VolumeBackupScheduleMonthEnum +const ( + VolumeBackupScheduleMonthJanuary VolumeBackupScheduleMonthEnum = "JANUARY" + VolumeBackupScheduleMonthFebruary VolumeBackupScheduleMonthEnum = "FEBRUARY" + VolumeBackupScheduleMonthMarch VolumeBackupScheduleMonthEnum = "MARCH" + VolumeBackupScheduleMonthApril VolumeBackupScheduleMonthEnum = "APRIL" + VolumeBackupScheduleMonthMay VolumeBackupScheduleMonthEnum = "MAY" + VolumeBackupScheduleMonthJune VolumeBackupScheduleMonthEnum = "JUNE" + VolumeBackupScheduleMonthJuly VolumeBackupScheduleMonthEnum = "JULY" + VolumeBackupScheduleMonthAugust VolumeBackupScheduleMonthEnum = "AUGUST" + VolumeBackupScheduleMonthSeptember VolumeBackupScheduleMonthEnum = "SEPTEMBER" + VolumeBackupScheduleMonthOctober VolumeBackupScheduleMonthEnum = "OCTOBER" + VolumeBackupScheduleMonthNovember VolumeBackupScheduleMonthEnum = "NOVEMBER" + VolumeBackupScheduleMonthDecember VolumeBackupScheduleMonthEnum = "DECEMBER" +) + +var mappingVolumeBackupScheduleMonthEnum = map[string]VolumeBackupScheduleMonthEnum{ + "JANUARY": VolumeBackupScheduleMonthJanuary, + "FEBRUARY": VolumeBackupScheduleMonthFebruary, + "MARCH": VolumeBackupScheduleMonthMarch, + "APRIL": VolumeBackupScheduleMonthApril, + "MAY": VolumeBackupScheduleMonthMay, + "JUNE": VolumeBackupScheduleMonthJune, + "JULY": VolumeBackupScheduleMonthJuly, + "AUGUST": VolumeBackupScheduleMonthAugust, + "SEPTEMBER": VolumeBackupScheduleMonthSeptember, + "OCTOBER": VolumeBackupScheduleMonthOctober, + "NOVEMBER": VolumeBackupScheduleMonthNovember, + "DECEMBER": VolumeBackupScheduleMonthDecember, +} + +var mappingVolumeBackupScheduleMonthEnumLowerCase = map[string]VolumeBackupScheduleMonthEnum{ + "january": VolumeBackupScheduleMonthJanuary, + "february": VolumeBackupScheduleMonthFebruary, + "march": VolumeBackupScheduleMonthMarch, + "april": VolumeBackupScheduleMonthApril, + "may": VolumeBackupScheduleMonthMay, + "june": VolumeBackupScheduleMonthJune, + "july": VolumeBackupScheduleMonthJuly, + "august": VolumeBackupScheduleMonthAugust, + "september": VolumeBackupScheduleMonthSeptember, + "october": VolumeBackupScheduleMonthOctober, + "november": VolumeBackupScheduleMonthNovember, + "december": VolumeBackupScheduleMonthDecember, +} + +// GetVolumeBackupScheduleMonthEnumValues Enumerates the set of values for VolumeBackupScheduleMonthEnum +func GetVolumeBackupScheduleMonthEnumValues() []VolumeBackupScheduleMonthEnum { + values := make([]VolumeBackupScheduleMonthEnum, 0) + for _, v := range mappingVolumeBackupScheduleMonthEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupScheduleMonthEnumStringValues Enumerates the set of values in String for VolumeBackupScheduleMonthEnum +func GetVolumeBackupScheduleMonthEnumStringValues() []string { + return []string{ + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER", + } +} + +// GetMappingVolumeBackupScheduleMonthEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupScheduleMonthEnum(val string) (VolumeBackupScheduleMonthEnum, bool) { + enum, ok := mappingVolumeBackupScheduleMonthEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeBackupScheduleTimeZoneEnum Enum with underlying type: string +type VolumeBackupScheduleTimeZoneEnum string + +// Set of constants representing the allowable values for VolumeBackupScheduleTimeZoneEnum +const ( + VolumeBackupScheduleTimeZoneUtc VolumeBackupScheduleTimeZoneEnum = "UTC" + VolumeBackupScheduleTimeZoneRegionalDataCenterTime VolumeBackupScheduleTimeZoneEnum = "REGIONAL_DATA_CENTER_TIME" +) + +var mappingVolumeBackupScheduleTimeZoneEnum = map[string]VolumeBackupScheduleTimeZoneEnum{ + "UTC": VolumeBackupScheduleTimeZoneUtc, + "REGIONAL_DATA_CENTER_TIME": VolumeBackupScheduleTimeZoneRegionalDataCenterTime, +} + +var mappingVolumeBackupScheduleTimeZoneEnumLowerCase = map[string]VolumeBackupScheduleTimeZoneEnum{ + "utc": VolumeBackupScheduleTimeZoneUtc, + "regional_data_center_time": VolumeBackupScheduleTimeZoneRegionalDataCenterTime, +} + +// GetVolumeBackupScheduleTimeZoneEnumValues Enumerates the set of values for VolumeBackupScheduleTimeZoneEnum +func GetVolumeBackupScheduleTimeZoneEnumValues() []VolumeBackupScheduleTimeZoneEnum { + values := make([]VolumeBackupScheduleTimeZoneEnum, 0) + for _, v := range mappingVolumeBackupScheduleTimeZoneEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupScheduleTimeZoneEnumStringValues Enumerates the set of values in String for VolumeBackupScheduleTimeZoneEnum +func GetVolumeBackupScheduleTimeZoneEnumStringValues() []string { + return []string{ + "UTC", + "REGIONAL_DATA_CENTER_TIME", + } +} + +// GetMappingVolumeBackupScheduleTimeZoneEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupScheduleTimeZoneEnum(val string) (VolumeBackupScheduleTimeZoneEnum, bool) { + enum, ok := mappingVolumeBackupScheduleTimeZoneEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_source_details.go new file mode 100644 index 0000000000..56c1ea5630 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_backup_source_details.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeBackupSourceDetails Define a volume that will be created and attached on the creation of an Instance. +type VolumeBackupSourceDetails interface { + + // The ocid of the VolumeBackup that will be utilized as the source for creating the Volume to attach to the + // Instance. + // Warning: This VolumeBackup will not longer be usable or accessible once this operation is completed. It will + // become a part of the Image. + GetVolumeBackupId() *string +} + +type volumebackupsourcedetails struct { + JsonData []byte + VolumeBackupId *string `mandatory:"true" json:"volumeBackupId"` + VolumeType string `json:"volumeType"` +} + +// UnmarshalJSON unmarshals json +func (m *volumebackupsourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalervolumebackupsourcedetails volumebackupsourcedetails + s := struct { + Model Unmarshalervolumebackupsourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.VolumeBackupId = s.Model.VolumeBackupId + m.VolumeType = s.Model.VolumeType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *volumebackupsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.VolumeType { + case "DATA_VOLUME": + mm := DataVolumeBackupSourceDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "BOOT_VOLUME": + mm := BootVolumeBackupSourceDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for VolumeBackupSourceDetails: %s.", m.VolumeType) + return *m, nil + } +} + +//GetVolumeBackupId returns VolumeBackupId +func (m volumebackupsourcedetails) GetVolumeBackupId() *string { + return m.VolumeBackupId +} + +func (m volumebackupsourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m volumebackupsourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VolumeBackupSourceDetailsVolumeTypeEnum Enum with underlying type: string +type VolumeBackupSourceDetailsVolumeTypeEnum string + +// Set of constants representing the allowable values for VolumeBackupSourceDetailsVolumeTypeEnum +const ( + VolumeBackupSourceDetailsVolumeTypeBootVolume VolumeBackupSourceDetailsVolumeTypeEnum = "BOOT_VOLUME" + VolumeBackupSourceDetailsVolumeTypeDataVolume VolumeBackupSourceDetailsVolumeTypeEnum = "DATA_VOLUME" +) + +var mappingVolumeBackupSourceDetailsVolumeTypeEnum = map[string]VolumeBackupSourceDetailsVolumeTypeEnum{ + "BOOT_VOLUME": VolumeBackupSourceDetailsVolumeTypeBootVolume, + "DATA_VOLUME": VolumeBackupSourceDetailsVolumeTypeDataVolume, +} + +var mappingVolumeBackupSourceDetailsVolumeTypeEnumLowerCase = map[string]VolumeBackupSourceDetailsVolumeTypeEnum{ + "boot_volume": VolumeBackupSourceDetailsVolumeTypeBootVolume, + "data_volume": VolumeBackupSourceDetailsVolumeTypeDataVolume, +} + +// GetVolumeBackupSourceDetailsVolumeTypeEnumValues Enumerates the set of values for VolumeBackupSourceDetailsVolumeTypeEnum +func GetVolumeBackupSourceDetailsVolumeTypeEnumValues() []VolumeBackupSourceDetailsVolumeTypeEnum { + values := make([]VolumeBackupSourceDetailsVolumeTypeEnum, 0) + for _, v := range mappingVolumeBackupSourceDetailsVolumeTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeBackupSourceDetailsVolumeTypeEnumStringValues Enumerates the set of values in String for VolumeBackupSourceDetailsVolumeTypeEnum +func GetVolumeBackupSourceDetailsVolumeTypeEnumStringValues() []string { + return []string{ + "BOOT_VOLUME", + "DATA_VOLUME", + } +} + +// GetMappingVolumeBackupSourceDetailsVolumeTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeBackupSourceDetailsVolumeTypeEnum(val string) (VolumeBackupSourceDetailsVolumeTypeEnum, bool) { + enum, ok := mappingVolumeBackupSourceDetailsVolumeTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group.go new file mode 100644 index 0000000000..e24d99b69b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group.go @@ -0,0 +1,221 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroup Specifies a volume group which is a collection of +// volumes. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VolumeGroup struct { + + // The availability domain of the volume group. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the volume group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID for the volume group. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume group. + LifecycleState VolumeGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The aggregate size of the volume group in MBs. + SizeInMBs *int64 `mandatory:"true" json:"sizeInMBs"` + + // The date and time the volume group was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // OCIDs for the volumes in this volume group. + VolumeIds []string `mandatory:"true" json:"volumeIds"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The aggregate size of the volume group in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + SourceDetails VolumeGroupSourceDetails `mandatory:"false" json:"sourceDetails"` + + // Specifies whether the newly created cloned volume group's data has finished copying + // from the source volume group or backup. + IsHydrated *bool `mandatory:"false" json:"isHydrated"` + + // The list of volume group replicas of this volume group. + VolumeGroupReplicas []VolumeGroupReplicaInfo `mandatory:"false" json:"volumeGroupReplicas"` +} + +func (m VolumeGroup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeGroupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeGroupLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *VolumeGroup) UnmarshalJSON(data []byte) (e error) { + model := struct { + DefinedTags map[string]map[string]interface{} `json:"definedTags"` + FreeformTags map[string]string `json:"freeformTags"` + SizeInGBs *int64 `json:"sizeInGBs"` + SourceDetails volumegroupsourcedetails `json:"sourceDetails"` + IsHydrated *bool `json:"isHydrated"` + VolumeGroupReplicas []VolumeGroupReplicaInfo `json:"volumeGroupReplicas"` + AvailabilityDomain *string `json:"availabilityDomain"` + CompartmentId *string `json:"compartmentId"` + DisplayName *string `json:"displayName"` + Id *string `json:"id"` + LifecycleState VolumeGroupLifecycleStateEnum `json:"lifecycleState"` + SizeInMBs *int64 `json:"sizeInMBs"` + TimeCreated *common.SDKTime `json:"timeCreated"` + VolumeIds []string `json:"volumeIds"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.DefinedTags = model.DefinedTags + + m.FreeformTags = model.FreeformTags + + m.SizeInGBs = model.SizeInGBs + + nn, e = model.SourceDetails.UnmarshalPolymorphicJSON(model.SourceDetails.JsonData) + if e != nil { + return + } + if nn != nil { + m.SourceDetails = nn.(VolumeGroupSourceDetails) + } else { + m.SourceDetails = nil + } + + m.IsHydrated = model.IsHydrated + + m.VolumeGroupReplicas = make([]VolumeGroupReplicaInfo, len(model.VolumeGroupReplicas)) + for i, n := range model.VolumeGroupReplicas { + m.VolumeGroupReplicas[i] = n + } + + m.AvailabilityDomain = model.AvailabilityDomain + + m.CompartmentId = model.CompartmentId + + m.DisplayName = model.DisplayName + + m.Id = model.Id + + m.LifecycleState = model.LifecycleState + + m.SizeInMBs = model.SizeInMBs + + m.TimeCreated = model.TimeCreated + + m.VolumeIds = make([]string, len(model.VolumeIds)) + for i, n := range model.VolumeIds { + m.VolumeIds[i] = n + } + + return +} + +// VolumeGroupLifecycleStateEnum Enum with underlying type: string +type VolumeGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for VolumeGroupLifecycleStateEnum +const ( + VolumeGroupLifecycleStateProvisioning VolumeGroupLifecycleStateEnum = "PROVISIONING" + VolumeGroupLifecycleStateAvailable VolumeGroupLifecycleStateEnum = "AVAILABLE" + VolumeGroupLifecycleStateTerminating VolumeGroupLifecycleStateEnum = "TERMINATING" + VolumeGroupLifecycleStateTerminated VolumeGroupLifecycleStateEnum = "TERMINATED" + VolumeGroupLifecycleStateFaulty VolumeGroupLifecycleStateEnum = "FAULTY" + VolumeGroupLifecycleStateUpdatePending VolumeGroupLifecycleStateEnum = "UPDATE_PENDING" +) + +var mappingVolumeGroupLifecycleStateEnum = map[string]VolumeGroupLifecycleStateEnum{ + "PROVISIONING": VolumeGroupLifecycleStateProvisioning, + "AVAILABLE": VolumeGroupLifecycleStateAvailable, + "TERMINATING": VolumeGroupLifecycleStateTerminating, + "TERMINATED": VolumeGroupLifecycleStateTerminated, + "FAULTY": VolumeGroupLifecycleStateFaulty, + "UPDATE_PENDING": VolumeGroupLifecycleStateUpdatePending, +} + +var mappingVolumeGroupLifecycleStateEnumLowerCase = map[string]VolumeGroupLifecycleStateEnum{ + "provisioning": VolumeGroupLifecycleStateProvisioning, + "available": VolumeGroupLifecycleStateAvailable, + "terminating": VolumeGroupLifecycleStateTerminating, + "terminated": VolumeGroupLifecycleStateTerminated, + "faulty": VolumeGroupLifecycleStateFaulty, + "update_pending": VolumeGroupLifecycleStateUpdatePending, +} + +// GetVolumeGroupLifecycleStateEnumValues Enumerates the set of values for VolumeGroupLifecycleStateEnum +func GetVolumeGroupLifecycleStateEnumValues() []VolumeGroupLifecycleStateEnum { + values := make([]VolumeGroupLifecycleStateEnum, 0) + for _, v := range mappingVolumeGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeGroupLifecycleStateEnumStringValues Enumerates the set of values in String for VolumeGroupLifecycleStateEnum +func GetVolumeGroupLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "FAULTY", + "UPDATE_PENDING", + } +} + +// GetMappingVolumeGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeGroupLifecycleStateEnum(val string) (VolumeGroupLifecycleStateEnum, bool) { + enum, ok := mappingVolumeGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_backup.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_backup.go new file mode 100644 index 0000000000..adf42333c4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_backup.go @@ -0,0 +1,270 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupBackup A point-in-time copy of a volume group that can then be used to create a new volume group +// or restore a volume group. For more information, see Volume Groups (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroups.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VolumeGroupBackup struct { + + // The OCID of the compartment that contains the volume group backup. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID of the volume group backup. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume group backup. + LifecycleState VolumeGroupBackupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the volume group backup was created. This is the time the actual point-in-time image + // of the volume group data was taken. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The type of backup. + Type VolumeGroupBackupTypeEnum `mandatory:"true" json:"type"` + + // OCIDs for the volume backups in this volume group backup. + VolumeBackupIds []string `mandatory:"true" json:"volumeBackupIds"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The date and time the volume group backup will expire and be automatically deleted. + // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). This parameter will always be present for volume group + // backups that were created automatically by a scheduled-backup policy. For manually + // created volume group backups, it will be absent, signifying that there is no expiration + // time and the backup will last forever until manually deleted. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The aggregate size of the volume group backup, in MBs. + SizeInMBs *int64 `mandatory:"false" json:"sizeInMBs"` + + // The aggregate size of the volume group backup, in GBs. + SizeInGBs *int64 `mandatory:"false" json:"sizeInGBs"` + + // Specifies whether the volume group backup was created manually, or via scheduled + // backup policy. + SourceType VolumeGroupBackupSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + // The date and time the request to create the volume group backup was received. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeRequestReceived *common.SDKTime `mandatory:"false" json:"timeRequestReceived"` + + // The aggregate size used by the volume group backup, in MBs. + // It is typically smaller than sizeInMBs, depending on the spaceconsumed + // on the volume group and whether the volume backup is full or incremental. + UniqueSizeInMbs *int64 `mandatory:"false" json:"uniqueSizeInMbs"` + + // The aggregate size used by the volume group backup, in GBs. + // It is typically smaller than sizeInGBs, depending on the spaceconsumed + // on the volume group and whether the volume backup is full or incremental. + UniqueSizeInGbs *int64 `mandatory:"false" json:"uniqueSizeInGbs"` + + // The OCID of the source volume group. + VolumeGroupId *string `mandatory:"false" json:"volumeGroupId"` + + // The OCID of the source volume group backup. + SourceVolumeGroupBackupId *string `mandatory:"false" json:"sourceVolumeGroupBackupId"` +} + +func (m VolumeGroupBackup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupBackup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeGroupBackupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeGroupBackupLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingVolumeGroupBackupTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetVolumeGroupBackupTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingVolumeGroupBackupSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetVolumeGroupBackupSourceTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VolumeGroupBackupLifecycleStateEnum Enum with underlying type: string +type VolumeGroupBackupLifecycleStateEnum string + +// Set of constants representing the allowable values for VolumeGroupBackupLifecycleStateEnum +const ( + VolumeGroupBackupLifecycleStateCreating VolumeGroupBackupLifecycleStateEnum = "CREATING" + VolumeGroupBackupLifecycleStateCommitted VolumeGroupBackupLifecycleStateEnum = "COMMITTED" + VolumeGroupBackupLifecycleStateAvailable VolumeGroupBackupLifecycleStateEnum = "AVAILABLE" + VolumeGroupBackupLifecycleStateTerminating VolumeGroupBackupLifecycleStateEnum = "TERMINATING" + VolumeGroupBackupLifecycleStateTerminated VolumeGroupBackupLifecycleStateEnum = "TERMINATED" + VolumeGroupBackupLifecycleStateFaulty VolumeGroupBackupLifecycleStateEnum = "FAULTY" + VolumeGroupBackupLifecycleStateRequestReceived VolumeGroupBackupLifecycleStateEnum = "REQUEST_RECEIVED" +) + +var mappingVolumeGroupBackupLifecycleStateEnum = map[string]VolumeGroupBackupLifecycleStateEnum{ + "CREATING": VolumeGroupBackupLifecycleStateCreating, + "COMMITTED": VolumeGroupBackupLifecycleStateCommitted, + "AVAILABLE": VolumeGroupBackupLifecycleStateAvailable, + "TERMINATING": VolumeGroupBackupLifecycleStateTerminating, + "TERMINATED": VolumeGroupBackupLifecycleStateTerminated, + "FAULTY": VolumeGroupBackupLifecycleStateFaulty, + "REQUEST_RECEIVED": VolumeGroupBackupLifecycleStateRequestReceived, +} + +var mappingVolumeGroupBackupLifecycleStateEnumLowerCase = map[string]VolumeGroupBackupLifecycleStateEnum{ + "creating": VolumeGroupBackupLifecycleStateCreating, + "committed": VolumeGroupBackupLifecycleStateCommitted, + "available": VolumeGroupBackupLifecycleStateAvailable, + "terminating": VolumeGroupBackupLifecycleStateTerminating, + "terminated": VolumeGroupBackupLifecycleStateTerminated, + "faulty": VolumeGroupBackupLifecycleStateFaulty, + "request_received": VolumeGroupBackupLifecycleStateRequestReceived, +} + +// GetVolumeGroupBackupLifecycleStateEnumValues Enumerates the set of values for VolumeGroupBackupLifecycleStateEnum +func GetVolumeGroupBackupLifecycleStateEnumValues() []VolumeGroupBackupLifecycleStateEnum { + values := make([]VolumeGroupBackupLifecycleStateEnum, 0) + for _, v := range mappingVolumeGroupBackupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeGroupBackupLifecycleStateEnumStringValues Enumerates the set of values in String for VolumeGroupBackupLifecycleStateEnum +func GetVolumeGroupBackupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "COMMITTED", + "AVAILABLE", + "TERMINATING", + "TERMINATED", + "FAULTY", + "REQUEST_RECEIVED", + } +} + +// GetMappingVolumeGroupBackupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeGroupBackupLifecycleStateEnum(val string) (VolumeGroupBackupLifecycleStateEnum, bool) { + enum, ok := mappingVolumeGroupBackupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeGroupBackupSourceTypeEnum Enum with underlying type: string +type VolumeGroupBackupSourceTypeEnum string + +// Set of constants representing the allowable values for VolumeGroupBackupSourceTypeEnum +const ( + VolumeGroupBackupSourceTypeManual VolumeGroupBackupSourceTypeEnum = "MANUAL" + VolumeGroupBackupSourceTypeScheduled VolumeGroupBackupSourceTypeEnum = "SCHEDULED" +) + +var mappingVolumeGroupBackupSourceTypeEnum = map[string]VolumeGroupBackupSourceTypeEnum{ + "MANUAL": VolumeGroupBackupSourceTypeManual, + "SCHEDULED": VolumeGroupBackupSourceTypeScheduled, +} + +var mappingVolumeGroupBackupSourceTypeEnumLowerCase = map[string]VolumeGroupBackupSourceTypeEnum{ + "manual": VolumeGroupBackupSourceTypeManual, + "scheduled": VolumeGroupBackupSourceTypeScheduled, +} + +// GetVolumeGroupBackupSourceTypeEnumValues Enumerates the set of values for VolumeGroupBackupSourceTypeEnum +func GetVolumeGroupBackupSourceTypeEnumValues() []VolumeGroupBackupSourceTypeEnum { + values := make([]VolumeGroupBackupSourceTypeEnum, 0) + for _, v := range mappingVolumeGroupBackupSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeGroupBackupSourceTypeEnumStringValues Enumerates the set of values in String for VolumeGroupBackupSourceTypeEnum +func GetVolumeGroupBackupSourceTypeEnumStringValues() []string { + return []string{ + "MANUAL", + "SCHEDULED", + } +} + +// GetMappingVolumeGroupBackupSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeGroupBackupSourceTypeEnum(val string) (VolumeGroupBackupSourceTypeEnum, bool) { + enum, ok := mappingVolumeGroupBackupSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VolumeGroupBackupTypeEnum Enum with underlying type: string +type VolumeGroupBackupTypeEnum string + +// Set of constants representing the allowable values for VolumeGroupBackupTypeEnum +const ( + VolumeGroupBackupTypeFull VolumeGroupBackupTypeEnum = "FULL" + VolumeGroupBackupTypeIncremental VolumeGroupBackupTypeEnum = "INCREMENTAL" +) + +var mappingVolumeGroupBackupTypeEnum = map[string]VolumeGroupBackupTypeEnum{ + "FULL": VolumeGroupBackupTypeFull, + "INCREMENTAL": VolumeGroupBackupTypeIncremental, +} + +var mappingVolumeGroupBackupTypeEnumLowerCase = map[string]VolumeGroupBackupTypeEnum{ + "full": VolumeGroupBackupTypeFull, + "incremental": VolumeGroupBackupTypeIncremental, +} + +// GetVolumeGroupBackupTypeEnumValues Enumerates the set of values for VolumeGroupBackupTypeEnum +func GetVolumeGroupBackupTypeEnumValues() []VolumeGroupBackupTypeEnum { + values := make([]VolumeGroupBackupTypeEnum, 0) + for _, v := range mappingVolumeGroupBackupTypeEnum { + values = append(values, v) + } + return values +} + +// GetVolumeGroupBackupTypeEnumStringValues Enumerates the set of values in String for VolumeGroupBackupTypeEnum +func GetVolumeGroupBackupTypeEnumStringValues() []string { + return []string{ + "FULL", + "INCREMENTAL", + } +} + +// GetMappingVolumeGroupBackupTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeGroupBackupTypeEnum(val string) (VolumeGroupBackupTypeEnum, bool) { + enum, ok := mappingVolumeGroupBackupTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica.go new file mode 100644 index 0000000000..b4ab24888e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica.go @@ -0,0 +1,149 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupReplica An asynchronous replica of a volume group that can then be used to create a new volume group +// or recover a volume group. For more information, see Volume Group Replication (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/volumegroupreplication.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you +// supply string values using the API. +type VolumeGroupReplica struct { + + // The availability domain of the volume group replica. + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID of the compartment that contains the volume group replica. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID for the volume group replica. + Id *string `mandatory:"true" json:"id"` + + // The current state of a volume group. + LifecycleState VolumeGroupReplicaLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The aggregate size of the volume group replica in GBs. + SizeInGBs *int64 `mandatory:"true" json:"sizeInGBs"` + + // The OCID of the source volume group. + VolumeGroupId *string `mandatory:"true" json:"volumeGroupId"` + + // The date and time the volume group replica was created. Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Volume replicas within this volume group replica. + MemberReplicas []MemberReplica `mandatory:"true" json:"memberReplicas"` + + // The date and time the volume group replica was last synced from the source volume group. + // Format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + TimeLastSynced *common.SDKTime `mandatory:"true" json:"timeLastSynced"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` +} + +func (m VolumeGroupReplica) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupReplica) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVolumeGroupReplicaLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVolumeGroupReplicaLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VolumeGroupReplicaLifecycleStateEnum Enum with underlying type: string +type VolumeGroupReplicaLifecycleStateEnum string + +// Set of constants representing the allowable values for VolumeGroupReplicaLifecycleStateEnum +const ( + VolumeGroupReplicaLifecycleStateProvisioning VolumeGroupReplicaLifecycleStateEnum = "PROVISIONING" + VolumeGroupReplicaLifecycleStateAvailable VolumeGroupReplicaLifecycleStateEnum = "AVAILABLE" + VolumeGroupReplicaLifecycleStateActivating VolumeGroupReplicaLifecycleStateEnum = "ACTIVATING" + VolumeGroupReplicaLifecycleStateTerminating VolumeGroupReplicaLifecycleStateEnum = "TERMINATING" + VolumeGroupReplicaLifecycleStateTerminated VolumeGroupReplicaLifecycleStateEnum = "TERMINATED" + VolumeGroupReplicaLifecycleStateFaulty VolumeGroupReplicaLifecycleStateEnum = "FAULTY" +) + +var mappingVolumeGroupReplicaLifecycleStateEnum = map[string]VolumeGroupReplicaLifecycleStateEnum{ + "PROVISIONING": VolumeGroupReplicaLifecycleStateProvisioning, + "AVAILABLE": VolumeGroupReplicaLifecycleStateAvailable, + "ACTIVATING": VolumeGroupReplicaLifecycleStateActivating, + "TERMINATING": VolumeGroupReplicaLifecycleStateTerminating, + "TERMINATED": VolumeGroupReplicaLifecycleStateTerminated, + "FAULTY": VolumeGroupReplicaLifecycleStateFaulty, +} + +var mappingVolumeGroupReplicaLifecycleStateEnumLowerCase = map[string]VolumeGroupReplicaLifecycleStateEnum{ + "provisioning": VolumeGroupReplicaLifecycleStateProvisioning, + "available": VolumeGroupReplicaLifecycleStateAvailable, + "activating": VolumeGroupReplicaLifecycleStateActivating, + "terminating": VolumeGroupReplicaLifecycleStateTerminating, + "terminated": VolumeGroupReplicaLifecycleStateTerminated, + "faulty": VolumeGroupReplicaLifecycleStateFaulty, +} + +// GetVolumeGroupReplicaLifecycleStateEnumValues Enumerates the set of values for VolumeGroupReplicaLifecycleStateEnum +func GetVolumeGroupReplicaLifecycleStateEnumValues() []VolumeGroupReplicaLifecycleStateEnum { + values := make([]VolumeGroupReplicaLifecycleStateEnum, 0) + for _, v := range mappingVolumeGroupReplicaLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVolumeGroupReplicaLifecycleStateEnumStringValues Enumerates the set of values in String for VolumeGroupReplicaLifecycleStateEnum +func GetVolumeGroupReplicaLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "ACTIVATING", + "TERMINATING", + "TERMINATED", + "FAULTY", + } +} + +// GetMappingVolumeGroupReplicaLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVolumeGroupReplicaLifecycleStateEnum(val string) (VolumeGroupReplicaLifecycleStateEnum, bool) { + enum, ok := mappingVolumeGroupReplicaLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_details.go new file mode 100644 index 0000000000..37e94eae32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupReplicaDetails Contains the details for the volume group replica. +type VolumeGroupReplicaDetails struct { + + // The availability domain of the volume group replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m VolumeGroupReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_info.go new file mode 100644 index 0000000000..4b98bda9b4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_replica_info.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupReplicaInfo Information about the volume group replica in the destination availability domain. +type VolumeGroupReplicaInfo struct { + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The volume group replica's Oracle ID (OCID). + VolumeGroupReplicaId *string `mandatory:"true" json:"volumeGroupReplicaId"` + + // The availability domain of the boot volume replica replica. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` +} + +func (m VolumeGroupReplicaInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupReplicaInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_details.go new file mode 100644 index 0000000000..0e3a9b6606 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_details.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupSourceDetails Specifies the source for a volume group. +type VolumeGroupSourceDetails interface { +} + +type volumegroupsourcedetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *volumegroupsourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalervolumegroupsourcedetails volumegroupsourcedetails + s := struct { + Model Unmarshalervolumegroupsourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *volumegroupsourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "volumeGroupReplicaId": + mm := VolumeGroupSourceFromVolumeGroupReplicaDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volumeGroupId": + mm := VolumeGroupSourceFromVolumeGroupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volumeIds": + mm := VolumeGroupSourceFromVolumesDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volumeGroupBackupId": + mm := VolumeGroupSourceFromVolumeGroupBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for VolumeGroupSourceDetails: %s.", m.Type) + return *m, nil + } +} + +func (m volumegroupsourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m volumegroupsourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_backup_details.go new file mode 100644 index 0000000000..d5c1c7f7b8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_backup_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupSourceFromVolumeGroupBackupDetails Specifies the volume group backup to restore from. +type VolumeGroupSourceFromVolumeGroupBackupDetails struct { + + // The OCID of the volume group backup to restore from. + VolumeGroupBackupId *string `mandatory:"true" json:"volumeGroupBackupId"` +} + +func (m VolumeGroupSourceFromVolumeGroupBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupSourceFromVolumeGroupBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeGroupSourceFromVolumeGroupBackupDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeGroupSourceFromVolumeGroupBackupDetails VolumeGroupSourceFromVolumeGroupBackupDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeGroupSourceFromVolumeGroupBackupDetails + }{ + "volumeGroupBackupId", + (MarshalTypeVolumeGroupSourceFromVolumeGroupBackupDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_details.go new file mode 100644 index 0000000000..07ad7c25bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupSourceFromVolumeGroupDetails Specifies the volume group to clone from. +type VolumeGroupSourceFromVolumeGroupDetails struct { + + // The OCID of the volume group to clone from. + VolumeGroupId *string `mandatory:"true" json:"volumeGroupId"` +} + +func (m VolumeGroupSourceFromVolumeGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupSourceFromVolumeGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeGroupSourceFromVolumeGroupDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeGroupSourceFromVolumeGroupDetails VolumeGroupSourceFromVolumeGroupDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeGroupSourceFromVolumeGroupDetails + }{ + "volumeGroupId", + (MarshalTypeVolumeGroupSourceFromVolumeGroupDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_replica_details.go new file mode 100644 index 0000000000..37e3a5fa2a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volume_group_replica_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupSourceFromVolumeGroupReplicaDetails Specifies the source volume replica which the volume group will be created from. +// The volume group replica shoulbe be in the same availability domain as the volume group. +// Only one volume group can be created from a volume group replica at the same time. +type VolumeGroupSourceFromVolumeGroupReplicaDetails struct { + + // The OCID of the volume group replica. + VolumeGroupReplicaId *string `mandatory:"true" json:"volumeGroupReplicaId"` +} + +func (m VolumeGroupSourceFromVolumeGroupReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupSourceFromVolumeGroupReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeGroupSourceFromVolumeGroupReplicaDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeGroupSourceFromVolumeGroupReplicaDetails VolumeGroupSourceFromVolumeGroupReplicaDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeGroupSourceFromVolumeGroupReplicaDetails + }{ + "volumeGroupReplicaId", + (MarshalTypeVolumeGroupSourceFromVolumeGroupReplicaDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volumes_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volumes_details.go new file mode 100644 index 0000000000..035946f0e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_group_source_from_volumes_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeGroupSourceFromVolumesDetails Specifies the volumes in a volume group. +type VolumeGroupSourceFromVolumesDetails struct { + + // OCIDs for the volumes in this volume group. + VolumeIds []string `mandatory:"true" json:"volumeIds"` +} + +func (m VolumeGroupSourceFromVolumesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeGroupSourceFromVolumesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeGroupSourceFromVolumesDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeGroupSourceFromVolumesDetails VolumeGroupSourceFromVolumesDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeGroupSourceFromVolumesDetails + }{ + "volumeIds", + (MarshalTypeVolumeGroupSourceFromVolumesDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_kms_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_kms_key.go new file mode 100644 index 0000000000..d8fa24dabc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_kms_key.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeKmsKey The Vault service master encryption key associated with this volume. +type VolumeKmsKey struct { + + // The OCID of the Vault service key assigned to this volume. If the volume is not using Vault service, then the `kmsKeyId` will be a null string. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` +} + +func (m VolumeKmsKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeKmsKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_details.go new file mode 100644 index 0000000000..d01df59469 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_details.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeSourceDetails Specifies the volume source details for a new Block volume. The volume source is either another Block volume in the same Availability Domain or a Block volume backup. +// This is an optional field. If not specified or set to null, the new Block volume will be empty. +// When specified, the new Block volume will contain data from the source volume or backup. +type VolumeSourceDetails interface { +} + +type volumesourcedetails struct { + JsonData []byte + Type string `json:"type"` +} + +// UnmarshalJSON unmarshals json +func (m *volumesourcedetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalervolumesourcedetails volumesourcedetails + s := struct { + Model Unmarshalervolumesourcedetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Type = s.Model.Type + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *volumesourcedetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Type { + case "blockVolumeReplica": + mm := VolumeSourceFromBlockVolumeReplicaDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volume": + mm := VolumeSourceFromVolumeDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + case "volumeBackup": + mm := VolumeSourceFromVolumeBackupDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for VolumeSourceDetails: %s.", m.Type) + return *m, nil + } +} + +func (m volumesourcedetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m volumesourcedetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_block_volume_replica_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_block_volume_replica_details.go new file mode 100644 index 0000000000..f9afa80b47 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_block_volume_replica_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeSourceFromBlockVolumeReplicaDetails Specifies the source block volume replica which the block volume will be created from. +// The block volume replica shoulbe be in the same availability domain as the block volume. +// Only one volume can be created from a replica at the same time. +type VolumeSourceFromBlockVolumeReplicaDetails struct { + + // The OCID of the block volume replica. + Id *string `mandatory:"true" json:"id"` +} + +func (m VolumeSourceFromBlockVolumeReplicaDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeSourceFromBlockVolumeReplicaDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeSourceFromBlockVolumeReplicaDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeSourceFromBlockVolumeReplicaDetails VolumeSourceFromBlockVolumeReplicaDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeSourceFromBlockVolumeReplicaDetails + }{ + "blockVolumeReplica", + (MarshalTypeVolumeSourceFromBlockVolumeReplicaDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_details.go new file mode 100644 index 0000000000..bebc431783 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_backup_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeSourceFromVolumeBackupDetails Specifies the volume backup. +type VolumeSourceFromVolumeBackupDetails struct { + + // The OCID of the volume backup. + Id *string `mandatory:"true" json:"id"` +} + +func (m VolumeSourceFromVolumeBackupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeSourceFromVolumeBackupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeSourceFromVolumeBackupDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeSourceFromVolumeBackupDetails VolumeSourceFromVolumeBackupDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeSourceFromVolumeBackupDetails + }{ + "volumeBackup", + (MarshalTypeVolumeSourceFromVolumeBackupDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_details.go new file mode 100644 index 0000000000..025c5e34d1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/volume_source_from_volume_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VolumeSourceFromVolumeDetails Specifies the source volume. +type VolumeSourceFromVolumeDetails struct { + + // The OCID of the volume. + Id *string `mandatory:"true" json:"id"` +} + +func (m VolumeSourceFromVolumeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VolumeSourceFromVolumeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m VolumeSourceFromVolumeDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeVolumeSourceFromVolumeDetails VolumeSourceFromVolumeDetails + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeVolumeSourceFromVolumeDetails + }{ + "volume", + (MarshalTypeVolumeSourceFromVolumeDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap.go new file mode 100644 index 0000000000..4636fe2e1f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap.go @@ -0,0 +1,414 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Vtap A virtual test access point (VTAP) provides a way to mirror all traffic from a designated source to a selected target in order to facilitate troubleshooting, security analysis, and data monitoring. +// A VTAP is functionally similar to a test access point (TAP) you might deploy in your on-premises network. +// A *CaptureFilter* contains a set of *CaptureFilterRuleDetails* governing what traffic a VTAP mirrors. +type Vtap struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the `Vtap` resource. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VCN containing the `Vtap` resource. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The VTAP's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + Id *string `mandatory:"true" json:"id"` + + // The VTAP's administrative lifecycle state. + LifecycleState VtapLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the source point where packets are captured. + SourceId *string `mandatory:"true" json:"sourceId"` + + // The capture filter's Oracle ID (OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)). + CaptureFilterId *string `mandatory:"true" json:"captureFilterId"` + + // Defined tags for this resource. Each key is predefined and scoped to a + // namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // A user-friendly name. Does not have to be unique, and it's changeable. + // Avoid entering confidential information. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no + // predefined name, type, or namespace. For more information, see Resource Tags (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // The VTAP's current running state. + LifecycleStateDetails VtapLifecycleStateDetailsEnum `mandatory:"false" json:"lifecycleStateDetails,omitempty"` + + // The date and time the VTAP was created, in the format defined by RFC3339 (https://tools.ietf.org/html/rfc3339). + // Example: `2020-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the destination resource where mirrored packets are sent. + TargetId *string `mandatory:"false" json:"targetId"` + + // The IP address of the destination resource where mirrored packets are sent. + TargetIp *string `mandatory:"false" json:"targetIp"` + + // Defines an encapsulation header type for the VTAP's mirrored traffic. + EncapsulationProtocol VtapEncapsulationProtocolEnum `mandatory:"false" json:"encapsulationProtocol,omitempty"` + + // The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN. + VxlanNetworkIdentifier *int64 `mandatory:"false" json:"vxlanNetworkIdentifier"` + + // Used to start or stop a `Vtap` resource. + // * `TRUE` directs the VTAP to start mirroring traffic. + // * `FALSE` (Default) directs the VTAP to stop mirroring traffic. + IsVtapEnabled *bool `mandatory:"false" json:"isVtapEnabled"` + + // The source type for the VTAP. + SourceType VtapSourceTypeEnum `mandatory:"false" json:"sourceType,omitempty"` + + // Used to control the priority of traffic. It is an optional field. If it not passed, the value is DEFAULT + TrafficMode VtapTrafficModeEnum `mandatory:"false" json:"trafficMode,omitempty"` + + // The maximum size of the packets to be included in the filter. + MaxPacketSize *int `mandatory:"false" json:"maxPacketSize"` + + // The target type for the VTAP. + TargetType VtapTargetTypeEnum `mandatory:"false" json:"targetType,omitempty"` + + // The IP Address of the source private endpoint. + SourcePrivateEndpointIp *string `mandatory:"false" json:"sourcePrivateEndpointIp"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subnet that source private endpoint belongs to. + SourcePrivateEndpointSubnetId *string `mandatory:"false" json:"sourcePrivateEndpointSubnetId"` +} + +func (m Vtap) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Vtap) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVtapLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetVtapLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingVtapLifecycleStateDetailsEnum(string(m.LifecycleStateDetails)); !ok && m.LifecycleStateDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleStateDetails: %s. Supported values are: %s.", m.LifecycleStateDetails, strings.Join(GetVtapLifecycleStateDetailsEnumStringValues(), ","))) + } + if _, ok := GetMappingVtapEncapsulationProtocolEnum(string(m.EncapsulationProtocol)); !ok && m.EncapsulationProtocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncapsulationProtocol: %s. Supported values are: %s.", m.EncapsulationProtocol, strings.Join(GetVtapEncapsulationProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingVtapSourceTypeEnum(string(m.SourceType)); !ok && m.SourceType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SourceType: %s. Supported values are: %s.", m.SourceType, strings.Join(GetVtapSourceTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingVtapTrafficModeEnum(string(m.TrafficMode)); !ok && m.TrafficMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TrafficMode: %s. Supported values are: %s.", m.TrafficMode, strings.Join(GetVtapTrafficModeEnumStringValues(), ","))) + } + if _, ok := GetMappingVtapTargetTypeEnum(string(m.TargetType)); !ok && m.TargetType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TargetType: %s. Supported values are: %s.", m.TargetType, strings.Join(GetVtapTargetTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VtapLifecycleStateEnum Enum with underlying type: string +type VtapLifecycleStateEnum string + +// Set of constants representing the allowable values for VtapLifecycleStateEnum +const ( + VtapLifecycleStateProvisioning VtapLifecycleStateEnum = "PROVISIONING" + VtapLifecycleStateAvailable VtapLifecycleStateEnum = "AVAILABLE" + VtapLifecycleStateUpdating VtapLifecycleStateEnum = "UPDATING" + VtapLifecycleStateTerminating VtapLifecycleStateEnum = "TERMINATING" + VtapLifecycleStateTerminated VtapLifecycleStateEnum = "TERMINATED" +) + +var mappingVtapLifecycleStateEnum = map[string]VtapLifecycleStateEnum{ + "PROVISIONING": VtapLifecycleStateProvisioning, + "AVAILABLE": VtapLifecycleStateAvailable, + "UPDATING": VtapLifecycleStateUpdating, + "TERMINATING": VtapLifecycleStateTerminating, + "TERMINATED": VtapLifecycleStateTerminated, +} + +var mappingVtapLifecycleStateEnumLowerCase = map[string]VtapLifecycleStateEnum{ + "provisioning": VtapLifecycleStateProvisioning, + "available": VtapLifecycleStateAvailable, + "updating": VtapLifecycleStateUpdating, + "terminating": VtapLifecycleStateTerminating, + "terminated": VtapLifecycleStateTerminated, +} + +// GetVtapLifecycleStateEnumValues Enumerates the set of values for VtapLifecycleStateEnum +func GetVtapLifecycleStateEnumValues() []VtapLifecycleStateEnum { + values := make([]VtapLifecycleStateEnum, 0) + for _, v := range mappingVtapLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetVtapLifecycleStateEnumStringValues Enumerates the set of values in String for VtapLifecycleStateEnum +func GetVtapLifecycleStateEnumStringValues() []string { + return []string{ + "PROVISIONING", + "AVAILABLE", + "UPDATING", + "TERMINATING", + "TERMINATED", + } +} + +// GetMappingVtapLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapLifecycleStateEnum(val string) (VtapLifecycleStateEnum, bool) { + enum, ok := mappingVtapLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VtapLifecycleStateDetailsEnum Enum with underlying type: string +type VtapLifecycleStateDetailsEnum string + +// Set of constants representing the allowable values for VtapLifecycleStateDetailsEnum +const ( + VtapLifecycleStateDetailsRunning VtapLifecycleStateDetailsEnum = "RUNNING" + VtapLifecycleStateDetailsStopped VtapLifecycleStateDetailsEnum = "STOPPED" +) + +var mappingVtapLifecycleStateDetailsEnum = map[string]VtapLifecycleStateDetailsEnum{ + "RUNNING": VtapLifecycleStateDetailsRunning, + "STOPPED": VtapLifecycleStateDetailsStopped, +} + +var mappingVtapLifecycleStateDetailsEnumLowerCase = map[string]VtapLifecycleStateDetailsEnum{ + "running": VtapLifecycleStateDetailsRunning, + "stopped": VtapLifecycleStateDetailsStopped, +} + +// GetVtapLifecycleStateDetailsEnumValues Enumerates the set of values for VtapLifecycleStateDetailsEnum +func GetVtapLifecycleStateDetailsEnumValues() []VtapLifecycleStateDetailsEnum { + values := make([]VtapLifecycleStateDetailsEnum, 0) + for _, v := range mappingVtapLifecycleStateDetailsEnum { + values = append(values, v) + } + return values +} + +// GetVtapLifecycleStateDetailsEnumStringValues Enumerates the set of values in String for VtapLifecycleStateDetailsEnum +func GetVtapLifecycleStateDetailsEnumStringValues() []string { + return []string{ + "RUNNING", + "STOPPED", + } +} + +// GetMappingVtapLifecycleStateDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapLifecycleStateDetailsEnum(val string) (VtapLifecycleStateDetailsEnum, bool) { + enum, ok := mappingVtapLifecycleStateDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VtapEncapsulationProtocolEnum Enum with underlying type: string +type VtapEncapsulationProtocolEnum string + +// Set of constants representing the allowable values for VtapEncapsulationProtocolEnum +const ( + VtapEncapsulationProtocolVxlan VtapEncapsulationProtocolEnum = "VXLAN" +) + +var mappingVtapEncapsulationProtocolEnum = map[string]VtapEncapsulationProtocolEnum{ + "VXLAN": VtapEncapsulationProtocolVxlan, +} + +var mappingVtapEncapsulationProtocolEnumLowerCase = map[string]VtapEncapsulationProtocolEnum{ + "vxlan": VtapEncapsulationProtocolVxlan, +} + +// GetVtapEncapsulationProtocolEnumValues Enumerates the set of values for VtapEncapsulationProtocolEnum +func GetVtapEncapsulationProtocolEnumValues() []VtapEncapsulationProtocolEnum { + values := make([]VtapEncapsulationProtocolEnum, 0) + for _, v := range mappingVtapEncapsulationProtocolEnum { + values = append(values, v) + } + return values +} + +// GetVtapEncapsulationProtocolEnumStringValues Enumerates the set of values in String for VtapEncapsulationProtocolEnum +func GetVtapEncapsulationProtocolEnumStringValues() []string { + return []string{ + "VXLAN", + } +} + +// GetMappingVtapEncapsulationProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapEncapsulationProtocolEnum(val string) (VtapEncapsulationProtocolEnum, bool) { + enum, ok := mappingVtapEncapsulationProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VtapSourceTypeEnum Enum with underlying type: string +type VtapSourceTypeEnum string + +// Set of constants representing the allowable values for VtapSourceTypeEnum +const ( + VtapSourceTypeVnic VtapSourceTypeEnum = "VNIC" + VtapSourceTypeSubnet VtapSourceTypeEnum = "SUBNET" + VtapSourceTypeLoadBalancer VtapSourceTypeEnum = "LOAD_BALANCER" + VtapSourceTypeDbSystem VtapSourceTypeEnum = "DB_SYSTEM" + VtapSourceTypeExadataVmCluster VtapSourceTypeEnum = "EXADATA_VM_CLUSTER" + VtapSourceTypeAutonomousDataWarehouse VtapSourceTypeEnum = "AUTONOMOUS_DATA_WAREHOUSE" +) + +var mappingVtapSourceTypeEnum = map[string]VtapSourceTypeEnum{ + "VNIC": VtapSourceTypeVnic, + "SUBNET": VtapSourceTypeSubnet, + "LOAD_BALANCER": VtapSourceTypeLoadBalancer, + "DB_SYSTEM": VtapSourceTypeDbSystem, + "EXADATA_VM_CLUSTER": VtapSourceTypeExadataVmCluster, + "AUTONOMOUS_DATA_WAREHOUSE": VtapSourceTypeAutonomousDataWarehouse, +} + +var mappingVtapSourceTypeEnumLowerCase = map[string]VtapSourceTypeEnum{ + "vnic": VtapSourceTypeVnic, + "subnet": VtapSourceTypeSubnet, + "load_balancer": VtapSourceTypeLoadBalancer, + "db_system": VtapSourceTypeDbSystem, + "exadata_vm_cluster": VtapSourceTypeExadataVmCluster, + "autonomous_data_warehouse": VtapSourceTypeAutonomousDataWarehouse, +} + +// GetVtapSourceTypeEnumValues Enumerates the set of values for VtapSourceTypeEnum +func GetVtapSourceTypeEnumValues() []VtapSourceTypeEnum { + values := make([]VtapSourceTypeEnum, 0) + for _, v := range mappingVtapSourceTypeEnum { + values = append(values, v) + } + return values +} + +// GetVtapSourceTypeEnumStringValues Enumerates the set of values in String for VtapSourceTypeEnum +func GetVtapSourceTypeEnumStringValues() []string { + return []string{ + "VNIC", + "SUBNET", + "LOAD_BALANCER", + "DB_SYSTEM", + "EXADATA_VM_CLUSTER", + "AUTONOMOUS_DATA_WAREHOUSE", + } +} + +// GetMappingVtapSourceTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapSourceTypeEnum(val string) (VtapSourceTypeEnum, bool) { + enum, ok := mappingVtapSourceTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VtapTrafficModeEnum Enum with underlying type: string +type VtapTrafficModeEnum string + +// Set of constants representing the allowable values for VtapTrafficModeEnum +const ( + VtapTrafficModeDefault VtapTrafficModeEnum = "DEFAULT" + VtapTrafficModePriority VtapTrafficModeEnum = "PRIORITY" +) + +var mappingVtapTrafficModeEnum = map[string]VtapTrafficModeEnum{ + "DEFAULT": VtapTrafficModeDefault, + "PRIORITY": VtapTrafficModePriority, +} + +var mappingVtapTrafficModeEnumLowerCase = map[string]VtapTrafficModeEnum{ + "default": VtapTrafficModeDefault, + "priority": VtapTrafficModePriority, +} + +// GetVtapTrafficModeEnumValues Enumerates the set of values for VtapTrafficModeEnum +func GetVtapTrafficModeEnumValues() []VtapTrafficModeEnum { + values := make([]VtapTrafficModeEnum, 0) + for _, v := range mappingVtapTrafficModeEnum { + values = append(values, v) + } + return values +} + +// GetVtapTrafficModeEnumStringValues Enumerates the set of values in String for VtapTrafficModeEnum +func GetVtapTrafficModeEnumStringValues() []string { + return []string{ + "DEFAULT", + "PRIORITY", + } +} + +// GetMappingVtapTrafficModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapTrafficModeEnum(val string) (VtapTrafficModeEnum, bool) { + enum, ok := mappingVtapTrafficModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VtapTargetTypeEnum Enum with underlying type: string +type VtapTargetTypeEnum string + +// Set of constants representing the allowable values for VtapTargetTypeEnum +const ( + VtapTargetTypeVnic VtapTargetTypeEnum = "VNIC" + VtapTargetTypeNetworkLoadBalancer VtapTargetTypeEnum = "NETWORK_LOAD_BALANCER" + VtapTargetTypeIpAddress VtapTargetTypeEnum = "IP_ADDRESS" +) + +var mappingVtapTargetTypeEnum = map[string]VtapTargetTypeEnum{ + "VNIC": VtapTargetTypeVnic, + "NETWORK_LOAD_BALANCER": VtapTargetTypeNetworkLoadBalancer, + "IP_ADDRESS": VtapTargetTypeIpAddress, +} + +var mappingVtapTargetTypeEnumLowerCase = map[string]VtapTargetTypeEnum{ + "vnic": VtapTargetTypeVnic, + "network_load_balancer": VtapTargetTypeNetworkLoadBalancer, + "ip_address": VtapTargetTypeIpAddress, +} + +// GetVtapTargetTypeEnumValues Enumerates the set of values for VtapTargetTypeEnum +func GetVtapTargetTypeEnumValues() []VtapTargetTypeEnum { + values := make([]VtapTargetTypeEnum, 0) + for _, v := range mappingVtapTargetTypeEnum { + values = append(values, v) + } + return values +} + +// GetVtapTargetTypeEnumStringValues Enumerates the set of values in String for VtapTargetTypeEnum +func GetVtapTargetTypeEnumStringValues() []string { + return []string{ + "VNIC", + "NETWORK_LOAD_BALANCER", + "IP_ADDRESS", + } +} + +// GetMappingVtapTargetTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapTargetTypeEnum(val string) (VtapTargetTypeEnum, bool) { + enum, ok := mappingVtapTargetTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap_capture_filter_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap_capture_filter_rule_details.go new file mode 100644 index 0000000000..86a1e1e8a0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/vtap_capture_filter_rule_details.go @@ -0,0 +1,155 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// VtapCaptureFilterRuleDetails This resource contains the rules governing what traffic a VTAP mirrors. +type VtapCaptureFilterRuleDetails struct { + + // The traffic direction the VTAP is configured to mirror. + TrafficDirection VtapCaptureFilterRuleDetailsTrafficDirectionEnum `mandatory:"true" json:"trafficDirection"` + + // Include or exclude packets meeting this definition from mirrored traffic. + RuleAction VtapCaptureFilterRuleDetailsRuleActionEnum `mandatory:"false" json:"ruleAction,omitempty"` + + // Traffic from this CIDR block to the VTAP source will be mirrored to the VTAP target. + SourceCidr *string `mandatory:"false" json:"sourceCidr"` + + // Traffic sent to this CIDR block through the VTAP source will be mirrored to the VTAP target. + DestinationCidr *string `mandatory:"false" json:"destinationCidr"` + + // The transport protocol used in the filter. If do not choose a protocol, all protocols will be used in the filter. + // Supported options are: + // * 1 = ICMP + // * 6 = TCP + // * 17 = UDP + Protocol *string `mandatory:"false" json:"protocol"` + + IcmpOptions *IcmpOptions `mandatory:"false" json:"icmpOptions"` + + TcpOptions *TcpOptions `mandatory:"false" json:"tcpOptions"` + + UdpOptions *UdpOptions `mandatory:"false" json:"udpOptions"` +} + +func (m VtapCaptureFilterRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m VtapCaptureFilterRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingVtapCaptureFilterRuleDetailsTrafficDirectionEnum(string(m.TrafficDirection)); !ok && m.TrafficDirection != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TrafficDirection: %s. Supported values are: %s.", m.TrafficDirection, strings.Join(GetVtapCaptureFilterRuleDetailsTrafficDirectionEnumStringValues(), ","))) + } + + if _, ok := GetMappingVtapCaptureFilterRuleDetailsRuleActionEnum(string(m.RuleAction)); !ok && m.RuleAction != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RuleAction: %s. Supported values are: %s.", m.RuleAction, strings.Join(GetVtapCaptureFilterRuleDetailsRuleActionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// VtapCaptureFilterRuleDetailsTrafficDirectionEnum Enum with underlying type: string +type VtapCaptureFilterRuleDetailsTrafficDirectionEnum string + +// Set of constants representing the allowable values for VtapCaptureFilterRuleDetailsTrafficDirectionEnum +const ( + VtapCaptureFilterRuleDetailsTrafficDirectionIngress VtapCaptureFilterRuleDetailsTrafficDirectionEnum = "INGRESS" + VtapCaptureFilterRuleDetailsTrafficDirectionEgress VtapCaptureFilterRuleDetailsTrafficDirectionEnum = "EGRESS" +) + +var mappingVtapCaptureFilterRuleDetailsTrafficDirectionEnum = map[string]VtapCaptureFilterRuleDetailsTrafficDirectionEnum{ + "INGRESS": VtapCaptureFilterRuleDetailsTrafficDirectionIngress, + "EGRESS": VtapCaptureFilterRuleDetailsTrafficDirectionEgress, +} + +var mappingVtapCaptureFilterRuleDetailsTrafficDirectionEnumLowerCase = map[string]VtapCaptureFilterRuleDetailsTrafficDirectionEnum{ + "ingress": VtapCaptureFilterRuleDetailsTrafficDirectionIngress, + "egress": VtapCaptureFilterRuleDetailsTrafficDirectionEgress, +} + +// GetVtapCaptureFilterRuleDetailsTrafficDirectionEnumValues Enumerates the set of values for VtapCaptureFilterRuleDetailsTrafficDirectionEnum +func GetVtapCaptureFilterRuleDetailsTrafficDirectionEnumValues() []VtapCaptureFilterRuleDetailsTrafficDirectionEnum { + values := make([]VtapCaptureFilterRuleDetailsTrafficDirectionEnum, 0) + for _, v := range mappingVtapCaptureFilterRuleDetailsTrafficDirectionEnum { + values = append(values, v) + } + return values +} + +// GetVtapCaptureFilterRuleDetailsTrafficDirectionEnumStringValues Enumerates the set of values in String for VtapCaptureFilterRuleDetailsTrafficDirectionEnum +func GetVtapCaptureFilterRuleDetailsTrafficDirectionEnumStringValues() []string { + return []string{ + "INGRESS", + "EGRESS", + } +} + +// GetMappingVtapCaptureFilterRuleDetailsTrafficDirectionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapCaptureFilterRuleDetailsTrafficDirectionEnum(val string) (VtapCaptureFilterRuleDetailsTrafficDirectionEnum, bool) { + enum, ok := mappingVtapCaptureFilterRuleDetailsTrafficDirectionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// VtapCaptureFilterRuleDetailsRuleActionEnum Enum with underlying type: string +type VtapCaptureFilterRuleDetailsRuleActionEnum string + +// Set of constants representing the allowable values for VtapCaptureFilterRuleDetailsRuleActionEnum +const ( + VtapCaptureFilterRuleDetailsRuleActionInclude VtapCaptureFilterRuleDetailsRuleActionEnum = "INCLUDE" + VtapCaptureFilterRuleDetailsRuleActionExclude VtapCaptureFilterRuleDetailsRuleActionEnum = "EXCLUDE" +) + +var mappingVtapCaptureFilterRuleDetailsRuleActionEnum = map[string]VtapCaptureFilterRuleDetailsRuleActionEnum{ + "INCLUDE": VtapCaptureFilterRuleDetailsRuleActionInclude, + "EXCLUDE": VtapCaptureFilterRuleDetailsRuleActionExclude, +} + +var mappingVtapCaptureFilterRuleDetailsRuleActionEnumLowerCase = map[string]VtapCaptureFilterRuleDetailsRuleActionEnum{ + "include": VtapCaptureFilterRuleDetailsRuleActionInclude, + "exclude": VtapCaptureFilterRuleDetailsRuleActionExclude, +} + +// GetVtapCaptureFilterRuleDetailsRuleActionEnumValues Enumerates the set of values for VtapCaptureFilterRuleDetailsRuleActionEnum +func GetVtapCaptureFilterRuleDetailsRuleActionEnumValues() []VtapCaptureFilterRuleDetailsRuleActionEnum { + values := make([]VtapCaptureFilterRuleDetailsRuleActionEnum, 0) + for _, v := range mappingVtapCaptureFilterRuleDetailsRuleActionEnum { + values = append(values, v) + } + return values +} + +// GetVtapCaptureFilterRuleDetailsRuleActionEnumStringValues Enumerates the set of values in String for VtapCaptureFilterRuleDetailsRuleActionEnum +func GetVtapCaptureFilterRuleDetailsRuleActionEnumStringValues() []string { + return []string{ + "INCLUDE", + "EXCLUDE", + } +} + +// GetMappingVtapCaptureFilterRuleDetailsRuleActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingVtapCaptureFilterRuleDetailsRuleActionEnum(val string) (VtapCaptureFilterRuleDetailsRuleActionEnum, bool) { + enum, ok := mappingVtapCaptureFilterRuleDetailsRuleActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/core/wallet_info.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/wallet_info.go new file mode 100644 index 0000000000..a4cb0de426 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/wallet_info.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Core Services API +// +// Use the Core Services API to manage resources such as virtual cloud networks (VCNs), +// compute instances, and block storage volumes. For more information, see the console +// documentation for the Networking (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/overview.htm), +// Compute (https://docs.cloud.oracle.com/iaas/Content/Compute/Concepts/computeoverview.htm), and +// Block Volume (https://docs.cloud.oracle.com/iaas/Content/Block/Concepts/overview.htm) services. +// + +package core + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WalletInfo Oracle Wallet that serves as a container to carry certificates, public key, private key, +// and list of CAs to be trusted +type WalletInfo struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Vault Service secret, holding + // the Oracle Wallet to be used for SCAN proxy. + ScanWalletSecretId *string `mandatory:"false" json:"scanWalletSecretId"` + + // The version of secret that SCAN proxy should use to fetch the Oracle Wallet content for. + ScanWalletSecretVersion *string `mandatory:"false" json:"scanWalletSecretVersion"` +} + +func (m WalletInfo) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WalletInfo) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/core/withdraw_byoip_range_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/core/withdraw_byoip_range_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go index c255a422fd..57ca58ddb8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/core/withdraw_byoip_range_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/core/withdraw_byoip_range_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package core import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // WithdrawByoipRangeRequest wrapper for the WithdrawByoipRange operation @@ -31,6 +33,10 @@ func (request WithdrawByoipRangeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request WithdrawByoipRangeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request WithdrawByoipRangeRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request WithdrawByoipRangeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // WithdrawByoipRangeResponse wrapper for the WithdrawByoipRange operation type WithdrawByoipRangeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_details.go new file mode 100644 index 0000000000..d88707bf67 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeFileSystemCompartmentDetails Details for changing the compartment. +type ChangeFileSystemCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the file system to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeFileSystemCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeFileSystemCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go index 2a09d55ddb..1935e25c2d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_file_system_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_file_system_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeFileSystemCompartmentRequest wrapper for the ChangeFileSystemCompartment operation @@ -41,6 +43,10 @@ func (request ChangeFileSystemCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeFileSystemCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeFileSystemCompartmentRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeFileSystemCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeFileSystemCompartmentResponse wrapper for the ChangeFileSystemCompartment operation type ChangeFileSystemCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_details.go new file mode 100644 index 0000000000..159dd0fe8c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeFilesystemSnapshotPolicyCompartmentDetails Details for changing the compartment. +type ChangeFilesystemSnapshotPolicyCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the Filesystem Snapshot Policy to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeFilesystemSnapshotPolicyCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeFilesystemSnapshotPolicyCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go new file mode 100644 index 0000000000..f05e1daba4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_filesystem_snapshot_policy_compartment_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeFilesystemSnapshotPolicyCompartmentRequest wrapper for the ChangeFilesystemSnapshotPolicyCompartment operation +type ChangeFilesystemSnapshotPolicyCompartmentRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` + + // Details for changing the compartment. + ChangeFilesystemSnapshotPolicyCompartmentDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeFilesystemSnapshotPolicyCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeFilesystemSnapshotPolicyCompartmentResponse wrapper for the ChangeFilesystemSnapshotPolicyCompartment operation +type ChangeFilesystemSnapshotPolicyCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeFilesystemSnapshotPolicyCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeFilesystemSnapshotPolicyCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_details.go new file mode 100644 index 0000000000..1087ac17bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeMountTargetCompartmentDetails Details for changing the compartment. +type ChangeMountTargetCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the mount target to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeMountTargetCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeMountTargetCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go index 9cc603ce43..61ce0607ad 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_mount_target_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_mount_target_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeMountTargetCompartmentRequest wrapper for the ChangeMountTargetCompartment operation @@ -41,6 +43,10 @@ func (request ChangeMountTargetCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeMountTargetCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeMountTargetCompartmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeMountTargetCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeMountTargetCompartmentResponse wrapper for the ChangeMountTargetCompartment operation type ChangeMountTargetCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_details.go new file mode 100644 index 0000000000..d1bf8b3889 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeOutboundConnectorCompartmentDetails Details for changing the compartment. +type ChangeOutboundConnectorCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the outbound connector to + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeOutboundConnectorCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeOutboundConnectorCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go index 523d352db0..56ed5cb854 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_outbound_connector_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_outbound_connector_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeOutboundConnectorCompartmentRequest wrapper for the ChangeOutboundConnectorCompartment operation @@ -41,6 +43,10 @@ func (request ChangeOutboundConnectorCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeOutboundConnectorCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeOutboundConnectorCompartmentRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeOutboundConnectorCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeOutboundConnectorCompartmentResponse wrapper for the ChangeOutboundConnectorCompartment operation type ChangeOutboundConnectorCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_details.go new file mode 100644 index 0000000000..4d0d777323 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeReplicationCompartmentDetails Details for changing the compartment of both replication and replication target. +type ChangeReplicationCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to move the replication to. Also changes the replication target's compartment in the target region. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeReplicationCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeReplicationCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go index 29e7829afa..421b2ba85d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeReplicationCompartmentRequest wrapper for the ChangeReplicationCompartment operation @@ -41,6 +43,10 @@ func (request ChangeReplicationCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeReplicationCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeReplicationCompartmentRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeReplicationCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeReplicationCompartmentResponse wrapper for the ChangeReplicationCompartment operation type ChangeReplicationCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_details.go new file mode 100644 index 0000000000..2417ddd659 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeReplicationTargetCompartmentDetails Details for changing the compartment of replication target. +type ChangeReplicationTargetCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment + // to move the replication to + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeReplicationTargetCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeReplicationTargetCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_request_response.go index fa8ee67c07..64c8bb5661 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/change_replication_target_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/change_replication_target_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeReplicationTargetCompartmentRequest wrapper for the ChangeReplicationTargetCompartment operation @@ -41,6 +43,10 @@ func (request ChangeReplicationTargetCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeReplicationTargetCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ChangeReplicationTargetCompartmentRequest) RetryPolicy() *common.R return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeReplicationTargetCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeReplicationTargetCompartmentResponse wrapper for the ChangeReplicationTargetCompartment operation type ChangeReplicationTargetCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/check_reconciliation_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/check_reconciliation_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/check_reconciliation_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/check_reconciliation_request_response.go index eb382b173a..b78cee8f71 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/check_reconciliation_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/check_reconciliation_request_response.go @@ -1,23 +1,25 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CheckReconciliationRequest wrapper for the CheckReconciliation operation type CheckReconciliationRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source file system. - FileSystemId *string `mandatory:"true" contributesTo:"query" name:"fileSystemId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the target filesystem's snapshot's provenance id. + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the target filesystem's snapshot's `provenanceId`. ProvenanceId *string `mandatory:"true" contributesTo:"query" name:"provenanceId"` + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source file system. + FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` + // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -34,6 +36,10 @@ func (request CheckReconciliationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CheckReconciliationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,14 +55,25 @@ func (request CheckReconciliationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CheckReconciliationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CheckReconciliationResponse wrapper for the CheckReconciliation operation type CheckReconciliationResponse struct { // The underlying http response RawResponse *http.Response - // The ReconciliationDetails instance - ReconciliationDetails `presentIn:"body"` + // The bool instance + Value *bool `presentIn:"body"` // For optimistic concurrency control. See `if-match`. Etag *string `presentIn:"header" name:"etag"` diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_options.go new file mode 100644 index 0000000000..7dccab6dd7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_options.go @@ -0,0 +1,231 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientOptions NFS export options applied to a specified set of +// clients. Only governs access through the associated +// export. Access to the same file system through a different +// export (on the same or different mount target) will be governed +// by that export's export options. +type ClientOptions struct { + + // Clients these options should apply to. Must be a either + // single IPv4 address or single IPv4 CIDR block. + // **Note:** Access will also be limited by any applicable VCN + // security rules and the ability to route IP packets to the + // mount target. Mount targets do not have Internet-routable IP addresses. + Source *string `mandatory:"true" json:"source"` + + // If `true`, clients accessing the file system through this + // export must connect from a privileged source port. If + // unspecified, defaults to `true`. + RequirePrivilegedSourcePort *bool `mandatory:"false" json:"requirePrivilegedSourcePort"` + + // Type of access to grant clients using the file system + // through this export. If unspecified defaults to `READ_ONLY`. + Access ClientOptionsAccessEnum `mandatory:"false" json:"access,omitempty"` + + // Used when clients accessing the file system through this export + // have their UID and GID remapped to 'anonymousUid' and + // 'anonymousGid'. If `ALL`, all users and groups are remapped; + // if `ROOT`, only the root user and group (UID/GID 0) are + // remapped; if `NONE`, no remapping is done. If unspecified, + // defaults to `ROOT`. + IdentitySquash ClientOptionsIdentitySquashEnum `mandatory:"false" json:"identitySquash,omitempty"` + + // UID value to remap to when squashing a client UID (see + // identitySquash for more details.) If unspecified, defaults + // to `65534`. + AnonymousUid *int64 `mandatory:"false" json:"anonymousUid"` + + // GID value to remap to when squashing a client GID (see + // identitySquash for more details.) If unspecified defaults + // to `65534`. + AnonymousGid *int64 `mandatory:"false" json:"anonymousGid"` + + // Allow principals with no entry in ID mapping to access this export with SquashUID and SquashGID privileges. + IsAnonymousAccessAllowed *bool `mandatory:"false" json:"isAnonymousAccessAllowed"` + + // Array of allowed NFS authentication types. + AllowedAuth []ClientOptionsAllowedAuthEnum `mandatory:"false" json:"allowedAuth,omitempty"` +} + +func (m ClientOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClientOptionsAccessEnum(string(m.Access)); !ok && m.Access != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Access: %s. Supported values are: %s.", m.Access, strings.Join(GetClientOptionsAccessEnumStringValues(), ","))) + } + if _, ok := GetMappingClientOptionsIdentitySquashEnum(string(m.IdentitySquash)); !ok && m.IdentitySquash != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IdentitySquash: %s. Supported values are: %s.", m.IdentitySquash, strings.Join(GetClientOptionsIdentitySquashEnumStringValues(), ","))) + } + for _, val := range m.AllowedAuth { + if _, ok := GetMappingClientOptionsAllowedAuthEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AllowedAuth: %s. Supported values are: %s.", val, strings.Join(GetClientOptionsAllowedAuthEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClientOptionsAccessEnum Enum with underlying type: string +type ClientOptionsAccessEnum string + +// Set of constants representing the allowable values for ClientOptionsAccessEnum +const ( + ClientOptionsAccessWrite ClientOptionsAccessEnum = "READ_WRITE" + ClientOptionsAccessOnly ClientOptionsAccessEnum = "READ_ONLY" +) + +var mappingClientOptionsAccessEnum = map[string]ClientOptionsAccessEnum{ + "READ_WRITE": ClientOptionsAccessWrite, + "READ_ONLY": ClientOptionsAccessOnly, +} + +var mappingClientOptionsAccessEnumLowerCase = map[string]ClientOptionsAccessEnum{ + "read_write": ClientOptionsAccessWrite, + "read_only": ClientOptionsAccessOnly, +} + +// GetClientOptionsAccessEnumValues Enumerates the set of values for ClientOptionsAccessEnum +func GetClientOptionsAccessEnumValues() []ClientOptionsAccessEnum { + values := make([]ClientOptionsAccessEnum, 0) + for _, v := range mappingClientOptionsAccessEnum { + values = append(values, v) + } + return values +} + +// GetClientOptionsAccessEnumStringValues Enumerates the set of values in String for ClientOptionsAccessEnum +func GetClientOptionsAccessEnumStringValues() []string { + return []string{ + "READ_WRITE", + "READ_ONLY", + } +} + +// GetMappingClientOptionsAccessEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientOptionsAccessEnum(val string) (ClientOptionsAccessEnum, bool) { + enum, ok := mappingClientOptionsAccessEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ClientOptionsIdentitySquashEnum Enum with underlying type: string +type ClientOptionsIdentitySquashEnum string + +// Set of constants representing the allowable values for ClientOptionsIdentitySquashEnum +const ( + ClientOptionsIdentitySquashNone ClientOptionsIdentitySquashEnum = "NONE" + ClientOptionsIdentitySquashRoot ClientOptionsIdentitySquashEnum = "ROOT" + ClientOptionsIdentitySquashAll ClientOptionsIdentitySquashEnum = "ALL" +) + +var mappingClientOptionsIdentitySquashEnum = map[string]ClientOptionsIdentitySquashEnum{ + "NONE": ClientOptionsIdentitySquashNone, + "ROOT": ClientOptionsIdentitySquashRoot, + "ALL": ClientOptionsIdentitySquashAll, +} + +var mappingClientOptionsIdentitySquashEnumLowerCase = map[string]ClientOptionsIdentitySquashEnum{ + "none": ClientOptionsIdentitySquashNone, + "root": ClientOptionsIdentitySquashRoot, + "all": ClientOptionsIdentitySquashAll, +} + +// GetClientOptionsIdentitySquashEnumValues Enumerates the set of values for ClientOptionsIdentitySquashEnum +func GetClientOptionsIdentitySquashEnumValues() []ClientOptionsIdentitySquashEnum { + values := make([]ClientOptionsIdentitySquashEnum, 0) + for _, v := range mappingClientOptionsIdentitySquashEnum { + values = append(values, v) + } + return values +} + +// GetClientOptionsIdentitySquashEnumStringValues Enumerates the set of values in String for ClientOptionsIdentitySquashEnum +func GetClientOptionsIdentitySquashEnumStringValues() []string { + return []string{ + "NONE", + "ROOT", + "ALL", + } +} + +// GetMappingClientOptionsIdentitySquashEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientOptionsIdentitySquashEnum(val string) (ClientOptionsIdentitySquashEnum, bool) { + enum, ok := mappingClientOptionsIdentitySquashEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ClientOptionsAllowedAuthEnum Enum with underlying type: string +type ClientOptionsAllowedAuthEnum string + +// Set of constants representing the allowable values for ClientOptionsAllowedAuthEnum +const ( + ClientOptionsAllowedAuthSys ClientOptionsAllowedAuthEnum = "SYS" + ClientOptionsAllowedAuthKrb5 ClientOptionsAllowedAuthEnum = "KRB5" + ClientOptionsAllowedAuthKrb5i ClientOptionsAllowedAuthEnum = "KRB5I" + ClientOptionsAllowedAuthKrb5p ClientOptionsAllowedAuthEnum = "KRB5P" +) + +var mappingClientOptionsAllowedAuthEnum = map[string]ClientOptionsAllowedAuthEnum{ + "SYS": ClientOptionsAllowedAuthSys, + "KRB5": ClientOptionsAllowedAuthKrb5, + "KRB5I": ClientOptionsAllowedAuthKrb5i, + "KRB5P": ClientOptionsAllowedAuthKrb5p, +} + +var mappingClientOptionsAllowedAuthEnumLowerCase = map[string]ClientOptionsAllowedAuthEnum{ + "sys": ClientOptionsAllowedAuthSys, + "krb5": ClientOptionsAllowedAuthKrb5, + "krb5i": ClientOptionsAllowedAuthKrb5i, + "krb5p": ClientOptionsAllowedAuthKrb5p, +} + +// GetClientOptionsAllowedAuthEnumValues Enumerates the set of values for ClientOptionsAllowedAuthEnum +func GetClientOptionsAllowedAuthEnumValues() []ClientOptionsAllowedAuthEnum { + values := make([]ClientOptionsAllowedAuthEnum, 0) + for _, v := range mappingClientOptionsAllowedAuthEnum { + values = append(values, v) + } + return values +} + +// GetClientOptionsAllowedAuthEnumStringValues Enumerates the set of values in String for ClientOptionsAllowedAuthEnum +func GetClientOptionsAllowedAuthEnumStringValues() []string { + return []string{ + "SYS", + "KRB5", + "KRB5I", + "KRB5P", + } +} + +// GetMappingClientOptionsAllowedAuthEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientOptionsAllowedAuthEnum(val string) (ClientOptionsAllowedAuthEnum, bool) { + enum, ok := mappingClientOptionsAllowedAuthEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_share_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_share_options.go new file mode 100644 index 0000000000..74bd29fdca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/client_share_options.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ClientShareOptions SMB share options applied to a specified set of +// clients. Only governs access through the associated +// share. Access to the same file system through a different +// share will be governed +// by that share's share options. +type ClientShareOptions struct { + + // Clients these options should apply to. Must be a either + // single IPv4 address or single IPv4 CIDR block. + // **Note:** Access will also be limited by any applicable VCN + // security rules and the ability to route IP packets to the + // mount target. Mount targets do not have Internet-routable IP addresses. + Source *string `mandatory:"true" json:"source"` + + // Type of access to grant clients using the file system + // through this share. If unspecified defaults to `READ_ONLY`. + Access ClientShareOptionsAccessEnum `mandatory:"false" json:"access,omitempty"` + + // UID value to remap to when squashing a client UID (see + // identitySquash for more details.) If unspecified, defaults + // to `65534`. + AnonymousUid *int64 `mandatory:"false" json:"anonymousUid"` + + // GID value to remap to when squashing a client GID (see + // identitySquash for more details.) If unspecified defaults + // to `65534`. + AnonymousGid *int64 `mandatory:"false" json:"anonymousGid"` +} + +func (m ClientShareOptions) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ClientShareOptions) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingClientShareOptionsAccessEnum(string(m.Access)); !ok && m.Access != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Access: %s. Supported values are: %s.", m.Access, strings.Join(GetClientShareOptionsAccessEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ClientShareOptionsAccessEnum Enum with underlying type: string +type ClientShareOptionsAccessEnum string + +// Set of constants representing the allowable values for ClientShareOptionsAccessEnum +const ( + ClientShareOptionsAccessWrite ClientShareOptionsAccessEnum = "READ_WRITE" + ClientShareOptionsAccessOnly ClientShareOptionsAccessEnum = "READ_ONLY" +) + +var mappingClientShareOptionsAccessEnum = map[string]ClientShareOptionsAccessEnum{ + "READ_WRITE": ClientShareOptionsAccessWrite, + "READ_ONLY": ClientShareOptionsAccessOnly, +} + +var mappingClientShareOptionsAccessEnumLowerCase = map[string]ClientShareOptionsAccessEnum{ + "read_write": ClientShareOptionsAccessWrite, + "read_only": ClientShareOptionsAccessOnly, +} + +// GetClientShareOptionsAccessEnumValues Enumerates the set of values for ClientShareOptionsAccessEnum +func GetClientShareOptionsAccessEnumValues() []ClientShareOptionsAccessEnum { + values := make([]ClientShareOptionsAccessEnum, 0) + for _, v := range mappingClientShareOptionsAccessEnum { + values = append(values, v) + } + return values +} + +// GetClientShareOptionsAccessEnumStringValues Enumerates the set of values in String for ClientShareOptionsAccessEnum +func GetClientShareOptionsAccessEnumStringValues() []string { + return []string{ + "READ_WRITE", + "READ_ONLY", + } +} + +// GetMappingClientShareOptionsAccessEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingClientShareOptionsAccessEnum(val string) (ClientShareOptionsAccessEnum, bool) { + enum, ok := mappingClientShareOptionsAccessEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go new file mode 100644 index 0000000000..0d1ee6fcdc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_details.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateExportDetails Details for creating the export. +type CreateExportDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's export set. + ExportSetId *string `mandatory:"true" json:"exportSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // Path used to access the associated file system. + // Avoid entering confidential information. + // Example: `/mediafiles` + Path *string `mandatory:"true" json:"path"` + + // Export options for the new export. If left unspecified, + // defaults to: + // [ + // { + // "source" : "0.0.0.0/0", + // "requirePrivilegedSourcePort" : false, + // "access" : "READ_WRITE", + // "identitySquash" : "NONE" + // } + // ] + // **Note:** Mount targets do not have Internet-routable IP + // addresses. Therefore they will not be reachable from the + // Internet, even if an associated `ClientOptions` item has + // a source of `0.0.0.0/0`. + // **If set to the empty array then the export will not be + // visible to any clients.** + // The export's `exportOptions` can be changed after creation + // using the `UpdateExport` operation. + ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` + + // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. + IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` +} + +func (m CreateExportDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateExportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go index 2bdf8c3fec..1a91fc0203 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_export_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateExportRequest wrapper for the CreateExport operation @@ -38,6 +40,10 @@ func (request CreateExportRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateExportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateExportRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateExportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateExportResponse wrapper for the CreateExport operation type CreateExportResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go new file mode 100644 index 0000000000..a2eda7c99f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_details.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateFileSystemDetails Details for creating the file system. +type CreateFileSystemDetails struct { + + // The availability domain to create the file system in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment to create the file system in. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My file system` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key used to encrypt the encryption keys associated with this file system. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated Filesystem Snapshot Policy, which + // controls the frequency of snapshot creation and retention period of the taken snapshots. + // May be unset as a blank or NULL value. + FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` +} + +func (m CreateFileSystemDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateFileSystemDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go index 0aad801844..ae88a80d9c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_file_system_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateFileSystemRequest wrapper for the CreateFileSystem operation @@ -38,6 +40,10 @@ func (request CreateFileSystemRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateFileSystemRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateFileSystemResponse wrapper for the CreateFileSystem operation type CreateFileSystemResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go new file mode 100644 index 0000000000..c2fec80b4b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateFilesystemSnapshotPolicyDetails Details for creating the Filesystem Snapshot Policyt. +type CreateFilesystemSnapshotPolicyDetails struct { + + // The availability domain the Filesystem Snapshot Policy is in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the Filesystem Snapshot Policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `policy1` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The prefix to apply to all snapshots created by this policy. + // Maximum length of 100 characters. + // Example: `acme` + PolicyPrefix *string `mandatory:"false" json:"policyPrefix"` + + // The list of associated SnapshotSchedule objects. There is a maximum of 10 associated with a policy. + Schedules []SnapshotSchedule `mandatory:"false" json:"schedules"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateFilesystemSnapshotPolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateFilesystemSnapshotPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_request_response.go new file mode 100644 index 0000000000..ef6c40f133 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_filesystem_snapshot_policy_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateFilesystemSnapshotPolicyRequest wrapper for the CreateFilesystemSnapshotPolicy operation +type CreateFilesystemSnapshotPolicyRequest struct { + + // Details for creating a new Filesystem Snapshot Policy. + CreateFilesystemSnapshotPolicyDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateFilesystemSnapshotPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateFilesystemSnapshotPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateFilesystemSnapshotPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateFilesystemSnapshotPolicyResponse wrapper for the CreateFilesystemSnapshotPolicy operation +type CreateFilesystemSnapshotPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The FilesystemSnapshotPolicy instance + FilesystemSnapshotPolicy `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateFilesystemSnapshotPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateFilesystemSnapshotPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_kerberos_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_kerberos_details.go new file mode 100644 index 0000000000..2216fa7542 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_kerberos_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateKerberosDetails Kerberos details needed to create configuration. +type CreateKerberosDetails struct { + + // The realm of the kerberos server Mount Target interacts with. + KerberosRealm *string `mandatory:"true" json:"kerberosRealm"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KeyTab Secret in the Vault. + KeyTabSecretId *string `mandatory:"false" json:"keyTabSecretId"` + + // Version of the KeyTab Secret in the Vault to use. + CurrentKeyTabSecretVersion *int `mandatory:"false" json:"currentKeyTabSecretVersion"` + + // Version of the KeyTab Secret in the Vault to use as a backup. + BackupKeyTabSecretVersion *int `mandatory:"false" json:"backupKeyTabSecretVersion"` + + // Specifies whether to Enable or Disbale Kerberos. + IsKerberosEnabled *bool `mandatory:"false" json:"isKerberosEnabled"` + + // Specifies to allow the use of weaker ciphers if true. + // If false only aes256-cts-hmac-sha384-192, aes128-cts-hmac-sha256-128 are allowed. + IsWeakCiphersAllowed *bool `mandatory:"false" json:"isWeakCiphersAllowed"` +} + +func (m CreateKerberosDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateKerberosDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go new file mode 100644 index 0000000000..26b5e96f19 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_bind_account_details.go @@ -0,0 +1,116 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateLdapBindAccountDetails Account details for LDAP bind account to be used in creating outbound connector. +type CreateLdapBindAccountDetails struct { + + // The availability domain the outbound connector is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Array of server endpoints to use while trying to connect while using LDAP bind account. + Endpoints []Endpoint `mandatory:"true" json:"endpoints"` + + // The LDAP Distinguished name of the bind account. + BindDistinguishedName *string `mandatory:"true" json:"bindDistinguishedName"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My outbound connector` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The password for the LDAP bind account. + Password *string `mandatory:"false" json:"password"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the password for the LDAP bind account in the Vault. + PasswordSecretId *string `mandatory:"false" json:"passwordSecretId"` + + // Version of the password secret in the Vault to use. + PasswordSecretVersion *int `mandatory:"false" json:"passwordSecretVersion"` +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m CreateLdapBindAccountDetails) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m CreateLdapBindAccountDetails) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetDisplayName returns DisplayName +func (m CreateLdapBindAccountDetails) GetDisplayName() *string { + return m.DisplayName +} + +//GetFreeformTags returns FreeformTags +func (m CreateLdapBindAccountDetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m CreateLdapBindAccountDetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m CreateLdapBindAccountDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLdapBindAccountDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m CreateLdapBindAccountDetails) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCreateLdapBindAccountDetails CreateLdapBindAccountDetails + s := struct { + DiscriminatorParam string `json:"connectorType"` + MarshalTypeCreateLdapBindAccountDetails + }{ + "LDAPBIND", + (MarshalTypeCreateLdapBindAccountDetails)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_idmap_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_idmap_details.go new file mode 100644 index 0000000000..f7b3df447b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_ldap_idmap_details.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateLdapIdmapDetails Mount Target details about the LDAP ID Map configuration. +type CreateLdapIdmapDetails struct { + + // All LDAP searches are recursive starting at this Base Distinguished user name. + BaseDistinguishedUserName *string `mandatory:"true" json:"baseDistinguishedUserName"` + + // All LDAP searches are recursive starting at this Base Distinguished group name. + BaseDistinguishedGroupName *string `mandatory:"true" json:"baseDistinguishedGroupName"` + + // Schema type of LDAP account. + SchemaType CreateLdapIdmapDetailsSchemaTypeEnum `mandatory:"false" json:"schemaType,omitempty"` + + // Integer for how often the mount target should recheck LDAP for updates. + CacheRefreshIntervalSeconds *int `mandatory:"false" json:"cacheRefreshIntervalSeconds"` + + // Integer for how long cached entries may be used. + CacheLifetimeSeconds *int `mandatory:"false" json:"cacheLifetimeSeconds"` + + // Integer for how long to cache if idmap information is missing. + NegativeCacheLifetimeSeconds *int `mandatory:"false" json:"negativeCacheLifetimeSeconds"` + + // OCID of the first LDAP Account + OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` + + // OCID of the second LDAP Account + OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` +} + +func (m CreateLdapIdmapDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLdapIdmapDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateLdapIdmapDetailsSchemaTypeEnum(string(m.SchemaType)); !ok && m.SchemaType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SchemaType: %s. Supported values are: %s.", m.SchemaType, strings.Join(GetCreateLdapIdmapDetailsSchemaTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateLdapIdmapDetailsSchemaTypeEnum Enum with underlying type: string +type CreateLdapIdmapDetailsSchemaTypeEnum string + +// Set of constants representing the allowable values for CreateLdapIdmapDetailsSchemaTypeEnum +const ( + CreateLdapIdmapDetailsSchemaTypeRfc2307 CreateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" +) + +var mappingCreateLdapIdmapDetailsSchemaTypeEnum = map[string]CreateLdapIdmapDetailsSchemaTypeEnum{ + "RFC2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, +} + +var mappingCreateLdapIdmapDetailsSchemaTypeEnumLowerCase = map[string]CreateLdapIdmapDetailsSchemaTypeEnum{ + "rfc2307": CreateLdapIdmapDetailsSchemaTypeRfc2307, +} + +// GetCreateLdapIdmapDetailsSchemaTypeEnumValues Enumerates the set of values for CreateLdapIdmapDetailsSchemaTypeEnum +func GetCreateLdapIdmapDetailsSchemaTypeEnumValues() []CreateLdapIdmapDetailsSchemaTypeEnum { + values := make([]CreateLdapIdmapDetailsSchemaTypeEnum, 0) + for _, v := range mappingCreateLdapIdmapDetailsSchemaTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateLdapIdmapDetailsSchemaTypeEnumStringValues Enumerates the set of values in String for CreateLdapIdmapDetailsSchemaTypeEnum +func GetCreateLdapIdmapDetailsSchemaTypeEnumStringValues() []string { + return []string{ + "RFC2307", + } +} + +// GetMappingCreateLdapIdmapDetailsSchemaTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateLdapIdmapDetailsSchemaTypeEnum(val string) (CreateLdapIdmapDetailsSchemaTypeEnum, bool) { + enum, ok := mappingCreateLdapIdmapDetailsSchemaTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_mount_target_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go index 4b5afec303..bfc95f4231 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_mount_target_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_details.go @@ -1,16 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // File Storage API // -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateMountTargetDetails Details for creating the mount target. @@ -91,3 +94,18 @@ type CreateMountTargetDetails struct { func (m CreateMountTargetDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateMountTargetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingMountTargetIdmapTypeEnum(string(m.IdmapType)); !ok && m.IdmapType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IdmapType: %s. Supported values are: %s.", m.IdmapType, strings.Join(GetMountTargetIdmapTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_mount_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go index 2c2626743c..18e45bafef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_mount_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateMountTargetRequest wrapper for the CreateMountTarget operation @@ -38,6 +40,10 @@ func (request CreateMountTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateMountTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateMountTargetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateMountTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateMountTargetResponse wrapper for the CreateMountTarget operation type CreateMountTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_outbound_connector_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go index f2f6ea9576..81fcd9410f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_outbound_connector_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_details.go @@ -1,17 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // File Storage API // -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateOutboundConnectorDetails Details for creating the outbound connector. @@ -87,6 +90,7 @@ func (m *createoutboundconnectordetails) UnmarshalPolymorphicJSON(data []byte) ( err = json.Unmarshal(data, &mm) return mm, err default: + common.Logf("Recieved unsupported enum value for CreateOutboundConnectorDetails: %s.", m.ConnectorType) return *m, nil } } @@ -119,3 +123,15 @@ func (m createoutboundconnectordetails) GetDefinedTags() map[string]map[string]i func (m createoutboundconnectordetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m createoutboundconnectordetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_outbound_connector_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go index 72582791c8..0eea4d1698 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_outbound_connector_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateOutboundConnectorRequest wrapper for the CreateOutboundConnector operation @@ -38,6 +40,10 @@ func (request CreateOutboundConnectorRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateOutboundConnectorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateOutboundConnectorRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateOutboundConnectorResponse wrapper for the CreateOutboundConnector operation type CreateOutboundConnectorResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go new file mode 100644 index 0000000000..d3f45e6252 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_details.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateReplicationDetails Details for creating the replication and replication target. +type CreateReplicationDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source file system. + SourceId *string `mandatory:"true" json:"sourceId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the target file system. + TargetId *string `mandatory:"true" json:"targetId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // An associated replication target will also created with the same `displayName`. + // Example: `My replication` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Duration in minutes between replication snapshots. + ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateReplicationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateReplicationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go index 67c59343d2..2b5151e5ec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateReplicationRequest wrapper for the CreateReplication operation @@ -38,6 +40,10 @@ func (request CreateReplicationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateReplicationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateReplicationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateReplicationResponse wrapper for the CreateReplication operation type CreateReplicationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_details.go new file mode 100644 index 0000000000..32eb08a2f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateReplicationTargetDetails Details for creating the replication target. To be used internally only. +type CreateReplicationTargetDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of source filesystem. + SourceId *string `mandatory:"true" json:"sourceId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of target filesystem. + TargetId *string `mandatory:"true" json:"targetId"` + + // A user-friendly name. + // Example: `My replication` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of corresponding replication resource. Note, may be in another region. + ReplicationId *string `mandatory:"true" json:"replicationId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replicationtarget. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateReplicationTargetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateReplicationTargetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_request_response.go index 71276284b2..437cfa1717 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_replication_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateReplicationTargetRequest wrapper for the CreateReplicationTarget operation @@ -38,6 +40,10 @@ func (request CreateReplicationTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateReplicationTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateReplicationTargetRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateReplicationTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateReplicationTargetResponse wrapper for the CreateReplicationTarget operation type CreateReplicationTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_details.go new file mode 100644 index 0000000000..b485b157ef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_details.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateShareDetails Details for creating the share. +type CreateShareDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set of this share is in. + ShareSetId *string `mandatory:"true" json:"shareSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this share's file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // Share name used to access the associated file system. + // Avoid entering confidential information. + // Example: `mediafiles` + ShareName *string `mandatory:"true" json:"shareName"` + + // Share options for the new share. If left unspecified, + // defaults to: + // [ + // { + // "source" : "0.0.0.0/0", + // "access" : "READ_WRITE", + // } + // ] + // **Note:** Mount targets do not have Internet-routable IP + // addresses. Therefore they will not be reachable from the + // Internet, even if an associated `ClientShareOptions` item has + // a source of `0.0.0.0/0`. + // **If set to the empty array then the share will not be + // visible to any clients.** + // The share's `shareOptions` can be changed after creation + // using the `UpdateShare` operation. + ShareOptions []ClientShareOptions `mandatory:"false" json:"shareOptions"` + + // A short comment description of the Share. + // Avoid entering confidential information. + // Example: `accounting` + Comment *string `mandatory:"false" json:"comment"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateShareDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateShareDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_request_response.go new file mode 100644 index 0000000000..e51fc59621 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateShareRequest wrapper for the CreateShare operation +type CreateShareRequest struct { + + // Details for creating a new share. + CreateShareDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateShareRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateShareRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateShareRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateShareRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateShareRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateShareResponse wrapper for the CreateShare operation +type CreateShareResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Share instance + Share `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateShareResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateShareResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_details.go new file mode 100644 index 0000000000..60ffdfd418 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_details.go @@ -0,0 +1,83 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateShareSetDetails Details for creating the share set. +type CreateShareSetDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target the share set bind to. + MountTargetId *string `mandatory:"true" json:"mountTargetId"` + + // A customer-provided DNS name. This name plays a critical role in + // establishing the server's place in the customer SMB security hierarchy. + // For example, if an SMB server has a DNS name of + // register5.store34.california.usa.marks-hats.com, then this particular + // server is part of the store34.california.usa.marks-hats.com security + // domain which in turn is part of the california.usa.marks-hats.com which + // in turn is part of the usa.marks-hats.com + // which in turn is part of the marks-hats.com security domain. + // Must be unique across all FQDNs in the subnet and comply + // with RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). + CustomFqdn *string `mandatory:"true" json:"customFqdn"` + + // A comment of the share set. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My share set` + Comment *string `mandatory:"false" json:"comment"` + + // Every SMB server (i.e. each mount target) needs a Netbios name in + // addition to its fqdn (fully qualified domain name). Normally, + // the Netbios name is simply the hostname portion of the fqdn. + // This doesn't work when multiple computers have the same hostname. + // For example, a computer called orange.colors.com and a computer + // called orange.fruit.org can interfere with each other if they both + // use orange as their Netbios name. To avoid problems, at least one + // computer can be configured to have a Netbios name that is + // not its hostname. + NetBiosName *string `mandatory:"false" json:"netBiosName"` + + // Turn on this flag to allow unsigned SMB traffic. + AllowUnsignedTraffic *string `mandatory:"false" json:"allowUnsignedTraffic"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateShareSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateShareSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_request_response.go new file mode 100644 index 0000000000..3c097c5637 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_share_set_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateShareSetRequest wrapper for the CreateShareSet operation +type CreateShareSetRequest struct { + + // Details for creating a new share set. + CreateShareSetDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateShareSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateShareSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateShareSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateShareSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateShareSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateShareSetResponse wrapper for the CreateShareSet operation +type CreateShareSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ShareSet instance + ShareSet `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateShareSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateShareSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go new file mode 100644 index 0000000000..91506e1911 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSnapshotDetails Details for creating the snapshot. +type CreateSnapshotDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system to take a snapshot of. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // Name of the snapshot. This value is immutable. It must also be unique with respect + // to all other non-DELETED snapshots on the associated file + // system. + // Avoid entering confidential information. + // Example: `Sunday` + Name *string `mandatory:"true" json:"name"` + + // The time when this snapshot will be deleted. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateSnapshotDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSnapshotDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go index f546d4cca7..02f1bbddaa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/create_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/create_snapshot_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateSnapshotRequest wrapper for the CreateSnapshot operation @@ -38,6 +40,10 @@ func (request CreateSnapshotRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateSnapshotRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateSnapshotRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateSnapshotRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateSnapshotResponse wrapper for the CreateSnapshot operation type CreateSnapshotResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_export_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go index f37694bae6..dc3070b4a8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_export_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteExportRequest wrapper for the DeleteExport operation @@ -38,6 +40,10 @@ func (request DeleteExportRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteExportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteExportRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteExportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteExportResponse wrapper for the DeleteExport operation type DeleteExportResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_file_system_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go index 1b616a1a33..d047a2f437 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_file_system_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteFileSystemRequest wrapper for the DeleteFileSystem operation @@ -38,6 +40,10 @@ func (request DeleteFileSystemRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteFileSystemRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteFileSystemResponse wrapper for the DeleteFileSystem operation type DeleteFileSystemResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go new file mode 100644 index 0000000000..44711bff71 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_filesystem_snapshot_policy_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteFilesystemSnapshotPolicyRequest wrapper for the DeleteFilesystemSnapshotPolicy operation +type DeleteFilesystemSnapshotPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteFilesystemSnapshotPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteFilesystemSnapshotPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteFilesystemSnapshotPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteFilesystemSnapshotPolicyResponse wrapper for the DeleteFilesystemSnapshotPolicy operation +type DeleteFilesystemSnapshotPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteFilesystemSnapshotPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteFilesystemSnapshotPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_mount_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go index 34a180eb50..a7b3c6685c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_mount_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteMountTargetRequest wrapper for the DeleteMountTarget operation @@ -38,6 +40,10 @@ func (request DeleteMountTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteMountTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteMountTargetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteMountTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteMountTargetResponse wrapper for the DeleteMountTarget operation type DeleteMountTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_outbound_connector_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go index dece129bad..49bcc67701 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_outbound_connector_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteOutboundConnectorRequest wrapper for the DeleteOutboundConnector operation @@ -38,6 +40,10 @@ func (request DeleteOutboundConnectorRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteOutboundConnectorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteOutboundConnectorRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteOutboundConnectorResponse wrapper for the DeleteOutboundConnector operation type DeleteOutboundConnectorResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go new file mode 100644 index 0000000000..18bde77d15 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_request_response.go @@ -0,0 +1,147 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteReplicationRequest wrapper for the DeleteReplication operation +type DeleteReplicationRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // You can choose a mode for deleting the replication resource. + // - `FINISH_CYCLE_IF_CAPTURING_OR_APPLYING` Before deleting, complete the current delta cycle. If cycle is idle, delete immediately. Safest option. + // - `ONE_MORE_CYCLE` Before deleting, complete the current delta cycle, and initiate one more cycle. If cycle is idle, initiate one more cycle. Use for lossless failover. + // - `FINISH_CYCLE_IF_APPLYING` Before deleting, finish applying. If cycle is idle or capturing, delete immediately. Fastest option. + DeleteMode DeleteReplicationDeleteModeEnum `mandatory:"false" contributesTo:"query" name:"deleteMode" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteReplicationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteReplicationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteReplicationRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteReplicationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDeleteReplicationDeleteModeEnum(string(request.DeleteMode)); !ok && request.DeleteMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeleteMode: %s. Supported values are: %s.", request.DeleteMode, strings.Join(GetDeleteReplicationDeleteModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteReplicationResponse wrapper for the DeleteReplication operation +type DeleteReplicationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteReplicationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteReplicationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// DeleteReplicationDeleteModeEnum Enum with underlying type: string +type DeleteReplicationDeleteModeEnum string + +// Set of constants representing the allowable values for DeleteReplicationDeleteModeEnum +const ( + DeleteReplicationDeleteModeFinishCycleIfCapturingOrApplying DeleteReplicationDeleteModeEnum = "FINISH_CYCLE_IF_CAPTURING_OR_APPLYING" + DeleteReplicationDeleteModeOneMoreCycle DeleteReplicationDeleteModeEnum = "ONE_MORE_CYCLE" + DeleteReplicationDeleteModeFinishCycleIfApplying DeleteReplicationDeleteModeEnum = "FINISH_CYCLE_IF_APPLYING" +) + +var mappingDeleteReplicationDeleteModeEnum = map[string]DeleteReplicationDeleteModeEnum{ + "FINISH_CYCLE_IF_CAPTURING_OR_APPLYING": DeleteReplicationDeleteModeFinishCycleIfCapturingOrApplying, + "ONE_MORE_CYCLE": DeleteReplicationDeleteModeOneMoreCycle, + "FINISH_CYCLE_IF_APPLYING": DeleteReplicationDeleteModeFinishCycleIfApplying, +} + +var mappingDeleteReplicationDeleteModeEnumLowerCase = map[string]DeleteReplicationDeleteModeEnum{ + "finish_cycle_if_capturing_or_applying": DeleteReplicationDeleteModeFinishCycleIfCapturingOrApplying, + "one_more_cycle": DeleteReplicationDeleteModeOneMoreCycle, + "finish_cycle_if_applying": DeleteReplicationDeleteModeFinishCycleIfApplying, +} + +// GetDeleteReplicationDeleteModeEnumValues Enumerates the set of values for DeleteReplicationDeleteModeEnum +func GetDeleteReplicationDeleteModeEnumValues() []DeleteReplicationDeleteModeEnum { + values := make([]DeleteReplicationDeleteModeEnum, 0) + for _, v := range mappingDeleteReplicationDeleteModeEnum { + values = append(values, v) + } + return values +} + +// GetDeleteReplicationDeleteModeEnumStringValues Enumerates the set of values in String for DeleteReplicationDeleteModeEnum +func GetDeleteReplicationDeleteModeEnumStringValues() []string { + return []string{ + "FINISH_CYCLE_IF_CAPTURING_OR_APPLYING", + "ONE_MORE_CYCLE", + "FINISH_CYCLE_IF_APPLYING", + } +} + +// GetMappingDeleteReplicationDeleteModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDeleteReplicationDeleteModeEnum(val string) (DeleteReplicationDeleteModeEnum, bool) { + enum, ok := mappingDeleteReplicationDeleteModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go index 4265bab4d2..f534bd0f86 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_replication_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteReplicationTargetRequest wrapper for the DeleteReplicationTarget operation @@ -38,6 +40,10 @@ func (request DeleteReplicationTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteReplicationTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteReplicationTargetRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteReplicationTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteReplicationTargetResponse wrapper for the DeleteReplicationTarget operation type DeleteReplicationTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_request_response.go new file mode 100644 index 0000000000..a8f0044d5f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteShareRequest wrapper for the DeleteShare operation +type DeleteShareRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share. + ShareId *string `mandatory:"true" contributesTo:"path" name:"shareId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteShareRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteShareRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteShareRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteShareRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteShareRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteShareResponse wrapper for the DeleteShare operation +type DeleteShareResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteShareResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteShareResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_set_request_response.go new file mode 100644 index 0000000000..725a998fec --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_share_set_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteShareSetRequest wrapper for the DeleteShareSet operation +type DeleteShareSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + ShareSetId *string `mandatory:"true" contributesTo:"path" name:"shareSetId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteShareSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteShareSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteShareSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteShareSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteShareSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteShareSetResponse wrapper for the DeleteShareSet operation +type DeleteShareSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteShareSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteShareSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_snapshot_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go index 13786d0ff4..d7559c9eae 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/delete_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/delete_snapshot_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteSnapshotRequest wrapper for the DeleteSnapshot operation @@ -38,6 +40,10 @@ func (request DeleteSnapshotRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteSnapshotRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteSnapshotRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteSnapshotRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteSnapshotResponse wrapper for the DeleteSnapshot operation type DeleteSnapshotResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/discard_kerberos_keytab_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/discard_kerberos_keytab_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/discard_kerberos_keytab_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/discard_kerberos_keytab_request_response.go index a6ed5d6285..1654f7160c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/discard_kerberos_keytab_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/discard_kerberos_keytab_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DiscardKerberosKeytabRequest wrapper for the DiscardKerberosKeytab operation @@ -38,6 +40,10 @@ func (request DiscardKerberosKeytabRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DiscardKerberosKeytabRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DiscardKerberosKeytabRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DiscardKerberosKeytabRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DiscardKerberosKeytabResponse wrapper for the DiscardKerberosKeytab operation type DiscardKerberosKeytabResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/endpoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/endpoint.go new file mode 100644 index 0000000000..6faa81aa37 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/endpoint.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Endpoint Combination of server dns and port +type Endpoint struct { + + // String consisting of domain name server for endpoint + Hostname *string `mandatory:"true" json:"hostname"` + + // integer value of server endpoint + Port *int64 `mandatory:"true" json:"port"` +} + +func (m Endpoint) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Endpoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/estimate_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/estimate_replication_request_response.go new file mode 100644 index 0000000000..d97606619a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/estimate_replication_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// EstimateReplicationRequest wrapper for the EstimateReplication operation +type EstimateReplicationRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"true" contributesTo:"path" name:"fileSystemId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The rate of change of data on source file system in MegaBytes per second. + ChangeRateInMBps *int `mandatory:"false" contributesTo:"query" name:"changeRateInMBps"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request EstimateReplicationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request EstimateReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request EstimateReplicationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request EstimateReplicationRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request EstimateReplicationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// EstimateReplicationResponse wrapper for the EstimateReplication operation +type EstimateReplicationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ReplicationEstimate instance + ReplicationEstimate `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response EstimateReplicationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response EstimateReplicationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go new file mode 100644 index 0000000000..2f9c9bd9f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export.go @@ -0,0 +1,162 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Export A file system and the path that you can use to mount it. Each export +// resource belongs to exactly one export set. +// The export's path attribute is not a path in the +// referenced file system, but the value used by clients for the path +// component of the remotetarget argument when mounting the file +// system. +// The path must start with a slash (/) followed by a sequence of zero or more +// slash-separated path elements. For any two export resources associated with +// the same export set, except those in a 'DELETED' state, the path element +// sequence for the first export resource can't contain the +// complete path element sequence of the second export resource. +// +// For example, the following are acceptable: +// * /example and /path +// * /example1 and /example2 +// * /example and /example1 +// The following examples are not acceptable: +// * /example and /example/path +// * / and /example +// Paths may not end in a slash (/). No path element can be a period (.) +// or two periods in sequence (..). All path elements must be 255 bytes or less. +// No two non-'DELETED' export resources in the same export set can +// reference the same file system. +// Use `exportOptions` to control access to an export. For more information, see +// Export Options (https://docs.cloud.oracle.com/Content/File/Tasks/exportoptions.htm). +type Export struct { + + // Policies that apply to NFS requests made through this + // export. `exportOptions` contains a sequential list of + // `ClientOptions`. Each `ClientOptions` item defines the + // export options that are applied to a specified + // set of clients. + // For each NFS request, the first `ClientOptions` option + // in the list whose `source` attribute matches the source + // IP address of the request is applied. + // If a client source IP address does not match the `source` + // property of any `ClientOptions` in the list, then the + // export will be invisible to that client. This export will + // not be returned by `MOUNTPROC_EXPORT` calls made by the client + // and any attempt to mount or access the file system through + // this export will result in an error. + // **Exports without defined `ClientOptions` are invisible to all clients.** + // If one export is invisible to a particular client, associated file + // systems may still be accessible through other exports on the same + // or different mount targets. + // To completely deny client access to a file system, be sure that the client + // source IP address is not included in any export for any mount target + // associated with the file system. + ExportOptions []ClientOptions `mandatory:"true" json:"exportOptions"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's export set. + ExportSetId *string `mandatory:"true" json:"exportSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export. + Id *string `mandatory:"true" json:"id"` + + // The current state of this export. + LifecycleState ExportLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Path used to access the associated file system. + // Avoid entering confidential information. + // Example: `/accounting` + Path *string `mandatory:"true" json:"path"` + + // The date and time the export was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. + IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` +} + +func (m Export) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Export) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExportLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExportLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExportLifecycleStateEnum Enum with underlying type: string +type ExportLifecycleStateEnum string + +// Set of constants representing the allowable values for ExportLifecycleStateEnum +const ( + ExportLifecycleStateCreating ExportLifecycleStateEnum = "CREATING" + ExportLifecycleStateActive ExportLifecycleStateEnum = "ACTIVE" + ExportLifecycleStateDeleting ExportLifecycleStateEnum = "DELETING" + ExportLifecycleStateDeleted ExportLifecycleStateEnum = "DELETED" +) + +var mappingExportLifecycleStateEnum = map[string]ExportLifecycleStateEnum{ + "CREATING": ExportLifecycleStateCreating, + "ACTIVE": ExportLifecycleStateActive, + "DELETING": ExportLifecycleStateDeleting, + "DELETED": ExportLifecycleStateDeleted, +} + +var mappingExportLifecycleStateEnumLowerCase = map[string]ExportLifecycleStateEnum{ + "creating": ExportLifecycleStateCreating, + "active": ExportLifecycleStateActive, + "deleting": ExportLifecycleStateDeleting, + "deleted": ExportLifecycleStateDeleted, +} + +// GetExportLifecycleStateEnumValues Enumerates the set of values for ExportLifecycleStateEnum +func GetExportLifecycleStateEnumValues() []ExportLifecycleStateEnum { + values := make([]ExportLifecycleStateEnum, 0) + for _, v := range mappingExportLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExportLifecycleStateEnumStringValues Enumerates the set of values in String for ExportLifecycleStateEnum +func GetExportLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingExportLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExportLifecycleStateEnum(val string) (ExportLifecycleStateEnum, bool) { + enum, ok := mappingExportLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set.go new file mode 100644 index 0000000000..be9f0f1d76 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExportSet A set of file systems to export through one or more mount +// targets. Composed of zero or more export resources. +type ExportSet struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the export set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My export set` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. + Id *string `mandatory:"true" json:"id"` + + // The current state of the export set. + LifecycleState ExportSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the export set was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual cloud network (VCN) the export set is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The availability domain the export set is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Controls the maximum `tbytes`, `fbytes`, and `abytes`, + // values reported by `NFS FSSTAT` calls through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tbytes` value reported by `FSSTAT` will be + // `maxFsStatBytes`. The value of `fbytes` and `abytes` will be + // `maxFsStatBytes` minus the metered size of the file + // system. If the metered size is larger than `maxFsStatBytes`, + // then `fbytes` and `abytes` will both be '0'. + MaxFsStatBytes *int64 `mandatory:"false" json:"maxFsStatBytes"` + + // Controls the maximum `tfiles`, `ffiles`, and `afiles` + // values reported by `NFS FSSTAT` calls through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tfiles` value reported by `FSSTAT` will be + // `maxFsStatFiles`. The value of `ffiles` and `afiles` will be + // `maxFsStatFiles` minus the metered size of the file + // system. If the metered size is larger than `maxFsStatFiles`, + // then `ffiles` and `afiles` will both be '0'. + MaxFsStatFiles *int64 `mandatory:"false" json:"maxFsStatFiles"` +} + +func (m ExportSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExportSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExportSetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExportSetLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExportSetLifecycleStateEnum Enum with underlying type: string +type ExportSetLifecycleStateEnum string + +// Set of constants representing the allowable values for ExportSetLifecycleStateEnum +const ( + ExportSetLifecycleStateCreating ExportSetLifecycleStateEnum = "CREATING" + ExportSetLifecycleStateActive ExportSetLifecycleStateEnum = "ACTIVE" + ExportSetLifecycleStateDeleting ExportSetLifecycleStateEnum = "DELETING" + ExportSetLifecycleStateDeleted ExportSetLifecycleStateEnum = "DELETED" +) + +var mappingExportSetLifecycleStateEnum = map[string]ExportSetLifecycleStateEnum{ + "CREATING": ExportSetLifecycleStateCreating, + "ACTIVE": ExportSetLifecycleStateActive, + "DELETING": ExportSetLifecycleStateDeleting, + "DELETED": ExportSetLifecycleStateDeleted, +} + +var mappingExportSetLifecycleStateEnumLowerCase = map[string]ExportSetLifecycleStateEnum{ + "creating": ExportSetLifecycleStateCreating, + "active": ExportSetLifecycleStateActive, + "deleting": ExportSetLifecycleStateDeleting, + "deleted": ExportSetLifecycleStateDeleted, +} + +// GetExportSetLifecycleStateEnumValues Enumerates the set of values for ExportSetLifecycleStateEnum +func GetExportSetLifecycleStateEnumValues() []ExportSetLifecycleStateEnum { + values := make([]ExportSetLifecycleStateEnum, 0) + for _, v := range mappingExportSetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExportSetLifecycleStateEnumStringValues Enumerates the set of values in String for ExportSetLifecycleStateEnum +func GetExportSetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingExportSetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExportSetLifecycleStateEnum(val string) (ExportSetLifecycleStateEnum, bool) { + enum, ok := mappingExportSetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set_summary.go new file mode 100644 index 0000000000..9ed30af196 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_set_summary.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExportSetSummary Summary information for an export set. +type ExportSetSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the export set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My export set` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. + Id *string `mandatory:"true" json:"id"` + + // The current state of the export set. + LifecycleState ExportSetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the export set was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual cloud network (VCN) the export set is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The availability domain the export set is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} + +func (m ExportSetSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExportSetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExportSetSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExportSetSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExportSetSummaryLifecycleStateEnum Enum with underlying type: string +type ExportSetSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ExportSetSummaryLifecycleStateEnum +const ( + ExportSetSummaryLifecycleStateCreating ExportSetSummaryLifecycleStateEnum = "CREATING" + ExportSetSummaryLifecycleStateActive ExportSetSummaryLifecycleStateEnum = "ACTIVE" + ExportSetSummaryLifecycleStateDeleting ExportSetSummaryLifecycleStateEnum = "DELETING" + ExportSetSummaryLifecycleStateDeleted ExportSetSummaryLifecycleStateEnum = "DELETED" +) + +var mappingExportSetSummaryLifecycleStateEnum = map[string]ExportSetSummaryLifecycleStateEnum{ + "CREATING": ExportSetSummaryLifecycleStateCreating, + "ACTIVE": ExportSetSummaryLifecycleStateActive, + "DELETING": ExportSetSummaryLifecycleStateDeleting, + "DELETED": ExportSetSummaryLifecycleStateDeleted, +} + +var mappingExportSetSummaryLifecycleStateEnumLowerCase = map[string]ExportSetSummaryLifecycleStateEnum{ + "creating": ExportSetSummaryLifecycleStateCreating, + "active": ExportSetSummaryLifecycleStateActive, + "deleting": ExportSetSummaryLifecycleStateDeleting, + "deleted": ExportSetSummaryLifecycleStateDeleted, +} + +// GetExportSetSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSetSummaryLifecycleStateEnum +func GetExportSetSummaryLifecycleStateEnumValues() []ExportSetSummaryLifecycleStateEnum { + values := make([]ExportSetSummaryLifecycleStateEnum, 0) + for _, v := range mappingExportSetSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExportSetSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ExportSetSummaryLifecycleStateEnum +func GetExportSetSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingExportSetSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExportSetSummaryLifecycleStateEnum(val string) (ExportSetSummaryLifecycleStateEnum, bool) { + enum, ok := mappingExportSetSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go new file mode 100644 index 0000000000..4365f80549 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/export_summary.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ExportSummary Summary information for an export. +type ExportSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's export set. + ExportSetId *string `mandatory:"true" json:"exportSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export's file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this export. + Id *string `mandatory:"true" json:"id"` + + // The current state of this export. + LifecycleState ExportSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Path used to access the associated file system. + // Avoid entering confidential information. + // Example: `/mediafiles` + Path *string `mandatory:"true" json:"path"` + + // The date and time the export was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. + IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` +} + +func (m ExportSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExportSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingExportSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetExportSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ExportSummaryLifecycleStateEnum Enum with underlying type: string +type ExportSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ExportSummaryLifecycleStateEnum +const ( + ExportSummaryLifecycleStateCreating ExportSummaryLifecycleStateEnum = "CREATING" + ExportSummaryLifecycleStateActive ExportSummaryLifecycleStateEnum = "ACTIVE" + ExportSummaryLifecycleStateDeleting ExportSummaryLifecycleStateEnum = "DELETING" + ExportSummaryLifecycleStateDeleted ExportSummaryLifecycleStateEnum = "DELETED" +) + +var mappingExportSummaryLifecycleStateEnum = map[string]ExportSummaryLifecycleStateEnum{ + "CREATING": ExportSummaryLifecycleStateCreating, + "ACTIVE": ExportSummaryLifecycleStateActive, + "DELETING": ExportSummaryLifecycleStateDeleting, + "DELETED": ExportSummaryLifecycleStateDeleted, +} + +var mappingExportSummaryLifecycleStateEnumLowerCase = map[string]ExportSummaryLifecycleStateEnum{ + "creating": ExportSummaryLifecycleStateCreating, + "active": ExportSummaryLifecycleStateActive, + "deleting": ExportSummaryLifecycleStateDeleting, + "deleted": ExportSummaryLifecycleStateDeleted, +} + +// GetExportSummaryLifecycleStateEnumValues Enumerates the set of values for ExportSummaryLifecycleStateEnum +func GetExportSummaryLifecycleStateEnumValues() []ExportSummaryLifecycleStateEnum { + values := make([]ExportSummaryLifecycleStateEnum, 0) + for _, v := range mappingExportSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetExportSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ExportSummaryLifecycleStateEnum +func GetExportSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingExportSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingExportSummaryLifecycleStateEnum(val string) (ExportSummaryLifecycleStateEnum, bool) { + enum, ok := mappingExportSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/failover_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/failover_mount_target_request_response.go new file mode 100644 index 0000000000..787a0bd998 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/failover_mount_target_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// FailoverMountTargetRequest wrapper for the FailoverMountTarget operation +type FailoverMountTargetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + MountTargetId *string `mandatory:"true" contributesTo:"path" name:"mountTargetId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request FailoverMountTargetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request FailoverMountTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request FailoverMountTargetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request FailoverMountTargetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request FailoverMountTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FailoverMountTargetResponse wrapper for the FailoverMountTarget operation +type FailoverMountTargetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response FailoverMountTargetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response FailoverMountTargetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go new file mode 100644 index 0000000000..ece243618c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system.go @@ -0,0 +1,174 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FileSystem An NFS file system. To allow access to a file system, add it +// to an export set and associate the export set with a mount +// target. The same file system can be in multiple export sets and +// associated with multiple mount targets. +// To use any of the API operations, you must be authorized in an +// IAM policy. If you're not authorized, talk to an +// administrator. If you're an administrator who needs to write +// policies to give users access, see Getting Started with +// Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +type FileSystem struct { + + // The number of bytes consumed by the file system, including + // any snapshots. This number reflects the metered size of the file + // system and is updated asynchronously with respect to + // updates to the file system. + // For more information, see File System Usage and Metering (https://docs.cloud.oracle.com/Content/File/Concepts/FSutilization.htm). + MeteredBytes *int64 `mandatory:"true" json:"meteredBytes"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My file system` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + Id *string `mandatory:"true" json:"id"` + + // The current state of the file system. + LifecycleState FileSystemLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the file system was created, expressed in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the file system is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key which is the master encryption key for the file system. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + SourceDetails *SourceDetails `mandatory:"false" json:"sourceDetails"` + + // Specifies whether the file system has been cloned. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + IsCloneParent *bool `mandatory:"false" json:"isCloneParent"` + + // Specifies whether the data has finished copying from the source to the clone. + // Hydration can take up to several hours to complete depending on the size of the source. + // The source and clone remain available during hydration, but there may be some performance impact. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). + IsHydrated *bool `mandatory:"false" json:"isHydrated"` + + // Additional information about the current 'lifecycleState'. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Specifies whether the file system can be used as a target file system for replication. + // For more information, see Using Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/using-replication.htm). + IsTargetable *bool `mandatory:"false" json:"isTargetable"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target associated with the file system. + // Empty if the file system is not being used as target in a replication. + ReplicationTargetId *string `mandatory:"false" json:"replicationTargetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated Filesystem Snapshot Policy, which + // controls the frequency of snapshot creation and retention period of the taken snapshots. + FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` +} + +func (m FileSystem) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FileSystem) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFileSystemLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFileSystemLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FileSystemLifecycleStateEnum Enum with underlying type: string +type FileSystemLifecycleStateEnum string + +// Set of constants representing the allowable values for FileSystemLifecycleStateEnum +const ( + FileSystemLifecycleStateCreating FileSystemLifecycleStateEnum = "CREATING" + FileSystemLifecycleStateActive FileSystemLifecycleStateEnum = "ACTIVE" + FileSystemLifecycleStateDeleting FileSystemLifecycleStateEnum = "DELETING" + FileSystemLifecycleStateDeleted FileSystemLifecycleStateEnum = "DELETED" + FileSystemLifecycleStateFailed FileSystemLifecycleStateEnum = "FAILED" +) + +var mappingFileSystemLifecycleStateEnum = map[string]FileSystemLifecycleStateEnum{ + "CREATING": FileSystemLifecycleStateCreating, + "ACTIVE": FileSystemLifecycleStateActive, + "DELETING": FileSystemLifecycleStateDeleting, + "DELETED": FileSystemLifecycleStateDeleted, + "FAILED": FileSystemLifecycleStateFailed, +} + +var mappingFileSystemLifecycleStateEnumLowerCase = map[string]FileSystemLifecycleStateEnum{ + "creating": FileSystemLifecycleStateCreating, + "active": FileSystemLifecycleStateActive, + "deleting": FileSystemLifecycleStateDeleting, + "deleted": FileSystemLifecycleStateDeleted, + "failed": FileSystemLifecycleStateFailed, +} + +// GetFileSystemLifecycleStateEnumValues Enumerates the set of values for FileSystemLifecycleStateEnum +func GetFileSystemLifecycleStateEnumValues() []FileSystemLifecycleStateEnum { + values := make([]FileSystemLifecycleStateEnum, 0) + for _, v := range mappingFileSystemLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetFileSystemLifecycleStateEnumStringValues Enumerates the set of values in String for FileSystemLifecycleStateEnum +func GetFileSystemLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingFileSystemLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFileSystemLifecycleStateEnum(val string) (FileSystemLifecycleStateEnum, bool) { + enum, ok := mappingFileSystemLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go new file mode 100644 index 0000000000..85c72dce12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/file_system_summary.go @@ -0,0 +1,153 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FileSystemSummary Summary information for a file system. +type FileSystemSummary struct { + + // The number of bytes consumed by the file system, including + // any snapshots. This number reflects the metered size of the file + // system and is updated asynchronously with respect to + // updates to the file system. + MeteredBytes *int64 `mandatory:"true" json:"meteredBytes"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the file system. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My file system` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + Id *string `mandatory:"true" json:"id"` + + // The current state of the file system. + LifecycleState FileSystemSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the file system was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the file system is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KMS key used to encrypt the encryption keys associated with this file system. + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + SourceDetails *SourceDetails `mandatory:"false" json:"sourceDetails"` + + // Specifies whether the file system has been cloned. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + IsCloneParent *bool `mandatory:"false" json:"isCloneParent"` + + // Specifies whether the data has finished copying from the source to the clone. + // Hydration can take up to several hours to complete depending on the size of the source. + // The source and clone remain available during hydration, but there may be some performance impact. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm#hydration). + IsHydrated *bool `mandatory:"false" json:"isHydrated"` + + // Additional information about the current 'lifecycleState'. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` +} + +func (m FileSystemSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FileSystemSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFileSystemSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFileSystemSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FileSystemSummaryLifecycleStateEnum Enum with underlying type: string +type FileSystemSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for FileSystemSummaryLifecycleStateEnum +const ( + FileSystemSummaryLifecycleStateCreating FileSystemSummaryLifecycleStateEnum = "CREATING" + FileSystemSummaryLifecycleStateActive FileSystemSummaryLifecycleStateEnum = "ACTIVE" + FileSystemSummaryLifecycleStateDeleting FileSystemSummaryLifecycleStateEnum = "DELETING" + FileSystemSummaryLifecycleStateDeleted FileSystemSummaryLifecycleStateEnum = "DELETED" + FileSystemSummaryLifecycleStateFailed FileSystemSummaryLifecycleStateEnum = "FAILED" +) + +var mappingFileSystemSummaryLifecycleStateEnum = map[string]FileSystemSummaryLifecycleStateEnum{ + "CREATING": FileSystemSummaryLifecycleStateCreating, + "ACTIVE": FileSystemSummaryLifecycleStateActive, + "DELETING": FileSystemSummaryLifecycleStateDeleting, + "DELETED": FileSystemSummaryLifecycleStateDeleted, + "FAILED": FileSystemSummaryLifecycleStateFailed, +} + +var mappingFileSystemSummaryLifecycleStateEnumLowerCase = map[string]FileSystemSummaryLifecycleStateEnum{ + "creating": FileSystemSummaryLifecycleStateCreating, + "active": FileSystemSummaryLifecycleStateActive, + "deleting": FileSystemSummaryLifecycleStateDeleting, + "deleted": FileSystemSummaryLifecycleStateDeleted, + "failed": FileSystemSummaryLifecycleStateFailed, +} + +// GetFileSystemSummaryLifecycleStateEnumValues Enumerates the set of values for FileSystemSummaryLifecycleStateEnum +func GetFileSystemSummaryLifecycleStateEnumValues() []FileSystemSummaryLifecycleStateEnum { + values := make([]FileSystemSummaryLifecycleStateEnum, 0) + for _, v := range mappingFileSystemSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetFileSystemSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for FileSystemSummaryLifecycleStateEnum +func GetFileSystemSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingFileSystemSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFileSystemSummaryLifecycleStateEnum(val string) (FileSystemSummaryLifecycleStateEnum, bool) { + enum, ok := mappingFileSystemSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go new file mode 100644 index 0000000000..1a19ff63d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filestorage_client.go @@ -0,0 +1,4911 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +//FileStorageClient a client for FileStorage +type FileStorageClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewFileStorageClientWithConfigurationProvider Creates a new default FileStorage client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewFileStorageClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client FileStorageClient, err error) { + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newFileStorageClientFromBaseClient(baseClient, provider) +} + +// NewFileStorageClientWithOboToken Creates a new default FileStorage client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// as well as reading the region +func NewFileStorageClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client FileStorageClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newFileStorageClientFromBaseClient(baseClient, configProvider) +} + +func newFileStorageClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client FileStorageClient, err error) { + // FileStorage service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("FileStorage")) + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = FileStorageClient{BaseClient: baseClient} + client.BasePath = "20171215" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *FileStorageClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("filestorage", "https://filestorage.{region}.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *FileStorageClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *FileStorageClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// ChangeFileSystemCompartment Moves a file system and its associated snapshots into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) +func (client FileStorageClient) ChangeFileSystemCompartment(ctx context.Context, request ChangeFileSystemCompartmentRequest) (response ChangeFileSystemCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.changeFileSystemCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeFileSystemCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeFileSystemCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeFileSystemCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeFileSystemCompartmentResponse") + } + return +} + +// changeFileSystemCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeFileSystemCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeFileSystemCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ChangeFileSystemCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeFileSystemCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeFilesystemSnapshotPolicyCompartment Moves a Filesystem Snapshot Policy into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) +func (client FileStorageClient) ChangeFilesystemSnapshotPolicyCompartment(ctx context.Context, request ChangeFilesystemSnapshotPolicyCompartmentRequest) (response ChangeFilesystemSnapshotPolicyCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.changeFilesystemSnapshotPolicyCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeFilesystemSnapshotPolicyCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeFilesystemSnapshotPolicyCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeFilesystemSnapshotPolicyCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeFilesystemSnapshotPolicyCompartmentResponse") + } + return +} + +// changeFilesystemSnapshotPolicyCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeFilesystemSnapshotPolicyCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeFilesystemSnapshotPolicyCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/ChangeFilesystemSnapshotPolicyCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeFilesystemSnapshotPolicyCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeMountTargetCompartment Moves a mount target and its associated export set into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) +func (client FileStorageClient) ChangeMountTargetCompartment(ctx context.Context, request ChangeMountTargetCompartmentRequest) (response ChangeMountTargetCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.changeMountTargetCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeMountTargetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeMountTargetCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeMountTargetCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeMountTargetCompartmentResponse") + } + return +} + +// changeMountTargetCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeMountTargetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeMountTargetCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ChangeMountTargetCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeMountTargetCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeOutboundConnectorCompartment Moves a outbound connector into a different compartment within the same tenancy. +// For information about moving resources between compartments, see +// Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes) +func (client FileStorageClient) ChangeOutboundConnectorCompartment(ctx context.Context, request ChangeOutboundConnectorCompartmentRequest) (response ChangeOutboundConnectorCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.changeOutboundConnectorCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeOutboundConnectorCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeOutboundConnectorCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeOutboundConnectorCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeOutboundConnectorCompartmentResponse") + } + return +} + +// changeOutboundConnectorCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeOutboundConnectorCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors/{outboundConnectorId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeOutboundConnectorCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/ChangeOutboundConnectorCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeOutboundConnectorCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeReplicationCompartment Moves a replication and its replication target into a different compartment within the same tenancy. +// For information about moving resources between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +func (client FileStorageClient) ChangeReplicationCompartment(ctx context.Context, request ChangeReplicationCompartmentRequest) (response ChangeReplicationCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.changeReplicationCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeReplicationCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeReplicationCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeReplicationCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeReplicationCompartmentResponse") + } + return +} + +// changeReplicationCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeReplicationCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeReplicationCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ChangeReplicationCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeReplicationCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeReplicationTargetCompartment Moves a replication target into a different compartment within the same tenancy. +// To be used internal only. +func (client FileStorageClient) ChangeReplicationTargetCompartment(ctx context.Context, request ChangeReplicationTargetCompartmentRequest) (response ChangeReplicationTargetCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.changeReplicationTargetCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeReplicationTargetCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeReplicationTargetCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeReplicationTargetCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeReplicationTargetCompartmentResponse") + } + return +} + +// changeReplicationTargetCompartment implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) changeReplicationTargetCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/{replicationTargetId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeReplicationTargetCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/ChangeReplicationTargetCompartment" + err = common.PostProcessServiceError(err, "FileStorage", "ChangeReplicationTargetCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CheckReconciliation Check if provided provenance id is present in source FS. +func (client FileStorageClient) CheckReconciliation(ctx context.Context, request CheckReconciliationRequest) (response CheckReconciliationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.checkReconciliation, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CheckReconciliationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CheckReconciliationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CheckReconciliationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CheckReconciliationResponse") + } + return +} + +// checkReconciliation implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) checkReconciliation(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/actions/checkReconciliation", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CheckReconciliationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CheckReconciliation" + err = common.PostProcessServiceError(err, "FileStorage", "CheckReconciliation", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateExport Creates a new export in the specified export set, path, and +// file system. +func (client FileStorageClient) CreateExport(ctx context.Context, request CreateExportRequest) (response CreateExportResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createExport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateExportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateExportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateExportResponse") + } + return +} + +// createExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/exports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateExportResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/CreateExport" + err = common.PostProcessServiceError(err, "FileStorage", "CreateExport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateFileSystem Creates a new file system in the specified compartment and +// availability domain. Instances can mount file systems in +// another availability domain, but doing so might increase +// latency when compared to mounting instances in the same +// availability domain. +// After you create a file system, you can associate it with a mount +// target. Instances can then mount the file system by connecting to the +// mount target's IP address. You can associate a file system with +// more than one mount target at a time. +// For information about access control and compartments, see +// Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about Network Security Groups access control, see +// Network Security Groups (https://docs.cloud.oracle.com/Content/Network/Concepts/networksecuritygroups.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure resources, including +// file systems, get an Oracle-assigned, unique ID called an Oracle +// Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type or by viewing the resource in the Console. +func (client FileStorageClient) CreateFileSystem(ctx context.Context, request CreateFileSystemRequest) (response CreateFileSystemResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateFileSystemResponse") + } + return +} + +// createFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateFileSystemResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "CreateFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateFilesystemSnapshotPolicy Creates a new Filesystem Snapshot Policy in the specified compartment and +// availability domain. +// After you create a Filesystem Snapshot Policy, you can associate it with +// filesystems. +func (client FileStorageClient) CreateFilesystemSnapshotPolicy(ctx context.Context, request CreateFilesystemSnapshotPolicyRequest) (response CreateFilesystemSnapshotPolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createFilesystemSnapshotPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateFilesystemSnapshotPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateFilesystemSnapshotPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateFilesystemSnapshotPolicyResponse") + } + return +} + +// createFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateFilesystemSnapshotPolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/CreateFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "CreateFilesystemSnapshotPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateMountTarget Creates a new mount target in the specified compartment and +// subnet. You can associate a file system with a mount +// target only when they exist in the same availability domain. Instances +// can connect to mount targets in another availablity domain, but +// you might see higher latency than with instances in the same +// availability domain as the mount target. +// Mount targets have one or more private IP addresses that you can +// provide as the host portion of remote target parameters in +// client mount commands. These private IP addresses are listed +// in the privateIpIds property of the mount target and are highly available. Mount +// targets also consume additional IP addresses in their subnet. +// Do not use /30 or smaller subnets for mount target creation because they +// do not have sufficient available IP addresses. +// Allow at least three IP addresses for each mount target. +// For information about access control and compartments, see +// Overview of the IAM +// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure Services resources, including +// mount targets, get an Oracle-assigned, unique ID called an +// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type, or by viewing the resource in the Console. +func (client FileStorageClient) CreateMountTarget(ctx context.Context, request CreateMountTargetRequest) (response CreateMountTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createMountTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateMountTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateMountTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateMountTargetResponse") + } + return +} + +// createMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateMountTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/CreateMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "CreateMountTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateOutboundConnector Creates a new outbound connector in the specified compartment. +// You can associate a outbound connector with a mount target only when +// they exist in the same availability domain. +// For information about access control and compartments, see +// Overview of the IAM +// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure Services resources, including +// outbound connectors, get an Oracle-assigned, unique ID called an +// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type, or by viewing the resource in the Console. +func (client FileStorageClient) CreateOutboundConnector(ctx context.Context, request CreateOutboundConnectorRequest) (response CreateOutboundConnectorResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createOutboundConnector, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateOutboundConnectorResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateOutboundConnectorResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateOutboundConnectorResponse") + } + return +} + +// createOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/outboundConnectors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateOutboundConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/CreateOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "CreateOutboundConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) + return response, err +} + +// CreateReplication Creates a new replication in the specified compartment. +// Replications are the primary resource that governs the policy of cross-region replication between source +// and target file systems. Replications are associated with a secondary resource called a ReplicationTarget +// located in another availability domain. +// The associated replication target resource is automatically created along with the replication resource. +// The replication retrieves the delta of data between two snapshots of a source file system +// and sends it to the associated `ReplicationTarget`, which retrieves the delta and applies it to the target +// file system. +// Only unexported file systems can be used as target file systems. +// For more information, see Using Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). +// For information about access control and compartments, see +// Overview of the IAM +// Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// For information about availability domains, see Regions and +// Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To get a list of availability domains, use the +// `ListAvailabilityDomains` operation in the Identity and Access +// Management Service API. +// All Oracle Cloud Infrastructure Services resources, including +// replications, get an Oracle-assigned, unique ID called an +// Oracle Cloud Identifier (OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm)). +// When you create a resource, you can find its OCID in the response. +// You can also retrieve a resource's OCID by using a List API operation on that resource +// type, or by viewing the resource in the Console. +func (client FileStorageClient) CreateReplication(ctx context.Context, request CreateReplicationRequest) (response CreateReplicationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createReplication, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateReplicationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateReplicationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateReplicationResponse") + } + return +} + +// createReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateReplicationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/CreateReplication" + err = common.PostProcessServiceError(err, "FileStorage", "CreateReplication", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateReplicationTarget Creates a new replication target in the specified compartment. +// To be used for internal only purposes. +func (client FileStorageClient) CreateReplicationTarget(ctx context.Context, request CreateReplicationTargetRequest) (response CreateReplicationTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createReplicationTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateReplicationTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateReplicationTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateReplicationTargetResponse") + } + return +} + +// createReplicationTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateReplicationTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/CreateReplicationTarget" + err = common.PostProcessServiceError(err, "FileStorage", "CreateReplicationTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateShare Creates a new share in the specified share set and +// file system. +func (client FileStorageClient) CreateShare(ctx context.Context, request CreateShareRequest) (response CreateShareResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createShare, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateShareResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateShareResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateShareResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateShareResponse") + } + return +} + +// createShare implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createShare(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/shares", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateShareResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Share/CreateShare" + err = common.PostProcessServiceError(err, "FileStorage", "CreateShare", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateShareSet Creates a new share set in the specified mount target. +func (client FileStorageClient) CreateShareSet(ctx context.Context, request CreateShareSetRequest) (response CreateShareSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createShareSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateShareSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateShareSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateShareSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateShareSetResponse") + } + return +} + +// createShareSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createShareSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/shareSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateShareSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSet/CreateShareSet" + err = common.PostProcessServiceError(err, "FileStorage", "CreateShareSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateSnapshot Creates a new snapshot of the specified file system. You +// can access the snapshot at `.snapshot/`. +func (client FileStorageClient) CreateSnapshot(ctx context.Context, request CreateSnapshotRequest) (response CreateSnapshotResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createSnapshot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateSnapshotResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateSnapshotResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateSnapshotResponse") + } + return +} + +// createSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) createSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/snapshots", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateSnapshotResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/CreateSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "CreateSnapshot", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteExport Deletes the specified export. +func (client FileStorageClient) DeleteExport(ctx context.Context, request DeleteExportRequest) (response DeleteExportResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteExport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteExportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteExportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteExportResponse") + } + return +} + +// deleteExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/exports/{exportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteExportResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/DeleteExport" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteExport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteFileSystem Deletes the specified file system. Before you delete the file system, +// verify that no remaining export resources still reference it. Deleting a +// file system also deletes all of its snapshots. +func (client FileStorageClient) DeleteFileSystem(ctx context.Context, request DeleteFileSystemRequest) (response DeleteFileSystemResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteFileSystemResponse") + } + return +} + +// deleteFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteFileSystemResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteFilesystemSnapshotPolicy Deletes the specified Filesystem Snapshot Policy. +func (client FileStorageClient) DeleteFilesystemSnapshotPolicy(ctx context.Context, request DeleteFilesystemSnapshotPolicyRequest) (response DeleteFilesystemSnapshotPolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteFilesystemSnapshotPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteFilesystemSnapshotPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteFilesystemSnapshotPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteFilesystemSnapshotPolicyResponse") + } + return +} + +// deleteFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteFilesystemSnapshotPolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/DeleteFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteFilesystemSnapshotPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteMountTarget Deletes the specified mount target. This operation also deletes the +// mount target's VNICs. +func (client FileStorageClient) DeleteMountTarget(ctx context.Context, request DeleteMountTargetRequest) (response DeleteMountTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteMountTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteMountTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteMountTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteMountTargetResponse") + } + return +} + +// deleteMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteMountTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/DeleteMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteMountTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteOutboundConnector Deletes the specified outbound connector. +func (client FileStorageClient) DeleteOutboundConnector(ctx context.Context, request DeleteOutboundConnectorRequest) (response DeleteOutboundConnectorResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteOutboundConnector, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteOutboundConnectorResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteOutboundConnectorResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteOutboundConnectorResponse") + } + return +} + +// deleteOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteOutboundConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/DeleteOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteOutboundConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteReplication Deletes the specified replication and the the associated replication target. +func (client FileStorageClient) DeleteReplication(ctx context.Context, request DeleteReplicationRequest) (response DeleteReplicationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteReplication, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteReplicationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteReplicationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationResponse") + } + return +} + +// deleteReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replications/{replicationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteReplicationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/DeleteReplication" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteReplication", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteReplicationTarget Deletes the specified replication target. +// This operation causes the immediate release of the target file system if there are currently no delta application operations. +// If there is any current delta being applied the delete operation is blocked until the current +// delta has been completely applied. +func (client FileStorageClient) DeleteReplicationTarget(ctx context.Context, request DeleteReplicationTargetRequest) (response DeleteReplicationTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteReplicationTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteReplicationTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteReplicationTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteReplicationTargetResponse") + } + return +} + +// deleteReplicationTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteReplicationTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/DeleteReplicationTarget" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteReplicationTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteShare Deletes the specified share. +func (client FileStorageClient) DeleteShare(ctx context.Context, request DeleteShareRequest) (response DeleteShareResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteShare, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteShareResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteShareResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteShareResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteShareResponse") + } + return +} + +// deleteShare implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteShare(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/shares/{shareId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteShareResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Share/DeleteShare" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteShare", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteShareSet Deletes the specified share set. +func (client FileStorageClient) DeleteShareSet(ctx context.Context, request DeleteShareSetRequest) (response DeleteShareSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteShareSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteShareSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteShareSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteShareSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteShareSetResponse") + } + return +} + +// deleteShareSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteShareSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/shareSets/{shareSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteShareSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSet/DeleteShareSet" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteShareSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteSnapshot Deletes the specified snapshot. +func (client FileStorageClient) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequest) (response DeleteSnapshotResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteSnapshot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteSnapshotResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteSnapshotResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteSnapshotResponse") + } + return +} + +// deleteSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) deleteSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteSnapshotResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/DeleteSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "DeleteSnapshot", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DiscardKerberosKeytab Discards the contents of the MountTarget resource's Kerberos Keytab. +// All keytab entries used by the Mount Target removed as a result of this call. +// Once the keytab is discarded any new Kerberized NFS I/O to this mount target +// will be rejected by the mount target. Other Kerberos configuration is unchanged. +func (client FileStorageClient) DiscardKerberosKeytab(ctx context.Context, request DiscardKerberosKeytabRequest) (response DiscardKerberosKeytabResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.discardKerberosKeytab, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DiscardKerberosKeytabResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DiscardKerberosKeytabResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DiscardKerberosKeytabResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DiscardKerberosKeytabResponse") + } + return +} + +// discardKerberosKeytab implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) discardKerberosKeytab(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/discardKerberosKeytab", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DiscardKerberosKeytabResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/DiscardKerberosKeytab" + err = common.PostProcessServiceError(err, "FileStorage", "DiscardKerberosKeytab", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// EstimateReplication Provides estimates for replication created using specific file system. +func (client FileStorageClient) EstimateReplication(ctx context.Context, request EstimateReplicationRequest) (response EstimateReplicationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.estimateReplication, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = EstimateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = EstimateReplicationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(EstimateReplicationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into EstimateReplicationResponse") + } + return +} + +// estimateReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) estimateReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/estimateReplication", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response EstimateReplicationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/EstimateReplication" + err = common.PostProcessServiceError(err, "FileStorage", "EstimateReplication", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// FailoverMountTarget Execute a planned failover of the mount target. +func (client FileStorageClient) FailoverMountTarget(ctx context.Context, request FailoverMountTargetRequest) (response FailoverMountTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.failoverMountTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = FailoverMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = FailoverMountTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(FailoverMountTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into FailoverMountTargetResponse") + } + return +} + +// failoverMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) failoverMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/failover", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response FailoverMountTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/FailoverMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "FailoverMountTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetExport Gets the specified export's information. +func (client FileStorageClient) GetExport(ctx context.Context, request GetExportRequest) (response GetExportResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getExport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetExportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetExportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetExportResponse") + } + return +} + +// getExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports/{exportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetExportResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/GetExport" + err = common.PostProcessServiceError(err, "FileStorage", "GetExport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetExportSet Gets the specified export set's information. +func (client FileStorageClient) GetExportSet(ctx context.Context, request GetExportSetRequest) (response GetExportSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getExportSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetExportSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetExportSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetExportSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetExportSetResponse") + } + return +} + +// getExportSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getExportSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets/{exportSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetExportSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/GetExportSet" + err = common.PostProcessServiceError(err, "FileStorage", "GetExportSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetFileSystem Gets the specified file system's information. +func (client FileStorageClient) GetFileSystem(ctx context.Context, request GetFileSystemRequest) (response GetFileSystemResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetFileSystemResponse") + } + return +} + +// getFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetFileSystemResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "GetFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetFilesystemSnapshotPolicy Gets the specified Filesystem Snapshot Policy's information. +func (client FileStorageClient) GetFilesystemSnapshotPolicy(ctx context.Context, request GetFilesystemSnapshotPolicyRequest) (response GetFilesystemSnapshotPolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getFilesystemSnapshotPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetFilesystemSnapshotPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetFilesystemSnapshotPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetFilesystemSnapshotPolicyResponse") + } + return +} + +// getFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetFilesystemSnapshotPolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/GetFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "GetFilesystemSnapshotPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetMountTarget Gets the specified mount target's information. +func (client FileStorageClient) GetMountTarget(ctx context.Context, request GetMountTargetRequest) (response GetMountTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getMountTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetMountTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetMountTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetMountTargetResponse") + } + return +} + +// getMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetMountTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/GetMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "GetMountTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetOutboundConnector Gets the specified outbound connector's information. +func (client FileStorageClient) GetOutboundConnector(ctx context.Context, request GetOutboundConnectorRequest) (response GetOutboundConnectorResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getOutboundConnector, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetOutboundConnectorResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetOutboundConnectorResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetOutboundConnectorResponse") + } + return +} + +// getOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetOutboundConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/GetOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "GetOutboundConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) + return response, err +} + +// GetReplication Gets the specified replication's information. +func (client FileStorageClient) GetReplication(ctx context.Context, request GetReplicationRequest) (response GetReplicationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getReplication, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetReplicationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetReplicationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetReplicationResponse") + } + return +} + +// getReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications/{replicationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetReplicationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/GetReplication" + err = common.PostProcessServiceError(err, "FileStorage", "GetReplication", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetReplicationTarget Gets the specified replication target's information. +func (client FileStorageClient) GetReplicationTarget(ctx context.Context, request GetReplicationTargetRequest) (response GetReplicationTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getReplicationTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetReplicationTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetReplicationTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetReplicationTargetResponse") + } + return +} + +// getReplicationTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetReplicationTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTarget" + err = common.PostProcessServiceError(err, "FileStorage", "GetReplicationTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetReplicationTargetProgress Get ReplicationTarget's progress in a remote region. +func (client FileStorageClient) GetReplicationTargetProgress(ctx context.Context, request GetReplicationTargetProgressRequest) (response GetReplicationTargetProgressResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getReplicationTargetProgress, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetReplicationTargetProgressResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetReplicationTargetProgressResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetReplicationTargetProgressResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetReplicationTargetProgressResponse") + } + return +} + +// getReplicationTargetProgress implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getReplicationTargetProgress(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets/actions/replicationTargetProgress", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetReplicationTargetProgressResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/GetReplicationTargetProgress" + err = common.PostProcessServiceError(err, "FileStorage", "GetReplicationTargetProgress", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetShare Gets the specified share's information. +func (client FileStorageClient) GetShare(ctx context.Context, request GetShareRequest) (response GetShareResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getShare, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetShareResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetShareResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetShareResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetShareResponse") + } + return +} + +// getShare implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getShare(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/shares/{shareId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetShareResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Share/GetShare" + err = common.PostProcessServiceError(err, "FileStorage", "GetShare", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetShareSet Gets the specified share set's information. +func (client FileStorageClient) GetShareSet(ctx context.Context, request GetShareSetRequest) (response GetShareSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getShareSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetShareSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetShareSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetShareSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetShareSetResponse") + } + return +} + +// getShareSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getShareSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/shareSets/{shareSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetShareSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSet/GetShareSet" + err = common.PostProcessServiceError(err, "FileStorage", "GetShareSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetSnapshot Gets the specified snapshot's information. +func (client FileStorageClient) GetSnapshot(ctx context.Context, request GetSnapshotRequest) (response GetSnapshotResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getSnapshot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetSnapshotResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetSnapshotResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetSnapshotResponse") + } + return +} + +// getSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetSnapshotResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/GetSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "GetSnapshot", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetTagSlug gets the tagSlug value for a resource. +func (client FileStorageClient) GetTagSlug(ctx context.Context, request GetTagSlugRequest) (response GetTagSlugResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getTagSlug, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetTagSlugResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetTagSlugResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetTagSlugResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetTagSlugResponse") + } + return +} + +// getTagSlug implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) getTagSlug(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/tagSlug/{resourceId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetTagSlugResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Tagslug/GetTagSlug" + err = common.PostProcessServiceError(err, "FileStorage", "GetTagSlug", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListExportSets Lists the export set resources in the specified compartment. +func (client FileStorageClient) ListExportSets(ctx context.Context, request ListExportSetsRequest) (response ListExportSetsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listExportSets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListExportSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListExportSetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListExportSetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListExportSetsResponse") + } + return +} + +// listExportSets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listExportSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exportSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListExportSetsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSetSummary/ListExportSets" + err = common.PostProcessServiceError(err, "FileStorage", "ListExportSets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListExports Lists export resources by compartment, file system, or export +// set. You must specify an export set ID, a file system ID, and +// / or a compartment ID. +func (client FileStorageClient) ListExports(ctx context.Context, request ListExportsRequest) (response ListExportsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listExports, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListExportsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListExportsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListExportsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListExportsResponse") + } + return +} + +// listExports implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listExports(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/exports", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListExportsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSummary/ListExports" + err = common.PostProcessServiceError(err, "FileStorage", "ListExports", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListFileSystems Lists the file system resources in the specified compartment, or by the specified compartment and +// filesystem snapshot policy. +func (client FileStorageClient) ListFileSystems(ctx context.Context, request ListFileSystemsRequest) (response ListFileSystemsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listFileSystems, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListFileSystemsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListFileSystemsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListFileSystemsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListFileSystemsResponse") + } + return +} + +// listFileSystems implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listFileSystems(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListFileSystemsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystemSummary/ListFileSystems" + err = common.PostProcessServiceError(err, "FileStorage", "ListFileSystems", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListFilesystemSnapshotPolicies Lists Filesystem Snapshot Policies in the specified compartment. +func (client FileStorageClient) ListFilesystemSnapshotPolicies(ctx context.Context, request ListFilesystemSnapshotPoliciesRequest) (response ListFilesystemSnapshotPoliciesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listFilesystemSnapshotPolicies, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListFilesystemSnapshotPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListFilesystemSnapshotPoliciesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListFilesystemSnapshotPoliciesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListFilesystemSnapshotPoliciesResponse") + } + return +} + +// listFilesystemSnapshotPolicies implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listFilesystemSnapshotPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/filesystemSnapshotPolicies", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListFilesystemSnapshotPoliciesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicySummary/ListFilesystemSnapshotPolicies" + err = common.PostProcessServiceError(err, "FileStorage", "ListFilesystemSnapshotPolicies", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListMountTargets Lists the mount target resources in the specified compartment. +func (client FileStorageClient) ListMountTargets(ctx context.Context, request ListMountTargetsRequest) (response ListMountTargetsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listMountTargets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListMountTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListMountTargetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListMountTargetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListMountTargetsResponse") + } + return +} + +// listMountTargets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listMountTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/mountTargets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListMountTargetsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTargetSummary/ListMountTargets" + err = common.PostProcessServiceError(err, "FileStorage", "ListMountTargets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +//listoutboundconnectorsummary allows to unmarshal list of polymorphic OutboundConnectorSummary +type listoutboundconnectorsummary []outboundconnectorsummary + +//UnmarshalPolymorphicJSON unmarshals polymorphic json list of items +func (m *listoutboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + res := make([]OutboundConnectorSummary, len(*m)) + for i, v := range *m { + nn, err := v.UnmarshalPolymorphicJSON(v.JsonData) + if err != nil { + return nil, err + } + res[i] = nn.(OutboundConnectorSummary) + } + return res, nil +} + +// ListOutboundConnectors Lists the outbound connector resources in the specified compartment. +func (client FileStorageClient) ListOutboundConnectors(ctx context.Context, request ListOutboundConnectorsRequest) (response ListOutboundConnectorsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listOutboundConnectors, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListOutboundConnectorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListOutboundConnectorsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListOutboundConnectorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListOutboundConnectorsResponse") + } + return +} + +// listOutboundConnectors implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listOutboundConnectors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/outboundConnectors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListOutboundConnectorsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnectorSummary/ListOutboundConnectors" + err = common.PostProcessServiceError(err, "FileStorage", "ListOutboundConnectors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &listoutboundconnectorsummary{}) + return response, err +} + +// ListReplicationTargets Lists the replication target resources in the specified compartment. +func (client FileStorageClient) ListReplicationTargets(ctx context.Context, request ListReplicationTargetsRequest) (response ListReplicationTargetsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listReplicationTargets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListReplicationTargetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListReplicationTargetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListReplicationTargetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListReplicationTargetsResponse") + } + return +} + +// listReplicationTargets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listReplicationTargets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListReplicationTargetsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTargetSummary/ListReplicationTargets" + err = common.PostProcessServiceError(err, "FileStorage", "ListReplicationTargets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListReplications Lists the replication resources in the specified compartment. +func (client FileStorageClient) ListReplications(ctx context.Context, request ListReplicationsRequest) (response ListReplicationsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listReplications, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListReplicationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListReplicationsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListReplicationsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListReplicationsResponse") + } + return +} + +// listReplications implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listReplications(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListReplicationsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationSummary/ListReplications" + err = common.PostProcessServiceError(err, "FileStorage", "ListReplications", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListShareSets Lists the share set resources in the specified compartment. +func (client FileStorageClient) ListShareSets(ctx context.Context, request ListShareSetsRequest) (response ListShareSetsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listShareSets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListShareSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListShareSetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListShareSetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListShareSetsResponse") + } + return +} + +// listShareSets implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listShareSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/shareSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListShareSetsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSetSummary/ListShareSets" + err = common.PostProcessServiceError(err, "FileStorage", "ListShareSets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListShares Lists share resources by compartment, file system, or share set. +// You must specify a share set ID, a file system ID, and +// / or a compartment ID. +func (client FileStorageClient) ListShares(ctx context.Context, request ListSharesRequest) (response ListSharesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listShares, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListSharesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListSharesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListSharesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListSharesResponse") + } + return +} + +// listShares implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listShares(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/shares", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListSharesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSummary/ListShares" + err = common.PostProcessServiceError(err, "FileStorage", "ListShares", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListSnapshots Lists snapshots of the specified file system, or by filesystem snapshot policy and compartment, +// or by filesystem snapshot policy and filesystem. +// If file system ID is not specified, a filesystem snapshot policy ID and compartment ID have to be specified. +func (client FileStorageClient) ListSnapshots(ctx context.Context, request ListSnapshotsRequest) (response ListSnapshotsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listSnapshots, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListSnapshotsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListSnapshotsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListSnapshotsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListSnapshotsResponse") + } + return +} + +// listSnapshots implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) listSnapshots(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/snapshots", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListSnapshotsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/SnapshotSummary/ListSnapshots" + err = common.PostProcessServiceError(err, "FileStorage", "ListSnapshots", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ModifyRootdirAttributes Allows the administrator to alter the attributes of the file system root directory. +func (client FileStorageClient) ModifyRootdirAttributes(ctx context.Context, request ModifyRootdirAttributesRequest) (response ModifyRootdirAttributesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.modifyRootdirAttributes, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ModifyRootdirAttributesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ModifyRootdirAttributesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ModifyRootdirAttributesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ModifyRootdirAttributesResponse") + } + return +} + +// modifyRootdirAttributes implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) modifyRootdirAttributes(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/fileSystems/{fileSystemId}/actions/modifyRootDirectoryAttributes", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ModifyRootdirAttributesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ModifyRootdirAttributes" + err = common.PostProcessServiceError(err, "FileStorage", "ModifyRootdirAttributes", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// PauseFilesystemSnapshotPolicy This operation pauses the scheduled snapshot creation and deletion of the policy and updates the filesystem +// snapshot policy from ACTIVE to INACTIVE state. If the policy is already paused, i.e. in INACTIVE state, the +// policy will remain paused. You cannot not pause a policy that is in DELETING, DELETED, FAILED, or CREATING +// state: a 409 conflict error would be returned if you do so. +// When a filesystem snapshot policy is paused, i.e. in INACTIVE state, filesystems that are associated with the +// policy would not have scheduled snapshot creation and deletion. +func (client FileStorageClient) PauseFilesystemSnapshotPolicy(ctx context.Context, request PauseFilesystemSnapshotPolicyRequest) (response PauseFilesystemSnapshotPolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.pauseFilesystemSnapshotPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = PauseFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = PauseFilesystemSnapshotPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(PauseFilesystemSnapshotPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PauseFilesystemSnapshotPolicyResponse") + } + return +} + +// pauseFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) pauseFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/pause", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response PauseFilesystemSnapshotPolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/PauseFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "PauseFilesystemSnapshotPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationFail Update Replication to FAILED state in a remote region. This API is called as part of Replication Lifecycle Management. +func (client FileStorageClient) ReplicationFail(ctx context.Context, request ReplicationFailRequest) (response ReplicationFailResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationFail, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationFailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationFailResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationFailResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationFailResponse") + } + return +} + +// replicationFail implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationFail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/actions/replicationFail", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationFailResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ReplicationFail" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationFail", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationStatusUpdate Update Replication Status of Replication in a remote region. This API is called as part of Replication Lifecycle Management. +func (client FileStorageClient) ReplicationStatusUpdate(ctx context.Context, request ReplicationStatusUpdateRequest) (response ReplicationStatusUpdateResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationStatusUpdate, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationStatusUpdateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationStatusUpdateResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationStatusUpdateResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationStatusUpdateResponse") + } + return +} + +// replicationStatusUpdate implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationStatusUpdate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/actions/replicationStatusUpdate", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationStatusUpdateResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/ReplicationStatusUpdate" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationStatusUpdate", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationTargetDelete Delete ReplicationTarget in a remote region. This API is called as part of Replication Lifecycle Management. +func (client FileStorageClient) ReplicationTargetDelete(ctx context.Context, request ReplicationTargetDeleteRequest) (response ReplicationTargetDeleteResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationTargetDelete, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationTargetDeleteResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationTargetDeleteResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationTargetDeleteResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetDeleteResponse") + } + return +} + +// replicationTargetDelete implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationTargetDelete(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/replicationTargetDelete", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationTargetDeleteResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/ReplicationTargetDelete" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationTargetDelete", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationTargetFail Update ReplicationTarget to FAILED state in a remote region. This API is called as part of Replication Lifecycle Management. +func (client FileStorageClient) ReplicationTargetFail(ctx context.Context, request ReplicationTargetFailRequest) (response ReplicationTargetFailResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationTargetFail, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationTargetFailResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationTargetFailResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationTargetFailResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetFailResponse") + } + return +} + +// replicationTargetFail implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationTargetFail(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/replicationTargetFail", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationTargetFailResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/ReplicationTargetFail" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationTargetFail", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationTargetFileSystemGet Get Target Filesystem in a remote region. +func (client FileStorageClient) ReplicationTargetFileSystemGet(ctx context.Context, request ReplicationTargetFileSystemGetRequest) (response ReplicationTargetFileSystemGetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationTargetFileSystemGet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationTargetFileSystemGetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationTargetFileSystemGetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationTargetFileSystemGetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetFileSystemGetResponse") + } + return +} + +// replicationTargetFileSystemGet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationTargetFileSystemGet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replications/actions/getTargetFileSystem", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationTargetFileSystemGetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ReplicationTargetFileSystemGet" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationTargetFileSystemGet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationTargetGet Gets the specified replication target's information. +func (client FileStorageClient) ReplicationTargetGet(ctx context.Context, request ReplicationTargetGetRequest) (response ReplicationTargetGetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationTargetGet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationTargetGetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationTargetGetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationTargetGetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetGetResponse") + } + return +} + +// replicationTargetGet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationTargetGet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/replicationTargets/actions/replicationTargetGet", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationTargetGetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/ReplicationTargetGet" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationTargetGet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReplicationTargetStatusUpdate Update Replication Status of ReplicationTarget in a remote region. This API is called as part of Replication Lifecycle Management. +func (client FileStorageClient) ReplicationTargetStatusUpdate(ctx context.Context, request ReplicationTargetStatusUpdateRequest) (response ReplicationTargetStatusUpdateResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.replicationTargetStatusUpdate, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReplicationTargetStatusUpdateResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReplicationTargetStatusUpdateResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReplicationTargetStatusUpdateResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReplicationTargetStatusUpdateResponse") + } + return +} + +// replicationTargetStatusUpdate implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) replicationTargetStatusUpdate(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/replicationTargetStatusUpdate", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReplicationTargetStatusUpdateResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/ReplicationTargetStatusUpdate" + err = common.PostProcessServiceError(err, "FileStorage", "ReplicationTargetStatusUpdate", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ReserveTargetNum Reserve ReplicationTarget num in a remote region. This API is called as part of Create Replication. +func (client FileStorageClient) ReserveTargetNum(ctx context.Context, request ReserveTargetNumRequest) (response ReserveTargetNumResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.reserveTargetNum, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ReserveTargetNumResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ReserveTargetNumResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ReserveTargetNumResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ReserveTargetNumResponse") + } + return +} + +// reserveTargetNum implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) reserveTargetNum(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/actions/reserveTargetNum", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ReserveTargetNumResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/ReserveTargetNum" + err = common.PostProcessServiceError(err, "FileStorage", "ReserveTargetNum", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RestartStuckDelta Restarts a failed delta job for the specified replication id. +func (client FileStorageClient) RestartStuckDelta(ctx context.Context, request RestartStuckDeltaRequest) (response RestartStuckDeltaResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.restartStuckDelta, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RestartStuckDeltaResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RestartStuckDeltaResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RestartStuckDeltaResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RestartStuckDeltaResponse") + } + return +} + +// restartStuckDelta implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) restartStuckDelta(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replications/{replicationId}/actions/restartStuckDelta", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RestartStuckDeltaResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/RestartStuckDelta" + err = common.PostProcessServiceError(err, "FileStorage", "RestartStuckDelta", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ShareSetJoinDomain Execute a join domian of the mount target share set to a domain controller for SMB access. +func (client FileStorageClient) ShareSetJoinDomain(ctx context.Context, request ShareSetJoinDomainRequest) (response ShareSetJoinDomainResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.shareSetJoinDomain, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ShareSetJoinDomainResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ShareSetJoinDomainResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ShareSetJoinDomainResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ShareSetJoinDomainResponse") + } + return +} + +// shareSetJoinDomain implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) shareSetJoinDomain(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/shareSets/{shareSetId}/actions/joinDomain", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ShareSetJoinDomainResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSet/ShareSetJoinDomain" + err = common.PostProcessServiceError(err, "FileStorage", "ShareSetJoinDomain", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// SourceTriggeredDelete Notify target region that a delete replication request has been received in source. This API will be part of Delete Replication +func (client FileStorageClient) SourceTriggeredDelete(ctx context.Context, request SourceTriggeredDeleteRequest) (response SourceTriggeredDeleteResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.sourceTriggeredDelete, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = SourceTriggeredDeleteResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = SourceTriggeredDeleteResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(SourceTriggeredDeleteResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SourceTriggeredDeleteResponse") + } + return +} + +// sourceTriggeredDelete implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) sourceTriggeredDelete(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/replicationTargets/{replicationTargetId}/actions/sourceTriggeredDelete", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response SourceTriggeredDeleteResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/SourceTriggeredDelete" + err = common.PostProcessServiceError(err, "FileStorage", "SourceTriggeredDelete", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StartLoggingMt Notifies FSS to enable logging for the Mount Target resource. +func (client FileStorageClient) StartLoggingMt(ctx context.Context, request StartLoggingMtRequest) (response StartLoggingMtResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.startLoggingMt, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StartLoggingMtResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StartLoggingMtResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StartLoggingMtResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StartLoggingMtResponse") + } + return +} + +// startLoggingMt implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) startLoggingMt(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/20190909/logging", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StartLoggingMtResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OciServiceLoggingConfig/StartLoggingMt" + err = common.PostProcessServiceError(err, "FileStorage", "StartLoggingMt", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopLoggingMt Disable logging to the log object. +func (client FileStorageClient) StopLoggingMt(ctx context.Context, request StopLoggingMtRequest) (response StopLoggingMtResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.stopLoggingMt, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StopLoggingMtResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StopLoggingMtResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StopLoggingMtResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopLoggingMtResponse") + } + return +} + +// stopLoggingMt implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) stopLoggingMt(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/mountTargets/20190909/logging/{logId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StopLoggingMtResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OciServiceLoggingConfig/StopLoggingMt" + err = common.PostProcessServiceError(err, "FileStorage", "StopLoggingMt", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// StopMountTargetRebalancing Stops auto rebalancing of mount targets. +func (client FileStorageClient) StopMountTargetRebalancing(ctx context.Context, request StopMountTargetRebalancingRequest) (response StopMountTargetRebalancingResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.stopMountTargetRebalancing, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = StopMountTargetRebalancingResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = StopMountTargetRebalancingResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(StopMountTargetRebalancingResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into StopMountTargetRebalancingResponse") + } + return +} + +// stopMountTargetRebalancing implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) stopMountTargetRebalancing(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/stopMountTargetRebalancing", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response StopMountTargetRebalancingResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/StopMountTargetRebalancing" + err = common.PostProcessServiceError(err, "FileStorage", "StopMountTargetRebalancing", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// TargetFileSystemGet Get Target Filesystem in a remote region. +func (client FileStorageClient) TargetFileSystemGet(ctx context.Context, request TargetFileSystemGetRequest) (response TargetFileSystemGetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.targetFileSystemGet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = TargetFileSystemGetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = TargetFileSystemGetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(TargetFileSystemGetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into TargetFileSystemGetResponse") + } + return +} + +// targetFileSystemGet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) targetFileSystemGet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/fileSystems/actions/getTargetFileSystem", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response TargetFileSystemGetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/TargetFileSystemGet" + err = common.PostProcessServiceError(err, "FileStorage", "TargetFileSystemGet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// TestOutboundConnector Runs diagnostic test from the specified mount target to server endpoints in the specified outbound connector. +func (client FileStorageClient) TestOutboundConnector(ctx context.Context, request TestOutboundConnectorRequest) (response TestOutboundConnectorResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.testOutboundConnector, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = TestOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = TestOutboundConnectorResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(TestOutboundConnectorResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into TestOutboundConnectorResponse") + } + return +} + +// testOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) testOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/testOutboundConnector", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response TestOutboundConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/TestOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "TestOutboundConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UnpauseFilesystemSnapshotPolicy This operation unpauses a paused filesystem snapshot policy and updates the filesystem snapshot policy from +// INACTIVE to ACTIVE state. If the policy is already in ACTIVE state, the policy will remain active. By default, +// filesystem snapshot policies are in ACTIVE state. You cannot not unpause a policy that is in DELETING, DELETED, +// FAILED, or CREATING state: a 409 conflict error would be returned if you do so. +// When a filesystem snapshot policy is not paused, i.e. in ACTIVE state, filesystems that are associated with the +// policy will have snapshots created / deleted, according to the schedules defined in the policy. +func (client FileStorageClient) UnpauseFilesystemSnapshotPolicy(ctx context.Context, request UnpauseFilesystemSnapshotPolicyRequest) (response UnpauseFilesystemSnapshotPolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.unpauseFilesystemSnapshotPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UnpauseFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UnpauseFilesystemSnapshotPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UnpauseFilesystemSnapshotPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UnpauseFilesystemSnapshotPolicyResponse") + } + return +} + +// unpauseFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) unpauseFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}/actions/unpause", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UnpauseFilesystemSnapshotPolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/UnpauseFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "UnpauseFilesystemSnapshotPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateExport Updates the specified export's information. +func (client FileStorageClient) UpdateExport(ctx context.Context, request UpdateExportRequest) (response UpdateExportResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateExport, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateExportResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateExportResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateExportResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateExportResponse") + } + return +} + +// updateExport implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateExport(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/exports/{exportId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateExportResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Export/UpdateExport" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateExport", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateExportSet Updates the specified export set's information. +func (client FileStorageClient) UpdateExportSet(ctx context.Context, request UpdateExportSetRequest) (response UpdateExportSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateExportSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateExportSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateExportSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateExportSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateExportSetResponse") + } + return +} + +// updateExportSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateExportSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/exportSets/{exportSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateExportSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ExportSet/UpdateExportSet" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateExportSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateFileSystem Updates the specified file system's information. +// You can use this operation to rename a file system. +func (client FileStorageClient) UpdateFileSystem(ctx context.Context, request UpdateFileSystemRequest) (response UpdateFileSystemResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateFileSystem, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateFileSystemResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateFileSystemResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateFileSystemResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateFileSystemResponse") + } + return +} + +// updateFileSystem implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateFileSystem(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/fileSystems/{fileSystemId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateFileSystemResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/UpdateFileSystem" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateFileSystem", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateFilesystemSnapshotPolicy Updates the specified Filesystem Snapshot Policy's information. +func (client FileStorageClient) UpdateFilesystemSnapshotPolicy(ctx context.Context, request UpdateFilesystemSnapshotPolicyRequest) (response UpdateFilesystemSnapshotPolicyResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateFilesystemSnapshotPolicy, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateFilesystemSnapshotPolicyResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateFilesystemSnapshotPolicyResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateFilesystemSnapshotPolicyResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateFilesystemSnapshotPolicyResponse") + } + return +} + +// updateFilesystemSnapshotPolicy implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateFilesystemSnapshotPolicy(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/filesystemSnapshotPolicies/{filesystemSnapshotPolicyId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateFilesystemSnapshotPolicyResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FilesystemSnapshotPolicy/UpdateFilesystemSnapshotPolicy" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateFilesystemSnapshotPolicy", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateLoggingMt Updates category parameters in the logging for Mount Target resource. +func (client FileStorageClient) UpdateLoggingMt(ctx context.Context, request UpdateLoggingMtRequest) (response UpdateLoggingMtResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateLoggingMt, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateLoggingMtResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateLoggingMtResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateLoggingMtResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateLoggingMtResponse") + } + return +} + +// updateLoggingMt implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateLoggingMt(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/mountTargets/20190909/logging", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateLoggingMtResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OciServiceLoggingConfig/UpdateLoggingMt" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateLoggingMt", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateMountTarget Updates the specified mount target's information. +func (client FileStorageClient) UpdateMountTarget(ctx context.Context, request UpdateMountTargetRequest) (response UpdateMountTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateMountTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateMountTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateMountTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateMountTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateMountTargetResponse") + } + return +} + +// updateMountTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateMountTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/mountTargets/{mountTargetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateMountTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/UpdateMountTarget" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateMountTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateOutboundConnector Updates the specified outbound connector's information. +func (client FileStorageClient) UpdateOutboundConnector(ctx context.Context, request UpdateOutboundConnectorRequest) (response UpdateOutboundConnectorResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateOutboundConnector, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateOutboundConnectorResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateOutboundConnectorResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateOutboundConnectorResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateOutboundConnectorResponse") + } + return +} + +// updateOutboundConnector implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateOutboundConnector(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/outboundConnectors/{outboundConnectorId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateOutboundConnectorResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnector/UpdateOutboundConnector" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateOutboundConnector", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponseWithPolymorphicBody(httpResponse, &response, &outboundconnector{}) + return response, err +} + +// UpdateReplication Updates the information for the specified replication and its associated replication target. +func (client FileStorageClient) UpdateReplication(ctx context.Context, request UpdateReplicationRequest) (response UpdateReplicationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateReplication, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateReplicationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateReplicationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateReplicationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateReplicationResponse") + } + return +} + +// updateReplication implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateReplication(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/replications/{replicationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateReplicationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Replication/UpdateReplication" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateReplication", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateReplicationTarget Updates the specified replication target's information. +// To be used internal only. +func (client FileStorageClient) UpdateReplicationTarget(ctx context.Context, request UpdateReplicationTargetRequest) (response UpdateReplicationTargetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateReplicationTarget, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateReplicationTargetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateReplicationTargetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateReplicationTargetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateReplicationTargetResponse") + } + return +} + +// updateReplicationTarget implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateReplicationTarget(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/replicationTargets/{replicationTargetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateReplicationTargetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ReplicationTarget/UpdateReplicationTarget" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateReplicationTarget", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateShare Updates the specified share's information. +func (client FileStorageClient) UpdateShare(ctx context.Context, request UpdateShareRequest) (response UpdateShareResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateShare, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateShareResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateShareResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateShareResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateShareResponse") + } + return +} + +// updateShare implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateShare(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/shares/{shareId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateShareResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Share/UpdateShare" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateShare", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateShareSet Updates the specified share set's information. +func (client FileStorageClient) UpdateShareSet(ctx context.Context, request UpdateShareSetRequest) (response UpdateShareSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateShareSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateShareSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateShareSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateShareSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateShareSetResponse") + } + return +} + +// updateShareSet implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateShareSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/shareSets/{shareSetId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateShareSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/ShareSet/UpdateShareSet" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateShareSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateSnapshot Updates the specified snapshot's information. +func (client FileStorageClient) UpdateSnapshot(ctx context.Context, request UpdateSnapshotRequest) (response UpdateSnapshotResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateSnapshot, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateSnapshotResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateSnapshotResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateSnapshotResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateSnapshotResponse") + } + return +} + +// updateSnapshot implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) updateSnapshot(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/snapshots/{snapshotId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateSnapshotResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/Snapshot/UpdateSnapshot" + err = common.PostProcessServiceError(err, "FileStorage", "UpdateSnapshot", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UploadKerberosKeytab Uploads keytab file to the mount target for use in the data path. +func (client FileStorageClient) UploadKerberosKeytab(ctx context.Context, request UploadKerberosKeytabRequest) (response UploadKerberosKeytabResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.uploadKerberosKeytab, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UploadKerberosKeytabResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UploadKerberosKeytabResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UploadKerberosKeytabResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UploadKerberosKeytabResponse") + } + return +} + +// uploadKerberosKeytab implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) uploadKerberosKeytab(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/{mountTargetId}/actions/uploadKerberosKeytab", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UploadKerberosKeytabResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/UploadKerberosKeytab" + err = common.PostProcessServiceError(err, "FileStorage", "UploadKerberosKeytab", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ValidateKeyTabs Validates keytab contents for the secret details passed on the request or validte keytab contents associated with +// the Mount Target passed in the request. The keytabs are deserialized, the contents are validated for compatibility +// and the principal, key version number and encryption type of each entry is provided as part of the response. +func (client FileStorageClient) ValidateKeyTabs(ctx context.Context, request ValidateKeyTabsRequest) (response ValidateKeyTabsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.validateKeyTabs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ValidateKeyTabsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ValidateKeyTabsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ValidateKeyTabsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ValidateKeyTabsResponse") + } + return +} + +// validateKeyTabs implements the OCIOperation interface (enables retrying operations) +func (client FileStorageClient) validateKeyTabs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/mountTargets/actions/validateKeyTabs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ValidateKeyTabsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/MountTarget/ValidateKeyTabs" + err = common.PostProcessServiceError(err, "FileStorage", "ValidateKeyTabs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go new file mode 100644 index 0000000000..7b11f6d675 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy.go @@ -0,0 +1,142 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FilesystemSnapshotPolicy The Filesystem Snapshot Policy is a resource that governs policy-based snapshots of associated +// filesystems. It contains a list of SnapshotSchedules where users can define the frequency of +// snapshot creation for the associated filesystems, and the retention time of the taken snapshots. +type FilesystemSnapshotPolicy struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the Filesystem Snapshot Policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The availability domain the Filesystem Snapshot Policy is in. May be unset as a blank or NULL value. + // Example: `Uocm:PHX-AD-2` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + Id *string `mandatory:"true" json:"id"` + + // The current state of the Filesystem Snapshot Policy. + LifecycleState FilesystemSnapshotPolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the Filesystem Snapshot Policy was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `policy1` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The prefix to apply to all snapshots created by this policy. + // Maximum length of 100 characters. + // Example: `acme` + PolicyPrefix *string `mandatory:"false" json:"policyPrefix"` + + // The list of associated SnapshotSchedule objects. There is a maximum of 10 associated with a policy. + Schedules []SnapshotSchedule `mandatory:"false" json:"schedules"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m FilesystemSnapshotPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FilesystemSnapshotPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFilesystemSnapshotPolicyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFilesystemSnapshotPolicyLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FilesystemSnapshotPolicyLifecycleStateEnum Enum with underlying type: string +type FilesystemSnapshotPolicyLifecycleStateEnum string + +// Set of constants representing the allowable values for FilesystemSnapshotPolicyLifecycleStateEnum +const ( + FilesystemSnapshotPolicyLifecycleStateCreating FilesystemSnapshotPolicyLifecycleStateEnum = "CREATING" + FilesystemSnapshotPolicyLifecycleStateActive FilesystemSnapshotPolicyLifecycleStateEnum = "ACTIVE" + FilesystemSnapshotPolicyLifecycleStateDeleting FilesystemSnapshotPolicyLifecycleStateEnum = "DELETING" + FilesystemSnapshotPolicyLifecycleStateDeleted FilesystemSnapshotPolicyLifecycleStateEnum = "DELETED" + FilesystemSnapshotPolicyLifecycleStateInactive FilesystemSnapshotPolicyLifecycleStateEnum = "INACTIVE" + FilesystemSnapshotPolicyLifecycleStateFailed FilesystemSnapshotPolicyLifecycleStateEnum = "FAILED" +) + +var mappingFilesystemSnapshotPolicyLifecycleStateEnum = map[string]FilesystemSnapshotPolicyLifecycleStateEnum{ + "CREATING": FilesystemSnapshotPolicyLifecycleStateCreating, + "ACTIVE": FilesystemSnapshotPolicyLifecycleStateActive, + "DELETING": FilesystemSnapshotPolicyLifecycleStateDeleting, + "DELETED": FilesystemSnapshotPolicyLifecycleStateDeleted, + "INACTIVE": FilesystemSnapshotPolicyLifecycleStateInactive, + "FAILED": FilesystemSnapshotPolicyLifecycleStateFailed, +} + +var mappingFilesystemSnapshotPolicyLifecycleStateEnumLowerCase = map[string]FilesystemSnapshotPolicyLifecycleStateEnum{ + "creating": FilesystemSnapshotPolicyLifecycleStateCreating, + "active": FilesystemSnapshotPolicyLifecycleStateActive, + "deleting": FilesystemSnapshotPolicyLifecycleStateDeleting, + "deleted": FilesystemSnapshotPolicyLifecycleStateDeleted, + "inactive": FilesystemSnapshotPolicyLifecycleStateInactive, + "failed": FilesystemSnapshotPolicyLifecycleStateFailed, +} + +// GetFilesystemSnapshotPolicyLifecycleStateEnumValues Enumerates the set of values for FilesystemSnapshotPolicyLifecycleStateEnum +func GetFilesystemSnapshotPolicyLifecycleStateEnumValues() []FilesystemSnapshotPolicyLifecycleStateEnum { + values := make([]FilesystemSnapshotPolicyLifecycleStateEnum, 0) + for _, v := range mappingFilesystemSnapshotPolicyLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetFilesystemSnapshotPolicyLifecycleStateEnumStringValues Enumerates the set of values in String for FilesystemSnapshotPolicyLifecycleStateEnum +func GetFilesystemSnapshotPolicyLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "INACTIVE", + "FAILED", + } +} + +// GetMappingFilesystemSnapshotPolicyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFilesystemSnapshotPolicyLifecycleStateEnum(val string) (FilesystemSnapshotPolicyLifecycleStateEnum, bool) { + enum, ok := mappingFilesystemSnapshotPolicyLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go new file mode 100644 index 0000000000..1443da5c71 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/filesystem_snapshot_policy_summary.go @@ -0,0 +1,137 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FilesystemSnapshotPolicySummary Summary information for a Filesystem Snapshot Policy. +type FilesystemSnapshotPolicySummary struct { + + // The availability domain the Filesystem Snapshot Policy is in. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the Filesystem Snapshot Policy. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + Id *string `mandatory:"true" json:"id"` + + // The current state of this Filesystem Snapshot Policy. + LifecycleState FilesystemSnapshotPolicySummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the Filesystem Snapshot Policy was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2020-02-04T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Filesystem Snapshot Policy` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The prefix to apply to all snapshots created by this policy. + // Maximum length of 100 characters. + // Example: `acme` + PolicyPrefix *string `mandatory:"false" json:"policyPrefix"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m FilesystemSnapshotPolicySummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FilesystemSnapshotPolicySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingFilesystemSnapshotPolicySummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetFilesystemSnapshotPolicySummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// FilesystemSnapshotPolicySummaryLifecycleStateEnum Enum with underlying type: string +type FilesystemSnapshotPolicySummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for FilesystemSnapshotPolicySummaryLifecycleStateEnum +const ( + FilesystemSnapshotPolicySummaryLifecycleStateCreating FilesystemSnapshotPolicySummaryLifecycleStateEnum = "CREATING" + FilesystemSnapshotPolicySummaryLifecycleStateActive FilesystemSnapshotPolicySummaryLifecycleStateEnum = "ACTIVE" + FilesystemSnapshotPolicySummaryLifecycleStateDeleting FilesystemSnapshotPolicySummaryLifecycleStateEnum = "DELETING" + FilesystemSnapshotPolicySummaryLifecycleStateDeleted FilesystemSnapshotPolicySummaryLifecycleStateEnum = "DELETED" + FilesystemSnapshotPolicySummaryLifecycleStateInactive FilesystemSnapshotPolicySummaryLifecycleStateEnum = "INACTIVE" + FilesystemSnapshotPolicySummaryLifecycleStateFailed FilesystemSnapshotPolicySummaryLifecycleStateEnum = "FAILED" +) + +var mappingFilesystemSnapshotPolicySummaryLifecycleStateEnum = map[string]FilesystemSnapshotPolicySummaryLifecycleStateEnum{ + "CREATING": FilesystemSnapshotPolicySummaryLifecycleStateCreating, + "ACTIVE": FilesystemSnapshotPolicySummaryLifecycleStateActive, + "DELETING": FilesystemSnapshotPolicySummaryLifecycleStateDeleting, + "DELETED": FilesystemSnapshotPolicySummaryLifecycleStateDeleted, + "INACTIVE": FilesystemSnapshotPolicySummaryLifecycleStateInactive, + "FAILED": FilesystemSnapshotPolicySummaryLifecycleStateFailed, +} + +var mappingFilesystemSnapshotPolicySummaryLifecycleStateEnumLowerCase = map[string]FilesystemSnapshotPolicySummaryLifecycleStateEnum{ + "creating": FilesystemSnapshotPolicySummaryLifecycleStateCreating, + "active": FilesystemSnapshotPolicySummaryLifecycleStateActive, + "deleting": FilesystemSnapshotPolicySummaryLifecycleStateDeleting, + "deleted": FilesystemSnapshotPolicySummaryLifecycleStateDeleted, + "inactive": FilesystemSnapshotPolicySummaryLifecycleStateInactive, + "failed": FilesystemSnapshotPolicySummaryLifecycleStateFailed, +} + +// GetFilesystemSnapshotPolicySummaryLifecycleStateEnumValues Enumerates the set of values for FilesystemSnapshotPolicySummaryLifecycleStateEnum +func GetFilesystemSnapshotPolicySummaryLifecycleStateEnumValues() []FilesystemSnapshotPolicySummaryLifecycleStateEnum { + values := make([]FilesystemSnapshotPolicySummaryLifecycleStateEnum, 0) + for _, v := range mappingFilesystemSnapshotPolicySummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetFilesystemSnapshotPolicySummaryLifecycleStateEnumStringValues Enumerates the set of values in String for FilesystemSnapshotPolicySummaryLifecycleStateEnum +func GetFilesystemSnapshotPolicySummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "INACTIVE", + "FAILED", + } +} + +// GetMappingFilesystemSnapshotPolicySummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingFilesystemSnapshotPolicySummaryLifecycleStateEnum(val string) (FilesystemSnapshotPolicySummaryLifecycleStateEnum, bool) { + enum, ok := mappingFilesystemSnapshotPolicySummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_export_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go index fe9a43b525..15f2ceec7a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetExportRequest wrapper for the GetExport operation @@ -31,6 +33,10 @@ func (request GetExportRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetExportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetExportRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetExportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetExportResponse wrapper for the GetExport operation type GetExportResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_export_set_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go index 9e58c570bd..4e07b9d5c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_export_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_export_set_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetExportSetRequest wrapper for the GetExportSet operation @@ -31,6 +33,10 @@ func (request GetExportSetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetExportSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetExportSetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetExportSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetExportSetResponse wrapper for the GetExportSet operation type GetExportSetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_file_system_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go index d2544a3e10..c73285a242 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_file_system_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetFileSystemRequest wrapper for the GetFileSystem operation @@ -31,6 +33,10 @@ func (request GetFileSystemRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetFileSystemRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetFileSystemResponse wrapper for the GetFileSystem operation type GetFileSystemResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_filesystem_snapshot_policy_request_response.go new file mode 100644 index 0000000000..1b07017217 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_filesystem_snapshot_policy_request_response.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetFilesystemSnapshotPolicyRequest wrapper for the GetFilesystemSnapshotPolicy operation +type GetFilesystemSnapshotPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetFilesystemSnapshotPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetFilesystemSnapshotPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetFilesystemSnapshotPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetFilesystemSnapshotPolicyResponse wrapper for the GetFilesystemSnapshotPolicy operation +type GetFilesystemSnapshotPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The FilesystemSnapshotPolicy instance + FilesystemSnapshotPolicy `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetFilesystemSnapshotPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetFilesystemSnapshotPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_mount_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go index 474b347434..acc9331fa9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_mount_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetMountTargetRequest wrapper for the GetMountTarget operation @@ -31,6 +33,10 @@ func (request GetMountTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetMountTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetMountTargetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetMountTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetMountTargetResponse wrapper for the GetMountTarget operation type GetMountTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_outbound_connector_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go index 46718598f8..78125f0285 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_outbound_connector_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetOutboundConnectorRequest wrapper for the GetOutboundConnector operation @@ -31,6 +33,10 @@ func (request GetOutboundConnectorRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetOutboundConnectorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetOutboundConnectorRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetOutboundConnectorResponse wrapper for the GetOutboundConnector operation type GetOutboundConnectorResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_replication_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go index 3a20820620..029603faf6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetReplicationRequest wrapper for the GetReplication operation @@ -31,6 +33,10 @@ func (request GetReplicationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetReplicationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetReplicationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetReplicationResponse wrapper for the GetReplication operation type GetReplicationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_progress_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_progress_request_response.go new file mode 100644 index 0000000000..8b4d2922d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_progress_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetReplicationTargetProgressRequest wrapper for the GetReplicationTargetProgress operation +type GetReplicationTargetProgressRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. + ReplicationTargetId *string `mandatory:"true" contributesTo:"query" name:"replicationTargetId"` + + // The `progressPercentage` of the associated replication source job. + SourceProgressPercentage *int `mandatory:"true" contributesTo:"query" name:"sourceProgressPercentage"` + + // The `objectNum` of the associated replication. + ReplicationNum *string `mandatory:"false" contributesTo:"query" name:"replicationNum"` + + // The `objectNum` of the end point of the snapshot during replication operations. + NewSnapshotNum *string `mandatory:"false" contributesTo:"query" name:"newSnapshotNum"` + + // The `objectNum` of the start point of the snapshot during replication operations. + LastSnapshotNum *string `mandatory:"false" contributesTo:"query" name:"lastSnapshotNum"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetReplicationTargetProgressRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetReplicationTargetProgressRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetReplicationTargetProgressRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetReplicationTargetProgressRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetReplicationTargetProgressRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetReplicationTargetProgressResponse wrapper for the GetReplicationTargetProgress operation +type GetReplicationTargetProgressResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ReplicationTargetProgress instance + ReplicationTargetProgress `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetReplicationTargetProgressResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetReplicationTargetProgressResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_replication_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go index fafb06ecc3..bf2be96a07 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_replication_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetReplicationTargetRequest wrapper for the GetReplicationTarget operation @@ -31,6 +33,10 @@ func (request GetReplicationTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetReplicationTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetReplicationTargetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetReplicationTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetReplicationTargetResponse wrapper for the GetReplicationTarget operation type GetReplicationTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_request_response.go new file mode 100644 index 0000000000..a9c4b75183 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_request_response.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetShareRequest wrapper for the GetShare operation +type GetShareRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share. + ShareId *string `mandatory:"true" contributesTo:"path" name:"shareId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetShareRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetShareRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetShareRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetShareRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetShareRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetShareResponse wrapper for the GetShare operation +type GetShareResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Share instance + Share `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetShareResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetShareResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_set_request_response.go new file mode 100644 index 0000000000..e3521dc785 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_share_set_request_response.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetShareSetRequest wrapper for the GetShareSet operation +type GetShareSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + ShareSetId *string `mandatory:"true" contributesTo:"path" name:"shareSetId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetShareSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetShareSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetShareSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetShareSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetShareSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetShareSetResponse wrapper for the GetShareSet operation +type GetShareSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ShareSet instance + ShareSet `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetShareSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetShareSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_snapshot_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go index ae31e4f64e..c9385ff240 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_snapshot_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetSnapshotRequest wrapper for the GetSnapshot operation @@ -31,6 +33,10 @@ func (request GetSnapshotRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetSnapshotRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetSnapshotRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetSnapshotRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetSnapshotResponse wrapper for the GetSnapshot operation type GetSnapshotResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_tag_slug_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_tag_slug_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_tag_slug_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_tag_slug_request_response.go index 7f7e22fa8f..4b77c3d11b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/get_tag_slug_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/get_tag_slug_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTagSlugRequest wrapper for the GetTagSlug operation @@ -38,6 +40,10 @@ func (request GetTagSlugRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTagSlugRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request GetTagSlugRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTagSlugRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTagSlugResponse wrapper for the GetTagSlug operation type GetTagSlugResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos.go new file mode 100644 index 0000000000..47de6c1802 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Kerberos Allows administrator to configure a mount target to interact with the administrator's Kerberos Infrastructure. +type Kerberos struct { + + // The realm of the kerberos server a mount target interacts with. + KerberosRealm *string `mandatory:"true" json:"kerberosRealm"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KeyTab secret in the Vault. + KeyTabSecretId *string `mandatory:"false" json:"keyTabSecretId"` + + // Version of the KeyTab secret in the Vault to use. + CurrentKeyTabSecretVersion *int `mandatory:"false" json:"currentKeyTabSecretVersion"` + + // Version of the KeyTab secert in the Vault to use as a backup. + BackupKeyTabSecretVersion *int `mandatory:"false" json:"backupKeyTabSecretVersion"` + + // Specifies whether to Enable or Disbale Kerberos. + IsKerberosEnabled *bool `mandatory:"false" json:"isKerberosEnabled"` + + // Specifies to allow the use of weaker ciphers if true. + // If false only aes256-cts-hmac-sha384-192, aes128-cts-hmac-sha256-128 are allowed. + IsWeakCiphersAllowed *bool `mandatory:"false" json:"isWeakCiphersAllowed"` +} + +func (m Kerberos) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Kerberos) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos_keytab_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos_keytab_entry.go new file mode 100644 index 0000000000..6924fe088e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/kerberos_keytab_entry.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// KerberosKeytabEntry Details of each keytab entry read from Keytab file. +type KerberosKeytabEntry struct { + + // Keytab principal. + Principal *string `mandatory:"true" json:"principal"` + + // Encryption type with with keytab was generated. + // Secure: aes128-cts-hmac-sha256-128 + // Secure: aes256-cts-hmac-sha384-192 + // Less Secure: aes128-cts-hmac-sha1-96 + // Less Secure: aes256-cts-hmac-sha1-96 + EncryptionType KerberosKeytabEntryEncryptionTypeEnum `mandatory:"true" json:"encryptionType"` + + // Kerberos kvno (key version number) for key in keytab entry. + KeyVersionNumber *int64 `mandatory:"true" json:"keyVersionNumber"` +} + +func (m KerberosKeytabEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m KerberosKeytabEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingKerberosKeytabEntryEncryptionTypeEnum(string(m.EncryptionType)); !ok && m.EncryptionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EncryptionType: %s. Supported values are: %s.", m.EncryptionType, strings.Join(GetKerberosKeytabEntryEncryptionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// KerberosKeytabEntryEncryptionTypeEnum Enum with underlying type: string +type KerberosKeytabEntryEncryptionTypeEnum string + +// Set of constants representing the allowable values for KerberosKeytabEntryEncryptionTypeEnum +const ( + KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha256128 KerberosKeytabEntryEncryptionTypeEnum = "AES128_CTS_HMAC_SHA256_128" + KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha384192 KerberosKeytabEntryEncryptionTypeEnum = "AES256_CTS_HMAC_SHA384_192" + KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha196 KerberosKeytabEntryEncryptionTypeEnum = "AES128_CTS_HMAC_SHA1_96" + KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha196 KerberosKeytabEntryEncryptionTypeEnum = "AES256_CTS_HMAC_SHA1_96" +) + +var mappingKerberosKeytabEntryEncryptionTypeEnum = map[string]KerberosKeytabEntryEncryptionTypeEnum{ + "AES128_CTS_HMAC_SHA256_128": KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha256128, + "AES256_CTS_HMAC_SHA384_192": KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha384192, + "AES128_CTS_HMAC_SHA1_96": KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha196, + "AES256_CTS_HMAC_SHA1_96": KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha196, +} + +var mappingKerberosKeytabEntryEncryptionTypeEnumLowerCase = map[string]KerberosKeytabEntryEncryptionTypeEnum{ + "aes128_cts_hmac_sha256_128": KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha256128, + "aes256_cts_hmac_sha384_192": KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha384192, + "aes128_cts_hmac_sha1_96": KerberosKeytabEntryEncryptionTypeAes128CtsHmacSha196, + "aes256_cts_hmac_sha1_96": KerberosKeytabEntryEncryptionTypeAes256CtsHmacSha196, +} + +// GetKerberosKeytabEntryEncryptionTypeEnumValues Enumerates the set of values for KerberosKeytabEntryEncryptionTypeEnum +func GetKerberosKeytabEntryEncryptionTypeEnumValues() []KerberosKeytabEntryEncryptionTypeEnum { + values := make([]KerberosKeytabEntryEncryptionTypeEnum, 0) + for _, v := range mappingKerberosKeytabEntryEncryptionTypeEnum { + values = append(values, v) + } + return values +} + +// GetKerberosKeytabEntryEncryptionTypeEnumStringValues Enumerates the set of values in String for KerberosKeytabEntryEncryptionTypeEnum +func GetKerberosKeytabEntryEncryptionTypeEnumStringValues() []string { + return []string{ + "AES128_CTS_HMAC_SHA256_128", + "AES256_CTS_HMAC_SHA384_192", + "AES128_CTS_HMAC_SHA1_96", + "AES256_CTS_HMAC_SHA1_96", + } +} + +// GetMappingKerberosKeytabEntryEncryptionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingKerberosKeytabEntryEncryptionTypeEnum(val string) (KerberosKeytabEntryEncryptionTypeEnum, bool) { + enum, ok := mappingKerberosKeytabEntryEncryptionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/key_tab_secret_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/key_tab_secret_details.go new file mode 100644 index 0000000000..86cd42dd57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/key_tab_secret_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// KeyTabSecretDetails Secret details of KeyTabs in Vault. +type KeyTabSecretDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KeyTab secret in the Vault. + KeyTabSecretId *string `mandatory:"true" json:"keyTabSecretId"` + + // Version of the KeyTab secret in the Vault to use. + CurrentKeyTabSecretVersion *int `mandatory:"true" json:"currentKeyTabSecretVersion"` + + // Version of the KeyTab secret in the Vault to use as a backup. + BackupKeyTabSecretVersion *int `mandatory:"false" json:"backupKeyTabSecretVersion"` +} + +func (m KeyTabSecretDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m KeyTabSecretDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go new file mode 100644 index 0000000000..07dae7e782 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account.go @@ -0,0 +1,142 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LdapBindAccount Account details for LDAP bind account from outbound connector. +type LdapBindAccount struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + Id *string `mandatory:"true" json:"id"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My outbound connector` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the outbound connector was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Array of server endpoints to use while trying to connect while using LDAP bind account + Endpoints []Endpoint `mandatory:"true" json:"endpoints"` + + // The LDAP Distinguished name of the account. + BindDistinguishedName *string `mandatory:"true" json:"bindDistinguishedName"` + + // The availability domain the outbound connector is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the password for the LDAP bind account in the Vault. + PasswordSecretId *string `mandatory:"false" json:"passwordSecretId"` + + // Version of the password secret in the Vault to use. + PasswordSecretVersion *int `mandatory:"false" json:"passwordSecretVersion"` + + // The current state of this outbound connector. + LifecycleState OutboundConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m LdapBindAccount) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetCompartmentId returns CompartmentId +func (m LdapBindAccount) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetId returns Id +func (m LdapBindAccount) GetId() *string { + return m.Id +} + +//GetLifecycleState returns LifecycleState +func (m LdapBindAccount) GetLifecycleState() OutboundConnectorLifecycleStateEnum { + return m.LifecycleState +} + +//GetDisplayName returns DisplayName +func (m LdapBindAccount) GetDisplayName() *string { + return m.DisplayName +} + +//GetTimeCreated returns TimeCreated +func (m LdapBindAccount) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetFreeformTags returns FreeformTags +func (m LdapBindAccount) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m LdapBindAccount) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m LdapBindAccount) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LdapBindAccount) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingOutboundConnectorLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOutboundConnectorLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m LdapBindAccount) MarshalJSON() (buff []byte, e error) { + type MarshalTypeLdapBindAccount LdapBindAccount + s := struct { + DiscriminatorParam string `json:"connectorType"` + MarshalTypeLdapBindAccount + }{ + "LDAPBIND", + (MarshalTypeLdapBindAccount)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account_summary.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go index 0bce419fa3..abd12dcd0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/ldap_bind_account_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_bind_account_summary.go @@ -1,17 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // File Storage API // -// API for the File Storage service. Use this API to manage file systems, mount targets, and snapshots. For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). // package filestorage import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // LdapBindAccountSummary Summary information for LDAP bind account from outbound connector. @@ -103,6 +106,21 @@ func (m LdapBindAccountSummary) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LdapBindAccountSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingOutboundConnectorSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOutboundConnectorSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m LdapBindAccountSummary) MarshalJSON() (buff []byte, e error) { type MarshalTypeLdapBindAccountSummary LdapBindAccountSummary diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_idmap.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_idmap.go new file mode 100644 index 0000000000..f45e49744f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/ldap_idmap.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LdapIdmap Mount Target details about the LDAP ID Map configuration. +type LdapIdmap struct { + + // All LDAP searches are recursive starting at this Base Distinguished user name. + BaseDistinguishedUserName *string `mandatory:"true" json:"baseDistinguishedUserName"` + + // All LDAP searches are recursive starting at this Base Distinguished group name. + BaseDistinguishedGroupName *string `mandatory:"true" json:"baseDistinguishedGroupName"` + + // Schema type of LDAP account. + SchemaType LdapIdmapSchemaTypeEnum `mandatory:"false" json:"schemaType,omitempty"` + + // Integer for how often the mount target should recheck LDAP for updates. + CacheRefreshIntervalSeconds *int `mandatory:"false" json:"cacheRefreshIntervalSeconds"` + + // Integer for how long cached entries may be used. + CacheLifetimeSeconds *int `mandatory:"false" json:"cacheLifetimeSeconds"` + + // Integer for how long to cache if idmap information is missing. + NegativeCacheLifetimeSeconds *int `mandatory:"false" json:"negativeCacheLifetimeSeconds"` + + // OCID of the first LDAP Account + OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` + + // OCID of the second LDAP Account + OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` +} + +func (m LdapIdmap) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LdapIdmap) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingLdapIdmapSchemaTypeEnum(string(m.SchemaType)); !ok && m.SchemaType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SchemaType: %s. Supported values are: %s.", m.SchemaType, strings.Join(GetLdapIdmapSchemaTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LdapIdmapSchemaTypeEnum Enum with underlying type: string +type LdapIdmapSchemaTypeEnum string + +// Set of constants representing the allowable values for LdapIdmapSchemaTypeEnum +const ( + LdapIdmapSchemaTypeRfc2307 LdapIdmapSchemaTypeEnum = "RFC2307" +) + +var mappingLdapIdmapSchemaTypeEnum = map[string]LdapIdmapSchemaTypeEnum{ + "RFC2307": LdapIdmapSchemaTypeRfc2307, +} + +var mappingLdapIdmapSchemaTypeEnumLowerCase = map[string]LdapIdmapSchemaTypeEnum{ + "rfc2307": LdapIdmapSchemaTypeRfc2307, +} + +// GetLdapIdmapSchemaTypeEnumValues Enumerates the set of values for LdapIdmapSchemaTypeEnum +func GetLdapIdmapSchemaTypeEnumValues() []LdapIdmapSchemaTypeEnum { + values := make([]LdapIdmapSchemaTypeEnum, 0) + for _, v := range mappingLdapIdmapSchemaTypeEnum { + values = append(values, v) + } + return values +} + +// GetLdapIdmapSchemaTypeEnumStringValues Enumerates the set of values in String for LdapIdmapSchemaTypeEnum +func GetLdapIdmapSchemaTypeEnumStringValues() []string { + return []string{ + "RFC2307", + } +} + +// GetMappingLdapIdmapSchemaTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLdapIdmapSchemaTypeEnum(val string) (LdapIdmapSchemaTypeEnum, bool) { + enum, ok := mappingLdapIdmapSchemaTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go new file mode 100644 index 0000000000..cc4d3f9dde --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_export_sets_request_response.go @@ -0,0 +1,282 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListExportSetsRequest wrapper for the ListExportSets operation +type ListExportSetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListExportSetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListExportSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListExportSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListExportSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListExportSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListExportSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListExportSetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListExportSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListExportSetsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListExportSetsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListExportSetsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListExportSetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListExportSetsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListExportSetsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListExportSetsResponse wrapper for the ListExportSets operation +type ListExportSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ExportSetSummary instances + Items []ExportSetSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListExportSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListExportSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListExportSetsLifecycleStateEnum Enum with underlying type: string +type ListExportSetsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListExportSetsLifecycleStateEnum +const ( + ListExportSetsLifecycleStateCreating ListExportSetsLifecycleStateEnum = "CREATING" + ListExportSetsLifecycleStateActive ListExportSetsLifecycleStateEnum = "ACTIVE" + ListExportSetsLifecycleStateDeleting ListExportSetsLifecycleStateEnum = "DELETING" + ListExportSetsLifecycleStateDeleted ListExportSetsLifecycleStateEnum = "DELETED" + ListExportSetsLifecycleStateFailed ListExportSetsLifecycleStateEnum = "FAILED" +) + +var mappingListExportSetsLifecycleStateEnum = map[string]ListExportSetsLifecycleStateEnum{ + "CREATING": ListExportSetsLifecycleStateCreating, + "ACTIVE": ListExportSetsLifecycleStateActive, + "DELETING": ListExportSetsLifecycleStateDeleting, + "DELETED": ListExportSetsLifecycleStateDeleted, + "FAILED": ListExportSetsLifecycleStateFailed, +} + +var mappingListExportSetsLifecycleStateEnumLowerCase = map[string]ListExportSetsLifecycleStateEnum{ + "creating": ListExportSetsLifecycleStateCreating, + "active": ListExportSetsLifecycleStateActive, + "deleting": ListExportSetsLifecycleStateDeleting, + "deleted": ListExportSetsLifecycleStateDeleted, + "failed": ListExportSetsLifecycleStateFailed, +} + +// GetListExportSetsLifecycleStateEnumValues Enumerates the set of values for ListExportSetsLifecycleStateEnum +func GetListExportSetsLifecycleStateEnumValues() []ListExportSetsLifecycleStateEnum { + values := make([]ListExportSetsLifecycleStateEnum, 0) + for _, v := range mappingListExportSetsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListExportSetsLifecycleStateEnumStringValues Enumerates the set of values in String for ListExportSetsLifecycleStateEnum +func GetListExportSetsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListExportSetsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExportSetsLifecycleStateEnum(val string) (ListExportSetsLifecycleStateEnum, bool) { + enum, ok := mappingListExportSetsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListExportSetsSortByEnum Enum with underlying type: string +type ListExportSetsSortByEnum string + +// Set of constants representing the allowable values for ListExportSetsSortByEnum +const ( + ListExportSetsSortByTimecreated ListExportSetsSortByEnum = "TIMECREATED" + ListExportSetsSortByDisplayname ListExportSetsSortByEnum = "DISPLAYNAME" +) + +var mappingListExportSetsSortByEnum = map[string]ListExportSetsSortByEnum{ + "TIMECREATED": ListExportSetsSortByTimecreated, + "DISPLAYNAME": ListExportSetsSortByDisplayname, +} + +var mappingListExportSetsSortByEnumLowerCase = map[string]ListExportSetsSortByEnum{ + "timecreated": ListExportSetsSortByTimecreated, + "displayname": ListExportSetsSortByDisplayname, +} + +// GetListExportSetsSortByEnumValues Enumerates the set of values for ListExportSetsSortByEnum +func GetListExportSetsSortByEnumValues() []ListExportSetsSortByEnum { + values := make([]ListExportSetsSortByEnum, 0) + for _, v := range mappingListExportSetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListExportSetsSortByEnumStringValues Enumerates the set of values in String for ListExportSetsSortByEnum +func GetListExportSetsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListExportSetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExportSetsSortByEnum(val string) (ListExportSetsSortByEnum, bool) { + enum, ok := mappingListExportSetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListExportSetsSortOrderEnum Enum with underlying type: string +type ListExportSetsSortOrderEnum string + +// Set of constants representing the allowable values for ListExportSetsSortOrderEnum +const ( + ListExportSetsSortOrderAsc ListExportSetsSortOrderEnum = "ASC" + ListExportSetsSortOrderDesc ListExportSetsSortOrderEnum = "DESC" +) + +var mappingListExportSetsSortOrderEnum = map[string]ListExportSetsSortOrderEnum{ + "ASC": ListExportSetsSortOrderAsc, + "DESC": ListExportSetsSortOrderDesc, +} + +var mappingListExportSetsSortOrderEnumLowerCase = map[string]ListExportSetsSortOrderEnum{ + "asc": ListExportSetsSortOrderAsc, + "desc": ListExportSetsSortOrderDesc, +} + +// GetListExportSetsSortOrderEnumValues Enumerates the set of values for ListExportSetsSortOrderEnum +func GetListExportSetsSortOrderEnumValues() []ListExportSetsSortOrderEnum { + values := make([]ListExportSetsSortOrderEnum, 0) + for _, v := range mappingListExportSetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListExportSetsSortOrderEnumStringValues Enumerates the set of values in String for ListExportSetsSortOrderEnum +func GetListExportSetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListExportSetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExportSetsSortOrderEnum(val string) (ListExportSetsSortOrderEnum, bool) { + enum, ok := mappingListExportSetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go new file mode 100644 index 0000000000..565252dcfd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_exports_request_response.go @@ -0,0 +1,280 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListExportsRequest wrapper for the ListExports operation +type ListExportsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. + ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListExportsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by path, results are + // shown in ascending alphanumeric order. + SortBy ListExportsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListExportsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListExportsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListExportsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListExportsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListExportsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListExportsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListExportsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListExportsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListExportsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListExportsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListExportsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListExportsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListExportsResponse wrapper for the ListExports operation +type ListExportsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ExportSummary instances + Items []ExportSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListExportsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListExportsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListExportsLifecycleStateEnum Enum with underlying type: string +type ListExportsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListExportsLifecycleStateEnum +const ( + ListExportsLifecycleStateCreating ListExportsLifecycleStateEnum = "CREATING" + ListExportsLifecycleStateActive ListExportsLifecycleStateEnum = "ACTIVE" + ListExportsLifecycleStateDeleting ListExportsLifecycleStateEnum = "DELETING" + ListExportsLifecycleStateDeleted ListExportsLifecycleStateEnum = "DELETED" + ListExportsLifecycleStateFailed ListExportsLifecycleStateEnum = "FAILED" +) + +var mappingListExportsLifecycleStateEnum = map[string]ListExportsLifecycleStateEnum{ + "CREATING": ListExportsLifecycleStateCreating, + "ACTIVE": ListExportsLifecycleStateActive, + "DELETING": ListExportsLifecycleStateDeleting, + "DELETED": ListExportsLifecycleStateDeleted, + "FAILED": ListExportsLifecycleStateFailed, +} + +var mappingListExportsLifecycleStateEnumLowerCase = map[string]ListExportsLifecycleStateEnum{ + "creating": ListExportsLifecycleStateCreating, + "active": ListExportsLifecycleStateActive, + "deleting": ListExportsLifecycleStateDeleting, + "deleted": ListExportsLifecycleStateDeleted, + "failed": ListExportsLifecycleStateFailed, +} + +// GetListExportsLifecycleStateEnumValues Enumerates the set of values for ListExportsLifecycleStateEnum +func GetListExportsLifecycleStateEnumValues() []ListExportsLifecycleStateEnum { + values := make([]ListExportsLifecycleStateEnum, 0) + for _, v := range mappingListExportsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListExportsLifecycleStateEnumStringValues Enumerates the set of values in String for ListExportsLifecycleStateEnum +func GetListExportsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListExportsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExportsLifecycleStateEnum(val string) (ListExportsLifecycleStateEnum, bool) { + enum, ok := mappingListExportsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListExportsSortByEnum Enum with underlying type: string +type ListExportsSortByEnum string + +// Set of constants representing the allowable values for ListExportsSortByEnum +const ( + ListExportsSortByTimecreated ListExportsSortByEnum = "TIMECREATED" + ListExportsSortByPath ListExportsSortByEnum = "PATH" +) + +var mappingListExportsSortByEnum = map[string]ListExportsSortByEnum{ + "TIMECREATED": ListExportsSortByTimecreated, + "PATH": ListExportsSortByPath, +} + +var mappingListExportsSortByEnumLowerCase = map[string]ListExportsSortByEnum{ + "timecreated": ListExportsSortByTimecreated, + "path": ListExportsSortByPath, +} + +// GetListExportsSortByEnumValues Enumerates the set of values for ListExportsSortByEnum +func GetListExportsSortByEnumValues() []ListExportsSortByEnum { + values := make([]ListExportsSortByEnum, 0) + for _, v := range mappingListExportsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListExportsSortByEnumStringValues Enumerates the set of values in String for ListExportsSortByEnum +func GetListExportsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "PATH", + } +} + +// GetMappingListExportsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExportsSortByEnum(val string) (ListExportsSortByEnum, bool) { + enum, ok := mappingListExportsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListExportsSortOrderEnum Enum with underlying type: string +type ListExportsSortOrderEnum string + +// Set of constants representing the allowable values for ListExportsSortOrderEnum +const ( + ListExportsSortOrderAsc ListExportsSortOrderEnum = "ASC" + ListExportsSortOrderDesc ListExportsSortOrderEnum = "DESC" +) + +var mappingListExportsSortOrderEnum = map[string]ListExportsSortOrderEnum{ + "ASC": ListExportsSortOrderAsc, + "DESC": ListExportsSortOrderDesc, +} + +var mappingListExportsSortOrderEnumLowerCase = map[string]ListExportsSortOrderEnum{ + "asc": ListExportsSortOrderAsc, + "desc": ListExportsSortOrderDesc, +} + +// GetListExportsSortOrderEnumValues Enumerates the set of values for ListExportsSortOrderEnum +func GetListExportsSortOrderEnumValues() []ListExportsSortOrderEnum { + values := make([]ListExportsSortOrderEnum, 0) + for _, v := range mappingListExportsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListExportsSortOrderEnumStringValues Enumerates the set of values in String for ListExportsSortOrderEnum +func GetListExportsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListExportsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListExportsSortOrderEnum(val string) (ListExportsSortOrderEnum, bool) { + enum, ok := mappingListExportsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go new file mode 100644 index 0000000000..b6042a4437 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_file_systems_request_response.go @@ -0,0 +1,292 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListFileSystemsRequest wrapper for the ListFileSystems operation +type ListFileSystemsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListFileSystemsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot used to create a cloned file system. See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + SourceSnapshotId *string `mandatory:"false" contributesTo:"query" name:"sourceSnapshotId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system that contains the source snapshot of a cloned file system. See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + ParentFileSystemId *string `mandatory:"false" contributesTo:"query" name:"parentFileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy + // that is associated with the filesystems or used to create the snapshots. + FilesystemSnapshotPolicyId *string `mandatory:"false" contributesTo:"query" name:"filesystemSnapshotPolicyId"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListFileSystemsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListFileSystemsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListFileSystemsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListFileSystemsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListFileSystemsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListFileSystemsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFileSystemsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListFileSystemsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListFileSystemsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListFileSystemsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListFileSystemsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListFileSystemsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListFileSystemsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListFileSystemsResponse wrapper for the ListFileSystems operation +type ListFileSystemsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []FileSystemSummary instances + Items []FileSystemSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListFileSystemsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListFileSystemsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListFileSystemsLifecycleStateEnum Enum with underlying type: string +type ListFileSystemsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListFileSystemsLifecycleStateEnum +const ( + ListFileSystemsLifecycleStateCreating ListFileSystemsLifecycleStateEnum = "CREATING" + ListFileSystemsLifecycleStateActive ListFileSystemsLifecycleStateEnum = "ACTIVE" + ListFileSystemsLifecycleStateDeleting ListFileSystemsLifecycleStateEnum = "DELETING" + ListFileSystemsLifecycleStateDeleted ListFileSystemsLifecycleStateEnum = "DELETED" + ListFileSystemsLifecycleStateFailed ListFileSystemsLifecycleStateEnum = "FAILED" +) + +var mappingListFileSystemsLifecycleStateEnum = map[string]ListFileSystemsLifecycleStateEnum{ + "CREATING": ListFileSystemsLifecycleStateCreating, + "ACTIVE": ListFileSystemsLifecycleStateActive, + "DELETING": ListFileSystemsLifecycleStateDeleting, + "DELETED": ListFileSystemsLifecycleStateDeleted, + "FAILED": ListFileSystemsLifecycleStateFailed, +} + +var mappingListFileSystemsLifecycleStateEnumLowerCase = map[string]ListFileSystemsLifecycleStateEnum{ + "creating": ListFileSystemsLifecycleStateCreating, + "active": ListFileSystemsLifecycleStateActive, + "deleting": ListFileSystemsLifecycleStateDeleting, + "deleted": ListFileSystemsLifecycleStateDeleted, + "failed": ListFileSystemsLifecycleStateFailed, +} + +// GetListFileSystemsLifecycleStateEnumValues Enumerates the set of values for ListFileSystemsLifecycleStateEnum +func GetListFileSystemsLifecycleStateEnumValues() []ListFileSystemsLifecycleStateEnum { + values := make([]ListFileSystemsLifecycleStateEnum, 0) + for _, v := range mappingListFileSystemsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListFileSystemsLifecycleStateEnumStringValues Enumerates the set of values in String for ListFileSystemsLifecycleStateEnum +func GetListFileSystemsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListFileSystemsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFileSystemsLifecycleStateEnum(val string) (ListFileSystemsLifecycleStateEnum, bool) { + enum, ok := mappingListFileSystemsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListFileSystemsSortByEnum Enum with underlying type: string +type ListFileSystemsSortByEnum string + +// Set of constants representing the allowable values for ListFileSystemsSortByEnum +const ( + ListFileSystemsSortByTimecreated ListFileSystemsSortByEnum = "TIMECREATED" + ListFileSystemsSortByDisplayname ListFileSystemsSortByEnum = "DISPLAYNAME" +) + +var mappingListFileSystemsSortByEnum = map[string]ListFileSystemsSortByEnum{ + "TIMECREATED": ListFileSystemsSortByTimecreated, + "DISPLAYNAME": ListFileSystemsSortByDisplayname, +} + +var mappingListFileSystemsSortByEnumLowerCase = map[string]ListFileSystemsSortByEnum{ + "timecreated": ListFileSystemsSortByTimecreated, + "displayname": ListFileSystemsSortByDisplayname, +} + +// GetListFileSystemsSortByEnumValues Enumerates the set of values for ListFileSystemsSortByEnum +func GetListFileSystemsSortByEnumValues() []ListFileSystemsSortByEnum { + values := make([]ListFileSystemsSortByEnum, 0) + for _, v := range mappingListFileSystemsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListFileSystemsSortByEnumStringValues Enumerates the set of values in String for ListFileSystemsSortByEnum +func GetListFileSystemsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListFileSystemsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFileSystemsSortByEnum(val string) (ListFileSystemsSortByEnum, bool) { + enum, ok := mappingListFileSystemsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListFileSystemsSortOrderEnum Enum with underlying type: string +type ListFileSystemsSortOrderEnum string + +// Set of constants representing the allowable values for ListFileSystemsSortOrderEnum +const ( + ListFileSystemsSortOrderAsc ListFileSystemsSortOrderEnum = "ASC" + ListFileSystemsSortOrderDesc ListFileSystemsSortOrderEnum = "DESC" +) + +var mappingListFileSystemsSortOrderEnum = map[string]ListFileSystemsSortOrderEnum{ + "ASC": ListFileSystemsSortOrderAsc, + "DESC": ListFileSystemsSortOrderDesc, +} + +var mappingListFileSystemsSortOrderEnumLowerCase = map[string]ListFileSystemsSortOrderEnum{ + "asc": ListFileSystemsSortOrderAsc, + "desc": ListFileSystemsSortOrderDesc, +} + +// GetListFileSystemsSortOrderEnumValues Enumerates the set of values for ListFileSystemsSortOrderEnum +func GetListFileSystemsSortOrderEnumValues() []ListFileSystemsSortOrderEnum { + values := make([]ListFileSystemsSortOrderEnum, 0) + for _, v := range mappingListFileSystemsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListFileSystemsSortOrderEnumStringValues Enumerates the set of values in String for ListFileSystemsSortOrderEnum +func GetListFileSystemsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListFileSystemsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFileSystemsSortOrderEnum(val string) (ListFileSystemsSortOrderEnum, bool) { + enum, ok := mappingListFileSystemsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_filesystem_snapshot_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_filesystem_snapshot_policies_request_response.go new file mode 100644 index 0000000000..1051c90820 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_filesystem_snapshot_policies_request_response.go @@ -0,0 +1,282 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListFilesystemSnapshotPoliciesRequest wrapper for the ListFilesystemSnapshotPolicies operation +type ListFilesystemSnapshotPoliciesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListFilesystemSnapshotPoliciesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by displayName, results are + // shown in ascending alphanumeric order. + SortBy ListFilesystemSnapshotPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListFilesystemSnapshotPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListFilesystemSnapshotPoliciesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListFilesystemSnapshotPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListFilesystemSnapshotPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListFilesystemSnapshotPoliciesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFilesystemSnapshotPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListFilesystemSnapshotPoliciesLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListFilesystemSnapshotPoliciesLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListFilesystemSnapshotPoliciesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListFilesystemSnapshotPoliciesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListFilesystemSnapshotPoliciesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListFilesystemSnapshotPoliciesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListFilesystemSnapshotPoliciesResponse wrapper for the ListFilesystemSnapshotPolicies operation +type ListFilesystemSnapshotPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []FilesystemSnapshotPolicySummary instances + Items []FilesystemSnapshotPolicySummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListFilesystemSnapshotPoliciesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListFilesystemSnapshotPoliciesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListFilesystemSnapshotPoliciesLifecycleStateEnum Enum with underlying type: string +type ListFilesystemSnapshotPoliciesLifecycleStateEnum string + +// Set of constants representing the allowable values for ListFilesystemSnapshotPoliciesLifecycleStateEnum +const ( + ListFilesystemSnapshotPoliciesLifecycleStateCreating ListFilesystemSnapshotPoliciesLifecycleStateEnum = "CREATING" + ListFilesystemSnapshotPoliciesLifecycleStateActive ListFilesystemSnapshotPoliciesLifecycleStateEnum = "ACTIVE" + ListFilesystemSnapshotPoliciesLifecycleStateDeleting ListFilesystemSnapshotPoliciesLifecycleStateEnum = "DELETING" + ListFilesystemSnapshotPoliciesLifecycleStateDeleted ListFilesystemSnapshotPoliciesLifecycleStateEnum = "DELETED" + ListFilesystemSnapshotPoliciesLifecycleStateFailed ListFilesystemSnapshotPoliciesLifecycleStateEnum = "FAILED" +) + +var mappingListFilesystemSnapshotPoliciesLifecycleStateEnum = map[string]ListFilesystemSnapshotPoliciesLifecycleStateEnum{ + "CREATING": ListFilesystemSnapshotPoliciesLifecycleStateCreating, + "ACTIVE": ListFilesystemSnapshotPoliciesLifecycleStateActive, + "DELETING": ListFilesystemSnapshotPoliciesLifecycleStateDeleting, + "DELETED": ListFilesystemSnapshotPoliciesLifecycleStateDeleted, + "FAILED": ListFilesystemSnapshotPoliciesLifecycleStateFailed, +} + +var mappingListFilesystemSnapshotPoliciesLifecycleStateEnumLowerCase = map[string]ListFilesystemSnapshotPoliciesLifecycleStateEnum{ + "creating": ListFilesystemSnapshotPoliciesLifecycleStateCreating, + "active": ListFilesystemSnapshotPoliciesLifecycleStateActive, + "deleting": ListFilesystemSnapshotPoliciesLifecycleStateDeleting, + "deleted": ListFilesystemSnapshotPoliciesLifecycleStateDeleted, + "failed": ListFilesystemSnapshotPoliciesLifecycleStateFailed, +} + +// GetListFilesystemSnapshotPoliciesLifecycleStateEnumValues Enumerates the set of values for ListFilesystemSnapshotPoliciesLifecycleStateEnum +func GetListFilesystemSnapshotPoliciesLifecycleStateEnumValues() []ListFilesystemSnapshotPoliciesLifecycleStateEnum { + values := make([]ListFilesystemSnapshotPoliciesLifecycleStateEnum, 0) + for _, v := range mappingListFilesystemSnapshotPoliciesLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListFilesystemSnapshotPoliciesLifecycleStateEnumStringValues Enumerates the set of values in String for ListFilesystemSnapshotPoliciesLifecycleStateEnum +func GetListFilesystemSnapshotPoliciesLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListFilesystemSnapshotPoliciesLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFilesystemSnapshotPoliciesLifecycleStateEnum(val string) (ListFilesystemSnapshotPoliciesLifecycleStateEnum, bool) { + enum, ok := mappingListFilesystemSnapshotPoliciesLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListFilesystemSnapshotPoliciesSortByEnum Enum with underlying type: string +type ListFilesystemSnapshotPoliciesSortByEnum string + +// Set of constants representing the allowable values for ListFilesystemSnapshotPoliciesSortByEnum +const ( + ListFilesystemSnapshotPoliciesSortByTimecreated ListFilesystemSnapshotPoliciesSortByEnum = "TIMECREATED" + ListFilesystemSnapshotPoliciesSortByDisplayname ListFilesystemSnapshotPoliciesSortByEnum = "DISPLAYNAME" +) + +var mappingListFilesystemSnapshotPoliciesSortByEnum = map[string]ListFilesystemSnapshotPoliciesSortByEnum{ + "TIMECREATED": ListFilesystemSnapshotPoliciesSortByTimecreated, + "DISPLAYNAME": ListFilesystemSnapshotPoliciesSortByDisplayname, +} + +var mappingListFilesystemSnapshotPoliciesSortByEnumLowerCase = map[string]ListFilesystemSnapshotPoliciesSortByEnum{ + "timecreated": ListFilesystemSnapshotPoliciesSortByTimecreated, + "displayname": ListFilesystemSnapshotPoliciesSortByDisplayname, +} + +// GetListFilesystemSnapshotPoliciesSortByEnumValues Enumerates the set of values for ListFilesystemSnapshotPoliciesSortByEnum +func GetListFilesystemSnapshotPoliciesSortByEnumValues() []ListFilesystemSnapshotPoliciesSortByEnum { + values := make([]ListFilesystemSnapshotPoliciesSortByEnum, 0) + for _, v := range mappingListFilesystemSnapshotPoliciesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListFilesystemSnapshotPoliciesSortByEnumStringValues Enumerates the set of values in String for ListFilesystemSnapshotPoliciesSortByEnum +func GetListFilesystemSnapshotPoliciesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListFilesystemSnapshotPoliciesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFilesystemSnapshotPoliciesSortByEnum(val string) (ListFilesystemSnapshotPoliciesSortByEnum, bool) { + enum, ok := mappingListFilesystemSnapshotPoliciesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListFilesystemSnapshotPoliciesSortOrderEnum Enum with underlying type: string +type ListFilesystemSnapshotPoliciesSortOrderEnum string + +// Set of constants representing the allowable values for ListFilesystemSnapshotPoliciesSortOrderEnum +const ( + ListFilesystemSnapshotPoliciesSortOrderAsc ListFilesystemSnapshotPoliciesSortOrderEnum = "ASC" + ListFilesystemSnapshotPoliciesSortOrderDesc ListFilesystemSnapshotPoliciesSortOrderEnum = "DESC" +) + +var mappingListFilesystemSnapshotPoliciesSortOrderEnum = map[string]ListFilesystemSnapshotPoliciesSortOrderEnum{ + "ASC": ListFilesystemSnapshotPoliciesSortOrderAsc, + "DESC": ListFilesystemSnapshotPoliciesSortOrderDesc, +} + +var mappingListFilesystemSnapshotPoliciesSortOrderEnumLowerCase = map[string]ListFilesystemSnapshotPoliciesSortOrderEnum{ + "asc": ListFilesystemSnapshotPoliciesSortOrderAsc, + "desc": ListFilesystemSnapshotPoliciesSortOrderDesc, +} + +// GetListFilesystemSnapshotPoliciesSortOrderEnumValues Enumerates the set of values for ListFilesystemSnapshotPoliciesSortOrderEnum +func GetListFilesystemSnapshotPoliciesSortOrderEnumValues() []ListFilesystemSnapshotPoliciesSortOrderEnum { + values := make([]ListFilesystemSnapshotPoliciesSortOrderEnum, 0) + for _, v := range mappingListFilesystemSnapshotPoliciesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListFilesystemSnapshotPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListFilesystemSnapshotPoliciesSortOrderEnum +func GetListFilesystemSnapshotPoliciesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListFilesystemSnapshotPoliciesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListFilesystemSnapshotPoliciesSortOrderEnum(val string) (ListFilesystemSnapshotPoliciesSortOrderEnum, bool) { + enum, ok := mappingListFilesystemSnapshotPoliciesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go new file mode 100644 index 0000000000..1fc9a9eeca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_mount_targets_request_response.go @@ -0,0 +1,288 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListMountTargetsRequest wrapper for the ListMountTargets operation +type ListMountTargetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the export set. + ExportSetId *string `mandatory:"false" contributesTo:"query" name:"exportSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + ShareSetId *string `mandatory:"false" contributesTo:"query" name:"shareSetId"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListMountTargetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can choose either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListMountTargetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListMountTargetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListMountTargetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListMountTargetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListMountTargetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListMountTargetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListMountTargetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListMountTargetsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListMountTargetsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListMountTargetsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListMountTargetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListMountTargetsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListMountTargetsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListMountTargetsResponse wrapper for the ListMountTargets operation +type ListMountTargetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []MountTargetSummary instances + Items []MountTargetSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListMountTargetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListMountTargetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListMountTargetsLifecycleStateEnum Enum with underlying type: string +type ListMountTargetsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListMountTargetsLifecycleStateEnum +const ( + ListMountTargetsLifecycleStateCreating ListMountTargetsLifecycleStateEnum = "CREATING" + ListMountTargetsLifecycleStateActive ListMountTargetsLifecycleStateEnum = "ACTIVE" + ListMountTargetsLifecycleStateDeleting ListMountTargetsLifecycleStateEnum = "DELETING" + ListMountTargetsLifecycleStateDeleted ListMountTargetsLifecycleStateEnum = "DELETED" + ListMountTargetsLifecycleStateFailed ListMountTargetsLifecycleStateEnum = "FAILED" +) + +var mappingListMountTargetsLifecycleStateEnum = map[string]ListMountTargetsLifecycleStateEnum{ + "CREATING": ListMountTargetsLifecycleStateCreating, + "ACTIVE": ListMountTargetsLifecycleStateActive, + "DELETING": ListMountTargetsLifecycleStateDeleting, + "DELETED": ListMountTargetsLifecycleStateDeleted, + "FAILED": ListMountTargetsLifecycleStateFailed, +} + +var mappingListMountTargetsLifecycleStateEnumLowerCase = map[string]ListMountTargetsLifecycleStateEnum{ + "creating": ListMountTargetsLifecycleStateCreating, + "active": ListMountTargetsLifecycleStateActive, + "deleting": ListMountTargetsLifecycleStateDeleting, + "deleted": ListMountTargetsLifecycleStateDeleted, + "failed": ListMountTargetsLifecycleStateFailed, +} + +// GetListMountTargetsLifecycleStateEnumValues Enumerates the set of values for ListMountTargetsLifecycleStateEnum +func GetListMountTargetsLifecycleStateEnumValues() []ListMountTargetsLifecycleStateEnum { + values := make([]ListMountTargetsLifecycleStateEnum, 0) + for _, v := range mappingListMountTargetsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListMountTargetsLifecycleStateEnumStringValues Enumerates the set of values in String for ListMountTargetsLifecycleStateEnum +func GetListMountTargetsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListMountTargetsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMountTargetsLifecycleStateEnum(val string) (ListMountTargetsLifecycleStateEnum, bool) { + enum, ok := mappingListMountTargetsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMountTargetsSortByEnum Enum with underlying type: string +type ListMountTargetsSortByEnum string + +// Set of constants representing the allowable values for ListMountTargetsSortByEnum +const ( + ListMountTargetsSortByTimecreated ListMountTargetsSortByEnum = "TIMECREATED" + ListMountTargetsSortByDisplayname ListMountTargetsSortByEnum = "DISPLAYNAME" +) + +var mappingListMountTargetsSortByEnum = map[string]ListMountTargetsSortByEnum{ + "TIMECREATED": ListMountTargetsSortByTimecreated, + "DISPLAYNAME": ListMountTargetsSortByDisplayname, +} + +var mappingListMountTargetsSortByEnumLowerCase = map[string]ListMountTargetsSortByEnum{ + "timecreated": ListMountTargetsSortByTimecreated, + "displayname": ListMountTargetsSortByDisplayname, +} + +// GetListMountTargetsSortByEnumValues Enumerates the set of values for ListMountTargetsSortByEnum +func GetListMountTargetsSortByEnumValues() []ListMountTargetsSortByEnum { + values := make([]ListMountTargetsSortByEnum, 0) + for _, v := range mappingListMountTargetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListMountTargetsSortByEnumStringValues Enumerates the set of values in String for ListMountTargetsSortByEnum +func GetListMountTargetsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListMountTargetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMountTargetsSortByEnum(val string) (ListMountTargetsSortByEnum, bool) { + enum, ok := mappingListMountTargetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMountTargetsSortOrderEnum Enum with underlying type: string +type ListMountTargetsSortOrderEnum string + +// Set of constants representing the allowable values for ListMountTargetsSortOrderEnum +const ( + ListMountTargetsSortOrderAsc ListMountTargetsSortOrderEnum = "ASC" + ListMountTargetsSortOrderDesc ListMountTargetsSortOrderEnum = "DESC" +) + +var mappingListMountTargetsSortOrderEnum = map[string]ListMountTargetsSortOrderEnum{ + "ASC": ListMountTargetsSortOrderAsc, + "DESC": ListMountTargetsSortOrderDesc, +} + +var mappingListMountTargetsSortOrderEnumLowerCase = map[string]ListMountTargetsSortOrderEnum{ + "asc": ListMountTargetsSortOrderAsc, + "desc": ListMountTargetsSortOrderDesc, +} + +// GetListMountTargetsSortOrderEnumValues Enumerates the set of values for ListMountTargetsSortOrderEnum +func GetListMountTargetsSortOrderEnumValues() []ListMountTargetsSortOrderEnum { + values := make([]ListMountTargetsSortOrderEnum, 0) + for _, v := range mappingListMountTargetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListMountTargetsSortOrderEnumStringValues Enumerates the set of values in String for ListMountTargetsSortOrderEnum +func GetListMountTargetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListMountTargetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMountTargetsSortOrderEnum(val string) (ListMountTargetsSortOrderEnum, bool) { + enum, ok := mappingListMountTargetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go new file mode 100644 index 0000000000..fe3c86c35b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_outbound_connectors_request_response.go @@ -0,0 +1,282 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListOutboundConnectorsRequest wrapper for the ListOutboundConnectors operation +type ListOutboundConnectorsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListOutboundConnectorsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can choose either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListOutboundConnectorsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListOutboundConnectorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListOutboundConnectorsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListOutboundConnectorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListOutboundConnectorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListOutboundConnectorsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListOutboundConnectorsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListOutboundConnectorsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListOutboundConnectorsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListOutboundConnectorsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListOutboundConnectorsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListOutboundConnectorsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListOutboundConnectorsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListOutboundConnectorsResponse wrapper for the ListOutboundConnectors operation +type ListOutboundConnectorsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []OutboundConnectorSummary instances + Items []OutboundConnectorSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListOutboundConnectorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListOutboundConnectorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListOutboundConnectorsLifecycleStateEnum Enum with underlying type: string +type ListOutboundConnectorsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListOutboundConnectorsLifecycleStateEnum +const ( + ListOutboundConnectorsLifecycleStateCreating ListOutboundConnectorsLifecycleStateEnum = "CREATING" + ListOutboundConnectorsLifecycleStateActive ListOutboundConnectorsLifecycleStateEnum = "ACTIVE" + ListOutboundConnectorsLifecycleStateDeleting ListOutboundConnectorsLifecycleStateEnum = "DELETING" + ListOutboundConnectorsLifecycleStateDeleted ListOutboundConnectorsLifecycleStateEnum = "DELETED" + ListOutboundConnectorsLifecycleStateFailed ListOutboundConnectorsLifecycleStateEnum = "FAILED" +) + +var mappingListOutboundConnectorsLifecycleStateEnum = map[string]ListOutboundConnectorsLifecycleStateEnum{ + "CREATING": ListOutboundConnectorsLifecycleStateCreating, + "ACTIVE": ListOutboundConnectorsLifecycleStateActive, + "DELETING": ListOutboundConnectorsLifecycleStateDeleting, + "DELETED": ListOutboundConnectorsLifecycleStateDeleted, + "FAILED": ListOutboundConnectorsLifecycleStateFailed, +} + +var mappingListOutboundConnectorsLifecycleStateEnumLowerCase = map[string]ListOutboundConnectorsLifecycleStateEnum{ + "creating": ListOutboundConnectorsLifecycleStateCreating, + "active": ListOutboundConnectorsLifecycleStateActive, + "deleting": ListOutboundConnectorsLifecycleStateDeleting, + "deleted": ListOutboundConnectorsLifecycleStateDeleted, + "failed": ListOutboundConnectorsLifecycleStateFailed, +} + +// GetListOutboundConnectorsLifecycleStateEnumValues Enumerates the set of values for ListOutboundConnectorsLifecycleStateEnum +func GetListOutboundConnectorsLifecycleStateEnumValues() []ListOutboundConnectorsLifecycleStateEnum { + values := make([]ListOutboundConnectorsLifecycleStateEnum, 0) + for _, v := range mappingListOutboundConnectorsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListOutboundConnectorsLifecycleStateEnumStringValues Enumerates the set of values in String for ListOutboundConnectorsLifecycleStateEnum +func GetListOutboundConnectorsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListOutboundConnectorsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOutboundConnectorsLifecycleStateEnum(val string) (ListOutboundConnectorsLifecycleStateEnum, bool) { + enum, ok := mappingListOutboundConnectorsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListOutboundConnectorsSortByEnum Enum with underlying type: string +type ListOutboundConnectorsSortByEnum string + +// Set of constants representing the allowable values for ListOutboundConnectorsSortByEnum +const ( + ListOutboundConnectorsSortByTimecreated ListOutboundConnectorsSortByEnum = "TIMECREATED" + ListOutboundConnectorsSortByDisplayname ListOutboundConnectorsSortByEnum = "DISPLAYNAME" +) + +var mappingListOutboundConnectorsSortByEnum = map[string]ListOutboundConnectorsSortByEnum{ + "TIMECREATED": ListOutboundConnectorsSortByTimecreated, + "DISPLAYNAME": ListOutboundConnectorsSortByDisplayname, +} + +var mappingListOutboundConnectorsSortByEnumLowerCase = map[string]ListOutboundConnectorsSortByEnum{ + "timecreated": ListOutboundConnectorsSortByTimecreated, + "displayname": ListOutboundConnectorsSortByDisplayname, +} + +// GetListOutboundConnectorsSortByEnumValues Enumerates the set of values for ListOutboundConnectorsSortByEnum +func GetListOutboundConnectorsSortByEnumValues() []ListOutboundConnectorsSortByEnum { + values := make([]ListOutboundConnectorsSortByEnum, 0) + for _, v := range mappingListOutboundConnectorsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListOutboundConnectorsSortByEnumStringValues Enumerates the set of values in String for ListOutboundConnectorsSortByEnum +func GetListOutboundConnectorsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListOutboundConnectorsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOutboundConnectorsSortByEnum(val string) (ListOutboundConnectorsSortByEnum, bool) { + enum, ok := mappingListOutboundConnectorsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListOutboundConnectorsSortOrderEnum Enum with underlying type: string +type ListOutboundConnectorsSortOrderEnum string + +// Set of constants representing the allowable values for ListOutboundConnectorsSortOrderEnum +const ( + ListOutboundConnectorsSortOrderAsc ListOutboundConnectorsSortOrderEnum = "ASC" + ListOutboundConnectorsSortOrderDesc ListOutboundConnectorsSortOrderEnum = "DESC" +) + +var mappingListOutboundConnectorsSortOrderEnum = map[string]ListOutboundConnectorsSortOrderEnum{ + "ASC": ListOutboundConnectorsSortOrderAsc, + "DESC": ListOutboundConnectorsSortOrderDesc, +} + +var mappingListOutboundConnectorsSortOrderEnumLowerCase = map[string]ListOutboundConnectorsSortOrderEnum{ + "asc": ListOutboundConnectorsSortOrderAsc, + "desc": ListOutboundConnectorsSortOrderDesc, +} + +// GetListOutboundConnectorsSortOrderEnumValues Enumerates the set of values for ListOutboundConnectorsSortOrderEnum +func GetListOutboundConnectorsSortOrderEnumValues() []ListOutboundConnectorsSortOrderEnum { + values := make([]ListOutboundConnectorsSortOrderEnum, 0) + for _, v := range mappingListOutboundConnectorsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListOutboundConnectorsSortOrderEnumStringValues Enumerates the set of values in String for ListOutboundConnectorsSortOrderEnum +func GetListOutboundConnectorsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListOutboundConnectorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListOutboundConnectorsSortOrderEnum(val string) (ListOutboundConnectorsSortOrderEnum, bool) { + enum, ok := mappingListOutboundConnectorsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go new file mode 100644 index 0000000000..fa01977c3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replication_targets_request_response.go @@ -0,0 +1,282 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListReplicationTargetsRequest wrapper for the ListReplicationTargets operation +type ListReplicationTargetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListReplicationTargetsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can choose either value, but not both. + // By default, when you sort by `timeCreated`, results are shown + // in descending order. When you sort by `displayName`, results are + // shown in ascending order. + SortBy ListReplicationTargetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListReplicationTargetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListReplicationTargetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListReplicationTargetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListReplicationTargetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListReplicationTargetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListReplicationTargetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListReplicationTargetsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListReplicationTargetsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListReplicationTargetsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListReplicationTargetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListReplicationTargetsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListReplicationTargetsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListReplicationTargetsResponse wrapper for the ListReplicationTargets operation +type ListReplicationTargetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ReplicationTargetSummary instances + Items []ReplicationTargetSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListReplicationTargetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListReplicationTargetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListReplicationTargetsLifecycleStateEnum Enum with underlying type: string +type ListReplicationTargetsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListReplicationTargetsLifecycleStateEnum +const ( + ListReplicationTargetsLifecycleStateCreating ListReplicationTargetsLifecycleStateEnum = "CREATING" + ListReplicationTargetsLifecycleStateActive ListReplicationTargetsLifecycleStateEnum = "ACTIVE" + ListReplicationTargetsLifecycleStateDeleting ListReplicationTargetsLifecycleStateEnum = "DELETING" + ListReplicationTargetsLifecycleStateDeleted ListReplicationTargetsLifecycleStateEnum = "DELETED" + ListReplicationTargetsLifecycleStateFailed ListReplicationTargetsLifecycleStateEnum = "FAILED" +) + +var mappingListReplicationTargetsLifecycleStateEnum = map[string]ListReplicationTargetsLifecycleStateEnum{ + "CREATING": ListReplicationTargetsLifecycleStateCreating, + "ACTIVE": ListReplicationTargetsLifecycleStateActive, + "DELETING": ListReplicationTargetsLifecycleStateDeleting, + "DELETED": ListReplicationTargetsLifecycleStateDeleted, + "FAILED": ListReplicationTargetsLifecycleStateFailed, +} + +var mappingListReplicationTargetsLifecycleStateEnumLowerCase = map[string]ListReplicationTargetsLifecycleStateEnum{ + "creating": ListReplicationTargetsLifecycleStateCreating, + "active": ListReplicationTargetsLifecycleStateActive, + "deleting": ListReplicationTargetsLifecycleStateDeleting, + "deleted": ListReplicationTargetsLifecycleStateDeleted, + "failed": ListReplicationTargetsLifecycleStateFailed, +} + +// GetListReplicationTargetsLifecycleStateEnumValues Enumerates the set of values for ListReplicationTargetsLifecycleStateEnum +func GetListReplicationTargetsLifecycleStateEnumValues() []ListReplicationTargetsLifecycleStateEnum { + values := make([]ListReplicationTargetsLifecycleStateEnum, 0) + for _, v := range mappingListReplicationTargetsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListReplicationTargetsLifecycleStateEnumStringValues Enumerates the set of values in String for ListReplicationTargetsLifecycleStateEnum +func GetListReplicationTargetsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListReplicationTargetsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReplicationTargetsLifecycleStateEnum(val string) (ListReplicationTargetsLifecycleStateEnum, bool) { + enum, ok := mappingListReplicationTargetsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListReplicationTargetsSortByEnum Enum with underlying type: string +type ListReplicationTargetsSortByEnum string + +// Set of constants representing the allowable values for ListReplicationTargetsSortByEnum +const ( + ListReplicationTargetsSortByTimecreated ListReplicationTargetsSortByEnum = "timeCreated" + ListReplicationTargetsSortByDisplayname ListReplicationTargetsSortByEnum = "displayName" +) + +var mappingListReplicationTargetsSortByEnum = map[string]ListReplicationTargetsSortByEnum{ + "timeCreated": ListReplicationTargetsSortByTimecreated, + "displayName": ListReplicationTargetsSortByDisplayname, +} + +var mappingListReplicationTargetsSortByEnumLowerCase = map[string]ListReplicationTargetsSortByEnum{ + "timecreated": ListReplicationTargetsSortByTimecreated, + "displayname": ListReplicationTargetsSortByDisplayname, +} + +// GetListReplicationTargetsSortByEnumValues Enumerates the set of values for ListReplicationTargetsSortByEnum +func GetListReplicationTargetsSortByEnumValues() []ListReplicationTargetsSortByEnum { + values := make([]ListReplicationTargetsSortByEnum, 0) + for _, v := range mappingListReplicationTargetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListReplicationTargetsSortByEnumStringValues Enumerates the set of values in String for ListReplicationTargetsSortByEnum +func GetListReplicationTargetsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListReplicationTargetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReplicationTargetsSortByEnum(val string) (ListReplicationTargetsSortByEnum, bool) { + enum, ok := mappingListReplicationTargetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListReplicationTargetsSortOrderEnum Enum with underlying type: string +type ListReplicationTargetsSortOrderEnum string + +// Set of constants representing the allowable values for ListReplicationTargetsSortOrderEnum +const ( + ListReplicationTargetsSortOrderAsc ListReplicationTargetsSortOrderEnum = "ASC" + ListReplicationTargetsSortOrderDesc ListReplicationTargetsSortOrderEnum = "DESC" +) + +var mappingListReplicationTargetsSortOrderEnum = map[string]ListReplicationTargetsSortOrderEnum{ + "ASC": ListReplicationTargetsSortOrderAsc, + "DESC": ListReplicationTargetsSortOrderDesc, +} + +var mappingListReplicationTargetsSortOrderEnumLowerCase = map[string]ListReplicationTargetsSortOrderEnum{ + "asc": ListReplicationTargetsSortOrderAsc, + "desc": ListReplicationTargetsSortOrderDesc, +} + +// GetListReplicationTargetsSortOrderEnumValues Enumerates the set of values for ListReplicationTargetsSortOrderEnum +func GetListReplicationTargetsSortOrderEnumValues() []ListReplicationTargetsSortOrderEnum { + values := make([]ListReplicationTargetsSortOrderEnum, 0) + for _, v := range mappingListReplicationTargetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListReplicationTargetsSortOrderEnumStringValues Enumerates the set of values in String for ListReplicationTargetsSortOrderEnum +func GetListReplicationTargetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListReplicationTargetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReplicationTargetsSortOrderEnum(val string) (ListReplicationTargetsSortOrderEnum, bool) { + enum, ok := mappingListReplicationTargetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go new file mode 100644 index 0000000000..7a948bda93 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_replications_request_response.go @@ -0,0 +1,285 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListReplicationsRequest wrapper for the ListReplications operation +type ListReplicationsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListReplicationsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Example: `My resource` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can choose either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by display name, results are + // shown in ascending order. + SortBy ListReplicationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListReplicationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source file system. + FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListReplicationsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListReplicationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListReplicationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListReplicationsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListReplicationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListReplicationsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListReplicationsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListReplicationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListReplicationsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListReplicationsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListReplicationsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListReplicationsResponse wrapper for the ListReplications operation +type ListReplicationsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ReplicationSummary instances + Items []ReplicationSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListReplicationsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListReplicationsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListReplicationsLifecycleStateEnum Enum with underlying type: string +type ListReplicationsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListReplicationsLifecycleStateEnum +const ( + ListReplicationsLifecycleStateCreating ListReplicationsLifecycleStateEnum = "CREATING" + ListReplicationsLifecycleStateActive ListReplicationsLifecycleStateEnum = "ACTIVE" + ListReplicationsLifecycleStateDeleting ListReplicationsLifecycleStateEnum = "DELETING" + ListReplicationsLifecycleStateDeleted ListReplicationsLifecycleStateEnum = "DELETED" + ListReplicationsLifecycleStateFailed ListReplicationsLifecycleStateEnum = "FAILED" +) + +var mappingListReplicationsLifecycleStateEnum = map[string]ListReplicationsLifecycleStateEnum{ + "CREATING": ListReplicationsLifecycleStateCreating, + "ACTIVE": ListReplicationsLifecycleStateActive, + "DELETING": ListReplicationsLifecycleStateDeleting, + "DELETED": ListReplicationsLifecycleStateDeleted, + "FAILED": ListReplicationsLifecycleStateFailed, +} + +var mappingListReplicationsLifecycleStateEnumLowerCase = map[string]ListReplicationsLifecycleStateEnum{ + "creating": ListReplicationsLifecycleStateCreating, + "active": ListReplicationsLifecycleStateActive, + "deleting": ListReplicationsLifecycleStateDeleting, + "deleted": ListReplicationsLifecycleStateDeleted, + "failed": ListReplicationsLifecycleStateFailed, +} + +// GetListReplicationsLifecycleStateEnumValues Enumerates the set of values for ListReplicationsLifecycleStateEnum +func GetListReplicationsLifecycleStateEnumValues() []ListReplicationsLifecycleStateEnum { + values := make([]ListReplicationsLifecycleStateEnum, 0) + for _, v := range mappingListReplicationsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListReplicationsLifecycleStateEnumStringValues Enumerates the set of values in String for ListReplicationsLifecycleStateEnum +func GetListReplicationsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListReplicationsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReplicationsLifecycleStateEnum(val string) (ListReplicationsLifecycleStateEnum, bool) { + enum, ok := mappingListReplicationsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListReplicationsSortByEnum Enum with underlying type: string +type ListReplicationsSortByEnum string + +// Set of constants representing the allowable values for ListReplicationsSortByEnum +const ( + ListReplicationsSortByTimecreated ListReplicationsSortByEnum = "timeCreated" + ListReplicationsSortByDisplayname ListReplicationsSortByEnum = "displayName" +) + +var mappingListReplicationsSortByEnum = map[string]ListReplicationsSortByEnum{ + "timeCreated": ListReplicationsSortByTimecreated, + "displayName": ListReplicationsSortByDisplayname, +} + +var mappingListReplicationsSortByEnumLowerCase = map[string]ListReplicationsSortByEnum{ + "timecreated": ListReplicationsSortByTimecreated, + "displayname": ListReplicationsSortByDisplayname, +} + +// GetListReplicationsSortByEnumValues Enumerates the set of values for ListReplicationsSortByEnum +func GetListReplicationsSortByEnumValues() []ListReplicationsSortByEnum { + values := make([]ListReplicationsSortByEnum, 0) + for _, v := range mappingListReplicationsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListReplicationsSortByEnumStringValues Enumerates the set of values in String for ListReplicationsSortByEnum +func GetListReplicationsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListReplicationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReplicationsSortByEnum(val string) (ListReplicationsSortByEnum, bool) { + enum, ok := mappingListReplicationsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListReplicationsSortOrderEnum Enum with underlying type: string +type ListReplicationsSortOrderEnum string + +// Set of constants representing the allowable values for ListReplicationsSortOrderEnum +const ( + ListReplicationsSortOrderAsc ListReplicationsSortOrderEnum = "ASC" + ListReplicationsSortOrderDesc ListReplicationsSortOrderEnum = "DESC" +) + +var mappingListReplicationsSortOrderEnum = map[string]ListReplicationsSortOrderEnum{ + "ASC": ListReplicationsSortOrderAsc, + "DESC": ListReplicationsSortOrderDesc, +} + +var mappingListReplicationsSortOrderEnumLowerCase = map[string]ListReplicationsSortOrderEnum{ + "asc": ListReplicationsSortOrderAsc, + "desc": ListReplicationsSortOrderDesc, +} + +// GetListReplicationsSortOrderEnumValues Enumerates the set of values for ListReplicationsSortOrderEnum +func GetListReplicationsSortOrderEnumValues() []ListReplicationsSortOrderEnum { + values := make([]ListReplicationsSortOrderEnum, 0) + for _, v := range mappingListReplicationsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListReplicationsSortOrderEnumStringValues Enumerates the set of values in String for ListReplicationsSortOrderEnum +func GetListReplicationsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListReplicationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListReplicationsSortOrderEnum(val string) (ListReplicationsSortOrderEnum, bool) { + enum, ok := mappingListReplicationsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_share_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_share_sets_request_response.go new file mode 100644 index 0000000000..40fd79a09b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_share_sets_request_response.go @@ -0,0 +1,241 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListShareSetsRequest wrapper for the ListShareSets operation +type ListShareSetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A comment. It does not have to be unique, and it is changeable. + // Example: `My share` + Comment *string `mandatory:"false" contributesTo:"query" name:"comment"` + + // A customer-provided DNS name. This name plays a critical role in + // establishing the server's place in the customer SMB security hierarchy. + // For example, if an SMB server has a DNS name of + // register5.store34.california.usa.marks-hats.com, then this particular + // server is part of the store34.california.usa.marks-hats.com security + // domain which in turn is part of the california.usa.marks-hats.com which + // in turn is part of the usa.marks-hats.com + // which in turn is part of the marks-hats.com security domain. + // Must be unique across all FQDNs in the subnet and comply + // with RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). + CustomFqdn *string `mandatory:"false" contributesTo:"query" name:"customFqdn"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type shareSets. + LifecycleState ShareSetLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by comment, results are + // shown in ascending order. + SortBy ListShareSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListShareSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListShareSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListShareSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListShareSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListShareSetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListShareSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingShareSetLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetShareSetLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListShareSetsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListShareSetsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListShareSetsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListShareSetsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListShareSetsResponse wrapper for the ListShareSets operation +type ListShareSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ShareSetSummary instances + Items []ShareSetSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListShareSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListShareSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListShareSetsSortByEnum Enum with underlying type: string +type ListShareSetsSortByEnum string + +// Set of constants representing the allowable values for ListShareSetsSortByEnum +const ( + ListShareSetsSortByTimecreated ListShareSetsSortByEnum = "TIMECREATED" + ListShareSetsSortByComment ListShareSetsSortByEnum = "COMMENT" +) + +var mappingListShareSetsSortByEnum = map[string]ListShareSetsSortByEnum{ + "TIMECREATED": ListShareSetsSortByTimecreated, + "COMMENT": ListShareSetsSortByComment, +} + +var mappingListShareSetsSortByEnumLowerCase = map[string]ListShareSetsSortByEnum{ + "timecreated": ListShareSetsSortByTimecreated, + "comment": ListShareSetsSortByComment, +} + +// GetListShareSetsSortByEnumValues Enumerates the set of values for ListShareSetsSortByEnum +func GetListShareSetsSortByEnumValues() []ListShareSetsSortByEnum { + values := make([]ListShareSetsSortByEnum, 0) + for _, v := range mappingListShareSetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListShareSetsSortByEnumStringValues Enumerates the set of values in String for ListShareSetsSortByEnum +func GetListShareSetsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "COMMENT", + } +} + +// GetMappingListShareSetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListShareSetsSortByEnum(val string) (ListShareSetsSortByEnum, bool) { + enum, ok := mappingListShareSetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListShareSetsSortOrderEnum Enum with underlying type: string +type ListShareSetsSortOrderEnum string + +// Set of constants representing the allowable values for ListShareSetsSortOrderEnum +const ( + ListShareSetsSortOrderAsc ListShareSetsSortOrderEnum = "ASC" + ListShareSetsSortOrderDesc ListShareSetsSortOrderEnum = "DESC" +) + +var mappingListShareSetsSortOrderEnum = map[string]ListShareSetsSortOrderEnum{ + "ASC": ListShareSetsSortOrderAsc, + "DESC": ListShareSetsSortOrderDesc, +} + +var mappingListShareSetsSortOrderEnumLowerCase = map[string]ListShareSetsSortOrderEnum{ + "asc": ListShareSetsSortOrderAsc, + "desc": ListShareSetsSortOrderDesc, +} + +// GetListShareSetsSortOrderEnumValues Enumerates the set of values for ListShareSetsSortOrderEnum +func GetListShareSetsSortOrderEnumValues() []ListShareSetsSortOrderEnum { + values := make([]ListShareSetsSortOrderEnum, 0) + for _, v := range mappingListShareSetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListShareSetsSortOrderEnumStringValues Enumerates the set of values in String for ListShareSetsSortOrderEnum +func GetListShareSetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListShareSetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListShareSetsSortOrderEnum(val string) (ListShareSetsSortOrderEnum, bool) { + enum, ok := mappingListShareSetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_shares_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_shares_request_response.go new file mode 100644 index 0000000000..b83f7b8df7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_shares_request_response.go @@ -0,0 +1,230 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSharesRequest wrapper for the ListShares operation +type ListSharesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 1000 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `500` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // A user-friendly share name. It does not have to be unique, and it is changeable. + // Example: `My share` + ShareName *string `mandatory:"false" contributesTo:"query" name:"shareName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + ShareSetId *string `mandatory:"false" contributesTo:"query" name:"shareSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type shares. + LifecycleState ShareLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by share name, results are + // shown in ascending alphanumeric order. + SortBy ListSharesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListSharesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListSharesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSharesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSharesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSharesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSharesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingShareLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetShareLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListSharesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListSharesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListSharesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListSharesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSharesResponse wrapper for the ListShares operation +type ListSharesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []ShareSummary instances + Items []ShareSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListSharesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSharesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSharesSortByEnum Enum with underlying type: string +type ListSharesSortByEnum string + +// Set of constants representing the allowable values for ListSharesSortByEnum +const ( + ListSharesSortByTimecreated ListSharesSortByEnum = "TIMECREATED" + ListSharesSortBySharename ListSharesSortByEnum = "SHARENAME" +) + +var mappingListSharesSortByEnum = map[string]ListSharesSortByEnum{ + "TIMECREATED": ListSharesSortByTimecreated, + "SHARENAME": ListSharesSortBySharename, +} + +var mappingListSharesSortByEnumLowerCase = map[string]ListSharesSortByEnum{ + "timecreated": ListSharesSortByTimecreated, + "sharename": ListSharesSortBySharename, +} + +// GetListSharesSortByEnumValues Enumerates the set of values for ListSharesSortByEnum +func GetListSharesSortByEnumValues() []ListSharesSortByEnum { + values := make([]ListSharesSortByEnum, 0) + for _, v := range mappingListSharesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSharesSortByEnumStringValues Enumerates the set of values in String for ListSharesSortByEnum +func GetListSharesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "SHARENAME", + } +} + +// GetMappingListSharesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSharesSortByEnum(val string) (ListSharesSortByEnum, bool) { + enum, ok := mappingListSharesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSharesSortOrderEnum Enum with underlying type: string +type ListSharesSortOrderEnum string + +// Set of constants representing the allowable values for ListSharesSortOrderEnum +const ( + ListSharesSortOrderAsc ListSharesSortOrderEnum = "ASC" + ListSharesSortOrderDesc ListSharesSortOrderEnum = "DESC" +) + +var mappingListSharesSortOrderEnum = map[string]ListSharesSortOrderEnum{ + "ASC": ListSharesSortOrderAsc, + "DESC": ListSharesSortOrderDesc, +} + +var mappingListSharesSortOrderEnumLowerCase = map[string]ListSharesSortOrderEnum{ + "asc": ListSharesSortOrderAsc, + "desc": ListSharesSortOrderDesc, +} + +// GetListSharesSortOrderEnumValues Enumerates the set of values for ListSharesSortOrderEnum +func GetListSharesSortOrderEnumValues() []ListSharesSortOrderEnum { + values := make([]ListSharesSortOrderEnum, 0) + for _, v := range mappingListSharesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSharesSortOrderEnumStringValues Enumerates the set of values in String for ListSharesSortOrderEnum +func GetListSharesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSharesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSharesSortOrderEnum(val string) (ListSharesSortOrderEnum, bool) { + enum, ok := mappingListSharesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go new file mode 100644 index 0000000000..14e8891a04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/list_snapshots_request_response.go @@ -0,0 +1,281 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSnapshotsRequest wrapper for the ListSnapshots operation +type ListSnapshotsRequest struct { + + // For list pagination. The maximum number of results per page, + // or items to return in a paginated "List" call. + // 1 is the minimum, 100 is the maximum. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `100` + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response + // header from the previous "List" call. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Filter results by the specified lifecycle state. Must be a valid + // state for the resource type. + LifecycleState ListSnapshotsLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + Id *string `mandatory:"false" contributesTo:"query" name:"id"` + + // The field to sort by. You can provide either value, but not both. + // By default, when you sort by time created, results are shown + // in descending order. When you sort by name, results are + // shown in alphabetical order. + SortBy ListSnapshotsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy + // that is associated with the filesystems or used to create the snapshots. + FilesystemSnapshotPolicyId *string `mandatory:"false" contributesTo:"query" name:"filesystemSnapshotPolicyId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. + CompartmentId *string `mandatory:"false" contributesTo:"query" name:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system. + FileSystemId *string `mandatory:"false" contributesTo:"query" name:"fileSystemId"` + + // The sort order to use, either 'asc' or 'desc', where 'asc' is + // ascending and 'desc' is descending. The default order is 'desc' + // except for numeric values. + SortOrder ListSnapshotsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListSnapshotsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSnapshotsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSnapshotsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSnapshotsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSnapshotsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListSnapshotsLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListSnapshotsLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListSnapshotsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListSnapshotsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListSnapshotsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListSnapshotsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSnapshotsResponse wrapper for the ListSnapshots operation +type ListSnapshotsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []SnapshotSummary instances + Items []SnapshotSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, + // additional pages of results remain. + // For important details about how pagination works, + // see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListSnapshotsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSnapshotsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListSnapshotsLifecycleStateEnum Enum with underlying type: string +type ListSnapshotsLifecycleStateEnum string + +// Set of constants representing the allowable values for ListSnapshotsLifecycleStateEnum +const ( + ListSnapshotsLifecycleStateCreating ListSnapshotsLifecycleStateEnum = "CREATING" + ListSnapshotsLifecycleStateActive ListSnapshotsLifecycleStateEnum = "ACTIVE" + ListSnapshotsLifecycleStateDeleting ListSnapshotsLifecycleStateEnum = "DELETING" + ListSnapshotsLifecycleStateDeleted ListSnapshotsLifecycleStateEnum = "DELETED" + ListSnapshotsLifecycleStateFailed ListSnapshotsLifecycleStateEnum = "FAILED" +) + +var mappingListSnapshotsLifecycleStateEnum = map[string]ListSnapshotsLifecycleStateEnum{ + "CREATING": ListSnapshotsLifecycleStateCreating, + "ACTIVE": ListSnapshotsLifecycleStateActive, + "DELETING": ListSnapshotsLifecycleStateDeleting, + "DELETED": ListSnapshotsLifecycleStateDeleted, + "FAILED": ListSnapshotsLifecycleStateFailed, +} + +var mappingListSnapshotsLifecycleStateEnumLowerCase = map[string]ListSnapshotsLifecycleStateEnum{ + "creating": ListSnapshotsLifecycleStateCreating, + "active": ListSnapshotsLifecycleStateActive, + "deleting": ListSnapshotsLifecycleStateDeleting, + "deleted": ListSnapshotsLifecycleStateDeleted, + "failed": ListSnapshotsLifecycleStateFailed, +} + +// GetListSnapshotsLifecycleStateEnumValues Enumerates the set of values for ListSnapshotsLifecycleStateEnum +func GetListSnapshotsLifecycleStateEnumValues() []ListSnapshotsLifecycleStateEnum { + values := make([]ListSnapshotsLifecycleStateEnum, 0) + for _, v := range mappingListSnapshotsLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListSnapshotsLifecycleStateEnumStringValues Enumerates the set of values in String for ListSnapshotsLifecycleStateEnum +func GetListSnapshotsLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListSnapshotsLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSnapshotsLifecycleStateEnum(val string) (ListSnapshotsLifecycleStateEnum, bool) { + enum, ok := mappingListSnapshotsLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSnapshotsSortByEnum Enum with underlying type: string +type ListSnapshotsSortByEnum string + +// Set of constants representing the allowable values for ListSnapshotsSortByEnum +const ( + ListSnapshotsSortByTimecreated ListSnapshotsSortByEnum = "TIMECREATED" + ListSnapshotsSortByName ListSnapshotsSortByEnum = "NAME" +) + +var mappingListSnapshotsSortByEnum = map[string]ListSnapshotsSortByEnum{ + "TIMECREATED": ListSnapshotsSortByTimecreated, + "NAME": ListSnapshotsSortByName, +} + +var mappingListSnapshotsSortByEnumLowerCase = map[string]ListSnapshotsSortByEnum{ + "timecreated": ListSnapshotsSortByTimecreated, + "name": ListSnapshotsSortByName, +} + +// GetListSnapshotsSortByEnumValues Enumerates the set of values for ListSnapshotsSortByEnum +func GetListSnapshotsSortByEnumValues() []ListSnapshotsSortByEnum { + values := make([]ListSnapshotsSortByEnum, 0) + for _, v := range mappingListSnapshotsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListSnapshotsSortByEnumStringValues Enumerates the set of values in String for ListSnapshotsSortByEnum +func GetListSnapshotsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListSnapshotsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSnapshotsSortByEnum(val string) (ListSnapshotsSortByEnum, bool) { + enum, ok := mappingListSnapshotsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListSnapshotsSortOrderEnum Enum with underlying type: string +type ListSnapshotsSortOrderEnum string + +// Set of constants representing the allowable values for ListSnapshotsSortOrderEnum +const ( + ListSnapshotsSortOrderAsc ListSnapshotsSortOrderEnum = "ASC" + ListSnapshotsSortOrderDesc ListSnapshotsSortOrderEnum = "DESC" +) + +var mappingListSnapshotsSortOrderEnum = map[string]ListSnapshotsSortOrderEnum{ + "ASC": ListSnapshotsSortOrderAsc, + "DESC": ListSnapshotsSortOrderDesc, +} + +var mappingListSnapshotsSortOrderEnumLowerCase = map[string]ListSnapshotsSortOrderEnum{ + "asc": ListSnapshotsSortOrderAsc, + "desc": ListSnapshotsSortOrderDesc, +} + +// GetListSnapshotsSortOrderEnumValues Enumerates the set of values for ListSnapshotsSortOrderEnum +func GetListSnapshotsSortOrderEnumValues() []ListSnapshotsSortOrderEnum { + values := make([]ListSnapshotsSortOrderEnum, 0) + for _, v := range mappingListSnapshotsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListSnapshotsSortOrderEnumStringValues Enumerates the set of values in String for ListSnapshotsSortOrderEnum +func GetListSnapshotsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListSnapshotsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListSnapshotsSortOrderEnum(val string) (ListSnapshotsSortOrderEnum, bool) { + enum, ok := mappingListSnapshotsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_details.go new file mode 100644 index 0000000000..e76ab56d07 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ModifyRootdirAttributesDetails Details for changing the ownership of file system root directory. +type ModifyRootdirAttributesDetails struct { + + // The user id for root directory ownership. However if not specified then it does not change. + Uid *int `mandatory:"false" json:"uid"` + + // The group id for root directory ownership. However if not specified then it does not change. + Gid *int `mandatory:"false" json:"gid"` + + // Only standard mode bits are supported like 644, 755 etc. However if not specified then it does not change. + Mode *int `mandatory:"false" json:"mode"` +} + +func (m ModifyRootdirAttributesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ModifyRootdirAttributesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_request_response.go index 7e78933b52..cc408dbd62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/modify_rootdir_attributes_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/modify_rootdir_attributes_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ModifyRootdirAttributesRequest wrapper for the ModifyRootdirAttributes operation @@ -41,6 +43,10 @@ func (request ModifyRootdirAttributesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ModifyRootdirAttributesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ModifyRootdirAttributesRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ModifyRootdirAttributesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ModifyRootdirAttributesResponse wrapper for the ModifyRootdirAttributes operation type ModifyRootdirAttributesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go new file mode 100644 index 0000000000..4d9c79c045 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MountTarget Provides access to a collection of file systems through one or more VNICs on a +// specified subnet. The set of file systems is controlled through the +// referenced export set. +type MountTarget struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the mount target. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My mount target` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + Id *string `mandatory:"true" json:"id"` + + // Additional information about the current 'lifecycleState'. + LifecycleDetails *string `mandatory:"true" json:"lifecycleDetails"` + + // The current state of the mount target. + LifecycleState MountTargetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCIDs of the private IP addresses associated with this mount target. + PrivateIpIds []string `mandatory:"true" json:"privateIpIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the mount target is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The date and time the mount target was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the mount target is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated export set. Controls what file + // systems will be exported through Network File System (NFS) protocol on this + // mount target. + ExportSetId *string `mandatory:"false" json:"exportSetId"` + + // Describes whether Idmapping is turned on or off. If on, describes method used to perform ID Mapping + IdmapType MountTargetIdmapTypeEnum `mandatory:"false" json:"idmapType,omitempty"` + + LdapIdmap *LdapIdmap `mandatory:"false" json:"ldapIdmap"` + + // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the mount target from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + Kerberos *Kerberos `mandatory:"false" json:"kerberos"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated share set. Controls what file + // systems will be shared through SMB protocol on this mount target. + ShareSetId *string `mandatory:"false" json:"shareSetId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m MountTarget) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MountTarget) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMountTargetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetMountTargetLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingMountTargetIdmapTypeEnum(string(m.IdmapType)); !ok && m.IdmapType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IdmapType: %s. Supported values are: %s.", m.IdmapType, strings.Join(GetMountTargetIdmapTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MountTargetLifecycleStateEnum Enum with underlying type: string +type MountTargetLifecycleStateEnum string + +// Set of constants representing the allowable values for MountTargetLifecycleStateEnum +const ( + MountTargetLifecycleStateCreating MountTargetLifecycleStateEnum = "CREATING" + MountTargetLifecycleStateActive MountTargetLifecycleStateEnum = "ACTIVE" + MountTargetLifecycleStateDeleting MountTargetLifecycleStateEnum = "DELETING" + MountTargetLifecycleStateDeleted MountTargetLifecycleStateEnum = "DELETED" + MountTargetLifecycleStateFailed MountTargetLifecycleStateEnum = "FAILED" +) + +var mappingMountTargetLifecycleStateEnum = map[string]MountTargetLifecycleStateEnum{ + "CREATING": MountTargetLifecycleStateCreating, + "ACTIVE": MountTargetLifecycleStateActive, + "DELETING": MountTargetLifecycleStateDeleting, + "DELETED": MountTargetLifecycleStateDeleted, + "FAILED": MountTargetLifecycleStateFailed, +} + +var mappingMountTargetLifecycleStateEnumLowerCase = map[string]MountTargetLifecycleStateEnum{ + "creating": MountTargetLifecycleStateCreating, + "active": MountTargetLifecycleStateActive, + "deleting": MountTargetLifecycleStateDeleting, + "deleted": MountTargetLifecycleStateDeleted, + "failed": MountTargetLifecycleStateFailed, +} + +// GetMountTargetLifecycleStateEnumValues Enumerates the set of values for MountTargetLifecycleStateEnum +func GetMountTargetLifecycleStateEnumValues() []MountTargetLifecycleStateEnum { + values := make([]MountTargetLifecycleStateEnum, 0) + for _, v := range mappingMountTargetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetMountTargetLifecycleStateEnumStringValues Enumerates the set of values in String for MountTargetLifecycleStateEnum +func GetMountTargetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingMountTargetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMountTargetLifecycleStateEnum(val string) (MountTargetLifecycleStateEnum, bool) { + enum, ok := mappingMountTargetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// MountTargetIdmapTypeEnum Enum with underlying type: string +type MountTargetIdmapTypeEnum string + +// Set of constants representing the allowable values for MountTargetIdmapTypeEnum +const ( + MountTargetIdmapTypeLdap MountTargetIdmapTypeEnum = "LDAP" + MountTargetIdmapTypeNone MountTargetIdmapTypeEnum = "NONE" +) + +var mappingMountTargetIdmapTypeEnum = map[string]MountTargetIdmapTypeEnum{ + "LDAP": MountTargetIdmapTypeLdap, + "NONE": MountTargetIdmapTypeNone, +} + +var mappingMountTargetIdmapTypeEnumLowerCase = map[string]MountTargetIdmapTypeEnum{ + "ldap": MountTargetIdmapTypeLdap, + "none": MountTargetIdmapTypeNone, +} + +// GetMountTargetIdmapTypeEnumValues Enumerates the set of values for MountTargetIdmapTypeEnum +func GetMountTargetIdmapTypeEnumValues() []MountTargetIdmapTypeEnum { + values := make([]MountTargetIdmapTypeEnum, 0) + for _, v := range mappingMountTargetIdmapTypeEnum { + values = append(values, v) + } + return values +} + +// GetMountTargetIdmapTypeEnumStringValues Enumerates the set of values in String for MountTargetIdmapTypeEnum +func GetMountTargetIdmapTypeEnumStringValues() []string { + return []string{ + "LDAP", + "NONE", + } +} + +// GetMappingMountTargetIdmapTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMountTargetIdmapTypeEnum(val string) (MountTargetIdmapTypeEnum, bool) { + enum, ok := mappingMountTargetIdmapTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go new file mode 100644 index 0000000000..95a0715071 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/mount_target_summary.go @@ -0,0 +1,158 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MountTargetSummary Summary information for the specified mount target. +type MountTargetSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the mount target. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My mount target` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target. + Id *string `mandatory:"true" json:"id"` + + // The current state of the mount target. + LifecycleState MountTargetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The OCIDs of the private IP addresses associated with this mount target. + PrivateIpIds []string `mandatory:"true" json:"privateIpIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet the mount target is in. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The date and time the mount target was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the mount target is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated export set. Controls what file + // systems will be exported using Network File System (NFS) protocol on + // this mount target. + ExportSetId *string `mandatory:"false" json:"exportSetId"` + + // Describes whether Idmapping is turned on or off. If on, describes method used to perform ID Mapping + IdmapType MountTargetIdmapTypeEnum `mandatory:"false" json:"idmapType,omitempty"` + + LdapIdmap *LdapIdmap `mandatory:"false" json:"ldapIdmap"` + + // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the mount target from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated share set. Controls what file + // systems will be shared through SMB protocol on this mount target. + ShareSetId *string `mandatory:"false" json:"shareSetId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m MountTargetSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MountTargetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMountTargetSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetMountTargetSummaryLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingMountTargetIdmapTypeEnum(string(m.IdmapType)); !ok && m.IdmapType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IdmapType: %s. Supported values are: %s.", m.IdmapType, strings.Join(GetMountTargetIdmapTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MountTargetSummaryLifecycleStateEnum Enum with underlying type: string +type MountTargetSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for MountTargetSummaryLifecycleStateEnum +const ( + MountTargetSummaryLifecycleStateCreating MountTargetSummaryLifecycleStateEnum = "CREATING" + MountTargetSummaryLifecycleStateActive MountTargetSummaryLifecycleStateEnum = "ACTIVE" + MountTargetSummaryLifecycleStateDeleting MountTargetSummaryLifecycleStateEnum = "DELETING" + MountTargetSummaryLifecycleStateDeleted MountTargetSummaryLifecycleStateEnum = "DELETED" + MountTargetSummaryLifecycleStateFailed MountTargetSummaryLifecycleStateEnum = "FAILED" +) + +var mappingMountTargetSummaryLifecycleStateEnum = map[string]MountTargetSummaryLifecycleStateEnum{ + "CREATING": MountTargetSummaryLifecycleStateCreating, + "ACTIVE": MountTargetSummaryLifecycleStateActive, + "DELETING": MountTargetSummaryLifecycleStateDeleting, + "DELETED": MountTargetSummaryLifecycleStateDeleted, + "FAILED": MountTargetSummaryLifecycleStateFailed, +} + +var mappingMountTargetSummaryLifecycleStateEnumLowerCase = map[string]MountTargetSummaryLifecycleStateEnum{ + "creating": MountTargetSummaryLifecycleStateCreating, + "active": MountTargetSummaryLifecycleStateActive, + "deleting": MountTargetSummaryLifecycleStateDeleting, + "deleted": MountTargetSummaryLifecycleStateDeleted, + "failed": MountTargetSummaryLifecycleStateFailed, +} + +// GetMountTargetSummaryLifecycleStateEnumValues Enumerates the set of values for MountTargetSummaryLifecycleStateEnum +func GetMountTargetSummaryLifecycleStateEnumValues() []MountTargetSummaryLifecycleStateEnum { + values := make([]MountTargetSummaryLifecycleStateEnum, 0) + for _, v := range mappingMountTargetSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetMountTargetSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for MountTargetSummaryLifecycleStateEnum +func GetMountTargetSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingMountTargetSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMountTargetSummaryLifecycleStateEnum(val string) (MountTargetSummaryLifecycleStateEnum, bool) { + enum, ok := mappingMountTargetSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/oci_service_logging_config.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/oci_service_logging_config.go new file mode 100644 index 0000000000..0ba185f708 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/oci_service_logging_config.go @@ -0,0 +1,116 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OciServiceLoggingConfig Log resource configuration +type OciServiceLoggingConfig struct { + + // Log resource OCID. + LogId *string `mandatory:"true" json:"logId"` + + // Resource OCID. Log would be configured for this resource. + Resource *string `mandatory:"true" json:"resource"` + + // Name of the category. + Category *string `mandatory:"true" json:"category"` + + // The OCID of the tenancy this log belongs to. + TenancyId *string `mandatory:"false" json:"tenancyId"` + + // Parameters for the category. + Parameters map[string]string `mandatory:"false" json:"parameters"` + + // The current state of the logging resource in the context of the target resource. This field must be present in the context of a response but must not be present in the context of a request. + LifecycleState OciServiceLoggingConfigLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m OciServiceLoggingConfig) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OciServiceLoggingConfig) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingOciServiceLoggingConfigLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOciServiceLoggingConfigLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OciServiceLoggingConfigLifecycleStateEnum Enum with underlying type: string +type OciServiceLoggingConfigLifecycleStateEnum string + +// Set of constants representing the allowable values for OciServiceLoggingConfigLifecycleStateEnum +const ( + OciServiceLoggingConfigLifecycleStateCreating OciServiceLoggingConfigLifecycleStateEnum = "CREATING" + OciServiceLoggingConfigLifecycleStateActive OciServiceLoggingConfigLifecycleStateEnum = "ACTIVE" + OciServiceLoggingConfigLifecycleStateUpdating OciServiceLoggingConfigLifecycleStateEnum = "UPDATING" + OciServiceLoggingConfigLifecycleStateDeleting OciServiceLoggingConfigLifecycleStateEnum = "DELETING" + OciServiceLoggingConfigLifecycleStateDeleted OciServiceLoggingConfigLifecycleStateEnum = "DELETED" + OciServiceLoggingConfigLifecycleStateFailed OciServiceLoggingConfigLifecycleStateEnum = "FAILED" +) + +var mappingOciServiceLoggingConfigLifecycleStateEnum = map[string]OciServiceLoggingConfigLifecycleStateEnum{ + "CREATING": OciServiceLoggingConfigLifecycleStateCreating, + "ACTIVE": OciServiceLoggingConfigLifecycleStateActive, + "UPDATING": OciServiceLoggingConfigLifecycleStateUpdating, + "DELETING": OciServiceLoggingConfigLifecycleStateDeleting, + "DELETED": OciServiceLoggingConfigLifecycleStateDeleted, + "FAILED": OciServiceLoggingConfigLifecycleStateFailed, +} + +var mappingOciServiceLoggingConfigLifecycleStateEnumLowerCase = map[string]OciServiceLoggingConfigLifecycleStateEnum{ + "creating": OciServiceLoggingConfigLifecycleStateCreating, + "active": OciServiceLoggingConfigLifecycleStateActive, + "updating": OciServiceLoggingConfigLifecycleStateUpdating, + "deleting": OciServiceLoggingConfigLifecycleStateDeleting, + "deleted": OciServiceLoggingConfigLifecycleStateDeleted, + "failed": OciServiceLoggingConfigLifecycleStateFailed, +} + +// GetOciServiceLoggingConfigLifecycleStateEnumValues Enumerates the set of values for OciServiceLoggingConfigLifecycleStateEnum +func GetOciServiceLoggingConfigLifecycleStateEnumValues() []OciServiceLoggingConfigLifecycleStateEnum { + values := make([]OciServiceLoggingConfigLifecycleStateEnum, 0) + for _, v := range mappingOciServiceLoggingConfigLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOciServiceLoggingConfigLifecycleStateEnumStringValues Enumerates the set of values in String for OciServiceLoggingConfigLifecycleStateEnum +func GetOciServiceLoggingConfigLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "UPDATING", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingOciServiceLoggingConfigLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOciServiceLoggingConfigLifecycleStateEnum(val string) (OciServiceLoggingConfigLifecycleStateEnum, bool) { + enum, ok := mappingOciServiceLoggingConfigLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go new file mode 100644 index 0000000000..232cad287e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector.go @@ -0,0 +1,261 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OutboundConnector resource that includes all the information needed to connect, authenticate and gain authorization +// to perform the account's required functions. +type OutboundConnector interface { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. + GetCompartmentId() *string + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + GetId() *string + + // The current state of this outbound connector. + GetLifecycleState() OutboundConnectorLifecycleStateEnum + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My outbound connector` + GetDisplayName() *string + + // The date and time the outbound connector was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + GetTimeCreated() *common.SDKTime + + // The availability domain the outbound connector is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + GetAvailabilityDomain() *string + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} +} + +type outboundconnector struct { + JsonData []byte + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Id *string `mandatory:"true" json:"id"` + LifecycleState OutboundConnectorLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + DisplayName *string `mandatory:"true" json:"displayName"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + ConnectorType string `json:"connectorType"` +} + +// UnmarshalJSON unmarshals json +func (m *outboundconnector) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshaleroutboundconnector outboundconnector + s := struct { + Model Unmarshaleroutboundconnector + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CompartmentId = s.Model.CompartmentId + m.Id = s.Model.Id + m.LifecycleState = s.Model.LifecycleState + m.DisplayName = s.Model.DisplayName + m.TimeCreated = s.Model.TimeCreated + m.AvailabilityDomain = s.Model.AvailabilityDomain + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.ConnectorType = s.Model.ConnectorType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *outboundconnector) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ConnectorType { + case "LDAPBIND": + mm := LdapBindAccount{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for OutboundConnector: %s.", m.ConnectorType) + return *m, nil + } +} + +//GetCompartmentId returns CompartmentId +func (m outboundconnector) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetId returns Id +func (m outboundconnector) GetId() *string { + return m.Id +} + +//GetLifecycleState returns LifecycleState +func (m outboundconnector) GetLifecycleState() OutboundConnectorLifecycleStateEnum { + return m.LifecycleState +} + +//GetDisplayName returns DisplayName +func (m outboundconnector) GetDisplayName() *string { + return m.DisplayName +} + +//GetTimeCreated returns TimeCreated +func (m outboundconnector) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m outboundconnector) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetFreeformTags returns FreeformTags +func (m outboundconnector) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m outboundconnector) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m outboundconnector) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m outboundconnector) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOutboundConnectorLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOutboundConnectorLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OutboundConnectorLifecycleStateEnum Enum with underlying type: string +type OutboundConnectorLifecycleStateEnum string + +// Set of constants representing the allowable values for OutboundConnectorLifecycleStateEnum +const ( + OutboundConnectorLifecycleStateCreating OutboundConnectorLifecycleStateEnum = "CREATING" + OutboundConnectorLifecycleStateActive OutboundConnectorLifecycleStateEnum = "ACTIVE" + OutboundConnectorLifecycleStateDeleting OutboundConnectorLifecycleStateEnum = "DELETING" + OutboundConnectorLifecycleStateDeleted OutboundConnectorLifecycleStateEnum = "DELETED" +) + +var mappingOutboundConnectorLifecycleStateEnum = map[string]OutboundConnectorLifecycleStateEnum{ + "CREATING": OutboundConnectorLifecycleStateCreating, + "ACTIVE": OutboundConnectorLifecycleStateActive, + "DELETING": OutboundConnectorLifecycleStateDeleting, + "DELETED": OutboundConnectorLifecycleStateDeleted, +} + +var mappingOutboundConnectorLifecycleStateEnumLowerCase = map[string]OutboundConnectorLifecycleStateEnum{ + "creating": OutboundConnectorLifecycleStateCreating, + "active": OutboundConnectorLifecycleStateActive, + "deleting": OutboundConnectorLifecycleStateDeleting, + "deleted": OutboundConnectorLifecycleStateDeleted, +} + +// GetOutboundConnectorLifecycleStateEnumValues Enumerates the set of values for OutboundConnectorLifecycleStateEnum +func GetOutboundConnectorLifecycleStateEnumValues() []OutboundConnectorLifecycleStateEnum { + values := make([]OutboundConnectorLifecycleStateEnum, 0) + for _, v := range mappingOutboundConnectorLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOutboundConnectorLifecycleStateEnumStringValues Enumerates the set of values in String for OutboundConnectorLifecycleStateEnum +func GetOutboundConnectorLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingOutboundConnectorLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOutboundConnectorLifecycleStateEnum(val string) (OutboundConnectorLifecycleStateEnum, bool) { + enum, ok := mappingOutboundConnectorLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// OutboundConnectorConnectorTypeEnum Enum with underlying type: string +type OutboundConnectorConnectorTypeEnum string + +// Set of constants representing the allowable values for OutboundConnectorConnectorTypeEnum +const ( + OutboundConnectorConnectorTypeLdapbind OutboundConnectorConnectorTypeEnum = "LDAPBIND" +) + +var mappingOutboundConnectorConnectorTypeEnum = map[string]OutboundConnectorConnectorTypeEnum{ + "LDAPBIND": OutboundConnectorConnectorTypeLdapbind, +} + +var mappingOutboundConnectorConnectorTypeEnumLowerCase = map[string]OutboundConnectorConnectorTypeEnum{ + "ldapbind": OutboundConnectorConnectorTypeLdapbind, +} + +// GetOutboundConnectorConnectorTypeEnumValues Enumerates the set of values for OutboundConnectorConnectorTypeEnum +func GetOutboundConnectorConnectorTypeEnumValues() []OutboundConnectorConnectorTypeEnum { + values := make([]OutboundConnectorConnectorTypeEnum, 0) + for _, v := range mappingOutboundConnectorConnectorTypeEnum { + values = append(values, v) + } + return values +} + +// GetOutboundConnectorConnectorTypeEnumStringValues Enumerates the set of values in String for OutboundConnectorConnectorTypeEnum +func GetOutboundConnectorConnectorTypeEnumStringValues() []string { + return []string{ + "LDAPBIND", + } +} + +// GetMappingOutboundConnectorConnectorTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOutboundConnectorConnectorTypeEnum(val string) (OutboundConnectorConnectorTypeEnum, bool) { + enum, ok := mappingOutboundConnectorConnectorTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go new file mode 100644 index 0000000000..3909bb42bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_summary.go @@ -0,0 +1,222 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OutboundConnectorSummary Summary information for a outbound connector. +type OutboundConnectorSummary interface { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the outbound connector. + GetCompartmentId() *string + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the outbound connector. + GetId() *string + + // The current state of this outbound connector. + GetLifecycleState() OutboundConnectorSummaryLifecycleStateEnum + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My outbound connector` + GetDisplayName() *string + + // The date and time the outbound connector was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + GetTimeCreated() *common.SDKTime + + // The availability domain the outbound connector is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + GetAvailabilityDomain() *string + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} +} + +type outboundconnectorsummary struct { + JsonData []byte + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Id *string `mandatory:"true" json:"id"` + LifecycleState OutboundConnectorSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + DisplayName *string `mandatory:"true" json:"displayName"` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + ConnectorType string `json:"connectorType"` +} + +// UnmarshalJSON unmarshals json +func (m *outboundconnectorsummary) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshaleroutboundconnectorsummary outboundconnectorsummary + s := struct { + Model Unmarshaleroutboundconnectorsummary + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CompartmentId = s.Model.CompartmentId + m.Id = s.Model.Id + m.LifecycleState = s.Model.LifecycleState + m.DisplayName = s.Model.DisplayName + m.TimeCreated = s.Model.TimeCreated + m.AvailabilityDomain = s.Model.AvailabilityDomain + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.ConnectorType = s.Model.ConnectorType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *outboundconnectorsummary) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ConnectorType { + case "LDAPBIND": + mm := LdapBindAccountSummary{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for OutboundConnectorSummary: %s.", m.ConnectorType) + return *m, nil + } +} + +//GetCompartmentId returns CompartmentId +func (m outboundconnectorsummary) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetId returns Id +func (m outboundconnectorsummary) GetId() *string { + return m.Id +} + +//GetLifecycleState returns LifecycleState +func (m outboundconnectorsummary) GetLifecycleState() OutboundConnectorSummaryLifecycleStateEnum { + return m.LifecycleState +} + +//GetDisplayName returns DisplayName +func (m outboundconnectorsummary) GetDisplayName() *string { + return m.DisplayName +} + +//GetTimeCreated returns TimeCreated +func (m outboundconnectorsummary) GetTimeCreated() *common.SDKTime { + return m.TimeCreated +} + +//GetAvailabilityDomain returns AvailabilityDomain +func (m outboundconnectorsummary) GetAvailabilityDomain() *string { + return m.AvailabilityDomain +} + +//GetFreeformTags returns FreeformTags +func (m outboundconnectorsummary) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m outboundconnectorsummary) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m outboundconnectorsummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m outboundconnectorsummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOutboundConnectorSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOutboundConnectorSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OutboundConnectorSummaryLifecycleStateEnum Enum with underlying type: string +type OutboundConnectorSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for OutboundConnectorSummaryLifecycleStateEnum +const ( + OutboundConnectorSummaryLifecycleStateCreating OutboundConnectorSummaryLifecycleStateEnum = "CREATING" + OutboundConnectorSummaryLifecycleStateActive OutboundConnectorSummaryLifecycleStateEnum = "ACTIVE" + OutboundConnectorSummaryLifecycleStateDeleting OutboundConnectorSummaryLifecycleStateEnum = "DELETING" + OutboundConnectorSummaryLifecycleStateDeleted OutboundConnectorSummaryLifecycleStateEnum = "DELETED" +) + +var mappingOutboundConnectorSummaryLifecycleStateEnum = map[string]OutboundConnectorSummaryLifecycleStateEnum{ + "CREATING": OutboundConnectorSummaryLifecycleStateCreating, + "ACTIVE": OutboundConnectorSummaryLifecycleStateActive, + "DELETING": OutboundConnectorSummaryLifecycleStateDeleting, + "DELETED": OutboundConnectorSummaryLifecycleStateDeleted, +} + +var mappingOutboundConnectorSummaryLifecycleStateEnumLowerCase = map[string]OutboundConnectorSummaryLifecycleStateEnum{ + "creating": OutboundConnectorSummaryLifecycleStateCreating, + "active": OutboundConnectorSummaryLifecycleStateActive, + "deleting": OutboundConnectorSummaryLifecycleStateDeleting, + "deleted": OutboundConnectorSummaryLifecycleStateDeleted, +} + +// GetOutboundConnectorSummaryLifecycleStateEnumValues Enumerates the set of values for OutboundConnectorSummaryLifecycleStateEnum +func GetOutboundConnectorSummaryLifecycleStateEnumValues() []OutboundConnectorSummaryLifecycleStateEnum { + values := make([]OutboundConnectorSummaryLifecycleStateEnum, 0) + for _, v := range mappingOutboundConnectorSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOutboundConnectorSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for OutboundConnectorSummaryLifecycleStateEnum +func GetOutboundConnectorSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingOutboundConnectorSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOutboundConnectorSummaryLifecycleStateEnum(val string) (OutboundConnectorSummaryLifecycleStateEnum, bool) { + enum, ok := mappingOutboundConnectorSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_test_results.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_test_results.go new file mode 100644 index 0000000000..1d58f9e97b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/outbound_connector_test_results.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OutboundConnectorTestResults Diagnostic test results between mount target and LDAP server using outbound connector. +type OutboundConnectorTestResults struct { + + // Status of overall connection test against all endpoints. + // Success represents all endpoints tested and functioning. + // PartialSuccess represents all endpoints tested, some function properly, some do not. + // Fail represents no endpoints are functioning properly, MT cannot communicate with LDAP server. + OverallResult OutboundConnectorTestResultsOverallResultEnum `mandatory:"true" json:"overallResult"` + + // Array of result of connecting to each endpoint + ResultsDetail []TestOutboundConnectorResult `mandatory:"true" json:"resultsDetail"` +} + +func (m OutboundConnectorTestResults) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OutboundConnectorTestResults) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOutboundConnectorTestResultsOverallResultEnum(string(m.OverallResult)); !ok && m.OverallResult != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OverallResult: %s. Supported values are: %s.", m.OverallResult, strings.Join(GetOutboundConnectorTestResultsOverallResultEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OutboundConnectorTestResultsOverallResultEnum Enum with underlying type: string +type OutboundConnectorTestResultsOverallResultEnum string + +// Set of constants representing the allowable values for OutboundConnectorTestResultsOverallResultEnum +const ( + OutboundConnectorTestResultsOverallResultSuccess OutboundConnectorTestResultsOverallResultEnum = "SUCCESS" + OutboundConnectorTestResultsOverallResultPartialsuccess OutboundConnectorTestResultsOverallResultEnum = "PARTIALSUCCESS" + OutboundConnectorTestResultsOverallResultFail OutboundConnectorTestResultsOverallResultEnum = "FAIL" +) + +var mappingOutboundConnectorTestResultsOverallResultEnum = map[string]OutboundConnectorTestResultsOverallResultEnum{ + "SUCCESS": OutboundConnectorTestResultsOverallResultSuccess, + "PARTIALSUCCESS": OutboundConnectorTestResultsOverallResultPartialsuccess, + "FAIL": OutboundConnectorTestResultsOverallResultFail, +} + +var mappingOutboundConnectorTestResultsOverallResultEnumLowerCase = map[string]OutboundConnectorTestResultsOverallResultEnum{ + "success": OutboundConnectorTestResultsOverallResultSuccess, + "partialsuccess": OutboundConnectorTestResultsOverallResultPartialsuccess, + "fail": OutboundConnectorTestResultsOverallResultFail, +} + +// GetOutboundConnectorTestResultsOverallResultEnumValues Enumerates the set of values for OutboundConnectorTestResultsOverallResultEnum +func GetOutboundConnectorTestResultsOverallResultEnumValues() []OutboundConnectorTestResultsOverallResultEnum { + values := make([]OutboundConnectorTestResultsOverallResultEnum, 0) + for _, v := range mappingOutboundConnectorTestResultsOverallResultEnum { + values = append(values, v) + } + return values +} + +// GetOutboundConnectorTestResultsOverallResultEnumStringValues Enumerates the set of values in String for OutboundConnectorTestResultsOverallResultEnum +func GetOutboundConnectorTestResultsOverallResultEnumStringValues() []string { + return []string{ + "SUCCESS", + "PARTIALSUCCESS", + "FAIL", + } +} + +// GetMappingOutboundConnectorTestResultsOverallResultEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOutboundConnectorTestResultsOverallResultEnum(val string) (OutboundConnectorTestResultsOverallResultEnum, bool) { + enum, ok := mappingOutboundConnectorTestResultsOverallResultEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go new file mode 100644 index 0000000000..5af68d9559 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/pause_filesystem_snapshot_policy_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// PauseFilesystemSnapshotPolicyRequest wrapper for the PauseFilesystemSnapshotPolicy operation +type PauseFilesystemSnapshotPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request PauseFilesystemSnapshotPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PauseFilesystemSnapshotPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request PauseFilesystemSnapshotPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PauseFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request PauseFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PauseFilesystemSnapshotPolicyResponse wrapper for the PauseFilesystemSnapshotPolicy operation +type PauseFilesystemSnapshotPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response PauseFilesystemSnapshotPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PauseFilesystemSnapshotPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go new file mode 100644 index 0000000000..59bc277dd8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication.go @@ -0,0 +1,228 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Replication Replications are the primary resource that governs the policy of cross-region replication between source +// and target file systems. Replications are associated with a secondary resource called a ReplicationTarget +// located in another availability domain in the same or different region. +// The replication retrieves the delta of data between two snapshots of a source file system +// and sends it to the associated `ReplicationTarget`, which applies it to the target +// file system. For more information, see File System Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). +type Replication struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + Id *string `mandatory:"true" json:"id"` + + // The current lifecycle state of the replication. + LifecycleState ReplicationLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My replication` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the replication was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-01-04T20:01:29.100Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source file system. + SourceId *string `mandatory:"true" json:"sourceId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the target file system. + TargetId *string `mandatory:"true" json:"targetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the ReplicationTarget. + ReplicationTargetId *string `mandatory:"true" json:"replicationTargetId"` + + // The availability domain that contains the replication. May be unset as a blank or `NULL` value. + // Example: `Uocm:PHX-AD-2` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Duration in minutes between replication snapshots. + ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last snapshot that has been replicated completely. + // Empty if the copy of the initial snapshot is not complete. + LastSnapshotId *string `mandatory:"false" json:"lastSnapshotId"` + + // The snapshotTime of the most recent recoverable replication snapshot + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-04-04T20:01:29.100Z` + RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` + + // The current state of the snapshot during replication operations. + DeltaStatus ReplicationDeltaStatusEnum `mandatory:"false" json:"deltaStatus,omitempty"` + + // Additional information about the current 'lifecycleState'. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Percentage progress of the current replication cycle. + DeltaProgress *int64 `mandatory:"false" json:"deltaProgress"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Replication) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Replication) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetReplicationLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingReplicationDeltaStatusEnum(string(m.DeltaStatus)); !ok && m.DeltaStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeltaStatus: %s. Supported values are: %s.", m.DeltaStatus, strings.Join(GetReplicationDeltaStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationLifecycleStateEnum Enum with underlying type: string +type ReplicationLifecycleStateEnum string + +// Set of constants representing the allowable values for ReplicationLifecycleStateEnum +const ( + ReplicationLifecycleStateCreating ReplicationLifecycleStateEnum = "CREATING" + ReplicationLifecycleStateActive ReplicationLifecycleStateEnum = "ACTIVE" + ReplicationLifecycleStateDeleting ReplicationLifecycleStateEnum = "DELETING" + ReplicationLifecycleStateDeleted ReplicationLifecycleStateEnum = "DELETED" + ReplicationLifecycleStateFailed ReplicationLifecycleStateEnum = "FAILED" +) + +var mappingReplicationLifecycleStateEnum = map[string]ReplicationLifecycleStateEnum{ + "CREATING": ReplicationLifecycleStateCreating, + "ACTIVE": ReplicationLifecycleStateActive, + "DELETING": ReplicationLifecycleStateDeleting, + "DELETED": ReplicationLifecycleStateDeleted, + "FAILED": ReplicationLifecycleStateFailed, +} + +var mappingReplicationLifecycleStateEnumLowerCase = map[string]ReplicationLifecycleStateEnum{ + "creating": ReplicationLifecycleStateCreating, + "active": ReplicationLifecycleStateActive, + "deleting": ReplicationLifecycleStateDeleting, + "deleted": ReplicationLifecycleStateDeleted, + "failed": ReplicationLifecycleStateFailed, +} + +// GetReplicationLifecycleStateEnumValues Enumerates the set of values for ReplicationLifecycleStateEnum +func GetReplicationLifecycleStateEnumValues() []ReplicationLifecycleStateEnum { + values := make([]ReplicationLifecycleStateEnum, 0) + for _, v := range mappingReplicationLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetReplicationLifecycleStateEnumStringValues Enumerates the set of values in String for ReplicationLifecycleStateEnum +func GetReplicationLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingReplicationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationLifecycleStateEnum(val string) (ReplicationLifecycleStateEnum, bool) { + enum, ok := mappingReplicationLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ReplicationDeltaStatusEnum Enum with underlying type: string +type ReplicationDeltaStatusEnum string + +// Set of constants representing the allowable values for ReplicationDeltaStatusEnum +const ( + ReplicationDeltaStatusIdle ReplicationDeltaStatusEnum = "IDLE" + ReplicationDeltaStatusCapturing ReplicationDeltaStatusEnum = "CAPTURING" + ReplicationDeltaStatusApplying ReplicationDeltaStatusEnum = "APPLYING" + ReplicationDeltaStatusServiceError ReplicationDeltaStatusEnum = "SERVICE_ERROR" + ReplicationDeltaStatusUserError ReplicationDeltaStatusEnum = "USER_ERROR" + ReplicationDeltaStatusFailed ReplicationDeltaStatusEnum = "FAILED" + ReplicationDeltaStatusTransferring ReplicationDeltaStatusEnum = "TRANSFERRING" +) + +var mappingReplicationDeltaStatusEnum = map[string]ReplicationDeltaStatusEnum{ + "IDLE": ReplicationDeltaStatusIdle, + "CAPTURING": ReplicationDeltaStatusCapturing, + "APPLYING": ReplicationDeltaStatusApplying, + "SERVICE_ERROR": ReplicationDeltaStatusServiceError, + "USER_ERROR": ReplicationDeltaStatusUserError, + "FAILED": ReplicationDeltaStatusFailed, + "TRANSFERRING": ReplicationDeltaStatusTransferring, +} + +var mappingReplicationDeltaStatusEnumLowerCase = map[string]ReplicationDeltaStatusEnum{ + "idle": ReplicationDeltaStatusIdle, + "capturing": ReplicationDeltaStatusCapturing, + "applying": ReplicationDeltaStatusApplying, + "service_error": ReplicationDeltaStatusServiceError, + "user_error": ReplicationDeltaStatusUserError, + "failed": ReplicationDeltaStatusFailed, + "transferring": ReplicationDeltaStatusTransferring, +} + +// GetReplicationDeltaStatusEnumValues Enumerates the set of values for ReplicationDeltaStatusEnum +func GetReplicationDeltaStatusEnumValues() []ReplicationDeltaStatusEnum { + values := make([]ReplicationDeltaStatusEnum, 0) + for _, v := range mappingReplicationDeltaStatusEnum { + values = append(values, v) + } + return values +} + +// GetReplicationDeltaStatusEnumStringValues Enumerates the set of values in String for ReplicationDeltaStatusEnum +func GetReplicationDeltaStatusEnumStringValues() []string { + return []string{ + "IDLE", + "CAPTURING", + "APPLYING", + "SERVICE_ERROR", + "USER_ERROR", + "FAILED", + "TRANSFERRING", + } +} + +// GetMappingReplicationDeltaStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationDeltaStatusEnum(val string) (ReplicationDeltaStatusEnum, bool) { + enum, ok := mappingReplicationDeltaStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_estimate.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_estimate.go new file mode 100644 index 0000000000..2faf46aa63 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_estimate.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplicationEstimate Details for response from replication estimation. +type ReplicationEstimate struct { + + // The rate of change on source filesystem which was used to provide the estimate in MegaBytes per second. + ChangeRateInMBps *int `mandatory:"true" json:"changeRateInMBps"` + + // Specifies whether replication can be enabled on the file system. + IsReplicationSupported *bool `mandatory:"true" json:"isReplicationSupported"` + + // The minimum supported replication interval for specified file system in minutes. + MinimumSupportedIntervalInMinutes *int `mandatory:"true" json:"minimumSupportedIntervalInMinutes"` + + // The approximate time required for the base sync between source and target to finish. + EstimatedBaseCopyTimeInMinutes *int `mandatory:"true" json:"estimatedBaseCopyTimeInMinutes"` + + // Array of allowed target region names which can be paired with source file system. + AllowedTargetRegions []string `mandatory:"true" json:"allowedTargetRegions"` +} + +func (m ReplicationEstimate) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplicationEstimate) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_fail_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_fail_request_response.go new file mode 100644 index 0000000000..2ed18532de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_fail_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ReplicationFailRequest wrapper for the ReplicationFail operation +type ReplicationFailRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + ReplicationId *string `mandatory:"true" contributesTo:"query" name:"replicationId"` + + // The `objectNum` of the associated replicationTarget. + ReplicationTargetNum *string `mandatory:"false" contributesTo:"query" name:"replicationTargetNum"` + + // The `deltaState` of the snapshot in-transit. + DeltaState *string `mandatory:"false" contributesTo:"query" name:"deltaState"` + + // The flag to represent if it is a replication failover message. + IsFailover *bool `mandatory:"false" contributesTo:"query" name:"isFailover"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ReplicationFailRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ReplicationFailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ReplicationFailRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ReplicationFailRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationFailRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationFailResponse wrapper for the ReplicationFail operation +type ReplicationFailResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Replication instance + Replication `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ReplicationFailResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ReplicationFailResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_status_update_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_status_update_request_response.go new file mode 100644 index 0000000000..d08fd54bb4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_status_update_request_response.go @@ -0,0 +1,166 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ReplicationStatusUpdateRequest wrapper for the ReplicationStatusUpdate operation +type ReplicationStatusUpdateRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + ReplicationId *string `mandatory:"true" contributesTo:"query" name:"replicationId"` + + // The `deltaStatus` of the snapshot during replication operations. + DeltaStatus ReplicationStatusUpdateDeltaStatusEnum `mandatory:"false" contributesTo:"query" name:"deltaStatus" omitEmpty:"true"` + + // The `deltaState` of the snapshot in-transit. + DeltaState *string `mandatory:"false" contributesTo:"query" name:"deltaState"` + + // The `objectNum` of the associated replicationTarget. + ReplicationTargetNum *string `mandatory:"false" contributesTo:"query" name:"replicationTargetNum"` + + // The `objectNum` of the start point of the snapshot during replication operations. + LastSnapshotNum *string `mandatory:"false" contributesTo:"query" name:"lastSnapshotNum"` + + // The `objectNum` of the end point of the snapshot during replication operations. + NewSnapshotNum *string `mandatory:"false" contributesTo:"query" name:"newSnapshotNum"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ReplicationStatusUpdateRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ReplicationStatusUpdateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ReplicationStatusUpdateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ReplicationStatusUpdateRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationStatusUpdateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicationStatusUpdateDeltaStatusEnum(string(request.DeltaStatus)); !ok && request.DeltaStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeltaStatus: %s. Supported values are: %s.", request.DeltaStatus, strings.Join(GetReplicationStatusUpdateDeltaStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationStatusUpdateResponse wrapper for the ReplicationStatusUpdate operation +type ReplicationStatusUpdateResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Replication instance + Replication `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ReplicationStatusUpdateResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ReplicationStatusUpdateResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ReplicationStatusUpdateDeltaStatusEnum Enum with underlying type: string +type ReplicationStatusUpdateDeltaStatusEnum string + +// Set of constants representing the allowable values for ReplicationStatusUpdateDeltaStatusEnum +const ( + ReplicationStatusUpdateDeltaStatusIdle ReplicationStatusUpdateDeltaStatusEnum = "IDLE" + ReplicationStatusUpdateDeltaStatusCapturing ReplicationStatusUpdateDeltaStatusEnum = "CAPTURING" + ReplicationStatusUpdateDeltaStatusApplying ReplicationStatusUpdateDeltaStatusEnum = "APPLYING" + ReplicationStatusUpdateDeltaStatusServiceError ReplicationStatusUpdateDeltaStatusEnum = "SERVICE_ERROR" + ReplicationStatusUpdateDeltaStatusUserError ReplicationStatusUpdateDeltaStatusEnum = "USER_ERROR" + ReplicationStatusUpdateDeltaStatusFailed ReplicationStatusUpdateDeltaStatusEnum = "FAILED" + ReplicationStatusUpdateDeltaStatusTransferring ReplicationStatusUpdateDeltaStatusEnum = "TRANSFERRING" +) + +var mappingReplicationStatusUpdateDeltaStatusEnum = map[string]ReplicationStatusUpdateDeltaStatusEnum{ + "IDLE": ReplicationStatusUpdateDeltaStatusIdle, + "CAPTURING": ReplicationStatusUpdateDeltaStatusCapturing, + "APPLYING": ReplicationStatusUpdateDeltaStatusApplying, + "SERVICE_ERROR": ReplicationStatusUpdateDeltaStatusServiceError, + "USER_ERROR": ReplicationStatusUpdateDeltaStatusUserError, + "FAILED": ReplicationStatusUpdateDeltaStatusFailed, + "TRANSFERRING": ReplicationStatusUpdateDeltaStatusTransferring, +} + +var mappingReplicationStatusUpdateDeltaStatusEnumLowerCase = map[string]ReplicationStatusUpdateDeltaStatusEnum{ + "idle": ReplicationStatusUpdateDeltaStatusIdle, + "capturing": ReplicationStatusUpdateDeltaStatusCapturing, + "applying": ReplicationStatusUpdateDeltaStatusApplying, + "service_error": ReplicationStatusUpdateDeltaStatusServiceError, + "user_error": ReplicationStatusUpdateDeltaStatusUserError, + "failed": ReplicationStatusUpdateDeltaStatusFailed, + "transferring": ReplicationStatusUpdateDeltaStatusTransferring, +} + +// GetReplicationStatusUpdateDeltaStatusEnumValues Enumerates the set of values for ReplicationStatusUpdateDeltaStatusEnum +func GetReplicationStatusUpdateDeltaStatusEnumValues() []ReplicationStatusUpdateDeltaStatusEnum { + values := make([]ReplicationStatusUpdateDeltaStatusEnum, 0) + for _, v := range mappingReplicationStatusUpdateDeltaStatusEnum { + values = append(values, v) + } + return values +} + +// GetReplicationStatusUpdateDeltaStatusEnumStringValues Enumerates the set of values in String for ReplicationStatusUpdateDeltaStatusEnum +func GetReplicationStatusUpdateDeltaStatusEnumStringValues() []string { + return []string{ + "IDLE", + "CAPTURING", + "APPLYING", + "SERVICE_ERROR", + "USER_ERROR", + "FAILED", + "TRANSFERRING", + } +} + +// GetMappingReplicationStatusUpdateDeltaStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationStatusUpdateDeltaStatusEnum(val string) (ReplicationStatusUpdateDeltaStatusEnum, bool) { + enum, ok := mappingReplicationStatusUpdateDeltaStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go new file mode 100644 index 0000000000..a26fe52e95 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_summary.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplicationSummary Summary information for a replication. +type ReplicationSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + Id *string `mandatory:"true" json:"id"` + + // The current state of this replication. + // This resource can be in a `FAILED` state if replication target is deleted instead of the replication resource. + LifecycleState ReplicationSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My replication` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the replication was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2020-02-04T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the replication is in. The replication must be in the same availability domain as the source file system. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Duration in minutes between replication snapshots. + ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Additional information about the current `lifecycleState`. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The `snapshotTime` of the most recent recoverable replication snapshot + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-04-04T20:01:29.100Z` + RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` +} + +func (m ReplicationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplicationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicationSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetReplicationSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationSummaryLifecycleStateEnum Enum with underlying type: string +type ReplicationSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ReplicationSummaryLifecycleStateEnum +const ( + ReplicationSummaryLifecycleStateCreating ReplicationSummaryLifecycleStateEnum = "CREATING" + ReplicationSummaryLifecycleStateActive ReplicationSummaryLifecycleStateEnum = "ACTIVE" + ReplicationSummaryLifecycleStateDeleting ReplicationSummaryLifecycleStateEnum = "DELETING" + ReplicationSummaryLifecycleStateDeleted ReplicationSummaryLifecycleStateEnum = "DELETED" + ReplicationSummaryLifecycleStateFailed ReplicationSummaryLifecycleStateEnum = "FAILED" +) + +var mappingReplicationSummaryLifecycleStateEnum = map[string]ReplicationSummaryLifecycleStateEnum{ + "CREATING": ReplicationSummaryLifecycleStateCreating, + "ACTIVE": ReplicationSummaryLifecycleStateActive, + "DELETING": ReplicationSummaryLifecycleStateDeleting, + "DELETED": ReplicationSummaryLifecycleStateDeleted, + "FAILED": ReplicationSummaryLifecycleStateFailed, +} + +var mappingReplicationSummaryLifecycleStateEnumLowerCase = map[string]ReplicationSummaryLifecycleStateEnum{ + "creating": ReplicationSummaryLifecycleStateCreating, + "active": ReplicationSummaryLifecycleStateActive, + "deleting": ReplicationSummaryLifecycleStateDeleting, + "deleted": ReplicationSummaryLifecycleStateDeleted, + "failed": ReplicationSummaryLifecycleStateFailed, +} + +// GetReplicationSummaryLifecycleStateEnumValues Enumerates the set of values for ReplicationSummaryLifecycleStateEnum +func GetReplicationSummaryLifecycleStateEnumValues() []ReplicationSummaryLifecycleStateEnum { + values := make([]ReplicationSummaryLifecycleStateEnum, 0) + for _, v := range mappingReplicationSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetReplicationSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ReplicationSummaryLifecycleStateEnum +func GetReplicationSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingReplicationSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationSummaryLifecycleStateEnum(val string) (ReplicationSummaryLifecycleStateEnum, bool) { + enum, ok := mappingReplicationSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target.go new file mode 100644 index 0000000000..d31dbcd6d4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target.go @@ -0,0 +1,232 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplicationTarget Replication targets are associated with a primary resource called a Replication +// located in another availability domain in the same or different region. +// The replication retrieves the delta of data between two snapshots of a source file system +// and sends it to the associated `ReplicationTarget`, which applies it to the target +// file system. +// All operations (except `DELETE`) must be done using the associated replication resource. +// Deleting a `ReplicationTarget` allows the target file system to be exported. +// Deleting a `ReplicationTarget` does not delete the associated `Replication` resource, but places it in a `FAILED` state. +// For more information, see File System Replication (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/FSreplication.htm). +type ReplicationTarget struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + Id *string `mandatory:"true" json:"id"` + + // The current state of this replication. + LifecycleState ReplicationTargetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. This name is same as the replication display name for the associated resource. + // Example: `My Replication` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the replication target was created in target region. + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-01-04T20:01:29.100Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of source filesystem. + SourceId *string `mandatory:"true" json:"sourceId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of target filesystem. + TargetId *string `mandatory:"true" json:"targetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of replication. + ReplicationId *string `mandatory:"true" json:"replicationId"` + + // The availability domain the replication resource is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the last snapshot snapshot which was completely applied to the target file system. + // Empty while the initial snapshot is being applied. + LastSnapshotId *string `mandatory:"false" json:"lastSnapshotId"` + + // The snapshotTime of the most recent recoverable replication snapshot + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-04-04T20:01:29.100Z` + RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` + + // The current state of the snapshot during replication operations. + DeltaStatus ReplicationTargetDeltaStatusEnum `mandatory:"false" json:"deltaStatus,omitempty"` + + // Percentage progress of the snapshot which is currently being applied to the target region. + // If no application is in progress then this value is 100. Value is 0 before the initial snapshot is applied. + ApplyingReplicationProgress *int64 `mandatory:"false" json:"applyingReplicationProgress"` + + // Percentage progress of the current replication cycle. + DeltaProgress *int64 `mandatory:"false" json:"deltaProgress"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Additional information about the current `lifecycleState`. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` +} + +func (m ReplicationTarget) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplicationTarget) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicationTargetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetReplicationTargetLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingReplicationTargetDeltaStatusEnum(string(m.DeltaStatus)); !ok && m.DeltaStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeltaStatus: %s. Supported values are: %s.", m.DeltaStatus, strings.Join(GetReplicationTargetDeltaStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationTargetLifecycleStateEnum Enum with underlying type: string +type ReplicationTargetLifecycleStateEnum string + +// Set of constants representing the allowable values for ReplicationTargetLifecycleStateEnum +const ( + ReplicationTargetLifecycleStateCreating ReplicationTargetLifecycleStateEnum = "CREATING" + ReplicationTargetLifecycleStateActive ReplicationTargetLifecycleStateEnum = "ACTIVE" + ReplicationTargetLifecycleStateDeleting ReplicationTargetLifecycleStateEnum = "DELETING" + ReplicationTargetLifecycleStateDeleted ReplicationTargetLifecycleStateEnum = "DELETED" + ReplicationTargetLifecycleStateFailed ReplicationTargetLifecycleStateEnum = "FAILED" +) + +var mappingReplicationTargetLifecycleStateEnum = map[string]ReplicationTargetLifecycleStateEnum{ + "CREATING": ReplicationTargetLifecycleStateCreating, + "ACTIVE": ReplicationTargetLifecycleStateActive, + "DELETING": ReplicationTargetLifecycleStateDeleting, + "DELETED": ReplicationTargetLifecycleStateDeleted, + "FAILED": ReplicationTargetLifecycleStateFailed, +} + +var mappingReplicationTargetLifecycleStateEnumLowerCase = map[string]ReplicationTargetLifecycleStateEnum{ + "creating": ReplicationTargetLifecycleStateCreating, + "active": ReplicationTargetLifecycleStateActive, + "deleting": ReplicationTargetLifecycleStateDeleting, + "deleted": ReplicationTargetLifecycleStateDeleted, + "failed": ReplicationTargetLifecycleStateFailed, +} + +// GetReplicationTargetLifecycleStateEnumValues Enumerates the set of values for ReplicationTargetLifecycleStateEnum +func GetReplicationTargetLifecycleStateEnumValues() []ReplicationTargetLifecycleStateEnum { + values := make([]ReplicationTargetLifecycleStateEnum, 0) + for _, v := range mappingReplicationTargetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetReplicationTargetLifecycleStateEnumStringValues Enumerates the set of values in String for ReplicationTargetLifecycleStateEnum +func GetReplicationTargetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingReplicationTargetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationTargetLifecycleStateEnum(val string) (ReplicationTargetLifecycleStateEnum, bool) { + enum, ok := mappingReplicationTargetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ReplicationTargetDeltaStatusEnum Enum with underlying type: string +type ReplicationTargetDeltaStatusEnum string + +// Set of constants representing the allowable values for ReplicationTargetDeltaStatusEnum +const ( + ReplicationTargetDeltaStatusIdle ReplicationTargetDeltaStatusEnum = "IDLE" + ReplicationTargetDeltaStatusCapturing ReplicationTargetDeltaStatusEnum = "CAPTURING" + ReplicationTargetDeltaStatusApplying ReplicationTargetDeltaStatusEnum = "APPLYING" + ReplicationTargetDeltaStatusServiceError ReplicationTargetDeltaStatusEnum = "SERVICE_ERROR" + ReplicationTargetDeltaStatusUserError ReplicationTargetDeltaStatusEnum = "USER_ERROR" + ReplicationTargetDeltaStatusFailed ReplicationTargetDeltaStatusEnum = "FAILED" + ReplicationTargetDeltaStatusTransferring ReplicationTargetDeltaStatusEnum = "TRANSFERRING" +) + +var mappingReplicationTargetDeltaStatusEnum = map[string]ReplicationTargetDeltaStatusEnum{ + "IDLE": ReplicationTargetDeltaStatusIdle, + "CAPTURING": ReplicationTargetDeltaStatusCapturing, + "APPLYING": ReplicationTargetDeltaStatusApplying, + "SERVICE_ERROR": ReplicationTargetDeltaStatusServiceError, + "USER_ERROR": ReplicationTargetDeltaStatusUserError, + "FAILED": ReplicationTargetDeltaStatusFailed, + "TRANSFERRING": ReplicationTargetDeltaStatusTransferring, +} + +var mappingReplicationTargetDeltaStatusEnumLowerCase = map[string]ReplicationTargetDeltaStatusEnum{ + "idle": ReplicationTargetDeltaStatusIdle, + "capturing": ReplicationTargetDeltaStatusCapturing, + "applying": ReplicationTargetDeltaStatusApplying, + "service_error": ReplicationTargetDeltaStatusServiceError, + "user_error": ReplicationTargetDeltaStatusUserError, + "failed": ReplicationTargetDeltaStatusFailed, + "transferring": ReplicationTargetDeltaStatusTransferring, +} + +// GetReplicationTargetDeltaStatusEnumValues Enumerates the set of values for ReplicationTargetDeltaStatusEnum +func GetReplicationTargetDeltaStatusEnumValues() []ReplicationTargetDeltaStatusEnum { + values := make([]ReplicationTargetDeltaStatusEnum, 0) + for _, v := range mappingReplicationTargetDeltaStatusEnum { + values = append(values, v) + } + return values +} + +// GetReplicationTargetDeltaStatusEnumStringValues Enumerates the set of values in String for ReplicationTargetDeltaStatusEnum +func GetReplicationTargetDeltaStatusEnumStringValues() []string { + return []string{ + "IDLE", + "CAPTURING", + "APPLYING", + "SERVICE_ERROR", + "USER_ERROR", + "FAILED", + "TRANSFERRING", + } +} + +// GetMappingReplicationTargetDeltaStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationTargetDeltaStatusEnum(val string) (ReplicationTargetDeltaStatusEnum, bool) { + enum, ok := mappingReplicationTargetDeltaStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_delete_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_delete_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_delete_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_delete_request_response.go index 16a13935d4..de43e9eb4b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_delete_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_delete_request_response.go @@ -1,20 +1,25 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ReplicationTargetDeleteRequest wrapper for the ReplicationTargetDelete operation type ReplicationTargetDeleteRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Replication Target + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. ReplicationTargetId *string `mandatory:"true" contributesTo:"query" name:"replicationTargetId"` + // The `objectNum` of the associated replication. + ReplicationNum *string `mandatory:"false" contributesTo:"query" name:"replicationNum"` + // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -31,6 +36,10 @@ func (request ReplicationTargetDeleteRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ReplicationTargetDeleteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +55,17 @@ func (request ReplicationTargetDeleteRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationTargetDeleteRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ReplicationTargetDeleteResponse wrapper for the ReplicationTargetDelete operation type ReplicationTargetDeleteResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_fail_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_fail_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_fail_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_fail_request_response.go index 9f39c5e87d..bbc85383ba 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_fail_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_fail_request_response.go @@ -1,20 +1,25 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ReplicationTargetFailRequest wrapper for the ReplicationTargetFail operation type ReplicationTargetFailRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Replication Target + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. ReplicationTargetId *string `mandatory:"true" contributesTo:"query" name:"replicationTargetId"` + // The `objectNum` of the associated replication. + ReplicationNum *string `mandatory:"false" contributesTo:"query" name:"replicationNum"` + // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -31,6 +36,10 @@ func (request ReplicationTargetFailRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ReplicationTargetFailRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +55,17 @@ func (request ReplicationTargetFailRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationTargetFailRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ReplicationTargetFailResponse wrapper for the ReplicationTargetFail operation type ReplicationTargetFailResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_file_system_get_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_file_system_get_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_file_system_get_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_file_system_get_request_response.go index 17eeb76745..01f8c6d8d1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/replication_target_file_system_get_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_file_system_get_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ReplicationTargetFileSystemGetRequest wrapper for the ReplicationTargetFileSystemGet operation @@ -31,6 +33,10 @@ func (request ReplicationTargetFileSystemGetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ReplicationTargetFileSystemGetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ReplicationTargetFileSystemGetRequest) RetryPolicy() *common.Retry return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationTargetFileSystemGetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ReplicationTargetFileSystemGetResponse wrapper for the ReplicationTargetFileSystemGet operation type ReplicationTargetFileSystemGetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_get_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_get_request_response.go new file mode 100644 index 0000000000..c882b98cc1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_get_request_response.go @@ -0,0 +1,91 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ReplicationTargetGetRequest wrapper for the ReplicationTargetGet operation +type ReplicationTargetGetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. + ReplicationTargetId *string `mandatory:"true" contributesTo:"query" name:"replicationTargetId"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ReplicationTargetGetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ReplicationTargetGetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ReplicationTargetGetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ReplicationTargetGetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationTargetGetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationTargetGetResponse wrapper for the ReplicationTargetGet operation +type ReplicationTargetGetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ReplicationTarget instance + ReplicationTarget `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ReplicationTargetGetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ReplicationTargetGetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_progress.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_progress.go new file mode 100644 index 0000000000..b66db3af87 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_progress.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplicationTargetProgress The progress percentage of target job and source-target combined progress percentage. +type ReplicationTargetProgress struct { + + // The Progress percentage of the target job. + TargetProgressPercentage *int `mandatory:"true" json:"targetProgressPercentage"` + + // The average Progress percentage between the source job and target job. + CombinedProgressPercentage *int `mandatory:"true" json:"combinedProgressPercentage"` + + // The num of the last snapshot which was completely applied to the target file system. + LastSnapshotNum *string `mandatory:"true" json:"lastSnapshotNum"` + + // The num of the new snapshot which is currently being applied to the target file system. + NewSnapshotNum *string `mandatory:"true" json:"newSnapshotNum"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of replication. + ReplicationId *string `mandatory:"true" json:"replicationId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of replicationTarget. + ReplicationTargetId *string `mandatory:"true" json:"replicationTargetId"` +} + +func (m ReplicationTargetProgress) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplicationTargetProgress) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_status_update_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_status_update_request_response.go new file mode 100644 index 0000000000..ce6bd6c02b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_status_update_request_response.go @@ -0,0 +1,181 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "io" + "net/http" + "strings" +) + +// ReplicationTargetStatusUpdateRequest wrapper for the ReplicationTargetStatusUpdate operation +type ReplicationTargetStatusUpdateRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. + ReplicationTargetId *string `mandatory:"true" contributesTo:"query" name:"replicationTargetId"` + + // The `deltaStatus` of the snapshot during replication operations. + DeltaStatus ReplicationTargetStatusUpdateDeltaStatusEnum `mandatory:"false" contributesTo:"query" name:"deltaStatus" omitEmpty:"true"` + + // The `deltaState` of the snapshot in-transit. + DeltaState *string `mandatory:"false" contributesTo:"query" name:"deltaState"` + + // The `objectNum` of the associated replication. + ReplicationNum *string `mandatory:"false" contributesTo:"query" name:"replicationNum"` + + // The `objectNum` of the start point of the snapshot during replication operations. + LastSnapshotNum *string `mandatory:"false" contributesTo:"query" name:"lastSnapshotNum"` + + // The `objectNum` of the end point of the snapshot during replication operations. + NewSnapshotNum *string `mandatory:"false" contributesTo:"query" name:"newSnapshotNum"` + + // The `snapshotTime` of the most recent recoverable replication snapshot. + RecoveryPointTime *string `mandatory:"false" contributesTo:"query" name:"recoveryPointTime"` + + // The kmsKeyOcid for the Snapshot in-flight. + KmsKeyOcid *string `mandatory:"false" contributesTo:"query" name:"kmsKeyOcid"` + + // The total number of bytes in the Snapshot in-flight. + DeltaByteCount *string `mandatory:"false" contributesTo:"query" name:"deltaByteCount"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The cipherText of the ReplicationDeltaTransferKey for the Snapshot in-flight. + CipherTextDetails io.ReadCloser `mandatory:"false" contributesTo:"body" encoding:"binary"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ReplicationTargetStatusUpdateRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ReplicationTargetStatusUpdateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + httpRequest, err := common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) + if err == nil && binaryRequestBody.Seekable() { + common.UpdateRequestBinaryBody(&httpRequest, binaryRequestBody) + } + return httpRequest, err +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ReplicationTargetStatusUpdateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + rsc := common.NewOCIReadSeekCloser(request.CipherTextDetails) + if rsc.Seekable() { + return rsc, true + } + return nil, true + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ReplicationTargetStatusUpdateRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReplicationTargetStatusUpdateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicationTargetStatusUpdateDeltaStatusEnum(string(request.DeltaStatus)); !ok && request.DeltaStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DeltaStatus: %s. Supported values are: %s.", request.DeltaStatus, strings.Join(GetReplicationTargetStatusUpdateDeltaStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationTargetStatusUpdateResponse wrapper for the ReplicationTargetStatusUpdate operation +type ReplicationTargetStatusUpdateResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ReplicationTarget instance + ReplicationTarget `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ReplicationTargetStatusUpdateResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ReplicationTargetStatusUpdateResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ReplicationTargetStatusUpdateDeltaStatusEnum Enum with underlying type: string +type ReplicationTargetStatusUpdateDeltaStatusEnum string + +// Set of constants representing the allowable values for ReplicationTargetStatusUpdateDeltaStatusEnum +const ( + ReplicationTargetStatusUpdateDeltaStatusIdle ReplicationTargetStatusUpdateDeltaStatusEnum = "IDLE" + ReplicationTargetStatusUpdateDeltaStatusCapturing ReplicationTargetStatusUpdateDeltaStatusEnum = "CAPTURING" + ReplicationTargetStatusUpdateDeltaStatusApplying ReplicationTargetStatusUpdateDeltaStatusEnum = "APPLYING" + ReplicationTargetStatusUpdateDeltaStatusServiceError ReplicationTargetStatusUpdateDeltaStatusEnum = "SERVICE_ERROR" + ReplicationTargetStatusUpdateDeltaStatusUserError ReplicationTargetStatusUpdateDeltaStatusEnum = "USER_ERROR" + ReplicationTargetStatusUpdateDeltaStatusFailed ReplicationTargetStatusUpdateDeltaStatusEnum = "FAILED" + ReplicationTargetStatusUpdateDeltaStatusTransferring ReplicationTargetStatusUpdateDeltaStatusEnum = "TRANSFERRING" +) + +var mappingReplicationTargetStatusUpdateDeltaStatusEnum = map[string]ReplicationTargetStatusUpdateDeltaStatusEnum{ + "IDLE": ReplicationTargetStatusUpdateDeltaStatusIdle, + "CAPTURING": ReplicationTargetStatusUpdateDeltaStatusCapturing, + "APPLYING": ReplicationTargetStatusUpdateDeltaStatusApplying, + "SERVICE_ERROR": ReplicationTargetStatusUpdateDeltaStatusServiceError, + "USER_ERROR": ReplicationTargetStatusUpdateDeltaStatusUserError, + "FAILED": ReplicationTargetStatusUpdateDeltaStatusFailed, + "TRANSFERRING": ReplicationTargetStatusUpdateDeltaStatusTransferring, +} + +var mappingReplicationTargetStatusUpdateDeltaStatusEnumLowerCase = map[string]ReplicationTargetStatusUpdateDeltaStatusEnum{ + "idle": ReplicationTargetStatusUpdateDeltaStatusIdle, + "capturing": ReplicationTargetStatusUpdateDeltaStatusCapturing, + "applying": ReplicationTargetStatusUpdateDeltaStatusApplying, + "service_error": ReplicationTargetStatusUpdateDeltaStatusServiceError, + "user_error": ReplicationTargetStatusUpdateDeltaStatusUserError, + "failed": ReplicationTargetStatusUpdateDeltaStatusFailed, + "transferring": ReplicationTargetStatusUpdateDeltaStatusTransferring, +} + +// GetReplicationTargetStatusUpdateDeltaStatusEnumValues Enumerates the set of values for ReplicationTargetStatusUpdateDeltaStatusEnum +func GetReplicationTargetStatusUpdateDeltaStatusEnumValues() []ReplicationTargetStatusUpdateDeltaStatusEnum { + values := make([]ReplicationTargetStatusUpdateDeltaStatusEnum, 0) + for _, v := range mappingReplicationTargetStatusUpdateDeltaStatusEnum { + values = append(values, v) + } + return values +} + +// GetReplicationTargetStatusUpdateDeltaStatusEnumStringValues Enumerates the set of values in String for ReplicationTargetStatusUpdateDeltaStatusEnum +func GetReplicationTargetStatusUpdateDeltaStatusEnumStringValues() []string { + return []string{ + "IDLE", + "CAPTURING", + "APPLYING", + "SERVICE_ERROR", + "USER_ERROR", + "FAILED", + "TRANSFERRING", + } +} + +// GetMappingReplicationTargetStatusUpdateDeltaStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationTargetStatusUpdateDeltaStatusEnum(val string) (ReplicationTargetStatusUpdateDeltaStatusEnum, bool) { + enum, ok := mappingReplicationTargetStatusUpdateDeltaStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_summary.go new file mode 100644 index 0000000000..927580307c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/replication_target_summary.go @@ -0,0 +1,135 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplicationTargetSummary Summary information for replication target. +type ReplicationTargetSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. + Id *string `mandatory:"true" json:"id"` + + // The current state of this replication. + LifecycleState ReplicationTargetSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A user-friendly name. This name is the same as the associated replication name. + // Example: `My replication` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The date and time the replication was created + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-02-02T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the replication target is in. Must be in the same availability domain as the target file system. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the replication. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Additional information about the current 'lifecycleState'. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // The snapshotTime of the most recent recoverable replication snapshot + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2021-04-04T20:01:29.100Z` + RecoveryPointTime *common.SDKTime `mandatory:"false" json:"recoveryPointTime"` +} + +func (m ReplicationTargetSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplicationTargetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicationTargetSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetReplicationTargetSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicationTargetSummaryLifecycleStateEnum Enum with underlying type: string +type ReplicationTargetSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for ReplicationTargetSummaryLifecycleStateEnum +const ( + ReplicationTargetSummaryLifecycleStateCreating ReplicationTargetSummaryLifecycleStateEnum = "CREATING" + ReplicationTargetSummaryLifecycleStateActive ReplicationTargetSummaryLifecycleStateEnum = "ACTIVE" + ReplicationTargetSummaryLifecycleStateDeleting ReplicationTargetSummaryLifecycleStateEnum = "DELETING" + ReplicationTargetSummaryLifecycleStateDeleted ReplicationTargetSummaryLifecycleStateEnum = "DELETED" + ReplicationTargetSummaryLifecycleStateFailed ReplicationTargetSummaryLifecycleStateEnum = "FAILED" +) + +var mappingReplicationTargetSummaryLifecycleStateEnum = map[string]ReplicationTargetSummaryLifecycleStateEnum{ + "CREATING": ReplicationTargetSummaryLifecycleStateCreating, + "ACTIVE": ReplicationTargetSummaryLifecycleStateActive, + "DELETING": ReplicationTargetSummaryLifecycleStateDeleting, + "DELETED": ReplicationTargetSummaryLifecycleStateDeleted, + "FAILED": ReplicationTargetSummaryLifecycleStateFailed, +} + +var mappingReplicationTargetSummaryLifecycleStateEnumLowerCase = map[string]ReplicationTargetSummaryLifecycleStateEnum{ + "creating": ReplicationTargetSummaryLifecycleStateCreating, + "active": ReplicationTargetSummaryLifecycleStateActive, + "deleting": ReplicationTargetSummaryLifecycleStateDeleting, + "deleted": ReplicationTargetSummaryLifecycleStateDeleted, + "failed": ReplicationTargetSummaryLifecycleStateFailed, +} + +// GetReplicationTargetSummaryLifecycleStateEnumValues Enumerates the set of values for ReplicationTargetSummaryLifecycleStateEnum +func GetReplicationTargetSummaryLifecycleStateEnumValues() []ReplicationTargetSummaryLifecycleStateEnum { + values := make([]ReplicationTargetSummaryLifecycleStateEnum, 0) + for _, v := range mappingReplicationTargetSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetReplicationTargetSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for ReplicationTargetSummaryLifecycleStateEnum +func GetReplicationTargetSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingReplicationTargetSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicationTargetSummaryLifecycleStateEnum(val string) (ReplicationTargetSummaryLifecycleStateEnum, bool) { + enum, ok := mappingReplicationTargetSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_details.go new file mode 100644 index 0000000000..3306d7c2cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReserveTargetNumDetails Details for creating a new replication target and resume snapshot num. +type ReserveTargetNumDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target id. + ReplicationId *string `mandatory:"false" json:"replicationId"` + + // The resume snapshot num which represents point of replication continuinity. + ResumeSnapshotNum *int64 `mandatory:"false" json:"resumeSnapshotNum"` +} + +func (m ReserveTargetNumDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReserveTargetNumDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_request_response.go index 2fd4903d61..7ed23fcb33 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/reserve_target_num_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/reserve_target_num_request_response.go @@ -1,29 +1,29 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ReserveTargetNumRequest wrapper for the ReserveTargetNum operation type ReserveTargetNumRequest struct { - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Replication + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. ReplicationId *string `mandatory:"true" contributesTo:"query" name:"replicationId"` // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for // the resouce type. - TargetId *string `mandatory:"true" contributesTo:"query" name:"targetId"` - - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment. - CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + SourceId *string `mandatory:"true" contributesTo:"query" name:"sourceId"` - // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the target file system. - FileSystemId *string `mandatory:"true" contributesTo:"query" name:"fileSystemId"` + // Filter results by OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). Must be an OCID of the correct type for + // the resouce type. + TargetId *string `mandatory:"true" contributesTo:"query" name:"targetId"` // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. @@ -41,6 +41,10 @@ func (request ReserveTargetNumRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ReserveTargetNumRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +60,17 @@ func (request ReserveTargetNumRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ReserveTargetNumRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ReserveTargetNumResponse wrapper for the ReserveTargetNum operation type ReserveTargetNumResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/restart_stuck_delta_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/restart_stuck_delta_request_response.go new file mode 100644 index 0000000000..77ee5ce1bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/restart_stuck_delta_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RestartStuckDeltaRequest wrapper for the RestartStuckDelta operation +type RestartStuckDeltaRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication. + ReplicationId *string `mandatory:"true" contributesTo:"path" name:"replicationId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RestartStuckDeltaRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RestartStuckDeltaRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RestartStuckDeltaRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RestartStuckDeltaRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RestartStuckDeltaRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RestartStuckDeltaResponse wrapper for the RestartStuckDelta operation +type RestartStuckDeltaResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response RestartStuckDeltaResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RestartStuckDeltaResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share.go new file mode 100644 index 0000000000..1a7e7abef7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share.go @@ -0,0 +1,169 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Share A share makes a file system directory accessible to SMB clients on +// the network. Each share resource belongs to exactly one share set. +// Each share is identified by a share name. The share name is unique to a +// SMB server. A SMB client sees only the share name. Share names are not +// case-sensitive. Share name cannot be an empty string. The maximum share name +// length is 80 unicode characters (or 240 bytes). Unicode share names are supported. +// The following special characters are not supported for share name: +// / \ : * ? < > " | +// For example, the following are acceptable: +// * example and path +// * example1 and example2 +// * example and example1 +// The following examples are not acceptable: +// * example and example/path +// * / and /example +// * my@ and my* +// Each share has a share comment. This is the description of the share +// when SMB client to list the SMB server's shares. +// Use `shareOptions` to control access to a share. +type Share struct { + + // Policies that apply to SMB requests made through this + // share. `shareOptions` contains a sequential list of + // `ClientShareOptions`. Each `ClientShareOptions` item defines the + // share options that are applied to a specified + // set of clients. + // For each SMB request, the first `ShareOptions` option + // in the list whose `source` attribute matches the source + // IP address of the request is applied. + // If a client source IP address does not match the `source` + // property of any `ClientShareOptions` in the list, then the + // share will be invisible to that client. This share will + // not be returned by list shares calls made by the client + // and any attempt to access the file system through + // this share will result in an error. + // **Shares without defined `ClientShareOptions` are invisible to all clients.** + // If one share is invisible to a particular client, associated file + // systems may still be accessible through other shares on the same + // mount target. + // To completely deny client access to a file system, be sure that the client + // source IP address is not included in any share for any mount target + // associated with the file system. + ShareOptions []ClientShareOptions `mandatory:"true" json:"shareOptions"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set of this share is in. + ShareSetId *string `mandatory:"true" json:"shareSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this share's file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this share. + Id *string `mandatory:"true" json:"id"` + + // The current state of this share. + LifecycleState ShareLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Share name used to access the associated file system. + // Avoid entering confidential information. + // Example: `accounting` + ShareName *string `mandatory:"true" json:"shareName"` + + // A short comment description of the Share. + // Avoid entering confidential information. + // Example: `accounting` + Comment *string `mandatory:"true" json:"comment"` + + // The date and time the share was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Share) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Share) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingShareLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetShareLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ShareLifecycleStateEnum Enum with underlying type: string +type ShareLifecycleStateEnum string + +// Set of constants representing the allowable values for ShareLifecycleStateEnum +const ( + ShareLifecycleStateCreating ShareLifecycleStateEnum = "CREATING" + ShareLifecycleStateActive ShareLifecycleStateEnum = "ACTIVE" + ShareLifecycleStateDeleting ShareLifecycleStateEnum = "DELETING" + ShareLifecycleStateDeleted ShareLifecycleStateEnum = "DELETED" +) + +var mappingShareLifecycleStateEnum = map[string]ShareLifecycleStateEnum{ + "CREATING": ShareLifecycleStateCreating, + "ACTIVE": ShareLifecycleStateActive, + "DELETING": ShareLifecycleStateDeleting, + "DELETED": ShareLifecycleStateDeleted, +} + +var mappingShareLifecycleStateEnumLowerCase = map[string]ShareLifecycleStateEnum{ + "creating": ShareLifecycleStateCreating, + "active": ShareLifecycleStateActive, + "deleting": ShareLifecycleStateDeleting, + "deleted": ShareLifecycleStateDeleted, +} + +// GetShareLifecycleStateEnumValues Enumerates the set of values for ShareLifecycleStateEnum +func GetShareLifecycleStateEnumValues() []ShareLifecycleStateEnum { + values := make([]ShareLifecycleStateEnum, 0) + for _, v := range mappingShareLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetShareLifecycleStateEnumStringValues Enumerates the set of values in String for ShareLifecycleStateEnum +func GetShareLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingShareLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingShareLifecycleStateEnum(val string) (ShareLifecycleStateEnum, bool) { + enum, ok := mappingShareLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set.go new file mode 100644 index 0000000000..152b779f20 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set.go @@ -0,0 +1,165 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShareSet The FSS SMB Share Set contains the SMB configuration data of a Mount Target. +// A set of file systems to provide SMB share through one mount target. +// Composed of zero or more share resources. +type ShareSet struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the share set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual cloud network (VCN) the share set is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target the share set bind to. + MountTargetId *string `mandatory:"true" json:"mountTargetId"` + + // A comment of the share set. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My share set` + Comment *string `mandatory:"true" json:"comment"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + Id *string `mandatory:"true" json:"id"` + + // A customer-provided DNS name. This name plays a critical role in + // establishing the server's place in the customer SMB security hierarchy. + // For example, if an SMB server has a DNS name of + // register5.store34.california.usa.marks-hats.com, then this particular + // server is part of the store34.california.usa.marks-hats.com security + // domain which in turn is part of the california.usa.marks-hats.com which + // in turn is part of the usa.marks-hats.com + // which in turn is part of the marks-hats.com security domain. + // Must be unique across all FQDNs in the subnet and comply + // with RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). + CustomFqdn *string `mandatory:"true" json:"customFqdn"` + + // Every SMB server (i.e. each mount target) needs a Netbios name in + // addition to its fqdn (fully qualified domain name). Normally, + // the Netbios name is simply the hostname portion of the fqdn. + // This doesn't work when multiple computers have the same hostname. + // For example, a computer called orange.colors.com and a computer + // called orange.fruit.org can interfere with each other if they both + // use orange as their Netbios name. To avoid problems, at least one + // computer can be configured to have a Netbios name that is + // not its hostname. + NetBiosName *string `mandatory:"true" json:"netBiosName"` + + // A read-only property for the connection status between the + // mount target and the customer-provided domain controller which + // is the domain based on the customFQDN. + DomainConnectionStatus *string `mandatory:"true" json:"domainConnectionStatus"` + + // The current state of the share set. + LifecycleState ShareSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the share set was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the share set is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Turn on this flag to allow unsigned SMB traffic. + AllowUnsignedTraffic *string `mandatory:"false" json:"allowUnsignedTraffic"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m ShareSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShareSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingShareSetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetShareSetLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ShareSetLifecycleStateEnum Enum with underlying type: string +type ShareSetLifecycleStateEnum string + +// Set of constants representing the allowable values for ShareSetLifecycleStateEnum +const ( + ShareSetLifecycleStateCreating ShareSetLifecycleStateEnum = "CREATING" + ShareSetLifecycleStateActive ShareSetLifecycleStateEnum = "ACTIVE" + ShareSetLifecycleStateDeleting ShareSetLifecycleStateEnum = "DELETING" + ShareSetLifecycleStateDeleted ShareSetLifecycleStateEnum = "DELETED" +) + +var mappingShareSetLifecycleStateEnum = map[string]ShareSetLifecycleStateEnum{ + "CREATING": ShareSetLifecycleStateCreating, + "ACTIVE": ShareSetLifecycleStateActive, + "DELETING": ShareSetLifecycleStateDeleting, + "DELETED": ShareSetLifecycleStateDeleted, +} + +var mappingShareSetLifecycleStateEnumLowerCase = map[string]ShareSetLifecycleStateEnum{ + "creating": ShareSetLifecycleStateCreating, + "active": ShareSetLifecycleStateActive, + "deleting": ShareSetLifecycleStateDeleting, + "deleted": ShareSetLifecycleStateDeleted, +} + +// GetShareSetLifecycleStateEnumValues Enumerates the set of values for ShareSetLifecycleStateEnum +func GetShareSetLifecycleStateEnumValues() []ShareSetLifecycleStateEnum { + values := make([]ShareSetLifecycleStateEnum, 0) + for _, v := range mappingShareSetLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetShareSetLifecycleStateEnumStringValues Enumerates the set of values in String for ShareSetLifecycleStateEnum +func GetShareSetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingShareSetLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingShareSetLifecycleStateEnum(val string) (ShareSetLifecycleStateEnum, bool) { + enum, ok := mappingShareSetLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_details.go new file mode 100644 index 0000000000..113bc9c2f8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_details.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShareSetJoinDomainDetails Details for the mount target share set to join a domain controller. +type ShareSetJoinDomainDetails struct { + + // The user is the account name of a sufficiently powerful administrator + // account. The default domain is the left most domain of the + // customer-provided DNS name. + // This user name can be specified in several different ways: + // * As an ordinary name (e.g. joe). + // * As a name at some domain (e.g. sally@some.domain.com). + // * As a name under some domain (e.g. some.domain.com\administrator). + User *string `mandatory:"true" json:"user"` + + // The credential password of the user to join the domain. + Password *string `mandatory:"true" json:"password"` +} + +func (m ShareSetJoinDomainDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShareSetJoinDomainDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_request_response.go new file mode 100644 index 0000000000..22bf40bcf5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_join_domain_request_response.go @@ -0,0 +1,93 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ShareSetJoinDomainRequest wrapper for the ShareSetJoinDomain operation +type ShareSetJoinDomainRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + ShareSetId *string `mandatory:"true" contributesTo:"path" name:"shareSetId"` + + // Details for the mount target share set to join domain. + ShareSetJoinDomainDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ShareSetJoinDomainRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ShareSetJoinDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ShareSetJoinDomainRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ShareSetJoinDomainRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ShareSetJoinDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ShareSetJoinDomainResponse wrapper for the ShareSetJoinDomain operation +type ShareSetJoinDomainResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ShareSetJoinDomainResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ShareSetJoinDomainResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_summary.go new file mode 100644 index 0000000000..6bbecc956d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_set_summary.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShareSetSummary Summary information for an share set. +type ShareSetSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment that contains the share set. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the virtual cloud network (VCN) the share set is in. + VcnId *string `mandatory:"true" json:"vcnId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the mount target the share set bind to. + MountTargetId *string `mandatory:"true" json:"mountTargetId"` + + // A comment of the share set. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My share set` + Comment *string `mandatory:"true" json:"comment"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + Id *string `mandatory:"true" json:"id"` + + // A customer-provided DNS name. This name plays a critical role in + // establishing the server's place in the customer SMB security hierarchy. + // For example, if an SMB server has a DNS name of + // register5.store34.california.usa.marks-hats.com, then this particular + // server is part of the store34.california.usa.marks-hats.com security + // domain which in turn is part of the california.usa.marks-hats.com which + // in turn is part of the usa.marks-hats.com + // which in turn is part of the marks-hats.com security domain. + // Must be unique across all FQDNs in the subnet and comply + // with RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). + CustomFqdn *string `mandatory:"true" json:"customFqdn"` + + // Every SMB server (i.e. each mount target) needs a Netbios name in + // addition to its fqdn (fully qualified domain name). Normally, + // the Netbios name is simply the hostname portion of the fqdn. + // This doesn't work when multiple computers have the same hostname. + // For example, a computer called orange.colors.com and a computer + // called orange.fruit.org can interfere with each other if they both + // use orange as their Netbios name. To avoid problems, at least one + // computer can be configured to have a Netbios name that is + // not its hostname. + NetBiosName *string `mandatory:"true" json:"netBiosName"` + + // A read-only property for the connection status between the + // mount target and the customer-provided domain controller which + // is the domain based on the customFQDN. + DomainConnectionStatus *string `mandatory:"true" json:"domainConnectionStatus"` + + // The current state of the share set. + LifecycleState ShareSetLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the share set was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The availability domain the share set is in. May be unset + // as a blank or NULL value. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m ShareSetSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShareSetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingShareSetLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetShareSetLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_summary.go new file mode 100644 index 0000000000..578cf09927 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/share_summary.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShareSummary Summary information for specified shares. +type ShareSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set of this share is in. + ShareSetId *string `mandatory:"true" json:"shareSetId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this share's file system. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of this share. + Id *string `mandatory:"true" json:"id"` + + // The current state of this share. + LifecycleState ShareLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Share name used to access the associated file system. + // Avoid entering confidential information. + // Example: `mediafiles` + ShareName *string `mandatory:"true" json:"shareName"` + + // A short comment description of the Share. + // Avoid entering confidential information. + // Example: `accounting` + Comment *string `mandatory:"true" json:"comment"` + + // The date and time the share was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m ShareSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShareSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingShareLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetShareLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go new file mode 100644 index 0000000000..28b98569d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot.go @@ -0,0 +1,202 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Snapshot A point-in-time snapshot of a specified file system. +type Snapshot struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system from which the snapshot + // was created. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + Id *string `mandatory:"true" json:"id"` + + // The current state of the snapshot. + LifecycleState SnapshotLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Name of the snapshot. This value is immutable. + // Avoid entering confidential information. + // Example: `Sunday` + Name *string `mandatory:"true" json:"name"` + + // The date and time the snapshot was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Specifies generation type of the snapshot. + SnapshotType SnapshotSnapshotTypeEnum `mandatory:"false" json:"snapshotType,omitempty"` + + // The date and time the snapshot was taken, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // This value might be the same or different from `timeCreated` depending + // on the following factors: + // - If the snapshot is created in the original file system directory. + // - If the snapshot is cloned from a file system. + // - If the snapshot is replicated from a file system. + // Example: `2020-08-25T21:10:29.600Z` + SnapshotTime *common.SDKTime `mandatory:"false" json:"snapshotTime"` + + // An OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) identifying the parent from which this snapshot was cloned. + // If this snapshot was not cloned, then the `provenanceId` is the same as the snapshot `id` value. + // If this snapshot was cloned, then the `provenanceId` value is the parent's `provenanceId`. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + ProvenanceId *string `mandatory:"false" json:"provenanceId"` + + // Specifies whether the snapshot has been cloned. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + IsCloneSource *bool `mandatory:"false" json:"isCloneSource"` + + // Additional information about the current `lifecycleState`. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The time when this snapshot will be deleted. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the FilesystemSnapshotPolicy this resource was generated through. + FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` +} + +func (m Snapshot) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Snapshot) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSnapshotLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSnapshotLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingSnapshotSnapshotTypeEnum(string(m.SnapshotType)); !ok && m.SnapshotType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SnapshotType: %s. Supported values are: %s.", m.SnapshotType, strings.Join(GetSnapshotSnapshotTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SnapshotLifecycleStateEnum Enum with underlying type: string +type SnapshotLifecycleStateEnum string + +// Set of constants representing the allowable values for SnapshotLifecycleStateEnum +const ( + SnapshotLifecycleStateCreating SnapshotLifecycleStateEnum = "CREATING" + SnapshotLifecycleStateActive SnapshotLifecycleStateEnum = "ACTIVE" + SnapshotLifecycleStateDeleting SnapshotLifecycleStateEnum = "DELETING" + SnapshotLifecycleStateDeleted SnapshotLifecycleStateEnum = "DELETED" +) + +var mappingSnapshotLifecycleStateEnum = map[string]SnapshotLifecycleStateEnum{ + "CREATING": SnapshotLifecycleStateCreating, + "ACTIVE": SnapshotLifecycleStateActive, + "DELETING": SnapshotLifecycleStateDeleting, + "DELETED": SnapshotLifecycleStateDeleted, +} + +var mappingSnapshotLifecycleStateEnumLowerCase = map[string]SnapshotLifecycleStateEnum{ + "creating": SnapshotLifecycleStateCreating, + "active": SnapshotLifecycleStateActive, + "deleting": SnapshotLifecycleStateDeleting, + "deleted": SnapshotLifecycleStateDeleted, +} + +// GetSnapshotLifecycleStateEnumValues Enumerates the set of values for SnapshotLifecycleStateEnum +func GetSnapshotLifecycleStateEnumValues() []SnapshotLifecycleStateEnum { + values := make([]SnapshotLifecycleStateEnum, 0) + for _, v := range mappingSnapshotLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotLifecycleStateEnumStringValues Enumerates the set of values in String for SnapshotLifecycleStateEnum +func GetSnapshotLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingSnapshotLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotLifecycleStateEnum(val string) (SnapshotLifecycleStateEnum, bool) { + enum, ok := mappingSnapshotLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SnapshotSnapshotTypeEnum Enum with underlying type: string +type SnapshotSnapshotTypeEnum string + +// Set of constants representing the allowable values for SnapshotSnapshotTypeEnum +const ( + SnapshotSnapshotTypeUser SnapshotSnapshotTypeEnum = "USER" + SnapshotSnapshotTypePolicyBased SnapshotSnapshotTypeEnum = "POLICY_BASED" + SnapshotSnapshotTypeReplication SnapshotSnapshotTypeEnum = "REPLICATION" +) + +var mappingSnapshotSnapshotTypeEnum = map[string]SnapshotSnapshotTypeEnum{ + "USER": SnapshotSnapshotTypeUser, + "POLICY_BASED": SnapshotSnapshotTypePolicyBased, + "REPLICATION": SnapshotSnapshotTypeReplication, +} + +var mappingSnapshotSnapshotTypeEnumLowerCase = map[string]SnapshotSnapshotTypeEnum{ + "user": SnapshotSnapshotTypeUser, + "policy_based": SnapshotSnapshotTypePolicyBased, + "replication": SnapshotSnapshotTypeReplication, +} + +// GetSnapshotSnapshotTypeEnumValues Enumerates the set of values for SnapshotSnapshotTypeEnum +func GetSnapshotSnapshotTypeEnumValues() []SnapshotSnapshotTypeEnum { + values := make([]SnapshotSnapshotTypeEnum, 0) + for _, v := range mappingSnapshotSnapshotTypeEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotSnapshotTypeEnumStringValues Enumerates the set of values in String for SnapshotSnapshotTypeEnum +func GetSnapshotSnapshotTypeEnumStringValues() []string { + return []string{ + "USER", + "POLICY_BASED", + "REPLICATION", + } +} + +// GetMappingSnapshotSnapshotTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotSnapshotTypeEnum(val string) (SnapshotSnapshotTypeEnum, bool) { + enum, ok := mappingSnapshotSnapshotTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go new file mode 100644 index 0000000000..bd7eb32b04 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_schedule.go @@ -0,0 +1,326 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SnapshotSchedule The SnapshotSchedule is a structure within a parent Filesystem Snapshot Policy. It contains data about +// the frequency of snapshot creation and the retention time of the taken snapshots. +type SnapshotSchedule struct { + + // The frequency of snapshot scheduling. + Period SnapshotSchedulePeriodEnum `mandatory:"true" json:"period"` + + // Timezone used for scheduling the snapshot execution. + TimeZone SnapshotScheduleTimeZoneEnum `mandatory:"true" json:"timeZone"` + + // A name prefix to be applied to snapshots created by this schedule. + // Maximum length of 100 characters. + // Example: `compliance1` + SchedulePrefix *string `mandatory:"false" json:"schedulePrefix"` + + // The starting point used to begin the scheduling of the snapshots based upon recurrence string + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // If no timeScheduleStart is provided, the value will be set to the time when the schedule was created. + TimeScheduleStart *common.SDKTime `mandatory:"false" json:"timeScheduleStart"` + + // The number of seconds to retain snapshots created through this schedule. + // Snapshot expiration time will not be set if this value is empty. Minimum value of 3600. + RetentionDurationInSeconds *int64 `mandatory:"false" json:"retentionDurationInSeconds"` + + // The hour of the day to create a DAILY, WEEKLY, MONTHLY, or YEARLY snapshot. + // If not set, a value will be chosen at creation time. + HourOfDay *int `mandatory:"false" json:"hourOfDay"` + + // The day of the week to execute snapshot creation. + // Used for WEEKLY snapshot schedules. + DayOfWeek SnapshotScheduleDayOfWeekEnum `mandatory:"false" json:"dayOfWeek,omitempty"` + + // The day of the month to schedule snapshot creation. + // If the day does not exist for the month, snapshot creation will be skipped. + // Used for MONTHLY and YEARLY snapshots. + DayOfMonth *int `mandatory:"false" json:"dayOfMonth"` + + // The month to execute YEARLY snapshot creation. + Month SnapshotScheduleMonthEnum `mandatory:"false" json:"month,omitempty"` +} + +func (m SnapshotSchedule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SnapshotSchedule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSnapshotSchedulePeriodEnum(string(m.Period)); !ok && m.Period != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Period: %s. Supported values are: %s.", m.Period, strings.Join(GetSnapshotSchedulePeriodEnumStringValues(), ","))) + } + if _, ok := GetMappingSnapshotScheduleTimeZoneEnum(string(m.TimeZone)); !ok && m.TimeZone != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for TimeZone: %s. Supported values are: %s.", m.TimeZone, strings.Join(GetSnapshotScheduleTimeZoneEnumStringValues(), ","))) + } + + if _, ok := GetMappingSnapshotScheduleDayOfWeekEnum(string(m.DayOfWeek)); !ok && m.DayOfWeek != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for DayOfWeek: %s. Supported values are: %s.", m.DayOfWeek, strings.Join(GetSnapshotScheduleDayOfWeekEnumStringValues(), ","))) + } + if _, ok := GetMappingSnapshotScheduleMonthEnum(string(m.Month)); !ok && m.Month != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Month: %s. Supported values are: %s.", m.Month, strings.Join(GetSnapshotScheduleMonthEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SnapshotSchedulePeriodEnum Enum with underlying type: string +type SnapshotSchedulePeriodEnum string + +// Set of constants representing the allowable values for SnapshotSchedulePeriodEnum +const ( + SnapshotSchedulePeriodHourly SnapshotSchedulePeriodEnum = "HOURLY" + SnapshotSchedulePeriodDaily SnapshotSchedulePeriodEnum = "DAILY" + SnapshotSchedulePeriodWeekly SnapshotSchedulePeriodEnum = "WEEKLY" + SnapshotSchedulePeriodMonthly SnapshotSchedulePeriodEnum = "MONTHLY" + SnapshotSchedulePeriodYearly SnapshotSchedulePeriodEnum = "YEARLY" +) + +var mappingSnapshotSchedulePeriodEnum = map[string]SnapshotSchedulePeriodEnum{ + "HOURLY": SnapshotSchedulePeriodHourly, + "DAILY": SnapshotSchedulePeriodDaily, + "WEEKLY": SnapshotSchedulePeriodWeekly, + "MONTHLY": SnapshotSchedulePeriodMonthly, + "YEARLY": SnapshotSchedulePeriodYearly, +} + +var mappingSnapshotSchedulePeriodEnumLowerCase = map[string]SnapshotSchedulePeriodEnum{ + "hourly": SnapshotSchedulePeriodHourly, + "daily": SnapshotSchedulePeriodDaily, + "weekly": SnapshotSchedulePeriodWeekly, + "monthly": SnapshotSchedulePeriodMonthly, + "yearly": SnapshotSchedulePeriodYearly, +} + +// GetSnapshotSchedulePeriodEnumValues Enumerates the set of values for SnapshotSchedulePeriodEnum +func GetSnapshotSchedulePeriodEnumValues() []SnapshotSchedulePeriodEnum { + values := make([]SnapshotSchedulePeriodEnum, 0) + for _, v := range mappingSnapshotSchedulePeriodEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotSchedulePeriodEnumStringValues Enumerates the set of values in String for SnapshotSchedulePeriodEnum +func GetSnapshotSchedulePeriodEnumStringValues() []string { + return []string{ + "HOURLY", + "DAILY", + "WEEKLY", + "MONTHLY", + "YEARLY", + } +} + +// GetMappingSnapshotSchedulePeriodEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotSchedulePeriodEnum(val string) (SnapshotSchedulePeriodEnum, bool) { + enum, ok := mappingSnapshotSchedulePeriodEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SnapshotScheduleTimeZoneEnum Enum with underlying type: string +type SnapshotScheduleTimeZoneEnum string + +// Set of constants representing the allowable values for SnapshotScheduleTimeZoneEnum +const ( + SnapshotScheduleTimeZoneUtc SnapshotScheduleTimeZoneEnum = "UTC" + SnapshotScheduleTimeZoneRegionalDataCenterTime SnapshotScheduleTimeZoneEnum = "REGIONAL_DATA_CENTER_TIME" +) + +var mappingSnapshotScheduleTimeZoneEnum = map[string]SnapshotScheduleTimeZoneEnum{ + "UTC": SnapshotScheduleTimeZoneUtc, + "REGIONAL_DATA_CENTER_TIME": SnapshotScheduleTimeZoneRegionalDataCenterTime, +} + +var mappingSnapshotScheduleTimeZoneEnumLowerCase = map[string]SnapshotScheduleTimeZoneEnum{ + "utc": SnapshotScheduleTimeZoneUtc, + "regional_data_center_time": SnapshotScheduleTimeZoneRegionalDataCenterTime, +} + +// GetSnapshotScheduleTimeZoneEnumValues Enumerates the set of values for SnapshotScheduleTimeZoneEnum +func GetSnapshotScheduleTimeZoneEnumValues() []SnapshotScheduleTimeZoneEnum { + values := make([]SnapshotScheduleTimeZoneEnum, 0) + for _, v := range mappingSnapshotScheduleTimeZoneEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotScheduleTimeZoneEnumStringValues Enumerates the set of values in String for SnapshotScheduleTimeZoneEnum +func GetSnapshotScheduleTimeZoneEnumStringValues() []string { + return []string{ + "UTC", + "REGIONAL_DATA_CENTER_TIME", + } +} + +// GetMappingSnapshotScheduleTimeZoneEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotScheduleTimeZoneEnum(val string) (SnapshotScheduleTimeZoneEnum, bool) { + enum, ok := mappingSnapshotScheduleTimeZoneEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SnapshotScheduleDayOfWeekEnum Enum with underlying type: string +type SnapshotScheduleDayOfWeekEnum string + +// Set of constants representing the allowable values for SnapshotScheduleDayOfWeekEnum +const ( + SnapshotScheduleDayOfWeekMonday SnapshotScheduleDayOfWeekEnum = "MONDAY" + SnapshotScheduleDayOfWeekTuesday SnapshotScheduleDayOfWeekEnum = "TUESDAY" + SnapshotScheduleDayOfWeekWednesday SnapshotScheduleDayOfWeekEnum = "WEDNESDAY" + SnapshotScheduleDayOfWeekThursday SnapshotScheduleDayOfWeekEnum = "THURSDAY" + SnapshotScheduleDayOfWeekFriday SnapshotScheduleDayOfWeekEnum = "FRIDAY" + SnapshotScheduleDayOfWeekSaturday SnapshotScheduleDayOfWeekEnum = "SATURDAY" + SnapshotScheduleDayOfWeekSunday SnapshotScheduleDayOfWeekEnum = "SUNDAY" +) + +var mappingSnapshotScheduleDayOfWeekEnum = map[string]SnapshotScheduleDayOfWeekEnum{ + "MONDAY": SnapshotScheduleDayOfWeekMonday, + "TUESDAY": SnapshotScheduleDayOfWeekTuesday, + "WEDNESDAY": SnapshotScheduleDayOfWeekWednesday, + "THURSDAY": SnapshotScheduleDayOfWeekThursday, + "FRIDAY": SnapshotScheduleDayOfWeekFriday, + "SATURDAY": SnapshotScheduleDayOfWeekSaturday, + "SUNDAY": SnapshotScheduleDayOfWeekSunday, +} + +var mappingSnapshotScheduleDayOfWeekEnumLowerCase = map[string]SnapshotScheduleDayOfWeekEnum{ + "monday": SnapshotScheduleDayOfWeekMonday, + "tuesday": SnapshotScheduleDayOfWeekTuesday, + "wednesday": SnapshotScheduleDayOfWeekWednesday, + "thursday": SnapshotScheduleDayOfWeekThursday, + "friday": SnapshotScheduleDayOfWeekFriday, + "saturday": SnapshotScheduleDayOfWeekSaturday, + "sunday": SnapshotScheduleDayOfWeekSunday, +} + +// GetSnapshotScheduleDayOfWeekEnumValues Enumerates the set of values for SnapshotScheduleDayOfWeekEnum +func GetSnapshotScheduleDayOfWeekEnumValues() []SnapshotScheduleDayOfWeekEnum { + values := make([]SnapshotScheduleDayOfWeekEnum, 0) + for _, v := range mappingSnapshotScheduleDayOfWeekEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotScheduleDayOfWeekEnumStringValues Enumerates the set of values in String for SnapshotScheduleDayOfWeekEnum +func GetSnapshotScheduleDayOfWeekEnumStringValues() []string { + return []string{ + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY", + } +} + +// GetMappingSnapshotScheduleDayOfWeekEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotScheduleDayOfWeekEnum(val string) (SnapshotScheduleDayOfWeekEnum, bool) { + enum, ok := mappingSnapshotScheduleDayOfWeekEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SnapshotScheduleMonthEnum Enum with underlying type: string +type SnapshotScheduleMonthEnum string + +// Set of constants representing the allowable values for SnapshotScheduleMonthEnum +const ( + SnapshotScheduleMonthJanuary SnapshotScheduleMonthEnum = "JANUARY" + SnapshotScheduleMonthFebruary SnapshotScheduleMonthEnum = "FEBRUARY" + SnapshotScheduleMonthMarch SnapshotScheduleMonthEnum = "MARCH" + SnapshotScheduleMonthApril SnapshotScheduleMonthEnum = "APRIL" + SnapshotScheduleMonthMay SnapshotScheduleMonthEnum = "MAY" + SnapshotScheduleMonthJune SnapshotScheduleMonthEnum = "JUNE" + SnapshotScheduleMonthJuly SnapshotScheduleMonthEnum = "JULY" + SnapshotScheduleMonthAugust SnapshotScheduleMonthEnum = "AUGUST" + SnapshotScheduleMonthSeptember SnapshotScheduleMonthEnum = "SEPTEMBER" + SnapshotScheduleMonthOctober SnapshotScheduleMonthEnum = "OCTOBER" + SnapshotScheduleMonthNovember SnapshotScheduleMonthEnum = "NOVEMBER" + SnapshotScheduleMonthDecember SnapshotScheduleMonthEnum = "DECEMBER" +) + +var mappingSnapshotScheduleMonthEnum = map[string]SnapshotScheduleMonthEnum{ + "JANUARY": SnapshotScheduleMonthJanuary, + "FEBRUARY": SnapshotScheduleMonthFebruary, + "MARCH": SnapshotScheduleMonthMarch, + "APRIL": SnapshotScheduleMonthApril, + "MAY": SnapshotScheduleMonthMay, + "JUNE": SnapshotScheduleMonthJune, + "JULY": SnapshotScheduleMonthJuly, + "AUGUST": SnapshotScheduleMonthAugust, + "SEPTEMBER": SnapshotScheduleMonthSeptember, + "OCTOBER": SnapshotScheduleMonthOctober, + "NOVEMBER": SnapshotScheduleMonthNovember, + "DECEMBER": SnapshotScheduleMonthDecember, +} + +var mappingSnapshotScheduleMonthEnumLowerCase = map[string]SnapshotScheduleMonthEnum{ + "january": SnapshotScheduleMonthJanuary, + "february": SnapshotScheduleMonthFebruary, + "march": SnapshotScheduleMonthMarch, + "april": SnapshotScheduleMonthApril, + "may": SnapshotScheduleMonthMay, + "june": SnapshotScheduleMonthJune, + "july": SnapshotScheduleMonthJuly, + "august": SnapshotScheduleMonthAugust, + "september": SnapshotScheduleMonthSeptember, + "october": SnapshotScheduleMonthOctober, + "november": SnapshotScheduleMonthNovember, + "december": SnapshotScheduleMonthDecember, +} + +// GetSnapshotScheduleMonthEnumValues Enumerates the set of values for SnapshotScheduleMonthEnum +func GetSnapshotScheduleMonthEnumValues() []SnapshotScheduleMonthEnum { + values := make([]SnapshotScheduleMonthEnum, 0) + for _, v := range mappingSnapshotScheduleMonthEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotScheduleMonthEnumStringValues Enumerates the set of values in String for SnapshotScheduleMonthEnum +func GetSnapshotScheduleMonthEnumStringValues() []string { + return []string{ + "JANUARY", + "FEBRUARY", + "MARCH", + "APRIL", + "MAY", + "JUNE", + "JULY", + "AUGUST", + "SEPTEMBER", + "OCTOBER", + "NOVEMBER", + "DECEMBER", + } +} + +// GetMappingSnapshotScheduleMonthEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotScheduleMonthEnum(val string) (SnapshotScheduleMonthEnum, bool) { + enum, ok := mappingSnapshotScheduleMonthEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go new file mode 100644 index 0000000000..73c39400ad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/snapshot_summary.go @@ -0,0 +1,195 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SnapshotSummary Summary information for a snapshot. +type SnapshotSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system from which the snapshot was created. + FileSystemId *string `mandatory:"true" json:"fileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the snapshot. + Id *string `mandatory:"true" json:"id"` + + // The current state of the snapshot. + LifecycleState SnapshotSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Name of the snapshot. This value is immutable. + // Avoid entering confidential information. + // Example: `Sunday` + Name *string `mandatory:"true" json:"name"` + + // The date and time the snapshot was created, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Specifies the generation type of the snapshot. + SnapshotType SnapshotSummarySnapshotTypeEnum `mandatory:"false" json:"snapshotType,omitempty"` + + // The date and time the snapshot was taken, expressed + // in RFC 3339 (https://tools.ietf.org/rfc/rfc3339) timestamp format. + // This value might be the same or different from `timeCreated` depending + // on the following factors: + // - If the snapshot is created in the original file system directory. + // - If the snapshot is cloned from a file system. + // - If the snapshot is replicated from a file system. + // Example: `2020-08-25T21:10:29.600Z` + SnapshotTime *common.SDKTime `mandatory:"false" json:"snapshotTime"` + + // An OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) identifying the parent from which this snapshot was cloned. + // If this snapshot was not cloned, then the `provenanceId` is the same as the snapshot `id` value. + // If this snapshot was cloned, then the `provenanceId` value is the parent's `provenanceId`. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + ProvenanceId *string `mandatory:"false" json:"provenanceId"` + + // Specifies whether the snapshot has been cloned. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + IsCloneSource *bool `mandatory:"false" json:"isCloneSource"` + + // Additional information about the current `lifecycleState`. + LifecycleDetails *string `mandatory:"false" json:"lifecycleDetails"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m SnapshotSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SnapshotSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSnapshotSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSnapshotSummaryLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingSnapshotSummarySnapshotTypeEnum(string(m.SnapshotType)); !ok && m.SnapshotType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SnapshotType: %s. Supported values are: %s.", m.SnapshotType, strings.Join(GetSnapshotSummarySnapshotTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SnapshotSummaryLifecycleStateEnum Enum with underlying type: string +type SnapshotSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for SnapshotSummaryLifecycleStateEnum +const ( + SnapshotSummaryLifecycleStateCreating SnapshotSummaryLifecycleStateEnum = "CREATING" + SnapshotSummaryLifecycleStateActive SnapshotSummaryLifecycleStateEnum = "ACTIVE" + SnapshotSummaryLifecycleStateDeleting SnapshotSummaryLifecycleStateEnum = "DELETING" + SnapshotSummaryLifecycleStateDeleted SnapshotSummaryLifecycleStateEnum = "DELETED" +) + +var mappingSnapshotSummaryLifecycleStateEnum = map[string]SnapshotSummaryLifecycleStateEnum{ + "CREATING": SnapshotSummaryLifecycleStateCreating, + "ACTIVE": SnapshotSummaryLifecycleStateActive, + "DELETING": SnapshotSummaryLifecycleStateDeleting, + "DELETED": SnapshotSummaryLifecycleStateDeleted, +} + +var mappingSnapshotSummaryLifecycleStateEnumLowerCase = map[string]SnapshotSummaryLifecycleStateEnum{ + "creating": SnapshotSummaryLifecycleStateCreating, + "active": SnapshotSummaryLifecycleStateActive, + "deleting": SnapshotSummaryLifecycleStateDeleting, + "deleted": SnapshotSummaryLifecycleStateDeleted, +} + +// GetSnapshotSummaryLifecycleStateEnumValues Enumerates the set of values for SnapshotSummaryLifecycleStateEnum +func GetSnapshotSummaryLifecycleStateEnumValues() []SnapshotSummaryLifecycleStateEnum { + values := make([]SnapshotSummaryLifecycleStateEnum, 0) + for _, v := range mappingSnapshotSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for SnapshotSummaryLifecycleStateEnum +func GetSnapshotSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingSnapshotSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotSummaryLifecycleStateEnum(val string) (SnapshotSummaryLifecycleStateEnum, bool) { + enum, ok := mappingSnapshotSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// SnapshotSummarySnapshotTypeEnum Enum with underlying type: string +type SnapshotSummarySnapshotTypeEnum string + +// Set of constants representing the allowable values for SnapshotSummarySnapshotTypeEnum +const ( + SnapshotSummarySnapshotTypeUser SnapshotSummarySnapshotTypeEnum = "USER" + SnapshotSummarySnapshotTypePolicyBased SnapshotSummarySnapshotTypeEnum = "POLICY_BASED" + SnapshotSummarySnapshotTypeReplication SnapshotSummarySnapshotTypeEnum = "REPLICATION" +) + +var mappingSnapshotSummarySnapshotTypeEnum = map[string]SnapshotSummarySnapshotTypeEnum{ + "USER": SnapshotSummarySnapshotTypeUser, + "POLICY_BASED": SnapshotSummarySnapshotTypePolicyBased, + "REPLICATION": SnapshotSummarySnapshotTypeReplication, +} + +var mappingSnapshotSummarySnapshotTypeEnumLowerCase = map[string]SnapshotSummarySnapshotTypeEnum{ + "user": SnapshotSummarySnapshotTypeUser, + "policy_based": SnapshotSummarySnapshotTypePolicyBased, + "replication": SnapshotSummarySnapshotTypeReplication, +} + +// GetSnapshotSummarySnapshotTypeEnumValues Enumerates the set of values for SnapshotSummarySnapshotTypeEnum +func GetSnapshotSummarySnapshotTypeEnumValues() []SnapshotSummarySnapshotTypeEnum { + values := make([]SnapshotSummarySnapshotTypeEnum, 0) + for _, v := range mappingSnapshotSummarySnapshotTypeEnum { + values = append(values, v) + } + return values +} + +// GetSnapshotSummarySnapshotTypeEnumStringValues Enumerates the set of values in String for SnapshotSummarySnapshotTypeEnum +func GetSnapshotSummarySnapshotTypeEnumStringValues() []string { + return []string{ + "USER", + "POLICY_BASED", + "REPLICATION", + } +} + +// GetMappingSnapshotSummarySnapshotTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSnapshotSummarySnapshotTypeEnum(val string) (SnapshotSummarySnapshotTypeEnum, bool) { + enum, ok := mappingSnapshotSummarySnapshotTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_details.go new file mode 100644 index 0000000000..d0f2edf600 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SourceDetails Source information for the file system. +type SourceDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the file system that contains the source snapshot of a cloned file system. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + ParentFileSystemId *string `mandatory:"false" json:"parentFileSystemId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the source snapshot used to create a cloned file system. + // See Cloning a File System (https://docs.cloud.oracle.com/iaas/Content/File/Tasks/cloningFS.htm). + SourceSnapshotId *string `mandatory:"false" json:"sourceSnapshotId"` +} + +func (m SourceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SourceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_triggered_delete_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_triggered_delete_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_triggered_delete_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_triggered_delete_request_response.go index 8c6a7e00c4..d05dc072fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/source_triggered_delete_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/source_triggered_delete_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // SourceTriggeredDeleteRequest wrapper for the SourceTriggeredDelete operation @@ -15,9 +17,12 @@ type SourceTriggeredDeleteRequest struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the replication target. ReplicationTargetId *string `mandatory:"true" contributesTo:"path" name:"replicationTargetId"` - // DeleteMode provided at the DeleteReplication request in source region. + // The `DeleteMode` value provided in the `DeleteReplication` request in the source region. DeleteMode *int `mandatory:"true" contributesTo:"query" name:"deleteMode"` + // The `objectNum` of the associated replication. + ReplicationNum *string `mandatory:"false" contributesTo:"query" name:"replicationNum"` + // Unique identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -34,6 +39,10 @@ func (request SourceTriggeredDeleteRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request SourceTriggeredDeleteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +58,17 @@ func (request SourceTriggeredDeleteRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SourceTriggeredDeleteRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SourceTriggeredDeleteResponse wrapper for the SourceTriggeredDelete operation type SourceTriggeredDeleteResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/start_logging_mt_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/start_logging_mt_request_response.go new file mode 100644 index 0000000000..0c3689d999 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/start_logging_mt_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StartLoggingMtRequest wrapper for the StartLoggingMt operation +type StartLoggingMtRequest struct { + + // Logging configuration. + ConfigDetails OciServiceLoggingConfig `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StartLoggingMtRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StartLoggingMtRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StartLoggingMtRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StartLoggingMtRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StartLoggingMtRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StartLoggingMtResponse wrapper for the StartLoggingMt operation +type StartLoggingMtResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OciServiceLoggingConfig instance + OciServiceLoggingConfig `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response StartLoggingMtResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StartLoggingMtResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_logging_mt_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_logging_mt_request_response.go new file mode 100644 index 0000000000..031d8eddf8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_logging_mt_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StopLoggingMtRequest wrapper for the StopLoggingMt operation +type StopLoggingMtRequest struct { + + // Log OCID. + LogId *string `mandatory:"true" contributesTo:"path" name:"logId"` + + // Tenancy OCID the log belongs to. + TenancyId *string `mandatory:"true" contributesTo:"query" name:"tenancyId"` + + // Unique identifier of the target resource. This is almost always an OCID. + Resource *string `mandatory:"true" contributesTo:"query" name:"resource"` + + // Log category name. + Category *string `mandatory:"true" contributesTo:"query" name:"category"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StopLoggingMtRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopLoggingMtRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StopLoggingMtRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopLoggingMtRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StopLoggingMtRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StopLoggingMtResponse wrapper for the StopLoggingMt operation +type StopLoggingMtResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response StopLoggingMtResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopLoggingMtResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_mount_target_rebalancing_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_mount_target_rebalancing_request_response.go new file mode 100644 index 0000000000..3ac62b1175 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/stop_mount_target_rebalancing_request_response.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// StopMountTargetRebalancingRequest wrapper for the StopMountTargetRebalancing operation +type StopMountTargetRebalancingRequest struct { + + // The name of the availability domain. + // Example: `Uocm:PHX-AD-1` + AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request StopMountTargetRebalancingRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request StopMountTargetRebalancingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request StopMountTargetRebalancingRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request StopMountTargetRebalancingRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request StopMountTargetRebalancingRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StopMountTargetRebalancingResponse wrapper for the StopMountTargetRebalancing operation +type StopMountTargetRebalancingResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response StopMountTargetRebalancingResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response StopMountTargetRebalancingResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/tagslug.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/tagslug.go new file mode 100644 index 0000000000..c79c822384 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/tagslug.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Tagslug A resource that has information about the tag and some other important metadata +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type Tagslug struct { + + // The date and time the tagSlug was created in target region. + // Example: `2021-01-04T20:01:29.100Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The type of resource the tag is associated with. + // Example: "1" for filesystem, "2" for mount target + Type *string `mandatory:"false" json:"type"` + + // determines if the tagslug is used by a resource or not. + // Example: "1" for used, "0" for not used + Used *string `mandatory:"false" json:"used"` + + // The id of the filesystem or mount target if this tag is associated to + Id1 *string `mandatory:"false" json:"id1"` + + // The id of snapshot if this tag is associated to else 0 + Id2 *string `mandatory:"false" json:"id2"` +} + +func (m Tagslug) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Tagslug) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/target_file_system_get_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/target_file_system_get_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/target_file_system_get_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/target_file_system_get_request_response.go index 46a603901a..7542d0bee6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/target_file_system_get_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/target_file_system_get_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // TargetFileSystemGetRequest wrapper for the TargetFileSystemGet operation @@ -31,6 +33,10 @@ func (request TargetFileSystemGetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request TargetFileSystemGetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request TargetFileSystemGetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request TargetFileSystemGetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // TargetFileSystemGetResponse wrapper for the TargetFileSystemGet operation type TargetFileSystemGetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_details.go new file mode 100644 index 0000000000..5ddcd00729 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TestOutboundConnectorDetails Details for testing outbound connector. +type TestOutboundConnectorDetails struct { + + // OCID of outbound connector which needs to be tested. + OutboundConnectorId *string `mandatory:"true" json:"outboundConnectorId"` +} + +func (m TestOutboundConnectorDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TestOutboundConnectorDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_request_response.go index ea646a4a2f..f83e4e1006 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/test_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // TestOutboundConnectorRequest wrapper for the TestOutboundConnector operation @@ -34,6 +36,10 @@ func (request TestOutboundConnectorRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request TestOutboundConnectorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request TestOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request TestOutboundConnectorRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // TestOutboundConnectorResponse wrapper for the TestOutboundConnector operation type TestOutboundConnectorResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_result.go new file mode 100644 index 0000000000..4bec03999a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/test_outbound_connector_result.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TestOutboundConnectorResult Result of connecting to a single endpoint +type TestOutboundConnectorResult struct { + + // Endpoint used while trying to connect while using LDAP bind account + Endpoint *interface{} `mandatory:"true" json:"endpoint"` + + // Status of connection to given endpoint + Result TestOutboundConnectorResultResultEnum `mandatory:"true" json:"result"` + + // Error from the perspective of the mount target. + MountTargetErrorString *string `mandatory:"false" json:"mountTargetErrorString"` + + // Error string from underlying component that failed. + EndpointErrorString *string `mandatory:"false" json:"endpointErrorString"` +} + +func (m TestOutboundConnectorResult) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TestOutboundConnectorResult) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTestOutboundConnectorResultResultEnum(string(m.Result)); !ok && m.Result != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Result: %s. Supported values are: %s.", m.Result, strings.Join(GetTestOutboundConnectorResultResultEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TestOutboundConnectorResultResultEnum Enum with underlying type: string +type TestOutboundConnectorResultResultEnum string + +// Set of constants representing the allowable values for TestOutboundConnectorResultResultEnum +const ( + TestOutboundConnectorResultResultSuccess TestOutboundConnectorResultResultEnum = "SUCCESS" + TestOutboundConnectorResultResultFail TestOutboundConnectorResultResultEnum = "FAIL" + TestOutboundConnectorResultResultNotrun TestOutboundConnectorResultResultEnum = "NOTRUN" +) + +var mappingTestOutboundConnectorResultResultEnum = map[string]TestOutboundConnectorResultResultEnum{ + "SUCCESS": TestOutboundConnectorResultResultSuccess, + "FAIL": TestOutboundConnectorResultResultFail, + "NOTRUN": TestOutboundConnectorResultResultNotrun, +} + +var mappingTestOutboundConnectorResultResultEnumLowerCase = map[string]TestOutboundConnectorResultResultEnum{ + "success": TestOutboundConnectorResultResultSuccess, + "fail": TestOutboundConnectorResultResultFail, + "notrun": TestOutboundConnectorResultResultNotrun, +} + +// GetTestOutboundConnectorResultResultEnumValues Enumerates the set of values for TestOutboundConnectorResultResultEnum +func GetTestOutboundConnectorResultResultEnumValues() []TestOutboundConnectorResultResultEnum { + values := make([]TestOutboundConnectorResultResultEnum, 0) + for _, v := range mappingTestOutboundConnectorResultResultEnum { + values = append(values, v) + } + return values +} + +// GetTestOutboundConnectorResultResultEnumStringValues Enumerates the set of values in String for TestOutboundConnectorResultResultEnum +func GetTestOutboundConnectorResultResultEnumStringValues() []string { + return []string{ + "SUCCESS", + "FAIL", + "NOTRUN", + } +} + +// GetMappingTestOutboundConnectorResultResultEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTestOutboundConnectorResultResultEnum(val string) (TestOutboundConnectorResultResultEnum, bool) { + enum, ok := mappingTestOutboundConnectorResultResultEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go new file mode 100644 index 0000000000..c7b8f8f0e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/unpause_filesystem_snapshot_policy_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UnpauseFilesystemSnapshotPolicyRequest wrapper for the UnpauseFilesystemSnapshotPolicy operation +type UnpauseFilesystemSnapshotPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UnpauseFilesystemSnapshotPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UnpauseFilesystemSnapshotPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UnpauseFilesystemSnapshotPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UnpauseFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UnpauseFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnpauseFilesystemSnapshotPolicyResponse wrapper for the UnpauseFilesystemSnapshotPolicy operation +type UnpauseFilesystemSnapshotPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UnpauseFilesystemSnapshotPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UnpauseFilesystemSnapshotPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_details.go new file mode 100644 index 0000000000..a40f6d5dab --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateExportDetails Details for updating the export. +type UpdateExportDetails struct { + + // The export is modified to include a boolean to use ID mapping for Unix Groups rather than the group list provided within an NFS Request's RPC header. When this flag is true the Unix UID from the RPC header is used to retrieve the list of secondary groups from a the ID mapping subsystem. The primary GID is always taken from the RPC header. If ID mapping is not configured, incorrectly configured, unavailable or cannot be used to determine a list of secondary groups then the data path uses an empty secondary group list for authorization. If the number of groups exceeds the current limit of 256 groups the list retrieved from LDAP is truncated to the first 256 groups read. + IsIdmapGroupsForSysAuth *bool `mandatory:"false" json:"isIdmapGroupsForSysAuth"` + + // New export options for the export. + // **Setting to the empty array will make the export invisible to all clients.** + // Leaving unset will leave the `exportOptions` unchanged. + ExportOptions []ClientOptions `mandatory:"false" json:"exportOptions"` +} + +func (m UpdateExportDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateExportDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go index 739beae0c7..b78cc7e374 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateExportRequest wrapper for the UpdateExport operation @@ -41,6 +43,10 @@ func (request UpdateExportRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateExportRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateExportRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateExportRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateExportResponse wrapper for the UpdateExport operation type UpdateExportResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_details.go new file mode 100644 index 0000000000..d588d08065 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateExportSetDetails Details for updating the export set. +type UpdateExportSetDetails struct { + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My export set` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Controls the maximum `tbytes`, `fbytes`, and `abytes` + // values reported by `NFS FSSTAT` calls through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tbytes` value reported by `FSSTAT` will be + // `maxFsStatBytes`. The value of `fbytes` and `abytes` will be + // `maxFsStatBytes` minus the metered size of the file + // system. If the metered size is larger than `maxFsStatBytes`, + // then `fbytes` and `abytes` will both be '0'. + MaxFsStatBytes *int64 `mandatory:"false" json:"maxFsStatBytes"` + + // Controls the maximum `ffiles`, `ffiles`, and `afiles` + // values reported by `NFS FSSTAT` calls through any associated + // mount targets. This is an advanced feature. For most + // applications, use the default value. The + // `tfiles` value reported by `FSSTAT` will be + // `maxFsStatFiles`. The value of `ffiles` and `afiles` will be + // `maxFsStatFiles` minus the metered size of the file + // system. If the metered size is larger than `maxFsStatFiles`, + // then `ffiles` and `afiles` will both be '0'. + MaxFsStatFiles *int64 `mandatory:"false" json:"maxFsStatFiles"` +} + +func (m UpdateExportSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateExportSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go index 71df4a100f..affabbfb62 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_export_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_export_set_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateExportSetRequest wrapper for the UpdateExportSet operation @@ -41,6 +43,10 @@ func (request UpdateExportSetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateExportSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateExportSetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateExportSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateExportSetResponse wrapper for the UpdateExportSet operation type UpdateExportSetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_details.go new file mode 100644 index 0000000000..d6d41df9f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_details.go @@ -0,0 +1,65 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateFileSystemDetails Details for updating the file system. +type UpdateFileSystemDetails struct { + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My file system` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Key Management master encryption key to associate with the specified file system. + // If this value is empty, the Update operation will remove the associated key, if there is one, from the file system. + // (The file system will continue to be encrypted, but with an encryption key managed by Oracle.) + // If updating to a new Key Management key, the old key must remain enabled so that files previously encrypted continue + // to be accessible. For more information, see Overview of Key Management (https://docs.cloud.oracle.com/Content/KeyManagement/Concepts/keyoverview.htm). + KmsKeyId *string `mandatory:"false" json:"kmsKeyId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated Filesystem Snapshot Policy, which + // controls the frequency of snapshot creation and retention period of the taken snapshots. + // If string is empty, the policy reference (if any) would be removed. + FilesystemSnapshotPolicyId *string `mandatory:"false" json:"filesystemSnapshotPolicyId"` +} + +func (m UpdateFileSystemDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateFileSystemDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go index 13f7bc201c..80fa9e9367 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_file_system_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_file_system_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateFileSystemRequest wrapper for the UpdateFileSystem operation @@ -41,6 +43,10 @@ func (request UpdateFileSystemRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateFileSystemRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateFileSystemRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateFileSystemRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateFileSystemResponse wrapper for the UpdateFileSystem operation type UpdateFileSystemResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_details.go new file mode 100644 index 0000000000..0ccd8e65b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateFilesystemSnapshotPolicyDetails Details for updating the Filesystem Snapshot Policy. +type UpdateFilesystemSnapshotPolicyDetails struct { + + // A user-friendly name. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `policy1` + DisplayName *string `mandatory:"false" json:"displayName"` + + // The prefix to apply to all snapshots created by this policy. + // Maximum length of 100 characters. + // Example: `acme` + PolicyPrefix *string `mandatory:"false" json:"policyPrefix"` + + // The list of associated SnapshotSchedule objects. There is a maximum of 10 associated with a policy. + Schedules []SnapshotSchedule `mandatory:"false" json:"schedules"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateFilesystemSnapshotPolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateFilesystemSnapshotPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go new file mode 100644 index 0000000000..5f83fa1f11 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_filesystem_snapshot_policy_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateFilesystemSnapshotPolicyRequest wrapper for the UpdateFilesystemSnapshotPolicy operation +type UpdateFilesystemSnapshotPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Filesystem Snapshot Policy. + FilesystemSnapshotPolicyId *string `mandatory:"true" contributesTo:"path" name:"filesystemSnapshotPolicyId"` + + // Details object for updating a Filesystem Snapshot Policy. + UpdateFilesystemSnapshotPolicyDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateFilesystemSnapshotPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateFilesystemSnapshotPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateFilesystemSnapshotPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateFilesystemSnapshotPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateFilesystemSnapshotPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateFilesystemSnapshotPolicyResponse wrapper for the UpdateFilesystemSnapshotPolicy operation +type UpdateFilesystemSnapshotPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The FilesystemSnapshotPolicy instance + FilesystemSnapshotPolicy `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateFilesystemSnapshotPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateFilesystemSnapshotPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_kerberos_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_kerberos_details.go new file mode 100644 index 0000000000..a817a20dfa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_kerberos_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateKerberosDetails Kerberos details needed to update configuration. +type UpdateKerberosDetails struct { + + // The realm of the kerberos server Mount Target interacts with. + KerberosRealm *string `mandatory:"false" json:"kerberosRealm"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the KeyTab secret in the Vault. + KeyTabSecretId *string `mandatory:"false" json:"keyTabSecretId"` + + // Version of the KeyTab secret in the Vault to use. + CurrentKeyTabSecretVersion *int `mandatory:"false" json:"currentKeyTabSecretVersion"` + + // Version of the KeyTab secert in the Vault to use as a backup. + BackupKeyTabSecretVersion *int `mandatory:"false" json:"backupKeyTabSecretVersion"` + + // Specifies whether to Enable or Disbale Kerberos. + IsKerberosEnabled *bool `mandatory:"false" json:"isKerberosEnabled"` + + // Specifies to allow the use of weaker ciphers if true. + // If false only aes256-cts-hmac-sha384-192, aes128-cts-hmac-sha256-128 are allowed. + IsWeakCiphersAllowed *bool `mandatory:"false" json:"isWeakCiphersAllowed"` +} + +func (m UpdateKerberosDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateKerberosDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_ldap_idmap_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_ldap_idmap_details.go new file mode 100644 index 0000000000..e6245f45f4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_ldap_idmap_details.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLdapIdmapDetails Mount Target details about the LDAP ID Map configuration. +type UpdateLdapIdmapDetails struct { + + // Schema type of LDAP account. + SchemaType UpdateLdapIdmapDetailsSchemaTypeEnum `mandatory:"false" json:"schemaType,omitempty"` + + // Integer for how often the mount target should recheck LDAP for updates. + CacheRefreshIntervalSeconds *int `mandatory:"false" json:"cacheRefreshIntervalSeconds"` + + // Integer for how long cached entries may be used. + CacheLifetimeSeconds *int `mandatory:"false" json:"cacheLifetimeSeconds"` + + // Integer for how long to cache if idmap information is missing. + NegativeCacheLifetimeSeconds *int `mandatory:"false" json:"negativeCacheLifetimeSeconds"` + + // All LDAP searches are recursive starting at this Base Distinguished user name. + BaseDistinguishedUserName *string `mandatory:"false" json:"baseDistinguishedUserName"` + + // All LDAP searches are recursive starting at this Base Distinguished group name. + BaseDistinguishedGroupName *string `mandatory:"false" json:"baseDistinguishedGroupName"` + + // OCID of the first LDAP Account + OutboundConnector1Id *string `mandatory:"false" json:"outboundConnector1Id"` + + // OCID of the second LDAP Account + OutboundConnector2Id *string `mandatory:"false" json:"outboundConnector2Id"` +} + +func (m UpdateLdapIdmapDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLdapIdmapDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateLdapIdmapDetailsSchemaTypeEnum(string(m.SchemaType)); !ok && m.SchemaType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SchemaType: %s. Supported values are: %s.", m.SchemaType, strings.Join(GetUpdateLdapIdmapDetailsSchemaTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateLdapIdmapDetailsSchemaTypeEnum Enum with underlying type: string +type UpdateLdapIdmapDetailsSchemaTypeEnum string + +// Set of constants representing the allowable values for UpdateLdapIdmapDetailsSchemaTypeEnum +const ( + UpdateLdapIdmapDetailsSchemaTypeRfc2307 UpdateLdapIdmapDetailsSchemaTypeEnum = "RFC2307" +) + +var mappingUpdateLdapIdmapDetailsSchemaTypeEnum = map[string]UpdateLdapIdmapDetailsSchemaTypeEnum{ + "RFC2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, +} + +var mappingUpdateLdapIdmapDetailsSchemaTypeEnumLowerCase = map[string]UpdateLdapIdmapDetailsSchemaTypeEnum{ + "rfc2307": UpdateLdapIdmapDetailsSchemaTypeRfc2307, +} + +// GetUpdateLdapIdmapDetailsSchemaTypeEnumValues Enumerates the set of values for UpdateLdapIdmapDetailsSchemaTypeEnum +func GetUpdateLdapIdmapDetailsSchemaTypeEnumValues() []UpdateLdapIdmapDetailsSchemaTypeEnum { + values := make([]UpdateLdapIdmapDetailsSchemaTypeEnum, 0) + for _, v := range mappingUpdateLdapIdmapDetailsSchemaTypeEnum { + values = append(values, v) + } + return values +} + +// GetUpdateLdapIdmapDetailsSchemaTypeEnumStringValues Enumerates the set of values in String for UpdateLdapIdmapDetailsSchemaTypeEnum +func GetUpdateLdapIdmapDetailsSchemaTypeEnumStringValues() []string { + return []string{ + "RFC2307", + } +} + +// GetMappingUpdateLdapIdmapDetailsSchemaTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateLdapIdmapDetailsSchemaTypeEnum(val string) (UpdateLdapIdmapDetailsSchemaTypeEnum, bool) { + enum, ok := mappingUpdateLdapIdmapDetailsSchemaTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_logging_mt_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_logging_mt_request_response.go new file mode 100644 index 0000000000..880319d515 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_logging_mt_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateLoggingMtRequest wrapper for the UpdateLoggingMt operation +type UpdateLoggingMtRequest struct { + + // Logging configuration. + ConfigDetails OciServiceLoggingConfig `contributesTo:"body"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateLoggingMtRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateLoggingMtRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateLoggingMtRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateLoggingMtRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLoggingMtRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateLoggingMtResponse wrapper for the UpdateLoggingMt operation +type UpdateLoggingMtResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OciServiceLoggingConfig instance + OciServiceLoggingConfig `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response UpdateLoggingMtResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateLoggingMtResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_details.go new file mode 100644 index 0000000000..f4dbb5ea23 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateMountTargetDetails Details for updating the mount target. +type UpdateMountTargetDetails struct { + + // A user-friendly name. Does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My mount target` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Describes whether Idmapping is turned on or off. If on, describes method used to perform ID Mapping + IdmapType MountTargetIdmapTypeEnum `mandatory:"false" json:"idmapType,omitempty"` + + LdapIdmap *UpdateLdapIdmapDetails `mandatory:"false" json:"ldapIdmap"` + + // A list of Network Security Group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with this mount target. + // A maximum of 5 is allowed. + // Setting this to an empty array after the list is created removes the mount target from all NSGs. + // For more information about NSGs, see Security Rules (https://docs.cloud.oracle.com/Content/Network/Concepts/securityrules.htm). + NsgIds []string `mandatory:"false" json:"nsgIds"` + + Kerberos *UpdateKerberosDetails `mandatory:"false" json:"kerberos"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateMountTargetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateMountTargetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingMountTargetIdmapTypeEnum(string(m.IdmapType)); !ok && m.IdmapType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IdmapType: %s. Supported values are: %s.", m.IdmapType, strings.Join(GetMountTargetIdmapTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go index 5ccc03ad16..4f86ba24c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_mount_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_mount_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateMountTargetRequest wrapper for the UpdateMountTarget operation @@ -41,6 +43,10 @@ func (request UpdateMountTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateMountTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateMountTargetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateMountTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateMountTargetResponse wrapper for the UpdateMountTarget operation type UpdateMountTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_details.go new file mode 100644 index 0000000000..10e1fa1ee2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateOutboundConnectorDetails Details for updating the outbound connector. +type UpdateOutboundConnectorDetails struct { + + // A user-friendly name. Does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My Outbound Connector` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateOutboundConnectorDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateOutboundConnectorDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go index cf42371680..c552b0f2f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_outbound_connector_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_outbound_connector_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateOutboundConnectorRequest wrapper for the UpdateOutboundConnector operation @@ -41,6 +43,10 @@ func (request UpdateOutboundConnectorRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateOutboundConnectorRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateOutboundConnectorRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateOutboundConnectorRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateOutboundConnectorResponse wrapper for the UpdateOutboundConnector operation type UpdateOutboundConnectorResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_details.go new file mode 100644 index 0000000000..6860cbc3af --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateReplicationDetails Details for updating the replication and replication target. +type UpdateReplicationDetails struct { + + // A user-friendly name. Does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // A replication target will also updated with the same `displayName`. + // Example: `My replication` + DisplayName *string `mandatory:"false" json:"displayName"` + + // Duration in minutes between replication snapshots. + ReplicationInterval *int64 `mandatory:"false" json:"replicationInterval"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateReplicationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateReplicationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go index ee514e8e55..3f5447ad7c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateReplicationRequest wrapper for the UpdateReplication operation @@ -41,6 +43,10 @@ func (request UpdateReplicationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateReplicationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateReplicationRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateReplicationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateReplicationResponse wrapper for the UpdateReplication operation type UpdateReplicationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_details.go new file mode 100644 index 0000000000..b40da2522e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateReplicationTargetDetails Details for updating the replication and replication target. +type UpdateReplicationTargetDetails struct { + + // A user-friendly name. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateReplicationTargetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateReplicationTargetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_request_response.go index ee757cd7b7..9a659e57d8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_replication_target_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_replication_target_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateReplicationTargetRequest wrapper for the UpdateReplicationTarget operation @@ -41,6 +43,10 @@ func (request UpdateReplicationTargetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateReplicationTargetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateReplicationTargetRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateReplicationTargetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateReplicationTargetResponse wrapper for the UpdateReplicationTarget operation type UpdateReplicationTargetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_details.go new file mode 100644 index 0000000000..e740b57ee8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_details.go @@ -0,0 +1,63 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateShareDetails Details for updating the share. +type UpdateShareDetails struct { + + // Share name used to access the associated file system. + // Avoid entering confidential information. + // Example: `mediafiles` + ShareName *string `mandatory:"false" json:"shareName"` + + // A short comment description of the Share. + // Avoid entering confidential information. + // Example: `accounting` + Comment *string `mandatory:"false" json:"comment"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // New share options for the share. + // **Setting to the empty array will make the share invisible to all clients.** + // Leaving unset will leave the `shareOptions` unchanged. + ShareOptions []ClientShareOptions `mandatory:"false" json:"shareOptions"` +} + +func (m UpdateShareDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateShareDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_request_response.go new file mode 100644 index 0000000000..1e14c56253 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateShareRequest wrapper for the UpdateShare operation +type UpdateShareRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share. + ShareId *string `mandatory:"true" contributesTo:"path" name:"shareId"` + + // Details object for updating an share. + UpdateShareDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateShareRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateShareRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateShareRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateShareRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateShareRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateShareResponse wrapper for the UpdateShare operation +type UpdateShareResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Share instance + Share `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateShareResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateShareResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_details.go new file mode 100644 index 0000000000..cde0e63bdc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateShareSetDetails Details for updating the share set. +type UpdateShareSetDetails struct { + + // A comment of the share set. It does not have to be unique, and it is changeable. + // Avoid entering confidential information. + // Example: `My share set` + Comment *string `mandatory:"false" json:"comment"` + + // A customer-provided DNS name. This name plays a critical role in + // establishing the server's place in the customer SMB security hierarchy. + // For example, if an SMB server has a DNS name of + // register5.store34.california.usa.marks-hats.com, then this particular + // server is part of the store34.california.usa.marks-hats.com security + // domain which in turn is part of the california.usa.marks-hats.com which + // in turn is part of the usa.marks-hats.com + // which in turn is part of the marks-hats.com security domain. + // Must be unique across all FQDNs in the subnet and comply + // with RFC 952 (https://tools.ietf.org/html/rfc952) + // and RFC 1123 (https://tools.ietf.org/html/rfc1123). + CustomFqdn *string `mandatory:"false" json:"customFqdn"` + + // Every SMB server (i.e. each mount target) needs a Netbios name in + // addition to its fqdn (fully qualified domain name). Normally, + // the Netbios name is simply the hostname portion of the fqdn. + // This doesn't work when multiple computers have the same hostname. + // For example, a computer called orange.colors.com and a computer + // called orange.fruit.org can interfere with each other if they both + // use orange as their Netbios name. To avoid problems, at least one + // computer can be configured to have a Netbios name that is + // not its hostname. + NetBiosName *string `mandatory:"false" json:"netBiosName"` + + // Turn on this flag to allow unsigned SMB traffic. + AllowUnsignedTraffic *string `mandatory:"false" json:"allowUnsignedTraffic"` + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateShareSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateShareSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_request_response.go new file mode 100644 index 0000000000..84f5be7762 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_share_set_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateShareSetRequest wrapper for the UpdateShareSet operation +type UpdateShareSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the share set. + ShareSetId *string `mandatory:"true" contributesTo:"path" name:"shareSetId"` + + // Details object for updating an share set. + UpdateShareSetDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateShareSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateShareSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateShareSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateShareSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateShareSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateShareSetResponse wrapper for the UpdateShareSet operation +type UpdateShareSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ShareSet instance + ShareSet `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If + // you need to contact Oracle about a particular request, + // please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateShareSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateShareSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_details.go new file mode 100644 index 0000000000..969b35d4a3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateSnapshotDetails Details for updating the snapshot. +type UpdateSnapshotDetails struct { + + // Free-form tags for this resource. Each tag is a simple key-value pair + // with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The UTC time when this snapshot will be deleted. To remove the expirationTime, set this field + // to be the min value of DateTime, Date(0) i.e. Thu Jan 01 01:00:00 GMT 1970. + ExpirationTime *common.SDKTime `mandatory:"false" json:"expirationTime"` +} + +func (m UpdateSnapshotDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSnapshotDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go index 69a631e54c..2a10a33f6a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/update_snapshot_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/update_snapshot_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateSnapshotRequest wrapper for the UpdateSnapshot operation @@ -41,6 +43,10 @@ func (request UpdateSnapshotRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateSnapshotRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateSnapshotRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSnapshotRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateSnapshotResponse wrapper for the UpdateSnapshot operation type UpdateSnapshotResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/upload_kerberos_keytab_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upload_kerberos_keytab_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/filestorage/upload_kerberos_keytab_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upload_kerberos_keytab_request_response.go index 739b865ebf..18b24f8312 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/filestorage/upload_kerberos_keytab_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/upload_kerberos_keytab_request_response.go @@ -1,13 +1,15 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package filestorage import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "io" "net/http" + "strings" ) // UploadKerberosKeytabRequest wrapper for the UploadKerberosKeytab operation @@ -56,6 +58,17 @@ func (request UploadKerberosKeytabRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UploadKerberosKeytabRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UploadKerberosKeytabResponse wrapper for the UploadKerberosKeytab operation type UploadKerberosKeytabResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_details.go new file mode 100644 index 0000000000..7a9e0db359 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateKeyTabsDetails Validate keytabs request details. +type ValidateKeyTabsDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the MountTarget whose KeyTabs to be validated. + MountTargetId *string `mandatory:"false" json:"mountTargetId"` + + KeyTabSecretDetails *KeyTabSecretDetails `mandatory:"false" json:"keyTabSecretDetails"` +} + +func (m ValidateKeyTabsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ValidateKeyTabsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_request_response.go new file mode 100644 index 0000000000..a8dc4bdff7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_request_response.go @@ -0,0 +1,86 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ValidateKeyTabsRequest wrapper for the ValidateKeyTabs operation +type ValidateKeyTabsRequest struct { + + // Keytab secret details or mount target id for validating keytabs. + ValidateKeyTabsDetails `contributesTo:"body"` + + // Unique identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ValidateKeyTabsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ValidateKeyTabsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ValidateKeyTabsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ValidateKeyTabsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ValidateKeyTabsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ValidateKeyTabsResponse wrapper for the ValidateKeyTabs operation +type ValidateKeyTabsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The ValidateKeyTabsResponseDetails instance + ValidateKeyTabsResponseDetails `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ValidateKeyTabsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ValidateKeyTabsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_response_details.go new file mode 100644 index 0000000000..94e78040fc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/filestorage/validate_key_tabs_response_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// File Storage API +// +// Use the File Storage service API to manage file systems, mount targets, and snapshots. +// For more information, see Overview of File Storage (https://docs.cloud.oracle.com/iaas/Content/File/Concepts/filestorageoverview.htm). +// + +package filestorage + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ValidateKeyTabsResponseDetails Validate keytabs response details. +type ValidateKeyTabsResponseDetails struct { + + // An array of keytab entries (principal, encryptionType, keyVersionNumber). + CurrentKerberosKeytabEntries []KerberosKeytabEntry `mandatory:"true" json:"currentKerberosKeytabEntries"` + + // An array of keytab entries (principal, encryptionType, keyVersionNumber). + BackupKerberosKeytabEntries []KerberosKeytabEntry `mandatory:"false" json:"backupKerberosKeytabEntries"` +} + +func (m ValidateKeyTabsResponseDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ValidateKeyTabsResponseDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/account.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/account.go new file mode 100644 index 0000000000..903099526f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/account.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Account The basic information for an account object. +type Account struct { + + // The name of the tenant. + AccountName *string `mandatory:"true" json:"accountName"` + + // The lifecycle state of the tenant. + State *string `mandatory:"true" json:"state"` + + // The tenant home region. + HomeRegion *string `mandatory:"true" json:"homeRegion"` + + // The tenant active regions. + ActiveRegions []string `mandatory:"true" json:"activeRegions"` + + // The OCID of the tenancy. + TenancyOcid *string `mandatory:"false" json:"tenancyOcid"` +} + +func (m Account) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Account) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/activate_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/activate_domain_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go index 86caeb7c5e..43727c4370 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/activate_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_domain_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ActivateDomainRequest wrapper for the ActivateDomain operation type ActivateDomainRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -43,6 +45,10 @@ func (request ActivateDomainRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ActivateDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request ActivateDomainRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ActivateDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ActivateDomainResponse wrapper for the ActivateDomain operation type ActivateDomainResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/activate_mfa_totp_device_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_mfa_totp_device_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/activate_mfa_totp_device_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_mfa_totp_device_request_response.go index ba8ce23e80..59aeb6f1ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/activate_mfa_totp_device_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/activate_mfa_totp_device_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ActivateMfaTotpDeviceRequest wrapper for the ActivateMfaTotpDevice operation @@ -49,6 +51,10 @@ func (request ActivateMfaTotpDeviceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ActivateMfaTotpDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -64,6 +70,17 @@ func (request ActivateMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ActivateMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ActivateMfaTotpDeviceResponse wrapper for the ActivateMfaTotpDevice operation type ActivateMfaTotpDeviceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go new file mode 100644 index 0000000000..fae2bcd012 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_lock_details.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddLockDetails Request payload to add lock to the resource. +type AddLockDetails struct { + + // Type of the lock. + Type AddLockDetailsTypeEnum `mandatory:"true" json:"type"` + + // The compartment ID of the lock. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + RelatedResourceId *string `mandatory:"false" json:"relatedResourceId"` + + // A message added by the creator of the lock. This is typically used to give an + // indication of why the resource is locked. + Message *string `mandatory:"false" json:"message"` +} + +func (m AddLockDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddLockDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAddLockDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetAddLockDetailsTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddLockDetailsTypeEnum Enum with underlying type: string +type AddLockDetailsTypeEnum string + +// Set of constants representing the allowable values for AddLockDetailsTypeEnum +const ( + AddLockDetailsTypeFull AddLockDetailsTypeEnum = "FULL" + AddLockDetailsTypeDelete AddLockDetailsTypeEnum = "DELETE" +) + +var mappingAddLockDetailsTypeEnum = map[string]AddLockDetailsTypeEnum{ + "FULL": AddLockDetailsTypeFull, + "DELETE": AddLockDetailsTypeDelete, +} + +var mappingAddLockDetailsTypeEnumLowerCase = map[string]AddLockDetailsTypeEnum{ + "full": AddLockDetailsTypeFull, + "delete": AddLockDetailsTypeDelete, +} + +// GetAddLockDetailsTypeEnumValues Enumerates the set of values for AddLockDetailsTypeEnum +func GetAddLockDetailsTypeEnumValues() []AddLockDetailsTypeEnum { + values := make([]AddLockDetailsTypeEnum, 0) + for _, v := range mappingAddLockDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetAddLockDetailsTypeEnumStringValues Enumerates the set of values in String for AddLockDetailsTypeEnum +func GetAddLockDetailsTypeEnumStringValues() []string { + return []string{ + "FULL", + "DELETE", + } +} + +// GetMappingAddLockDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAddLockDetailsTypeEnum(val string) (AddLockDetailsTypeEnum, bool) { + enum, ok := mappingAddLockDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_default_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_default_lock_request_response.go new file mode 100644 index 0000000000..ccbbec2f92 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_default_lock_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// AddTagDefaultLockRequest wrapper for the AddTagDefaultLock operation +type AddTagDefaultLockRequest struct { + + // The OCID of the tag default. + TagDefaultId *string `mandatory:"true" contributesTo:"path" name:"tagDefaultId"` + + // Lock that is going to be added to resource + AddLockDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request AddTagDefaultLockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request AddTagDefaultLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request AddTagDefaultLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request AddTagDefaultLockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddTagDefaultLockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddTagDefaultLockResponse wrapper for the AddTagDefaultLock operation +type AddTagDefaultLockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagDefault instance + TagDefault `presentIn:"body"` + + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + Etag *string `presentIn:"header" name:"etag"` +} + +func (response AddTagDefaultLockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response AddTagDefaultLockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_namespace_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_namespace_lock_request_response.go new file mode 100644 index 0000000000..0a79513839 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_tag_namespace_lock_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// AddTagNamespaceLockRequest wrapper for the AddTagNamespaceLock operation +type AddTagNamespaceLockRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // Lock that is going to be added to resource + AddLockDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request AddTagNamespaceLockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request AddTagNamespaceLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request AddTagNamespaceLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request AddTagNamespaceLockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddTagNamespaceLockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AddTagNamespaceLockResponse wrapper for the AddTagNamespaceLock operation +type AddTagNamespaceLockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagNamespace instance + TagNamespace `presentIn:"body"` + + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + Etag *string `presentIn:"header" name:"etag"` +} + +func (response AddTagNamespaceLockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response AddTagNamespaceLockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go new file mode 100644 index 0000000000..649809061c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AddUserToGroupDetails The representation of AddUserToGroupDetails +type AddUserToGroupDetails struct { + + // The OCID of the user. + UserId *string `mandatory:"true" json:"userId"` + + // The OCID of the group. + GroupId *string `mandatory:"true" json:"groupId"` +} + +func (m AddUserToGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddUserToGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_request_response.go index 1c98ba27d5..64b29d17b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/add_user_to_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/add_user_to_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AddUserToGroupRequest wrapper for the AddUserToGroup operation @@ -38,6 +40,10 @@ func (request AddUserToGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AddUserToGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request AddUserToGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AddUserToGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AddUserToGroupResponse wrapper for the AddUserToGroup operation type AddUserToGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go new file mode 100644 index 0000000000..17a8d2a84a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/allowed_domain_license_type_summary.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AllowedDomainLicenseTypeSummary (For tenancies that support identity domains) The 'AllowedDomainLicenseTypeSummary' object contains information about the license type of the identity domain. +type AllowedDomainLicenseTypeSummary struct { + + // The license type name. + // Example: "Oracle Apps Premium" + Name *string `mandatory:"true" json:"name"` + + // The license type identifier. + // Example: "oracle-apps-premium" + LicenseType *string `mandatory:"true" json:"licenseType"` + + // The license type description. + Description *string `mandatory:"true" json:"description"` +} + +func (m AllowedDomainLicenseTypeSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AllowedDomainLicenseTypeSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go new file mode 100644 index 0000000000..2abb833687 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/api_key.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ApiKey A PEM-format RSA credential for securing requests to the Oracle Cloud Infrastructure REST API. Also known +// as an *API signing key*. Specifically, this is the public key from the key pair. The private key remains with +// the user calling the API. For information about generating a key pair +// in the required PEM format, see Required Keys and OCIDs (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm). +// **Important:** This is **not** the SSH key for accessing compute instances. +// Each user can have a maximum of three API signing keys. +// For more information about user credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm). +type ApiKey struct { + + // An Oracle-assigned identifier for the key, in this format: + // TENANCY_OCID/USER_OCID/KEY_FINGERPRINT. + KeyId *string `mandatory:"false" json:"keyId"` + + // The key's value. + KeyValue *string `mandatory:"false" json:"keyValue"` + + // The key's fingerprint (e.g., 12:34:56:78:90:ab:cd:ef:12:34:56:78:90:ab:cd:ef). + Fingerprint *string `mandatory:"false" json:"fingerprint"` + + // The OCID of the user the key belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time the `ApiKey` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The API key's current state. After creating an `ApiKey` object, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState ApiKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m ApiKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ApiKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingApiKeyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetApiKeyLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ApiKeyLifecycleStateEnum Enum with underlying type: string +type ApiKeyLifecycleStateEnum string + +// Set of constants representing the allowable values for ApiKeyLifecycleStateEnum +const ( + ApiKeyLifecycleStateCreating ApiKeyLifecycleStateEnum = "CREATING" + ApiKeyLifecycleStateActive ApiKeyLifecycleStateEnum = "ACTIVE" + ApiKeyLifecycleStateInactive ApiKeyLifecycleStateEnum = "INACTIVE" + ApiKeyLifecycleStateDeleting ApiKeyLifecycleStateEnum = "DELETING" + ApiKeyLifecycleStateDeleted ApiKeyLifecycleStateEnum = "DELETED" +) + +var mappingApiKeyLifecycleStateEnum = map[string]ApiKeyLifecycleStateEnum{ + "CREATING": ApiKeyLifecycleStateCreating, + "ACTIVE": ApiKeyLifecycleStateActive, + "INACTIVE": ApiKeyLifecycleStateInactive, + "DELETING": ApiKeyLifecycleStateDeleting, + "DELETED": ApiKeyLifecycleStateDeleted, +} + +var mappingApiKeyLifecycleStateEnumLowerCase = map[string]ApiKeyLifecycleStateEnum{ + "creating": ApiKeyLifecycleStateCreating, + "active": ApiKeyLifecycleStateActive, + "inactive": ApiKeyLifecycleStateInactive, + "deleting": ApiKeyLifecycleStateDeleting, + "deleted": ApiKeyLifecycleStateDeleted, +} + +// GetApiKeyLifecycleStateEnumValues Enumerates the set of values for ApiKeyLifecycleStateEnum +func GetApiKeyLifecycleStateEnumValues() []ApiKeyLifecycleStateEnum { + values := make([]ApiKeyLifecycleStateEnum, 0) + for _, v := range mappingApiKeyLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetApiKeyLifecycleStateEnumStringValues Enumerates the set of values in String for ApiKeyLifecycleStateEnum +func GetApiKeyLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingApiKeyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingApiKeyLifecycleStateEnum(val string) (ApiKeyLifecycleStateEnum, bool) { + enum, ok := mappingApiKeyLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/assemble_effective_tag_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/assemble_effective_tag_set_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/assemble_effective_tag_set_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/assemble_effective_tag_set_request_response.go index 10a07c6a8a..52d7ef4742 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/assemble_effective_tag_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/assemble_effective_tag_set_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // AssembleEffectiveTagSetRequest wrapper for the AssembleEffectiveTagSet operation @@ -34,6 +36,10 @@ func (request AssembleEffectiveTagSetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request AssembleEffectiveTagSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,20 @@ func (request AssembleEffectiveTagSetRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AssembleEffectiveTagSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTagDefaultSummaryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetTagDefaultSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AssembleEffectiveTagSetResponse wrapper for the AssembleEffectiveTagSet operation type AssembleEffectiveTagSetResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go new file mode 100644 index 0000000000..ae7ad082bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/auth_token.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AuthToken An `AuthToken` is an Oracle-generated token string that you can use to authenticate with third-party APIs +// that do not support Oracle Cloud Infrastructure's signature-based authentication. For example, use an `AuthToken` +// to authenticate with a Swift client with the Object Storage Service. +// The auth token is associated with the user's Console login. Auth tokens never expire. A user can have up to two +// auth tokens at a time. +// **Note:** The token is always an Oracle-generated string; you can't change it to a string of your choice. +// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm). +type AuthToken struct { + + // The auth token. The value is available only in the response for `CreateAuthToken`, and not + // for `ListAuthTokens` or `UpdateAuthToken`. + Token *string `mandatory:"false" json:"token"` + + // The OCID of the auth token. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the auth token belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the auth token. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `AuthToken` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this auth token will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The token's current state. After creating an auth token, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState AuthTokenLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m AuthToken) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AuthToken) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingAuthTokenLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAuthTokenLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AuthTokenLifecycleStateEnum Enum with underlying type: string +type AuthTokenLifecycleStateEnum string + +// Set of constants representing the allowable values for AuthTokenLifecycleStateEnum +const ( + AuthTokenLifecycleStateCreating AuthTokenLifecycleStateEnum = "CREATING" + AuthTokenLifecycleStateActive AuthTokenLifecycleStateEnum = "ACTIVE" + AuthTokenLifecycleStateInactive AuthTokenLifecycleStateEnum = "INACTIVE" + AuthTokenLifecycleStateDeleting AuthTokenLifecycleStateEnum = "DELETING" + AuthTokenLifecycleStateDeleted AuthTokenLifecycleStateEnum = "DELETED" +) + +var mappingAuthTokenLifecycleStateEnum = map[string]AuthTokenLifecycleStateEnum{ + "CREATING": AuthTokenLifecycleStateCreating, + "ACTIVE": AuthTokenLifecycleStateActive, + "INACTIVE": AuthTokenLifecycleStateInactive, + "DELETING": AuthTokenLifecycleStateDeleting, + "DELETED": AuthTokenLifecycleStateDeleted, +} + +var mappingAuthTokenLifecycleStateEnumLowerCase = map[string]AuthTokenLifecycleStateEnum{ + "creating": AuthTokenLifecycleStateCreating, + "active": AuthTokenLifecycleStateActive, + "inactive": AuthTokenLifecycleStateInactive, + "deleting": AuthTokenLifecycleStateDeleting, + "deleted": AuthTokenLifecycleStateDeleted, +} + +// GetAuthTokenLifecycleStateEnumValues Enumerates the set of values for AuthTokenLifecycleStateEnum +func GetAuthTokenLifecycleStateEnumValues() []AuthTokenLifecycleStateEnum { + values := make([]AuthTokenLifecycleStateEnum, 0) + for _, v := range mappingAuthTokenLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetAuthTokenLifecycleStateEnumStringValues Enumerates the set of values in String for AuthTokenLifecycleStateEnum +func GetAuthTokenLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingAuthTokenLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAuthTokenLifecycleStateEnum(val string) (AuthTokenLifecycleStateEnum, bool) { + enum, ok := mappingAuthTokenLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go new file mode 100644 index 0000000000..640e13c561 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/authentication_policy.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AuthenticationPolicy Authentication policy, currently set for the given compartment. +type AuthenticationPolicy struct { + PasswordPolicy *PasswordPolicy `mandatory:"false" json:"passwordPolicy"` + + // Compartment OCID. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + NetworkPolicy *NetworkPolicy `mandatory:"false" json:"networkPolicy"` +} + +func (m AuthenticationPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AuthenticationPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go new file mode 100644 index 0000000000..35394eaa1e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/availability_domain.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AvailabilityDomain One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes, +// and subnets. A region contains several Availability Domains. For more information, see +// Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +type AvailabilityDomain struct { + + // The name of the Availability Domain. + Name *string `mandatory:"false" json:"name"` + + // The OCID of the Availability Domain. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the tenancy. + CompartmentId *string `mandatory:"false" json:"compartmentId"` +} + +func (m AvailabilityDomain) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AvailabilityDomain) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go new file mode 100644 index 0000000000..9e2226c511 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/base_tag_definition_validator.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BaseTagDefinitionValidator Validates a definedTag value. Each validator performs validation steps in addition to the standard +// validation for definedTag values. For more information, see +// Limits on Tags (https://docs.cloud.oracle.com/Content/Tagging/Concepts/taggingoverview.htm#limits). +// If you define a validator after a value has been set for a defined tag, then any updates that +// attempt to change the value must pass the additional validation defined by the current rule. +// Previously set values (even those that would fail the current validation) are not updated. You can +// still update other attributes to resources that contain a non-valid defined tag. +// To clear the validator call UpdateTag with +// DefaultTagDefinitionValidator (https://docs.cloud.oracle.com/api/#/en/identity/latest/datatypes/DefaultTagDefinitionValidator). +type BaseTagDefinitionValidator interface { +} + +type basetagdefinitionvalidator struct { + JsonData []byte + ValidatorType string `json:"validatorType"` +} + +// UnmarshalJSON unmarshals json +func (m *basetagdefinitionvalidator) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerbasetagdefinitionvalidator basetagdefinitionvalidator + s := struct { + Model Unmarshalerbasetagdefinitionvalidator + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.ValidatorType = s.Model.ValidatorType + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *basetagdefinitionvalidator) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.ValidatorType { + case "DEFAULT": + mm := DefaultTagDefinitionValidator{} + err = json.Unmarshal(data, &mm) + return mm, err + case "ENUM": + mm := EnumTagDefinitionValidator{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for BaseTagDefinitionValidator: %s.", m.ValidatorType) + return *m, nil + } +} + +func (m basetagdefinitionvalidator) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m basetagdefinitionvalidator) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BaseTagDefinitionValidatorValidatorTypeEnum Enum with underlying type: string +type BaseTagDefinitionValidatorValidatorTypeEnum string + +// Set of constants representing the allowable values for BaseTagDefinitionValidatorValidatorTypeEnum +const ( + BaseTagDefinitionValidatorValidatorTypeEnumvalue BaseTagDefinitionValidatorValidatorTypeEnum = "ENUM" + BaseTagDefinitionValidatorValidatorTypeDefault BaseTagDefinitionValidatorValidatorTypeEnum = "DEFAULT" +) + +var mappingBaseTagDefinitionValidatorValidatorTypeEnum = map[string]BaseTagDefinitionValidatorValidatorTypeEnum{ + "ENUM": BaseTagDefinitionValidatorValidatorTypeEnumvalue, + "DEFAULT": BaseTagDefinitionValidatorValidatorTypeDefault, +} + +var mappingBaseTagDefinitionValidatorValidatorTypeEnumLowerCase = map[string]BaseTagDefinitionValidatorValidatorTypeEnum{ + "enum": BaseTagDefinitionValidatorValidatorTypeEnumvalue, + "default": BaseTagDefinitionValidatorValidatorTypeDefault, +} + +// GetBaseTagDefinitionValidatorValidatorTypeEnumValues Enumerates the set of values for BaseTagDefinitionValidatorValidatorTypeEnum +func GetBaseTagDefinitionValidatorValidatorTypeEnumValues() []BaseTagDefinitionValidatorValidatorTypeEnum { + values := make([]BaseTagDefinitionValidatorValidatorTypeEnum, 0) + for _, v := range mappingBaseTagDefinitionValidatorValidatorTypeEnum { + values = append(values, v) + } + return values +} + +// GetBaseTagDefinitionValidatorValidatorTypeEnumStringValues Enumerates the set of values in String for BaseTagDefinitionValidatorValidatorTypeEnum +func GetBaseTagDefinitionValidatorValidatorTypeEnumStringValues() []string { + return []string{ + "ENUM", + "DEFAULT", + } +} + +// GetMappingBaseTagDefinitionValidatorValidatorTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBaseTagDefinitionValidatorValidatorTypeEnum(val string) (BaseTagDefinitionValidatorValidatorTypeEnum, bool) { + enum, ok := mappingBaseTagDefinitionValidatorValidatorTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go new file mode 100644 index 0000000000..5418dd6630 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource.go @@ -0,0 +1,66 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkActionResource The bulk action resource entity. +type BulkActionResource struct { + + // The resource OCID. + Identifier *string `mandatory:"true" json:"identifier"` + + // The resource-type. To get the list of supported resource-types use + // ListBulkActionResourceTypes. + EntityType *string `mandatory:"true" json:"entityType"` + + // Additional information that helps to identity the resource for bulk action. + // The APIs to delete and move most resource types only require the resource identifier (ocid). + // But some resource-types require additional identifying information. + // This information is provided in the resource's public API document. It is also + // available through the + // ListBulkActionResourceTypes. + // **Example**: + // The APIs to delete or move the `buckets` resource-type require `namespaceName` and `bucketName` to identify the resource, as + // shown in the APIs, DeleteBucket and + // UpdateBucket. + // To add a bucket for bulk actions, specify `namespaceName` and `bucketName` in + // the metadata property as shown in this example + // { + // "identifier": "" + // "entityType": "bucket", + // "metadata": + // { + // "namespaceName": "sampleNamespace", + // "bucketName": "sampleBucket" + // } + // } + Metadata map[string]string `mandatory:"false" json:"metadata"` +} + +func (m BulkActionResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkActionResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go new file mode 100644 index 0000000000..c725f21376 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkActionResourceType The representation of BulkActionResourceType +type BulkActionResourceType struct { + + // The unique name of the resource-type. + Name *string `mandatory:"true" json:"name"` + + // List of metadata keys required to identify a specific resource. Some resource-types require information besides an OCID to identify + // a specific resource. For example, the resource-type `buckets` requires metadataKeys DeleteBucket. + MetadataKeys []string `mandatory:"false" json:"metadataKeys"` +} + +func (m BulkActionResourceType) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkActionResourceType) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go new file mode 100644 index 0000000000..24ebfb4be8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_action_resource_type_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkActionResourceTypeCollection Collection of resource-types supported by a compartment bulk action. +type BulkActionResourceTypeCollection struct { + + // Collection of the resource-types supported by a compartment bulk action. + Items []BulkActionResourceType `mandatory:"true" json:"items"` +} + +func (m BulkActionResourceTypeCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkActionResourceTypeCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go new file mode 100644 index 0000000000..4d6412ce17 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkDeleteResourcesDetails The representation of BulkDeleteResourcesDetails +type BulkDeleteResourcesDetails struct { + + // The resources to be deleted. + Resources []BulkActionResource `mandatory:"true" json:"resources"` +} + +func (m BulkDeleteResourcesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkDeleteResourcesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go index 7bbf29a269..e91e36eecc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_resources_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_resources_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkDeleteResourcesRequest wrapper for the BulkDeleteResources operation @@ -41,6 +43,10 @@ func (request BulkDeleteResourcesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkDeleteResourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request BulkDeleteResourcesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkDeleteResourcesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkDeleteResourcesResponse wrapper for the BulkDeleteResources operation type BulkDeleteResourcesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go new file mode 100644 index 0000000000..872c32b004 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkDeleteTagsDetails Properties for deleting tags in bulk +type BulkDeleteTagsDetails struct { + + // The OCIDs of the tag definitions to delete + TagDefinitionIds []string `mandatory:"true" json:"tagDefinitionIds"` +} + +func (m BulkDeleteTagsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkDeleteTagsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go index c09fd69df6..22eaa3b45b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_delete_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_delete_tags_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkDeleteTagsRequest wrapper for the BulkDeleteTags operation @@ -26,6 +28,9 @@ type BulkDeleteTagsRequest struct { // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -38,6 +43,10 @@ func (request BulkDeleteTagsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkDeleteTagsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +62,17 @@ func (request BulkDeleteTagsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkDeleteTagsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkDeleteTagsResponse wrapper for the BulkDeleteTags operation type BulkDeleteTagsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go new file mode 100644 index 0000000000..0b2fe25b12 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_operation_details.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkEditOperationDetails The representation of BulkEditOperationDetails +type BulkEditOperationDetails struct { + + // An enum-like description of the type of operation. + // * `ADD_WHERE_ABSENT` adds a defined tag only if the tag does not already exist on the resource. + // * `SET_WHERE_PRESENT` updates the value for a defined tag only if the tag is present on the resource. + // * `ADD_OR_SET` combines the first two operations to add a defined tag if it does not already exist on the resource + // or update the value for a defined tag only if the tag is present on the resource. + // * `REMOVE` removes the defined tag from the resource. The tag is removed from the resource regardless of the tag value. + OperationType BulkEditOperationDetailsOperationTypeEnum `mandatory:"true" json:"operationType"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"true" json:"definedTags"` +} + +func (m BulkEditOperationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkEditOperationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBulkEditOperationDetailsOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetBulkEditOperationDetailsOperationTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BulkEditOperationDetailsOperationTypeEnum Enum with underlying type: string +type BulkEditOperationDetailsOperationTypeEnum string + +// Set of constants representing the allowable values for BulkEditOperationDetailsOperationTypeEnum +const ( + BulkEditOperationDetailsOperationTypeAddWhereAbsent BulkEditOperationDetailsOperationTypeEnum = "ADD_WHERE_ABSENT" + BulkEditOperationDetailsOperationTypeSetWherePresent BulkEditOperationDetailsOperationTypeEnum = "SET_WHERE_PRESENT" + BulkEditOperationDetailsOperationTypeAddOrSet BulkEditOperationDetailsOperationTypeEnum = "ADD_OR_SET" + BulkEditOperationDetailsOperationTypeRemove BulkEditOperationDetailsOperationTypeEnum = "REMOVE" +) + +var mappingBulkEditOperationDetailsOperationTypeEnum = map[string]BulkEditOperationDetailsOperationTypeEnum{ + "ADD_WHERE_ABSENT": BulkEditOperationDetailsOperationTypeAddWhereAbsent, + "SET_WHERE_PRESENT": BulkEditOperationDetailsOperationTypeSetWherePresent, + "ADD_OR_SET": BulkEditOperationDetailsOperationTypeAddOrSet, + "REMOVE": BulkEditOperationDetailsOperationTypeRemove, +} + +var mappingBulkEditOperationDetailsOperationTypeEnumLowerCase = map[string]BulkEditOperationDetailsOperationTypeEnum{ + "add_where_absent": BulkEditOperationDetailsOperationTypeAddWhereAbsent, + "set_where_present": BulkEditOperationDetailsOperationTypeSetWherePresent, + "add_or_set": BulkEditOperationDetailsOperationTypeAddOrSet, + "remove": BulkEditOperationDetailsOperationTypeRemove, +} + +// GetBulkEditOperationDetailsOperationTypeEnumValues Enumerates the set of values for BulkEditOperationDetailsOperationTypeEnum +func GetBulkEditOperationDetailsOperationTypeEnumValues() []BulkEditOperationDetailsOperationTypeEnum { + values := make([]BulkEditOperationDetailsOperationTypeEnum, 0) + for _, v := range mappingBulkEditOperationDetailsOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetBulkEditOperationDetailsOperationTypeEnumStringValues Enumerates the set of values in String for BulkEditOperationDetailsOperationTypeEnum +func GetBulkEditOperationDetailsOperationTypeEnumStringValues() []string { + return []string{ + "ADD_WHERE_ABSENT", + "SET_WHERE_PRESENT", + "ADD_OR_SET", + "REMOVE", + } +} + +// GetMappingBulkEditOperationDetailsOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBulkEditOperationDetailsOperationTypeEnum(val string) (BulkEditOperationDetailsOperationTypeEnum, bool) { + enum, ok := mappingBulkEditOperationDetailsOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go new file mode 100644 index 0000000000..c201b2214e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_resource.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkEditResource The representation of BulkEditResource +type BulkEditResource struct { + + // The unique OCID of the resource. + Id *string `mandatory:"true" json:"id"` + + // The type of resource. See ListBulkEditTagsResourceTypes. + ResourceType *string `mandatory:"true" json:"resourceType"` + + // Additional information that identifies the resource for bulk editing of tags. This information is provided in the resource's API documentation. + Metadata map[string]string `mandatory:"false" json:"metadata"` +} + +func (m BulkEditResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkEditResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go new file mode 100644 index 0000000000..4fbb3c8727 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkEditTagsDetails The representation of BulkEditTagsDetails +type BulkEditTagsDetails struct { + + // The OCID of the compartment where the bulk tag edit request is submitted. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The resources to be updated. + Resources []BulkEditResource `mandatory:"true" json:"resources"` + + // The operations associated with the request to bulk edit tags. + BulkEditOperations []BulkEditOperationDetails `mandatory:"true" json:"bulkEditOperations"` +} + +func (m BulkEditTagsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkEditTagsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go index e1b0bafd05..48b42ee10b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_edit_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkEditTagsRequest wrapper for the BulkEditTags operation @@ -38,6 +40,10 @@ func (request BulkEditTagsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkEditTagsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request BulkEditTagsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkEditTagsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkEditTagsResponse wrapper for the BulkEditTags operation type BulkEditTagsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go new file mode 100644 index 0000000000..5d02956577 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkEditTagsResourceType The representation of BulkEditTagsResourceType +type BulkEditTagsResourceType struct { + + // The unique name of the resource type. + ResourceType *string `mandatory:"true" json:"resourceType"` + + // The metadata keys required to identify the resource. + // For example, for a bucket, the value of `metadataKeys` will be "namespaceName", "bucketName". + // This information will match the API documentation. + // See UpdateBucket (https://docs.cloud.oracle.com/api/#/en/objectstorage/latest/Bucket/UpdateBucket) and + // DeleteBucket (https://docs.cloud.oracle.com/api/#/en/objectstorage/latest/Bucket/DeleteBucket). + MetadataKeys []string `mandatory:"false" json:"metadataKeys"` +} + +func (m BulkEditTagsResourceType) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkEditTagsResourceType) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go new file mode 100644 index 0000000000..2838497c3a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_edit_tags_resource_type_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkEditTagsResourceTypeCollection The list of resource types that support bulk editing of tags. +type BulkEditTagsResourceTypeCollection struct { + + // The collection of resource types that support bulk editing of tags. + Items []BulkEditTagsResourceType `mandatory:"true" json:"items"` +} + +func (m BulkEditTagsResourceTypeCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkEditTagsResourceTypeCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go new file mode 100644 index 0000000000..8f965224a0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BulkMoveResourcesDetails The representation of BulkMoveResourcesDetails +type BulkMoveResourcesDetails struct { + + // The resources to be moved. + Resources []BulkActionResource `mandatory:"true" json:"resources"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment + // into which to move the resources. + TargetCompartmentId *string `mandatory:"true" json:"targetCompartmentId"` +} + +func (m BulkMoveResourcesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BulkMoveResourcesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go index 2604988954..cf677fe113 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/bulk_move_resources_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/bulk_move_resources_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // BulkMoveResourcesRequest wrapper for the BulkMoveResources operation @@ -41,6 +43,10 @@ func (request BulkMoveResourcesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request BulkMoveResourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request BulkMoveResourcesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request BulkMoveResourcesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // BulkMoveResourcesResponse wrapper for the BulkMoveResources operation type BulkMoveResourcesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/cascade_delete_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/cascade_delete_tag_namespace_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/cascade_delete_tag_namespace_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/cascade_delete_tag_namespace_request_response.go index 1ec8014e50..bd07e4c204 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/cascade_delete_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/cascade_delete_tag_namespace_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CascadeDeleteTagNamespaceRequest wrapper for the CascadeDeleteTagNamespace operation @@ -31,6 +33,9 @@ type CascadeDeleteTagNamespaceRequest struct { // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -43,6 +48,10 @@ func (request CascadeDeleteTagNamespaceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CascadeDeleteTagNamespaceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +67,17 @@ func (request CascadeDeleteTagNamespaceRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CascadeDeleteTagNamespaceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CascadeDeleteTagNamespaceResponse wrapper for the CascadeDeleteTagNamespace operation type CascadeDeleteTagNamespaceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go new file mode 100644 index 0000000000..edddf81b23 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeDomainCompartmentDetails The representation of ChangeDomainCompartmentDetails +type ChangeDomainCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment + // into which to move the identity domain. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeDomainCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeDomainCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go index 789c5bc690..5d1abeffc0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_compartment_request_response.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeDomainCompartmentRequest wrapper for the ChangeDomainCompartment operation type ChangeDomainCompartmentRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` - // the request object for moving compartment of a domain + // The request object for moving the identity domain to a different compartment. ChangeDomainCompartmentDetails `contributesTo:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -46,6 +48,10 @@ func (request ChangeDomainCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeDomainCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeDomainCompartmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeDomainCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeDomainCompartmentResponse wrapper for the ChangeDomainCompartment operation type ChangeDomainCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go new file mode 100644 index 0000000000..98a30b15c4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeDomainLicenseTypeDetails (For tenancies that support identity domains) Details for updating the license type of the identity domain. +type ChangeDomainLicenseTypeDetails struct { + + // The license type of the identity domain. + LicenseType *string `mandatory:"false" json:"licenseType"` +} + +func (m ChangeDomainLicenseTypeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeDomainLicenseTypeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_request_response.go index 8d2e1a5110..19f107788b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_domain_license_type_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_domain_license_type_request_response.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeDomainLicenseTypeRequest wrapper for the ChangeDomainLicenseType operation type ChangeDomainLicenseTypeRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` - // the request object for domain license type update + // The request object for an update to the license type of the identity domain. ChangeDomainLicenseTypeDetails `contributesTo:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -46,6 +48,10 @@ func (request ChangeDomainLicenseTypeRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeDomainLicenseTypeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeDomainLicenseTypeRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeDomainLicenseTypeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeDomainLicenseTypeResponse wrapper for the ChangeDomainLicenseType operation type ChangeDomainLicenseTypeResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go new file mode 100644 index 0000000000..0640cac2d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_detail.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeTagNamespaceCompartmentDetail Details of the compartment the resource is being moved to. +type ChangeTagNamespaceCompartmentDetail struct { + + // The Oracle Cloud ID (OCID) of the destination compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeTagNamespaceCompartmentDetail) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeTagNamespaceCompartmentDetail) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_request_response.go index 9a9ef1106f..8dc257ca49 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/change_tag_namespace_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tag_namespace_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeTagNamespaceCompartmentRequest wrapper for the ChangeTagNamespaceCompartment operation @@ -25,6 +27,9 @@ type ChangeTagNamespaceCompartmentRequest struct { // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -41,6 +46,10 @@ func (request ChangeTagNamespaceCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeTagNamespaceCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +65,17 @@ func (request ChangeTagNamespaceCompartmentRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeTagNamespaceCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeTagNamespaceCompartmentResponse wrapper for the ChangeTagNamespaceCompartment operation type ChangeTagNamespaceCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go new file mode 100644 index 0000000000..817f2eeb05 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/change_tas_domain_license_type_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeTasDomainLicenseTypeDetails (For tenancies that support identity domains) Update the identity domain license type. +type ChangeTasDomainLicenseTypeDetails struct { + + // The license type of the identity domain. + LicenseType *string `mandatory:"false" json:"licenseType"` +} + +func (m ChangeTasDomainLicenseTypeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeTasDomainLicenseTypeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go new file mode 100644 index 0000000000..2686c5f859 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/compartment.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Compartment A collection of related resources. Compartments are a fundamental component of Oracle Cloud Infrastructure +// for organizing and isolating your cloud resources. You use them to clearly separate resources for the purposes +// of measuring usage and billing, access (through the use of IAM Service policies), and isolation (separating the +// resources for one project or business unit from another). A common approach is to create a compartment for each +// major part of your organization. For more information, see +// Overview of IAM (https://docs.cloud.oracle.com//Content/Identity/getstarted/identity-domains.htm) and also +// Setting Up Your Tenancy (https://docs.cloud.oracle.com/Content/GSG/Concepts/settinguptenancy.htm). +// To place a resource in a compartment, simply specify the compartment ID in the "Create" request object when +// initially creating the resource. For example, to launch an instance into a particular compartment, specify +// that compartment's OCID in the `LaunchInstance` request. You can't move an existing resource from one +// compartment to another. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values +// using the API. +type Compartment struct { + + // The OCID of the compartment. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the parent compartment containing the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the compartment during creation. The name must be unique across all + // compartments in the parent. Avoid entering confidential information. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the compartment. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the compartment was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The compartment's current state. After creating a compartment, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState CompartmentLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // Indicates whether or not the compartment is accessible for the user making the request. + // Returns true when the user has INSPECT permissions directly on a resource in the + // compartment or indirectly (permissions can be on a resource in a subcompartment). + IsAccessible *bool `mandatory:"false" json:"isAccessible"` + + // The OCID of the Security Zone this compartment is associated with. + SecurityZoneId *string `mandatory:"false" json:"securityZoneId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Compartment) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Compartment) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCompartmentLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCompartmentLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CompartmentLifecycleStateEnum Enum with underlying type: string +type CompartmentLifecycleStateEnum string + +// Set of constants representing the allowable values for CompartmentLifecycleStateEnum +const ( + CompartmentLifecycleStateCreating CompartmentLifecycleStateEnum = "CREATING" + CompartmentLifecycleStateActive CompartmentLifecycleStateEnum = "ACTIVE" + CompartmentLifecycleStateInactive CompartmentLifecycleStateEnum = "INACTIVE" + CompartmentLifecycleStateDeleting CompartmentLifecycleStateEnum = "DELETING" + CompartmentLifecycleStateDeleted CompartmentLifecycleStateEnum = "DELETED" +) + +var mappingCompartmentLifecycleStateEnum = map[string]CompartmentLifecycleStateEnum{ + "CREATING": CompartmentLifecycleStateCreating, + "ACTIVE": CompartmentLifecycleStateActive, + "INACTIVE": CompartmentLifecycleStateInactive, + "DELETING": CompartmentLifecycleStateDeleting, + "DELETED": CompartmentLifecycleStateDeleted, +} + +var mappingCompartmentLifecycleStateEnumLowerCase = map[string]CompartmentLifecycleStateEnum{ + "creating": CompartmentLifecycleStateCreating, + "active": CompartmentLifecycleStateActive, + "inactive": CompartmentLifecycleStateInactive, + "deleting": CompartmentLifecycleStateDeleting, + "deleted": CompartmentLifecycleStateDeleted, +} + +// GetCompartmentLifecycleStateEnumValues Enumerates the set of values for CompartmentLifecycleStateEnum +func GetCompartmentLifecycleStateEnumValues() []CompartmentLifecycleStateEnum { + values := make([]CompartmentLifecycleStateEnum, 0) + for _, v := range mappingCompartmentLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCompartmentLifecycleStateEnumStringValues Enumerates the set of values in String for CompartmentLifecycleStateEnum +func GetCompartmentLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingCompartmentLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCompartmentLifecycleStateEnum(val string) (CompartmentLifecycleStateEnum, bool) { + enum, ok := mappingCompartmentLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go new file mode 100644 index 0000000000..6edd37e0b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_api_key_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateApiKeyDetails The representation of CreateApiKeyDetails +type CreateApiKeyDetails struct { + + // The public key. Must be an RSA key in PEM format. + Key *string `mandatory:"true" json:"key"` +} + +func (m CreateApiKeyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateApiKeyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go new file mode 100644 index 0000000000..f5077db77c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateAuthTokenDetails The representation of CreateAuthTokenDetails +type CreateAuthTokenDetails struct { + + // The description you assign to the auth token during creation. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` +} + +func (m CreateAuthTokenDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateAuthTokenDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go index 5130543793..e30ae31986 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_auth_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_auth_token_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateAuthTokenRequest wrapper for the CreateAuthToken operation @@ -41,6 +43,10 @@ func (request CreateAuthTokenRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateAuthTokenRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateAuthTokenRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateAuthTokenRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateAuthTokenResponse wrapper for the CreateAuthToken operation type CreateAuthTokenResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_compartment_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go index 2a1c548405..f7973ffd37 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_details.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateCompartmentDetails The representation of CreateCompartmentDetails @@ -43,3 +45,15 @@ type CreateCompartmentDetails struct { func (m CreateCompartmentDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go index 16c0b9c139..dc0c45e520 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCompartmentRequest wrapper for the CreateCompartment operation @@ -38,6 +40,10 @@ func (request CreateCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCompartmentResponse wrapper for the CreateCompartment operation type CreateCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go new file mode 100644 index 0000000000..c46c15278d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCustomerSecretKeyDetails The representation of CreateCustomerSecretKeyDetails +type CreateCustomerSecretKeyDetails struct { + + // The name you assign to the secret key during creation. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"true" json:"displayName"` +} + +func (m CreateCustomerSecretKeyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCustomerSecretKeyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_request_response.go index 76f4e945b5..7ed0c8b0b2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_customer_secret_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_customer_secret_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCustomerSecretKeyRequest wrapper for the CreateCustomerSecretKey operation @@ -41,6 +43,10 @@ func (request CreateCustomerSecretKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCustomerSecretKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateCustomerSecretKeyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCustomerSecretKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCustomerSecretKeyResponse wrapper for the CreateCustomerSecretKey operation type CreateCustomerSecretKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go new file mode 100644 index 0000000000..de2de622a2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDbCredentialDetails The representation of CreateDbCredentialDetails +type CreateDbCredentialDetails struct { + + // The password for the DB credentials during creation. + Password *string `mandatory:"true" json:"password"` + + // The description you assign to the DB credentials during creation. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` +} + +func (m CreateDbCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDbCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go index 7bb4ea0860..e69a7896e9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_db_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_db_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDbCredentialRequest wrapper for the CreateDbCredential operation @@ -41,6 +43,10 @@ func (request CreateDbCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDbCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateDbCredentialRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDbCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDbCredentialResponse wrapper for the CreateDbCredential operation type CreateDbCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go new file mode 100644 index 0000000000..5427b784e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_details.go @@ -0,0 +1,85 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDomainDetails (For tenancies that support identity domains) Details for creating an identity domain. +type CreateDomainDetails struct { + + // The OCID of the compartment where the identity domain is created. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The mutable display name of the identity domain. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The identity domain description. You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // The region's name identifier. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported region names. + // Example: `us-phoenix-1` + HomeRegion *string `mandatory:"true" json:"homeRegion"` + + // The license type of the identity domain. + LicenseType *string `mandatory:"true" json:"licenseType"` + + // Indicates whether the identity domain is hidden on the sign-in screen or not. + IsHiddenOnLogin *bool `mandatory:"false" json:"isHiddenOnLogin"` + + // The administrator's first name. + AdminFirstName *string `mandatory:"false" json:"adminFirstName"` + + // The administrator's last name. + AdminLastName *string `mandatory:"false" json:"adminLastName"` + + // The administrator's user name. + AdminUserName *string `mandatory:"false" json:"adminUserName"` + + // The administrator's email address. + AdminEmail *string `mandatory:"false" json:"adminEmail"` + + // Indicates whether or not the administrator user created in the IDCS stripe would like to receive notifications like a welcome email. + // This field is required only if admin information is provided. This field is otherwise optional. + IsNotificationBypassed *bool `mandatory:"false" json:"isNotificationBypassed"` + + // Optional field to indicate whether users in the identity domain are required to have a primary email address or not. The default is true. + IsPrimaryEmailRequired *bool `mandatory:"false" json:"isPrimaryEmailRequired"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateDomainDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDomainDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go index 256fefab3b..a5b0f4dfe9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_domain_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDomainRequest wrapper for the CreateDomain operation type CreateDomainRequest struct { - // The request object for creating a new domain + // The request object for creating a new identity domain. CreateDomainDetails `contributesTo:"body"` // A token that uniquely identifies a request so it can be retried in case of a timeout or @@ -38,6 +40,10 @@ func (request CreateDomainRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDomainRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDomainResponse wrapper for the CreateDomain operation type CreateDomainResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go new file mode 100644 index 0000000000..fabf66b136 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateDynamicGroupDetails Properties for creating a dynamic group. +type CreateDynamicGroupDetails struct { + + // The OCID of the tenancy containing the group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the group during creation. The name must be unique across all groups + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The matching rule to dynamically match an instance certificate to this dynamic group. + // For rule syntax, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/dynamicgroups/managingdynamicgroups.htm). + MatchingRule *string `mandatory:"true" json:"matchingRule"` + + // The description you assign to the group during creation. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateDynamicGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateDynamicGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go index d59b678dfd..67bdf339c1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_dynamic_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateDynamicGroupRequest wrapper for the CreateDynamicGroup operation @@ -38,6 +40,10 @@ func (request CreateDynamicGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateDynamicGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateDynamicGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateDynamicGroupResponse wrapper for the CreateDynamicGroup operation type CreateDynamicGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go new file mode 100644 index 0000000000..85fb064bd0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateGroupDetails The representation of CreateGroupDetails +type CreateGroupDetails struct { + + // The OCID of the tenancy containing the group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the group during creation. The name must be unique across all groups + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the group during creation. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go index d70ce834a3..5e2a899fbb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateGroupRequest wrapper for the CreateGroup operation @@ -38,6 +40,10 @@ func (request CreateGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateGroupResponse wrapper for the CreateGroup operation type CreateGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go new file mode 100644 index 0000000000..4dbfe5d232 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_details.go @@ -0,0 +1,234 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateIdentityProviderDetails The representation of CreateIdentityProviderDetails +type CreateIdentityProviderDetails interface { + + // The OCID of your tenancy. + GetCompartmentId() *string + + // The name you assign to the `IdentityProvider` during creation. + // The name must be unique across all `IdentityProvider` objects in the + // tenancy and cannot be changed. + GetName() *string + + // The description you assign to the `IdentityProvider` during creation. + // Does not have to be unique, and it's changeable. + GetDescription() *string + + // The identity provider service or product. + // Supported identity providers are Oracle Identity Cloud Service (IDCS) and Microsoft + // Active Directory Federation Services (ADFS). + // Example: `IDCS` + GetProductType() CreateIdentityProviderDetailsProductTypeEnum + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} +} + +type createidentityproviderdetails struct { + JsonData []byte + CompartmentId *string `mandatory:"true" json:"compartmentId"` + Name *string `mandatory:"true" json:"name"` + Description *string `mandatory:"true" json:"description"` + ProductType CreateIdentityProviderDetailsProductTypeEnum `mandatory:"true" json:"productType"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + Protocol string `json:"protocol"` +} + +// UnmarshalJSON unmarshals json +func (m *createidentityproviderdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalercreateidentityproviderdetails createidentityproviderdetails + s := struct { + Model Unmarshalercreateidentityproviderdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.CompartmentId = s.Model.CompartmentId + m.Name = s.Model.Name + m.Description = s.Model.Description + m.ProductType = s.Model.ProductType + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.Protocol = s.Model.Protocol + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *createidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Protocol { + case "SAML2": + mm := CreateSaml2IdentityProviderDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for CreateIdentityProviderDetails: %s.", m.Protocol) + return *m, nil + } +} + +//GetCompartmentId returns CompartmentId +func (m createidentityproviderdetails) GetCompartmentId() *string { + return m.CompartmentId +} + +//GetName returns Name +func (m createidentityproviderdetails) GetName() *string { + return m.Name +} + +//GetDescription returns Description +func (m createidentityproviderdetails) GetDescription() *string { + return m.Description +} + +//GetProductType returns ProductType +func (m createidentityproviderdetails) GetProductType() CreateIdentityProviderDetailsProductTypeEnum { + return m.ProductType +} + +//GetFreeformTags returns FreeformTags +func (m createidentityproviderdetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m createidentityproviderdetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m createidentityproviderdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m createidentityproviderdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateIdentityProviderDetailsProductTypeEnum(string(m.ProductType)); !ok && m.ProductType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProductType: %s. Supported values are: %s.", m.ProductType, strings.Join(GetCreateIdentityProviderDetailsProductTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateIdentityProviderDetailsProductTypeEnum Enum with underlying type: string +type CreateIdentityProviderDetailsProductTypeEnum string + +// Set of constants representing the allowable values for CreateIdentityProviderDetailsProductTypeEnum +const ( + CreateIdentityProviderDetailsProductTypeIdcs CreateIdentityProviderDetailsProductTypeEnum = "IDCS" + CreateIdentityProviderDetailsProductTypeAdfs CreateIdentityProviderDetailsProductTypeEnum = "ADFS" +) + +var mappingCreateIdentityProviderDetailsProductTypeEnum = map[string]CreateIdentityProviderDetailsProductTypeEnum{ + "IDCS": CreateIdentityProviderDetailsProductTypeIdcs, + "ADFS": CreateIdentityProviderDetailsProductTypeAdfs, +} + +var mappingCreateIdentityProviderDetailsProductTypeEnumLowerCase = map[string]CreateIdentityProviderDetailsProductTypeEnum{ + "idcs": CreateIdentityProviderDetailsProductTypeIdcs, + "adfs": CreateIdentityProviderDetailsProductTypeAdfs, +} + +// GetCreateIdentityProviderDetailsProductTypeEnumValues Enumerates the set of values for CreateIdentityProviderDetailsProductTypeEnum +func GetCreateIdentityProviderDetailsProductTypeEnumValues() []CreateIdentityProviderDetailsProductTypeEnum { + values := make([]CreateIdentityProviderDetailsProductTypeEnum, 0) + for _, v := range mappingCreateIdentityProviderDetailsProductTypeEnum { + values = append(values, v) + } + return values +} + +// GetCreateIdentityProviderDetailsProductTypeEnumStringValues Enumerates the set of values in String for CreateIdentityProviderDetailsProductTypeEnum +func GetCreateIdentityProviderDetailsProductTypeEnumStringValues() []string { + return []string{ + "IDCS", + "ADFS", + } +} + +// GetMappingCreateIdentityProviderDetailsProductTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIdentityProviderDetailsProductTypeEnum(val string) (CreateIdentityProviderDetailsProductTypeEnum, bool) { + enum, ok := mappingCreateIdentityProviderDetailsProductTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// CreateIdentityProviderDetailsProtocolEnum Enum with underlying type: string +type CreateIdentityProviderDetailsProtocolEnum string + +// Set of constants representing the allowable values for CreateIdentityProviderDetailsProtocolEnum +const ( + CreateIdentityProviderDetailsProtocolSaml2 CreateIdentityProviderDetailsProtocolEnum = "SAML2" + CreateIdentityProviderDetailsProtocolAdfs CreateIdentityProviderDetailsProtocolEnum = "ADFS" +) + +var mappingCreateIdentityProviderDetailsProtocolEnum = map[string]CreateIdentityProviderDetailsProtocolEnum{ + "SAML2": CreateIdentityProviderDetailsProtocolSaml2, + "ADFS": CreateIdentityProviderDetailsProtocolAdfs, +} + +var mappingCreateIdentityProviderDetailsProtocolEnumLowerCase = map[string]CreateIdentityProviderDetailsProtocolEnum{ + "saml2": CreateIdentityProviderDetailsProtocolSaml2, + "adfs": CreateIdentityProviderDetailsProtocolAdfs, +} + +// GetCreateIdentityProviderDetailsProtocolEnumValues Enumerates the set of values for CreateIdentityProviderDetailsProtocolEnum +func GetCreateIdentityProviderDetailsProtocolEnumValues() []CreateIdentityProviderDetailsProtocolEnum { + values := make([]CreateIdentityProviderDetailsProtocolEnum, 0) + for _, v := range mappingCreateIdentityProviderDetailsProtocolEnum { + values = append(values, v) + } + return values +} + +// GetCreateIdentityProviderDetailsProtocolEnumStringValues Enumerates the set of values in String for CreateIdentityProviderDetailsProtocolEnum +func GetCreateIdentityProviderDetailsProtocolEnumStringValues() []string { + return []string{ + "SAML2", + "ADFS", + } +} + +// GetMappingCreateIdentityProviderDetailsProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateIdentityProviderDetailsProtocolEnum(val string) (CreateIdentityProviderDetailsProtocolEnum, bool) { + enum, ok := mappingCreateIdentityProviderDetailsProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go index 0553c20d60..fa9a82dc7c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_identity_provider_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateIdentityProviderRequest wrapper for the CreateIdentityProvider operation @@ -38,6 +40,10 @@ func (request CreateIdentityProviderRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateIdentityProviderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateIdentityProviderRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateIdentityProviderResponse wrapper for the CreateIdentityProvider operation type CreateIdentityProviderResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go new file mode 100644 index 0000000000..fec0fa7a05 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_details.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateIdpGroupMappingDetails The representation of CreateIdpGroupMappingDetails +type CreateIdpGroupMappingDetails struct { + + // The name of the IdP group you want to map. + IdpGroupName *string `mandatory:"true" json:"idpGroupName"` + + // The OCID of the IAM Service Group + // you want to map to the IdP group. + GroupId *string `mandatory:"true" json:"groupId"` +} + +func (m CreateIdpGroupMappingDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateIdpGroupMappingDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_request_response.go index e2cbb9164b..a2af0ecf0e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_idp_group_mapping_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateIdpGroupMappingRequest wrapper for the CreateIdpGroupMapping operation @@ -41,6 +43,10 @@ func (request CreateIdpGroupMappingRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateIdpGroupMappingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateIdpGroupMappingResponse wrapper for the CreateIdpGroupMapping operation type CreateIdpGroupMappingResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_managed_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_managed_compartment_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_managed_compartment_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_managed_compartment_details.go index cd40017825..a43ff80cf3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_managed_compartment_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_managed_compartment_details.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateManagedCompartmentDetails The representation of CreateManagedCompartmentDetails @@ -46,3 +48,15 @@ type CreateManagedCompartmentDetails struct { func (m CreateManagedCompartmentDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateManagedCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_managed_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_managed_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_managed_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_managed_compartment_request_response.go index 4f399aa1dd..a91bb0f923 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_managed_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_managed_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateManagedCompartmentRequest wrapper for the CreateManagedCompartment operation @@ -38,6 +40,10 @@ func (request CreateManagedCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateManagedCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateManagedCompartmentRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateManagedCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateManagedCompartmentResponse wrapper for the CreateManagedCompartment operation type CreateManagedCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_mfa_totp_device_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_mfa_totp_device_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_mfa_totp_device_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_mfa_totp_device_request_response.go index 92f1a96ffc..9e21830304 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_mfa_totp_device_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_mfa_totp_device_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateMfaTotpDeviceRequest wrapper for the CreateMfaTotpDevice operation @@ -38,6 +40,10 @@ func (request CreateMfaTotpDeviceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateMfaTotpDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateMfaTotpDeviceResponse wrapper for the CreateMfaTotpDevice operation type CreateMfaTotpDeviceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_network_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_network_source_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go index 6e4f23d082..6a45d52234 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_network_source_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_details.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateNetworkSourceDetails Properties for creating a network source object. @@ -33,9 +35,7 @@ type CreateNetworkSourceDetails struct { // Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` VirtualSourceList []NetworkSourcesVirtualSourceList `mandatory:"false" json:"virtualSourceList"` - // A list of services allowed to make on-behalf-of requests. These requests can have different source IP addresses - // than those listed in the network source. - // Currently, only `all` and `none` are supported. The default is `all`. + // -- The services attribute has no effect and is reserved for use by Oracle. -- Services []string `mandatory:"false" json:"services"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -52,3 +52,15 @@ type CreateNetworkSourceDetails struct { func (m CreateNetworkSourceDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNetworkSourceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_network_source_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go index 222e4b64b5..b9587e7594 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_network_source_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateNetworkSourceRequest wrapper for the CreateNetworkSource operation @@ -38,6 +40,10 @@ func (request CreateNetworkSourceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateNetworkSourceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateNetworkSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateNetworkSourceResponse wrapper for the CreateNetworkSource operation type CreateNetworkSourceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go new file mode 100644 index 0000000000..91018a91ca --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth2_client_credential_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateOAuth2ClientCredentialDetails The representation of CreateOAuth2ClientCredentialDetails +type CreateOAuth2ClientCredentialDetails struct { + + // Name of the oauth credential to help user differentiate them. + Name *string `mandatory:"true" json:"name"` + + // Description of the oauth credential to help user differentiate them. + Description *string `mandatory:"true" json:"description"` + + // Allowed scopes for the given oauth credential. + Scopes []FullyQualifiedScope `mandatory:"true" json:"scopes"` +} + +func (m CreateOAuth2ClientCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateOAuth2ClientCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth_client_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth_client_credential_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth_client_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth_client_credential_request_response.go index c37dde0832..64cac98f99 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_o_auth_client_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_o_auth_client_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateOAuthClientCredentialRequest wrapper for the CreateOAuthClientCredential operation @@ -41,6 +43,10 @@ func (request CreateOAuthClientCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateOAuthClientCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateOAuthClientCredentialRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateOAuthClientCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateOAuthClientCredentialResponse wrapper for the CreateOAuthClientCredential operation type CreateOAuthClientCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_or_reset_u_i_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_or_reset_u_i_password_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_or_reset_u_i_password_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_or_reset_u_i_password_request_response.go index fbc7b055e0..fb40848be3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_or_reset_u_i_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_or_reset_u_i_password_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateOrResetUIPasswordRequest wrapper for the CreateOrResetUIPassword operation @@ -38,6 +40,10 @@ func (request CreateOrResetUIPasswordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateOrResetUIPasswordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateOrResetUIPasswordRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateOrResetUIPasswordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateOrResetUIPasswordResponse wrapper for the CreateOrResetUIPassword operation type CreateOrResetUIPasswordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_policy_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go index 67f548951f..40a3b7ca11 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_policy_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_details.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreatePolicyDetails The representation of CreatePolicyDetails @@ -24,8 +26,8 @@ type CreatePolicyDetails struct { Name *string `mandatory:"true" json:"name"` // An array of policy statements written in the policy language. See - // How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm) and - // Common Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/commonpolicies.htm). + // How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm) and + // Common Policies (https://docs.cloud.oracle.com/Content/Identity/policiescommon/commonpolicies.htm). Statements []string `mandatory:"true" json:"statements"` // The description you assign to the policy during creation. Does not have to be unique, and it's changeable. @@ -50,3 +52,15 @@ type CreatePolicyDetails struct { func (m CreatePolicyDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go index 411e4cc816..3318f2ee1b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePolicyRequest wrapper for the CreatePolicy operation @@ -38,6 +40,10 @@ func (request CreatePolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreatePolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePolicyResponse wrapper for the CreatePolicy operation type CreatePolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go new file mode 100644 index 0000000000..7bcf8f0119 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateRegionSubscriptionDetails The representation of CreateRegionSubscriptionDetails +type CreateRegionSubscriptionDetails struct { + + // The regions's key. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) for + // the full list of supported 3-letter region codes. + // Example: `PHX` + RegionKey *string `mandatory:"true" json:"regionKey"` +} + +func (m CreateRegionSubscriptionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateRegionSubscriptionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go index 50e43be36a..03eab5d835 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_region_subscription_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_region_subscription_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateRegionSubscriptionRequest wrapper for the CreateRegionSubscription operation @@ -41,6 +43,10 @@ func (request CreateRegionSubscriptionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateRegionSubscriptionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateRegionSubscriptionRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateRegionSubscriptionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateRegionSubscriptionResponse wrapper for the CreateRegionSubscription operation type CreateRegionSubscriptionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_saml2_identity_provider_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go index 3afe3a0dab..af0e5cc3ef 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_saml2_identity_provider_details.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateSaml2IdentityProviderDetails The representation of CreateSaml2IdentityProviderDetails @@ -106,6 +108,21 @@ func (m CreateSaml2IdentityProviderDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSaml2IdentityProviderDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateIdentityProviderDetailsProductTypeEnum(string(m.ProductType)); !ok && m.ProductType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ProductType: %s. Supported values are: %s.", m.ProductType, strings.Join(GetCreateIdentityProviderDetailsProductTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m CreateSaml2IdentityProviderDetails) MarshalJSON() (buff []byte, e error) { type MarshalTypeCreateSaml2IdentityProviderDetails CreateSaml2IdentityProviderDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go new file mode 100644 index 0000000000..761cfd611b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSmtpCredentialDetails The representation of CreateSmtpCredentialDetails +type CreateSmtpCredentialDetails struct { + + // The description you assign to the SMTP credentials during creation. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` +} + +func (m CreateSmtpCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSmtpCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go index fc7b6fd3e8..20256cf57a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_smtp_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_smtp_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateSmtpCredentialRequest wrapper for the CreateSmtpCredential operation @@ -41,6 +43,10 @@ func (request CreateSmtpCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateSmtpCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateSmtpCredentialRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateSmtpCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateSmtpCredentialResponse wrapper for the CreateSmtpCredential operation type CreateSmtpCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go new file mode 100644 index 0000000000..8fc2f8cb70 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateSwiftPasswordDetails The representation of CreateSwiftPasswordDetails +type CreateSwiftPasswordDetails struct { + + // The description you assign to the Swift password during creation. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` +} + +func (m CreateSwiftPasswordDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSwiftPasswordDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go index d54a8c8a4c..aeddee9800 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_swift_password_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateSwiftPasswordRequest wrapper for the CreateSwiftPassword operation @@ -41,6 +43,10 @@ func (request CreateSwiftPasswordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateSwiftPasswordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request CreateSwiftPasswordRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateSwiftPasswordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateSwiftPasswordResponse wrapper for the CreateSwiftPassword operation type CreateSwiftPasswordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go new file mode 100644 index 0000000000..1d8c173280 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateTagDefaultDetails The representation of CreateTagDefaultDetails +type CreateTagDefaultDetails struct { + + // The OCID of the compartment. The tag default will be applied to all new resources created in this compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the tag definition. The tag default will always assign a default value for this tag definition. + TagDefinitionId *string `mandatory:"true" json:"tagDefinitionId"` + + // The default value for the tag definition. This will be applied to all new resources created in the compartment. + Value *string `mandatory:"true" json:"value"` + + // If you specify that a value is required, a value is set during resource creation (either by + // the user creating the resource or another tag defualt). If no value is set, resource + // creation is blocked. + // * If the `isRequired` flag is set to "true", the value is set during resource creation. + // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. + // Example: `false` + IsRequired *bool `mandatory:"false" json:"isRequired"` + + // Locks associated with this resource. + Locks []AddLockDetails `mandatory:"false" json:"locks"` +} + +func (m CreateTagDefaultDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateTagDefaultDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go index a87c924019..8013f5d711 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_default_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateTagDefaultRequest wrapper for the CreateTagDefault operation @@ -38,6 +40,10 @@ func (request CreateTagDefaultRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateTagDefaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateTagDefaultRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateTagDefaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateTagDefaultResponse wrapper for the CreateTagDefault operation type CreateTagDefaultResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go index b2c0ec856c..6abeaf2482 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_details.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateTagDetails The representation of CreateTagDetails @@ -44,6 +46,18 @@ func (m CreateTagDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateTagDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *CreateTagDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go new file mode 100644 index 0000000000..407aae7033 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateTagNamespaceDetails The representation of CreateTagNamespaceDetails +type CreateTagNamespaceDetails struct { + + // The OCID of the tenancy containing the tag namespace. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the tag namespace during creation. It must be unique across all tag namespaces in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the tag namespace during creation. + Description *string `mandatory:"true" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Locks associated with this resource. + Locks []AddLockDetails `mandatory:"false" json:"locks"` +} + +func (m CreateTagNamespaceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateTagNamespaceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go index 6b0c568515..bdd721a3f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_namespace_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateTagNamespaceRequest wrapper for the CreateTagNamespace operation @@ -38,6 +40,10 @@ func (request CreateTagNamespaceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateTagNamespaceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateTagNamespaceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateTagNamespaceResponse wrapper for the CreateTagNamespace operation type CreateTagNamespaceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go index 83ad210bd5..28d5c62c00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateTagRequest wrapper for the CreateTag operation @@ -25,6 +27,9 @@ type CreateTagRequest struct { // may be rejected). OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -41,6 +46,10 @@ func (request CreateTagRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateTagRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +65,17 @@ func (request CreateTagRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateTagRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateTagResponse wrapper for the CreateTag operation type CreateTagResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_rule_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_rule_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_rule_details.go index d52ec6b3f3..acef6b9eeb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_rule_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_rule_details.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateTagRuleDetails The representation of CreateTagRuleDetails @@ -43,3 +45,15 @@ type CreateTagRuleDetails struct { func (m CreateTagRuleDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateTagRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_rule_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_rule_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_rule_request_response.go index 0a827e753f..b73c37efdb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_tag_rule_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_tag_rule_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateTagRuleRequest wrapper for the CreateTagRule operation @@ -38,6 +40,10 @@ func (request CreateTagRuleRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateTagRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateTagRuleRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateTagRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateTagRuleResponse wrapper for the CreateTagRule operation type CreateTagRuleResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go new file mode 100644 index 0000000000..e5a06b07c2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateUserDetails The representation of CreateUserDetails +type CreateUserDetails struct { + + // The OCID of the tenancy containing the user. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the user during creation. This is the user's login for the Console. + // The name must be unique across all users in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the user during creation. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // The email you assign to the user during creation. The email must be unique across all users in the tenancy. + // (For tenancies that support identity domains) You must provide an email for each user. + Email *string `mandatory:"false" json:"email"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m CreateUserDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateUserDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go index f2ed6e1abe..2898966686 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/create_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/create_user_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateUserRequest wrapper for the CreateUser operation @@ -38,6 +40,10 @@ func (request CreateUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateUserResponse wrapper for the CreateUser operation type CreateUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go new file mode 100644 index 0000000000..f074260180 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key.go @@ -0,0 +1,125 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CustomerSecretKey A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's +// Amazon S3 compatible API (https://docs.cloud.oracle.com/Content/Object/Tasks/s3compatibleapi.htm). The key consists of a +// secret key/access key pair. A user can have up to two secret keys at a time. +// **Note:** The secret key is always an Oracle-generated string; you can't change it to a string of your choice. +// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm). +type CustomerSecretKey struct { + + // The secret key. + Key *string `mandatory:"false" json:"key"` + + // The access key portion of the key pair. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the password belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The display name you assign to the secret key. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this password will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState CustomerSecretKeyLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m CustomerSecretKey) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CustomerSecretKey) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCustomerSecretKeyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCustomerSecretKeyLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CustomerSecretKeyLifecycleStateEnum Enum with underlying type: string +type CustomerSecretKeyLifecycleStateEnum string + +// Set of constants representing the allowable values for CustomerSecretKeyLifecycleStateEnum +const ( + CustomerSecretKeyLifecycleStateCreating CustomerSecretKeyLifecycleStateEnum = "CREATING" + CustomerSecretKeyLifecycleStateActive CustomerSecretKeyLifecycleStateEnum = "ACTIVE" + CustomerSecretKeyLifecycleStateInactive CustomerSecretKeyLifecycleStateEnum = "INACTIVE" + CustomerSecretKeyLifecycleStateDeleting CustomerSecretKeyLifecycleStateEnum = "DELETING" + CustomerSecretKeyLifecycleStateDeleted CustomerSecretKeyLifecycleStateEnum = "DELETED" +) + +var mappingCustomerSecretKeyLifecycleStateEnum = map[string]CustomerSecretKeyLifecycleStateEnum{ + "CREATING": CustomerSecretKeyLifecycleStateCreating, + "ACTIVE": CustomerSecretKeyLifecycleStateActive, + "INACTIVE": CustomerSecretKeyLifecycleStateInactive, + "DELETING": CustomerSecretKeyLifecycleStateDeleting, + "DELETED": CustomerSecretKeyLifecycleStateDeleted, +} + +var mappingCustomerSecretKeyLifecycleStateEnumLowerCase = map[string]CustomerSecretKeyLifecycleStateEnum{ + "creating": CustomerSecretKeyLifecycleStateCreating, + "active": CustomerSecretKeyLifecycleStateActive, + "inactive": CustomerSecretKeyLifecycleStateInactive, + "deleting": CustomerSecretKeyLifecycleStateDeleting, + "deleted": CustomerSecretKeyLifecycleStateDeleted, +} + +// GetCustomerSecretKeyLifecycleStateEnumValues Enumerates the set of values for CustomerSecretKeyLifecycleStateEnum +func GetCustomerSecretKeyLifecycleStateEnumValues() []CustomerSecretKeyLifecycleStateEnum { + values := make([]CustomerSecretKeyLifecycleStateEnum, 0) + for _, v := range mappingCustomerSecretKeyLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCustomerSecretKeyLifecycleStateEnumStringValues Enumerates the set of values in String for CustomerSecretKeyLifecycleStateEnum +func GetCustomerSecretKeyLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingCustomerSecretKeyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCustomerSecretKeyLifecycleStateEnum(val string) (CustomerSecretKeyLifecycleStateEnum, bool) { + enum, ok := mappingCustomerSecretKeyLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go new file mode 100644 index 0000000000..5091d9b625 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/customer_secret_key_summary.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CustomerSecretKeySummary As the name suggests, a `CustomerSecretKeySummary` object contains information about a `CustomerSecretKey`. +// A `CustomerSecretKey` is an Oracle-provided key for using the Object Storage Service's Amazon S3 compatible API. +type CustomerSecretKeySummary struct { + + // The OCID of the secret key. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the password belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The displayName you assign to the secret key. Does not have to be unique, and it's changeable. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Date and time the `CustomerSecretKey` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this password will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The secret key's current state. After creating a secret key, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState CustomerSecretKeySummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m CustomerSecretKeySummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CustomerSecretKeySummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCustomerSecretKeySummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetCustomerSecretKeySummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CustomerSecretKeySummaryLifecycleStateEnum Enum with underlying type: string +type CustomerSecretKeySummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for CustomerSecretKeySummaryLifecycleStateEnum +const ( + CustomerSecretKeySummaryLifecycleStateCreating CustomerSecretKeySummaryLifecycleStateEnum = "CREATING" + CustomerSecretKeySummaryLifecycleStateActive CustomerSecretKeySummaryLifecycleStateEnum = "ACTIVE" + CustomerSecretKeySummaryLifecycleStateInactive CustomerSecretKeySummaryLifecycleStateEnum = "INACTIVE" + CustomerSecretKeySummaryLifecycleStateDeleting CustomerSecretKeySummaryLifecycleStateEnum = "DELETING" + CustomerSecretKeySummaryLifecycleStateDeleted CustomerSecretKeySummaryLifecycleStateEnum = "DELETED" +) + +var mappingCustomerSecretKeySummaryLifecycleStateEnum = map[string]CustomerSecretKeySummaryLifecycleStateEnum{ + "CREATING": CustomerSecretKeySummaryLifecycleStateCreating, + "ACTIVE": CustomerSecretKeySummaryLifecycleStateActive, + "INACTIVE": CustomerSecretKeySummaryLifecycleStateInactive, + "DELETING": CustomerSecretKeySummaryLifecycleStateDeleting, + "DELETED": CustomerSecretKeySummaryLifecycleStateDeleted, +} + +var mappingCustomerSecretKeySummaryLifecycleStateEnumLowerCase = map[string]CustomerSecretKeySummaryLifecycleStateEnum{ + "creating": CustomerSecretKeySummaryLifecycleStateCreating, + "active": CustomerSecretKeySummaryLifecycleStateActive, + "inactive": CustomerSecretKeySummaryLifecycleStateInactive, + "deleting": CustomerSecretKeySummaryLifecycleStateDeleting, + "deleted": CustomerSecretKeySummaryLifecycleStateDeleted, +} + +// GetCustomerSecretKeySummaryLifecycleStateEnumValues Enumerates the set of values for CustomerSecretKeySummaryLifecycleStateEnum +func GetCustomerSecretKeySummaryLifecycleStateEnumValues() []CustomerSecretKeySummaryLifecycleStateEnum { + values := make([]CustomerSecretKeySummaryLifecycleStateEnum, 0) + for _, v := range mappingCustomerSecretKeySummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetCustomerSecretKeySummaryLifecycleStateEnumStringValues Enumerates the set of values in String for CustomerSecretKeySummaryLifecycleStateEnum +func GetCustomerSecretKeySummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingCustomerSecretKeySummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCustomerSecretKeySummaryLifecycleStateEnum(val string) (CustomerSecretKeySummaryLifecycleStateEnum, bool) { + enum, ok := mappingCustomerSecretKeySummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go new file mode 100644 index 0000000000..95f78b3247 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DbCredential Database credentials are needed for onboarding cloud database to identity. +// The DB credentials are used for DB authentication with the service. +type DbCredential struct { + + // The OCID of the DB credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the DB credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time the `DbCredential` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this credential will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState DbCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + LifecycleDetails *int64 `mandatory:"false" json:"lifecycleDetails"` +} + +func (m DbCredential) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DbCredential) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDbCredentialLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDbCredentialLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DbCredentialLifecycleStateEnum Enum with underlying type: string +type DbCredentialLifecycleStateEnum string + +// Set of constants representing the allowable values for DbCredentialLifecycleStateEnum +const ( + DbCredentialLifecycleStateCreating DbCredentialLifecycleStateEnum = "CREATING" + DbCredentialLifecycleStateActive DbCredentialLifecycleStateEnum = "ACTIVE" + DbCredentialLifecycleStateDeleting DbCredentialLifecycleStateEnum = "DELETING" + DbCredentialLifecycleStateDeleted DbCredentialLifecycleStateEnum = "DELETED" +) + +var mappingDbCredentialLifecycleStateEnum = map[string]DbCredentialLifecycleStateEnum{ + "CREATING": DbCredentialLifecycleStateCreating, + "ACTIVE": DbCredentialLifecycleStateActive, + "DELETING": DbCredentialLifecycleStateDeleting, + "DELETED": DbCredentialLifecycleStateDeleted, +} + +var mappingDbCredentialLifecycleStateEnumLowerCase = map[string]DbCredentialLifecycleStateEnum{ + "creating": DbCredentialLifecycleStateCreating, + "active": DbCredentialLifecycleStateActive, + "deleting": DbCredentialLifecycleStateDeleting, + "deleted": DbCredentialLifecycleStateDeleted, +} + +// GetDbCredentialLifecycleStateEnumValues Enumerates the set of values for DbCredentialLifecycleStateEnum +func GetDbCredentialLifecycleStateEnumValues() []DbCredentialLifecycleStateEnum { + values := make([]DbCredentialLifecycleStateEnum, 0) + for _, v := range mappingDbCredentialLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDbCredentialLifecycleStateEnumStringValues Enumerates the set of values in String for DbCredentialLifecycleStateEnum +func GetDbCredentialLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingDbCredentialLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDbCredentialLifecycleStateEnum(val string) (DbCredentialLifecycleStateEnum, bool) { + enum, ok := mappingDbCredentialLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go new file mode 100644 index 0000000000..d54f14dc2d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/db_credential_summary.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DbCredentialSummary As the name suggests, an `DbCredentialSummary` object contains information about an `DbCredential`. +// The DB credential is used for DB authentication with +// the [DB Service]. +type DbCredentialSummary struct { + + // The OCID of the DB credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the DB credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the DB credential. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `DbCredential` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this credential will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The credential's current state. After creating a DB credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState DbCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m DbCredentialSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DbCredentialSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDbCredentialLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDbCredentialLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/deactivate_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/deactivate_domain_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go index d1e4f7d5e7..f6dff3af0b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/deactivate_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/deactivate_domain_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeactivateDomainRequest wrapper for the DeactivateDomain operation type DeactivateDomainRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -43,6 +45,10 @@ func (request DeactivateDomainRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeactivateDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request DeactivateDomainRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeactivateDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeactivateDomainResponse wrapper for the DeactivateDomain operation type DeactivateDomainResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go new file mode 100644 index 0000000000..e989eb375d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/default_tag_definition_validator.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DefaultTagDefinitionValidator Use this validator to clear any existing validator on the tag key definition with the UpdateTag +// operation. Using this `validatorType` is the same as not setting any value on the validator field. +// The resultant value for `validatorType` returned in the response body is `null`. +type DefaultTagDefinitionValidator struct { +} + +func (m DefaultTagDefinitionValidator) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DefaultTagDefinitionValidator) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m DefaultTagDefinitionValidator) MarshalJSON() (buff []byte, e error) { + type MarshalTypeDefaultTagDefinitionValidator DefaultTagDefinitionValidator + s := struct { + DiscriminatorParam string `json:"validatorType"` + MarshalTypeDefaultTagDefinitionValidator + }{ + "DEFAULT", + (MarshalTypeDefaultTagDefinitionValidator)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_api_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_api_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go index 9764b4eafa..810a5887fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_api_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_api_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteApiKeyRequest wrapper for the DeleteApiKey operation @@ -39,6 +41,10 @@ func (request DeleteApiKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteApiKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteApiKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteApiKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteApiKeyResponse wrapper for the DeleteApiKey operation type DeleteApiKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_auth_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_auth_token_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go index 5f1b8c1c6f..bb4bdeb363 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_auth_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_auth_token_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteAuthTokenRequest wrapper for the DeleteAuthToken operation @@ -39,6 +41,10 @@ func (request DeleteAuthTokenRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteAuthTokenRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteAuthTokenRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteAuthTokenRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteAuthTokenResponse wrapper for the DeleteAuthToken operation type DeleteAuthTokenResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go index 1f7319c84d..7b04b5d887 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteCompartmentRequest wrapper for the DeleteCompartment operation @@ -20,6 +22,9 @@ type DeleteCompartmentRequest struct { // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + // Whether or not skip resource validation in compartment delete + IsSkipResourceCheck *bool `mandatory:"false" contributesTo:"query" name:"isSkipResourceCheck"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -36,6 +41,10 @@ func (request DeleteCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +60,17 @@ func (request DeleteCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteCompartmentResponse wrapper for the DeleteCompartment operation type DeleteCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_customer_secret_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_customer_secret_key_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_customer_secret_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_customer_secret_key_request_response.go index 916a52b396..42561af77f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_customer_secret_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_customer_secret_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteCustomerSecretKeyRequest wrapper for the DeleteCustomerSecretKey operation @@ -15,7 +17,7 @@ type DeleteCustomerSecretKeyRequest struct { // The OCID of the user. UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - // The OCID of the secret key. + // The access token of the secret key. CustomerSecretKeyId *string `mandatory:"true" contributesTo:"path" name:"customerSecretKeyId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -39,6 +41,10 @@ func (request DeleteCustomerSecretKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteCustomerSecretKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteCustomerSecretKeyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCustomerSecretKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteCustomerSecretKeyResponse wrapper for the DeleteCustomerSecretKey operation type DeleteCustomerSecretKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_db_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_db_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go index 7a48db3f73..79e655e662 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_db_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_db_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDbCredentialRequest wrapper for the DeleteDbCredential operation @@ -39,6 +41,10 @@ func (request DeleteDbCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDbCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteDbCredentialRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDbCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDbCredentialResponse wrapper for the DeleteDbCredential operation type DeleteDbCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_domain_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go index 9689bea020..e5dc8e4493 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_domain_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDomainRequest wrapper for the DeleteDomain operation type DeleteDomainRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -36,6 +38,10 @@ func (request DeleteDomainRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDomainRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDomainResponse wrapper for the DeleteDomain operation type DeleteDomainResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_dynamic_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go index d3792294a1..337152defe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_dynamic_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteDynamicGroupRequest wrapper for the DeleteDynamicGroup operation @@ -36,6 +38,10 @@ func (request DeleteDynamicGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteDynamicGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteDynamicGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteDynamicGroupResponse wrapper for the DeleteDynamicGroup operation type DeleteDynamicGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go index 5ae28f4868..fe9798e056 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteGroupRequest wrapper for the DeleteGroup operation @@ -36,6 +38,10 @@ func (request DeleteGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteGroupResponse wrapper for the DeleteGroup operation type DeleteGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_identity_provider_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go index 251ec261f8..99f99dafda 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_identity_provider_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteIdentityProviderRequest wrapper for the DeleteIdentityProvider operation @@ -36,6 +38,10 @@ func (request DeleteIdentityProviderRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteIdentityProviderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteIdentityProviderRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteIdentityProviderResponse wrapper for the DeleteIdentityProvider operation type DeleteIdentityProviderResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_idp_group_mapping_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_idp_group_mapping_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_idp_group_mapping_request_response.go index 286c23b318..63ee0ec16b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_idp_group_mapping_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteIdpGroupMappingRequest wrapper for the DeleteIdpGroupMapping operation @@ -39,6 +41,10 @@ func (request DeleteIdpGroupMappingRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteIdpGroupMappingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteIdpGroupMappingResponse wrapper for the DeleteIdpGroupMapping operation type DeleteIdpGroupMappingResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_mfa_totp_device_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_mfa_totp_device_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_mfa_totp_device_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_mfa_totp_device_request_response.go index 5c4cf1b551..a5ecc57f8c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_mfa_totp_device_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_mfa_totp_device_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteMfaTotpDeviceRequest wrapper for the DeleteMfaTotpDevice operation @@ -39,6 +41,10 @@ func (request DeleteMfaTotpDeviceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteMfaTotpDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteMfaTotpDeviceResponse wrapper for the DeleteMfaTotpDevice operation type DeleteMfaTotpDeviceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_network_source_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go index 585c4129b6..fd88561702 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_network_source_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteNetworkSourceRequest wrapper for the DeleteNetworkSource operation @@ -36,6 +38,10 @@ func (request DeleteNetworkSourceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteNetworkSourceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteNetworkSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteNetworkSourceResponse wrapper for the DeleteNetworkSource operation type DeleteNetworkSourceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_o_auth_client_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_o_auth_client_credential_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_o_auth_client_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_o_auth_client_credential_request_response.go index 363986d956..3a1c9e9651 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_o_auth_client_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_o_auth_client_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteOAuthClientCredentialRequest wrapper for the DeleteOAuthClientCredential operation @@ -39,6 +41,10 @@ func (request DeleteOAuthClientCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteOAuthClientCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteOAuthClientCredentialRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteOAuthClientCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteOAuthClientCredentialResponse wrapper for the DeleteOAuthClientCredential operation type DeleteOAuthClientCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go index 13260b0bb4..683b1b9d15 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeletePolicyRequest wrapper for the DeletePolicy operation @@ -36,6 +38,10 @@ func (request DeletePolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeletePolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeletePolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeletePolicyResponse wrapper for the DeletePolicy operation type DeletePolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_smtp_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go index 236b94e328..e3aac5f2f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_smtp_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_smtp_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteSmtpCredentialRequest wrapper for the DeleteSmtpCredential operation @@ -39,6 +41,10 @@ func (request DeleteSmtpCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteSmtpCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteSmtpCredentialRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteSmtpCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteSmtpCredentialResponse wrapper for the DeleteSmtpCredential operation type DeleteSmtpCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_swift_password_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go index ede62a087e..ef8b2377bc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_swift_password_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteSwiftPasswordRequest wrapper for the DeleteSwiftPassword operation @@ -39,6 +41,10 @@ func (request DeleteSwiftPasswordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteSwiftPasswordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request DeleteSwiftPasswordRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteSwiftPasswordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteSwiftPasswordResponse wrapper for the DeleteSwiftPassword operation type DeleteSwiftPasswordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_default_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go index 5a5ecce64b..f8dc999a1f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_default_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteTagDefaultRequest wrapper for the DeleteTagDefault operation @@ -24,6 +26,9 @@ type DeleteTagDefaultRequest struct { // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -36,6 +41,10 @@ func (request DeleteTagDefaultRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteTagDefaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +60,17 @@ func (request DeleteTagDefaultRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteTagDefaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteTagDefaultResponse wrapper for the DeleteTagDefault operation type DeleteTagDefaultResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_namespace_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go index 9ff64f8a5e..bee17f1270 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_namespace_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteTagNamespaceRequest wrapper for the DeleteTagNamespace operation @@ -24,6 +26,9 @@ type DeleteTagNamespaceRequest struct { // particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -36,6 +41,10 @@ func (request DeleteTagNamespaceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteTagNamespaceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +60,17 @@ func (request DeleteTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteTagNamespaceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteTagNamespaceResponse wrapper for the DeleteTagNamespace operation type DeleteTagNamespaceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go index 457982a038..0521c79eee 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteTagRequest wrapper for the DeleteTag operation @@ -23,6 +25,9 @@ type DeleteTagRequest struct { // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -39,6 +44,10 @@ func (request DeleteTagRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteTagRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +63,17 @@ func (request DeleteTagRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteTagRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteTagResponse wrapper for the DeleteTag operation type DeleteTagResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_rule_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_rule_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_rule_request_response.go index db2ef95e9d..f431a983c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_tag_rule_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_tag_rule_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteTagRuleRequest wrapper for the DeleteTagRule operation @@ -36,6 +38,10 @@ func (request DeleteTagRuleRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteTagRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteTagRuleRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteTagRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteTagRuleResponse wrapper for the DeleteTagRule operation type DeleteTagRuleResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go index a7f98da357..92a0e51aa9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/delete_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/delete_user_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteUserRequest wrapper for the DeleteUser operation @@ -36,6 +38,10 @@ func (request DeleteUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteUserResponse wrapper for the DeleteUser operation type DeleteUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go new file mode 100644 index 0000000000..a02838cc08 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain.go @@ -0,0 +1,239 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Domain (For tenancies that support identity domains) Properties for an identity domain. An identity domain is used to manage users and groups, integration standards, external identities, and secure application integration through Oracle Single Sign-on (SSO) configuration. +type Domain struct { + + // The OCID of the identity domain. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the identity domain. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The mutable display name of the identity domain. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The identity domain description. You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // Region-agnostic identity domain URL. + Url *string `mandatory:"true" json:"url"` + + // Region-specific identity domain URL. + HomeRegionUrl *string `mandatory:"true" json:"homeRegionUrl"` + + // The home region for the identity domain. + // See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported region names. + // Example: `us-phoenix-1` + HomeRegion *string `mandatory:"true" json:"homeRegion"` + + // The regions where replicas of the identity domain exist. + ReplicaRegions []ReplicatedRegionDetails `mandatory:"true" json:"replicaRegions"` + + // The type of the domain. + Type DomainTypeEnum `mandatory:"true" json:"type"` + + // The license type of the identity domain. + LicenseType *string `mandatory:"true" json:"licenseType"` + + // Indicates whether the identity domain is hidden on the sign-in screen or not. + IsHiddenOnLogin *bool `mandatory:"true" json:"isHiddenOnLogin"` + + // Date and time the identity domain was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state. + LifecycleState DomainLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Any additional details about the current state of the identity domain. + LifecycleDetails DomainLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Domain) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Domain) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDomainTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetDomainTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingDomainLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDomainLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingDomainLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetDomainLifecycleDetailsEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DomainTypeEnum Enum with underlying type: string +type DomainTypeEnum string + +// Set of constants representing the allowable values for DomainTypeEnum +const ( + DomainTypeDefault DomainTypeEnum = "DEFAULT" + DomainTypeSecondary DomainTypeEnum = "SECONDARY" +) + +var mappingDomainTypeEnum = map[string]DomainTypeEnum{ + "DEFAULT": DomainTypeDefault, + "SECONDARY": DomainTypeSecondary, +} + +var mappingDomainTypeEnumLowerCase = map[string]DomainTypeEnum{ + "default": DomainTypeDefault, + "secondary": DomainTypeSecondary, +} + +// GetDomainTypeEnumValues Enumerates the set of values for DomainTypeEnum +func GetDomainTypeEnumValues() []DomainTypeEnum { + values := make([]DomainTypeEnum, 0) + for _, v := range mappingDomainTypeEnum { + values = append(values, v) + } + return values +} + +// GetDomainTypeEnumStringValues Enumerates the set of values in String for DomainTypeEnum +func GetDomainTypeEnumStringValues() []string { + return []string{ + "DEFAULT", + "SECONDARY", + } +} + +// GetMappingDomainTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDomainTypeEnum(val string) (DomainTypeEnum, bool) { + enum, ok := mappingDomainTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DomainLifecycleStateEnum Enum with underlying type: string +type DomainLifecycleStateEnum string + +// Set of constants representing the allowable values for DomainLifecycleStateEnum +const ( + DomainLifecycleStateCreating DomainLifecycleStateEnum = "CREATING" + DomainLifecycleStateActive DomainLifecycleStateEnum = "ACTIVE" + DomainLifecycleStateDeleting DomainLifecycleStateEnum = "DELETING" + DomainLifecycleStateInactive DomainLifecycleStateEnum = "INACTIVE" +) + +var mappingDomainLifecycleStateEnum = map[string]DomainLifecycleStateEnum{ + "CREATING": DomainLifecycleStateCreating, + "ACTIVE": DomainLifecycleStateActive, + "DELETING": DomainLifecycleStateDeleting, + "INACTIVE": DomainLifecycleStateInactive, +} + +var mappingDomainLifecycleStateEnumLowerCase = map[string]DomainLifecycleStateEnum{ + "creating": DomainLifecycleStateCreating, + "active": DomainLifecycleStateActive, + "deleting": DomainLifecycleStateDeleting, + "inactive": DomainLifecycleStateInactive, +} + +// GetDomainLifecycleStateEnumValues Enumerates the set of values for DomainLifecycleStateEnum +func GetDomainLifecycleStateEnumValues() []DomainLifecycleStateEnum { + values := make([]DomainLifecycleStateEnum, 0) + for _, v := range mappingDomainLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDomainLifecycleStateEnumStringValues Enumerates the set of values in String for DomainLifecycleStateEnum +func GetDomainLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "DELETING", + "INACTIVE", + } +} + +// GetMappingDomainLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDomainLifecycleStateEnum(val string) (DomainLifecycleStateEnum, bool) { + enum, ok := mappingDomainLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// DomainLifecycleDetailsEnum Enum with underlying type: string +type DomainLifecycleDetailsEnum string + +// Set of constants representing the allowable values for DomainLifecycleDetailsEnum +const ( + DomainLifecycleDetailsDeactivating DomainLifecycleDetailsEnum = "DEACTIVATING" + DomainLifecycleDetailsActivating DomainLifecycleDetailsEnum = "ACTIVATING" + DomainLifecycleDetailsUpdating DomainLifecycleDetailsEnum = "UPDATING" +) + +var mappingDomainLifecycleDetailsEnum = map[string]DomainLifecycleDetailsEnum{ + "DEACTIVATING": DomainLifecycleDetailsDeactivating, + "ACTIVATING": DomainLifecycleDetailsActivating, + "UPDATING": DomainLifecycleDetailsUpdating, +} + +var mappingDomainLifecycleDetailsEnumLowerCase = map[string]DomainLifecycleDetailsEnum{ + "deactivating": DomainLifecycleDetailsDeactivating, + "activating": DomainLifecycleDetailsActivating, + "updating": DomainLifecycleDetailsUpdating, +} + +// GetDomainLifecycleDetailsEnumValues Enumerates the set of values for DomainLifecycleDetailsEnum +func GetDomainLifecycleDetailsEnumValues() []DomainLifecycleDetailsEnum { + values := make([]DomainLifecycleDetailsEnum, 0) + for _, v := range mappingDomainLifecycleDetailsEnum { + values = append(values, v) + } + return values +} + +// GetDomainLifecycleDetailsEnumStringValues Enumerates the set of values in String for DomainLifecycleDetailsEnum +func GetDomainLifecycleDetailsEnumStringValues() []string { + return []string{ + "DEACTIVATING", + "ACTIVATING", + "UPDATING", + } +} + +// GetMappingDomainLifecycleDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDomainLifecycleDetailsEnum(val string) (DomainLifecycleDetailsEnum, bool) { + enum, ok := mappingDomainLifecycleDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go new file mode 100644 index 0000000000..6c46eb9742 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DomainReplication (For tenancies that support identity domains) Identity domain replication states. +type DomainReplication struct { + + // The version number indicating the value of kievTxnId, starting from which the identity domain replication events need to be returned. + OpcWaterMark *float32 `mandatory:"true" json:"opcWaterMark"` + + // A custom value defining the order of records with the same kievTxnId. + TxnSeqNumber *float32 `mandatory:"true" json:"txnSeqNumber"` + + // The identity domain's replication state. + DomainReplicationStates []DomainReplicationStates `mandatory:"true" json:"domainReplicationStates"` +} + +func (m DomainReplication) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DomainReplication) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go new file mode 100644 index 0000000000..534d220b29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_replication_states.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DomainReplicationStates (For tenancies that support identity domains) The identity domain replication log for all identity domains for a given region. +type DomainReplicationStates struct { + + // The OCID of the identity domain. + DomainId *string `mandatory:"true" json:"domainId"` + + // The IDCS-replicated region state. + State ReplicatedRegionDetailsStateEnum `mandatory:"true" json:"state"` + + // The replica region for the identity domain. + ReplicaRegion *string `mandatory:"true" json:"replicaRegion"` +} + +func (m DomainReplicationStates) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DomainReplicationStates) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingReplicatedRegionDetailsStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetReplicatedRegionDetailsStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go new file mode 100644 index 0000000000..4f24454a09 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/domain_summary.go @@ -0,0 +1,144 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DomainSummary (For tenancies that support identity domains) As the name suggests, a `DomainSummary` object contains information about a `Domain`. +type DomainSummary struct { + + // The OCID of the identity domain. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the identity domain. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The mutable display name of the identity domain. + DisplayName *string `mandatory:"true" json:"displayName"` + + // The identity domain description. You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // Region-agnostic identity domain URL. + Url *string `mandatory:"true" json:"url"` + + // Region-specific identity domain URL. + HomeRegionUrl *string `mandatory:"true" json:"homeRegionUrl"` + + // The home region for the identity domain. + HomeRegion *string `mandatory:"true" json:"homeRegion"` + + // The regions where replicas of the identity domain exist. + ReplicaRegions []ReplicatedRegionDetails `mandatory:"true" json:"replicaRegions"` + + // The type of the identity domain. + Type DomainTypeEnum `mandatory:"true" json:"type"` + + // The license type of the identity domain. + LicenseType *string `mandatory:"true" json:"licenseType"` + + // Indicates whether the identity domain is hidden on the sign-in screen or not. + IsHiddenOnLogin *bool `mandatory:"true" json:"isHiddenOnLogin"` + + // Date and time the identity domain was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state. + LifecycleState DomainLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Any additional details about the current state of the identity domain. + LifecycleDetails DomainSummaryLifecycleDetailsEnum `mandatory:"false" json:"lifecycleDetails,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m DomainSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DomainSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDomainTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetDomainTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingDomainLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDomainLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingDomainSummaryLifecycleDetailsEnum(string(m.LifecycleDetails)); !ok && m.LifecycleDetails != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleDetails: %s. Supported values are: %s.", m.LifecycleDetails, strings.Join(GetDomainSummaryLifecycleDetailsEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DomainSummaryLifecycleDetailsEnum Enum with underlying type: string +type DomainSummaryLifecycleDetailsEnum string + +// Set of constants representing the allowable values for DomainSummaryLifecycleDetailsEnum +const ( + DomainSummaryLifecycleDetailsDeactivating DomainSummaryLifecycleDetailsEnum = "DEACTIVATING" + DomainSummaryLifecycleDetailsActivating DomainSummaryLifecycleDetailsEnum = "ACTIVATING" + DomainSummaryLifecycleDetailsUpdating DomainSummaryLifecycleDetailsEnum = "UPDATING" +) + +var mappingDomainSummaryLifecycleDetailsEnum = map[string]DomainSummaryLifecycleDetailsEnum{ + "DEACTIVATING": DomainSummaryLifecycleDetailsDeactivating, + "ACTIVATING": DomainSummaryLifecycleDetailsActivating, + "UPDATING": DomainSummaryLifecycleDetailsUpdating, +} + +var mappingDomainSummaryLifecycleDetailsEnumLowerCase = map[string]DomainSummaryLifecycleDetailsEnum{ + "deactivating": DomainSummaryLifecycleDetailsDeactivating, + "activating": DomainSummaryLifecycleDetailsActivating, + "updating": DomainSummaryLifecycleDetailsUpdating, +} + +// GetDomainSummaryLifecycleDetailsEnumValues Enumerates the set of values for DomainSummaryLifecycleDetailsEnum +func GetDomainSummaryLifecycleDetailsEnumValues() []DomainSummaryLifecycleDetailsEnum { + values := make([]DomainSummaryLifecycleDetailsEnum, 0) + for _, v := range mappingDomainSummaryLifecycleDetailsEnum { + values = append(values, v) + } + return values +} + +// GetDomainSummaryLifecycleDetailsEnumStringValues Enumerates the set of values in String for DomainSummaryLifecycleDetailsEnum +func GetDomainSummaryLifecycleDetailsEnumStringValues() []string { + return []string{ + "DEACTIVATING", + "ACTIVATING", + "UPDATING", + } +} + +// GetMappingDomainSummaryLifecycleDetailsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDomainSummaryLifecycleDetailsEnum(val string) (DomainSummaryLifecycleDetailsEnum, bool) { + enum, ok := mappingDomainSummaryLifecycleDetailsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go new file mode 100644 index 0000000000..f9e3d8b4da --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/dynamic_group.go @@ -0,0 +1,141 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DynamicGroup A dynamic group defines a matching rule. Every bare metal or virtual machine instance is deployed with an instance certificate. +// The certificate contains metadata about the instance. This includes the instance OCID and the compartment OCID, along +// with a few other optional properties. When an API call is made using this instance certificate as the authenticator, +// the certificate can be matched to one or multiple dynamic groups. The instance can then get access to the API +// based on the permissions granted in policies written for the dynamic groups. +// This works like regular user/group membership. But in that case, the membership is a static relationship, whereas +// in a dynamic group, the membership of an instance certificate to a dynamic group is determined during runtime. +// For more information, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/dynamicgroups/managingdynamicgroups.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using +// the API. +type DynamicGroup struct { + + // The OCID of the group. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the group during creation. The name must be unique across all groups in + // the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the group. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // A rule string that defines which instance certificates will be matched. + // For syntax, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/dynamicgroups/managingdynamicgroups.htm). + MatchingRule *string `mandatory:"true" json:"matchingRule"` + + // Date and time the group was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState DynamicGroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m DynamicGroup) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DynamicGroup) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingDynamicGroupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetDynamicGroupLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DynamicGroupLifecycleStateEnum Enum with underlying type: string +type DynamicGroupLifecycleStateEnum string + +// Set of constants representing the allowable values for DynamicGroupLifecycleStateEnum +const ( + DynamicGroupLifecycleStateCreating DynamicGroupLifecycleStateEnum = "CREATING" + DynamicGroupLifecycleStateActive DynamicGroupLifecycleStateEnum = "ACTIVE" + DynamicGroupLifecycleStateInactive DynamicGroupLifecycleStateEnum = "INACTIVE" + DynamicGroupLifecycleStateDeleting DynamicGroupLifecycleStateEnum = "DELETING" + DynamicGroupLifecycleStateDeleted DynamicGroupLifecycleStateEnum = "DELETED" +) + +var mappingDynamicGroupLifecycleStateEnum = map[string]DynamicGroupLifecycleStateEnum{ + "CREATING": DynamicGroupLifecycleStateCreating, + "ACTIVE": DynamicGroupLifecycleStateActive, + "INACTIVE": DynamicGroupLifecycleStateInactive, + "DELETING": DynamicGroupLifecycleStateDeleting, + "DELETED": DynamicGroupLifecycleStateDeleted, +} + +var mappingDynamicGroupLifecycleStateEnumLowerCase = map[string]DynamicGroupLifecycleStateEnum{ + "creating": DynamicGroupLifecycleStateCreating, + "active": DynamicGroupLifecycleStateActive, + "inactive": DynamicGroupLifecycleStateInactive, + "deleting": DynamicGroupLifecycleStateDeleting, + "deleted": DynamicGroupLifecycleStateDeleted, +} + +// GetDynamicGroupLifecycleStateEnumValues Enumerates the set of values for DynamicGroupLifecycleStateEnum +func GetDynamicGroupLifecycleStateEnumValues() []DynamicGroupLifecycleStateEnum { + values := make([]DynamicGroupLifecycleStateEnum, 0) + for _, v := range mappingDynamicGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetDynamicGroupLifecycleStateEnumStringValues Enumerates the set of values in String for DynamicGroupLifecycleStateEnum +func GetDynamicGroupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingDynamicGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDynamicGroupLifecycleStateEnum(val string) (DynamicGroupLifecycleStateEnum, bool) { + enum, ok := mappingDynamicGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go new file mode 100644 index 0000000000..a5c8788bbc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EnableReplicationToRegionDetails (For tenancies that support identity domains) Identity domain replication request packet. +type EnableReplicationToRegionDetails struct { + + // A region to which you want identity domain replication to occur. + // See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported region names. + // Example: `us-phoenix-1` + ReplicaRegion *string `mandatory:"false" json:"replicaRegion"` +} + +func (m EnableReplicationToRegionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EnableReplicationToRegionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_request_response.go index eec59ba576..db8ac22198 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/enable_replication_to_region_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enable_replication_to_region_request_response.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // EnableReplicationToRegionRequest wrapper for the EnableReplicationToRegion operation type EnableReplicationToRegionRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` - // the request object for region we are replicating domain region + // The request object for replicating the identity domain to another region. EnableReplicationToRegionDetails `contributesTo:"body"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -46,6 +48,10 @@ func (request EnableReplicationToRegionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request EnableReplicationToRegionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request EnableReplicationToRegionRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request EnableReplicationToRegionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // EnableReplicationToRegionResponse wrapper for the EnableReplicationToRegion operation type EnableReplicationToRegionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go new file mode 100644 index 0000000000..0cb46e8a96 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/enum_tag_definition_validator.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// EnumTagDefinitionValidator Used to validate the value set for a defined tag and contains the list of allowable `values`. +// You must specify at least one valid value in the `values` array. You can't have blank or +// or empty strings (`""`). Duplicate values are not allowed. +type EnumTagDefinitionValidator struct { + + // The list of allowed values for a definedTag value. + Values []string `mandatory:"false" json:"values"` +} + +func (m EnumTagDefinitionValidator) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m EnumTagDefinitionValidator) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m EnumTagDefinitionValidator) MarshalJSON() (buff []byte, e error) { + type MarshalTypeEnumTagDefinitionValidator EnumTagDefinitionValidator + s := struct { + DiscriminatorParam string `json:"validatorType"` + MarshalTypeEnumTagDefinitionValidator + }{ + "ENUM", + (MarshalTypeEnumTagDefinitionValidator)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go new file mode 100644 index 0000000000..bcfaff214a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fault_domain.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FaultDomain A Fault Domain is a logical grouping of hardware and infrastructure within an Availability Domain that can become +// unavailable in its entirety either due to hardware failure such as Top-of-rack (TOR) switch failure or due to +// planned software maintenance such as security updates that reboot your instances. +type FaultDomain struct { + + // The name of the Fault Domain. + Name *string `mandatory:"false" json:"name"` + + // The OCID of the Fault Domain. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment. Currently only tenancy (root) compartment can be provided. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the availabilityDomain where the Fault Domain belongs. + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` +} + +func (m FaultDomain) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FaultDomain) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go new file mode 100644 index 0000000000..4e2d978334 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/fully_qualified_scope.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FullyQualifiedScope The representation of FullyQualifiedScope +type FullyQualifiedScope struct { + + // Audience for the given scope context. + Audience *string `mandatory:"true" json:"audience"` + + // Allowed permission scope for the given context. + Scope *string `mandatory:"true" json:"scope"` +} + +func (m FullyQualifiedScope) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FullyQualifiedScope) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/generate_totp_seed_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/generate_totp_seed_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go index 73bf48ee15..27ac4bae2a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/generate_totp_seed_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/generate_totp_seed_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GenerateTotpSeedRequest wrapper for the GenerateTotpSeed operation @@ -39,6 +41,10 @@ func (request GenerateTotpSeedRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GenerateTotpSeedRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request GenerateTotpSeedRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GenerateTotpSeedRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GenerateTotpSeedResponse wrapper for the GenerateTotpSeed operation type GenerateTotpSeedResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_account_by_entitlement_id_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_account_by_entitlement_id_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_account_by_entitlement_id_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_account_by_entitlement_id_request_response.go index b5e06d6b5f..a0f1518fc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_account_by_entitlement_id_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_account_by_entitlement_id_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAccountByEntitlementIdRequest wrapper for the GetAccountByEntitlementId operation @@ -34,6 +36,10 @@ func (request GetAccountByEntitlementIdRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAccountByEntitlementIdRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetAccountByEntitlementIdRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAccountByEntitlementIdRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAccountByEntitlementIdResponse wrapper for the GetAccountByEntitlementId operation type GetAccountByEntitlementIdResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_authentication_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_authentication_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go index 7bb1e3b4ee..96c14a994e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_authentication_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_authentication_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAuthenticationPolicyRequest wrapper for the GetAuthenticationPolicy operation @@ -31,6 +33,10 @@ func (request GetAuthenticationPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAuthenticationPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetAuthenticationPolicyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAuthenticationPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAuthenticationPolicyResponse wrapper for the GetAuthenticationPolicy operation type GetAuthenticationPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_compartment_request_response.go new file mode 100644 index 0000000000..d937e4f83c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_compartment_request_response.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCompartmentRequest wrapper for the GetCompartment operation +type GetCompartmentRequest struct { + + // The OCID of the compartment. + CompartmentId *string `mandatory:"true" contributesTo:"path" name:"compartmentId"` + + // This parameter is required to retrieve securityZoneId associated with the compartment. + VerboseLevel GetCompartmentVerboseLevelEnum `mandatory:"false" contributesTo:"query" name:"verboseLevel" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetCompartmentVerboseLevelEnum(string(request.VerboseLevel)); !ok && request.VerboseLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VerboseLevel: %s. Supported values are: %s.", request.VerboseLevel, strings.Join(GetGetCompartmentVerboseLevelEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCompartmentResponse wrapper for the GetCompartment operation +type GetCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Compartment instance + Compartment `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response GetCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetCompartmentVerboseLevelEnum Enum with underlying type: string +type GetCompartmentVerboseLevelEnum string + +// Set of constants representing the allowable values for GetCompartmentVerboseLevelEnum +const ( + GetCompartmentVerboseLevelSecurityzone GetCompartmentVerboseLevelEnum = "securityZone" +) + +var mappingGetCompartmentVerboseLevelEnum = map[string]GetCompartmentVerboseLevelEnum{ + "securityZone": GetCompartmentVerboseLevelSecurityzone, +} + +var mappingGetCompartmentVerboseLevelEnumLowerCase = map[string]GetCompartmentVerboseLevelEnum{ + "securityzone": GetCompartmentVerboseLevelSecurityzone, +} + +// GetGetCompartmentVerboseLevelEnumValues Enumerates the set of values for GetCompartmentVerboseLevelEnum +func GetGetCompartmentVerboseLevelEnumValues() []GetCompartmentVerboseLevelEnum { + values := make([]GetCompartmentVerboseLevelEnum, 0) + for _, v := range mappingGetCompartmentVerboseLevelEnum { + values = append(values, v) + } + return values +} + +// GetGetCompartmentVerboseLevelEnumStringValues Enumerates the set of values in String for GetCompartmentVerboseLevelEnum +func GetGetCompartmentVerboseLevelEnumStringValues() []string { + return []string{ + "securityZone", + } +} + +// GetMappingGetCompartmentVerboseLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetCompartmentVerboseLevelEnum(val string) (GetCompartmentVerboseLevelEnum, bool) { + enum, ok := mappingGetCompartmentVerboseLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_domain_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go index 928e6c2827..70ec56f0fd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_domain_request_response.go @@ -1,18 +1,20 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDomainRequest wrapper for the GetDomain operation type GetDomainRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a @@ -31,6 +33,10 @@ func (request GetDomainRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDomainRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDomainResponse wrapper for the GetDomain operation type GetDomainResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_dynamic_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go index 19ab36a324..2f5bd5dce5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_dynamic_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetDynamicGroupRequest wrapper for the GetDynamicGroup operation @@ -31,6 +33,10 @@ func (request GetDynamicGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetDynamicGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetDynamicGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetDynamicGroupResponse wrapper for the GetDynamicGroup operation type GetDynamicGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go index e033582949..201c2f0131 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetGroupRequest wrapper for the GetGroup operation @@ -31,6 +33,10 @@ func (request GetGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetGroupResponse wrapper for the GetGroup operation type GetGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_iam_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_iam_work_request_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_iam_work_request_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_iam_work_request_request_response.go index 9b3a933bdb..a60a16695a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_iam_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_iam_work_request_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIamWorkRequestRequest wrapper for the GetIamWorkRequest operation @@ -31,6 +33,10 @@ func (request GetIamWorkRequestRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIamWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIamWorkRequestRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIamWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIamWorkRequestResponse wrapper for the GetIamWorkRequest operation type GetIamWorkRequestResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_identity_provider_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go index e1c5688b12..6d1a1a667b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_identity_provider_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIdentityProviderRequest wrapper for the GetIdentityProvider operation @@ -31,6 +33,10 @@ func (request GetIdentityProviderRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIdentityProviderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIdentityProviderRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIdentityProviderResponse wrapper for the GetIdentityProvider operation type GetIdentityProviderResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_idp_group_mapping_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_idp_group_mapping_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_idp_group_mapping_request_response.go index 1a9630ae19..a84df87ab3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_idp_group_mapping_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetIdpGroupMappingRequest wrapper for the GetIdpGroupMapping operation @@ -34,6 +36,10 @@ func (request GetIdpGroupMappingRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetIdpGroupMappingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetIdpGroupMappingResponse wrapper for the GetIdpGroupMapping operation type GetIdpGroupMappingResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_mfa_totp_device_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_mfa_totp_device_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_mfa_totp_device_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_mfa_totp_device_request_response.go index 4fe7fae26c..ecf51ab561 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_mfa_totp_device_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_mfa_totp_device_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetMfaTotpDeviceRequest wrapper for the GetMfaTotpDevice operation @@ -34,6 +36,10 @@ func (request GetMfaTotpDeviceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetMfaTotpDeviceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetMfaTotpDeviceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetMfaTotpDeviceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetMfaTotpDeviceResponse wrapper for the GetMfaTotpDevice operation type GetMfaTotpDeviceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_network_source_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go index e0eda26dc3..2ac61b2dbe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_network_source_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNetworkSourceRequest wrapper for the GetNetworkSource operation @@ -31,6 +33,10 @@ func (request GetNetworkSourceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNetworkSourceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNetworkSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNetworkSourceResponse wrapper for the GetNetworkSource operation type GetNetworkSourceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go index 6d83938cde..34f71df10d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetPolicyRequest wrapper for the GetPolicy operation @@ -31,6 +33,10 @@ func (request GetPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetPolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetPolicyResponse wrapper for the GetPolicy operation type GetPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_standard_tag_template_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_standard_tag_template_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_standard_tag_template_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_standard_tag_template_request_response.go index c39d304151..f50ffcc988 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_standard_tag_template_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_standard_tag_template_request_response.go @@ -1,17 +1,22 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetStandardTagTemplateRequest wrapper for the GetStandardTagTemplate operation type GetStandardTagTemplateRequest struct { + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + // The name of the standard tag namespace tempate that is requested StandardTagNamespaceName *string `mandatory:"true" contributesTo:"path" name:"standardTagNamespaceName"` @@ -31,6 +36,10 @@ func (request GetStandardTagTemplateRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetStandardTagTemplateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +55,17 @@ func (request GetStandardTagTemplateRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetStandardTagTemplateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetStandardTagTemplateResponse wrapper for the GetStandardTagTemplate operation type GetStandardTagTemplateResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_default_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go index 691a8eda86..537ebab848 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_default_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTagDefaultRequest wrapper for the GetTagDefault operation @@ -31,6 +33,10 @@ func (request GetTagDefaultRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTagDefaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetTagDefaultRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTagDefaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTagDefaultResponse wrapper for the GetTagDefault operation type GetTagDefaultResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_namespace_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go index 58754f8d10..ea2b333e17 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_namespace_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTagNamespaceRequest wrapper for the GetTagNamespace operation @@ -31,6 +33,10 @@ func (request GetTagNamespaceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTagNamespaceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTagNamespaceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTagNamespaceResponse wrapper for the GetTagNamespace operation type GetTagNamespaceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go index 59f802ef52..c75e2d3566 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTagRequest wrapper for the GetTag operation @@ -34,6 +36,10 @@ func (request GetTagRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTagRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request GetTagRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTagRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTagResponse wrapper for the GetTag operation type GetTagResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_rule_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_rule_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_rule_request_response.go index 62b6f7088a..677fb837f2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tag_rule_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tag_rule_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTagRuleRequest wrapper for the GetTagRule operation @@ -31,6 +33,10 @@ func (request GetTagRuleRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTagRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetTagRuleRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTagRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTagRuleResponse wrapper for the GetTagRule operation type GetTagRuleResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tagging_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tagging_work_request_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tagging_work_request_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tagging_work_request_request_response.go index 0bf8a6c74e..0507e066b9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tagging_work_request_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tagging_work_request_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTaggingWorkRequestRequest wrapper for the GetTaggingWorkRequest operation @@ -31,6 +33,10 @@ func (request GetTaggingWorkRequestRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTaggingWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetTaggingWorkRequestRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTaggingWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTaggingWorkRequestResponse wrapper for the GetTaggingWorkRequest operation type GetTaggingWorkRequestResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tenancy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tenancy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go index 4b41c12bf7..955365eee6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_tenancy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_tenancy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetTenancyRequest wrapper for the GetTenancy operation @@ -31,6 +33,10 @@ func (request GetTenancyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetTenancyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetTenancyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetTenancyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetTenancyResponse wrapper for the GetTenancy operation type GetTenancyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_group_membership_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_group_membership_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_group_membership_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_group_membership_request_response.go index 218417e911..7e63e79f04 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_group_membership_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_group_membership_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetUserGroupMembershipRequest wrapper for the GetUserGroupMembership operation @@ -31,6 +33,10 @@ func (request GetUserGroupMembershipRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetUserGroupMembershipRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetUserGroupMembershipRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetUserGroupMembershipRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetUserGroupMembershipResponse wrapper for the GetUserGroupMembership operation type GetUserGroupMembershipResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go index 6a8a403bfc..7765684845 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetUserRequest wrapper for the GetUser operation @@ -31,6 +33,10 @@ func (request GetUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetUserResponse wrapper for the GetUser operation type GetUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_u_i_password_information_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_u_i_password_information_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_u_i_password_information_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_u_i_password_information_request_response.go index e118b93716..65ab9c29fe 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/get_user_u_i_password_information_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_user_u_i_password_information_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetUserUIPasswordInformationRequest wrapper for the GetUserUIPasswordInformation operation @@ -31,6 +33,10 @@ func (request GetUserUIPasswordInformationRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetUserUIPasswordInformationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetUserUIPasswordInformationRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetUserUIPasswordInformationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetUserUIPasswordInformationResponse wrapper for the GetUserUIPasswordInformation operation type GetUserUIPasswordInformationResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_work_request_request_response.go new file mode 100644 index 0000000000..7980771c94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/get_work_request_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +type GetWorkRequestRequest struct { + + // The OCID of the work request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetWorkRequestResponse wrapper for the GetWorkRequest operation +type GetWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The WorkRequest instance + WorkRequest `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The number of seconds that the client should wait before polling again. + RetryAfter *float32 `presentIn:"header" name:"retry-after"` +} + +func (response GetWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go new file mode 100644 index 0000000000..1cbdb46a29 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/group.go @@ -0,0 +1,140 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Group A collection of users who all need the same type of access to a particular set of resources or compartment. +// For conceptual information about groups and other IAM Service components, see +// Overview of IAM (https://docs.cloud.oracle.com/Content/Identity/getstarted/identity-domains.htm). +// If you're federating with an identity provider (IdP), you need to create mappings between the groups +// defined in the IdP and groups you define in the IAM service. For more information, see +// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). Also see +// IdentityProvider and +// IdpGroupMapping. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values +// using the API. +type Group struct { + + // The OCID of the group. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the group. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the group during creation. The name must be unique across all groups in + // the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the group. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // Date and time the group was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The group's current state. After creating a group, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState GroupLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Group) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Group) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGroupLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetGroupLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GroupLifecycleStateEnum Enum with underlying type: string +type GroupLifecycleStateEnum string + +// Set of constants representing the allowable values for GroupLifecycleStateEnum +const ( + GroupLifecycleStateCreating GroupLifecycleStateEnum = "CREATING" + GroupLifecycleStateActive GroupLifecycleStateEnum = "ACTIVE" + GroupLifecycleStateInactive GroupLifecycleStateEnum = "INACTIVE" + GroupLifecycleStateDeleting GroupLifecycleStateEnum = "DELETING" + GroupLifecycleStateDeleted GroupLifecycleStateEnum = "DELETED" +) + +var mappingGroupLifecycleStateEnum = map[string]GroupLifecycleStateEnum{ + "CREATING": GroupLifecycleStateCreating, + "ACTIVE": GroupLifecycleStateActive, + "INACTIVE": GroupLifecycleStateInactive, + "DELETING": GroupLifecycleStateDeleting, + "DELETED": GroupLifecycleStateDeleted, +} + +var mappingGroupLifecycleStateEnumLowerCase = map[string]GroupLifecycleStateEnum{ + "creating": GroupLifecycleStateCreating, + "active": GroupLifecycleStateActive, + "inactive": GroupLifecycleStateInactive, + "deleting": GroupLifecycleStateDeleting, + "deleted": GroupLifecycleStateDeleted, +} + +// GetGroupLifecycleStateEnumValues Enumerates the set of values for GroupLifecycleStateEnum +func GetGroupLifecycleStateEnumValues() []GroupLifecycleStateEnum { + values := make([]GroupLifecycleStateEnum, 0) + for _, v := range mappingGroupLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetGroupLifecycleStateEnumStringValues Enumerates the set of values in String for GroupLifecycleStateEnum +func GetGroupLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingGroupLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGroupLifecycleStateEnum(val string) (GroupLifecycleStateEnum, bool) { + enum, ok := mappingGroupLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go new file mode 100644 index 0000000000..7e23538ea8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request.go @@ -0,0 +1,196 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IamWorkRequest (For tenancies that support identity domains) An IAM work request object that allows users to track the status of asynchronous API requests. +type IamWorkRequest struct { + + // The OCID of the work request. + Id *string `mandatory:"true" json:"id"` + + // The asynchronous operation tracked by this IAM work request. + OperationType IamWorkRequestOperationTypeEnum `mandatory:"true" json:"operationType"` + + // The status of the work request. + Status IamWorkRequestStatusEnum `mandatory:"true" json:"status"` + + // The OCID of the compartment containing this IAM work request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []IamWorkRequestResource `mandatory:"false" json:"resources"` + + // How much progress the operation has made. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` + + // Date and time the work was accepted, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // Date and time the work started, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // Date and time the work completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m IamWorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IamWorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIamWorkRequestOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetIamWorkRequestOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingIamWorkRequestStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetIamWorkRequestStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IamWorkRequestOperationTypeEnum Enum with underlying type: string +type IamWorkRequestOperationTypeEnum string + +// Set of constants representing the allowable values for IamWorkRequestOperationTypeEnum +const ( + IamWorkRequestOperationTypeCreateDomain IamWorkRequestOperationTypeEnum = "CREATE_DOMAIN" + IamWorkRequestOperationTypeReplicateDomainToRegion IamWorkRequestOperationTypeEnum = "REPLICATE_DOMAIN_TO_REGION" + IamWorkRequestOperationTypeUpdateDomain IamWorkRequestOperationTypeEnum = "UPDATE_DOMAIN" + IamWorkRequestOperationTypeActivateDomain IamWorkRequestOperationTypeEnum = "ACTIVATE_DOMAIN" + IamWorkRequestOperationTypeDeactivateDomain IamWorkRequestOperationTypeEnum = "DEACTIVATE_DOMAIN" + IamWorkRequestOperationTypeDeleteDomain IamWorkRequestOperationTypeEnum = "DELETE_DOMAIN" + IamWorkRequestOperationTypeChangeCompartmentForDomain IamWorkRequestOperationTypeEnum = "CHANGE_COMPARTMENT_FOR_DOMAIN" + IamWorkRequestOperationTypeChangeLicenseTypeForDomain IamWorkRequestOperationTypeEnum = "CHANGE_LICENSE_TYPE_FOR_DOMAIN" +) + +var mappingIamWorkRequestOperationTypeEnum = map[string]IamWorkRequestOperationTypeEnum{ + "CREATE_DOMAIN": IamWorkRequestOperationTypeCreateDomain, + "REPLICATE_DOMAIN_TO_REGION": IamWorkRequestOperationTypeReplicateDomainToRegion, + "UPDATE_DOMAIN": IamWorkRequestOperationTypeUpdateDomain, + "ACTIVATE_DOMAIN": IamWorkRequestOperationTypeActivateDomain, + "DEACTIVATE_DOMAIN": IamWorkRequestOperationTypeDeactivateDomain, + "DELETE_DOMAIN": IamWorkRequestOperationTypeDeleteDomain, + "CHANGE_COMPARTMENT_FOR_DOMAIN": IamWorkRequestOperationTypeChangeCompartmentForDomain, + "CHANGE_LICENSE_TYPE_FOR_DOMAIN": IamWorkRequestOperationTypeChangeLicenseTypeForDomain, +} + +var mappingIamWorkRequestOperationTypeEnumLowerCase = map[string]IamWorkRequestOperationTypeEnum{ + "create_domain": IamWorkRequestOperationTypeCreateDomain, + "replicate_domain_to_region": IamWorkRequestOperationTypeReplicateDomainToRegion, + "update_domain": IamWorkRequestOperationTypeUpdateDomain, + "activate_domain": IamWorkRequestOperationTypeActivateDomain, + "deactivate_domain": IamWorkRequestOperationTypeDeactivateDomain, + "delete_domain": IamWorkRequestOperationTypeDeleteDomain, + "change_compartment_for_domain": IamWorkRequestOperationTypeChangeCompartmentForDomain, + "change_license_type_for_domain": IamWorkRequestOperationTypeChangeLicenseTypeForDomain, +} + +// GetIamWorkRequestOperationTypeEnumValues Enumerates the set of values for IamWorkRequestOperationTypeEnum +func GetIamWorkRequestOperationTypeEnumValues() []IamWorkRequestOperationTypeEnum { + values := make([]IamWorkRequestOperationTypeEnum, 0) + for _, v := range mappingIamWorkRequestOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetIamWorkRequestOperationTypeEnumStringValues Enumerates the set of values in String for IamWorkRequestOperationTypeEnum +func GetIamWorkRequestOperationTypeEnumStringValues() []string { + return []string{ + "CREATE_DOMAIN", + "REPLICATE_DOMAIN_TO_REGION", + "UPDATE_DOMAIN", + "ACTIVATE_DOMAIN", + "DEACTIVATE_DOMAIN", + "DELETE_DOMAIN", + "CHANGE_COMPARTMENT_FOR_DOMAIN", + "CHANGE_LICENSE_TYPE_FOR_DOMAIN", + } +} + +// GetMappingIamWorkRequestOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIamWorkRequestOperationTypeEnum(val string) (IamWorkRequestOperationTypeEnum, bool) { + enum, ok := mappingIamWorkRequestOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IamWorkRequestStatusEnum Enum with underlying type: string +type IamWorkRequestStatusEnum string + +// Set of constants representing the allowable values for IamWorkRequestStatusEnum +const ( + IamWorkRequestStatusAccepted IamWorkRequestStatusEnum = "ACCEPTED" + IamWorkRequestStatusInProgress IamWorkRequestStatusEnum = "IN_PROGRESS" + IamWorkRequestStatusFailed IamWorkRequestStatusEnum = "FAILED" + IamWorkRequestStatusSucceeded IamWorkRequestStatusEnum = "SUCCEEDED" + IamWorkRequestStatusCanceling IamWorkRequestStatusEnum = "CANCELING" + IamWorkRequestStatusCanceled IamWorkRequestStatusEnum = "CANCELED" +) + +var mappingIamWorkRequestStatusEnum = map[string]IamWorkRequestStatusEnum{ + "ACCEPTED": IamWorkRequestStatusAccepted, + "IN_PROGRESS": IamWorkRequestStatusInProgress, + "FAILED": IamWorkRequestStatusFailed, + "SUCCEEDED": IamWorkRequestStatusSucceeded, + "CANCELING": IamWorkRequestStatusCanceling, + "CANCELED": IamWorkRequestStatusCanceled, +} + +var mappingIamWorkRequestStatusEnumLowerCase = map[string]IamWorkRequestStatusEnum{ + "accepted": IamWorkRequestStatusAccepted, + "in_progress": IamWorkRequestStatusInProgress, + "failed": IamWorkRequestStatusFailed, + "succeeded": IamWorkRequestStatusSucceeded, + "canceling": IamWorkRequestStatusCanceling, + "canceled": IamWorkRequestStatusCanceled, +} + +// GetIamWorkRequestStatusEnumValues Enumerates the set of values for IamWorkRequestStatusEnum +func GetIamWorkRequestStatusEnumValues() []IamWorkRequestStatusEnum { + values := make([]IamWorkRequestStatusEnum, 0) + for _, v := range mappingIamWorkRequestStatusEnum { + values = append(values, v) + } + return values +} + +// GetIamWorkRequestStatusEnumStringValues Enumerates the set of values in String for IamWorkRequestStatusEnum +func GetIamWorkRequestStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingIamWorkRequestStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIamWorkRequestStatusEnum(val string) (IamWorkRequestStatusEnum, bool) { + enum, ok := mappingIamWorkRequestStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go new file mode 100644 index 0000000000..a7a118e1c9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_error_summary.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IamWorkRequestErrorSummary (For tenancies that support identity domains) An error encountered while executing an operation that is tracked by a IAM work request. +type IamWorkRequestErrorSummary struct { + + // A machine-usable code for the error that occured. + Code *string `mandatory:"true" json:"code"` + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // The date and time the error occurred. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m IamWorkRequestErrorSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IamWorkRequestErrorSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go new file mode 100644 index 0000000000..56507739d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_log_summary.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IamWorkRequestLogSummary (For tenancies that support identity domains) The log entity for a IAM work request. +type IamWorkRequestLogSummary struct { + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // Date and time the log was written, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m IamWorkRequestLogSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IamWorkRequestLogSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go new file mode 100644 index 0000000000..6b959e53e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_resource.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IamWorkRequestResource (For tenancies that support identity domains) A IAM work request resource entry. +type IamWorkRequestResource struct { + + // The way in which this resource is affected by the work tracked in the work request. + // A resource being created, updated, or deleted will remain in the IN_PROGRESS state until + // work is complete for that resource at which point it will transition to CREATED, UPDATED, + // or DELETED, respectively. + ActionType IamWorkRequestResourceActionTypeEnum `mandatory:"true" json:"actionType"` + + // The resource type the work request is affects. + EntityType *string `mandatory:"true" json:"entityType"` + + // An OCID of the resource that the work request affects. + Identifier *string `mandatory:"true" json:"identifier"` + + // The URI path that the user can do a GET on to access the resource metadata. + EntityUri *string `mandatory:"false" json:"entityUri"` +} + +func (m IamWorkRequestResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IamWorkRequestResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIamWorkRequestResourceActionTypeEnum(string(m.ActionType)); !ok && m.ActionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ActionType: %s. Supported values are: %s.", m.ActionType, strings.Join(GetIamWorkRequestResourceActionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IamWorkRequestResourceActionTypeEnum Enum with underlying type: string +type IamWorkRequestResourceActionTypeEnum string + +// Set of constants representing the allowable values for IamWorkRequestResourceActionTypeEnum +const ( + IamWorkRequestResourceActionTypeCreated IamWorkRequestResourceActionTypeEnum = "CREATED" + IamWorkRequestResourceActionTypeUpdated IamWorkRequestResourceActionTypeEnum = "UPDATED" + IamWorkRequestResourceActionTypeDeleted IamWorkRequestResourceActionTypeEnum = "DELETED" + IamWorkRequestResourceActionTypeRelated IamWorkRequestResourceActionTypeEnum = "RELATED" + IamWorkRequestResourceActionTypeInProgress IamWorkRequestResourceActionTypeEnum = "IN_PROGRESS" +) + +var mappingIamWorkRequestResourceActionTypeEnum = map[string]IamWorkRequestResourceActionTypeEnum{ + "CREATED": IamWorkRequestResourceActionTypeCreated, + "UPDATED": IamWorkRequestResourceActionTypeUpdated, + "DELETED": IamWorkRequestResourceActionTypeDeleted, + "RELATED": IamWorkRequestResourceActionTypeRelated, + "IN_PROGRESS": IamWorkRequestResourceActionTypeInProgress, +} + +var mappingIamWorkRequestResourceActionTypeEnumLowerCase = map[string]IamWorkRequestResourceActionTypeEnum{ + "created": IamWorkRequestResourceActionTypeCreated, + "updated": IamWorkRequestResourceActionTypeUpdated, + "deleted": IamWorkRequestResourceActionTypeDeleted, + "related": IamWorkRequestResourceActionTypeRelated, + "in_progress": IamWorkRequestResourceActionTypeInProgress, +} + +// GetIamWorkRequestResourceActionTypeEnumValues Enumerates the set of values for IamWorkRequestResourceActionTypeEnum +func GetIamWorkRequestResourceActionTypeEnumValues() []IamWorkRequestResourceActionTypeEnum { + values := make([]IamWorkRequestResourceActionTypeEnum, 0) + for _, v := range mappingIamWorkRequestResourceActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetIamWorkRequestResourceActionTypeEnumStringValues Enumerates the set of values in String for IamWorkRequestResourceActionTypeEnum +func GetIamWorkRequestResourceActionTypeEnumStringValues() []string { + return []string{ + "CREATED", + "UPDATED", + "DELETED", + "RELATED", + "IN_PROGRESS", + } +} + +// GetMappingIamWorkRequestResourceActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIamWorkRequestResourceActionTypeEnum(val string) (IamWorkRequestResourceActionTypeEnum, bool) { + enum, ok := mappingIamWorkRequestResourceActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go new file mode 100644 index 0000000000..3688c53cb6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/iam_work_request_summary.go @@ -0,0 +1,196 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IamWorkRequestSummary (For tenancies that support identity domains) The IAM work request summary. Tracks the status of asynchronous operations. +type IamWorkRequestSummary struct { + + // The OCID of the work request. + Id *string `mandatory:"true" json:"id"` + + // The asynchronous operation tracked by this IAM work request. + OperationType IamWorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"` + + // The status of the work request. + Status IamWorkRequestSummaryStatusEnum `mandatory:"true" json:"status"` + + // The OCID of the compartment containing this IAM work request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []IamWorkRequestResource `mandatory:"false" json:"resources"` + + // How much progress the operation has made. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` + + // Date and time the work was accepted, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // Date and time the work started, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // Date and time the work completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m IamWorkRequestSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IamWorkRequestSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIamWorkRequestSummaryOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetIamWorkRequestSummaryOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingIamWorkRequestSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetIamWorkRequestSummaryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IamWorkRequestSummaryOperationTypeEnum Enum with underlying type: string +type IamWorkRequestSummaryOperationTypeEnum string + +// Set of constants representing the allowable values for IamWorkRequestSummaryOperationTypeEnum +const ( + IamWorkRequestSummaryOperationTypeCreateDomain IamWorkRequestSummaryOperationTypeEnum = "CREATE_DOMAIN" + IamWorkRequestSummaryOperationTypeReplicateDomainToRegion IamWorkRequestSummaryOperationTypeEnum = "REPLICATE_DOMAIN_TO_REGION" + IamWorkRequestSummaryOperationTypeUpdateDomain IamWorkRequestSummaryOperationTypeEnum = "UPDATE_DOMAIN" + IamWorkRequestSummaryOperationTypeActivateDomain IamWorkRequestSummaryOperationTypeEnum = "ACTIVATE_DOMAIN" + IamWorkRequestSummaryOperationTypeDeactivateDomain IamWorkRequestSummaryOperationTypeEnum = "DEACTIVATE_DOMAIN" + IamWorkRequestSummaryOperationTypeDeleteDomain IamWorkRequestSummaryOperationTypeEnum = "DELETE_DOMAIN" + IamWorkRequestSummaryOperationTypeChangeCompartmentForDomain IamWorkRequestSummaryOperationTypeEnum = "CHANGE_COMPARTMENT_FOR_DOMAIN" + IamWorkRequestSummaryOperationTypeChangeLicenseTypeForDomain IamWorkRequestSummaryOperationTypeEnum = "CHANGE_LICENSE_TYPE_FOR_DOMAIN" +) + +var mappingIamWorkRequestSummaryOperationTypeEnum = map[string]IamWorkRequestSummaryOperationTypeEnum{ + "CREATE_DOMAIN": IamWorkRequestSummaryOperationTypeCreateDomain, + "REPLICATE_DOMAIN_TO_REGION": IamWorkRequestSummaryOperationTypeReplicateDomainToRegion, + "UPDATE_DOMAIN": IamWorkRequestSummaryOperationTypeUpdateDomain, + "ACTIVATE_DOMAIN": IamWorkRequestSummaryOperationTypeActivateDomain, + "DEACTIVATE_DOMAIN": IamWorkRequestSummaryOperationTypeDeactivateDomain, + "DELETE_DOMAIN": IamWorkRequestSummaryOperationTypeDeleteDomain, + "CHANGE_COMPARTMENT_FOR_DOMAIN": IamWorkRequestSummaryOperationTypeChangeCompartmentForDomain, + "CHANGE_LICENSE_TYPE_FOR_DOMAIN": IamWorkRequestSummaryOperationTypeChangeLicenseTypeForDomain, +} + +var mappingIamWorkRequestSummaryOperationTypeEnumLowerCase = map[string]IamWorkRequestSummaryOperationTypeEnum{ + "create_domain": IamWorkRequestSummaryOperationTypeCreateDomain, + "replicate_domain_to_region": IamWorkRequestSummaryOperationTypeReplicateDomainToRegion, + "update_domain": IamWorkRequestSummaryOperationTypeUpdateDomain, + "activate_domain": IamWorkRequestSummaryOperationTypeActivateDomain, + "deactivate_domain": IamWorkRequestSummaryOperationTypeDeactivateDomain, + "delete_domain": IamWorkRequestSummaryOperationTypeDeleteDomain, + "change_compartment_for_domain": IamWorkRequestSummaryOperationTypeChangeCompartmentForDomain, + "change_license_type_for_domain": IamWorkRequestSummaryOperationTypeChangeLicenseTypeForDomain, +} + +// GetIamWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for IamWorkRequestSummaryOperationTypeEnum +func GetIamWorkRequestSummaryOperationTypeEnumValues() []IamWorkRequestSummaryOperationTypeEnum { + values := make([]IamWorkRequestSummaryOperationTypeEnum, 0) + for _, v := range mappingIamWorkRequestSummaryOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetIamWorkRequestSummaryOperationTypeEnumStringValues Enumerates the set of values in String for IamWorkRequestSummaryOperationTypeEnum +func GetIamWorkRequestSummaryOperationTypeEnumStringValues() []string { + return []string{ + "CREATE_DOMAIN", + "REPLICATE_DOMAIN_TO_REGION", + "UPDATE_DOMAIN", + "ACTIVATE_DOMAIN", + "DEACTIVATE_DOMAIN", + "DELETE_DOMAIN", + "CHANGE_COMPARTMENT_FOR_DOMAIN", + "CHANGE_LICENSE_TYPE_FOR_DOMAIN", + } +} + +// GetMappingIamWorkRequestSummaryOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIamWorkRequestSummaryOperationTypeEnum(val string) (IamWorkRequestSummaryOperationTypeEnum, bool) { + enum, ok := mappingIamWorkRequestSummaryOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// IamWorkRequestSummaryStatusEnum Enum with underlying type: string +type IamWorkRequestSummaryStatusEnum string + +// Set of constants representing the allowable values for IamWorkRequestSummaryStatusEnum +const ( + IamWorkRequestSummaryStatusAccepted IamWorkRequestSummaryStatusEnum = "ACCEPTED" + IamWorkRequestSummaryStatusInProgress IamWorkRequestSummaryStatusEnum = "IN_PROGRESS" + IamWorkRequestSummaryStatusFailed IamWorkRequestSummaryStatusEnum = "FAILED" + IamWorkRequestSummaryStatusSucceeded IamWorkRequestSummaryStatusEnum = "SUCCEEDED" + IamWorkRequestSummaryStatusCanceling IamWorkRequestSummaryStatusEnum = "CANCELING" + IamWorkRequestSummaryStatusCanceled IamWorkRequestSummaryStatusEnum = "CANCELED" +) + +var mappingIamWorkRequestSummaryStatusEnum = map[string]IamWorkRequestSummaryStatusEnum{ + "ACCEPTED": IamWorkRequestSummaryStatusAccepted, + "IN_PROGRESS": IamWorkRequestSummaryStatusInProgress, + "FAILED": IamWorkRequestSummaryStatusFailed, + "SUCCEEDED": IamWorkRequestSummaryStatusSucceeded, + "CANCELING": IamWorkRequestSummaryStatusCanceling, + "CANCELED": IamWorkRequestSummaryStatusCanceled, +} + +var mappingIamWorkRequestSummaryStatusEnumLowerCase = map[string]IamWorkRequestSummaryStatusEnum{ + "accepted": IamWorkRequestSummaryStatusAccepted, + "in_progress": IamWorkRequestSummaryStatusInProgress, + "failed": IamWorkRequestSummaryStatusFailed, + "succeeded": IamWorkRequestSummaryStatusSucceeded, + "canceling": IamWorkRequestSummaryStatusCanceling, + "canceled": IamWorkRequestSummaryStatusCanceled, +} + +// GetIamWorkRequestSummaryStatusEnumValues Enumerates the set of values for IamWorkRequestSummaryStatusEnum +func GetIamWorkRequestSummaryStatusEnumValues() []IamWorkRequestSummaryStatusEnum { + values := make([]IamWorkRequestSummaryStatusEnum, 0) + for _, v := range mappingIamWorkRequestSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetIamWorkRequestSummaryStatusEnumStringValues Enumerates the set of values in String for IamWorkRequestSummaryStatusEnum +func GetIamWorkRequestSummaryStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingIamWorkRequestSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIamWorkRequestSummaryStatusEnum(val string) (IamWorkRequestSummaryStatusEnum, bool) { + enum, ok := mappingIamWorkRequestSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go index 2f9b510adf..a1dcf2cfe4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_client.go @@ -1,10 +1,10 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity @@ -12,8 +12,8 @@ package identity import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" "time" ) @@ -51,6 +51,8 @@ func NewIdentityClientWithOboToken(configProvider common.ConfigurationProvider, } func newIdentityClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client IdentityClient, err error) { + // Identity service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Identity")) common.ConfigCircuitBreakerFromEnvVar(&baseClient) common.ConfigCircuitBreakerFromGlobalVar(&baseClient) @@ -62,7 +64,7 @@ func newIdentityClientFromBaseClient(baseClient common.BaseClient, configProvide // SetRegion overrides the region of this client. func (client *IdentityClient) SetRegion(region string) { - client.Host = common.StringToRegion(region).Endpoint("identity") + client.Host = common.StringToRegion(region).EndpointForTemplate("identity", "https://identity.{region}.oci.{secondLevelDomain}") } // SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid @@ -74,6 +76,9 @@ func (client *IdentityClient) setConfigurationProvider(configProvider common.Con // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -83,24 +88,15 @@ func (client *IdentityClient) ConfigurationProvider() *common.ConfigurationProvi return client.config } -// ActivateDomain If the domain's {@code lifecycleState} is INACTIVE, -// 1. Set the {@code lifecycleDetails} to ACTIVATING and asynchronously starts enabling -// the domain and return 202 ACCEPTED. -// 1.1 Sets the domain status to ENABLED and set specified domain's -// {@code lifecycleState} to ACTIVE and set the {@code lifecycleDetails} to null. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. Deactivate a domain can be done using HTTP POST -// /domains/{domainId}/actions/deactivate. -// - If the domain's {@code lifecycleState} is ACTIVE, returns 202 ACCEPTED with no action -// taken on service side. -// - If domain is of {@code type} DEFAULT or DEFAULT_LIGHTWEIGHT or domain's {@code lifecycleState} is not INACTIVE, -// returns 400 BAD REQUEST. -// - If the domain doesn't exists, returns 404 NOT FOUND. -// - If the authenticated user is part of the domain to be activated, returns 400 BAD REQUEST -// - If error occurs while activating domain, returns 500 INTERNAL SERVER ERROR. +// ActivateDomain (For tenancies that support identity domains) Activates a deactivated identity domain. You can only activate identity domains that your user account is not a part of. +// After you send the request, the `lifecycleDetails` of the identity domain is set to ACTIVATING. When the operation completes, the +// `lifecycleDetails` is set to null and the `lifecycleState` of the identity domain is set to ACTIVE. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation ActivateDomain() func (client IdentityClient) ActivateDomain(ctx context.Context, request ActivateDomainRequest) (response ActivateDomainResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -147,6 +143,8 @@ func (client IdentityClient) activateDomain(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/ActivateDomain" + err = common.PostProcessServiceError(err, "Identity", "ActivateDomain", apiReferenceLink) return response, err } @@ -155,9 +153,10 @@ func (client IdentityClient) activateDomain(ctx context.Context, request common. } // ActivateMfaTotpDevice Activates the specified MFA TOTP device for the user. Activation requires manual interaction with the Console. +// A default retry strategy applies to this operation ActivateMfaTotpDevice() func (client IdentityClient) ActivateMfaTotpDevice(ctx context.Context, request ActivateMfaTotpDeviceRequest) (response ActivateMfaTotpDeviceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -204,6 +203,128 @@ func (client IdentityClient) activateMfaTotpDevice(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDeviceSummary/ActivateMfaTotpDevice" + err = common.PostProcessServiceError(err, "Identity", "ActivateMfaTotpDevice", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// AddTagDefaultLock Add a resource lock to a tag default. +// A default retry strategy applies to this operation AddTagDefaultLock() +func (client IdentityClient) AddTagDefaultLock(ctx context.Context, request AddTagDefaultLockRequest) (response AddTagDefaultLockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.addTagDefaultLock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = AddTagDefaultLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = AddTagDefaultLockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(AddTagDefaultLockResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into AddTagDefaultLockResponse") + } + return +} + +// addTagDefaultLock implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) addTagDefaultLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tagDefaults/{tagDefaultId}/actions/addLock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response AddTagDefaultLockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/AddTagDefaultLock" + err = common.PostProcessServiceError(err, "Identity", "AddTagDefaultLock", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// AddTagNamespaceLock Add a resource lock to a tag namespace. +// A default retry strategy applies to this operation AddTagNamespaceLock() +func (client IdentityClient) AddTagNamespaceLock(ctx context.Context, request AddTagNamespaceLockRequest) (response AddTagNamespaceLockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.addTagNamespaceLock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = AddTagNamespaceLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = AddTagNamespaceLockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(AddTagNamespaceLockResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into AddTagNamespaceLockResponse") + } + return +} + +// addTagNamespaceLock implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) addTagNamespaceLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tagNamespaces/{tagNamespaceId}/actions/addLock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response AddTagNamespaceLockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/AddTagNamespaceLock" + err = common.PostProcessServiceError(err, "Identity", "AddTagNamespaceLock", apiReferenceLink) return response, err } @@ -214,9 +335,10 @@ func (client IdentityClient) activateMfaTotpDevice(ctx context.Context, request // AddUserToGroup Adds the specified user to the specified group and returns a `UserGroupMembership` object with its own OCID. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. +// A default retry strategy applies to this operation AddUserToGroup() func (client IdentityClient) AddUserToGroup(ctx context.Context, request AddUserToGroupRequest) (response AddUserToGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -263,6 +385,8 @@ func (client IdentityClient) addUserToGroup(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UserGroupMembership/AddUserToGroup" + err = common.PostProcessServiceError(err, "Identity", "AddUserToGroup", apiReferenceLink) return response, err } @@ -274,9 +398,10 @@ func (client IdentityClient) addUserToGroup(ctx context.Context, request common. // the tags to apply. Tag defaults from parent compartments do not override tag defaults // referencing the same tag in a compartment lower down the hierarchy. This set of tag defaults // includes all tag defaults from the current compartment back to the root compartment. +// A default retry strategy applies to this operation AssembleEffectiveTagSet() func (client IdentityClient) AssembleEffectiveTagSet(ctx context.Context, request AssembleEffectiveTagSetRequest) (response AssembleEffectiveTagSetResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -317,6 +442,8 @@ func (client IdentityClient) assembleEffectiveTagSet(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/AssembleEffectiveTagSet" + err = common.PostProcessServiceError(err, "Identity", "AssembleEffectiveTagSet", apiReferenceLink) return response, err } @@ -326,12 +453,13 @@ func (client IdentityClient) assembleEffectiveTagSet(ctx context.Context, reques // BulkDeleteResources Deletes multiple resources in the compartment. All resources must be in the same compartment. You must have the appropriate // permissions to delete the resources in the request. This API can only be invoked from the tenancy's -// home region (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingregions.htm#Home). This operation creates a +// home region (https://docs.cloud.oracle.com/Content/Identity/regions/managingregions.htm#Home). This operation creates a // WorkRequest. Use the GetWorkRequest // API to monitor the status of the bulk action. +// A default retry strategy applies to this operation BulkDeleteResources() func (client IdentityClient) BulkDeleteResources(ctx context.Context, request BulkDeleteResourcesRequest) (response BulkDeleteResourcesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -378,6 +506,8 @@ func (client IdentityClient) bulkDeleteResources(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/BulkDeleteResources" + err = common.PostProcessServiceError(err, "Identity", "BulkDeleteResources", apiReferenceLink) return response, err } @@ -401,9 +531,10 @@ func (client IdentityClient) bulkDeleteResources(ctx context.Context, request co // After you start this operation, you cannot start either the DeleteTag or the CascadeDeleteTagNamespace operation until this process completes. // In order to delete tags, you must first retire the tags. Use UpdateTag // to retire a tag. +// A default retry strategy applies to this operation BulkDeleteTags() func (client IdentityClient) BulkDeleteTags(ctx context.Context, request BulkDeleteTagsRequest) (response BulkDeleteTagsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -450,6 +581,8 @@ func (client IdentityClient) bulkDeleteTags(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/BulkDeleteTags" + err = common.PostProcessServiceError(err, "Identity", "BulkDeleteTags", apiReferenceLink) return response, err } @@ -468,9 +601,10 @@ func (client IdentityClient) bulkDeleteTags(ctx context.Context, request common. // However, multiple operations cannot apply to one key definition in the same request. // For example, if one request adds `tag set-1` to a resource and sets a tag value to `tag set-2`, // `tag set-1` and `tag set-2` cannot have any common tag definitions. +// A default retry strategy applies to this operation BulkEditTags() func (client IdentityClient) BulkEditTags(ctx context.Context, request BulkEditTagsRequest) (response BulkEditTagsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -517,64 +651,8 @@ func (client IdentityClient) bulkEditTags(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - return response, err - } - - err = common.UnmarshalResponse(httpResponse, &response) - return response, err -} - -// BulkImportStandardTags OCI will release Tag Namespaces that our customers can import. -// These Tag Namespaces will provide Tags for our customers and Partners to provide consistency and enable data reporting. -func (client IdentityClient) BulkImportStandardTags(ctx context.Context, request BulkImportStandardTagsRequest) (response BulkImportStandardTagsResponse, err error) { - var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() - if client.RetryPolicy() != nil { - policy = *client.RetryPolicy() - } - if request.RetryPolicy() != nil { - policy = *request.RetryPolicy() - } - - if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { - request.OpcRetryToken = common.String(common.RetryToken()) - } - - ociResponse, err = common.Retry(ctx, request, client.bulkImportStandardTags, policy) - if err != nil { - if ociResponse != nil { - if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { - opcRequestId := httpResponse.Header.Get("opc-request-id") - response = BulkImportStandardTagsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} - } else { - response = BulkImportStandardTagsResponse{} - } - } - return - } - if convertedResponse, ok := ociResponse.(BulkImportStandardTagsResponse); ok { - common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) - response = convertedResponse - } else { - err = fmt.Errorf("failed to convert OCIResponse into BulkImportStandardTagsResponse") - } - return -} - -// bulkImportStandardTags implements the OCIOperation interface (enables retrying operations) -func (client IdentityClient) bulkImportStandardTags(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { - - httpRequest, err := request.HTTPRequest(http.MethodPost, "/tags/actions/bulkImportStandardTags", binaryReqBody, extraHeaders) - if err != nil { - return nil, err - } - - var response BulkImportStandardTagsResponse - var httpResponse *http.Response - httpResponse, err = client.Call(ctx, &httpRequest) - defer common.CloseBodyIfValid(httpResponse) - response.RawResponse = httpResponse - if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/BulkEditTags" + err = common.PostProcessServiceError(err, "Identity", "BulkEditTags", apiReferenceLink) return response, err } @@ -583,13 +661,14 @@ func (client IdentityClient) bulkImportStandardTags(ctx context.Context, request } // BulkMoveResources Moves multiple resources from one compartment to another. All resources must be in the same compartment. -// This API can only be invoked from the tenancy's home region (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingregions.htm#Home). +// This API can only be invoked from the tenancy's home region (https://docs.cloud.oracle.com/Content/Identity/regions/managingregions.htm#Home). // To move resources, you must have the appropriate permissions to move the resource in both the source and target // compartments. This operation creates a WorkRequest. // Use the GetWorkRequest API to monitor the status of the bulk action. +// A default retry strategy applies to this operation BulkMoveResources() func (client IdentityClient) BulkMoveResources(ctx context.Context, request BulkMoveResourcesRequest) (response BulkMoveResourcesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -636,6 +715,8 @@ func (client IdentityClient) bulkMoveResources(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/BulkMoveResources" + err = common.PostProcessServiceError(err, "Identity", "BulkMoveResources", apiReferenceLink) return response, err } @@ -656,9 +737,10 @@ func (client IdentityClient) bulkMoveResources(ctx context.Context, request comm // After you start this operation, you cannot start either the DeleteTag or the BulkDeleteTags operation until this process completes. // To delete a tag namespace, you must first retire it. Use UpdateTagNamespace // to retire a tag namespace. +// A default retry strategy applies to this operation CascadeDeleteTagNamespace() func (client IdentityClient) CascadeDeleteTagNamespace(ctx context.Context, request CascadeDeleteTagNamespaceRequest) (response CascadeDeleteTagNamespaceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -705,6 +787,8 @@ func (client IdentityClient) cascadeDeleteTagNamespace(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/CascadeDeleteTagNamespace" + err = common.PostProcessServiceError(err, "Identity", "CascadeDeleteTagNamespace", apiReferenceLink) return response, err } @@ -712,19 +796,13 @@ func (client IdentityClient) cascadeDeleteTagNamespace(ctx context.Context, requ return response, err } -// ChangeDomainCompartment Change the containing compartment for a domain. -// This is an asynchronous call where the Domain's compartment is changed and is updated with the new compartment information. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. -// The compartment change is complete when accessed via domain URL and -// also returns new compartment OCID. -// - If the domain doesn't exists, returns 404 NOT FOUND. -// - If Domain {@code type} is DEFAULT or DEFAULT_LIGHTWEIGHT, return 400 BAD Request -// - If Domain is not active or being updated, returns 400 BAD REQUEST. -// - If error occurs while changing compartment for domain, return 500 INTERNAL SERVER ERROR. +// ChangeDomainCompartment (For tenancies that support identity domains) Moves the identity domain to a different compartment in the tenancy. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation ChangeDomainCompartment() func (client IdentityClient) ChangeDomainCompartment(ctx context.Context, request ChangeDomainCompartmentRequest) (response ChangeDomainCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -771,6 +849,8 @@ func (client IdentityClient) changeDomainCompartment(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/ChangeDomainCompartment" + err = common.PostProcessServiceError(err, "Identity", "ChangeDomainCompartment", apiReferenceLink) return response, err } @@ -778,23 +858,17 @@ func (client IdentityClient) changeDomainCompartment(ctx context.Context, reques return response, err } -// ChangeDomainLicenseType If the domain's {@code lifecycleState} is ACTIVE, validates the requested {@code licenseType} update -// is allowed and -// 1. Set the {@code lifecycleDetails} to UPDATING -// 2. Asynchronously starts updating the domain and return 202 ACCEPTED. -// 2.1 Successfully updates specified domain's {@code licenseType}. -// 3. On completion set the {@code lifecycleDetails} to null. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. -// - If license type update is successful, return 202 ACCEPTED -// - If requested {@code licenseType} validation fails, returns 400 Bad request. -// - If Domain is not active or being updated, returns 400 BAD REQUEST. -// - If Domain {@code type} is DEFAULT or DEFAULT_LIGHTWEIGHT, return 400 BAD Request -// - If the domain doesn't exists, returns 404 NOT FOUND -// - If any internal error occurs, returns 500 INTERNAL SERVER ERROR. +// ChangeDomainLicenseType (For tenancies that support identity domains) Changes the license type of the given identity domain. The identity domain's +// `lifecycleState` must be set to ACTIVE and the requested `licenseType` must be allowed. To retrieve the allowed `licenseType` for +// the identity domain, use ListAllowedDomainLicenseTypes. +// After you send your request, the `lifecycleDetails` of this identity domain is set to UPDATING. When the update of the identity +// domain completes, then the `lifecycleDetails` is set to null. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation ChangeDomainLicenseType() func (client IdentityClient) ChangeDomainLicenseType(ctx context.Context, request ChangeDomainLicenseTypeRequest) (response ChangeDomainLicenseTypeResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -841,6 +915,8 @@ func (client IdentityClient) changeDomainLicenseType(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/ChangeDomainLicenseType" + err = common.PostProcessServiceError(err, "Identity", "ChangeDomainLicenseType", apiReferenceLink) return response, err } @@ -850,11 +926,12 @@ func (client IdentityClient) changeDomainLicenseType(ctx context.Context, reques // ChangeTagNamespaceCompartment Moves the specified tag namespace to the specified compartment within the same tenancy. // To move the tag namespace, you must have the manage tag-namespaces permission on both compartments. -// For more information about IAM policies, see Details for IAM (https://docs.cloud.oracle.com/Content/Identity/Reference/iampolicyreference.htm). +// For more information about IAM policies, see Details for IAM (https://docs.cloud.oracle.com/Content/Identity/policyreference/iampolicyreference.htm). // Moving a tag namespace moves all the tag key definitions contained in the tag namespace. +// A default retry strategy applies to this operation ChangeTagNamespaceCompartment() func (client IdentityClient) ChangeTagNamespaceCompartment(ctx context.Context, request ChangeTagNamespaceCompartmentRequest) (response ChangeTagNamespaceCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -901,6 +978,8 @@ func (client IdentityClient) changeTagNamespaceCompartment(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/ChangeTagNamespaceCompartment" + err = common.PostProcessServiceError(err, "Identity", "ChangeTagNamespaceCompartment", apiReferenceLink) return response, err } @@ -909,16 +988,17 @@ func (client IdentityClient) changeTagNamespaceCompartment(ctx context.Context, } // CreateAuthToken Creates a new auth token for the specified user. For information about what auth tokens are for, see -// Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). +// Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm). // You must specify a *description* for the auth token (although it can be an empty string). It does not // have to be unique, and you can change it anytime with // UpdateAuthToken. // Every user has permission to create an auth token for *their own user ID*. An administrator in your organization // does not need to write a policy to give users this ability. To compare, administrators who have permission to the // tenancy can use this operation to create an auth token for any user, including themselves. +// A default retry strategy applies to this operation CreateAuthToken() func (client IdentityClient) CreateAuthToken(ctx context.Context, request CreateAuthTokenRequest) (response CreateAuthTokenResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -965,6 +1045,8 @@ func (client IdentityClient) createAuthToken(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthToken/CreateAuthToken" + err = common.PostProcessServiceError(err, "Identity", "CreateAuthToken", apiReferenceLink) return response, err } @@ -973,22 +1055,22 @@ func (client IdentityClient) createAuthToken(ctx context.Context, request common } // CreateCompartment Creates a new compartment in the specified compartment. -// **Important:** Compartments cannot be deleted. // Specify the parent compartment's OCID as the compartment ID in the request object. Remember that the tenancy // is simply the root compartment. For information about OCIDs, see // Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). // You must also specify a *name* for the compartment, which must be unique across all compartments in // your tenancy. You can use this name or the OCID when writing policies that apply // to the compartment. For more information about policies, see -// How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm). +// How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm). // You must also specify a *description* for the compartment (although it can be an empty string). It does // not have to be unique, and you can change it anytime with // UpdateCompartment. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. +// A default retry strategy applies to this operation CreateCompartment() func (client IdentityClient) CreateCompartment(ctx context.Context, request CreateCompartmentRequest) (response CreateCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1035,6 +1117,8 @@ func (client IdentityClient) createCompartment(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/CreateCompartment" + err = common.PostProcessServiceError(err, "Identity", "CreateCompartment", apiReferenceLink) return response, err } @@ -1044,16 +1128,17 @@ func (client IdentityClient) createCompartment(ctx context.Context, request comm // CreateCustomerSecretKey Creates a new secret key for the specified user. Secret keys are used for authentication with the Object Storage Service's Amazon S3 // compatible API. The secret key consists of an Access Key/Secret Key pair. For information, see -// Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). +// Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm). // You must specify a *description* for the secret key (although it can be an empty string). It does not // have to be unique, and you can change it anytime with // UpdateCustomerSecretKey. // Every user has permission to create a secret key for *their own user ID*. An administrator in your organization // does not need to write a policy to give users this ability. To compare, administrators who have permission to the // tenancy can use this operation to create a secret key for any user, including themselves. +// A default retry strategy applies to this operation CreateCustomerSecretKey() func (client IdentityClient) CreateCustomerSecretKey(ctx context.Context, request CreateCustomerSecretKeyRequest) (response CreateCustomerSecretKeyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1100,6 +1185,8 @@ func (client IdentityClient) createCustomerSecretKey(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/CustomerSecretKey/CreateCustomerSecretKey" + err = common.PostProcessServiceError(err, "Identity", "CreateCustomerSecretKey", apiReferenceLink) return response, err } @@ -1108,9 +1195,10 @@ func (client IdentityClient) createCustomerSecretKey(ctx context.Context, reques } // CreateDbCredential Creates a new DB credential for the specified user. +// A default retry strategy applies to this operation CreateDbCredential() func (client IdentityClient) CreateDbCredential(ctx context.Context, request CreateDbCredentialRequest) (response CreateDbCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1157,6 +1245,8 @@ func (client IdentityClient) createDbCredential(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/CreateDbCredential" + err = common.PostProcessServiceError(err, "Identity", "CreateDbCredential", apiReferenceLink) return response, err } @@ -1164,23 +1254,16 @@ func (client IdentityClient) createDbCredential(ctx context.Context, request com return response, err } -// CreateDomain Creates a new domain in the tenancy with domain home in {@code homeRegion}. This is an asynchronous call - where, at start, -// {@code lifecycleState} of this domain is set to CREATING and {@code lifecycleDetails} to UPDATING. On domain creation completion -// this Domain's {@code lifecycleState} will be set to ACTIVE and {@code lifecycleDetails} to null. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. -// After creating a `Domain`, make sure its `lifecycleState` changes from CREATING to ACTIVE -// before using it. -// If the domain's {@code displayName} already exists, returns 400 BAD REQUEST. -// If any one of admin related fields are provided and one of the following 3 fields -// - {@code adminEmail}, {@code adminLastName} and {@code adminUserName} - is not provided, -// returns 400 BAD REQUEST. -// - If {@code isNotificationBypassed} is NOT provided when admin information is provided, -// returns 400 BAD REQUEST. -// - If any internal error occurs, return 500 INTERNAL SERVER ERROR. +// CreateDomain (For tenancies that support identity domains) Creates a new identity domain in the tenancy with the identity domain home in `homeRegion`. +// After you send your request, the temporary `lifecycleState` of this identity domain is set to CREATING and `lifecycleDetails` to UPDATING. +// When creation of the identity domain completes, this identity domain's `lifecycleState` is set to ACTIVE and `lifecycleDetails` to null. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// After creating an `identity domain`, first make sure its `lifecycleState` changes from CREATING to ACTIVE before you use it. +// A default retry strategy applies to this operation CreateDomain() func (client IdentityClient) CreateDomain(ctx context.Context, request CreateDomainRequest) (response CreateDomainResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1227,6 +1310,8 @@ func (client IdentityClient) createDomain(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/CreateDomain" + err = common.PostProcessServiceError(err, "Identity", "CreateDomain", apiReferenceLink) return response, err } @@ -1243,14 +1328,15 @@ func (client IdentityClient) createDomain(ctx context.Context, request common.OC // You must also specify a *name* for the dynamic group, which must be unique across all dynamic groups in your // tenancy, and cannot be changed. Note that this name has to be also unique across all groups in your tenancy. // You can use this name or the OCID when writing policies that apply to the dynamic group. For more information -// about policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm). +// about policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm). // You must also specify a *description* for the dynamic group (although it can be an empty string). It does not // have to be unique, and you can change it anytime with UpdateDynamicGroup. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. +// A default retry strategy applies to this operation CreateDynamicGroup() func (client IdentityClient) CreateDynamicGroup(ctx context.Context, request CreateDynamicGroupRequest) (response CreateDynamicGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1297,6 +1383,8 @@ func (client IdentityClient) createDynamicGroup(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/CreateDynamicGroup" + err = common.PostProcessServiceError(err, "Identity", "CreateDynamicGroup", apiReferenceLink) return response, err } @@ -1312,7 +1400,7 @@ func (client IdentityClient) createDynamicGroup(ctx context.Context, request com // Resource Identifiers (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). // You must also specify a *name* for the group, which must be unique across all groups in your tenancy and // cannot be changed. You can use this name or the OCID when writing policies that apply to the group. For more -// information about policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm). +// information about policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm). // You must also specify a *description* for the group (although it can be an empty string). It does not // have to be unique, and you can change it anytime with UpdateGroup. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the @@ -1320,9 +1408,10 @@ func (client IdentityClient) createDynamicGroup(ctx context.Context, request com // After creating the group, you need to put users in it and write policies for it. // See AddUserToGroup and // CreatePolicy. +// A default retry strategy applies to this operation CreateGroup() func (client IdentityClient) CreateGroup(ctx context.Context, request CreateGroupRequest) (response CreateGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1369,6 +1458,8 @@ func (client IdentityClient) createGroup(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Group/CreateGroup" + err = common.PostProcessServiceError(err, "Identity", "CreateGroup", apiReferenceLink) return response, err } @@ -1391,9 +1482,10 @@ func (client IdentityClient) createGroup(ctx context.Context, request common.OCI // After you send your request, the new object's `lifecycleState` will temporarily // be CREATING. Before using the object, first make sure its `lifecycleState` has // changed to ACTIVE. +// A default retry strategy applies to this operation CreateIdentityProvider() func (client IdentityClient) CreateIdentityProvider(ctx context.Context, request CreateIdentityProviderRequest) (response CreateIdentityProviderResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1440,6 +1532,8 @@ func (client IdentityClient) createIdentityProvider(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdentityProvider/CreateIdentityProvider" + err = common.PostProcessServiceError(err, "Identity", "CreateIdentityProvider", apiReferenceLink) return response, err } @@ -1450,9 +1544,10 @@ func (client IdentityClient) createIdentityProvider(ctx context.Context, request // CreateIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Creates a single mapping between an IdP group and an IAM Service // Group. +// A default retry strategy applies to this operation CreateIdpGroupMapping() func (client IdentityClient) CreateIdpGroupMapping(ctx context.Context, request CreateIdpGroupMappingRequest) (response CreateIdpGroupMappingResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1499,6 +1594,8 @@ func (client IdentityClient) createIdpGroupMapping(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdpGroupMapping/CreateIdpGroupMapping" + err = common.PostProcessServiceError(err, "Identity", "CreateIdpGroupMapping", apiReferenceLink) return response, err } @@ -1512,9 +1609,10 @@ func (client IdentityClient) createIdpGroupMapping(ctx context.Context, request // You also must specify compartment name, description, service name and service entitlement id in the request object. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. +// A default retry strategy applies to this operation CreateManagedCompartment() func (client IdentityClient) CreateManagedCompartment(ctx context.Context, request CreateManagedCompartmentRequest) (response CreateManagedCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1561,6 +1659,8 @@ func (client IdentityClient) createManagedCompartment(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/CreateManagedCompartment" + err = common.PostProcessServiceError(err, "Identity", "CreateManagedCompartment", apiReferenceLink) return response, err } @@ -1569,9 +1669,10 @@ func (client IdentityClient) createManagedCompartment(ctx context.Context, reque } // CreateMfaTotpDevice Creates a new MFA TOTP device for the user. A user can have one MFA TOTP device. +// A default retry strategy applies to this operation CreateMfaTotpDevice() func (client IdentityClient) CreateMfaTotpDevice(ctx context.Context, request CreateMfaTotpDeviceRequest) (response CreateMfaTotpDeviceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1618,6 +1719,8 @@ func (client IdentityClient) createMfaTotpDevice(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDevice/CreateMfaTotpDevice" + err = common.PostProcessServiceError(err, "Identity", "CreateMfaTotpDevice", apiReferenceLink) return response, err } @@ -1634,16 +1737,17 @@ func (client IdentityClient) createMfaTotpDevice(ctx context.Context, request co // You must also specify a *name* for the network source, which must be unique across all network sources in your // tenancy, and cannot be changed. // You can use this name or the OCID when writing policies that apply to the network source. For more information -// about policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm). +// about policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm). // You must also specify a *description* for the network source (although it can be an empty string). It does not // have to be unique, and you can change it anytime with UpdateNetworkSource. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. // After your network resource is created, you can use it in policy to restrict access to only requests made from an allowed // IP address specified in your network source. For more information, see Managing Network Sources (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingnetworksources.htm). +// A default retry strategy applies to this operation CreateNetworkSource() func (client IdentityClient) CreateNetworkSource(ctx context.Context, request CreateNetworkSourceRequest) (response CreateNetworkSourceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1690,6 +1794,8 @@ func (client IdentityClient) createNetworkSource(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/NetworkSources/CreateNetworkSource" + err = common.PostProcessServiceError(err, "Identity", "CreateNetworkSource", apiReferenceLink) return response, err } @@ -1698,9 +1804,10 @@ func (client IdentityClient) createNetworkSource(ctx context.Context, request co } // CreateOAuthClientCredential Creates Oauth token for the user +// A default retry strategy applies to this operation CreateOAuthClientCredential() func (client IdentityClient) CreateOAuthClientCredential(ctx context.Context, request CreateOAuthClientCredentialRequest) (response CreateOAuthClientCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1747,6 +1854,8 @@ func (client IdentityClient) createOAuthClientCredential(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/CreateOAuthClientCredential" + err = common.PostProcessServiceError(err, "Identity", "CreateOAuthClientCredential", apiReferenceLink) return response, err } @@ -1755,17 +1864,21 @@ func (client IdentityClient) createOAuthClientCredential(ctx context.Context, re } // CreateOrResetUIPassword Creates a new Console one-time password for the specified user. For more information about user -// credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm). +// credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/usercred/usercredentials.htm). // Use this operation after creating a new user, or if a user forgets their password. The new one-time // password is returned to you in the response, and you must securely deliver it to the user. They'll // be prompted to change this password the next time they sign in to the Console. If they don't change // it within 7 days, the password will expire and you'll need to create a new one-time password for the // user. +// (For tenancies that support identity domains) Resetting a user's password generates a reset password email +// with a link that the user must follow to reset their password. If the user does not reset their password before the +// link expires, you'll need to reset the user's password again. // **Note:** The user's Console login is the unique name you specified when you created the user // (see CreateUser). +// A default retry strategy applies to this operation CreateOrResetUIPassword() func (client IdentityClient) CreateOrResetUIPassword(ctx context.Context, request CreateOrResetUIPasswordRequest) (response CreateOrResetUIPasswordResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1812,6 +1925,8 @@ func (client IdentityClient) createOrResetUIPassword(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UIPassword/CreateOrResetUIPassword" + err = common.PostProcessServiceError(err, "Identity", "CreateOrResetUIPassword", apiReferenceLink) return response, err } @@ -1820,20 +1935,21 @@ func (client IdentityClient) createOrResetUIPassword(ctx context.Context, reques } // CreatePolicy Creates a new policy in the specified compartment (either the tenancy or another of your compartments). -// If you're new to policies, see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// If you're new to policies, see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). // You must specify a *name* for the policy, which must be unique across all policies in your tenancy // and cannot be changed. // You must also specify a *description* for the policy (although it can be an empty string). It does not // have to be unique, and you can change it anytime with UpdatePolicy. // You must specify one or more policy statements in the statements array. For information about writing -// policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/Concepts/policies.htm) and -// Common Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/commonpolicies.htm). +// policies, see How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm) and +// Common Policies (https://docs.cloud.oracle.com/Content/Identity/policiescommon/commonpolicies.htm). // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. // New policies take effect typically within 10 seconds. +// A default retry strategy applies to this operation CreatePolicy() func (client IdentityClient) CreatePolicy(ctx context.Context, request CreatePolicyRequest) (response CreatePolicyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1880,6 +1996,8 @@ func (client IdentityClient) createPolicy(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Policy/CreatePolicy" + err = common.PostProcessServiceError(err, "Identity", "CreatePolicy", apiReferenceLink) return response, err } @@ -1888,9 +2006,10 @@ func (client IdentityClient) createPolicy(ctx context.Context, request common.OC } // CreateRegionSubscription Creates a subscription to a region for a tenancy. +// A default retry strategy applies to this operation CreateRegionSubscription() func (client IdentityClient) CreateRegionSubscription(ctx context.Context, request CreateRegionSubscriptionRequest) (response CreateRegionSubscriptionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1937,6 +2056,8 @@ func (client IdentityClient) createRegionSubscription(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/RegionSubscription/CreateRegionSubscription" + err = common.PostProcessServiceError(err, "Identity", "CreateRegionSubscription", apiReferenceLink) return response, err } @@ -1948,9 +2069,10 @@ func (client IdentityClient) createRegionSubscription(ctx context.Context, reque // You must specify a *description* for the SMTP credential (although it can be an empty string). It does not // have to be unique, and you can change it anytime with // UpdateSmtpCredential. +// A default retry strategy applies to this operation CreateSmtpCredential() func (client IdentityClient) CreateSmtpCredential(ctx context.Context, request CreateSmtpCredentialRequest) (response CreateSmtpCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -1997,6 +2119,8 @@ func (client IdentityClient) createSmtpCredential(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SmtpCredential/CreateSmtpCredential" + err = common.PostProcessServiceError(err, "Identity", "CreateSmtpCredential", apiReferenceLink) return response, err } @@ -2013,9 +2137,10 @@ func (client IdentityClient) createSmtpCredential(ctx context.Context, request c // Every user has permission to create a Swift password for *their own user ID*. An administrator in your organization // does not need to write a policy to give users this ability. To compare, administrators who have permission to the // tenancy can use this operation to create a Swift password for any user, including themselves. +// A default retry strategy applies to this operation CreateSwiftPassword() func (client IdentityClient) CreateSwiftPassword(ctx context.Context, request CreateSwiftPasswordRequest) (response CreateSwiftPasswordResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2062,6 +2187,8 @@ func (client IdentityClient) createSwiftPassword(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SwiftPassword/CreateSwiftPassword" + err = common.PostProcessServiceError(err, "Identity", "CreateSwiftPassword", apiReferenceLink) return response, err } @@ -2086,9 +2213,10 @@ func (client IdentityClient) createSwiftPassword(ctx context.Context, request co // value or leave the tag value empty. // * If a `validator` is set, the user applying the tag to a resource must select from a list // of values that you supply with EnumTagDefinitionValidator. +// A default retry strategy applies to this operation CreateTag() func (client IdentityClient) CreateTag(ctx context.Context, request CreateTagRequest) (response CreateTagResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2135,6 +2263,8 @@ func (client IdentityClient) createTag(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/CreateTag" + err = common.PostProcessServiceError(err, "Identity", "CreateTag", apiReferenceLink) return response, err } @@ -2148,9 +2278,10 @@ func (client IdentityClient) createTag(ctx context.Context, request common.OCIRe // is blocked. // * If the `isRequired` flag is set to "true", the value is set during resource creation. // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. +// A default retry strategy applies to this operation CreateTagDefault() func (client IdentityClient) CreateTagDefault(ctx context.Context, request CreateTagDefaultRequest) (response CreateTagDefaultResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2197,6 +2328,8 @@ func (client IdentityClient) createTagDefault(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/CreateTagDefault" + err = common.PostProcessServiceError(err, "Identity", "CreateTagDefault", apiReferenceLink) return response, err } @@ -2215,9 +2348,10 @@ func (client IdentityClient) createTagDefault(ctx context.Context, request commo // You must also specify a *description* for the namespace. // It does not have to be unique, and you can change it with // UpdateTagNamespace. +// A default retry strategy applies to this operation CreateTagNamespace() func (client IdentityClient) CreateTagNamespace(ctx context.Context, request CreateTagNamespaceRequest) (response CreateTagNamespaceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2264,6 +2398,8 @@ func (client IdentityClient) createTagNamespace(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/CreateTagNamespace" + err = common.PostProcessServiceError(err, "Identity", "CreateTagNamespace", apiReferenceLink) return response, err } @@ -2280,9 +2416,10 @@ func (client IdentityClient) createTagNamespace(ctx context.Context, request com // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using the // object, first make sure its `lifecycleState` has changed to ACTIVE. // New tag rules take effect typically within 10 seconds. +// A default retry strategy applies to this operation CreateTagRule() func (client IdentityClient) CreateTagRule(ctx context.Context, request CreateTagRuleRequest) (response CreateTagRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2329,6 +2466,8 @@ func (client IdentityClient) createTagRule(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagRule/CreateTagRule" + err = common.PostProcessServiceError(err, "Identity", "CreateTagRule", apiReferenceLink) return response, err } @@ -2337,7 +2476,7 @@ func (client IdentityClient) createTagRule(ctx context.Context, request common.O } // CreateUser Creates a new user in your tenancy. For conceptual information about users, your tenancy, and other -// IAM Service components, see Overview of the IAM Service (https://docs.cloud.oracle.com/Content/Identity/Concepts/overview.htm). +// IAM Service components, see Overview of IAM (https://docs.cloud.oracle.com/Content/Identity/getstarted/identity-domains.htm). // You must specify your tenancy's OCID as the compartment ID in the request object (remember that the // tenancy is simply the root compartment). Notice that IAM resources (users, groups, compartments, and // some policies) reside within the tenancy itself, unlike cloud resources such as compute instances, @@ -2365,9 +2504,10 @@ func (client IdentityClient) createTagRule(ctx context.Context, request common.O // Required Keys and OCIDs (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm) and also // UploadApiKey). // **Important:** Make sure to inform the new user which compartment(s) they have access to. +// A default retry strategy applies to this operation CreateUser() func (client IdentityClient) CreateUser(ctx context.Context, request CreateUserRequest) (response CreateUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2414,6 +2554,8 @@ func (client IdentityClient) createUser(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/CreateUser" + err = common.PostProcessServiceError(err, "Identity", "CreateUser", apiReferenceLink) return response, err } @@ -2421,25 +2563,17 @@ func (client IdentityClient) createUser(ctx context.Context, request common.OCIR return response, err } -// DeactivateDomain If the domain's {@code lifecycleState} is ACTIVE and no active Apps are present in domain, -// 1. Set the {@code lifecycleDetails} to DEACTIVATING and asynchronously starts disabling -// the domain and return 202 ACCEPTED. -// 1.1 Sets the domain status to DISABLED and set specified domain's -// {@code lifecycleState} to INACTIVE and set the {@code lifecycleDetails} to null. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. Activate a domain can be done using HTTP POST -// /domains/{domainId}/actions/activate. -// - If the domain's {@code lifecycleState} is INACTIVE, returns 202 ACCEPTED with no action -// taken on service side. -// - If domain is of {@code type} DEFAULT or DEFAULT_LIGHTWEIGHT or domain's {@code lifecycleState} -// is not ACTIVE, returns 400 BAD REQUEST. -// - If the domain doesn't exists, returns 404 NOT FOUND. -// - If any active Apps in domain, returns 400 BAD REQUEST. -// - If the authenticated user is part of the domain to be activated, returns 400 BAD REQUEST -// - If error occurs while deactivating domain, returns 500 INTERNAL SERVER ERROR. +// DeactivateDomain (For tenancies that support identity domains) Deactivates the specified identity domain. Identity domains must be in an ACTIVE +// `lifecycleState` and have no active apps present in the domain or underlying Identity Cloud Service stripe. You cannot deactivate +// the default identity domain. +// After you send your request, the `lifecycleDetails` of this identity domain is set to DEACTIVATING. When the operation completes, +// then the `lifecycleDetails` is set to null and the `lifecycleState` is set to INACTIVE. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation DeactivateDomain() func (client IdentityClient) DeactivateDomain(ctx context.Context, request DeactivateDomainRequest) (response DeactivateDomainResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2486,6 +2620,8 @@ func (client IdentityClient) deactivateDomain(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/DeactivateDomain" + err = common.PostProcessServiceError(err, "Identity", "DeactivateDomain", apiReferenceLink) return response, err } @@ -2498,9 +2634,10 @@ func (client IdentityClient) deactivateDomain(ctx context.Context, request commo // administrator in your organization does not need to write a policy to give users this ability. // To compare, administrators who have permission to the tenancy can use this operation to delete // a key for any user, including themselves. +// A default retry strategy applies to this operation DeleteApiKey() func (client IdentityClient) DeleteApiKey(ctx context.Context, request DeleteApiKeyRequest) (response DeleteApiKeyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2541,6 +2678,8 @@ func (client IdentityClient) deleteApiKey(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteApiKey", apiReferenceLink) return response, err } @@ -2549,9 +2688,10 @@ func (client IdentityClient) deleteApiKey(ctx context.Context, request common.OC } // DeleteAuthToken Deletes the specified auth token for the specified user. +// A default retry strategy applies to this operation DeleteAuthToken() func (client IdentityClient) DeleteAuthToken(ctx context.Context, request DeleteAuthTokenRequest) (response DeleteAuthTokenResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2592,6 +2732,8 @@ func (client IdentityClient) deleteAuthToken(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteAuthToken", apiReferenceLink) return response, err } @@ -2600,9 +2742,10 @@ func (client IdentityClient) deleteAuthToken(ctx context.Context, request common } // DeleteCompartment Deletes the specified compartment. The compartment must be empty. +// A default retry strategy applies to this operation DeleteCompartment() func (client IdentityClient) DeleteCompartment(ctx context.Context, request DeleteCompartmentRequest) (response DeleteCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2643,6 +2786,8 @@ func (client IdentityClient) deleteCompartment(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/DeleteCompartment" + err = common.PostProcessServiceError(err, "Identity", "DeleteCompartment", apiReferenceLink) return response, err } @@ -2651,9 +2796,10 @@ func (client IdentityClient) deleteCompartment(ctx context.Context, request comm } // DeleteCustomerSecretKey Deletes the specified secret key for the specified user. +// A default retry strategy applies to this operation DeleteCustomerSecretKey() func (client IdentityClient) DeleteCustomerSecretKey(ctx context.Context, request DeleteCustomerSecretKeyRequest) (response DeleteCustomerSecretKeyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2694,6 +2840,8 @@ func (client IdentityClient) deleteCustomerSecretKey(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteCustomerSecretKey", apiReferenceLink) return response, err } @@ -2702,9 +2850,10 @@ func (client IdentityClient) deleteCustomerSecretKey(ctx context.Context, reques } // DeleteDbCredential Deletes the specified DB credential for the specified user. +// A default retry strategy applies to this operation DeleteDbCredential() func (client IdentityClient) DeleteDbCredential(ctx context.Context, request DeleteDbCredentialRequest) (response DeleteDbCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2745,6 +2894,8 @@ func (client IdentityClient) deleteDbCredential(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/DeleteDbCredential" + err = common.PostProcessServiceError(err, "Identity", "DeleteDbCredential", apiReferenceLink) return response, err } @@ -2752,24 +2903,17 @@ func (client IdentityClient) deleteDbCredential(ctx context.Context, request com return response, err } -// DeleteDomain Soft Deletes a domain. -// This is an asynchronous API, where, if the domain's {@code lifecycleState} is INACTIVE and -// no active Apps are present in underlying stripe, -// 1. Sets the specified domain's {@code lifecycleState} to DELETING. -// 2. Domains marked as DELETING will be cleaned up by a periodic task unless customer request it to be undo via ticket. -// 3. Work request is created and returned as opc-work-request-id along with 202 ACCEPTED. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. -// - If the domain's {@code lifecycleState} is DELETING, returns 202 Accepted as a deletion -// is already in progress for this domain. -// - If the domain doesn't exists, returns 404 NOT FOUND. -// - If domain is of {@code type} DEFAULT or DEFAULT_LIGHTWEIGHT, returns 400 BAD REQUEST. -// - If any active Apps in domain, returns 400 BAD REQUEST. -// - If the authenticated user is part of the domain to be deleted, returns 400 BAD REQUEST. -// - If any internal error occurs, return 500 INTERNAL SERVER ERROR. +// DeleteDomain (For tenancies that support identity domains) Deletes an identity domain. The identity domain must have no active apps present in +// the underlying IDCS stripe. You must also deactivate the identity domain, rendering the `lifecycleState` of the identity domain INACTIVE. +// Furthermore, as the authenticated user performing the operation, you cannot be a member of the identity domain you are deleting. +// Lastly, you cannot delete the default identity domain. A tenancy must always have at least the default identity domain. +// +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation DeleteDomain() func (client IdentityClient) DeleteDomain(ctx context.Context, request DeleteDomainRequest) (response DeleteDomainResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2810,6 +2954,8 @@ func (client IdentityClient) deleteDomain(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/DeleteDomain" + err = common.PostProcessServiceError(err, "Identity", "DeleteDomain", apiReferenceLink) return response, err } @@ -2818,9 +2964,10 @@ func (client IdentityClient) deleteDomain(ctx context.Context, request common.OC } // DeleteDynamicGroup Deletes the specified dynamic group. +// A default retry strategy applies to this operation DeleteDynamicGroup() func (client IdentityClient) DeleteDynamicGroup(ctx context.Context, request DeleteDynamicGroupRequest) (response DeleteDynamicGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2861,6 +3008,8 @@ func (client IdentityClient) deleteDynamicGroup(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteDynamicGroup", apiReferenceLink) return response, err } @@ -2869,9 +3018,10 @@ func (client IdentityClient) deleteDynamicGroup(ctx context.Context, request com } // DeleteGroup Deletes the specified group. The group must be empty. +// A default retry strategy applies to this operation DeleteGroup() func (client IdentityClient) DeleteGroup(ctx context.Context, request DeleteGroupRequest) (response DeleteGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2912,6 +3062,8 @@ func (client IdentityClient) deleteGroup(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteGroup", apiReferenceLink) return response, err } @@ -2922,9 +3074,10 @@ func (client IdentityClient) deleteGroup(ctx context.Context, request common.OCI // DeleteIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Deletes the specified identity provider. The identity provider must not have // any group mappings (see IdpGroupMapping). +// A default retry strategy applies to this operation DeleteIdentityProvider() func (client IdentityClient) DeleteIdentityProvider(ctx context.Context, request DeleteIdentityProviderRequest) (response DeleteIdentityProviderResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -2965,6 +3118,8 @@ func (client IdentityClient) deleteIdentityProvider(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteIdentityProvider", apiReferenceLink) return response, err } @@ -2974,9 +3129,10 @@ func (client IdentityClient) deleteIdentityProvider(ctx context.Context, request // DeleteIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Deletes the specified group mapping. +// A default retry strategy applies to this operation DeleteIdpGroupMapping() func (client IdentityClient) DeleteIdpGroupMapping(ctx context.Context, request DeleteIdpGroupMappingRequest) (response DeleteIdpGroupMappingResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3017,6 +3173,8 @@ func (client IdentityClient) deleteIdpGroupMapping(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteIdpGroupMapping", apiReferenceLink) return response, err } @@ -3025,9 +3183,10 @@ func (client IdentityClient) deleteIdpGroupMapping(ctx context.Context, request } // DeleteMfaTotpDevice Deletes the specified MFA TOTP device for the specified user. +// A default retry strategy applies to this operation DeleteMfaTotpDevice() func (client IdentityClient) DeleteMfaTotpDevice(ctx context.Context, request DeleteMfaTotpDeviceRequest) (response DeleteMfaTotpDeviceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3068,6 +3227,8 @@ func (client IdentityClient) deleteMfaTotpDevice(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDevice/DeleteMfaTotpDevice" + err = common.PostProcessServiceError(err, "Identity", "DeleteMfaTotpDevice", apiReferenceLink) return response, err } @@ -3075,10 +3236,11 @@ func (client IdentityClient) deleteMfaTotpDevice(ctx context.Context, request co return response, err } -// DeleteNetworkSource Deletes the specified network source +// DeleteNetworkSource Deletes the specified network source. +// A default retry strategy applies to this operation DeleteNetworkSource() func (client IdentityClient) DeleteNetworkSource(ctx context.Context, request DeleteNetworkSourceRequest) (response DeleteNetworkSourceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3119,6 +3281,8 @@ func (client IdentityClient) deleteNetworkSource(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/NetworkSources/DeleteNetworkSource" + err = common.PostProcessServiceError(err, "Identity", "DeleteNetworkSource", apiReferenceLink) return response, err } @@ -3127,9 +3291,10 @@ func (client IdentityClient) deleteNetworkSource(ctx context.Context, request co } // DeleteOAuthClientCredential Delete Oauth token for the user +// A default retry strategy applies to this operation DeleteOAuthClientCredential() func (client IdentityClient) DeleteOAuthClientCredential(ctx context.Context, request DeleteOAuthClientCredentialRequest) (response DeleteOAuthClientCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3170,6 +3335,8 @@ func (client IdentityClient) deleteOAuthClientCredential(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/DeleteOAuthClientCredential" + err = common.PostProcessServiceError(err, "Identity", "DeleteOAuthClientCredential", apiReferenceLink) return response, err } @@ -3178,9 +3345,10 @@ func (client IdentityClient) deleteOAuthClientCredential(ctx context.Context, re } // DeletePolicy Deletes the specified policy. The deletion takes effect typically within 10 seconds. +// A default retry strategy applies to this operation DeletePolicy() func (client IdentityClient) DeletePolicy(ctx context.Context, request DeletePolicyRequest) (response DeletePolicyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3221,6 +3389,8 @@ func (client IdentityClient) deletePolicy(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeletePolicy", apiReferenceLink) return response, err } @@ -3229,9 +3399,10 @@ func (client IdentityClient) deletePolicy(ctx context.Context, request common.OC } // DeleteSmtpCredential Deletes the specified SMTP credential for the specified user. +// A default retry strategy applies to this operation DeleteSmtpCredential() func (client IdentityClient) DeleteSmtpCredential(ctx context.Context, request DeleteSmtpCredentialRequest) (response DeleteSmtpCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3272,6 +3443,8 @@ func (client IdentityClient) deleteSmtpCredential(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteSmtpCredential", apiReferenceLink) return response, err } @@ -3281,9 +3454,10 @@ func (client IdentityClient) deleteSmtpCredential(ctx context.Context, request c // DeleteSwiftPassword **Deprecated. Use DeleteAuthToken instead.** // Deletes the specified Swift password for the specified user. +// A default retry strategy applies to this operation DeleteSwiftPassword() func (client IdentityClient) DeleteSwiftPassword(ctx context.Context, request DeleteSwiftPasswordRequest) (response DeleteSwiftPasswordResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3324,6 +3498,8 @@ func (client IdentityClient) deleteSwiftPassword(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteSwiftPassword", apiReferenceLink) return response, err } @@ -3334,7 +3510,6 @@ func (client IdentityClient) deleteSwiftPassword(ctx context.Context, request co // DeleteTag Deletes the specified tag definition. This operation triggers a process that removes the // tag from all resources in your tenancy. // These things happen immediately: -// // * If the tag was a cost-tracking tag, it no longer counts against your 10 cost-tracking // tags limit, whether you first disabled it or not. // * If the tag was used with dynamic groups, none of the rules that contain the tag will @@ -3347,9 +3522,10 @@ func (client IdentityClient) deleteSwiftPassword(ctx context.Context, request co // After you start this operation, you cannot start either the BulkDeleteTags or the CascadeDeleteTagNamespace operation until this process completes. // To delete a tag, you must first retire it. Use UpdateTag // to retire a tag. +// A default retry strategy applies to this operation DeleteTag() func (client IdentityClient) DeleteTag(ctx context.Context, request DeleteTagRequest) (response DeleteTagResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3390,6 +3566,8 @@ func (client IdentityClient) deleteTag(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/DeleteTag" + err = common.PostProcessServiceError(err, "Identity", "DeleteTag", apiReferenceLink) return response, err } @@ -3398,9 +3576,10 @@ func (client IdentityClient) deleteTag(ctx context.Context, request common.OCIRe } // DeleteTagDefault Deletes the the specified tag default. +// A default retry strategy applies to this operation DeleteTagDefault() func (client IdentityClient) DeleteTagDefault(ctx context.Context, request DeleteTagDefaultRequest) (response DeleteTagDefaultResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3441,6 +3620,8 @@ func (client IdentityClient) deleteTagDefault(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/DeleteTagDefault" + err = common.PostProcessServiceError(err, "Identity", "DeleteTagDefault", apiReferenceLink) return response, err } @@ -3453,9 +3634,10 @@ func (client IdentityClient) deleteTagDefault(ctx context.Context, request commo // Use CascadeDeleteTagNamespace to delete a tag namespace along with all of // the tag definitions contained within that namespace. // Use DeleteTag to delete a tag definition. +// A default retry strategy applies to this operation DeleteTagNamespace() func (client IdentityClient) DeleteTagNamespace(ctx context.Context, request DeleteTagNamespaceRequest) (response DeleteTagNamespaceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3496,6 +3678,8 @@ func (client IdentityClient) deleteTagNamespace(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/DeleteTagNamespace" + err = common.PostProcessServiceError(err, "Identity", "DeleteTagNamespace", apiReferenceLink) return response, err } @@ -3504,9 +3688,10 @@ func (client IdentityClient) deleteTagNamespace(ctx context.Context, request com } // DeleteTagRule Deletes the specified tag rule. +// A default retry strategy applies to this operation DeleteTagRule() func (client IdentityClient) DeleteTagRule(ctx context.Context, request DeleteTagRuleRequest) (response DeleteTagRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3547,6 +3732,8 @@ func (client IdentityClient) deleteTagRule(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteTagRule", apiReferenceLink) return response, err } @@ -3555,9 +3742,10 @@ func (client IdentityClient) deleteTagRule(ctx context.Context, request common.O } // DeleteUser Deletes the specified user. The user must not be in any groups. +// A default retry strategy applies to this operation DeleteUser() func (client IdentityClient) DeleteUser(ctx context.Context, request DeleteUserRequest) (response DeleteUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3598,6 +3786,8 @@ func (client IdentityClient) deleteUser(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "Identity", "DeleteUser", apiReferenceLink) return response, err } @@ -3605,20 +3795,18 @@ func (client IdentityClient) deleteUser(ctx context.Context, request common.OCIR return response, err } -// EnableReplicationToRegion Replicate domain to a new region. This is an asynchronous call - where, at start, -// {@code state} of this domain in replica region is set to ENABLING_REPLICATION. -// On domain replication completion the {@code state} will be set to REPLICATION_ENABLED. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. -// If the replica region's {@code state} is already ENABLING_REPLICATION or REPLICATION_ENABLED, -// returns 409 CONFLICT. -// - If the domain doesn't exists, returns 404 NOT FOUND. -// - If home region is same as replication region, return 400 BAD REQUEST. -// - If Domain is not active or being updated, returns 400 BAD REQUEST. -// - If any internal error occurs, return 500 INTERNAL SERVER ERROR. +// EnableReplicationToRegion (For tenancies that support identity domains) Replicates the identity domain to a new region (provided that the region is the +// tenancy home region or other region that the tenancy subscribes to). You can only replicate identity domains that are in an ACTIVE +// `lifecycleState` and not currently updating or already replicating. You also can only trigger the replication of secondary identity domains. +// The default identity domain is automatically replicated to all regions that the tenancy subscribes to. +// After you send the request, the `state` of the identity domain in the replica region is set to ENABLING_REPLICATION. When the operation +// completes, the `state` is set to REPLICATION_ENABLED. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation EnableReplicationToRegion() func (client IdentityClient) EnableReplicationToRegion(ctx context.Context, request EnableReplicationToRegionRequest) (response EnableReplicationToRegionResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3665,6 +3853,8 @@ func (client IdentityClient) enableReplicationToRegion(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/EnableReplicationToRegion" + err = common.PostProcessServiceError(err, "Identity", "EnableReplicationToRegion", apiReferenceLink) return response, err } @@ -3673,9 +3863,10 @@ func (client IdentityClient) enableReplicationToRegion(ctx context.Context, requ } // GenerateTotpSeed Generate seed for the MFA TOTP device. +// A default retry strategy applies to this operation GenerateTotpSeed() func (client IdentityClient) GenerateTotpSeed(ctx context.Context, request GenerateTotpSeedRequest) (response GenerateTotpSeedResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3717,6 +3908,8 @@ func (client IdentityClient) generateTotpSeed(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDevice/GenerateTotpSeed" + err = common.PostProcessServiceError(err, "Identity", "GenerateTotpSeed", apiReferenceLink) return response, err } @@ -3725,9 +3918,10 @@ func (client IdentityClient) generateTotpSeed(ctx context.Context, request commo } // GetAccountByEntitlementId Get account information for a service entitlement ID +// A default retry strategy applies to this operation GetAccountByEntitlementId() func (client IdentityClient) GetAccountByEntitlementId(ctx context.Context, request GetAccountByEntitlementIdRequest) (response GetAccountByEntitlementIdResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3768,6 +3962,8 @@ func (client IdentityClient) getAccountByEntitlementId(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Account/GetAccountByEntitlementId" + err = common.PostProcessServiceError(err, "Identity", "GetAccountByEntitlementId", apiReferenceLink) return response, err } @@ -3777,9 +3973,10 @@ func (client IdentityClient) getAccountByEntitlementId(ctx context.Context, requ // GetAuthenticationPolicy Gets the authentication policy for the given tenancy. You must specify your tenant’s OCID as the value for // the compartment ID (remember that the tenancy is simply the root compartment). +// A default retry strategy applies to this operation GetAuthenticationPolicy() func (client IdentityClient) GetAuthenticationPolicy(ctx context.Context, request GetAuthenticationPolicyRequest) (response GetAuthenticationPolicyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3820,6 +4017,8 @@ func (client IdentityClient) getAuthenticationPolicy(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthenticationPolicy/GetAuthenticationPolicy" + err = common.PostProcessServiceError(err, "Identity", "GetAuthenticationPolicy", apiReferenceLink) return response, err } @@ -3834,9 +4033,10 @@ func (client IdentityClient) getAuthenticationPolicy(ctx context.Context, reques // each resource type and specify the compartment's OCID as a query parameter in the request. For example, // call the ListInstances operation in the Cloud Compute // Service or the ListVolumes operation in Cloud Block Storage. +// A default retry strategy applies to this operation GetCompartment() func (client IdentityClient) GetCompartment(ctx context.Context, request GetCompartmentRequest) (response GetCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3877,6 +4077,8 @@ func (client IdentityClient) getCompartment(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/GetCompartment" + err = common.PostProcessServiceError(err, "Identity", "GetCompartment", apiReferenceLink) return response, err } @@ -3884,12 +4086,11 @@ func (client IdentityClient) getCompartment(ctx context.Context, request common. return response, err } -// GetDomain Get the specified domain's information. -// - If the domain doesn't exists, returns 404 NOT FOUND. -// - If any internal error occurs, returns 500 INTERNAL SERVER ERROR. +// GetDomain (For tenancies that support identity domains) Gets the specified identity domain's information. +// A default retry strategy applies to this operation GetDomain() func (client IdentityClient) GetDomain(ctx context.Context, request GetDomainRequest) (response GetDomainResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3930,6 +4131,8 @@ func (client IdentityClient) getDomain(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/GetDomain" + err = common.PostProcessServiceError(err, "Identity", "GetDomain", apiReferenceLink) return response, err } @@ -3938,9 +4141,10 @@ func (client IdentityClient) getDomain(ctx context.Context, request common.OCIRe } // GetDynamicGroup Gets the specified dynamic group's information. +// A default retry strategy applies to this operation GetDynamicGroup() func (client IdentityClient) GetDynamicGroup(ctx context.Context, request GetDynamicGroupRequest) (response GetDynamicGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -3981,6 +4185,8 @@ func (client IdentityClient) getDynamicGroup(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/GetDynamicGroup" + err = common.PostProcessServiceError(err, "Identity", "GetDynamicGroup", apiReferenceLink) return response, err } @@ -3992,9 +4198,10 @@ func (client IdentityClient) getDynamicGroup(ctx context.Context, request common // This operation does not return a list of all the users in the group. To do that, use // ListUserGroupMemberships and // provide the group's OCID as a query parameter in the request. +// A default retry strategy applies to this operation GetGroup() func (client IdentityClient) GetGroup(ctx context.Context, request GetGroupRequest) (response GetGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4035,6 +4242,8 @@ func (client IdentityClient) getGroup(ctx context.Context, request common.OCIReq defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Group/GetGroup" + err = common.PostProcessServiceError(err, "Identity", "GetGroup", apiReferenceLink) return response, err } @@ -4042,13 +4251,11 @@ func (client IdentityClient) getGroup(ctx context.Context, request common.OCIReq return response, err } -// GetIamWorkRequest Gets details on a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains -// iam work request id that can be provided in this API to track the current status of the operation. -// - If workrequest exists, returns 202 ACCEPTED -// - If workrequest does not exist, returns 404 NOT FOUND +// GetIamWorkRequest Gets the details of a specified IAM work request. The workRequestID is returned in the opc-workrequest-id header for any asynchronous operation in the Identity and Access Management service. +// A default retry strategy applies to this operation GetIamWorkRequest() func (client IdentityClient) GetIamWorkRequest(ctx context.Context, request GetIamWorkRequestRequest) (response GetIamWorkRequestResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4089,6 +4296,8 @@ func (client IdentityClient) getIamWorkRequest(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IamWorkRequest/GetIamWorkRequest" + err = common.PostProcessServiceError(err, "Identity", "GetIamWorkRequest", apiReferenceLink) return response, err } @@ -4098,9 +4307,10 @@ func (client IdentityClient) getIamWorkRequest(ctx context.Context, request comm // GetIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Gets the specified identity provider's information. +// A default retry strategy applies to this operation GetIdentityProvider() func (client IdentityClient) GetIdentityProvider(ctx context.Context, request GetIdentityProviderRequest) (response GetIdentityProviderResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4141,6 +4351,8 @@ func (client IdentityClient) getIdentityProvider(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdentityProvider/GetIdentityProvider" + err = common.PostProcessServiceError(err, "Identity", "GetIdentityProvider", apiReferenceLink) return response, err } @@ -4150,9 +4362,10 @@ func (client IdentityClient) getIdentityProvider(ctx context.Context, request co // GetIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Gets the specified group mapping. +// A default retry strategy applies to this operation GetIdpGroupMapping() func (client IdentityClient) GetIdpGroupMapping(ctx context.Context, request GetIdpGroupMappingRequest) (response GetIdpGroupMappingResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4193,6 +4406,8 @@ func (client IdentityClient) getIdpGroupMapping(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdpGroupMapping/GetIdpGroupMapping" + err = common.PostProcessServiceError(err, "Identity", "GetIdpGroupMapping", apiReferenceLink) return response, err } @@ -4201,9 +4416,10 @@ func (client IdentityClient) getIdpGroupMapping(ctx context.Context, request com } // GetMfaTotpDevice Get the specified MFA TOTP device for the specified user. +// A default retry strategy applies to this operation GetMfaTotpDevice() func (client IdentityClient) GetMfaTotpDevice(ctx context.Context, request GetMfaTotpDeviceRequest) (response GetMfaTotpDeviceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4244,6 +4460,8 @@ func (client IdentityClient) getMfaTotpDevice(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDeviceSummary/GetMfaTotpDevice" + err = common.PostProcessServiceError(err, "Identity", "GetMfaTotpDevice", apiReferenceLink) return response, err } @@ -4252,9 +4470,10 @@ func (client IdentityClient) getMfaTotpDevice(ctx context.Context, request commo } // GetNetworkSource Gets the specified network source's information. +// A default retry strategy applies to this operation GetNetworkSource() func (client IdentityClient) GetNetworkSource(ctx context.Context, request GetNetworkSourceRequest) (response GetNetworkSourceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4295,6 +4514,8 @@ func (client IdentityClient) getNetworkSource(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/NetworkSources/GetNetworkSource" + err = common.PostProcessServiceError(err, "Identity", "GetNetworkSource", apiReferenceLink) return response, err } @@ -4303,9 +4524,10 @@ func (client IdentityClient) getNetworkSource(ctx context.Context, request commo } // GetPolicy Gets the specified policy's information. +// A default retry strategy applies to this operation GetPolicy() func (client IdentityClient) GetPolicy(ctx context.Context, request GetPolicyRequest) (response GetPolicyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4346,6 +4568,8 @@ func (client IdentityClient) getPolicy(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Policy/GetPolicy" + err = common.PostProcessServiceError(err, "Identity", "GetPolicy", apiReferenceLink) return response, err } @@ -4354,9 +4578,10 @@ func (client IdentityClient) getPolicy(ctx context.Context, request common.OCIRe } // GetStandardTagTemplate Retrieve the standard tag namespace template given the standard tag namespace name. +// A default retry strategy applies to this operation GetStandardTagTemplate() func (client IdentityClient) GetStandardTagTemplate(ctx context.Context, request GetStandardTagTemplateRequest) (response GetStandardTagTemplateResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4397,6 +4622,8 @@ func (client IdentityClient) getStandardTagTemplate(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/StandardTagNamespaceTemplate/GetStandardTagTemplate" + err = common.PostProcessServiceError(err, "Identity", "GetStandardTagTemplate", apiReferenceLink) return response, err } @@ -4405,9 +4632,10 @@ func (client IdentityClient) getStandardTagTemplate(ctx context.Context, request } // GetTag Gets the specified tag's information. +// A default retry strategy applies to this operation GetTag() func (client IdentityClient) GetTag(ctx context.Context, request GetTagRequest) (response GetTagResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4448,6 +4676,8 @@ func (client IdentityClient) getTag(ctx context.Context, request common.OCIReque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/GetTag" + err = common.PostProcessServiceError(err, "Identity", "GetTag", apiReferenceLink) return response, err } @@ -4456,9 +4686,10 @@ func (client IdentityClient) getTag(ctx context.Context, request common.OCIReque } // GetTagDefault Retrieves the specified tag default. +// A default retry strategy applies to this operation GetTagDefault() func (client IdentityClient) GetTagDefault(ctx context.Context, request GetTagDefaultRequest) (response GetTagDefaultResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4499,6 +4730,8 @@ func (client IdentityClient) getTagDefault(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/GetTagDefault" + err = common.PostProcessServiceError(err, "Identity", "GetTagDefault", apiReferenceLink) return response, err } @@ -4507,9 +4740,10 @@ func (client IdentityClient) getTagDefault(ctx context.Context, request common.O } // GetTagNamespace Gets the specified tag namespace's information. +// A default retry strategy applies to this operation GetTagNamespace() func (client IdentityClient) GetTagNamespace(ctx context.Context, request GetTagNamespaceRequest) (response GetTagNamespaceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4550,6 +4784,8 @@ func (client IdentityClient) getTagNamespace(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/GetTagNamespace" + err = common.PostProcessServiceError(err, "Identity", "GetTagNamespace", apiReferenceLink) return response, err } @@ -4558,9 +4794,10 @@ func (client IdentityClient) getTagNamespace(ctx context.Context, request common } // GetTagRule Gets the information of the specified tag rule. +// A default retry strategy applies to this operation GetTagRule() func (client IdentityClient) GetTagRule(ctx context.Context, request GetTagRuleRequest) (response GetTagRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4601,6 +4838,8 @@ func (client IdentityClient) getTagRule(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagRule/GetTagRule" + err = common.PostProcessServiceError(err, "Identity", "GetTagRule", apiReferenceLink) return response, err } @@ -4610,9 +4849,10 @@ func (client IdentityClient) getTagRule(ctx context.Context, request common.OCIR // GetTaggingWorkRequest Gets details on a specified work request. The workRequestID is returned in the opc-workrequest-id header // for any asynchronous operation in tagging service. +// A default retry strategy applies to this operation GetTaggingWorkRequest() func (client IdentityClient) GetTaggingWorkRequest(ctx context.Context, request GetTaggingWorkRequestRequest) (response GetTaggingWorkRequestResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4653,6 +4893,8 @@ func (client IdentityClient) getTaggingWorkRequest(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TaggingWorkRequest/GetTaggingWorkRequest" + err = common.PostProcessServiceError(err, "Identity", "GetTaggingWorkRequest", apiReferenceLink) return response, err } @@ -4661,9 +4903,10 @@ func (client IdentityClient) getTaggingWorkRequest(ctx context.Context, request } // GetTenancy Get the specified tenancy's information. +// A default retry strategy applies to this operation GetTenancy() func (client IdentityClient) GetTenancy(ctx context.Context, request GetTenancyRequest) (response GetTenancyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4704,6 +4947,8 @@ func (client IdentityClient) getTenancy(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/GetTenancy" + err = common.PostProcessServiceError(err, "Identity", "GetTenancy", apiReferenceLink) return response, err } @@ -4712,9 +4957,10 @@ func (client IdentityClient) getTenancy(ctx context.Context, request common.OCIR } // GetUser Gets the specified user's information. +// A default retry strategy applies to this operation GetUser() func (client IdentityClient) GetUser(ctx context.Context, request GetUserRequest) (response GetUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4755,6 +5001,8 @@ func (client IdentityClient) getUser(ctx context.Context, request common.OCIRequ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/GetUser" + err = common.PostProcessServiceError(err, "Identity", "GetUser", apiReferenceLink) return response, err } @@ -4763,9 +5011,10 @@ func (client IdentityClient) getUser(ctx context.Context, request common.OCIRequ } // GetUserGroupMembership Gets the specified UserGroupMembership's information. +// A default retry strategy applies to this operation GetUserGroupMembership() func (client IdentityClient) GetUserGroupMembership(ctx context.Context, request GetUserGroupMembershipRequest) (response GetUserGroupMembershipResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4806,6 +5055,8 @@ func (client IdentityClient) getUserGroupMembership(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UserGroupMembership/GetUserGroupMembership" + err = common.PostProcessServiceError(err, "Identity", "GetUserGroupMembership", apiReferenceLink) return response, err } @@ -4815,9 +5066,10 @@ func (client IdentityClient) getUserGroupMembership(ctx context.Context, request // GetUserUIPasswordInformation Gets the specified user's console password information. The returned object contains the user's OCID, // but not the password itself. The actual password is returned only when created or reset. +// A default retry strategy applies to this operation GetUserUIPasswordInformation() func (client IdentityClient) GetUserUIPasswordInformation(ctx context.Context, request GetUserUIPasswordInformationRequest) (response GetUserUIPasswordInformationResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4858,6 +5110,8 @@ func (client IdentityClient) getUserUIPasswordInformation(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UIPasswordInformation/GetUserUIPasswordInformation" + err = common.PostProcessServiceError(err, "Identity", "GetUserUIPasswordInformation", apiReferenceLink) return response, err } @@ -4867,9 +5121,10 @@ func (client IdentityClient) getUserUIPasswordInformation(ctx context.Context, r // GetWorkRequest Gets details on a specified work request. The workRequestID is returned in the opc-workrequest-id header // for any asynchronous operation in the compartment service. +// A default retry strategy applies to this operation GetWorkRequest() func (client IdentityClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4910,6 +5165,8 @@ func (client IdentityClient) getWorkRequest(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "Identity", "GetWorkRequest", apiReferenceLink) return response, err } @@ -4917,15 +5174,75 @@ func (client IdentityClient) getWorkRequest(ctx context.Context, request common. return response, err } -// ListAllowedDomainLicenseTypes List the allowed domain license types supported by OCI -// If {@code currentLicenseTypeName} provided, returns allowed license types a domain with the specified license type name can migrate to. -// If {@code name} is provided, it filters and returns resources that match the given license type name. -// Otherwise, returns all valid license types that are currently supported. -// - If license type details are retrieved sucessfully, return 202 ACCEPTED. -// - If any internal error occurs, return 500 INTERNAL SERVER ERROR. +// ImportStandardTags OCI will release Tag Namespaces that our customers can import. +// These Tag Namespaces will provide Tags for our customers and Partners to provide consistency and enable data reporting. +// A default retry strategy applies to this operation ImportStandardTags() +func (client IdentityClient) ImportStandardTags(ctx context.Context, request ImportStandardTagsRequest) (response ImportStandardTagsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.importStandardTags, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ImportStandardTagsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ImportStandardTagsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ImportStandardTagsResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ImportStandardTagsResponse") + } + return +} + +// importStandardTags implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) importStandardTags(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tags/actions/importStandardTags", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ImportStandardTagsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/ImportStandardTags" + err = common.PostProcessServiceError(err, "Identity", "ImportStandardTags", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListAllowedDomainLicenseTypes (For tenancies that support identity domains) Lists the license types for identity domains supported by Oracle Cloud Infrastructure. +// (License types are also referred to as domain types.) +// If `currentLicenseTypeName` is provided, then the request returns license types that the identity domain with the specified license +// type name can change to. Otherwise, the request returns all valid license types currently supported. +// A default retry strategy applies to this operation ListAllowedDomainLicenseTypes() func (client IdentityClient) ListAllowedDomainLicenseTypes(ctx context.Context, request ListAllowedDomainLicenseTypesRequest) (response ListAllowedDomainLicenseTypesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -4966,6 +5283,8 @@ func (client IdentityClient) listAllowedDomainLicenseTypes(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/ListAllowedDomainLicenseTypes" + err = common.PostProcessServiceError(err, "Identity", "ListAllowedDomainLicenseTypes", apiReferenceLink) return response, err } @@ -4976,9 +5295,10 @@ func (client IdentityClient) listAllowedDomainLicenseTypes(ctx context.Context, // ListApiKeys Lists the API signing keys for the specified user. A user can have a maximum of three keys. // Every user has permission to use this API call for *their own user ID*. An administrator in your // organization does not need to write a policy to give users this ability. +// A default retry strategy applies to this operation ListApiKeys() func (client IdentityClient) ListApiKeys(ctx context.Context, request ListApiKeysRequest) (response ListApiKeysResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5019,6 +5339,8 @@ func (client IdentityClient) listApiKeys(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/ApiKey/ListApiKeys" + err = common.PostProcessServiceError(err, "Identity", "ListApiKeys", apiReferenceLink) return response, err } @@ -5028,9 +5350,10 @@ func (client IdentityClient) listApiKeys(ctx context.Context, request common.OCI // ListAuthTokens Lists the auth tokens for the specified user. The returned object contains the token's OCID, but not // the token itself. The actual token is returned only upon creation. +// A default retry strategy applies to this operation ListAuthTokens() func (client IdentityClient) ListAuthTokens(ctx context.Context, request ListAuthTokensRequest) (response ListAuthTokensResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5071,6 +5394,8 @@ func (client IdentityClient) listAuthTokens(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthToken/ListAuthTokens" + err = common.PostProcessServiceError(err, "Identity", "ListAuthTokens", apiReferenceLink) return response, err } @@ -5083,9 +5408,10 @@ func (client IdentityClient) listAuthTokens(ctx context.Context, request common. // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). // Note that the order of the results returned can change if availability domains are added or removed; therefore, do not // create a dependency on the list order. +// A default retry strategy applies to this operation ListAvailabilityDomains() func (client IdentityClient) ListAvailabilityDomains(ctx context.Context, request ListAvailabilityDomainsRequest) (response ListAvailabilityDomainsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5126,6 +5452,8 @@ func (client IdentityClient) listAvailabilityDomains(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AvailabilityDomain/ListAvailabilityDomains" + err = common.PostProcessServiceError(err, "Identity", "ListAvailabilityDomains", apiReferenceLink) return response, err } @@ -5140,9 +5468,10 @@ func (client IdentityClient) listAvailabilityDomains(ctx context.Context, reques // the type of identifying information you'll need to provide for each resource-type. Most resource-types just // require an OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) to identify a specific resource, but some resource-types, // such as buckets, require you to provide other identifying information. +// A default retry strategy applies to this operation ListBulkActionResourceTypes() func (client IdentityClient) ListBulkActionResourceTypes(ctx context.Context, request ListBulkActionResourceTypesRequest) (response ListBulkActionResourceTypesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5183,6 +5512,8 @@ func (client IdentityClient) listBulkActionResourceTypes(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/BulkActionResourceTypeCollection/ListBulkActionResourceTypes" + err = common.PostProcessServiceError(err, "Identity", "ListBulkActionResourceTypes", apiReferenceLink) return response, err } @@ -5191,9 +5522,10 @@ func (client IdentityClient) listBulkActionResourceTypes(ctx context.Context, re } // ListBulkEditTagsResourceTypes Lists the resource types that support bulk tag editing. +// A default retry strategy applies to this operation ListBulkEditTagsResourceTypes() func (client IdentityClient) ListBulkEditTagsResourceTypes(ctx context.Context, request ListBulkEditTagsResourceTypesRequest) (response ListBulkEditTagsResourceTypesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5234,6 +5566,8 @@ func (client IdentityClient) listBulkEditTagsResourceTypes(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/BulkEditTagsResourceTypeCollection/ListBulkEditTagsResourceTypes" + err = common.PostProcessServiceError(err, "Identity", "ListBulkEditTagsResourceTypes", apiReferenceLink) return response, err } @@ -5255,9 +5589,10 @@ func (client IdentityClient) listBulkEditTagsResourceTypes(ctx context.Context, // To get a full list of all compartments and subcompartments in the tenancy (root compartment), // set the parameter `compartmentIdInSubtree` to true and `accessLevel` to ANY. // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListCompartments() func (client IdentityClient) ListCompartments(ctx context.Context, request ListCompartmentsRequest) (response ListCompartmentsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5298,6 +5633,8 @@ func (client IdentityClient) listCompartments(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/ListCompartments" + err = common.PostProcessServiceError(err, "Identity", "ListCompartments", apiReferenceLink) return response, err } @@ -5306,10 +5643,11 @@ func (client IdentityClient) listCompartments(ctx context.Context, request commo } // ListCostTrackingTags Lists all the tags enabled for cost-tracking in the specified tenancy. For information about -// cost-tracking tags, see Using Cost-tracking Tags (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#costs). +// cost-tracking tags, see Using Cost-tracking Tags (https://docs.cloud.oracle.com/Content/Tagging/Tasks/usingcosttrackingtags.htm). +// A default retry strategy applies to this operation ListCostTrackingTags() func (client IdentityClient) ListCostTrackingTags(ctx context.Context, request ListCostTrackingTagsRequest) (response ListCostTrackingTagsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5350,6 +5688,8 @@ func (client IdentityClient) listCostTrackingTags(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/ListCostTrackingTags" + err = common.PostProcessServiceError(err, "Identity", "ListCostTrackingTags", apiReferenceLink) return response, err } @@ -5359,9 +5699,10 @@ func (client IdentityClient) listCostTrackingTags(ctx context.Context, request c // ListCustomerSecretKeys Lists the secret keys for the specified user. The returned object contains the secret key's OCID, but not // the secret key itself. The actual secret key is returned only upon creation. +// A default retry strategy applies to this operation ListCustomerSecretKeys() func (client IdentityClient) ListCustomerSecretKeys(ctx context.Context, request ListCustomerSecretKeysRequest) (response ListCustomerSecretKeysResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5402,6 +5743,8 @@ func (client IdentityClient) listCustomerSecretKeys(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/CustomerSecretKeySummary/ListCustomerSecretKeys" + err = common.PostProcessServiceError(err, "Identity", "ListCustomerSecretKeys", apiReferenceLink) return response, err } @@ -5410,9 +5753,10 @@ func (client IdentityClient) listCustomerSecretKeys(ctx context.Context, request } // ListDbCredentials Lists the DB credentials for the specified user. The returned object contains the credential's OCID +// A default retry strategy applies to this operation ListDbCredentials() func (client IdentityClient) ListDbCredentials(ctx context.Context, request ListDbCredentialsRequest) (response ListDbCredentialsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5453,6 +5797,8 @@ func (client IdentityClient) listDbCredentials(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/ListDbCredentials" + err = common.PostProcessServiceError(err, "Identity", "ListDbCredentials", apiReferenceLink) return response, err } @@ -5460,11 +5806,11 @@ func (client IdentityClient) listDbCredentials(ctx context.Context, request comm return response, err } -// ListDomains List all domains that are homed or have a replica region in current region. -// - If any internal error occurs, return 500 INTERNAL SERVER ERROR. +// ListDomains (For tenancies that support identity domains) Lists all identity domains within a tenancy. +// A default retry strategy applies to this operation ListDomains() func (client IdentityClient) ListDomains(ctx context.Context, request ListDomainsRequest) (response ListDomainsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5505,6 +5851,8 @@ func (client IdentityClient) listDomains(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/DomainSummary/ListDomains" + err = common.PostProcessServiceError(err, "Identity", "ListDomains", apiReferenceLink) return response, err } @@ -5515,9 +5863,10 @@ func (client IdentityClient) listDomains(ctx context.Context, request common.OCI // ListDynamicGroups Lists the dynamic groups in your tenancy. You must specify your tenancy's OCID as the value for // the compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListDynamicGroups() func (client IdentityClient) ListDynamicGroups(ctx context.Context, request ListDynamicGroupsRequest) (response ListDynamicGroupsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5558,6 +5907,8 @@ func (client IdentityClient) listDynamicGroups(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/ListDynamicGroups" + err = common.PostProcessServiceError(err, "Identity", "ListDynamicGroups", apiReferenceLink) return response, err } @@ -5568,9 +5919,10 @@ func (client IdentityClient) listDynamicGroups(ctx context.Context, request comm // ListFaultDomains Lists the Fault Domains in your tenancy. Specify the OCID of either the tenancy or another // of your compartments as the value for the compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListFaultDomains() func (client IdentityClient) ListFaultDomains(ctx context.Context, request ListFaultDomainsRequest) (response ListFaultDomainsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5611,6 +5963,8 @@ func (client IdentityClient) listFaultDomains(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/FaultDomain/ListFaultDomains" + err = common.PostProcessServiceError(err, "Identity", "ListFaultDomains", apiReferenceLink) return response, err } @@ -5621,9 +5975,10 @@ func (client IdentityClient) listFaultDomains(ctx context.Context, request commo // ListGroups Lists the groups in your tenancy. You must specify your tenancy's OCID as the value for // the compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListGroups() func (client IdentityClient) ListGroups(ctx context.Context, request ListGroupsRequest) (response ListGroupsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5664,6 +6019,8 @@ func (client IdentityClient) listGroups(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Group/ListGroups" + err = common.PostProcessServiceError(err, "Identity", "ListGroups", apiReferenceLink) return response, err } @@ -5671,13 +6028,11 @@ func (client IdentityClient) listGroups(ctx context.Context, request common.OCIR return response, err } -// ListIamWorkRequestErrors Gets error details for a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains -// iam work request id that can be provided in this API to track the current status of the operation. -// - If workrequest exists, returns 202 ACCEPTED -// - If workrequest does not exist, returns 404 NOT FOUND +// ListIamWorkRequestErrors Gets error details for a specified IAM work request. The workRequestID is returned in the opc-workrequest-id header for any asynchronous operation in the Identity and Access Management service. +// A default retry strategy applies to this operation ListIamWorkRequestErrors() func (client IdentityClient) ListIamWorkRequestErrors(ctx context.Context, request ListIamWorkRequestErrorsRequest) (response ListIamWorkRequestErrorsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5718,6 +6073,8 @@ func (client IdentityClient) listIamWorkRequestErrors(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IamWorkRequest/ListIamWorkRequestErrors" + err = common.PostProcessServiceError(err, "Identity", "ListIamWorkRequestErrors", apiReferenceLink) return response, err } @@ -5725,13 +6082,11 @@ func (client IdentityClient) listIamWorkRequestErrors(ctx context.Context, reque return response, err } -// ListIamWorkRequestLogs Gets logs for a specified IAM work request. For asynchronous operations in Identity and Access Management service, opc-work-request-id header values contains -// iam work request id that can be provided in this API to track the current status of the operation. -// - If workrequest exists, returns 202 ACCEPTED -// - If workrequest does not exist, returns 404 NOT FOUND +// ListIamWorkRequestLogs Gets logs for a specified IAM work request. The workRequestID is returned in the opc-workrequest-id header for any asynchronous operation in the Identity and Access Management service. +// A default retry strategy applies to this operation ListIamWorkRequestLogs() func (client IdentityClient) ListIamWorkRequestLogs(ctx context.Context, request ListIamWorkRequestLogsRequest) (response ListIamWorkRequestLogsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5772,6 +6127,8 @@ func (client IdentityClient) listIamWorkRequestLogs(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IamWorkRequestLogSummary/ListIamWorkRequestLogs" + err = common.PostProcessServiceError(err, "Identity", "ListIamWorkRequestLogs", apiReferenceLink) return response, err } @@ -5779,12 +6136,11 @@ func (client IdentityClient) listIamWorkRequestLogs(ctx context.Context, request return response, err } -// ListIamWorkRequests List the IAM work requests in compartment -// - If IAM workrequest details are retrieved sucessfully, return 202 ACCEPTED. -// - If any internal error occurs, return 500 INTERNAL SERVER ERROR. +// ListIamWorkRequests Lists the IAM work requests in compartment. The workRequestID is returned in the opc-workrequest-id header for any asynchronous operation in the Identity and Access Management service. +// A default retry strategy applies to this operation ListIamWorkRequests() func (client IdentityClient) ListIamWorkRequests(ctx context.Context, request ListIamWorkRequestsRequest) (response ListIamWorkRequestsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5825,6 +6181,8 @@ func (client IdentityClient) listIamWorkRequests(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IamWorkRequestSummary/ListIamWorkRequests" + err = common.PostProcessServiceError(err, "Identity", "ListIamWorkRequests", apiReferenceLink) return response, err } @@ -5834,9 +6192,10 @@ func (client IdentityClient) listIamWorkRequests(ctx context.Context, request co // ListIdentityProviderGroups **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Lists the identity provider groups. +// A default retry strategy applies to this operation ListIdentityProviderGroups() func (client IdentityClient) ListIdentityProviderGroups(ctx context.Context, request ListIdentityProviderGroupsRequest) (response ListIdentityProviderGroupsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5877,6 +6236,8 @@ func (client IdentityClient) listIdentityProviderGroups(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdentityProviderGroupSummary/ListIdentityProviderGroups" + err = common.PostProcessServiceError(err, "Identity", "ListIdentityProviderGroups", apiReferenceLink) return response, err } @@ -5905,9 +6266,10 @@ func (m *listidentityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{ // identity providers using the SAML2.0 protocol). You must specify your tenancy's OCID as the value for the // compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListIdentityProviders() func (client IdentityClient) ListIdentityProviders(ctx context.Context, request ListIdentityProvidersRequest) (response ListIdentityProvidersResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -5948,6 +6310,8 @@ func (client IdentityClient) listIdentityProviders(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdentityProvider/ListIdentityProviders" + err = common.PostProcessServiceError(err, "Identity", "ListIdentityProviders", apiReferenceLink) return response, err } @@ -5957,9 +6321,10 @@ func (client IdentityClient) listIdentityProviders(ctx context.Context, request // ListIdpGroupMappings **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Lists the group mappings for the specified identity provider. +// A default retry strategy applies to this operation ListIdpGroupMappings() func (client IdentityClient) ListIdpGroupMappings(ctx context.Context, request ListIdpGroupMappingsRequest) (response ListIdpGroupMappingsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6000,6 +6365,8 @@ func (client IdentityClient) listIdpGroupMappings(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdpGroupMapping/ListIdpGroupMappings" + err = common.PostProcessServiceError(err, "Identity", "ListIdpGroupMappings", apiReferenceLink) return response, err } @@ -6009,9 +6376,10 @@ func (client IdentityClient) listIdpGroupMappings(ctx context.Context, request c // ListManagedCompartments List the managed compartments under the specific tenancy and specific service name. You must specify tenancy's OCID // and service name as the value +// A default retry strategy applies to this operation ListManagedCompartments() func (client IdentityClient) ListManagedCompartments(ctx context.Context, request ListManagedCompartmentsRequest) (response ListManagedCompartmentsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6052,6 +6420,8 @@ func (client IdentityClient) listManagedCompartments(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/ListManagedCompartments" + err = common.PostProcessServiceError(err, "Identity", "ListManagedCompartments", apiReferenceLink) return response, err } @@ -6061,9 +6431,10 @@ func (client IdentityClient) listManagedCompartments(ctx context.Context, reques // ListMfaTotpDevices Lists the MFA TOTP devices for the specified user. The returned object contains the device's OCID, but not // the seed. The seed is returned only upon creation or when the IAM service regenerates the MFA seed for the device. +// A default retry strategy applies to this operation ListMfaTotpDevices() func (client IdentityClient) ListMfaTotpDevices(ctx context.Context, request ListMfaTotpDevicesRequest) (response ListMfaTotpDevicesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6104,6 +6475,8 @@ func (client IdentityClient) listMfaTotpDevices(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/MfaTotpDeviceSummary/ListMfaTotpDevices" + err = common.PostProcessServiceError(err, "Identity", "ListMfaTotpDevices", apiReferenceLink) return response, err } @@ -6114,9 +6487,10 @@ func (client IdentityClient) listMfaTotpDevices(ctx context.Context, request com // ListNetworkSources Lists the network sources in your tenancy. You must specify your tenancy's OCID as the value for // the compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListNetworkSources() func (client IdentityClient) ListNetworkSources(ctx context.Context, request ListNetworkSourcesRequest) (response ListNetworkSourcesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6157,6 +6531,8 @@ func (client IdentityClient) listNetworkSources(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/NetworkSourcesSummary/ListNetworkSources" + err = common.PostProcessServiceError(err, "Identity", "ListNetworkSources", apiReferenceLink) return response, err } @@ -6165,9 +6541,10 @@ func (client IdentityClient) listNetworkSources(ctx context.Context, request com } // ListOAuthClientCredentials List of Oauth tokens for the user +// A default retry strategy applies to this operation ListOAuthClientCredentials() func (client IdentityClient) ListOAuthClientCredentials(ctx context.Context, request ListOAuthClientCredentialsRequest) (response ListOAuthClientCredentialsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6208,6 +6585,8 @@ func (client IdentityClient) listOAuthClientCredentials(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/ListOAuthClientCredentials" + err = common.PostProcessServiceError(err, "Identity", "ListOAuthClientCredentials", apiReferenceLink) return response, err } @@ -6219,9 +6598,10 @@ func (client IdentityClient) listOAuthClientCredentials(ctx context.Context, req // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). // To determine which policies apply to a particular group or compartment, you must view the individual // statements inside all your policies. There isn't a way to automatically obtain that information via the API. +// A default retry strategy applies to this operation ListPolicies() func (client IdentityClient) ListPolicies(ctx context.Context, request ListPoliciesRequest) (response ListPoliciesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6262,6 +6642,8 @@ func (client IdentityClient) listPolicies(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Policy/ListPolicies" + err = common.PostProcessServiceError(err, "Identity", "ListPolicies", apiReferenceLink) return response, err } @@ -6270,9 +6652,10 @@ func (client IdentityClient) listPolicies(ctx context.Context, request common.OC } // ListRegionSubscriptions Lists the region subscriptions for the specified tenancy. +// A default retry strategy applies to this operation ListRegionSubscriptions() func (client IdentityClient) ListRegionSubscriptions(ctx context.Context, request ListRegionSubscriptionsRequest) (response ListRegionSubscriptionsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6313,6 +6696,8 @@ func (client IdentityClient) listRegionSubscriptions(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/RegionSubscription/ListRegionSubscriptions" + err = common.PostProcessServiceError(err, "Identity", "ListRegionSubscriptions", apiReferenceLink) return response, err } @@ -6321,6 +6706,7 @@ func (client IdentityClient) listRegionSubscriptions(ctx context.Context, reques } // ListRegions Lists all the regions offered by Oracle Cloud Infrastructure. +// A default retry strategy applies to this operation ListRegions() func (client IdentityClient) ListRegions(ctx context.Context) (response ListRegionsResponse, err error) { var ociResponse common.OCIResponse ociResponse, err = client.listRegions(ctx) @@ -6354,6 +6740,8 @@ func (client IdentityClient) listRegions(ctx context.Context) (common.OCIRespons defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Region/ListRegions" + err = common.PostProcessServiceError(err, "Identity", "ListRegions", apiReferenceLink) return response, err } @@ -6363,9 +6751,10 @@ func (client IdentityClient) listRegions(ctx context.Context) (common.OCIRespons // ListSmtpCredentials Lists the SMTP credentials for the specified user. The returned object contains the credential's OCID, // the SMTP user name but not the SMTP password. The SMTP password is returned only upon creation. +// A default retry strategy applies to this operation ListSmtpCredentials() func (client IdentityClient) ListSmtpCredentials(ctx context.Context, request ListSmtpCredentialsRequest) (response ListSmtpCredentialsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6406,6 +6795,8 @@ func (client IdentityClient) listSmtpCredentials(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SmtpCredentialSummary/ListSmtpCredentials" + err = common.PostProcessServiceError(err, "Identity", "ListSmtpCredentials", apiReferenceLink) return response, err } @@ -6414,9 +6805,10 @@ func (client IdentityClient) listSmtpCredentials(ctx context.Context, request co } // ListStandardTagNamespaces Lists available standard tag namespaces that users can create. +// A default retry strategy applies to this operation ListStandardTagNamespaces() func (client IdentityClient) ListStandardTagNamespaces(ctx context.Context, request ListStandardTagNamespacesRequest) (response ListStandardTagNamespacesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6457,6 +6849,8 @@ func (client IdentityClient) listStandardTagNamespaces(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/StandardTagNamespaceTemplateSummary/ListStandardTagNamespaces" + err = common.PostProcessServiceError(err, "Identity", "ListStandardTagNamespaces", apiReferenceLink) return response, err } @@ -6467,9 +6861,10 @@ func (client IdentityClient) listStandardTagNamespaces(ctx context.Context, requ // ListSwiftPasswords **Deprecated. Use ListAuthTokens instead.** // Lists the Swift passwords for the specified user. The returned object contains the password's OCID, but not // the password itself. The actual password is returned only upon creation. +// A default retry strategy applies to this operation ListSwiftPasswords() func (client IdentityClient) ListSwiftPasswords(ctx context.Context, request ListSwiftPasswordsRequest) (response ListSwiftPasswordsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6510,6 +6905,8 @@ func (client IdentityClient) listSwiftPasswords(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SwiftPassword/ListSwiftPasswords" + err = common.PostProcessServiceError(err, "Identity", "ListSwiftPasswords", apiReferenceLink) return response, err } @@ -6518,9 +6915,10 @@ func (client IdentityClient) listSwiftPasswords(ctx context.Context, request com } // ListTagDefaults Lists the tag defaults for tag definitions in the specified compartment. +// A default retry strategy applies to this operation ListTagDefaults() func (client IdentityClient) ListTagDefaults(ctx context.Context, request ListTagDefaultsRequest) (response ListTagDefaultsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6561,6 +6959,8 @@ func (client IdentityClient) listTagDefaults(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefaultSummary/ListTagDefaults" + err = common.PostProcessServiceError(err, "Identity", "ListTagDefaults", apiReferenceLink) return response, err } @@ -6569,9 +6969,10 @@ func (client IdentityClient) listTagDefaults(ctx context.Context, request common } // ListTagNamespaces Lists the tag namespaces in the specified compartment. +// A default retry strategy applies to this operation ListTagNamespaces() func (client IdentityClient) ListTagNamespaces(ctx context.Context, request ListTagNamespacesRequest) (response ListTagNamespacesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6612,6 +7013,8 @@ func (client IdentityClient) listTagNamespaces(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespaceSummary/ListTagNamespaces" + err = common.PostProcessServiceError(err, "Identity", "ListTagNamespaces", apiReferenceLink) return response, err } @@ -6623,10 +7026,11 @@ func (client IdentityClient) listTagNamespaces(ctx context.Context, request comm // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). // To use this and other API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, see -// Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// A default retry strategy applies to this operation ListTagRules() func (client IdentityClient) ListTagRules(ctx context.Context, request ListTagRulesRequest) (response ListTagRulesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6667,6 +7071,8 @@ func (client IdentityClient) listTagRules(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagRule/ListTagRules" + err = common.PostProcessServiceError(err, "Identity", "ListTagRules", apiReferenceLink) return response, err } @@ -6675,9 +7081,10 @@ func (client IdentityClient) listTagRules(ctx context.Context, request common.OC } // ListTaggingWorkRequestErrors Gets the errors for a work request. +// A default retry strategy applies to this operation ListTaggingWorkRequestErrors() func (client IdentityClient) ListTaggingWorkRequestErrors(ctx context.Context, request ListTaggingWorkRequestErrorsRequest) (response ListTaggingWorkRequestErrorsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6718,6 +7125,8 @@ func (client IdentityClient) listTaggingWorkRequestErrors(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TaggingWorkRequestErrorSummary/ListTaggingWorkRequestErrors" + err = common.PostProcessServiceError(err, "Identity", "ListTaggingWorkRequestErrors", apiReferenceLink) return response, err } @@ -6726,9 +7135,10 @@ func (client IdentityClient) listTaggingWorkRequestErrors(ctx context.Context, r } // ListTaggingWorkRequestLogs Gets the logs for a work request. +// A default retry strategy applies to this operation ListTaggingWorkRequestLogs() func (client IdentityClient) ListTaggingWorkRequestLogs(ctx context.Context, request ListTaggingWorkRequestLogsRequest) (response ListTaggingWorkRequestLogsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6769,6 +7179,8 @@ func (client IdentityClient) listTaggingWorkRequestLogs(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TaggingWorkRequestLogSummary/ListTaggingWorkRequestLogs" + err = common.PostProcessServiceError(err, "Identity", "ListTaggingWorkRequestLogs", apiReferenceLink) return response, err } @@ -6777,9 +7189,10 @@ func (client IdentityClient) listTaggingWorkRequestLogs(ctx context.Context, req } // ListTaggingWorkRequests Lists the tagging work requests in compartment. +// A default retry strategy applies to this operation ListTaggingWorkRequests() func (client IdentityClient) ListTaggingWorkRequests(ctx context.Context, request ListTaggingWorkRequestsRequest) (response ListTaggingWorkRequestsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6820,6 +7233,8 @@ func (client IdentityClient) listTaggingWorkRequests(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TaggingWorkRequestSummary/ListTaggingWorkRequests" + err = common.PostProcessServiceError(err, "Identity", "ListTaggingWorkRequests", apiReferenceLink) return response, err } @@ -6828,9 +7243,10 @@ func (client IdentityClient) listTaggingWorkRequests(ctx context.Context, reques } // ListTags Lists the tag definitions in the specified tag namespace. +// A default retry strategy applies to this operation ListTags() func (client IdentityClient) ListTags(ctx context.Context, request ListTagsRequest) (response ListTagsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6871,6 +7287,8 @@ func (client IdentityClient) listTags(ctx context.Context, request common.OCIReq defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagSummary/ListTags" + err = common.PostProcessServiceError(err, "Identity", "ListTags", apiReferenceLink) return response, err } @@ -6879,9 +7297,10 @@ func (client IdentityClient) listTags(ctx context.Context, request common.OCIReq } // ListTenancies Get the specified tenancy's information with BareMetal service entitlement. +// A default retry strategy applies to this operation ListTenancies() func (client IdentityClient) ListTenancies(ctx context.Context, request ListTenanciesRequest) (response ListTenanciesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6922,6 +7341,8 @@ func (client IdentityClient) listTenancies(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/ListTenancies" + err = common.PostProcessServiceError(err, "Identity", "ListTenancies", apiReferenceLink) return response, err } @@ -6938,9 +7359,10 @@ func (client IdentityClient) listTenancies(ctx context.Context, request common.O // - You can set both the `userId` and `groupId` to determine if the specified user is in the specified group. // If the answer is no, the response is an empty list. // - Although`userId` and `groupId` are not individually required, you must set one of them. +// A default retry strategy applies to this operation ListUserGroupMemberships() func (client IdentityClient) ListUserGroupMemberships(ctx context.Context, request ListUserGroupMembershipsRequest) (response ListUserGroupMembershipsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -6981,6 +7403,8 @@ func (client IdentityClient) listUserGroupMemberships(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UserGroupMembership/ListUserGroupMemberships" + err = common.PostProcessServiceError(err, "Identity", "ListUserGroupMemberships", apiReferenceLink) return response, err } @@ -6991,9 +7415,10 @@ func (client IdentityClient) listUserGroupMemberships(ctx context.Context, reque // ListUsers Lists the users in your tenancy. You must specify your tenancy's OCID as the value for the // compartment ID (remember that the tenancy is simply the root compartment). // See Where to Get the Tenancy's OCID and User's OCID (https://docs.cloud.oracle.com/Content/API/Concepts/apisigningkey.htm#five). +// A default retry strategy applies to this operation ListUsers() func (client IdentityClient) ListUsers(ctx context.Context, request ListUsersRequest) (response ListUsersResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7034,6 +7459,8 @@ func (client IdentityClient) listUsers(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/ListUsers" + err = common.PostProcessServiceError(err, "Identity", "ListUsers", apiReferenceLink) return response, err } @@ -7042,9 +7469,10 @@ func (client IdentityClient) listUsers(ctx context.Context, request common.OCIRe } // ListWorkRequests Lists the work requests in compartment. +// A default retry strategy applies to this operation ListWorkRequests() func (client IdentityClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7085,6 +7513,8 @@ func (client IdentityClient) listWorkRequests(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/WorkRequestSummary/ListWorkRequests" + err = common.PostProcessServiceError(err, "Identity", "ListWorkRequests", apiReferenceLink) return response, err } @@ -7098,10 +7528,11 @@ func (client IdentityClient) listWorkRequests(ctx context.Context, request commo // **IMPORTANT**: After you move a compartment to a new parent compartment, the access policies of // the new parent take effect and the policies of the previous parent no longer apply. Ensure that you // are aware of the implications for the compartment contents before you move it. For more -// information, see Moving a Compartment (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcompartments.htm#MoveCompartment). +// information, see Moving a Compartment (https://docs.cloud.oracle.com/Content/Identity/compartments/managingcompartments.htm#MoveCompartment). +// A default retry strategy applies to this operation MoveCompartment() func (client IdentityClient) MoveCompartment(ctx context.Context, request MoveCompartmentRequest) (response MoveCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7148,6 +7579,8 @@ func (client IdentityClient) moveCompartment(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/MoveCompartment" + err = common.PostProcessServiceError(err, "Identity", "MoveCompartment", apiReferenceLink) return response, err } @@ -7156,9 +7589,10 @@ func (client IdentityClient) moveCompartment(ctx context.Context, request common } // RecoverCompartment Recover the compartment from DELETED state to ACTIVE state. +// A default retry strategy applies to this operation RecoverCompartment() func (client IdentityClient) RecoverCompartment(ctx context.Context, request RecoverCompartmentRequest) (response RecoverCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7200,6 +7634,128 @@ func (client IdentityClient) recoverCompartment(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/RecoverCompartment" + err = common.PostProcessServiceError(err, "Identity", "RecoverCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RemoveTagDefaultLock Remove a resource lock from a tag default. +// A default retry strategy applies to this operation RemoveTagDefaultLock() +func (client IdentityClient) RemoveTagDefaultLock(ctx context.Context, request RemoveTagDefaultLockRequest) (response RemoveTagDefaultLockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.removeTagDefaultLock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveTagDefaultLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RemoveTagDefaultLockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RemoveTagDefaultLockResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RemoveTagDefaultLockResponse") + } + return +} + +// removeTagDefaultLock implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) removeTagDefaultLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tagDefaults/{tagDefaultId}/actions/removeLock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RemoveTagDefaultLockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/RemoveTagDefaultLock" + err = common.PostProcessServiceError(err, "Identity", "RemoveTagDefaultLock", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RemoveTagNamespaceLock Remove a resource lock from a tag namespace. +// A default retry strategy applies to this operation RemoveTagNamespaceLock() +func (client IdentityClient) RemoveTagNamespaceLock(ctx context.Context, request RemoveTagNamespaceLockRequest) (response RemoveTagNamespaceLockResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.removeTagNamespaceLock, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RemoveTagNamespaceLockResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RemoveTagNamespaceLockResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RemoveTagNamespaceLockResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RemoveTagNamespaceLockResponse") + } + return +} + +// removeTagNamespaceLock implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) removeTagNamespaceLock(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tagNamespaces/{tagNamespaceId}/actions/removeLock", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RemoveTagNamespaceLockResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/RemoveTagNamespaceLock" + err = common.PostProcessServiceError(err, "Identity", "RemoveTagNamespaceLock", apiReferenceLink) return response, err } @@ -7208,9 +7764,10 @@ func (client IdentityClient) recoverCompartment(ctx context.Context, request com } // RemoveUserFromGroup Removes a user from a group by deleting the corresponding `UserGroupMembership`. +// A default retry strategy applies to this operation RemoveUserFromGroup() func (client IdentityClient) RemoveUserFromGroup(ctx context.Context, request RemoveUserFromGroupRequest) (response RemoveUserFromGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7251,6 +7808,8 @@ func (client IdentityClient) removeUserFromGroup(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/UserGroupMembership/RemoveUserFromGroup" + err = common.PostProcessServiceError(err, "Identity", "RemoveUserFromGroup", apiReferenceLink) return response, err } @@ -7259,9 +7818,10 @@ func (client IdentityClient) removeUserFromGroup(ctx context.Context, request co } // ResetIdpScimClient Resets the OAuth2 client credentials for the SCIM client associated with this identity provider. +// A default retry strategy applies to this operation ResetIdpScimClient() func (client IdentityClient) ResetIdpScimClient(ctx context.Context, request ResetIdpScimClientRequest) (response ResetIdpScimClientResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7303,6 +7863,228 @@ func (client IdentityClient) resetIdpScimClient(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/ScimClientCredentials/ResetIdpScimClient" + err = common.PostProcessServiceError(err, "Identity", "ResetIdpScimClient", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// SetGovernanceFromChild Set the governing tenancy of child tenancy to be the parent (request originated from child) +// A default retry strategy applies to this operation SetGovernanceFromChild() +func (client IdentityClient) SetGovernanceFromChild(ctx context.Context, request SetGovernanceFromChildRequest) (response SetGovernanceFromChildResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.setGovernanceFromChild, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = SetGovernanceFromChildResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = SetGovernanceFromChildResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(SetGovernanceFromChildResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SetGovernanceFromChildResponse") + } + return +} + +// setGovernanceFromChild implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) setGovernanceFromChild(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tenancies/{childTenancyId}/actions/setGovernanceFromChild", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response SetGovernanceFromChildResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/SetGovernanceFromChild" + err = common.PostProcessServiceError(err, "Identity", "SetGovernanceFromChild", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// SetGovernanceFromParent Set the governing tenancy of child tenancy to be the parent (request originated from parent) +// A default retry strategy applies to this operation SetGovernanceFromParent() +func (client IdentityClient) SetGovernanceFromParent(ctx context.Context, request SetGovernanceFromParentRequest) (response SetGovernanceFromParentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.setGovernanceFromParent, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = SetGovernanceFromParentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = SetGovernanceFromParentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(SetGovernanceFromParentResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into SetGovernanceFromParentResponse") + } + return +} + +// setGovernanceFromParent implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) setGovernanceFromParent(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tenancies/{childTenancyId}/actions/setGovernanceFromParent", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response SetGovernanceFromParentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/SetGovernanceFromParent" + err = common.PostProcessServiceError(err, "Identity", "SetGovernanceFromParent", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UnsetGovernanceFromChild Remove the governing tenancy of child tenancy (request originated from child) +// A default retry strategy applies to this operation UnsetGovernanceFromChild() +func (client IdentityClient) UnsetGovernanceFromChild(ctx context.Context, request UnsetGovernanceFromChildRequest) (response UnsetGovernanceFromChildResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.unsetGovernanceFromChild, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UnsetGovernanceFromChildResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UnsetGovernanceFromChildResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UnsetGovernanceFromChildResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UnsetGovernanceFromChildResponse") + } + return +} + +// unsetGovernanceFromChild implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) unsetGovernanceFromChild(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tenancies/{childTenancyId}/actions/unsetGovernanceFromChild", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UnsetGovernanceFromChildResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/UnsetGovernanceFromChild" + err = common.PostProcessServiceError(err, "Identity", "UnsetGovernanceFromChild", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UnsetGovernanceFromParent Remove the governing tenancy of child tenancy (request originated from parent) +// A default retry strategy applies to this operation UnsetGovernanceFromParent() +func (client IdentityClient) UnsetGovernanceFromParent(ctx context.Context, request UnsetGovernanceFromParentRequest) (response UnsetGovernanceFromParentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.unsetGovernanceFromParent, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UnsetGovernanceFromParentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UnsetGovernanceFromParentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UnsetGovernanceFromParentResponse); ok { + common.EcContext.UpdateEndOfWindow(time.Duration(240 * time.Second)) + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UnsetGovernanceFromParentResponse") + } + return +} + +// unsetGovernanceFromParent implements the OCIOperation interface (enables retrying operations) +func (client IdentityClient) unsetGovernanceFromParent(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/tenancies/{childTenancyId}/actions/unsetGovernanceFromParent", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UnsetGovernanceFromParentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tenancy/UnsetGovernanceFromParent" + err = common.PostProcessServiceError(err, "Identity", "UnsetGovernanceFromParent", apiReferenceLink) return response, err } @@ -7311,9 +8093,10 @@ func (client IdentityClient) resetIdpScimClient(ctx context.Context, request com } // UpdateAuthToken Updates the specified auth token's description. +// A default retry strategy applies to this operation UpdateAuthToken() func (client IdentityClient) UpdateAuthToken(ctx context.Context, request UpdateAuthTokenRequest) (response UpdateAuthTokenResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7355,6 +8138,8 @@ func (client IdentityClient) updateAuthToken(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthToken/UpdateAuthToken" + err = common.PostProcessServiceError(err, "Identity", "UpdateAuthToken", apiReferenceLink) return response, err } @@ -7362,10 +8147,11 @@ func (client IdentityClient) updateAuthToken(ctx context.Context, request common return response, err } -// UpdateAuthenticationPolicy Updates authentication policy for the specified tenancy +// UpdateAuthenticationPolicy Updates authentication policy for the specified tenancy. +// A default retry strategy applies to this operation UpdateAuthenticationPolicy() func (client IdentityClient) UpdateAuthenticationPolicy(ctx context.Context, request UpdateAuthenticationPolicyRequest) (response UpdateAuthenticationPolicyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7407,6 +8193,8 @@ func (client IdentityClient) updateAuthenticationPolicy(ctx context.Context, req defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/AuthenticationPolicy/UpdateAuthenticationPolicy" + err = common.PostProcessServiceError(err, "Identity", "UpdateAuthenticationPolicy", apiReferenceLink) return response, err } @@ -7415,9 +8203,10 @@ func (client IdentityClient) updateAuthenticationPolicy(ctx context.Context, req } // UpdateCompartment Updates the specified compartment's description or name. You can't update the root compartment. +// A default retry strategy applies to this operation UpdateCompartment() func (client IdentityClient) UpdateCompartment(ctx context.Context, request UpdateCompartmentRequest) (response UpdateCompartmentResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7459,6 +8248,8 @@ func (client IdentityClient) updateCompartment(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Compartment/UpdateCompartment" + err = common.PostProcessServiceError(err, "Identity", "UpdateCompartment", apiReferenceLink) return response, err } @@ -7467,9 +8258,10 @@ func (client IdentityClient) updateCompartment(ctx context.Context, request comm } // UpdateCustomerSecretKey Updates the specified secret key's description. +// A default retry strategy applies to this operation UpdateCustomerSecretKey() func (client IdentityClient) UpdateCustomerSecretKey(ctx context.Context, request UpdateCustomerSecretKeyRequest) (response UpdateCustomerSecretKeyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7511,6 +8303,8 @@ func (client IdentityClient) updateCustomerSecretKey(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/CustomerSecretKeySummary/UpdateCustomerSecretKey" + err = common.PostProcessServiceError(err, "Identity", "UpdateCustomerSecretKey", apiReferenceLink) return response, err } @@ -7518,19 +8312,13 @@ func (client IdentityClient) updateCustomerSecretKey(ctx context.Context, reques return response, err } -// UpdateDomain Updates domain information and associated stripe. This is an asynchronous call where -// the associated stripe and domain are updated. -// To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide -// the async operation's status. -// - If the {@code displayName} is not unique within the tenancy, returns 400 BAD REQUEST. -// - If any field other than {@code description} is requested to be updated for DEFAULT domain, -// returns 400 BAD REQUEST. -// - If Domain is not active or being updated, returns 400 BAD REQUEST. -// - If Domain {@code type} is DEFAULT or DEFAULT_LIGHTWEIGHT, return 400 BAD Request -// - If the domain doesn't exists, returns 404 NOT FOUND. +// UpdateDomain (For tenancies that support identity domains) Updates identity domain information and the associated Identity Cloud Service (IDCS) stripe. +// To track the progress of the request, submitting an HTTP GET on the /iamWorkRequests/{iamWorkRequestsId} endpoint retrieves +// the operation's status. +// A default retry strategy applies to this operation UpdateDomain() func (client IdentityClient) UpdateDomain(ctx context.Context, request UpdateDomainRequest) (response UpdateDomainResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7572,6 +8360,8 @@ func (client IdentityClient) updateDomain(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Domain/UpdateDomain" + err = common.PostProcessServiceError(err, "Identity", "UpdateDomain", apiReferenceLink) return response, err } @@ -7580,9 +8370,10 @@ func (client IdentityClient) updateDomain(ctx context.Context, request common.OC } // UpdateDynamicGroup Updates the specified dynamic group. +// A default retry strategy applies to this operation UpdateDynamicGroup() func (client IdentityClient) UpdateDynamicGroup(ctx context.Context, request UpdateDynamicGroupRequest) (response UpdateDynamicGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7624,6 +8415,8 @@ func (client IdentityClient) updateDynamicGroup(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/DynamicGroup/UpdateDynamicGroup" + err = common.PostProcessServiceError(err, "Identity", "UpdateDynamicGroup", apiReferenceLink) return response, err } @@ -7632,9 +8425,10 @@ func (client IdentityClient) updateDynamicGroup(ctx context.Context, request com } // UpdateGroup Updates the specified group. +// A default retry strategy applies to this operation UpdateGroup() func (client IdentityClient) UpdateGroup(ctx context.Context, request UpdateGroupRequest) (response UpdateGroupResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7676,6 +8470,8 @@ func (client IdentityClient) updateGroup(ctx context.Context, request common.OCI defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Group/UpdateGroup" + err = common.PostProcessServiceError(err, "Identity", "UpdateGroup", apiReferenceLink) return response, err } @@ -7685,9 +8481,10 @@ func (client IdentityClient) updateGroup(ctx context.Context, request common.OCI // UpdateIdentityProvider **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Updates the specified identity provider. +// A default retry strategy applies to this operation UpdateIdentityProvider() func (client IdentityClient) UpdateIdentityProvider(ctx context.Context, request UpdateIdentityProviderRequest) (response UpdateIdentityProviderResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7729,6 +8526,8 @@ func (client IdentityClient) updateIdentityProvider(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdentityProvider/UpdateIdentityProvider" + err = common.PostProcessServiceError(err, "Identity", "UpdateIdentityProvider", apiReferenceLink) return response, err } @@ -7738,9 +8537,10 @@ func (client IdentityClient) updateIdentityProvider(ctx context.Context, request // UpdateIdpGroupMapping **Deprecated.** For more information, see Deprecated IAM Service APIs (https://docs.cloud.oracle.com/Content/Identity/Reference/deprecatediamapis.htm). // Updates the specified group mapping. +// A default retry strategy applies to this operation UpdateIdpGroupMapping() func (client IdentityClient) UpdateIdpGroupMapping(ctx context.Context, request UpdateIdpGroupMappingRequest) (response UpdateIdpGroupMappingResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7782,6 +8582,8 @@ func (client IdentityClient) updateIdpGroupMapping(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/IdpGroupMapping/UpdateIdpGroupMapping" + err = common.PostProcessServiceError(err, "Identity", "UpdateIdpGroupMapping", apiReferenceLink) return response, err } @@ -7790,9 +8592,10 @@ func (client IdentityClient) updateIdpGroupMapping(ctx context.Context, request } // UpdateNetworkSource Updates the specified network source. +// A default retry strategy applies to this operation UpdateNetworkSource() func (client IdentityClient) UpdateNetworkSource(ctx context.Context, request UpdateNetworkSourceRequest) (response UpdateNetworkSourceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7834,6 +8637,8 @@ func (client IdentityClient) updateNetworkSource(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/NetworkSources/UpdateNetworkSource" + err = common.PostProcessServiceError(err, "Identity", "UpdateNetworkSource", apiReferenceLink) return response, err } @@ -7842,9 +8647,10 @@ func (client IdentityClient) updateNetworkSource(ctx context.Context, request co } // UpdateOAuthClientCredential Updates Oauth token for the user +// A default retry strategy applies to this operation UpdateOAuthClientCredential() func (client IdentityClient) UpdateOAuthClientCredential(ctx context.Context, request UpdateOAuthClientCredentialRequest) (response UpdateOAuthClientCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7886,6 +8692,8 @@ func (client IdentityClient) updateOAuthClientCredential(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/UpdateOAuthClientCredential" + err = common.PostProcessServiceError(err, "Identity", "UpdateOAuthClientCredential", apiReferenceLink) return response, err } @@ -7895,9 +8703,10 @@ func (client IdentityClient) updateOAuthClientCredential(ctx context.Context, re // UpdatePolicy Updates the specified policy. You can update the description or the policy statements themselves. // Policy changes take effect typically within 10 seconds. +// A default retry strategy applies to this operation UpdatePolicy() func (client IdentityClient) UpdatePolicy(ctx context.Context, request UpdatePolicyRequest) (response UpdatePolicyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7939,6 +8748,8 @@ func (client IdentityClient) updatePolicy(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Policy/UpdatePolicy" + err = common.PostProcessServiceError(err, "Identity", "UpdatePolicy", apiReferenceLink) return response, err } @@ -7947,9 +8758,10 @@ func (client IdentityClient) updatePolicy(ctx context.Context, request common.OC } // UpdateSmtpCredential Updates the specified SMTP credential's description. +// A default retry strategy applies to this operation UpdateSmtpCredential() func (client IdentityClient) UpdateSmtpCredential(ctx context.Context, request UpdateSmtpCredentialRequest) (response UpdateSmtpCredentialResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -7991,6 +8803,8 @@ func (client IdentityClient) updateSmtpCredential(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SmtpCredentialSummary/UpdateSmtpCredential" + err = common.PostProcessServiceError(err, "Identity", "UpdateSmtpCredential", apiReferenceLink) return response, err } @@ -8000,9 +8814,10 @@ func (client IdentityClient) updateSmtpCredential(ctx context.Context, request c // UpdateSwiftPassword **Deprecated. Use UpdateAuthToken instead.** // Updates the specified Swift password's description. +// A default retry strategy applies to this operation UpdateSwiftPassword() func (client IdentityClient) UpdateSwiftPassword(ctx context.Context, request UpdateSwiftPasswordRequest) (response UpdateSwiftPasswordResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8044,6 +8859,8 @@ func (client IdentityClient) updateSwiftPassword(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/SwiftPassword/UpdateSwiftPassword" + err = common.PostProcessServiceError(err, "Identity", "UpdateSwiftPassword", apiReferenceLink) return response, err } @@ -8059,9 +8876,10 @@ func (client IdentityClient) updateSwiftPassword(ctx context.Context, request co // already applied to a resource do not change. // You cannot remove list values that appear in a TagDefault. To remove a list value that // appears in a TagDefault, first update the TagDefault to use a different value. +// A default retry strategy applies to this operation UpdateTag() func (client IdentityClient) UpdateTag(ctx context.Context, request UpdateTagRequest) (response UpdateTagResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8103,6 +8921,8 @@ func (client IdentityClient) updateTag(ctx context.Context, request common.OCIRe defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/Tag/UpdateTag" + err = common.PostProcessServiceError(err, "Identity", "UpdateTag", apiReferenceLink) return response, err } @@ -8115,9 +8935,10 @@ func (client IdentityClient) updateTag(ctx context.Context, request common.OCIRe // If no value is set, resource creation is blocked. // * If the `isRequired` flag is set to "true", the value is set during resource creation. // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. +// A default retry strategy applies to this operation UpdateTagDefault() func (client IdentityClient) UpdateTagDefault(ctx context.Context, request UpdateTagDefaultRequest) (response UpdateTagDefaultResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8159,6 +8980,8 @@ func (client IdentityClient) updateTagDefault(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagDefault/UpdateTagDefault" + err = common.PostProcessServiceError(err, "Identity", "UpdateTagDefault", apiReferenceLink) return response, err } @@ -8171,11 +8994,12 @@ func (client IdentityClient) updateTagDefault(ctx context.Context, request commo // namespace (changing `isRetired` from 'true' to 'false') does not reactivate tag definitions. // To reactivate the tag definitions, you must reactivate each one individually *after* you reactivate the namespace, // using UpdateTag. For more information about retiring tag namespaces, see -// Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). +// Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). // You can't add a namespace with the same name as a retired namespace in the same tenancy. +// A default retry strategy applies to this operation UpdateTagNamespace() func (client IdentityClient) UpdateTagNamespace(ctx context.Context, request UpdateTagNamespaceRequest) (response UpdateTagNamespaceResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8217,6 +9041,8 @@ func (client IdentityClient) updateTagNamespace(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagNamespace/UpdateTagNamespace" + err = common.PostProcessServiceError(err, "Identity", "UpdateTagNamespace", apiReferenceLink) return response, err } @@ -8226,9 +9052,10 @@ func (client IdentityClient) updateTagNamespace(ctx context.Context, request com // UpdateTagRule Updates the specified tag rule. You can update the description, activity state or the ruleText itself. // tag rule changes take effect typically within 10 seconds. +// A default retry strategy applies to this operation UpdateTagRule() func (client IdentityClient) UpdateTagRule(ctx context.Context, request UpdateTagRuleRequest) (response UpdateTagRuleResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8270,6 +9097,8 @@ func (client IdentityClient) updateTagRule(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/TagRule/UpdateTagRule" + err = common.PostProcessServiceError(err, "Identity", "UpdateTagRule", apiReferenceLink) return response, err } @@ -8278,9 +9107,10 @@ func (client IdentityClient) updateTagRule(ctx context.Context, request common.O } // UpdateUser Updates the description of the specified user. +// A default retry strategy applies to this operation UpdateUser() func (client IdentityClient) UpdateUser(ctx context.Context, request UpdateUserRequest) (response UpdateUserResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8322,6 +9152,8 @@ func (client IdentityClient) updateUser(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/UpdateUser" + err = common.PostProcessServiceError(err, "Identity", "UpdateUser", apiReferenceLink) return response, err } @@ -8330,9 +9162,10 @@ func (client IdentityClient) updateUser(ctx context.Context, request common.OCIR } // UpdateUserCapabilities Updates the capabilities of the specified user. +// A default retry strategy applies to this operation UpdateUserCapabilities() func (client IdentityClient) UpdateUserCapabilities(ctx context.Context, request UpdateUserCapabilitiesRequest) (response UpdateUserCapabilitiesResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8374,6 +9207,8 @@ func (client IdentityClient) updateUserCapabilities(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/UpdateUserCapabilities" + err = common.PostProcessServiceError(err, "Identity", "UpdateUserCapabilities", apiReferenceLink) return response, err } @@ -8382,9 +9217,10 @@ func (client IdentityClient) updateUserCapabilities(ctx context.Context, request } // UpdateUserState Updates the state of the specified user. +// A default retry strategy applies to this operation UpdateUserState() func (client IdentityClient) UpdateUserState(ctx context.Context, request UpdateUserStateRequest) (response UpdateUserStateResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8426,6 +9262,8 @@ func (client IdentityClient) updateUserState(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/User/UpdateUserState" + err = common.PostProcessServiceError(err, "Identity", "UpdateUserState", apiReferenceLink) return response, err } @@ -8445,9 +9283,10 @@ func (client IdentityClient) updateUserState(ctx context.Context, request common // you have. Also confirm you're working in the correct compartment. // After you send your request, the new object's `lifecycleState` will temporarily be CREATING. Before using // the object, first make sure its `lifecycleState` has changed to ACTIVE. +// A default retry strategy applies to this operation UploadApiKey() func (client IdentityClient) UploadApiKey(ctx context.Context, request UploadApiKeyRequest) (response UploadApiKeyResponse, err error) { var ociResponse common.OCIResponse - policy := common.NoRetryPolicy() + policy := common.DefaultRetryPolicy() if client.RetryPolicy() != nil { policy = *client.RetryPolicy() } @@ -8494,6 +9333,8 @@ func (client IdentityClient) uploadApiKey(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/identity/20160918/ApiKey/UploadApiKey" + err = common.PostProcessServiceError(err, "Identity", "UploadApiKey", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go index b697ac5afb..284687dc7b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // IdentityProvider The resulting base object when you add an identity provider to your tenancy. A @@ -21,7 +23,7 @@ import ( // Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). // **Warning:** Oracle recommends that you avoid using any confidential information when you supply string // values using the API. type IdentityProvider interface { @@ -129,6 +131,7 @@ func (m *identityprovider) UnmarshalPolymorphicJSON(data []byte) (interface{}, e err = json.Unmarshal(data, &mm) return mm, err default: + common.Logf("Recieved unsupported enum value for IdentityProvider: %s.", m.Protocol) return *m, nil } } @@ -187,6 +190,21 @@ func (m identityprovider) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m identityprovider) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIdentityProviderLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIdentityProviderLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // IdentityProviderLifecycleStateEnum Enum with underlying type: string type IdentityProviderLifecycleStateEnum string @@ -199,7 +217,7 @@ const ( IdentityProviderLifecycleStateDeleted IdentityProviderLifecycleStateEnum = "DELETED" ) -var mappingIdentityProviderLifecycleState = map[string]IdentityProviderLifecycleStateEnum{ +var mappingIdentityProviderLifecycleStateEnum = map[string]IdentityProviderLifecycleStateEnum{ "CREATING": IdentityProviderLifecycleStateCreating, "ACTIVE": IdentityProviderLifecycleStateActive, "INACTIVE": IdentityProviderLifecycleStateInactive, @@ -207,11 +225,36 @@ var mappingIdentityProviderLifecycleState = map[string]IdentityProviderLifecycle "DELETED": IdentityProviderLifecycleStateDeleted, } +var mappingIdentityProviderLifecycleStateEnumLowerCase = map[string]IdentityProviderLifecycleStateEnum{ + "creating": IdentityProviderLifecycleStateCreating, + "active": IdentityProviderLifecycleStateActive, + "inactive": IdentityProviderLifecycleStateInactive, + "deleting": IdentityProviderLifecycleStateDeleting, + "deleted": IdentityProviderLifecycleStateDeleted, +} + // GetIdentityProviderLifecycleStateEnumValues Enumerates the set of values for IdentityProviderLifecycleStateEnum func GetIdentityProviderLifecycleStateEnumValues() []IdentityProviderLifecycleStateEnum { values := make([]IdentityProviderLifecycleStateEnum, 0) - for _, v := range mappingIdentityProviderLifecycleState { + for _, v := range mappingIdentityProviderLifecycleStateEnum { values = append(values, v) } return values } + +// GetIdentityProviderLifecycleStateEnumStringValues Enumerates the set of values in String for IdentityProviderLifecycleStateEnum +func GetIdentityProviderLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingIdentityProviderLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIdentityProviderLifecycleStateEnum(val string) (IdentityProviderLifecycleStateEnum, bool) { + enum, ok := mappingIdentityProviderLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go new file mode 100644 index 0000000000..d05f0bd50b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/identity_provider_group_summary.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IdentityProviderGroupSummary A group created in an identity provider that can be mapped to a group in OCI +type IdentityProviderGroupSummary struct { + + // The OCID of the `IdentityProviderGroup`. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the `IdentityProvider` this group belongs to. + IdentityProviderId *string `mandatory:"false" json:"identityProviderId"` + + // Display name of the group + DisplayName *string `mandatory:"false" json:"displayName"` + + // Display name of the group + Name *string `mandatory:"false" json:"name"` + + // Identifier of the group in the identity provider + ExternalIdentifier *string `mandatory:"false" json:"externalIdentifier"` + + // Date and time the `IdentityProviderGroup` was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time the `IdentityProviderGroup` was last modified, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeModified *common.SDKTime `mandatory:"false" json:"timeModified"` +} + +func (m IdentityProviderGroupSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IdentityProviderGroupSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go new file mode 100644 index 0000000000..c369498ccd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/idp_group_mapping.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IdpGroupMapping A mapping between a single group defined by the identity provider (IdP) you're federating with +// and a single IAM Service Group in Oracle Cloud Infrastructure. +// For more information about group mappings and what they're for, see +// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). +// A given IdP group can be mapped to zero, one, or multiple IAM Service groups, and vice versa. +// But each `IdPGroupMapping` object is between only a single IdP group and IAM Service group. +// Each `IdPGroupMapping` object has its own OCID. +// **Note:** Any users who are in more than 50 IdP groups cannot be authenticated to use the Oracle +// Cloud Infrastructure Console. +type IdpGroupMapping struct { + + // The OCID of the `IdpGroupMapping`. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the `IdentityProvider` this mapping belongs to. + IdpId *string `mandatory:"true" json:"idpId"` + + // The name of the IdP group that is mapped to the IAM Service group. + IdpGroupName *string `mandatory:"true" json:"idpGroupName"` + + // The OCID of the IAM Service group that is mapped to the IdP group. + GroupId *string `mandatory:"true" json:"groupId"` + + // The OCID of the tenancy containing the `IdentityProvider`. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // Date and time the mapping was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The mapping's current state. After creating a mapping object, make sure its `lifecycleState` changes + // from CREATING to ACTIVE before using it. + LifecycleState IdpGroupMappingLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m IdpGroupMapping) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IdpGroupMapping) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIdpGroupMappingLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIdpGroupMappingLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// IdpGroupMappingLifecycleStateEnum Enum with underlying type: string +type IdpGroupMappingLifecycleStateEnum string + +// Set of constants representing the allowable values for IdpGroupMappingLifecycleStateEnum +const ( + IdpGroupMappingLifecycleStateCreating IdpGroupMappingLifecycleStateEnum = "CREATING" + IdpGroupMappingLifecycleStateActive IdpGroupMappingLifecycleStateEnum = "ACTIVE" + IdpGroupMappingLifecycleStateInactive IdpGroupMappingLifecycleStateEnum = "INACTIVE" + IdpGroupMappingLifecycleStateDeleting IdpGroupMappingLifecycleStateEnum = "DELETING" + IdpGroupMappingLifecycleStateDeleted IdpGroupMappingLifecycleStateEnum = "DELETED" +) + +var mappingIdpGroupMappingLifecycleStateEnum = map[string]IdpGroupMappingLifecycleStateEnum{ + "CREATING": IdpGroupMappingLifecycleStateCreating, + "ACTIVE": IdpGroupMappingLifecycleStateActive, + "INACTIVE": IdpGroupMappingLifecycleStateInactive, + "DELETING": IdpGroupMappingLifecycleStateDeleting, + "DELETED": IdpGroupMappingLifecycleStateDeleted, +} + +var mappingIdpGroupMappingLifecycleStateEnumLowerCase = map[string]IdpGroupMappingLifecycleStateEnum{ + "creating": IdpGroupMappingLifecycleStateCreating, + "active": IdpGroupMappingLifecycleStateActive, + "inactive": IdpGroupMappingLifecycleStateInactive, + "deleting": IdpGroupMappingLifecycleStateDeleting, + "deleted": IdpGroupMappingLifecycleStateDeleted, +} + +// GetIdpGroupMappingLifecycleStateEnumValues Enumerates the set of values for IdpGroupMappingLifecycleStateEnum +func GetIdpGroupMappingLifecycleStateEnumValues() []IdpGroupMappingLifecycleStateEnum { + values := make([]IdpGroupMappingLifecycleStateEnum, 0) + for _, v := range mappingIdpGroupMappingLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetIdpGroupMappingLifecycleStateEnumStringValues Enumerates the set of values in String for IdpGroupMappingLifecycleStateEnum +func GetIdpGroupMappingLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingIdpGroupMappingLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIdpGroupMappingLifecycleStateEnum(val string) (IdpGroupMappingLifecycleStateEnum, bool) { + enum, ok := mappingIdpGroupMappingLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go new file mode 100644 index 0000000000..34f8a4c6db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ImportStandardTagsDetails The representation of ImportStandardTagsDetails +type ImportStandardTagsDetails struct { + + // The OCID of the compartment where the bulk create request is submitted and where the tag namespaces will be created. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of standard tag namespace that will be imported in bulk + StandardTagNamespaceName *string `mandatory:"true" json:"standardTagNamespaceName"` +} + +func (m ImportStandardTagsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ImportStandardTagsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_request_response.go new file mode 100644 index 0000000000..50ea4da332 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/import_standard_tags_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ImportStandardTagsRequest wrapper for the ImportStandardTags operation +type ImportStandardTagsRequest struct { + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The request object for creating or updating standard tag namespace. + ImportStandardTagsDetails `contributesTo:"body"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ImportStandardTagsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ImportStandardTagsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ImportStandardTagsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ImportStandardTagsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ImportStandardTagsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ImportStandardTagsResponse wrapper for the ImportStandardTags operation +type ImportStandardTagsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response ImportStandardTagsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ImportStandardTagsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_allowed_domain_license_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_allowed_domain_license_types_request_response.go new file mode 100644 index 0000000000..8ec04b143e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_allowed_domain_license_types_request_response.go @@ -0,0 +1,92 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAllowedDomainLicenseTypesRequest wrapper for the ListAllowedDomainLicenseTypes operation +type ListAllowedDomainLicenseTypesRequest struct { + + // The license type of the identity domain. + CurrentLicenseTypeName *string `mandatory:"false" contributesTo:"query" name:"currentLicenseTypeName"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAllowedDomainLicenseTypesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAllowedDomainLicenseTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListAllowedDomainLicenseTypesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAllowedDomainLicenseTypesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAllowedDomainLicenseTypesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAllowedDomainLicenseTypesResponse wrapper for the ListAllowedDomainLicenseTypes operation +type ListAllowedDomainLicenseTypesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []AllowedDomainLicenseTypeSummary instance + Items []AllowedDomainLicenseTypeSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListAllowedDomainLicenseTypesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAllowedDomainLicenseTypesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_api_keys_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_api_keys_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go index 6af89a4a29..9063f05d8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_api_keys_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_api_keys_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListApiKeysRequest wrapper for the ListApiKeys operation @@ -31,6 +33,10 @@ func (request ListApiKeysRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListApiKeysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListApiKeysRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListApiKeysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListApiKeysResponse wrapper for the ListApiKeys operation type ListApiKeysResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_auth_tokens_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_auth_tokens_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go index 8d6cc459de..63bb45c6ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_auth_tokens_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_auth_tokens_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListAuthTokensRequest wrapper for the ListAuthTokens operation @@ -31,6 +33,10 @@ func (request ListAuthTokensRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListAuthTokensRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListAuthTokensRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAuthTokensRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListAuthTokensResponse wrapper for the ListAuthTokens operation type ListAuthTokensResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_availability_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_availability_domains_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go index 548b619c7e..e05056e64e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_availability_domains_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_availability_domains_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListAvailabilityDomainsRequest wrapper for the ListAvailabilityDomains operation @@ -31,6 +33,10 @@ func (request ListAvailabilityDomainsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListAvailabilityDomainsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListAvailabilityDomainsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAvailabilityDomainsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListAvailabilityDomainsResponse wrapper for the ListAvailabilityDomains operation type ListAvailabilityDomainsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_action_resource_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_action_resource_types_request_response.go new file mode 100644 index 0000000000..fafdf52a39 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_action_resource_types_request_response.go @@ -0,0 +1,143 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBulkActionResourceTypesRequest wrapper for the ListBulkActionResourceTypes operation +type ListBulkActionResourceTypesRequest struct { + + // The type of bulk action. + BulkActionType ListBulkActionResourceTypesBulkActionTypeEnum `mandatory:"true" contributesTo:"query" name:"bulkActionType" omitEmpty:"true"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBulkActionResourceTypesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBulkActionResourceTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBulkActionResourceTypesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBulkActionResourceTypesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBulkActionResourceTypesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListBulkActionResourceTypesBulkActionTypeEnum(string(request.BulkActionType)); !ok && request.BulkActionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BulkActionType: %s. Supported values are: %s.", request.BulkActionType, strings.Join(GetListBulkActionResourceTypesBulkActionTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBulkActionResourceTypesResponse wrapper for the ListBulkActionResourceTypes operation +type ListBulkActionResourceTypesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of BulkActionResourceTypeCollection instances + BulkActionResourceTypeCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListBulkActionResourceTypesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBulkActionResourceTypesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListBulkActionResourceTypesBulkActionTypeEnum Enum with underlying type: string +type ListBulkActionResourceTypesBulkActionTypeEnum string + +// Set of constants representing the allowable values for ListBulkActionResourceTypesBulkActionTypeEnum +const ( + ListBulkActionResourceTypesBulkActionTypeMoveResources ListBulkActionResourceTypesBulkActionTypeEnum = "BULK_MOVE_RESOURCES" + ListBulkActionResourceTypesBulkActionTypeDeleteResources ListBulkActionResourceTypesBulkActionTypeEnum = "BULK_DELETE_RESOURCES" +) + +var mappingListBulkActionResourceTypesBulkActionTypeEnum = map[string]ListBulkActionResourceTypesBulkActionTypeEnum{ + "BULK_MOVE_RESOURCES": ListBulkActionResourceTypesBulkActionTypeMoveResources, + "BULK_DELETE_RESOURCES": ListBulkActionResourceTypesBulkActionTypeDeleteResources, +} + +var mappingListBulkActionResourceTypesBulkActionTypeEnumLowerCase = map[string]ListBulkActionResourceTypesBulkActionTypeEnum{ + "bulk_move_resources": ListBulkActionResourceTypesBulkActionTypeMoveResources, + "bulk_delete_resources": ListBulkActionResourceTypesBulkActionTypeDeleteResources, +} + +// GetListBulkActionResourceTypesBulkActionTypeEnumValues Enumerates the set of values for ListBulkActionResourceTypesBulkActionTypeEnum +func GetListBulkActionResourceTypesBulkActionTypeEnumValues() []ListBulkActionResourceTypesBulkActionTypeEnum { + values := make([]ListBulkActionResourceTypesBulkActionTypeEnum, 0) + for _, v := range mappingListBulkActionResourceTypesBulkActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetListBulkActionResourceTypesBulkActionTypeEnumStringValues Enumerates the set of values in String for ListBulkActionResourceTypesBulkActionTypeEnum +func GetListBulkActionResourceTypesBulkActionTypeEnumStringValues() []string { + return []string{ + "BULK_MOVE_RESOURCES", + "BULK_DELETE_RESOURCES", + } +} + +// GetMappingListBulkActionResourceTypesBulkActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBulkActionResourceTypesBulkActionTypeEnum(val string) (ListBulkActionResourceTypesBulkActionTypeEnum, bool) { + enum, ok := mappingListBulkActionResourceTypesBulkActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_edit_tags_resource_types_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_edit_tags_resource_types_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_edit_tags_resource_types_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_edit_tags_resource_types_request_response.go index 61105400e2..06cbf4efc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_bulk_edit_tags_resource_types_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_bulk_edit_tags_resource_types_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListBulkEditTagsResourceTypesRequest wrapper for the ListBulkEditTagsResourceTypes operation @@ -34,6 +36,10 @@ func (request ListBulkEditTagsResourceTypesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListBulkEditTagsResourceTypesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ListBulkEditTagsResourceTypesRequest) RetryPolicy() *common.RetryP return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBulkEditTagsResourceTypesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListBulkEditTagsResourceTypesResponse wrapper for the ListBulkEditTagsResourceTypes operation type ListBulkEditTagsResourceTypesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_compartments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_compartments_request_response.go new file mode 100644 index 0000000000..38d6a5a865 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_compartments_request_response.go @@ -0,0 +1,314 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCompartmentsRequest wrapper for the ListCompartments operation +type ListCompartmentsRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // Valid values are `ANY` and `ACCESSIBLE`. Default is `ANY`. + // Setting this to `ACCESSIBLE` returns only those compartments for which the + // user has INSPECT permissions directly or indirectly (permissions can be on a + // resource in a subcompartment). For the compartments on which the user indirectly has + // INSPECT permissions, a restricted set of fields is returned. + // When set to `ANY` permissions are not checked. + AccessLevel ListCompartmentsAccessLevelEnum `mandatory:"false" contributesTo:"query" name:"accessLevel" omitEmpty:"true"` + + // Default is false. Can only be set to true when performing + // ListCompartments on the tenancy (root compartment). + // When set to true, the hierarchy of compartments is traversed + // and all compartments and subcompartments in the tenancy are + // returned depending on the the setting of `accessLevel`. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // This parameter is required to retrieve securityZoneId associated with the compartment. + VerboseLevel ListCompartmentsVerboseLevelEnum `mandatory:"false" contributesTo:"query" name:"verboseLevel" omitEmpty:"true"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListCompartmentsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListCompartmentsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState CompartmentLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCompartmentsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCompartmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCompartmentsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCompartmentsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCompartmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListCompartmentsAccessLevelEnum(string(request.AccessLevel)); !ok && request.AccessLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AccessLevel: %s. Supported values are: %s.", request.AccessLevel, strings.Join(GetListCompartmentsAccessLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingListCompartmentsVerboseLevelEnum(string(request.VerboseLevel)); !ok && request.VerboseLevel != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for VerboseLevel: %s. Supported values are: %s.", request.VerboseLevel, strings.Join(GetListCompartmentsVerboseLevelEnumStringValues(), ","))) + } + if _, ok := GetMappingListCompartmentsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListCompartmentsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListCompartmentsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListCompartmentsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingCompartmentLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetCompartmentLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCompartmentsResponse wrapper for the ListCompartments operation +type ListCompartmentsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Compartment instances + Items []Compartment `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListCompartmentsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCompartmentsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListCompartmentsAccessLevelEnum Enum with underlying type: string +type ListCompartmentsAccessLevelEnum string + +// Set of constants representing the allowable values for ListCompartmentsAccessLevelEnum +const ( + ListCompartmentsAccessLevelAny ListCompartmentsAccessLevelEnum = "ANY" + ListCompartmentsAccessLevelAccessible ListCompartmentsAccessLevelEnum = "ACCESSIBLE" +) + +var mappingListCompartmentsAccessLevelEnum = map[string]ListCompartmentsAccessLevelEnum{ + "ANY": ListCompartmentsAccessLevelAny, + "ACCESSIBLE": ListCompartmentsAccessLevelAccessible, +} + +var mappingListCompartmentsAccessLevelEnumLowerCase = map[string]ListCompartmentsAccessLevelEnum{ + "any": ListCompartmentsAccessLevelAny, + "accessible": ListCompartmentsAccessLevelAccessible, +} + +// GetListCompartmentsAccessLevelEnumValues Enumerates the set of values for ListCompartmentsAccessLevelEnum +func GetListCompartmentsAccessLevelEnumValues() []ListCompartmentsAccessLevelEnum { + values := make([]ListCompartmentsAccessLevelEnum, 0) + for _, v := range mappingListCompartmentsAccessLevelEnum { + values = append(values, v) + } + return values +} + +// GetListCompartmentsAccessLevelEnumStringValues Enumerates the set of values in String for ListCompartmentsAccessLevelEnum +func GetListCompartmentsAccessLevelEnumStringValues() []string { + return []string{ + "ANY", + "ACCESSIBLE", + } +} + +// GetMappingListCompartmentsAccessLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCompartmentsAccessLevelEnum(val string) (ListCompartmentsAccessLevelEnum, bool) { + enum, ok := mappingListCompartmentsAccessLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCompartmentsVerboseLevelEnum Enum with underlying type: string +type ListCompartmentsVerboseLevelEnum string + +// Set of constants representing the allowable values for ListCompartmentsVerboseLevelEnum +const ( + ListCompartmentsVerboseLevelSecurityzone ListCompartmentsVerboseLevelEnum = "securityZone" +) + +var mappingListCompartmentsVerboseLevelEnum = map[string]ListCompartmentsVerboseLevelEnum{ + "securityZone": ListCompartmentsVerboseLevelSecurityzone, +} + +var mappingListCompartmentsVerboseLevelEnumLowerCase = map[string]ListCompartmentsVerboseLevelEnum{ + "securityzone": ListCompartmentsVerboseLevelSecurityzone, +} + +// GetListCompartmentsVerboseLevelEnumValues Enumerates the set of values for ListCompartmentsVerboseLevelEnum +func GetListCompartmentsVerboseLevelEnumValues() []ListCompartmentsVerboseLevelEnum { + values := make([]ListCompartmentsVerboseLevelEnum, 0) + for _, v := range mappingListCompartmentsVerboseLevelEnum { + values = append(values, v) + } + return values +} + +// GetListCompartmentsVerboseLevelEnumStringValues Enumerates the set of values in String for ListCompartmentsVerboseLevelEnum +func GetListCompartmentsVerboseLevelEnumStringValues() []string { + return []string{ + "securityZone", + } +} + +// GetMappingListCompartmentsVerboseLevelEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCompartmentsVerboseLevelEnum(val string) (ListCompartmentsVerboseLevelEnum, bool) { + enum, ok := mappingListCompartmentsVerboseLevelEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCompartmentsSortByEnum Enum with underlying type: string +type ListCompartmentsSortByEnum string + +// Set of constants representing the allowable values for ListCompartmentsSortByEnum +const ( + ListCompartmentsSortByTimecreated ListCompartmentsSortByEnum = "TIMECREATED" + ListCompartmentsSortByName ListCompartmentsSortByEnum = "NAME" +) + +var mappingListCompartmentsSortByEnum = map[string]ListCompartmentsSortByEnum{ + "TIMECREATED": ListCompartmentsSortByTimecreated, + "NAME": ListCompartmentsSortByName, +} + +var mappingListCompartmentsSortByEnumLowerCase = map[string]ListCompartmentsSortByEnum{ + "timecreated": ListCompartmentsSortByTimecreated, + "name": ListCompartmentsSortByName, +} + +// GetListCompartmentsSortByEnumValues Enumerates the set of values for ListCompartmentsSortByEnum +func GetListCompartmentsSortByEnumValues() []ListCompartmentsSortByEnum { + values := make([]ListCompartmentsSortByEnum, 0) + for _, v := range mappingListCompartmentsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListCompartmentsSortByEnumStringValues Enumerates the set of values in String for ListCompartmentsSortByEnum +func GetListCompartmentsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListCompartmentsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCompartmentsSortByEnum(val string) (ListCompartmentsSortByEnum, bool) { + enum, ok := mappingListCompartmentsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListCompartmentsSortOrderEnum Enum with underlying type: string +type ListCompartmentsSortOrderEnum string + +// Set of constants representing the allowable values for ListCompartmentsSortOrderEnum +const ( + ListCompartmentsSortOrderAsc ListCompartmentsSortOrderEnum = "ASC" + ListCompartmentsSortOrderDesc ListCompartmentsSortOrderEnum = "DESC" +) + +var mappingListCompartmentsSortOrderEnum = map[string]ListCompartmentsSortOrderEnum{ + "ASC": ListCompartmentsSortOrderAsc, + "DESC": ListCompartmentsSortOrderDesc, +} + +var mappingListCompartmentsSortOrderEnumLowerCase = map[string]ListCompartmentsSortOrderEnum{ + "asc": ListCompartmentsSortOrderAsc, + "desc": ListCompartmentsSortOrderDesc, +} + +// GetListCompartmentsSortOrderEnumValues Enumerates the set of values for ListCompartmentsSortOrderEnum +func GetListCompartmentsSortOrderEnumValues() []ListCompartmentsSortOrderEnum { + values := make([]ListCompartmentsSortOrderEnum, 0) + for _, v := range mappingListCompartmentsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListCompartmentsSortOrderEnumStringValues Enumerates the set of values in String for ListCompartmentsSortOrderEnum +func GetListCompartmentsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListCompartmentsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListCompartmentsSortOrderEnum(val string) (ListCompartmentsSortOrderEnum, bool) { + enum, ok := mappingListCompartmentsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_cost_tracking_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_cost_tracking_tags_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_cost_tracking_tags_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_cost_tracking_tags_request_response.go index 5d6778c501..2f66bf1631 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_cost_tracking_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_cost_tracking_tags_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCostTrackingTagsRequest wrapper for the ListCostTrackingTags operation @@ -37,6 +39,10 @@ func (request ListCostTrackingTagsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCostTrackingTagsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request ListCostTrackingTagsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCostTrackingTagsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCostTrackingTagsResponse wrapper for the ListCostTrackingTags operation type ListCostTrackingTagsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_customer_secret_keys_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_customer_secret_keys_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_customer_secret_keys_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_customer_secret_keys_request_response.go index af86af2139..50009039ff 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_customer_secret_keys_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_customer_secret_keys_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListCustomerSecretKeysRequest wrapper for the ListCustomerSecretKeys operation @@ -31,6 +33,10 @@ func (request ListCustomerSecretKeysRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListCustomerSecretKeysRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListCustomerSecretKeysRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCustomerSecretKeysRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListCustomerSecretKeysResponse wrapper for the ListCustomerSecretKeys operation type ListCustomerSecretKeysResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_db_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_db_credentials_request_response.go new file mode 100644 index 0000000000..902d923e7d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_db_credentials_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDbCredentialsRequest wrapper for the ListDbCredentials operation +type ListDbCredentialsRequest struct { + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListDbCredentialsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListDbCredentialsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState DbCredentialLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDbCredentialsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDbCredentialsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDbCredentialsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDbCredentialsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDbCredentialsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDbCredentialsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDbCredentialsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDbCredentialsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDbCredentialsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDbCredentialLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDbCredentialLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDbCredentialsResponse wrapper for the ListDbCredentials operation +type ListDbCredentialsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DbCredentialSummary instances + Items []DbCredentialSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListDbCredentialsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDbCredentialsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDbCredentialsSortByEnum Enum with underlying type: string +type ListDbCredentialsSortByEnum string + +// Set of constants representing the allowable values for ListDbCredentialsSortByEnum +const ( + ListDbCredentialsSortByTimecreated ListDbCredentialsSortByEnum = "TIMECREATED" + ListDbCredentialsSortByName ListDbCredentialsSortByEnum = "NAME" +) + +var mappingListDbCredentialsSortByEnum = map[string]ListDbCredentialsSortByEnum{ + "TIMECREATED": ListDbCredentialsSortByTimecreated, + "NAME": ListDbCredentialsSortByName, +} + +var mappingListDbCredentialsSortByEnumLowerCase = map[string]ListDbCredentialsSortByEnum{ + "timecreated": ListDbCredentialsSortByTimecreated, + "name": ListDbCredentialsSortByName, +} + +// GetListDbCredentialsSortByEnumValues Enumerates the set of values for ListDbCredentialsSortByEnum +func GetListDbCredentialsSortByEnumValues() []ListDbCredentialsSortByEnum { + values := make([]ListDbCredentialsSortByEnum, 0) + for _, v := range mappingListDbCredentialsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDbCredentialsSortByEnumStringValues Enumerates the set of values in String for ListDbCredentialsSortByEnum +func GetListDbCredentialsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListDbCredentialsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDbCredentialsSortByEnum(val string) (ListDbCredentialsSortByEnum, bool) { + enum, ok := mappingListDbCredentialsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDbCredentialsSortOrderEnum Enum with underlying type: string +type ListDbCredentialsSortOrderEnum string + +// Set of constants representing the allowable values for ListDbCredentialsSortOrderEnum +const ( + ListDbCredentialsSortOrderAsc ListDbCredentialsSortOrderEnum = "ASC" + ListDbCredentialsSortOrderDesc ListDbCredentialsSortOrderEnum = "DESC" +) + +var mappingListDbCredentialsSortOrderEnum = map[string]ListDbCredentialsSortOrderEnum{ + "ASC": ListDbCredentialsSortOrderAsc, + "DESC": ListDbCredentialsSortOrderDesc, +} + +var mappingListDbCredentialsSortOrderEnumLowerCase = map[string]ListDbCredentialsSortOrderEnum{ + "asc": ListDbCredentialsSortOrderAsc, + "desc": ListDbCredentialsSortOrderDesc, +} + +// GetListDbCredentialsSortOrderEnumValues Enumerates the set of values for ListDbCredentialsSortOrderEnum +func GetListDbCredentialsSortOrderEnumValues() []ListDbCredentialsSortOrderEnum { + values := make([]ListDbCredentialsSortOrderEnum, 0) + for _, v := range mappingListDbCredentialsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDbCredentialsSortOrderEnumStringValues Enumerates the set of values in String for ListDbCredentialsSortOrderEnum +func GetListDbCredentialsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDbCredentialsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDbCredentialsSortOrderEnum(val string) (ListDbCredentialsSortOrderEnum, bool) { + enum, ok := mappingListDbCredentialsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_domains_request_response.go new file mode 100644 index 0000000000..77b43e6dd7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_domains_request_response.go @@ -0,0 +1,228 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDomainsRequest wrapper for the ListDomains operation +type ListDomainsRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The mutable display name of the identity domain. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The region-agnostic identity domain URL. + Url *string `mandatory:"false" contributesTo:"query" name:"url"` + + // The region-specific identity domain URL. + HomeRegionUrl *string `mandatory:"false" contributesTo:"query" name:"homeRegionUrl"` + + // The identity domain type. + Type *string `mandatory:"false" contributesTo:"query" name:"type"` + + // The license type of the identity domain. + LicenseType *string `mandatory:"false" contributesTo:"query" name:"licenseType"` + + // Indicates whether or not the identity domain is visible at the sign-in screen. + IsHiddenOnLogin *bool `mandatory:"false" contributesTo:"query" name:"isHiddenOnLogin"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListDomainsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListDomainsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState DomainLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDomainsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDomainsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDomainsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDomainsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDomainsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDomainsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDomainsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDomainsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDomainsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDomainLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDomainLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDomainsResponse wrapper for the ListDomains operation +type ListDomainsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DomainSummary instances + Items []DomainSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListDomainsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDomainsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDomainsSortByEnum Enum with underlying type: string +type ListDomainsSortByEnum string + +// Set of constants representing the allowable values for ListDomainsSortByEnum +const ( + ListDomainsSortByTimecreated ListDomainsSortByEnum = "TIMECREATED" + ListDomainsSortByName ListDomainsSortByEnum = "NAME" +) + +var mappingListDomainsSortByEnum = map[string]ListDomainsSortByEnum{ + "TIMECREATED": ListDomainsSortByTimecreated, + "NAME": ListDomainsSortByName, +} + +var mappingListDomainsSortByEnumLowerCase = map[string]ListDomainsSortByEnum{ + "timecreated": ListDomainsSortByTimecreated, + "name": ListDomainsSortByName, +} + +// GetListDomainsSortByEnumValues Enumerates the set of values for ListDomainsSortByEnum +func GetListDomainsSortByEnumValues() []ListDomainsSortByEnum { + values := make([]ListDomainsSortByEnum, 0) + for _, v := range mappingListDomainsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDomainsSortByEnumStringValues Enumerates the set of values in String for ListDomainsSortByEnum +func GetListDomainsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListDomainsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDomainsSortByEnum(val string) (ListDomainsSortByEnum, bool) { + enum, ok := mappingListDomainsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDomainsSortOrderEnum Enum with underlying type: string +type ListDomainsSortOrderEnum string + +// Set of constants representing the allowable values for ListDomainsSortOrderEnum +const ( + ListDomainsSortOrderAsc ListDomainsSortOrderEnum = "ASC" + ListDomainsSortOrderDesc ListDomainsSortOrderEnum = "DESC" +) + +var mappingListDomainsSortOrderEnum = map[string]ListDomainsSortOrderEnum{ + "ASC": ListDomainsSortOrderAsc, + "DESC": ListDomainsSortOrderDesc, +} + +var mappingListDomainsSortOrderEnumLowerCase = map[string]ListDomainsSortOrderEnum{ + "asc": ListDomainsSortOrderAsc, + "desc": ListDomainsSortOrderDesc, +} + +// GetListDomainsSortOrderEnumValues Enumerates the set of values for ListDomainsSortOrderEnum +func GetListDomainsSortOrderEnumValues() []ListDomainsSortOrderEnum { + values := make([]ListDomainsSortOrderEnum, 0) + for _, v := range mappingListDomainsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDomainsSortOrderEnumStringValues Enumerates the set of values in String for ListDomainsSortOrderEnum +func GetListDomainsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDomainsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDomainsSortOrderEnum(val string) (ListDomainsSortOrderEnum, bool) { + enum, ok := mappingListDomainsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_dynamic_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_dynamic_groups_request_response.go new file mode 100644 index 0000000000..f28bbcedc2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_dynamic_groups_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListDynamicGroupsRequest wrapper for the ListDynamicGroups operation +type ListDynamicGroupsRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListDynamicGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListDynamicGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState DynamicGroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListDynamicGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListDynamicGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListDynamicGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListDynamicGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListDynamicGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListDynamicGroupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListDynamicGroupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListDynamicGroupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListDynamicGroupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingDynamicGroupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetDynamicGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListDynamicGroupsResponse wrapper for the ListDynamicGroups operation +type ListDynamicGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []DynamicGroup instances + Items []DynamicGroup `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListDynamicGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListDynamicGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListDynamicGroupsSortByEnum Enum with underlying type: string +type ListDynamicGroupsSortByEnum string + +// Set of constants representing the allowable values for ListDynamicGroupsSortByEnum +const ( + ListDynamicGroupsSortByTimecreated ListDynamicGroupsSortByEnum = "TIMECREATED" + ListDynamicGroupsSortByName ListDynamicGroupsSortByEnum = "NAME" +) + +var mappingListDynamicGroupsSortByEnum = map[string]ListDynamicGroupsSortByEnum{ + "TIMECREATED": ListDynamicGroupsSortByTimecreated, + "NAME": ListDynamicGroupsSortByName, +} + +var mappingListDynamicGroupsSortByEnumLowerCase = map[string]ListDynamicGroupsSortByEnum{ + "timecreated": ListDynamicGroupsSortByTimecreated, + "name": ListDynamicGroupsSortByName, +} + +// GetListDynamicGroupsSortByEnumValues Enumerates the set of values for ListDynamicGroupsSortByEnum +func GetListDynamicGroupsSortByEnumValues() []ListDynamicGroupsSortByEnum { + values := make([]ListDynamicGroupsSortByEnum, 0) + for _, v := range mappingListDynamicGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListDynamicGroupsSortByEnumStringValues Enumerates the set of values in String for ListDynamicGroupsSortByEnum +func GetListDynamicGroupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListDynamicGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDynamicGroupsSortByEnum(val string) (ListDynamicGroupsSortByEnum, bool) { + enum, ok := mappingListDynamicGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListDynamicGroupsSortOrderEnum Enum with underlying type: string +type ListDynamicGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListDynamicGroupsSortOrderEnum +const ( + ListDynamicGroupsSortOrderAsc ListDynamicGroupsSortOrderEnum = "ASC" + ListDynamicGroupsSortOrderDesc ListDynamicGroupsSortOrderEnum = "DESC" +) + +var mappingListDynamicGroupsSortOrderEnum = map[string]ListDynamicGroupsSortOrderEnum{ + "ASC": ListDynamicGroupsSortOrderAsc, + "DESC": ListDynamicGroupsSortOrderDesc, +} + +var mappingListDynamicGroupsSortOrderEnumLowerCase = map[string]ListDynamicGroupsSortOrderEnum{ + "asc": ListDynamicGroupsSortOrderAsc, + "desc": ListDynamicGroupsSortOrderDesc, +} + +// GetListDynamicGroupsSortOrderEnumValues Enumerates the set of values for ListDynamicGroupsSortOrderEnum +func GetListDynamicGroupsSortOrderEnumValues() []ListDynamicGroupsSortOrderEnum { + values := make([]ListDynamicGroupsSortOrderEnum, 0) + for _, v := range mappingListDynamicGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListDynamicGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListDynamicGroupsSortOrderEnum +func GetListDynamicGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListDynamicGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListDynamicGroupsSortOrderEnum(val string) (ListDynamicGroupsSortOrderEnum, bool) { + enum, ok := mappingListDynamicGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_fault_domains_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_fault_domains_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go index 6d21f7075b..c17c69f39f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_fault_domains_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_fault_domains_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListFaultDomainsRequest wrapper for the ListFaultDomains operation @@ -15,7 +17,7 @@ type ListFaultDomainsRequest struct { // The OCID of the compartment (remember that the tenancy is simply the root compartment). CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` - // The name of the availibilityDomain. + // The name of the availabilityDomain. AvailabilityDomain *string `mandatory:"true" contributesTo:"query" name:"availabilityDomain"` // Unique Oracle-assigned identifier for the request. @@ -34,6 +36,10 @@ func (request ListFaultDomainsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListFaultDomainsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +55,17 @@ func (request ListFaultDomainsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListFaultDomainsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListFaultDomainsResponse wrapper for the ListFaultDomains operation type ListFaultDomainsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_groups_request_response.go new file mode 100644 index 0000000000..08c013985b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_groups_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListGroupsRequest wrapper for the ListGroups operation +type ListGroupsRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListGroupsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListGroupsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState GroupLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListGroupsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListGroupsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListGroupsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListGroupsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingGroupLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetGroupLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListGroupsResponse wrapper for the ListGroups operation +type ListGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Group instances + Items []Group `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListGroupsSortByEnum Enum with underlying type: string +type ListGroupsSortByEnum string + +// Set of constants representing the allowable values for ListGroupsSortByEnum +const ( + ListGroupsSortByTimecreated ListGroupsSortByEnum = "TIMECREATED" + ListGroupsSortByName ListGroupsSortByEnum = "NAME" +) + +var mappingListGroupsSortByEnum = map[string]ListGroupsSortByEnum{ + "TIMECREATED": ListGroupsSortByTimecreated, + "NAME": ListGroupsSortByName, +} + +var mappingListGroupsSortByEnumLowerCase = map[string]ListGroupsSortByEnum{ + "timecreated": ListGroupsSortByTimecreated, + "name": ListGroupsSortByName, +} + +// GetListGroupsSortByEnumValues Enumerates the set of values for ListGroupsSortByEnum +func GetListGroupsSortByEnumValues() []ListGroupsSortByEnum { + values := make([]ListGroupsSortByEnum, 0) + for _, v := range mappingListGroupsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListGroupsSortByEnumStringValues Enumerates the set of values in String for ListGroupsSortByEnum +func GetListGroupsSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListGroupsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListGroupsSortByEnum(val string) (ListGroupsSortByEnum, bool) { + enum, ok := mappingListGroupsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListGroupsSortOrderEnum Enum with underlying type: string +type ListGroupsSortOrderEnum string + +// Set of constants representing the allowable values for ListGroupsSortOrderEnum +const ( + ListGroupsSortOrderAsc ListGroupsSortOrderEnum = "ASC" + ListGroupsSortOrderDesc ListGroupsSortOrderEnum = "DESC" +) + +var mappingListGroupsSortOrderEnum = map[string]ListGroupsSortOrderEnum{ + "ASC": ListGroupsSortOrderAsc, + "DESC": ListGroupsSortOrderDesc, +} + +var mappingListGroupsSortOrderEnumLowerCase = map[string]ListGroupsSortOrderEnum{ + "asc": ListGroupsSortOrderAsc, + "desc": ListGroupsSortOrderDesc, +} + +// GetListGroupsSortOrderEnumValues Enumerates the set of values for ListGroupsSortOrderEnum +func GetListGroupsSortOrderEnumValues() []ListGroupsSortOrderEnum { + values := make([]ListGroupsSortOrderEnum, 0) + for _, v := range mappingListGroupsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListGroupsSortOrderEnumStringValues Enumerates the set of values in String for ListGroupsSortOrderEnum +func GetListGroupsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListGroupsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListGroupsSortOrderEnum(val string) (ListGroupsSortOrderEnum, bool) { + enum, ok := mappingListGroupsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_errors_request_response.go new file mode 100644 index 0000000000..0189a6fcc7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_errors_request_response.go @@ -0,0 +1,147 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListIamWorkRequestErrorsRequest wrapper for the ListIamWorkRequestErrors operation +type ListIamWorkRequestErrorsRequest struct { + + // The OCID of the IAM work request. + IamWorkRequestId *string `mandatory:"true" contributesTo:"path" name:"iamWorkRequestId"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListIamWorkRequestErrorsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListIamWorkRequestErrorsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListIamWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListIamWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListIamWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIamWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListIamWorkRequestErrorsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListIamWorkRequestErrorsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListIamWorkRequestErrorsResponse wrapper for the ListIamWorkRequestErrors operation +type ListIamWorkRequestErrorsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []IamWorkRequestErrorSummary instances + Items []IamWorkRequestErrorSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of + // results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListIamWorkRequestErrorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListIamWorkRequestErrorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListIamWorkRequestErrorsSortOrderEnum Enum with underlying type: string +type ListIamWorkRequestErrorsSortOrderEnum string + +// Set of constants representing the allowable values for ListIamWorkRequestErrorsSortOrderEnum +const ( + ListIamWorkRequestErrorsSortOrderAsc ListIamWorkRequestErrorsSortOrderEnum = "ASC" + ListIamWorkRequestErrorsSortOrderDesc ListIamWorkRequestErrorsSortOrderEnum = "DESC" +) + +var mappingListIamWorkRequestErrorsSortOrderEnum = map[string]ListIamWorkRequestErrorsSortOrderEnum{ + "ASC": ListIamWorkRequestErrorsSortOrderAsc, + "DESC": ListIamWorkRequestErrorsSortOrderDesc, +} + +var mappingListIamWorkRequestErrorsSortOrderEnumLowerCase = map[string]ListIamWorkRequestErrorsSortOrderEnum{ + "asc": ListIamWorkRequestErrorsSortOrderAsc, + "desc": ListIamWorkRequestErrorsSortOrderDesc, +} + +// GetListIamWorkRequestErrorsSortOrderEnumValues Enumerates the set of values for ListIamWorkRequestErrorsSortOrderEnum +func GetListIamWorkRequestErrorsSortOrderEnumValues() []ListIamWorkRequestErrorsSortOrderEnum { + values := make([]ListIamWorkRequestErrorsSortOrderEnum, 0) + for _, v := range mappingListIamWorkRequestErrorsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListIamWorkRequestErrorsSortOrderEnumStringValues Enumerates the set of values in String for ListIamWorkRequestErrorsSortOrderEnum +func GetListIamWorkRequestErrorsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListIamWorkRequestErrorsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListIamWorkRequestErrorsSortOrderEnum(val string) (ListIamWorkRequestErrorsSortOrderEnum, bool) { + enum, ok := mappingListIamWorkRequestErrorsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_logs_request_response.go new file mode 100644 index 0000000000..39d1a294fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_request_logs_request_response.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListIamWorkRequestLogsRequest wrapper for the ListIamWorkRequestLogs operation +type ListIamWorkRequestLogsRequest struct { + + // The OCID of the IAM work request. + IamWorkRequestId *string `mandatory:"true" contributesTo:"path" name:"iamWorkRequestId"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListIamWorkRequestLogsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListIamWorkRequestLogsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListIamWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListIamWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListIamWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIamWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListIamWorkRequestLogsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListIamWorkRequestLogsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListIamWorkRequestLogsResponse wrapper for the ListIamWorkRequestLogs operation +type ListIamWorkRequestLogsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []IamWorkRequestLogSummary instances + Items []IamWorkRequestLogSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // The number of seconds that the client should wait before polling again. + RetryAfter *float32 `presentIn:"header" name:"retry-after"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListIamWorkRequestLogsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListIamWorkRequestLogsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListIamWorkRequestLogsSortOrderEnum Enum with underlying type: string +type ListIamWorkRequestLogsSortOrderEnum string + +// Set of constants representing the allowable values for ListIamWorkRequestLogsSortOrderEnum +const ( + ListIamWorkRequestLogsSortOrderAsc ListIamWorkRequestLogsSortOrderEnum = "ASC" + ListIamWorkRequestLogsSortOrderDesc ListIamWorkRequestLogsSortOrderEnum = "DESC" +) + +var mappingListIamWorkRequestLogsSortOrderEnum = map[string]ListIamWorkRequestLogsSortOrderEnum{ + "ASC": ListIamWorkRequestLogsSortOrderAsc, + "DESC": ListIamWorkRequestLogsSortOrderDesc, +} + +var mappingListIamWorkRequestLogsSortOrderEnumLowerCase = map[string]ListIamWorkRequestLogsSortOrderEnum{ + "asc": ListIamWorkRequestLogsSortOrderAsc, + "desc": ListIamWorkRequestLogsSortOrderDesc, +} + +// GetListIamWorkRequestLogsSortOrderEnumValues Enumerates the set of values for ListIamWorkRequestLogsSortOrderEnum +func GetListIamWorkRequestLogsSortOrderEnumValues() []ListIamWorkRequestLogsSortOrderEnum { + values := make([]ListIamWorkRequestLogsSortOrderEnum, 0) + for _, v := range mappingListIamWorkRequestLogsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListIamWorkRequestLogsSortOrderEnumStringValues Enumerates the set of values in String for ListIamWorkRequestLogsSortOrderEnum +func GetListIamWorkRequestLogsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListIamWorkRequestLogsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListIamWorkRequestLogsSortOrderEnum(val string) (ListIamWorkRequestLogsSortOrderEnum, bool) { + enum, ok := mappingListIamWorkRequestLogsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_requests_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_requests_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_requests_request_response.go index 214ae520ba..a526400dde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_iam_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_iam_work_requests_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIamWorkRequestsRequest wrapper for the ListIamWorkRequests operation @@ -40,6 +42,10 @@ func (request ListIamWorkRequestsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIamWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,17 @@ func (request ListIamWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIamWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIamWorkRequestsResponse wrapper for the ListIamWorkRequests operation type ListIamWorkRequestsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_provider_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_provider_groups_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_provider_groups_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_provider_groups_request_response.go index a5e0e37386..7906470307 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_identity_provider_groups_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_provider_groups_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIdentityProviderGroupsRequest wrapper for the ListIdentityProviderGroups operation @@ -43,6 +45,10 @@ func (request ListIdentityProviderGroupsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIdentityProviderGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,20 @@ func (request ListIdentityProviderGroupsRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIdentityProviderGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingIdentityProviderLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetIdentityProviderLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIdentityProviderGroupsResponse wrapper for the ListIdentityProviderGroups operation type ListIdentityProviderGroupsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_providers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_providers_request_response.go new file mode 100644 index 0000000000..9c65a7fa94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_identity_providers_request_response.go @@ -0,0 +1,254 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListIdentityProvidersRequest wrapper for the ListIdentityProviders operation +type ListIdentityProvidersRequest struct { + + // The protocol used for federation. + Protocol ListIdentityProvidersProtocolEnum `mandatory:"true" contributesTo:"query" name:"protocol" omitEmpty:"true"` + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListIdentityProvidersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListIdentityProvidersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState IdentityProviderLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListIdentityProvidersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListIdentityProvidersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListIdentityProvidersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListIdentityProvidersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIdentityProvidersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListIdentityProvidersProtocolEnum(string(request.Protocol)); !ok && request.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", request.Protocol, strings.Join(GetListIdentityProvidersProtocolEnumStringValues(), ","))) + } + if _, ok := GetMappingListIdentityProvidersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListIdentityProvidersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListIdentityProvidersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListIdentityProvidersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingIdentityProviderLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetIdentityProviderLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListIdentityProvidersResponse wrapper for the ListIdentityProviders operation +type ListIdentityProvidersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []IdentityProvider instances + Items []IdentityProvider `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListIdentityProvidersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListIdentityProvidersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListIdentityProvidersProtocolEnum Enum with underlying type: string +type ListIdentityProvidersProtocolEnum string + +// Set of constants representing the allowable values for ListIdentityProvidersProtocolEnum +const ( + ListIdentityProvidersProtocolSaml2 ListIdentityProvidersProtocolEnum = "SAML2" +) + +var mappingListIdentityProvidersProtocolEnum = map[string]ListIdentityProvidersProtocolEnum{ + "SAML2": ListIdentityProvidersProtocolSaml2, +} + +var mappingListIdentityProvidersProtocolEnumLowerCase = map[string]ListIdentityProvidersProtocolEnum{ + "saml2": ListIdentityProvidersProtocolSaml2, +} + +// GetListIdentityProvidersProtocolEnumValues Enumerates the set of values for ListIdentityProvidersProtocolEnum +func GetListIdentityProvidersProtocolEnumValues() []ListIdentityProvidersProtocolEnum { + values := make([]ListIdentityProvidersProtocolEnum, 0) + for _, v := range mappingListIdentityProvidersProtocolEnum { + values = append(values, v) + } + return values +} + +// GetListIdentityProvidersProtocolEnumStringValues Enumerates the set of values in String for ListIdentityProvidersProtocolEnum +func GetListIdentityProvidersProtocolEnumStringValues() []string { + return []string{ + "SAML2", + } +} + +// GetMappingListIdentityProvidersProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListIdentityProvidersProtocolEnum(val string) (ListIdentityProvidersProtocolEnum, bool) { + enum, ok := mappingListIdentityProvidersProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListIdentityProvidersSortByEnum Enum with underlying type: string +type ListIdentityProvidersSortByEnum string + +// Set of constants representing the allowable values for ListIdentityProvidersSortByEnum +const ( + ListIdentityProvidersSortByTimecreated ListIdentityProvidersSortByEnum = "TIMECREATED" + ListIdentityProvidersSortByName ListIdentityProvidersSortByEnum = "NAME" +) + +var mappingListIdentityProvidersSortByEnum = map[string]ListIdentityProvidersSortByEnum{ + "TIMECREATED": ListIdentityProvidersSortByTimecreated, + "NAME": ListIdentityProvidersSortByName, +} + +var mappingListIdentityProvidersSortByEnumLowerCase = map[string]ListIdentityProvidersSortByEnum{ + "timecreated": ListIdentityProvidersSortByTimecreated, + "name": ListIdentityProvidersSortByName, +} + +// GetListIdentityProvidersSortByEnumValues Enumerates the set of values for ListIdentityProvidersSortByEnum +func GetListIdentityProvidersSortByEnumValues() []ListIdentityProvidersSortByEnum { + values := make([]ListIdentityProvidersSortByEnum, 0) + for _, v := range mappingListIdentityProvidersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListIdentityProvidersSortByEnumStringValues Enumerates the set of values in String for ListIdentityProvidersSortByEnum +func GetListIdentityProvidersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListIdentityProvidersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListIdentityProvidersSortByEnum(val string) (ListIdentityProvidersSortByEnum, bool) { + enum, ok := mappingListIdentityProvidersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListIdentityProvidersSortOrderEnum Enum with underlying type: string +type ListIdentityProvidersSortOrderEnum string + +// Set of constants representing the allowable values for ListIdentityProvidersSortOrderEnum +const ( + ListIdentityProvidersSortOrderAsc ListIdentityProvidersSortOrderEnum = "ASC" + ListIdentityProvidersSortOrderDesc ListIdentityProvidersSortOrderEnum = "DESC" +) + +var mappingListIdentityProvidersSortOrderEnum = map[string]ListIdentityProvidersSortOrderEnum{ + "ASC": ListIdentityProvidersSortOrderAsc, + "DESC": ListIdentityProvidersSortOrderDesc, +} + +var mappingListIdentityProvidersSortOrderEnumLowerCase = map[string]ListIdentityProvidersSortOrderEnum{ + "asc": ListIdentityProvidersSortOrderAsc, + "desc": ListIdentityProvidersSortOrderDesc, +} + +// GetListIdentityProvidersSortOrderEnumValues Enumerates the set of values for ListIdentityProvidersSortOrderEnum +func GetListIdentityProvidersSortOrderEnumValues() []ListIdentityProvidersSortOrderEnum { + values := make([]ListIdentityProvidersSortOrderEnum, 0) + for _, v := range mappingListIdentityProvidersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListIdentityProvidersSortOrderEnumStringValues Enumerates the set of values in String for ListIdentityProvidersSortOrderEnum +func GetListIdentityProvidersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListIdentityProvidersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListIdentityProvidersSortOrderEnum(val string) (ListIdentityProvidersSortOrderEnum, bool) { + enum, ok := mappingListIdentityProvidersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_idp_group_mappings_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_idp_group_mappings_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_idp_group_mappings_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_idp_group_mappings_request_response.go index 8de19f9bbc..04a7ef1612 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_idp_group_mappings_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_idp_group_mappings_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListIdpGroupMappingsRequest wrapper for the ListIdpGroupMappings operation @@ -37,6 +39,10 @@ func (request ListIdpGroupMappingsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListIdpGroupMappingsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request ListIdpGroupMappingsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListIdpGroupMappingsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListIdpGroupMappingsResponse wrapper for the ListIdpGroupMappings operation type ListIdpGroupMappingsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_managed_compartments_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_managed_compartments_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_managed_compartments_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_managed_compartments_request_response.go index 38bdd614c0..970c43b32d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_managed_compartments_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_managed_compartments_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListManagedCompartmentsRequest wrapper for the ListManagedCompartments operation @@ -40,6 +42,10 @@ func (request ListManagedCompartmentsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListManagedCompartmentsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,17 @@ func (request ListManagedCompartmentsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListManagedCompartmentsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListManagedCompartmentsResponse wrapper for the ListManagedCompartments operation type ListManagedCompartmentsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_mfa_totp_devices_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_mfa_totp_devices_request_response.go new file mode 100644 index 0000000000..728a642948 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_mfa_totp_devices_request_response.go @@ -0,0 +1,201 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListMfaTotpDevicesRequest wrapper for the ListMfaTotpDevices operation +type ListMfaTotpDevicesRequest struct { + + // The OCID of the user. + UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListMfaTotpDevicesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListMfaTotpDevicesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListMfaTotpDevicesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListMfaTotpDevicesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListMfaTotpDevicesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListMfaTotpDevicesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListMfaTotpDevicesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListMfaTotpDevicesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListMfaTotpDevicesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListMfaTotpDevicesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListMfaTotpDevicesSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListMfaTotpDevicesResponse wrapper for the ListMfaTotpDevices operation +type ListMfaTotpDevicesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []MfaTotpDeviceSummary instances + Items []MfaTotpDeviceSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListMfaTotpDevicesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListMfaTotpDevicesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListMfaTotpDevicesSortByEnum Enum with underlying type: string +type ListMfaTotpDevicesSortByEnum string + +// Set of constants representing the allowable values for ListMfaTotpDevicesSortByEnum +const ( + ListMfaTotpDevicesSortByTimecreated ListMfaTotpDevicesSortByEnum = "TIMECREATED" + ListMfaTotpDevicesSortByName ListMfaTotpDevicesSortByEnum = "NAME" +) + +var mappingListMfaTotpDevicesSortByEnum = map[string]ListMfaTotpDevicesSortByEnum{ + "TIMECREATED": ListMfaTotpDevicesSortByTimecreated, + "NAME": ListMfaTotpDevicesSortByName, +} + +var mappingListMfaTotpDevicesSortByEnumLowerCase = map[string]ListMfaTotpDevicesSortByEnum{ + "timecreated": ListMfaTotpDevicesSortByTimecreated, + "name": ListMfaTotpDevicesSortByName, +} + +// GetListMfaTotpDevicesSortByEnumValues Enumerates the set of values for ListMfaTotpDevicesSortByEnum +func GetListMfaTotpDevicesSortByEnumValues() []ListMfaTotpDevicesSortByEnum { + values := make([]ListMfaTotpDevicesSortByEnum, 0) + for _, v := range mappingListMfaTotpDevicesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListMfaTotpDevicesSortByEnumStringValues Enumerates the set of values in String for ListMfaTotpDevicesSortByEnum +func GetListMfaTotpDevicesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListMfaTotpDevicesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMfaTotpDevicesSortByEnum(val string) (ListMfaTotpDevicesSortByEnum, bool) { + enum, ok := mappingListMfaTotpDevicesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMfaTotpDevicesSortOrderEnum Enum with underlying type: string +type ListMfaTotpDevicesSortOrderEnum string + +// Set of constants representing the allowable values for ListMfaTotpDevicesSortOrderEnum +const ( + ListMfaTotpDevicesSortOrderAsc ListMfaTotpDevicesSortOrderEnum = "ASC" + ListMfaTotpDevicesSortOrderDesc ListMfaTotpDevicesSortOrderEnum = "DESC" +) + +var mappingListMfaTotpDevicesSortOrderEnum = map[string]ListMfaTotpDevicesSortOrderEnum{ + "ASC": ListMfaTotpDevicesSortOrderAsc, + "DESC": ListMfaTotpDevicesSortOrderDesc, +} + +var mappingListMfaTotpDevicesSortOrderEnumLowerCase = map[string]ListMfaTotpDevicesSortOrderEnum{ + "asc": ListMfaTotpDevicesSortOrderAsc, + "desc": ListMfaTotpDevicesSortOrderDesc, +} + +// GetListMfaTotpDevicesSortOrderEnumValues Enumerates the set of values for ListMfaTotpDevicesSortOrderEnum +func GetListMfaTotpDevicesSortOrderEnumValues() []ListMfaTotpDevicesSortOrderEnum { + values := make([]ListMfaTotpDevicesSortOrderEnum, 0) + for _, v := range mappingListMfaTotpDevicesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListMfaTotpDevicesSortOrderEnumStringValues Enumerates the set of values in String for ListMfaTotpDevicesSortOrderEnum +func GetListMfaTotpDevicesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListMfaTotpDevicesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMfaTotpDevicesSortOrderEnum(val string) (ListMfaTotpDevicesSortOrderEnum, bool) { + enum, ok := mappingListMfaTotpDevicesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_network_sources_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_network_sources_request_response.go new file mode 100644 index 0000000000..8959a02bdb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_network_sources_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkSourcesRequest wrapper for the ListNetworkSources operation +type ListNetworkSourcesRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListNetworkSourcesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListNetworkSourcesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState NetworkSourcesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkSourcesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkSourcesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkSourcesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkSourcesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkSourcesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkSourcesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkSourcesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkSourcesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkSourcesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingNetworkSourcesLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetNetworkSourcesLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkSourcesResponse wrapper for the ListNetworkSources operation +type ListNetworkSourcesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []NetworkSourcesSummary instances + Items []NetworkSourcesSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListNetworkSourcesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkSourcesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkSourcesSortByEnum Enum with underlying type: string +type ListNetworkSourcesSortByEnum string + +// Set of constants representing the allowable values for ListNetworkSourcesSortByEnum +const ( + ListNetworkSourcesSortByTimecreated ListNetworkSourcesSortByEnum = "TIMECREATED" + ListNetworkSourcesSortByName ListNetworkSourcesSortByEnum = "NAME" +) + +var mappingListNetworkSourcesSortByEnum = map[string]ListNetworkSourcesSortByEnum{ + "TIMECREATED": ListNetworkSourcesSortByTimecreated, + "NAME": ListNetworkSourcesSortByName, +} + +var mappingListNetworkSourcesSortByEnumLowerCase = map[string]ListNetworkSourcesSortByEnum{ + "timecreated": ListNetworkSourcesSortByTimecreated, + "name": ListNetworkSourcesSortByName, +} + +// GetListNetworkSourcesSortByEnumValues Enumerates the set of values for ListNetworkSourcesSortByEnum +func GetListNetworkSourcesSortByEnumValues() []ListNetworkSourcesSortByEnum { + values := make([]ListNetworkSourcesSortByEnum, 0) + for _, v := range mappingListNetworkSourcesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSourcesSortByEnumStringValues Enumerates the set of values in String for ListNetworkSourcesSortByEnum +func GetListNetworkSourcesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListNetworkSourcesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSourcesSortByEnum(val string) (ListNetworkSourcesSortByEnum, bool) { + enum, ok := mappingListNetworkSourcesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkSourcesSortOrderEnum Enum with underlying type: string +type ListNetworkSourcesSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkSourcesSortOrderEnum +const ( + ListNetworkSourcesSortOrderAsc ListNetworkSourcesSortOrderEnum = "ASC" + ListNetworkSourcesSortOrderDesc ListNetworkSourcesSortOrderEnum = "DESC" +) + +var mappingListNetworkSourcesSortOrderEnum = map[string]ListNetworkSourcesSortOrderEnum{ + "ASC": ListNetworkSourcesSortOrderAsc, + "DESC": ListNetworkSourcesSortOrderDesc, +} + +var mappingListNetworkSourcesSortOrderEnumLowerCase = map[string]ListNetworkSourcesSortOrderEnum{ + "asc": ListNetworkSourcesSortOrderAsc, + "desc": ListNetworkSourcesSortOrderDesc, +} + +// GetListNetworkSourcesSortOrderEnumValues Enumerates the set of values for ListNetworkSourcesSortOrderEnum +func GetListNetworkSourcesSortOrderEnumValues() []ListNetworkSourcesSortOrderEnum { + values := make([]ListNetworkSourcesSortOrderEnum, 0) + for _, v := range mappingListNetworkSourcesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkSourcesSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkSourcesSortOrderEnum +func GetListNetworkSourcesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkSourcesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkSourcesSortOrderEnum(val string) (ListNetworkSourcesSortOrderEnum, bool) { + enum, ok := mappingListNetworkSourcesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_o_auth_client_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_o_auth_client_credentials_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_o_auth_client_credentials_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_o_auth_client_credentials_request_response.go index 78736c1e3b..b68f70f8fc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_o_auth_client_credentials_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_o_auth_client_credentials_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListOAuthClientCredentialsRequest wrapper for the ListOAuthClientCredentials operation @@ -40,6 +42,10 @@ func (request ListOAuthClientCredentialsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListOAuthClientCredentialsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,20 @@ func (request ListOAuthClientCredentialsRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListOAuthClientCredentialsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOAuth2ClientCredentialSummaryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetOAuth2ClientCredentialSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListOAuthClientCredentialsResponse wrapper for the ListOAuthClientCredentials operation type ListOAuthClientCredentialsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_policies_request_response.go new file mode 100644 index 0000000000..bf61302ec4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_policies_request_response.go @@ -0,0 +1,210 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPoliciesRequest wrapper for the ListPolicies operation +type ListPoliciesRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState PolicyLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPoliciesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPoliciesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListPoliciesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListPoliciesSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListPoliciesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListPoliciesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingPolicyLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetPolicyLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPoliciesResponse wrapper for the ListPolicies operation +type ListPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []Policy instances + Items []Policy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListPoliciesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPoliciesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListPoliciesSortByEnum Enum with underlying type: string +type ListPoliciesSortByEnum string + +// Set of constants representing the allowable values for ListPoliciesSortByEnum +const ( + ListPoliciesSortByTimecreated ListPoliciesSortByEnum = "TIMECREATED" + ListPoliciesSortByName ListPoliciesSortByEnum = "NAME" +) + +var mappingListPoliciesSortByEnum = map[string]ListPoliciesSortByEnum{ + "TIMECREATED": ListPoliciesSortByTimecreated, + "NAME": ListPoliciesSortByName, +} + +var mappingListPoliciesSortByEnumLowerCase = map[string]ListPoliciesSortByEnum{ + "timecreated": ListPoliciesSortByTimecreated, + "name": ListPoliciesSortByName, +} + +// GetListPoliciesSortByEnumValues Enumerates the set of values for ListPoliciesSortByEnum +func GetListPoliciesSortByEnumValues() []ListPoliciesSortByEnum { + values := make([]ListPoliciesSortByEnum, 0) + for _, v := range mappingListPoliciesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListPoliciesSortByEnumStringValues Enumerates the set of values in String for ListPoliciesSortByEnum +func GetListPoliciesSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListPoliciesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPoliciesSortByEnum(val string) (ListPoliciesSortByEnum, bool) { + enum, ok := mappingListPoliciesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListPoliciesSortOrderEnum Enum with underlying type: string +type ListPoliciesSortOrderEnum string + +// Set of constants representing the allowable values for ListPoliciesSortOrderEnum +const ( + ListPoliciesSortOrderAsc ListPoliciesSortOrderEnum = "ASC" + ListPoliciesSortOrderDesc ListPoliciesSortOrderEnum = "DESC" +) + +var mappingListPoliciesSortOrderEnum = map[string]ListPoliciesSortOrderEnum{ + "ASC": ListPoliciesSortOrderAsc, + "DESC": ListPoliciesSortOrderDesc, +} + +var mappingListPoliciesSortOrderEnumLowerCase = map[string]ListPoliciesSortOrderEnum{ + "asc": ListPoliciesSortOrderAsc, + "desc": ListPoliciesSortOrderDesc, +} + +// GetListPoliciesSortOrderEnumValues Enumerates the set of values for ListPoliciesSortOrderEnum +func GetListPoliciesSortOrderEnumValues() []ListPoliciesSortOrderEnum { + values := make([]ListPoliciesSortOrderEnum, 0) + for _, v := range mappingListPoliciesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListPoliciesSortOrderEnum +func GetListPoliciesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListPoliciesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListPoliciesSortOrderEnum(val string) (ListPoliciesSortOrderEnum, bool) { + enum, ok := mappingListPoliciesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_region_subscriptions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_region_subscriptions_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go index bf636267d5..d67d1ad3ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_region_subscriptions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_region_subscriptions_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListRegionSubscriptionsRequest wrapper for the ListRegionSubscriptions operation @@ -31,6 +33,10 @@ func (request ListRegionSubscriptionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListRegionSubscriptionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListRegionSubscriptionsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListRegionSubscriptionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListRegionSubscriptionsResponse wrapper for the ListRegionSubscriptions operation type ListRegionSubscriptionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_regions_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_regions_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go index 3bbf669655..6268167be5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_regions_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_regions_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListRegionsRequest wrapper for the ListRegions operation @@ -28,6 +30,10 @@ func (request ListRegionsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListRegionsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -43,6 +49,17 @@ func (request ListRegionsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListRegionsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListRegionsResponse wrapper for the ListRegions operation type ListRegionsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_smtp_credentials_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_smtp_credentials_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go index 2fb6f883c7..7f6d3c75af 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_smtp_credentials_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_smtp_credentials_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListSmtpCredentialsRequest wrapper for the ListSmtpCredentials operation @@ -31,6 +33,10 @@ func (request ListSmtpCredentialsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListSmtpCredentialsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListSmtpCredentialsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSmtpCredentialsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListSmtpCredentialsResponse wrapper for the ListSmtpCredentials operation type ListSmtpCredentialsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_standard_tag_namespaces_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_standard_tag_namespaces_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_standard_tag_namespaces_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_standard_tag_namespaces_request_response.go index 86ddb2b6fc..780849c513 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_standard_tag_namespaces_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_standard_tag_namespaces_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListStandardTagNamespacesRequest wrapper for the ListStandardTagNamespaces operation @@ -37,6 +39,10 @@ func (request ListStandardTagNamespacesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListStandardTagNamespacesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request ListStandardTagNamespacesRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListStandardTagNamespacesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListStandardTagNamespacesResponse wrapper for the ListStandardTagNamespaces operation type ListStandardTagNamespacesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_swift_passwords_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_swift_passwords_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go index bd104fcfd9..4005fe16b6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_swift_passwords_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_swift_passwords_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListSwiftPasswordsRequest wrapper for the ListSwiftPasswords operation @@ -31,6 +33,10 @@ func (request ListSwiftPasswordsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListSwiftPasswordsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ListSwiftPasswordsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSwiftPasswordsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListSwiftPasswordsResponse wrapper for the ListSwiftPasswords operation type ListSwiftPasswordsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_defaults_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_defaults_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go index 26cefb31a9..1c058207e2 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_defaults_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_defaults_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTagDefaultsRequest wrapper for the ListTagDefaults operation @@ -46,6 +48,10 @@ func (request ListTagDefaultsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTagDefaultsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,20 @@ func (request ListTagDefaultsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTagDefaultsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTagDefaultSummaryLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetTagDefaultSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTagDefaultsResponse wrapper for the ListTagDefaults operation type ListTagDefaultsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_namespaces_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_namespaces_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go index d1765f18d4..bb452b4ac9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_namespaces_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_namespaces_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTagNamespacesRequest wrapper for the ListTagNamespaces operation @@ -44,6 +46,10 @@ func (request ListTagNamespacesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTagNamespacesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -59,6 +65,20 @@ func (request ListTagNamespacesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTagNamespacesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTagNamespaceLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetTagNamespaceLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTagNamespacesResponse wrapper for the ListTagNamespaces operation type ListTagNamespacesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_rules_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_rules_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_rules_request_response.go index bc269dee81..2d17ab013f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tag_rules_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tag_rules_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTagRulesRequest wrapper for the ListTagRules operation @@ -37,6 +39,10 @@ func (request ListTagRulesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTagRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request ListTagRulesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTagRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTagRulesResponse wrapper for the ListTagRules operation type ListTagRulesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_request_errors_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_request_errors_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_request_errors_request_response.go index 8d17b3afed..25849c1dfa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_request_errors_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_request_errors_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTaggingWorkRequestErrorsRequest wrapper for the ListTaggingWorkRequestErrors operation @@ -37,6 +39,10 @@ func (request ListTaggingWorkRequestErrorsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTaggingWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request ListTaggingWorkRequestErrorsRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTaggingWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTaggingWorkRequestErrorsResponse wrapper for the ListTaggingWorkRequestErrors operation type ListTaggingWorkRequestErrorsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_request_logs_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_request_logs_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_request_logs_request_response.go index 08c8e5f054..753fbdc4cd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_request_logs_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_request_logs_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTaggingWorkRequestLogsRequest wrapper for the ListTaggingWorkRequestLogs operation @@ -37,6 +39,10 @@ func (request ListTaggingWorkRequestLogsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTaggingWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request ListTaggingWorkRequestLogsRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTaggingWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTaggingWorkRequestLogsResponse wrapper for the ListTaggingWorkRequestLogs operation type ListTaggingWorkRequestLogsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_requests_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_requests_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_requests_request_response.go index 3b4b262662..1e9b0f08ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tagging_work_requests_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tagging_work_requests_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTaggingWorkRequestsRequest wrapper for the ListTaggingWorkRequests operation @@ -40,6 +42,10 @@ func (request ListTaggingWorkRequestsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTaggingWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,17 @@ func (request ListTaggingWorkRequestsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTaggingWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTaggingWorkRequestsResponse wrapper for the ListTaggingWorkRequests operation type ListTaggingWorkRequestsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tags_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tags_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go index 62b04c01a5..6631591921 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tags_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tags_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTagsRequest wrapper for the ListTags operation @@ -40,6 +42,10 @@ func (request ListTagsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTagsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,20 @@ func (request ListTagsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTagsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTagLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetTagLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTagsResponse wrapper for the ListTags operation type ListTagsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tenancies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tenancies_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tenancies_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tenancies_request_response.go index ca59dbfb88..5000fa6bf6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_tenancies_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_tenancies_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListTenanciesRequest wrapper for the ListTenancies operation @@ -40,6 +42,10 @@ func (request ListTenanciesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListTenanciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -55,6 +61,17 @@ func (request ListTenanciesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListTenanciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListTenanciesResponse wrapper for the ListTenancies operation type ListTenanciesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_user_group_memberships_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_user_group_memberships_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/list_user_group_memberships_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/list_user_group_memberships_request_response.go index 32a0896654..70fa8793a3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/list_user_group_memberships_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_user_group_memberships_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListUserGroupMembershipsRequest wrapper for the ListUserGroupMemberships operation @@ -43,6 +45,10 @@ func (request ListUserGroupMembershipsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListUserGroupMembershipsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -58,6 +64,17 @@ func (request ListUserGroupMembershipsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListUserGroupMembershipsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListUserGroupMembershipsResponse wrapper for the ListUserGroupMemberships operation type ListUserGroupMembershipsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_users_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_users_request_response.go new file mode 100644 index 0000000000..6f17c22159 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_users_request_response.go @@ -0,0 +1,216 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListUsersRequest wrapper for the ListUsers operation +type ListUsersRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The id of the identity provider. + IdentityProviderId *string `mandatory:"false" contributesTo:"query" name:"identityProviderId"` + + // The id of a user in the identity provider. + ExternalIdentifier *string `mandatory:"false" contributesTo:"query" name:"externalIdentifier"` + + // A filter to only return resources that match the given name exactly. + Name *string `mandatory:"false" contributesTo:"query" name:"name"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for + // TIMECREATED is descending. Default order for NAME is ascending. The NAME + // sort order is case sensitive. + // **Note:** In general, some "List" operations (for example, `ListInstances`) let you + // optionally filter by Availability Domain if the scope of the resource type is within a + // single Availability Domain. If you call one of these "List" operations without specifying + // an Availability Domain, the resources are grouped by Availability Domain, then sorted. + SortBy ListUsersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The NAME sort order + // is case sensitive. + SortOrder ListUsersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. + LifecycleState UserLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListUsersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListUsersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListUsersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListUsersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListUsersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListUsersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListUsersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListUsersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListUsersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingUserLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetUserLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListUsersResponse wrapper for the ListUsers operation +type ListUsersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []User instances + Items []User `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListUsersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListUsersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListUsersSortByEnum Enum with underlying type: string +type ListUsersSortByEnum string + +// Set of constants representing the allowable values for ListUsersSortByEnum +const ( + ListUsersSortByTimecreated ListUsersSortByEnum = "TIMECREATED" + ListUsersSortByName ListUsersSortByEnum = "NAME" +) + +var mappingListUsersSortByEnum = map[string]ListUsersSortByEnum{ + "TIMECREATED": ListUsersSortByTimecreated, + "NAME": ListUsersSortByName, +} + +var mappingListUsersSortByEnumLowerCase = map[string]ListUsersSortByEnum{ + "timecreated": ListUsersSortByTimecreated, + "name": ListUsersSortByName, +} + +// GetListUsersSortByEnumValues Enumerates the set of values for ListUsersSortByEnum +func GetListUsersSortByEnumValues() []ListUsersSortByEnum { + values := make([]ListUsersSortByEnum, 0) + for _, v := range mappingListUsersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListUsersSortByEnumStringValues Enumerates the set of values in String for ListUsersSortByEnum +func GetListUsersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "NAME", + } +} + +// GetMappingListUsersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUsersSortByEnum(val string) (ListUsersSortByEnum, bool) { + enum, ok := mappingListUsersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListUsersSortOrderEnum Enum with underlying type: string +type ListUsersSortOrderEnum string + +// Set of constants representing the allowable values for ListUsersSortOrderEnum +const ( + ListUsersSortOrderAsc ListUsersSortOrderEnum = "ASC" + ListUsersSortOrderDesc ListUsersSortOrderEnum = "DESC" +) + +var mappingListUsersSortOrderEnum = map[string]ListUsersSortOrderEnum{ + "ASC": ListUsersSortOrderAsc, + "DESC": ListUsersSortOrderDesc, +} + +var mappingListUsersSortOrderEnumLowerCase = map[string]ListUsersSortOrderEnum{ + "asc": ListUsersSortOrderAsc, + "desc": ListUsersSortOrderDesc, +} + +// GetListUsersSortOrderEnumValues Enumerates the set of values for ListUsersSortOrderEnum +func GetListUsersSortOrderEnumValues() []ListUsersSortOrderEnum { + values := make([]ListUsersSortOrderEnum, 0) + for _, v := range mappingListUsersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListUsersSortOrderEnumStringValues Enumerates the set of values in String for ListUsersSortOrderEnum +func GetListUsersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListUsersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListUsersSortOrderEnum(val string) (ListUsersSortOrderEnum, bool) { + enum, ok := mappingListUsersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_work_requests_request_response.go new file mode 100644 index 0000000000..11c1921a0e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/list_work_requests_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +type ListWorkRequestsRequest struct { + + // The OCID of the compartment (remember that the tenancy is simply the root compartment). + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The value of the `opc-next-page` response header from the previous "List" call. + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The maximum number of items to return in a paginated "List" call. + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The identifier of the resource the work request affects. + ResourceIdentifier *string `mandatory:"false" contributesTo:"query" name:"resourceIdentifier"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestsResponse wrapper for the ListWorkRequests operation +type ListWorkRequestsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []WorkRequestSummary instances + Items []WorkRequestSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListWorkRequestsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go new file mode 100644 index 0000000000..a0535992bf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device.go @@ -0,0 +1,131 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MfaTotpDevice Users can enable multi-factor authentication (MFA) for their own user accounts. After MFA is enabled, the +// user is prompted for a time-based one-time password (TOTP) to authenticate before they can sign in to the +// Console. To enable multi-factor authentication, the user must register a mobile device with a TOTP authenticator app +// installed. The registration process creates the `MfaTotpDevice` object. The registration process requires +// interaction with the Console and cannot be completed programmatically. For more information, see +// Managing Multi-Factor Authentication (https://docs.cloud.oracle.com/Content/Identity/mfa/understand-multi-factor-authentication.htm). +type MfaTotpDevice struct { + + // The OCID of the MFA TOTP device. + Id *string `mandatory:"true" json:"id"` + + // The seed for the MFA TOTP device (Base32 encoded). + Seed *string `mandatory:"true" json:"seed"` + + // The OCID of the user the MFA TOTP device belongs to. + UserId *string `mandatory:"true" json:"userId"` + + // Date and time the `MfaTotpDevice` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The MFA TOTP device's current state. After creating the MFA TOTP device, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState MfaTotpDeviceLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Flag to indicate if the MFA TOTP device has been activated. + IsActivated *bool `mandatory:"true" json:"isActivated"` + + // Date and time when this MFA TOTP device will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The detailed status of INACTIVE lifecycleState. + // Allowed values are: + // - 1 - SUSPENDED + // - 2 - DISABLED + // - 4 - BLOCKED + // - 8 - LOCKED + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m MfaTotpDevice) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MfaTotpDevice) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMfaTotpDeviceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetMfaTotpDeviceLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MfaTotpDeviceLifecycleStateEnum Enum with underlying type: string +type MfaTotpDeviceLifecycleStateEnum string + +// Set of constants representing the allowable values for MfaTotpDeviceLifecycleStateEnum +const ( + MfaTotpDeviceLifecycleStateCreating MfaTotpDeviceLifecycleStateEnum = "CREATING" + MfaTotpDeviceLifecycleStateActive MfaTotpDeviceLifecycleStateEnum = "ACTIVE" + MfaTotpDeviceLifecycleStateInactive MfaTotpDeviceLifecycleStateEnum = "INACTIVE" + MfaTotpDeviceLifecycleStateDeleting MfaTotpDeviceLifecycleStateEnum = "DELETING" + MfaTotpDeviceLifecycleStateDeleted MfaTotpDeviceLifecycleStateEnum = "DELETED" +) + +var mappingMfaTotpDeviceLifecycleStateEnum = map[string]MfaTotpDeviceLifecycleStateEnum{ + "CREATING": MfaTotpDeviceLifecycleStateCreating, + "ACTIVE": MfaTotpDeviceLifecycleStateActive, + "INACTIVE": MfaTotpDeviceLifecycleStateInactive, + "DELETING": MfaTotpDeviceLifecycleStateDeleting, + "DELETED": MfaTotpDeviceLifecycleStateDeleted, +} + +var mappingMfaTotpDeviceLifecycleStateEnumLowerCase = map[string]MfaTotpDeviceLifecycleStateEnum{ + "creating": MfaTotpDeviceLifecycleStateCreating, + "active": MfaTotpDeviceLifecycleStateActive, + "inactive": MfaTotpDeviceLifecycleStateInactive, + "deleting": MfaTotpDeviceLifecycleStateDeleting, + "deleted": MfaTotpDeviceLifecycleStateDeleted, +} + +// GetMfaTotpDeviceLifecycleStateEnumValues Enumerates the set of values for MfaTotpDeviceLifecycleStateEnum +func GetMfaTotpDeviceLifecycleStateEnumValues() []MfaTotpDeviceLifecycleStateEnum { + values := make([]MfaTotpDeviceLifecycleStateEnum, 0) + for _, v := range mappingMfaTotpDeviceLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetMfaTotpDeviceLifecycleStateEnumStringValues Enumerates the set of values in String for MfaTotpDeviceLifecycleStateEnum +func GetMfaTotpDeviceLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingMfaTotpDeviceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMfaTotpDeviceLifecycleStateEnum(val string) (MfaTotpDeviceLifecycleStateEnum, bool) { + enum, ok := mappingMfaTotpDeviceLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go new file mode 100644 index 0000000000..94e22f150c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_device_summary.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MfaTotpDeviceSummary As the name suggests, a `MfaTotpDeviceSummary` object contains information about a `MfaTotpDevice`. +type MfaTotpDeviceSummary struct { + + // The OCID of the MFA TOTP Device. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the user the MFA TOTP device belongs to. + UserId *string `mandatory:"true" json:"userId"` + + // Date and time the `MfaTotpDevice` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The MFA TOTP device's current state. + LifecycleState MfaTotpDeviceSummaryLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Flag to indicate if the MFA TOTP device has been activated + IsActivated *bool `mandatory:"true" json:"isActivated"` + + // Date and time when this MFA TOTP device will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The detailed status of INACTIVE lifecycleState. + // Allowed values are: + // - 1 - SUSPENDED + // - 2 - DISABLED + // - 4 - BLOCKED + // - 8 - LOCKED + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m MfaTotpDeviceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MfaTotpDeviceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingMfaTotpDeviceSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetMfaTotpDeviceSummaryLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MfaTotpDeviceSummaryLifecycleStateEnum Enum with underlying type: string +type MfaTotpDeviceSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for MfaTotpDeviceSummaryLifecycleStateEnum +const ( + MfaTotpDeviceSummaryLifecycleStateCreating MfaTotpDeviceSummaryLifecycleStateEnum = "CREATING" + MfaTotpDeviceSummaryLifecycleStateActive MfaTotpDeviceSummaryLifecycleStateEnum = "ACTIVE" + MfaTotpDeviceSummaryLifecycleStateInactive MfaTotpDeviceSummaryLifecycleStateEnum = "INACTIVE" + MfaTotpDeviceSummaryLifecycleStateDeleting MfaTotpDeviceSummaryLifecycleStateEnum = "DELETING" + MfaTotpDeviceSummaryLifecycleStateDeleted MfaTotpDeviceSummaryLifecycleStateEnum = "DELETED" +) + +var mappingMfaTotpDeviceSummaryLifecycleStateEnum = map[string]MfaTotpDeviceSummaryLifecycleStateEnum{ + "CREATING": MfaTotpDeviceSummaryLifecycleStateCreating, + "ACTIVE": MfaTotpDeviceSummaryLifecycleStateActive, + "INACTIVE": MfaTotpDeviceSummaryLifecycleStateInactive, + "DELETING": MfaTotpDeviceSummaryLifecycleStateDeleting, + "DELETED": MfaTotpDeviceSummaryLifecycleStateDeleted, +} + +var mappingMfaTotpDeviceSummaryLifecycleStateEnumLowerCase = map[string]MfaTotpDeviceSummaryLifecycleStateEnum{ + "creating": MfaTotpDeviceSummaryLifecycleStateCreating, + "active": MfaTotpDeviceSummaryLifecycleStateActive, + "inactive": MfaTotpDeviceSummaryLifecycleStateInactive, + "deleting": MfaTotpDeviceSummaryLifecycleStateDeleting, + "deleted": MfaTotpDeviceSummaryLifecycleStateDeleted, +} + +// GetMfaTotpDeviceSummaryLifecycleStateEnumValues Enumerates the set of values for MfaTotpDeviceSummaryLifecycleStateEnum +func GetMfaTotpDeviceSummaryLifecycleStateEnumValues() []MfaTotpDeviceSummaryLifecycleStateEnum { + values := make([]MfaTotpDeviceSummaryLifecycleStateEnum, 0) + for _, v := range mappingMfaTotpDeviceSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetMfaTotpDeviceSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for MfaTotpDeviceSummaryLifecycleStateEnum +func GetMfaTotpDeviceSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingMfaTotpDeviceSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMfaTotpDeviceSummaryLifecycleStateEnum(val string) (MfaTotpDeviceSummaryLifecycleStateEnum, bool) { + enum, ok := mappingMfaTotpDeviceSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go new file mode 100644 index 0000000000..ac2c9ca319 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/mfa_totp_token.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MfaTotpToken Totp token for MFA +type MfaTotpToken struct { + + // The Totp token for MFA. + TotpToken *string `mandatory:"false" json:"totpToken"` +} + +func (m MfaTotpToken) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MfaTotpToken) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go new file mode 100644 index 0000000000..1ce8238cf1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// MoveCompartmentDetails The representation of MoveCompartmentDetails +type MoveCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the destination compartment + // into which to move the compartment. + TargetCompartmentId *string `mandatory:"true" json:"targetCompartmentId"` +} + +func (m MoveCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MoveCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go index 3238db8f25..ad3fb2aff5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/move_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/move_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // MoveCompartmentRequest wrapper for the MoveCompartment operation @@ -46,6 +48,10 @@ func (request MoveCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request MoveCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request MoveCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request MoveCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MoveCompartmentResponse wrapper for the MoveCompartment operation type MoveCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go new file mode 100644 index 0000000000..f875d93af7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_policy.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkPolicy Network policy, which consists of a list of network source IDs. +type NetworkPolicy struct { + + // Network Source ids + NetworkSourceIds []string `mandatory:"false" json:"networkSourceIds"` +} + +func (m NetworkPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go new file mode 100644 index 0000000000..b0bca670e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources.go @@ -0,0 +1,139 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkSources A network source specifies a list of source IP addresses that are allowed to make authorization requests. +// Use the network source in policy statements to restrict access to only requests that come from the specified IPs. +// For more information, see Managing Network Sources (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingnetworksources.htm). +type NetworkSources struct { + + // The OCID of the network source. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the network source. The tenancy is the root compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the network source during creation. The name must be unique across + // the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the network source. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the group was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The network source object's current state. After creating a network source, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState NetworkSourcesLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A list of allowed public IPs and CIDR ranges. + PublicSourceList []string `mandatory:"false" json:"publicSourceList"` + + // A list of allowed VCN OCID and IP range pairs. + // Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` + VirtualSourceList []NetworkSourcesVirtualSourceList `mandatory:"false" json:"virtualSourceList"` + + // -- The services attribute has no effect and is reserved for use by Oracle. -- + Services []string `mandatory:"false" json:"services"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m NetworkSources) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkSources) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNetworkSourcesLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetNetworkSourcesLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NetworkSourcesLifecycleStateEnum Enum with underlying type: string +type NetworkSourcesLifecycleStateEnum string + +// Set of constants representing the allowable values for NetworkSourcesLifecycleStateEnum +const ( + NetworkSourcesLifecycleStateCreating NetworkSourcesLifecycleStateEnum = "CREATING" + NetworkSourcesLifecycleStateActive NetworkSourcesLifecycleStateEnum = "ACTIVE" + NetworkSourcesLifecycleStateInactive NetworkSourcesLifecycleStateEnum = "INACTIVE" + NetworkSourcesLifecycleStateDeleting NetworkSourcesLifecycleStateEnum = "DELETING" + NetworkSourcesLifecycleStateDeleted NetworkSourcesLifecycleStateEnum = "DELETED" +) + +var mappingNetworkSourcesLifecycleStateEnum = map[string]NetworkSourcesLifecycleStateEnum{ + "CREATING": NetworkSourcesLifecycleStateCreating, + "ACTIVE": NetworkSourcesLifecycleStateActive, + "INACTIVE": NetworkSourcesLifecycleStateInactive, + "DELETING": NetworkSourcesLifecycleStateDeleting, + "DELETED": NetworkSourcesLifecycleStateDeleted, +} + +var mappingNetworkSourcesLifecycleStateEnumLowerCase = map[string]NetworkSourcesLifecycleStateEnum{ + "creating": NetworkSourcesLifecycleStateCreating, + "active": NetworkSourcesLifecycleStateActive, + "inactive": NetworkSourcesLifecycleStateInactive, + "deleting": NetworkSourcesLifecycleStateDeleting, + "deleted": NetworkSourcesLifecycleStateDeleted, +} + +// GetNetworkSourcesLifecycleStateEnumValues Enumerates the set of values for NetworkSourcesLifecycleStateEnum +func GetNetworkSourcesLifecycleStateEnumValues() []NetworkSourcesLifecycleStateEnum { + values := make([]NetworkSourcesLifecycleStateEnum, 0) + for _, v := range mappingNetworkSourcesLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetNetworkSourcesLifecycleStateEnumStringValues Enumerates the set of values in String for NetworkSourcesLifecycleStateEnum +func GetNetworkSourcesLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingNetworkSourcesLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkSourcesLifecycleStateEnum(val string) (NetworkSourcesLifecycleStateEnum, bool) { + enum, ok := mappingNetworkSourcesLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_summary.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go index bde725a736..e924872f18 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/network_sources_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_summary.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NetworkSourcesSummary A network source specifies a list of source IP addresses that are allowed to make authorization requests. @@ -38,8 +40,7 @@ type NetworkSourcesSummary struct { // Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` VirtualSourceList []NetworkSourcesVirtualSourceList `mandatory:"false" json:"virtualSourceList"` - // A list of services allowed to make on-behalf-of requests. These requests can have different source IPs than - // those specified in the network source. Currently, only `all` and `none` are supported. The default is `all`. + // -- The services attribute has no effect and is reserved for use by Oracle. -- Services []string `mandatory:"false" json:"services"` // Date and time the group was created, in the format defined by RFC3339. @@ -60,3 +61,15 @@ type NetworkSourcesSummary struct { func (m NetworkSourcesSummary) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkSourcesSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go new file mode 100644 index 0000000000..6940afddd9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/network_sources_virtual_source_list.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkSourcesVirtualSourceList The representation of NetworkSourcesVirtualSourceList +type NetworkSourcesVirtualSourceList struct { + VcnId *string `mandatory:"false" json:"vcnId"` + + IpRanges []string `mandatory:"false" json:"ipRanges"` +} + +func (m NetworkSourcesVirtualSourceList) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkSourcesVirtualSourceList) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go new file mode 100644 index 0000000000..c77b49488d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OAuth2ClientCredential User can define Oauth clients in IAM, then use it to generate a token to grant access to app resources. +type OAuth2ClientCredential struct { + + // Allowed scopes for the given oauth credential. + Scopes []FullyQualifiedScope `mandatory:"false" json:"scopes"` + + // Returned during create and update with password reset requests. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the user the Oauth credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time when this credential will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` + + // The OCID of the Oauth credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment containing the Oauth credential. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the Oauth credential. + Name *string `mandatory:"false" json:"name"` + + // The description of the Oauth credential. + Description *string `mandatory:"false" json:"description"` + + // The credential's current state. After creating a Oauth credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState OAuth2ClientCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Date and time the `OAuth2ClientCredential` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m OAuth2ClientCredential) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OAuth2ClientCredential) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingOAuth2ClientCredentialLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOAuth2ClientCredentialLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OAuth2ClientCredentialLifecycleStateEnum Enum with underlying type: string +type OAuth2ClientCredentialLifecycleStateEnum string + +// Set of constants representing the allowable values for OAuth2ClientCredentialLifecycleStateEnum +const ( + OAuth2ClientCredentialLifecycleStateCreating OAuth2ClientCredentialLifecycleStateEnum = "CREATING" + OAuth2ClientCredentialLifecycleStateActive OAuth2ClientCredentialLifecycleStateEnum = "ACTIVE" + OAuth2ClientCredentialLifecycleStateInactive OAuth2ClientCredentialLifecycleStateEnum = "INACTIVE" + OAuth2ClientCredentialLifecycleStateDeleting OAuth2ClientCredentialLifecycleStateEnum = "DELETING" + OAuth2ClientCredentialLifecycleStateDeleted OAuth2ClientCredentialLifecycleStateEnum = "DELETED" +) + +var mappingOAuth2ClientCredentialLifecycleStateEnum = map[string]OAuth2ClientCredentialLifecycleStateEnum{ + "CREATING": OAuth2ClientCredentialLifecycleStateCreating, + "ACTIVE": OAuth2ClientCredentialLifecycleStateActive, + "INACTIVE": OAuth2ClientCredentialLifecycleStateInactive, + "DELETING": OAuth2ClientCredentialLifecycleStateDeleting, + "DELETED": OAuth2ClientCredentialLifecycleStateDeleted, +} + +var mappingOAuth2ClientCredentialLifecycleStateEnumLowerCase = map[string]OAuth2ClientCredentialLifecycleStateEnum{ + "creating": OAuth2ClientCredentialLifecycleStateCreating, + "active": OAuth2ClientCredentialLifecycleStateActive, + "inactive": OAuth2ClientCredentialLifecycleStateInactive, + "deleting": OAuth2ClientCredentialLifecycleStateDeleting, + "deleted": OAuth2ClientCredentialLifecycleStateDeleted, +} + +// GetOAuth2ClientCredentialLifecycleStateEnumValues Enumerates the set of values for OAuth2ClientCredentialLifecycleStateEnum +func GetOAuth2ClientCredentialLifecycleStateEnumValues() []OAuth2ClientCredentialLifecycleStateEnum { + values := make([]OAuth2ClientCredentialLifecycleStateEnum, 0) + for _, v := range mappingOAuth2ClientCredentialLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOAuth2ClientCredentialLifecycleStateEnumStringValues Enumerates the set of values in String for OAuth2ClientCredentialLifecycleStateEnum +func GetOAuth2ClientCredentialLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingOAuth2ClientCredentialLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOAuth2ClientCredentialLifecycleStateEnum(val string) (OAuth2ClientCredentialLifecycleStateEnum, bool) { + enum, ok := mappingOAuth2ClientCredentialLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go new file mode 100644 index 0000000000..5064a17258 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/o_auth2_client_credential_summary.go @@ -0,0 +1,124 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OAuth2ClientCredentialSummary User can define Oauth clients in IAM, then use it to generate a token to grant access to app resources. +type OAuth2ClientCredentialSummary struct { + + // Allowed scopes for the given oauth credential. + Scopes []FullyQualifiedScope `mandatory:"false" json:"scopes"` + + // The OCID of the user the Oauth credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time when this credential will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` + + // The OCID of the Oauth credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment containing the Oauth credential. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the Oauth credential. + Name *string `mandatory:"false" json:"name"` + + // The description of the Oauth credential. + Description *string `mandatory:"false" json:"description"` + + // The credential's current state. After creating a Oauth credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState OAuth2ClientCredentialSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Date and time the `OAuth2ClientCredential` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` +} + +func (m OAuth2ClientCredentialSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OAuth2ClientCredentialSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingOAuth2ClientCredentialSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetOAuth2ClientCredentialSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// OAuth2ClientCredentialSummaryLifecycleStateEnum Enum with underlying type: string +type OAuth2ClientCredentialSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for OAuth2ClientCredentialSummaryLifecycleStateEnum +const ( + OAuth2ClientCredentialSummaryLifecycleStateCreating OAuth2ClientCredentialSummaryLifecycleStateEnum = "CREATING" + OAuth2ClientCredentialSummaryLifecycleStateActive OAuth2ClientCredentialSummaryLifecycleStateEnum = "ACTIVE" + OAuth2ClientCredentialSummaryLifecycleStateInactive OAuth2ClientCredentialSummaryLifecycleStateEnum = "INACTIVE" + OAuth2ClientCredentialSummaryLifecycleStateDeleting OAuth2ClientCredentialSummaryLifecycleStateEnum = "DELETING" + OAuth2ClientCredentialSummaryLifecycleStateDeleted OAuth2ClientCredentialSummaryLifecycleStateEnum = "DELETED" +) + +var mappingOAuth2ClientCredentialSummaryLifecycleStateEnum = map[string]OAuth2ClientCredentialSummaryLifecycleStateEnum{ + "CREATING": OAuth2ClientCredentialSummaryLifecycleStateCreating, + "ACTIVE": OAuth2ClientCredentialSummaryLifecycleStateActive, + "INACTIVE": OAuth2ClientCredentialSummaryLifecycleStateInactive, + "DELETING": OAuth2ClientCredentialSummaryLifecycleStateDeleting, + "DELETED": OAuth2ClientCredentialSummaryLifecycleStateDeleted, +} + +var mappingOAuth2ClientCredentialSummaryLifecycleStateEnumLowerCase = map[string]OAuth2ClientCredentialSummaryLifecycleStateEnum{ + "creating": OAuth2ClientCredentialSummaryLifecycleStateCreating, + "active": OAuth2ClientCredentialSummaryLifecycleStateActive, + "inactive": OAuth2ClientCredentialSummaryLifecycleStateInactive, + "deleting": OAuth2ClientCredentialSummaryLifecycleStateDeleting, + "deleted": OAuth2ClientCredentialSummaryLifecycleStateDeleted, +} + +// GetOAuth2ClientCredentialSummaryLifecycleStateEnumValues Enumerates the set of values for OAuth2ClientCredentialSummaryLifecycleStateEnum +func GetOAuth2ClientCredentialSummaryLifecycleStateEnumValues() []OAuth2ClientCredentialSummaryLifecycleStateEnum { + values := make([]OAuth2ClientCredentialSummaryLifecycleStateEnum, 0) + for _, v := range mappingOAuth2ClientCredentialSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetOAuth2ClientCredentialSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for OAuth2ClientCredentialSummaryLifecycleStateEnum +func GetOAuth2ClientCredentialSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingOAuth2ClientCredentialSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOAuth2ClientCredentialSummaryLifecycleStateEnum(val string) (OAuth2ClientCredentialSummaryLifecycleStateEnum, bool) { + enum, ok := mappingOAuth2ClientCredentialSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go new file mode 100644 index 0000000000..0114d02823 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/password_policy.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PasswordPolicy Password policy, currently set for the given compartment. +type PasswordPolicy struct { + + // Minimum password length required. + MinimumPasswordLength *int `mandatory:"false" json:"minimumPasswordLength"` + + // At least one uppercase character required. + IsUppercaseCharactersRequired *bool `mandatory:"false" json:"isUppercaseCharactersRequired"` + + // At least one lower case character required. + IsLowercaseCharactersRequired *bool `mandatory:"false" json:"isLowercaseCharactersRequired"` + + // At least one numeric character required. + IsNumericCharactersRequired *bool `mandatory:"false" json:"isNumericCharactersRequired"` + + // At least one special character required. + IsSpecialCharactersRequired *bool `mandatory:"false" json:"isSpecialCharactersRequired"` + + // User name is allowed to be part of the password. + IsUsernameContainmentAllowed *bool `mandatory:"false" json:"isUsernameContainmentAllowed"` +} + +func (m PasswordPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PasswordPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go new file mode 100644 index 0000000000..9767675a54 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/policy.go @@ -0,0 +1,146 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Policy A document that specifies the type of access a group has to the resources in a compartment. For information about +// policies and other IAM Service components, see +// Overview of IAM (https://docs.cloud.oracle.com/Content/Identity/getstarted/identity-domains.htm). If you're new to policies, see +// Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// The word "policy" is used by people in different ways: +// * An individual statement written in the policy language +// * A collection of statements in a single, named "policy" document (which has an Oracle Cloud ID (OCID) assigned to it) +// * The overall body of policies your organization uses to control access to resources +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values +// using the API. +type Policy struct { + + // The OCID of the policy. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the policy (either the tenancy or another compartment). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the policy during creation. The name must be unique across all policies + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // An array of one or more policy statements written in the policy language. + Statements []string `mandatory:"true" json:"statements"` + + // The description you assign to the policy. Does not have to be unique, and it's changeable. + Description *string `mandatory:"true" json:"description"` + + // Date and time the policy was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The policy's current state. After creating a policy, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState PolicyLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the + // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular + // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. + VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Policy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Policy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPolicyLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetPolicyLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PolicyLifecycleStateEnum Enum with underlying type: string +type PolicyLifecycleStateEnum string + +// Set of constants representing the allowable values for PolicyLifecycleStateEnum +const ( + PolicyLifecycleStateCreating PolicyLifecycleStateEnum = "CREATING" + PolicyLifecycleStateActive PolicyLifecycleStateEnum = "ACTIVE" + PolicyLifecycleStateInactive PolicyLifecycleStateEnum = "INACTIVE" + PolicyLifecycleStateDeleting PolicyLifecycleStateEnum = "DELETING" + PolicyLifecycleStateDeleted PolicyLifecycleStateEnum = "DELETED" +) + +var mappingPolicyLifecycleStateEnum = map[string]PolicyLifecycleStateEnum{ + "CREATING": PolicyLifecycleStateCreating, + "ACTIVE": PolicyLifecycleStateActive, + "INACTIVE": PolicyLifecycleStateInactive, + "DELETING": PolicyLifecycleStateDeleting, + "DELETED": PolicyLifecycleStateDeleted, +} + +var mappingPolicyLifecycleStateEnumLowerCase = map[string]PolicyLifecycleStateEnum{ + "creating": PolicyLifecycleStateCreating, + "active": PolicyLifecycleStateActive, + "inactive": PolicyLifecycleStateInactive, + "deleting": PolicyLifecycleStateDeleting, + "deleted": PolicyLifecycleStateDeleted, +} + +// GetPolicyLifecycleStateEnumValues Enumerates the set of values for PolicyLifecycleStateEnum +func GetPolicyLifecycleStateEnumValues() []PolicyLifecycleStateEnum { + values := make([]PolicyLifecycleStateEnum, 0) + for _, v := range mappingPolicyLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetPolicyLifecycleStateEnumStringValues Enumerates the set of values in String for PolicyLifecycleStateEnum +func GetPolicyLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingPolicyLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPolicyLifecycleStateEnum(val string) (PolicyLifecycleStateEnum, bool) { + enum, ok := mappingPolicyLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/recover_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/recover_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go index 28d32c95eb..e448de0533 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/recover_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/recover_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RecoverCompartmentRequest wrapper for the RecoverCompartment operation @@ -36,6 +38,10 @@ func (request RecoverCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RecoverCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request RecoverCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RecoverCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RecoverCompartmentResponse wrapper for the RecoverCompartment operation type RecoverCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go new file mode 100644 index 0000000000..7c8044fc0b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Region A localized geographic area, such as Phoenix, AZ. Oracle Cloud Infrastructure is hosted in regions and Availability +// Domains. A region is composed of several Availability Domains. An Availability Domain is one or more data centers +// located within a region. For more information, see Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +type Region struct { + + // The key of the region. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) for + // the full list of supported 3-letter region codes. + // Example: `PHX` + Key *string `mandatory:"false" json:"key"` + + // The name of the region. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported region names. + // Example: `us-phoenix-1` + Name *string `mandatory:"false" json:"name"` +} + +func (m Region) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Region) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go new file mode 100644 index 0000000000..c472eb3118 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/region_subscription.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RegionSubscription An object that represents your tenancy's access to a particular region (i.e., a subscription), the status of that +// access, and whether that region is the home region. For more information, see Managing Regions (https://docs.cloud.oracle.com/Content/Identity/regions/managingregions.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +type RegionSubscription struct { + + // The region's key. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported 3-letter region codes. + // Example: `PHX` + RegionKey *string `mandatory:"true" json:"regionKey"` + + // The region's name. See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported region names. + // Example: `us-phoenix-1` + RegionName *string `mandatory:"true" json:"regionName"` + + // The region subscription status. + Status RegionSubscriptionStatusEnum `mandatory:"true" json:"status"` + + // Indicates if the region is the home region or not. + IsHomeRegion *bool `mandatory:"true" json:"isHomeRegion"` +} + +func (m RegionSubscription) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RegionSubscription) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRegionSubscriptionStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetRegionSubscriptionStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RegionSubscriptionStatusEnum Enum with underlying type: string +type RegionSubscriptionStatusEnum string + +// Set of constants representing the allowable values for RegionSubscriptionStatusEnum +const ( + RegionSubscriptionStatusReady RegionSubscriptionStatusEnum = "READY" + RegionSubscriptionStatusInProgress RegionSubscriptionStatusEnum = "IN_PROGRESS" +) + +var mappingRegionSubscriptionStatusEnum = map[string]RegionSubscriptionStatusEnum{ + "READY": RegionSubscriptionStatusReady, + "IN_PROGRESS": RegionSubscriptionStatusInProgress, +} + +var mappingRegionSubscriptionStatusEnumLowerCase = map[string]RegionSubscriptionStatusEnum{ + "ready": RegionSubscriptionStatusReady, + "in_progress": RegionSubscriptionStatusInProgress, +} + +// GetRegionSubscriptionStatusEnumValues Enumerates the set of values for RegionSubscriptionStatusEnum +func GetRegionSubscriptionStatusEnumValues() []RegionSubscriptionStatusEnum { + values := make([]RegionSubscriptionStatusEnum, 0) + for _, v := range mappingRegionSubscriptionStatusEnum { + values = append(values, v) + } + return values +} + +// GetRegionSubscriptionStatusEnumStringValues Enumerates the set of values in String for RegionSubscriptionStatusEnum +func GetRegionSubscriptionStatusEnumStringValues() []string { + return []string{ + "READY", + "IN_PROGRESS", + } +} + +// GetMappingRegionSubscriptionStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRegionSubscriptionStatusEnum(val string) (RegionSubscriptionStatusEnum, bool) { + enum, ok := mappingRegionSubscriptionStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go new file mode 100644 index 0000000000..f9f982f65d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_lock_details.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RemoveLockDetails Request payload to remove lock to the resource. +type RemoveLockDetails struct { + + // Type of the lock. + Type RemoveLockDetailsTypeEnum `mandatory:"true" json:"type"` + + // The compartment ID of the lock. + CompartmentId *string `mandatory:"false" json:"compartmentId"` +} + +func (m RemoveLockDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveLockDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRemoveLockDetailsTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetRemoveLockDetailsTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveLockDetailsTypeEnum Enum with underlying type: string +type RemoveLockDetailsTypeEnum string + +// Set of constants representing the allowable values for RemoveLockDetailsTypeEnum +const ( + RemoveLockDetailsTypeFull RemoveLockDetailsTypeEnum = "FULL" + RemoveLockDetailsTypeDelete RemoveLockDetailsTypeEnum = "DELETE" +) + +var mappingRemoveLockDetailsTypeEnum = map[string]RemoveLockDetailsTypeEnum{ + "FULL": RemoveLockDetailsTypeFull, + "DELETE": RemoveLockDetailsTypeDelete, +} + +var mappingRemoveLockDetailsTypeEnumLowerCase = map[string]RemoveLockDetailsTypeEnum{ + "full": RemoveLockDetailsTypeFull, + "delete": RemoveLockDetailsTypeDelete, +} + +// GetRemoveLockDetailsTypeEnumValues Enumerates the set of values for RemoveLockDetailsTypeEnum +func GetRemoveLockDetailsTypeEnumValues() []RemoveLockDetailsTypeEnum { + values := make([]RemoveLockDetailsTypeEnum, 0) + for _, v := range mappingRemoveLockDetailsTypeEnum { + values = append(values, v) + } + return values +} + +// GetRemoveLockDetailsTypeEnumStringValues Enumerates the set of values in String for RemoveLockDetailsTypeEnum +func GetRemoveLockDetailsTypeEnumStringValues() []string { + return []string{ + "FULL", + "DELETE", + } +} + +// GetMappingRemoveLockDetailsTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRemoveLockDetailsTypeEnum(val string) (RemoveLockDetailsTypeEnum, bool) { + enum, ok := mappingRemoveLockDetailsTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_default_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_default_lock_request_response.go new file mode 100644 index 0000000000..b94f45ce5a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_default_lock_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RemoveTagDefaultLockRequest wrapper for the RemoveTagDefaultLock operation +type RemoveTagDefaultLockRequest struct { + + // The OCID of the tag default. + TagDefaultId *string `mandatory:"true" contributesTo:"path" name:"tagDefaultId"` + + // Lock that is going to be removed from resource + RemoveLockDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RemoveTagDefaultLockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveTagDefaultLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RemoveTagDefaultLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveTagDefaultLockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveTagDefaultLockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveTagDefaultLockResponse wrapper for the RemoveTagDefaultLock operation +type RemoveTagDefaultLockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagDefault instance + TagDefault `presentIn:"body"` + + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + Etag *string `presentIn:"header" name:"etag"` +} + +func (response RemoveTagDefaultLockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveTagDefaultLockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_namespace_lock_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_namespace_lock_request_response.go new file mode 100644 index 0000000000..07187b3686 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_tag_namespace_lock_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RemoveTagNamespaceLockRequest wrapper for the RemoveTagNamespaceLock operation +type RemoveTagNamespaceLockRequest struct { + + // The OCID of the tag namespace. + TagNamespaceId *string `mandatory:"true" contributesTo:"path" name:"tagNamespaceId"` + + // Lock that is going to be removed from resource + RemoveLockDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RemoveTagNamespaceLockRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RemoveTagNamespaceLockRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RemoveTagNamespaceLockRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RemoveTagNamespaceLockRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveTagNamespaceLockRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RemoveTagNamespaceLockResponse wrapper for the RemoveTagNamespaceLock operation +type RemoveTagNamespaceLockResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The TagNamespace instance + TagNamespace `presentIn:"body"` + + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + Etag *string `presentIn:"header" name:"etag"` +} + +func (response RemoveTagNamespaceLockResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RemoveTagNamespaceLockResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/remove_user_from_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_user_from_group_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/remove_user_from_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_user_from_group_request_response.go index b757bdb1de..10bfb1851f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/remove_user_from_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/remove_user_from_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveUserFromGroupRequest wrapper for the RemoveUserFromGroup operation @@ -36,6 +38,10 @@ func (request RemoveUserFromGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveUserFromGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request RemoveUserFromGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveUserFromGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveUserFromGroupResponse wrapper for the RemoveUserFromGroup operation type RemoveUserFromGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go new file mode 100644 index 0000000000..fd77552dfb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/replicated_region_details.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReplicatedRegionDetails (For tenancies that support identity domains) Properties for a region where a replica for the identity domain exists. +type ReplicatedRegionDetails struct { + + // A REPLICATION_ENABLED region, e.g. us-ashburn-1. + // See Regions and Availability Domains (https://docs.cloud.oracle.com/Content/General/Concepts/regions.htm) + // for the full list of supported region names. + Region *string `mandatory:"false" json:"region"` + + // Region-agnostic identity domain URL. + Url *string `mandatory:"false" json:"url"` + + // The IDCS-replicated region state. + State ReplicatedRegionDetailsStateEnum `mandatory:"false" json:"state,omitempty"` +} + +func (m ReplicatedRegionDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReplicatedRegionDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingReplicatedRegionDetailsStateEnum(string(m.State)); !ok && m.State != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for State: %s. Supported values are: %s.", m.State, strings.Join(GetReplicatedRegionDetailsStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ReplicatedRegionDetailsStateEnum Enum with underlying type: string +type ReplicatedRegionDetailsStateEnum string + +// Set of constants representing the allowable values for ReplicatedRegionDetailsStateEnum +const ( + ReplicatedRegionDetailsStateEnablingReplication ReplicatedRegionDetailsStateEnum = "ENABLING_REPLICATION" + ReplicatedRegionDetailsStateReplicationEnabled ReplicatedRegionDetailsStateEnum = "REPLICATION_ENABLED" + ReplicatedRegionDetailsStateDisablingReplication ReplicatedRegionDetailsStateEnum = "DISABLING_REPLICATION" + ReplicatedRegionDetailsStateReplicationDisabled ReplicatedRegionDetailsStateEnum = "REPLICATION_DISABLED" + ReplicatedRegionDetailsStateDeleted ReplicatedRegionDetailsStateEnum = "DELETED" +) + +var mappingReplicatedRegionDetailsStateEnum = map[string]ReplicatedRegionDetailsStateEnum{ + "ENABLING_REPLICATION": ReplicatedRegionDetailsStateEnablingReplication, + "REPLICATION_ENABLED": ReplicatedRegionDetailsStateReplicationEnabled, + "DISABLING_REPLICATION": ReplicatedRegionDetailsStateDisablingReplication, + "REPLICATION_DISABLED": ReplicatedRegionDetailsStateReplicationDisabled, + "DELETED": ReplicatedRegionDetailsStateDeleted, +} + +var mappingReplicatedRegionDetailsStateEnumLowerCase = map[string]ReplicatedRegionDetailsStateEnum{ + "enabling_replication": ReplicatedRegionDetailsStateEnablingReplication, + "replication_enabled": ReplicatedRegionDetailsStateReplicationEnabled, + "disabling_replication": ReplicatedRegionDetailsStateDisablingReplication, + "replication_disabled": ReplicatedRegionDetailsStateReplicationDisabled, + "deleted": ReplicatedRegionDetailsStateDeleted, +} + +// GetReplicatedRegionDetailsStateEnumValues Enumerates the set of values for ReplicatedRegionDetailsStateEnum +func GetReplicatedRegionDetailsStateEnumValues() []ReplicatedRegionDetailsStateEnum { + values := make([]ReplicatedRegionDetailsStateEnum, 0) + for _, v := range mappingReplicatedRegionDetailsStateEnum { + values = append(values, v) + } + return values +} + +// GetReplicatedRegionDetailsStateEnumStringValues Enumerates the set of values in String for ReplicatedRegionDetailsStateEnum +func GetReplicatedRegionDetailsStateEnumStringValues() []string { + return []string{ + "ENABLING_REPLICATION", + "REPLICATION_ENABLED", + "DISABLING_REPLICATION", + "REPLICATION_DISABLED", + "DELETED", + } +} + +// GetMappingReplicatedRegionDetailsStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingReplicatedRegionDetailsStateEnum(val string) (ReplicatedRegionDetailsStateEnum, bool) { + enum, ok := mappingReplicatedRegionDetailsStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/reset_idp_scim_client_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/reset_idp_scim_client_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/reset_idp_scim_client_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/reset_idp_scim_client_request_response.go index 09c81d6e39..a457fc596f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/reset_idp_scim_client_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/reset_idp_scim_client_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ResetIdpScimClientRequest wrapper for the ResetIdpScimClient operation @@ -31,6 +33,10 @@ func (request ResetIdpScimClientRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ResetIdpScimClientRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request ResetIdpScimClientRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ResetIdpScimClientRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ResetIdpScimClientResponse wrapper for the ResetIdpScimClient operation type ResetIdpScimClientResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go new file mode 100644 index 0000000000..72e4dbaebf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/resource_lock.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ResourceLock Resource locks are used to prevent certain APIs from being called for the resource. +// A full lock prevents both updating the resource and deleting the resource. A delete +// lock prevents deleting the resource. +type ResourceLock struct { + + // Type of the lock. + Type ResourceLockTypeEnum `mandatory:"true" json:"type"` + + // The compartment ID of the lock. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock. + RelatedResourceId *string `mandatory:"false" json:"relatedResourceId"` + + // A message added by the creator of the lock. This is typically used to give an + // indication of why the resource is locked. + Message *string `mandatory:"false" json:"message"` + + // When the lock was created. + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Indicates if the lock is active or not. For example, if there are mutliple FULL locks, the first-created FULL lock will be effective. + IsActive *bool `mandatory:"false" json:"isActive"` +} + +func (m ResourceLock) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ResourceLock) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingResourceLockTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetResourceLockTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ResourceLockTypeEnum Enum with underlying type: string +type ResourceLockTypeEnum string + +// Set of constants representing the allowable values for ResourceLockTypeEnum +const ( + ResourceLockTypeFull ResourceLockTypeEnum = "FULL" + ResourceLockTypeDelete ResourceLockTypeEnum = "DELETE" +) + +var mappingResourceLockTypeEnum = map[string]ResourceLockTypeEnum{ + "FULL": ResourceLockTypeFull, + "DELETE": ResourceLockTypeDelete, +} + +var mappingResourceLockTypeEnumLowerCase = map[string]ResourceLockTypeEnum{ + "full": ResourceLockTypeFull, + "delete": ResourceLockTypeDelete, +} + +// GetResourceLockTypeEnumValues Enumerates the set of values for ResourceLockTypeEnum +func GetResourceLockTypeEnumValues() []ResourceLockTypeEnum { + values := make([]ResourceLockTypeEnum, 0) + for _, v := range mappingResourceLockTypeEnum { + values = append(values, v) + } + return values +} + +// GetResourceLockTypeEnumStringValues Enumerates the set of values in String for ResourceLockTypeEnum +func GetResourceLockTypeEnumStringValues() []string { + return []string{ + "FULL", + "DELETE", + } +} + +// GetMappingResourceLockTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingResourceLockTypeEnum(val string) (ResourceLockTypeEnum, bool) { + enum, ok := mappingResourceLockTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/saml2_identity_provider.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go similarity index 87% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/saml2_identity_provider.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go index 522b195232..cc47c078ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/saml2_identity_provider.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/saml2_identity_provider.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Saml2IdentityProvider A special type of IdentityProvider that @@ -159,6 +161,21 @@ func (m Saml2IdentityProvider) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Saml2IdentityProvider) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIdentityProviderLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetIdentityProviderLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m Saml2IdentityProvider) MarshalJSON() (buff []byte, e error) { type MarshalTypeSaml2IdentityProvider Saml2IdentityProvider diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go new file mode 100644 index 0000000000..676722f631 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/scim_client_credentials.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ScimClientCredentials The OAuth2 client credentials. +type ScimClientCredentials struct { + + // The client identifier. + ClientId *string `mandatory:"false" json:"clientId"` + + // The client secret. + ClientSecret *string `mandatory:"false" json:"clientSecret"` +} + +func (m ScimClientCredentials) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ScimClientCredentials) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_details.go new file mode 100644 index 0000000000..e83cb3f9a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SetGovernanceFromChildDetails The representation of SetGovernanceFromChildDetails +type SetGovernanceFromChildDetails struct { + + // The ocid of the governing tenancy, also known as the parent tenancy in governing relationship. + ParentTenancyId *string `mandatory:"false" json:"parentTenancyId"` +} + +func (m SetGovernanceFromChildDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SetGovernanceFromChildDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_request_response.go new file mode 100644 index 0000000000..8ae596d70f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_child_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// SetGovernanceFromChildRequest wrapper for the SetGovernanceFromChild operation +type SetGovernanceFromChildRequest struct { + + // The OCID of the child tenancy. + ChildTenancyId *string `mandatory:"true" contributesTo:"path" name:"childTenancyId"` + + // Request object for setting governance from child + SetGovernanceFromChildDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request SetGovernanceFromChildRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request SetGovernanceFromChildRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request SetGovernanceFromChildRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request SetGovernanceFromChildRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SetGovernanceFromChildRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SetGovernanceFromChildResponse wrapper for the SetGovernanceFromChild operation +type SetGovernanceFromChildResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tenancy instance + Tenancy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response SetGovernanceFromChildResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response SetGovernanceFromChildResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_details.go new file mode 100644 index 0000000000..e6c2ca3e0a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SetGovernanceFromParentDetails The representation of SetGovernanceFromParentDetails +type SetGovernanceFromParentDetails struct { + + // The ocid of the governing tenancy, also known as the parent tenancy in governing relationship. + ParentTenancyId *string `mandatory:"false" json:"parentTenancyId"` +} + +func (m SetGovernanceFromParentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SetGovernanceFromParentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_request_response.go new file mode 100644 index 0000000000..a14e518fd4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/set_governance_from_parent_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// SetGovernanceFromParentRequest wrapper for the SetGovernanceFromParent operation +type SetGovernanceFromParentRequest struct { + + // The OCID of the child tenancy. + ChildTenancyId *string `mandatory:"true" contributesTo:"path" name:"childTenancyId"` + + // Request object for setting governance from parent + SetGovernanceFromParentDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request SetGovernanceFromParentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request SetGovernanceFromParentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request SetGovernanceFromParentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request SetGovernanceFromParentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SetGovernanceFromParentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SetGovernanceFromParentResponse wrapper for the SetGovernanceFromParent operation +type SetGovernanceFromParentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tenancy instance + Tenancy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response SetGovernanceFromParentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response SetGovernanceFromParentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go new file mode 100644 index 0000000000..fa433ee00a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential.go @@ -0,0 +1,130 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SmtpCredential Simple Mail Transfer Protocol (SMTP) credentials are needed to send email through Email Delivery. +// The SMTP credentials are used for SMTP authentication with the service. The credentials never expire. +// A user can have up to 2 SMTP credentials at a time. +// **Note:** The credential set is always an Oracle-generated SMTP user name and password pair; +// you cannot designate the SMTP user name or the SMTP password. +// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/access/managing-user-credentials.htm#SMTP). +type SmtpCredential struct { + + // The SMTP user name. + Username *string `mandatory:"false" json:"username"` + + // The SMTP password. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the SMTP credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the SMTP credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `SmtpCredential` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this credential will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState SmtpCredentialLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m SmtpCredential) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SmtpCredential) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSmtpCredentialLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSmtpCredentialLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SmtpCredentialLifecycleStateEnum Enum with underlying type: string +type SmtpCredentialLifecycleStateEnum string + +// Set of constants representing the allowable values for SmtpCredentialLifecycleStateEnum +const ( + SmtpCredentialLifecycleStateCreating SmtpCredentialLifecycleStateEnum = "CREATING" + SmtpCredentialLifecycleStateActive SmtpCredentialLifecycleStateEnum = "ACTIVE" + SmtpCredentialLifecycleStateInactive SmtpCredentialLifecycleStateEnum = "INACTIVE" + SmtpCredentialLifecycleStateDeleting SmtpCredentialLifecycleStateEnum = "DELETING" + SmtpCredentialLifecycleStateDeleted SmtpCredentialLifecycleStateEnum = "DELETED" +) + +var mappingSmtpCredentialLifecycleStateEnum = map[string]SmtpCredentialLifecycleStateEnum{ + "CREATING": SmtpCredentialLifecycleStateCreating, + "ACTIVE": SmtpCredentialLifecycleStateActive, + "INACTIVE": SmtpCredentialLifecycleStateInactive, + "DELETING": SmtpCredentialLifecycleStateDeleting, + "DELETED": SmtpCredentialLifecycleStateDeleted, +} + +var mappingSmtpCredentialLifecycleStateEnumLowerCase = map[string]SmtpCredentialLifecycleStateEnum{ + "creating": SmtpCredentialLifecycleStateCreating, + "active": SmtpCredentialLifecycleStateActive, + "inactive": SmtpCredentialLifecycleStateInactive, + "deleting": SmtpCredentialLifecycleStateDeleting, + "deleted": SmtpCredentialLifecycleStateDeleted, +} + +// GetSmtpCredentialLifecycleStateEnumValues Enumerates the set of values for SmtpCredentialLifecycleStateEnum +func GetSmtpCredentialLifecycleStateEnumValues() []SmtpCredentialLifecycleStateEnum { + values := make([]SmtpCredentialLifecycleStateEnum, 0) + for _, v := range mappingSmtpCredentialLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSmtpCredentialLifecycleStateEnumStringValues Enumerates the set of values in String for SmtpCredentialLifecycleStateEnum +func GetSmtpCredentialLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingSmtpCredentialLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSmtpCredentialLifecycleStateEnum(val string) (SmtpCredentialLifecycleStateEnum, bool) { + enum, ok := mappingSmtpCredentialLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go new file mode 100644 index 0000000000..6d0ad8362f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/smtp_credential_summary.go @@ -0,0 +1,124 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SmtpCredentialSummary As the name suggests, an `SmtpCredentialSummary` object contains information about an `SmtpCredential`. +// The SMTP credential is used for SMTP authentication with +// the Email Delivery Service (https://docs.cloud.oracle.com/Content/Email/Concepts/overview.htm). +type SmtpCredentialSummary struct { + + // The SMTP user name. + Username *string `mandatory:"false" json:"username"` + + // The OCID of the SMTP credential. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the SMTP credential belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `SmtpCredential` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this credential will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + TimeExpires *common.SDKTime `mandatory:"false" json:"timeExpires"` + + // The credential's current state. After creating a SMTP credential, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState SmtpCredentialSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m SmtpCredentialSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SmtpCredentialSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSmtpCredentialSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSmtpCredentialSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SmtpCredentialSummaryLifecycleStateEnum Enum with underlying type: string +type SmtpCredentialSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for SmtpCredentialSummaryLifecycleStateEnum +const ( + SmtpCredentialSummaryLifecycleStateCreating SmtpCredentialSummaryLifecycleStateEnum = "CREATING" + SmtpCredentialSummaryLifecycleStateActive SmtpCredentialSummaryLifecycleStateEnum = "ACTIVE" + SmtpCredentialSummaryLifecycleStateInactive SmtpCredentialSummaryLifecycleStateEnum = "INACTIVE" + SmtpCredentialSummaryLifecycleStateDeleting SmtpCredentialSummaryLifecycleStateEnum = "DELETING" + SmtpCredentialSummaryLifecycleStateDeleted SmtpCredentialSummaryLifecycleStateEnum = "DELETED" +) + +var mappingSmtpCredentialSummaryLifecycleStateEnum = map[string]SmtpCredentialSummaryLifecycleStateEnum{ + "CREATING": SmtpCredentialSummaryLifecycleStateCreating, + "ACTIVE": SmtpCredentialSummaryLifecycleStateActive, + "INACTIVE": SmtpCredentialSummaryLifecycleStateInactive, + "DELETING": SmtpCredentialSummaryLifecycleStateDeleting, + "DELETED": SmtpCredentialSummaryLifecycleStateDeleted, +} + +var mappingSmtpCredentialSummaryLifecycleStateEnumLowerCase = map[string]SmtpCredentialSummaryLifecycleStateEnum{ + "creating": SmtpCredentialSummaryLifecycleStateCreating, + "active": SmtpCredentialSummaryLifecycleStateActive, + "inactive": SmtpCredentialSummaryLifecycleStateInactive, + "deleting": SmtpCredentialSummaryLifecycleStateDeleting, + "deleted": SmtpCredentialSummaryLifecycleStateDeleted, +} + +// GetSmtpCredentialSummaryLifecycleStateEnumValues Enumerates the set of values for SmtpCredentialSummaryLifecycleStateEnum +func GetSmtpCredentialSummaryLifecycleStateEnumValues() []SmtpCredentialSummaryLifecycleStateEnum { + values := make([]SmtpCredentialSummaryLifecycleStateEnum, 0) + for _, v := range mappingSmtpCredentialSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSmtpCredentialSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for SmtpCredentialSummaryLifecycleStateEnum +func GetSmtpCredentialSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingSmtpCredentialSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSmtpCredentialSummaryLifecycleStateEnum(val string) (SmtpCredentialSummaryLifecycleStateEnum, bool) { + enum, ok := mappingSmtpCredentialSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go new file mode 100644 index 0000000000..e651ca1118 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_definition_template.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StandardTagDefinitionTemplate The template of the tag definition. This object includes necessary details to create the provided standard tag definition. +type StandardTagDefinitionTemplate struct { + + // The default description of the tag namespace that users can use to create the tag definition + Description *string `mandatory:"true" json:"description"` + + // The name of this standard tag definition + TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"` + + // The type of tag definition. Enum or string. + Type StandardTagDefinitionTemplateTypeEnum `mandatory:"true" json:"type"` + + // Is the tag a cost tracking tag. Default will be false as cost tracking tags have been deprecated + IsCostTracking *bool `mandatory:"true" json:"isCostTracking"` + + // List of possible values. An optional parameter that will be present if the type of definition is enum. + PossibleValues []string `mandatory:"false" json:"possibleValues"` + + // The mutability of the possible values list for enum tags. This will default to IMMUTABLE for string value tags + EnumMutability StandardTagDefinitionTemplateEnumMutabilityEnum `mandatory:"false" json:"enumMutability,omitempty"` +} + +func (m StandardTagDefinitionTemplate) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m StandardTagDefinitionTemplate) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingStandardTagDefinitionTemplateTypeEnum(string(m.Type)); !ok && m.Type != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Type: %s. Supported values are: %s.", m.Type, strings.Join(GetStandardTagDefinitionTemplateTypeEnumStringValues(), ","))) + } + + if _, ok := GetMappingStandardTagDefinitionTemplateEnumMutabilityEnum(string(m.EnumMutability)); !ok && m.EnumMutability != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for EnumMutability: %s. Supported values are: %s.", m.EnumMutability, strings.Join(GetStandardTagDefinitionTemplateEnumMutabilityEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// StandardTagDefinitionTemplateTypeEnum Enum with underlying type: string +type StandardTagDefinitionTemplateTypeEnum string + +// Set of constants representing the allowable values for StandardTagDefinitionTemplateTypeEnum +const ( + StandardTagDefinitionTemplateTypeEnumvalue StandardTagDefinitionTemplateTypeEnum = "ENUM" + StandardTagDefinitionTemplateTypeString StandardTagDefinitionTemplateTypeEnum = "STRING" +) + +var mappingStandardTagDefinitionTemplateTypeEnum = map[string]StandardTagDefinitionTemplateTypeEnum{ + "ENUM": StandardTagDefinitionTemplateTypeEnumvalue, + "STRING": StandardTagDefinitionTemplateTypeString, +} + +var mappingStandardTagDefinitionTemplateTypeEnumLowerCase = map[string]StandardTagDefinitionTemplateTypeEnum{ + "enum": StandardTagDefinitionTemplateTypeEnumvalue, + "string": StandardTagDefinitionTemplateTypeString, +} + +// GetStandardTagDefinitionTemplateTypeEnumValues Enumerates the set of values for StandardTagDefinitionTemplateTypeEnum +func GetStandardTagDefinitionTemplateTypeEnumValues() []StandardTagDefinitionTemplateTypeEnum { + values := make([]StandardTagDefinitionTemplateTypeEnum, 0) + for _, v := range mappingStandardTagDefinitionTemplateTypeEnum { + values = append(values, v) + } + return values +} + +// GetStandardTagDefinitionTemplateTypeEnumStringValues Enumerates the set of values in String for StandardTagDefinitionTemplateTypeEnum +func GetStandardTagDefinitionTemplateTypeEnumStringValues() []string { + return []string{ + "ENUM", + "STRING", + } +} + +// GetMappingStandardTagDefinitionTemplateTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStandardTagDefinitionTemplateTypeEnum(val string) (StandardTagDefinitionTemplateTypeEnum, bool) { + enum, ok := mappingStandardTagDefinitionTemplateTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// StandardTagDefinitionTemplateEnumMutabilityEnum Enum with underlying type: string +type StandardTagDefinitionTemplateEnumMutabilityEnum string + +// Set of constants representing the allowable values for StandardTagDefinitionTemplateEnumMutabilityEnum +const ( + StandardTagDefinitionTemplateEnumMutabilityImmutable StandardTagDefinitionTemplateEnumMutabilityEnum = "IMMUTABLE" + StandardTagDefinitionTemplateEnumMutabilityMutable StandardTagDefinitionTemplateEnumMutabilityEnum = "MUTABLE" + StandardTagDefinitionTemplateEnumMutabilityAppendable StandardTagDefinitionTemplateEnumMutabilityEnum = "APPENDABLE" +) + +var mappingStandardTagDefinitionTemplateEnumMutabilityEnum = map[string]StandardTagDefinitionTemplateEnumMutabilityEnum{ + "IMMUTABLE": StandardTagDefinitionTemplateEnumMutabilityImmutable, + "MUTABLE": StandardTagDefinitionTemplateEnumMutabilityMutable, + "APPENDABLE": StandardTagDefinitionTemplateEnumMutabilityAppendable, +} + +var mappingStandardTagDefinitionTemplateEnumMutabilityEnumLowerCase = map[string]StandardTagDefinitionTemplateEnumMutabilityEnum{ + "immutable": StandardTagDefinitionTemplateEnumMutabilityImmutable, + "mutable": StandardTagDefinitionTemplateEnumMutabilityMutable, + "appendable": StandardTagDefinitionTemplateEnumMutabilityAppendable, +} + +// GetStandardTagDefinitionTemplateEnumMutabilityEnumValues Enumerates the set of values for StandardTagDefinitionTemplateEnumMutabilityEnum +func GetStandardTagDefinitionTemplateEnumMutabilityEnumValues() []StandardTagDefinitionTemplateEnumMutabilityEnum { + values := make([]StandardTagDefinitionTemplateEnumMutabilityEnum, 0) + for _, v := range mappingStandardTagDefinitionTemplateEnumMutabilityEnum { + values = append(values, v) + } + return values +} + +// GetStandardTagDefinitionTemplateEnumMutabilityEnumStringValues Enumerates the set of values in String for StandardTagDefinitionTemplateEnumMutabilityEnum +func GetStandardTagDefinitionTemplateEnumMutabilityEnumStringValues() []string { + return []string{ + "IMMUTABLE", + "MUTABLE", + "APPENDABLE", + } +} + +// GetMappingStandardTagDefinitionTemplateEnumMutabilityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingStandardTagDefinitionTemplateEnumMutabilityEnum(val string) (StandardTagDefinitionTemplateEnumMutabilityEnum, bool) { + enum, ok := mappingStandardTagDefinitionTemplateEnumMutabilityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go new file mode 100644 index 0000000000..c76ebeae6c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StandardTagNamespaceTemplate The template of the standard tag namespace. This object includes necessary details to create the provided standard tag namespace. +type StandardTagNamespaceTemplate struct { + + // The default description of the tag namespace that users can use to create the tag namespace + Description *string `mandatory:"true" json:"description"` + + // The reserved name of this standard tag namespace + StandardTagNamespaceName *string `mandatory:"true" json:"standardTagNamespaceName"` + + // The template of the tag definition. This object includes necessary details to create the provided standard tag definition. + TagDefinitionTemplates []StandardTagDefinitionTemplate `mandatory:"true" json:"tagDefinitionTemplates"` + + // The status of the standard tag namespace + Status *string `mandatory:"true" json:"status"` +} + +func (m StandardTagNamespaceTemplate) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m StandardTagNamespaceTemplate) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go new file mode 100644 index 0000000000..71207b7b39 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/standard_tag_namespace_template_summary.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// StandardTagNamespaceTemplateSummary The template of the standard tag namespace. This object includes necessary details to create the provided standard tag namespace. +type StandardTagNamespaceTemplateSummary struct { + + // The default description of the tag namespace that users can use to create the tag namespace + Description *string `mandatory:"true" json:"description"` + + // The reserved name of this standard tag namespace + StandardTagNamespaceName *string `mandatory:"true" json:"standardTagNamespaceName"` + + // The status of the standard tag namespace + Status *string `mandatory:"true" json:"status"` +} + +func (m StandardTagNamespaceTemplateSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m StandardTagNamespaceTemplateSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go new file mode 100644 index 0000000000..b850b0f137 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/swift_password.go @@ -0,0 +1,127 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SwiftPassword **Deprecated. Use AuthToken instead.** +// Swift is the OpenStack object storage service. A `SwiftPassword` is an Oracle-provided password for using a +// Swift client with the Object Storage Service. This password is associated with +// the user's Console login. Swift passwords never expire. A user can have up to two Swift passwords at a time. +// **Note:** The password is always an Oracle-generated string; you can't change it to a string of your choice. +// For more information, see Managing User Credentials (https://docs.cloud.oracle.com/Content/Identity/Tasks/managingcredentials.htm). +type SwiftPassword struct { + + // The Swift password. The value is available only in the response for `CreateSwiftPassword`, and not + // for `ListSwiftPasswords` or `UpdateSwiftPassword`. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the Swift password. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the user the password belongs to. + UserId *string `mandatory:"false" json:"userId"` + + // The description you assign to the Swift password. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // Date and time the `SwiftPassword` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Date and time when this password will expire, in the format defined by RFC3339. + // Null if it never expires. + // Example: `2016-08-25T21:10:29.600Z` + ExpiresOn *common.SDKTime `mandatory:"false" json:"expiresOn"` + + // The password's current state. After creating a password, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState SwiftPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m SwiftPassword) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SwiftPassword) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSwiftPasswordLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetSwiftPasswordLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// SwiftPasswordLifecycleStateEnum Enum with underlying type: string +type SwiftPasswordLifecycleStateEnum string + +// Set of constants representing the allowable values for SwiftPasswordLifecycleStateEnum +const ( + SwiftPasswordLifecycleStateCreating SwiftPasswordLifecycleStateEnum = "CREATING" + SwiftPasswordLifecycleStateActive SwiftPasswordLifecycleStateEnum = "ACTIVE" + SwiftPasswordLifecycleStateInactive SwiftPasswordLifecycleStateEnum = "INACTIVE" + SwiftPasswordLifecycleStateDeleting SwiftPasswordLifecycleStateEnum = "DELETING" + SwiftPasswordLifecycleStateDeleted SwiftPasswordLifecycleStateEnum = "DELETED" +) + +var mappingSwiftPasswordLifecycleStateEnum = map[string]SwiftPasswordLifecycleStateEnum{ + "CREATING": SwiftPasswordLifecycleStateCreating, + "ACTIVE": SwiftPasswordLifecycleStateActive, + "INACTIVE": SwiftPasswordLifecycleStateInactive, + "DELETING": SwiftPasswordLifecycleStateDeleting, + "DELETED": SwiftPasswordLifecycleStateDeleted, +} + +var mappingSwiftPasswordLifecycleStateEnumLowerCase = map[string]SwiftPasswordLifecycleStateEnum{ + "creating": SwiftPasswordLifecycleStateCreating, + "active": SwiftPasswordLifecycleStateActive, + "inactive": SwiftPasswordLifecycleStateInactive, + "deleting": SwiftPasswordLifecycleStateDeleting, + "deleted": SwiftPasswordLifecycleStateDeleted, +} + +// GetSwiftPasswordLifecycleStateEnumValues Enumerates the set of values for SwiftPasswordLifecycleStateEnum +func GetSwiftPasswordLifecycleStateEnumValues() []SwiftPasswordLifecycleStateEnum { + values := make([]SwiftPasswordLifecycleStateEnum, 0) + for _, v := range mappingSwiftPasswordLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetSwiftPasswordLifecycleStateEnumStringValues Enumerates the set of values in String for SwiftPasswordLifecycleStateEnum +func GetSwiftPasswordLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingSwiftPasswordLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSwiftPasswordLifecycleStateEnum(val string) (SwiftPasswordLifecycleStateEnum, bool) { + enum, ok := mappingSwiftPasswordLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/tag.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go index 0ac081625f..3cf9094d21 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tag.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Tag A tag definition that belongs to a specific tag namespace. "Defined tags" must be set up in your tenancy before @@ -41,7 +43,7 @@ type Tag struct { Description *string `mandatory:"true" json:"description"` // Indicates whether the tag is retired. - // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). IsRetired *bool `mandatory:"true" json:"isRetired"` // Date and time the tag was created, in the format defined by RFC3339. @@ -71,6 +73,21 @@ func (m Tag) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Tag) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTagLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *Tag) UnmarshalJSON(data []byte) (e error) { model := struct { @@ -142,18 +159,41 @@ const ( TagLifecycleStateDeleted TagLifecycleStateEnum = "DELETED" ) -var mappingTagLifecycleState = map[string]TagLifecycleStateEnum{ +var mappingTagLifecycleStateEnum = map[string]TagLifecycleStateEnum{ "ACTIVE": TagLifecycleStateActive, "INACTIVE": TagLifecycleStateInactive, "DELETING": TagLifecycleStateDeleting, "DELETED": TagLifecycleStateDeleted, } +var mappingTagLifecycleStateEnumLowerCase = map[string]TagLifecycleStateEnum{ + "active": TagLifecycleStateActive, + "inactive": TagLifecycleStateInactive, + "deleting": TagLifecycleStateDeleting, + "deleted": TagLifecycleStateDeleted, +} + // GetTagLifecycleStateEnumValues Enumerates the set of values for TagLifecycleStateEnum func GetTagLifecycleStateEnumValues() []TagLifecycleStateEnum { values := make([]TagLifecycleStateEnum, 0) - for _, v := range mappingTagLifecycleState { + for _, v := range mappingTagLifecycleStateEnum { values = append(values, v) } return values } + +// GetTagLifecycleStateEnumStringValues Enumerates the set of values in String for TagLifecycleStateEnum +func GetTagLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingTagLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTagLifecycleStateEnum(val string) (TagLifecycleStateEnum, bool) { + enum, ok := mappingTagLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go new file mode 100644 index 0000000000..27585fde28 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default.go @@ -0,0 +1,122 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TagDefault Tag defaults let you specify a default tag (tagnamespace.tag="value") to apply to all resource types +// in a specified compartment. The tag default is applied at the time the resource is created. Resources +// that exist in the compartment before you create the tag default are not tagged. The `TagDefault` object +// specifies the tag and compartment details. +// Tag defaults are inherited by child compartments. This means that if you set a tag default on the root compartment +// for a tenancy, all resources that are created in the tenancy are tagged. For more information about +// using tag defaults, see Managing Tag Defaults (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagdefaults.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. +type TagDefault struct { + + // The OCID of the tag default. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment. The tag default applies to all new resources that get created in the + // compartment. Resources that existed before the tag default was created are not tagged. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the tag namespace that contains the tag definition. + TagNamespaceId *string `mandatory:"true" json:"tagNamespaceId"` + + // The OCID of the tag definition. The tag default will always assign a default value for this tag definition. + TagDefinitionId *string `mandatory:"true" json:"tagDefinitionId"` + + // The name used in the tag definition. This field is informational in the context of the tag default. + TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"` + + // The default value for the tag definition. This will be applied to all resources created in the compartment. + Value *string `mandatory:"true" json:"value"` + + // Date and time the `TagDefault` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // If you specify that a value is required, a value is set during resource creation (either by the + // user creating the resource or another tag defualt). If no value is set, resource creation is + // blocked. + // * If the `isRequired` flag is set to "true", the value is set during resource creation. + // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. + // Example: `false` + IsRequired *bool `mandatory:"true" json:"isRequired"` + + // The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it. + LifecycleState TagDefaultLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Locks associated with this resource. + Locks []ResourceLock `mandatory:"false" json:"locks"` +} + +func (m TagDefault) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TagDefault) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTagDefaultLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagDefaultLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TagDefaultLifecycleStateEnum Enum with underlying type: string +type TagDefaultLifecycleStateEnum string + +// Set of constants representing the allowable values for TagDefaultLifecycleStateEnum +const ( + TagDefaultLifecycleStateActive TagDefaultLifecycleStateEnum = "ACTIVE" +) + +var mappingTagDefaultLifecycleStateEnum = map[string]TagDefaultLifecycleStateEnum{ + "ACTIVE": TagDefaultLifecycleStateActive, +} + +var mappingTagDefaultLifecycleStateEnumLowerCase = map[string]TagDefaultLifecycleStateEnum{ + "active": TagDefaultLifecycleStateActive, +} + +// GetTagDefaultLifecycleStateEnumValues Enumerates the set of values for TagDefaultLifecycleStateEnum +func GetTagDefaultLifecycleStateEnumValues() []TagDefaultLifecycleStateEnum { + values := make([]TagDefaultLifecycleStateEnum, 0) + for _, v := range mappingTagDefaultLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetTagDefaultLifecycleStateEnumStringValues Enumerates the set of values in String for TagDefaultLifecycleStateEnum +func GetTagDefaultLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + } +} + +// GetMappingTagDefaultLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTagDefaultLifecycleStateEnum(val string) (TagDefaultLifecycleStateEnum, bool) { + enum, ok := mappingTagDefaultLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go new file mode 100644 index 0000000000..84470ea3e7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_default_summary.go @@ -0,0 +1,113 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TagDefaultSummary Summary information for the specified tag default. +type TagDefaultSummary struct { + + // The OCID of the tag default. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment. The tag default will apply to all new resources that are created in the compartment. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the tag namespace that contains the tag definition. + TagNamespaceId *string `mandatory:"true" json:"tagNamespaceId"` + + // The OCID of the tag definition. The tag default will always assign a default value for this tag definition. + TagDefinitionId *string `mandatory:"true" json:"tagDefinitionId"` + + // The name used in the tag definition. This field is informational in the context of the tag default. + TagDefinitionName *string `mandatory:"true" json:"tagDefinitionName"` + + // The default value for the tag definition. This will be applied to all new resources created in the compartment. + Value *string `mandatory:"true" json:"value"` + + // Date and time the `TagDefault` object was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // If you specify that a value is required, a value is set during resource creation (either by + // the user creating the resource or another tag defualt). If no value is set, resource + // creation is blocked. + // * If the `isRequired` flag is set to "true", the value is set during resource creation. + // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. + // Example: `false` + IsRequired *bool `mandatory:"true" json:"isRequired"` + + // The tag default's current state. After creating a `TagDefault`, make sure its `lifecycleState` is ACTIVE before using it. + LifecycleState TagDefaultSummaryLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Locks associated with this resource. + Locks []ResourceLock `mandatory:"false" json:"locks"` +} + +func (m TagDefaultSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TagDefaultSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTagDefaultSummaryLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagDefaultSummaryLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TagDefaultSummaryLifecycleStateEnum Enum with underlying type: string +type TagDefaultSummaryLifecycleStateEnum string + +// Set of constants representing the allowable values for TagDefaultSummaryLifecycleStateEnum +const ( + TagDefaultSummaryLifecycleStateActive TagDefaultSummaryLifecycleStateEnum = "ACTIVE" +) + +var mappingTagDefaultSummaryLifecycleStateEnum = map[string]TagDefaultSummaryLifecycleStateEnum{ + "ACTIVE": TagDefaultSummaryLifecycleStateActive, +} + +var mappingTagDefaultSummaryLifecycleStateEnumLowerCase = map[string]TagDefaultSummaryLifecycleStateEnum{ + "active": TagDefaultSummaryLifecycleStateActive, +} + +// GetTagDefaultSummaryLifecycleStateEnumValues Enumerates the set of values for TagDefaultSummaryLifecycleStateEnum +func GetTagDefaultSummaryLifecycleStateEnumValues() []TagDefaultSummaryLifecycleStateEnum { + values := make([]TagDefaultSummaryLifecycleStateEnum, 0) + for _, v := range mappingTagDefaultSummaryLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetTagDefaultSummaryLifecycleStateEnumStringValues Enumerates the set of values in String for TagDefaultSummaryLifecycleStateEnum +func GetTagDefaultSummaryLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + } +} + +// GetMappingTagDefaultSummaryLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTagDefaultSummaryLifecycleStateEnum(val string) (TagDefaultSummaryLifecycleStateEnum, bool) { + enum, ok := mappingTagDefaultSummaryLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go new file mode 100644 index 0000000000..e2c27bdb54 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace.go @@ -0,0 +1,128 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TagNamespace A managed container for defined tags. A tag namespace is unique in a tenancy. For more information, +// see Managing Tags and Tag Namespaces (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values +// using the API. +type TagNamespace struct { + + // The OCID of the tag namespace. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment that contains the tag namespace. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the tag namespace. + Description *string `mandatory:"true" json:"description"` + + // Whether the tag namespace is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). + IsRetired *bool `mandatory:"true" json:"isRetired"` + + // Date and time the tagNamespace was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The tagnamespace's current state. After creating a tagnamespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tagnamespace, make sure its `lifecycleState` is INACTIVE before using it. + LifecycleState TagNamespaceLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Locks associated with this resource. + Locks []ResourceLock `mandatory:"false" json:"locks"` +} + +func (m TagNamespace) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TagNamespace) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTagNamespaceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagNamespaceLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TagNamespaceLifecycleStateEnum Enum with underlying type: string +type TagNamespaceLifecycleStateEnum string + +// Set of constants representing the allowable values for TagNamespaceLifecycleStateEnum +const ( + TagNamespaceLifecycleStateActive TagNamespaceLifecycleStateEnum = "ACTIVE" + TagNamespaceLifecycleStateInactive TagNamespaceLifecycleStateEnum = "INACTIVE" + TagNamespaceLifecycleStateDeleting TagNamespaceLifecycleStateEnum = "DELETING" + TagNamespaceLifecycleStateDeleted TagNamespaceLifecycleStateEnum = "DELETED" +) + +var mappingTagNamespaceLifecycleStateEnum = map[string]TagNamespaceLifecycleStateEnum{ + "ACTIVE": TagNamespaceLifecycleStateActive, + "INACTIVE": TagNamespaceLifecycleStateInactive, + "DELETING": TagNamespaceLifecycleStateDeleting, + "DELETED": TagNamespaceLifecycleStateDeleted, +} + +var mappingTagNamespaceLifecycleStateEnumLowerCase = map[string]TagNamespaceLifecycleStateEnum{ + "active": TagNamespaceLifecycleStateActive, + "inactive": TagNamespaceLifecycleStateInactive, + "deleting": TagNamespaceLifecycleStateDeleting, + "deleted": TagNamespaceLifecycleStateDeleted, +} + +// GetTagNamespaceLifecycleStateEnumValues Enumerates the set of values for TagNamespaceLifecycleStateEnum +func GetTagNamespaceLifecycleStateEnumValues() []TagNamespaceLifecycleStateEnum { + values := make([]TagNamespaceLifecycleStateEnum, 0) + for _, v := range mappingTagNamespaceLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetTagNamespaceLifecycleStateEnumStringValues Enumerates the set of values in String for TagNamespaceLifecycleStateEnum +func GetTagNamespaceLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingTagNamespaceLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTagNamespaceLifecycleStateEnum(val string) (TagNamespaceLifecycleStateEnum, bool) { + enum, ok := mappingTagNamespaceLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go new file mode 100644 index 0000000000..5d0fb10b3a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_namespace_summary.go @@ -0,0 +1,75 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TagNamespaceSummary A container for defined tags. +type TagNamespaceSummary struct { + + // The OCID of the tag namespace. + Id *string `mandatory:"false" json:"id"` + + // The OCID of the compartment that contains the tag namespace. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The name of the tag namespace. It must be unique across all tag namespaces in the tenancy and cannot be changed. + Name *string `mandatory:"false" json:"name"` + + // The description you assign to the tag namespace. + Description *string `mandatory:"false" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Whether the tag namespace is retired. + // For more information, see Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // The tagnamespace's current state. After creating a tagnamespace, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tagnamespace, make sure its `lifecycleState` is INACTIVE before using it. + LifecycleState TagNamespaceLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Date and time the tag namespace was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Locks associated with this resource. + Locks []ResourceLock `mandatory:"false" json:"locks"` +} + +func (m TagNamespaceSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TagNamespaceSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTagNamespaceLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagNamespaceLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_rule.go new file mode 100644 index 0000000000..1e02df8824 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_rule.go @@ -0,0 +1,134 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TagRule A document that specifies one or more actions on tag key(s) and/or value(s) for one or more resource types in a +// compartment. +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. +type TagRule struct { + + // The OCID of the tag rule. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment containing the tag rule (either the tenancy or another compartment). + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the tag rule during creation. The name must be unique across all tag rules + // in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // A statement that is written in the tag rule language. + RuleText *string `mandatory:"true" json:"ruleText"` + + // Date and time the tag rule was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The current state of the tag rule. After creating a tag rule, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState TagRuleLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user + // is inactive: + // - bit 0: SUSPENDED (reserved for future use) + // - bit 1: DISABLED (reserved for future use) + // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m TagRule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TagRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTagRuleLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagRuleLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TagRuleLifecycleStateEnum Enum with underlying type: string +type TagRuleLifecycleStateEnum string + +// Set of constants representing the allowable values for TagRuleLifecycleStateEnum +const ( + TagRuleLifecycleStateCreating TagRuleLifecycleStateEnum = "CREATING" + TagRuleLifecycleStateActive TagRuleLifecycleStateEnum = "ACTIVE" + TagRuleLifecycleStateInactive TagRuleLifecycleStateEnum = "INACTIVE" + TagRuleLifecycleStateDeleting TagRuleLifecycleStateEnum = "DELETING" + TagRuleLifecycleStateDeleted TagRuleLifecycleStateEnum = "DELETED" +) + +var mappingTagRuleLifecycleStateEnum = map[string]TagRuleLifecycleStateEnum{ + "CREATING": TagRuleLifecycleStateCreating, + "ACTIVE": TagRuleLifecycleStateActive, + "INACTIVE": TagRuleLifecycleStateInactive, + "DELETING": TagRuleLifecycleStateDeleting, + "DELETED": TagRuleLifecycleStateDeleted, +} + +var mappingTagRuleLifecycleStateEnumLowerCase = map[string]TagRuleLifecycleStateEnum{ + "creating": TagRuleLifecycleStateCreating, + "active": TagRuleLifecycleStateActive, + "inactive": TagRuleLifecycleStateInactive, + "deleting": TagRuleLifecycleStateDeleting, + "deleted": TagRuleLifecycleStateDeleted, +} + +// GetTagRuleLifecycleStateEnumValues Enumerates the set of values for TagRuleLifecycleStateEnum +func GetTagRuleLifecycleStateEnumValues() []TagRuleLifecycleStateEnum { + values := make([]TagRuleLifecycleStateEnum, 0) + for _, v := range mappingTagRuleLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetTagRuleLifecycleStateEnumStringValues Enumerates the set of values in String for TagRuleLifecycleStateEnum +func GetTagRuleLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingTagRuleLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTagRuleLifecycleStateEnum(val string) (TagRuleLifecycleStateEnum, bool) { + enum, ok := mappingTagRuleLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go new file mode 100644 index 0000000000..25eca6a33e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tag_summary.go @@ -0,0 +1,76 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TagSummary A tag definition that belongs to a specific tag namespace. +type TagSummary struct { + + // The OCID of the compartment that contains the tag definition. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The OCID of the tag definition. + Id *string `mandatory:"false" json:"id"` + + // The name assigned to the tag during creation. This is the tag key definition. + // The name must be unique within the tag namespace and cannot be changed. + Name *string `mandatory:"false" json:"name"` + + // The description you assign to the tag. + Description *string `mandatory:"false" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // Whether the tag is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // The tag's current state. After creating a tag, make sure its `lifecycleState` is ACTIVE before using it. After retiring a tag, make sure its `lifecycleState` is INACTIVE before using it. If you delete a tag, you cannot delete another tag until the deleted tag's `lifecycleState` changes from DELETING to DELETED. + LifecycleState TagLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // Date and time the tag was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // Indicates whether the tag is enabled for cost tracking. + IsCostTracking *bool `mandatory:"false" json:"isCostTracking"` +} + +func (m TagSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TagSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingTagLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetTagLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go new file mode 100644 index 0000000000..830fef0eda --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request.go @@ -0,0 +1,189 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TaggingWorkRequest The asynchronous API request does not take effect immediately. This request spawns an asynchronous +// workflow to fulfill the request. WorkRequest objects provide visibility for in-progress workflows. +type TaggingWorkRequest struct { + + // The OCID of the work request. + Id *string `mandatory:"true" json:"id"` + + // An enum-like description of the type of work the work request is doing. + OperationType TaggingWorkRequestOperationTypeEnum `mandatory:"true" json:"operationType"` + + // The current status of the work request. + Status TaggingWorkRequestStatusEnum `mandatory:"true" json:"status"` + + // The OCID of the compartment that contains the work request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // Date and time the work was accepted, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // Date and time the work started, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // Date and time the work completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // How much progress the operation has made. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` +} + +func (m TaggingWorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TaggingWorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTaggingWorkRequestOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetTaggingWorkRequestOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingTaggingWorkRequestStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetTaggingWorkRequestStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TaggingWorkRequestOperationTypeEnum Enum with underlying type: string +type TaggingWorkRequestOperationTypeEnum string + +// Set of constants representing the allowable values for TaggingWorkRequestOperationTypeEnum +const ( + TaggingWorkRequestOperationTypeDeleteTagDefinition TaggingWorkRequestOperationTypeEnum = "DELETE_TAG_DEFINITION" + TaggingWorkRequestOperationTypeDeleteNonEmptyTagNamespace TaggingWorkRequestOperationTypeEnum = "DELETE_NON_EMPTY_TAG_NAMESPACE" + TaggingWorkRequestOperationTypeBulkDeleteTagDefinition TaggingWorkRequestOperationTypeEnum = "BULK_DELETE_TAG_DEFINITION" + TaggingWorkRequestOperationTypeBulkEditOfTags TaggingWorkRequestOperationTypeEnum = "BULK_EDIT_OF_TAGS" + TaggingWorkRequestOperationTypeImportStandardTags TaggingWorkRequestOperationTypeEnum = "IMPORT_STANDARD_TAGS" +) + +var mappingTaggingWorkRequestOperationTypeEnum = map[string]TaggingWorkRequestOperationTypeEnum{ + "DELETE_TAG_DEFINITION": TaggingWorkRequestOperationTypeDeleteTagDefinition, + "DELETE_NON_EMPTY_TAG_NAMESPACE": TaggingWorkRequestOperationTypeDeleteNonEmptyTagNamespace, + "BULK_DELETE_TAG_DEFINITION": TaggingWorkRequestOperationTypeBulkDeleteTagDefinition, + "BULK_EDIT_OF_TAGS": TaggingWorkRequestOperationTypeBulkEditOfTags, + "IMPORT_STANDARD_TAGS": TaggingWorkRequestOperationTypeImportStandardTags, +} + +var mappingTaggingWorkRequestOperationTypeEnumLowerCase = map[string]TaggingWorkRequestOperationTypeEnum{ + "delete_tag_definition": TaggingWorkRequestOperationTypeDeleteTagDefinition, + "delete_non_empty_tag_namespace": TaggingWorkRequestOperationTypeDeleteNonEmptyTagNamespace, + "bulk_delete_tag_definition": TaggingWorkRequestOperationTypeBulkDeleteTagDefinition, + "bulk_edit_of_tags": TaggingWorkRequestOperationTypeBulkEditOfTags, + "import_standard_tags": TaggingWorkRequestOperationTypeImportStandardTags, +} + +// GetTaggingWorkRequestOperationTypeEnumValues Enumerates the set of values for TaggingWorkRequestOperationTypeEnum +func GetTaggingWorkRequestOperationTypeEnumValues() []TaggingWorkRequestOperationTypeEnum { + values := make([]TaggingWorkRequestOperationTypeEnum, 0) + for _, v := range mappingTaggingWorkRequestOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetTaggingWorkRequestOperationTypeEnumStringValues Enumerates the set of values in String for TaggingWorkRequestOperationTypeEnum +func GetTaggingWorkRequestOperationTypeEnumStringValues() []string { + return []string{ + "DELETE_TAG_DEFINITION", + "DELETE_NON_EMPTY_TAG_NAMESPACE", + "BULK_DELETE_TAG_DEFINITION", + "BULK_EDIT_OF_TAGS", + "IMPORT_STANDARD_TAGS", + } +} + +// GetMappingTaggingWorkRequestOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTaggingWorkRequestOperationTypeEnum(val string) (TaggingWorkRequestOperationTypeEnum, bool) { + enum, ok := mappingTaggingWorkRequestOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// TaggingWorkRequestStatusEnum Enum with underlying type: string +type TaggingWorkRequestStatusEnum string + +// Set of constants representing the allowable values for TaggingWorkRequestStatusEnum +const ( + TaggingWorkRequestStatusAccepted TaggingWorkRequestStatusEnum = "ACCEPTED" + TaggingWorkRequestStatusInProgress TaggingWorkRequestStatusEnum = "IN_PROGRESS" + TaggingWorkRequestStatusFailed TaggingWorkRequestStatusEnum = "FAILED" + TaggingWorkRequestStatusSucceeded TaggingWorkRequestStatusEnum = "SUCCEEDED" + TaggingWorkRequestStatusPartiallySucceeded TaggingWorkRequestStatusEnum = "PARTIALLY_SUCCEEDED" + TaggingWorkRequestStatusCanceling TaggingWorkRequestStatusEnum = "CANCELING" + TaggingWorkRequestStatusCanceled TaggingWorkRequestStatusEnum = "CANCELED" +) + +var mappingTaggingWorkRequestStatusEnum = map[string]TaggingWorkRequestStatusEnum{ + "ACCEPTED": TaggingWorkRequestStatusAccepted, + "IN_PROGRESS": TaggingWorkRequestStatusInProgress, + "FAILED": TaggingWorkRequestStatusFailed, + "SUCCEEDED": TaggingWorkRequestStatusSucceeded, + "PARTIALLY_SUCCEEDED": TaggingWorkRequestStatusPartiallySucceeded, + "CANCELING": TaggingWorkRequestStatusCanceling, + "CANCELED": TaggingWorkRequestStatusCanceled, +} + +var mappingTaggingWorkRequestStatusEnumLowerCase = map[string]TaggingWorkRequestStatusEnum{ + "accepted": TaggingWorkRequestStatusAccepted, + "in_progress": TaggingWorkRequestStatusInProgress, + "failed": TaggingWorkRequestStatusFailed, + "succeeded": TaggingWorkRequestStatusSucceeded, + "partially_succeeded": TaggingWorkRequestStatusPartiallySucceeded, + "canceling": TaggingWorkRequestStatusCanceling, + "canceled": TaggingWorkRequestStatusCanceled, +} + +// GetTaggingWorkRequestStatusEnumValues Enumerates the set of values for TaggingWorkRequestStatusEnum +func GetTaggingWorkRequestStatusEnumValues() []TaggingWorkRequestStatusEnum { + values := make([]TaggingWorkRequestStatusEnum, 0) + for _, v := range mappingTaggingWorkRequestStatusEnum { + values = append(values, v) + } + return values +} + +// GetTaggingWorkRequestStatusEnumStringValues Enumerates the set of values in String for TaggingWorkRequestStatusEnum +func GetTaggingWorkRequestStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "PARTIALLY_SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingTaggingWorkRequestStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTaggingWorkRequestStatusEnum(val string) (TaggingWorkRequestStatusEnum, bool) { + enum, ok := mappingTaggingWorkRequestStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go new file mode 100644 index 0000000000..9b58e66764 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_error_summary.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TaggingWorkRequestErrorSummary The error entity. +type TaggingWorkRequestErrorSummary struct { + + // A machine-usable code for the error that occured. + Code *string `mandatory:"true" json:"code"` + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // Date and time the error happened, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m TaggingWorkRequestErrorSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TaggingWorkRequestErrorSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go new file mode 100644 index 0000000000..3e4e9eb26e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_log_summary.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TaggingWorkRequestLogSummary The log entity. +type TaggingWorkRequestLogSummary struct { + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // Date and time the log was written, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m TaggingWorkRequestLogSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TaggingWorkRequestLogSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go new file mode 100644 index 0000000000..c81fd73b7e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tagging_work_request_summary.go @@ -0,0 +1,188 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// TaggingWorkRequestSummary The work request summary. Tracks the status of the asynchronous operation. +type TaggingWorkRequestSummary struct { + + // The OCID of the work request. + Id *string `mandatory:"true" json:"id"` + + // An enum-like description of the type of work the work request is doing. + OperationType TaggingWorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"` + + // The current status of the work request. + Status TaggingWorkRequestSummaryStatusEnum `mandatory:"true" json:"status"` + + // The OCID of the compartment that contains the work request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // Date and time the work was accepted, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // Date and time the work started, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // Date and time the work completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // How much progress the operation has made. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` +} + +func (m TaggingWorkRequestSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m TaggingWorkRequestSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingTaggingWorkRequestSummaryOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetTaggingWorkRequestSummaryOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingTaggingWorkRequestSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetTaggingWorkRequestSummaryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// TaggingWorkRequestSummaryOperationTypeEnum Enum with underlying type: string +type TaggingWorkRequestSummaryOperationTypeEnum string + +// Set of constants representing the allowable values for TaggingWorkRequestSummaryOperationTypeEnum +const ( + TaggingWorkRequestSummaryOperationTypeDeleteTagDefinition TaggingWorkRequestSummaryOperationTypeEnum = "DELETE_TAG_DEFINITION" + TaggingWorkRequestSummaryOperationTypeDeleteNonEmptyTagNamespace TaggingWorkRequestSummaryOperationTypeEnum = "DELETE_NON_EMPTY_TAG_NAMESPACE" + TaggingWorkRequestSummaryOperationTypeBulkDeleteTagDefinition TaggingWorkRequestSummaryOperationTypeEnum = "BULK_DELETE_TAG_DEFINITION" + TaggingWorkRequestSummaryOperationTypeBulkEditOfTags TaggingWorkRequestSummaryOperationTypeEnum = "BULK_EDIT_OF_TAGS" + TaggingWorkRequestSummaryOperationTypeImportStandardTags TaggingWorkRequestSummaryOperationTypeEnum = "IMPORT_STANDARD_TAGS" +) + +var mappingTaggingWorkRequestSummaryOperationTypeEnum = map[string]TaggingWorkRequestSummaryOperationTypeEnum{ + "DELETE_TAG_DEFINITION": TaggingWorkRequestSummaryOperationTypeDeleteTagDefinition, + "DELETE_NON_EMPTY_TAG_NAMESPACE": TaggingWorkRequestSummaryOperationTypeDeleteNonEmptyTagNamespace, + "BULK_DELETE_TAG_DEFINITION": TaggingWorkRequestSummaryOperationTypeBulkDeleteTagDefinition, + "BULK_EDIT_OF_TAGS": TaggingWorkRequestSummaryOperationTypeBulkEditOfTags, + "IMPORT_STANDARD_TAGS": TaggingWorkRequestSummaryOperationTypeImportStandardTags, +} + +var mappingTaggingWorkRequestSummaryOperationTypeEnumLowerCase = map[string]TaggingWorkRequestSummaryOperationTypeEnum{ + "delete_tag_definition": TaggingWorkRequestSummaryOperationTypeDeleteTagDefinition, + "delete_non_empty_tag_namespace": TaggingWorkRequestSummaryOperationTypeDeleteNonEmptyTagNamespace, + "bulk_delete_tag_definition": TaggingWorkRequestSummaryOperationTypeBulkDeleteTagDefinition, + "bulk_edit_of_tags": TaggingWorkRequestSummaryOperationTypeBulkEditOfTags, + "import_standard_tags": TaggingWorkRequestSummaryOperationTypeImportStandardTags, +} + +// GetTaggingWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for TaggingWorkRequestSummaryOperationTypeEnum +func GetTaggingWorkRequestSummaryOperationTypeEnumValues() []TaggingWorkRequestSummaryOperationTypeEnum { + values := make([]TaggingWorkRequestSummaryOperationTypeEnum, 0) + for _, v := range mappingTaggingWorkRequestSummaryOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetTaggingWorkRequestSummaryOperationTypeEnumStringValues Enumerates the set of values in String for TaggingWorkRequestSummaryOperationTypeEnum +func GetTaggingWorkRequestSummaryOperationTypeEnumStringValues() []string { + return []string{ + "DELETE_TAG_DEFINITION", + "DELETE_NON_EMPTY_TAG_NAMESPACE", + "BULK_DELETE_TAG_DEFINITION", + "BULK_EDIT_OF_TAGS", + "IMPORT_STANDARD_TAGS", + } +} + +// GetMappingTaggingWorkRequestSummaryOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTaggingWorkRequestSummaryOperationTypeEnum(val string) (TaggingWorkRequestSummaryOperationTypeEnum, bool) { + enum, ok := mappingTaggingWorkRequestSummaryOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// TaggingWorkRequestSummaryStatusEnum Enum with underlying type: string +type TaggingWorkRequestSummaryStatusEnum string + +// Set of constants representing the allowable values for TaggingWorkRequestSummaryStatusEnum +const ( + TaggingWorkRequestSummaryStatusAccepted TaggingWorkRequestSummaryStatusEnum = "ACCEPTED" + TaggingWorkRequestSummaryStatusInProgress TaggingWorkRequestSummaryStatusEnum = "IN_PROGRESS" + TaggingWorkRequestSummaryStatusFailed TaggingWorkRequestSummaryStatusEnum = "FAILED" + TaggingWorkRequestSummaryStatusSucceeded TaggingWorkRequestSummaryStatusEnum = "SUCCEEDED" + TaggingWorkRequestSummaryStatusPartiallySucceeded TaggingWorkRequestSummaryStatusEnum = "PARTIALLY_SUCCEEDED" + TaggingWorkRequestSummaryStatusCanceling TaggingWorkRequestSummaryStatusEnum = "CANCELING" + TaggingWorkRequestSummaryStatusCanceled TaggingWorkRequestSummaryStatusEnum = "CANCELED" +) + +var mappingTaggingWorkRequestSummaryStatusEnum = map[string]TaggingWorkRequestSummaryStatusEnum{ + "ACCEPTED": TaggingWorkRequestSummaryStatusAccepted, + "IN_PROGRESS": TaggingWorkRequestSummaryStatusInProgress, + "FAILED": TaggingWorkRequestSummaryStatusFailed, + "SUCCEEDED": TaggingWorkRequestSummaryStatusSucceeded, + "PARTIALLY_SUCCEEDED": TaggingWorkRequestSummaryStatusPartiallySucceeded, + "CANCELING": TaggingWorkRequestSummaryStatusCanceling, + "CANCELED": TaggingWorkRequestSummaryStatusCanceled, +} + +var mappingTaggingWorkRequestSummaryStatusEnumLowerCase = map[string]TaggingWorkRequestSummaryStatusEnum{ + "accepted": TaggingWorkRequestSummaryStatusAccepted, + "in_progress": TaggingWorkRequestSummaryStatusInProgress, + "failed": TaggingWorkRequestSummaryStatusFailed, + "succeeded": TaggingWorkRequestSummaryStatusSucceeded, + "partially_succeeded": TaggingWorkRequestSummaryStatusPartiallySucceeded, + "canceling": TaggingWorkRequestSummaryStatusCanceling, + "canceled": TaggingWorkRequestSummaryStatusCanceled, +} + +// GetTaggingWorkRequestSummaryStatusEnumValues Enumerates the set of values for TaggingWorkRequestSummaryStatusEnum +func GetTaggingWorkRequestSummaryStatusEnumValues() []TaggingWorkRequestSummaryStatusEnum { + values := make([]TaggingWorkRequestSummaryStatusEnum, 0) + for _, v := range mappingTaggingWorkRequestSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetTaggingWorkRequestSummaryStatusEnumStringValues Enumerates the set of values in String for TaggingWorkRequestSummaryStatusEnum +func GetTaggingWorkRequestSummaryStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "PARTIALLY_SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingTaggingWorkRequestSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingTaggingWorkRequestSummaryStatusEnum(val string) (TaggingWorkRequestSummaryStatusEnum, bool) { + enum, ok := mappingTaggingWorkRequestSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tenancy.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/tenancy.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go index 8b673c2bb2..3c3895ba5c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/tenancy.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/tenancy.go @@ -1,16 +1,18 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Tenancy The root compartment that contains all of your organization's compartments and other @@ -19,7 +21,7 @@ import ( // where you can create, organize, and administer your cloud resources. // To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, // talk to an administrator. If you're an administrator who needs to write policies to give users access, -// see Getting Started with Policies (https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm). +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). type Tenancy struct { // The OCID of the tenancy. @@ -56,3 +58,15 @@ type Tenancy struct { func (m Tenancy) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Tenancy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go new file mode 100644 index 0000000000..ccc1428a56 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UiPassword A text password that enables a user to sign in to the Console, the user interface for interacting with Oracle +// Cloud Infrastructure. +// For more information about user credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/usercred/usercredentials.htm). +type UiPassword struct { + + // The user's password for the Console. + Password *string `mandatory:"false" json:"password"` + + // The OCID of the user. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time the password was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The password's current state. After creating a password, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState UiPasswordLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m UiPassword) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UiPassword) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUiPasswordLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetUiPasswordLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UiPasswordLifecycleStateEnum Enum with underlying type: string +type UiPasswordLifecycleStateEnum string + +// Set of constants representing the allowable values for UiPasswordLifecycleStateEnum +const ( + UiPasswordLifecycleStateCreating UiPasswordLifecycleStateEnum = "CREATING" + UiPasswordLifecycleStateActive UiPasswordLifecycleStateEnum = "ACTIVE" + UiPasswordLifecycleStateInactive UiPasswordLifecycleStateEnum = "INACTIVE" + UiPasswordLifecycleStateDeleting UiPasswordLifecycleStateEnum = "DELETING" + UiPasswordLifecycleStateDeleted UiPasswordLifecycleStateEnum = "DELETED" +) + +var mappingUiPasswordLifecycleStateEnum = map[string]UiPasswordLifecycleStateEnum{ + "CREATING": UiPasswordLifecycleStateCreating, + "ACTIVE": UiPasswordLifecycleStateActive, + "INACTIVE": UiPasswordLifecycleStateInactive, + "DELETING": UiPasswordLifecycleStateDeleting, + "DELETED": UiPasswordLifecycleStateDeleted, +} + +var mappingUiPasswordLifecycleStateEnumLowerCase = map[string]UiPasswordLifecycleStateEnum{ + "creating": UiPasswordLifecycleStateCreating, + "active": UiPasswordLifecycleStateActive, + "inactive": UiPasswordLifecycleStateInactive, + "deleting": UiPasswordLifecycleStateDeleting, + "deleted": UiPasswordLifecycleStateDeleted, +} + +// GetUiPasswordLifecycleStateEnumValues Enumerates the set of values for UiPasswordLifecycleStateEnum +func GetUiPasswordLifecycleStateEnumValues() []UiPasswordLifecycleStateEnum { + values := make([]UiPasswordLifecycleStateEnum, 0) + for _, v := range mappingUiPasswordLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUiPasswordLifecycleStateEnumStringValues Enumerates the set of values in String for UiPasswordLifecycleStateEnum +func GetUiPasswordLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingUiPasswordLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUiPasswordLifecycleStateEnum(val string) (UiPasswordLifecycleStateEnum, bool) { + enum, ok := mappingUiPasswordLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go new file mode 100644 index 0000000000..ecbc69b744 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/ui_password_information.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UiPasswordInformation Information about the UIPassword, which is a text password that enables a user to sign in to the Console, +// the user interface for interacting with Oracle Cloud Infrastructure. +// For more information about user credentials, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/Concepts/usercredentials.htm). +type UiPasswordInformation struct { + + // The OCID of the user. + UserId *string `mandatory:"false" json:"userId"` + + // Date and time the password was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The password's current state. After creating a password, make sure its `lifecycleState` changes from + // CREATING to ACTIVE before using it. + LifecycleState UiPasswordInformationLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` +} + +func (m UiPasswordInformation) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UiPasswordInformation) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUiPasswordInformationLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetUiPasswordInformationLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UiPasswordInformationLifecycleStateEnum Enum with underlying type: string +type UiPasswordInformationLifecycleStateEnum string + +// Set of constants representing the allowable values for UiPasswordInformationLifecycleStateEnum +const ( + UiPasswordInformationLifecycleStateCreating UiPasswordInformationLifecycleStateEnum = "CREATING" + UiPasswordInformationLifecycleStateActive UiPasswordInformationLifecycleStateEnum = "ACTIVE" + UiPasswordInformationLifecycleStateInactive UiPasswordInformationLifecycleStateEnum = "INACTIVE" + UiPasswordInformationLifecycleStateDeleting UiPasswordInformationLifecycleStateEnum = "DELETING" + UiPasswordInformationLifecycleStateDeleted UiPasswordInformationLifecycleStateEnum = "DELETED" +) + +var mappingUiPasswordInformationLifecycleStateEnum = map[string]UiPasswordInformationLifecycleStateEnum{ + "CREATING": UiPasswordInformationLifecycleStateCreating, + "ACTIVE": UiPasswordInformationLifecycleStateActive, + "INACTIVE": UiPasswordInformationLifecycleStateInactive, + "DELETING": UiPasswordInformationLifecycleStateDeleting, + "DELETED": UiPasswordInformationLifecycleStateDeleted, +} + +var mappingUiPasswordInformationLifecycleStateEnumLowerCase = map[string]UiPasswordInformationLifecycleStateEnum{ + "creating": UiPasswordInformationLifecycleStateCreating, + "active": UiPasswordInformationLifecycleStateActive, + "inactive": UiPasswordInformationLifecycleStateInactive, + "deleting": UiPasswordInformationLifecycleStateDeleting, + "deleted": UiPasswordInformationLifecycleStateDeleted, +} + +// GetUiPasswordInformationLifecycleStateEnumValues Enumerates the set of values for UiPasswordInformationLifecycleStateEnum +func GetUiPasswordInformationLifecycleStateEnumValues() []UiPasswordInformationLifecycleStateEnum { + values := make([]UiPasswordInformationLifecycleStateEnum, 0) + for _, v := range mappingUiPasswordInformationLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUiPasswordInformationLifecycleStateEnumStringValues Enumerates the set of values in String for UiPasswordInformationLifecycleStateEnum +func GetUiPasswordInformationLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingUiPasswordInformationLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUiPasswordInformationLifecycleStateEnum(val string) (UiPasswordInformationLifecycleStateEnum, bool) { + enum, ok := mappingUiPasswordInformationLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_details.go new file mode 100644 index 0000000000..943f8f7159 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnsetGovernanceFromChildDetails The representation of UnsetGovernanceFromChildDetails +type UnsetGovernanceFromChildDetails struct { + + // The ocid of the governing tenancy, also known as the parent tenancy in governing relationship. + ParentTenancyId *string `mandatory:"false" json:"parentTenancyId"` +} + +func (m UnsetGovernanceFromChildDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UnsetGovernanceFromChildDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_request_response.go new file mode 100644 index 0000000000..1ceae63db3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_child_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UnsetGovernanceFromChildRequest wrapper for the UnsetGovernanceFromChild operation +type UnsetGovernanceFromChildRequest struct { + + // The OCID of the child tenancy. + ChildTenancyId *string `mandatory:"true" contributesTo:"path" name:"childTenancyId"` + + // Request object for unsetting governance from child + UnsetGovernanceFromChildDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UnsetGovernanceFromChildRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UnsetGovernanceFromChildRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UnsetGovernanceFromChildRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UnsetGovernanceFromChildRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UnsetGovernanceFromChildRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnsetGovernanceFromChildResponse wrapper for the UnsetGovernanceFromChild operation +type UnsetGovernanceFromChildResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tenancy instance + Tenancy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UnsetGovernanceFromChildResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UnsetGovernanceFromChildResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_details.go new file mode 100644 index 0000000000..ef24a2e31b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UnsetGovernanceFromParentDetails The representation of UnsetGovernanceFromParentDetails +type UnsetGovernanceFromParentDetails struct { + + // The ocid of the governing tenancy, also known as the parent tenancy in governing relationship. + ParentTenancyId *string `mandatory:"false" json:"parentTenancyId"` +} + +func (m UnsetGovernanceFromParentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UnsetGovernanceFromParentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_request_response.go new file mode 100644 index 0000000000..da2911fbad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/unset_governance_from_parent_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UnsetGovernanceFromParentRequest wrapper for the UnsetGovernanceFromParent operation +type UnsetGovernanceFromParentRequest struct { + + // The OCID of the child tenancy. + ChildTenancyId *string `mandatory:"true" contributesTo:"path" name:"childTenancyId"` + + // Request object for unsetting governance from parent + UnsetGovernanceFromParentDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` + // parameter to the value of the etag from a previous GET or POST response for that resource. The resource + // will be updated or deleted only if the etag you provide matches the resource's current etag value. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Unique Oracle-assigned identifier for the request. + // If you need to contact Oracle about a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UnsetGovernanceFromParentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UnsetGovernanceFromParentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UnsetGovernanceFromParentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UnsetGovernanceFromParentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UnsetGovernanceFromParentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnsetGovernanceFromParentResponse wrapper for the UnsetGovernanceFromParent operation +type UnsetGovernanceFromParentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Tenancy instance + Tenancy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UnsetGovernanceFromParentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UnsetGovernanceFromParentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go new file mode 100644 index 0000000000..1507ccecb1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateAuthTokenDetails The representation of UpdateAuthTokenDetails +type UpdateAuthTokenDetails struct { + + // The description you assign to the auth token. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` +} + +func (m UpdateAuthTokenDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateAuthTokenDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go index 89ccf997c6..8cf605333f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_auth_token_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_auth_token_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateAuthTokenRequest wrapper for the UpdateAuthToken operation @@ -42,6 +44,10 @@ func (request UpdateAuthTokenRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateAuthTokenRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateAuthTokenRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateAuthTokenRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateAuthTokenResponse wrapper for the UpdateAuthToken operation type UpdateAuthTokenResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go new file mode 100644 index 0000000000..10d3f8cc91 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateAuthenticationPolicyDetails Update request for authentication policy, describes set of validation rules and their parameters to be updated. +type UpdateAuthenticationPolicyDetails struct { + PasswordPolicy *PasswordPolicy `mandatory:"false" json:"passwordPolicy"` + + NetworkPolicy *NetworkPolicy `mandatory:"false" json:"networkPolicy"` +} + +func (m UpdateAuthenticationPolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateAuthenticationPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go index 7d63879828..49956b3fde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_authentication_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_authentication_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateAuthenticationPolicyRequest wrapper for the UpdateAuthenticationPolicy operation @@ -39,6 +41,10 @@ func (request UpdateAuthenticationPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateAuthenticationPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateAuthenticationPolicyRequest) RetryPolicy() *common.RetryPoli return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateAuthenticationPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateAuthenticationPolicyResponse wrapper for the UpdateAuthenticationPolicy operation type UpdateAuthenticationPolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go new file mode 100644 index 0000000000..84eea493ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCompartmentDetails The representation of UpdateCompartmentDetails +type UpdateCompartmentDetails struct { + + // The description you assign to the compartment. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // The new name you assign to the compartment. The name must be unique across all compartments in the parent compartment. + // Avoid entering confidential information. + Name *string `mandatory:"false" json:"name"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the Security Zone to associate this compartment with. + // Leave value as empty string to dis-associate this compartment from any Security Zone. + SecurityZoneId *string `mandatory:"false" json:"securityZoneId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go index 4dee23bb0c..6d83b0922e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateCompartmentRequest wrapper for the UpdateCompartment operation @@ -39,6 +41,10 @@ func (request UpdateCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateCompartmentResponse wrapper for the UpdateCompartment operation type UpdateCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go new file mode 100644 index 0000000000..926d0f92bb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCustomerSecretKeyDetails The representation of UpdateCustomerSecretKeyDetails +type UpdateCustomerSecretKeyDetails struct { + + // The description you assign to the secret key. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + DisplayName *string `mandatory:"false" json:"displayName"` +} + +func (m UpdateCustomerSecretKeyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCustomerSecretKeyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_request_response.go index ba92e1bcf4..a7331e5c02 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_customer_secret_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_customer_secret_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateCustomerSecretKeyRequest wrapper for the UpdateCustomerSecretKey operation @@ -15,7 +17,7 @@ type UpdateCustomerSecretKeyRequest struct { // The OCID of the user. UserId *string `mandatory:"true" contributesTo:"path" name:"userId"` - // The OCID of the secret key. + // The access token of the secret key. CustomerSecretKeyId *string `mandatory:"true" contributesTo:"path" name:"customerSecretKeyId"` // Request object for updating a secret key. @@ -42,6 +44,10 @@ func (request UpdateCustomerSecretKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateCustomerSecretKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateCustomerSecretKeyRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCustomerSecretKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateCustomerSecretKeyResponse wrapper for the UpdateCustomerSecretKey operation type UpdateCustomerSecretKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go new file mode 100644 index 0000000000..f8824cf05a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDomainDetails (For tenancies that support identity domains) Update identity domain details. +type UpdateDomainDetails struct { + + // The identity domain description. You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // The mutable display name of the identity domain. + DisplayName *string `mandatory:"false" json:"displayName"` + + // Indicates whether the identity domain is hidden on the sign-in screen or not. + IsHiddenOnLogin *bool `mandatory:"false" json:"isHiddenOnLogin"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateDomainDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDomainDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go index cc03faa11f..22015cb801 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_domain_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_domain_request_response.go @@ -1,21 +1,23 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDomainRequest wrapper for the UpdateDomain operation type UpdateDomainRequest struct { - // The OCID of the domain + // The OCID of the identity domain. DomainId *string `mandatory:"true" contributesTo:"path" name:"domainId"` - // Request object for updating the Domain. + // Request object for updating the identity domain. UpdateDomainDetails `contributesTo:"body"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` @@ -39,6 +41,10 @@ func (request UpdateDomainRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDomainRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDomainRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDomainRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDomainResponse wrapper for the UpdateDomain operation type UpdateDomainResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go new file mode 100644 index 0000000000..dba36c900c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_details.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateDynamicGroupDetails Properties for updating a dynamic group. +type UpdateDynamicGroupDetails struct { + + // The description you assign to the dynamic group. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // The matching rule to dynamically match an instance certificate to this dynamic group. + // For rule syntax, see Managing Dynamic Groups (https://docs.cloud.oracle.com/Content/Identity/dynamicgroups/managingdynamicgroups.htm). + MatchingRule *string `mandatory:"false" json:"matchingRule"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateDynamicGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateDynamicGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go index 850577387a..baf99ebbc8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_dynamic_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_dynamic_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateDynamicGroupRequest wrapper for the UpdateDynamicGroup operation @@ -39,6 +41,10 @@ func (request UpdateDynamicGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateDynamicGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateDynamicGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateDynamicGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateDynamicGroupResponse wrapper for the UpdateDynamicGroup operation type UpdateDynamicGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go new file mode 100644 index 0000000000..fee3c8ebf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_details.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateGroupDetails The representation of UpdateGroupDetails +type UpdateGroupDetails struct { + + // The description you assign to the group. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateGroupDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateGroupDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go index 1678ecb03d..f14d6a6549 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_group_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_group_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateGroupRequest wrapper for the UpdateGroup operation @@ -39,6 +41,10 @@ func (request UpdateGroupRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateGroupRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateGroupRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateGroupRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateGroupResponse wrapper for the UpdateGroup operation type UpdateGroupResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go new file mode 100644 index 0000000000..40773723d6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_details.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIdentityProviderDetails The representation of UpdateIdentityProviderDetails +type UpdateIdentityProviderDetails interface { + + // The description you assign to the `IdentityProvider`. Does not have to + // be unique, and it's changeable. + GetDescription() *string + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + GetFreeformTags() map[string]string + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + GetDefinedTags() map[string]map[string]interface{} +} + +type updateidentityproviderdetails struct { + JsonData []byte + Description *string `mandatory:"false" json:"description"` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + Protocol string `json:"protocol"` +} + +// UnmarshalJSON unmarshals json +func (m *updateidentityproviderdetails) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerupdateidentityproviderdetails updateidentityproviderdetails + s := struct { + Model Unmarshalerupdateidentityproviderdetails + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Description = s.Model.Description + m.FreeformTags = s.Model.FreeformTags + m.DefinedTags = s.Model.DefinedTags + m.Protocol = s.Model.Protocol + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *updateidentityproviderdetails) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Protocol { + case "SAML2": + mm := UpdateSaml2IdentityProviderDetails{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for UpdateIdentityProviderDetails: %s.", m.Protocol) + return *m, nil + } +} + +//GetDescription returns Description +func (m updateidentityproviderdetails) GetDescription() *string { + return m.Description +} + +//GetFreeformTags returns FreeformTags +func (m updateidentityproviderdetails) GetFreeformTags() map[string]string { + return m.FreeformTags +} + +//GetDefinedTags returns DefinedTags +func (m updateidentityproviderdetails) GetDefinedTags() map[string]map[string]interface{} { + return m.DefinedTags +} + +func (m updateidentityproviderdetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m updateidentityproviderdetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateIdentityProviderDetailsProtocolEnum Enum with underlying type: string +type UpdateIdentityProviderDetailsProtocolEnum string + +// Set of constants representing the allowable values for UpdateIdentityProviderDetailsProtocolEnum +const ( + UpdateIdentityProviderDetailsProtocolSaml2 UpdateIdentityProviderDetailsProtocolEnum = "SAML2" +) + +var mappingUpdateIdentityProviderDetailsProtocolEnum = map[string]UpdateIdentityProviderDetailsProtocolEnum{ + "SAML2": UpdateIdentityProviderDetailsProtocolSaml2, +} + +var mappingUpdateIdentityProviderDetailsProtocolEnumLowerCase = map[string]UpdateIdentityProviderDetailsProtocolEnum{ + "saml2": UpdateIdentityProviderDetailsProtocolSaml2, +} + +// GetUpdateIdentityProviderDetailsProtocolEnumValues Enumerates the set of values for UpdateIdentityProviderDetailsProtocolEnum +func GetUpdateIdentityProviderDetailsProtocolEnumValues() []UpdateIdentityProviderDetailsProtocolEnum { + values := make([]UpdateIdentityProviderDetailsProtocolEnum, 0) + for _, v := range mappingUpdateIdentityProviderDetailsProtocolEnum { + values = append(values, v) + } + return values +} + +// GetUpdateIdentityProviderDetailsProtocolEnumStringValues Enumerates the set of values in String for UpdateIdentityProviderDetailsProtocolEnum +func GetUpdateIdentityProviderDetailsProtocolEnumStringValues() []string { + return []string{ + "SAML2", + } +} + +// GetMappingUpdateIdentityProviderDetailsProtocolEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateIdentityProviderDetailsProtocolEnum(val string) (UpdateIdentityProviderDetailsProtocolEnum, bool) { + enum, ok := mappingUpdateIdentityProviderDetailsProtocolEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go index 6ec0476d9e..8b88f20f7e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_identity_provider_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_identity_provider_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateIdentityProviderRequest wrapper for the UpdateIdentityProvider operation @@ -39,6 +41,10 @@ func (request UpdateIdentityProviderRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateIdentityProviderRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateIdentityProviderRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateIdentityProviderRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateIdentityProviderResponse wrapper for the UpdateIdentityProvider operation type UpdateIdentityProviderResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go new file mode 100644 index 0000000000..951d6883fb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateIdpGroupMappingDetails The representation of UpdateIdpGroupMappingDetails +type UpdateIdpGroupMappingDetails struct { + + // The idp group name. + IdpGroupName *string `mandatory:"false" json:"idpGroupName"` + + // The OCID of the group. + GroupId *string `mandatory:"false" json:"groupId"` +} + +func (m UpdateIdpGroupMappingDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateIdpGroupMappingDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_request_response.go index 494a4cff35..1a023393b1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_idp_group_mapping_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_idp_group_mapping_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateIdpGroupMappingRequest wrapper for the UpdateIdpGroupMapping operation @@ -42,6 +44,10 @@ func (request UpdateIdpGroupMappingRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateIdpGroupMappingRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateIdpGroupMappingRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateIdpGroupMappingRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateIdpGroupMappingResponse wrapper for the UpdateIdpGroupMapping operation type UpdateIdpGroupMappingResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go new file mode 100644 index 0000000000..4b426f847a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNetworkSourceDetails The representation of UpdateNetworkSourceDetails +type UpdateNetworkSourceDetails struct { + + // The description you assign to the network source. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // A list of allowed public IP addresses and CIDR ranges. + PublicSourceList []string `mandatory:"false" json:"publicSourceList"` + + // A list of allowed VCN OCID and IP range pairs. + // Example:`"vcnId": "ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID", "ipRanges": [ "129.213.39.0/24" ]` + VirtualSourceList []NetworkSourcesVirtualSourceList `mandatory:"false" json:"virtualSourceList"` + + // -- The services attribute has no effect and is reserved for use by Oracle. -- + Services []string `mandatory:"false" json:"services"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateNetworkSourceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNetworkSourceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go index 2f15cd40b1..82202442f3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_network_source_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_network_source_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateNetworkSourceRequest wrapper for the UpdateNetworkSource operation @@ -39,6 +41,10 @@ func (request UpdateNetworkSourceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateNetworkSourceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateNetworkSourceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNetworkSourceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateNetworkSourceResponse wrapper for the UpdateNetworkSource operation type UpdateNetworkSourceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go new file mode 100644 index 0000000000..2ee13b4538 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth2_client_credential_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateOAuth2ClientCredentialDetails The representation of UpdateOAuth2ClientCredentialDetails +type UpdateOAuth2ClientCredentialDetails struct { + + // Description of the oauth credential to help user differentiate them. + Description *string `mandatory:"true" json:"description"` + + // Allowed scopes for the given oauth credential. + Scopes []FullyQualifiedScope `mandatory:"true" json:"scopes"` + + // Indicate if the password to be reset or not in the update. + IsResetPassword *bool `mandatory:"false" json:"isResetPassword"` +} + +func (m UpdateOAuth2ClientCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateOAuth2ClientCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth_client_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth_client_credential_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth_client_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth_client_credential_request_response.go index 166d67cded..d658719d1d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_o_auth_client_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_o_auth_client_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateOAuthClientCredentialRequest wrapper for the UpdateOAuthClientCredential operation @@ -42,6 +44,10 @@ func (request UpdateOAuthClientCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateOAuthClientCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateOAuthClientCredentialRequest) RetryPolicy() *common.RetryPol return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateOAuthClientCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateOAuthClientCredentialResponse wrapper for the UpdateOAuthClientCredential operation type UpdateOAuthClientCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go new file mode 100644 index 0000000000..65e99bfebf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePolicyDetails The representation of UpdatePolicyDetails +type UpdatePolicyDetails struct { + + // The description you assign to the policy. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // An array of policy statements written in the policy language. See + // How Policies Work (https://docs.cloud.oracle.com/Content/Identity/policieshow/how-policies-work.htm) and + // Common Policies (https://docs.cloud.oracle.com/Content/Identity/policiescommon/commonpolicies.htm). + Statements []string `mandatory:"false" json:"statements"` + + // The version of the policy. If null or set to an empty string, when a request comes in for authorization, the + // policy will be evaluated according to the current behavior of the services at that moment. If set to a particular + // date (YYYY-MM-DD), the policy will be evaluated according to the behavior of the services on that date. + VersionDate *common.SDKDate `mandatory:"false" json:"versionDate"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdatePolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go index 3c51d227a5..cb0408a102 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePolicyRequest wrapper for the UpdatePolicy operation @@ -39,6 +41,10 @@ func (request UpdatePolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdatePolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePolicyResponse wrapper for the UpdatePolicy operation type UpdatePolicyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_saml2_identity_provider_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_saml2_identity_provider_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go index 2da598c4c1..9a19c6e7e0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_saml2_identity_provider_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_saml2_identity_provider_details.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateSaml2IdentityProviderDetails The representation of UpdateSaml2IdentityProviderDetails @@ -77,6 +79,18 @@ func (m UpdateSaml2IdentityProviderDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSaml2IdentityProviderDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m UpdateSaml2IdentityProviderDetails) MarshalJSON() (buff []byte, e error) { type MarshalTypeUpdateSaml2IdentityProviderDetails UpdateSaml2IdentityProviderDetails diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go new file mode 100644 index 0000000000..5e712df760 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateSmtpCredentialDetails The representation of UpdateSmtpCredentialDetails +type UpdateSmtpCredentialDetails struct { + + // The description you assign to the SMTP credential. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` +} + +func (m UpdateSmtpCredentialDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSmtpCredentialDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go index 0b2cb1e369..c281c0cfe8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_smtp_credential_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_smtp_credential_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateSmtpCredentialRequest wrapper for the UpdateSmtpCredential operation @@ -42,6 +44,10 @@ func (request UpdateSmtpCredentialRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateSmtpCredentialRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateSmtpCredentialRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSmtpCredentialRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateSmtpCredentialResponse wrapper for the UpdateSmtpCredential operation type UpdateSmtpCredentialResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go new file mode 100644 index 0000000000..62aeb16072 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_state_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateStateDetails The representation of UpdateStateDetails +type UpdateStateDetails struct { + + // Update state to blocked or unblocked. Only "false" is supported (for changing the state to unblocked). + Blocked *bool `mandatory:"false" json:"blocked"` +} + +func (m UpdateStateDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateStateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go new file mode 100644 index 0000000000..a7c5810482 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateSwiftPasswordDetails The representation of UpdateSwiftPasswordDetails +type UpdateSwiftPasswordDetails struct { + + // The description you assign to the Swift password. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` +} + +func (m UpdateSwiftPasswordDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSwiftPasswordDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go index b3d0e3ae3b..18239eedb9 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_swift_password_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_swift_password_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateSwiftPasswordRequest wrapper for the UpdateSwiftPassword operation @@ -42,6 +44,10 @@ func (request UpdateSwiftPasswordRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateSwiftPasswordRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +63,17 @@ func (request UpdateSwiftPasswordRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSwiftPasswordRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateSwiftPasswordResponse wrapper for the UpdateSwiftPassword operation type UpdateSwiftPasswordResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go new file mode 100644 index 0000000000..d3c41996f2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_details.go @@ -0,0 +1,47 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateTagDefaultDetails The representation of UpdateTagDefaultDetails +type UpdateTagDefaultDetails struct { + + // The default value for the tag definition. This will be applied to all resources created in the Compartment. + Value *string `mandatory:"true" json:"value"` + + // If you specify that a value is required, a value is set during resource creation (either by + // the user creating the resource or another tag defualt). If no value is set, resource + // creation is blocked. + // * If the `isRequired` flag is set to "true", the value is set during resource creation. + // * If the `isRequired` flag is set to "false", the value you enter is set during resource creation. + // Example: `false` + IsRequired *bool `mandatory:"false" json:"isRequired"` +} + +func (m UpdateTagDefaultDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateTagDefaultDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go index 23b4d1dc48..9f677458a7 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_default_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_default_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateTagDefaultRequest wrapper for the UpdateTagDefault operation @@ -18,6 +20,9 @@ type UpdateTagDefaultRequest struct { // Request object for updating a tag default. UpdateTagDefaultDetails `contributesTo:"body"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` // parameter to the value of the etag from a previous GET or POST response for that resource. The resource // will be updated or deleted only if the etag you provide matches the resource's current etag value. @@ -39,6 +44,10 @@ func (request UpdateTagDefaultRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateTagDefaultRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +63,17 @@ func (request UpdateTagDefaultRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateTagDefaultRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateTagDefaultResponse wrapper for the UpdateTagDefault operation type UpdateTagDefaultResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go index 6a8334f0c1..18749e91df 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_details.go @@ -1,17 +1,19 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. // Identity and Access Management Service API // -// APIs for managing users, groups, compartments, and policies. +// APIs for managing users, groups, compartments, policies, and identity domains. // package identity import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateTagDetails The representation of UpdateTagDetails @@ -21,7 +23,7 @@ type UpdateTagDetails struct { Description *string `mandatory:"false" json:"description"` // Whether the tag is retired. - // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Identity/Concepts/taggingoverview.htm#Retiring). + // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). IsRetired *bool `mandatory:"false" json:"isRetired"` // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. @@ -44,6 +46,18 @@ func (m UpdateTagDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateTagDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *UpdateTagDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go new file mode 100644 index 0000000000..ff050bc32d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_details.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateTagNamespaceDetails The representation of UpdateTagNamespaceDetails +type UpdateTagNamespaceDetails struct { + + // The description you assign to the tag namespace. + Description *string `mandatory:"false" json:"description"` + + // Whether the tag namespace is retired. + // See Retiring Key Definitions and Namespace Definitions (https://docs.cloud.oracle.com/Content/Tagging/Tasks/managingtagsandtagnamespaces.htm#retiringkeys). + IsRetired *bool `mandatory:"false" json:"isRetired"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateTagNamespaceDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateTagNamespaceDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go index 0908be7f63..43f2d821ab 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_namespace_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_namespace_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateTagNamespaceRequest wrapper for the UpdateTagNamespace operation @@ -18,6 +20,9 @@ type UpdateTagNamespaceRequest struct { // Request object for updating a namespace. UpdateTagNamespaceDetails `contributesTo:"body"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -34,6 +39,10 @@ func (request UpdateTagNamespaceRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateTagNamespaceRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -49,6 +58,17 @@ func (request UpdateTagNamespaceRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateTagNamespaceRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateTagNamespaceResponse wrapper for the UpdateTagNamespace operation type UpdateTagNamespaceResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go index 3760dcbf16..88d33f8bec 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateTagRequest wrapper for the UpdateTag operation @@ -26,6 +28,9 @@ type UpdateTagRequest struct { // will be updated or deleted only if the etag you provide matches the resource's current etag value. IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + // Whether to override locks (if any exist). + IsLockOverride *bool `mandatory:"false" contributesTo:"query" name:"isLockOverride"` + // Unique Oracle-assigned identifier for the request. // If you need to contact Oracle about a particular request, please provide the request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` @@ -42,6 +47,10 @@ func (request UpdateTagRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateTagRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -57,6 +66,17 @@ func (request UpdateTagRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateTagRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateTagResponse wrapper for the UpdateTag operation type UpdateTagResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_details.go new file mode 100644 index 0000000000..3ced0a7d8d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateTagRuleDetails The representation of UpdateTagRuleDetails +type UpdateTagRuleDetails struct { + + // The description you assign to the tag rule. Does not have to be unique, and it's changeable. + Description *string `mandatory:"false" json:"description"` + + // A statement that is written in the tag rule language. + RuleText *string `mandatory:"false" json:"ruleText"` + + // whether or not the tag rule is disabled. If this is not specified, the rule state won't change. + IsDisabled *bool `mandatory:"false" json:"isDisabled"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateTagRuleDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateTagRuleDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_request_response.go index 1898c40504..35984ab5f8 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_tag_rule_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_tag_rule_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateTagRuleRequest wrapper for the UpdateTagRule operation @@ -39,6 +41,10 @@ func (request UpdateTagRuleRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateTagRuleRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateTagRuleRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateTagRuleRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateTagRuleResponse wrapper for the UpdateTagRule operation type UpdateTagRuleResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go new file mode 100644 index 0000000000..a6bff05e61 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateUserCapabilitiesDetails The representation of UpdateUserCapabilitiesDetails +type UpdateUserCapabilitiesDetails struct { + + // Indicates if the user can log in to the console. + CanUseConsolePassword *bool `mandatory:"false" json:"canUseConsolePassword"` + + // Indicates if the user can use API keys. + CanUseApiKeys *bool `mandatory:"false" json:"canUseApiKeys"` + + // Indicates if the user can use SWIFT passwords / auth tokens. + CanUseAuthTokens *bool `mandatory:"false" json:"canUseAuthTokens"` + + // Indicates if the user can use SMTP passwords. + CanUseSmtpCredentials *bool `mandatory:"false" json:"canUseSmtpCredentials"` + + // Indicates if the user can use DB passwords. + CanUseDBCredentials *bool `mandatory:"false" json:"canUseDBCredentials"` + + // Indicates if the user can use SigV4 symmetric keys. + CanUseCustomerSecretKeys *bool `mandatory:"false" json:"canUseCustomerSecretKeys"` + + // Indicates if the user can use OAuth2 credentials and tokens. + CanUseOAuth2ClientCredentials *bool `mandatory:"false" json:"canUseOAuth2ClientCredentials"` +} + +func (m UpdateUserCapabilitiesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateUserCapabilitiesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go index 324e2ce023..25b954d94f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_capabilities_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_capabilities_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateUserCapabilitiesRequest wrapper for the UpdateUserCapabilities operation @@ -39,6 +41,10 @@ func (request UpdateUserCapabilitiesRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateUserCapabilitiesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateUserCapabilitiesRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateUserCapabilitiesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateUserCapabilitiesResponse wrapper for the UpdateUserCapabilities operation type UpdateUserCapabilitiesResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go new file mode 100644 index 0000000000..7e7bff660e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateUserDetails The representation of UpdateUserDetails +type UpdateUserDetails struct { + + // The description you assign to the user. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"false" json:"description"` + + // The email you assign to the user during creation. The email must be unique across all users in the tenancy. + // (For tenancies that support identity domains) You must provide an email for each user. + Email *string `mandatory:"false" json:"email"` + + // DB username of the DB credential. Has to be unique across the tenancy. + DbUserName *string `mandatory:"false" json:"dbUserName"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateUserDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateUserDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go index 372327ea57..2ba0b5dd7d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateUserRequest wrapper for the UpdateUser operation @@ -39,6 +41,10 @@ func (request UpdateUserRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateUserRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateUserRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateUserRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateUserResponse wrapper for the UpdateUser operation type UpdateUserResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_state_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_state_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go index 8b0ca56f9f..7234bf5670 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/update_user_state_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/update_user_state_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateUserStateRequest wrapper for the UpdateUserState operation @@ -39,6 +41,10 @@ func (request UpdateUserStateRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateUserStateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateUserStateRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateUserStateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateUserStateResponse wrapper for the UpdateUserState operation type UpdateUserStateResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/identity/upload_api_key_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/identity/upload_api_key_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go index 03b966453b..7a5b7a49f1 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/identity/upload_api_key_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/upload_api_key_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package identity import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UploadApiKeyRequest wrapper for the UploadApiKey operation @@ -41,6 +43,10 @@ func (request UploadApiKeyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UploadApiKeyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UploadApiKeyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UploadApiKeyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UploadApiKeyResponse wrapper for the UploadApiKey operation type UploadApiKeyResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go new file mode 100644 index 0000000000..107826fb3b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user.go @@ -0,0 +1,190 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// User An individual employee or system that needs to manage or use your company's Oracle Cloud Infrastructure +// resources. Users might need to launch instances, manage remote disks, work with your cloud network, etc. Users +// have one or more IAM Service credentials (ApiKey, +// UIPassword, SwiftPassword and +// AuthToken). +// For more information, see User Credentials (https://docs.cloud.oracle.com/Content/Identity/usercred/usercredentials.htm)). End users of your +// application are not typically IAM Service users, but for tenancies that have identity domains, they might be. +// For conceptual information about users and other IAM Service components, see Overview of IAM (https://docs.cloud.oracle.com/Content/Identity/getstarted/identity-domains.htm). +// These users are created directly within the Oracle Cloud Infrastructure system, via the IAM service. +// They are different from *federated users*, who authenticate themselves to the Oracle Cloud Infrastructure +// Console via an identity provider. For more information, see +// Identity Providers and Federation (https://docs.cloud.oracle.com/Content/Identity/Concepts/federation.htm). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, +// see Get Started with Policies (https://docs.cloud.oracle.com/Content/Identity/policiesgs/get-started-with-policies.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values +// using the API. +type User struct { + + // The OCID of the user. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the user. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The name you assign to the user during creation. This is the user's login for the Console. + // The name must be unique across all users in the tenancy and cannot be changed. + Name *string `mandatory:"true" json:"name"` + + // The description you assign to the user. Does not have to be unique, and it's changeable. + // (For tenancies that support identity domains) You can have an empty description. + Description *string `mandatory:"true" json:"description"` + + // Date and time the user was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The user's current state. After creating a user, make sure its `lifecycleState` changes from CREATING to + // ACTIVE before using it. + LifecycleState UserLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // Flag indicates if MFA has been activated for the user. + IsMfaActivated *bool `mandatory:"true" json:"isMfaActivated"` + + // The email address you assign to the user. + // The email address must be unique across all users in the tenancy. + // (For tenancies that support identity domains) The email address is required unless the requirement is disabled at the tenancy level. + Email *string `mandatory:"false" json:"email"` + + // Whether the email address has been validated. + EmailVerified *bool `mandatory:"false" json:"emailVerified"` + + // DB username of the DB credential. Has to be unique across the tenancy. + DbUserName *string `mandatory:"false" json:"dbUserName"` + + // The OCID of the `IdentityProvider` this user belongs to. + IdentityProviderId *string `mandatory:"false" json:"identityProviderId"` + + // Identifier of the user in the identity provider + ExternalIdentifier *string `mandatory:"false" json:"externalIdentifier"` + + // Returned only if the user's `lifecycleState` is INACTIVE. A 16-bit value showing the reason why the user + // is inactive: + // - bit 0: SUSPENDED (reserved for future use) + // - bit 1: DISABLED (reserved for future use) + // - bit 2: BLOCKED (the user has exceeded the maximum number of failed login attempts for the Console) + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + Capabilities *UserCapabilities `mandatory:"false" json:"capabilities"` + + // The date and time of when the user most recently logged in the + // format defined by RFC3339 (ex. `2016-08-25T21:10:29.600Z`). + // If there is no login history, this field is null. + // For illustrative purposes, suppose we have a user who has logged in + // at July 1st, 2020 at 1200 PST and logged out 30 minutes later. + // They then login again on July 2nd, 2020 at 1500 PST. + // Their previousSuccessfulLoginTime would be `2020-07-01:19:00.000Z`. + // Their lastSuccessfulLoginTime would be `2020-07-02:22:00.000Z`. + LastSuccessfulLoginTime *common.SDKTime `mandatory:"false" json:"lastSuccessfulLoginTime"` + + // The date and time of when the user most recently logged in the + // format defined by RFC3339 (ex. `2016-08-25T21:10:29.600Z`). + // If there is no login history, this field is null. + // For illustrative purposes, suppose we have a user who has logged in + // at July 1st, 2020 at 1200 PST and logged out 30 minutes later. + // They then login again on July 2nd, 2020 at 1500 PST. + // Their previousSuccessfulLoginTime would be `2020-07-01:19:00.000Z`. + // Their lastSuccessfulLoginTime would be `2020-07-02:22:00.000Z`. + PreviousSuccessfulLoginTime *common.SDKTime `mandatory:"false" json:"previousSuccessfulLoginTime"` +} + +func (m User) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m User) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUserLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetUserLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UserLifecycleStateEnum Enum with underlying type: string +type UserLifecycleStateEnum string + +// Set of constants representing the allowable values for UserLifecycleStateEnum +const ( + UserLifecycleStateCreating UserLifecycleStateEnum = "CREATING" + UserLifecycleStateActive UserLifecycleStateEnum = "ACTIVE" + UserLifecycleStateInactive UserLifecycleStateEnum = "INACTIVE" + UserLifecycleStateDeleting UserLifecycleStateEnum = "DELETING" + UserLifecycleStateDeleted UserLifecycleStateEnum = "DELETED" +) + +var mappingUserLifecycleStateEnum = map[string]UserLifecycleStateEnum{ + "CREATING": UserLifecycleStateCreating, + "ACTIVE": UserLifecycleStateActive, + "INACTIVE": UserLifecycleStateInactive, + "DELETING": UserLifecycleStateDeleting, + "DELETED": UserLifecycleStateDeleted, +} + +var mappingUserLifecycleStateEnumLowerCase = map[string]UserLifecycleStateEnum{ + "creating": UserLifecycleStateCreating, + "active": UserLifecycleStateActive, + "inactive": UserLifecycleStateInactive, + "deleting": UserLifecycleStateDeleting, + "deleted": UserLifecycleStateDeleted, +} + +// GetUserLifecycleStateEnumValues Enumerates the set of values for UserLifecycleStateEnum +func GetUserLifecycleStateEnumValues() []UserLifecycleStateEnum { + values := make([]UserLifecycleStateEnum, 0) + for _, v := range mappingUserLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUserLifecycleStateEnumStringValues Enumerates the set of values in String for UserLifecycleStateEnum +func GetUserLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingUserLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUserLifecycleStateEnum(val string) (UserLifecycleStateEnum, bool) { + enum, ok := mappingUserLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go new file mode 100644 index 0000000000..2ecd8dc842 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_capabilities.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UserCapabilities Properties indicating how the user is allowed to authenticate. +type UserCapabilities struct { + + // Indicates if the user can log in to the console. + CanUseConsolePassword *bool `mandatory:"false" json:"canUseConsolePassword"` + + // Indicates if the user can use API keys. + CanUseApiKeys *bool `mandatory:"false" json:"canUseApiKeys"` + + // Indicates if the user can use SWIFT passwords / auth tokens. + CanUseAuthTokens *bool `mandatory:"false" json:"canUseAuthTokens"` + + // Indicates if the user can use SMTP passwords. + CanUseSmtpCredentials *bool `mandatory:"false" json:"canUseSmtpCredentials"` + + // Indicates if the user can use DB passwords. + CanUseDbCredentials *bool `mandatory:"false" json:"canUseDbCredentials"` + + // Indicates if the user can use SigV4 symmetric keys. + CanUseCustomerSecretKeys *bool `mandatory:"false" json:"canUseCustomerSecretKeys"` + + // Indicates if the user can use OAuth2 credentials and tokens. + CanUseOAuth2ClientCredentials *bool `mandatory:"false" json:"canUseOAuth2ClientCredentials"` +} + +func (m UserCapabilities) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UserCapabilities) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go new file mode 100644 index 0000000000..b36d130890 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/user_group_membership.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UserGroupMembership An object that represents the membership of a user in a group. When you add a user to a group, the result is a +// `UserGroupMembership` with its own OCID. To remove a user from a group, you delete the `UserGroupMembership` object. +type UserGroupMembership struct { + + // The OCID of the membership. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the tenancy containing the user, group, and membership object. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID of the group. + GroupId *string `mandatory:"true" json:"groupId"` + + // The OCID of the user. + UserId *string `mandatory:"true" json:"userId"` + + // Date and time the membership was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The membership's current state. After creating a membership object, make sure its `lifecycleState` changes + // from CREATING to ACTIVE before using it. + LifecycleState UserGroupMembershipLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The detailed status of INACTIVE lifecycleState. + InactiveStatus *int64 `mandatory:"false" json:"inactiveStatus"` +} + +func (m UserGroupMembership) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UserGroupMembership) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingUserGroupMembershipLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetUserGroupMembershipLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UserGroupMembershipLifecycleStateEnum Enum with underlying type: string +type UserGroupMembershipLifecycleStateEnum string + +// Set of constants representing the allowable values for UserGroupMembershipLifecycleStateEnum +const ( + UserGroupMembershipLifecycleStateCreating UserGroupMembershipLifecycleStateEnum = "CREATING" + UserGroupMembershipLifecycleStateActive UserGroupMembershipLifecycleStateEnum = "ACTIVE" + UserGroupMembershipLifecycleStateInactive UserGroupMembershipLifecycleStateEnum = "INACTIVE" + UserGroupMembershipLifecycleStateDeleting UserGroupMembershipLifecycleStateEnum = "DELETING" + UserGroupMembershipLifecycleStateDeleted UserGroupMembershipLifecycleStateEnum = "DELETED" +) + +var mappingUserGroupMembershipLifecycleStateEnum = map[string]UserGroupMembershipLifecycleStateEnum{ + "CREATING": UserGroupMembershipLifecycleStateCreating, + "ACTIVE": UserGroupMembershipLifecycleStateActive, + "INACTIVE": UserGroupMembershipLifecycleStateInactive, + "DELETING": UserGroupMembershipLifecycleStateDeleting, + "DELETED": UserGroupMembershipLifecycleStateDeleted, +} + +var mappingUserGroupMembershipLifecycleStateEnumLowerCase = map[string]UserGroupMembershipLifecycleStateEnum{ + "creating": UserGroupMembershipLifecycleStateCreating, + "active": UserGroupMembershipLifecycleStateActive, + "inactive": UserGroupMembershipLifecycleStateInactive, + "deleting": UserGroupMembershipLifecycleStateDeleting, + "deleted": UserGroupMembershipLifecycleStateDeleted, +} + +// GetUserGroupMembershipLifecycleStateEnumValues Enumerates the set of values for UserGroupMembershipLifecycleStateEnum +func GetUserGroupMembershipLifecycleStateEnumValues() []UserGroupMembershipLifecycleStateEnum { + values := make([]UserGroupMembershipLifecycleStateEnum, 0) + for _, v := range mappingUserGroupMembershipLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetUserGroupMembershipLifecycleStateEnumStringValues Enumerates the set of values in String for UserGroupMembershipLifecycleStateEnum +func GetUserGroupMembershipLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "ACTIVE", + "INACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingUserGroupMembershipLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUserGroupMembershipLifecycleStateEnum(val string) (UserGroupMembershipLifecycleStateEnum, bool) { + enum, ok := mappingUserGroupMembershipLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go new file mode 100644 index 0000000000..f6f017fb08 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request.go @@ -0,0 +1,179 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequest The asynchronous API request does not take effect immediately. This request spawns an asynchronous +// workflow to fulfill the request. WorkRequest objects provide visibility for in-progress workflows. +type WorkRequest struct { + + // The OCID of the work request. + Id *string `mandatory:"true" json:"id"` + + // An enum-like description of the type of work the work request is doing. + OperationType WorkRequestOperationTypeEnum `mandatory:"true" json:"operationType"` + + // The current status of the work request. + Status WorkRequestStatusEnum `mandatory:"true" json:"status"` + + // The OCID of the compartment that contains the work request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // The errors for work request. + Errors []WorkRequestError `mandatory:"false" json:"errors"` + + // The logs for work request. + Logs []WorkRequestLogEntry `mandatory:"false" json:"logs"` + + // Date and time the work was accepted, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // Date and time the work started, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // Date and time the work completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // How much progress the operation has made. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` +} + +func (m WorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingWorkRequestOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetWorkRequestOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingWorkRequestStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetWorkRequestStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestOperationTypeEnum Enum with underlying type: string +type WorkRequestOperationTypeEnum string + +// Set of constants representing the allowable values for WorkRequestOperationTypeEnum +const ( + WorkRequestOperationTypeCompartment WorkRequestOperationTypeEnum = "DELETE_COMPARTMENT" + WorkRequestOperationTypeTagDefinition WorkRequestOperationTypeEnum = "DELETE_TAG_DEFINITION" +) + +var mappingWorkRequestOperationTypeEnum = map[string]WorkRequestOperationTypeEnum{ + "DELETE_COMPARTMENT": WorkRequestOperationTypeCompartment, + "DELETE_TAG_DEFINITION": WorkRequestOperationTypeTagDefinition, +} + +var mappingWorkRequestOperationTypeEnumLowerCase = map[string]WorkRequestOperationTypeEnum{ + "delete_compartment": WorkRequestOperationTypeCompartment, + "delete_tag_definition": WorkRequestOperationTypeTagDefinition, +} + +// GetWorkRequestOperationTypeEnumValues Enumerates the set of values for WorkRequestOperationTypeEnum +func GetWorkRequestOperationTypeEnumValues() []WorkRequestOperationTypeEnum { + values := make([]WorkRequestOperationTypeEnum, 0) + for _, v := range mappingWorkRequestOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestOperationTypeEnumStringValues Enumerates the set of values in String for WorkRequestOperationTypeEnum +func GetWorkRequestOperationTypeEnumStringValues() []string { + return []string{ + "DELETE_COMPARTMENT", + "DELETE_TAG_DEFINITION", + } +} + +// GetMappingWorkRequestOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestOperationTypeEnum(val string) (WorkRequestOperationTypeEnum, bool) { + enum, ok := mappingWorkRequestOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// WorkRequestStatusEnum Enum with underlying type: string +type WorkRequestStatusEnum string + +// Set of constants representing the allowable values for WorkRequestStatusEnum +const ( + WorkRequestStatusAccepted WorkRequestStatusEnum = "ACCEPTED" + WorkRequestStatusInProgress WorkRequestStatusEnum = "IN_PROGRESS" + WorkRequestStatusFailed WorkRequestStatusEnum = "FAILED" + WorkRequestStatusSucceeded WorkRequestStatusEnum = "SUCCEEDED" + WorkRequestStatusCanceling WorkRequestStatusEnum = "CANCELING" + WorkRequestStatusCanceled WorkRequestStatusEnum = "CANCELED" +) + +var mappingWorkRequestStatusEnum = map[string]WorkRequestStatusEnum{ + "ACCEPTED": WorkRequestStatusAccepted, + "IN_PROGRESS": WorkRequestStatusInProgress, + "FAILED": WorkRequestStatusFailed, + "SUCCEEDED": WorkRequestStatusSucceeded, + "CANCELING": WorkRequestStatusCanceling, + "CANCELED": WorkRequestStatusCanceled, +} + +var mappingWorkRequestStatusEnumLowerCase = map[string]WorkRequestStatusEnum{ + "accepted": WorkRequestStatusAccepted, + "in_progress": WorkRequestStatusInProgress, + "failed": WorkRequestStatusFailed, + "succeeded": WorkRequestStatusSucceeded, + "canceling": WorkRequestStatusCanceling, + "canceled": WorkRequestStatusCanceled, +} + +// GetWorkRequestStatusEnumValues Enumerates the set of values for WorkRequestStatusEnum +func GetWorkRequestStatusEnumValues() []WorkRequestStatusEnum { + values := make([]WorkRequestStatusEnum, 0) + for _, v := range mappingWorkRequestStatusEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestStatusEnumStringValues Enumerates the set of values in String for WorkRequestStatusEnum +func GetWorkRequestStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingWorkRequestStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestStatusEnum(val string) (WorkRequestStatusEnum, bool) { + enum, ok := mappingWorkRequestStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go new file mode 100644 index 0000000000..9e66949fd2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_error.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestError The error entity. +type WorkRequestError struct { + + // A machine-usable code for the error that occured. + Code *string `mandatory:"true" json:"code"` + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // Date and time the error happened, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m WorkRequestError) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestError) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go new file mode 100644 index 0000000000..8683886afb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_log_entry.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntry The log entity. +type WorkRequestLogEntry struct { + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` + + // Date and time the log was written, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + Timestamp *common.SDKTime `mandatory:"false" json:"timestamp"` +} + +func (m WorkRequestLogEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go new file mode 100644 index 0000000000..9d48285468 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_resource.go @@ -0,0 +1,109 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestResource The resource entity. +type WorkRequestResource struct { + + // The resource identifier the work request affects. + Identifier *string `mandatory:"true" json:"identifier"` + + // The resource type the work request is affects. + EntityType *string `mandatory:"true" json:"entityType"` + + // The way in which this resource was affected by the work tracked by the work request. + ActionType WorkRequestResourceActionTypeEnum `mandatory:"true" json:"actionType"` + + // The URI path that the user can do a GET on to access the resource metadata. + EntityUri *string `mandatory:"false" json:"entityUri"` +} + +func (m WorkRequestResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingWorkRequestResourceActionTypeEnum(string(m.ActionType)); !ok && m.ActionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ActionType: %s. Supported values are: %s.", m.ActionType, strings.Join(GetWorkRequestResourceActionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestResourceActionTypeEnum Enum with underlying type: string +type WorkRequestResourceActionTypeEnum string + +// Set of constants representing the allowable values for WorkRequestResourceActionTypeEnum +const ( + WorkRequestResourceActionTypeCreated WorkRequestResourceActionTypeEnum = "CREATED" + WorkRequestResourceActionTypeUpdated WorkRequestResourceActionTypeEnum = "UPDATED" + WorkRequestResourceActionTypeDeleted WorkRequestResourceActionTypeEnum = "DELETED" + WorkRequestResourceActionTypeRelated WorkRequestResourceActionTypeEnum = "RELATED" + WorkRequestResourceActionTypeInProgress WorkRequestResourceActionTypeEnum = "IN_PROGRESS" + WorkRequestResourceActionTypeFailed WorkRequestResourceActionTypeEnum = "FAILED" +) + +var mappingWorkRequestResourceActionTypeEnum = map[string]WorkRequestResourceActionTypeEnum{ + "CREATED": WorkRequestResourceActionTypeCreated, + "UPDATED": WorkRequestResourceActionTypeUpdated, + "DELETED": WorkRequestResourceActionTypeDeleted, + "RELATED": WorkRequestResourceActionTypeRelated, + "IN_PROGRESS": WorkRequestResourceActionTypeInProgress, + "FAILED": WorkRequestResourceActionTypeFailed, +} + +var mappingWorkRequestResourceActionTypeEnumLowerCase = map[string]WorkRequestResourceActionTypeEnum{ + "created": WorkRequestResourceActionTypeCreated, + "updated": WorkRequestResourceActionTypeUpdated, + "deleted": WorkRequestResourceActionTypeDeleted, + "related": WorkRequestResourceActionTypeRelated, + "in_progress": WorkRequestResourceActionTypeInProgress, + "failed": WorkRequestResourceActionTypeFailed, +} + +// GetWorkRequestResourceActionTypeEnumValues Enumerates the set of values for WorkRequestResourceActionTypeEnum +func GetWorkRequestResourceActionTypeEnumValues() []WorkRequestResourceActionTypeEnum { + values := make([]WorkRequestResourceActionTypeEnum, 0) + for _, v := range mappingWorkRequestResourceActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestResourceActionTypeEnumStringValues Enumerates the set of values in String for WorkRequestResourceActionTypeEnum +func GetWorkRequestResourceActionTypeEnumStringValues() []string { + return []string{ + "CREATED", + "UPDATED", + "DELETED", + "RELATED", + "IN_PROGRESS", + "FAILED", + } +} + +// GetMappingWorkRequestResourceActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestResourceActionTypeEnum(val string) (WorkRequestResourceActionTypeEnum, bool) { + enum, ok := mappingWorkRequestResourceActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go new file mode 100644 index 0000000000..22d97db1a1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/identity/work_request_summary.go @@ -0,0 +1,175 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Identity and Access Management Service API +// +// APIs for managing users, groups, compartments, policies, and identity domains. +// + +package identity + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummary The work request summary. Tracks the status of the asynchronous operation. +type WorkRequestSummary struct { + + // The OCID of the work request. + Id *string `mandatory:"true" json:"id"` + + // An enum-like description of the type of work the work request is doing. + OperationType WorkRequestSummaryOperationTypeEnum `mandatory:"true" json:"operationType"` + + // The current status of the work request. + Status WorkRequestSummaryStatusEnum `mandatory:"true" json:"status"` + + // The OCID of the compartment that contains the work request. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The resources this work request affects. + Resources []WorkRequestResource `mandatory:"false" json:"resources"` + + // The errors for work request. + Errors []WorkRequestError `mandatory:"false" json:"errors"` + + // Date and time the work was accepted, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"false" json:"timeAccepted"` + + // Date and time the work started, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // Date and time the work completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` + + // How much progress the operation has made. + PercentComplete *float32 `mandatory:"false" json:"percentComplete"` +} + +func (m WorkRequestSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingWorkRequestSummaryOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetWorkRequestSummaryOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingWorkRequestSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetWorkRequestSummaryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestSummaryOperationTypeEnum Enum with underlying type: string +type WorkRequestSummaryOperationTypeEnum string + +// Set of constants representing the allowable values for WorkRequestSummaryOperationTypeEnum +const ( + WorkRequestSummaryOperationTypeCompartment WorkRequestSummaryOperationTypeEnum = "DELETE_COMPARTMENT" + WorkRequestSummaryOperationTypeTagDefinition WorkRequestSummaryOperationTypeEnum = "DELETE_TAG_DEFINITION" +) + +var mappingWorkRequestSummaryOperationTypeEnum = map[string]WorkRequestSummaryOperationTypeEnum{ + "DELETE_COMPARTMENT": WorkRequestSummaryOperationTypeCompartment, + "DELETE_TAG_DEFINITION": WorkRequestSummaryOperationTypeTagDefinition, +} + +var mappingWorkRequestSummaryOperationTypeEnumLowerCase = map[string]WorkRequestSummaryOperationTypeEnum{ + "delete_compartment": WorkRequestSummaryOperationTypeCompartment, + "delete_tag_definition": WorkRequestSummaryOperationTypeTagDefinition, +} + +// GetWorkRequestSummaryOperationTypeEnumValues Enumerates the set of values for WorkRequestSummaryOperationTypeEnum +func GetWorkRequestSummaryOperationTypeEnumValues() []WorkRequestSummaryOperationTypeEnum { + values := make([]WorkRequestSummaryOperationTypeEnum, 0) + for _, v := range mappingWorkRequestSummaryOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestSummaryOperationTypeEnumStringValues Enumerates the set of values in String for WorkRequestSummaryOperationTypeEnum +func GetWorkRequestSummaryOperationTypeEnumStringValues() []string { + return []string{ + "DELETE_COMPARTMENT", + "DELETE_TAG_DEFINITION", + } +} + +// GetMappingWorkRequestSummaryOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestSummaryOperationTypeEnum(val string) (WorkRequestSummaryOperationTypeEnum, bool) { + enum, ok := mappingWorkRequestSummaryOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// WorkRequestSummaryStatusEnum Enum with underlying type: string +type WorkRequestSummaryStatusEnum string + +// Set of constants representing the allowable values for WorkRequestSummaryStatusEnum +const ( + WorkRequestSummaryStatusAccepted WorkRequestSummaryStatusEnum = "ACCEPTED" + WorkRequestSummaryStatusInProgress WorkRequestSummaryStatusEnum = "IN_PROGRESS" + WorkRequestSummaryStatusFailed WorkRequestSummaryStatusEnum = "FAILED" + WorkRequestSummaryStatusSucceeded WorkRequestSummaryStatusEnum = "SUCCEEDED" + WorkRequestSummaryStatusCanceling WorkRequestSummaryStatusEnum = "CANCELING" + WorkRequestSummaryStatusCanceled WorkRequestSummaryStatusEnum = "CANCELED" +) + +var mappingWorkRequestSummaryStatusEnum = map[string]WorkRequestSummaryStatusEnum{ + "ACCEPTED": WorkRequestSummaryStatusAccepted, + "IN_PROGRESS": WorkRequestSummaryStatusInProgress, + "FAILED": WorkRequestSummaryStatusFailed, + "SUCCEEDED": WorkRequestSummaryStatusSucceeded, + "CANCELING": WorkRequestSummaryStatusCanceling, + "CANCELED": WorkRequestSummaryStatusCanceled, +} + +var mappingWorkRequestSummaryStatusEnumLowerCase = map[string]WorkRequestSummaryStatusEnum{ + "accepted": WorkRequestSummaryStatusAccepted, + "in_progress": WorkRequestSummaryStatusInProgress, + "failed": WorkRequestSummaryStatusFailed, + "succeeded": WorkRequestSummaryStatusSucceeded, + "canceling": WorkRequestSummaryStatusCanceling, + "canceled": WorkRequestSummaryStatusCanceled, +} + +// GetWorkRequestSummaryStatusEnumValues Enumerates the set of values for WorkRequestSummaryStatusEnum +func GetWorkRequestSummaryStatusEnumValues() []WorkRequestSummaryStatusEnum { + values := make([]WorkRequestSummaryStatusEnum, 0) + for _, v := range mappingWorkRequestSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestSummaryStatusEnumStringValues Enumerates the set of values in String for WorkRequestSummaryStatusEnum +func GetWorkRequestSummaryStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingWorkRequestSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestSummaryStatusEnum(val string) (WorkRequestSummaryStatusEnum, bool) { + enum, ok := mappingWorkRequestSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/action.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/action.go new file mode 100644 index 0000000000..565e2b0d0e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/action.go @@ -0,0 +1,116 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Action An entity that represents an action to apply for a routing rule. +type Action interface { +} + +type action struct { + JsonData []byte + Name string `json:"name"` +} + +// UnmarshalJSON unmarshals json +func (m *action) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshaleraction action + s := struct { + Model Unmarshaleraction + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Name = s.Model.Name + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *action) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Name { + case "FORWARD_TO_BACKENDSET": + mm := ForwardToBackendSet{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for Action: %s.", m.Name) + return *m, nil + } +} + +func (m action) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m action) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ActionNameEnum Enum with underlying type: string +type ActionNameEnum string + +// Set of constants representing the allowable values for ActionNameEnum +const ( + ActionNameForwardToBackendset ActionNameEnum = "FORWARD_TO_BACKENDSET" +) + +var mappingActionNameEnum = map[string]ActionNameEnum{ + "FORWARD_TO_BACKENDSET": ActionNameForwardToBackendset, +} + +var mappingActionNameEnumLowerCase = map[string]ActionNameEnum{ + "forward_to_backendset": ActionNameForwardToBackendset, +} + +// GetActionNameEnumValues Enumerates the set of values for ActionNameEnum +func GetActionNameEnumValues() []ActionNameEnum { + values := make([]ActionNameEnum, 0) + for _, v := range mappingActionNameEnum { + values = append(values, v) + } + return values +} + +// GetActionNameEnumStringValues Enumerates the set of values in String for ActionNameEnum +func GetActionNameEnumStringValues() []string { + return []string{ + "FORWARD_TO_BACKENDSET", + } +} + +// GetMappingActionNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingActionNameEnum(val string) (ActionNameEnum, bool) { + enum, ok := mappingActionNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/add_http_request_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/add_http_request_header_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go index 8d1148be06..9d1b8f31de 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/add_http_request_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_request_header_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // AddHttpRequestHeaderRule An object that represents the action of adding a header to a request. Optionally rule @@ -43,6 +45,18 @@ func (m AddHttpRequestHeaderRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddHttpRequestHeaderRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m AddHttpRequestHeaderRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeAddHttpRequestHeaderRule AddHttpRequestHeaderRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/add_http_response_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/add_http_response_header_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go index fe15af521e..9f187d3f91 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/add_http_response_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/add_http_response_header_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // AddHttpResponseHeaderRule An object that represents the action of adding a header to a response. @@ -41,6 +43,18 @@ func (m AddHttpResponseHeaderRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AddHttpResponseHeaderRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m AddHttpResponseHeaderRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeAddHttpResponseHeaderRule AddHttpResponseHeaderRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/allow_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/allow_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go index 65e9a0293a..c6bf16992b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/allow_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/allow_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // AllowRule An object that represents the action of configuring an access control rule. Access control rules permit access @@ -39,6 +41,18 @@ func (m AllowRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AllowRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m AllowRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeAllowRule AllowRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend.go new file mode 100644 index 0000000000..a5cab9f5de --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Backend The configuration of a backend server that is a member of a load balancer backend set. +// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). +type Backend struct { + + // A read-only field showing the IP address and port that uniquely identify this backend server in the backend set. + // Example: `10.0.0.3:8080` + Name *string `mandatory:"true" json:"name"` + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"true" json:"weight"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `false` + Drain *bool `mandatory:"true" json:"drain"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. + // Example: `false` + Backup *bool `mandatory:"true" json:"backup"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + Offline *bool `mandatory:"true" json:"offline"` +} + +func (m Backend) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Backend) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_details.go new file mode 100644 index 0000000000..aa5f7f3cd6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendDetails The load balancing configuration details of a backend server. +type BackendDetails struct { + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. + // Example: `false` + Backup *bool `mandatory:"false" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `false` + Drain *bool `mandatory:"false" json:"drain"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + Offline *bool `mandatory:"false" json:"offline"` +} + +func (m BackendDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_health.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_health.go new file mode 100644 index 0000000000..9678940def --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_health.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendHealth The health status of the specified backend server as reported by the primary and standby load balancers. +type BackendHealth struct { + + // The general health status of the specified backend server as reported by the primary and standby load balancers. + // * **OK:** Both health checks returned `OK`. + // * **WARNING:** One health check returned `OK` and one did not. + // * **CRITICAL:** Neither health check returned `OK`. + // * **UNKNOWN:** One or both health checks returned `UNKNOWN`, or the system was unable to retrieve metrics at this time. + Status BackendHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of the most recent health check results returned for the specified backend server. + HealthCheckResults []HealthCheckResult `mandatory:"true" json:"healthCheckResults"` +} + +func (m BackendHealth) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendHealth) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBackendHealthStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetBackendHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BackendHealthStatusEnum Enum with underlying type: string +type BackendHealthStatusEnum string + +// Set of constants representing the allowable values for BackendHealthStatusEnum +const ( + BackendHealthStatusOk BackendHealthStatusEnum = "OK" + BackendHealthStatusWarning BackendHealthStatusEnum = "WARNING" + BackendHealthStatusCritical BackendHealthStatusEnum = "CRITICAL" + BackendHealthStatusUnknown BackendHealthStatusEnum = "UNKNOWN" +) + +var mappingBackendHealthStatusEnum = map[string]BackendHealthStatusEnum{ + "OK": BackendHealthStatusOk, + "WARNING": BackendHealthStatusWarning, + "CRITICAL": BackendHealthStatusCritical, + "UNKNOWN": BackendHealthStatusUnknown, +} + +var mappingBackendHealthStatusEnumLowerCase = map[string]BackendHealthStatusEnum{ + "ok": BackendHealthStatusOk, + "warning": BackendHealthStatusWarning, + "critical": BackendHealthStatusCritical, + "unknown": BackendHealthStatusUnknown, +} + +// GetBackendHealthStatusEnumValues Enumerates the set of values for BackendHealthStatusEnum +func GetBackendHealthStatusEnumValues() []BackendHealthStatusEnum { + values := make([]BackendHealthStatusEnum, 0) + for _, v := range mappingBackendHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetBackendHealthStatusEnumStringValues Enumerates the set of values in String for BackendHealthStatusEnum +func GetBackendHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingBackendHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBackendHealthStatusEnum(val string) (BackendHealthStatusEnum, bool) { + enum, ok := mappingBackendHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set.go new file mode 100644 index 0000000000..e9da1cc129 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSet The configuration of a load balancer backend set. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` +// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two +// attributes per backend set. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type BackendSet struct { + + // A friendly name for the backend set. It must be unique and it cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `example_backend_set` + Name *string `mandatory:"true" json:"name"` + + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + + Backends []Backend `mandatory:"true" json:"backends"` + + HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` + + SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` + + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + + LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` +} + +func (m BackendSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_details.go new file mode 100644 index 0000000000..6d82c60ab7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_details.go @@ -0,0 +1,57 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSetDetails The configuration details for a load balancer backend set. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` +// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two +// attributes per backend set. +type BackendSetDetails struct { + + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` + + Backends []BackendDetails `mandatory:"false" json:"backends"` + + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` + + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + + LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` +} + +func (m BackendSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_health.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_health.go new file mode 100644 index 0000000000..92f3f91f01 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/backend_set_health.go @@ -0,0 +1,120 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSetHealth The health status details for a backend set. +// This object does not explicitly enumerate backend servers with a status of `OK`. However, they are included in the +// `totalBackendCount` sum. +type BackendSetHealth struct { + + // Overall health status of the backend set. + // * **OK:** All backend servers in the backend set return a status of `OK`. + // * **WARNING:** Half or more of the backend set's backend servers return a status of `OK` and at least one backend + // server returns a status of `WARNING`, `CRITICAL`, or `UNKNOWN`. + // * **CRITICAL:** Fewer than half of the backend set's backend servers return a status of `OK`. + // * **UNKNOWN:** More than half of the backend set's backend servers return a status of `UNKNOWN`, the system was + // unable to retrieve metrics, or the backend set does not have a listener attached. + Status BackendSetHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by + // IP address and port. + // Example: `10.0.0.3:8080` + WarningStateBackendNames []string `mandatory:"true" json:"warningStateBackendNames"` + + // A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by + // IP address and port. + // Example: `10.0.0.4:8080` + CriticalStateBackendNames []string `mandatory:"true" json:"criticalStateBackendNames"` + + // A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by + // IP address and port. + // Example: `10.0.0.5:8080` + UnknownStateBackendNames []string `mandatory:"true" json:"unknownStateBackendNames"` + + // The total number of backend servers in this backend set. + // Example: `7` + TotalBackendCount *int `mandatory:"true" json:"totalBackendCount"` +} + +func (m BackendSetHealth) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSetHealth) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBackendSetHealthStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetBackendSetHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BackendSetHealthStatusEnum Enum with underlying type: string +type BackendSetHealthStatusEnum string + +// Set of constants representing the allowable values for BackendSetHealthStatusEnum +const ( + BackendSetHealthStatusOk BackendSetHealthStatusEnum = "OK" + BackendSetHealthStatusWarning BackendSetHealthStatusEnum = "WARNING" + BackendSetHealthStatusCritical BackendSetHealthStatusEnum = "CRITICAL" + BackendSetHealthStatusUnknown BackendSetHealthStatusEnum = "UNKNOWN" +) + +var mappingBackendSetHealthStatusEnum = map[string]BackendSetHealthStatusEnum{ + "OK": BackendSetHealthStatusOk, + "WARNING": BackendSetHealthStatusWarning, + "CRITICAL": BackendSetHealthStatusCritical, + "UNKNOWN": BackendSetHealthStatusUnknown, +} + +var mappingBackendSetHealthStatusEnumLowerCase = map[string]BackendSetHealthStatusEnum{ + "ok": BackendSetHealthStatusOk, + "warning": BackendSetHealthStatusWarning, + "critical": BackendSetHealthStatusCritical, + "unknown": BackendSetHealthStatusUnknown, +} + +// GetBackendSetHealthStatusEnumValues Enumerates the set of values for BackendSetHealthStatusEnum +func GetBackendSetHealthStatusEnumValues() []BackendSetHealthStatusEnum { + values := make([]BackendSetHealthStatusEnum, 0) + for _, v := range mappingBackendSetHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetBackendSetHealthStatusEnumStringValues Enumerates the set of values in String for BackendSetHealthStatusEnum +func GetBackendSetHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingBackendSetHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBackendSetHealthStatusEnum(val string) (BackendSetHealthStatusEnum, bool) { + enum, ok := mappingBackendSetHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/certificate.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/certificate.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go index 753ae665f6..3ccce08aeb 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/certificate.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Certificate The configuration details of a certificate bundle. @@ -52,3 +54,15 @@ type Certificate struct { func (m Certificate) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Certificate) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/certificate_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/certificate_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go index d88ac859ef..83a13eeb5d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/certificate_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/certificate_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CertificateDetails The configuration details for a certificate bundle. @@ -66,3 +68,15 @@ type CertificateDetails struct { func (m CertificateDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CertificateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_details.go new file mode 100644 index 0000000000..a49ff8a964 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeLoadBalancerCompartmentDetails The configuration details for moving a load balancer to a different compartment. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type ChangeLoadBalancerCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the load balancer to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeLoadBalancerCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeLoadBalancerCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_request_response.go new file mode 100644 index 0000000000..abb51881ad --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/change_load_balancer_compartment_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ChangeLoadBalancerCompartmentRequest wrapper for the ChangeLoadBalancerCompartment operation +type ChangeLoadBalancerCompartmentRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer to move. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The configuration details for moving a load balancer to a different compartment. + ChangeLoadBalancerCompartmentDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ChangeLoadBalancerCompartmentRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ChangeLoadBalancerCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ChangeLoadBalancerCompartmentRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ChangeLoadBalancerCompartmentRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeLoadBalancerCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ChangeLoadBalancerCompartmentResponse wrapper for the ChangeLoadBalancerCompartment operation +type ChangeLoadBalancerCompartmentResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ChangeLoadBalancerCompartmentResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ChangeLoadBalancerCompartmentResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks.go new file mode 100644 index 0000000000..9fd3bb32e9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CidrBlocks The configuration details of the CidrBlocks. +// CidrBlocks contains a name and list of CIDR block. Each of the CidrBlocks should have unique name +// within the load balancer. CidrBlocks resource name can be used in rule conditions. +// Example: +// "name" : `ClientRealIpCidrBlocks` +// "items" : `["129.213.176.0/24","150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]` +// **Warning:** No confidential information should be passed in this API. +type CidrBlocks struct { + + // A friendly name for the CidrBlocks. + // Example: `SourceIpCidrBlocks` + Name *string `mandatory:"true" json:"name"` + + // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. + // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' + Items []string `mandatory:"true" json:"items"` +} + +func (m CidrBlocks) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CidrBlocks) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks_details.go new file mode 100644 index 0000000000..c446e729f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/cidr_blocks_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CidrBlocksDetails The configuration details of the CidrBlocks. +// CidrBlocks contains a name and list of CIDR block. Each of the CidrBlocks should have unique name +// within the load balancer. CidrBlocks resource name can be used in rule conditions. +// Example: +// "name" : `ClientRealIpCidrBlocks` +// "items" : `["129.213.176.0/24","150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]` +// **Warning:** No confidential information should be passed in this API. +type CidrBlocksDetails struct { + + // A friendly name for the CidrBlocks. + // Example: `SourceIpCidrBlocks` + Name *string `mandatory:"true" json:"name"` + + // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. + // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' + Items []string `mandatory:"true" json:"items"` +} + +func (m CidrBlocksDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CidrBlocksDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/connection_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/connection_configuration.go new file mode 100644 index 0000000000..ba0c5d8752 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/connection_configuration.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ConnectionConfiguration Configuration details for the connection between the client and backend servers. +type ConnectionConfiguration struct { + + // The maximum idle time, in seconds, allowed between two successive receive or two successive send operations + // between the client and backend servers. A send operation does not reset the timer for receive operations. A + // receive operation does not reset the timer for send operations. + // For more information, see Connection Configuration (https://docs.cloud.oracle.com/Content/Balance/Reference/connectionreuse.htm#ConnectionConfiguration). + // Example: `1200` + IdleTimeout *int64 `mandatory:"true" json:"idleTimeout"` + + // The backend TCP Proxy Protocol version. + // Example: `1` + BackendTcpProxyProtocolVersion *int `mandatory:"false" json:"backendTcpProxyProtocolVersion"` + + // An array that represents the PPV2 Options that can be enabled on TCP Listeners. + // Example: ["PP2_TYPE_AUTHORITY"] + BackendTcpProxyProtocolOptions []ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum `mandatory:"false" json:"backendTcpProxyProtocolOptions,omitempty"` +} + +func (m ConnectionConfiguration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ConnectionConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + for _, val := range m.BackendTcpProxyProtocolOptions { + if _, ok := GetMappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnum(string(val)); !ok && val != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BackendTcpProxyProtocolOptions: %s. Supported values are: %s.", val, strings.Join(GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumStringValues(), ","))) + } + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum Enum with underlying type: string +type ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum string + +// Set of constants representing the allowable values for ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum +const ( + ConnectionConfigurationBackendTcpProxyProtocolOptionsPp2TypeAuthority ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum = "PP2_TYPE_AUTHORITY" +) + +var mappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnum = map[string]ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum{ + "PP2_TYPE_AUTHORITY": ConnectionConfigurationBackendTcpProxyProtocolOptionsPp2TypeAuthority, +} + +var mappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnumLowerCase = map[string]ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum{ + "pp2_type_authority": ConnectionConfigurationBackendTcpProxyProtocolOptionsPp2TypeAuthority, +} + +// GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumValues Enumerates the set of values for ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum +func GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumValues() []ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum { + values := make([]ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum, 0) + for _, v := range mappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnum { + values = append(values, v) + } + return values +} + +// GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumStringValues Enumerates the set of values in String for ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum +func GetConnectionConfigurationBackendTcpProxyProtocolOptionsEnumStringValues() []string { + return []string{ + "PP2_TYPE_AUTHORITY", + } +} + +// GetMappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnum(val string) (ConnectionConfigurationBackendTcpProxyProtocolOptionsEnum, bool) { + enum, ok := mappingConnectionConfigurationBackendTcpProxyProtocolOptionsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/control_access_using_http_methods_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/control_access_using_http_methods_rule.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/control_access_using_http_methods_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/control_access_using_http_methods_rule.go index 02bd4c3db1..3ed430bf44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/control_access_using_http_methods_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/control_access_using_http_methods_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ControlAccessUsingHttpMethodsRule An object that represents the action of returning a specified response code when the requested HTTP method is not in @@ -47,6 +49,18 @@ func (m ControlAccessUsingHttpMethodsRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ControlAccessUsingHttpMethodsRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m ControlAccessUsingHttpMethodsRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeControlAccessUsingHttpMethodsRule ControlAccessUsingHttpMethodsRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_details.go new file mode 100644 index 0000000000..526d825479 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_details.go @@ -0,0 +1,71 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateBackendDetails The configuration details for creating a backend server in a backend set. +// For more information on backend server configuration, see +// Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). +type CreateBackendDetails struct { + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. + // Example: `false` + Backup *bool `mandatory:"false" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `false` + Drain *bool `mandatory:"false" json:"drain"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + Offline *bool `mandatory:"false" json:"offline"` +} + +func (m CreateBackendDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateBackendDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_request_response.go new file mode 100644 index 0000000000..db9943b8be --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateBackendRequest wrapper for the CreateBackend operation +type CreateBackendRequest struct { + + // The details to add a backend server to a backend set. + CreateBackendDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to add the backend server to. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateBackendResponse wrapper for the CreateBackend operation +type CreateBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_details.go new file mode 100644 index 0000000000..e6bd1334c5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_details.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateBackendSetDetails The configuration details for creating a backend set in a load balancer. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` +// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two +// attributes per backend set. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateBackendSetDetails struct { + + // A friendly name for the backend set. It must be unique and it cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `example_backend_set` + Name *string `mandatory:"true" json:"name"` + + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` + + Backends []BackendDetails `mandatory:"false" json:"backends"` + + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` + + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + + LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` +} + +func (m CreateBackendSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateBackendSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_request_response.go new file mode 100644 index 0000000000..17c8499819 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_backend_set_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateBackendSetRequest wrapper for the CreateBackendSet operation +type CreateBackendSetRequest struct { + + // The details for adding a backend set. + CreateBackendSetDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a backend set. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateBackendSetResponse wrapper for the CreateBackendSet operation +type CreateBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_certificate_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_certificate_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go index b9246c7127..7312751000 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_certificate_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateCertificateDetails The configuration details for adding a certificate bundle to a listener. @@ -66,3 +68,15 @@ type CreateCertificateDetails struct { func (m CreateCertificateDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCertificateDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_certificate_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_certificate_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go index cad5dd7d9c..b3c31cc42c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_certificate_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_certificate_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateCertificateRequest wrapper for the CreateCertificate operation @@ -30,9 +32,11 @@ type CreateCertificateRequest struct { OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -48,6 +52,10 @@ func (request CreateCertificateRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateCertificateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +71,17 @@ func (request CreateCertificateRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCertificateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateCertificateResponse wrapper for the CreateCertificate operation type CreateCertificateResponse struct { @@ -72,18 +91,9 @@ type CreateCertificateResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool } func (response CreateCertificateResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_details.go new file mode 100644 index 0000000000..b11fe2a656 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateCidrBlocksDetails The configuration details of the CidrBlocks. +// CidrBlocks contains a name and list of CIDR block. Each of the CidrBlocks should have unique name +// within the load balancer. CidrBlocks resource name can be used in rule conditions. +// Example: +// "name" : `ClientRealIpCidrBlocks` +// "items" : `["129.213.176.0/24","150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]` +// **Warning:** No confidential information should be passed in this API. +type CreateCidrBlocksDetails struct { + + // A friendly name for the CidrBlocks. + // Example: `SourceIpCidrBlocks` + Name *string `mandatory:"true" json:"name"` + + // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. + // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' + Items []string `mandatory:"true" json:"items"` +} + +func (m CreateCidrBlocksDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateCidrBlocksDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_request_response.go new file mode 100644 index 0000000000..41250ac163 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_cidr_blocks_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateCidrBlocksRequest wrapper for the CreateCidrBlocks operation +type CreateCidrBlocksRequest struct { + + // The details of the CidrBlocks to add. + CreateCidrBlocksDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add the CidrBlocks + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateCidrBlocksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateCidrBlocksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateCidrBlocksResponse wrapper for the CreateCidrBlocks operation +type CreateCidrBlocksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateCidrBlocksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateCidrBlocksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_details.go new file mode 100644 index 0000000000..369ab30147 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateHostnameDetails The details of the hostname resource to add to a load balancer. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateHostnameDetails struct { + + // A friendly name for the hostname resource. It must be unique and it cannot be changed. Avoid entering confidential + // information. + // Example: `example_hostname_001` + Name *string `mandatory:"true" json:"name"` + + // A virtual hostname. For more information about virtual hostname string construction, see + // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). + // Example: `app.example.com` + Hostname *string `mandatory:"true" json:"hostname"` +} + +func (m CreateHostnameDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateHostnameDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go index e8f101cdac..408ec25017 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_hostname_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_hostname_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateHostnameRequest wrapper for the CreateHostname operation @@ -23,9 +25,11 @@ type CreateHostnameRequest struct { OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -48,6 +52,10 @@ func (request CreateHostnameRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +71,17 @@ func (request CreateHostnameRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateHostnameRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateHostnameResponse wrapper for the CreateHostname operation type CreateHostnameResponse struct { @@ -72,8 +91,8 @@ type CreateHostnameResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go new file mode 100644 index 0000000000..67244885ee --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateListenerDetails The configuration details for adding a listener to a backend set. +// For more information on listener configuration, see +// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateListenerDetails struct { + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // A friendly name for the listener. It must be unique and it cannot be changed. + // Avoid entering confidential information. + // Example: `example_listener` + Name *string `mandatory:"true" json:"name"` + + // An array of hostname resource names. + HostnameNames []string `mandatory:"false" json:"hostnameNames"` + + // Deprecated. Please use `routingPolicies` instead. + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `example_path_route_set` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` + + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The name of the routing policy applied to this listener's traffic. + // Example: `example_routing_policy` + RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` + + // The names of the RuleSet to apply to the listener. + // Example: ["example_rule_set"] + RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` +} + +func (m CreateListenerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateListenerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_request_response.go new file mode 100644 index 0000000000..5f32c14474 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_listener_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateListenerRequest wrapper for the CreateListener operation +type CreateListenerRequest struct { + + // Details to add a listener. + CreateListenerDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer on which to add a listener. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateListenerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateListenerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateListenerResponse wrapper for the CreateListener operation +type CreateListenerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateListenerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateListenerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_load_balancer_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go index 30a5facc5a..29983bf0b4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateLoadBalancerDetails The configuration details for creating a load balancer. @@ -29,7 +31,9 @@ type CreateLoadBalancerDetails struct { // A template that determines the total pre-provisioned bandwidth (ingress plus egress). // To get a list of available shapes, use the ListShapes // operation. - // Example: `100Mbps` + // Example: `flexible` + // NOTE: Starting May 2023, Fixed shapes - 10Mbps, 100Mbps, 400Mbps, 8000Mbps would be deprecated and only shape + // allowed would be `Flexible` ShapeName *string `mandatory:"true" json:"shapeName"` // An array of subnet OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm). @@ -96,6 +100,21 @@ func (m CreateLoadBalancerDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateLoadBalancerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingCreateLoadBalancerDetailsIpModeEnum(string(m.IpMode)); !ok && m.IpMode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpMode: %s. Supported values are: %s.", m.IpMode, strings.Join(GetCreateLoadBalancerDetailsIpModeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateLoadBalancerDetailsIpModeEnum Enum with underlying type: string type CreateLoadBalancerDetailsIpModeEnum string @@ -105,16 +124,35 @@ const ( CreateLoadBalancerDetailsIpModeIpv6 CreateLoadBalancerDetailsIpModeEnum = "IPV6" ) -var mappingCreateLoadBalancerDetailsIpMode = map[string]CreateLoadBalancerDetailsIpModeEnum{ +var mappingCreateLoadBalancerDetailsIpModeEnum = map[string]CreateLoadBalancerDetailsIpModeEnum{ "IPV4": CreateLoadBalancerDetailsIpModeIpv4, "IPV6": CreateLoadBalancerDetailsIpModeIpv6, } +var mappingCreateLoadBalancerDetailsIpModeEnumLowerCase = map[string]CreateLoadBalancerDetailsIpModeEnum{ + "ipv4": CreateLoadBalancerDetailsIpModeIpv4, + "ipv6": CreateLoadBalancerDetailsIpModeIpv6, +} + // GetCreateLoadBalancerDetailsIpModeEnumValues Enumerates the set of values for CreateLoadBalancerDetailsIpModeEnum func GetCreateLoadBalancerDetailsIpModeEnumValues() []CreateLoadBalancerDetailsIpModeEnum { values := make([]CreateLoadBalancerDetailsIpModeEnum, 0) - for _, v := range mappingCreateLoadBalancerDetailsIpMode { + for _, v := range mappingCreateLoadBalancerDetailsIpModeEnum { values = append(values, v) } return values } + +// GetCreateLoadBalancerDetailsIpModeEnumStringValues Enumerates the set of values in String for CreateLoadBalancerDetailsIpModeEnum +func GetCreateLoadBalancerDetailsIpModeEnumStringValues() []string { + return []string{ + "IPV4", + "IPV6", + } +} + +// GetMappingCreateLoadBalancerDetailsIpModeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateLoadBalancerDetailsIpModeEnum(val string) (CreateLoadBalancerDetailsIpModeEnum, bool) { + enum, ok := mappingCreateLoadBalancerDetailsIpModeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go index 8b9005b87a..23f8d43e57 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateLoadBalancerRequest wrapper for the CreateLoadBalancer operation @@ -38,6 +40,10 @@ func (request CreateLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateLoadBalancerResponse wrapper for the CreateLoadBalancer operation type CreateLoadBalancerResponse struct { @@ -62,8 +79,8 @@ type CreateLoadBalancerResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_details.go new file mode 100644 index 0000000000..f3c166af3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreatePathRouteSetDetails A named set of path route rules to add to the load balancer. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreatePathRouteSetDetails struct { + + // The name for this set of path route rules. It must be unique and it cannot be changed. Avoid entering + // confidential information. + // Example: `example_path_route_set` + Name *string `mandatory:"true" json:"name"` + + // The set of path route rules. + PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` +} + +func (m CreatePathRouteSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreatePathRouteSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_request_response.go index 73992d6e7d..14b90ca9be 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_path_route_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_path_route_set_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreatePathRouteSetRequest wrapper for the CreatePathRouteSet operation @@ -30,9 +32,11 @@ type CreatePathRouteSetRequest struct { OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -48,6 +52,10 @@ func (request CreatePathRouteSetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreatePathRouteSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +71,17 @@ func (request CreatePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreatePathRouteSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreatePathRouteSetResponse wrapper for the CreatePathRouteSet operation type CreatePathRouteSetResponse struct { @@ -72,8 +91,8 @@ type CreatePathRouteSetResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_details.go new file mode 100644 index 0000000000..02b339abf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_details.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateRoutingPolicyDetails An ordered list of routing rules. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateRoutingPolicyDetails struct { + + // The name for this list of routing rules. It must be unique and it cannot be changed. Avoid entering + // confidential information. + // Example: `example_routing_rules` + Name *string `mandatory:"true" json:"name"` + + // The version of the language in which `condition` of `rules` are composed. + ConditionLanguageVersion CreateRoutingPolicyDetailsConditionLanguageVersionEnum `mandatory:"true" json:"conditionLanguageVersion"` + + // The list of routing rules. + Rules []RoutingRule `mandatory:"true" json:"rules"` +} + +func (m CreateRoutingPolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateRoutingPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingCreateRoutingPolicyDetailsConditionLanguageVersionEnum(string(m.ConditionLanguageVersion)); !ok && m.ConditionLanguageVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConditionLanguageVersion: %s. Supported values are: %s.", m.ConditionLanguageVersion, strings.Join(GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateRoutingPolicyDetailsConditionLanguageVersionEnum Enum with underlying type: string +type CreateRoutingPolicyDetailsConditionLanguageVersionEnum string + +// Set of constants representing the allowable values for CreateRoutingPolicyDetailsConditionLanguageVersionEnum +const ( + CreateRoutingPolicyDetailsConditionLanguageVersionV1 CreateRoutingPolicyDetailsConditionLanguageVersionEnum = "V1" +) + +var mappingCreateRoutingPolicyDetailsConditionLanguageVersionEnum = map[string]CreateRoutingPolicyDetailsConditionLanguageVersionEnum{ + "V1": CreateRoutingPolicyDetailsConditionLanguageVersionV1, +} + +var mappingCreateRoutingPolicyDetailsConditionLanguageVersionEnumLowerCase = map[string]CreateRoutingPolicyDetailsConditionLanguageVersionEnum{ + "v1": CreateRoutingPolicyDetailsConditionLanguageVersionV1, +} + +// GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumValues Enumerates the set of values for CreateRoutingPolicyDetailsConditionLanguageVersionEnum +func GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumValues() []CreateRoutingPolicyDetailsConditionLanguageVersionEnum { + values := make([]CreateRoutingPolicyDetailsConditionLanguageVersionEnum, 0) + for _, v := range mappingCreateRoutingPolicyDetailsConditionLanguageVersionEnum { + values = append(values, v) + } + return values +} + +// GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumStringValues Enumerates the set of values in String for CreateRoutingPolicyDetailsConditionLanguageVersionEnum +func GetCreateRoutingPolicyDetailsConditionLanguageVersionEnumStringValues() []string { + return []string{ + "V1", + } +} + +// GetMappingCreateRoutingPolicyDetailsConditionLanguageVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateRoutingPolicyDetailsConditionLanguageVersionEnum(val string) (CreateRoutingPolicyDetailsConditionLanguageVersionEnum, bool) { + enum, ok := mappingCreateRoutingPolicyDetailsConditionLanguageVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go index 3d33830a5b..094c1f7553 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_routing_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_routing_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateRoutingPolicyRequest wrapper for the CreateRoutingPolicy operation @@ -30,9 +32,11 @@ type CreateRoutingPolicyRequest struct { OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -48,6 +52,10 @@ func (request CreateRoutingPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateRoutingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +71,17 @@ func (request CreateRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateRoutingPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateRoutingPolicyResponse wrapper for the CreateRoutingPolicy operation type CreateRoutingPolicyResponse struct { @@ -72,8 +91,8 @@ type CreateRoutingPolicyResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go index 69cdaec782..e163e75426 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_rule_set_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateRuleSetDetails A named set of rules to add to the load balancer. @@ -31,6 +33,18 @@ func (m CreateRuleSetDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateRuleSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *CreateRuleSetDetails) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_request_response.go new file mode 100644 index 0000000000..a92408ed4d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_rule_set_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateRuleSetRequest wrapper for the CreateRuleSet operation +type CreateRuleSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The configuration details for the rule set to create. + CreateRuleSetDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateRuleSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateRuleSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateRuleSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateRuleSetResponse wrapper for the CreateRuleSet operation +type CreateRuleSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateRuleSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateRuleSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_s_s_l_cipher_suite_request_response.go new file mode 100644 index 0000000000..4c17fc636e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_s_s_l_cipher_suite_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateSSLCipherSuiteRequest wrapper for the CreateSSLCipherSuite operation +type CreateSSLCipherSuiteRequest struct { + + // The details of the SSL cipher suite to add. + CreateSslCipherSuiteDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateSSLCipherSuiteRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateSSLCipherSuiteResponse wrapper for the CreateSSLCipherSuite operation +type CreateSSLCipherSuiteResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateSSLCipherSuiteResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateSSLCipherSuiteResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_ssl_cipher_suite_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go similarity index 95% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_ssl_cipher_suite_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go index 120a453bef..0eb64ef912 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/create_ssl_cipher_suite_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/create_ssl_cipher_suite_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateSslCipherSuiteDetails The configuration details of an SSL cipher suite. @@ -289,3 +291,15 @@ type CreateSslCipherSuiteDetails struct { func (m CreateSslCipherSuiteDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateSslCipherSuiteDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_request_response.go new file mode 100644 index 0000000000..bcd58ba1ec --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteBackendRequest wrapper for the DeleteBackend operation +type DeleteBackendRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to remove. + // Example: `10.0.0.3:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteBackendResponse wrapper for the DeleteBackend operation +type DeleteBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_set_request_response.go new file mode 100644 index 0000000000..2f36c61efe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_backend_set_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteBackendSetRequest wrapper for the DeleteBackendSet operation +type DeleteBackendSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to delete. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteBackendSetResponse wrapper for the DeleteBackendSet operation +type DeleteBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_certificate_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_certificate_request_response.go new file mode 100644 index 0000000000..7e4de48ecb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_certificate_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteCertificateRequest wrapper for the DeleteCertificate operation +type DeleteCertificateRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundle + // to be deleted. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the certificate bundle to delete. + // Example: `example_certificate_bundle` + CertificateName *string `mandatory:"true" contributesTo:"path" name:"certificateName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteCertificateRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteCertificateRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteCertificateRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteCertificateRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCertificateRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteCertificateResponse wrapper for the DeleteCertificate operation +type DeleteCertificateResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteCertificateResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteCertificateResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_cidr_blocks_request_response.go new file mode 100644 index 0000000000..d28538da0b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_cidr_blocks_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteCidrBlocksRequest wrapper for the DeleteCidrBlocks operation +type DeleteCidrBlocksRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the CidrBlocks to delete. + // example: `ClientRealIpCidrBlocks` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteCidrBlocksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteCidrBlocksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteCidrBlocksResponse wrapper for the DeleteCidrBlocks operation +type DeleteCidrBlocksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteCidrBlocksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteCidrBlocksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_hostname_request_response.go new file mode 100644 index 0000000000..79334f210a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_hostname_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteHostnameRequest wrapper for the DeleteHostname operation +type DeleteHostnameRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostname to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the hostname resource to delete. + // Example: `example_hostname_001` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteHostnameRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteHostnameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteHostnameRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteHostnameRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteHostnameResponse wrapper for the DeleteHostname operation +type DeleteHostnameResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteHostnameResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteHostnameResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_listener_request_response.go new file mode 100644 index 0000000000..486ac4d82b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_listener_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteListenerRequest wrapper for the DeleteListener operation +type DeleteListenerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the listener to delete. + // Example: `example_listener` + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteListenerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteListenerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteListenerResponse wrapper for the DeleteListener operation +type DeleteListenerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteListenerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteListenerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_load_balancer_request_response.go new file mode 100644 index 0000000000..03c9f14847 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_load_balancer_request_response.go @@ -0,0 +1,96 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteLoadBalancerRequest wrapper for the DeleteLoadBalancer operation +type DeleteLoadBalancerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteLoadBalancerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteLoadBalancerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteLoadBalancerResponse wrapper for the DeleteLoadBalancer operation +type DeleteLoadBalancerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteLoadBalancerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteLoadBalancerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_path_route_set_request_response.go new file mode 100644 index 0000000000..b0aefecbb9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_path_route_set_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeletePathRouteSetRequest wrapper for the DeletePathRouteSet operation +type DeletePathRouteSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route set to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the path route set to delete. + // Example: `example_path_route_set` + PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeletePathRouteSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeletePathRouteSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeletePathRouteSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeletePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeletePathRouteSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeletePathRouteSetResponse wrapper for the DeletePathRouteSet operation +type DeletePathRouteSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeletePathRouteSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeletePathRouteSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_routing_policy_request_response.go new file mode 100644 index 0000000000..c69f957a57 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_routing_policy_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteRoutingPolicyRequest wrapper for the DeleteRoutingPolicy operation +type DeleteRoutingPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policy to delete. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the routing policy to delete. + // Example: `example_routing_policy` + RoutingPolicyName *string `mandatory:"true" contributesTo:"path" name:"routingPolicyName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteRoutingPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteRoutingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteRoutingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteRoutingPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteRoutingPolicyResponse wrapper for the DeleteRoutingPolicy operation +type DeleteRoutingPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteRoutingPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteRoutingPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_rule_set_request_response.go new file mode 100644 index 0000000000..e6b49f9567 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_rule_set_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteRuleSetRequest wrapper for the DeleteRuleSet operation +type DeleteRuleSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the rule set to delete. + // Example: `example_rule_set` + RuleSetName *string `mandatory:"true" contributesTo:"path" name:"ruleSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteRuleSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteRuleSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteRuleSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteRuleSetResponse wrapper for the DeleteRuleSet operation +type DeleteRuleSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteRuleSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteRuleSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_s_s_l_cipher_suite_request_response.go new file mode 100644 index 0000000000..473dfeb834 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/delete_s_s_l_cipher_suite_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteSSLCipherSuiteRequest wrapper for the DeleteSSLCipherSuite operation +type DeleteSSLCipherSuiteRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the SSL cipher suite to delete. + // example: `example_cipher_suite` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteSSLCipherSuiteRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteSSLCipherSuiteResponse wrapper for the DeleteSSLCipherSuite operation +type DeleteSSLCipherSuiteResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteSSLCipherSuiteResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteSSLCipherSuiteResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/extend_http_request_header_value_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/extend_http_request_header_value_rule.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/extend_http_request_header_value_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/extend_http_request_header_value_rule.go index c19ffc17e5..f0cf09eabd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/extend_http_request_header_value_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/extend_http_request_header_value_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ExtendHttpRequestHeaderValueRule An object that represents the action of modifying a request header value. This rule applies only to HTTP listeners. @@ -49,6 +51,18 @@ func (m ExtendHttpRequestHeaderValueRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExtendHttpRequestHeaderValueRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m ExtendHttpRequestHeaderValueRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeExtendHttpRequestHeaderValueRule ExtendHttpRequestHeaderValueRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/extend_http_response_header_value_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/extend_http_response_header_value_rule.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/extend_http_response_header_value_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/extend_http_response_header_value_rule.go index 3f26da13ac..131356d421 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/extend_http_response_header_value_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/extend_http_response_header_value_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ExtendHttpResponseHeaderValueRule An object that represents the action of modifying a response header value. This rule applies only to HTTP listeners. @@ -49,6 +51,18 @@ func (m ExtendHttpResponseHeaderValueRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ExtendHttpResponseHeaderValueRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m ExtendHttpResponseHeaderValueRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeExtendHttpResponseHeaderValueRule ExtendHttpResponseHeaderValueRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/forward_to_backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/forward_to_backend_set.go new file mode 100644 index 0000000000..34beabea1c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/forward_to_backend_set.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ForwardToBackendSet Action to forward requests to a given backend set. +type ForwardToBackendSet struct { + + // Name of the backend set the listener will forward the traffic to. + // Example: `backendSetForImages` + BackendSetName *string `mandatory:"true" json:"backendSetName"` +} + +func (m ForwardToBackendSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ForwardToBackendSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m ForwardToBackendSet) MarshalJSON() (buff []byte, e error) { + type MarshalTypeForwardToBackendSet ForwardToBackendSet + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeForwardToBackendSet + }{ + "FORWARD_TO_BACKENDSET", + (MarshalTypeForwardToBackendSet)(m), + } + + return json.Marshal(&s) +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_health_request_response.go new file mode 100644 index 0000000000..89f7477440 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_health_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendHealthRequest wrapper for the GetBackendHealth operation +type GetBackendHealthRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend server to retrieve the health status for. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to retrieve the health status for. + // Example: `10.0.0.3:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendHealthRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendHealthRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendHealthRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendHealthResponse wrapper for the GetBackendHealth operation +type GetBackendHealthResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendHealth instance + BackendHealth `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendHealthResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendHealthResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_request_response.go new file mode 100644 index 0000000000..19e975ee79 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendRequest wrapper for the GetBackend operation +type GetBackendRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set that includes the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to retrieve. + // Example: `10.0.0.3:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendResponse wrapper for the GetBackend operation +type GetBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Backend instance + Backend `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_health_request_response.go new file mode 100644 index 0000000000..53ae6c1bd7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_health_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendSetHealthRequest wrapper for the GetBackendSetHealth operation +type GetBackendSetHealthRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set health status to be retrieved. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to retrieve the health status for. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendSetHealthRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendSetHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendSetHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendSetHealthRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendSetHealthRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendSetHealthResponse wrapper for the GetBackendSetHealth operation +type GetBackendSetHealthResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendSetHealth instance + BackendSetHealth `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendSetHealthResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendSetHealthResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_request_response.go new file mode 100644 index 0000000000..629aae7e2c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_backend_set_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendSetRequest wrapper for the GetBackendSet operation +type GetBackendSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to retrieve. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendSetResponse wrapper for the GetBackendSet operation +type GetBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendSet instance + BackendSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_cidr_blocks_request_response.go new file mode 100644 index 0000000000..529f2227d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_cidr_blocks_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetCidrBlocksRequest wrapper for the GetCidrBlocks operation +type GetCidrBlocksRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the CidrBlocks. + // example: `ClientRealIpCidrBlocks` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetCidrBlocksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetCidrBlocksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetCidrBlocksResponse wrapper for the GetCidrBlocks operation +type GetCidrBlocksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The CidrBlocks instance + CidrBlocks `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetCidrBlocksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetCidrBlocksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_health_checker_request_response.go new file mode 100644 index 0000000000..8dba15a24b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_health_checker_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetHealthCheckerRequest wrapper for the GetHealthChecker operation +type GetHealthCheckerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be retrieved. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the health check policy to be retrieved. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetHealthCheckerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetHealthCheckerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetHealthCheckerResponse wrapper for the GetHealthChecker operation +type GetHealthCheckerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The HealthChecker instance + HealthChecker `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetHealthCheckerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetHealthCheckerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_hostname_request_response.go new file mode 100644 index 0000000000..ee95f369db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_hostname_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetHostnameRequest wrapper for the GetHostname operation +type GetHostnameRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the hostname resource to retrieve. + // Example: `example_hostname_001` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetHostnameRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetHostnameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetHostnameRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetHostnameRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetHostnameResponse wrapper for the GetHostname operation +type GetHostnameResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Hostname instance + Hostname `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetHostnameResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetHostnameResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_health_request_response.go new file mode 100644 index 0000000000..8ed4d58023 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_health_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetLoadBalancerHealthRequest wrapper for the GetLoadBalancerHealth operation +type GetLoadBalancerHealthRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetLoadBalancerHealthRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetLoadBalancerHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetLoadBalancerHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetLoadBalancerHealthRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLoadBalancerHealthRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetLoadBalancerHealthResponse wrapper for the GetLoadBalancerHealth operation +type GetLoadBalancerHealthResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LoadBalancerHealth instance + LoadBalancerHealth `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetLoadBalancerHealthResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetLoadBalancerHealthResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_request_response.go new file mode 100644 index 0000000000..bc19b6eaa2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_load_balancer_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetLoadBalancerRequest wrapper for the GetLoadBalancer operation +type GetLoadBalancerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetLoadBalancerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetLoadBalancerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetLoadBalancerResponse wrapper for the GetLoadBalancer operation +type GetLoadBalancerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LoadBalancer instance + LoadBalancer `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetLoadBalancerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetLoadBalancerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_path_route_set_request_response.go new file mode 100644 index 0000000000..ac868ec6ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_path_route_set_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetPathRouteSetRequest wrapper for the GetPathRouteSet operation +type GetPathRouteSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the path route set to retrieve. + // Example: `example_path_route_set` + PathRouteSetName *string `mandatory:"true" contributesTo:"path" name:"pathRouteSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetPathRouteSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetPathRouteSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetPathRouteSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetPathRouteSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetPathRouteSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetPathRouteSetResponse wrapper for the GetPathRouteSet operation +type GetPathRouteSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The PathRouteSet instance + PathRouteSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetPathRouteSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetPathRouteSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_routing_policy_request_response.go new file mode 100644 index 0000000000..2b4f6606d0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_routing_policy_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRoutingPolicyRequest wrapper for the GetRoutingPolicy operation +type GetRoutingPolicyRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the routing policy to retrieve. + // Example: `example_routing_policy` + RoutingPolicyName *string `mandatory:"true" contributesTo:"path" name:"routingPolicyName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetRoutingPolicyRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRoutingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetRoutingPolicyRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetRoutingPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRoutingPolicyResponse wrapper for the GetRoutingPolicy operation +type GetRoutingPolicyResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RoutingPolicy instance + RoutingPolicy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetRoutingPolicyResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRoutingPolicyResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_rule_set_request_response.go new file mode 100644 index 0000000000..546c3bb459 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_rule_set_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetRuleSetRequest wrapper for the GetRuleSet operation +type GetRuleSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the rule set to retrieve. + // Example: `example_rule_set` + RuleSetName *string `mandatory:"true" contributesTo:"path" name:"ruleSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetRuleSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetRuleSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetRuleSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetRuleSetResponse wrapper for the GetRuleSet operation +type GetRuleSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The RuleSet instance + RuleSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetRuleSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetRuleSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_s_s_l_cipher_suite_request_response.go new file mode 100644 index 0000000000..4fe4ee791b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_s_s_l_cipher_suite_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetSSLCipherSuiteRequest wrapper for the GetSSLCipherSuite operation +type GetSSLCipherSuiteRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the SSL cipher suite to retrieve. + // example: `example_cipher_suite` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetSSLCipherSuiteRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetSSLCipherSuiteResponse wrapper for the GetSSLCipherSuite operation +type GetSSLCipherSuiteResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The SslCipherSuite instance + SslCipherSuite `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response GetSSLCipherSuiteResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetSSLCipherSuiteResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_work_request_request_response.go new file mode 100644 index 0000000000..7475037cd7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/get_work_request_request_response.go @@ -0,0 +1,87 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +type GetWorkRequestRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request to retrieve. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetWorkRequestResponse wrapper for the GetWorkRequest operation +type GetWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The WorkRequest instance + WorkRequest `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_check_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_check_result.go new file mode 100644 index 0000000000..b0f7fb0965 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_check_result.go @@ -0,0 +1,121 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HealthCheckResult Information about a single backend server health check result reported by a load balancer. +type HealthCheckResult struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the subnet hosting the load balancer that reported this health check status. + SubnetId *string `mandatory:"true" json:"subnetId"` + + // The IP address of the health check status report provider. This identifier helps you differentiate same-subnet + // load balancers that report health check status. + // Example: `10.0.0.7` + SourceIpAddress *string `mandatory:"true" json:"sourceIpAddress"` + + // The date and time the data was retrieved, in the format defined by RFC3339. + // Example: `2017-06-02T18:28:11+00:00` + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` + + // The result of the most recent health check. + HealthCheckStatus HealthCheckResultHealthCheckStatusEnum `mandatory:"true" json:"healthCheckStatus"` +} + +func (m HealthCheckResult) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HealthCheckResult) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHealthCheckResultHealthCheckStatusEnum(string(m.HealthCheckStatus)); !ok && m.HealthCheckStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for HealthCheckStatus: %s. Supported values are: %s.", m.HealthCheckStatus, strings.Join(GetHealthCheckResultHealthCheckStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// HealthCheckResultHealthCheckStatusEnum Enum with underlying type: string +type HealthCheckResultHealthCheckStatusEnum string + +// Set of constants representing the allowable values for HealthCheckResultHealthCheckStatusEnum +const ( + HealthCheckResultHealthCheckStatusOk HealthCheckResultHealthCheckStatusEnum = "OK" + HealthCheckResultHealthCheckStatusInvalidStatusCode HealthCheckResultHealthCheckStatusEnum = "INVALID_STATUS_CODE" + HealthCheckResultHealthCheckStatusTimedOut HealthCheckResultHealthCheckStatusEnum = "TIMED_OUT" + HealthCheckResultHealthCheckStatusRegexMismatch HealthCheckResultHealthCheckStatusEnum = "REGEX_MISMATCH" + HealthCheckResultHealthCheckStatusConnectFailed HealthCheckResultHealthCheckStatusEnum = "CONNECT_FAILED" + HealthCheckResultHealthCheckStatusIoError HealthCheckResultHealthCheckStatusEnum = "IO_ERROR" + HealthCheckResultHealthCheckStatusOffline HealthCheckResultHealthCheckStatusEnum = "OFFLINE" + HealthCheckResultHealthCheckStatusUnknown HealthCheckResultHealthCheckStatusEnum = "UNKNOWN" +) + +var mappingHealthCheckResultHealthCheckStatusEnum = map[string]HealthCheckResultHealthCheckStatusEnum{ + "OK": HealthCheckResultHealthCheckStatusOk, + "INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode, + "TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut, + "REGEX_MISMATCH": HealthCheckResultHealthCheckStatusRegexMismatch, + "CONNECT_FAILED": HealthCheckResultHealthCheckStatusConnectFailed, + "IO_ERROR": HealthCheckResultHealthCheckStatusIoError, + "OFFLINE": HealthCheckResultHealthCheckStatusOffline, + "UNKNOWN": HealthCheckResultHealthCheckStatusUnknown, +} + +var mappingHealthCheckResultHealthCheckStatusEnumLowerCase = map[string]HealthCheckResultHealthCheckStatusEnum{ + "ok": HealthCheckResultHealthCheckStatusOk, + "invalid_status_code": HealthCheckResultHealthCheckStatusInvalidStatusCode, + "timed_out": HealthCheckResultHealthCheckStatusTimedOut, + "regex_mismatch": HealthCheckResultHealthCheckStatusRegexMismatch, + "connect_failed": HealthCheckResultHealthCheckStatusConnectFailed, + "io_error": HealthCheckResultHealthCheckStatusIoError, + "offline": HealthCheckResultHealthCheckStatusOffline, + "unknown": HealthCheckResultHealthCheckStatusUnknown, +} + +// GetHealthCheckResultHealthCheckStatusEnumValues Enumerates the set of values for HealthCheckResultHealthCheckStatusEnum +func GetHealthCheckResultHealthCheckStatusEnumValues() []HealthCheckResultHealthCheckStatusEnum { + values := make([]HealthCheckResultHealthCheckStatusEnum, 0) + for _, v := range mappingHealthCheckResultHealthCheckStatusEnum { + values = append(values, v) + } + return values +} + +// GetHealthCheckResultHealthCheckStatusEnumStringValues Enumerates the set of values in String for HealthCheckResultHealthCheckStatusEnum +func GetHealthCheckResultHealthCheckStatusEnumStringValues() []string { + return []string{ + "OK", + "INVALID_STATUS_CODE", + "TIMED_OUT", + "REGEX_MISMATCH", + "CONNECT_FAILED", + "IO_ERROR", + "OFFLINE", + "UNKNOWN", + } +} + +// GetMappingHealthCheckResultHealthCheckStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHealthCheckResultHealthCheckStatusEnum(val string) (HealthCheckResultHealthCheckStatusEnum, bool) { + enum, ok := mappingHealthCheckResultHealthCheckStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker.go new file mode 100644 index 0000000000..8a300f4cdc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HealthChecker The health check policy configuration. +// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). +type HealthChecker struct { + + // The protocol the health check must use; either HTTP or TCP. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the + // port information from the `Backend` object. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, + // you can use common HTTP status codes such as "200". + // Example: `200` + ReturnCode *int `mandatory:"true" json:"returnCode"` + + // A regular expression for parsing the response body from the backend server. + // Example: `^((?!false).|\s)*$` + ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` + + // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies + // when recovering a server to the "healthy" state. Defaults to 3. + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. Defaults to 3000 (3 seconds). + // Example: `3000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The interval between health checks, in milliseconds. The default is 10000 (10 seconds). + // Example: `10000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + + // Whether SSL Encryption is used for the Health Check. + // If "true", health checks will not use SSL Encryption even if the associated backend set is configured to use SSL Encryption. + // If "false", health checks will use SSL Encryption if the associated backend set is configured to use SSL Encryption, otherwise not. + // Example: `false` + IsDisableSslEncryption *bool `mandatory:"false" json:"isDisableSslEncryption"` +} + +func (m HealthChecker) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HealthChecker) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker_details.go new file mode 100644 index 0000000000..5adfe1905e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/health_checker_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HealthCheckerDetails The health check policy's configuration details. +type HealthCheckerDetails struct { + + // The protocol the health check must use; either HTTP or TCP. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` + + // The backend server port against which to run the health check. If the port is not specified, the load balancer uses the + // port information from the `Backend` object. + // Example: `8080` + Port *int `mandatory:"false" json:"port"` + + // The status code a healthy backend server should return. + // Example: `200` + ReturnCode *int `mandatory:"false" json:"returnCode"` + + // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies + // when recovering a server to the "healthy" state. + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. + // Example: `3000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The interval between health checks, in milliseconds. + // Example: `10000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + + // A regular expression for parsing the response body from the backend server. + // Example: `^((?!false).|\s)*$` + ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` + + // Whether SSL Encryption is used for the Health Check. + // If "true", health checks will not use SSL Encryption even if the associated backend set is configured to use SSL Encryption. + // If "false", health checks will use SSL Encryption if the associated backend set is configured to use SSL Encryption, otherwise not. + // Example: `false` + IsDisableSslEncryption *bool `mandatory:"false" json:"isDisableSslEncryption"` +} + +func (m HealthCheckerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HealthCheckerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname.go new file mode 100644 index 0000000000..231a9b1226 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Hostname A hostname resource associated with a load balancer for use by one or more listeners. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type Hostname struct { + + // A friendly name for the hostname resource. It must be unique and it cannot be changed. Avoid entering confidential + // information. + // Example: `example_hostname_001` + Name *string `mandatory:"true" json:"name"` + + // A virtual hostname. For more information about virtual hostname string construction, see + // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). + // Example: `app.example.com` + Hostname *string `mandatory:"true" json:"hostname"` +} + +func (m Hostname) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Hostname) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname_details.go new file mode 100644 index 0000000000..cbc313c03e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/hostname_details.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HostnameDetails The details of a hostname resource associated with a load balancer. +type HostnameDetails struct { + + // The name of the hostname resource. + // Example: `example_hostname_001` + Name *string `mandatory:"true" json:"name"` + + // A virtual hostname. For more information about virtual hostname string construction, see + // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). + // Example: `app.example.com` + Hostname *string `mandatory:"true" json:"hostname"` +} + +func (m HostnameDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HostnameDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/http_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/http_header_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go index 53926f79fa..3da655a076 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/http_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/http_header_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // HttpHeaderRule An object that represents the advance http header options that allow the setting of http header size and allow/disallow @@ -38,6 +40,18 @@ func (m HttpHeaderRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HttpHeaderRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m HttpHeaderRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeHttpHeaderRule HttpHeaderRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_address.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_address.go new file mode 100644 index 0000000000..d281deafc8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ip_address.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpAddress A load balancer IP address. +type IpAddress struct { + + // An IP address. + // Example: `192.168.0.3` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // Whether the IP address is public or private. + // If "true", the IP address is public and accessible from the internet. + // If "false", the IP address is private and accessible only from within the associated VCN. + IsPublic *bool `mandatory:"false" json:"isPublic"` + + ReservedIp *ReservedIp `mandatory:"false" json:"reservedIp"` +} + +func (m IpAddress) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpAddress) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/lb_cookie_session_persistence_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/lb_cookie_session_persistence_configuration_details.go similarity index 93% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/lb_cookie_session_persistence_configuration_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/lb_cookie_session_persistence_configuration_details.go index f1227e9224..53dda0510c 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/lb_cookie_session_persistence_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/lb_cookie_session_persistence_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // LbCookieSessionPersistenceConfigurationDetails The configuration details for implementing load balancer cookie session persistence (LB cookie stickiness). @@ -107,3 +109,15 @@ type LbCookieSessionPersistenceConfigurationDetails struct { func (m LbCookieSessionPersistenceConfigurationDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LbCookieSessionPersistenceConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backend_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backend_sets_request_response.go new file mode 100644 index 0000000000..a52e3383cb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backend_sets_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBackendSetsRequest wrapper for the ListBackendSets operation +type ListBackendSetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend sets to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBackendSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBackendSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBackendSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBackendSetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBackendSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBackendSetsResponse wrapper for the ListBackendSets operation +type ListBackendSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []BackendSet instance + Items []BackendSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListBackendSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBackendSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backends_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backends_request_response.go new file mode 100644 index 0000000000..98b0bda76d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_backends_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBackendsRequest wrapper for the ListBackends operation +type ListBackendsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and servers. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend servers. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBackendsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBackendsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBackendsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBackendsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBackendsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBackendsResponse wrapper for the ListBackends operation +type ListBackendsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []Backend instance + Items []Backend `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListBackendsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBackendsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_certificates_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_certificates_request_response.go new file mode 100644 index 0000000000..0a259650e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_certificates_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCertificatesRequest wrapper for the ListCertificates operation +type ListCertificatesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the certificate bundles + // to be listed. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCertificatesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCertificatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCertificatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCertificatesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCertificatesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCertificatesResponse wrapper for the ListCertificates operation +type ListCertificatesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []Certificate instance + Items []Certificate `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListCertificatesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCertificatesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_cidr_blocks_request_response.go new file mode 100644 index 0000000000..2541270ab7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_cidr_blocks_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListCidrBlocksRequest wrapper for the ListCidrBlocks operation +type ListCidrBlocksRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the CidrBlocks + // to be listed. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListCidrBlocksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListCidrBlocksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListCidrBlocksResponse wrapper for the ListCidrBlocks operation +type ListCidrBlocksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []CidrBlocks instance + Items []CidrBlocks `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListCidrBlocksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListCidrBlocksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_hostnames_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_hostnames_request_response.go new file mode 100644 index 0000000000..a1f1e54790 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_hostnames_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListHostnamesRequest wrapper for the ListHostnames operation +type ListHostnamesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the hostnames + // to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListHostnamesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListHostnamesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListHostnamesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListHostnamesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListHostnamesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListHostnamesResponse wrapper for the ListHostnames operation +type ListHostnamesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []Hostname instance + Items []Hostname `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListHostnamesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListHostnamesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_listener_rules_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_listener_rules_request_response.go new file mode 100644 index 0000000000..9b344c1d98 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_listener_rules_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListListenerRulesRequest wrapper for the ListListenerRules operation +type ListListenerRulesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the listener the rules are associated with. + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListListenerRulesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListListenerRulesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListListenerRulesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListListenerRulesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListListenerRulesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListListenerRulesResponse wrapper for the ListListenerRules operation +type ListListenerRulesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []ListenerRuleSummary instance + Items []ListenerRuleSummary `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListListenerRulesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListListenerRulesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancer_healths_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancer_healths_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancer_healths_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancer_healths_request_response.go index 9ef190032f..9b37320e90 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_load_balancer_healths_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancer_healths_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListLoadBalancerHealthsRequest wrapper for the ListLoadBalancerHealths operation @@ -41,6 +43,10 @@ func (request ListLoadBalancerHealthsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListLoadBalancerHealthsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ListLoadBalancerHealthsRequest) RetryPolicy() *common.RetryPolicy return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLoadBalancerHealthsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListLoadBalancerHealthsResponse wrapper for the ListLoadBalancerHealths operation type ListLoadBalancerHealthsResponse struct { @@ -65,12 +82,13 @@ type ListLoadBalancerHealthsResponse struct { // A list of []LoadBalancerHealthSummary instances Items []LoadBalancerHealthSummary `presentIn:"body"` - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancers_request_response.go new file mode 100644 index 0000000000..4f19eb1e31 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_load_balancers_request_response.go @@ -0,0 +1,214 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListLoadBalancersRequest wrapper for the ListLoadBalancers operation +type ListLoadBalancersRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The level of detail to return for each result. Can be `full` or `simple`. + // Example: `full` + Detail *string `mandatory:"false" contributesTo:"query" name:"detail"` + + // The field to sort by. You can provide one sort order (`sortOrder`). Default order for TIMECREATED is descending. + // Default order for DISPLAYNAME is ascending. The DISPLAYNAME sort order is case sensitive. + SortBy ListLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use, either ascending (`ASC`) or descending (`DESC`). The DISPLAYNAME sort order is case sensitive. + SortOrder ListLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // A filter to return only resources that match the given display name exactly. + // Example: `example_load_balancer` + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only resources that match the given lifecycle state. + // Example: `SUCCEEDED` + LifecycleState LoadBalancerLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListLoadBalancersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListLoadBalancersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListLoadBalancersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListLoadBalancersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLoadBalancersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListLoadBalancersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListLoadBalancersSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListLoadBalancersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListLoadBalancersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingLoadBalancerLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetLoadBalancerLifecycleStateEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListLoadBalancersResponse wrapper for the ListLoadBalancers operation +type ListLoadBalancersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []LoadBalancer instances + Items []LoadBalancer `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListLoadBalancersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListLoadBalancersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListLoadBalancersSortByEnum Enum with underlying type: string +type ListLoadBalancersSortByEnum string + +// Set of constants representing the allowable values for ListLoadBalancersSortByEnum +const ( + ListLoadBalancersSortByTimecreated ListLoadBalancersSortByEnum = "TIMECREATED" + ListLoadBalancersSortByDisplayname ListLoadBalancersSortByEnum = "DISPLAYNAME" +) + +var mappingListLoadBalancersSortByEnum = map[string]ListLoadBalancersSortByEnum{ + "TIMECREATED": ListLoadBalancersSortByTimecreated, + "DISPLAYNAME": ListLoadBalancersSortByDisplayname, +} + +var mappingListLoadBalancersSortByEnumLowerCase = map[string]ListLoadBalancersSortByEnum{ + "timecreated": ListLoadBalancersSortByTimecreated, + "displayname": ListLoadBalancersSortByDisplayname, +} + +// GetListLoadBalancersSortByEnumValues Enumerates the set of values for ListLoadBalancersSortByEnum +func GetListLoadBalancersSortByEnumValues() []ListLoadBalancersSortByEnum { + values := make([]ListLoadBalancersSortByEnum, 0) + for _, v := range mappingListLoadBalancersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListLoadBalancersSortByEnumStringValues Enumerates the set of values in String for ListLoadBalancersSortByEnum +func GetListLoadBalancersSortByEnumStringValues() []string { + return []string{ + "TIMECREATED", + "DISPLAYNAME", + } +} + +// GetMappingListLoadBalancersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLoadBalancersSortByEnum(val string) (ListLoadBalancersSortByEnum, bool) { + enum, ok := mappingListLoadBalancersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListLoadBalancersSortOrderEnum Enum with underlying type: string +type ListLoadBalancersSortOrderEnum string + +// Set of constants representing the allowable values for ListLoadBalancersSortOrderEnum +const ( + ListLoadBalancersSortOrderAsc ListLoadBalancersSortOrderEnum = "ASC" + ListLoadBalancersSortOrderDesc ListLoadBalancersSortOrderEnum = "DESC" +) + +var mappingListLoadBalancersSortOrderEnum = map[string]ListLoadBalancersSortOrderEnum{ + "ASC": ListLoadBalancersSortOrderAsc, + "DESC": ListLoadBalancersSortOrderDesc, +} + +var mappingListLoadBalancersSortOrderEnumLowerCase = map[string]ListLoadBalancersSortOrderEnum{ + "asc": ListLoadBalancersSortOrderAsc, + "desc": ListLoadBalancersSortOrderDesc, +} + +// GetListLoadBalancersSortOrderEnumValues Enumerates the set of values for ListLoadBalancersSortOrderEnum +func GetListLoadBalancersSortOrderEnumValues() []ListLoadBalancersSortOrderEnum { + values := make([]ListLoadBalancersSortOrderEnum, 0) + for _, v := range mappingListLoadBalancersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListLoadBalancersSortOrderEnumStringValues Enumerates the set of values in String for ListLoadBalancersSortOrderEnum +func GetListLoadBalancersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListLoadBalancersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLoadBalancersSortOrderEnum(val string) (ListLoadBalancersSortOrderEnum, bool) { + enum, ok := mappingListLoadBalancersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_path_route_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_path_route_sets_request_response.go new file mode 100644 index 0000000000..b13da64746 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_path_route_sets_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPathRouteSetsRequest wrapper for the ListPathRouteSets operation +type ListPathRouteSetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the path route sets + // to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPathRouteSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPathRouteSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPathRouteSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPathRouteSetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPathRouteSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPathRouteSetsResponse wrapper for the ListPathRouteSets operation +type ListPathRouteSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []PathRouteSet instance + Items []PathRouteSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListPathRouteSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPathRouteSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_policies_request_response.go new file mode 100644 index 0000000000..451b2b2e9a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_policies_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListPoliciesRequest wrapper for the ListPolicies operation +type ListPoliciesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer policies to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListPoliciesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListPoliciesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListPoliciesResponse wrapper for the ListPolicies operation +type ListPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []LoadBalancerPolicy instances + Items []LoadBalancerPolicy `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListPoliciesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListPoliciesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_protocols_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_protocols_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go index 6670b139b0..83198bbbfc 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/list_protocols_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_protocols_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListProtocolsRequest wrapper for the ListProtocols operation @@ -41,6 +43,10 @@ func (request ListProtocolsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListProtocolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request ListProtocolsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListProtocolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListProtocolsResponse wrapper for the ListProtocols operation type ListProtocolsResponse struct { @@ -65,12 +82,13 @@ type ListProtocolsResponse struct { // A list of []LoadBalancerProtocol instances Items []LoadBalancerProtocol `presentIn:"body"` - // For list pagination. When this header appears in the response, additional pages of results remain. - // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). OpcNextPage *string `presentIn:"header" name:"opc-next-page"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_routing_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_routing_policies_request_response.go new file mode 100644 index 0000000000..b1d8cc2fa1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_routing_policies_request_response.go @@ -0,0 +1,117 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListRoutingPoliciesRequest wrapper for the ListRoutingPolicies operation +type ListRoutingPoliciesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the routing policies. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListRoutingPoliciesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListRoutingPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListRoutingPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListRoutingPoliciesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListRoutingPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListRoutingPoliciesResponse wrapper for the ListRoutingPolicies operation +type ListRoutingPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []RoutingPolicy instances + Items []RoutingPolicy `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListRoutingPoliciesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListRoutingPoliciesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_rule_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_rule_sets_request_response.go new file mode 100644 index 0000000000..beef380965 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_rule_sets_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListRuleSetsRequest wrapper for the ListRuleSets operation +type ListRuleSetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListRuleSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListRuleSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListRuleSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListRuleSetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListRuleSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListRuleSetsResponse wrapper for the ListRuleSets operation +type ListRuleSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []RuleSet instance + Items []RuleSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListRuleSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListRuleSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_s_s_l_cipher_suites_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_s_s_l_cipher_suites_request_response.go new file mode 100644 index 0000000000..5b9c151bda --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_s_s_l_cipher_suites_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListSSLCipherSuitesRequest wrapper for the ListSSLCipherSuites operation +type ListSSLCipherSuitesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListSSLCipherSuitesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListSSLCipherSuitesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListSSLCipherSuitesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListSSLCipherSuitesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListSSLCipherSuitesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListSSLCipherSuitesResponse wrapper for the ListSSLCipherSuites operation +type ListSSLCipherSuitesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The []SslCipherSuite instance + Items []SslCipherSuite `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Reflects the current version of the load balancer and the resources it contains. + // The value only changes when the load balancer or an associated resource is created, + // updated, or delete + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response ListSSLCipherSuitesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListSSLCipherSuitesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_shapes_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_shapes_request_response.go new file mode 100644 index 0000000000..129e4cd07f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_shapes_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListShapesRequest wrapper for the ListShapes operation +type ListShapesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer shapes to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListShapesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListShapesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListShapesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListShapesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListShapesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListShapesResponse wrapper for the ListShapes operation +type ListShapesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []LoadBalancerShape instances + Items []LoadBalancerShape `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListShapesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListShapesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_work_requests_request_response.go new file mode 100644 index 0000000000..81ac013e43 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/list_work_requests_request_response.go @@ -0,0 +1,102 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +type ListWorkRequestsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the work requests to retrieve. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `50` + Limit *int64 `mandatory:"false" contributesTo:"query" name:"limit"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Example: `3` + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestsResponse wrapper for the ListWorkRequests operation +type ListWorkRequestsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []WorkRequest instances + Items []WorkRequest `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages + // of results remain. For important details about how pagination works, see + // List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go new file mode 100644 index 0000000000..5df57055c1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Listener The listener's configuration. +// For more information on backend set configuration, see +// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +type Listener struct { + + // A friendly name for the listener. It must be unique and it cannot be changed. + // Example: `example_listener` + Name *string `mandatory:"true" json:"name"` + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // An array of hostname resource names. + HostnameNames []string `mandatory:"false" json:"hostnameNames"` + + // Deprecated. Please use `routingPolicies` instead. + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `example_path_route_set` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + + SslConfiguration *SslConfiguration `mandatory:"false" json:"sslConfiguration"` + + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The names of the RuleSet to apply to the listener. + // Example: ["example_rule_set"] + RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` + + // The name of the routing policy applied to this listener's traffic. + // Example: `example_routing_policy_name` + RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` +} + +func (m Listener) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Listener) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go new file mode 100644 index 0000000000..634da17517 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_details.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ListenerDetails The listener's configuration details. +type ListenerDetails struct { + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // An array of hostname resource names. + HostnameNames []string `mandatory:"false" json:"hostnameNames"` + + // Deprecated. Please use `routingPolicies` instead. + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `example_path_route_set` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` + + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The name of the routing policy applied to this listener's traffic. + // Example: `example_routing_policy` + RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` + + // The names of the RuleSet to apply to the listener. + // Example: ["example_rule_set"] + RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` +} + +func (m ListenerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ListenerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_rule_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_rule_summary.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go index 08ca6944a9..4a3725946f 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/listener_rule_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/listener_rule_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // ListenerRuleSummary The attributes of a rule associated with the specified listener, and the name of the rule set that the rule @@ -30,6 +32,18 @@ func (m ListenerRuleSummary) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ListenerRuleSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *ListenerRuleSummary) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go index b962e4768d..eb215ef158 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/load_balancer.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // LoadBalancer The properties that define a load balancer. For more information, see @@ -113,6 +115,21 @@ func (m LoadBalancer) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadBalancer) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLoadBalancerLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetLoadBalancerLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // LoadBalancerLifecycleStateEnum Enum with underlying type: string type LoadBalancerLifecycleStateEnum string @@ -125,7 +142,7 @@ const ( LoadBalancerLifecycleStateDeleted LoadBalancerLifecycleStateEnum = "DELETED" ) -var mappingLoadBalancerLifecycleState = map[string]LoadBalancerLifecycleStateEnum{ +var mappingLoadBalancerLifecycleStateEnum = map[string]LoadBalancerLifecycleStateEnum{ "CREATING": LoadBalancerLifecycleStateCreating, "FAILED": LoadBalancerLifecycleStateFailed, "ACTIVE": LoadBalancerLifecycleStateActive, @@ -133,11 +150,36 @@ var mappingLoadBalancerLifecycleState = map[string]LoadBalancerLifecycleStateEnu "DELETED": LoadBalancerLifecycleStateDeleted, } +var mappingLoadBalancerLifecycleStateEnumLowerCase = map[string]LoadBalancerLifecycleStateEnum{ + "creating": LoadBalancerLifecycleStateCreating, + "failed": LoadBalancerLifecycleStateFailed, + "active": LoadBalancerLifecycleStateActive, + "deleting": LoadBalancerLifecycleStateDeleting, + "deleted": LoadBalancerLifecycleStateDeleted, +} + // GetLoadBalancerLifecycleStateEnumValues Enumerates the set of values for LoadBalancerLifecycleStateEnum func GetLoadBalancerLifecycleStateEnumValues() []LoadBalancerLifecycleStateEnum { values := make([]LoadBalancerLifecycleStateEnum, 0) - for _, v := range mappingLoadBalancerLifecycleState { + for _, v := range mappingLoadBalancerLifecycleStateEnum { values = append(values, v) } return values } + +// GetLoadBalancerLifecycleStateEnumStringValues Enumerates the set of values in String for LoadBalancerLifecycleStateEnum +func GetLoadBalancerLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "FAILED", + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingLoadBalancerLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadBalancerLifecycleStateEnum(val string) (LoadBalancerLifecycleStateEnum, bool) { + enum, ok := mappingLoadBalancerLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health.go new file mode 100644 index 0000000000..5cbc3b51b3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health.go @@ -0,0 +1,124 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoadBalancerHealth The health status details for the specified load balancer. +// This object does not explicitly enumerate backend sets with a status of `OK`. However, they are included in the +// `totalBackendSetCount` sum. +type LoadBalancerHealth struct { + + // The overall health status of the load balancer. + // * **OK:** All backend sets associated with the load balancer return a status of `OK`. + // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, + // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. + // * **UNKNOWN:** If any one of the following conditions is true: + // * The load balancer life cycle state is not `ACTIVE`. + // * No backend sets are defined for the load balancer. + // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend + // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * The system could not retrieve metrics for any reason. + Status LoadBalancerHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the + // friendly name you assigned when you created it. + // Example: `example_backend_set3` + WarningStateBackendSetNames []string `mandatory:"true" json:"warningStateBackendSetNames"` + + // A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the + // friendly name you assigned when you created it. + // Example: `example_backend_set` + CriticalStateBackendSetNames []string `mandatory:"true" json:"criticalStateBackendSetNames"` + + // A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the + // friendly name you assigned when you created it. + // Example: `example_backend_set2` + UnknownStateBackendSetNames []string `mandatory:"true" json:"unknownStateBackendSetNames"` + + // The total number of backend sets associated with this load balancer. + // Example: `4` + TotalBackendSetCount *int `mandatory:"true" json:"totalBackendSetCount"` +} + +func (m LoadBalancerHealth) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadBalancerHealth) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLoadBalancerHealthStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetLoadBalancerHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LoadBalancerHealthStatusEnum Enum with underlying type: string +type LoadBalancerHealthStatusEnum string + +// Set of constants representing the allowable values for LoadBalancerHealthStatusEnum +const ( + LoadBalancerHealthStatusOk LoadBalancerHealthStatusEnum = "OK" + LoadBalancerHealthStatusWarning LoadBalancerHealthStatusEnum = "WARNING" + LoadBalancerHealthStatusCritical LoadBalancerHealthStatusEnum = "CRITICAL" + LoadBalancerHealthStatusUnknown LoadBalancerHealthStatusEnum = "UNKNOWN" +) + +var mappingLoadBalancerHealthStatusEnum = map[string]LoadBalancerHealthStatusEnum{ + "OK": LoadBalancerHealthStatusOk, + "WARNING": LoadBalancerHealthStatusWarning, + "CRITICAL": LoadBalancerHealthStatusCritical, + "UNKNOWN": LoadBalancerHealthStatusUnknown, +} + +var mappingLoadBalancerHealthStatusEnumLowerCase = map[string]LoadBalancerHealthStatusEnum{ + "ok": LoadBalancerHealthStatusOk, + "warning": LoadBalancerHealthStatusWarning, + "critical": LoadBalancerHealthStatusCritical, + "unknown": LoadBalancerHealthStatusUnknown, +} + +// GetLoadBalancerHealthStatusEnumValues Enumerates the set of values for LoadBalancerHealthStatusEnum +func GetLoadBalancerHealthStatusEnumValues() []LoadBalancerHealthStatusEnum { + values := make([]LoadBalancerHealthStatusEnum, 0) + for _, v := range mappingLoadBalancerHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetLoadBalancerHealthStatusEnumStringValues Enumerates the set of values in String for LoadBalancerHealthStatusEnum +func GetLoadBalancerHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingLoadBalancerHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadBalancerHealthStatusEnum(val string) (LoadBalancerHealthStatusEnum, bool) { + enum, ok := mappingLoadBalancerHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health_summary.go new file mode 100644 index 0000000000..e063d5bdf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_health_summary.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoadBalancerHealthSummary A health status summary for the specified load balancer. +type LoadBalancerHealthSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer the health status is associated with. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The overall health status of the load balancer. + // * **OK:** All backend sets associated with the load balancer return a status of `OK`. + // * **WARNING:** At least one of the backend sets associated with the load balancer returns a status of `WARNING`, + // no backend sets return a status of `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * **CRITICAL:** One or more of the backend sets associated with the load balancer return a status of `CRITICAL`. + // * **UNKNOWN:** If any one of the following conditions is true: + // * The load balancer life cycle state is not `ACTIVE`. + // * No backend sets are defined for the load balancer. + // * More than half of the backend sets associated with the load balancer return a status of `UNKNOWN`, none of the backend + // sets return a status of `WARNING` or `CRITICAL`, and the load balancer life cycle state is `ACTIVE`. + // * The system could not retrieve metrics for any reason. + Status LoadBalancerHealthSummaryStatusEnum `mandatory:"true" json:"status"` +} + +func (m LoadBalancerHealthSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadBalancerHealthSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLoadBalancerHealthSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetLoadBalancerHealthSummaryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LoadBalancerHealthSummaryStatusEnum Enum with underlying type: string +type LoadBalancerHealthSummaryStatusEnum string + +// Set of constants representing the allowable values for LoadBalancerHealthSummaryStatusEnum +const ( + LoadBalancerHealthSummaryStatusOk LoadBalancerHealthSummaryStatusEnum = "OK" + LoadBalancerHealthSummaryStatusWarning LoadBalancerHealthSummaryStatusEnum = "WARNING" + LoadBalancerHealthSummaryStatusCritical LoadBalancerHealthSummaryStatusEnum = "CRITICAL" + LoadBalancerHealthSummaryStatusUnknown LoadBalancerHealthSummaryStatusEnum = "UNKNOWN" +) + +var mappingLoadBalancerHealthSummaryStatusEnum = map[string]LoadBalancerHealthSummaryStatusEnum{ + "OK": LoadBalancerHealthSummaryStatusOk, + "WARNING": LoadBalancerHealthSummaryStatusWarning, + "CRITICAL": LoadBalancerHealthSummaryStatusCritical, + "UNKNOWN": LoadBalancerHealthSummaryStatusUnknown, +} + +var mappingLoadBalancerHealthSummaryStatusEnumLowerCase = map[string]LoadBalancerHealthSummaryStatusEnum{ + "ok": LoadBalancerHealthSummaryStatusOk, + "warning": LoadBalancerHealthSummaryStatusWarning, + "critical": LoadBalancerHealthSummaryStatusCritical, + "unknown": LoadBalancerHealthSummaryStatusUnknown, +} + +// GetLoadBalancerHealthSummaryStatusEnumValues Enumerates the set of values for LoadBalancerHealthSummaryStatusEnum +func GetLoadBalancerHealthSummaryStatusEnumValues() []LoadBalancerHealthSummaryStatusEnum { + values := make([]LoadBalancerHealthSummaryStatusEnum, 0) + for _, v := range mappingLoadBalancerHealthSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetLoadBalancerHealthSummaryStatusEnumStringValues Enumerates the set of values in String for LoadBalancerHealthSummaryStatusEnum +func GetLoadBalancerHealthSummaryStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingLoadBalancerHealthSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLoadBalancerHealthSummaryStatusEnum(val string) (LoadBalancerHealthSummaryStatusEnum, bool) { + enum, ok := mappingLoadBalancerHealthSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_policy.go new file mode 100644 index 0000000000..e9855a7a90 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_policy.go @@ -0,0 +1,43 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoadBalancerPolicy A policy that determines how traffic is distributed among backend servers. +// For more information on load balancing policies, see +// How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). +type LoadBalancerPolicy struct { + + // The name of a load balancing policy. + // Example: 'LEAST_CONNECTIONS' + Name *string `mandatory:"true" json:"name"` +} + +func (m LoadBalancerPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadBalancerPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_protocol.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_protocol.go new file mode 100644 index 0000000000..429ec24342 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_protocol.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoadBalancerProtocol A protocol that defines the type of traffic accepted by a listener. +type LoadBalancerProtocol struct { + + // The name of a protocol. + // Example: 'HTTP' + Name *string `mandatory:"true" json:"name"` +} + +func (m LoadBalancerProtocol) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadBalancerProtocol) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_shape.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_shape.go new file mode 100644 index 0000000000..902725ec55 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/load_balancer_shape.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LoadBalancerShape A shape is a template that determines the total pre-provisioned bandwidth (ingress plus egress) for the +// load balancer. +// Note that the pre-provisioned maximum capacity applies to aggregated connections, not to a single client +// attempting to use the full bandwidth. +type LoadBalancerShape struct { + + // The name of the shape. + // Example: `100Mbps` + Name *string `mandatory:"true" json:"name"` +} + +func (m LoadBalancerShape) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LoadBalancerShape) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/loadbalancer_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go similarity index 91% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/loadbalancer_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go index 8df22f62f3..52f96c07b3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/loadbalancer_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/loadbalancer_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -13,8 +13,8 @@ package loadbalancer import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" ) @@ -51,6 +51,8 @@ func NewLoadBalancerClientWithOboToken(configProvider common.ConfigurationProvid } func newLoadBalancerClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client LoadBalancerClient, err error) { + // LoadBalancer service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("LoadBalancer")) common.ConfigCircuitBreakerFromEnvVar(&baseClient) common.ConfigCircuitBreakerFromGlobalVar(&baseClient) @@ -74,6 +76,9 @@ func (client *LoadBalancerClient) setConfigurationProvider(configProvider common // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -133,6 +138,8 @@ func (client LoadBalancerClient) changeLoadBalancerCompartment(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancer/ChangeLoadBalancerCompartment" + err = common.PostProcessServiceError(err, "LoadBalancer", "ChangeLoadBalancerCompartment", apiReferenceLink) return response, err } @@ -189,6 +196,8 @@ func (client LoadBalancerClient) createBackend(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateBackend", apiReferenceLink) return response, err } @@ -245,6 +254,8 @@ func (client LoadBalancerClient) createBackendSet(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateBackendSet", apiReferenceLink) return response, err } @@ -301,6 +312,8 @@ func (client LoadBalancerClient) createCertificate(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateCertificate", apiReferenceLink) return response, err } @@ -357,6 +370,8 @@ func (client LoadBalancerClient) createCidrBlocks(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateCidrBlocks", apiReferenceLink) return response, err } @@ -414,6 +429,8 @@ func (client LoadBalancerClient) createHostname(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateHostname", apiReferenceLink) return response, err } @@ -470,6 +487,8 @@ func (client LoadBalancerClient) createListener(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateListener", apiReferenceLink) return response, err } @@ -546,6 +565,8 @@ func (client LoadBalancerClient) createLoadBalancer(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateLoadBalancer", apiReferenceLink) return response, err } @@ -603,6 +624,8 @@ func (client LoadBalancerClient) createPathRouteSet(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreatePathRouteSet", apiReferenceLink) return response, err } @@ -660,6 +683,8 @@ func (client LoadBalancerClient) createRoutingPolicy(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateRoutingPolicy", apiReferenceLink) return response, err } @@ -678,6 +703,11 @@ func (client LoadBalancerClient) CreateRuleSet(ctx context.Context, request Crea if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.createRuleSet, policy) if err != nil { if ociResponse != nil { @@ -712,6 +742,8 @@ func (client LoadBalancerClient) createRuleSet(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateRuleSet", apiReferenceLink) return response, err } @@ -768,6 +800,8 @@ func (client LoadBalancerClient) createSSLCipherSuite(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "CreateSSLCipherSuite", apiReferenceLink) return response, err } @@ -819,6 +853,8 @@ func (client LoadBalancerClient) deleteBackend(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteBackend", apiReferenceLink) return response, err } @@ -871,6 +907,8 @@ func (client LoadBalancerClient) deleteBackendSet(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteBackendSet", apiReferenceLink) return response, err } @@ -922,6 +960,8 @@ func (client LoadBalancerClient) deleteCertificate(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteCertificate", apiReferenceLink) return response, err } @@ -973,6 +1013,8 @@ func (client LoadBalancerClient) deleteCidrBlocks(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteCidrBlocks", apiReferenceLink) return response, err } @@ -1024,6 +1066,8 @@ func (client LoadBalancerClient) deleteHostname(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteHostname", apiReferenceLink) return response, err } @@ -1075,6 +1119,8 @@ func (client LoadBalancerClient) deleteListener(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteListener", apiReferenceLink) return response, err } @@ -1126,6 +1172,8 @@ func (client LoadBalancerClient) deleteLoadBalancer(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteLoadBalancer", apiReferenceLink) return response, err } @@ -1179,6 +1227,8 @@ func (client LoadBalancerClient) deletePathRouteSet(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeletePathRouteSet", apiReferenceLink) return response, err } @@ -1232,6 +1282,8 @@ func (client LoadBalancerClient) deleteRoutingPolicy(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteRoutingPolicy", apiReferenceLink) return response, err } @@ -1285,6 +1337,8 @@ func (client LoadBalancerClient) deleteRuleSet(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteRuleSet", apiReferenceLink) return response, err } @@ -1336,6 +1390,8 @@ func (client LoadBalancerClient) deleteSSLCipherSuite(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "DeleteSSLCipherSuite", apiReferenceLink) return response, err } @@ -1387,6 +1443,8 @@ func (client LoadBalancerClient) getBackend(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/Backend/GetBackend" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetBackend", apiReferenceLink) return response, err } @@ -1438,6 +1496,8 @@ func (client LoadBalancerClient) getBackendHealth(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/BackendHealth/GetBackendHealth" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetBackendHealth", apiReferenceLink) return response, err } @@ -1489,6 +1549,8 @@ func (client LoadBalancerClient) getBackendSet(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/BackendSet/GetBackendSet" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetBackendSet", apiReferenceLink) return response, err } @@ -1540,6 +1602,8 @@ func (client LoadBalancerClient) getBackendSetHealth(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/BackendSetHealth/GetBackendSetHealth" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetBackendSetHealth", apiReferenceLink) return response, err } @@ -1591,6 +1655,8 @@ func (client LoadBalancerClient) getCidrBlocks(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/CidrBlocks/GetCidrBlocks" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetCidrBlocks", apiReferenceLink) return response, err } @@ -1642,6 +1708,8 @@ func (client LoadBalancerClient) getHealthChecker(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/HealthChecker/GetHealthChecker" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetHealthChecker", apiReferenceLink) return response, err } @@ -1693,6 +1761,8 @@ func (client LoadBalancerClient) getHostname(ctx context.Context, request common defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/Hostname/GetHostname" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetHostname", apiReferenceLink) return response, err } @@ -1744,6 +1814,8 @@ func (client LoadBalancerClient) getLoadBalancer(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancer/GetLoadBalancer" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetLoadBalancer", apiReferenceLink) return response, err } @@ -1795,6 +1867,8 @@ func (client LoadBalancerClient) getLoadBalancerHealth(ctx context.Context, requ defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancerHealth/GetLoadBalancerHealth" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetLoadBalancerHealth", apiReferenceLink) return response, err } @@ -1846,6 +1920,8 @@ func (client LoadBalancerClient) getPathRouteSet(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/PathRouteSet/GetPathRouteSet" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetPathRouteSet", apiReferenceLink) return response, err } @@ -1897,6 +1973,8 @@ func (client LoadBalancerClient) getRoutingPolicy(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/RoutingPolicy/GetRoutingPolicy" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetRoutingPolicy", apiReferenceLink) return response, err } @@ -1948,6 +2026,8 @@ func (client LoadBalancerClient) getRuleSet(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/RuleSet/GetRuleSet" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetRuleSet", apiReferenceLink) return response, err } @@ -1999,6 +2079,8 @@ func (client LoadBalancerClient) getSSLCipherSuite(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/SSLCipherSuite/GetSSLCipherSuite" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetSSLCipherSuite", apiReferenceLink) return response, err } @@ -2050,6 +2132,8 @@ func (client LoadBalancerClient) getWorkRequest(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "LoadBalancer", "GetWorkRequest", apiReferenceLink) return response, err } @@ -2101,6 +2185,8 @@ func (client LoadBalancerClient) listBackendSets(ctx context.Context, request co defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/BackendSet/ListBackendSets" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListBackendSets", apiReferenceLink) return response, err } @@ -2152,6 +2238,8 @@ func (client LoadBalancerClient) listBackends(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/Backend/ListBackends" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListBackends", apiReferenceLink) return response, err } @@ -2203,6 +2291,8 @@ func (client LoadBalancerClient) listCertificates(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/Certificate/ListCertificates" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListCertificates", apiReferenceLink) return response, err } @@ -2254,6 +2344,8 @@ func (client LoadBalancerClient) listCidrBlocks(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/CidrBlocks/ListCidrBlocks" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListCidrBlocks", apiReferenceLink) return response, err } @@ -2305,6 +2397,8 @@ func (client LoadBalancerClient) listHostnames(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/Hostname/ListHostnames" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListHostnames", apiReferenceLink) return response, err } @@ -2361,6 +2455,8 @@ func (client LoadBalancerClient) listListenerRules(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/ListenerRuleSummary/ListListenerRules" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListListenerRules", apiReferenceLink) return response, err } @@ -2412,6 +2508,8 @@ func (client LoadBalancerClient) listLoadBalancerHealths(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancerHealthSummary/ListLoadBalancerHealths" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListLoadBalancerHealths", apiReferenceLink) return response, err } @@ -2463,6 +2561,8 @@ func (client LoadBalancerClient) listLoadBalancers(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancer/ListLoadBalancers" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListLoadBalancers", apiReferenceLink) return response, err } @@ -2514,6 +2614,8 @@ func (client LoadBalancerClient) listPathRouteSets(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/PathRouteSet/ListPathRouteSets" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListPathRouteSets", apiReferenceLink) return response, err } @@ -2565,6 +2667,8 @@ func (client LoadBalancerClient) listPolicies(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancerPolicy/ListPolicies" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListPolicies", apiReferenceLink) return response, err } @@ -2616,6 +2720,8 @@ func (client LoadBalancerClient) listProtocols(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancerProtocol/ListProtocols" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListProtocols", apiReferenceLink) return response, err } @@ -2667,6 +2773,8 @@ func (client LoadBalancerClient) listRoutingPolicies(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/RoutingPolicy/ListRoutingPolicies" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListRoutingPolicies", apiReferenceLink) return response, err } @@ -2718,6 +2826,8 @@ func (client LoadBalancerClient) listRuleSets(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/RuleSet/ListRuleSets" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListRuleSets", apiReferenceLink) return response, err } @@ -2769,6 +2879,8 @@ func (client LoadBalancerClient) listSSLCipherSuites(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/SSLCipherSuite/ListSSLCipherSuites" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListSSLCipherSuites", apiReferenceLink) return response, err } @@ -2820,6 +2932,8 @@ func (client LoadBalancerClient) listShapes(ctx context.Context, request common. defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancerShape/ListShapes" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListShapes", apiReferenceLink) return response, err } @@ -2871,6 +2985,8 @@ func (client LoadBalancerClient) listWorkRequests(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/WorkRequest/ListWorkRequests" + err = common.PostProcessServiceError(err, "LoadBalancer", "ListWorkRequests", apiReferenceLink) return response, err } @@ -2927,6 +3043,8 @@ func (client LoadBalancerClient) updateBackend(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateBackend", apiReferenceLink) return response, err } @@ -2983,6 +3101,8 @@ func (client LoadBalancerClient) updateBackendSet(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateBackendSet", apiReferenceLink) return response, err } @@ -3039,6 +3159,8 @@ func (client LoadBalancerClient) updateCidrBlocks(ctx context.Context, request c defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateCidrBlocks", apiReferenceLink) return response, err } @@ -3095,6 +3217,8 @@ func (client LoadBalancerClient) updateHealthChecker(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateHealthChecker", apiReferenceLink) return response, err } @@ -3113,6 +3237,11 @@ func (client LoadBalancerClient) UpdateHostname(ctx context.Context, request Upd if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateHostname, policy) if err != nil { if ociResponse != nil { @@ -3147,6 +3276,8 @@ func (client LoadBalancerClient) updateHostname(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateHostname", apiReferenceLink) return response, err } @@ -3203,6 +3334,8 @@ func (client LoadBalancerClient) updateListener(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateListener", apiReferenceLink) return response, err } @@ -3259,6 +3392,8 @@ func (client LoadBalancerClient) updateLoadBalancer(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateLoadBalancer", apiReferenceLink) return response, err } @@ -3320,6 +3455,8 @@ func (client LoadBalancerClient) updateLoadBalancerShape(ctx context.Context, re defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/LoadBalancer/UpdateLoadBalancerShape" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateLoadBalancerShape", apiReferenceLink) return response, err } @@ -3376,6 +3513,8 @@ func (client LoadBalancerClient) updateNetworkSecurityGroups(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/loadbalancer/20170115/NetworkSecurityGroups/UpdateNetworkSecurityGroups" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateNetworkSecurityGroups", apiReferenceLink) return response, err } @@ -3436,6 +3575,8 @@ func (client LoadBalancerClient) updatePathRouteSet(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdatePathRouteSet", apiReferenceLink) return response, err } @@ -3494,6 +3635,8 @@ func (client LoadBalancerClient) updateRoutingPolicy(ctx context.Context, reques defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateRoutingPolicy", apiReferenceLink) return response, err } @@ -3513,6 +3656,11 @@ func (client LoadBalancerClient) UpdateRuleSet(ctx context.Context, request Upda if request.RetryPolicy() != nil { policy = *request.RetryPolicy() } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + ociResponse, err = common.Retry(ctx, request, client.updateRuleSet, policy) if err != nil { if ociResponse != nil { @@ -3547,6 +3695,8 @@ func (client LoadBalancerClient) updateRuleSet(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateRuleSet", apiReferenceLink) return response, err } @@ -3603,6 +3753,8 @@ func (client LoadBalancerClient) updateSSLCipherSuite(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "" + err = common.PostProcessServiceError(err, "LoadBalancer", "UpdateSSLCipherSuite", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_condition.go new file mode 100644 index 0000000000..227349b1f0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_condition.go @@ -0,0 +1,120 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PathMatchCondition The path string and match condition to apply when evaluating an incoming URI for redirection. +type PathMatchCondition struct { + + // The path string that the redirection rule applies to. + // Example: `/example` + AttributeValue *string `mandatory:"true" json:"attributeValue"` + + // A string that specifies how to compare the PathMatchCondition object's `attributeValue` string to the + // incoming URI. + // * **EXACT_MATCH** - The incoming URI path must exactly and completely match the `attributeValue` string. + // * **FORCE_LONGEST_PREFIX_MATCH** - The system looks for the `attributeValue` string with the best, + // longest match of the beginning portion of the incoming URI path. + // * **PREFIX_MATCH** - The beginning portion of the incoming URI path must exactly match the + // `attributeValue` string. + // * **SUFFIX_MATCH** - The ending portion of the incoming URI path must exactly match the `attributeValue` + // string. + Operator PathMatchConditionOperatorEnum `mandatory:"true" json:"operator"` +} + +func (m PathMatchCondition) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PathMatchCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPathMatchConditionOperatorEnum(string(m.Operator)); !ok && m.Operator != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Operator: %s. Supported values are: %s.", m.Operator, strings.Join(GetPathMatchConditionOperatorEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m PathMatchCondition) MarshalJSON() (buff []byte, e error) { + type MarshalTypePathMatchCondition PathMatchCondition + s := struct { + DiscriminatorParam string `json:"attributeName"` + MarshalTypePathMatchCondition + }{ + "PATH", + (MarshalTypePathMatchCondition)(m), + } + + return json.Marshal(&s) +} + +// PathMatchConditionOperatorEnum Enum with underlying type: string +type PathMatchConditionOperatorEnum string + +// Set of constants representing the allowable values for PathMatchConditionOperatorEnum +const ( + PathMatchConditionOperatorExactMatch PathMatchConditionOperatorEnum = "EXACT_MATCH" + PathMatchConditionOperatorForceLongestPrefixMatch PathMatchConditionOperatorEnum = "FORCE_LONGEST_PREFIX_MATCH" + PathMatchConditionOperatorPrefixMatch PathMatchConditionOperatorEnum = "PREFIX_MATCH" + PathMatchConditionOperatorSuffixMatch PathMatchConditionOperatorEnum = "SUFFIX_MATCH" +) + +var mappingPathMatchConditionOperatorEnum = map[string]PathMatchConditionOperatorEnum{ + "EXACT_MATCH": PathMatchConditionOperatorExactMatch, + "FORCE_LONGEST_PREFIX_MATCH": PathMatchConditionOperatorForceLongestPrefixMatch, + "PREFIX_MATCH": PathMatchConditionOperatorPrefixMatch, + "SUFFIX_MATCH": PathMatchConditionOperatorSuffixMatch, +} + +var mappingPathMatchConditionOperatorEnumLowerCase = map[string]PathMatchConditionOperatorEnum{ + "exact_match": PathMatchConditionOperatorExactMatch, + "force_longest_prefix_match": PathMatchConditionOperatorForceLongestPrefixMatch, + "prefix_match": PathMatchConditionOperatorPrefixMatch, + "suffix_match": PathMatchConditionOperatorSuffixMatch, +} + +// GetPathMatchConditionOperatorEnumValues Enumerates the set of values for PathMatchConditionOperatorEnum +func GetPathMatchConditionOperatorEnumValues() []PathMatchConditionOperatorEnum { + values := make([]PathMatchConditionOperatorEnum, 0) + for _, v := range mappingPathMatchConditionOperatorEnum { + values = append(values, v) + } + return values +} + +// GetPathMatchConditionOperatorEnumStringValues Enumerates the set of values in String for PathMatchConditionOperatorEnum +func GetPathMatchConditionOperatorEnumStringValues() []string { + return []string{ + "EXACT_MATCH", + "FORCE_LONGEST_PREFIX_MATCH", + "PREFIX_MATCH", + "SUFFIX_MATCH", + } +} + +// GetMappingPathMatchConditionOperatorEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPathMatchConditionOperatorEnum(val string) (PathMatchConditionOperatorEnum, bool) { + enum, ok := mappingPathMatchConditionOperatorEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_type.go new file mode 100644 index 0000000000..50740a9ea3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_match_type.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PathMatchType The type of matching to apply to incoming URIs. +type PathMatchType struct { + + // Specifies how the load balancing service compares a PathRoute + // object's `path` string against the incoming URI. + // * **EXACT_MATCH** - Looks for a `path` string that exactly matches the incoming URI path. + // * **FORCE_LONGEST_PREFIX_MATCH** - Looks for the `path` string with the best, longest match of the beginning + // portion of the incoming URI path. + // * **PREFIX_MATCH** - Looks for a `path` string that matches the beginning portion of the incoming URI path. + // * **SUFFIX_MATCH** - Looks for a `path` string that matches the ending portion of the incoming URI path. + // For a full description of how the system handles `matchType` in a path route set containing multiple rules, see + // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). + MatchType PathMatchTypeMatchTypeEnum `mandatory:"true" json:"matchType"` +} + +func (m PathMatchType) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PathMatchType) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingPathMatchTypeMatchTypeEnum(string(m.MatchType)); !ok && m.MatchType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MatchType: %s. Supported values are: %s.", m.MatchType, strings.Join(GetPathMatchTypeMatchTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PathMatchTypeMatchTypeEnum Enum with underlying type: string +type PathMatchTypeMatchTypeEnum string + +// Set of constants representing the allowable values for PathMatchTypeMatchTypeEnum +const ( + PathMatchTypeMatchTypeExactMatch PathMatchTypeMatchTypeEnum = "EXACT_MATCH" + PathMatchTypeMatchTypeForceLongestPrefixMatch PathMatchTypeMatchTypeEnum = "FORCE_LONGEST_PREFIX_MATCH" + PathMatchTypeMatchTypePrefixMatch PathMatchTypeMatchTypeEnum = "PREFIX_MATCH" + PathMatchTypeMatchTypeSuffixMatch PathMatchTypeMatchTypeEnum = "SUFFIX_MATCH" +) + +var mappingPathMatchTypeMatchTypeEnum = map[string]PathMatchTypeMatchTypeEnum{ + "EXACT_MATCH": PathMatchTypeMatchTypeExactMatch, + "FORCE_LONGEST_PREFIX_MATCH": PathMatchTypeMatchTypeForceLongestPrefixMatch, + "PREFIX_MATCH": PathMatchTypeMatchTypePrefixMatch, + "SUFFIX_MATCH": PathMatchTypeMatchTypeSuffixMatch, +} + +var mappingPathMatchTypeMatchTypeEnumLowerCase = map[string]PathMatchTypeMatchTypeEnum{ + "exact_match": PathMatchTypeMatchTypeExactMatch, + "force_longest_prefix_match": PathMatchTypeMatchTypeForceLongestPrefixMatch, + "prefix_match": PathMatchTypeMatchTypePrefixMatch, + "suffix_match": PathMatchTypeMatchTypeSuffixMatch, +} + +// GetPathMatchTypeMatchTypeEnumValues Enumerates the set of values for PathMatchTypeMatchTypeEnum +func GetPathMatchTypeMatchTypeEnumValues() []PathMatchTypeMatchTypeEnum { + values := make([]PathMatchTypeMatchTypeEnum, 0) + for _, v := range mappingPathMatchTypeMatchTypeEnum { + values = append(values, v) + } + return values +} + +// GetPathMatchTypeMatchTypeEnumStringValues Enumerates the set of values in String for PathMatchTypeMatchTypeEnum +func GetPathMatchTypeMatchTypeEnumStringValues() []string { + return []string{ + "EXACT_MATCH", + "FORCE_LONGEST_PREFIX_MATCH", + "PREFIX_MATCH", + "SUFFIX_MATCH", + } +} + +// GetMappingPathMatchTypeMatchTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPathMatchTypeMatchTypeEnum(val string) (PathMatchTypeMatchTypeEnum, bool) { + enum, ok := mappingPathMatchTypeMatchTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route.go new file mode 100644 index 0000000000..a0fb5fc49b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PathRoute A "path route rule" to evaluate an incoming URI path, and then route a matching request to the specified backend set. +// Path route rules apply only to HTTP and HTTPS requests. They have no effect on TCP requests. +type PathRoute struct { + + // The path string to match against the incoming URI path. + // * Path strings are case-insensitive. + // * Asterisk (*) wildcards are not supported. + // * Regular expressions are not supported. + // Example: `/example/video/123` + Path *string `mandatory:"true" json:"path"` + + // The type of matching to apply to incoming URIs. + PathMatchType *PathMatchType `mandatory:"true" json:"pathMatchType"` + + // The name of the target backend set for requests where the incoming URI matches the specified path. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" json:"backendSetName"` +} + +func (m PathRoute) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PathRoute) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set.go new file mode 100644 index 0000000000..51e76e8d44 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PathRouteSet A named set of path route rules. For more information, see +// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type PathRouteSet struct { + + // The unique name for this set of path route rules. Avoid entering confidential information. + // Example: `example_path_route_set` + Name *string `mandatory:"true" json:"name"` + + // The set of path route rules. + PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` +} + +func (m PathRouteSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PathRouteSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set_details.go new file mode 100644 index 0000000000..e723567911 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/path_route_set_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PathRouteSetDetails A set of path route rules. +type PathRouteSetDetails struct { + + // The set of path route rules. + PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` +} + +func (m PathRouteSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PathRouteSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/real_ip_address_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/real_ip_address_condition.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/real_ip_address_condition.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/real_ip_address_condition.go index 5c26b3fe6b..f49d763d44 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/real_ip_address_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/real_ip_address_condition.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RealIpAddressCondition An access control rule condition that requires a match for real/original client IP coming in the @@ -36,6 +38,18 @@ func (m RealIpAddressCondition) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RealIpAddressCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m RealIpAddressCondition) MarshalJSON() (buff []byte, e error) { type MarshalTypeRealIpAddressCondition RealIpAddressCondition diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/redirect_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/redirect_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go index a67a22f260..d374f37c58 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/redirect_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RedirectRule An object that represents the action of returning a specified response code and a redirect URI. Each RedirectRule @@ -47,6 +49,18 @@ func (m RedirectRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RedirectRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m RedirectRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeRedirectRule RedirectRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/redirect_uri.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go similarity index 93% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/redirect_uri.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go index a2e06b9158..10c3247b00 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/redirect_uri.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/redirect_uri.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RedirectUri An object that defines the redirect URI applied to the original request. The object property values compose the @@ -119,3 +121,15 @@ type RedirectUri struct { func (m RedirectUri) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RedirectUri) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/remove_http_request_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/remove_http_request_header_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go index d113701fcb..2a13eebac5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/remove_http_request_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_request_header_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RemoveHttpRequestHeaderRule An object that represents the action of removing a header from a request. Optionally rule conditions can @@ -35,6 +37,18 @@ func (m RemoveHttpRequestHeaderRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveHttpRequestHeaderRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m RemoveHttpRequestHeaderRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeRemoveHttpRequestHeaderRule RemoveHttpRequestHeaderRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/remove_http_response_header_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/remove_http_response_header_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go index d6b9ded80c..59a641c46a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/remove_http_response_header_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/remove_http_response_header_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RemoveHttpResponseHeaderRule An object that represents the action of removing a header from a response. This rule applies only to HTTP listeners. @@ -31,6 +33,18 @@ func (m RemoveHttpResponseHeaderRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RemoveHttpResponseHeaderRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m RemoveHttpResponseHeaderRule) MarshalJSON() (buff []byte, e error) { type MarshalTypeRemoveHttpResponseHeaderRule RemoveHttpResponseHeaderRule diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/reserved_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/reserved_ip.go new file mode 100644 index 0000000000..c5a396f3d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/reserved_ip.go @@ -0,0 +1,38 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReservedIp The representation of ReservedIp +type ReservedIp struct { + Id *string `mandatory:"false" json:"id"` +} + +func (m ReservedIp) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReservedIp) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy.go new file mode 100644 index 0000000000..af748839e4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy.go @@ -0,0 +1,89 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RoutingPolicy A named ordered list of routing rules that is applied to a listener. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type RoutingPolicy struct { + + // The unique name for this list of routing rules. Avoid entering confidential information. + // Example: `example_routing_policy` + Name *string `mandatory:"true" json:"name"` + + // The version of the language in which `condition` of `rules` are composed. + ConditionLanguageVersion RoutingPolicyConditionLanguageVersionEnum `mandatory:"true" json:"conditionLanguageVersion"` + + // The ordered list of routing rules. + Rules []RoutingRule `mandatory:"true" json:"rules"` +} + +func (m RoutingPolicy) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RoutingPolicy) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingRoutingPolicyConditionLanguageVersionEnum(string(m.ConditionLanguageVersion)); !ok && m.ConditionLanguageVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConditionLanguageVersion: %s. Supported values are: %s.", m.ConditionLanguageVersion, strings.Join(GetRoutingPolicyConditionLanguageVersionEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RoutingPolicyConditionLanguageVersionEnum Enum with underlying type: string +type RoutingPolicyConditionLanguageVersionEnum string + +// Set of constants representing the allowable values for RoutingPolicyConditionLanguageVersionEnum +const ( + RoutingPolicyConditionLanguageVersionV1 RoutingPolicyConditionLanguageVersionEnum = "V1" +) + +var mappingRoutingPolicyConditionLanguageVersionEnum = map[string]RoutingPolicyConditionLanguageVersionEnum{ + "V1": RoutingPolicyConditionLanguageVersionV1, +} + +var mappingRoutingPolicyConditionLanguageVersionEnumLowerCase = map[string]RoutingPolicyConditionLanguageVersionEnum{ + "v1": RoutingPolicyConditionLanguageVersionV1, +} + +// GetRoutingPolicyConditionLanguageVersionEnumValues Enumerates the set of values for RoutingPolicyConditionLanguageVersionEnum +func GetRoutingPolicyConditionLanguageVersionEnumValues() []RoutingPolicyConditionLanguageVersionEnum { + values := make([]RoutingPolicyConditionLanguageVersionEnum, 0) + for _, v := range mappingRoutingPolicyConditionLanguageVersionEnum { + values = append(values, v) + } + return values +} + +// GetRoutingPolicyConditionLanguageVersionEnumStringValues Enumerates the set of values in String for RoutingPolicyConditionLanguageVersionEnum +func GetRoutingPolicyConditionLanguageVersionEnumStringValues() []string { + return []string{ + "V1", + } +} + +// GetMappingRoutingPolicyConditionLanguageVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRoutingPolicyConditionLanguageVersionEnum(val string) (RoutingPolicyConditionLanguageVersionEnum, bool) { + enum, ok := mappingRoutingPolicyConditionLanguageVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy_details.go new file mode 100644 index 0000000000..97ef5dbefd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_policy_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RoutingPolicyDetails An ordered list of routing rules. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type RoutingPolicyDetails struct { + + // The list of routing rules. + Rules []RoutingRule `mandatory:"true" json:"rules"` +} + +func (m RoutingPolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RoutingPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go similarity index 79% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_rule.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go index d61ee92896..255f29b050 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/routing_rule.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/routing_rule.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RoutingRule A routing rule examines an incoming request, routing matching requests to the specified backend set. @@ -33,6 +35,18 @@ func (m RoutingRule) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RoutingRule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *RoutingRule) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule.go new file mode 100644 index 0000000000..b402b4b48d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule.go @@ -0,0 +1,188 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Rule An object that represents an action to apply to a listener. +type Rule interface { +} + +type rule struct { + JsonData []byte + Action string `json:"action"` +} + +// UnmarshalJSON unmarshals json +func (m *rule) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerrule rule + s := struct { + Model Unmarshalerrule + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.Action = s.Model.Action + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *rule) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.Action { + case "ADD_HTTP_REQUEST_HEADER": + mm := AddHttpRequestHeaderRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "REDIRECT": + mm := RedirectRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "REMOVE_HTTP_REQUEST_HEADER": + mm := RemoveHttpRequestHeaderRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "EXTEND_HTTP_REQUEST_HEADER_VALUE": + mm := ExtendHttpRequestHeaderValueRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "REMOVE_HTTP_RESPONSE_HEADER": + mm := RemoveHttpResponseHeaderRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "CONTROL_ACCESS_USING_HTTP_METHODS": + mm := ControlAccessUsingHttpMethodsRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "ALLOW": + mm := AllowRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "HTTP_HEADER": + mm := HttpHeaderRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "ADD_HTTP_RESPONSE_HEADER": + mm := AddHttpResponseHeaderRule{} + err = json.Unmarshal(data, &mm) + return mm, err + case "EXTEND_HTTP_RESPONSE_HEADER_VALUE": + mm := ExtendHttpResponseHeaderValueRule{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for Rule: %s.", m.Action) + return *m, nil + } +} + +func (m rule) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m rule) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RuleActionEnum Enum with underlying type: string +type RuleActionEnum string + +// Set of constants representing the allowable values for RuleActionEnum +const ( + RuleActionAddHttpRequestHeader RuleActionEnum = "ADD_HTTP_REQUEST_HEADER" + RuleActionExtendHttpRequestHeaderValue RuleActionEnum = "EXTEND_HTTP_REQUEST_HEADER_VALUE" + RuleActionRemoveHttpRequestHeader RuleActionEnum = "REMOVE_HTTP_REQUEST_HEADER" + RuleActionAddHttpResponseHeader RuleActionEnum = "ADD_HTTP_RESPONSE_HEADER" + RuleActionExtendHttpResponseHeaderValue RuleActionEnum = "EXTEND_HTTP_RESPONSE_HEADER_VALUE" + RuleActionRemoveHttpResponseHeader RuleActionEnum = "REMOVE_HTTP_RESPONSE_HEADER" + RuleActionAllow RuleActionEnum = "ALLOW" + RuleActionControlAccessUsingHttpMethods RuleActionEnum = "CONTROL_ACCESS_USING_HTTP_METHODS" + RuleActionRedirect RuleActionEnum = "REDIRECT" + RuleActionHttpHeader RuleActionEnum = "HTTP_HEADER" +) + +var mappingRuleActionEnum = map[string]RuleActionEnum{ + "ADD_HTTP_REQUEST_HEADER": RuleActionAddHttpRequestHeader, + "EXTEND_HTTP_REQUEST_HEADER_VALUE": RuleActionExtendHttpRequestHeaderValue, + "REMOVE_HTTP_REQUEST_HEADER": RuleActionRemoveHttpRequestHeader, + "ADD_HTTP_RESPONSE_HEADER": RuleActionAddHttpResponseHeader, + "EXTEND_HTTP_RESPONSE_HEADER_VALUE": RuleActionExtendHttpResponseHeaderValue, + "REMOVE_HTTP_RESPONSE_HEADER": RuleActionRemoveHttpResponseHeader, + "ALLOW": RuleActionAllow, + "CONTROL_ACCESS_USING_HTTP_METHODS": RuleActionControlAccessUsingHttpMethods, + "REDIRECT": RuleActionRedirect, + "HTTP_HEADER": RuleActionHttpHeader, +} + +var mappingRuleActionEnumLowerCase = map[string]RuleActionEnum{ + "add_http_request_header": RuleActionAddHttpRequestHeader, + "extend_http_request_header_value": RuleActionExtendHttpRequestHeaderValue, + "remove_http_request_header": RuleActionRemoveHttpRequestHeader, + "add_http_response_header": RuleActionAddHttpResponseHeader, + "extend_http_response_header_value": RuleActionExtendHttpResponseHeaderValue, + "remove_http_response_header": RuleActionRemoveHttpResponseHeader, + "allow": RuleActionAllow, + "control_access_using_http_methods": RuleActionControlAccessUsingHttpMethods, + "redirect": RuleActionRedirect, + "http_header": RuleActionHttpHeader, +} + +// GetRuleActionEnumValues Enumerates the set of values for RuleActionEnum +func GetRuleActionEnumValues() []RuleActionEnum { + values := make([]RuleActionEnum, 0) + for _, v := range mappingRuleActionEnum { + values = append(values, v) + } + return values +} + +// GetRuleActionEnumStringValues Enumerates the set of values in String for RuleActionEnum +func GetRuleActionEnumStringValues() []string { + return []string{ + "ADD_HTTP_REQUEST_HEADER", + "EXTEND_HTTP_REQUEST_HEADER_VALUE", + "REMOVE_HTTP_REQUEST_HEADER", + "ADD_HTTP_RESPONSE_HEADER", + "EXTEND_HTTP_RESPONSE_HEADER_VALUE", + "REMOVE_HTTP_RESPONSE_HEADER", + "ALLOW", + "CONTROL_ACCESS_USING_HTTP_METHODS", + "REDIRECT", + "HTTP_HEADER", + } +} + +// GetMappingRuleActionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRuleActionEnum(val string) (RuleActionEnum, bool) { + enum, ok := mappingRuleActionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_condition.go new file mode 100644 index 0000000000..55f8a169f3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_condition.go @@ -0,0 +1,148 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RuleCondition A condition to apply to an access control rule. +type RuleCondition interface { +} + +type rulecondition struct { + JsonData []byte + AttributeName string `json:"attributeName"` +} + +// UnmarshalJSON unmarshals json +func (m *rulecondition) UnmarshalJSON(data []byte) error { + m.JsonData = data + type Unmarshalerrulecondition rulecondition + s := struct { + Model Unmarshalerrulecondition + }{} + err := json.Unmarshal(data, &s.Model) + if err != nil { + return err + } + m.AttributeName = s.Model.AttributeName + + return err +} + +// UnmarshalPolymorphicJSON unmarshals polymorphic json +func (m *rulecondition) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { + + if data == nil || string(data) == "null" { + return nil, nil + } + + var err error + switch m.AttributeName { + case "SOURCE_VCN_ID": + mm := SourceVcnIdCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "SOURCE_IP_ADDRESS": + mm := SourceIpAddressCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "PATH": + mm := PathMatchCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "SOURCE_VCN_IP_ADDRESS": + mm := SourceVcnIpAddressCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + case "REAL_IP_ADDRESS": + mm := RealIpAddressCondition{} + err = json.Unmarshal(data, &mm) + return mm, err + default: + common.Logf("Recieved unsupported enum value for RuleCondition: %s.", m.AttributeName) + return *m, nil + } +} + +func (m rulecondition) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m rulecondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RuleConditionAttributeNameEnum Enum with underlying type: string +type RuleConditionAttributeNameEnum string + +// Set of constants representing the allowable values for RuleConditionAttributeNameEnum +const ( + RuleConditionAttributeNameSourceIpAddress RuleConditionAttributeNameEnum = "SOURCE_IP_ADDRESS" + RuleConditionAttributeNameSourceVcnId RuleConditionAttributeNameEnum = "SOURCE_VCN_ID" + RuleConditionAttributeNameSourceVcnIpAddress RuleConditionAttributeNameEnum = "SOURCE_VCN_IP_ADDRESS" + RuleConditionAttributeNamePath RuleConditionAttributeNameEnum = "PATH" + RuleConditionAttributeNameRealIpAddress RuleConditionAttributeNameEnum = "REAL_IP_ADDRESS" +) + +var mappingRuleConditionAttributeNameEnum = map[string]RuleConditionAttributeNameEnum{ + "SOURCE_IP_ADDRESS": RuleConditionAttributeNameSourceIpAddress, + "SOURCE_VCN_ID": RuleConditionAttributeNameSourceVcnId, + "SOURCE_VCN_IP_ADDRESS": RuleConditionAttributeNameSourceVcnIpAddress, + "PATH": RuleConditionAttributeNamePath, + "REAL_IP_ADDRESS": RuleConditionAttributeNameRealIpAddress, +} + +var mappingRuleConditionAttributeNameEnumLowerCase = map[string]RuleConditionAttributeNameEnum{ + "source_ip_address": RuleConditionAttributeNameSourceIpAddress, + "source_vcn_id": RuleConditionAttributeNameSourceVcnId, + "source_vcn_ip_address": RuleConditionAttributeNameSourceVcnIpAddress, + "path": RuleConditionAttributeNamePath, + "real_ip_address": RuleConditionAttributeNameRealIpAddress, +} + +// GetRuleConditionAttributeNameEnumValues Enumerates the set of values for RuleConditionAttributeNameEnum +func GetRuleConditionAttributeNameEnumValues() []RuleConditionAttributeNameEnum { + values := make([]RuleConditionAttributeNameEnum, 0) + for _, v := range mappingRuleConditionAttributeNameEnum { + values = append(values, v) + } + return values +} + +// GetRuleConditionAttributeNameEnumStringValues Enumerates the set of values in String for RuleConditionAttributeNameEnum +func GetRuleConditionAttributeNameEnumStringValues() []string { + return []string{ + "SOURCE_IP_ADDRESS", + "SOURCE_VCN_ID", + "SOURCE_VCN_IP_ADDRESS", + "PATH", + "REAL_IP_ADDRESS", + } +} + +// GetMappingRuleConditionAttributeNameEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingRuleConditionAttributeNameEnum(val string) (RuleConditionAttributeNameEnum, bool) { + enum, ok := mappingRuleConditionAttributeNameEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go index 79b0f909cd..38523e225b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/rule_set.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // RuleSet A named set of rules associated with a load balancer. Rules are objects that represent actions to apply to a listener, @@ -33,6 +35,18 @@ func (m RuleSet) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RuleSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UnmarshalJSON unmarshals from json func (m *RuleSet) UnmarshalJSON(data []byte) (e error) { model := struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set_details.go new file mode 100644 index 0000000000..ad1e17d6ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/rule_set_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RuleSetDetails The rules that compose a rule set. +type RuleSetDetails struct { + + // An array of rules that compose the rule set. + Items []Rule `mandatory:"true" json:"items"` +} + +func (m RuleSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RuleSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *RuleSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Items []rule `json:"items"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Items = make([]Rule, len(model.Items)) + for i, n := range model.Items { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Items[i] = nn.(Rule) + } else { + m.Items[i] = nil + } + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/session_persistence_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/session_persistence_configuration_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go index 42009d186a..7ca7e2175a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/session_persistence_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/session_persistence_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SessionPersistenceConfigurationDetails The configuration details for implementing session persistence based on a user-specified cookie name (application @@ -44,3 +46,15 @@ type SessionPersistenceConfigurationDetails struct { func (m SessionPersistenceConfigurationDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SessionPersistenceConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/shape_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/shape_details.go new file mode 100644 index 0000000000..173df8f35c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/shape_details.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ShapeDetails The configuration details to update load balancer to a different shape. +type ShapeDetails struct { + + // Bandwidth in Mbps that determines the total pre-provisioned bandwidth (ingress plus egress). + // The values must be between 10 and the maximumBandwidthInMbps. + // Example: `150` + MinimumBandwidthInMbps *int `mandatory:"true" json:"minimumBandwidthInMbps"` + + // Bandwidth in Mbps that determines the maximum bandwidth (ingress plus egress) that the load balancer can + // achieve. This bandwidth cannot be always guaranteed. For a guaranteed bandwidth use the minimumBandwidthInMbps + // parameter. + // The values must be between minimumBandwidthInMbps and 8000 (8Gbps). + // Example: `1500` + MaximumBandwidthInMbps *int `mandatory:"true" json:"maximumBandwidthInMbps"` +} + +func (m ShapeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ShapeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_ip_address_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_ip_address_condition.go new file mode 100644 index 0000000000..cf481261e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_ip_address_condition.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SourceIpAddressCondition A rule condition that checks client source IP against specified IP address or address range. +// The IP Address can be specified either as a single CIDR by value or referenced via a named CidrBlocks. +// If latter is used, then CidrBlocks must be created in the context of this Load Balancer. +// Condition evaluation depends on operator: +// * **IN_RANGE** - The condition is determined to be true if the source IP address belongs to the CIDR or CidrBlocks referenced in *attributeValue*. +// * **NOT_IN_RANGE** - The condition is determined to be true if the source IP address does not belong to the CIDR or CidrBlocks referenced in *attributeValue*. +type SourceIpAddressCondition struct { + + // An IPv4 or IPv6 address range that the source IP address of an incoming packet must match. + // The service accepts only classless inter-domain routing (CIDR) format (x.x.x.x/y or x:x::x/y) strings. + // Specify 0.0.0.0/0 or ::/0 to match all incoming traffic. + // Besides IP ranges or IPs you can match against multiple CIDR blocks by creating a CidrBlocks resource with + // a list of CIDR blocks and mentioning the name of CidrBlocks resource. + // example: "192.168.0.0/16 or MySourceIPCidrBlocks" + AttributeValue *string `mandatory:"true" json:"attributeValue"` + + // Operator which has to be appplied to this condition. + // * **IN_RANGE** - The condition is determined to be true if the source IP address belongs to the CIDR or CidrBlocks referenced in *attributeValue*. + // * **NOT_IN_RANGE** - The condition is determined to be true if the source IP address does not belong to the CIDR or CidrBlocks referenced in *attributeValue*. + Operator SourceIpAddressConditionOperatorEnum `mandatory:"false" json:"operator,omitempty"` +} + +func (m SourceIpAddressCondition) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SourceIpAddressCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingSourceIpAddressConditionOperatorEnum(string(m.Operator)); !ok && m.Operator != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Operator: %s. Supported values are: %s.", m.Operator, strings.Join(GetSourceIpAddressConditionOperatorEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m SourceIpAddressCondition) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSourceIpAddressCondition SourceIpAddressCondition + s := struct { + DiscriminatorParam string `json:"attributeName"` + MarshalTypeSourceIpAddressCondition + }{ + "SOURCE_IP_ADDRESS", + (MarshalTypeSourceIpAddressCondition)(m), + } + + return json.Marshal(&s) +} + +// SourceIpAddressConditionOperatorEnum Enum with underlying type: string +type SourceIpAddressConditionOperatorEnum string + +// Set of constants representing the allowable values for SourceIpAddressConditionOperatorEnum +const ( + SourceIpAddressConditionOperatorInRange SourceIpAddressConditionOperatorEnum = "IN_RANGE" + SourceIpAddressConditionOperatorNotInRange SourceIpAddressConditionOperatorEnum = "NOT_IN_RANGE" +) + +var mappingSourceIpAddressConditionOperatorEnum = map[string]SourceIpAddressConditionOperatorEnum{ + "IN_RANGE": SourceIpAddressConditionOperatorInRange, + "NOT_IN_RANGE": SourceIpAddressConditionOperatorNotInRange, +} + +var mappingSourceIpAddressConditionOperatorEnumLowerCase = map[string]SourceIpAddressConditionOperatorEnum{ + "in_range": SourceIpAddressConditionOperatorInRange, + "not_in_range": SourceIpAddressConditionOperatorNotInRange, +} + +// GetSourceIpAddressConditionOperatorEnumValues Enumerates the set of values for SourceIpAddressConditionOperatorEnum +func GetSourceIpAddressConditionOperatorEnumValues() []SourceIpAddressConditionOperatorEnum { + values := make([]SourceIpAddressConditionOperatorEnum, 0) + for _, v := range mappingSourceIpAddressConditionOperatorEnum { + values = append(values, v) + } + return values +} + +// GetSourceIpAddressConditionOperatorEnumStringValues Enumerates the set of values in String for SourceIpAddressConditionOperatorEnum +func GetSourceIpAddressConditionOperatorEnumStringValues() []string { + return []string{ + "IN_RANGE", + "NOT_IN_RANGE", + } +} + +// GetMappingSourceIpAddressConditionOperatorEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSourceIpAddressConditionOperatorEnum(val string) (SourceIpAddressConditionOperatorEnum, bool) { + enum, ok := mappingSourceIpAddressConditionOperatorEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_vcn_id_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_vcn_id_condition.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go index 7b13ad2640..ee41911a8d 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_vcn_id_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_id_condition.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SourceVcnIdCondition An access control rule condition that requires a match on the specified source VCN OCID. @@ -30,6 +32,18 @@ func (m SourceVcnIdCondition) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SourceVcnIdCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m SourceVcnIdCondition) MarshalJSON() (buff []byte, e error) { type MarshalTypeSourceVcnIdCondition SourceVcnIdCondition diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_vcn_ip_address_condition.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_vcn_ip_address_condition.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go index 3378db78d8..e00c9cdee5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/source_vcn_ip_address_condition.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/source_vcn_ip_address_condition.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package loadbalancer import ( "encoding/json" - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SourceVcnIpAddressCondition An access control rule condition that requires a match on the specified source VCN and IP address range. @@ -31,6 +33,18 @@ func (m SourceVcnIpAddressCondition) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SourceVcnIpAddressCondition) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // MarshalJSON marshals to json representation func (m SourceVcnIpAddressCondition) MarshalJSON() (buff []byte, e error) { type MarshalTypeSourceVcnIpAddressCondition SourceVcnIpAddressCondition diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_cipher_suite.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go similarity index 95% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_cipher_suite.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go index a9e30fef72..adaec50f41 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_cipher_suite.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SslCipherSuite The configuration details of an SSL cipher suite. @@ -289,3 +291,15 @@ type SslCipherSuite struct { func (m SslCipherSuite) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SslCipherSuite) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_cipher_suite_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go similarity index 95% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_cipher_suite_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go index 3449cf1582..cc208b752a 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_cipher_suite_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_cipher_suite_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SslCipherSuiteDetails The configuration details of an SSL cipher suite. @@ -289,3 +291,15 @@ type SslCipherSuiteDetails struct { func (m SslCipherSuiteDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SslCipherSuiteDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_configuration.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_configuration.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go index 88f3e2bc40..b54f220c1b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_configuration.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SslConfiguration A listener's SSL handling configuration. @@ -93,6 +95,21 @@ func (m SslConfiguration) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SslConfiguration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSslConfigurationServerOrderPreferenceEnum(string(m.ServerOrderPreference)); !ok && m.ServerOrderPreference != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServerOrderPreference: %s. Supported values are: %s.", m.ServerOrderPreference, strings.Join(GetSslConfigurationServerOrderPreferenceEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SslConfigurationServerOrderPreferenceEnum Enum with underlying type: string type SslConfigurationServerOrderPreferenceEnum string @@ -102,16 +119,35 @@ const ( SslConfigurationServerOrderPreferenceDisabled SslConfigurationServerOrderPreferenceEnum = "DISABLED" ) -var mappingSslConfigurationServerOrderPreference = map[string]SslConfigurationServerOrderPreferenceEnum{ +var mappingSslConfigurationServerOrderPreferenceEnum = map[string]SslConfigurationServerOrderPreferenceEnum{ "ENABLED": SslConfigurationServerOrderPreferenceEnabled, "DISABLED": SslConfigurationServerOrderPreferenceDisabled, } +var mappingSslConfigurationServerOrderPreferenceEnumLowerCase = map[string]SslConfigurationServerOrderPreferenceEnum{ + "enabled": SslConfigurationServerOrderPreferenceEnabled, + "disabled": SslConfigurationServerOrderPreferenceDisabled, +} + // GetSslConfigurationServerOrderPreferenceEnumValues Enumerates the set of values for SslConfigurationServerOrderPreferenceEnum func GetSslConfigurationServerOrderPreferenceEnumValues() []SslConfigurationServerOrderPreferenceEnum { values := make([]SslConfigurationServerOrderPreferenceEnum, 0) - for _, v := range mappingSslConfigurationServerOrderPreference { + for _, v := range mappingSslConfigurationServerOrderPreferenceEnum { values = append(values, v) } return values } + +// GetSslConfigurationServerOrderPreferenceEnumStringValues Enumerates the set of values in String for SslConfigurationServerOrderPreferenceEnum +func GetSslConfigurationServerOrderPreferenceEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingSslConfigurationServerOrderPreferenceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSslConfigurationServerOrderPreferenceEnum(val string) (SslConfigurationServerOrderPreferenceEnum, bool) { + enum, ok := mappingSslConfigurationServerOrderPreferenceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_configuration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_configuration_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go index 572bb7bdc5..272253f191 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/ssl_configuration_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/ssl_configuration_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SslConfigurationDetails The load balancer's SSL handling configuration details. @@ -92,6 +94,21 @@ func (m SslConfigurationDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SslConfigurationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingSslConfigurationDetailsServerOrderPreferenceEnum(string(m.ServerOrderPreference)); !ok && m.ServerOrderPreference != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ServerOrderPreference: %s. Supported values are: %s.", m.ServerOrderPreference, strings.Join(GetSslConfigurationDetailsServerOrderPreferenceEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SslConfigurationDetailsServerOrderPreferenceEnum Enum with underlying type: string type SslConfigurationDetailsServerOrderPreferenceEnum string @@ -101,16 +118,35 @@ const ( SslConfigurationDetailsServerOrderPreferenceDisabled SslConfigurationDetailsServerOrderPreferenceEnum = "DISABLED" ) -var mappingSslConfigurationDetailsServerOrderPreference = map[string]SslConfigurationDetailsServerOrderPreferenceEnum{ +var mappingSslConfigurationDetailsServerOrderPreferenceEnum = map[string]SslConfigurationDetailsServerOrderPreferenceEnum{ "ENABLED": SslConfigurationDetailsServerOrderPreferenceEnabled, "DISABLED": SslConfigurationDetailsServerOrderPreferenceDisabled, } +var mappingSslConfigurationDetailsServerOrderPreferenceEnumLowerCase = map[string]SslConfigurationDetailsServerOrderPreferenceEnum{ + "enabled": SslConfigurationDetailsServerOrderPreferenceEnabled, + "disabled": SslConfigurationDetailsServerOrderPreferenceDisabled, +} + // GetSslConfigurationDetailsServerOrderPreferenceEnumValues Enumerates the set of values for SslConfigurationDetailsServerOrderPreferenceEnum func GetSslConfigurationDetailsServerOrderPreferenceEnumValues() []SslConfigurationDetailsServerOrderPreferenceEnum { values := make([]SslConfigurationDetailsServerOrderPreferenceEnum, 0) - for _, v := range mappingSslConfigurationDetailsServerOrderPreference { + for _, v := range mappingSslConfigurationDetailsServerOrderPreferenceEnum { values = append(values, v) } return values } + +// GetSslConfigurationDetailsServerOrderPreferenceEnumStringValues Enumerates the set of values in String for SslConfigurationDetailsServerOrderPreferenceEnum +func GetSslConfigurationDetailsServerOrderPreferenceEnumStringValues() []string { + return []string{ + "ENABLED", + "DISABLED", + } +} + +// GetMappingSslConfigurationDetailsServerOrderPreferenceEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSslConfigurationDetailsServerOrderPreferenceEnum(val string) (SslConfigurationDetailsServerOrderPreferenceEnum, bool) { + enum, ok := mappingSslConfigurationDetailsServerOrderPreferenceEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_details.go new file mode 100644 index 0000000000..27751d1a3c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBackendDetails The configuration details for updating a backend server. +type UpdateBackendDetails struct { + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives 3 times the number of new connections + // as a server weighted '1'. + // For more information on load balancing policies, see + // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"true" json:"weight"` + + // Whether the load balancer should treat this server as a backup unit. If `true`, the load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "backup" fail the health check policy. + // **Note:** You cannot add a backend server marked as `backup` to a backend set that uses the IP Hash policy. + // Example: `false` + Backup *bool `mandatory:"true" json:"backup"` + + // Whether the load balancer should drain this server. Servers marked "drain" receive no new + // incoming traffic. + // Example: `false` + Drain *bool `mandatory:"true" json:"drain"` + + // Whether the load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + Offline *bool `mandatory:"true" json:"offline"` +} + +func (m UpdateBackendDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBackendDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_request_response.go new file mode 100644 index 0000000000..68239467fa --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_request_response.go @@ -0,0 +1,114 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateBackendRequest wrapper for the UpdateBackend operation +type UpdateBackendRequest struct { + + // Details for updating a backend server. + UpdateBackendDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set and server. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The IP address and port of the backend server to update. + // Example: `10.0.0.3:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateBackendResponse wrapper for the UpdateBackend operation +type UpdateBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_details.go new file mode 100644 index 0000000000..5e2bb52ad6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_details.go @@ -0,0 +1,58 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBackendSetDetails The configuration details for updating a load balancer backend set. +// For more information on backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Note:** The `sessionPersistenceConfiguration` (application cookie stickiness) and `lbCookieSessionPersistenceConfiguration` +// (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two +// attributes per backend set. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateBackendSetDetails struct { + + // The load balancer policy for the backend set. To get a list of available policies, use the + // ListPolicies operation. + // Example: `LEAST_CONNECTIONS` + Policy *string `mandatory:"true" json:"policy"` + + Backends []BackendDetails `mandatory:"true" json:"backends"` + + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` + + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` + + SessionPersistenceConfiguration *SessionPersistenceConfigurationDetails `mandatory:"false" json:"sessionPersistenceConfiguration"` + + LbCookieSessionPersistenceConfiguration *LbCookieSessionPersistenceConfigurationDetails `mandatory:"false" json:"lbCookieSessionPersistenceConfiguration"` +} + +func (m UpdateBackendSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBackendSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_request_response.go new file mode 100644 index 0000000000..81e3f8ecfb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_backend_set_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateBackendSetRequest wrapper for the UpdateBackendSet operation +type UpdateBackendSetRequest struct { + + // The details to update a backend set. + UpdateBackendSetDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend set. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set to update. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateBackendSetResponse wrapper for the UpdateBackendSet operation +type UpdateBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_details.go new file mode 100644 index 0000000000..087bc43b9b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_details.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateCidrBlocksDetails The configuration details for updating CidrBlocks. If an empty array is sent the request will be disallowed. +// **Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateCidrBlocksDetails struct { + + // Each element in the list should be valid IPv4 or IPv6 CIDR Block address. + // Example: '["129.213.176.0/24", "150.136.187.0/24", "2002::1234:abcd:ffff:c0a8:101/64"]' + Items []string `mandatory:"true" json:"items"` +} + +func (m UpdateCidrBlocksDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateCidrBlocksDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_request_response.go new file mode 100644 index 0000000000..709c3862db --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_cidr_blocks_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateCidrBlocksRequest wrapper for the UpdateCidrBlocks operation +type UpdateCidrBlocksRequest struct { + + // The configuration details to update the CidrBlocks. + UpdateCidrBlocksDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the CidrBlocks to update. + // example: `ClientRealIpCidrBlocks` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateCidrBlocksRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateCidrBlocksRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateCidrBlocksRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateCidrBlocksRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateCidrBlocksRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateCidrBlocksResponse wrapper for the UpdateCidrBlocks operation +type UpdateCidrBlocksResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateCidrBlocksResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateCidrBlocksResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_details.go new file mode 100644 index 0000000000..2cedd71e2b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_details.go @@ -0,0 +1,78 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateHealthCheckerDetails The health checker's configuration details. +type UpdateHealthCheckerDetails struct { + + // The protocol the health check must use; either HTTP or TCP. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // The backend server port against which to run the health check. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // The status code a healthy backend server should return. + // Example: `200` + ReturnCode *int `mandatory:"true" json:"returnCode"` + + // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies + // when recovering a server to the "healthy" state. + // Example: `3` + Retries *int `mandatory:"true" json:"retries"` + + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. + // Example: `3000` + TimeoutInMillis *int `mandatory:"true" json:"timeoutInMillis"` + + // The interval between health checks, in milliseconds. + // Example: `10000` + IntervalInMillis *int `mandatory:"true" json:"intervalInMillis"` + + // A regular expression for parsing the response body from the backend server. + // Example: `^((?!false).|\s)*$` + ResponseBodyRegex *string `mandatory:"true" json:"responseBodyRegex"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` + + // description: | + // Whether SSL Encryption is used for the Health Check. + // If "true", health checks will not use SSL Encryption even if the associated backend set is configured to use SSL Encryption. + // If "false", health checks will use SSL Encryption if the associated backend set is configured to use SSL Encryption, otherwise not. + // Example: `false` + IsDisableSslEncryption *bool `mandatory:"false" json:"isDisableSslEncryption"` +} + +func (m UpdateHealthCheckerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateHealthCheckerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_request_response.go new file mode 100644 index 0000000000..2daeba0a18 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_health_checker_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateHealthCheckerRequest wrapper for the UpdateHealthChecker operation +type UpdateHealthCheckerRequest struct { + + // The health check policy configuration details. + UpdateHealthCheckerDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the health check policy to be updated. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the backend set associated with the health check policy to be retrieved. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateHealthCheckerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateHealthCheckerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateHealthCheckerResponse wrapper for the UpdateHealthChecker operation +type UpdateHealthCheckerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateHealthCheckerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateHealthCheckerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_details.go new file mode 100644 index 0000000000..40af63e5d3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_details.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateHostnameDetails The configuration details for updating a virtual hostname. +// For more information on virtual hostnames, see +// Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm). +type UpdateHostnameDetails struct { + + // The virtual hostname to update. For more information about virtual hostname string construction, see + // Managing Request Routing (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingrequest.htm#routing). + // Example: `app.example.com` + Hostname *string `mandatory:"false" json:"hostname"` +} + +func (m UpdateHostnameDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateHostnameDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_request_response.go new file mode 100644 index 0000000000..e957761c3f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_hostname_request_response.go @@ -0,0 +1,111 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateHostnameRequest wrapper for the UpdateHostname operation +type UpdateHostnameRequest struct { + + // The configuration details to update a virtual hostname. + UpdateHostnameDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the virtual hostname + // to update. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the hostname resource to update. + // Example: `example_hostname_001` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateHostnameRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateHostnameRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateHostnameRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateHostnameRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateHostnameRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateHostnameResponse wrapper for the UpdateHostname operation +type UpdateHostnameResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateHostnameResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateHostnameResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go new file mode 100644 index 0000000000..b6bbb414ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_details.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateListenerDetails The configuration details for updating a listener. +type UpdateListenerDetails struct { + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // To get a list of valid protocols, use the ListProtocols + // operation. + // Example: `HTTP` + Protocol *string `mandatory:"true" json:"protocol"` + + // An array of hostname resource names. + HostnameNames []string `mandatory:"false" json:"hostnameNames"` + + // Deprecated. Please use `routingPolicies` instead. + // The name of the set of path-based routing rules, PathRouteSet, + // applied to this listener's traffic. + // Example: `example_path_route_set` + PathRouteSetName *string `mandatory:"false" json:"pathRouteSetName"` + + // The name of the routing policy applied to this listener's traffic. + // Example: `example_routing_policy` + RoutingPolicyName *string `mandatory:"false" json:"routingPolicyName"` + + SslConfiguration *SslConfigurationDetails `mandatory:"false" json:"sslConfiguration"` + + ConnectionConfiguration *ConnectionConfiguration `mandatory:"false" json:"connectionConfiguration"` + + // The names of the RuleSet to apply to the listener. + // Example: ["example_rule_set"] + RuleSetNames []string `mandatory:"false" json:"ruleSetNames"` +} + +func (m UpdateListenerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateListenerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_request_response.go new file mode 100644 index 0000000000..b20625af78 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_listener_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateListenerRequest wrapper for the UpdateListener operation +type UpdateListenerRequest struct { + + // Details to update a listener. + UpdateListenerDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to update. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the listener to update. + // Example: `example_listener` + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateListenerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateListenerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateListenerResponse wrapper for the UpdateListener operation +type UpdateListenerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateListenerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateListenerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go index e07ec3cae0..7d0c86ae05 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateLoadBalancerDetails Configuration details to update a load balancer. @@ -37,3 +39,15 @@ type UpdateLoadBalancerDetails struct { func (m UpdateLoadBalancerDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLoadBalancerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go index c1a45e29fb..88fd0fc0d0 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateLoadBalancerRequest wrapper for the UpdateLoadBalancer operation @@ -23,9 +25,11 @@ type UpdateLoadBalancerRequest struct { OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -48,6 +52,10 @@ func (request UpdateLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +71,17 @@ func (request UpdateLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateLoadBalancerResponse wrapper for the UpdateLoadBalancer operation type UpdateLoadBalancerResponse struct { @@ -72,18 +91,9 @@ type UpdateLoadBalancerResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` - - // For optimistic concurrency control. See `if-match`. - ETag *string `presentIn:"header" name:"etag"` - - // Flag to indicate whether or not the object was modified. If this is true, - // the getter for the object itself will return null. Callers should check this - // if they specified one of the request params that might result in a conditional - // response (like 'if-match'/'if-none-match'). - IsNotModified bool } func (response UpdateLoadBalancerResponse) String() string { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_details.go new file mode 100644 index 0000000000..c67e750d9e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_details.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateLoadBalancerShapeDetails The representation of UpdateLoadBalancerShapeDetails +type UpdateLoadBalancerShapeDetails struct { + + // The new shape name for the load balancer. + // Allowed values are : + // * 10Mbps + // * 100Mbps + // * 400Mbps + // * 8000Mbps + // * Flexible + // Example: `flexible` + // * NOTE: Fixed shapes 10Mbps, 100Mbps, 400Mbps, 8000Mbps will be deprecated from May 2023. This api + // * will only support `Flexible` shape after that date. + ShapeName *string `mandatory:"true" json:"shapeName"` + + // The configuration details to update load balancer to a different profile. + ShapeDetails *ShapeDetails `mandatory:"false" json:"shapeDetails"` +} + +func (m UpdateLoadBalancerShapeDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateLoadBalancerShapeDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_request_response.go new file mode 100644 index 0000000000..e327ea59d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_load_balancer_shape_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateLoadBalancerShapeRequest wrapper for the UpdateLoadBalancerShape operation +type UpdateLoadBalancerShapeRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer whose shape will be updated. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The details for updating a load balancer's shape. This contains the new, desired shape. + UpdateLoadBalancerShapeDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateLoadBalancerShapeRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateLoadBalancerShapeRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateLoadBalancerShapeRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateLoadBalancerShapeRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateLoadBalancerShapeRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateLoadBalancerShapeResponse wrapper for the UpdateLoadBalancerShape operation +type UpdateLoadBalancerShapeResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateLoadBalancerShapeResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateLoadBalancerShapeResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_details.go new file mode 100644 index 0000000000..1c315980a4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_details.go @@ -0,0 +1,49 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNetworkSecurityGroupsDetails An object representing an updated list of network security groups (NSGs) that overwrites the existing list of NSGs. +// * If the load balancer has no NSGs configured, it uses the NSGs in this list. +// * If the load balancer has a list of NSGs configured, this list replaces the existing list. +// * If the load balancer has a list of NSGs configured and this list is empty, the operation removes all of the load balancer's NSG associations. +type UpdateNetworkSecurityGroupsDetails struct { + + // An array of NSG OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the load + // balancer. + // During the load balancer's creation, the service adds the new load balancer to the specified NSGs. + // The benefits of associating the load balancer with NSGs include: + // * NSGs define network security rules to govern ingress and egress traffic for the load balancer. + // * The network security rules of other resources can reference the NSGs associated with the load balancer + // to ensure access. + NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` +} + +func (m UpdateNetworkSecurityGroupsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNetworkSecurityGroupsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_request_response.go new file mode 100644 index 0000000000..57c47f1650 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_network_security_groups_request_response.go @@ -0,0 +1,106 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateNetworkSecurityGroupsRequest wrapper for the UpdateNetworkSecurityGroups operation +type UpdateNetworkSecurityGroupsRequest struct { + + // The details for updating the NSGs associated with the specified load balancer. + UpdateNetworkSecurityGroupsDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer to update the NSGs for. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateNetworkSecurityGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateNetworkSecurityGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateNetworkSecurityGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNetworkSecurityGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateNetworkSecurityGroupsResponse wrapper for the UpdateNetworkSecurityGroups operation +type UpdateNetworkSecurityGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateNetworkSecurityGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateNetworkSecurityGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_details.go new file mode 100644 index 0000000000..5b3da81cd8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdatePathRouteSetDetails An updated set of path route rules that overwrites the existing set of rules. +type UpdatePathRouteSetDetails struct { + + // The set of path route rules. + PathRoutes []PathRoute `mandatory:"true" json:"pathRoutes"` +} + +func (m UpdatePathRouteSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdatePathRouteSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_request_response.go index 0fcf9413c3..bf93f66baa 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_path_route_set_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_path_route_set_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdatePathRouteSetRequest wrapper for the UpdatePathRouteSet operation @@ -27,9 +29,11 @@ type UpdatePathRouteSetRequest struct { OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -52,6 +56,10 @@ func (request UpdatePathRouteSetRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdatePathRouteSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -67,6 +75,17 @@ func (request UpdatePathRouteSetRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdatePathRouteSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdatePathRouteSetResponse wrapper for the UpdatePathRouteSet operation type UpdatePathRouteSetResponse struct { @@ -76,8 +95,8 @@ type UpdatePathRouteSetResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_details.go new file mode 100644 index 0000000000..e9e3389e94 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_details.go @@ -0,0 +1,84 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateRoutingPolicyDetails An updated list of routing rules that overwrites the existing list of routing rules. +type UpdateRoutingPolicyDetails struct { + + // The list of routing rules. + Rules []RoutingRule `mandatory:"true" json:"rules"` + + // The version of the language in which `condition` of `rules` are composed. + ConditionLanguageVersion UpdateRoutingPolicyDetailsConditionLanguageVersionEnum `mandatory:"false" json:"conditionLanguageVersion,omitempty"` +} + +func (m UpdateRoutingPolicyDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateRoutingPolicyDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnum(string(m.ConditionLanguageVersion)); !ok && m.ConditionLanguageVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ConditionLanguageVersion: %s. Supported values are: %s.", m.ConditionLanguageVersion, strings.Join(GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateRoutingPolicyDetailsConditionLanguageVersionEnum Enum with underlying type: string +type UpdateRoutingPolicyDetailsConditionLanguageVersionEnum string + +// Set of constants representing the allowable values for UpdateRoutingPolicyDetailsConditionLanguageVersionEnum +const ( + UpdateRoutingPolicyDetailsConditionLanguageVersionV1 UpdateRoutingPolicyDetailsConditionLanguageVersionEnum = "V1" +) + +var mappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnum = map[string]UpdateRoutingPolicyDetailsConditionLanguageVersionEnum{ + "V1": UpdateRoutingPolicyDetailsConditionLanguageVersionV1, +} + +var mappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnumLowerCase = map[string]UpdateRoutingPolicyDetailsConditionLanguageVersionEnum{ + "v1": UpdateRoutingPolicyDetailsConditionLanguageVersionV1, +} + +// GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumValues Enumerates the set of values for UpdateRoutingPolicyDetailsConditionLanguageVersionEnum +func GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumValues() []UpdateRoutingPolicyDetailsConditionLanguageVersionEnum { + values := make([]UpdateRoutingPolicyDetailsConditionLanguageVersionEnum, 0) + for _, v := range mappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnum { + values = append(values, v) + } + return values +} + +// GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumStringValues Enumerates the set of values in String for UpdateRoutingPolicyDetailsConditionLanguageVersionEnum +func GetUpdateRoutingPolicyDetailsConditionLanguageVersionEnumStringValues() []string { + return []string{ + "V1", + } +} + +// GetMappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnum(val string) (UpdateRoutingPolicyDetailsConditionLanguageVersionEnum, bool) { + enum, ok := mappingUpdateRoutingPolicyDetailsConditionLanguageVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go similarity index 77% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go index c77e5b2028..b3c895feb6 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_routing_policy_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_routing_policy_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateRoutingPolicyRequest wrapper for the UpdateRoutingPolicy operation @@ -27,9 +29,11 @@ type UpdateRoutingPolicyRequest struct { OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match - // parameter to the value of the ETag from a previous GET or POST response for that resource. The - // resource is updated or deleted only if the ETag you provide matches the resource's current ETag - // value. + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. // Example: `example-etag` IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` @@ -52,6 +56,10 @@ func (request UpdateRoutingPolicyRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateRoutingPolicyRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -67,6 +75,17 @@ func (request UpdateRoutingPolicyRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateRoutingPolicyRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateRoutingPolicyResponse wrapper for the UpdateRoutingPolicy operation type UpdateRoutingPolicyResponse struct { @@ -76,8 +95,8 @@ type UpdateRoutingPolicyResponse struct { // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` - // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about - // a particular request, please provide the request ID. + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. OpcRequestId *string `presentIn:"header" name:"opc-request-id"` } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_details.go new file mode 100644 index 0000000000..06b60f79b9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateRuleSetDetails An updated set of rules that overwrites the existing set of rules. +type UpdateRuleSetDetails struct { + + // An array of rules that compose the rule set. + Items []Rule `mandatory:"true" json:"items"` +} + +func (m UpdateRuleSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateRuleSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UnmarshalJSON unmarshals from json +func (m *UpdateRuleSetDetails) UnmarshalJSON(data []byte) (e error) { + model := struct { + Items []rule `json:"items"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Items = make([]Rule, len(model.Items)) + for i, n := range model.Items { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.Items[i] = nn.(Rule) + } else { + m.Items[i] = nil + } + } + + return +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_request_response.go new file mode 100644 index 0000000000..548787d16a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_rule_set_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateRuleSetRequest wrapper for the UpdateRuleSet operation +type UpdateRuleSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the specified load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the rule set to update. + // Example: `example_rule_set` + RuleSetName *string `mandatory:"true" contributesTo:"path" name:"ruleSetName"` + + // The configuration details to update a set of rules. + UpdateRuleSetDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + // particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateRuleSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateRuleSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateRuleSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateRuleSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateRuleSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateRuleSetResponse wrapper for the UpdateRuleSet operation +type UpdateRuleSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateRuleSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateRuleSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_s_s_l_cipher_suite_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_s_s_l_cipher_suite_request_response.go new file mode 100644 index 0000000000..80c7a75025 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_s_s_l_cipher_suite_request_response.go @@ -0,0 +1,110 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateSSLCipherSuiteRequest wrapper for the UpdateSSLCipherSuite operation +type UpdateSSLCipherSuiteRequest struct { + + // The configuration details to update an SSL cipher suite. + UpdateSslCipherSuiteDetails `contributesTo:"body"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the associated load balancer. + LoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"loadBalancerId"` + + // The name of the SSL cipher suite to update. + // example: `example_cipher_suite` + Name *string `mandatory:"true" contributesTo:"path" name:"name"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so it can be retried in case of a timeout or + // server error without risk of executing that same action again. Retry tokens expire after 24 + // hours, but can be invalidated before then due to conflicting operations (e.g., if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // may be rejected). + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match + // parameter to the value of the ETag for the load balancer. This value can be obtained from a GET + // or POST response for any resource of that load balancer. + // For example, the eTag returned by getListener can be specified as the ifMatch for updateRuleSets. + // The resource is updated or deleted only if the ETag you provide matches the resource's current + // ETag value. + // Example: `example-etag` + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateSSLCipherSuiteRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateSSLCipherSuiteRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateSSLCipherSuiteRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateSSLCipherSuiteRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateSSLCipherSuiteRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateSSLCipherSuiteResponse wrapper for the UpdateSSLCipherSuite operation +type UpdateSSLCipherSuiteResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you need to contact + // Oracle about a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateSSLCipherSuiteResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateSSLCipherSuiteResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_ssl_cipher_suite_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go similarity index 89% rename from vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_ssl_cipher_suite_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go index a442f55c6b..873819c05e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/loadbalancer/update_ssl_cipher_suite_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/update_ssl_cipher_suite_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -11,7 +11,9 @@ package loadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateSslCipherSuiteDetails The configuration details for updating an SSL cipher suite. @@ -124,3 +126,15 @@ type UpdateSslCipherSuiteDetails struct { func (m UpdateSslCipherSuiteDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateSslCipherSuiteDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request.go new file mode 100644 index 0000000000..4a216d5da3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request.go @@ -0,0 +1,129 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequest Many of the API requests you use to create and configure load balancing do not take effect immediately. +// In these cases, the request spawns an asynchronous work flow to fulfill the request. WorkRequest objects provide visibility +// for in-progress work flows. +// For more information about work requests, see Viewing the State of a Work Request (https://docs.cloud.oracle.com/Content/Balance/Tasks/viewingworkrequest.htm). +type WorkRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the load balancer with which the work request + // is associated. + LoadBalancerId *string `mandatory:"true" json:"loadBalancerId"` + + // The type of action the work request represents. + // Example: `CreateListener` + Type *string `mandatory:"true" json:"type"` + + // The current state of the work request. + LifecycleState WorkRequestLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // A collection of data, related to the load balancer provisioning process, that helps with debugging in the event of failure. + // Possible data elements include: + // - workflow name + // - event ID + // - work request ID + // - load balancer ID + // - workflow completion message + Message *string `mandatory:"true" json:"message"` + + // The date and time the work request was created, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + ErrorDetails []WorkRequestError `mandatory:"true" json:"errorDetails"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancer. + CompartmentId *string `mandatory:"false" json:"compartmentId"` + + // The date and time the work request was completed, in the format defined by RFC3339. + // Example: `2016-08-25T21:10:29.600Z` + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingWorkRequestLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetWorkRequestLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestLifecycleStateEnum Enum with underlying type: string +type WorkRequestLifecycleStateEnum string + +// Set of constants representing the allowable values for WorkRequestLifecycleStateEnum +const ( + WorkRequestLifecycleStateAccepted WorkRequestLifecycleStateEnum = "ACCEPTED" + WorkRequestLifecycleStateInProgress WorkRequestLifecycleStateEnum = "IN_PROGRESS" + WorkRequestLifecycleStateFailed WorkRequestLifecycleStateEnum = "FAILED" + WorkRequestLifecycleStateSucceeded WorkRequestLifecycleStateEnum = "SUCCEEDED" +) + +var mappingWorkRequestLifecycleStateEnum = map[string]WorkRequestLifecycleStateEnum{ + "ACCEPTED": WorkRequestLifecycleStateAccepted, + "IN_PROGRESS": WorkRequestLifecycleStateInProgress, + "FAILED": WorkRequestLifecycleStateFailed, + "SUCCEEDED": WorkRequestLifecycleStateSucceeded, +} + +var mappingWorkRequestLifecycleStateEnumLowerCase = map[string]WorkRequestLifecycleStateEnum{ + "accepted": WorkRequestLifecycleStateAccepted, + "in_progress": WorkRequestLifecycleStateInProgress, + "failed": WorkRequestLifecycleStateFailed, + "succeeded": WorkRequestLifecycleStateSucceeded, +} + +// GetWorkRequestLifecycleStateEnumValues Enumerates the set of values for WorkRequestLifecycleStateEnum +func GetWorkRequestLifecycleStateEnumValues() []WorkRequestLifecycleStateEnum { + values := make([]WorkRequestLifecycleStateEnum, 0) + for _, v := range mappingWorkRequestLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestLifecycleStateEnumStringValues Enumerates the set of values in String for WorkRequestLifecycleStateEnum +func GetWorkRequestLifecycleStateEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + } +} + +// GetMappingWorkRequestLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestLifecycleStateEnum(val string) (WorkRequestLifecycleStateEnum, bool) { + enum, ok := mappingWorkRequestLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request_error.go new file mode 100644 index 0000000000..38f1a11f32 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/loadbalancer/work_request_error.go @@ -0,0 +1,86 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Load Balancing API +// +// API for the Load Balancing service. Use this API to manage load balancers, backend sets, and related items. For more +// information, see Overview of Load Balancing (https://docs.cloud.oracle.com/iaas/Content/Balance/Concepts/balanceoverview.htm). +// + +package loadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestError An object returned in the event of a work request error. +type WorkRequestError struct { + ErrorCode WorkRequestErrorErrorCodeEnum `mandatory:"true" json:"errorCode"` + + // A human-readable error string. + Message *string `mandatory:"true" json:"message"` +} + +func (m WorkRequestError) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestError) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingWorkRequestErrorErrorCodeEnum(string(m.ErrorCode)); !ok && m.ErrorCode != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ErrorCode: %s. Supported values are: %s.", m.ErrorCode, strings.Join(GetWorkRequestErrorErrorCodeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// WorkRequestErrorErrorCodeEnum Enum with underlying type: string +type WorkRequestErrorErrorCodeEnum string + +// Set of constants representing the allowable values for WorkRequestErrorErrorCodeEnum +const ( + WorkRequestErrorErrorCodeBadInput WorkRequestErrorErrorCodeEnum = "BAD_INPUT" + WorkRequestErrorErrorCodeInternalError WorkRequestErrorErrorCodeEnum = "INTERNAL_ERROR" +) + +var mappingWorkRequestErrorErrorCodeEnum = map[string]WorkRequestErrorErrorCodeEnum{ + "BAD_INPUT": WorkRequestErrorErrorCodeBadInput, + "INTERNAL_ERROR": WorkRequestErrorErrorCodeInternalError, +} + +var mappingWorkRequestErrorErrorCodeEnumLowerCase = map[string]WorkRequestErrorErrorCodeEnum{ + "bad_input": WorkRequestErrorErrorCodeBadInput, + "internal_error": WorkRequestErrorErrorCodeInternalError, +} + +// GetWorkRequestErrorErrorCodeEnumValues Enumerates the set of values for WorkRequestErrorErrorCodeEnum +func GetWorkRequestErrorErrorCodeEnumValues() []WorkRequestErrorErrorCodeEnum { + values := make([]WorkRequestErrorErrorCodeEnum, 0) + for _, v := range mappingWorkRequestErrorErrorCodeEnum { + values = append(values, v) + } + return values +} + +// GetWorkRequestErrorErrorCodeEnumStringValues Enumerates the set of values in String for WorkRequestErrorErrorCodeEnum +func GetWorkRequestErrorErrorCodeEnumStringValues() []string { + return []string{ + "BAD_INPUT", + "INTERNAL_ERROR", + } +} + +// GetMappingWorkRequestErrorErrorCodeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingWorkRequestErrorErrorCodeEnum(val string) (WorkRequestErrorErrorCodeEnum, bool) { + enum, ok := mappingWorkRequestErrorErrorCodeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/aggregated_datapoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/aggregated_datapoint.go new file mode 100644 index 0000000000..f4b3debffe --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/aggregated_datapoint.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AggregatedDatapoint A timestamp-value pair returned for the specified request. +type AggregatedDatapoint struct { + + // The date and time associated with the value of this data point. Format defined by RFC3339. + // Example: `2019-02-01T01:02:29.600Z` + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` + + // Numeric value of the metric. + // Example: `10.4` + Value *float64 `mandatory:"true" json:"value"` +} + +func (m AggregatedDatapoint) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AggregatedDatapoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm.go new file mode 100644 index 0000000000..ce4b37f0ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm.go @@ -0,0 +1,324 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Alarm The properties that define an alarm. +// For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// For information about endpoints and signing API requests, see +// About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm). +type Alarm struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. + Id *string `mandatory:"true" json:"id"` + + // A user-friendly name for the alarm. It does not have to be unique, and it's changeable. + // This name is sent as the title for notifications related to this alarm. + // Example: `High CPU Utilization` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the alarm. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the metric + // being evaluated by the alarm. + MetricCompartmentId *string `mandatory:"true" json:"metricCompartmentId"` + + // The source service or application emitting the metric that is evaluated by the alarm. + // Example: `oci_computeagent` + Namespace *string `mandatory:"true" json:"namespace"` + + // The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of + // the Monitoring service interprets results for each returned time series as Boolean values, + // where zero represents false and a non-zero value represents true. A true value means that the trigger + // rule condition has been met. The query must specify a metric, statistic, interval, and trigger + // rule (threshold or absence). Supported values for interval depend on the specified time range. More + // interval values are supported for smaller time ranges. You can optionally + // specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. + // For details about Monitoring Query Language (MQL), see Monitoring Query Language (MQL) Reference (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). + // For available dimensions, review the metric definition for the supported service. + // See Supported Services (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices). + // Example of threshold alarm: + // ----- + // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85 + // ----- + // Example of absence alarm: + // ----- + // CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent() + // ----- + Query *string `mandatory:"true" json:"query"` + + // The perceived type of response required when the alarm is in the "FIRING" state. + // Example: `CRITICAL` + Severity AlarmSeverityEnum `mandatory:"true" json:"severity"` + + // A list of destinations to which the notifications for this alarm will be delivered. + // Each destination is represented by an OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) related to the supported destination service. + // For example, a destination using the Notifications service is represented by a topic OCID. + // Supported destination services: Notifications Service. Limit: One destination per supported destination service. + Destinations []string `mandatory:"true" json:"destinations"` + + // Whether the alarm is enabled. + // Example: `true` + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // The current lifecycle state of the alarm. + // Example: `DELETED` + LifecycleState AlarmLifecycleStateEnum `mandatory:"true" json:"lifecycleState"` + + // The date and time the alarm was created. Format defined by RFC3339. + // Example: `2019-02-01T01:02:29.600Z` + TimeCreated *common.SDKTime `mandatory:"true" json:"timeCreated"` + + // The date and time the alarm was last updated. Format defined by RFC3339. + // Example: `2019-02-03T01:02:29.600Z` + TimeUpdated *common.SDKTime `mandatory:"true" json:"timeUpdated"` + + // When true, the alarm evaluates metrics from all compartments and subcompartments. The parameter can + // only be set to true when metricCompartmentId is the tenancy OCID (the tenancy is the root compartment). + // A true value requires the user to have tenancy-level permissions. If this requirement is not met, + // then the call is rejected. When false, the alarm evaluates metrics from only the compartment specified + // in metricCompartmentId. Default is false. + // Example: `true` + MetricCompartmentIdInSubtree *bool `mandatory:"false" json:"metricCompartmentIdInSubtree"` + + // Resource group to match for metric data retrieved by the alarm. A resource group is a custom string that you can match when retrieving custom metrics. Only one resource group can be applied per metric. + // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + // Example: `frontend-fleet` + ResourceGroup *string `mandatory:"false" json:"resourceGroup"` + + // The time between calculated aggregation windows for the alarm. Supported value: `1m` + Resolution *string `mandatory:"false" json:"resolution"` + + // The period of time that the condition defined in the alarm must persist before the alarm state + // changes from "OK" to "FIRING". For example, a value of 5 minutes means that the + // alarm must persist in breaching the condition for five minutes before the alarm updates its + // state to "FIRING". + // The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` + // for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M. + // Under the default value of PT1M, the first evaluation that breaches the alarm updates the + // state to "FIRING". + // The alarm updates its status to "OK" when the breaching condition has been clear for + // the most recent minute. + // Example: `PT5M` + PendingDuration *string `mandatory:"false" json:"pendingDuration"` + + // The human-readable content of the notification delivered. Oracle recommends providing guidance + // to operators for resolving the alarm condition. Consider adding links to standard runbook + // practices. + // Example: `High CPU usage alert. Follow runbook instructions for resolution.` + Body *string `mandatory:"false" json:"body"` + + // When set to `true`, splits notifications per metric stream. When set to `false`, groups notifications across metric streams. + // Example: `true` + IsNotificationsPerMetricDimensionEnabled *bool `mandatory:"false" json:"isNotificationsPerMetricDimensionEnabled"` + + // The format to use for notification messages sent from this alarm. The formats are: + // * `RAW` - Raw JSON blob. Default value. + // * `PRETTY_JSON`: JSON with new lines and indents. + // * `ONS_OPTIMIZED`: Simplified, user-friendly layout. Applies only to messages sent through the Notifications service to the following subscription types: Email. + MessageFormat AlarmMessageFormatEnum `mandatory:"false" json:"messageFormat,omitempty"` + + // The frequency at which notifications are re-submitted, if the alarm keeps firing without + // interruption. Format defined by ISO 8601. For example, `PT4H` indicates four hours. + // Minimum: PT1M. Maximum: P30D. + // Default value: null (notifications are not re-submitted). + // Example: `PT2H` + RepeatNotificationDuration *string `mandatory:"false" json:"repeatNotificationDuration"` + + // The configuration details for suppressing an alarm. + Suppression *Suppression `mandatory:"false" json:"suppression"` + + // Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Usage of predefined tag keys. These predefined keys are scoped to namespaces. + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m Alarm) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Alarm) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAlarmSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetAlarmSeverityEnumStringValues(), ","))) + } + if _, ok := GetMappingAlarmLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAlarmLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingAlarmMessageFormatEnum(string(m.MessageFormat)); !ok && m.MessageFormat != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MessageFormat: %s. Supported values are: %s.", m.MessageFormat, strings.Join(GetAlarmMessageFormatEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AlarmSeverityEnum Enum with underlying type: string +type AlarmSeverityEnum string + +// Set of constants representing the allowable values for AlarmSeverityEnum +const ( + AlarmSeverityCritical AlarmSeverityEnum = "CRITICAL" + AlarmSeverityError AlarmSeverityEnum = "ERROR" + AlarmSeverityWarning AlarmSeverityEnum = "WARNING" + AlarmSeverityInfo AlarmSeverityEnum = "INFO" +) + +var mappingAlarmSeverityEnum = map[string]AlarmSeverityEnum{ + "CRITICAL": AlarmSeverityCritical, + "ERROR": AlarmSeverityError, + "WARNING": AlarmSeverityWarning, + "INFO": AlarmSeverityInfo, +} + +var mappingAlarmSeverityEnumLowerCase = map[string]AlarmSeverityEnum{ + "critical": AlarmSeverityCritical, + "error": AlarmSeverityError, + "warning": AlarmSeverityWarning, + "info": AlarmSeverityInfo, +} + +// GetAlarmSeverityEnumValues Enumerates the set of values for AlarmSeverityEnum +func GetAlarmSeverityEnumValues() []AlarmSeverityEnum { + values := make([]AlarmSeverityEnum, 0) + for _, v := range mappingAlarmSeverityEnum { + values = append(values, v) + } + return values +} + +// GetAlarmSeverityEnumStringValues Enumerates the set of values in String for AlarmSeverityEnum +func GetAlarmSeverityEnumStringValues() []string { + return []string{ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + } +} + +// GetMappingAlarmSeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmSeverityEnum(val string) (AlarmSeverityEnum, bool) { + enum, ok := mappingAlarmSeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AlarmMessageFormatEnum Enum with underlying type: string +type AlarmMessageFormatEnum string + +// Set of constants representing the allowable values for AlarmMessageFormatEnum +const ( + AlarmMessageFormatRaw AlarmMessageFormatEnum = "RAW" + AlarmMessageFormatPrettyJson AlarmMessageFormatEnum = "PRETTY_JSON" + AlarmMessageFormatOnsOptimized AlarmMessageFormatEnum = "ONS_OPTIMIZED" +) + +var mappingAlarmMessageFormatEnum = map[string]AlarmMessageFormatEnum{ + "RAW": AlarmMessageFormatRaw, + "PRETTY_JSON": AlarmMessageFormatPrettyJson, + "ONS_OPTIMIZED": AlarmMessageFormatOnsOptimized, +} + +var mappingAlarmMessageFormatEnumLowerCase = map[string]AlarmMessageFormatEnum{ + "raw": AlarmMessageFormatRaw, + "pretty_json": AlarmMessageFormatPrettyJson, + "ons_optimized": AlarmMessageFormatOnsOptimized, +} + +// GetAlarmMessageFormatEnumValues Enumerates the set of values for AlarmMessageFormatEnum +func GetAlarmMessageFormatEnumValues() []AlarmMessageFormatEnum { + values := make([]AlarmMessageFormatEnum, 0) + for _, v := range mappingAlarmMessageFormatEnum { + values = append(values, v) + } + return values +} + +// GetAlarmMessageFormatEnumStringValues Enumerates the set of values in String for AlarmMessageFormatEnum +func GetAlarmMessageFormatEnumStringValues() []string { + return []string{ + "RAW", + "PRETTY_JSON", + "ONS_OPTIMIZED", + } +} + +// GetMappingAlarmMessageFormatEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmMessageFormatEnum(val string) (AlarmMessageFormatEnum, bool) { + enum, ok := mappingAlarmMessageFormatEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AlarmLifecycleStateEnum Enum with underlying type: string +type AlarmLifecycleStateEnum string + +// Set of constants representing the allowable values for AlarmLifecycleStateEnum +const ( + AlarmLifecycleStateActive AlarmLifecycleStateEnum = "ACTIVE" + AlarmLifecycleStateDeleting AlarmLifecycleStateEnum = "DELETING" + AlarmLifecycleStateDeleted AlarmLifecycleStateEnum = "DELETED" +) + +var mappingAlarmLifecycleStateEnum = map[string]AlarmLifecycleStateEnum{ + "ACTIVE": AlarmLifecycleStateActive, + "DELETING": AlarmLifecycleStateDeleting, + "DELETED": AlarmLifecycleStateDeleted, +} + +var mappingAlarmLifecycleStateEnumLowerCase = map[string]AlarmLifecycleStateEnum{ + "active": AlarmLifecycleStateActive, + "deleting": AlarmLifecycleStateDeleting, + "deleted": AlarmLifecycleStateDeleted, +} + +// GetAlarmLifecycleStateEnumValues Enumerates the set of values for AlarmLifecycleStateEnum +func GetAlarmLifecycleStateEnumValues() []AlarmLifecycleStateEnum { + values := make([]AlarmLifecycleStateEnum, 0) + for _, v := range mappingAlarmLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetAlarmLifecycleStateEnumStringValues Enumerates the set of values in String for AlarmLifecycleStateEnum +func GetAlarmLifecycleStateEnumStringValues() []string { + return []string{ + "ACTIVE", + "DELETING", + "DELETED", + } +} + +// GetMappingAlarmLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmLifecycleStateEnum(val string) (AlarmLifecycleStateEnum, bool) { + enum, ok := mappingAlarmLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_collection.go new file mode 100644 index 0000000000..0ec3753eb5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_collection.go @@ -0,0 +1,52 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AlarmDimensionStatesCollection The list of current alarm state entries for each metric stream that matches the filters. +type AlarmDimensionStatesCollection struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm to retrieve alarm state entries for. + AlarmId *string `mandatory:"true" json:"alarmId"` + + // Whether the alarm is enabled. + // Example: `true` + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // When set to `true`, splits notifications per metric stream. When set to `false`, groups notifications across metric streams. + // Example: `true` + IsNotificationsPerMetricDimensionEnabled *bool `mandatory:"true" json:"isNotificationsPerMetricDimensionEnabled"` + + // Array of alarm state entries. + Items []AlarmDimensionStatesEntry `mandatory:"true" json:"items"` +} + +func (m AlarmDimensionStatesCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AlarmDimensionStatesCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_entry.go new file mode 100644 index 0000000000..49a39a2cbd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_dimension_states_entry.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AlarmDimensionStatesEntry A timestamped alarm state entry for a metric stream. +type AlarmDimensionStatesEntry struct { + + // Indicator of the metric stream associated with the alarm state entry. Includes one or more dimension key-value pairs. + Dimensions map[string]string `mandatory:"true" json:"dimensions"` + + // Transition state (status value) associated with the alarm state entry. + // Example: `FIRING` + Status AlarmDimensionStatesEntryStatusEnum `mandatory:"true" json:"status"` + + // Transition time associated with the alarm state entry. Format defined by RFC3339. + // Example: `2022-02-01T01:02:29.600Z` + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m AlarmDimensionStatesEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AlarmDimensionStatesEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAlarmDimensionStatesEntryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetAlarmDimensionStatesEntryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AlarmDimensionStatesEntryStatusEnum Enum with underlying type: string +type AlarmDimensionStatesEntryStatusEnum string + +// Set of constants representing the allowable values for AlarmDimensionStatesEntryStatusEnum +const ( + AlarmDimensionStatesEntryStatusFiring AlarmDimensionStatesEntryStatusEnum = "FIRING" + AlarmDimensionStatesEntryStatusOk AlarmDimensionStatesEntryStatusEnum = "OK" +) + +var mappingAlarmDimensionStatesEntryStatusEnum = map[string]AlarmDimensionStatesEntryStatusEnum{ + "FIRING": AlarmDimensionStatesEntryStatusFiring, + "OK": AlarmDimensionStatesEntryStatusOk, +} + +var mappingAlarmDimensionStatesEntryStatusEnumLowerCase = map[string]AlarmDimensionStatesEntryStatusEnum{ + "firing": AlarmDimensionStatesEntryStatusFiring, + "ok": AlarmDimensionStatesEntryStatusOk, +} + +// GetAlarmDimensionStatesEntryStatusEnumValues Enumerates the set of values for AlarmDimensionStatesEntryStatusEnum +func GetAlarmDimensionStatesEntryStatusEnumValues() []AlarmDimensionStatesEntryStatusEnum { + values := make([]AlarmDimensionStatesEntryStatusEnum, 0) + for _, v := range mappingAlarmDimensionStatesEntryStatusEnum { + values = append(values, v) + } + return values +} + +// GetAlarmDimensionStatesEntryStatusEnumStringValues Enumerates the set of values in String for AlarmDimensionStatesEntryStatusEnum +func GetAlarmDimensionStatesEntryStatusEnumStringValues() []string { + return []string{ + "FIRING", + "OK", + } +} + +// GetMappingAlarmDimensionStatesEntryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmDimensionStatesEntryStatusEnum(val string) (AlarmDimensionStatesEntryStatusEnum, bool) { + enum, ok := mappingAlarmDimensionStatesEntryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_collection.go new file mode 100644 index 0000000000..ab3ac89538 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_collection.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AlarmHistoryCollection The configuration details for retrieving alarm history. +type AlarmHistoryCollection struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm for which to retrieve history. + AlarmId *string `mandatory:"true" json:"alarmId"` + + // Whether the alarm is enabled. + // Example: `true` + IsEnabled *bool `mandatory:"true" json:"isEnabled"` + + // The set of history entries retrieved for the alarm. + Entries []AlarmHistoryEntry `mandatory:"true" json:"entries"` +} + +func (m AlarmHistoryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AlarmHistoryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_entry.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_entry.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_entry.go index fb5e3e3f12..7b4ea1512b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_history_entry.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_history_entry.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // AlarmHistoryEntry An alarm history entry indicating a description of the entry and the time that the entry occurred. @@ -37,3 +39,15 @@ type AlarmHistoryEntry struct { func (m AlarmHistoryEntry) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AlarmHistoryEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_status_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_status_summary.go new file mode 100644 index 0000000000..b9cdece355 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_status_summary.go @@ -0,0 +1,173 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AlarmStatusSummary A summary of properties for the specified alarm and its current evaluation status. +// For information about alarms, see Alarms Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#AlarmsOverview). +// To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, +// talk to an administrator. If you're an administrator who needs to write policies to give users access, see +// Getting Started with Policies (https://docs.cloud.oracle.com/iaas/Content/Identity/Concepts/policygetstarted.htm). +// For information about endpoints and signing API requests, see +// About the API (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm). For information about available SDKs and tools, see +// SDKS and Other Tools (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/sdks.htm). +type AlarmStatusSummary struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm. + Id *string `mandatory:"true" json:"id"` + + // The configured name of the alarm. + // Example: `High CPU Utilization` + DisplayName *string `mandatory:"true" json:"displayName"` + + // The configured severity of the alarm. + // Example: `CRITICAL` + Severity AlarmStatusSummarySeverityEnum `mandatory:"true" json:"severity"` + + // Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. + // Note: A three-minute lag for this value accounts for any late-arriving metrics. + // Example: `2019-02-01T01:02:29.600Z` + TimestampTriggered *common.SDKTime `mandatory:"true" json:"timestampTriggered"` + + // The status of this alarm. + // Status is collective, across all metric streams in the alarm. + // To list alarm status for each metric stream, use RetrieveDimensionStates. + // The alarm attribute `isNotificationsPerMetricDimensionEnabled` must be set to `true`. + // Example: `FIRING` + Status AlarmStatusSummaryStatusEnum `mandatory:"true" json:"status"` + + // The configuration details for suppressing an alarm. + Suppression *Suppression `mandatory:"false" json:"suppression"` +} + +func (m AlarmStatusSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AlarmStatusSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAlarmStatusSummarySeverityEnum(string(m.Severity)); !ok && m.Severity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetAlarmStatusSummarySeverityEnumStringValues(), ","))) + } + if _, ok := GetMappingAlarmStatusSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetAlarmStatusSummaryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AlarmStatusSummarySeverityEnum Enum with underlying type: string +type AlarmStatusSummarySeverityEnum string + +// Set of constants representing the allowable values for AlarmStatusSummarySeverityEnum +const ( + AlarmStatusSummarySeverityCritical AlarmStatusSummarySeverityEnum = "CRITICAL" + AlarmStatusSummarySeverityError AlarmStatusSummarySeverityEnum = "ERROR" + AlarmStatusSummarySeverityWarning AlarmStatusSummarySeverityEnum = "WARNING" + AlarmStatusSummarySeverityInfo AlarmStatusSummarySeverityEnum = "INFO" +) + +var mappingAlarmStatusSummarySeverityEnum = map[string]AlarmStatusSummarySeverityEnum{ + "CRITICAL": AlarmStatusSummarySeverityCritical, + "ERROR": AlarmStatusSummarySeverityError, + "WARNING": AlarmStatusSummarySeverityWarning, + "INFO": AlarmStatusSummarySeverityInfo, +} + +var mappingAlarmStatusSummarySeverityEnumLowerCase = map[string]AlarmStatusSummarySeverityEnum{ + "critical": AlarmStatusSummarySeverityCritical, + "error": AlarmStatusSummarySeverityError, + "warning": AlarmStatusSummarySeverityWarning, + "info": AlarmStatusSummarySeverityInfo, +} + +// GetAlarmStatusSummarySeverityEnumValues Enumerates the set of values for AlarmStatusSummarySeverityEnum +func GetAlarmStatusSummarySeverityEnumValues() []AlarmStatusSummarySeverityEnum { + values := make([]AlarmStatusSummarySeverityEnum, 0) + for _, v := range mappingAlarmStatusSummarySeverityEnum { + values = append(values, v) + } + return values +} + +// GetAlarmStatusSummarySeverityEnumStringValues Enumerates the set of values in String for AlarmStatusSummarySeverityEnum +func GetAlarmStatusSummarySeverityEnumStringValues() []string { + return []string{ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + } +} + +// GetMappingAlarmStatusSummarySeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmStatusSummarySeverityEnum(val string) (AlarmStatusSummarySeverityEnum, bool) { + enum, ok := mappingAlarmStatusSummarySeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// AlarmStatusSummaryStatusEnum Enum with underlying type: string +type AlarmStatusSummaryStatusEnum string + +// Set of constants representing the allowable values for AlarmStatusSummaryStatusEnum +const ( + AlarmStatusSummaryStatusFiring AlarmStatusSummaryStatusEnum = "FIRING" + AlarmStatusSummaryStatusOk AlarmStatusSummaryStatusEnum = "OK" + AlarmStatusSummaryStatusSuspended AlarmStatusSummaryStatusEnum = "SUSPENDED" +) + +var mappingAlarmStatusSummaryStatusEnum = map[string]AlarmStatusSummaryStatusEnum{ + "FIRING": AlarmStatusSummaryStatusFiring, + "OK": AlarmStatusSummaryStatusOk, + "SUSPENDED": AlarmStatusSummaryStatusSuspended, +} + +var mappingAlarmStatusSummaryStatusEnumLowerCase = map[string]AlarmStatusSummaryStatusEnum{ + "firing": AlarmStatusSummaryStatusFiring, + "ok": AlarmStatusSummaryStatusOk, + "suspended": AlarmStatusSummaryStatusSuspended, +} + +// GetAlarmStatusSummaryStatusEnumValues Enumerates the set of values for AlarmStatusSummaryStatusEnum +func GetAlarmStatusSummaryStatusEnumValues() []AlarmStatusSummaryStatusEnum { + values := make([]AlarmStatusSummaryStatusEnum, 0) + for _, v := range mappingAlarmStatusSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetAlarmStatusSummaryStatusEnumStringValues Enumerates the set of values in String for AlarmStatusSummaryStatusEnum +func GetAlarmStatusSummaryStatusEnumStringValues() []string { + return []string{ + "FIRING", + "OK", + "SUSPENDED", + } +} + +// GetMappingAlarmStatusSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmStatusSummaryStatusEnum(val string) (AlarmStatusSummaryStatusEnum, bool) { + enum, ok := mappingAlarmStatusSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_summary.go similarity index 76% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_summary.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_summary.go index c1b3fdeee4..596b7db777 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/alarm_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/alarm_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // AlarmSummary A summary of properties for the specified alarm. @@ -97,6 +99,24 @@ func (m AlarmSummary) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AlarmSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAlarmSummarySeverityEnum(string(m.Severity)); !ok && m.Severity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetAlarmSummarySeverityEnumStringValues(), ","))) + } + if _, ok := GetMappingAlarmLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetAlarmLifecycleStateEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // AlarmSummarySeverityEnum Enum with underlying type: string type AlarmSummarySeverityEnum string @@ -108,18 +128,41 @@ const ( AlarmSummarySeverityInfo AlarmSummarySeverityEnum = "INFO" ) -var mappingAlarmSummarySeverity = map[string]AlarmSummarySeverityEnum{ +var mappingAlarmSummarySeverityEnum = map[string]AlarmSummarySeverityEnum{ "CRITICAL": AlarmSummarySeverityCritical, "ERROR": AlarmSummarySeverityError, "WARNING": AlarmSummarySeverityWarning, "INFO": AlarmSummarySeverityInfo, } +var mappingAlarmSummarySeverityEnumLowerCase = map[string]AlarmSummarySeverityEnum{ + "critical": AlarmSummarySeverityCritical, + "error": AlarmSummarySeverityError, + "warning": AlarmSummarySeverityWarning, + "info": AlarmSummarySeverityInfo, +} + // GetAlarmSummarySeverityEnumValues Enumerates the set of values for AlarmSummarySeverityEnum func GetAlarmSummarySeverityEnumValues() []AlarmSummarySeverityEnum { values := make([]AlarmSummarySeverityEnum, 0) - for _, v := range mappingAlarmSummarySeverity { + for _, v := range mappingAlarmSummarySeverityEnum { values = append(values, v) } return values } + +// GetAlarmSummarySeverityEnumStringValues Enumerates the set of values in String for AlarmSummarySeverityEnum +func GetAlarmSummarySeverityEnumStringValues() []string { + return []string{ + "CRITICAL", + "ERROR", + "WARNING", + "INFO", + } +} + +// GetMappingAlarmSummarySeverityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingAlarmSummarySeverityEnum(val string) (AlarmSummarySeverityEnum, bool) { + enum, ok := mappingAlarmSummarySeverityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_details.go new file mode 100644 index 0000000000..ef244fa7e0 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_details.go @@ -0,0 +1,41 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeAlarmCompartmentDetails The configuration details for moving an alarm. +type ChangeAlarmCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to move the alarm to. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeAlarmCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeAlarmCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go similarity index 85% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go index 04fb39b68c..b6713743ac 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/change_alarm_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/change_alarm_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeAlarmCompartmentRequest wrapper for the ChangeAlarmCompartment operation @@ -46,6 +48,10 @@ func (request ChangeAlarmCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeAlarmCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -61,6 +67,17 @@ func (request ChangeAlarmCompartmentRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeAlarmCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeAlarmCompartmentResponse wrapper for the ChangeAlarmCompartment operation type ChangeAlarmCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/create_alarm_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/create_alarm_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_details.go index 2cefc250c3..21451f984e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/create_alarm_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateAlarmDetails The configuration details for creating an alarm. @@ -105,6 +107,10 @@ type CreateAlarmDetails struct { // Example: `High CPU usage alert. Follow runbook instructions for resolution.` Body *string `mandatory:"false" json:"body"` + // When set to `true`, splits notifications per metric stream. When set to `false`, groups notifications across metric streams. + // Example: `true` + IsNotificationsPerMetricDimensionEnabled *bool `mandatory:"false" json:"isNotificationsPerMetricDimensionEnabled"` + // The format to use for notification messages sent from this alarm. The formats are: // * `RAW` - Raw JSON blob. Default value. // * `PRETTY_JSON`: JSON with new lines and indents. @@ -134,6 +140,24 @@ func (m CreateAlarmDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateAlarmDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAlarmSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetAlarmSeverityEnumStringValues(), ","))) + } + + if _, ok := GetMappingCreateAlarmDetailsMessageFormatEnum(string(m.MessageFormat)); !ok && m.MessageFormat != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MessageFormat: %s. Supported values are: %s.", m.MessageFormat, strings.Join(GetCreateAlarmDetailsMessageFormatEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateAlarmDetailsMessageFormatEnum Enum with underlying type: string type CreateAlarmDetailsMessageFormatEnum string @@ -144,17 +168,38 @@ const ( CreateAlarmDetailsMessageFormatOnsOptimized CreateAlarmDetailsMessageFormatEnum = "ONS_OPTIMIZED" ) -var mappingCreateAlarmDetailsMessageFormat = map[string]CreateAlarmDetailsMessageFormatEnum{ +var mappingCreateAlarmDetailsMessageFormatEnum = map[string]CreateAlarmDetailsMessageFormatEnum{ "RAW": CreateAlarmDetailsMessageFormatRaw, "PRETTY_JSON": CreateAlarmDetailsMessageFormatPrettyJson, "ONS_OPTIMIZED": CreateAlarmDetailsMessageFormatOnsOptimized, } +var mappingCreateAlarmDetailsMessageFormatEnumLowerCase = map[string]CreateAlarmDetailsMessageFormatEnum{ + "raw": CreateAlarmDetailsMessageFormatRaw, + "pretty_json": CreateAlarmDetailsMessageFormatPrettyJson, + "ons_optimized": CreateAlarmDetailsMessageFormatOnsOptimized, +} + // GetCreateAlarmDetailsMessageFormatEnumValues Enumerates the set of values for CreateAlarmDetailsMessageFormatEnum func GetCreateAlarmDetailsMessageFormatEnumValues() []CreateAlarmDetailsMessageFormatEnum { values := make([]CreateAlarmDetailsMessageFormatEnum, 0) - for _, v := range mappingCreateAlarmDetailsMessageFormat { + for _, v := range mappingCreateAlarmDetailsMessageFormatEnum { values = append(values, v) } return values } + +// GetCreateAlarmDetailsMessageFormatEnumStringValues Enumerates the set of values in String for CreateAlarmDetailsMessageFormatEnum +func GetCreateAlarmDetailsMessageFormatEnumStringValues() []string { + return []string{ + "RAW", + "PRETTY_JSON", + "ONS_OPTIMIZED", + } +} + +// GetMappingCreateAlarmDetailsMessageFormatEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingCreateAlarmDetailsMessageFormatEnum(val string) (CreateAlarmDetailsMessageFormatEnum, bool) { + enum, ok := mappingCreateAlarmDetailsMessageFormatEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/create_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/create_alarm_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go index b726fc9d0e..d513d5f6d5 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/create_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/create_alarm_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateAlarmRequest wrapper for the CreateAlarm operation @@ -38,6 +40,10 @@ func (request CreateAlarmRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateAlarmRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateAlarmRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateAlarmResponse wrapper for the CreateAlarm operation type CreateAlarmResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/datapoint.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/datapoint.go new file mode 100644 index 0000000000..bf34320aae --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/datapoint.go @@ -0,0 +1,50 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Datapoint Metric value for a specific timestamp. +type Datapoint struct { + + // Timestamp for this metric value. Format defined by RFC3339. + // Example: `2019-02-01T01:02:29.600Z` + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` + + // Numeric value of the metric. + // Example: `10.23` + Value *float64 `mandatory:"true" json:"value"` + + // The number of occurrences of the associated value in the set of data. + // Default is 1. Value must be greater than zero. + Count *int `mandatory:"false" json:"count"` +} + +func (m Datapoint) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Datapoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/delete_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/delete_alarm_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go index dab9308154..53373b7f9e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/delete_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/delete_alarm_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteAlarmRequest wrapper for the DeleteAlarm operation @@ -36,6 +38,10 @@ func (request DeleteAlarmRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request DeleteAlarmRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteAlarmRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteAlarmResponse wrapper for the DeleteAlarm operation type DeleteAlarmResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/failed_metric_record.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/failed_metric_record.go new file mode 100644 index 0000000000..7c03738d59 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/failed_metric_record.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// FailedMetricRecord The record of a single metric object that failed input validation and the reason for the failure. +type FailedMetricRecord struct { + + // An error message indicating the reason that the indicated metric object failed input validation. + Message *string `mandatory:"true" json:"message"` + + // Identifier of a metric object that failed input validation. + MetricData *MetricDataDetails `mandatory:"true" json:"metricData"` +} + +func (m FailedMetricRecord) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m FailedMetricRecord) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_history_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_history_request_response.go new file mode 100644 index 0000000000..3e5d86dfcf --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_history_request_response.go @@ -0,0 +1,159 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetAlarmHistoryRequest wrapper for the GetAlarmHistory operation +type GetAlarmHistoryRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` + + // Customer part of the request identifier token. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The type of history entries to retrieve. State history (STATE_HISTORY) or state transition history (STATE_TRANSITION_HISTORY). + // If not specified, entries of both types are retrieved. + // Example: `STATE_HISTORY` + AlarmHistorytype GetAlarmHistoryAlarmHistorytypeEnum `mandatory:"false" contributesTo:"query" name:"alarmHistorytype" omitEmpty:"true"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Default: 1000 + // Example: 500 + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to return only alarm history entries with timestamps occurring on or after the specified date and time. Format defined by RFC3339. + // Example: `2019-01-01T01:00:00.789Z` + TimestampGreaterThanOrEqualTo *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timestampGreaterThanOrEqualTo"` + + // A filter to return only alarm history entries with timestamps occurring before the specified date and time. Format defined by RFC3339. + // Example: `2019-01-02T01:00:00.789Z` + TimestampLessThan *common.SDKTime `mandatory:"false" contributesTo:"query" name:"timestampLessThan"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetAlarmHistoryRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetAlarmHistoryRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetAlarmHistoryRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetAlarmHistoryRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAlarmHistoryRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingGetAlarmHistoryAlarmHistorytypeEnum(string(request.AlarmHistorytype)); !ok && request.AlarmHistorytype != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for AlarmHistorytype: %s. Supported values are: %s.", request.AlarmHistorytype, strings.Join(GetGetAlarmHistoryAlarmHistorytypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetAlarmHistoryResponse wrapper for the GetAlarmHistory operation +type GetAlarmHistoryResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of AlarmHistoryCollection instances + AlarmHistoryCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response GetAlarmHistoryResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetAlarmHistoryResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// GetAlarmHistoryAlarmHistorytypeEnum Enum with underlying type: string +type GetAlarmHistoryAlarmHistorytypeEnum string + +// Set of constants representing the allowable values for GetAlarmHistoryAlarmHistorytypeEnum +const ( + GetAlarmHistoryAlarmHistorytypeHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_HISTORY" + GetAlarmHistoryAlarmHistorytypeTransitionHistory GetAlarmHistoryAlarmHistorytypeEnum = "STATE_TRANSITION_HISTORY" +) + +var mappingGetAlarmHistoryAlarmHistorytypeEnum = map[string]GetAlarmHistoryAlarmHistorytypeEnum{ + "STATE_HISTORY": GetAlarmHistoryAlarmHistorytypeHistory, + "STATE_TRANSITION_HISTORY": GetAlarmHistoryAlarmHistorytypeTransitionHistory, +} + +var mappingGetAlarmHistoryAlarmHistorytypeEnumLowerCase = map[string]GetAlarmHistoryAlarmHistorytypeEnum{ + "state_history": GetAlarmHistoryAlarmHistorytypeHistory, + "state_transition_history": GetAlarmHistoryAlarmHistorytypeTransitionHistory, +} + +// GetGetAlarmHistoryAlarmHistorytypeEnumValues Enumerates the set of values for GetAlarmHistoryAlarmHistorytypeEnum +func GetGetAlarmHistoryAlarmHistorytypeEnumValues() []GetAlarmHistoryAlarmHistorytypeEnum { + values := make([]GetAlarmHistoryAlarmHistorytypeEnum, 0) + for _, v := range mappingGetAlarmHistoryAlarmHistorytypeEnum { + values = append(values, v) + } + return values +} + +// GetGetAlarmHistoryAlarmHistorytypeEnumStringValues Enumerates the set of values in String for GetAlarmHistoryAlarmHistorytypeEnum +func GetGetAlarmHistoryAlarmHistorytypeEnumStringValues() []string { + return []string{ + "STATE_HISTORY", + "STATE_TRANSITION_HISTORY", + } +} + +// GetMappingGetAlarmHistoryAlarmHistorytypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingGetAlarmHistoryAlarmHistorytypeEnum(val string) (GetAlarmHistoryAlarmHistorytypeEnum, bool) { + enum, ok := mappingGetAlarmHistoryAlarmHistorytypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go similarity index 80% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go index 22a5e5baf8..3c5ac1db82 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/get_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/get_alarm_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetAlarmRequest wrapper for the GetAlarm operation @@ -31,6 +33,10 @@ func (request GetAlarmRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetAlarmRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetAlarmRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetAlarmResponse wrapper for the GetAlarm operation type GetAlarmResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_request_response.go new file mode 100644 index 0000000000..c81641711b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_request_response.go @@ -0,0 +1,219 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAlarmsRequest wrapper for the ListAlarms operation +type ListAlarmsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // resources monitored by the metric that you are searching for. Use tenancyId to search in + // the root compartment. + // Example: `ocid1.compartment.oc1..exampleuniqueID` + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Customer part of the request identifier token. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Default: 1000 + // Example: 500 + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to return only resources that match the given display name exactly. + // Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // A filter to return only alarms that match the given lifecycle state exactly. When not specified, only alarms in the ACTIVE lifecycle state are listed. + LifecycleState AlarmLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // The field to use when sorting returned alarm definitions. Only one sorting level is provided. + // Example: `severity` + SortBy ListAlarmsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use when sorting returned alarm definitions. Ascending (ASC) or descending (DESC). + // Example: `ASC` + SortOrder ListAlarmsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // When true, returns resources from all compartments and subcompartments. The parameter can + // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). + // A true value requires the user to have tenancy-level permissions. If this requirement is not met, + // then the call is rejected. When false, returns resources from only the compartment specified in + // compartmentId. Default is false. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAlarmsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAlarmsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListAlarmsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAlarmsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAlarmsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingAlarmLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetAlarmLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListAlarmsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListAlarmsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListAlarmsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListAlarmsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAlarmsResponse wrapper for the ListAlarms operation +type ListAlarmsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AlarmSummary instances + Items []AlarmSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAlarmsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAlarmsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAlarmsSortByEnum Enum with underlying type: string +type ListAlarmsSortByEnum string + +// Set of constants representing the allowable values for ListAlarmsSortByEnum +const ( + ListAlarmsSortByDisplayname ListAlarmsSortByEnum = "displayName" + ListAlarmsSortBySeverity ListAlarmsSortByEnum = "severity" +) + +var mappingListAlarmsSortByEnum = map[string]ListAlarmsSortByEnum{ + "displayName": ListAlarmsSortByDisplayname, + "severity": ListAlarmsSortBySeverity, +} + +var mappingListAlarmsSortByEnumLowerCase = map[string]ListAlarmsSortByEnum{ + "displayname": ListAlarmsSortByDisplayname, + "severity": ListAlarmsSortBySeverity, +} + +// GetListAlarmsSortByEnumValues Enumerates the set of values for ListAlarmsSortByEnum +func GetListAlarmsSortByEnumValues() []ListAlarmsSortByEnum { + values := make([]ListAlarmsSortByEnum, 0) + for _, v := range mappingListAlarmsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListAlarmsSortByEnumStringValues Enumerates the set of values in String for ListAlarmsSortByEnum +func GetListAlarmsSortByEnumStringValues() []string { + return []string{ + "displayName", + "severity", + } +} + +// GetMappingListAlarmsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAlarmsSortByEnum(val string) (ListAlarmsSortByEnum, bool) { + enum, ok := mappingListAlarmsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAlarmsSortOrderEnum Enum with underlying type: string +type ListAlarmsSortOrderEnum string + +// Set of constants representing the allowable values for ListAlarmsSortOrderEnum +const ( + ListAlarmsSortOrderAsc ListAlarmsSortOrderEnum = "ASC" + ListAlarmsSortOrderDesc ListAlarmsSortOrderEnum = "DESC" +) + +var mappingListAlarmsSortOrderEnum = map[string]ListAlarmsSortOrderEnum{ + "ASC": ListAlarmsSortOrderAsc, + "DESC": ListAlarmsSortOrderDesc, +} + +var mappingListAlarmsSortOrderEnumLowerCase = map[string]ListAlarmsSortOrderEnum{ + "asc": ListAlarmsSortOrderAsc, + "desc": ListAlarmsSortOrderDesc, +} + +// GetListAlarmsSortOrderEnumValues Enumerates the set of values for ListAlarmsSortOrderEnum +func GetListAlarmsSortOrderEnumValues() []ListAlarmsSortOrderEnum { + values := make([]ListAlarmsSortOrderEnum, 0) + for _, v := range mappingListAlarmsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAlarmsSortOrderEnumStringValues Enumerates the set of values in String for ListAlarmsSortOrderEnum +func GetListAlarmsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAlarmsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAlarmsSortOrderEnum(val string) (ListAlarmsSortOrderEnum, bool) { + enum, ok := mappingListAlarmsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_status_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_status_request_response.go new file mode 100644 index 0000000000..9d489d2165 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_alarms_status_request_response.go @@ -0,0 +1,213 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListAlarmsStatusRequest wrapper for the ListAlarmsStatus operation +type ListAlarmsStatusRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment containing the + // resources monitored by the metric that you are searching for. Use tenancyId to search in + // the root compartment. + // Example: `ocid1.compartment.oc1..exampleuniqueID` + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // Customer part of the request identifier token. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // When true, returns resources from all compartments and subcompartments. The parameter can + // only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). + // A true value requires the user to have tenancy-level permissions. If this requirement is not met, + // then the call is rejected. When false, returns resources from only the compartment specified in + // compartmentId. Default is false. + CompartmentIdInSubtree *bool `mandatory:"false" contributesTo:"query" name:"compartmentIdInSubtree"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Default: 1000 + // Example: 500 + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // A filter to return only resources that match the given display name exactly. + // Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // The field to use when sorting returned alarm definitions. Only one sorting level is provided. + // Example: `severity` + SortBy ListAlarmsStatusSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The sort order to use when sorting returned alarm definitions. Ascending (ASC) or descending (DESC). + // Example: `ASC` + SortOrder ListAlarmsStatusSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListAlarmsStatusRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListAlarmsStatusRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListAlarmsStatusRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListAlarmsStatusRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListAlarmsStatusRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListAlarmsStatusSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListAlarmsStatusSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListAlarmsStatusSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListAlarmsStatusSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListAlarmsStatusResponse wrapper for the ListAlarmsStatus operation +type ListAlarmsStatusResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of []AlarmStatusSummary instances + Items []AlarmStatusSummary `presentIn:"body"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListAlarmsStatusResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListAlarmsStatusResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListAlarmsStatusSortByEnum Enum with underlying type: string +type ListAlarmsStatusSortByEnum string + +// Set of constants representing the allowable values for ListAlarmsStatusSortByEnum +const ( + ListAlarmsStatusSortByDisplayname ListAlarmsStatusSortByEnum = "displayName" + ListAlarmsStatusSortBySeverity ListAlarmsStatusSortByEnum = "severity" +) + +var mappingListAlarmsStatusSortByEnum = map[string]ListAlarmsStatusSortByEnum{ + "displayName": ListAlarmsStatusSortByDisplayname, + "severity": ListAlarmsStatusSortBySeverity, +} + +var mappingListAlarmsStatusSortByEnumLowerCase = map[string]ListAlarmsStatusSortByEnum{ + "displayname": ListAlarmsStatusSortByDisplayname, + "severity": ListAlarmsStatusSortBySeverity, +} + +// GetListAlarmsStatusSortByEnumValues Enumerates the set of values for ListAlarmsStatusSortByEnum +func GetListAlarmsStatusSortByEnumValues() []ListAlarmsStatusSortByEnum { + values := make([]ListAlarmsStatusSortByEnum, 0) + for _, v := range mappingListAlarmsStatusSortByEnum { + values = append(values, v) + } + return values +} + +// GetListAlarmsStatusSortByEnumStringValues Enumerates the set of values in String for ListAlarmsStatusSortByEnum +func GetListAlarmsStatusSortByEnumStringValues() []string { + return []string{ + "displayName", + "severity", + } +} + +// GetMappingListAlarmsStatusSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAlarmsStatusSortByEnum(val string) (ListAlarmsStatusSortByEnum, bool) { + enum, ok := mappingListAlarmsStatusSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListAlarmsStatusSortOrderEnum Enum with underlying type: string +type ListAlarmsStatusSortOrderEnum string + +// Set of constants representing the allowable values for ListAlarmsStatusSortOrderEnum +const ( + ListAlarmsStatusSortOrderAsc ListAlarmsStatusSortOrderEnum = "ASC" + ListAlarmsStatusSortOrderDesc ListAlarmsStatusSortOrderEnum = "DESC" +) + +var mappingListAlarmsStatusSortOrderEnum = map[string]ListAlarmsStatusSortOrderEnum{ + "ASC": ListAlarmsStatusSortOrderAsc, + "DESC": ListAlarmsStatusSortOrderDesc, +} + +var mappingListAlarmsStatusSortOrderEnumLowerCase = map[string]ListAlarmsStatusSortOrderEnum{ + "asc": ListAlarmsStatusSortOrderAsc, + "desc": ListAlarmsStatusSortOrderDesc, +} + +// GetListAlarmsStatusSortOrderEnumValues Enumerates the set of values for ListAlarmsStatusSortOrderEnum +func GetListAlarmsStatusSortOrderEnumValues() []ListAlarmsStatusSortOrderEnum { + values := make([]ListAlarmsStatusSortOrderEnum, 0) + for _, v := range mappingListAlarmsStatusSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListAlarmsStatusSortOrderEnumStringValues Enumerates the set of values in String for ListAlarmsStatusSortOrderEnum +func GetListAlarmsStatusSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListAlarmsStatusSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListAlarmsStatusSortOrderEnum(val string) (ListAlarmsStatusSortOrderEnum, bool) { + enum, ok := mappingListAlarmsStatusSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_details.go new file mode 100644 index 0000000000..b7fe52c820 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_details.go @@ -0,0 +1,168 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ListMetricsDetails The request details for retrieving metric definitions. Specify optional properties to filter the returned results. +// Use an asterisk (*) as a wildcard character, placed anywhere in the string. +// For example, to search for all metrics with names that begin with "disk", specify "name" as "disk*". +// If no properties are specified, then all metric definitions within the request scope are returned. +type ListMetricsDetails struct { + + // The metric name to use when searching for metric definitions. + // Example: `CpuUtilization` + Name *string `mandatory:"false" json:"name"` + + // The source service or application to use when searching for metric definitions. + // Example: `oci_computeagent` + Namespace *string `mandatory:"false" json:"namespace"` + + // Resource group that you want to match. A null value returns only metric data that has no resource groups. The specified resource group must exist in the definition of the posted metric. Only one resource group can be applied per metric. + // A valid resourceGroup value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($). + // Example: `frontend-fleet` + ResourceGroup *string `mandatory:"false" json:"resourceGroup"` + + // Qualifiers that you want to use when searching for metric definitions. + // Available dimensions vary by metric namespace. Each dimension takes the form of a key-value pair. + // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` + DimensionFilters map[string]string `mandatory:"false" json:"dimensionFilters"` + + // Group metrics by these fields in the response. For example, to list all metric namespaces available + // in a compartment, groupBy the "namespace" field. Supported fields: namespace, name, resourceGroup. + // Example - group by namespace: + // `[ "namespace" ]` + GroupBy []string `mandatory:"false" json:"groupBy"` + + // The field to use when sorting returned metric definitions. Only one sorting level is provided. + // Example: `NAMESPACE` + SortBy ListMetricsDetailsSortByEnum `mandatory:"false" json:"sortBy,omitempty"` + + // The sort order to use when sorting returned metric definitions. Ascending (ASC) or + // descending (DESC). + // Example: `ASC` + SortOrder ListMetricsDetailsSortOrderEnum `mandatory:"false" json:"sortOrder,omitempty"` +} + +func (m ListMetricsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ListMetricsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingListMetricsDetailsSortByEnum(string(m.SortBy)); !ok && m.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", m.SortBy, strings.Join(GetListMetricsDetailsSortByEnumStringValues(), ","))) + } + if _, ok := GetMappingListMetricsDetailsSortOrderEnum(string(m.SortOrder)); !ok && m.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", m.SortOrder, strings.Join(GetListMetricsDetailsSortOrderEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListMetricsDetailsSortByEnum Enum with underlying type: string +type ListMetricsDetailsSortByEnum string + +// Set of constants representing the allowable values for ListMetricsDetailsSortByEnum +const ( + ListMetricsDetailsSortByNamespace ListMetricsDetailsSortByEnum = "NAMESPACE" + ListMetricsDetailsSortByName ListMetricsDetailsSortByEnum = "NAME" + ListMetricsDetailsSortByResourcegroup ListMetricsDetailsSortByEnum = "RESOURCEGROUP" +) + +var mappingListMetricsDetailsSortByEnum = map[string]ListMetricsDetailsSortByEnum{ + "NAMESPACE": ListMetricsDetailsSortByNamespace, + "NAME": ListMetricsDetailsSortByName, + "RESOURCEGROUP": ListMetricsDetailsSortByResourcegroup, +} + +var mappingListMetricsDetailsSortByEnumLowerCase = map[string]ListMetricsDetailsSortByEnum{ + "namespace": ListMetricsDetailsSortByNamespace, + "name": ListMetricsDetailsSortByName, + "resourcegroup": ListMetricsDetailsSortByResourcegroup, +} + +// GetListMetricsDetailsSortByEnumValues Enumerates the set of values for ListMetricsDetailsSortByEnum +func GetListMetricsDetailsSortByEnumValues() []ListMetricsDetailsSortByEnum { + values := make([]ListMetricsDetailsSortByEnum, 0) + for _, v := range mappingListMetricsDetailsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListMetricsDetailsSortByEnumStringValues Enumerates the set of values in String for ListMetricsDetailsSortByEnum +func GetListMetricsDetailsSortByEnumStringValues() []string { + return []string{ + "NAMESPACE", + "NAME", + "RESOURCEGROUP", + } +} + +// GetMappingListMetricsDetailsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMetricsDetailsSortByEnum(val string) (ListMetricsDetailsSortByEnum, bool) { + enum, ok := mappingListMetricsDetailsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListMetricsDetailsSortOrderEnum Enum with underlying type: string +type ListMetricsDetailsSortOrderEnum string + +// Set of constants representing the allowable values for ListMetricsDetailsSortOrderEnum +const ( + ListMetricsDetailsSortOrderAsc ListMetricsDetailsSortOrderEnum = "ASC" + ListMetricsDetailsSortOrderDesc ListMetricsDetailsSortOrderEnum = "DESC" +) + +var mappingListMetricsDetailsSortOrderEnum = map[string]ListMetricsDetailsSortOrderEnum{ + "ASC": ListMetricsDetailsSortOrderAsc, + "DESC": ListMetricsDetailsSortOrderDesc, +} + +var mappingListMetricsDetailsSortOrderEnumLowerCase = map[string]ListMetricsDetailsSortOrderEnum{ + "asc": ListMetricsDetailsSortOrderAsc, + "desc": ListMetricsDetailsSortOrderDesc, +} + +// GetListMetricsDetailsSortOrderEnumValues Enumerates the set of values for ListMetricsDetailsSortOrderEnum +func GetListMetricsDetailsSortOrderEnumValues() []ListMetricsDetailsSortOrderEnum { + values := make([]ListMetricsDetailsSortOrderEnum, 0) + for _, v := range mappingListMetricsDetailsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListMetricsDetailsSortOrderEnumStringValues Enumerates the set of values in String for ListMetricsDetailsSortOrderEnum +func GetListMetricsDetailsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListMetricsDetailsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListMetricsDetailsSortOrderEnum(val string) (ListMetricsDetailsSortOrderEnum, bool) { + enum, ok := mappingListMetricsDetailsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go similarity index 87% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go index 61b45f4f8f..c3cfe588c4 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/list_metrics_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/list_metrics_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ListMetricsRequest wrapper for the ListMetrics operation @@ -54,6 +56,10 @@ func (request ListMetricsRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ListMetricsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -69,6 +75,17 @@ func (request ListMetricsRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListMetricsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ListMetricsResponse wrapper for the ListMetrics operation type ListMetricsResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go index a0ccbee970..3f5be3d603 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Metric The properties that define a metric. @@ -45,3 +47,15 @@ type Metric struct { func (m Metric) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Metric) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric_data.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data.go similarity index 88% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric_data.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data.go index 1b1e7d8c47..e19fccd14e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric_data.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // MetricData The set of aggregated data returned for a metric. @@ -24,7 +26,7 @@ import ( // * Time range returned for 1-hour resolution: 90 days. // * Time range returned for 5-minute resolution: 30 days. // * Time range returned for 1-minute resolution: 7 days. -// *A metric stream is an individual set of aggregated data for a metric, typically specific to a single resource. +// *A metric stream is an individual set of aggregated data for a metric with zero or more dimension values. // Metric streams cannot be aggregated across metric groups. // A metric group is the combination of a given metric, metric namespace, and tenancy for the purpose of determining limits. // For more information about metric-related concepts, see Monitoring Concepts (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts). @@ -73,3 +75,15 @@ type MetricData struct { func (m MetricData) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MetricData) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data_details.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric_data_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data_details.go index a4bfe1488d..a223b1aacf 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/metric_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/metric_data_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // MetricDataDetails A metric object containing raw metric data points to be posted to the Monitoring service. @@ -35,8 +37,8 @@ type MetricDataDetails struct { // Qualifiers provided in a metric definition. Available dimensions vary by metric namespace. // Each dimension takes the form of a key-value pair. - // A valid dimension key includes only printable ASCII, excluding periods (.) and spaces. The character limit for a dimension key is 256. - // A valid dimension value includes only Unicode characters. The character limit for a dimension value is 256. + // A valid dimension key includes only printable ASCII, excluding spaces. The character limit for a dimension key is 256. + // A valid dimension value includes only Unicode characters. The character limit for a dimension value is 512. // Empty strings are not allowed for keys or values. Avoid entering confidential information. // Example: `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"` Dimensions map[string]string `mandatory:"true" json:"dimensions"` @@ -59,3 +61,15 @@ type MetricDataDetails struct { func (m MetricDataDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m MetricDataDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/monitoring_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/monitoring_client.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/monitoring_client.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/monitoring_client.go index 7ac5256642..2750466b03 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/monitoring_client.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/monitoring_client.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -14,8 +14,8 @@ package monitoring import ( "context" "fmt" - "github.com/oracle/oci-go-sdk/v49/common" - "github.com/oracle/oci-go-sdk/v49/common/auth" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" "net/http" ) @@ -52,6 +52,8 @@ func NewMonitoringClientWithOboToken(configProvider common.ConfigurationProvider } func newMonitoringClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client MonitoringClient, err error) { + // Monitoring service default circuit breaker is enabled + baseClient.Configuration.CircuitBreaker = common.NewCircuitBreaker(common.DefaultCircuitBreakerSettingWithServiceName("Monitoring")) common.ConfigCircuitBreakerFromEnvVar(&baseClient) common.ConfigCircuitBreakerFromGlobalVar(&baseClient) @@ -75,6 +77,9 @@ func (client *MonitoringClient) setConfigurationProvider(configProvider common.C // Error has been checked already region, _ := configProvider.Region() client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } client.config = &configProvider return nil } @@ -134,6 +139,8 @@ func (client MonitoringClient) changeAlarmCompartment(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Alarm/ChangeAlarmCompartment" + err = common.PostProcessServiceError(err, "Monitoring", "ChangeAlarmCompartment", apiReferenceLink) return response, err } @@ -194,6 +201,8 @@ func (client MonitoringClient) createAlarm(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Alarm/CreateAlarm" + err = common.PostProcessServiceError(err, "Monitoring", "CreateAlarm", apiReferenceLink) return response, err } @@ -249,6 +258,8 @@ func (client MonitoringClient) deleteAlarm(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Alarm/DeleteAlarm" + err = common.PostProcessServiceError(err, "Monitoring", "DeleteAlarm", apiReferenceLink) return response, err } @@ -304,6 +315,8 @@ func (client MonitoringClient) getAlarm(ctx context.Context, request common.OCIR defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Alarm/GetAlarm" + err = common.PostProcessServiceError(err, "Monitoring", "GetAlarm", apiReferenceLink) return response, err } @@ -359,6 +372,8 @@ func (client MonitoringClient) getAlarmHistory(ctx context.Context, request comm defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/AlarmHistoryCollection/GetAlarmHistory" + err = common.PostProcessServiceError(err, "Monitoring", "GetAlarmHistory", apiReferenceLink) return response, err } @@ -414,6 +429,8 @@ func (client MonitoringClient) listAlarms(ctx context.Context, request common.OC defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/AlarmSummary/ListAlarms" + err = common.PostProcessServiceError(err, "Monitoring", "ListAlarms", apiReferenceLink) return response, err } @@ -422,6 +439,9 @@ func (client MonitoringClient) listAlarms(ctx context.Context, request common.OC } // ListAlarmsStatus List the status of each alarm in the specified compartment. +// Status is collective, across all metric streams in the alarm. +// To list alarm status for each metric stream, use RetrieveDimensionStates. +// The alarm attribute `isNotificationsPerMetricDimensionEnabled` must be set to `true`. // For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). // This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. // Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, @@ -469,6 +489,8 @@ func (client MonitoringClient) listAlarmsStatus(ctx context.Context, request com defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/AlarmStatusSummary/ListAlarmsStatus" + err = common.PostProcessServiceError(err, "Monitoring", "ListAlarmsStatus", apiReferenceLink) return response, err } @@ -523,6 +545,8 @@ func (client MonitoringClient) listMetrics(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Metric/ListMetrics" + err = common.PostProcessServiceError(err, "Monitoring", "ListMetrics", apiReferenceLink) return response, err } @@ -539,7 +563,7 @@ func (client MonitoringClient) listMetrics(ctx context.Context, request common.O // * Transactions Per Second (TPS) per-tenancy limit for this operation: 50. // *A metric group is the combination of a given metric, metric namespace, and tenancy for the purpose of determining limits. // A dimension is a qualifier provided in a metric definition. -// A metric stream is an individual set of aggregated data for a metric, typically specific to a resource. +// A metric stream is an individual set of aggregated data for a metric with zero or more dimension values. // For more information about metric-related concepts, see Monitoring Concepts (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#concepts). // The endpoints for this operation differ from other Monitoring operations. Replace the string `telemetry` with `telemetry-ingestion` in the endpoint, as in the following example: // https://telemetry-ingestion.eu-frankfurt-1.oraclecloud.com @@ -586,6 +610,8 @@ func (client MonitoringClient) postMetricData(ctx context.Context, request commo defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/MetricData/PostMetricData" + err = common.PostProcessServiceError(err, "Monitoring", "PostMetricData", apiReferenceLink) return response, err } @@ -641,6 +667,69 @@ func (client MonitoringClient) removeAlarmSuppression(ctx context.Context, reque defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Suppression/RemoveAlarmSuppression" + err = common.PostProcessServiceError(err, "Monitoring", "RemoveAlarmSuppression", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// RetrieveDimensionStates Lists the current alarm status of each metric stream, where status is derived from the metric stream's last associated transition. +// Optionally filter by status value and one or more dimension key-value pairs. +// This operation is only valid for alarms that have notifications per dimension enabled (`isNotificationsPerMetricDimensionEnabled=true`). +// If `isNotificationsPerMetricDimensionEnabled` for the alarm is false or null, then no results are returned. +// For important limits information, see Limits on Monitoring (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#Limits). +// +// This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. +// Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, +// or transactions, per second (TPS) for a given tenancy. +func (client MonitoringClient) RetrieveDimensionStates(ctx context.Context, request RetrieveDimensionStatesRequest) (response RetrieveDimensionStatesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.NoRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.retrieveDimensionStates, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RetrieveDimensionStatesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RetrieveDimensionStatesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RetrieveDimensionStatesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RetrieveDimensionStatesResponse") + } + return +} + +// retrieveDimensionStates implements the OCIOperation interface (enables retrying operations) +func (client MonitoringClient) retrieveDimensionStates(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/alarms/{alarmId}/actions/retrieveDimensionStates", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RetrieveDimensionStatesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/AlarmDimensionStatesCollection/RetrieveDimensionStates" + err = common.PostProcessServiceError(err, "Monitoring", "RetrieveDimensionStates", apiReferenceLink) return response, err } @@ -695,6 +784,8 @@ func (client MonitoringClient) summarizeMetricsData(ctx context.Context, request defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/MetricData/SummarizeMetricsData" + err = common.PostProcessServiceError(err, "Monitoring", "SummarizeMetricsData", apiReferenceLink) return response, err } @@ -750,6 +841,8 @@ func (client MonitoringClient) updateAlarm(ctx context.Context, request common.O defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/monitoring/20180401/Alarm/UpdateAlarm" + err = common.PostProcessServiceError(err, "Monitoring", "UpdateAlarm", apiReferenceLink) return response, err } diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_details.go new file mode 100644 index 0000000000..8367a1364d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_details.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PostMetricDataDetails An array of metric objects containing raw metric data points to be posted to the Monitoring service. +type PostMetricDataDetails struct { + + // A metric object containing raw metric data points to be posted to the Monitoring service. + MetricData []MetricDataDetails `mandatory:"true" json:"metricData"` + + // Batch atomicity behavior. Requires either partial or full pass of input validation for + // metric objects in PostMetricData requests. The default value of NON_ATOMIC requires a + // partial pass: at least one metric object in the request must pass input validation, and + // any objects that failed validation are identified in the returned summary, along with + // their error messages. A value of ATOMIC requires a full pass: all metric objects in + // the request must pass input validation. + // Example: `NON_ATOMIC` + BatchAtomicity PostMetricDataDetailsBatchAtomicityEnum `mandatory:"false" json:"batchAtomicity,omitempty"` +} + +func (m PostMetricDataDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PostMetricDataDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingPostMetricDataDetailsBatchAtomicityEnum(string(m.BatchAtomicity)); !ok && m.BatchAtomicity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for BatchAtomicity: %s. Supported values are: %s.", m.BatchAtomicity, strings.Join(GetPostMetricDataDetailsBatchAtomicityEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PostMetricDataDetailsBatchAtomicityEnum Enum with underlying type: string +type PostMetricDataDetailsBatchAtomicityEnum string + +// Set of constants representing the allowable values for PostMetricDataDetailsBatchAtomicityEnum +const ( + PostMetricDataDetailsBatchAtomicityAtomic PostMetricDataDetailsBatchAtomicityEnum = "ATOMIC" + PostMetricDataDetailsBatchAtomicityNonAtomic PostMetricDataDetailsBatchAtomicityEnum = "NON_ATOMIC" +) + +var mappingPostMetricDataDetailsBatchAtomicityEnum = map[string]PostMetricDataDetailsBatchAtomicityEnum{ + "ATOMIC": PostMetricDataDetailsBatchAtomicityAtomic, + "NON_ATOMIC": PostMetricDataDetailsBatchAtomicityNonAtomic, +} + +var mappingPostMetricDataDetailsBatchAtomicityEnumLowerCase = map[string]PostMetricDataDetailsBatchAtomicityEnum{ + "atomic": PostMetricDataDetailsBatchAtomicityAtomic, + "non_atomic": PostMetricDataDetailsBatchAtomicityNonAtomic, +} + +// GetPostMetricDataDetailsBatchAtomicityEnumValues Enumerates the set of values for PostMetricDataDetailsBatchAtomicityEnum +func GetPostMetricDataDetailsBatchAtomicityEnumValues() []PostMetricDataDetailsBatchAtomicityEnum { + values := make([]PostMetricDataDetailsBatchAtomicityEnum, 0) + for _, v := range mappingPostMetricDataDetailsBatchAtomicityEnum { + values = append(values, v) + } + return values +} + +// GetPostMetricDataDetailsBatchAtomicityEnumStringValues Enumerates the set of values in String for PostMetricDataDetailsBatchAtomicityEnum +func GetPostMetricDataDetailsBatchAtomicityEnumStringValues() []string { + return []string{ + "ATOMIC", + "NON_ATOMIC", + } +} + +// GetMappingPostMetricDataDetailsBatchAtomicityEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingPostMetricDataDetailsBatchAtomicityEnum(val string) (PostMetricDataDetailsBatchAtomicityEnum, bool) { + enum, ok := mappingPostMetricDataDetailsBatchAtomicityEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go similarity index 75% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go index 910cc02791..f5127aa239 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/post_metric_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // PostMetricDataRequest wrapper for the PostMetricData operation @@ -19,6 +21,9 @@ type PostMetricDataRequest struct { // request, please provide the complete request ID. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // The optional Content-Encoding header that defines the content encodings that were applied to the payload. + ContentEncoding *string `mandatory:"false" contributesTo:"header" name:"content-encoding"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata @@ -31,6 +36,10 @@ func (request PostMetricDataRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request PostMetricDataRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +55,17 @@ func (request PostMetricDataRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request PostMetricDataRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // PostMetricDataResponse wrapper for the PostMetricData operation type PostMetricDataResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_response_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_response_details.go new file mode 100644 index 0000000000..ca30d974b6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/post_metric_data_response_details.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PostMetricDataResponseDetails The response object returned from a PostMetricData operation. +type PostMetricDataResponseDetails struct { + + // The number of metric objects that failed input validation. + FailedMetricsCount *int `mandatory:"true" json:"failedMetricsCount"` + + // A list of records identifying metric objects that failed input validation + // and the reasons for the failures. + FailedMetrics []FailedMetricRecord `mandatory:"false" json:"failedMetrics"` +} + +func (m PostMetricDataResponseDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PostMetricDataResponseDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/remove_alarm_suppression_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/remove_alarm_suppression_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go index 6b390411cb..986b2ea056 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/remove_alarm_suppression_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/remove_alarm_suppression_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // RemoveAlarmSuppressionRequest wrapper for the RemoveAlarmSuppression operation @@ -36,6 +38,10 @@ func (request RemoveAlarmSuppressionRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request RemoveAlarmSuppressionRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -51,6 +57,17 @@ func (request RemoveAlarmSuppressionRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RemoveAlarmSuppressionRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // RemoveAlarmSuppressionResponse wrapper for the RemoveAlarmSuppression operation type RemoveAlarmSuppressionResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_details.go new file mode 100644 index 0000000000..ea9f3f642b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_details.go @@ -0,0 +1,51 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Monitoring API +// +// Use the Monitoring API to manage metric queries and alarms for assessing the health, capacity, and performance of your cloud resources. +// Endpoints vary by operation. For PostMetric, use the `telemetry-ingestion` endpoints; for all other operations, use the `telemetry` endpoints. +// For information about monitoring, see Monitoring Overview (https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm). +// + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RetrieveDimensionStatesDetails The configuration details for retrieving the alarm state entries. +// Filter retrieved alarm state entries by status value and dimension key-value pairs. +type RetrieveDimensionStatesDetails struct { + + // A filter to return only alarm state entries that match the exact set of specified dimension key-value pairs. + // If you specify `"availabilityDomain": "phx-ad-1"` but the alarm state entry corresponds to the set `"availabilityDomain": "phx-ad-1"` + // and `"resourceId": "ocid1.instance.region1.phx.exampleuniqueID"`, then no results are returned. + DimensionFilters map[string]string `mandatory:"false" json:"dimensionFilters"` + + // A filter to return only alarm state entries that match the status value. + // Example: `FIRING` + Status AlarmDimensionStatesEntryStatusEnum `mandatory:"false" json:"status,omitempty"` +} + +func (m RetrieveDimensionStatesDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RetrieveDimensionStatesDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingAlarmDimensionStatesEntryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetAlarmDimensionStatesEntryStatusEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_request_response.go new file mode 100644 index 0000000000..be609337b3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/retrieve_dimension_states_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package monitoring + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RetrieveDimensionStatesRequest wrapper for the RetrieveDimensionStates operation +type RetrieveDimensionStatesRequest struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of an alarm. + AlarmId *string `mandatory:"true" contributesTo:"path" name:"alarmId"` + + // Customer part of the request identifier token. If you need to contact Oracle about a particular + // request, please provide the complete request ID. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + // Default: 1000 + // Example: 500 + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The configuration details for retrieving the current alarm status of each metric stream. + RetrieveDimensionStatesDetails `contributesTo:"body"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RetrieveDimensionStatesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RetrieveDimensionStatesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RetrieveDimensionStatesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RetrieveDimensionStatesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RetrieveDimensionStatesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RetrieveDimensionStatesResponse wrapper for the RetrieveDimensionStates operation +type RetrieveDimensionStatesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of AlarmDimensionStatesCollection instances + AlarmDimensionStatesCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you need to contact Oracle about + // a particular request, please provide the request ID. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For list pagination. When this header appears in the response, additional pages of results remain. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response RetrieveDimensionStatesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RetrieveDimensionStatesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/summarize_metrics_data_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_details.go similarity index 88% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/summarize_metrics_data_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_details.go index a0ece90704..fbaa06dbde 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/summarize_metrics_data_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // SummarizeMetricsDataDetails The request details for retrieving aggregated data. @@ -65,3 +67,15 @@ type SummarizeMetricsDataDetails struct { func (m SummarizeMetricsDataDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SummarizeMetricsDataDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/summarize_metrics_data_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/summarize_metrics_data_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go index 1f541afbb4..f8020ca5db 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/summarize_metrics_data_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/summarize_metrics_data_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // SummarizeMetricsDataRequest wrapper for the SummarizeMetricsData operation @@ -44,6 +46,10 @@ func (request SummarizeMetricsDataRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request SummarizeMetricsDataRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -59,6 +65,17 @@ func (request SummarizeMetricsDataRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request SummarizeMetricsDataRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // SummarizeMetricsDataResponse wrapper for the SummarizeMetricsData operation type SummarizeMetricsDataResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/suppression.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/suppression.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go index b008562e86..656a7feafd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/suppression.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/suppression.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // Suppression The configuration details for suppressing an alarm. @@ -39,3 +41,15 @@ type Suppression struct { func (m Suppression) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Suppression) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/update_alarm_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_details.go similarity index 78% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/update_alarm_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_details.go index edadb8c4a9..f6734f9e3e 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/update_alarm_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -12,7 +12,9 @@ package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // UpdateAlarmDetails The configuration details for updating an alarm. @@ -95,6 +97,10 @@ type UpdateAlarmDetails struct { // Example: `High CPU usage alert. Follow runbook instructions for resolution.` Body *string `mandatory:"false" json:"body"` + // When set to `true`, splits notifications per metric stream. When set to `false`, groups notifications across metric streams. + // Example: `true` + IsNotificationsPerMetricDimensionEnabled *bool `mandatory:"false" json:"isNotificationsPerMetricDimensionEnabled"` + // The format to use for notification messages sent from this alarm. The formats are: // * `RAW` - Raw JSON blob. Default value. // * `PRETTY_JSON`: JSON with new lines and indents. @@ -134,6 +140,24 @@ func (m UpdateAlarmDetails) String() string { return common.PointerString(m) } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateAlarmDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingAlarmSeverityEnum(string(m.Severity)); !ok && m.Severity != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Severity: %s. Supported values are: %s.", m.Severity, strings.Join(GetAlarmSeverityEnumStringValues(), ","))) + } + if _, ok := GetMappingUpdateAlarmDetailsMessageFormatEnum(string(m.MessageFormat)); !ok && m.MessageFormat != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for MessageFormat: %s. Supported values are: %s.", m.MessageFormat, strings.Join(GetUpdateAlarmDetailsMessageFormatEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateAlarmDetailsMessageFormatEnum Enum with underlying type: string type UpdateAlarmDetailsMessageFormatEnum string @@ -144,17 +168,38 @@ const ( UpdateAlarmDetailsMessageFormatOnsOptimized UpdateAlarmDetailsMessageFormatEnum = "ONS_OPTIMIZED" ) -var mappingUpdateAlarmDetailsMessageFormat = map[string]UpdateAlarmDetailsMessageFormatEnum{ +var mappingUpdateAlarmDetailsMessageFormatEnum = map[string]UpdateAlarmDetailsMessageFormatEnum{ "RAW": UpdateAlarmDetailsMessageFormatRaw, "PRETTY_JSON": UpdateAlarmDetailsMessageFormatPrettyJson, "ONS_OPTIMIZED": UpdateAlarmDetailsMessageFormatOnsOptimized, } +var mappingUpdateAlarmDetailsMessageFormatEnumLowerCase = map[string]UpdateAlarmDetailsMessageFormatEnum{ + "raw": UpdateAlarmDetailsMessageFormatRaw, + "pretty_json": UpdateAlarmDetailsMessageFormatPrettyJson, + "ons_optimized": UpdateAlarmDetailsMessageFormatOnsOptimized, +} + // GetUpdateAlarmDetailsMessageFormatEnumValues Enumerates the set of values for UpdateAlarmDetailsMessageFormatEnum func GetUpdateAlarmDetailsMessageFormatEnumValues() []UpdateAlarmDetailsMessageFormatEnum { values := make([]UpdateAlarmDetailsMessageFormatEnum, 0) - for _, v := range mappingUpdateAlarmDetailsMessageFormat { + for _, v := range mappingUpdateAlarmDetailsMessageFormatEnum { values = append(values, v) } return values } + +// GetUpdateAlarmDetailsMessageFormatEnumStringValues Enumerates the set of values in String for UpdateAlarmDetailsMessageFormatEnum +func GetUpdateAlarmDetailsMessageFormatEnumStringValues() []string { + return []string{ + "RAW", + "PRETTY_JSON", + "ONS_OPTIMIZED", + } +} + +// GetMappingUpdateAlarmDetailsMessageFormatEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingUpdateAlarmDetailsMessageFormatEnum(val string) (UpdateAlarmDetailsMessageFormatEnum, bool) { + enum, ok := mappingUpdateAlarmDetailsMessageFormatEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/update_alarm_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/monitoring/update_alarm_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go index 3034500d90..f912e46d73 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/monitoring/update_alarm_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/monitoring/update_alarm_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package monitoring import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateAlarmRequest wrapper for the UpdateAlarm operation @@ -39,6 +41,10 @@ func (request UpdateAlarmRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateAlarmRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -54,6 +60,17 @@ func (request UpdateAlarmRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateAlarmRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateAlarmResponse wrapper for the UpdateAlarm operation type UpdateAlarmResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/action_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/action_type.go new file mode 100644 index 0000000000..adea270de4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/action_type.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// ActionTypeEnum Enum with underlying type: string +type ActionTypeEnum string + +// Set of constants representing the allowable values for ActionTypeEnum +const ( + ActionTypeCreated ActionTypeEnum = "CREATED" + ActionTypeUpdated ActionTypeEnum = "UPDATED" + ActionTypeDeleted ActionTypeEnum = "DELETED" + ActionTypeInProgress ActionTypeEnum = "IN_PROGRESS" + ActionTypeRelated ActionTypeEnum = "RELATED" +) + +var mappingActionTypeEnum = map[string]ActionTypeEnum{ + "CREATED": ActionTypeCreated, + "UPDATED": ActionTypeUpdated, + "DELETED": ActionTypeDeleted, + "IN_PROGRESS": ActionTypeInProgress, + "RELATED": ActionTypeRelated, +} + +var mappingActionTypeEnumLowerCase = map[string]ActionTypeEnum{ + "created": ActionTypeCreated, + "updated": ActionTypeUpdated, + "deleted": ActionTypeDeleted, + "in_progress": ActionTypeInProgress, + "related": ActionTypeRelated, +} + +// GetActionTypeEnumValues Enumerates the set of values for ActionTypeEnum +func GetActionTypeEnumValues() []ActionTypeEnum { + values := make([]ActionTypeEnum, 0) + for _, v := range mappingActionTypeEnum { + values = append(values, v) + } + return values +} + +// GetActionTypeEnumStringValues Enumerates the set of values in String for ActionTypeEnum +func GetActionTypeEnumStringValues() []string { + return []string{ + "CREATED", + "UPDATED", + "DELETED", + "IN_PROGRESS", + "RELATED", + } +} + +// GetMappingActionTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingActionTypeEnum(val string) (ActionTypeEnum, bool) { + enum, ok := mappingActionTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_details.go new file mode 100644 index 0000000000..34f1c5e89b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// AttachNlbToPodDetails Configuration details to update a network load balancer. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type AttachNlbToPodDetails struct { + + // Pod Id of the VNICaaS shard to which NLB will be attached to. + // Example: `192.168.0.3` + PodId *string `mandatory:"false" json:"podId"` + + // Slot ID where the NLB has to be migrated to + // Example: `1234` + SlotId *int `mandatory:"false" json:"slotId"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m AttachNlbToPodDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m AttachNlbToPodDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_request_response.go new file mode 100644 index 0000000000..ceeff3e305 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/attach_nlb_to_pod_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// AttachNlbToPodRequest wrapper for the AttachNlbToPod operation +type AttachNlbToPodRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The information to be updated. + AttachNlbToPodDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request AttachNlbToPodRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request AttachNlbToPodRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request AttachNlbToPodRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request AttachNlbToPodRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request AttachNlbToPodRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// AttachNlbToPodResponse wrapper for the AttachNlbToPod operation +type AttachNlbToPodResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response AttachNlbToPodResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response AttachNlbToPodResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend.go new file mode 100644 index 0000000000..47394c8b4c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Backend The configuration of a backend server that is a member of a network load balancer backend set. +// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). +type Backend struct { + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // A read-only field showing the IP address/IP OCID and port that uniquely identify this backend server in the backend set. + // Example: `10.0.0.3:8080`, or `ocid1.privateip..oc1.<unique_ID>:443` or `10.0.0.3:0` + Name *string `mandatory:"false" json:"name"` + + // IP version associated with the `Backend` object. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The IP OCID/Instance OCID associated with the backend server. + // Example: `ocid1.privateip..oc1.<unique_ID>` + TargetId *string `mandatory:"false" json:"targetId"` + + // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections + // as a server weighted '1'. + // For more information about load balancing policies, see + // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no + // incoming traffic. + // Example: `false` + IsDrain *bool `mandatory:"false" json:"isDrain"` + + // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. + // Example: `false` + IsBackup *bool `mandatory:"false" json:"isBackup"` + + // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + IsOffline *bool `mandatory:"false" json:"isOffline"` +} + +func (m Backend) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Backend) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_collection.go new file mode 100644 index 0000000000..59c9cadd43 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendCollection Wrapper object for an array of BackendSummary objects. +type BackendCollection struct { + + // An array of BackendSummary objects. + Items []BackendSummary `mandatory:"false" json:"items"` +} + +func (m BackendCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_details.go new file mode 100644 index 0000000000..37e0d5f482 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_details.go @@ -0,0 +1,81 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendDetails The network network load balancing configuration details of a backend server. +type BackendDetails struct { + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // A read-only field showing the IP address/OCID and port that uniquely identify this backend server in the backend set. + // Example: `10.0.0.3:8080`, or `ocid1.privateip..oc1.<unique_ID>:443` or `10.0.0.3:0` + Name *string `mandatory:"false" json:"name"` + + // IP version associated with the `BackendDetails` object. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The IP OCID/Instance OCID associated with the backend server. + // Example: `ocid1.privateip..oc1.<unique_ID>` + TargetId *string `mandatory:"false" json:"targetId"` + + // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections + // as a server weighted '1'. + // For more information about load balancing policies, see + // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. + // Example: `false` + IsBackup *bool `mandatory:"false" json:"isBackup"` + + // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no + // incoming traffic. + // Example: `false` + IsDrain *bool `mandatory:"false" json:"isDrain"` + + // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + IsOffline *bool `mandatory:"false" json:"isOffline"` +} + +func (m BackendDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_health.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_health.go new file mode 100644 index 0000000000..d3891ae916 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_health.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendHealth The health status of the specified backend server. +type BackendHealth struct { + + // The general health status of the specified backend server. + // * **OK:** All health check probes return `OK` + // * **WARNING:** At least one of the health check probes does not return `OK` + // * **CRITICAL:** None of the health check probes return `OK`. + // * + // * **UNKNOWN:** One of the health checks probes return `UNKNOWN`, + // * or the system is unable to retrieve metrics at this time. + Status BackendHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of the most recent health check results returned for the specified backend server. + HealthCheckResults []HealthCheckResult `mandatory:"true" json:"healthCheckResults"` +} + +func (m BackendHealth) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendHealth) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBackendHealthStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetBackendHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BackendHealthStatusEnum Enum with underlying type: string +type BackendHealthStatusEnum string + +// Set of constants representing the allowable values for BackendHealthStatusEnum +const ( + BackendHealthStatusOk BackendHealthStatusEnum = "OK" + BackendHealthStatusWarning BackendHealthStatusEnum = "WARNING" + BackendHealthStatusCritical BackendHealthStatusEnum = "CRITICAL" + BackendHealthStatusUnknown BackendHealthStatusEnum = "UNKNOWN" +) + +var mappingBackendHealthStatusEnum = map[string]BackendHealthStatusEnum{ + "OK": BackendHealthStatusOk, + "WARNING": BackendHealthStatusWarning, + "CRITICAL": BackendHealthStatusCritical, + "UNKNOWN": BackendHealthStatusUnknown, +} + +var mappingBackendHealthStatusEnumLowerCase = map[string]BackendHealthStatusEnum{ + "ok": BackendHealthStatusOk, + "warning": BackendHealthStatusWarning, + "critical": BackendHealthStatusCritical, + "unknown": BackendHealthStatusUnknown, +} + +// GetBackendHealthStatusEnumValues Enumerates the set of values for BackendHealthStatusEnum +func GetBackendHealthStatusEnumValues() []BackendHealthStatusEnum { + values := make([]BackendHealthStatusEnum, 0) + for _, v := range mappingBackendHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetBackendHealthStatusEnumStringValues Enumerates the set of values in String for BackendHealthStatusEnum +func GetBackendHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingBackendHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBackendHealthStatusEnum(val string) (BackendHealthStatusEnum, bool) { + enum, ok := mappingBackendHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go new file mode 100644 index 0000000000..2f6e83f3ef --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSet The configuration of a network load balancer backend set. +// For more information about backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type BackendSet struct { + + // A user-friendly name for the backend set that must be unique and cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `example_backend_set` + Name *string `mandatory:"true" json:"name"` + + HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` + + // The network load balancer policy for the backend set. + // Example: `FIVE_TUPLE` + Policy NetworkLoadBalancingPolicyEnum `mandatory:"false" json:"policy,omitempty"` + + // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. + // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. + // The value is true by default. + IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` + + // IP version associated with the backend set. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // Array of backends. + Backends []Backend `mandatory:"false" json:"backends"` +} + +func (m BackendSet) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSet) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNetworkLoadBalancingPolicyEnum(string(m.Policy)); !ok && m.Policy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Policy: %s. Supported values are: %s.", m.Policy, strings.Join(GetNetworkLoadBalancingPolicyEnumStringValues(), ","))) + } + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_collection.go new file mode 100644 index 0000000000..13d777628f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSetCollection Wrapper object for an array of `BackendSetSummary` objects. +type BackendSetCollection struct { + + // An array of `BackendSetSummary` objects. + Items []BackendSetSummary `mandatory:"false" json:"items"` +} + +func (m BackendSetCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSetCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go new file mode 100644 index 0000000000..58454bf0b1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_details.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSetDetails The configuration of a network load balancer backend set. +// For more information about backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type BackendSetDetails struct { + HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` + + // The network load balancer policy for the backend set. + // Example: `FIVE_TUPLE` + Policy NetworkLoadBalancingPolicyEnum `mandatory:"false" json:"policy,omitempty"` + + // IP version associated with the backend set. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. + // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. + // The value is true by default. + IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` + + // An array of backends. + Backends []Backend `mandatory:"false" json:"backends"` +} + +func (m BackendSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNetworkLoadBalancingPolicyEnum(string(m.Policy)); !ok && m.Policy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Policy: %s. Supported values are: %s.", m.Policy, strings.Join(GetNetworkLoadBalancingPolicyEnumStringValues(), ","))) + } + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_health.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_health.go new file mode 100644 index 0000000000..9367a52434 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_health.go @@ -0,0 +1,119 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSetHealth The health status details for a backend set. +// This object does not explicitly enumerate backend servers with a status of `OK`. However, the backend sets are included in the +// `totalBackendCount` sum. +type BackendSetHealth struct { + + // Overall health status of the backend set. + // * **OK:** All backend servers in the backend set return a status of `OK`. + // * **WARNING:** Half or more of the backend servers in a backend set return a status of `OK` and at least one backend + // server returns a status of `WARNING`, `CRITICAL`, or `UNKNOWN`. + // * **CRITICAL:** Fewer than half of the backend servers in a backend set return a status of `OK`. + // * **UNKNOWN:** If no probes have yet been sent to the backends, or the system is + // unable to retrieve metrics from the backends. + Status BackendSetHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of backend servers that are currently in the `WARNING` health state. The list identifies each backend server by + // IP address or OCID and port. + // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` + WarningStateBackendNames []string `mandatory:"true" json:"warningStateBackendNames"` + + // A list of backend servers that are currently in the `CRITICAL` health state. The list identifies each backend server by + // IP address and port. + // Example: `10.0.0.4:8080` + CriticalStateBackendNames []string `mandatory:"true" json:"criticalStateBackendNames"` + + // A list of backend servers that are currently in the `UNKNOWN` health state. The list identifies each backend server by + // IP address and port. + // Example: `10.0.0.5:8080` + UnknownStateBackendNames []string `mandatory:"true" json:"unknownStateBackendNames"` + + // The total number of backend servers in this backend set. + // Example: `7` + TotalBackendCount *int `mandatory:"true" json:"totalBackendCount"` +} + +func (m BackendSetHealth) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSetHealth) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingBackendSetHealthStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetBackendSetHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// BackendSetHealthStatusEnum Enum with underlying type: string +type BackendSetHealthStatusEnum string + +// Set of constants representing the allowable values for BackendSetHealthStatusEnum +const ( + BackendSetHealthStatusOk BackendSetHealthStatusEnum = "OK" + BackendSetHealthStatusWarning BackendSetHealthStatusEnum = "WARNING" + BackendSetHealthStatusCritical BackendSetHealthStatusEnum = "CRITICAL" + BackendSetHealthStatusUnknown BackendSetHealthStatusEnum = "UNKNOWN" +) + +var mappingBackendSetHealthStatusEnum = map[string]BackendSetHealthStatusEnum{ + "OK": BackendSetHealthStatusOk, + "WARNING": BackendSetHealthStatusWarning, + "CRITICAL": BackendSetHealthStatusCritical, + "UNKNOWN": BackendSetHealthStatusUnknown, +} + +var mappingBackendSetHealthStatusEnumLowerCase = map[string]BackendSetHealthStatusEnum{ + "ok": BackendSetHealthStatusOk, + "warning": BackendSetHealthStatusWarning, + "critical": BackendSetHealthStatusCritical, + "unknown": BackendSetHealthStatusUnknown, +} + +// GetBackendSetHealthStatusEnumValues Enumerates the set of values for BackendSetHealthStatusEnum +func GetBackendSetHealthStatusEnumValues() []BackendSetHealthStatusEnum { + values := make([]BackendSetHealthStatusEnum, 0) + for _, v := range mappingBackendSetHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetBackendSetHealthStatusEnumStringValues Enumerates the set of values in String for BackendSetHealthStatusEnum +func GetBackendSetHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingBackendSetHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingBackendSetHealthStatusEnum(val string) (BackendSetHealthStatusEnum, bool) { + enum, ok := mappingBackendSetHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go new file mode 100644 index 0000000000..163160017d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_set_summary.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSetSummary The configuration of a network load balancer backend set. +// For more information about backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type BackendSetSummary struct { + + // A user-friendly name for the backend set that must be unique and cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `example_backend_set` + Name *string `mandatory:"true" json:"name"` + + // The network load balancer policy for the backend set. + // Example: `FIVE_TUPLE` + Policy NetworkLoadBalancingPolicyEnum `mandatory:"true" json:"policy"` + + // An array of backends. + Backends []Backend `mandatory:"true" json:"backends"` + + HealthChecker *HealthChecker `mandatory:"true" json:"healthChecker"` + + // If this parameter is enabled, the network load balancer preserves the source IP of the packet forwarded to the backend servers. + // Backend servers see the original source IP. If the `isPreserveSourceDestination` parameter is enabled for the network load balancer resource, this parameter cannot be disabled. + // The value is true by default. + IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` + + // IP version associated with the backend set. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` +} + +func (m BackendSetSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSetSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNetworkLoadBalancingPolicyEnum(string(m.Policy)); !ok && m.Policy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Policy: %s. Supported values are: %s.", m.Policy, strings.Join(GetNetworkLoadBalancingPolicyEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_summary.go new file mode 100644 index 0000000000..e77a1196cd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/backend_summary.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// BackendSummary The configuration of a backend server that is a member of a network load balancer backend set. +// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). +type BackendSummary struct { + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // A read-only field showing the IP address/IP OCID and port that uniquely identify this backend server in the backend set. + // Example: `10.0.0.3:8080`, or `ocid1.privateip..oc1.<unique_ID>:443` or `10.0.0.3:0` + Name *string `mandatory:"false" json:"name"` + + // IP version associated with the `BackendSummary` object. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The IP OCID/Instance OCID associated with the backend server. + // Example: `ocid1.privateip..oc1.<unique_ID>` + TargetId *string `mandatory:"false" json:"targetId"` + + // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections + // as a server weighted '1'. + // For more information about load balancing policies, see + // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no + // incoming traffic. + // Example: `false` + IsDrain *bool `mandatory:"false" json:"isDrain"` + + // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. + // Example: `false` + IsBackup *bool `mandatory:"false" json:"isBackup"` + + // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + IsOffline *bool `mandatory:"false" json:"isOffline"` +} + +func (m BackendSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m BackendSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_details.go new file mode 100644 index 0000000000..e27fefe705 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_details.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ChangeNetworkLoadBalancerCompartmentDetails The configuration details for moving a network load balancer to a different compartment. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type ChangeNetworkLoadBalancerCompartmentDetails struct { + + // The OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment to which to move the network load balancer. + CompartmentId *string `mandatory:"true" json:"compartmentId"` +} + +func (m ChangeNetworkLoadBalancerCompartmentDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ChangeNetworkLoadBalancerCompartmentDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_request_response.go similarity index 86% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_request_response.go index edaba0b0e2..5fefe9f4ed 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/change_network_load_balancer_compartment_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/change_network_load_balancer_compartment_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // ChangeNetworkLoadBalancerCompartmentRequest wrapper for the ChangeNetworkLoadBalancerCompartment operation @@ -48,6 +50,10 @@ func (request ChangeNetworkLoadBalancerCompartmentRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request ChangeNetworkLoadBalancerCompartmentRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -63,6 +69,17 @@ func (request ChangeNetworkLoadBalancerCompartmentRequest) RetryPolicy() *common return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ChangeNetworkLoadBalancerCompartmentRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // ChangeNetworkLoadBalancerCompartmentResponse wrapper for the ChangeNetworkLoadBalancerCompartment operation type ChangeNetworkLoadBalancerCompartmentResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_details.go new file mode 100644 index 0000000000..431dcec81d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_details.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateBackendDetails The configuration of a backend server that is a member of a network load balancer backend set. +// For more information, see Managing Backend Servers (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendservers.htm). +type CreateBackendDetails struct { + + // The communication port for the backend server. + // Example: `8080` + Port *int `mandatory:"true" json:"port"` + + // Optional unique name identifying the backend within the backend set. If not specified, then one will be generated. + // Example: `webServer1` + Name *string `mandatory:"false" json:"name"` + + // IP version associated with the `CreateBackendDetails` object. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // The IP address of the backend server. + // Example: `10.0.0.3` + IpAddress *string `mandatory:"false" json:"ipAddress"` + + // The IP OCID/Instance OCID associated with the backend server. + // Example: `ocid1.privateip..oc1.<unique_ID>` + TargetId *string `mandatory:"false" json:"targetId"` + + // The network load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections + // as a server weighted '1'. + // For more information about load balancing policies, see + // How Network Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no + // incoming traffic. + // Example: `false` + IsDrain *bool `mandatory:"false" json:"isDrain"` + + // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. + // Example: `false` + IsBackup *bool `mandatory:"false" json:"isBackup"` + + // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + IsOffline *bool `mandatory:"false" json:"isOffline"` +} + +func (m CreateBackendDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateBackendDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_request_response.go new file mode 100644 index 0000000000..f5e243d70d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateBackendRequest wrapper for the CreateBackend operation +type CreateBackendRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The details to add a backend server to a backend set. + CreateBackendDetails `contributesTo:"body"` + + // The name of the backend set to which to add the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateBackendResponse wrapper for the CreateBackend operation +type CreateBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_details.go new file mode 100644 index 0000000000..3cc64dba15 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_details.go @@ -0,0 +1,68 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateBackendSetDetails The configuration details for creating a backend set in a network load balancer. +// For more information about backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type CreateBackendSetDetails struct { + + // A user-friendly name for the backend set that must be unique and cannot be changed. + // Valid backend set names include only alphanumeric characters, dashes, and underscores. Backend set names cannot + // contain spaces. Avoid entering confidential information. + // Example: `example_backend_set` + Name *string `mandatory:"true" json:"name"` + + // The network load balancer policy for the backend set. + // Example: `FIVE_TUPLE`` + Policy NetworkLoadBalancingPolicyEnum `mandatory:"true" json:"policy"` + + HealthChecker *HealthCheckerDetails `mandatory:"true" json:"healthChecker"` + + // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. + // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. + // The value is true by default. + IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` + + // IP version associated with the backend set. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // An array of backends to be associated with the backend set. + Backends []BackendDetails `mandatory:"false" json:"backends"` +} + +func (m CreateBackendSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateBackendSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNetworkLoadBalancingPolicyEnum(string(m.Policy)); !ok && m.Policy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Policy: %s. Supported values are: %s.", m.Policy, strings.Join(GetNetworkLoadBalancingPolicyEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_request_response.go new file mode 100644 index 0000000000..349e46e5ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_backend_set_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateBackendSetRequest wrapper for the CreateBackendSet operation +type CreateBackendSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The details for adding a backend set. + CreateBackendSetDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateBackendSetResponse wrapper for the CreateBackendSet operation +type CreateBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response CreateBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go new file mode 100644 index 0000000000..fec3549d7c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_details.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateListenerDetails The configuration of the listener. +// For more information about backend set configuration, see +// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +type CreateListenerDetails struct { + + // A friendly name for the listener. It must be unique and it cannot be changed. + // Example: `example_listener` + Name *string `mandatory:"true" json:"name"` + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. + // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). + // "ListNetworkLoadBalancersProtocols" API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead. + // Example: `TCP` + Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` + + // IP version associated with the listener. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // Property to enable/disable PPv2 feature for this listener. + IsPpv2Enabled *bool `mandatory:"false" json:"isPpv2Enabled"` + + // An array that represents the PPV2 Options that can be enabled on TCP Listeners. + // Example: ["VCN_ID"] + InternalProxyProtocolOptions []MetadataOptionsEnum `mandatory:"false" json:"internalProxyProtocolOptions"` +} + +func (m CreateListenerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateListenerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListenerProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetListenerProtocolsEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_request_response.go new file mode 100644 index 0000000000..594182a48b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_listener_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// CreateListenerRequest wrapper for the CreateListener operation +type CreateListenerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // Details to add a listener. + CreateListenerDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request CreateListenerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request CreateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request CreateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request CreateListenerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// CreateListenerResponse wrapper for the CreateListener operation +type CreateListenerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response CreateListenerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response CreateListenerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_network_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_details.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_network_load_balancer_details.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_details.go index ad9f37af52..a90aa09176 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_network_load_balancer_details.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_details.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -10,7 +10,9 @@ package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // CreateNetworkLoadBalancerDetails The properties that define a network load balancer. For more information, see @@ -69,6 +71,14 @@ type CreateNetworkLoadBalancerDetails struct { // Backend sets associated with the network load balancer. BackendSets map[string]BackendSetDetails `mandatory:"false" json:"backendSets"` + // VnicShape for NLB. + // Example: `VNICAAS_FIXED0400` + Shape *string `mandatory:"false" json:"shape"` + + // Unique id of the shard where the VNIC will be allocated for the NLB. + // Example: `test_shard1` + ShardId *string `mandatory:"false" json:"shardId"` + // Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. // Example: `{"bar-key": "value"}` FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` @@ -81,3 +91,18 @@ type CreateNetworkLoadBalancerDetails struct { func (m CreateNetworkLoadBalancerDetails) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateNetworkLoadBalancerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNlbIpVersionEnum(string(m.NlbIpVersion)); !ok && m.NlbIpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NlbIpVersion: %s. Supported values are: %s.", m.NlbIpVersion, strings.Join(GetNlbIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_network_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_network_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_request_response.go index 88e49bba33..36d36a6903 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/create_network_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/create_network_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // CreateNetworkLoadBalancerRequest wrapper for the CreateNetworkLoadBalancer operation @@ -38,6 +40,10 @@ func (request CreateNetworkLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request CreateNetworkLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request CreateNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request CreateNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // CreateNetworkLoadBalancerResponse wrapper for the CreateNetworkLoadBalancer operation type CreateNetworkLoadBalancerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_request_response.go new file mode 100644 index 0000000000..c1ed96aeed --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_request_response.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteBackendRequest wrapper for the DeleteBackend operation +type DeleteBackendRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set associated with the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The name of the backend server to remove. + // If the backend was created with an explicitly specified name, that name should be used here. + // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. + // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. + // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteBackendResponse wrapper for the DeleteBackend operation +type DeleteBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_set_request_response.go new file mode 100644 index 0000000000..0155c54812 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_backend_set_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteBackendSetRequest wrapper for the DeleteBackendSet operation +type DeleteBackendSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set to delete. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteBackendSetResponse wrapper for the DeleteBackendSet operation +type DeleteBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DeleteBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_health_check_service_infra_dp_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_health_check_service_infra_dp_host_request_response.go new file mode 100644 index 0000000000..5f8a799d63 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_health_check_service_infra_dp_host_request_response.go @@ -0,0 +1,103 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteHealthCheckServiceInfraDpHostRequest wrapper for the DeleteHealthCheckServiceInfraDpHost operation +type DeleteHealthCheckServiceInfraDpHostRequest struct { + + // The AvailabilityDomain of the hcs dp host. + AvailabilityDomain *string `mandatory:"true" contributesTo:"path" name:"availabilityDomain"` + + // The ID of the hcs dp host. + DpHostId *string `mandatory:"true" contributesTo:"path" name:"dpHostId"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteHealthCheckServiceInfraDpHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteHealthCheckServiceInfraDpHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteHealthCheckServiceInfraDpHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteHealthCheckServiceInfraDpHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteHealthCheckServiceInfraDpHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteHealthCheckServiceInfraDpHostResponse wrapper for the DeleteHealthCheckServiceInfraDpHost operation +type DeleteHealthCheckServiceInfraDpHostResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response DeleteHealthCheckServiceInfraDpHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteHealthCheckServiceInfraDpHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_listener_request_response.go new file mode 100644 index 0000000000..264ba9ad5c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_listener_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DeleteListenerRequest wrapper for the DeleteListener operation +type DeleteListenerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the listener to delete. + // Example: `example_listener` + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DeleteListenerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DeleteListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DeleteListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DeleteListenerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DeleteListenerResponse wrapper for the DeleteListener operation +type DeleteListenerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + ETag *string `presentIn:"header" name:"etag"` +} + +func (response DeleteListenerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DeleteListenerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_network_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_network_load_balancer_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_network_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_network_load_balancer_request_response.go index 40ceb4821e..3f81b033dd 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/delete_network_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/delete_network_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // DeleteNetworkLoadBalancerRequest wrapper for the DeleteNetworkLoadBalancer operation @@ -38,6 +40,10 @@ func (request DeleteNetworkLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request DeleteNetworkLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -53,6 +59,17 @@ func (request DeleteNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DeleteNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // DeleteNetworkLoadBalancerResponse wrapper for the DeleteNetworkLoadBalancer operation type DeleteNetworkLoadBalancerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_destination_pod_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_destination_pod_request_response.go new file mode 100644 index 0000000000..8849983ef1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_destination_pod_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DetachNlbFromDestinationPodRequest wrapper for the DetachNlbFromDestinationPod operation +type DetachNlbFromDestinationPodRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DetachNlbFromDestinationPodRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DetachNlbFromDestinationPodRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DetachNlbFromDestinationPodRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DetachNlbFromDestinationPodRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachNlbFromDestinationPodRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DetachNlbFromDestinationPodResponse wrapper for the DetachNlbFromDestinationPod operation +type DetachNlbFromDestinationPodResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DetachNlbFromDestinationPodResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DetachNlbFromDestinationPodResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_source_pod_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_source_pod_request_response.go new file mode 100644 index 0000000000..ff33747cb8 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/detach_nlb_from_source_pod_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// DetachNlbFromSourcePodRequest wrapper for the DetachNlbFromSourcePod operation +type DetachNlbFromSourcePodRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request DetachNlbFromSourcePodRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request DetachNlbFromSourcePodRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request DetachNlbFromSourcePodRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request DetachNlbFromSourcePodRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request DetachNlbFromSourcePodRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DetachNlbFromSourcePodResponse wrapper for the DetachNlbFromSourcePod operation +type DetachNlbFromSourcePodResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response DetachNlbFromSourcePodResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response DetachNlbFromSourcePodResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dp_host.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dp_host.go new file mode 100644 index 0000000000..a379f25b6b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/dp_host.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DpHost Configuration details of a hcs dp host. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type DpHost struct { + + // The host Id for the hsc dp host + // Example: `10.241.46.137` + HostId *string `mandatory:"true" json:"hostId"` + + // The name for the hsc dp host + // Example: `vcndp-vnicaas-02301.node.ad2.r1` + DpHostName *string `mandatory:"false" json:"dpHostName"` + + // The pod Id of the hsc dp host + // Example: `172.24.255.59` + PodId *string `mandatory:"false" json:"podId"` + + // The tor Id of the hsc dp host + // Example: `10.241.46.129` + TorId *string `mandatory:"false" json:"torId"` + + // The current state of the hsc dp host + // Example: `Quarantined` + State *string `mandatory:"false" json:"state"` + + // Host Capacity. + HostCapacity *int `mandatory:"false" json:"hostCapacity"` + + // The date and time the host was heartbeated, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeStampHeartBeat *common.SDKTime `mandatory:"false" json:"timeStampHeartBeat"` + + // The date and time the data was created, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time the data was created, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` +} + +func (m DpHost) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DpHost) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_health_request_response.go new file mode 100644 index 0000000000..9a8b00f498 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_health_request_response.go @@ -0,0 +1,98 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendHealthRequest wrapper for the GetBackendHealth operation +type GetBackendHealthRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set associated with the backend server for which to retrieve the health status. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The name of the backend server to retrieve health status for. + // If the backend was created with an explicitly specified name, that name should be used here. + // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. + // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. + // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendHealthRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendHealthRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendHealthRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendHealthResponse wrapper for the GetBackendHealth operation +type GetBackendHealthResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendHealth instance + BackendHealth `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetBackendHealthResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendHealthResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_request_response.go new file mode 100644 index 0000000000..d3d735ff60 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendRequest wrapper for the GetBackend operation +type GetBackendRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set that includes the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The name of the backend server to retrieve. + // If the backend was created with an explicitly specified name, that name should be used here. + // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. + // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. + // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendResponse wrapper for the GetBackend operation +type GetBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The Backend instance + Backend `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_health_request_response.go new file mode 100644 index 0000000000..e40e4e3829 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_health_request_response.go @@ -0,0 +1,94 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendSetHealthRequest wrapper for the GetBackendSetHealth operation +type GetBackendSetHealthRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set for which to retrieve the health status. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendSetHealthRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendSetHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendSetHealthRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendSetHealthRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendSetHealthRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendSetHealthResponse wrapper for the GetBackendSetHealth operation +type GetBackendSetHealthResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendSetHealth instance + BackendSetHealth `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendSetHealthResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendSetHealthResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_request_response.go new file mode 100644 index 0000000000..abdca8d435 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_backend_set_request_response.go @@ -0,0 +1,100 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetBackendSetRequest wrapper for the GetBackendSet operation +type GetBackendSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set to retrieve. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetBackendSetResponse wrapper for the GetBackendSet operation +type GetBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The BackendSet instance + BackendSet `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response GetBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_check_service_infra_dp_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_check_service_infra_dp_host_request_response.go new file mode 100644 index 0000000000..17968900f1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_check_service_infra_dp_host_request_response.go @@ -0,0 +1,99 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetHealthCheckServiceInfraDpHostRequest wrapper for the GetHealthCheckServiceInfraDpHost operation +type GetHealthCheckServiceInfraDpHostRequest struct { + + // The AvailabilityDomain of the hcs dp host. + AvailabilityDomain *string `mandatory:"true" contributesTo:"path" name:"availabilityDomain"` + + // The ID of the hcs dp host. + DpHostId *string `mandatory:"true" contributesTo:"path" name:"dpHostId"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetHealthCheckServiceInfraDpHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetHealthCheckServiceInfraDpHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetHealthCheckServiceInfraDpHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetHealthCheckServiceInfraDpHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetHealthCheckServiceInfraDpHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetHealthCheckServiceInfraDpHostResponse wrapper for the GetHealthCheckServiceInfraDpHost operation +type GetHealthCheckServiceInfraDpHostResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The DpHost instance + DpHost `presentIn:"body"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetHealthCheckServiceInfraDpHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetHealthCheckServiceInfraDpHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_checker_request_response.go new file mode 100644 index 0000000000..4daaef0b9c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_health_checker_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetHealthCheckerRequest wrapper for the GetHealthChecker operation +type GetHealthCheckerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set associated with the health check policy to be retrieved. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetHealthCheckerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetHealthCheckerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetHealthCheckerResponse wrapper for the GetHealthChecker operation +type GetHealthCheckerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The HealthChecker instance + HealthChecker `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For optimistic concurrency control. See `if-match`. + Etag *string `presentIn:"header" name:"etag"` +} + +func (response GetHealthCheckerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetHealthCheckerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_listener_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go index a1e4119801..97923e0618 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_listener_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_listener_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetListenerRequest wrapper for the GetListener operation @@ -41,6 +43,10 @@ func (request GetListenerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request GetListenerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetListenerResponse wrapper for the GetListener operation type GetListenerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_live_migration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_live_migration_request_response.go new file mode 100644 index 0000000000..da5c7ace07 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_live_migration_request_response.go @@ -0,0 +1,95 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetLiveMigrationRequest wrapper for the GetLiveMigration operation +type GetLiveMigrationRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The live migration id. + LiveMigrationId *string `mandatory:"true" contributesTo:"path" name:"liveMigrationId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetLiveMigrationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetLiveMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetLiveMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetLiveMigrationRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetLiveMigrationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetLiveMigrationResponse wrapper for the GetLiveMigration operation +type GetLiveMigrationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The LiveMigration instance + LiveMigration `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response GetLiveMigrationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetLiveMigrationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_network_load_balancer_health_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_network_load_balancer_health_request_response.go similarity index 81% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_network_load_balancer_health_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_network_load_balancer_health_request_response.go index 3641fd3f73..1238bb0a69 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_network_load_balancer_health_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_network_load_balancer_health_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNetworkLoadBalancerHealthRequest wrapper for the GetNetworkLoadBalancerHealth operation @@ -31,6 +33,10 @@ func (request GetNetworkLoadBalancerHealthRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNetworkLoadBalancerHealthRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -46,6 +52,17 @@ func (request GetNetworkLoadBalancerHealthRequest) RetryPolicy() *common.RetryPo return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNetworkLoadBalancerHealthRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNetworkLoadBalancerHealthResponse wrapper for the GetNetworkLoadBalancerHealth operation type GetNetworkLoadBalancerHealthResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_network_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_network_load_balancer_request_response.go similarity index 83% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_network_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_network_load_balancer_request_response.go index a70f34beea..fc0ca9229b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/get_network_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_network_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // GetNetworkLoadBalancerRequest wrapper for the GetNetworkLoadBalancer operation @@ -37,6 +39,10 @@ func (request GetNetworkLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request GetNetworkLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -52,6 +58,17 @@ func (request GetNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolicy { return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // GetNetworkLoadBalancerResponse wrapper for the GetNetworkLoadBalancer operation type GetNetworkLoadBalancerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_work_request_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_work_request_request_response.go new file mode 100644 index 0000000000..fbece3142e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/get_work_request_request_response.go @@ -0,0 +1,90 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// GetWorkRequestRequest wrapper for the GetWorkRequest operation +type GetWorkRequestRequest struct { + + // The identifier of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request GetWorkRequestRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request GetWorkRequestRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request GetWorkRequestRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request GetWorkRequestRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request GetWorkRequestRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// GetWorkRequestResponse wrapper for the GetWorkRequest operation +type GetWorkRequestResponse struct { + + // The underlying http response + RawResponse *http.Response + + // The WorkRequest instance + WorkRequest `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // A decimal number representing the number of seconds the client should wait before polling this endpoint again. + RetryAfter *float32 `presentIn:"header" name:"retry-after"` +} + +func (response GetWorkRequestResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response GetWorkRequestResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/hcs_infra_ip_version.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/hcs_infra_ip_version.go new file mode 100644 index 0000000000..d95207bc9e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/hcs_infra_ip_version.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// HcsInfraIpVersionEnum Enum with underlying type: string +type HcsInfraIpVersionEnum string + +// Set of constants representing the allowable values for HcsInfraIpVersionEnum +const ( + HcsInfraIpVersionIpv4 HcsInfraIpVersionEnum = "IPV4" + HcsInfraIpVersionIpv4AndIpv6 HcsInfraIpVersionEnum = "IPV4_AND_IPV6" +) + +var mappingHcsInfraIpVersionEnum = map[string]HcsInfraIpVersionEnum{ + "IPV4": HcsInfraIpVersionIpv4, + "IPV4_AND_IPV6": HcsInfraIpVersionIpv4AndIpv6, +} + +var mappingHcsInfraIpVersionEnumLowerCase = map[string]HcsInfraIpVersionEnum{ + "ipv4": HcsInfraIpVersionIpv4, + "ipv4_and_ipv6": HcsInfraIpVersionIpv4AndIpv6, +} + +// GetHcsInfraIpVersionEnumValues Enumerates the set of values for HcsInfraIpVersionEnum +func GetHcsInfraIpVersionEnumValues() []HcsInfraIpVersionEnum { + values := make([]HcsInfraIpVersionEnum, 0) + for _, v := range mappingHcsInfraIpVersionEnum { + values = append(values, v) + } + return values +} + +// GetHcsInfraIpVersionEnumStringValues Enumerates the set of values in String for HcsInfraIpVersionEnum +func GetHcsInfraIpVersionEnumStringValues() []string { + return []string{ + "IPV4", + "IPV4_AND_IPV6", + } +} + +// GetMappingHcsInfraIpVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHcsInfraIpVersionEnum(val string) (HcsInfraIpVersionEnum, bool) { + enum, ok := mappingHcsInfraIpVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_protocols.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_protocols.go new file mode 100644 index 0000000000..477f9b993e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_protocols.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// HealthCheckProtocolsEnum Enum with underlying type: string +type HealthCheckProtocolsEnum string + +// Set of constants representing the allowable values for HealthCheckProtocolsEnum +const ( + HealthCheckProtocolsHttp HealthCheckProtocolsEnum = "HTTP" + HealthCheckProtocolsHttps HealthCheckProtocolsEnum = "HTTPS" + HealthCheckProtocolsTcp HealthCheckProtocolsEnum = "TCP" + HealthCheckProtocolsUdp HealthCheckProtocolsEnum = "UDP" +) + +var mappingHealthCheckProtocolsEnum = map[string]HealthCheckProtocolsEnum{ + "HTTP": HealthCheckProtocolsHttp, + "HTTPS": HealthCheckProtocolsHttps, + "TCP": HealthCheckProtocolsTcp, + "UDP": HealthCheckProtocolsUdp, +} + +var mappingHealthCheckProtocolsEnumLowerCase = map[string]HealthCheckProtocolsEnum{ + "http": HealthCheckProtocolsHttp, + "https": HealthCheckProtocolsHttps, + "tcp": HealthCheckProtocolsTcp, + "udp": HealthCheckProtocolsUdp, +} + +// GetHealthCheckProtocolsEnumValues Enumerates the set of values for HealthCheckProtocolsEnum +func GetHealthCheckProtocolsEnumValues() []HealthCheckProtocolsEnum { + values := make([]HealthCheckProtocolsEnum, 0) + for _, v := range mappingHealthCheckProtocolsEnum { + values = append(values, v) + } + return values +} + +// GetHealthCheckProtocolsEnumStringValues Enumerates the set of values in String for HealthCheckProtocolsEnum +func GetHealthCheckProtocolsEnumStringValues() []string { + return []string{ + "HTTP", + "HTTPS", + "TCP", + "UDP", + } +} + +// GetMappingHealthCheckProtocolsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHealthCheckProtocolsEnum(val string) (HealthCheckProtocolsEnum, bool) { + enum, ok := mappingHealthCheckProtocolsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_result.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_result.go new file mode 100644 index 0000000000..95452653c5 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_check_result.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HealthCheckResult Information about a single backend server health check result reported by a network load balancer. +type HealthCheckResult struct { + + // The date and time the data was retrieved, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` + + // The result of the most recent health check. + HealthCheckStatus HealthCheckResultHealthCheckStatusEnum `mandatory:"true" json:"healthCheckStatus"` +} + +func (m HealthCheckResult) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HealthCheckResult) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHealthCheckResultHealthCheckStatusEnum(string(m.HealthCheckStatus)); !ok && m.HealthCheckStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for HealthCheckStatus: %s. Supported values are: %s.", m.HealthCheckStatus, strings.Join(GetHealthCheckResultHealthCheckStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// HealthCheckResultHealthCheckStatusEnum Enum with underlying type: string +type HealthCheckResultHealthCheckStatusEnum string + +// Set of constants representing the allowable values for HealthCheckResultHealthCheckStatusEnum +const ( + HealthCheckResultHealthCheckStatusOk HealthCheckResultHealthCheckStatusEnum = "OK" + HealthCheckResultHealthCheckStatusInvalidStatusCode HealthCheckResultHealthCheckStatusEnum = "INVALID_STATUS_CODE" + HealthCheckResultHealthCheckStatusTimedOut HealthCheckResultHealthCheckStatusEnum = "TIMED_OUT" + HealthCheckResultHealthCheckStatusHealthPayloadMismatch HealthCheckResultHealthCheckStatusEnum = "HEALTH_PAYLOAD_MISMATCH" + HealthCheckResultHealthCheckStatusConnectFailed HealthCheckResultHealthCheckStatusEnum = "CONNECT_FAILED" + HealthCheckResultHealthCheckStatusUnknown HealthCheckResultHealthCheckStatusEnum = "UNKNOWN" +) + +var mappingHealthCheckResultHealthCheckStatusEnum = map[string]HealthCheckResultHealthCheckStatusEnum{ + "OK": HealthCheckResultHealthCheckStatusOk, + "INVALID_STATUS_CODE": HealthCheckResultHealthCheckStatusInvalidStatusCode, + "TIMED_OUT": HealthCheckResultHealthCheckStatusTimedOut, + "HEALTH_PAYLOAD_MISMATCH": HealthCheckResultHealthCheckStatusHealthPayloadMismatch, + "CONNECT_FAILED": HealthCheckResultHealthCheckStatusConnectFailed, + "UNKNOWN": HealthCheckResultHealthCheckStatusUnknown, +} + +var mappingHealthCheckResultHealthCheckStatusEnumLowerCase = map[string]HealthCheckResultHealthCheckStatusEnum{ + "ok": HealthCheckResultHealthCheckStatusOk, + "invalid_status_code": HealthCheckResultHealthCheckStatusInvalidStatusCode, + "timed_out": HealthCheckResultHealthCheckStatusTimedOut, + "health_payload_mismatch": HealthCheckResultHealthCheckStatusHealthPayloadMismatch, + "connect_failed": HealthCheckResultHealthCheckStatusConnectFailed, + "unknown": HealthCheckResultHealthCheckStatusUnknown, +} + +// GetHealthCheckResultHealthCheckStatusEnumValues Enumerates the set of values for HealthCheckResultHealthCheckStatusEnum +func GetHealthCheckResultHealthCheckStatusEnumValues() []HealthCheckResultHealthCheckStatusEnum { + values := make([]HealthCheckResultHealthCheckStatusEnum, 0) + for _, v := range mappingHealthCheckResultHealthCheckStatusEnum { + values = append(values, v) + } + return values +} + +// GetHealthCheckResultHealthCheckStatusEnumStringValues Enumerates the set of values in String for HealthCheckResultHealthCheckStatusEnum +func GetHealthCheckResultHealthCheckStatusEnumStringValues() []string { + return []string{ + "OK", + "INVALID_STATUS_CODE", + "TIMED_OUT", + "HEALTH_PAYLOAD_MISMATCH", + "CONNECT_FAILED", + "UNKNOWN", + } +} + +// GetMappingHealthCheckResultHealthCheckStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingHealthCheckResultHealthCheckStatusEnum(val string) (HealthCheckResultHealthCheckStatusEnum, bool) { + enum, ok := mappingHealthCheckResultHealthCheckStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker.go new file mode 100644 index 0000000000..60bb27b798 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HealthChecker The health check policy configuration. +// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). +type HealthChecker struct { + + // The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP. + // Example: `HTTP` + Protocol HealthCheckProtocolsEnum `mandatory:"true" json:"protocol"` + + // The backend server port against which to run the health check. If the port is not specified, then the network load balancer uses the + // port information from the `Backend` object. The port must be specified if the backend port is 0. + // Example: `8080` + Port *int `mandatory:"false" json:"port"` + + // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies + // when recovering a server to the "healthy" state. The default value is 3. + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. The default value is 3000 (3 seconds). + // Example: `3000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The interval between health checks, in milliseconds. The default value is 10000 (10 seconds). + // Example: `10000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` + + // A regular expression for parsing the response body from the backend server. + // Example: `^((?!false).|\s)*$` + ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` + + // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, + // then you can use common HTTP status codes such as "200". + // Example: `200` + ReturnCode *int `mandatory:"false" json:"returnCode"` + + // Base64 encoded pattern to be sent as UDP or TCP health check probe. + RequestData []byte `mandatory:"false" json:"requestData"` + + // Base64 encoded pattern to be validated as UDP or TCP health check probe response. + ResponseData []byte `mandatory:"false" json:"responseData"` +} + +func (m HealthChecker) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HealthChecker) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHealthCheckProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetHealthCheckProtocolsEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker_details.go new file mode 100644 index 0000000000..d71b7f2790 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/health_checker_details.go @@ -0,0 +1,82 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// HealthCheckerDetails The health check policy configuration. +// For more information, see Editing Health Check Policies (https://docs.cloud.oracle.com/Content/Balance/Tasks/editinghealthcheck.htm). +type HealthCheckerDetails struct { + + // The protocol the health check must use; either HTTP or HTTPS, or UDP or TCP. + // Example: `HTTP` + Protocol HealthCheckProtocolsEnum `mandatory:"true" json:"protocol"` + + // The backend server port against which to run the health check. If the port is not specified, then the network load balancer uses the + // port information from the `Backend` object. The port must be specified if the backend port is 0. + // Example: `8080` + Port *int `mandatory:"false" json:"port"` + + // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies + // when recovering a server to the "healthy" state. The default value is 3. + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. The default value is 3000 (3 seconds). + // Example: `3000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The interval between health checks, in milliseconds. The default value is 10000 (10 seconds). + // Example: `10000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` + + // A regular expression for parsing the response body from the backend server. + // Example: `^((?!false).|\s)*$` + ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` + + // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, + // then you can use common HTTP status codes such as "200". + // Example: `200` + ReturnCode *int `mandatory:"false" json:"returnCode"` + + // Base64 encoded pattern to be sent as UDP or TCP health check probe. + RequestData []byte `mandatory:"false" json:"requestData"` + + // Base64 encoded pattern to be validated as UDP or TCP health check probe response. + ResponseData []byte `mandatory:"false" json:"responseData"` +} + +func (m HealthCheckerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m HealthCheckerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingHealthCheckProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetHealthCheckProtocolsEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_address.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_address.go new file mode 100644 index 0000000000..6b1166e522 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_address.go @@ -0,0 +1,53 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// IpAddress A load balancer IP address. +type IpAddress struct { + + // An IP address. + // Example: `192.168.0.3` + IpAddress *string `mandatory:"true" json:"ipAddress"` + + // Whether the IP address is public or private. + // If "true", then the IP address is public and accessible from the internet. + // If "false", then the IP address is private and accessible only from within the associated virtual cloud network. + IsPublic *bool `mandatory:"false" json:"isPublic"` + + // IP version associated with this IP address. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + ReservedIp *ReservedIp `mandatory:"false" json:"reservedIp"` +} + +func (m IpAddress) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m IpAddress) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_version.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_version.go new file mode 100644 index 0000000000..6323c4d8ab --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/ip_version.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// IpVersionEnum Enum with underlying type: string +type IpVersionEnum string + +// Set of constants representing the allowable values for IpVersionEnum +const ( + IpVersionIpv4 IpVersionEnum = "IPV4" + IpVersionIpv6 IpVersionEnum = "IPV6" +) + +var mappingIpVersionEnum = map[string]IpVersionEnum{ + "IPV4": IpVersionIpv4, + "IPV6": IpVersionIpv6, +} + +var mappingIpVersionEnumLowerCase = map[string]IpVersionEnum{ + "ipv4": IpVersionIpv4, + "ipv6": IpVersionIpv6, +} + +// GetIpVersionEnumValues Enumerates the set of values for IpVersionEnum +func GetIpVersionEnumValues() []IpVersionEnum { + values := make([]IpVersionEnum, 0) + for _, v := range mappingIpVersionEnum { + values = append(values, v) + } + return values +} + +// GetIpVersionEnumStringValues Enumerates the set of values in String for IpVersionEnum +func GetIpVersionEnumStringValues() []string { + return []string{ + "IPV4", + "IPV6", + } +} + +// GetMappingIpVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingIpVersionEnum(val string) (IpVersionEnum, bool) { + enum, ok := mappingIpVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/lifecycle_state.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/lifecycle_state.go new file mode 100644 index 0000000000..c51ecad9f6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/lifecycle_state.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// LifecycleStateEnum Enum with underlying type: string +type LifecycleStateEnum string + +// Set of constants representing the allowable values for LifecycleStateEnum +const ( + LifecycleStateCreating LifecycleStateEnum = "CREATING" + LifecycleStateUpdating LifecycleStateEnum = "UPDATING" + LifecycleStateActive LifecycleStateEnum = "ACTIVE" + LifecycleStateDeleting LifecycleStateEnum = "DELETING" + LifecycleStateDeleted LifecycleStateEnum = "DELETED" + LifecycleStateFailed LifecycleStateEnum = "FAILED" +) + +var mappingLifecycleStateEnum = map[string]LifecycleStateEnum{ + "CREATING": LifecycleStateCreating, + "UPDATING": LifecycleStateUpdating, + "ACTIVE": LifecycleStateActive, + "DELETING": LifecycleStateDeleting, + "DELETED": LifecycleStateDeleted, + "FAILED": LifecycleStateFailed, +} + +var mappingLifecycleStateEnumLowerCase = map[string]LifecycleStateEnum{ + "creating": LifecycleStateCreating, + "updating": LifecycleStateUpdating, + "active": LifecycleStateActive, + "deleting": LifecycleStateDeleting, + "deleted": LifecycleStateDeleted, + "failed": LifecycleStateFailed, +} + +// GetLifecycleStateEnumValues Enumerates the set of values for LifecycleStateEnum +func GetLifecycleStateEnumValues() []LifecycleStateEnum { + values := make([]LifecycleStateEnum, 0) + for _, v := range mappingLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetLifecycleStateEnumStringValues Enumerates the set of values in String for LifecycleStateEnum +func GetLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLifecycleStateEnum(val string) (LifecycleStateEnum, bool) { + enum, ok := mappingLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backend_sets_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backend_sets_request_response.go new file mode 100644 index 0000000000..a519771ea6 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backend_sets_request_response.go @@ -0,0 +1,204 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBackendSetsRequest wrapper for the ListBackendSets operation +type ListBackendSetsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListBackendSetsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListBackendSetsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBackendSetsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBackendSetsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBackendSetsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBackendSetsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBackendSetsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListBackendSetsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListBackendSetsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListBackendSetsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListBackendSetsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBackendSetsResponse wrapper for the ListBackendSets operation +type ListBackendSetsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of BackendSetCollection instances + BackendSetCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListBackendSetsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBackendSetsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListBackendSetsSortOrderEnum Enum with underlying type: string +type ListBackendSetsSortOrderEnum string + +// Set of constants representing the allowable values for ListBackendSetsSortOrderEnum +const ( + ListBackendSetsSortOrderAsc ListBackendSetsSortOrderEnum = "ASC" + ListBackendSetsSortOrderDesc ListBackendSetsSortOrderEnum = "DESC" +) + +var mappingListBackendSetsSortOrderEnum = map[string]ListBackendSetsSortOrderEnum{ + "ASC": ListBackendSetsSortOrderAsc, + "DESC": ListBackendSetsSortOrderDesc, +} + +var mappingListBackendSetsSortOrderEnumLowerCase = map[string]ListBackendSetsSortOrderEnum{ + "asc": ListBackendSetsSortOrderAsc, + "desc": ListBackendSetsSortOrderDesc, +} + +// GetListBackendSetsSortOrderEnumValues Enumerates the set of values for ListBackendSetsSortOrderEnum +func GetListBackendSetsSortOrderEnumValues() []ListBackendSetsSortOrderEnum { + values := make([]ListBackendSetsSortOrderEnum, 0) + for _, v := range mappingListBackendSetsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListBackendSetsSortOrderEnumStringValues Enumerates the set of values in String for ListBackendSetsSortOrderEnum +func GetListBackendSetsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListBackendSetsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBackendSetsSortOrderEnum(val string) (ListBackendSetsSortOrderEnum, bool) { + enum, ok := mappingListBackendSetsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListBackendSetsSortByEnum Enum with underlying type: string +type ListBackendSetsSortByEnum string + +// Set of constants representing the allowable values for ListBackendSetsSortByEnum +const ( + ListBackendSetsSortByTimecreated ListBackendSetsSortByEnum = "timeCreated" + ListBackendSetsSortByDisplayname ListBackendSetsSortByEnum = "displayName" +) + +var mappingListBackendSetsSortByEnum = map[string]ListBackendSetsSortByEnum{ + "timeCreated": ListBackendSetsSortByTimecreated, + "displayName": ListBackendSetsSortByDisplayname, +} + +var mappingListBackendSetsSortByEnumLowerCase = map[string]ListBackendSetsSortByEnum{ + "timecreated": ListBackendSetsSortByTimecreated, + "displayname": ListBackendSetsSortByDisplayname, +} + +// GetListBackendSetsSortByEnumValues Enumerates the set of values for ListBackendSetsSortByEnum +func GetListBackendSetsSortByEnumValues() []ListBackendSetsSortByEnum { + values := make([]ListBackendSetsSortByEnum, 0) + for _, v := range mappingListBackendSetsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListBackendSetsSortByEnumStringValues Enumerates the set of values in String for ListBackendSetsSortByEnum +func GetListBackendSetsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListBackendSetsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBackendSetsSortByEnum(val string) (ListBackendSetsSortByEnum, bool) { + enum, ok := mappingListBackendSetsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backends_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backends_request_response.go new file mode 100644 index 0000000000..4a1a0733c4 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_backends_request_response.go @@ -0,0 +1,208 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListBackendsRequest wrapper for the ListBackends operation +type ListBackendsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The name of the backend set associated with the backend servers. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListBackendsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListBackendsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListBackendsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListBackendsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListBackendsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListBackendsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListBackendsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListBackendsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListBackendsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListBackendsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListBackendsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListBackendsResponse wrapper for the ListBackends operation +type ListBackendsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of BackendCollection instances + BackendCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListBackendsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListBackendsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListBackendsSortOrderEnum Enum with underlying type: string +type ListBackendsSortOrderEnum string + +// Set of constants representing the allowable values for ListBackendsSortOrderEnum +const ( + ListBackendsSortOrderAsc ListBackendsSortOrderEnum = "ASC" + ListBackendsSortOrderDesc ListBackendsSortOrderEnum = "DESC" +) + +var mappingListBackendsSortOrderEnum = map[string]ListBackendsSortOrderEnum{ + "ASC": ListBackendsSortOrderAsc, + "DESC": ListBackendsSortOrderDesc, +} + +var mappingListBackendsSortOrderEnumLowerCase = map[string]ListBackendsSortOrderEnum{ + "asc": ListBackendsSortOrderAsc, + "desc": ListBackendsSortOrderDesc, +} + +// GetListBackendsSortOrderEnumValues Enumerates the set of values for ListBackendsSortOrderEnum +func GetListBackendsSortOrderEnumValues() []ListBackendsSortOrderEnum { + values := make([]ListBackendsSortOrderEnum, 0) + for _, v := range mappingListBackendsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListBackendsSortOrderEnumStringValues Enumerates the set of values in String for ListBackendsSortOrderEnum +func GetListBackendsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListBackendsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBackendsSortOrderEnum(val string) (ListBackendsSortOrderEnum, bool) { + enum, ok := mappingListBackendsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListBackendsSortByEnum Enum with underlying type: string +type ListBackendsSortByEnum string + +// Set of constants representing the allowable values for ListBackendsSortByEnum +const ( + ListBackendsSortByTimecreated ListBackendsSortByEnum = "timeCreated" + ListBackendsSortByDisplayname ListBackendsSortByEnum = "displayName" +) + +var mappingListBackendsSortByEnum = map[string]ListBackendsSortByEnum{ + "timeCreated": ListBackendsSortByTimecreated, + "displayName": ListBackendsSortByDisplayname, +} + +var mappingListBackendsSortByEnumLowerCase = map[string]ListBackendsSortByEnum{ + "timecreated": ListBackendsSortByTimecreated, + "displayname": ListBackendsSortByDisplayname, +} + +// GetListBackendsSortByEnumValues Enumerates the set of values for ListBackendsSortByEnum +func GetListBackendsSortByEnumValues() []ListBackendsSortByEnum { + values := make([]ListBackendsSortByEnum, 0) + for _, v := range mappingListBackendsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListBackendsSortByEnumStringValues Enumerates the set of values in String for ListBackendsSortByEnum +func GetListBackendsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListBackendsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListBackendsSortByEnum(val string) (ListBackendsSortByEnum, bool) { + enum, ok := mappingListBackendsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_listeners_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_listeners_request_response.go new file mode 100644 index 0000000000..418150e6ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_listeners_request_response.go @@ -0,0 +1,204 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListListenersRequest wrapper for the ListListeners operation +type ListListenersRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The system returns the requested resource, with a 200 status, only if the resource has no etag + // matching the one specified. If the condition fails for the GET and HEAD methods, then the system returns the + // HTTP status code `304 (Not Modified)`. + // Example: `example-etag` + IfNoneMatch *string `mandatory:"false" contributesTo:"header" name:"if-none-match"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListListenersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListListenersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListListenersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListListenersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListListenersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListListenersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListListenersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListListenersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListListenersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListListenersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListListenersSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListListenersResponse wrapper for the ListListeners operation +type ListListenersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of ListenerCollection instances + ListenerCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListListenersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListListenersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListListenersSortOrderEnum Enum with underlying type: string +type ListListenersSortOrderEnum string + +// Set of constants representing the allowable values for ListListenersSortOrderEnum +const ( + ListListenersSortOrderAsc ListListenersSortOrderEnum = "ASC" + ListListenersSortOrderDesc ListListenersSortOrderEnum = "DESC" +) + +var mappingListListenersSortOrderEnum = map[string]ListListenersSortOrderEnum{ + "ASC": ListListenersSortOrderAsc, + "DESC": ListListenersSortOrderDesc, +} + +var mappingListListenersSortOrderEnumLowerCase = map[string]ListListenersSortOrderEnum{ + "asc": ListListenersSortOrderAsc, + "desc": ListListenersSortOrderDesc, +} + +// GetListListenersSortOrderEnumValues Enumerates the set of values for ListListenersSortOrderEnum +func GetListListenersSortOrderEnumValues() []ListListenersSortOrderEnum { + values := make([]ListListenersSortOrderEnum, 0) + for _, v := range mappingListListenersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListListenersSortOrderEnumStringValues Enumerates the set of values in String for ListListenersSortOrderEnum +func GetListListenersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListListenersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListListenersSortOrderEnum(val string) (ListListenersSortOrderEnum, bool) { + enum, ok := mappingListListenersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListListenersSortByEnum Enum with underlying type: string +type ListListenersSortByEnum string + +// Set of constants representing the allowable values for ListListenersSortByEnum +const ( + ListListenersSortByTimecreated ListListenersSortByEnum = "timeCreated" + ListListenersSortByDisplayname ListListenersSortByEnum = "displayName" +) + +var mappingListListenersSortByEnum = map[string]ListListenersSortByEnum{ + "timeCreated": ListListenersSortByTimecreated, + "displayName": ListListenersSortByDisplayname, +} + +var mappingListListenersSortByEnumLowerCase = map[string]ListListenersSortByEnum{ + "timecreated": ListListenersSortByTimecreated, + "displayname": ListListenersSortByDisplayname, +} + +// GetListListenersSortByEnumValues Enumerates the set of values for ListListenersSortByEnum +func GetListListenersSortByEnumValues() []ListListenersSortByEnum { + values := make([]ListListenersSortByEnum, 0) + for _, v := range mappingListListenersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListListenersSortByEnumStringValues Enumerates the set of values in String for ListListenersSortByEnum +func GetListListenersSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListListenersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListListenersSortByEnum(val string) (ListListenersSortByEnum, bool) { + enum, ok := mappingListListenersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_live_migrations_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_live_migrations_request_response.go new file mode 100644 index 0000000000..b8dc052c5a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_live_migrations_request_response.go @@ -0,0 +1,198 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListLiveMigrationsRequest wrapper for the ListLiveMigrations operation +type ListLiveMigrationsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListLiveMigrationsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListLiveMigrationsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListLiveMigrationsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListLiveMigrationsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListLiveMigrationsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListLiveMigrationsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListLiveMigrationsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListLiveMigrationsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListLiveMigrationsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListLiveMigrationsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListLiveMigrationsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListLiveMigrationsResponse wrapper for the ListLiveMigrations operation +type ListLiveMigrationsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of LiveMigrationCollection instances + LiveMigrationCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListLiveMigrationsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListLiveMigrationsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListLiveMigrationsSortOrderEnum Enum with underlying type: string +type ListLiveMigrationsSortOrderEnum string + +// Set of constants representing the allowable values for ListLiveMigrationsSortOrderEnum +const ( + ListLiveMigrationsSortOrderAsc ListLiveMigrationsSortOrderEnum = "ASC" + ListLiveMigrationsSortOrderDesc ListLiveMigrationsSortOrderEnum = "DESC" +) + +var mappingListLiveMigrationsSortOrderEnum = map[string]ListLiveMigrationsSortOrderEnum{ + "ASC": ListLiveMigrationsSortOrderAsc, + "DESC": ListLiveMigrationsSortOrderDesc, +} + +var mappingListLiveMigrationsSortOrderEnumLowerCase = map[string]ListLiveMigrationsSortOrderEnum{ + "asc": ListLiveMigrationsSortOrderAsc, + "desc": ListLiveMigrationsSortOrderDesc, +} + +// GetListLiveMigrationsSortOrderEnumValues Enumerates the set of values for ListLiveMigrationsSortOrderEnum +func GetListLiveMigrationsSortOrderEnumValues() []ListLiveMigrationsSortOrderEnum { + values := make([]ListLiveMigrationsSortOrderEnum, 0) + for _, v := range mappingListLiveMigrationsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListLiveMigrationsSortOrderEnumStringValues Enumerates the set of values in String for ListLiveMigrationsSortOrderEnum +func GetListLiveMigrationsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListLiveMigrationsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLiveMigrationsSortOrderEnum(val string) (ListLiveMigrationsSortOrderEnum, bool) { + enum, ok := mappingListLiveMigrationsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListLiveMigrationsSortByEnum Enum with underlying type: string +type ListLiveMigrationsSortByEnum string + +// Set of constants representing the allowable values for ListLiveMigrationsSortByEnum +const ( + ListLiveMigrationsSortByTimecreated ListLiveMigrationsSortByEnum = "timeCreated" + ListLiveMigrationsSortByDisplayname ListLiveMigrationsSortByEnum = "displayName" +) + +var mappingListLiveMigrationsSortByEnum = map[string]ListLiveMigrationsSortByEnum{ + "timeCreated": ListLiveMigrationsSortByTimecreated, + "displayName": ListLiveMigrationsSortByDisplayname, +} + +var mappingListLiveMigrationsSortByEnumLowerCase = map[string]ListLiveMigrationsSortByEnum{ + "timecreated": ListLiveMigrationsSortByTimecreated, + "displayname": ListLiveMigrationsSortByDisplayname, +} + +// GetListLiveMigrationsSortByEnumValues Enumerates the set of values for ListLiveMigrationsSortByEnum +func GetListLiveMigrationsSortByEnumValues() []ListLiveMigrationsSortByEnum { + values := make([]ListLiveMigrationsSortByEnum, 0) + for _, v := range mappingListLiveMigrationsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListLiveMigrationsSortByEnumStringValues Enumerates the set of values in String for ListLiveMigrationsSortByEnum +func GetListLiveMigrationsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListLiveMigrationsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListLiveMigrationsSortByEnum(val string) (ListLiveMigrationsSortByEnum, bool) { + enum, ok := mappingListLiveMigrationsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancer_healths_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancer_healths_request_response.go new file mode 100644 index 0000000000..dfee21c2d2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancer_healths_request_response.go @@ -0,0 +1,198 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkLoadBalancerHealthsRequest wrapper for the ListNetworkLoadBalancerHealths operation +type ListNetworkLoadBalancerHealthsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListNetworkLoadBalancerHealthsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListNetworkLoadBalancerHealthsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkLoadBalancerHealthsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkLoadBalancerHealthsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkLoadBalancerHealthsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkLoadBalancerHealthsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkLoadBalancerHealthsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkLoadBalancerHealthsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkLoadBalancerHealthsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkLoadBalancerHealthsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkLoadBalancerHealthsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkLoadBalancerHealthsResponse wrapper for the ListNetworkLoadBalancerHealths operation +type ListNetworkLoadBalancerHealthsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of NetworkLoadBalancerHealthCollection instances + NetworkLoadBalancerHealthCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNetworkLoadBalancerHealthsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkLoadBalancerHealthsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkLoadBalancerHealthsSortOrderEnum Enum with underlying type: string +type ListNetworkLoadBalancerHealthsSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancerHealthsSortOrderEnum +const ( + ListNetworkLoadBalancerHealthsSortOrderAsc ListNetworkLoadBalancerHealthsSortOrderEnum = "ASC" + ListNetworkLoadBalancerHealthsSortOrderDesc ListNetworkLoadBalancerHealthsSortOrderEnum = "DESC" +) + +var mappingListNetworkLoadBalancerHealthsSortOrderEnum = map[string]ListNetworkLoadBalancerHealthsSortOrderEnum{ + "ASC": ListNetworkLoadBalancerHealthsSortOrderAsc, + "DESC": ListNetworkLoadBalancerHealthsSortOrderDesc, +} + +var mappingListNetworkLoadBalancerHealthsSortOrderEnumLowerCase = map[string]ListNetworkLoadBalancerHealthsSortOrderEnum{ + "asc": ListNetworkLoadBalancerHealthsSortOrderAsc, + "desc": ListNetworkLoadBalancerHealthsSortOrderDesc, +} + +// GetListNetworkLoadBalancerHealthsSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancerHealthsSortOrderEnum +func GetListNetworkLoadBalancerHealthsSortOrderEnumValues() []ListNetworkLoadBalancerHealthsSortOrderEnum { + values := make([]ListNetworkLoadBalancerHealthsSortOrderEnum, 0) + for _, v := range mappingListNetworkLoadBalancerHealthsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancerHealthsSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancerHealthsSortOrderEnum +func GetListNetworkLoadBalancerHealthsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkLoadBalancerHealthsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancerHealthsSortOrderEnum(val string) (ListNetworkLoadBalancerHealthsSortOrderEnum, bool) { + enum, ok := mappingListNetworkLoadBalancerHealthsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkLoadBalancerHealthsSortByEnum Enum with underlying type: string +type ListNetworkLoadBalancerHealthsSortByEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancerHealthsSortByEnum +const ( + ListNetworkLoadBalancerHealthsSortByTimecreated ListNetworkLoadBalancerHealthsSortByEnum = "timeCreated" + ListNetworkLoadBalancerHealthsSortByDisplayname ListNetworkLoadBalancerHealthsSortByEnum = "displayName" +) + +var mappingListNetworkLoadBalancerHealthsSortByEnum = map[string]ListNetworkLoadBalancerHealthsSortByEnum{ + "timeCreated": ListNetworkLoadBalancerHealthsSortByTimecreated, + "displayName": ListNetworkLoadBalancerHealthsSortByDisplayname, +} + +var mappingListNetworkLoadBalancerHealthsSortByEnumLowerCase = map[string]ListNetworkLoadBalancerHealthsSortByEnum{ + "timecreated": ListNetworkLoadBalancerHealthsSortByTimecreated, + "displayname": ListNetworkLoadBalancerHealthsSortByDisplayname, +} + +// GetListNetworkLoadBalancerHealthsSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancerHealthsSortByEnum +func GetListNetworkLoadBalancerHealthsSortByEnumValues() []ListNetworkLoadBalancerHealthsSortByEnum { + values := make([]ListNetworkLoadBalancerHealthsSortByEnum, 0) + for _, v := range mappingListNetworkLoadBalancerHealthsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancerHealthsSortByEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancerHealthsSortByEnum +func GetListNetworkLoadBalancerHealthsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListNetworkLoadBalancerHealthsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancerHealthsSortByEnum(val string) (ListNetworkLoadBalancerHealthsSortByEnum, bool) { + enum, ok := mappingListNetworkLoadBalancerHealthsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_policies_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_policies_request_response.go new file mode 100644 index 0000000000..1dae9a539b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_policies_request_response.go @@ -0,0 +1,195 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkLoadBalancersPoliciesRequest wrapper for the ListNetworkLoadBalancersPolicies operation +type ListNetworkLoadBalancersPoliciesRequest struct { + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListNetworkLoadBalancersPoliciesSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListNetworkLoadBalancersPoliciesSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkLoadBalancersPoliciesRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkLoadBalancersPoliciesRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkLoadBalancersPoliciesRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkLoadBalancersPoliciesRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkLoadBalancersPoliciesRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkLoadBalancersPoliciesSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkLoadBalancersPoliciesSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkLoadBalancersPoliciesSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkLoadBalancersPoliciesSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkLoadBalancersPoliciesResponse wrapper for the ListNetworkLoadBalancersPolicies operation +type ListNetworkLoadBalancersPoliciesResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of NetworkLoadBalancersPolicyCollection instances + NetworkLoadBalancersPolicyCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNetworkLoadBalancersPoliciesResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkLoadBalancersPoliciesResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkLoadBalancersPoliciesSortOrderEnum Enum with underlying type: string +type ListNetworkLoadBalancersPoliciesSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersPoliciesSortOrderEnum +const ( + ListNetworkLoadBalancersPoliciesSortOrderAsc ListNetworkLoadBalancersPoliciesSortOrderEnum = "ASC" + ListNetworkLoadBalancersPoliciesSortOrderDesc ListNetworkLoadBalancersPoliciesSortOrderEnum = "DESC" +) + +var mappingListNetworkLoadBalancersPoliciesSortOrderEnum = map[string]ListNetworkLoadBalancersPoliciesSortOrderEnum{ + "ASC": ListNetworkLoadBalancersPoliciesSortOrderAsc, + "DESC": ListNetworkLoadBalancersPoliciesSortOrderDesc, +} + +var mappingListNetworkLoadBalancersPoliciesSortOrderEnumLowerCase = map[string]ListNetworkLoadBalancersPoliciesSortOrderEnum{ + "asc": ListNetworkLoadBalancersPoliciesSortOrderAsc, + "desc": ListNetworkLoadBalancersPoliciesSortOrderDesc, +} + +// GetListNetworkLoadBalancersPoliciesSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancersPoliciesSortOrderEnum +func GetListNetworkLoadBalancersPoliciesSortOrderEnumValues() []ListNetworkLoadBalancersPoliciesSortOrderEnum { + values := make([]ListNetworkLoadBalancersPoliciesSortOrderEnum, 0) + for _, v := range mappingListNetworkLoadBalancersPoliciesSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersPoliciesSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersPoliciesSortOrderEnum +func GetListNetworkLoadBalancersPoliciesSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkLoadBalancersPoliciesSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersPoliciesSortOrderEnum(val string) (ListNetworkLoadBalancersPoliciesSortOrderEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersPoliciesSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkLoadBalancersPoliciesSortByEnum Enum with underlying type: string +type ListNetworkLoadBalancersPoliciesSortByEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersPoliciesSortByEnum +const ( + ListNetworkLoadBalancersPoliciesSortByTimecreated ListNetworkLoadBalancersPoliciesSortByEnum = "timeCreated" + ListNetworkLoadBalancersPoliciesSortByDisplayname ListNetworkLoadBalancersPoliciesSortByEnum = "displayName" +) + +var mappingListNetworkLoadBalancersPoliciesSortByEnum = map[string]ListNetworkLoadBalancersPoliciesSortByEnum{ + "timeCreated": ListNetworkLoadBalancersPoliciesSortByTimecreated, + "displayName": ListNetworkLoadBalancersPoliciesSortByDisplayname, +} + +var mappingListNetworkLoadBalancersPoliciesSortByEnumLowerCase = map[string]ListNetworkLoadBalancersPoliciesSortByEnum{ + "timecreated": ListNetworkLoadBalancersPoliciesSortByTimecreated, + "displayname": ListNetworkLoadBalancersPoliciesSortByDisplayname, +} + +// GetListNetworkLoadBalancersPoliciesSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancersPoliciesSortByEnum +func GetListNetworkLoadBalancersPoliciesSortByEnumValues() []ListNetworkLoadBalancersPoliciesSortByEnum { + values := make([]ListNetworkLoadBalancersPoliciesSortByEnum, 0) + for _, v := range mappingListNetworkLoadBalancersPoliciesSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersPoliciesSortByEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersPoliciesSortByEnum +func GetListNetworkLoadBalancersPoliciesSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListNetworkLoadBalancersPoliciesSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersPoliciesSortByEnum(val string) (ListNetworkLoadBalancersPoliciesSortByEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersPoliciesSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_protocols_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_protocols_request_response.go new file mode 100644 index 0000000000..05dd96b5eb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_protocols_request_response.go @@ -0,0 +1,195 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkLoadBalancersProtocolsRequest wrapper for the ListNetworkLoadBalancersProtocols operation +type ListNetworkLoadBalancersProtocolsRequest struct { + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListNetworkLoadBalancersProtocolsSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListNetworkLoadBalancersProtocolsSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkLoadBalancersProtocolsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkLoadBalancersProtocolsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkLoadBalancersProtocolsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkLoadBalancersProtocolsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkLoadBalancersProtocolsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkLoadBalancersProtocolsSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkLoadBalancersProtocolsSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkLoadBalancersProtocolsSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkLoadBalancersProtocolsSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkLoadBalancersProtocolsResponse wrapper for the ListNetworkLoadBalancersProtocols operation +type ListNetworkLoadBalancersProtocolsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of NetworkLoadBalancersProtocolCollection instances + NetworkLoadBalancersProtocolCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListNetworkLoadBalancersProtocolsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkLoadBalancersProtocolsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkLoadBalancersProtocolsSortOrderEnum Enum with underlying type: string +type ListNetworkLoadBalancersProtocolsSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersProtocolsSortOrderEnum +const ( + ListNetworkLoadBalancersProtocolsSortOrderAsc ListNetworkLoadBalancersProtocolsSortOrderEnum = "ASC" + ListNetworkLoadBalancersProtocolsSortOrderDesc ListNetworkLoadBalancersProtocolsSortOrderEnum = "DESC" +) + +var mappingListNetworkLoadBalancersProtocolsSortOrderEnum = map[string]ListNetworkLoadBalancersProtocolsSortOrderEnum{ + "ASC": ListNetworkLoadBalancersProtocolsSortOrderAsc, + "DESC": ListNetworkLoadBalancersProtocolsSortOrderDesc, +} + +var mappingListNetworkLoadBalancersProtocolsSortOrderEnumLowerCase = map[string]ListNetworkLoadBalancersProtocolsSortOrderEnum{ + "asc": ListNetworkLoadBalancersProtocolsSortOrderAsc, + "desc": ListNetworkLoadBalancersProtocolsSortOrderDesc, +} + +// GetListNetworkLoadBalancersProtocolsSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancersProtocolsSortOrderEnum +func GetListNetworkLoadBalancersProtocolsSortOrderEnumValues() []ListNetworkLoadBalancersProtocolsSortOrderEnum { + values := make([]ListNetworkLoadBalancersProtocolsSortOrderEnum, 0) + for _, v := range mappingListNetworkLoadBalancersProtocolsSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersProtocolsSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersProtocolsSortOrderEnum +func GetListNetworkLoadBalancersProtocolsSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkLoadBalancersProtocolsSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersProtocolsSortOrderEnum(val string) (ListNetworkLoadBalancersProtocolsSortOrderEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersProtocolsSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkLoadBalancersProtocolsSortByEnum Enum with underlying type: string +type ListNetworkLoadBalancersProtocolsSortByEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersProtocolsSortByEnum +const ( + ListNetworkLoadBalancersProtocolsSortByTimecreated ListNetworkLoadBalancersProtocolsSortByEnum = "timeCreated" + ListNetworkLoadBalancersProtocolsSortByDisplayname ListNetworkLoadBalancersProtocolsSortByEnum = "displayName" +) + +var mappingListNetworkLoadBalancersProtocolsSortByEnum = map[string]ListNetworkLoadBalancersProtocolsSortByEnum{ + "timeCreated": ListNetworkLoadBalancersProtocolsSortByTimecreated, + "displayName": ListNetworkLoadBalancersProtocolsSortByDisplayname, +} + +var mappingListNetworkLoadBalancersProtocolsSortByEnumLowerCase = map[string]ListNetworkLoadBalancersProtocolsSortByEnum{ + "timecreated": ListNetworkLoadBalancersProtocolsSortByTimecreated, + "displayname": ListNetworkLoadBalancersProtocolsSortByDisplayname, +} + +// GetListNetworkLoadBalancersProtocolsSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancersProtocolsSortByEnum +func GetListNetworkLoadBalancersProtocolsSortByEnumValues() []ListNetworkLoadBalancersProtocolsSortByEnum { + values := make([]ListNetworkLoadBalancersProtocolsSortByEnum, 0) + for _, v := range mappingListNetworkLoadBalancersProtocolsSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersProtocolsSortByEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersProtocolsSortByEnum +func GetListNetworkLoadBalancersProtocolsSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListNetworkLoadBalancersProtocolsSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersProtocolsSortByEnum(val string) (ListNetworkLoadBalancersProtocolsSortByEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersProtocolsSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_request_response.go new file mode 100644 index 0000000000..4d4dd4ee0b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_network_load_balancers_request_response.go @@ -0,0 +1,265 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListNetworkLoadBalancersRequest wrapper for the ListNetworkLoadBalancers operation +type ListNetworkLoadBalancersRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // A filter to return only resources that match the given lifecycle state. + LifecycleState ListNetworkLoadBalancersLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` + + // A filter to return only resources that match the entire display name given. + DisplayName *string `mandatory:"false" contributesTo:"query" name:"displayName"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // The sort order to use, either 'asc' (ascending) or 'desc' (descending). + SortOrder ListNetworkLoadBalancersSortOrderEnum `mandatory:"false" contributesTo:"query" name:"sortOrder" omitEmpty:"true"` + + // The field to sort by. Only one sort order can be provided. The default order for timeCreated is descending. + // The default order for displayName is ascending. If no value is specified, then timeCreated is the default. + SortBy ListNetworkLoadBalancersSortByEnum `mandatory:"false" contributesTo:"query" name:"sortBy" omitEmpty:"true"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListNetworkLoadBalancersRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListNetworkLoadBalancersRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListNetworkLoadBalancersRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListNetworkLoadBalancersRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListNetworkLoadBalancersRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListNetworkLoadBalancersLifecycleStateEnum(string(request.LifecycleState)); !ok && request.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", request.LifecycleState, strings.Join(GetListNetworkLoadBalancersLifecycleStateEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkLoadBalancersSortOrderEnum(string(request.SortOrder)); !ok && request.SortOrder != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortOrder: %s. Supported values are: %s.", request.SortOrder, strings.Join(GetListNetworkLoadBalancersSortOrderEnumStringValues(), ","))) + } + if _, ok := GetMappingListNetworkLoadBalancersSortByEnum(string(request.SortBy)); !ok && request.SortBy != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for SortBy: %s. Supported values are: %s.", request.SortBy, strings.Join(GetListNetworkLoadBalancersSortByEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListNetworkLoadBalancersResponse wrapper for the ListNetworkLoadBalancers operation +type ListNetworkLoadBalancersResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of NetworkLoadBalancerCollection instances + NetworkLoadBalancerCollection `presentIn:"body"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` +} + +func (response ListNetworkLoadBalancersResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListNetworkLoadBalancersResponse) HTTPResponse() *http.Response { + return response.RawResponse +} + +// ListNetworkLoadBalancersLifecycleStateEnum Enum with underlying type: string +type ListNetworkLoadBalancersLifecycleStateEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersLifecycleStateEnum +const ( + ListNetworkLoadBalancersLifecycleStateCreating ListNetworkLoadBalancersLifecycleStateEnum = "CREATING" + ListNetworkLoadBalancersLifecycleStateUpdating ListNetworkLoadBalancersLifecycleStateEnum = "UPDATING" + ListNetworkLoadBalancersLifecycleStateActive ListNetworkLoadBalancersLifecycleStateEnum = "ACTIVE" + ListNetworkLoadBalancersLifecycleStateDeleting ListNetworkLoadBalancersLifecycleStateEnum = "DELETING" + ListNetworkLoadBalancersLifecycleStateDeleted ListNetworkLoadBalancersLifecycleStateEnum = "DELETED" + ListNetworkLoadBalancersLifecycleStateFailed ListNetworkLoadBalancersLifecycleStateEnum = "FAILED" +) + +var mappingListNetworkLoadBalancersLifecycleStateEnum = map[string]ListNetworkLoadBalancersLifecycleStateEnum{ + "CREATING": ListNetworkLoadBalancersLifecycleStateCreating, + "UPDATING": ListNetworkLoadBalancersLifecycleStateUpdating, + "ACTIVE": ListNetworkLoadBalancersLifecycleStateActive, + "DELETING": ListNetworkLoadBalancersLifecycleStateDeleting, + "DELETED": ListNetworkLoadBalancersLifecycleStateDeleted, + "FAILED": ListNetworkLoadBalancersLifecycleStateFailed, +} + +var mappingListNetworkLoadBalancersLifecycleStateEnumLowerCase = map[string]ListNetworkLoadBalancersLifecycleStateEnum{ + "creating": ListNetworkLoadBalancersLifecycleStateCreating, + "updating": ListNetworkLoadBalancersLifecycleStateUpdating, + "active": ListNetworkLoadBalancersLifecycleStateActive, + "deleting": ListNetworkLoadBalancersLifecycleStateDeleting, + "deleted": ListNetworkLoadBalancersLifecycleStateDeleted, + "failed": ListNetworkLoadBalancersLifecycleStateFailed, +} + +// GetListNetworkLoadBalancersLifecycleStateEnumValues Enumerates the set of values for ListNetworkLoadBalancersLifecycleStateEnum +func GetListNetworkLoadBalancersLifecycleStateEnumValues() []ListNetworkLoadBalancersLifecycleStateEnum { + values := make([]ListNetworkLoadBalancersLifecycleStateEnum, 0) + for _, v := range mappingListNetworkLoadBalancersLifecycleStateEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersLifecycleStateEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersLifecycleStateEnum +func GetListNetworkLoadBalancersLifecycleStateEnumStringValues() []string { + return []string{ + "CREATING", + "UPDATING", + "ACTIVE", + "DELETING", + "DELETED", + "FAILED", + } +} + +// GetMappingListNetworkLoadBalancersLifecycleStateEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersLifecycleStateEnum(val string) (ListNetworkLoadBalancersLifecycleStateEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersLifecycleStateEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkLoadBalancersSortOrderEnum Enum with underlying type: string +type ListNetworkLoadBalancersSortOrderEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersSortOrderEnum +const ( + ListNetworkLoadBalancersSortOrderAsc ListNetworkLoadBalancersSortOrderEnum = "ASC" + ListNetworkLoadBalancersSortOrderDesc ListNetworkLoadBalancersSortOrderEnum = "DESC" +) + +var mappingListNetworkLoadBalancersSortOrderEnum = map[string]ListNetworkLoadBalancersSortOrderEnum{ + "ASC": ListNetworkLoadBalancersSortOrderAsc, + "DESC": ListNetworkLoadBalancersSortOrderDesc, +} + +var mappingListNetworkLoadBalancersSortOrderEnumLowerCase = map[string]ListNetworkLoadBalancersSortOrderEnum{ + "asc": ListNetworkLoadBalancersSortOrderAsc, + "desc": ListNetworkLoadBalancersSortOrderDesc, +} + +// GetListNetworkLoadBalancersSortOrderEnumValues Enumerates the set of values for ListNetworkLoadBalancersSortOrderEnum +func GetListNetworkLoadBalancersSortOrderEnumValues() []ListNetworkLoadBalancersSortOrderEnum { + values := make([]ListNetworkLoadBalancersSortOrderEnum, 0) + for _, v := range mappingListNetworkLoadBalancersSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersSortOrderEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersSortOrderEnum +func GetListNetworkLoadBalancersSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingListNetworkLoadBalancersSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersSortOrderEnum(val string) (ListNetworkLoadBalancersSortOrderEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// ListNetworkLoadBalancersSortByEnum Enum with underlying type: string +type ListNetworkLoadBalancersSortByEnum string + +// Set of constants representing the allowable values for ListNetworkLoadBalancersSortByEnum +const ( + ListNetworkLoadBalancersSortByTimecreated ListNetworkLoadBalancersSortByEnum = "timeCreated" + ListNetworkLoadBalancersSortByDisplayname ListNetworkLoadBalancersSortByEnum = "displayName" +) + +var mappingListNetworkLoadBalancersSortByEnum = map[string]ListNetworkLoadBalancersSortByEnum{ + "timeCreated": ListNetworkLoadBalancersSortByTimecreated, + "displayName": ListNetworkLoadBalancersSortByDisplayname, +} + +var mappingListNetworkLoadBalancersSortByEnumLowerCase = map[string]ListNetworkLoadBalancersSortByEnum{ + "timecreated": ListNetworkLoadBalancersSortByTimecreated, + "displayname": ListNetworkLoadBalancersSortByDisplayname, +} + +// GetListNetworkLoadBalancersSortByEnumValues Enumerates the set of values for ListNetworkLoadBalancersSortByEnum +func GetListNetworkLoadBalancersSortByEnumValues() []ListNetworkLoadBalancersSortByEnum { + values := make([]ListNetworkLoadBalancersSortByEnum, 0) + for _, v := range mappingListNetworkLoadBalancersSortByEnum { + values = append(values, v) + } + return values +} + +// GetListNetworkLoadBalancersSortByEnumStringValues Enumerates the set of values in String for ListNetworkLoadBalancersSortByEnum +func GetListNetworkLoadBalancersSortByEnumStringValues() []string { + return []string{ + "timeCreated", + "displayName", + } +} + +// GetMappingListNetworkLoadBalancersSortByEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListNetworkLoadBalancersSortByEnum(val string) (ListNetworkLoadBalancersSortByEnum, bool) { + enum, ok := mappingListNetworkLoadBalancersSortByEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_errors_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_errors_request_response.go new file mode 100644 index 0000000000..b62c95daf7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_errors_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestErrorsRequest wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsRequest struct { + + // The identifier of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestErrorsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestErrorsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestErrorsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestErrorsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestErrorsResponse wrapper for the ListWorkRequestErrors operation +type ListWorkRequestErrorsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of WorkRequestErrorCollection instances + WorkRequestErrorCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestErrorsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestErrorsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_logs_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_logs_request_response.go new file mode 100644 index 0000000000..f9adc77352 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_request_logs_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestLogsRequest wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsRequest struct { + + // The identifier of the asynchronous request. + WorkRequestId *string `mandatory:"true" contributesTo:"path" name:"workRequestId"` + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestLogsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestLogsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestLogsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestLogsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestLogsResponse wrapper for the ListWorkRequestLogs operation +type ListWorkRequestLogsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of WorkRequestLogEntryCollection instances + WorkRequestLogEntryCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestLogsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestLogsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_requests_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_requests_request_response.go new file mode 100644 index 0000000000..748a9de31e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/list_work_requests_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// ListWorkRequestsRequest wrapper for the ListWorkRequests operation +type ListWorkRequestsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment containing the network load balancers to list. + CompartmentId *string `mandatory:"true" contributesTo:"query" name:"compartmentId"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For list pagination. The maximum number of results per page or items to return, in a paginated "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Limit *int `mandatory:"false" contributesTo:"query" name:"limit"` + + // The page token representing the page from which to start retrieving results. + // For list pagination. The value of the `opc-next-page` response header from the previous "List" call. + // For important details about how pagination works, see List Pagination (https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + Page *string `mandatory:"false" contributesTo:"query" name:"page"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request ListWorkRequestsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request ListWorkRequestsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request ListWorkRequestsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request ListWorkRequestsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request ListWorkRequestsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// ListWorkRequestsResponse wrapper for the ListWorkRequests operation +type ListWorkRequestsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // A list of WorkRequestCollection instances + WorkRequestCollection `presentIn:"body"` + + // For pagination of a list of items. When paging through a list, if this header appears in the response, + // then a partial list might have been returned. Include this value as the `page` parameter for the + // subsequent GET request to get the next batch of items. + OpcNextPage *string `presentIn:"header" name:"opc-next-page"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response ListWorkRequestsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response ListWorkRequestsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go new file mode 100644 index 0000000000..b5a9f9b702 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Listener The congfiguration of the listener. +// For more information about backend set configuration, see +// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +type Listener struct { + + // A friendly name for the listener. It must be unique and it cannot be changed. + // Example: `example_listener` + Name *string `mandatory:"true" json:"name"` + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. + // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). + // "ListNetworkLoadBalancersProtocols" API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead. + // Example: `TCP` + Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` + + // IP version associated with the listener. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // Property to enable/disable PPv2 feature for this listener. + IsPpv2Enabled *bool `mandatory:"false" json:"isPpv2Enabled"` + + // An array that represents the PPV2 Options that can be enabled on TCP Listeners. + // Example: ["VCN_ID"] + InternalProxyProtocolOptions []MetadataOptionsEnum `mandatory:"false" json:"internalProxyProtocolOptions"` +} + +func (m Listener) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Listener) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListenerProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetListenerProtocolsEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_collection.go new file mode 100644 index 0000000000..250d96aeb1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ListenerCollection Wrapper object for an array of ListenerSummary objects. +type ListenerCollection struct { + + // Array of ListenerSummary objects. + Items []ListenerSummary `mandatory:"false" json:"items"` +} + +func (m ListenerCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ListenerCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go new file mode 100644 index 0000000000..c570e0cfc2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_details.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ListenerDetails The listener's configuration. +// For more information about backend set configuration, see +// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +type ListenerDetails struct { + + // A friendly name for the listener. It must be unique and it cannot be changed. + // Example: `example_listener` + Name *string `mandatory:"true" json:"name"` + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. + // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). + // "ListNetworkLoadBalancersProtocols" API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead. + // Example: `TCP` + Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` + + // IP version associated with the listener. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // Property to enable/disable PPv2 feature for this listener. + IsPpv2Enabled *bool `mandatory:"false" json:"isPpv2Enabled"` + + // An array that represents the PPV2 Options that can be enabled on TCP Listeners. + // Example: ["VCN_ID"] + InternalProxyProtocolOptions []MetadataOptionsEnum `mandatory:"false" json:"internalProxyProtocolOptions"` +} + +func (m ListenerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ListenerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListenerProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetListenerProtocolsEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go new file mode 100644 index 0000000000..a3feba3628 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_protocols.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// ListenerProtocolsEnum Enum with underlying type: string +type ListenerProtocolsEnum string + +// Set of constants representing the allowable values for ListenerProtocolsEnum +const ( + ListenerProtocolsAny ListenerProtocolsEnum = "ANY" + ListenerProtocolsTcp ListenerProtocolsEnum = "TCP" + ListenerProtocolsUdp ListenerProtocolsEnum = "UDP" + ListenerProtocolsTcpAndUdp ListenerProtocolsEnum = "TCP_AND_UDP" +) + +var mappingListenerProtocolsEnum = map[string]ListenerProtocolsEnum{ + "ANY": ListenerProtocolsAny, + "TCP": ListenerProtocolsTcp, + "UDP": ListenerProtocolsUdp, + "TCP_AND_UDP": ListenerProtocolsTcpAndUdp, +} + +var mappingListenerProtocolsEnumLowerCase = map[string]ListenerProtocolsEnum{ + "any": ListenerProtocolsAny, + "tcp": ListenerProtocolsTcp, + "udp": ListenerProtocolsUdp, + "tcp_and_udp": ListenerProtocolsTcpAndUdp, +} + +// GetListenerProtocolsEnumValues Enumerates the set of values for ListenerProtocolsEnum +func GetListenerProtocolsEnumValues() []ListenerProtocolsEnum { + values := make([]ListenerProtocolsEnum, 0) + for _, v := range mappingListenerProtocolsEnum { + values = append(values, v) + } + return values +} + +// GetListenerProtocolsEnumStringValues Enumerates the set of values in String for ListenerProtocolsEnum +func GetListenerProtocolsEnumStringValues() []string { + return []string{ + "ANY", + "TCP", + "UDP", + "TCP_AND_UDP", + } +} + +// GetMappingListenerProtocolsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingListenerProtocolsEnum(val string) (ListenerProtocolsEnum, bool) { + enum, ok := mappingListenerProtocolsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go new file mode 100644 index 0000000000..8d478261e1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/listener_summary.go @@ -0,0 +1,73 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ListenerSummary The configuration of the listener. +// For more information about backend set configuration, see +// Managing Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +type ListenerSummary struct { + + // A friendly name for the listener. It must be unique and it cannot be changed. + // Example: `example_listener` + Name *string `mandatory:"true" json:"name"` + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"true" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"true" json:"port"` + + // The protocol on which the listener accepts connection requests. + // For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. + // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). + // "ListNetworkLoadBalancersProtocols" API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead. + // Example: `TCP` + Protocol ListenerProtocolsEnum `mandatory:"true" json:"protocol"` + + // IP version associated with the listener. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // Property to enable/disable PPv2 feature for this listener. + IsPpv2Enabled *bool `mandatory:"false" json:"isPpv2Enabled"` + + // An array that represents the PPV2 Options that can be enabled on TCP Listeners. + // Example: ["VCN_ID"] + InternalProxyProtocolOptions []MetadataOptionsEnum `mandatory:"false" json:"internalProxyProtocolOptions"` +} + +func (m ListenerSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ListenerSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingListenerProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetListenerProtocolsEnumStringValues(), ","))) + } + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration.go new file mode 100644 index 0000000000..92c9c8fc47 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LiveMigration The status entry of live migration operation. +type LiveMigration struct { + + // Unique identifier for the live migration operation. + // Example: `ocid1.coreservicesworkrequest.oc1.iad.aaaaaaaa2dzekghuaygw5vjslup47huywt6omihmfilp75xcnp2rlktkdd2q` + WorkRequestId *string `mandatory:"true" json:"workRequestId"` + + // The source pod id from where the live migration operation is performed. + // Example: `10.0.0.1` + SourcePodId *string `mandatory:"true" json:"sourcePodId"` + + // The destination pod id to where the live migration is performed. + // Example: `10.0.0.2` + DestinationPodId *string `mandatory:"true" json:"destinationPodId"` + + // The general status of the live migration operation. + // * **SUCCESS:** Successfully completed the live migration operation. + // * **PARTIAL_SUCCESS:** Completed the live migration operation with pending source detach. + // * **UPDATING:** The live migration operation is in progress. + // * **FAILED:** The live migration operation failed in processing. + Status LiveMigrationStatusEnum `mandatory:"true" json:"status"` + + // The general status of the live migration operation. + // * **NOT_INITIATED:** Rollback operation not initiated.. + // * **SUCCESS:** Successfully completed the live migration rollback operation on failure. + // * **UPDATING:** The live migration rollback operation is in progress. + // * **FAILED:** The live migration rollback operation failed in processing. + // * **NOT_SUPPORTED:** The live migration rollback operation not possible at current step of processing. + RollbackStatus LiveMigrationRollbackStatusEnum `mandatory:"true" json:"rollbackStatus"` + + // The step on which the live migration failure happened. + FailureStep *string `mandatory:"true" json:"failureStep"` + + // Unique identifier for the nlb resource. + // Example: `ocid1.networkloadbalancer.oc1.iad.aaaaaaaa2dzekghuaygw5vjslup47huywt6omihmfilp75xcnp2rlktkdd2q` + ResourceId *string `mandatory:"false" json:"resourceId"` + + // Unique identifier for the service VNIC. + // Example: `ocid1.vnic.oc1.iad.aaaaaaaa2dzekghuaygw5vjslup47huywt6omihmfilp75xcnp2rlktkdd2q` + ServiceVnicId *string `mandatory:"false" json:"serviceVnicId"` + + // The date and time the data was created, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time the data was created, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The destination pod name to where the live migration is performed. + // Example: `pod2` + DestinationPodName *string `mandatory:"false" json:"destinationPodName"` + + // The source slot id. + // Example: `1233` + SourceSlotId *int `mandatory:"false" json:"sourceSlotId"` + + // The destination slot id. + // Example: `1244` + DestinationSlotId *int `mandatory:"false" json:"destinationSlotId"` + + // Detailed error reason. + Details *string `mandatory:"false" json:"details"` +} + +func (m LiveMigration) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LiveMigration) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLiveMigrationStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetLiveMigrationStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingLiveMigrationRollbackStatusEnum(string(m.RollbackStatus)); !ok && m.RollbackStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RollbackStatus: %s. Supported values are: %s.", m.RollbackStatus, strings.Join(GetLiveMigrationRollbackStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LiveMigrationStatusEnum Enum with underlying type: string +type LiveMigrationStatusEnum string + +// Set of constants representing the allowable values for LiveMigrationStatusEnum +const ( + LiveMigrationStatusSuccess LiveMigrationStatusEnum = "SUCCESS" + LiveMigrationStatusPartialSuccess LiveMigrationStatusEnum = "PARTIAL_SUCCESS" + LiveMigrationStatusUpdating LiveMigrationStatusEnum = "UPDATING" + LiveMigrationStatusFailed LiveMigrationStatusEnum = "FAILED" +) + +var mappingLiveMigrationStatusEnum = map[string]LiveMigrationStatusEnum{ + "SUCCESS": LiveMigrationStatusSuccess, + "PARTIAL_SUCCESS": LiveMigrationStatusPartialSuccess, + "UPDATING": LiveMigrationStatusUpdating, + "FAILED": LiveMigrationStatusFailed, +} + +var mappingLiveMigrationStatusEnumLowerCase = map[string]LiveMigrationStatusEnum{ + "success": LiveMigrationStatusSuccess, + "partial_success": LiveMigrationStatusPartialSuccess, + "updating": LiveMigrationStatusUpdating, + "failed": LiveMigrationStatusFailed, +} + +// GetLiveMigrationStatusEnumValues Enumerates the set of values for LiveMigrationStatusEnum +func GetLiveMigrationStatusEnumValues() []LiveMigrationStatusEnum { + values := make([]LiveMigrationStatusEnum, 0) + for _, v := range mappingLiveMigrationStatusEnum { + values = append(values, v) + } + return values +} + +// GetLiveMigrationStatusEnumStringValues Enumerates the set of values in String for LiveMigrationStatusEnum +func GetLiveMigrationStatusEnumStringValues() []string { + return []string{ + "SUCCESS", + "PARTIAL_SUCCESS", + "UPDATING", + "FAILED", + } +} + +// GetMappingLiveMigrationStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLiveMigrationStatusEnum(val string) (LiveMigrationStatusEnum, bool) { + enum, ok := mappingLiveMigrationStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LiveMigrationRollbackStatusEnum Enum with underlying type: string +type LiveMigrationRollbackStatusEnum string + +// Set of constants representing the allowable values for LiveMigrationRollbackStatusEnum +const ( + LiveMigrationRollbackStatusNotInitiated LiveMigrationRollbackStatusEnum = "NOT_INITIATED" + LiveMigrationRollbackStatusSuccess LiveMigrationRollbackStatusEnum = "SUCCESS" + LiveMigrationRollbackStatusUpdating LiveMigrationRollbackStatusEnum = "UPDATING" + LiveMigrationRollbackStatusFailed LiveMigrationRollbackStatusEnum = "FAILED" + LiveMigrationRollbackStatusNotSupported LiveMigrationRollbackStatusEnum = "NOT_SUPPORTED" +) + +var mappingLiveMigrationRollbackStatusEnum = map[string]LiveMigrationRollbackStatusEnum{ + "NOT_INITIATED": LiveMigrationRollbackStatusNotInitiated, + "SUCCESS": LiveMigrationRollbackStatusSuccess, + "UPDATING": LiveMigrationRollbackStatusUpdating, + "FAILED": LiveMigrationRollbackStatusFailed, + "NOT_SUPPORTED": LiveMigrationRollbackStatusNotSupported, +} + +var mappingLiveMigrationRollbackStatusEnumLowerCase = map[string]LiveMigrationRollbackStatusEnum{ + "not_initiated": LiveMigrationRollbackStatusNotInitiated, + "success": LiveMigrationRollbackStatusSuccess, + "updating": LiveMigrationRollbackStatusUpdating, + "failed": LiveMigrationRollbackStatusFailed, + "not_supported": LiveMigrationRollbackStatusNotSupported, +} + +// GetLiveMigrationRollbackStatusEnumValues Enumerates the set of values for LiveMigrationRollbackStatusEnum +func GetLiveMigrationRollbackStatusEnumValues() []LiveMigrationRollbackStatusEnum { + values := make([]LiveMigrationRollbackStatusEnum, 0) + for _, v := range mappingLiveMigrationRollbackStatusEnum { + values = append(values, v) + } + return values +} + +// GetLiveMigrationRollbackStatusEnumStringValues Enumerates the set of values in String for LiveMigrationRollbackStatusEnum +func GetLiveMigrationRollbackStatusEnumStringValues() []string { + return []string{ + "NOT_INITIATED", + "SUCCESS", + "UPDATING", + "FAILED", + "NOT_SUPPORTED", + } +} + +// GetMappingLiveMigrationRollbackStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLiveMigrationRollbackStatusEnum(val string) (LiveMigrationRollbackStatusEnum, bool) { + enum, ok := mappingLiveMigrationRollbackStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_collection.go new file mode 100644 index 0000000000..35487a054d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LiveMigrationCollection Wrapper object for an array of LiveMigrationSummary objects. +type LiveMigrationCollection struct { + + // Array of LiveMigrationSummary objects. + Items []LiveMigrationSummary `mandatory:"false" json:"items"` +} + +func (m LiveMigrationCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LiveMigrationCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_details.go new file mode 100644 index 0000000000..64e10c892b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_details.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LiveMigrationDetails Input details to trigger the live migration for a network load balancer. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type LiveMigrationDetails struct { + + // Pod Id of the VNICaaS shard to which NLB will be attached to. + // Example: `pod2` + PodName *string `mandatory:"false" json:"podName"` + + // To select the test environment. Only to be used with test region. + // Example: `true` + IsTest *bool `mandatory:"false" json:"isTest"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m LiveMigrationDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LiveMigrationDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_request_response.go new file mode 100644 index 0000000000..d474b7177b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// LiveMigrationRequest wrapper for the LiveMigration operation +type LiveMigrationRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // Details for live migrating nlb from source to destination pod. + LiveMigrationDetails `contributesTo:"body"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request LiveMigrationRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request LiveMigrationRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request LiveMigrationRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request LiveMigrationRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request LiveMigrationRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LiveMigrationResponse wrapper for the LiveMigration operation +type LiveMigrationResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response LiveMigrationResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response LiveMigrationResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_summary.go new file mode 100644 index 0000000000..aad6f51b02 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/live_migration_summary.go @@ -0,0 +1,207 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LiveMigrationSummary Network load balancer live migration object to be used for list operations. +type LiveMigrationSummary struct { + + // Unique identifier for the live migration operation. + // Example: `ocid1.coreservicesworkrequest.oc1.iad.aaaaaaaa2dzekghuaygw5vjslup47huywt6omihmfilp75xcnp2rlktkdd2q` + WorkRequestId *string `mandatory:"true" json:"workRequestId"` + + // The source pod id from where the live migration operation is performed. + // Example: `10.0.0.1` + SourcePodId *string `mandatory:"true" json:"sourcePodId"` + + // The destination pod id to where the live migration is performed. + // Example: `10.0.0.2` + DestinationPodId *string `mandatory:"true" json:"destinationPodId"` + + // The general status of the live migration operation. + // * **SUCCESS:** Successfully completed the live migration operation. + // * **PARTIAL_SUCCESS:** Completed the live migration operation with pending source detach. + // * **UPDATING:** The live migration operation is in progress. + // * **FAILED:** The live migration operation failed in processing. + Status LiveMigrationSummaryStatusEnum `mandatory:"true" json:"status"` + + // The general status of the live migration operation. + // * **NOT_INITIATED:** Rollback operation not initiated.. + // * **SUCCESS:** Successfully completed the live migration rollback operation on failure. + // * **UPDATING:** The live migration rollback operation is in progress. + // * **FAILED:** The live migration rollback operation failed in processing. + // * **NOT_SUPPORTED:** The live migration rollback operation not possible at current step of processing. + RollbackStatus LiveMigrationSummaryRollbackStatusEnum `mandatory:"true" json:"rollbackStatus"` + + // The step on which the live migration failure happened. + FailureStep *string `mandatory:"true" json:"failureStep"` + + // Unique identifier for the nlb resource. + // Example: `ocid1.networkloadbalancer.oc1.iad.aaaaaaaa2dzekghuaygw5vjslup47huywt6omihmfilp75xcnp2rlktkdd2q` + ResourceId *string `mandatory:"false" json:"resourceId"` + + // Unique identifier for the service VNIC. + // Example: `ocid1.vnic.oc1.iad.aaaaaaaa2dzekghuaygw5vjslup47huywt6omihmfilp75xcnp2rlktkdd2q` + ServiceVnicId *string `mandatory:"false" json:"serviceVnicId"` + + // The date and time the data was created, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeCreated *common.SDKTime `mandatory:"false" json:"timeCreated"` + + // The date and time the data was created, in the format defined by RFC3339. + // Example: `2020-05-01T18:28:11+00:00` + TimeUpdated *common.SDKTime `mandatory:"false" json:"timeUpdated"` + + // The destination pod name to where the live migration is performed. + // Example: `pod2` + DestinationPodName *string `mandatory:"false" json:"destinationPodName"` + + // The source slot id. + // Example: `1233` + SourceSlotId *int `mandatory:"false" json:"sourceSlotId"` + + // The destination slot id. + // Example: `1244` + DestinationSlotId *int `mandatory:"false" json:"destinationSlotId"` + + // Detailed error reason. + Details *string `mandatory:"false" json:"details"` +} + +func (m LiveMigrationSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LiveMigrationSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLiveMigrationSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetLiveMigrationSummaryStatusEnumStringValues(), ","))) + } + if _, ok := GetMappingLiveMigrationSummaryRollbackStatusEnum(string(m.RollbackStatus)); !ok && m.RollbackStatus != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for RollbackStatus: %s. Supported values are: %s.", m.RollbackStatus, strings.Join(GetLiveMigrationSummaryRollbackStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// LiveMigrationSummaryStatusEnum Enum with underlying type: string +type LiveMigrationSummaryStatusEnum string + +// Set of constants representing the allowable values for LiveMigrationSummaryStatusEnum +const ( + LiveMigrationSummaryStatusSuccess LiveMigrationSummaryStatusEnum = "SUCCESS" + LiveMigrationSummaryStatusPartialSuccess LiveMigrationSummaryStatusEnum = "PARTIAL_SUCCESS" + LiveMigrationSummaryStatusUpdating LiveMigrationSummaryStatusEnum = "UPDATING" + LiveMigrationSummaryStatusFailed LiveMigrationSummaryStatusEnum = "FAILED" +) + +var mappingLiveMigrationSummaryStatusEnum = map[string]LiveMigrationSummaryStatusEnum{ + "SUCCESS": LiveMigrationSummaryStatusSuccess, + "PARTIAL_SUCCESS": LiveMigrationSummaryStatusPartialSuccess, + "UPDATING": LiveMigrationSummaryStatusUpdating, + "FAILED": LiveMigrationSummaryStatusFailed, +} + +var mappingLiveMigrationSummaryStatusEnumLowerCase = map[string]LiveMigrationSummaryStatusEnum{ + "success": LiveMigrationSummaryStatusSuccess, + "partial_success": LiveMigrationSummaryStatusPartialSuccess, + "updating": LiveMigrationSummaryStatusUpdating, + "failed": LiveMigrationSummaryStatusFailed, +} + +// GetLiveMigrationSummaryStatusEnumValues Enumerates the set of values for LiveMigrationSummaryStatusEnum +func GetLiveMigrationSummaryStatusEnumValues() []LiveMigrationSummaryStatusEnum { + values := make([]LiveMigrationSummaryStatusEnum, 0) + for _, v := range mappingLiveMigrationSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetLiveMigrationSummaryStatusEnumStringValues Enumerates the set of values in String for LiveMigrationSummaryStatusEnum +func GetLiveMigrationSummaryStatusEnumStringValues() []string { + return []string{ + "SUCCESS", + "PARTIAL_SUCCESS", + "UPDATING", + "FAILED", + } +} + +// GetMappingLiveMigrationSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLiveMigrationSummaryStatusEnum(val string) (LiveMigrationSummaryStatusEnum, bool) { + enum, ok := mappingLiveMigrationSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} + +// LiveMigrationSummaryRollbackStatusEnum Enum with underlying type: string +type LiveMigrationSummaryRollbackStatusEnum string + +// Set of constants representing the allowable values for LiveMigrationSummaryRollbackStatusEnum +const ( + LiveMigrationSummaryRollbackStatusNotInitiated LiveMigrationSummaryRollbackStatusEnum = "NOT_INITIATED" + LiveMigrationSummaryRollbackStatusSuccess LiveMigrationSummaryRollbackStatusEnum = "SUCCESS" + LiveMigrationSummaryRollbackStatusUpdating LiveMigrationSummaryRollbackStatusEnum = "UPDATING" + LiveMigrationSummaryRollbackStatusFailed LiveMigrationSummaryRollbackStatusEnum = "FAILED" + LiveMigrationSummaryRollbackStatusNotSupported LiveMigrationSummaryRollbackStatusEnum = "NOT_SUPPORTED" +) + +var mappingLiveMigrationSummaryRollbackStatusEnum = map[string]LiveMigrationSummaryRollbackStatusEnum{ + "NOT_INITIATED": LiveMigrationSummaryRollbackStatusNotInitiated, + "SUCCESS": LiveMigrationSummaryRollbackStatusSuccess, + "UPDATING": LiveMigrationSummaryRollbackStatusUpdating, + "FAILED": LiveMigrationSummaryRollbackStatusFailed, + "NOT_SUPPORTED": LiveMigrationSummaryRollbackStatusNotSupported, +} + +var mappingLiveMigrationSummaryRollbackStatusEnumLowerCase = map[string]LiveMigrationSummaryRollbackStatusEnum{ + "not_initiated": LiveMigrationSummaryRollbackStatusNotInitiated, + "success": LiveMigrationSummaryRollbackStatusSuccess, + "updating": LiveMigrationSummaryRollbackStatusUpdating, + "failed": LiveMigrationSummaryRollbackStatusFailed, + "not_supported": LiveMigrationSummaryRollbackStatusNotSupported, +} + +// GetLiveMigrationSummaryRollbackStatusEnumValues Enumerates the set of values for LiveMigrationSummaryRollbackStatusEnum +func GetLiveMigrationSummaryRollbackStatusEnumValues() []LiveMigrationSummaryRollbackStatusEnum { + values := make([]LiveMigrationSummaryRollbackStatusEnum, 0) + for _, v := range mappingLiveMigrationSummaryRollbackStatusEnum { + values = append(values, v) + } + return values +} + +// GetLiveMigrationSummaryRollbackStatusEnumStringValues Enumerates the set of values in String for LiveMigrationSummaryRollbackStatusEnum +func GetLiveMigrationSummaryRollbackStatusEnumStringValues() []string { + return []string{ + "NOT_INITIATED", + "SUCCESS", + "UPDATING", + "FAILED", + "NOT_SUPPORTED", + } +} + +// GetMappingLiveMigrationSummaryRollbackStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLiveMigrationSummaryRollbackStatusEnum(val string) (LiveMigrationSummaryRollbackStatusEnum, bool) { + enum, ok := mappingLiveMigrationSummaryRollbackStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/metadata_options.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/metadata_options.go new file mode 100644 index 0000000000..7f95856ab7 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/metadata_options.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// MetadataOptionsEnum Enum with underlying type: string +type MetadataOptionsEnum string + +// Set of constants representing the allowable values for MetadataOptionsEnum +const ( + MetadataOptionsVcnId MetadataOptionsEnum = "VCN_ID" + MetadataOptionsSgwPeNatIp MetadataOptionsEnum = "SGW_PE_NAT_IP" + MetadataOptionsVcnOcid MetadataOptionsEnum = "VCN_OCID" + MetadataOptionsPeOcid MetadataOptionsEnum = "PE_OCID" +) + +var mappingMetadataOptionsEnum = map[string]MetadataOptionsEnum{ + "VCN_ID": MetadataOptionsVcnId, + "SGW_PE_NAT_IP": MetadataOptionsSgwPeNatIp, + "VCN_OCID": MetadataOptionsVcnOcid, + "PE_OCID": MetadataOptionsPeOcid, +} + +var mappingMetadataOptionsEnumLowerCase = map[string]MetadataOptionsEnum{ + "vcn_id": MetadataOptionsVcnId, + "sgw_pe_nat_ip": MetadataOptionsSgwPeNatIp, + "vcn_ocid": MetadataOptionsVcnOcid, + "pe_ocid": MetadataOptionsPeOcid, +} + +// GetMetadataOptionsEnumValues Enumerates the set of values for MetadataOptionsEnum +func GetMetadataOptionsEnumValues() []MetadataOptionsEnum { + values := make([]MetadataOptionsEnum, 0) + for _, v := range mappingMetadataOptionsEnum { + values = append(values, v) + } + return values +} + +// GetMetadataOptionsEnumStringValues Enumerates the set of values in String for MetadataOptionsEnum +func GetMetadataOptionsEnumStringValues() []string { + return []string{ + "VCN_ID", + "SGW_PE_NAT_IP", + "VCN_OCID", + "PE_OCID", + } +} + +// GetMappingMetadataOptionsEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingMetadataOptionsEnum(val string) (MetadataOptionsEnum, bool) { + enum, ok := mappingMetadataOptionsEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer.go index bf6525492b..8e5d903c5b 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -10,7 +10,9 @@ package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NetworkLoadBalancer The properties that define a network load balancer. For more information, see @@ -106,3 +108,21 @@ type NetworkLoadBalancer struct { func (m NetworkLoadBalancer) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancer) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingNlbIpVersionEnum(string(m.NlbIpVersion)); !ok && m.NlbIpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NlbIpVersion: %s. Supported values are: %s.", m.NlbIpVersion, strings.Join(GetNlbIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_collection.go new file mode 100644 index 0000000000..54a1a32ab1 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkLoadBalancerCollection Wrapper object for an array of NetworkLoadBalancerSummary objects. +type NetworkLoadBalancerCollection struct { + + // Array of NetworkLoadBalancerSummary objects. + Items []NetworkLoadBalancerSummary `mandatory:"false" json:"items"` +} + +func (m NetworkLoadBalancerCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancerCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health.go new file mode 100644 index 0000000000..7a16f6bdb2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health.go @@ -0,0 +1,123 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkLoadBalancerHealth The health status details for the specified network load balancer. +// This object does not explicitly enumerate backend sets with a status of `OK`. However, the backend sets are included in the +// `totalBackendSetCount` sum. +type NetworkLoadBalancerHealth struct { + + // The overall health status of the network load balancer. + // * **OK:** All backend sets associated with the network load balancer return a status of `OK`. + // * **WARNING:** At least one of the backend sets associated with the network load balancer returns a status of `WARNING`, + // no backend sets return a status of `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. + // * **CRITICAL:** One or more of the backend sets associated with the network load balancer return a status of `CRITICAL`. + // * **UNKNOWN:** If any one of the following conditions is true: + // * The network load balancer life cycle state is not `ACTIVE`. + // * No backend sets are defined for the network load balancer. + // * More than half of the backend sets associated with the network load balancer return a status of `UNKNOWN`, none of the backend + // sets return a status of `WARNING` or `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. + // * The system could not retrieve metrics for any reason. + Status NetworkLoadBalancerHealthStatusEnum `mandatory:"true" json:"status"` + + // A list of backend sets that are currently in the `WARNING` health state. The list identifies each backend set by the + // user-friendly name you assigned when you created the backend set. + // Example: `example_backend_set3` + WarningStateBackendSetNames []string `mandatory:"true" json:"warningStateBackendSetNames"` + + // A list of backend sets that are currently in the `CRITICAL` health state. The list identifies each backend set by the + // user-friendly name you assigned when you created the backend set. + // Example: `example_backend_set` + CriticalStateBackendSetNames []string `mandatory:"true" json:"criticalStateBackendSetNames"` + + // A list of backend sets that are currently in the `UNKNOWN` health state. The list identifies each backend set by the + // user-friendly name you assigned when you created the backend set. + // Example: `example_backend_set2` + UnknownStateBackendSetNames []string `mandatory:"true" json:"unknownStateBackendSetNames"` + + // The total number of backend sets associated with this network load balancer. + // Example: `4` + TotalBackendSetCount *int `mandatory:"true" json:"totalBackendSetCount"` +} + +func (m NetworkLoadBalancerHealth) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancerHealth) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNetworkLoadBalancerHealthStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetNetworkLoadBalancerHealthStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NetworkLoadBalancerHealthStatusEnum Enum with underlying type: string +type NetworkLoadBalancerHealthStatusEnum string + +// Set of constants representing the allowable values for NetworkLoadBalancerHealthStatusEnum +const ( + NetworkLoadBalancerHealthStatusOk NetworkLoadBalancerHealthStatusEnum = "OK" + NetworkLoadBalancerHealthStatusWarning NetworkLoadBalancerHealthStatusEnum = "WARNING" + NetworkLoadBalancerHealthStatusCritical NetworkLoadBalancerHealthStatusEnum = "CRITICAL" + NetworkLoadBalancerHealthStatusUnknown NetworkLoadBalancerHealthStatusEnum = "UNKNOWN" +) + +var mappingNetworkLoadBalancerHealthStatusEnum = map[string]NetworkLoadBalancerHealthStatusEnum{ + "OK": NetworkLoadBalancerHealthStatusOk, + "WARNING": NetworkLoadBalancerHealthStatusWarning, + "CRITICAL": NetworkLoadBalancerHealthStatusCritical, + "UNKNOWN": NetworkLoadBalancerHealthStatusUnknown, +} + +var mappingNetworkLoadBalancerHealthStatusEnumLowerCase = map[string]NetworkLoadBalancerHealthStatusEnum{ + "ok": NetworkLoadBalancerHealthStatusOk, + "warning": NetworkLoadBalancerHealthStatusWarning, + "critical": NetworkLoadBalancerHealthStatusCritical, + "unknown": NetworkLoadBalancerHealthStatusUnknown, +} + +// GetNetworkLoadBalancerHealthStatusEnumValues Enumerates the set of values for NetworkLoadBalancerHealthStatusEnum +func GetNetworkLoadBalancerHealthStatusEnumValues() []NetworkLoadBalancerHealthStatusEnum { + values := make([]NetworkLoadBalancerHealthStatusEnum, 0) + for _, v := range mappingNetworkLoadBalancerHealthStatusEnum { + values = append(values, v) + } + return values +} + +// GetNetworkLoadBalancerHealthStatusEnumStringValues Enumerates the set of values in String for NetworkLoadBalancerHealthStatusEnum +func GetNetworkLoadBalancerHealthStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingNetworkLoadBalancerHealthStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkLoadBalancerHealthStatusEnum(val string) (NetworkLoadBalancerHealthStatusEnum, bool) { + enum, ok := mappingNetworkLoadBalancerHealthStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_collection.go new file mode 100644 index 0000000000..b5441a5063 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkLoadBalancerHealthCollection Wrapper object for an array of NetworkLoadBalancerHealthSummary objects. +type NetworkLoadBalancerHealthCollection struct { + + // An array of BackendSetSummary objects. + Items []NetworkLoadBalancerHealthSummary `mandatory:"false" json:"items"` +} + +func (m NetworkLoadBalancerHealthCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancerHealthCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_summary.go new file mode 100644 index 0000000000..706ccfa35e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_health_summary.go @@ -0,0 +1,105 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkLoadBalancerHealthSummary A health status summary for the specified network load balancer +type NetworkLoadBalancerHealthSummary struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer with which the health status is associated. + NetworkLoadBalancerId *string `mandatory:"true" json:"networkLoadBalancerId"` + + // The overall health status of the network load balancer. + // * **OK:** All backend sets associated with the network load balancer return a status of `OK`. + // * **WARNING:** At least one of the backend sets associated with the network load balancer returns a status of `WARNING`, + // no backend sets return a status of `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. + // * **CRITICAL:** One or more of the backend sets associated with the network load balancer returns a status of `CRITICAL`. + // * **UNKNOWN:** If any one of the following conditions is true: + // * The network load balancer life cycle state is not `ACTIVE`. + // * No backend sets are defined for the network load balancer. + // * More than half of the backend sets associated with the network load balancer return a status of `UNKNOWN`, none of the backend + // sets returns a status of `WARNING` or `CRITICAL`, and the network load balancer life cycle state is `ACTIVE`. + // * The system could not retrieve metrics for any reason. + Status NetworkLoadBalancerHealthSummaryStatusEnum `mandatory:"true" json:"status"` +} + +func (m NetworkLoadBalancerHealthSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancerHealthSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingNetworkLoadBalancerHealthSummaryStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetNetworkLoadBalancerHealthSummaryStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// NetworkLoadBalancerHealthSummaryStatusEnum Enum with underlying type: string +type NetworkLoadBalancerHealthSummaryStatusEnum string + +// Set of constants representing the allowable values for NetworkLoadBalancerHealthSummaryStatusEnum +const ( + NetworkLoadBalancerHealthSummaryStatusOk NetworkLoadBalancerHealthSummaryStatusEnum = "OK" + NetworkLoadBalancerHealthSummaryStatusWarning NetworkLoadBalancerHealthSummaryStatusEnum = "WARNING" + NetworkLoadBalancerHealthSummaryStatusCritical NetworkLoadBalancerHealthSummaryStatusEnum = "CRITICAL" + NetworkLoadBalancerHealthSummaryStatusUnknown NetworkLoadBalancerHealthSummaryStatusEnum = "UNKNOWN" +) + +var mappingNetworkLoadBalancerHealthSummaryStatusEnum = map[string]NetworkLoadBalancerHealthSummaryStatusEnum{ + "OK": NetworkLoadBalancerHealthSummaryStatusOk, + "WARNING": NetworkLoadBalancerHealthSummaryStatusWarning, + "CRITICAL": NetworkLoadBalancerHealthSummaryStatusCritical, + "UNKNOWN": NetworkLoadBalancerHealthSummaryStatusUnknown, +} + +var mappingNetworkLoadBalancerHealthSummaryStatusEnumLowerCase = map[string]NetworkLoadBalancerHealthSummaryStatusEnum{ + "ok": NetworkLoadBalancerHealthSummaryStatusOk, + "warning": NetworkLoadBalancerHealthSummaryStatusWarning, + "critical": NetworkLoadBalancerHealthSummaryStatusCritical, + "unknown": NetworkLoadBalancerHealthSummaryStatusUnknown, +} + +// GetNetworkLoadBalancerHealthSummaryStatusEnumValues Enumerates the set of values for NetworkLoadBalancerHealthSummaryStatusEnum +func GetNetworkLoadBalancerHealthSummaryStatusEnumValues() []NetworkLoadBalancerHealthSummaryStatusEnum { + values := make([]NetworkLoadBalancerHealthSummaryStatusEnum, 0) + for _, v := range mappingNetworkLoadBalancerHealthSummaryStatusEnum { + values = append(values, v) + } + return values +} + +// GetNetworkLoadBalancerHealthSummaryStatusEnumStringValues Enumerates the set of values in String for NetworkLoadBalancerHealthSummaryStatusEnum +func GetNetworkLoadBalancerHealthSummaryStatusEnumStringValues() []string { + return []string{ + "OK", + "WARNING", + "CRITICAL", + "UNKNOWN", + } +} + +// GetMappingNetworkLoadBalancerHealthSummaryStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkLoadBalancerHealthSummaryStatusEnum(val string) (NetworkLoadBalancerHealthSummaryStatusEnum, bool) { + enum, ok := mappingNetworkLoadBalancerHealthSummaryStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_summary.go similarity index 82% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_summary.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_summary.go index a7917fac8e..f94daf44c3 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/network_load_balancer_summary.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancer_summary.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. @@ -10,7 +10,9 @@ package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" ) // NetworkLoadBalancerSummary Network load balancer object to be used for list operations. @@ -99,3 +101,21 @@ type NetworkLoadBalancerSummary struct { func (m NetworkLoadBalancerSummary) String() string { return common.PointerString(m) } + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancerSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingLifecycleStateEnum(string(m.LifecycleState)); !ok && m.LifecycleState != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetLifecycleStateEnumStringValues(), ","))) + } + + if _, ok := GetMappingNlbIpVersionEnum(string(m.NlbIpVersion)); !ok && m.NlbIpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NlbIpVersion: %s. Supported values are: %s.", m.NlbIpVersion, strings.Join(GetNlbIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_collection.go new file mode 100644 index 0000000000..72e3e9644f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkLoadBalancersPolicyCollection Wrapper object for array of NetworkLoadBalancersPolicySummary objects. +type NetworkLoadBalancersPolicyCollection struct { + + // Array of NetworkLoadBalancersPolicySummary objects. + Items []NetworkLoadBalancersPolicySummaryEnum `mandatory:"false" json:"items"` +} + +func (m NetworkLoadBalancersPolicyCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancersPolicyCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_summary.go new file mode 100644 index 0000000000..a582e3d4c2 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_policy_summary.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// NetworkLoadBalancersPolicySummaryEnum Enum with underlying type: string +type NetworkLoadBalancersPolicySummaryEnum string + +// Set of constants representing the allowable values for NetworkLoadBalancersPolicySummaryEnum +const ( + NetworkLoadBalancersPolicySummaryTwoTuple NetworkLoadBalancersPolicySummaryEnum = "TWO_TUPLE" + NetworkLoadBalancersPolicySummaryThreeTuple NetworkLoadBalancersPolicySummaryEnum = "THREE_TUPLE" + NetworkLoadBalancersPolicySummaryFiveTuple NetworkLoadBalancersPolicySummaryEnum = "FIVE_TUPLE" +) + +var mappingNetworkLoadBalancersPolicySummaryEnum = map[string]NetworkLoadBalancersPolicySummaryEnum{ + "TWO_TUPLE": NetworkLoadBalancersPolicySummaryTwoTuple, + "THREE_TUPLE": NetworkLoadBalancersPolicySummaryThreeTuple, + "FIVE_TUPLE": NetworkLoadBalancersPolicySummaryFiveTuple, +} + +var mappingNetworkLoadBalancersPolicySummaryEnumLowerCase = map[string]NetworkLoadBalancersPolicySummaryEnum{ + "two_tuple": NetworkLoadBalancersPolicySummaryTwoTuple, + "three_tuple": NetworkLoadBalancersPolicySummaryThreeTuple, + "five_tuple": NetworkLoadBalancersPolicySummaryFiveTuple, +} + +// GetNetworkLoadBalancersPolicySummaryEnumValues Enumerates the set of values for NetworkLoadBalancersPolicySummaryEnum +func GetNetworkLoadBalancersPolicySummaryEnumValues() []NetworkLoadBalancersPolicySummaryEnum { + values := make([]NetworkLoadBalancersPolicySummaryEnum, 0) + for _, v := range mappingNetworkLoadBalancersPolicySummaryEnum { + values = append(values, v) + } + return values +} + +// GetNetworkLoadBalancersPolicySummaryEnumStringValues Enumerates the set of values in String for NetworkLoadBalancersPolicySummaryEnum +func GetNetworkLoadBalancersPolicySummaryEnumStringValues() []string { + return []string{ + "TWO_TUPLE", + "THREE_TUPLE", + "FIVE_TUPLE", + } +} + +// GetMappingNetworkLoadBalancersPolicySummaryEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkLoadBalancersPolicySummaryEnum(val string) (NetworkLoadBalancersPolicySummaryEnum, bool) { + enum, ok := mappingNetworkLoadBalancersPolicySummaryEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_collection.go new file mode 100644 index 0000000000..242a715866 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_collection.go @@ -0,0 +1,40 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// NetworkLoadBalancersProtocolCollection This object is deprecated. +// Wrapper object for array of ProtocolSummary objects. +type NetworkLoadBalancersProtocolCollection struct { + + // Array of NetworkLoadBalancersProtocolSummary objects. + Items []NetworkLoadBalancersProtocolSummaryEnum `mandatory:"false" json:"items"` +} + +func (m NetworkLoadBalancersProtocolCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m NetworkLoadBalancersProtocolCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go new file mode 100644 index 0000000000..6907f18544 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancers_protocol_summary.go @@ -0,0 +1,64 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// NetworkLoadBalancersProtocolSummaryEnum Enum with underlying type: string +type NetworkLoadBalancersProtocolSummaryEnum string + +// Set of constants representing the allowable values for NetworkLoadBalancersProtocolSummaryEnum +const ( + NetworkLoadBalancersProtocolSummaryAny NetworkLoadBalancersProtocolSummaryEnum = "ANY" + NetworkLoadBalancersProtocolSummaryTcp NetworkLoadBalancersProtocolSummaryEnum = "TCP" + NetworkLoadBalancersProtocolSummaryUdp NetworkLoadBalancersProtocolSummaryEnum = "UDP" + NetworkLoadBalancersProtocolSummaryTcpAndUdp NetworkLoadBalancersProtocolSummaryEnum = "TCP_AND_UDP" +) + +var mappingNetworkLoadBalancersProtocolSummaryEnum = map[string]NetworkLoadBalancersProtocolSummaryEnum{ + "ANY": NetworkLoadBalancersProtocolSummaryAny, + "TCP": NetworkLoadBalancersProtocolSummaryTcp, + "UDP": NetworkLoadBalancersProtocolSummaryUdp, + "TCP_AND_UDP": NetworkLoadBalancersProtocolSummaryTcpAndUdp, +} + +var mappingNetworkLoadBalancersProtocolSummaryEnumLowerCase = map[string]NetworkLoadBalancersProtocolSummaryEnum{ + "any": NetworkLoadBalancersProtocolSummaryAny, + "tcp": NetworkLoadBalancersProtocolSummaryTcp, + "udp": NetworkLoadBalancersProtocolSummaryUdp, + "tcp_and_udp": NetworkLoadBalancersProtocolSummaryTcpAndUdp, +} + +// GetNetworkLoadBalancersProtocolSummaryEnumValues Enumerates the set of values for NetworkLoadBalancersProtocolSummaryEnum +func GetNetworkLoadBalancersProtocolSummaryEnumValues() []NetworkLoadBalancersProtocolSummaryEnum { + values := make([]NetworkLoadBalancersProtocolSummaryEnum, 0) + for _, v := range mappingNetworkLoadBalancersProtocolSummaryEnum { + values = append(values, v) + } + return values +} + +// GetNetworkLoadBalancersProtocolSummaryEnumStringValues Enumerates the set of values in String for NetworkLoadBalancersProtocolSummaryEnum +func GetNetworkLoadBalancersProtocolSummaryEnumStringValues() []string { + return []string{ + "ANY", + "TCP", + "UDP", + "TCP_AND_UDP", + } +} + +// GetMappingNetworkLoadBalancersProtocolSummaryEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkLoadBalancersProtocolSummaryEnum(val string) (NetworkLoadBalancersProtocolSummaryEnum, bool) { + enum, ok := mappingNetworkLoadBalancersProtocolSummaryEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancing_policy.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancing_policy.go new file mode 100644 index 0000000000..7aae18e729 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/network_load_balancing_policy.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// NetworkLoadBalancingPolicyEnum Enum with underlying type: string +type NetworkLoadBalancingPolicyEnum string + +// Set of constants representing the allowable values for NetworkLoadBalancingPolicyEnum +const ( + NetworkLoadBalancingPolicyTwoTuple NetworkLoadBalancingPolicyEnum = "TWO_TUPLE" + NetworkLoadBalancingPolicyThreeTuple NetworkLoadBalancingPolicyEnum = "THREE_TUPLE" + NetworkLoadBalancingPolicyFiveTuple NetworkLoadBalancingPolicyEnum = "FIVE_TUPLE" +) + +var mappingNetworkLoadBalancingPolicyEnum = map[string]NetworkLoadBalancingPolicyEnum{ + "TWO_TUPLE": NetworkLoadBalancingPolicyTwoTuple, + "THREE_TUPLE": NetworkLoadBalancingPolicyThreeTuple, + "FIVE_TUPLE": NetworkLoadBalancingPolicyFiveTuple, +} + +var mappingNetworkLoadBalancingPolicyEnumLowerCase = map[string]NetworkLoadBalancingPolicyEnum{ + "two_tuple": NetworkLoadBalancingPolicyTwoTuple, + "three_tuple": NetworkLoadBalancingPolicyThreeTuple, + "five_tuple": NetworkLoadBalancingPolicyFiveTuple, +} + +// GetNetworkLoadBalancingPolicyEnumValues Enumerates the set of values for NetworkLoadBalancingPolicyEnum +func GetNetworkLoadBalancingPolicyEnumValues() []NetworkLoadBalancingPolicyEnum { + values := make([]NetworkLoadBalancingPolicyEnum, 0) + for _, v := range mappingNetworkLoadBalancingPolicyEnum { + values = append(values, v) + } + return values +} + +// GetNetworkLoadBalancingPolicyEnumStringValues Enumerates the set of values in String for NetworkLoadBalancingPolicyEnum +func GetNetworkLoadBalancingPolicyEnumStringValues() []string { + return []string{ + "TWO_TUPLE", + "THREE_TUPLE", + "FIVE_TUPLE", + } +} + +// GetMappingNetworkLoadBalancingPolicyEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNetworkLoadBalancingPolicyEnum(val string) (NetworkLoadBalancingPolicyEnum, bool) { + enum, ok := mappingNetworkLoadBalancingPolicyEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_client.go new file mode 100644 index 0000000000..814d835078 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_client.go @@ -0,0 +1,2324 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +//NetworkLoadBalancerClient a client for NetworkLoadBalancer +type NetworkLoadBalancerClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewNetworkLoadBalancerClientWithConfigurationProvider Creates a new default NetworkLoadBalancer client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewNetworkLoadBalancerClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client NetworkLoadBalancerClient, err error) { + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newNetworkLoadBalancerClientFromBaseClient(baseClient, provider) +} + +// NewNetworkLoadBalancerClientWithOboToken Creates a new default NetworkLoadBalancer client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// as well as reading the region +func NewNetworkLoadBalancerClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client NetworkLoadBalancerClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newNetworkLoadBalancerClientFromBaseClient(baseClient, configProvider) +} + +func newNetworkLoadBalancerClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client NetworkLoadBalancerClient, err error) { + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = NetworkLoadBalancerClient{BaseClient: baseClient} + client.BasePath = "20200501" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *NetworkLoadBalancerClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("networkloadbalancer", "https://network-load-balancer-api.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *NetworkLoadBalancerClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *NetworkLoadBalancerClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// AttachNlbToPod Updates the network load balancer for NLB live migration and creates new mappings with new pod id and slot id +// A default retry strategy applies to this operation AttachNlbToPod() +func (client NetworkLoadBalancerClient) AttachNlbToPod(ctx context.Context, request AttachNlbToPodRequest) (response AttachNlbToPodResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.attachNlbToPod, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = AttachNlbToPodResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = AttachNlbToPodResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(AttachNlbToPodResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into AttachNlbToPodResponse") + } + return +} + +// attachNlbToPod implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) attachNlbToPod(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/actions/attachNlbToPod", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response AttachNlbToPodResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/AttachNlbToPod" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "AttachNlbToPod", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ChangeNetworkLoadBalancerCompartment Moves a network load balancer into a different compartment within the same tenancy. For information about moving resources +// between compartments, see Moving Resources to a Different Compartment (https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes). +// A default retry strategy applies to this operation ChangeNetworkLoadBalancerCompartment() +func (client NetworkLoadBalancerClient) ChangeNetworkLoadBalancerCompartment(ctx context.Context, request ChangeNetworkLoadBalancerCompartmentRequest) (response ChangeNetworkLoadBalancerCompartmentResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.changeNetworkLoadBalancerCompartment, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ChangeNetworkLoadBalancerCompartmentResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ChangeNetworkLoadBalancerCompartmentResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ChangeNetworkLoadBalancerCompartmentResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ChangeNetworkLoadBalancerCompartmentResponse") + } + return +} + +// changeNetworkLoadBalancerCompartment implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) changeNetworkLoadBalancerCompartment(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/actions/changeCompartment", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ChangeNetworkLoadBalancerCompartmentResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/ChangeNetworkLoadBalancerCompartment" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ChangeNetworkLoadBalancerCompartment", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateBackend Adds a backend server to a backend set. +// A default retry strategy applies to this operation CreateBackend() +func (client NetworkLoadBalancerClient) CreateBackend(ctx context.Context, request CreateBackendRequest) (response CreateBackendResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createBackend, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateBackendResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateBackendResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateBackendResponse") + } + return +} + +// createBackend implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) createBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateBackendResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Backend/CreateBackend" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "CreateBackend", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateBackendSet Adds a backend set to a network load balancer. +// A default retry strategy applies to this operation CreateBackendSet() +func (client NetworkLoadBalancerClient) CreateBackendSet(ctx context.Context, request CreateBackendSetRequest) (response CreateBackendSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createBackendSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateBackendSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateBackendSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateBackendSetResponse") + } + return +} + +// createBackendSet implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) createBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateBackendSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSet/CreateBackendSet" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "CreateBackendSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateListener Adds a listener to a network load balancer. +// A default retry strategy applies to this operation CreateListener() +func (client NetworkLoadBalancerClient) CreateListener(ctx context.Context, request CreateListenerRequest) (response CreateListenerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createListener, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateListenerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateListenerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateListenerResponse") + } + return +} + +// createListener implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) createListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/listeners", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateListenerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Listener/CreateListener" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "CreateListener", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// CreateNetworkLoadBalancer Creates a network load balancer. +// A default retry strategy applies to this operation CreateNetworkLoadBalancer() +func (client NetworkLoadBalancerClient) CreateNetworkLoadBalancer(ctx context.Context, request CreateNetworkLoadBalancerRequest) (response CreateNetworkLoadBalancerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.createNetworkLoadBalancer, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = CreateNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = CreateNetworkLoadBalancerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(CreateNetworkLoadBalancerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into CreateNetworkLoadBalancerResponse") + } + return +} + +// createNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) createNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response CreateNetworkLoadBalancerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/CreateNetworkLoadBalancer" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "CreateNetworkLoadBalancer", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteBackend Removes a backend server from a given network load balancer and backend set. +// A default retry strategy applies to this operation DeleteBackend() +func (client NetworkLoadBalancerClient) DeleteBackend(ctx context.Context, request DeleteBackendRequest) (response DeleteBackendResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteBackend, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteBackendResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteBackendResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteBackendResponse") + } + return +} + +// deleteBackend implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) deleteBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteBackendResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Backend/DeleteBackend" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "DeleteBackend", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteBackendSet Deletes the specified backend set. Note that deleting a backend set removes its backend servers from the network load balancer. +// Before you can delete a backend set, you must remove it from any active listeners. +// A default retry strategy applies to this operation DeleteBackendSet() +func (client NetworkLoadBalancerClient) DeleteBackendSet(ctx context.Context, request DeleteBackendSetRequest) (response DeleteBackendSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteBackendSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteBackendSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteBackendSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteBackendSetResponse") + } + return +} + +// deleteBackendSet implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) deleteBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteBackendSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSet/DeleteBackendSet" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "DeleteBackendSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteListener Deletes a listener from a network load balancer. +// A default retry strategy applies to this operation DeleteListener() +func (client NetworkLoadBalancerClient) DeleteListener(ctx context.Context, request DeleteListenerRequest) (response DeleteListenerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteListener, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteListenerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteListenerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteListenerResponse") + } + return +} + +// deleteListener implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) deleteListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteListenerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Listener/DeleteListener" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "DeleteListener", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DeleteNetworkLoadBalancer Deletes a network load balancer resource by identifier. +// A default retry strategy applies to this operation DeleteNetworkLoadBalancer() +func (client NetworkLoadBalancerClient) DeleteNetworkLoadBalancer(ctx context.Context, request DeleteNetworkLoadBalancerRequest) (response DeleteNetworkLoadBalancerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteNetworkLoadBalancer, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteNetworkLoadBalancerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteNetworkLoadBalancerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteNetworkLoadBalancerResponse") + } + return +} + +// deleteNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) deleteNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/networkLoadBalancers/{networkLoadBalancerId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteNetworkLoadBalancerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/DeleteNetworkLoadBalancer" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "DeleteNetworkLoadBalancer", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DetachNlbFromDestinationPod Update mappings for a provisioned network load balancer for the provided pod Id in case of rollback. +// A default retry strategy applies to this operation DetachNlbFromDestinationPod() +func (client NetworkLoadBalancerClient) DetachNlbFromDestinationPod(ctx context.Context, request DetachNlbFromDestinationPodRequest) (response DetachNlbFromDestinationPodResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.detachNlbFromDestinationPod, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DetachNlbFromDestinationPodResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DetachNlbFromDestinationPodResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DetachNlbFromDestinationPodResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DetachNlbFromDestinationPodResponse") + } + return +} + +// detachNlbFromDestinationPod implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) detachNlbFromDestinationPod(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/actions/detachNlbFromDestinationPod", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DetachNlbFromDestinationPodResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/DetachNlbFromDestinationPod" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "DetachNlbFromDestinationPod", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// DetachNlbFromSourcePod Delete mappings for a provisioned network load balancer for the provided pod Id. +// A default retry strategy applies to this operation DetachNlbFromSourcePod() +func (client NetworkLoadBalancerClient) DetachNlbFromSourcePod(ctx context.Context, request DetachNlbFromSourcePodRequest) (response DetachNlbFromSourcePodResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.detachNlbFromSourcePod, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DetachNlbFromSourcePodResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DetachNlbFromSourcePodResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DetachNlbFromSourcePodResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DetachNlbFromSourcePodResponse") + } + return +} + +// detachNlbFromSourcePod implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) detachNlbFromSourcePod(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/actions/detachNlbFromSourcePod", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DetachNlbFromSourcePodResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/DetachNlbFromSourcePod" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "DetachNlbFromSourcePod", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetBackend Retrieves the configuration information for the specified backend server. +// A default retry strategy applies to this operation GetBackend() +func (client NetworkLoadBalancerClient) GetBackend(ctx context.Context, request GetBackendRequest) (response GetBackendResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getBackend, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetBackendResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetBackendResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetBackendResponse") + } + return +} + +// getBackend implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetBackendResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Backend/GetBackend" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetBackend", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetBackendHealth Retrieves the current health status of the specified backend server. +// A default retry strategy applies to this operation GetBackendHealth() +func (client NetworkLoadBalancerClient) GetBackendHealth(ctx context.Context, request GetBackendHealthRequest) (response GetBackendHealthResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getBackendHealth, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetBackendHealthResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetBackendHealthResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetBackendHealthResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetBackendHealthResponse") + } + return +} + +// getBackendHealth implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getBackendHealth(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}/health", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetBackendHealthResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendHealth/GetBackendHealth" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetBackendHealth", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetBackendSet Retrieves the configuration information for the specified backend set. +// A default retry strategy applies to this operation GetBackendSet() +func (client NetworkLoadBalancerClient) GetBackendSet(ctx context.Context, request GetBackendSetRequest) (response GetBackendSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getBackendSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetBackendSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetBackendSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetBackendSetResponse") + } + return +} + +// getBackendSet implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetBackendSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSet/GetBackendSet" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetBackendSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetBackendSetHealth Retrieves the health status for the specified backend set. +// A default retry strategy applies to this operation GetBackendSetHealth() +func (client NetworkLoadBalancerClient) GetBackendSetHealth(ctx context.Context, request GetBackendSetHealthRequest) (response GetBackendSetHealthResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getBackendSetHealth, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetBackendSetHealthResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetBackendSetHealthResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetBackendSetHealthResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetBackendSetHealthResponse") + } + return +} + +// getBackendSetHealth implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getBackendSetHealth(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/health", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetBackendSetHealthResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSetHealth/GetBackendSetHealth" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetBackendSetHealth", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetHealthChecker Retrieves the health check policy information for a given network load balancer and backend set. +// A default retry strategy applies to this operation GetHealthChecker() +func (client NetworkLoadBalancerClient) GetHealthChecker(ctx context.Context, request GetHealthCheckerRequest) (response GetHealthCheckerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.getHealthChecker, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetHealthCheckerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetHealthCheckerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetHealthCheckerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetHealthCheckerResponse") + } + return +} + +// getHealthChecker implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getHealthChecker(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/healthChecker", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetHealthCheckerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/HealthChecker/GetHealthChecker" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetHealthChecker", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetListener Retrieves listener properties associated with a given network load balancer and listener name. +// A default retry strategy applies to this operation GetListener() +func (client NetworkLoadBalancerClient) GetListener(ctx context.Context, request GetListenerRequest) (response GetListenerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getListener, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetListenerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetListenerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetListenerResponse") + } + return +} + +// getListener implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetListenerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Listener/GetListener" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetListener", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetLiveMigration List history of live migration operation and its status for a particular nlb. +// A default retry strategy applies to this operation GetLiveMigration() +func (client NetworkLoadBalancerClient) GetLiveMigration(ctx context.Context, request GetLiveMigrationRequest) (response GetLiveMigrationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getLiveMigration, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetLiveMigrationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetLiveMigrationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetLiveMigrationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetLiveMigrationResponse") + } + return +} + +// getLiveMigration implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getLiveMigration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/actions/liveMigrations/{liveMigrationId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetLiveMigrationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/LiveMigration/GetLiveMigration" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetLiveMigration", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetNetworkLoadBalancer Retrieves network load balancer configuration information by identifier. +// A default retry strategy applies to this operation GetNetworkLoadBalancer() +func (client NetworkLoadBalancerClient) GetNetworkLoadBalancer(ctx context.Context, request GetNetworkLoadBalancerRequest) (response GetNetworkLoadBalancerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getNetworkLoadBalancer, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetNetworkLoadBalancerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetNetworkLoadBalancerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNetworkLoadBalancerResponse") + } + return +} + +// getNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetNetworkLoadBalancerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/GetNetworkLoadBalancer" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetNetworkLoadBalancer", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetNetworkLoadBalancerHealth Retrieves the health status for the specified network load balancer. +// A default retry strategy applies to this operation GetNetworkLoadBalancerHealth() +func (client NetworkLoadBalancerClient) GetNetworkLoadBalancerHealth(ctx context.Context, request GetNetworkLoadBalancerHealthRequest) (response GetNetworkLoadBalancerHealthResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getNetworkLoadBalancerHealth, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetNetworkLoadBalancerHealthResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetNetworkLoadBalancerHealthResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetNetworkLoadBalancerHealthResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetNetworkLoadBalancerHealthResponse") + } + return +} + +// getNetworkLoadBalancerHealth implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getNetworkLoadBalancerHealth(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/health", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetNetworkLoadBalancerHealthResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancerHealth/GetNetworkLoadBalancerHealth" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetNetworkLoadBalancerHealth", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetWorkRequest Retrieves the details of the work request with the given identifier. +// A default retry strategy applies to this operation GetWorkRequest() +func (client NetworkLoadBalancerClient) GetWorkRequest(ctx context.Context, request GetWorkRequestRequest) (response GetWorkRequestResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getWorkRequest, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetWorkRequestResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetWorkRequestResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetWorkRequestResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetWorkRequestResponse") + } + return +} + +// getWorkRequest implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) getWorkRequest(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetWorkRequestResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/WorkRequest/GetWorkRequest" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "GetWorkRequest", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListBackendSets Lists all backend sets associated with a given network load balancer. +// A default retry strategy applies to this operation ListBackendSets() +func (client NetworkLoadBalancerClient) ListBackendSets(ctx context.Context, request ListBackendSetsRequest) (response ListBackendSetsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listBackendSets, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListBackendSetsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListBackendSetsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListBackendSetsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListBackendSetsResponse") + } + return +} + +// listBackendSets implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listBackendSets(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListBackendSetsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSetSummary/ListBackendSets" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListBackendSets", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListBackends Lists the backend servers for a given network load balancer and backend set. +// A default retry strategy applies to this operation ListBackends() +func (client NetworkLoadBalancerClient) ListBackends(ctx context.Context, request ListBackendsRequest) (response ListBackendsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listBackends, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListBackendsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListBackendsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListBackendsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListBackendsResponse") + } + return +} + +// listBackends implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listBackends(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListBackendsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSummary/ListBackends" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListBackends", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListListeners Lists all listeners associated with a given network load balancer. +// A default retry strategy applies to this operation ListListeners() +func (client NetworkLoadBalancerClient) ListListeners(ctx context.Context, request ListListenersRequest) (response ListListenersResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listListeners, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListListenersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListListenersResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListListenersResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListListenersResponse") + } + return +} + +// listListeners implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listListeners(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/listeners", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListListenersResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/ListenerSummary/ListListeners" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListListeners", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListLiveMigrations List history of live migration operation and its status for a particular nlb. +// A default retry strategy applies to this operation ListLiveMigrations() +func (client NetworkLoadBalancerClient) ListLiveMigrations(ctx context.Context, request ListLiveMigrationsRequest) (response ListLiveMigrationsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listLiveMigrations, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListLiveMigrationsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListLiveMigrationsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListLiveMigrationsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListLiveMigrationsResponse") + } + return +} + +// listLiveMigrations implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listLiveMigrations(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/{networkLoadBalancerId}/actions/liveMigrations", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListLiveMigrationsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/LiveMigrationSummary/ListLiveMigrations" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListLiveMigrations", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListNetworkLoadBalancerHealths Lists the summary health statuses for all network load balancers in the specified compartment. +// A default retry strategy applies to this operation ListNetworkLoadBalancerHealths() +func (client NetworkLoadBalancerClient) ListNetworkLoadBalancerHealths(ctx context.Context, request ListNetworkLoadBalancerHealthsRequest) (response ListNetworkLoadBalancerHealthsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancerHealths, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNetworkLoadBalancerHealthsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNetworkLoadBalancerHealthsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancerHealthsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancerHealthsResponse") + } + return +} + +// listNetworkLoadBalancerHealths implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listNetworkLoadBalancerHealths(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers/health", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNetworkLoadBalancerHealthsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancerHealth/ListNetworkLoadBalancerHealths" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListNetworkLoadBalancerHealths", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListNetworkLoadBalancers Returns a list of network load balancers. +// A default retry strategy applies to this operation ListNetworkLoadBalancers() +func (client NetworkLoadBalancerClient) ListNetworkLoadBalancers(ctx context.Context, request ListNetworkLoadBalancersRequest) (response ListNetworkLoadBalancersResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancers, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNetworkLoadBalancersResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNetworkLoadBalancersResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancersResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancersResponse") + } + return +} + +// listNetworkLoadBalancers implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listNetworkLoadBalancers(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancers", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNetworkLoadBalancersResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/ListNetworkLoadBalancers" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListNetworkLoadBalancers", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListNetworkLoadBalancersPolicies Lists the available network load balancer policies. +// A default retry strategy applies to this operation ListNetworkLoadBalancersPolicies() +func (client NetworkLoadBalancerClient) ListNetworkLoadBalancersPolicies(ctx context.Context, request ListNetworkLoadBalancersPoliciesRequest) (response ListNetworkLoadBalancersPoliciesResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancersPolicies, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNetworkLoadBalancersPoliciesResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNetworkLoadBalancersPoliciesResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancersPoliciesResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancersPoliciesResponse") + } + return +} + +// listNetworkLoadBalancersPolicies implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listNetworkLoadBalancersPolicies(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancersPolicies", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNetworkLoadBalancersPoliciesResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancingPolicy/ListNetworkLoadBalancersPolicies" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListNetworkLoadBalancersPolicies", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListNetworkLoadBalancersProtocols This API has been deprecated so it won't return the updated list of supported protocls. +// Lists all supported traffic protocols. +// A default retry strategy applies to this operation ListNetworkLoadBalancersProtocols() +func (client NetworkLoadBalancerClient) ListNetworkLoadBalancersProtocols(ctx context.Context, request ListNetworkLoadBalancersProtocolsRequest) (response ListNetworkLoadBalancersProtocolsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listNetworkLoadBalancersProtocols, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListNetworkLoadBalancersProtocolsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListNetworkLoadBalancersProtocolsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListNetworkLoadBalancersProtocolsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListNetworkLoadBalancersProtocolsResponse") + } + return +} + +// listNetworkLoadBalancersProtocols implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listNetworkLoadBalancersProtocols(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/networkLoadBalancersProtocols", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListNetworkLoadBalancersProtocolsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/ListenerProtocols/ListNetworkLoadBalancersProtocols" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListNetworkLoadBalancersProtocols", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestErrors Return a (paginated) list of errors for a given work request. +// A default retry strategy applies to this operation ListWorkRequestErrors() +func (client NetworkLoadBalancerClient) ListWorkRequestErrors(ctx context.Context, request ListWorkRequestErrorsRequest) (response ListWorkRequestErrorsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestErrors, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestErrorsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestErrorsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestErrorsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestErrorsResponse") + } + return +} + +// listWorkRequestErrors implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listWorkRequestErrors(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/errors", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestErrorsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/WorkRequestError/ListWorkRequestErrors" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListWorkRequestErrors", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequestLogs Returns a (paginated) list of logs for a given work request. +// A default retry strategy applies to this operation ListWorkRequestLogs() +func (client NetworkLoadBalancerClient) ListWorkRequestLogs(ctx context.Context, request ListWorkRequestLogsRequest) (response ListWorkRequestLogsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequestLogs, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestLogsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestLogsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestLogsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestLogsResponse") + } + return +} + +// listWorkRequestLogs implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listWorkRequestLogs(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests/{workRequestId}/logs", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestLogsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/WorkRequestLogEntry/ListWorkRequestLogs" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListWorkRequestLogs", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// ListWorkRequests Lists all work requests. +// A default retry strategy applies to this operation ListWorkRequests() +func (client NetworkLoadBalancerClient) ListWorkRequests(ctx context.Context, request ListWorkRequestsRequest) (response ListWorkRequestsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.listWorkRequests, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = ListWorkRequestsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = ListWorkRequestsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(ListWorkRequestsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into ListWorkRequestsResponse") + } + return +} + +// listWorkRequests implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) listWorkRequests(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/workRequests", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response ListWorkRequestsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/WorkRequest/ListWorkRequests" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "ListWorkRequests", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// LiveMigration Perform the live migration operation by interacting with multiple nlb and vnic interfaces. +// A default retry strategy applies to this operation LiveMigration() +func (client NetworkLoadBalancerClient) LiveMigration(ctx context.Context, request LiveMigrationRequest) (response LiveMigrationResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.liveMigration, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = LiveMigrationResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = LiveMigrationResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(LiveMigrationResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into LiveMigrationResponse") + } + return +} + +// liveMigration implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) liveMigration(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/networkLoadBalancers/{networkLoadBalancerId}/actions/liveMigrations", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response LiveMigrationResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/LiveMigration" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "LiveMigration", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateBackend Updates the configuration of a backend server within the specified backend set. +// A default retry strategy applies to this operation UpdateBackend() +func (client NetworkLoadBalancerClient) UpdateBackend(ctx context.Context, request UpdateBackendRequest) (response UpdateBackendResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateBackend, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateBackendResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateBackendResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateBackendResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateBackendResponse") + } + return +} + +// updateBackend implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) updateBackend(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateBackendResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Backend/UpdateBackend" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "UpdateBackend", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateBackendSet Updates a backend set. +// A default retry strategy applies to this operation UpdateBackendSet() +func (client NetworkLoadBalancerClient) UpdateBackendSet(ctx context.Context, request UpdateBackendSetRequest) (response UpdateBackendSetResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateBackendSet, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateBackendSetResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateBackendSetResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateBackendSetResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateBackendSetResponse") + } + return +} + +// updateBackendSet implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) updateBackendSet(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateBackendSetResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/BackendSet/UpdateBackendSet" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "UpdateBackendSet", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateHealthChecker Updates the health check policy for a given network load balancer and backend set. +// A default retry strategy applies to this operation UpdateHealthChecker() +func (client NetworkLoadBalancerClient) UpdateHealthChecker(ctx context.Context, request UpdateHealthCheckerRequest) (response UpdateHealthCheckerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateHealthChecker, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateHealthCheckerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateHealthCheckerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateHealthCheckerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateHealthCheckerResponse") + } + return +} + +// updateHealthChecker implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) updateHealthChecker(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/healthChecker", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateHealthCheckerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/HealthChecker/UpdateHealthChecker" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "UpdateHealthChecker", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateListener Updates a listener for a given network load balancer. +// A default retry strategy applies to this operation UpdateListener() +func (client NetworkLoadBalancerClient) UpdateListener(ctx context.Context, request UpdateListenerRequest) (response UpdateListenerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateListener, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateListenerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateListenerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateListenerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateListenerResponse") + } + return +} + +// updateListener implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) updateListener(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateListenerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/Listener/UpdateListener" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "UpdateListener", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateNetworkLoadBalancer Updates the network load balancer +// A default retry strategy applies to this operation UpdateNetworkLoadBalancer() +func (client NetworkLoadBalancerClient) UpdateNetworkLoadBalancer(ctx context.Context, request UpdateNetworkLoadBalancerRequest) (response UpdateNetworkLoadBalancerResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.updateNetworkLoadBalancer, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateNetworkLoadBalancerResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateNetworkLoadBalancerResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateNetworkLoadBalancerResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateNetworkLoadBalancerResponse") + } + return +} + +// updateNetworkLoadBalancer implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) updateNetworkLoadBalancer(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateNetworkLoadBalancerResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/UpdateNetworkLoadBalancer" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "UpdateNetworkLoadBalancer", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateNetworkSecurityGroups Updates the network security groups associated with the specified network load balancer. +// A default retry strategy applies to this operation UpdateNetworkSecurityGroups() +func (client NetworkLoadBalancerClient) UpdateNetworkSecurityGroups(ctx context.Context, request UpdateNetworkSecurityGroupsRequest) (response UpdateNetworkSecurityGroupsResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateNetworkSecurityGroups, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateNetworkSecurityGroupsResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateNetworkSecurityGroupsResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateNetworkSecurityGroupsResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateNetworkSecurityGroupsResponse") + } + return +} + +// updateNetworkSecurityGroups implements the OCIOperation interface (enables retrying operations) +func (client NetworkLoadBalancerClient) updateNetworkSecurityGroups(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/networkLoadBalancers/{networkLoadBalancerId}/networkSecurityGroups", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateNetworkSecurityGroupsResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/NetworkLoadBalancer/UpdateNetworkSecurityGroups" + err = common.PostProcessServiceError(err, "NetworkLoadBalancer", "UpdateNetworkSecurityGroups", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfra_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfra_client.go new file mode 100644 index 0000000000..a9d62fed93 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfra_client.go @@ -0,0 +1,145 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +//HealthCheckServiceInfraClient a client for HealthCheckServiceInfra +type HealthCheckServiceInfraClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewHealthCheckServiceInfraClientWithConfigurationProvider Creates a new default HealthCheckServiceInfra client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewHealthCheckServiceInfraClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client HealthCheckServiceInfraClient, err error) { + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newHealthCheckServiceInfraClientFromBaseClient(baseClient, provider) +} + +// NewHealthCheckServiceInfraClientWithOboToken Creates a new default HealthCheckServiceInfra client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// as well as reading the region +func NewHealthCheckServiceInfraClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client HealthCheckServiceInfraClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newHealthCheckServiceInfraClientFromBaseClient(baseClient, configProvider) +} + +func newHealthCheckServiceInfraClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client HealthCheckServiceInfraClient, err error) { + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = HealthCheckServiceInfraClient{BaseClient: baseClient} + client.BasePath = "20200501" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *HealthCheckServiceInfraClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("networkloadbalancer", "https://network-load-balancer-api.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *HealthCheckServiceInfraClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *HealthCheckServiceInfraClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// RegisterHealthCheckServiceInfraDpHost Create a HCS dp host +// A default retry strategy applies to this operation RegisterHealthCheckServiceInfraDpHost() +func (client HealthCheckServiceInfraClient) RegisterHealthCheckServiceInfraDpHost(ctx context.Context, request RegisterHealthCheckServiceInfraDpHostRequest) (response RegisterHealthCheckServiceInfraDpHostResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.registerHealthCheckServiceInfraDpHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = RegisterHealthCheckServiceInfraDpHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = RegisterHealthCheckServiceInfraDpHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(RegisterHealthCheckServiceInfraDpHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into RegisterHealthCheckServiceInfraDpHostResponse") + } + return +} + +// registerHealthCheckServiceInfraDpHost implements the OCIOperation interface (enables retrying operations) +func (client HealthCheckServiceInfraClient) registerHealthCheckServiceInfraDpHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/healthCheckServiceInfraDpHost", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response RegisterHealthCheckServiceInfraDpHostResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/DpHost/RegisterHealthCheckServiceInfraDpHost" + err = common.PostProcessServiceError(err, "HealthCheckServiceInfra", "RegisterHealthCheckServiceInfraDpHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfradphost_client.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfradphost_client.go new file mode 100644 index 0000000000..8a8dd67b68 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/networkloadbalancer_healthcheckserviceinfradphost_client.go @@ -0,0 +1,312 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "context" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/common/auth" + "net/http" +) + +//HealthCheckServiceInfraDpHostClient a client for HealthCheckServiceInfraDpHost +type HealthCheckServiceInfraDpHostClient struct { + common.BaseClient + config *common.ConfigurationProvider +} + +// NewHealthCheckServiceInfraDpHostClientWithConfigurationProvider Creates a new default HealthCheckServiceInfraDpHost client with the given configuration provider. +// the configuration provider will be used for the default signer as well as reading the region +func NewHealthCheckServiceInfraDpHostClientWithConfigurationProvider(configProvider common.ConfigurationProvider) (client HealthCheckServiceInfraDpHostClient, err error) { + provider, err := auth.GetGenericConfigurationProvider(configProvider) + if err != nil { + return client, err + } + baseClient, e := common.NewClientWithConfig(provider) + if e != nil { + return client, e + } + return newHealthCheckServiceInfraDpHostClientFromBaseClient(baseClient, provider) +} + +// NewHealthCheckServiceInfraDpHostClientWithOboToken Creates a new default HealthCheckServiceInfraDpHost client with the given configuration provider. +// The obotoken will be added to default headers and signed; the configuration provider will be used for the signer +// as well as reading the region +func NewHealthCheckServiceInfraDpHostClientWithOboToken(configProvider common.ConfigurationProvider, oboToken string) (client HealthCheckServiceInfraDpHostClient, err error) { + baseClient, err := common.NewClientWithOboToken(configProvider, oboToken) + if err != nil { + return client, err + } + + return newHealthCheckServiceInfraDpHostClientFromBaseClient(baseClient, configProvider) +} + +func newHealthCheckServiceInfraDpHostClientFromBaseClient(baseClient common.BaseClient, configProvider common.ConfigurationProvider) (client HealthCheckServiceInfraDpHostClient, err error) { + common.ConfigCircuitBreakerFromEnvVar(&baseClient) + common.ConfigCircuitBreakerFromGlobalVar(&baseClient) + + client = HealthCheckServiceInfraDpHostClient{BaseClient: baseClient} + client.BasePath = "20200501" + err = client.setConfigurationProvider(configProvider) + return +} + +// SetRegion overrides the region of this client. +func (client *HealthCheckServiceInfraDpHostClient) SetRegion(region string) { + client.Host = common.StringToRegion(region).EndpointForTemplate("networkloadbalancer", "https://network-load-balancer-api.{region}.oci.{secondLevelDomain}") +} + +// SetConfigurationProvider sets the configuration provider including the region, returns an error if is not valid +func (client *HealthCheckServiceInfraDpHostClient) setConfigurationProvider(configProvider common.ConfigurationProvider) error { + if ok, err := common.IsConfigurationProviderValid(configProvider); !ok { + return err + } + + // Error has been checked already + region, _ := configProvider.Region() + client.SetRegion(region) + if client.Host == "" { + return fmt.Errorf("Invalid region or Host. Endpoint cannot be constructed without endpointServiceName or serviceEndpointTemplate for a dotted region") + } + client.config = &configProvider + return nil +} + +// ConfigurationProvider the ConfigurationProvider used in this client, or null if none set +func (client *HealthCheckServiceInfraDpHostClient) ConfigurationProvider() *common.ConfigurationProvider { + return client.config +} + +// DeleteHealthCheckServiceInfraDpHost Delete hcs dp host configuration by identifier. +// A default retry strategy applies to this operation DeleteHealthCheckServiceInfraDpHost() +func (client HealthCheckServiceInfraDpHostClient) DeleteHealthCheckServiceInfraDpHost(ctx context.Context, request DeleteHealthCheckServiceInfraDpHostRequest) (response DeleteHealthCheckServiceInfraDpHostResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.deleteHealthCheckServiceInfraDpHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = DeleteHealthCheckServiceInfraDpHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = DeleteHealthCheckServiceInfraDpHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(DeleteHealthCheckServiceInfraDpHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into DeleteHealthCheckServiceInfraDpHostResponse") + } + return +} + +// deleteHealthCheckServiceInfraDpHost implements the OCIOperation interface (enables retrying operations) +func (client HealthCheckServiceInfraDpHostClient) deleteHealthCheckServiceInfraDpHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodDelete, "/healthCheckServiceInfraDpHost/{availabilityDomain}/{dpHostId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response DeleteHealthCheckServiceInfraDpHostResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/DpHost/DeleteHealthCheckServiceInfraDpHost" + err = common.PostProcessServiceError(err, "HealthCheckServiceInfraDpHost", "DeleteHealthCheckServiceInfraDpHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// GetHealthCheckServiceInfraDpHost Retrieves hcs dp host configuration information by identifier. +// A default retry strategy applies to this operation GetHealthCheckServiceInfraDpHost() +func (client HealthCheckServiceInfraDpHostClient) GetHealthCheckServiceInfraDpHost(ctx context.Context, request GetHealthCheckServiceInfraDpHostRequest) (response GetHealthCheckServiceInfraDpHostResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + ociResponse, err = common.Retry(ctx, request, client.getHealthCheckServiceInfraDpHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = GetHealthCheckServiceInfraDpHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = GetHealthCheckServiceInfraDpHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(GetHealthCheckServiceInfraDpHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into GetHealthCheckServiceInfraDpHostResponse") + } + return +} + +// getHealthCheckServiceInfraDpHost implements the OCIOperation interface (enables retrying operations) +func (client HealthCheckServiceInfraDpHostClient) getHealthCheckServiceInfraDpHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodGet, "/healthCheckServiceInfraDpHost/{availabilityDomain}/{dpHostId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response GetHealthCheckServiceInfraDpHostResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/DpHost/GetHealthCheckServiceInfraDpHost" + err = common.PostProcessServiceError(err, "HealthCheckServiceInfraDpHost", "GetHealthCheckServiceInfraDpHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// PostHeartBeat Post HCS dp host heart beat +// A default retry strategy applies to this operation PostHeartBeat() +func (client HealthCheckServiceInfraDpHostClient) PostHeartBeat(ctx context.Context, request PostHeartBeatRequest) (response PostHeartBeatResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.postHeartBeat, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = PostHeartBeatResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = PostHeartBeatResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(PostHeartBeatResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into PostHeartBeatResponse") + } + return +} + +// postHeartBeat implements the OCIOperation interface (enables retrying operations) +func (client HealthCheckServiceInfraDpHostClient) postHeartBeat(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPost, "/healthCheckServiceInfraDpHost/heartBeat", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response PostHeartBeatResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/DpHost/PostHeartBeat" + err = common.PostProcessServiceError(err, "HealthCheckServiceInfraDpHost", "PostHeartBeat", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} + +// UpdateHealthCheckServiceInfraDpHost Update HCS dp host +// A default retry strategy applies to this operation UpdateHealthCheckServiceInfraDpHost() +func (client HealthCheckServiceInfraDpHostClient) UpdateHealthCheckServiceInfraDpHost(ctx context.Context, request UpdateHealthCheckServiceInfraDpHostRequest) (response UpdateHealthCheckServiceInfraDpHostResponse, err error) { + var ociResponse common.OCIResponse + policy := common.DefaultRetryPolicy() + if client.RetryPolicy() != nil { + policy = *client.RetryPolicy() + } + if request.RetryPolicy() != nil { + policy = *request.RetryPolicy() + } + + if !(request.OpcRetryToken != nil && *request.OpcRetryToken != "") { + request.OpcRetryToken = common.String(common.RetryToken()) + } + + ociResponse, err = common.Retry(ctx, request, client.updateHealthCheckServiceInfraDpHost, policy) + if err != nil { + if ociResponse != nil { + if httpResponse := ociResponse.HTTPResponse(); httpResponse != nil { + opcRequestId := httpResponse.Header.Get("opc-request-id") + response = UpdateHealthCheckServiceInfraDpHostResponse{RawResponse: httpResponse, OpcRequestId: &opcRequestId} + } else { + response = UpdateHealthCheckServiceInfraDpHostResponse{} + } + } + return + } + if convertedResponse, ok := ociResponse.(UpdateHealthCheckServiceInfraDpHostResponse); ok { + response = convertedResponse + } else { + err = fmt.Errorf("failed to convert OCIResponse into UpdateHealthCheckServiceInfraDpHostResponse") + } + return +} + +// updateHealthCheckServiceInfraDpHost implements the OCIOperation interface (enables retrying operations) +func (client HealthCheckServiceInfraDpHostClient) updateHealthCheckServiceInfraDpHost(ctx context.Context, request common.OCIRequest, binaryReqBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (common.OCIResponse, error) { + + httpRequest, err := request.HTTPRequest(http.MethodPut, "/healthCheckServiceInfraDpHost/{availabilityDomain}/{dpHostId}", binaryReqBody, extraHeaders) + if err != nil { + return nil, err + } + + var response UpdateHealthCheckServiceInfraDpHostResponse + var httpResponse *http.Response + httpResponse, err = client.Call(ctx, &httpRequest) + defer common.CloseBodyIfValid(httpResponse) + response.RawResponse = httpResponse + if err != nil { + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/networkloadbalancer/20200501/DpHost/UpdateHealthCheckServiceInfraDpHost" + err = common.PostProcessServiceError(err, "HealthCheckServiceInfraDpHost", "UpdateHealthCheckServiceInfraDpHost", apiReferenceLink) + return response, err + } + + err = common.UnmarshalResponse(httpResponse, &response) + return response, err +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/nlb_ip_version.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/nlb_ip_version.go new file mode 100644 index 0000000000..b8c7b42dcb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/nlb_ip_version.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// NlbIpVersionEnum Enum with underlying type: string +type NlbIpVersionEnum string + +// Set of constants representing the allowable values for NlbIpVersionEnum +const ( + NlbIpVersionIpv4 NlbIpVersionEnum = "IPV4" + NlbIpVersionIpv4AndIpv6 NlbIpVersionEnum = "IPV4_AND_IPV6" +) + +var mappingNlbIpVersionEnum = map[string]NlbIpVersionEnum{ + "IPV4": NlbIpVersionIpv4, + "IPV4_AND_IPV6": NlbIpVersionIpv4AndIpv6, +} + +var mappingNlbIpVersionEnumLowerCase = map[string]NlbIpVersionEnum{ + "ipv4": NlbIpVersionIpv4, + "ipv4_and_ipv6": NlbIpVersionIpv4AndIpv6, +} + +// GetNlbIpVersionEnumValues Enumerates the set of values for NlbIpVersionEnum +func GetNlbIpVersionEnumValues() []NlbIpVersionEnum { + values := make([]NlbIpVersionEnum, 0) + for _, v := range mappingNlbIpVersionEnum { + values = append(values, v) + } + return values +} + +// GetNlbIpVersionEnumStringValues Enumerates the set of values in String for NlbIpVersionEnum +func GetNlbIpVersionEnumStringValues() []string { + return []string{ + "IPV4", + "IPV4_AND_IPV6", + } +} + +// GetMappingNlbIpVersionEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingNlbIpVersionEnum(val string) (NlbIpVersionEnum, bool) { + enum, ok := mappingNlbIpVersionEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_status.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_status.go new file mode 100644 index 0000000000..68677c66fc --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_status.go @@ -0,0 +1,72 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// OperationStatusEnum Enum with underlying type: string +type OperationStatusEnum string + +// Set of constants representing the allowable values for OperationStatusEnum +const ( + OperationStatusAccepted OperationStatusEnum = "ACCEPTED" + OperationStatusInProgress OperationStatusEnum = "IN_PROGRESS" + OperationStatusFailed OperationStatusEnum = "FAILED" + OperationStatusSucceeded OperationStatusEnum = "SUCCEEDED" + OperationStatusCanceling OperationStatusEnum = "CANCELING" + OperationStatusCanceled OperationStatusEnum = "CANCELED" +) + +var mappingOperationStatusEnum = map[string]OperationStatusEnum{ + "ACCEPTED": OperationStatusAccepted, + "IN_PROGRESS": OperationStatusInProgress, + "FAILED": OperationStatusFailed, + "SUCCEEDED": OperationStatusSucceeded, + "CANCELING": OperationStatusCanceling, + "CANCELED": OperationStatusCanceled, +} + +var mappingOperationStatusEnumLowerCase = map[string]OperationStatusEnum{ + "accepted": OperationStatusAccepted, + "in_progress": OperationStatusInProgress, + "failed": OperationStatusFailed, + "succeeded": OperationStatusSucceeded, + "canceling": OperationStatusCanceling, + "canceled": OperationStatusCanceled, +} + +// GetOperationStatusEnumValues Enumerates the set of values for OperationStatusEnum +func GetOperationStatusEnumValues() []OperationStatusEnum { + values := make([]OperationStatusEnum, 0) + for _, v := range mappingOperationStatusEnum { + values = append(values, v) + } + return values +} + +// GetOperationStatusEnumStringValues Enumerates the set of values in String for OperationStatusEnum +func GetOperationStatusEnumStringValues() []string { + return []string{ + "ACCEPTED", + "IN_PROGRESS", + "FAILED", + "SUCCEEDED", + "CANCELING", + "CANCELED", + } +} + +// GetMappingOperationStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOperationStatusEnum(val string) (OperationStatusEnum, bool) { + enum, ok := mappingOperationStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_type.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_type.go new file mode 100644 index 0000000000..9f7e3d0e1f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/operation_type.go @@ -0,0 +1,120 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// OperationTypeEnum Enum with underlying type: string +type OperationTypeEnum string + +// Set of constants representing the allowable values for OperationTypeEnum +const ( + OperationTypeCreateNetworkLoadBalancer OperationTypeEnum = "CREATE_NETWORK_LOAD_BALANCER" + OperationTypeUpdateNetworkLoadBalancer OperationTypeEnum = "UPDATE_NETWORK_LOAD_BALANCER" + OperationTypeDeleteNetworkLoadBalancer OperationTypeEnum = "DELETE_NETWORK_LOAD_BALANCER" + OperationTypeCreateBackend OperationTypeEnum = "CREATE_BACKEND" + OperationTypeUpdateBackend OperationTypeEnum = "UPDATE_BACKEND" + OperationTypeDeleteBackend OperationTypeEnum = "DELETE_BACKEND" + OperationTypeCreateListener OperationTypeEnum = "CREATE_LISTENER" + OperationTypeUpdateListener OperationTypeEnum = "UPDATE_LISTENER" + OperationTypeDeleteListener OperationTypeEnum = "DELETE_LISTENER" + OperationTypeCreateBackendset OperationTypeEnum = "CREATE_BACKENDSET" + OperationTypeUpdateBackendset OperationTypeEnum = "UPDATE_BACKENDSET" + OperationTypeDeleteBackendset OperationTypeEnum = "DELETE_BACKENDSET" + OperationTypeUpdateNsgs OperationTypeEnum = "UPDATE_NSGS" + OperationTypeUpdateHealthChecker OperationTypeEnum = "UPDATE_HEALTH_CHECKER" + OperationTypeChangeCompartment OperationTypeEnum = "CHANGE_COMPARTMENT" + OperationTypeAttachNlbToPod OperationTypeEnum = "ATTACH_NLB_TO_POD" + OperationTypeDetachNlbFromPod OperationTypeEnum = "DETACH_NLB_FROM_POD" + OperationTypeLiveMigration OperationTypeEnum = "LIVE_MIGRATION" +) + +var mappingOperationTypeEnum = map[string]OperationTypeEnum{ + "CREATE_NETWORK_LOAD_BALANCER": OperationTypeCreateNetworkLoadBalancer, + "UPDATE_NETWORK_LOAD_BALANCER": OperationTypeUpdateNetworkLoadBalancer, + "DELETE_NETWORK_LOAD_BALANCER": OperationTypeDeleteNetworkLoadBalancer, + "CREATE_BACKEND": OperationTypeCreateBackend, + "UPDATE_BACKEND": OperationTypeUpdateBackend, + "DELETE_BACKEND": OperationTypeDeleteBackend, + "CREATE_LISTENER": OperationTypeCreateListener, + "UPDATE_LISTENER": OperationTypeUpdateListener, + "DELETE_LISTENER": OperationTypeDeleteListener, + "CREATE_BACKENDSET": OperationTypeCreateBackendset, + "UPDATE_BACKENDSET": OperationTypeUpdateBackendset, + "DELETE_BACKENDSET": OperationTypeDeleteBackendset, + "UPDATE_NSGS": OperationTypeUpdateNsgs, + "UPDATE_HEALTH_CHECKER": OperationTypeUpdateHealthChecker, + "CHANGE_COMPARTMENT": OperationTypeChangeCompartment, + "ATTACH_NLB_TO_POD": OperationTypeAttachNlbToPod, + "DETACH_NLB_FROM_POD": OperationTypeDetachNlbFromPod, + "LIVE_MIGRATION": OperationTypeLiveMigration, +} + +var mappingOperationTypeEnumLowerCase = map[string]OperationTypeEnum{ + "create_network_load_balancer": OperationTypeCreateNetworkLoadBalancer, + "update_network_load_balancer": OperationTypeUpdateNetworkLoadBalancer, + "delete_network_load_balancer": OperationTypeDeleteNetworkLoadBalancer, + "create_backend": OperationTypeCreateBackend, + "update_backend": OperationTypeUpdateBackend, + "delete_backend": OperationTypeDeleteBackend, + "create_listener": OperationTypeCreateListener, + "update_listener": OperationTypeUpdateListener, + "delete_listener": OperationTypeDeleteListener, + "create_backendset": OperationTypeCreateBackendset, + "update_backendset": OperationTypeUpdateBackendset, + "delete_backendset": OperationTypeDeleteBackendset, + "update_nsgs": OperationTypeUpdateNsgs, + "update_health_checker": OperationTypeUpdateHealthChecker, + "change_compartment": OperationTypeChangeCompartment, + "attach_nlb_to_pod": OperationTypeAttachNlbToPod, + "detach_nlb_from_pod": OperationTypeDetachNlbFromPod, + "live_migration": OperationTypeLiveMigration, +} + +// GetOperationTypeEnumValues Enumerates the set of values for OperationTypeEnum +func GetOperationTypeEnumValues() []OperationTypeEnum { + values := make([]OperationTypeEnum, 0) + for _, v := range mappingOperationTypeEnum { + values = append(values, v) + } + return values +} + +// GetOperationTypeEnumStringValues Enumerates the set of values in String for OperationTypeEnum +func GetOperationTypeEnumStringValues() []string { + return []string{ + "CREATE_NETWORK_LOAD_BALANCER", + "UPDATE_NETWORK_LOAD_BALANCER", + "DELETE_NETWORK_LOAD_BALANCER", + "CREATE_BACKEND", + "UPDATE_BACKEND", + "DELETE_BACKEND", + "CREATE_LISTENER", + "UPDATE_LISTENER", + "DELETE_LISTENER", + "CREATE_BACKENDSET", + "UPDATE_BACKENDSET", + "DELETE_BACKENDSET", + "UPDATE_NSGS", + "UPDATE_HEALTH_CHECKER", + "CHANGE_COMPARTMENT", + "ATTACH_NLB_TO_POD", + "DETACH_NLB_FROM_POD", + "LIVE_MIGRATION", + } +} + +// GetMappingOperationTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingOperationTypeEnum(val string) (OperationTypeEnum, bool) { + enum, ok := mappingOperationTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_details.go new file mode 100644 index 0000000000..44dd4d36f9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// PostHeartBeatDetails Configuration details to registrate a hcs dp host. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type PostHeartBeatDetails struct { + + // The host Id for the hsc dp host + // Example: `10.241.46.137` + HostId *string `mandatory:"false" json:"hostId"` + + // The ad of the hsc dp host + // Example: `phx-ad-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Host Load. + HostLoad *int `mandatory:"false" json:"hostLoad"` +} + +func (m PostHeartBeatDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m PostHeartBeatDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_request_response.go new file mode 100644 index 0000000000..b534a8fb8d --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/post_heart_beat_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// PostHeartBeatRequest wrapper for the PostHeartBeat operation +type PostHeartBeatRequest struct { + + // Update HCS dp host heartbeat + PostHeartBeatDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request PostHeartBeatRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request PostHeartBeatRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request PostHeartBeatRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request PostHeartBeatRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request PostHeartBeatRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// PostHeartBeatResponse wrapper for the PostHeartBeat operation +type PostHeartBeatResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response PostHeartBeatResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response PostHeartBeatResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_details.go new file mode 100644 index 0000000000..76fe5ae873 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// RegisterHealthCheckServiceInfraDpHostDetails Configuration details to registrate a hcs dp host. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type RegisterHealthCheckServiceInfraDpHostDetails struct { + + // The host Id for the hsc dp host + // Example: `10.241.46.137` + HostId *string `mandatory:"false" json:"hostId"` + + // The name for the hsc dp host + // Example: `vcndp-vnicaas-02301.node.ad2.r1` + DpHostName *string `mandatory:"false" json:"dpHostName"` + + // The pod Id of the hsc dp host + // Example: `172.24.255.59` + PodId *string `mandatory:"false" json:"podId"` + + // The tor Id of the hsc dp host + // Example: `10.241.46.129` + TorId *string `mandatory:"false" json:"torId"` + + // The ad of the hsc dp host + // Example: `phx-ad-1` + AvailabilityDomain *string `mandatory:"false" json:"availabilityDomain"` + + // Host Capacity. + HostCapacity *int `mandatory:"false" json:"hostCapacity"` +} + +func (m RegisterHealthCheckServiceInfraDpHostDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m RegisterHealthCheckServiceInfraDpHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_request_response.go new file mode 100644 index 0000000000..9e1a44159f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/register_health_check_service_infra_dp_host_request_response.go @@ -0,0 +1,101 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// RegisterHealthCheckServiceInfraDpHostRequest wrapper for the RegisterHealthCheckServiceInfraDpHost operation +type RegisterHealthCheckServiceInfraDpHostRequest struct { + + // Create a HCS dp host. + RegisterHealthCheckServiceInfraDpHostDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request RegisterHealthCheckServiceInfraDpHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request RegisterHealthCheckServiceInfraDpHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request RegisterHealthCheckServiceInfraDpHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request RegisterHealthCheckServiceInfraDpHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request RegisterHealthCheckServiceInfraDpHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// RegisterHealthCheckServiceInfraDpHostResponse wrapper for the RegisterHealthCheckServiceInfraDpHost operation +type RegisterHealthCheckServiceInfraDpHostResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response RegisterHealthCheckServiceInfraDpHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response RegisterHealthCheckServiceInfraDpHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/reserved_ip.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/reserved_ip.go new file mode 100644 index 0000000000..7599817026 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/reserved_ip.go @@ -0,0 +1,44 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// ReservedIp An object representing a reserved IP address to be attached or that is already attached to a network load balancer. +type ReservedIp struct { + + // OCID of the reserved public IP address created with the virtual cloud network. + // Reserved public IP addresses are IP addresses that are registered using the virtual cloud network API. + // Create a reserved public IP address. When you create the network load balancer, enter the OCID of the reserved public IP address in the + // reservedIp field to attach the IP address to the network load balancer. This task configures the network load balancer to listen to traffic on this IP address. + // Reserved public IP addresses are not deleted when the network load balancer is deleted. The IP addresses become unattached from the network load balancer. + // Example: "ocid1.publicip.oc1.phx.unique_ID" + Id *string `mandatory:"false" json:"id"` +} + +func (m ReservedIp) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m ReservedIp) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/sort_order.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/sort_order.go new file mode 100644 index 0000000000..ea763a4020 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/sort_order.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "strings" +) + +// SortOrderEnum Enum with underlying type: string +type SortOrderEnum string + +// Set of constants representing the allowable values for SortOrderEnum +const ( + SortOrderAsc SortOrderEnum = "ASC" + SortOrderDesc SortOrderEnum = "DESC" +) + +var mappingSortOrderEnum = map[string]SortOrderEnum{ + "ASC": SortOrderAsc, + "DESC": SortOrderDesc, +} + +var mappingSortOrderEnumLowerCase = map[string]SortOrderEnum{ + "asc": SortOrderAsc, + "desc": SortOrderDesc, +} + +// GetSortOrderEnumValues Enumerates the set of values for SortOrderEnum +func GetSortOrderEnumValues() []SortOrderEnum { + values := make([]SortOrderEnum, 0) + for _, v := range mappingSortOrderEnum { + values = append(values, v) + } + return values +} + +// GetSortOrderEnumStringValues Enumerates the set of values in String for SortOrderEnum +func GetSortOrderEnumStringValues() []string { + return []string{ + "ASC", + "DESC", + } +} + +// GetMappingSortOrderEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingSortOrderEnum(val string) (SortOrderEnum, bool) { + enum, ok := mappingSortOrderEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_details.go new file mode 100644 index 0000000000..f7866d0f1e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_details.go @@ -0,0 +1,59 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBackendDetails The configuration details for updating a backend server. +type UpdateBackendDetails struct { + + // The load balancing policy weight assigned to the server. Backend servers with a higher weight receive a larger + // proportion of incoming traffic. For example, a server weighted '3' receives three times the number of new connections + // as a server weighted '1'. + // For more information about load balancing policies, see + // How Load Balancing Policies Work (https://docs.cloud.oracle.com/Content/Balance/Reference/lbpolicies.htm). + // Example: `3` + Weight *int `mandatory:"false" json:"weight"` + + // Whether the network load balancer should treat this server as a backup unit. If `true`, then the network load balancer forwards no ingress + // traffic to this backend server unless all other backend servers not marked as "isBackup" fail the health check policy. + // Example: `false` + IsBackup *bool `mandatory:"false" json:"isBackup"` + + // Whether the network load balancer should drain this server. Servers marked "isDrain" receive no + // incoming traffic. + // Example: `false` + IsDrain *bool `mandatory:"false" json:"isDrain"` + + // Whether the network load balancer should treat this server as offline. Offline servers receive no incoming + // traffic. + // Example: `false` + IsOffline *bool `mandatory:"false" json:"isOffline"` +} + +func (m UpdateBackendDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBackendDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_request_response.go new file mode 100644 index 0000000000..da6bc6024e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_request_response.go @@ -0,0 +1,115 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateBackendRequest wrapper for the UpdateBackend operation +type UpdateBackendRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // Details for updating a backend server. + UpdateBackendDetails `contributesTo:"body"` + + // The name of the backend set associated with the backend server. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The name of the backend server to update. + // If the backend was created with an explicitly specified name, that name should be used here. + // If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as :. + // If the backend was created without explicitly specifying the name, but was created using targetId, this is specified as :. + // Example: `10.0.0.3:8080` or `ocid1.privateip..oc1.<unique_ID>:8080` + BackendName *string `mandatory:"true" contributesTo:"path" name:"backendName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateBackendRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateBackendRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateBackendRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateBackendRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBackendRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateBackendResponse wrapper for the UpdateBackend operation +type UpdateBackendResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateBackendResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateBackendResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_details.go new file mode 100644 index 0000000000..0725f9f30a --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_details.go @@ -0,0 +1,60 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateBackendSetDetails The configuration details for updating a load balancer backend set. +// For more information about backend set configuration, see +// Managing Backend Sets (https://docs.cloud.oracle.com/Content/Balance/Tasks/managingbackendsets.htm). +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateBackendSetDetails struct { + + // The network load balancer policy for the backend set. To get a list of available policies, use the + // ListNetworkLoadBalancersPolicies operation. + // Example: `FIVE_TUPLE` + Policy *string `mandatory:"false" json:"policy"` + + // If this parameter is enabled, then the network load balancer preserves the source IP of the packet when it is forwarded to backends. + // Backends see the original source IP. If the isPreserveSourceDestination parameter is enabled for the network load balancer resource, then this parameter cannot be disabled. + // The value is true by default. + IsPreserveSource *bool `mandatory:"false" json:"isPreserveSource"` + + // The IP version associated with the backend set. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // An array of backends associated with the backend set. + Backends []BackendDetails `mandatory:"false" json:"backends"` + + HealthChecker *HealthCheckerDetails `mandatory:"false" json:"healthChecker"` +} + +func (m UpdateBackendSetDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateBackendSetDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_request_response.go new file mode 100644 index 0000000000..2c31f513eb --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_backend_set_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateBackendSetRequest wrapper for the UpdateBackendSet operation +type UpdateBackendSetRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The details to update a backend set. + UpdateBackendSetDetails `contributesTo:"body"` + + // The name of the backend set to update. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateBackendSetRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateBackendSetRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateBackendSetRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateBackendSetRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateBackendSetRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateBackendSetResponse wrapper for the UpdateBackendSet operation +type UpdateBackendSetResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateBackendSetResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateBackendSetResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_details.go new file mode 100644 index 0000000000..2d869e40e3 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_details.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateHealthCheckServiceInfraDpHostDetails Configuration details to update a hcs dp host. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateHealthCheckServiceInfraDpHostDetails struct { + + // The name for the hsc dp host + // Example: `vcndp-vnicaas-02301.node.ad2.r1` + DpHostName *string `mandatory:"false" json:"dpHostName"` + + // The pod Id of the hsc dp host + // Example: `172.24.255.59` + PodId *string `mandatory:"false" json:"podId"` + + // The tor Id of the hsc dp host + // Example: `10.241.46.129` + TorId *string `mandatory:"false" json:"torId"` + + // The current state of the hsc dp host + // Example: `Active` or `Quarantined` + State *string `mandatory:"false" json:"state"` + + // Host Capacity. + HostCapacity *int `mandatory:"false" json:"hostCapacity"` +} + +func (m UpdateHealthCheckServiceInfraDpHostDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateHealthCheckServiceInfraDpHostDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_request_response.go new file mode 100644 index 0000000000..d42a96c1d9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_check_service_infra_dp_host_request_response.go @@ -0,0 +1,107 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateHealthCheckServiceInfraDpHostRequest wrapper for the UpdateHealthCheckServiceInfraDpHost operation +type UpdateHealthCheckServiceInfraDpHostRequest struct { + + // The AvailabilityDomain of the hcs dp host. + AvailabilityDomain *string `mandatory:"true" contributesTo:"path" name:"availabilityDomain"` + + // The ID of the hcs dp host. + DpHostId *string `mandatory:"true" contributesTo:"path" name:"dpHostId"` + + // Update HCS dp host. + UpdateHealthCheckServiceInfraDpHostDetails `contributesTo:"body"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateHealthCheckServiceInfraDpHostRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateHealthCheckServiceInfraDpHostRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateHealthCheckServiceInfraDpHostRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateHealthCheckServiceInfraDpHostRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateHealthCheckServiceInfraDpHostRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateHealthCheckServiceInfraDpHostResponse wrapper for the UpdateHealthCheckServiceInfraDpHost operation +type UpdateHealthCheckServiceInfraDpHostResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` +} + +func (response UpdateHealthCheckServiceInfraDpHostResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateHealthCheckServiceInfraDpHostResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_details.go new file mode 100644 index 0000000000..95fcddf08c --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_details.go @@ -0,0 +1,80 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateHealthCheckerDetails The configuration details of the health checker. +type UpdateHealthCheckerDetails struct { + + // The protocol that the health check must use; either HTTP, UDP, or TCP. + // Example: `HTTP` + Protocol HealthCheckProtocolsEnum `mandatory:"false" json:"protocol,omitempty"` + + // The backend server port against which to run the health check. + // Example: `8080` + Port *int `mandatory:"false" json:"port"` + + // The number of retries to attempt before a backend server is considered "unhealthy". This number also applies + // when recovering a server to the "healthy" state. + // Example: `3` + Retries *int `mandatory:"false" json:"retries"` + + // The maximum time, in milliseconds, to wait for a reply to a health check. A health check is successful only if a reply + // returns within this timeout period. + // Example: `3000` + TimeoutInMillis *int `mandatory:"false" json:"timeoutInMillis"` + + // The interval between health checks, in milliseconds. + // Example: `10000` + IntervalInMillis *int `mandatory:"false" json:"intervalInMillis"` + + // The path against which to run the health check. + // Example: `/healthcheck` + UrlPath *string `mandatory:"false" json:"urlPath"` + + // A regular expression for parsing the response body from the backend server. + // Example: `^((?!false).|\s)*$` + ResponseBodyRegex *string `mandatory:"false" json:"responseBodyRegex"` + + // The status code a healthy backend server should return. If you configure the health check policy to use the HTTP protocol, + // then you can use common HTTP status codes such as "200". + // Example: `200` + ReturnCode *int `mandatory:"false" json:"returnCode"` + + // Base64 encoded pattern to be sent as UDP or TCP health check probe. + RequestData []byte `mandatory:"false" json:"requestData"` + + // Base64 encoded pattern to be validated as UDP or TCP health check probe response. + ResponseData []byte `mandatory:"false" json:"responseData"` +} + +func (m UpdateHealthCheckerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateHealthCheckerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingHealthCheckProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetHealthCheckProtocolsEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_request_response.go new file mode 100644 index 0000000000..2c99d9c52f --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_health_checker_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateHealthCheckerRequest wrapper for the UpdateHealthChecker operation +type UpdateHealthCheckerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The health check policy configuration details. + UpdateHealthCheckerDetails `contributesTo:"body"` + + // The name of the backend set associated with the health check policy to be retrieved. + // Example: `example_backend_set` + BackendSetName *string `mandatory:"true" contributesTo:"path" name:"backendSetName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateHealthCheckerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateHealthCheckerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateHealthCheckerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateHealthCheckerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateHealthCheckerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateHealthCheckerResponse wrapper for the UpdateHealthChecker operation +type UpdateHealthCheckerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateHealthCheckerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateHealthCheckerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go new file mode 100644 index 0000000000..a58b386063 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_details.go @@ -0,0 +1,69 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateListenerDetails The configuration of the listener. +// For more information about backend set configuration, see +// Managing Network Load Balancer Listeners (https://docs.cloud.oracle.com/Content/Balance/Tasks/managinglisteners.htm). +type UpdateListenerDetails struct { + + // The name of the associated backend set. + // Example: `example_backend_set` + DefaultBackendSetName *string `mandatory:"false" json:"defaultBackendSetName"` + + // The communication port for the listener. + // Example: `80` + Port *int `mandatory:"false" json:"port"` + + // The protocol on which the listener accepts connection requests. + // For public network load balancers, ANY protocol refers to TCP/UDP with the wildcard port. + // For private network load balancers, ANY protocol refers to TCP/UDP/ICMP (note that ICMP requires isPreserveSourceDestination to be set to true). + // "ListNetworkLoadBalancersProtocols" API is deprecated and it will not return the updated values. Use the allowed values for the protocol instead. + // Example: `TCP` + Protocol ListenerProtocolsEnum `mandatory:"false" json:"protocol,omitempty"` + + // IP version associated with the listener. + IpVersion IpVersionEnum `mandatory:"false" json:"ipVersion,omitempty"` + + // Property to enable/disable PPv2 feature for this listener. + IsPpv2Enabled *bool `mandatory:"false" json:"isPpv2Enabled"` + + // An array that represents the PPV2 Options that can be enabled on TCP Listeners. + // Example: ["VCN_ID"] + InternalProxyProtocolOptions []MetadataOptionsEnum `mandatory:"false" json:"internalProxyProtocolOptions"` +} + +func (m UpdateListenerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateListenerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingListenerProtocolsEnum(string(m.Protocol)); !ok && m.Protocol != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Protocol: %s. Supported values are: %s.", m.Protocol, strings.Join(GetListenerProtocolsEnumStringValues(), ","))) + } + if _, ok := GetMappingIpVersionEnum(string(m.IpVersion)); !ok && m.IpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for IpVersion: %s. Supported values are: %s.", m.IpVersion, strings.Join(GetIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_request_response.go new file mode 100644 index 0000000000..de8a9960dd --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_listener_request_response.go @@ -0,0 +1,108 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateListenerRequest wrapper for the UpdateListener operation +type UpdateListenerRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // Details to update a listener. + UpdateListenerDetails `contributesTo:"body"` + + // The name of the listener to update. + // Example: `example_listener` + ListenerName *string `mandatory:"true" contributesTo:"path" name:"listenerName"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateListenerRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateListenerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateListenerRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateListenerRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateListenerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateListenerResponse wrapper for the UpdateListener operation +type UpdateListenerResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateListenerResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateListenerResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_details.go new file mode 100644 index 0000000000..62c683c70b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_details.go @@ -0,0 +1,62 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNetworkLoadBalancerDetails Configuration details to update a network load balancer. +// **Caution:** Oracle recommends that you avoid using any confidential information when you supply string values using the API. +type UpdateNetworkLoadBalancerDetails struct { + + // The user-friendly display name for the network load balancer, which does not have to be unique and can be changed. + // Avoid entering confidential information. + // Example: `example_network_load_balancer` + DisplayName *string `mandatory:"false" json:"displayName"` + + // This parameter can be enabled only if backends are compute OCIDs. When enabled, the skipSourceDestinationCheck parameter is automatically + // enabled on the load balancer VNIC, and packets are sent to the backend with the entire IP header intact. + IsPreserveSourceDestination *bool `mandatory:"false" json:"isPreserveSourceDestination"` + + // IP version associated with the NLB. + NlbIpVersion NlbIpVersionEnum `mandatory:"false" json:"nlbIpVersion,omitempty"` + + // Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Department": "Finance"}` + FreeformTags map[string]string `mandatory:"false" json:"freeformTags"` + + // Defined tags for this resource. Each key is predefined and scoped to a namespace. + // For more information, see Resource Tags (https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). + // Example: `{"Operations": {"CostCenter": "42"}}` + DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` +} + +func (m UpdateNetworkLoadBalancerDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNetworkLoadBalancerDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingNlbIpVersionEnum(string(m.NlbIpVersion)); !ok && m.NlbIpVersion != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for NlbIpVersion: %s. Supported values are: %s.", m.NlbIpVersion, strings.Join(GetNlbIpVersionEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_request_response.go similarity index 84% rename from vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_request_response.go rename to vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_request_response.go index 91f0dbfdad..b9e9243d08 100644 --- a/vendor/github.com/oracle/oci-go-sdk/v49/networkloadbalancer/update_network_load_balancer_request_response.go +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_load_balancer_request_response.go @@ -1,12 +1,14 @@ -// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved. +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. // This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. // Code generated. DO NOT EDIT. package networkloadbalancer import ( - "github.com/oracle/oci-go-sdk/v49/common" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" "net/http" + "strings" ) // UpdateNetworkLoadBalancerRequest wrapper for the UpdateNetworkLoadBalancer operation @@ -41,6 +43,10 @@ func (request UpdateNetworkLoadBalancerRequest) String() string { // HTTPRequest implements the OCIRequest interface func (request UpdateNetworkLoadBalancerRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) } @@ -56,6 +62,17 @@ func (request UpdateNetworkLoadBalancerRequest) RetryPolicy() *common.RetryPolic return request.RequestMetadata.RetryPolicy } +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNetworkLoadBalancerRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + // UpdateNetworkLoadBalancerResponse wrapper for the UpdateNetworkLoadBalancer operation type UpdateNetworkLoadBalancerResponse struct { diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_details.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_details.go new file mode 100644 index 0000000000..b51b67ea5b --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_details.go @@ -0,0 +1,48 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// UpdateNetworkSecurityGroupsDetails An object representing an updated list of network security groups that overwrites the existing list of network security groups. +// * If the network load balancer has no configured network security groups, then the network load balancer uses the network security groups in this list. +// * If the network load balancer has a list of configured network security groups, then this list replaces the existing list. +// * If the network load balancer has a list of configured network security groups and this list is empty, then the operation removes all of the network security groups associated with the network load balancer. +type UpdateNetworkSecurityGroupsDetails struct { + + // An array of network security group OCIDs (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) associated with the network load + // balancer. + // During the creation of the network load balancer, the service adds the new network load balancer to the specified network security groups. + // The benefits of associating the network load balancer with network security groups include: + // * Network security groups define network security rules to govern ingress and egress traffic for the network load balancer. + // * The network security rules of other resources can reference the network security groups associated with the network load balancer + // to ensure access. + NetworkSecurityGroupIds []string `mandatory:"false" json:"networkSecurityGroupIds"` +} + +func (m UpdateNetworkSecurityGroupsDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m UpdateNetworkSecurityGroupsDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_request_response.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_request_response.go new file mode 100644 index 0000000000..232a6ac639 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/update_network_security_groups_request_response.go @@ -0,0 +1,104 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "net/http" + "strings" +) + +// UpdateNetworkSecurityGroupsRequest wrapper for the UpdateNetworkSecurityGroups operation +type UpdateNetworkSecurityGroupsRequest struct { + + // The OCID (https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the network load balancer to update. + NetworkLoadBalancerId *string `mandatory:"true" contributesTo:"path" name:"networkLoadBalancerId"` + + // The details for updating the network security groups associated with the specified network load balancer. + UpdateNetworkSecurityGroupsDetails `contributesTo:"body"` + + // The unique Oracle-assigned identifier for the request. If you must contact Oracle about a + // particular request, then provide the request identifier. + OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + + // A token that uniquely identifies a request so that it can be retried in case of a timeout or + // server error without risk of rerunning that same action. Retry tokens expire after 24 + // hours but they can be invalidated before then due to conflicting operations. For example, if a resource + // has been deleted and purged from the system, then a retry of the original creation request + // might be rejected. + OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + + // For optimistic concurrency control. In the PUT or DELETE call + // for a resource, set the `if-match` parameter to the value of the + // etag from a previous GET or POST response for that resource. + // The resource will be updated or deleted only if the etag you + // provide matches the current etag value of the resource. + IfMatch *string `mandatory:"false" contributesTo:"header" name:"if-match"` + + // Metadata about the request. This information will not be transmitted to the service, but + // represents information that the SDK will consume to drive retry behavior. + RequestMetadata common.RequestMetadata +} + +func (request UpdateNetworkSecurityGroupsRequest) String() string { + return common.PointerString(request) +} + +// HTTPRequest implements the OCIRequest interface +func (request UpdateNetworkSecurityGroupsRequest) HTTPRequest(method, path string, binaryRequestBody *common.OCIReadSeekCloser, extraHeaders map[string]string) (http.Request, error) { + + _, err := request.ValidateEnumValue() + if err != nil { + return http.Request{}, err + } + return common.MakeDefaultHTTPRequestWithTaggedStructAndExtraHeaders(method, path, request, extraHeaders) +} + +// BinaryRequestBody implements the OCIRequest interface +func (request UpdateNetworkSecurityGroupsRequest) BinaryRequestBody() (*common.OCIReadSeekCloser, bool) { + + return nil, false + +} + +// RetryPolicy implements the OCIRetryableRequest interface. This retrieves the specified retry policy. +func (request UpdateNetworkSecurityGroupsRequest) RetryPolicy() *common.RetryPolicy { + return request.RequestMetadata.RetryPolicy +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (request UpdateNetworkSecurityGroupsRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// UpdateNetworkSecurityGroupsResponse wrapper for the UpdateNetworkSecurityGroups operation +type UpdateNetworkSecurityGroupsResponse struct { + + // The underlying http response + RawResponse *http.Response + + // Unique Oracle-assigned identifier for the asynchronous request. You can use this to query status of the asynchronous operation. + OpcWorkRequestId *string `presentIn:"header" name:"opc-work-request-id"` + + // Unique Oracle-assigned identifier for the request. If you must contact + // Oracle about a particular request, then provide the request identifier. + OpcRequestId *string `presentIn:"header" name:"opc-request-id"` +} + +func (response UpdateNetworkSecurityGroupsResponse) String() string { + return common.PointerString(response) +} + +// HTTPResponse implements the OCIResponse interface +func (response UpdateNetworkSecurityGroupsResponse) HTTPResponse() *http.Response { + return response.RawResponse +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request.go new file mode 100644 index 0000000000..65b8885570 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequest A description of work request status. +type WorkRequest struct { + + // Type of work request. + OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` + + // Status of current work request. + Status OperationStatusEnum `mandatory:"true" json:"status"` + + // The identifier of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment that contains the work request. Work requests are scoped to + // the same compartment as the resource that the work request affects. If the work request affects multiple resources, + // and those resources are not in the same compartment, then the service team must choose the primary + // resource whose compartment is to be used. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The resources affected by this work request. + Resources []WorkRequestResource `mandatory:"true" json:"resources"` + + // Percentage of the request completed. + PercentComplete *float32 `mandatory:"true" json:"percentComplete"` + + // The date and time that the request was created, as described in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // The date and time that the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), + // section 14.29. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The date and time that the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequest) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequest) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingOperationStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetOperationStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_collection.go new file mode 100644 index 0000000000..2bf21fe43e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestCollection Wrapper object for an array of WorkRequest objects. +type WorkRequestCollection struct { + + // An array of WorkRequest objects. + Items []WorkRequestSummary `mandatory:"false" json:"items"` +} + +func (m WorkRequestCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error.go new file mode 100644 index 0000000000..ea5bb444ba --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestError An error encountered while running a work request. +type WorkRequestError struct { + + // A machine-usable code for the error that occured. Error codes are listed here: + // (https://docs.cloud.oracle.com/Content/API/References/apierrors.htm) + Code *string `mandatory:"true" json:"code"` + + // A human-readable description of the issue encountered. + Message *string `mandatory:"true" json:"message"` + + // The time the error occured in the form of an RFC3339 formatted date-time string. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m WorkRequestError) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestError) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error_collection.go new file mode 100644 index 0000000000..edc1e551ce --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_error_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestErrorCollection Wrapper object for an array of WorkRequestErrorSummary objects. +type WorkRequestErrorCollection struct { + + // An array of WorkRequestErrorSummary objects. + Items []WorkRequestError `mandatory:"false" json:"items"` +} + +func (m WorkRequestErrorCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestErrorCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry.go new file mode 100644 index 0000000000..8876c1f3f9 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry.go @@ -0,0 +1,42 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntry A log message from the running of a work request. +type WorkRequestLogEntry struct { + + // Human-readable log message. + Message *string `mandatory:"true" json:"message"` + + // The time the log message was written displayed as an RFC3339 formatted date-time string. + Timestamp *common.SDKTime `mandatory:"true" json:"timestamp"` +} + +func (m WorkRequestLogEntry) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestLogEntry) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry_collection.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry_collection.go new file mode 100644 index 0000000000..926ce9502e --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_log_entry_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestLogEntryCollection Wrapper object for an array of WorkRequestLogEntry objects. +type WorkRequestLogEntryCollection struct { + + // An array of WorkRequestLogEntry objects. + Items []WorkRequestLogEntry `mandatory:"false" json:"items"` +} + +func (m WorkRequestLogEntryCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestLogEntryCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_resource.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_resource.go new file mode 100644 index 0000000000..85272d2279 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_resource.go @@ -0,0 +1,54 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestResource A resource that a work request creates or on which the work request operates. +type WorkRequestResource struct { + + // The resource type that the work request affects. + EntityType *string `mandatory:"true" json:"entityType"` + + // The way in which this resource is affected by the work tracked in the work request. + // A resource being created, updated, or deleted remains in the IN_PROGRESS state until + // work is complete for that resource, at which point the resource transitions to CREATED, UPDATED, + // or DELETED, respectively. + ActionType ActionTypeEnum `mandatory:"true" json:"actionType"` + + // The identifier of the resource the work request affects. + Identifier *string `mandatory:"true" json:"identifier"` + + // The URI path on which the user can perform a GET request to access the resource metadata. + EntityUri *string `mandatory:"false" json:"entityUri"` +} + +func (m WorkRequestResource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestResource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingActionTypeEnum(string(m.ActionType)); !ok && m.ActionType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ActionType: %s. Supported values are: %s.", m.ActionType, strings.Join(GetActionTypeEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_summary.go b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_summary.go new file mode 100644 index 0000000000..fc72021f40 --- /dev/null +++ b/vendor/github.com/oracle/oci-go-sdk/v65/networkloadbalancer/work_request_summary.go @@ -0,0 +1,74 @@ +// Copyright (c) 2016, 2018, 2022, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// NetworkLoadBalancer API +// +// This describes the network load balancer API. +// + +package networkloadbalancer + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// WorkRequestSummary Summary of work request object. +type WorkRequestSummary struct { + + // Type of work request. + OperationType OperationTypeEnum `mandatory:"true" json:"operationType"` + + // Status of current work request. + Status OperationStatusEnum `mandatory:"true" json:"status"` + + // The identifier of the work request. + Id *string `mandatory:"true" json:"id"` + + // The OCID of the compartment that contains the work request. Work requests are scoped to + // the same compartment as the resource that the work request affects. If the work request affects multiple resources, + // and those resources are not in the same compartment, then the service team must choose the primary + // resource whose compartment is to be used. + CompartmentId *string `mandatory:"true" json:"compartmentId"` + + // The resources affected by this work request. + Resources []WorkRequestResource `mandatory:"true" json:"resources"` + + // Percentage of the request completed. + PercentComplete *float32 `mandatory:"true" json:"percentComplete"` + + // The date and time that the request was created, as described in + // RFC 3339 (https://tools.ietf.org/rfc/rfc3339), section 14.29. + TimeAccepted *common.SDKTime `mandatory:"true" json:"timeAccepted"` + + // The date and time that the request was started, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339), + // section 14.29. + TimeStarted *common.SDKTime `mandatory:"false" json:"timeStarted"` + + // The date and time that the object was finished, as described in RFC 3339 (https://tools.ietf.org/rfc/rfc3339). + TimeFinished *common.SDKTime `mandatory:"false" json:"timeFinished"` +} + +func (m WorkRequestSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m WorkRequestSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + if _, ok := GetMappingOperationTypeEnum(string(m.OperationType)); !ok && m.OperationType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for OperationType: %s. Supported values are: %s.", m.OperationType, strings.Join(GetOperationTypeEnumStringValues(), ","))) + } + if _, ok := GetMappingOperationStatusEnum(string(m.Status)); !ok && m.Status != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for Status: %s. Supported values are: %s.", m.Status, strings.Join(GetOperationStatusEnumStringValues(), ","))) + } + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/vendor/github.com/sony/gobreaker/.travis.yml b/vendor/github.com/sony/gobreaker/.travis.yml deleted file mode 100644 index 1531637b65..0000000000 --- a/vendor/github.com/sony/gobreaker/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -language: go -go: - - 1.13.x - - 1.14.x - - 1.15.x -sudo: false -before_install: - - go get -u golang.org/x/lint/golint - - go get github.com/axw/gocov/gocov - - go get github.com/mattn/goveralls -script: - - test -z "`gofmt -l .`" - - test -z "`golint ./...`" - - $GOPATH/bin/goveralls -service=travis-ci - - cd example && go build -o http_breaker && ./http_breaker diff --git a/vendor/github.com/sony/gobreaker/README.md b/vendor/github.com/sony/gobreaker/README.md index ce7d7a77e4..bbc23769d6 100644 --- a/vendor/github.com/sony/gobreaker/README.md +++ b/vendor/github.com/sony/gobreaker/README.md @@ -2,8 +2,6 @@ gobreaker ========= [![GoDoc](https://godoc.org/github.com/sony/gobreaker?status.svg)](http://godoc.org/github.com/sony/gobreaker) -[![Build Status](https://travis-ci.org/sony/gobreaker.svg?branch=master)](https://travis-ci.org/sony/gobreaker) -[![Coverage Status](https://coveralls.io/repos/sony/gobreaker/badge.svg?branch=master&service=github)](https://coveralls.io/github/sony/gobreaker?branch=master) [gobreaker][repo-url] implements the [Circuit Breaker pattern](https://msdn.microsoft.com/en-us/library/dn589784.aspx) in Go. @@ -34,6 +32,7 @@ type Settings struct { Timeout time.Duration ReadyToTrip func(counts Counts) bool OnStateChange func(name string, from State, to State) + IsSuccessful func(err error) bool } ``` @@ -58,6 +57,11 @@ type Settings struct { - `OnStateChange` is called whenever the state of `CircuitBreaker` changes. +- `IsSuccessful` is called with the error returned from a request. + If `IsSuccessful` returns true, the error is counted as a success. + Otherwise the error is counted as a failure. + If `IsSuccessful` is nil, default `IsSuccessful` is used, which returns false for all non-nil errors. + The struct `Counts` holds the numbers of requests and their successes/failures: ```go diff --git a/vendor/github.com/sony/gobreaker/gobreaker.go b/vendor/github.com/sony/gobreaker/gobreaker.go index 5a464198e4..7503a278b6 100644 --- a/vendor/github.com/sony/gobreaker/gobreaker.go +++ b/vendor/github.com/sony/gobreaker/gobreaker.go @@ -99,9 +99,9 @@ func (c *Counts) clear() { // // OnStateChange is called whenever the state of the CircuitBreaker changes. // -// IsSuccessful is called with the error returned from the request, if not nil. -// If IsSuccessful returns false, the error is considered a failure, and is counted towards tripping the circuit breaker. -// If IsSuccessful returns true, the error will be returned to the caller without tripping the circuit breaker. +// IsSuccessful is called with the error returned from a request. +// If IsSuccessful returns true, the error is counted as a success. +// Otherwise the error is counted as a failure. // If IsSuccessful is nil, default IsSuccessful is used, which returns false for all non-nil errors. type Settings struct { Name string diff --git a/vendor/modules.txt b/vendor/modules.txt index dec40669d8..6f58e71573 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,7 +1,7 @@ # bitbucket.oci.oraclecorp.com/oke/bmc-go-sdk v0.0.0-20180119173458-fe578152e621 ## explicit bitbucket.oci.oraclecorp.com/oke/bmc-go-sdk -# bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20211021080439-0f28edfc51d4 +# bitbucket.oci.oraclecorp.com/oke/oke-common v1.0.1-0.20220429183118-f0129d710185 ## explicit; go 1.12 bitbucket.oci.oraclecorp.com/oke/oke-common/protobuf bitbucket.oci.oraclecorp.com/oke/oke-common/resourceprincipals @@ -81,6 +81,9 @@ github.com/go-openapi/jsonreference # github.com/go-openapi/swag v0.21.1 ## explicit; go 1.11 github.com/go-openapi/swag +# github.com/gofrs/flock v0.8.1 +## explicit +github.com/gofrs/flock # github.com/gogo/protobuf v1.3.2 ## explicit; go 1.15 github.com/gogo/protobuf/gogoproto @@ -277,17 +280,17 @@ github.com/opencontainers/go-digest github.com/opencontainers/selinux/go-selinux github.com/opencontainers/selinux/pkg/pwalk github.com/opencontainers/selinux/pkg/pwalkdir -# github.com/oracle/oci-go-sdk/v49 v49.0.0-00010101000000-000000000000 => bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v49 v49.2.0-p +# github.com/oracle/oci-go-sdk/v65 v65.2.0 => bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v65 v65.18.1-p.0.20220831194506-202dd70b5937 ## explicit; go 1.13 -github.com/oracle/oci-go-sdk/v49/common -github.com/oracle/oci-go-sdk/v49/common/auth -github.com/oracle/oci-go-sdk/v49/containerengine -github.com/oracle/oci-go-sdk/v49/core -github.com/oracle/oci-go-sdk/v49/filestorage -github.com/oracle/oci-go-sdk/v49/identity -github.com/oracle/oci-go-sdk/v49/loadbalancer -github.com/oracle/oci-go-sdk/v49/monitoring -github.com/oracle/oci-go-sdk/v49/networkloadbalancer +github.com/oracle/oci-go-sdk/v65/common +github.com/oracle/oci-go-sdk/v65/common/auth +github.com/oracle/oci-go-sdk/v65/containerengine +github.com/oracle/oci-go-sdk/v65/core +github.com/oracle/oci-go-sdk/v65/filestorage +github.com/oracle/oci-go-sdk/v65/identity +github.com/oracle/oci-go-sdk/v65/loadbalancer +github.com/oracle/oci-go-sdk/v65/monitoring +github.com/oracle/oci-go-sdk/v65/networkloadbalancer # github.com/pelletier/go-toml v1.9.3 ## explicit; go 1.12 github.com/pelletier/go-toml @@ -321,7 +324,7 @@ github.com/prometheus/procfs/internal/util # github.com/sirupsen/logrus v1.8.1 ## explicit; go 1.13 github.com/sirupsen/logrus -# github.com/sony/gobreaker v0.4.2-0.20210216022020-dd874f9dd33b +# github.com/sony/gobreaker v0.5.0 ## explicit; go 1.12 github.com/sony/gobreaker # github.com/spf13/afero v1.6.0 @@ -1470,7 +1473,7 @@ sigs.k8s.io/structured-merge-diff/v4/value ## explicit; go 1.12 sigs.k8s.io/yaml # github.com/docker/docker => github.com/docker/engine v0.0.0-20181106193140-f5749085e9cb -# github.com/oracle/oci-go-sdk/v49 => bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v49 v49.2.0-p +# github.com/oracle/oci-go-sdk/v65 => bitbucket.oci.oraclecorp.com/sdk/oci-go-sdk/v65 v65.18.1-p.0.20220831194506-202dd70b5937 # github.com/prometheus/client_golang => github.com/prometheus/client_golang v1.11.0 # google.golang.org/grpc => google.golang.org/grpc v1.38.0 # k8s.io/api => k8s.io/api v0.24.1 From da70aafdfdf9525873339a02557b0ea8adb6be37 Mon Sep 17 00:00:00 2001 From: Akshay Kumar Date: Tue, 27 Sep 2022 19:55:58 -0700 Subject: [PATCH 2/2] SKE node, node_info, node_lifecycle controller changes --- hack/existing-cluster-dev0-env-template.sh | 4 + pkg/cloudprovider/providers/oci/ccm.go | 24 ++- pkg/cloudprovider/providers/oci/instances.go | 120 +++++++++-- .../providers/oci/instances_test.go | 203 +++++++++++++++--- .../providers/oci/load_balancer.go | 4 +- .../providers/oci/load_balancer_spec.go | 2 +- .../providers/oci/node_info_controller.go | 130 +++++++---- .../oci/node_info_controller_test.go | 109 +++++++++- pkg/cloudprovider/providers/oci/util.go | 6 +- pkg/cloudprovider/providers/oci/util_test.go | 2 +- pkg/cloudprovider/providers/oci/zones.go | 43 +++- pkg/cloudprovider/providers/oci/zones_test.go | 35 ++- pkg/csi/driver/controller_test.go | 11 + pkg/flexvolume/block/driver.go | 2 +- pkg/oci/client/client.go | 47 +++- pkg/oci/client/container_engine.go | 38 ++++ pkg/oci/client/metrics.go | 1 + pkg/volume/provisioner/block/block_test.go | 11 + pkg/volume/provisioner/fss/fss_test.go | 11 + test/e2e/cloud-provider-oci/instances.go | 71 ++++++ test/e2e/cloud-provider-oci/zones.go | 32 +++ .../e2e/framework/cloud_provider_framework.go | 26 ++- 22 files changed, 789 insertions(+), 143 deletions(-) create mode 100644 pkg/oci/client/container_engine.go diff --git a/hack/existing-cluster-dev0-env-template.sh b/hack/existing-cluster-dev0-env-template.sh index bc389dc7da..72b73264df 100755 --- a/hack/existing-cluster-dev0-env-template.sh +++ b/hack/existing-cluster-dev0-env-template.sh @@ -56,3 +56,7 @@ export SCOPE="BOTH" # FSS volume handle # format is FileSystemOCID:serverIP:path export FSS_VOLUME_HANDLE="ocid1.filesystem.oc1.iad.aaaaaaaaaaa5wj2infqwillqojxwiotjmfsc2ylefuzqaaaa:10.0.10.104:/FileSystem-20210820-0454-50" + +# For SKE node, node_info, node_lifecycle controller tests against PDE +# To setup PDE and point your localhost:25000 to the PDE CP API refer: Refer: https://bitbucket.oci.oraclecorp.com/projects/OKE/repos/oke-control-plane/browse/personal-environments/README.md +# export CE_ENDPOINT_OVERRIDE="http://localhost:25000" diff --git a/pkg/cloudprovider/providers/oci/ccm.go b/pkg/cloudprovider/providers/oci/ccm.go index e5dbc1ba34..9bd11585fa 100644 --- a/pkg/cloudprovider/providers/oci/ccm.go +++ b/pkg/cloudprovider/providers/oci/ccm.go @@ -45,6 +45,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/instance/metadata" "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" ) @@ -79,9 +80,10 @@ type CloudProvider struct { securityListManagerFactory securityListManagerFactory config *providercfg.Config - logger *zap.SugaredLogger - instanceCache cache.Store - metricPusher *metrics.MetricPusher + logger *zap.SugaredLogger + instanceCache cache.Store + virtualNodeCache cache.Store + metricPusher *metrics.MetricPusher } func (cp *CloudProvider) InstancesV2() (cloudprovider.InstancesV2, bool) { @@ -144,11 +146,12 @@ func NewCloudProvider(config *providercfg.Config) (cloudprovider.Interface, erro } return &CloudProvider{ - client: c, - config: config, - logger: logger.Sugar(), - instanceCache: cache.NewTTLStore(instanceCacheKeyFn, time.Duration(24)*time.Hour), - metricPusher: metricPusher, + client: c, + config: config, + logger: logger.Sugar(), + instanceCache: cache.NewTTLStore(instanceCacheKeyFn, time.Duration(24)*time.Hour), + virtualNodeCache: cache.NewTTLStore(virtualNodeCacheKeyFn, time.Duration(24)*time.Hour), + metricPusher: metricPusher, }, nil } @@ -184,6 +187,7 @@ func (cp *CloudProvider) Initialize(clientBuilder cloudprovider.ControllerClient cp, cp.logger, cp.instanceCache, + cp.virtualNodeCache, cp.client) nodeInformer := factory.Core().V1().Nodes() @@ -268,6 +272,10 @@ func instanceCacheKeyFn(obj interface{}) (string, error) { return *obj.(*core.Instance).Id, nil } +func virtualNodeCacheKeyFn(obj interface{}) (string, error) { + return *obj.(*containerengine.VirtualNode).Id, nil +} + func StartOciServiceControllerWrapper(initContext cloudControllerManager.ControllerInitContext, completedConfig *cloudcontrollerconfig.CompletedConfig, cloud cloudprovider.Interface) cloudControllerManager.InitFunc { return func(ctx context.Context, controllerContext genericcontrollermanager.ControllerContext) (controller.Interface, bool, error) { return startOciServiceController(ctx, initContext, completedConfig, cloud) diff --git a/pkg/cloudprovider/providers/oci/instances.go b/pkg/cloudprovider/providers/oci/instances.go index e99207f2d9..251c7dcb3d 100644 --- a/pkg/cloudprovider/providers/oci/instances.go +++ b/pkg/cloudprovider/providers/oci/instances.go @@ -19,14 +19,19 @@ import ( "fmt" "net" - "github.com/oracle/oci-go-sdk/v65/core" - "k8s.io/apimachinery/pkg/labels" - - "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/pkg/errors" api "k8s.io/api/core/v1" + "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/types" cloudprovider "k8s.io/cloud-provider" + + "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + "github.com/oracle/oci-go-sdk/v65/containerengine" + "github.com/oracle/oci-go-sdk/v65/core" +) + +const ( + VirtualNodePoolIdAnnotation = "oci.oraclecloud.com/virtual-node-pool-id" ) var _ cloudprovider.Instances = &CloudProvider{} @@ -50,7 +55,7 @@ func (cp *CloudProvider) getCompartmentIDByInstanceID(instanceID string) (string return "", errors.Wrap(err, "error listing all the nodes using node informer") } for _, node := range nodeList { - providerID, err := MapProviderIDToInstanceID(node.Spec.ProviderID) + providerID, err := MapProviderIDToResourceID(node.Spec.ProviderID) if err != nil { return "", errors.New("Failed to map providerID to instanceID") } @@ -146,14 +151,18 @@ func (cp *CloudProvider) NodeAddresses(ctx context.Context, name types.NodeName) // nodeaddresses are being queried. i.e. local metadata services cannot be used // in this method to obtain nodeaddresses. func (cp *CloudProvider) NodeAddressesByProviderID(ctx context.Context, providerID string) ([]api.NodeAddress, error) { - cp.logger.With("instanceID", providerID).Debug("Getting node addresses by provider id") + cp.logger.With("resourceID", providerID).Debug("Getting node addresses by provider id") - instanceID, err := MapProviderIDToInstanceID(providerID) + resourceID, err := MapProviderIDToResourceID(providerID) if err != nil { - return nil, errors.Wrap(err, "MapProviderIDToInstanceID") + return nil, errors.Wrap(err, "MapProviderIDToResourceOCID") } - return cp.extractNodeAddresses(ctx, instanceID) + if IsVirtualNodeId(resourceID) { + return []api.NodeAddress{}, nil + } + + return cp.extractNodeAddresses(ctx, resourceID) } // InstanceID returns the cloud provider ID of the node with the specified NodeName. @@ -191,13 +200,19 @@ func (cp *CloudProvider) InstanceType(ctx context.Context, name types.NodeName) // InstanceTypeByProviderID returns the type of the specified instance. func (cp *CloudProvider) InstanceTypeByProviderID(ctx context.Context, providerID string) (string, error) { - cp.logger.With("instanceID", providerID).Debug("Getting instance type by provider id") + cp.logger.With("resourceID", providerID).Debug("Getting instance type by provider id") - instanceID, err := MapProviderIDToInstanceID(providerID) + resourceID, err := MapProviderIDToResourceID(providerID) if err != nil { - return "", errors.Wrap(err, "MapProviderIDToInstanceID") + return "", errors.Wrap(err, "MapProviderIDToResourceOCID") } - item, exists, err := cp.instanceCache.GetByKey(instanceID) + + if IsVirtualNodeId(resourceID) { + // Virtual nodes don't have an instance type, return empty string + return "", nil + } + + item, exists, err := cp.instanceCache.GetByKey(resourceID) if err != nil { return "", errors.Wrap(err, "error fetching instance from instanceCache, will retry") } @@ -205,7 +220,7 @@ func (cp *CloudProvider) InstanceTypeByProviderID(ctx context.Context, providerI return *item.(*core.Instance).Shape, nil } cp.logger.Debug("Unable to find the instance information from instanceCache. Calling OCI API") - inst, err := cp.client.Compute().GetInstance(ctx, instanceID) + inst, err := cp.client.Compute().GetInstance(ctx, resourceID) if err != nil { return "", errors.Wrap(err, "GetInstance") } @@ -232,13 +247,18 @@ func (cp *CloudProvider) CurrentNodeName(ctx context.Context, hostname string) ( // provider id still is running. If false is returned with no error, the // instance will be immediately deleted by the cloud controller manager. func (cp *CloudProvider) InstanceExistsByProviderID(ctx context.Context, providerID string) (bool, error) { - //Please do not try to optimise it by using InstanceCache because we prefer correctness over efficiency here - cp.logger.With("instanceID", providerID).Debug("Checking instance exists by provider id") - instanceID, err := MapProviderIDToInstanceID(providerID) + //Please do not try to optimise it by using Cache because we prefer correctness over efficiency here + cp.logger.With("resourceID", providerID).Debug("Checking instance exists by provider id") + resourceID, err := MapProviderIDToResourceID(providerID) if err != nil { return false, err } - instance, err := cp.client.Compute().GetInstance(ctx, instanceID) + + if IsVirtualNodeId(resourceID) { + return cp.virtualNodeExistsByResourceID(ctx, resourceID) + } + + instance, err := cp.client.Compute().GetInstance(ctx, resourceID) if client.IsNotFound(err) { return false, nil } @@ -252,13 +272,18 @@ func (cp *CloudProvider) InstanceExistsByProviderID(ctx context.Context, provide // InstanceShutdownByProviderID returns true if the instance is shutdown in cloudprovider. func (cp *CloudProvider) InstanceShutdownByProviderID(ctx context.Context, providerID string) (bool, error) { //Please do not try to optimise it by using InstanceCache because we prefer correctness over efficiency here - cp.logger.With("instanceID", providerID).Debug("Checking instance is stopped by provider id") - instanceID, err := MapProviderIDToInstanceID(providerID) + cp.logger.With("resourceID", providerID).Debug("Checking instance is stopped by provider id") + resourceID, err := MapProviderIDToResourceID(providerID) if err != nil { return false, err } - instance, err := cp.client.Compute().GetInstance(ctx, instanceID) + if IsVirtualNodeId(resourceID) { + // This does not apply to virtual nodes + return false, nil + } + + instance, err := cp.client.Compute().GetInstance(ctx, resourceID) if err != nil { return false, err } @@ -280,3 +305,56 @@ func (cp *CloudProvider) getCompartmentIDByNodeName(nodeName string) (string, er cp.logger.Debug("CompartmentID annotation is not present") return "", errors.New("compartmentID annotation missing in the node. Would retry") } + +func (cp *CloudProvider) getVirtualNodePoolIdByVirtualNodeId(virtualNodeId string) (string, error) { + nodeList, err := cp.NodeLister.List(labels.Everything()) + if err != nil { + return "", errors.Wrap(err, "error listing nodes using node informer") + } + for _, node := range nodeList { + resourceID, err := MapProviderIDToResourceID(node.Spec.ProviderID) + if err != nil { + // If providerId is empty ignore this node + continue + } + if virtualNodeId == resourceID { + if virtualNodePoolId, ok := node.Annotations[VirtualNodePoolIdAnnotation]; ok && virtualNodePoolId != "" { + return virtualNodePoolId, nil + } + } + } + return "", errors.Errorf("could not get virtualNodePoolId for virtualNodeId %s, annotation missing", virtualNodeId) +} + +func (cp *CloudProvider) virtualNodeExistsByResourceID(ctx context.Context, resourceID string) (bool, error) { + item, exists, err := cp.virtualNodeCache.GetByKey(resourceID) + if err != nil { + return false, errors.Wrap(err, "Error fetching virtual node from virtualNodeCache, will retry") + } + + var virtualNodePoolId string + if exists { + virtualNodePoolId = *item.(*containerengine.VirtualNode).VirtualNodePoolId + } else { + virtualNodePoolId, err = cp.getVirtualNodePoolIdByVirtualNodeId(resourceID) + if err != nil { + return false, err + } + } + + virtualNode, err := cp.client.ContainerEngine().GetVirtualNode(ctx, resourceID, virtualNodePoolId) + if client.IsNotFound(err) { + return false, nil + } + if err != nil { + return false, err + } + + if !exists { + if err := cp.virtualNodeCache.Add(virtualNode); err != nil { + return false, errors.Wrap(err, "Failed to add virtual node in virtualNodeCache") + } + } + + return !client.IsVirtualNodeInTerminalState(virtualNode), nil +} diff --git a/pkg/cloudprovider/providers/oci/instances_test.go b/pkg/cloudprovider/providers/oci/instances_test.go index 55240faa3d..0beb340e3b 100644 --- a/pkg/cloudprovider/providers/oci/instances_test.go +++ b/pkg/cloudprovider/providers/oci/instances_test.go @@ -20,20 +20,21 @@ import ( "reflect" "testing" + "go.uber.org/zap" + v1 "k8s.io/api/core/v1" + v1discovery "k8s.io/api/discovery/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/labels" "k8s.io/apimachinery/pkg/types" + v1discoverylisters "k8s.io/client-go/listers/discovery/v1" providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" "github.com/oracle/oci-go-sdk/v65/filestorage" "github.com/oracle/oci-go-sdk/v65/identity" - "go.uber.org/zap" - v1 "k8s.io/api/core/v1" - v1discovery "k8s.io/api/discovery/v1" - "k8s.io/apimachinery/pkg/labels" - v1discoverylisters "k8s.io/client-go/listers/discovery/v1" ) var ( @@ -180,6 +181,18 @@ var ( }, } + virtualNodes = map[string]*containerengine.VirtualNode{ + "ocid1.virtualnode.oc1.iad.default": { + Id: common.String("ocid1.virtualnode.oc1.iad.default"), + VirtualNodePoolId: common.String("vnpId"), + }, + "ocid1.virtualnode.oc1.iad.zonetest": { + Id: common.String("ocid1.virtualnode.oc1.iad.zonetest"), + VirtualNodePoolId: common.String("vnpId"), + AvailabilityDomain: common.String("PHX-AD-1"), + }, + } + nodeList = map[string]*v1.Node{ "default": { ObjectMeta: metav1.ObjectMeta{ @@ -238,10 +251,35 @@ var ( }, }, "virtualNodeDefault": { + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + VirtualNodePoolIdAnnotation: "vnpId", + }, + }, Spec: v1.NodeSpec{ ProviderID: "ocid1.virtualnode.oc1.iad.default", }, }, + "virtualNodeZoneTest": { + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + VirtualNodePoolIdAnnotation: "vnpId", + }, + }, + Spec: v1.NodeSpec{ + ProviderID: "ocid1.virtualnode.oc1.iad.zonetest", + }, + }, + "virtualNodeNonCache": { + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + VirtualNodePoolIdAnnotation: "vnpId", + }, + }, + Spec: v1.NodeSpec{ + ProviderID: "ocid1.virtualnode.oc1.iad.noncache", + }, + }, } podList = map[string]*v1.Pod{ @@ -288,7 +326,7 @@ var ( }, } - ready = true + ready = true endpointSliceList = map[string]*v1discovery.EndpointSlice{ "endpointSliceVirtual": { ObjectMeta: metav1.ObjectMeta{ @@ -303,7 +341,7 @@ var ( Name: "virtualPod1", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.9"}, }, @@ -313,7 +351,7 @@ var ( Name: "virtualPod2", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.10"}, }, @@ -332,7 +370,7 @@ var ( Name: "regularPod1", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.19"}, }, @@ -342,7 +380,7 @@ var ( Name: "regularPod2", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.20"}, }, @@ -362,7 +400,7 @@ var ( Name: "virtualPod1", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.9"}, }, @@ -372,7 +410,7 @@ var ( Name: "regularPod1", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.19"}, }, @@ -382,7 +420,7 @@ var ( Name: "virtualPod2", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.10"}, }, @@ -392,7 +430,7 @@ var ( Name: "regularPod2", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.20"}, }, @@ -411,7 +449,7 @@ var ( Name: "unknown", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.100"}, }, @@ -430,7 +468,7 @@ var ( Name: "virtualPod1", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.10"}, }, @@ -440,7 +478,7 @@ var ( Name: "virtualPod2", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, Addresses: []string{"0.0.0.9"}, }, @@ -456,22 +494,22 @@ var ( { TargetRef: &v1.ObjectReference{ Kind: "Pod", - Name: "virtualPod2", + Name: "virtualPod1", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, - Addresses: []string{"0.0.0.9"}, + Addresses: []string{"0.0.0.10"}, }, { TargetRef: &v1.ObjectReference{ Kind: "Pod", - Name: "virtualPod1", + Name: "virtualPod2", }, Conditions: v1discovery.EndpointConditions{ - Ready: &ready, + Ready: &ready, }, - Addresses: []string{"0.0.0.10"}, + Addresses: []string{"0.0.0.9"}, }, }, }, @@ -579,6 +617,10 @@ func (MockOCIClient) Identity() client.IdentityInterface { return &MockIdentityClient{} } +func (MockOCIClient) ContainerEngine() client.ContainerEngineInterface { + return &MockContainerEngineClient{} +} + // MockComputeClient mocks Compute client implementation type MockComputeClient struct{} @@ -699,7 +741,7 @@ func (c *MockVirtualNetworkClient) GetPublicIpByIpAddress(ctx context.Context, i return nil, nil } -//// MockFileStorageClient mocks FileStorage client implementation. +// MockFileStorageClient mocks FileStorage client implementation. type MockLoadBalancerClient struct{} func (c *MockLoadBalancerClient) CreateLoadBalancer(ctx context.Context, details *client.GenericCreateLoadBalancerDetails) (string, error) { @@ -911,6 +953,60 @@ func (m mockInstanceCache) Resync() error { return nil } +type mockVirtualNodeCache struct{} + +func (m mockVirtualNodeCache) Add(obj interface{}) error { + return nil +} + +func (m mockVirtualNodeCache) Update(obj interface{}) error { + return nil +} + +func (m mockVirtualNodeCache) Delete(obj interface{}) error { + return nil +} + +func (m mockVirtualNodeCache) List() []interface{} { + return nil +} + +func (m mockVirtualNodeCache) ListKeys() []string { + return nil +} + +func (m mockVirtualNodeCache) Get(obj interface{}) (item interface{}, exists bool, err error) { + return virtualNodes["default"], true, nil +} + +func (m mockVirtualNodeCache) GetByKey(key string) (item interface{}, exists bool, err error) { + if virtualNode, ok := virtualNodes[key]; ok { + return virtualNode, true, nil + } + return nil, false, nil +} + +func (m mockVirtualNodeCache) Replace(i []interface{}, s string) error { + return nil +} + +func (m mockVirtualNodeCache) Resync() error { + return nil +} + +type MockContainerEngineClient struct{} + +func (m MockContainerEngineClient) GetVirtualNode(ctx context.Context, vnId, vnpId string) (*containerengine.VirtualNode, error) { + if virtualNode, ok := virtualNodes[vnId]; ok { + return virtualNode, nil + } + return &containerengine.VirtualNode{ + Id: &vnId, + VirtualNodePoolId: &vnpId, + AvailabilityDomain: common.String("PHX-AD-1"), + }, nil +} + func TestExtractNodeAddresses(t *testing.T) { testCases := []struct { name string @@ -1119,6 +1215,18 @@ func TestInstanceTypeByProviderID(t *testing.T) { out: "VM.Standard1.2", err: nil, }, + { + name: "provider id for virtual node", + in: "ocid1.virtualnode.oc1.iad.default", + out: "", + err: nil, + }, + { + name: "provider id with provider prefix for virtual node", + in: providerPrefix + "ocid1.virtualnode.oc1.iad.default", + out: "", + err: nil, + }, } cp := &CloudProvider{ @@ -1167,6 +1275,18 @@ func TestNodeAddressesByProviderID(t *testing.T) { }, err: nil, }, + { + name: "provider id for virtual node", + in: "ocid1.virtualnode.oc1.iad.default", + out: []v1.NodeAddress{}, + err: nil, + }, + { + name: "provider id with provider prefix for virtual node", + in: providerPrefix + "ocid1.virtualnode.oc1.iad.default", + out: []v1.NodeAddress{}, + err: nil, + }, } cp := &CloudProvider{ @@ -1215,14 +1335,27 @@ func TestInstanceExistsByProviderID(t *testing.T) { out: true, err: nil, }, + { + name: "provider id for virtual node and in cache", + in: "ocid1.virtualnode.oc1.iad.default", + out: true, + err: nil, + }, + { + name: "provider id for virtual node with provider prefix and not in cache", + in: providerPrefix + "ocid1.virtualnode.oc1.iad.noncache", + out: true, + err: nil, + }, } cp := &CloudProvider{ - NodeLister: &mockNodeLister{}, - client: MockOCIClient{}, - config: &providercfg.Config{CompartmentID: "testCompartment"}, - logger: zap.S(), - instanceCache: &mockInstanceCache{}, + NodeLister: &mockNodeLister{}, + client: MockOCIClient{}, + config: &providercfg.Config{CompartmentID: "testCompartment"}, + logger: zap.S(), + instanceCache: &mockInstanceCache{}, + virtualNodeCache: &mockVirtualNodeCache{}, } for _, tt := range testCases { @@ -1263,6 +1396,18 @@ func TestInstanceShutdownByProviderID(t *testing.T) { out: false, err: nil, }, + { + name: "provider id for virtual node", + in: "ocid1.virtualnode.oc1.iad.default", + out: false, + err: nil, + }, + { + name: "provider id with provider prefix for virtual node", + in: providerPrefix + "ocid1.virtualnode.oc1.iad.default", + out: false, + err: nil, + }, } cp := &CloudProvider{ diff --git a/pkg/cloudprovider/providers/oci/load_balancer.go b/pkg/cloudprovider/providers/oci/load_balancer.go index b7fbc92a8c..4243a8bf30 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer.go +++ b/pkg/cloudprovider/providers/oci/load_balancer.go @@ -181,9 +181,9 @@ func getSubnetsForNodes(ctx context.Context, nodes []*v1.Node, client client.Int return nil, errors.Errorf(".spec.providerID was not present on node %q", node.Name) } - id, err := MapProviderIDToInstanceID(node.Spec.ProviderID) + id, err := MapProviderIDToResourceID(node.Spec.ProviderID) if err != nil { - return nil, errors.Wrap(err, "MapProviderIDToInstanceID") + return nil, errors.Wrap(err, "MapProviderIDToResourceID") } compartmentID, ok := node.Annotations[CompartmentIDAnnotation] diff --git a/pkg/cloudprovider/providers/oci/load_balancer_spec.go b/pkg/cloudprovider/providers/oci/load_balancer_spec.go index c7b831f81e..a8effa4bc3 100644 --- a/pkg/cloudprovider/providers/oci/load_balancer_spec.go +++ b/pkg/cloudprovider/providers/oci/load_balancer_spec.go @@ -569,7 +569,7 @@ func getBackends(logger *zap.SugaredLogger, provisionedNodes []*v1.Node, virtual logger.Warnf("Node %q has an empty Internal IP address.", node.Name) continue } - instanceID, err := MapProviderIDToInstanceID(node.Spec.ProviderID) + instanceID, err := MapProviderIDToResourceID(node.Spec.ProviderID) if err != nil { logger.Warnf("Node %q has an empty ProviderID.", node.Name) continue diff --git a/pkg/cloudprovider/providers/oci/node_info_controller.go b/pkg/cloudprovider/providers/oci/node_info_controller.go index 03fae4e1b9..0727763c01 100644 --- a/pkg/cloudprovider/providers/oci/node_info_controller.go +++ b/pkg/cloudprovider/providers/oci/node_info_controller.go @@ -19,6 +19,7 @@ import ( "fmt" "time" + "github.com/pkg/errors" "go.uber.org/zap" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -36,6 +37,7 @@ import ( "k8s.io/klog" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" ) @@ -48,14 +50,15 @@ const ( // NodeInfoController helps compute workers in the cluster type NodeInfoController struct { - nodeInformer coreinformers.NodeInformer - kubeClient clientset.Interface - recorder record.EventRecorder - cloud *CloudProvider - queue workqueue.RateLimitingInterface - logger *zap.SugaredLogger - instanceCache cache.Store - ociClient client.Interface + nodeInformer coreinformers.NodeInformer + kubeClient clientset.Interface + recorder record.EventRecorder + cloud *CloudProvider + queue workqueue.RateLimitingInterface + logger *zap.SugaredLogger + instanceCache cache.Store + virtualNodeCache cache.Store + ociClient client.Interface } // NewNodeInfoController creates a NodeInfoController object @@ -65,6 +68,7 @@ func NewNodeInfoController( cloud *CloudProvider, logger *zap.SugaredLogger, instanceCache cache.Store, + virtualNodeCache cache.Store, ociClient client.Interface) *NodeInfoController { eventBroadcaster := record.NewBroadcaster() @@ -78,14 +82,15 @@ func NewNodeInfoController( } nic := &NodeInfoController{ - nodeInformer: nodeInformer, - kubeClient: kubeClient, - recorder: recorder, - cloud: cloud, - queue: workqueue.NewRateLimitingQueue(workqueue.DefaultControllerRateLimiter()), - logger: logger, - instanceCache: instanceCache, - ociClient: ociClient, + nodeInformer: nodeInformer, + kubeClient: kubeClient, + recorder: recorder, + cloud: cloud, + queue: workqueue.NewRateLimitingQueue(workqueue.DefaultControllerRateLimiter()), + logger: logger, + instanceCache: instanceCache, + virtualNodeCache: virtualNodeCache, + ociClient: ociClient, } // Use shared informer to listen to add nodes @@ -154,35 +159,49 @@ func (nic *NodeInfoController) processItem(key string) error { logger := nic.logger.With("node", key) cacheNode, err := nic.nodeInformer.Lister().Get(key) - - if err != nil { - return err - } - - // if node has required labels already, don't process agin - if validateNodeHasRequiredLabels(cacheNode) { - logger.With("nodeName", cacheNode.Name).Debugf("The node has the fault domain label and compartmentID annotation already, will not process") - return nil - } - - instance, err := getInstanceByNode(cacheNode, nic, logger) if err != nil { return err } - if err := nic.instanceCache.Add(instance); err != nil { - logger.With(zap.Error(err)).Error("Failed to add instance in instanceCache") - return err + var patchBytes []byte + if IsVirtualNode(cacheNode) { + // if node has required labels already, don't process again + if validateVirtualNodeHasRequiredLabels(cacheNode) { + logger.With("nodeName", cacheNode.Name).Debugf("The virtual node has the fault domain label already, will not process") + return nil + } + virtualNode, err := getVirtualNode(cacheNode, nic, logger) + if err != nil { + return err + } + if err := nic.virtualNodeCache.Add(virtualNode); err != nil { + logger.With(zap.Error(err)).Error("Failed to add virtual node in virtualNodeCache") + return err + } + patchBytes = getVirtualNodePatchBytes(virtualNode, logger) + } else { + // if node has required labels already, don't process again + if validateNodeHasRequiredLabels(cacheNode) { + logger.With("nodeName", cacheNode.Name).Debugf("The node has the fault domain label and compartmentID annotation already, will not process") + return nil + } + instance, err := getInstanceByNode(cacheNode, nic, logger) + if err != nil { + return err + } + if err := nic.instanceCache.Add(instance); err != nil { + logger.With(zap.Error(err)).Error("Failed to add instance in instanceCache") + return err + } + patchBytes = getNodePatchBytes(cacheNode, instance, logger) } - nodePatchBytes := getPatchBytes(cacheNode, instance, logger) - - if nodePatchBytes == nil { + if patchBytes == nil { return nil } err = retry.RetryOnConflict(retry.DefaultBackoff, func() error { - _, err := nic.kubeClient.CoreV1().Nodes().Patch(context.Background(), cacheNode.Name, types.StrategicMergePatchType, nodePatchBytes, metav1.PatchOptions{}) + _, err := nic.kubeClient.CoreV1().Nodes().Patch(context.Background(), cacheNode.Name, types.StrategicMergePatchType, patchBytes, metav1.PatchOptions{}) return err }) if err != nil { @@ -193,7 +212,7 @@ func (nic *NodeInfoController) processItem(key string) error { return nil } -func getPatchBytes(cacheNode *v1.Node, instance *core.Instance, logger *zap.SugaredLogger) []byte { +func getNodePatchBytes(cacheNode *v1.Node, instance *core.Instance, logger *zap.SugaredLogger) []byte { if validateNodeHasRequiredLabels(cacheNode) { return nil } @@ -220,6 +239,12 @@ func getPatchBytes(cacheNode *v1.Node, instance *core.Instance, logger *zap.Suga return nodePatchBytes } +func getVirtualNodePatchBytes(virtualNode *containerengine.VirtualNode, logger *zap.SugaredLogger) []byte { + // Set faultDomain label on VirtualNode + logger.Infof("Adding virtual node label from cloud provider: %s=%s", FaultDomainLabel, *virtualNode.FaultDomain) + return []byte(fmt.Sprintf("{\"metadata\": {\"labels\": {\"%s\":\"%s\"}}}", FaultDomainLabel, *virtualNode.FaultDomain)) +} + func getInstanceByNode(cacheNode *v1.Node, nic *NodeInfoController, logger *zap.SugaredLogger) (*core.Instance, error) { ctx, cancel := context.WithTimeout(context.Background(), timeout) defer cancel() @@ -234,7 +259,7 @@ func getInstanceByNode(cacheNode *v1.Node, nic *NodeInfoController, logger *zap. } } - instanceID, err := MapProviderIDToInstanceID(providerID) + instanceID, err := MapProviderIDToResourceID(providerID) if err != nil { logger.With(zap.Error(err)).Error("Failed to map providerID to instanceID") return nil, err @@ -247,6 +272,32 @@ func getInstanceByNode(cacheNode *v1.Node, nic *NodeInfoController, logger *zap. return instance, nil } +func getVirtualNode(cacheNode *v1.Node, nic *NodeInfoController, logger *zap.SugaredLogger) (*containerengine.VirtualNode, error) { + ctx, cancel := context.WithTimeout(context.Background(), timeout) + defer cancel() + + providerId := cacheNode.Spec.ProviderID + virtualNodeId, err := MapProviderIDToResourceID(providerId) + if err != nil { + logger.With(zap.Error(err)).Error("Failed to map providerId to virtualNodeId") + return nil, err + } + + virtualNodePoolId, ok := cacheNode.Annotations[VirtualNodePoolIdAnnotation] + if !ok || virtualNodePoolId == "" { + logger.Error("Failed to get virtualNodePoolId for providerId, annotation missing") + return nil, errors.Errorf("could not get virtualNodePoolId for providerId %s, annotation missing", providerId) + } + + virtualNode, err := nic.ociClient.ContainerEngine().GetVirtualNode(ctx, virtualNodeId, virtualNodePoolId) + if err != nil { + logger.With(zap.Error(err)).Error("Failed to get virtual node from virtualNodeId") + return nil, err + } + + return virtualNode, nil +} + func validateNodeHasRequiredLabels(node *v1.Node) bool { _, isFaultDomainLabelPresent := node.ObjectMeta.Labels[FaultDomainLabel] _, isCompartmentIDAnnotationPresent := node.ObjectMeta.Annotations[CompartmentIDAnnotation] @@ -255,3 +306,8 @@ func validateNodeHasRequiredLabels(node *v1.Node) bool { } return false } + +func validateVirtualNodeHasRequiredLabels(node *v1.Node) bool { + _, isFaultDomainLabelPresent := node.ObjectMeta.Labels[FaultDomainLabel] + return isFaultDomainLabelPresent +} diff --git a/pkg/cloudprovider/providers/oci/node_info_controller_test.go b/pkg/cloudprovider/providers/oci/node_info_controller_test.go index d98be0d718..10a09162c2 100644 --- a/pkg/cloudprovider/providers/oci/node_info_controller_test.go +++ b/pkg/cloudprovider/providers/oci/node_info_controller_test.go @@ -1,25 +1,29 @@ package oci import ( + "fmt" "reflect" "testing" - "github.com/oracle/oci-go-sdk/v65/common" - "go.uber.org/zap" - - "github.com/oracle/oci-go-sdk/v65/core" v1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" + "github.com/oracle/oci-go-sdk/v65/core" ) var ( - instanceCompID = "instanceCompID" - instanceFD = "instanceFD" - instanceID = "instanceID" + instanceCompID = "instanceCompID" + instanceFD = "instanceFD" + instanceID = "instanceID" + virtualNodeId = "ocid1.virtualnode.oc1.iad.default" + virtualNodePoolId = "vnpId" + virtualNodeFD = "virtualNodeFD" ) -func TestGetPatchBytes(t *testing.T) { +func TestGetNodePatchBytes(t *testing.T) { testCases := map[string]struct { node *v1.Node instance *core.Instance @@ -84,7 +88,7 @@ func TestGetPatchBytes(t *testing.T) { logger := zap.L() for name, tc := range testCases { t.Run(name, func(t *testing.T) { - patchedBytes := getPatchBytes(tc.node, tc.instance, logger.Sugar()) + patchedBytes := getNodePatchBytes(tc.node, tc.instance, logger.Sugar()) if !reflect.DeepEqual(patchedBytes, tc.expectedPatchBytes) { t.Errorf("Expected PatchBytes \n%+v\nbut got\n%+v", tc.expectedPatchBytes, patchedBytes) } @@ -147,3 +151,90 @@ func TestGetInstanceByNode(t *testing.T) { }) } } + +func TestGetVirtualNode(t *testing.T) { + testCases := map[string]struct { + node *v1.Node + nic *NodeInfoController + expected *containerengine.VirtualNode + }{ + "Get Instance": { + node: &v1.Node{ + Spec: v1.NodeSpec{ + ProviderID: virtualNodeId, + }, + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + VirtualNodePoolIdAnnotation: virtualNodePoolId, + }, + }, + }, + nic: &NodeInfoController{ + ociClient: MockOCIClient{}, + }, + expected: &containerengine.VirtualNode{ + Id: &virtualNodeId, + VirtualNodePoolId: &virtualNodePoolId, + }, + }, + "Get Instance when providerID is prefixed with providerName": { + node: &v1.Node{ + Spec: v1.NodeSpec{ + ProviderID: providerPrefix + virtualNodeId, + }, + ObjectMeta: metav1.ObjectMeta{ + Annotations: map[string]string{ + VirtualNodePoolIdAnnotation: virtualNodePoolId, + }, + }, + }, + nic: &NodeInfoController{ + ociClient: MockOCIClient{}, + }, + expected: &containerengine.VirtualNode{ + Id: &virtualNodeId, + VirtualNodePoolId: &virtualNodePoolId, + }, + }, + } + + logger := zap.L() + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + virtualNode, err := getVirtualNode(tc.node, tc.nic, logger.Sugar()) + if err != nil { + t.Fatalf("%s unexpected service add error: %v", name, err) + } + if !reflect.DeepEqual(virtualNode, tc.expected) { + t.Errorf("Expected virtual node \n%+v\nbut got\n%+v", tc.expected, virtualNodeId) + } + }) + } +} + +func TestGetVirtualNodePatchBytes(t *testing.T) { + testCases := map[string]struct { + node *v1.Node + virtualNode *containerengine.VirtualNode + expectedPatchBytes []byte + }{ + "FD label not present": { + node: &v1.Node{ + ObjectMeta: metav1.ObjectMeta{}, + }, + virtualNode: &containerengine.VirtualNode{ + FaultDomain: &virtualNodeFD, + }, + expectedPatchBytes: []byte(fmt.Sprintf("{\"metadata\": {\"labels\": {\"oci.oraclecloud.com/fault-domain\":\"%s\"}}}", virtualNodeFD)), + }, + } + logger := zap.L() + for name, tc := range testCases { + t.Run(name, func(t *testing.T) { + patchedBytes := getVirtualNodePatchBytes(tc.virtualNode, logger.Sugar()) + if !reflect.DeepEqual(patchedBytes, tc.expectedPatchBytes) { + t.Errorf("Expected PatchBytes \n%+v\nbut got\n%+v", tc.expectedPatchBytes, patchedBytes) + } + }) + } +} diff --git a/pkg/cloudprovider/providers/oci/util.go b/pkg/cloudprovider/providers/oci/util.go index e44117c7ec..a150834f44 100644 --- a/pkg/cloudprovider/providers/oci/util.go +++ b/pkg/cloudprovider/providers/oci/util.go @@ -30,8 +30,8 @@ const ( virtualNodeOcidIntegPrefix = "ocid1.virtualnodeinteg." ) -// MapProviderIDToInstanceID parses the provider id and returns the instance ocid. -func MapProviderIDToInstanceID(providerID string) (string, error) { +// MapProviderIDToResourceID parses the provider id and returns the instance ocid. +func MapProviderIDToResourceID(providerID string) (string, error) { if providerID == "" { return providerID, errors.New("provider ID is empty") } @@ -72,7 +72,7 @@ func IsVirtualNodeId(resourceId string) bool { // IsVirtualNode returns true if a node object corresponds to a Virtual Node func IsVirtualNode(node *api.Node) bool { - resourceId, err := MapProviderIDToInstanceID(node.Spec.ProviderID) + resourceId, err := MapProviderIDToResourceID(node.Spec.ProviderID) if err != nil { // OVK ensures the providerId is set on a Virtual Node // If the providerId is empty it is safe to assume the node is not virtual diff --git a/pkg/cloudprovider/providers/oci/util_test.go b/pkg/cloudprovider/providers/oci/util_test.go index 44f45d5b9b..b78f9f1158 100644 --- a/pkg/cloudprovider/providers/oci/util_test.go +++ b/pkg/cloudprovider/providers/oci/util_test.go @@ -48,7 +48,7 @@ func TestMapProviderIDToInstanceID(t *testing.T) { for name, tc := range testCases { t.Run(name, func(t *testing.T) { - result, err := MapProviderIDToInstanceID(tc.providerID) + result, err := MapProviderIDToResourceID(tc.providerID) if result != tc.instanceID { t.Errorf("Expected instance id %q, but got %q", tc.instanceID, result) } diff --git a/pkg/cloudprovider/providers/oci/zones.go b/pkg/cloudprovider/providers/oci/zones.go index 4e2a7868dc..a58d544bda 100644 --- a/pkg/cloudprovider/providers/oci/zones.go +++ b/pkg/cloudprovider/providers/oci/zones.go @@ -18,11 +18,12 @@ import ( "context" "strings" - "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" - "k8s.io/apimachinery/pkg/types" "k8s.io/cloud-provider" + + "github.com/oracle/oci-go-sdk/v65/containerengine" + "github.com/oracle/oci-go-sdk/v65/core" ) var _ cloudprovider.Zones = &CloudProvider{} @@ -48,11 +49,16 @@ func (cp *CloudProvider) GetZone(ctx context.Context) (cloudprovider.Zone, error // particularly used in the context of external cloud providers where node // initialization must be down outside the kubelets. func (cp *CloudProvider) GetZoneByProviderID(ctx context.Context, providerID string) (cloudprovider.Zone, error) { - instanceID, err := MapProviderIDToInstanceID(providerID) + resourceID, err := MapProviderIDToResourceID(providerID) if err != nil { return cloudprovider.Zone{}, err } - item, exists, err := cp.instanceCache.GetByKey(instanceID) + + if IsVirtualNodeId(resourceID) { + return cp.getZoneByResourceIDForVirtualNode(ctx, resourceID) + } + + item, exists, err := cp.instanceCache.GetByKey(resourceID) if err != nil { return cloudprovider.Zone{}, errors.Wrap(err, "Error fetching instance from instanceCache, will retry") } @@ -62,7 +68,7 @@ func (cp *CloudProvider) GetZoneByProviderID(ctx context.Context, providerID str Region: *item.(*core.Instance).Region, }, nil } - instance, err := cp.client.Compute().GetInstance(ctx, instanceID) + instance, err := cp.client.Compute().GetInstance(ctx, resourceID) if err != nil { return cloudprovider.Zone{}, err } @@ -93,3 +99,30 @@ func (cp *CloudProvider) GetZoneByNodeName(ctx context.Context, nodeName types.N Region: *instance.Region, }, nil } + +func (cp *CloudProvider) getZoneByResourceIDForVirtualNode(ctx context.Context, resourceID string) (cloudprovider.Zone, error) { + item, exists, err := cp.virtualNodeCache.GetByKey(resourceID) + if err != nil { + return cloudprovider.Zone{}, errors.Wrap(err, "Error fetching virtual node from virtualNodeCache, will retry") + } + if exists { + return cloudprovider.Zone{ + FailureDomain: mapAvailabilityDomainToFailureDomain(*item.(*containerengine.VirtualNode).AvailabilityDomain), + }, nil + } + + virtualNodePoolId, err := cp.getVirtualNodePoolIdByVirtualNodeId(resourceID) + if err != nil { + return cloudprovider.Zone{}, err + } + virtualNode, err := cp.client.ContainerEngine().GetVirtualNode(ctx, resourceID, virtualNodePoolId) + if err != nil { + return cloudprovider.Zone{}, err + } + if err := cp.virtualNodeCache.Add(virtualNode); err != nil { + return cloudprovider.Zone{}, errors.Wrap(err, "Failed to add virtual node in virtualNodeCache") + } + return cloudprovider.Zone{ + FailureDomain: mapAvailabilityDomainToFailureDomain(*virtualNode.AvailabilityDomain), + }, nil +} diff --git a/pkg/cloudprovider/providers/oci/zones_test.go b/pkg/cloudprovider/providers/oci/zones_test.go index 4674fcba24..46f2c243cd 100644 --- a/pkg/cloudprovider/providers/oci/zones_test.go +++ b/pkg/cloudprovider/providers/oci/zones_test.go @@ -16,12 +16,14 @@ package oci import ( "context" - providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" + "reflect" + "testing" + "go.uber.org/zap" "k8s.io/apimachinery/pkg/types" cloudprovider "k8s.io/cloud-provider" - "reflect" - "testing" + + providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" ) func TestMapAvailabilityDomainToFailureDomain(t *testing.T) { @@ -76,14 +78,31 @@ func TestGetZoneByProviderID(t *testing.T) { }, err: nil, }, + { + name: "provider id for virtual node and in cache", + in: "ocid1.virtualnode.oc1.iad.zonetest", + out: cloudprovider.Zone{ + FailureDomain: "PHX-AD-1", + }, + err: nil, + }, + { + name: "provider id with provider prefix for virtual node and not in cache", + in: providerPrefix + "ocid1.virtualnode.oc1.iad.noncache", + out: cloudprovider.Zone{ + FailureDomain: "PHX-AD-1", + }, + err: nil, + }, } cp := &CloudProvider{ - NodeLister: &mockNodeLister{}, - client: MockOCIClient{}, - config: &providercfg.Config{CompartmentID: "testCompartment"}, - logger: zap.S(), - instanceCache: &mockInstanceCache{}, + NodeLister: &mockNodeLister{}, + client: MockOCIClient{}, + config: &providercfg.Config{CompartmentID: "testCompartment"}, + logger: zap.S(), + instanceCache: &mockInstanceCache{}, + virtualNodeCache: &mockVirtualNodeCache{}, } for _, tt := range testCases { diff --git a/pkg/csi/driver/controller_test.go b/pkg/csi/driver/controller_test.go index 0fe0a83640..ca6a296725 100644 --- a/pkg/csi/driver/controller_test.go +++ b/pkg/csi/driver/controller_test.go @@ -16,6 +16,7 @@ import ( csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util" "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" "github.com/oracle/oci-go-sdk/v65/filestorage" "github.com/oracle/oci-go-sdk/v65/identity" @@ -410,6 +411,16 @@ func (p *MockProvisionerClient) FSS() client.FileStorageInterface { return &MockFileStorageClient{} } +type MockContainerEngineClient struct{} + +func (m MockContainerEngineClient) GetVirtualNode(ctx context.Context, vnId, vnpId string) (*containerengine.VirtualNode, error) { + return nil, nil +} + +func (p *MockProvisionerClient) ContainerEngine() client.ContainerEngineInterface { + return &MockContainerEngineClient{} +} + func NewClientProvisioner(pcData client.Interface, storage *MockBlockStorageClient) client.Interface { return &MockProvisionerClient{Storage: storage} } diff --git a/pkg/flexvolume/block/driver.go b/pkg/flexvolume/block/driver.go index 2f7e77de18..63f34f2586 100644 --- a/pkg/flexvolume/block/driver.go +++ b/pkg/flexvolume/block/driver.go @@ -228,7 +228,7 @@ func (d OCIFlexvolumeDriver) Attach(logger *zap.SugaredLogger, opts flexvolume.O } // Handle possible oci:// prefix. - id, err = ociprovider.MapProviderIDToInstanceID(id) + id, err = ociprovider.MapProviderIDToResourceID(id) if err != nil { errorType = util.GetError(err) fvdMetricDimension = util.GetMetricDimensionForComponent(errorType, util.FVDStorageType) diff --git a/pkg/oci/client/client.go b/pkg/oci/client/client.go index 8ff3edc64c..1f6decf70c 100644 --- a/pkg/oci/client/client.go +++ b/pkg/oci/client/client.go @@ -17,9 +17,11 @@ package client import ( "context" "net/http" + "os" "time" "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" "github.com/oracle/oci-go-sdk/v65/filestorage" "github.com/oracle/oci-go-sdk/v65/identity" @@ -43,6 +45,7 @@ type Interface interface { BlockStorage() BlockStorageInterface FSS() FileStorageInterface Identity() IdentityInterface + ContainerEngine() ContainerEngineInterface } // RateLimiter reader and writer. @@ -136,6 +139,10 @@ type identityClient interface { ListAvailabilityDomains(ctx context.Context, request identity.ListAvailabilityDomainsRequest) (identity.ListAvailabilityDomainsResponse, error) } +type containerEngineClient interface { + GetVirtualNode(ctx context.Context, request containerengine.GetVirtualNodeRequest) (response containerengine.GetVirtualNodeResponse, err error) +} + type client struct { compute computeClient network virtualNetworkClient @@ -144,6 +151,7 @@ type client struct { filestorage filestorageClient bs blockstorageClient identity identityClient + containerEngine containerEngineClient requestMetadata common.RequestMetadata rateLimiter RateLimiter @@ -152,9 +160,15 @@ type client struct { logger *zap.SugaredLogger } -func setupBaseClient(client *common.BaseClient, signer common.HTTPRequestSigner, interceptor common.RequestInterceptor) { +func setupBaseClient(client *common.BaseClient, signer common.HTTPRequestSigner, interceptor common.RequestInterceptor, endpointOverrideEnvVar string) { client.Signer = signer client.Interceptor = interceptor + if endpointOverrideEnvVar != "" { + endpointOverride, ok := os.LookupEnv(endpointOverrideEnvVar) + if ok && endpointOverride != "" { + client.Host = endpointOverride + } + } } // New constructs an OCI API client. @@ -171,7 +185,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewComputeClientWithConfigurationProvider") } - setupBaseClient(&compute.BaseClient, signer, interceptor) + setupBaseClient(&compute.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &compute.BaseClient) if err != nil { @@ -183,7 +197,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewVirtualNetworkClientWithConfigurationProvider") } - setupBaseClient(&network.BaseClient, signer, interceptor) + setupBaseClient(&network.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &network.BaseClient) if err != nil { @@ -195,7 +209,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewLoadBalancerClientWithConfigurationProvider") } - setupBaseClient(&lb.BaseClient, signer, interceptor) + setupBaseClient(&lb.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &lb.BaseClient) if err != nil { @@ -207,7 +221,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewNetworkLoadBalancerClientWithConfigurationProvider") } - setupBaseClient(&nlb.BaseClient, signer, interceptor) + setupBaseClient(&nlb.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &nlb.BaseClient) if err != nil { @@ -219,7 +233,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewIdentityClientWithConfigurationProvider") } - setupBaseClient(&identity.BaseClient, signer, interceptor) + setupBaseClient(&identity.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &identity.BaseClient) if err != nil { @@ -231,7 +245,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewBlockstorageClientWithConfigurationProvider") } - setupBaseClient(&bs.BaseClient, signer, interceptor) + setupBaseClient(&bs.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &bs.BaseClient) if err != nil { @@ -243,13 +257,25 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit return nil, errors.Wrap(err, "NewFileStorageClientWithConfigurationProvider") } - setupBaseClient(&fss.BaseClient, signer, interceptor) + setupBaseClient(&fss.BaseClient, signer, interceptor, "") err = configureCustomTransport(logger, &fss.BaseClient) if err != nil { return nil, errors.Wrap(err, "configuring file storage service client custom transport") } + containerEngine, err := containerengine.NewContainerEngineClientWithConfigurationProvider(cp) + if err != nil { + return nil, errors.Wrap(err, "NewContainerEngineClientWithConfigurationProvider") + } + + setupBaseClient(&containerEngine.BaseClient, signer, interceptor, "CE_ENDPOINT_OVERRIDE") + + err = configureCustomTransport(logger, &containerEngine.BaseClient) + if err != nil { + return nil, errors.Wrap(err, "configuring container engine service client custom transport") + } + requestMetadata := common.RequestMetadata{ RetryPolicy: newRetryPolicy(), } @@ -273,6 +299,7 @@ func New(logger *zap.SugaredLogger, cp common.ConfigurationProvider, opRateLimit networkloadbalancer: &networkloadbalancer, bs: &bs, filestorage: &fss, + containerEngine: &containerEngine, rateLimiter: *opRateLimiter, requestMetadata: requestMetadata, @@ -314,6 +341,10 @@ func (c *client) FSS() FileStorageInterface { return c } +func (c *client) ContainerEngine() ContainerEngineInterface { + return c +} + func configureCustomTransport(logger *zap.SugaredLogger, baseClient *common.BaseClient) error { // no-op for internal return nil diff --git a/pkg/oci/client/container_engine.go b/pkg/oci/client/container_engine.go new file mode 100644 index 0000000000..911f40f7e6 --- /dev/null +++ b/pkg/oci/client/container_engine.go @@ -0,0 +1,38 @@ +package client + +import ( + "context" + "github.com/pkg/errors" + + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" +) + +type ContainerEngineInterface interface { + GetVirtualNode(ctx context.Context, virtualNodeId, virtualNodePoolId string) (*containerengine.VirtualNode, error) +} + +func (c *client) GetVirtualNode(ctx context.Context, virtualNodeId, virtualNodePoolId string) (*containerengine.VirtualNode, error) { + if !c.rateLimiter.Reader.TryAccept() { + return nil, RateLimitError(false, "GetVirtualNode") + } + + resp, err := c.containerEngine.GetVirtualNode(ctx, containerengine.GetVirtualNodeRequest{ + VirtualNodeId: common.String(virtualNodeId), + VirtualNodePoolId: common.String(virtualNodePoolId), + RequestMetadata: c.requestMetadata, + }) + incRequestCounter(err, getVerb, virtualNodeResource) + + if err != nil { + return nil, errors.WithStack(err) + } + + return &resp.VirtualNode, nil +} + +// IsVirtualNodeInTerminalState returns true if the virtual node is in a terminal state, false otherwise. +func IsVirtualNodeInTerminalState(virtualNode *containerengine.VirtualNode) bool { + return virtualNode.LifecycleState == containerengine.VirtualNodeLifecycleStateDeleted || + virtualNode.LifecycleState == containerengine.VirtualNodeLifecycleStateFailed +} diff --git a/pkg/oci/client/metrics.go b/pkg/oci/client/metrics.go index 88b1334c0f..5ba46e6dc2 100644 --- a/pkg/oci/client/metrics.go +++ b/pkg/oci/client/metrics.go @@ -57,6 +57,7 @@ const ( availabilityDomainResource resource = "availability_domain" nsgResource resource = "load_balancer_network_security_groups" publicReservedIPResource resource = "public_reserved_ip" + virtualNodeResource resource = "virtual_node" ) type verb string diff --git a/pkg/volume/provisioner/block/block_test.go b/pkg/volume/provisioner/block/block_test.go index 136fe09492..42b35c69db 100644 --- a/pkg/volume/provisioner/block/block_test.go +++ b/pkg/volume/provisioner/block/block_test.go @@ -22,6 +22,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" "github.com/oracle/oci-go-sdk/v65/filestorage" "github.com/oracle/oci-go-sdk/v65/identity" @@ -395,6 +396,16 @@ func (c *MockLoadBalancerClient) UpdateNetworkSecurityGroups(context.Context, st return "", nil } +type MockContainerEngineClient struct{} + +func (m MockContainerEngineClient) GetVirtualNode(ctx context.Context, vnId, vnpId string) (*containerengine.VirtualNode, error) { + return nil, nil +} + +func (p *MockProvisionerClient) ContainerEngine() client.ContainerEngineInterface { + return &MockContainerEngineClient{} +} + // NewClientProvisioner creates an OCI client from the given configuration. func NewClientProvisioner(pcData client.Interface, storage *MockBlockStorageClient) client.Interface { return &MockProvisionerClient{Storage: storage} diff --git a/pkg/volume/provisioner/fss/fss_test.go b/pkg/volume/provisioner/fss/fss_test.go index 4edf92cb3e..e5415f8986 100644 --- a/pkg/volume/provisioner/fss/fss_test.go +++ b/pkg/volume/provisioner/fss/fss_test.go @@ -23,6 +23,7 @@ import ( "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" "github.com/oracle/oci-go-sdk/v65/core" "github.com/oracle/oci-go-sdk/v65/filestorage" "github.com/oracle/oci-go-sdk/v65/identity" @@ -395,6 +396,16 @@ func (c *MockLoadBalancerClient) UpdateNetworkSecurityGroups(context.Context, st return "", nil } +type MockContainerEngineClient struct{} + +func (m MockContainerEngineClient) GetVirtualNode(ctx context.Context, vnId, vnpId string) (*containerengine.VirtualNode, error) { + return nil, nil +} + +func (p *MockProvisionerClient) ContainerEngine() client.ContainerEngineInterface { + return &MockContainerEngineClient{} +} + // NewClientProvisioner creates an OCI client from the given configuration. func NewClientProvisioner(pcData client.Interface, storage *MockBlockStorageClient) client.Interface { return &MockProvisionerClient{Storage: storage} diff --git a/test/e2e/cloud-provider-oci/instances.go b/test/e2e/cloud-provider-oci/instances.go index f2d2566f61..8b2ae1cadb 100644 --- a/test/e2e/cloud-provider-oci/instances.go +++ b/test/e2e/cloud-provider-oci/instances.go @@ -148,3 +148,74 @@ var _ = Describe("Instances", func() { }) }) }) + +var _ = Describe("SKE - Instances", func() { + f := sharedfw.NewFrameworkWithCloudProvider("instances") + var ( + cs clientset.Interface + instances cloudprovider.Instances + node v1.Node + ) + BeforeEach(func() { + var enabled bool + instances, enabled = f.CloudProvider.Instances() + Expect(enabled).To(BeTrue()) + + cs = f.ClientSet + nodes := sharedfw.GetReadySchedulableVirtualNodesOrDie(cs) + Expect(len(nodes.Items)).NotTo(BeZero()) + node = nodes.Items[0] + }) + + Context("[cloudprovider-ske][ccm]", func() { + It("should get slice of empty node addresses for a virtual node", func() { + nodeName := apitypes.NodeName(node.Name) + Expect(nodeName).NotTo(BeEmpty()) + + providerID := node.Spec.ProviderID + Expect(providerID).NotTo(BeEmpty()) + + By("calling NodeAddressesByProviderID()") + addresses, err := instances.NodeAddressesByProviderID(context.Background(), providerID) + Expect(err).NotTo(HaveOccurred()) + Expect(len(addresses)).To(BeZero()) + sharedfw.Logf("%q (%s): addresses=%v", node.Name, providerID, addresses) + }) + + It("should get empty string for type of an instance for a virtual node", func() { + nodeName := apitypes.NodeName(node.Name) + Expect(nodeName).NotTo(BeEmpty()) + + providerID := node.Spec.ProviderID + Expect(providerID).NotTo(BeEmpty()) + + By("calling InstanceTypeByProviderID()") + instanceType, err := instances.InstanceTypeByProviderID(context.Background(), providerID) + Expect(err).NotTo(HaveOccurred()) + Expect(instanceType).To(BeEmpty()) + sharedfw.Logf("%q (%s): instanceType=%q", node.Name, providerID, instanceType) + }) + + It("should be possible to check an instance exists for a virtual node", func() { + providerID := node.Spec.ProviderID + Expect(providerID).NotTo(BeEmpty()) + By("calling InstanceExistsByProviderID()") + exists, err := instances.InstanceExistsByProviderID(context.Background(), providerID) + Expect(err).NotTo(HaveOccurred()) + Expect(exists).To(BeTrue()) + }) + It("should be possible to check required annotations and labels are added to a virtual node", func() { + // OCI Labels and Annotations + faultDomain := node.ObjectMeta.Labels[oci.FaultDomainLabel] + Expect(faultDomain).NotTo(BeEmpty()) + + // Kubernetes Beta Labels + fdZone := node.ObjectMeta.Labels[v1.LabelZoneFailureDomain] + Expect(fdZone).NotTo(BeEmpty()) + + // Kubernetes Stable Labels + fdZone = node.ObjectMeta.Labels[v1.LabelZoneFailureDomainStable] + Expect(fdZone).NotTo(BeEmpty()) + }) + }) +}) diff --git a/test/e2e/cloud-provider-oci/zones.go b/test/e2e/cloud-provider-oci/zones.go index de77636cfd..b99a00d8ec 100644 --- a/test/e2e/cloud-provider-oci/zones.go +++ b/test/e2e/cloud-provider-oci/zones.go @@ -73,3 +73,35 @@ var _ = Describe("Zones", func() { }) }) }) + +var _ = Describe("SKE - Zones", func() { + f := sharedfw.NewFrameworkWithCloudProvider("zones") + var ( + cs clientset.Interface + zones cloudprovider.Zones + node v1.Node + ) + BeforeEach(func() { + var enabled bool + zones, enabled = f.CloudProvider.Zones() + Expect(enabled).To(BeTrue()) + + cs = f.ClientSet + nodes := sharedfw.GetReadySchedulableVirtualNodesOrDie(cs) + Expect(len(nodes.Items)).NotTo(BeZero()) + node = nodes.Items[0] + }) + + Context("[cloudprovider-ske][ccm]", func() { + It("should be possible to get a non-empty zone by provider ID for a virtual node", func() { + providerID := node.Spec.ProviderID + Expect(providerID).NotTo(BeEmpty()) + + By("calling GetZoneByProviderID()") + zone, err := zones.GetZoneByProviderID(context.Background(), providerID) + Expect(err).NotTo(HaveOccurred()) + Expect(zone.FailureDomain).NotTo(BeEmpty()) + sharedfw.Logf("%q: FailureDomain=%q", providerID, zone.FailureDomain) + }) + }) +}) diff --git a/test/e2e/framework/cloud_provider_framework.go b/test/e2e/framework/cloud_provider_framework.go index 8f8ae3b727..60d8bd9260 100644 --- a/test/e2e/framework/cloud_provider_framework.go +++ b/test/e2e/framework/cloud_provider_framework.go @@ -23,27 +23,28 @@ import ( "strings" "time" - ocicore "github.com/oracle/oci-go-sdk/v65/core" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" - "k8s.io/client-go/informers" - "k8s.io/client-go/tools/cache" - . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci" // register oci cloud provider - providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" - "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" - "github.com/oracle/oci-go-sdk/v65/common" - "github.com/oracle/oci-go-sdk/v65/core" "github.com/pkg/errors" "go.uber.org/zap" v1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/wait" + "k8s.io/client-go/informers" clientset "k8s.io/client-go/kubernetes" + "k8s.io/client-go/tools/cache" "k8s.io/client-go/tools/clientcmd" cloudprovider "k8s.io/cloud-provider" + + "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci" // register oci cloud provider + providercfg "github.com/oracle/oci-cloud-controller-manager/pkg/cloudprovider/providers/oci/config" + "github.com/oracle/oci-cloud-controller-manager/pkg/oci/client" + "github.com/oracle/oci-go-sdk/v65/common" + "github.com/oracle/oci-go-sdk/v65/containerengine" + "github.com/oracle/oci-go-sdk/v65/core" + ocicore "github.com/oracle/oci-go-sdk/v65/core" ) // CloudProviderFramework is used in the execution of e2e tests. @@ -227,6 +228,7 @@ func (f *CloudProviderFramework) BeforeEach() { ccmProvider, zap.L().Sugar(), cache.NewTTLStore(instanceCacheKeyFn, time.Duration(24)*time.Hour), + cache.NewTTLStore(virtualNodeCacheKeyFn, time.Duration(24)*time.Hour), f.Client) nodeInformer := factory.Core().V1().Nodes() go nodeInformer.Informer().Run(wait.NeverStop) @@ -348,3 +350,7 @@ func (f *CloudProviderFramework) createStorageClient() ocicore.BlockstorageClien func instanceCacheKeyFn(obj interface{}) (string, error) { return *obj.(*core.Instance).Id, nil } + +func virtualNodeCacheKeyFn(obj interface{}) (string, error) { + return *obj.(*containerengine.VirtualNode).Id, nil +}